gz-ui-web 1.0.6-beta.0 → 1.1.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/gz-ui-web-lib/{ValuationLogDataChart-gUnqDlS-.js → ValuationLogDataChart-H7UJY38C.js} +277 -277
- package/gz-ui-web-lib/{ValuationLogDataChart-BbAC7-QU.cjs → ValuationLogDataChart-OlCR1agn.cjs} +3 -3
- 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/components/splitter/Splitter.d.ts +9 -0
- package/gz-ui-web-lib/components/splitter/index.d.ts +11 -0
- package/gz-ui-web-lib/gz-ui-web.css +1 -1
- package/gz-ui-web-lib/index.cjs +1 -1
- package/gz-ui-web-lib/index.d.ts +1 -0
- package/gz-ui-web-lib/index.js +373 -364
- package/package.json +4 -4
package/gz-ui-web-lib/{ValuationLogDataChart-gUnqDlS-.js → ValuationLogDataChart-H7UJY38C.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as F, jsxs as
|
|
2
|
-
import Wu, { forwardRef as ue, createContext as Ht, useRef as ee, useContext as Zu, useMemo as Pe, useCallback as pe, useEffect as ve, useState as Oe, useReducer as Ut, useImperativeHandle as Wt, useLayoutEffect as
|
|
3
|
-
import { Alert as qu, App as ju, Button as Zt, Empty as Fu, Spin as Xu, theme as Qu, Tag as Cu, Tooltip as qt, DatePicker as Re, Form as
|
|
1
|
+
import { jsx as F, jsxs as we } from "react/jsx-runtime";
|
|
2
|
+
import Wu, { forwardRef as ue, createContext as Ht, useRef as ee, useContext as Zu, useMemo as Pe, useCallback as pe, useEffect as ve, useState as Oe, useReducer as Ut, useImperativeHandle as Wt, useLayoutEffect as wu } from "react";
|
|
3
|
+
import { Alert as qu, App as ju, Button as Zt, Empty as Fu, Spin as Xu, theme as Qu, Tag as Cu, Tooltip as qt, DatePicker as Re, Form as Me, ConfigProvider as jt, Select as fu, Radio as gu } from "antd";
|
|
4
4
|
import Ge from "big.js";
|
|
5
5
|
import { AllEnterpriseModule as Xt } from "ag-grid-enterprise";
|
|
6
6
|
import { AgGridProvider as Qt, AgGridReact as Jt } from "ag-grid-react";
|
|
@@ -14,19 +14,19 @@ function et(r) {
|
|
|
14
14
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
15
15
|
}
|
|
16
16
|
var We = { exports: {} }, nu = {};
|
|
17
|
-
var
|
|
17
|
+
var _u;
|
|
18
18
|
function ar() {
|
|
19
|
-
if (
|
|
20
|
-
|
|
19
|
+
if (_u) return nu;
|
|
20
|
+
_u = 1;
|
|
21
21
|
var r = Wu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
22
22
|
return nu.c = function(e) {
|
|
23
23
|
return r.H.useMemoCache(e);
|
|
24
24
|
}, nu;
|
|
25
25
|
}
|
|
26
26
|
var ou = {};
|
|
27
|
-
var
|
|
27
|
+
var Mu;
|
|
28
28
|
function ir() {
|
|
29
|
-
return
|
|
29
|
+
return Mu || (Mu = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
30
30
|
var r = Wu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
31
31
|
ou.c = function(e) {
|
|
32
32
|
var u = r.H;
|
|
@@ -40,9 +40,9 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
40
40
|
};
|
|
41
41
|
})()), ou;
|
|
42
42
|
}
|
|
43
|
-
var
|
|
43
|
+
var ku;
|
|
44
44
|
function lr() {
|
|
45
|
-
return
|
|
45
|
+
return ku || (ku = 1, process.env.NODE_ENV === "production" ? We.exports = ar() : We.exports = ir()), We.exports;
|
|
46
46
|
}
|
|
47
47
|
var V = lr();
|
|
48
48
|
function ut(r) {
|
|
@@ -75,7 +75,7 @@ Ye.ErrorBoundary = rt;
|
|
|
75
75
|
const nt = ue((r, e) => {
|
|
76
76
|
const u = V.c(3);
|
|
77
77
|
let t;
|
|
78
|
-
return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ F(ju, { ref: e
|
|
78
|
+
return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ F(ju, { ...r, ref: e }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
|
|
79
79
|
});
|
|
80
80
|
nt.displayName = "GZApp";
|
|
81
81
|
const vu = nt;
|
|
@@ -110,7 +110,7 @@ const at = (r) => {
|
|
|
110
110
|
at.displayName = "GZSpin";
|
|
111
111
|
const hu = at;
|
|
112
112
|
Object.assign(hu, Xu);
|
|
113
|
-
const cr = 1e3, su = 3,
|
|
113
|
+
const cr = 1e3, su = 3, oe = "-", Du = {
|
|
114
114
|
pricingEnvironment: null,
|
|
115
115
|
carbonForwardCurve: null,
|
|
116
116
|
discountCurve: null,
|
|
@@ -1167,7 +1167,7 @@ const Er = (r) => {
|
|
|
1167
1167
|
...au,
|
|
1168
1168
|
...n,
|
|
1169
1169
|
paginationPanels: m
|
|
1170
|
-
}), [n, m]),
|
|
1170
|
+
}), [n, m]), w = Pe(() => ({
|
|
1171
1171
|
...au.localeText,
|
|
1172
1172
|
...n?.localeText,
|
|
1173
1173
|
...r.localeText
|
|
@@ -1175,7 +1175,7 @@ const Er = (r) => {
|
|
|
1175
1175
|
...vr,
|
|
1176
1176
|
...n?.defaultColDef,
|
|
1177
1177
|
...r.defaultColDef
|
|
1178
|
-
}), [n?.defaultColDef, r.defaultColDef]),
|
|
1178
|
+
}), [n?.defaultColDef, r.defaultColDef]), k = pe((v) => {
|
|
1179
1179
|
const L = u.current;
|
|
1180
1180
|
if (!L || !v) return;
|
|
1181
1181
|
const A = L.querySelector(".ag-body-horizontal-scroll-viewport");
|
|
@@ -1189,16 +1189,16 @@ const Er = (r) => {
|
|
|
1189
1189
|
} else
|
|
1190
1190
|
L.classList.remove("gz-table-ping-left", "gz-table-ping-right");
|
|
1191
1191
|
}, []), D = pe((v) => {
|
|
1192
|
-
v.direction === "horizontal" &&
|
|
1193
|
-
}, [
|
|
1194
|
-
|
|
1195
|
-
}, [
|
|
1196
|
-
|
|
1197
|
-
}, [
|
|
1198
|
-
|
|
1199
|
-
}, [
|
|
1200
|
-
|
|
1201
|
-
}, [
|
|
1192
|
+
v.direction === "horizontal" && k(v.api), r.onBodyScroll && r.onBodyScroll(v), n?.onBodyScroll && n.onBodyScroll(v);
|
|
1193
|
+
}, [k, r.onBodyScroll, n?.onBodyScroll]), _ = pe((v) => {
|
|
1194
|
+
k(v.api), r.onGridReady && r.onGridReady(v), n?.onGridReady && n.onGridReady(v);
|
|
1195
|
+
}, [k, r.onGridReady, n?.onGridReady]), y = pe((v) => {
|
|
1196
|
+
k(v.api), r.onGridSizeChanged && r.onGridSizeChanged(v), n?.onGridSizeChanged && n.onGridSizeChanged(v);
|
|
1197
|
+
}, [k, r.onGridSizeChanged, n?.onGridSizeChanged]), M = pe((v) => {
|
|
1198
|
+
k(v.api), r.onModelUpdated && r.onModelUpdated(v), n?.onModelUpdated && n.onModelUpdated(v);
|
|
1199
|
+
}, [k, r.onModelUpdated, n?.onModelUpdated]), $ = pe((v) => {
|
|
1200
|
+
k(v.api), r.onDisplayedColumnsChanged && r.onDisplayedColumnsChanged(v), n?.onDisplayedColumnsChanged && n.onDisplayedColumnsChanged(v);
|
|
1201
|
+
}, [k, r.onDisplayedColumnsChanged, n?.onDisplayedColumnsChanged]), P = r.getContextMenuItems ?? n?.getContextMenuItems, O = pe((v) => {
|
|
1202
1202
|
const L = {
|
|
1203
1203
|
name: "复制整行数据",
|
|
1204
1204
|
icon: '<span class="ag-icon ag-icon-copy" unselectable="on" role="presentation"></span>',
|
|
@@ -1245,8 +1245,8 @@ const Er = (r) => {
|
|
|
1245
1245
|
flexDirection: "column"
|
|
1246
1246
|
}, children: /* @__PURE__ */ F(Qt, { modules: hr, licenseKey: pr, children: /* @__PURE__ */ F(Jt, { ref: e, ...r, gridOptions: f, ...g === void 0 ? {} : {
|
|
1247
1247
|
theme: g
|
|
1248
|
-
}, className: T || void 0, defaultColDef: b, localeText:
|
|
1249
|
-
}), Br = "_root_lxvvg_1", yr = "_section_lxvvg_11", br = "_sectionTitle_lxvvg_17", Ar = "_contextForm_lxvvg_24", Sr = "_fixedSingle_lxvvg_30", xr = "_multiple_lxvvg_35", Tr = "_single_lxvvg_40",
|
|
1248
|
+
}, className: T || void 0, defaultColDef: b, localeText: w, getContextMenuItems: O, onBodyScroll: D, onGridReady: _, onGridSizeChanged: y, onModelUpdated: M, onDisplayedColumnsChanged: $ }) }) });
|
|
1249
|
+
}), Br = "_root_lxvvg_1", yr = "_section_lxvvg_11", br = "_sectionTitle_lxvvg_17", Ar = "_contextForm_lxvvg_24", Sr = "_fixedSingle_lxvvg_30", xr = "_multiple_lxvvg_35", Tr = "_single_lxvvg_40", wr = "_contextFormItem_lxvvg_50", _r = "_contextFormLabel_lxvvg_53", Mr = "_contextFormContent_lxvvg_57", kr = "_contextFormLabelText_lxvvg_82", $r = "_selectPopup_lxvvg_92", Ir = "_selectPopupListItem_lxvvg_95", Rr = "_resourceIssues_lxvvg_111", Pr = "_limitAlert_lxvvg_115", Lr = "_fixedGrid_lxvvg_118", Nr = "_multipleGrid_lxvvg_119", Or = "_singleGrid_lxvvg_156", zr = "_fieldCell_lxvvg_160", Vr = "_singleContractHeader_lxvvg_165", Yr = "_negativeValue_lxvvg_194", Gr = "_gridErrorAlert_lxvvg_197", Hr = "_gridErrorIcon_lxvvg_209", Ur = "_gridErrorSection_lxvvg_212", Wr = "_gridErrorMessage_lxvvg_216", Zr = "_mergedErrorGridCell_lxvvg_223", qr = "_mergedErrorCell_lxvvg_231", jr = "_mergedErrorText_lxvvg_246", Xr = "_emptyState_lxvvg_252", Qr = "_footer_lxvvg_260", Jr = "_navigateButton_lxvvg_266", Kr = "_navigateIcon_lxvvg_269", Y = {
|
|
1250
1250
|
root: Br,
|
|
1251
1251
|
section: yr,
|
|
1252
1252
|
sectionTitle: br,
|
|
@@ -1254,10 +1254,10 @@ const Er = (r) => {
|
|
|
1254
1254
|
fixedSingle: Sr,
|
|
1255
1255
|
multiple: xr,
|
|
1256
1256
|
single: Tr,
|
|
1257
|
-
contextFormItem:
|
|
1258
|
-
contextFormLabel:
|
|
1259
|
-
contextFormContent:
|
|
1260
|
-
contextFormLabelText:
|
|
1257
|
+
contextFormItem: wr,
|
|
1258
|
+
contextFormLabel: _r,
|
|
1259
|
+
contextFormContent: Mr,
|
|
1260
|
+
contextFormLabelText: kr,
|
|
1261
1261
|
selectPopup: $r,
|
|
1262
1262
|
selectPopupListItem: Ir,
|
|
1263
1263
|
resourceIssues: Rr,
|
|
@@ -1358,25 +1358,25 @@ const Er = (r) => {
|
|
|
1358
1358
|
} = Zu(it), {
|
|
1359
1359
|
token: g
|
|
1360
1360
|
} = Qu.useToken(), f = g;
|
|
1361
|
-
let
|
|
1362
|
-
u[6] !== t || u[7] !== f || u[8] !== E || u[9] !== m ? (
|
|
1363
|
-
const T =
|
|
1361
|
+
let w;
|
|
1362
|
+
u[6] !== t || u[7] !== f || u[8] !== E || u[9] !== m ? (w = E === "gold-dark" ? un(t, m, f) : E === "gold-light" ? tn(t, f) : void 0, u[6] = t, u[7] = f, u[8] = E, u[9] = m, u[10] = w) : w = u[10];
|
|
1363
|
+
const T = w;
|
|
1364
1364
|
let b;
|
|
1365
1365
|
u[11] !== t || u[12] !== f || u[13] !== E || u[14] !== m ? (b = E === "gold-dark" && m === "solid" && (t === "primary" || t === "default" || t === void 0) ? {
|
|
1366
1366
|
color: de(f, "colorTextOnLight")
|
|
1367
1367
|
} : void 0, u[11] = t, u[12] = f, u[13] = E, u[14] = m, u[15] = b) : b = u[15];
|
|
1368
|
-
const
|
|
1368
|
+
const k = b;
|
|
1369
1369
|
let D;
|
|
1370
1370
|
u[16] !== t || u[17] !== f || u[18] !== E ? (D = E === "gold-light" && t === "primary" ? {
|
|
1371
1371
|
color: de(f, "colorTextOnLight")
|
|
1372
1372
|
} : void 0, u[16] = t, u[17] = f, u[18] = E, u[19] = D) : D = u[19];
|
|
1373
|
-
const y =
|
|
1374
|
-
let
|
|
1375
|
-
u[20] !== T || u[21] !== i ? (
|
|
1373
|
+
const y = k ?? D;
|
|
1374
|
+
let M;
|
|
1375
|
+
u[20] !== T || u[21] !== i ? (M = T ? {
|
|
1376
1376
|
...T,
|
|
1377
1377
|
...i
|
|
1378
|
-
} : i, u[20] = T, u[21] = i, u[22] =
|
|
1379
|
-
const $ =
|
|
1378
|
+
} : i, u[20] = T, u[21] = i, u[22] = M) : M = u[22];
|
|
1379
|
+
const $ = M;
|
|
1380
1380
|
let P;
|
|
1381
1381
|
u[23] !== y || u[24] !== l ? (P = y ? typeof l == "function" ? (A) => {
|
|
1382
1382
|
const x = l(A);
|
|
@@ -1415,22 +1415,22 @@ const bu = st;
|
|
|
1415
1415
|
bu.CheckableTag = ct;
|
|
1416
1416
|
bu.CheckableTagGroup = dt;
|
|
1417
1417
|
function mt(r, e) {
|
|
1418
|
-
if (r == null || r === "") return
|
|
1418
|
+
if (r == null || r === "") return oe;
|
|
1419
1419
|
try {
|
|
1420
1420
|
return new Ge(r).toFixed(e);
|
|
1421
1421
|
} catch {
|
|
1422
|
-
return
|
|
1422
|
+
return oe;
|
|
1423
1423
|
}
|
|
1424
1424
|
}
|
|
1425
1425
|
function Au(r, e) {
|
|
1426
1426
|
const u = mt(r, e);
|
|
1427
|
-
if (u ===
|
|
1427
|
+
if (u === oe) return u;
|
|
1428
1428
|
const [t, n] = u.split("."), i = t.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
1429
1429
|
return n == null ? i : `${i}.${n}`;
|
|
1430
1430
|
}
|
|
1431
1431
|
function Iu(r, e, u = 2) {
|
|
1432
1432
|
const t = mt(r, u);
|
|
1433
|
-
if (t ===
|
|
1433
|
+
if (t === oe) return t;
|
|
1434
1434
|
const n = t.startsWith("-") ? t.slice(1) : t, i = Au(n, u);
|
|
1435
1435
|
try {
|
|
1436
1436
|
const s = new Intl.NumberFormat("zh-CN", {
|
|
@@ -1472,15 +1472,15 @@ function on() {
|
|
|
1472
1472
|
(function(u, t) {
|
|
1473
1473
|
r.exports = t();
|
|
1474
1474
|
})(nn, (function() {
|
|
1475
|
-
var u = 1e3, t = 6e4, n = 36e5, i = "millisecond", l = "second", s = "minute", m = "hour", E = "day", g = "week", f = "month",
|
|
1475
|
+
var u = 1e3, t = 6e4, n = 36e5, i = "millisecond", l = "second", s = "minute", m = "hour", E = "day", g = "week", f = "month", w = "quarter", T = "year", b = "date", k = "Invalid Date", D = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, _ = /\[([^\]]+)]|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, y = { 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(C) {
|
|
1476
1476
|
var d = ["th", "st", "nd", "rd"], o = C % 100;
|
|
1477
1477
|
return "[" + C + (d[(o - 20) % 10] || d[o] || d[0]) + "]";
|
|
1478
|
-
} },
|
|
1478
|
+
} }, M = function(C, d, o) {
|
|
1479
1479
|
var c = String(C);
|
|
1480
1480
|
return !c || c.length >= d ? C : "" + Array(d + 1 - c.length).join(o) + C;
|
|
1481
|
-
}, $ = { s:
|
|
1481
|
+
}, $ = { s: M, z: function(C) {
|
|
1482
1482
|
var d = -C.utcOffset(), o = Math.abs(d), c = Math.floor(o / 60), a = o % 60;
|
|
1483
|
-
return (d <= 0 ? "+" : "-") +
|
|
1483
|
+
return (d <= 0 ? "+" : "-") + M(c, 2, "0") + ":" + M(a, 2, "0");
|
|
1484
1484
|
}, m: function C(d, o) {
|
|
1485
1485
|
if (d.date() < o.date()) return -C(o, d);
|
|
1486
1486
|
var c = 12 * (o.year() - d.year()) + (o.month() - d.month()), a = d.clone().add(c, f), p = o - a < 0, h = d.clone().add(c + (p ? -1 : 1), f);
|
|
@@ -1488,7 +1488,7 @@ function on() {
|
|
|
1488
1488
|
}, a: function(C) {
|
|
1489
1489
|
return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
|
|
1490
1490
|
}, p: function(C) {
|
|
1491
|
-
return { M: f, y: T, w: g, d: E, D: b, h: m, m: s, s: l, ms: i, Q:
|
|
1491
|
+
return { M: f, y: T, w: g, d: E, D: b, h: m, m: s, s: l, ms: i, Q: w }[C] || String(C || "").toLowerCase().replace(/s$/, "");
|
|
1492
1492
|
}, u: function(C) {
|
|
1493
1493
|
return C === void 0;
|
|
1494
1494
|
} }, P = "en", O = {};
|
|
@@ -1542,7 +1542,7 @@ function on() {
|
|
|
1542
1542
|
}, d.$utils = function() {
|
|
1543
1543
|
return B;
|
|
1544
1544
|
}, d.isValid = function() {
|
|
1545
|
-
return this.$d.toString() !==
|
|
1545
|
+
return this.$d.toString() !== k;
|
|
1546
1546
|
}, d.isSame = function(o, c) {
|
|
1547
1547
|
var a = x(o);
|
|
1548
1548
|
return this.startOf(c) <= a && a <= this.endOf(c);
|
|
@@ -1613,7 +1613,7 @@ function on() {
|
|
|
1613
1613
|
return this.add(-1 * o, c);
|
|
1614
1614
|
}, d.format = function(o) {
|
|
1615
1615
|
var c = this, a = this.$locale();
|
|
1616
|
-
if (!this.isValid()) return a.invalidDate ||
|
|
1616
|
+
if (!this.isValid()) return a.invalidDate || k;
|
|
1617
1617
|
var p = o || "YYYY-MM-DDTHH:mm:ssZ", h = B.z(this), S = this.$H, N = this.$m, z = this.$M, G = a.weekdays, H = a.months, W = a.meridiem, q = function(U, j, K, X) {
|
|
1618
1618
|
return U && (U[j] || U(c, p)) || K[j].slice(0, X);
|
|
1619
1619
|
}, Q = function(U) {
|
|
@@ -1622,7 +1622,7 @@ function on() {
|
|
|
1622
1622
|
var X = U < 12 ? "AM" : "PM";
|
|
1623
1623
|
return K ? X.toLowerCase() : X;
|
|
1624
1624
|
};
|
|
1625
|
-
return p.replace(
|
|
1625
|
+
return p.replace(_, (function(U, j) {
|
|
1626
1626
|
return j || (function(K) {
|
|
1627
1627
|
switch (K) {
|
|
1628
1628
|
case "YY":
|
|
@@ -1690,7 +1690,7 @@ function on() {
|
|
|
1690
1690
|
case f:
|
|
1691
1691
|
p = H();
|
|
1692
1692
|
break;
|
|
1693
|
-
case
|
|
1693
|
+
case w:
|
|
1694
1694
|
p = H() / 3;
|
|
1695
1695
|
break;
|
|
1696
1696
|
case g:
|
|
@@ -1755,26 +1755,26 @@ function sn() {
|
|
|
1755
1755
|
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" }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, i = /\d\d/, l = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, m = {}, E = function(D) {
|
|
1756
1756
|
return (D = +D) + (D > 68 ? 1900 : 2e3);
|
|
1757
1757
|
}, g = function(D) {
|
|
1758
|
-
return function(
|
|
1759
|
-
this[D] = +
|
|
1758
|
+
return function(_) {
|
|
1759
|
+
this[D] = +_;
|
|
1760
1760
|
};
|
|
1761
1761
|
}, f = [/[+-]\d\d:?(\d\d)?|Z/, function(D) {
|
|
1762
|
-
(this.zone || (this.zone = {})).offset = (function(
|
|
1763
|
-
if (!
|
|
1764
|
-
var y =
|
|
1765
|
-
return
|
|
1762
|
+
(this.zone || (this.zone = {})).offset = (function(_) {
|
|
1763
|
+
if (!_ || _ === "Z") return 0;
|
|
1764
|
+
var y = _.match(/([+-]|\d\d)/g), M = 60 * y[1] + (+y[2] || 0);
|
|
1765
|
+
return M === 0 ? 0 : y[0] === "+" ? -M : M;
|
|
1766
1766
|
})(D);
|
|
1767
|
-
}],
|
|
1768
|
-
var
|
|
1769
|
-
return
|
|
1770
|
-
}, T = function(D,
|
|
1771
|
-
var y,
|
|
1772
|
-
if (
|
|
1773
|
-
for (var $ = 1; $ <= 24; $ += 1) if (D.indexOf(
|
|
1767
|
+
}], w = function(D) {
|
|
1768
|
+
var _ = m[D];
|
|
1769
|
+
return _ && (_.indexOf ? _ : _.s.concat(_.f));
|
|
1770
|
+
}, T = function(D, _) {
|
|
1771
|
+
var y, M = m.meridiem;
|
|
1772
|
+
if (M) {
|
|
1773
|
+
for (var $ = 1; $ <= 24; $ += 1) if (D.indexOf(M($, 0, _)) > -1) {
|
|
1774
1774
|
y = $ > 12;
|
|
1775
1775
|
break;
|
|
1776
1776
|
}
|
|
1777
|
-
} else y = D === (
|
|
1777
|
+
} else y = D === (_ ? "pm" : "PM");
|
|
1778
1778
|
return y;
|
|
1779
1779
|
}, b = { A: [s, function(D) {
|
|
1780
1780
|
this.afternoon = T(D, !1);
|
|
@@ -1789,36 +1789,36 @@ function sn() {
|
|
|
1789
1789
|
}], SSS: [/\d{3}/, function(D) {
|
|
1790
1790
|
this.milliseconds = +D;
|
|
1791
1791
|
}], s: [l, g("seconds")], ss: [l, g("seconds")], m: [l, g("minutes")], mm: [l, g("minutes")], H: [l, g("hours")], h: [l, g("hours")], HH: [l, g("hours")], hh: [l, g("hours")], D: [l, g("day")], DD: [i, g("day")], Do: [s, function(D) {
|
|
1792
|
-
var
|
|
1793
|
-
if (this.day = y[0],
|
|
1792
|
+
var _ = m.ordinal, y = D.match(/\d+/);
|
|
1793
|
+
if (this.day = y[0], _) for (var M = 1; M <= 31; M += 1) _(M).replace(/\[|\]/g, "") === D && (this.day = M);
|
|
1794
1794
|
}], w: [l, g("week")], ww: [i, g("week")], M: [l, g("month")], MM: [i, g("month")], MMM: [s, function(D) {
|
|
1795
|
-
var
|
|
1796
|
-
return
|
|
1795
|
+
var _ = w("months"), y = (w("monthsShort") || _.map((function(M) {
|
|
1796
|
+
return M.slice(0, 3);
|
|
1797
1797
|
}))).indexOf(D) + 1;
|
|
1798
1798
|
if (y < 1) throw new Error();
|
|
1799
1799
|
this.month = y % 12 || y;
|
|
1800
1800
|
}], MMMM: [s, function(D) {
|
|
1801
|
-
var
|
|
1802
|
-
if (
|
|
1803
|
-
this.month =
|
|
1801
|
+
var _ = w("months").indexOf(D) + 1;
|
|
1802
|
+
if (_ < 1) throw new Error();
|
|
1803
|
+
this.month = _ % 12 || _;
|
|
1804
1804
|
}], Y: [/[+-]?\d+/, g("year")], YY: [i, function(D) {
|
|
1805
1805
|
this.year = E(D);
|
|
1806
1806
|
}], YYYY: [/\d{4}/, g("year")], Z: f, ZZ: f };
|
|
1807
|
-
function
|
|
1808
|
-
var
|
|
1809
|
-
|
|
1810
|
-
for (var
|
|
1807
|
+
function k(D) {
|
|
1808
|
+
var _, y;
|
|
1809
|
+
_ = D, y = m && m.formats;
|
|
1810
|
+
for (var M = (D = _.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(x, B, R) {
|
|
1811
1811
|
var I = R && R.toUpperCase();
|
|
1812
1812
|
return B || y[R] || u[R] || y[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(C, d, o) {
|
|
1813
1813
|
return d || o.slice(1);
|
|
1814
1814
|
}));
|
|
1815
|
-
}))).match(t), $ =
|
|
1816
|
-
var O =
|
|
1817
|
-
|
|
1815
|
+
}))).match(t), $ = M.length, P = 0; P < $; P += 1) {
|
|
1816
|
+
var O = M[P], v = b[O], L = v && v[0], A = v && v[1];
|
|
1817
|
+
M[P] = A ? { regex: L, parser: A } : O.replace(/^\[|\]$/g, "");
|
|
1818
1818
|
}
|
|
1819
1819
|
return function(x) {
|
|
1820
1820
|
for (var B = {}, R = 0, I = 0; R < $; R += 1) {
|
|
1821
|
-
var C =
|
|
1821
|
+
var C = M[R];
|
|
1822
1822
|
if (typeof C == "string") I += C.length;
|
|
1823
1823
|
else {
|
|
1824
1824
|
var d = C.regex, o = C.parser, c = x.slice(I), a = d.exec(c)[0];
|
|
@@ -1834,10 +1834,10 @@ function sn() {
|
|
|
1834
1834
|
})(B), B;
|
|
1835
1835
|
};
|
|
1836
1836
|
}
|
|
1837
|
-
return function(D,
|
|
1837
|
+
return function(D, _, y) {
|
|
1838
1838
|
y.p.customParseFormat = !0, D && D.parseTwoDigitYear && (E = D.parseTwoDigitYear);
|
|
1839
|
-
var
|
|
1840
|
-
|
|
1839
|
+
var M = _.prototype, $ = M.parse;
|
|
1840
|
+
M.parse = function(P) {
|
|
1841
1841
|
var O = P.date, v = P.utc, L = P.args;
|
|
1842
1842
|
this.$u = v;
|
|
1843
1843
|
var A = L[1];
|
|
@@ -1846,10 +1846,10 @@ function sn() {
|
|
|
1846
1846
|
B && (I = L[2]), m = this.$locale(), !x && I && (m = y.Ls[I]), this.$d = (function(c, a, p, h) {
|
|
1847
1847
|
try {
|
|
1848
1848
|
if (["x", "X"].indexOf(a) > -1) return new Date((a === "X" ? 1e3 : 1) * c);
|
|
1849
|
-
var S =
|
|
1849
|
+
var S = k(a)(c), N = S.year, z = S.month, G = S.day, H = S.hours, W = S.minutes, q = S.seconds, Q = S.milliseconds, Z = S.zone, U = S.week, j = /* @__PURE__ */ new Date(), K = G || (N || z ? 1 : j.getDate()), X = N || j.getFullYear(), J = 0;
|
|
1850
1850
|
N && !z || (J = z > 0 ? z - 1 : j.getMonth());
|
|
1851
|
-
var
|
|
1852
|
-
return Z ? new Date(Date.UTC(X, J, K, ne, ce, he,
|
|
1851
|
+
var ae, ne = H || 0, ce = W || 0, he = q || 0, ie = Q || 0;
|
|
1852
|
+
return Z ? new Date(Date.UTC(X, J, K, ne, ce, he, ie + 60 * Z.offset * 1e3)) : p ? new Date(Date.UTC(X, J, K, ne, ce, he, ie)) : (ae = new Date(X, J, K, ne, ce, he, ie), U && (ae = h(ae).week(U).toDate()), ae);
|
|
1853
1853
|
} catch {
|
|
1854
1854
|
return /* @__PURE__ */ new Date("");
|
|
1855
1855
|
}
|
|
@@ -1891,23 +1891,23 @@ function xu(r) {
|
|
|
1891
1891
|
function gt(r, e) {
|
|
1892
1892
|
switch (e) {
|
|
1893
1893
|
case "instrumentCode":
|
|
1894
|
-
return r.instrumentCode ||
|
|
1894
|
+
return r.instrumentCode || oe;
|
|
1895
1895
|
case "scrtyCode":
|
|
1896
|
-
return r.scrtyCode ||
|
|
1896
|
+
return r.scrtyCode || oe;
|
|
1897
1897
|
case "fwdMaturityDate":
|
|
1898
|
-
return r.fwdMaturityDate ? du(r.fwdMaturityDate) :
|
|
1898
|
+
return r.fwdMaturityDate ? du(r.fwdMaturityDate) : oe;
|
|
1899
1899
|
case "settleDate":
|
|
1900
|
-
return r.settleDate ? du(r.settleDate) :
|
|
1900
|
+
return r.settleDate ? du(r.settleDate) : oe;
|
|
1901
1901
|
case "physicalDelivery":
|
|
1902
|
-
return r.physicalDelivery === "1" ? "实物交割" : r.physicalDelivery === "2" ? "现金交割" :
|
|
1902
|
+
return r.physicalDelivery === "1" ? "实物交割" : r.physicalDelivery === "2" ? "现金交割" : oe;
|
|
1903
1903
|
case "direction":
|
|
1904
|
-
return r.direction === "L" ? "买入" : r.direction === "S" ? "卖出" :
|
|
1904
|
+
return r.direction === "L" ? "买入" : r.direction === "S" ? "卖出" : oe;
|
|
1905
1905
|
case "fwdDlvPrice":
|
|
1906
|
-
return r.fwdDlvPrice ||
|
|
1906
|
+
return r.fwdDlvPrice || oe;
|
|
1907
1907
|
case "targtVol":
|
|
1908
1908
|
return Au(r.targtVol);
|
|
1909
1909
|
default:
|
|
1910
|
-
return
|
|
1910
|
+
return oe;
|
|
1911
1911
|
}
|
|
1912
1912
|
}
|
|
1913
1913
|
function pt(r, e, u) {
|
|
@@ -1948,7 +1948,7 @@ function fn(r) {
|
|
|
1948
1948
|
section: Y.gridErrorSection
|
|
1949
1949
|
}, e[0] = n) : n = e[0];
|
|
1950
1950
|
let i;
|
|
1951
|
-
return e[1] !== t ? (i = /* @__PURE__ */ F(Ye, { className: Y.gridErrorAlert, classNames: n, type: "error", showIcon: !0, title: /* @__PURE__ */
|
|
1951
|
+
return e[1] !== t ? (i = /* @__PURE__ */ F(Ye, { className: Y.gridErrorAlert, classNames: n, type: "error", showIcon: !0, title: /* @__PURE__ */ we("span", { className: Y.gridErrorMessage, title: t, children: [
|
|
1952
1952
|
"计算失败,失败原因:",
|
|
1953
1953
|
t
|
|
1954
1954
|
] }) }), e[1] = t, e[2] = i) : i = e[2], i;
|
|
@@ -1963,7 +1963,7 @@ function gn(r) {
|
|
|
1963
1963
|
e[0] !== u ? (s = [{
|
|
1964
1964
|
id: "contract",
|
|
1965
1965
|
kind: "contract",
|
|
1966
|
-
...Object.fromEntries(cu.map((y) => [y.key, y.kind === "contract" ? gt(u, y.key) :
|
|
1966
|
+
...Object.fromEntries(cu.map((y) => [y.key, y.kind === "contract" ? gt(u, y.key) : oe]))
|
|
1967
1967
|
}], e[0] = u, e[1] = s) : s = e[1];
|
|
1968
1968
|
const m = s;
|
|
1969
1969
|
let E;
|
|
@@ -1971,13 +1971,13 @@ function gn(r) {
|
|
|
1971
1971
|
const g = E;
|
|
1972
1972
|
let f;
|
|
1973
1973
|
e[3] !== t || e[4] !== u.currency ? (f = (y) => {
|
|
1974
|
-
const
|
|
1975
|
-
...
|
|
1974
|
+
const M = y.getRowNode("contract"), $ = M?.data ? {
|
|
1975
|
+
...M.data
|
|
1976
1976
|
} : null;
|
|
1977
1977
|
if (mn.forEach((P) => {
|
|
1978
|
-
const O = t?.status === "success" ? pt(t.result, P, u.currency) :
|
|
1979
|
-
|
|
1980
|
-
}),
|
|
1978
|
+
const O = t?.status === "success" ? pt(t.result, P, u.currency) : oe;
|
|
1979
|
+
M?.setDataValue(P, O), $ && ($[P] = O);
|
|
1980
|
+
}), M && $ && M.setData($), l.current && (y.applyTransaction({
|
|
1981
1981
|
remove: [l.current]
|
|
1982
1982
|
}), l.current = null), t?.status === "error") {
|
|
1983
1983
|
const P = {
|
|
@@ -1991,18 +1991,18 @@ function gn(r) {
|
|
|
1991
1991
|
}
|
|
1992
1992
|
y.resetRowHeights();
|
|
1993
1993
|
}, e[3] = t, e[4] = u.currency, e[5] = f) : f = e[5];
|
|
1994
|
-
const
|
|
1994
|
+
const w = f;
|
|
1995
1995
|
let T, b;
|
|
1996
|
-
e[6] !==
|
|
1997
|
-
i.current &&
|
|
1998
|
-
}, b = [
|
|
1999
|
-
let
|
|
2000
|
-
e[9] !==
|
|
2001
|
-
i.current = y.api,
|
|
2002
|
-
}, e[9] =
|
|
2003
|
-
const D =
|
|
2004
|
-
let
|
|
2005
|
-
return e[11] !== n || e[12] !== D || e[13] !== m ? (
|
|
1996
|
+
e[6] !== w ? (T = () => {
|
|
1997
|
+
i.current && w(i.current);
|
|
1998
|
+
}, b = [w], e[6] = w, e[7] = T, e[8] = b) : (T = e[7], b = e[8]), ve(T, b);
|
|
1999
|
+
let k;
|
|
2000
|
+
e[9] !== w ? (k = (y) => {
|
|
2001
|
+
i.current = y.api, w(y.api);
|
|
2002
|
+
}, e[9] = w, e[10] = k) : k = e[10];
|
|
2003
|
+
const D = k;
|
|
2004
|
+
let _;
|
|
2005
|
+
return e[11] !== n || e[12] !== D || e[13] !== m ? (_ = /* @__PURE__ */ F("div", { className: Y.fixedGrid, "aria-label": "单笔合约定价结果", children: /* @__PURE__ */ F(yu, { rowData: m, columnDefs: g, defaultColDef: En, onGridReady: D, getRowId: vn, isFullWidthRow: Cn, fullWidthCellRenderer: fn, getRowHeight: pn, headerHeight: 32, rowHeight: 32, autoSizeStrategy: Fn, autoSizePadding: 16, suppressColumnVirtualisation: !0, tooltipShowMode: "whenTruncated", tooltipShowDelay: 0, domLayout: "autoHeight", pagination: !1, loading: n, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }) }), e[11] = n, e[12] = D, e[13] = m, e[14] = _) : _ = e[14], _;
|
|
2006
2006
|
}
|
|
2007
2007
|
function pn(r) {
|
|
2008
2008
|
return r.data?.kind === "error" ? 28 : 32;
|
|
@@ -2021,7 +2021,7 @@ function hn(r) {
|
|
|
2021
2021
|
sortable: !1,
|
|
2022
2022
|
resizable: !1,
|
|
2023
2023
|
suppressMovable: !0,
|
|
2024
|
-
cellRenderer: (e) => r.kind === "result" ? /* @__PURE__ */ F(Et, { value: String(e.value ??
|
|
2024
|
+
cellRenderer: (e) => r.kind === "result" ? /* @__PURE__ */ F(Et, { value: String(e.value ?? oe) }) : /* @__PURE__ */ F(Ft, { field: r.key, value: String(e.value ?? oe) })
|
|
2025
2025
|
};
|
|
2026
2026
|
}
|
|
2027
2027
|
const Tu = ue((r, e) => {
|
|
@@ -2035,7 +2035,7 @@ const Dn = ["npv", "forwardPrice", "discountFactor"], Bn = {
|
|
|
2035
2035
|
suppressHeaderContextMenu: !0
|
|
2036
2036
|
}, Lu = {
|
|
2037
2037
|
kind: "empty",
|
|
2038
|
-
display:
|
|
2038
|
+
display: oe
|
|
2039
2039
|
};
|
|
2040
2040
|
function Ke(r) {
|
|
2041
2041
|
return !!(r && typeof r == "object" && "kind" in r);
|
|
@@ -2058,12 +2058,12 @@ function yn(r) {
|
|
|
2058
2058
|
}), e[3] = t, e[4] = o) : o = e[4], g = E.map(o), e[0] = t, e[1] = E, e[2] = g;
|
|
2059
2059
|
} else
|
|
2060
2060
|
g = e[2];
|
|
2061
|
-
const f = g,
|
|
2062
|
-
let
|
|
2063
|
-
e[5] !==
|
|
2061
|
+
const f = g, w = l ? "" : "字段", T = l ? 160 : 180, b = l ? 160 : 180;
|
|
2062
|
+
let k;
|
|
2063
|
+
e[5] !== w || e[6] !== T || e[7] !== b ? (k = {
|
|
2064
2064
|
field: "label",
|
|
2065
2065
|
colId: "field",
|
|
2066
|
-
headerName:
|
|
2066
|
+
headerName: w,
|
|
2067
2067
|
pinned: "left",
|
|
2068
2068
|
lockPinned: !0,
|
|
2069
2069
|
width: T,
|
|
@@ -2072,9 +2072,9 @@ function yn(r) {
|
|
|
2072
2072
|
resizable: !1,
|
|
2073
2073
|
suppressMovable: !0,
|
|
2074
2074
|
cellClass: Y.fieldCell
|
|
2075
|
-
}, e[5] =
|
|
2075
|
+
}, e[5] = w, e[6] = T, e[7] = b, e[8] = k) : k = e[8];
|
|
2076
2076
|
let D;
|
|
2077
|
-
if (e[9] !== t || e[10] !== l || e[11] !==
|
|
2077
|
+
if (e[9] !== t || e[10] !== l || e[11] !== k) {
|
|
2078
2078
|
let o;
|
|
2079
2079
|
e[13] !== l ? (o = (c, a) => ({
|
|
2080
2080
|
field: c.contractId,
|
|
@@ -2090,10 +2090,10 @@ function yn(r) {
|
|
|
2090
2090
|
spanRows: xn,
|
|
2091
2091
|
cellClass: Sn,
|
|
2092
2092
|
cellRenderer: An
|
|
2093
|
-
}), e[13] = l, e[14] = o) : o = e[14], D = [
|
|
2093
|
+
}), e[13] = l, e[14] = o) : o = e[14], D = [k, ...t.map(o)], e[9] = t, e[10] = l, e[11] = k, e[12] = D;
|
|
2094
2094
|
} else
|
|
2095
2095
|
D = e[12];
|
|
2096
|
-
const
|
|
2096
|
+
const _ = D;
|
|
2097
2097
|
let y;
|
|
2098
2098
|
e[15] !== t || e[16] !== n ? (y = (o) => {
|
|
2099
2099
|
Dn.forEach((c) => {
|
|
@@ -2119,11 +2119,11 @@ function yn(r) {
|
|
|
2119
2119
|
force: !0
|
|
2120
2120
|
}), o.resetRowHeights();
|
|
2121
2121
|
}, e[15] = t, e[16] = n, e[17] = y) : y = e[17];
|
|
2122
|
-
const
|
|
2122
|
+
const M = y;
|
|
2123
2123
|
let $, P;
|
|
2124
|
-
e[18] !==
|
|
2125
|
-
m.current &&
|
|
2126
|
-
}, P = [
|
|
2124
|
+
e[18] !== M ? ($ = () => {
|
|
2125
|
+
m.current && M(m.current);
|
|
2126
|
+
}, P = [M], e[18] = M, e[19] = $, e[20] = P) : ($ = e[19], P = e[20]), ve($, P);
|
|
2127
2127
|
let O;
|
|
2128
2128
|
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = (o) => {
|
|
2129
2129
|
s.current?.style.setProperty("--pricing-horizontal-scroll-left", `${o}px`);
|
|
@@ -2135,12 +2135,12 @@ function yn(r) {
|
|
|
2135
2135
|
}, e[22] = L) : L = e[22];
|
|
2136
2136
|
const A = L;
|
|
2137
2137
|
let x;
|
|
2138
|
-
e[23] !==
|
|
2139
|
-
m.current = o.api, v(o.api.getHorizontalPixelRange().left),
|
|
2140
|
-
}, e[23] =
|
|
2138
|
+
e[23] !== M ? (x = (o) => {
|
|
2139
|
+
m.current = o.api, v(o.api.getHorizontalPixelRange().left), M(o.api);
|
|
2140
|
+
}, e[23] = M, e[24] = x) : x = e[24];
|
|
2141
2141
|
const B = x, R = `${Y.multipleGrid}${l ? ` ${Y.singleGrid}` : ""}`, I = l ? "单笔合约定价结果" : "多笔合约定价结果";
|
|
2142
2142
|
let C;
|
|
2143
|
-
e[25] !==
|
|
2143
|
+
e[25] !== _ || e[26] !== i || e[27] !== B || e[28] !== f ? (C = /* @__PURE__ */ F(yu, { rowData: f, columnDefs: _, defaultColDef: Bn, onGridReady: B, onBodyScroll: A, getRowId: bn, headerHeight: 32, rowHeight: 28, domLayout: "autoHeight", pagination: !1, loading: i, enableCellSpan: !0, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }), e[25] = _, e[26] = i, e[27] = B, e[28] = f, e[29] = C) : C = e[29];
|
|
2144
2144
|
let d;
|
|
2145
2145
|
return e[30] !== R || e[31] !== I || e[32] !== C ? (d = /* @__PURE__ */ F("div", { ref: s, className: R, "aria-label": I, children: C }), e[30] = R, e[31] = I, e[32] = C, e[33] = d) : d = e[33], d;
|
|
2146
2146
|
}
|
|
@@ -2156,7 +2156,7 @@ function An(r) {
|
|
|
2156
2156
|
}
|
|
2157
2157
|
return /* @__PURE__ */ F(Et, { value: u.display, rawValue: u.rawValue });
|
|
2158
2158
|
}
|
|
2159
|
-
return e ? /* @__PURE__ */ F(Ft, { field: e, value: String(u ??
|
|
2159
|
+
return e ? /* @__PURE__ */ F(Ft, { field: e, value: String(u ?? oe) }) : null;
|
|
2160
2160
|
}
|
|
2161
2161
|
function Sn(r) {
|
|
2162
2162
|
return Ke(r.value) && r.value.kind === "error" ? Y.mergedErrorGridCell : void 0;
|
|
@@ -2210,14 +2210,14 @@ const Tn = ue((r, e) => {
|
|
|
2210
2210
|
const u = V.c(3);
|
|
2211
2211
|
let t;
|
|
2212
2212
|
return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ F(Re, { format: "YYYY-MM-DD", ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
|
|
2213
|
-
}),
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2213
|
+
}), ke = Tn;
|
|
2214
|
+
ke.RangePicker = Dt;
|
|
2215
|
+
ke.WeekPicker = yt;
|
|
2216
|
+
ke.MonthPicker = vt;
|
|
2217
|
+
ke.YearPicker = bt;
|
|
2218
|
+
ke.QuarterPicker = ht;
|
|
2219
|
+
ke.TimePicker = Bt;
|
|
2220
|
+
ke.displayName = "GZDatePicker";
|
|
2221
2221
|
const At = ue((r, e) => {
|
|
2222
2222
|
const u = V.c(13);
|
|
2223
2223
|
let t, n, i;
|
|
@@ -2236,7 +2236,7 @@ const At = ue((r, e) => {
|
|
|
2236
2236
|
}, u[4] = n, u[5] = l) : l = u[5];
|
|
2237
2237
|
const s = l, m = i;
|
|
2238
2238
|
let E;
|
|
2239
|
-
u[6] !== t || u[7] !== e || u[8] !== m ? (E = /* @__PURE__ */ F(
|
|
2239
|
+
u[6] !== t || u[7] !== e || u[8] !== m ? (E = /* @__PURE__ */ F(Me, { ref: e, ...m, children: t }), u[6] = t, u[7] = e, u[8] = m, u[9] = E) : E = u[9];
|
|
2240
2240
|
let g;
|
|
2241
2241
|
return u[10] !== E || u[11] !== s ? (g = /* @__PURE__ */ F(jt, { theme: s, children: E }), u[10] = E, u[11] = s, u[12] = g) : g = u[12], g;
|
|
2242
2242
|
});
|
|
@@ -2250,36 +2250,36 @@ const St = (r) => {
|
|
|
2250
2250
|
} = r, e[0] = r, e[1] = u, e[2] = t) : (u = e[1], t = e[2]);
|
|
2251
2251
|
const n = t;
|
|
2252
2252
|
let i;
|
|
2253
|
-
return e[3] !== u || e[4] !== n ? (i = /* @__PURE__ */ F(
|
|
2253
|
+
return e[3] !== u || e[4] !== n ? (i = /* @__PURE__ */ F(Me.Item, { ...n, children: u }), e[3] = u, e[4] = n, e[5] = i) : i = e[5], i;
|
|
2254
2254
|
};
|
|
2255
2255
|
St.displayName = "GZFormItem";
|
|
2256
2256
|
const xt = (r) => {
|
|
2257
2257
|
const e = V.c(2);
|
|
2258
2258
|
let u;
|
|
2259
|
-
return e[0] !== r ? (u = /* @__PURE__ */ F(
|
|
2259
|
+
return e[0] !== r ? (u = /* @__PURE__ */ F(Me.List, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
|
|
2260
2260
|
};
|
|
2261
2261
|
xt.displayName = "GZFormList";
|
|
2262
2262
|
const Tt = (r) => {
|
|
2263
2263
|
const e = V.c(2);
|
|
2264
2264
|
let u;
|
|
2265
|
-
return e[0] !== r ? (u = /* @__PURE__ */ F(
|
|
2265
|
+
return e[0] !== r ? (u = /* @__PURE__ */ F(Me.ErrorList, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
|
|
2266
2266
|
};
|
|
2267
2267
|
Tt.displayName = "GZErrorList";
|
|
2268
|
-
const
|
|
2268
|
+
const wt = (r) => {
|
|
2269
2269
|
const e = V.c(2);
|
|
2270
2270
|
let u;
|
|
2271
|
-
return e[0] !== r ? (u = /* @__PURE__ */ F(
|
|
2271
|
+
return e[0] !== r ? (u = /* @__PURE__ */ F(Me.Provider, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
|
|
2272
2272
|
};
|
|
2273
|
-
|
|
2273
|
+
wt.displayName = "GZFormProvider";
|
|
2274
2274
|
const De = At;
|
|
2275
2275
|
De.Item = St;
|
|
2276
2276
|
De.List = xt;
|
|
2277
2277
|
De.ErrorList = Tt;
|
|
2278
|
-
De.Provider =
|
|
2279
|
-
De.useForm =
|
|
2280
|
-
De.useFormInstance =
|
|
2281
|
-
De.useWatch =
|
|
2282
|
-
const
|
|
2278
|
+
De.Provider = wt;
|
|
2279
|
+
De.useForm = Me.useForm;
|
|
2280
|
+
De.useFormInstance = Me.useFormInstance;
|
|
2281
|
+
De.useWatch = Me.useWatch;
|
|
2282
|
+
const _t = ue((r, e) => {
|
|
2283
2283
|
const u = V.c(7);
|
|
2284
2284
|
let t, n;
|
|
2285
2285
|
u[0] !== r ? ({
|
|
@@ -2290,8 +2290,8 @@ const wt = ue((r, e) => {
|
|
|
2290
2290
|
let l;
|
|
2291
2291
|
return u[3] !== t || u[4] !== n || u[5] !== i ? (l = /* @__PURE__ */ F(fu.Option, { ref: i, ...n, children: t }), u[3] = t, u[4] = n, u[5] = i, u[6] = l) : l = u[6], l;
|
|
2292
2292
|
});
|
|
2293
|
-
|
|
2294
|
-
const
|
|
2293
|
+
_t.displayName = "GZSelectOption";
|
|
2294
|
+
const Mt = ue((r, e) => {
|
|
2295
2295
|
const u = V.c(7);
|
|
2296
2296
|
let t, n;
|
|
2297
2297
|
u[0] !== r ? ({
|
|
@@ -2302,27 +2302,27 @@ const _t = ue((r, e) => {
|
|
|
2302
2302
|
let l;
|
|
2303
2303
|
return u[3] !== t || u[4] !== n || u[5] !== i ? (l = /* @__PURE__ */ F(fu.OptGroup, { ref: i, ...n, children: t }), u[3] = t, u[4] = n, u[5] = i, u[6] = l) : l = u[6], l;
|
|
2304
2304
|
});
|
|
2305
|
-
|
|
2306
|
-
const
|
|
2305
|
+
Mt.displayName = "GZSelectOptGroup";
|
|
2306
|
+
const wn = ue((r, e) => {
|
|
2307
2307
|
const u = V.c(3), t = e;
|
|
2308
2308
|
let n;
|
|
2309
2309
|
return u[0] !== r || u[1] !== t ? (n = /* @__PURE__ */ F(fu, { ref: t, ...r }), u[0] = r, u[1] = t, u[2] = n) : n = u[2], n;
|
|
2310
|
-
}), Ne =
|
|
2311
|
-
Ne.Option =
|
|
2312
|
-
Ne.OptGroup =
|
|
2310
|
+
}), Ne = wn;
|
|
2311
|
+
Ne.Option = _t;
|
|
2312
|
+
Ne.OptGroup = Mt;
|
|
2313
2313
|
Ne.displayName = "GZSelect";
|
|
2314
2314
|
function Nu(r, e) {
|
|
2315
2315
|
if (r?.source !== "custom" || !e) return;
|
|
2316
2316
|
const u = r.executeDay ? xu(r.executeDay) : void 0;
|
|
2317
2317
|
return !u || u !== e ? "曲线日与估值日非同一日" : void 0;
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2319
|
+
function _n(r) {
|
|
2320
2320
|
const e = {};
|
|
2321
2321
|
return Object.keys($u).forEach((u) => {
|
|
2322
2322
|
r[u] || (e[u] = [$u[u]]);
|
|
2323
2323
|
}), r.valuationDate && !Ct(r.valuationDate) && (e.valuationDate = ["估值日格式必须为 YYYY-MM-DD"]), e;
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function Mn(r, e) {
|
|
2326
2326
|
if (!r || !Ct(r) || e.length === 0)
|
|
2327
2327
|
return {
|
|
2328
2328
|
latestSettlementDate: null,
|
|
@@ -2349,12 +2349,12 @@ function Ze(r) {
|
|
|
2349
2349
|
help: r?.join(";")
|
|
2350
2350
|
};
|
|
2351
2351
|
}
|
|
2352
|
-
function
|
|
2352
|
+
function kt(r, e, u = "") {
|
|
2353
2353
|
return r && e ? `${r}(${e})` : r || e || u;
|
|
2354
2354
|
}
|
|
2355
2355
|
function mu(r) {
|
|
2356
2356
|
if (!r) return "";
|
|
2357
|
-
const e =
|
|
2357
|
+
const e = kt(r.name, r.code, r.label);
|
|
2358
2358
|
return r.source === "custom" && r.executeDay ? `${e}-${xu(r.executeDay)}` : e;
|
|
2359
2359
|
}
|
|
2360
2360
|
function qe(r) {
|
|
@@ -2371,7 +2371,7 @@ function qe(r) {
|
|
|
2371
2371
|
let m;
|
|
2372
2372
|
return e[3] !== s || e[4] !== u || e[5] !== n ? (m = /* @__PURE__ */ F(Tu, { title: u, open: n, onOpenChange: l, children: s }), e[3] = s, e[4] = u, e[5] = n, e[6] = m) : m = e[6], m;
|
|
2373
2373
|
}
|
|
2374
|
-
function
|
|
2374
|
+
function kn(r) {
|
|
2375
2375
|
const e = V.c(110), {
|
|
2376
2376
|
mode: u,
|
|
2377
2377
|
layout: t,
|
|
@@ -2383,12 +2383,12 @@ function Mn(r) {
|
|
|
2383
2383
|
environmentsLoading: E,
|
|
2384
2384
|
curvesLoading: g,
|
|
2385
2385
|
curvesDisabled: f,
|
|
2386
|
-
disabled:
|
|
2386
|
+
disabled: w,
|
|
2387
2387
|
onChange: T
|
|
2388
|
-
} = r, b = u === "single" && t === "vertical",
|
|
2389
|
-
let
|
|
2390
|
-
e[0] !== l ? (
|
|
2391
|
-
const y =
|
|
2388
|
+
} = r, b = u === "single" && t === "vertical", k = u === "single" && t === "horizontal", D = u === "multiple" ? Y.multiple : b ? Y.single : Y.fixedSingle;
|
|
2389
|
+
let _;
|
|
2390
|
+
e[0] !== l ? (_ = l.map(Rn), e[0] = l, e[1] = _) : _ = e[1];
|
|
2391
|
+
const y = _, M = $n;
|
|
2392
2392
|
let $;
|
|
2393
2393
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = {
|
|
2394
2394
|
popup: {
|
|
@@ -2396,7 +2396,7 @@ function Mn(r) {
|
|
|
2396
2396
|
listItem: Y.selectPopupListItem
|
|
2397
2397
|
}
|
|
2398
2398
|
}, e[2] = $) : $ = e[2];
|
|
2399
|
-
const P =
|
|
2399
|
+
const P = k ? 420 : 432;
|
|
2400
2400
|
let O;
|
|
2401
2401
|
e[3] !== P ? (O = {
|
|
2402
2402
|
popupMatchSelectWidth: !1,
|
|
@@ -2416,14 +2416,14 @@ function Mn(r) {
|
|
|
2416
2416
|
e[6] !== n.carbonForwardCurve || e[7] !== n.valuationDate ? (A = Nu(n.carbonForwardCurve, n.valuationDate), e[6] = n.carbonForwardCurve, e[7] = n.valuationDate, e[8] = A) : A = e[8];
|
|
2417
2417
|
let x;
|
|
2418
2418
|
e[9] !== i.carbonForwardCurve ? (x = Ze(i.carbonForwardCurve), e[9] = i.carbonForwardCurve, e[10] = x) : x = e[10];
|
|
2419
|
-
const B =
|
|
2419
|
+
const B = w || f;
|
|
2420
2420
|
let R;
|
|
2421
|
-
e[11] !== m ? (R =
|
|
2421
|
+
e[11] !== m ? (R = M(m), e[11] = m, e[12] = R) : R = e[12];
|
|
2422
2422
|
const I = n.carbonForwardCurve?.key;
|
|
2423
2423
|
let C;
|
|
2424
2424
|
e[13] !== n.carbonForwardCurve ? (C = () => mu(n.carbonForwardCurve), e[13] = n.carbonForwardCurve, e[14] = C) : C = e[14];
|
|
2425
2425
|
let d;
|
|
2426
|
-
e[15] !== m || e[16] !== T ? (d = (
|
|
2426
|
+
e[15] !== m || e[16] !== T ? (d = (le) => T("carbonForwardCurve", m.find((te) => te.key === le) ?? null), e[15] = m, e[16] = T, e[17] = d) : d = e[17];
|
|
2427
2427
|
let o;
|
|
2428
2428
|
e[18] !== T ? (o = () => T("carbonForwardCurve", null), e[18] = T, e[19] = o) : o = e[19];
|
|
2429
2429
|
let c;
|
|
@@ -2437,14 +2437,14 @@ function Mn(r) {
|
|
|
2437
2437
|
e[34] !== n.discountCurve || e[35] !== n.valuationDate ? (S = Nu(n.discountCurve, n.valuationDate), e[34] = n.discountCurve, e[35] = n.valuationDate, e[36] = S) : S = e[36];
|
|
2438
2438
|
let N;
|
|
2439
2439
|
e[37] !== i.discountCurve ? (N = Ze(i.discountCurve), e[37] = i.discountCurve, e[38] = N) : N = e[38];
|
|
2440
|
-
const z =
|
|
2440
|
+
const z = w || f;
|
|
2441
2441
|
let G;
|
|
2442
|
-
e[39] !== s ? (G =
|
|
2442
|
+
e[39] !== s ? (G = M(s), e[39] = s, e[40] = G) : G = e[40];
|
|
2443
2443
|
const H = n.discountCurve?.key;
|
|
2444
2444
|
let W;
|
|
2445
2445
|
e[41] !== n.discountCurve ? (W = () => mu(n.discountCurve), e[41] = n.discountCurve, e[42] = W) : W = e[42];
|
|
2446
2446
|
let q;
|
|
2447
|
-
e[43] !== s || e[44] !== T ? (q = (
|
|
2447
|
+
e[43] !== s || e[44] !== T ? (q = (le) => T("discountCurve", s.find((te) => te.key === le) ?? null), e[43] = s, e[44] = T, e[45] = q) : q = e[45];
|
|
2448
2448
|
let Q;
|
|
2449
2449
|
e[46] !== T ? (Q = () => T("discountCurve", null), e[46] = T, e[47] = Q) : Q = e[47];
|
|
2450
2450
|
let Z;
|
|
@@ -2457,10 +2457,10 @@ function Mn(r) {
|
|
|
2457
2457
|
flex: "0 0 var(--pricing-form-label-width)"
|
|
2458
2458
|
}, e[61] = X) : X = e[61];
|
|
2459
2459
|
const J = b ? "1 1 0" : "0 0 var(--pricing-form-control-width)";
|
|
2460
|
-
let
|
|
2461
|
-
e[62] !== J ? (
|
|
2460
|
+
let ae;
|
|
2461
|
+
e[62] !== J ? (ae = {
|
|
2462
2462
|
flex: J
|
|
2463
|
-
}, e[62] = J, e[63] =
|
|
2463
|
+
}, e[62] = J, e[63] = ae) : ae = e[63];
|
|
2464
2464
|
const ne = `${Y.contextForm} ${D}`;
|
|
2465
2465
|
let ce;
|
|
2466
2466
|
e[64] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ce = {
|
|
@@ -2469,42 +2469,42 @@ function Mn(r) {
|
|
|
2469
2469
|
}, e[64] = ce) : ce = e[64];
|
|
2470
2470
|
let he;
|
|
2471
2471
|
e[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = /* @__PURE__ */ F(qe, { text: "定价环境" }), e[65] = he) : he = e[65];
|
|
2472
|
-
let
|
|
2473
|
-
e[66] !== i.pricingEnvironment ? (
|
|
2472
|
+
let ie;
|
|
2473
|
+
e[66] !== i.pricingEnvironment ? (ie = Ze(i.pricingEnvironment), e[66] = i.pricingEnvironment, e[67] = ie) : ie = e[67];
|
|
2474
2474
|
const Be = n.pricingEnvironment?.id;
|
|
2475
2475
|
let me;
|
|
2476
|
-
e[68] !== n.pricingEnvironment?.code || e[69] !== n.pricingEnvironment?.name ? (me = () =>
|
|
2476
|
+
e[68] !== n.pricingEnvironment?.code || e[69] !== n.pricingEnvironment?.name ? (me = () => kt(n.pricingEnvironment?.name, n.pricingEnvironment?.code), e[68] = n.pricingEnvironment?.code, e[69] = n.pricingEnvironment?.name, e[70] = me) : me = e[70];
|
|
2477
2477
|
let Ee;
|
|
2478
|
-
e[71] !== l || e[72] !== T ? (Ee = (
|
|
2478
|
+
e[71] !== l || e[72] !== T ? (Ee = (le) => T("pricingEnvironment", l.find((te) => te.id === le) ?? null), e[71] = l, e[72] = T, e[73] = Ee) : Ee = e[73];
|
|
2479
2479
|
let Fe;
|
|
2480
2480
|
e[74] !== T ? (Fe = () => T("pricingEnvironment", null), e[74] = T, e[75] = Fe) : Fe = e[75];
|
|
2481
2481
|
let be;
|
|
2482
|
-
e[76] !==
|
|
2482
|
+
e[76] !== w || e[77] !== y || e[78] !== E || e[79] !== v || e[80] !== Be || e[81] !== me || e[82] !== Ee || e[83] !== Fe ? (be = /* @__PURE__ */ F(Ne, { ...v, "aria-label": "定价环境", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: E, disabled: w, placeholder: "请选择定价环境", options: y, value: Be, labelRender: me, onChange: Ee, onClear: Fe }), e[76] = w, e[77] = y, e[78] = E, e[79] = v, e[80] = Be, e[81] = me, e[82] = Ee, e[83] = Fe, e[84] = be) : be = e[84];
|
|
2483
2483
|
let Ae;
|
|
2484
|
-
e[85] !==
|
|
2484
|
+
e[85] !== ie || e[86] !== be ? (Ae = /* @__PURE__ */ F(De.Item, { className: Y.contextFormItem, label: he, required: !0, ...ie, children: be }), e[85] = ie, e[86] = be, e[87] = Ae) : Ae = e[87];
|
|
2485
2485
|
const Se = b ? j : p, xe = b ? p : j;
|
|
2486
|
-
let
|
|
2487
|
-
e[88] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2486
|
+
let _e;
|
|
2487
|
+
e[88] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ F(qe, { text: "估值日" }), e[88] = _e) : _e = e[88];
|
|
2488
2488
|
let Ce;
|
|
2489
2489
|
e[89] !== i.valuationDate ? (Ce = Ze(i.valuationDate), e[89] = i.valuationDate, e[90] = Ce) : Ce = e[90];
|
|
2490
2490
|
let fe;
|
|
2491
2491
|
e[91] !== n.valuationDate ? (fe = n.valuationDate ? He(n.valuationDate) : null, e[91] = n.valuationDate, e[92] = fe) : fe = e[92];
|
|
2492
2492
|
let ge;
|
|
2493
|
-
e[93] !== T ? (ge = (
|
|
2494
|
-
const te = Array.isArray(
|
|
2493
|
+
e[93] !== T ? (ge = (le) => {
|
|
2494
|
+
const te = Array.isArray(le) ? le[0] : le;
|
|
2495
2495
|
T("valuationDate", te?.format("YYYY-MM-DD") ?? null);
|
|
2496
2496
|
}, e[93] = T, e[94] = ge) : ge = e[94];
|
|
2497
2497
|
let ye;
|
|
2498
|
-
e[95] !==
|
|
2498
|
+
e[95] !== w || e[96] !== fe || e[97] !== ge ? (ye = /* @__PURE__ */ F(ke, { "aria-label": "估值日", allowClear: !0, disabled: w, value: fe, onChange: ge }), e[95] = w, e[96] = fe, e[97] = ge, e[98] = ye) : ye = e[98];
|
|
2499
2499
|
let re;
|
|
2500
|
-
e[99] !== Ce || e[100] !== ye ? (re = /* @__PURE__ */ F(De.Item, { className: Y.contextFormItem, label:
|
|
2500
|
+
e[99] !== Ce || e[100] !== ye ? (re = /* @__PURE__ */ F(De.Item, { className: Y.contextFormItem, label: _e, required: !0, ...Ce, children: ye }), e[99] = Ce, e[100] = ye, e[101] = re) : re = e[101];
|
|
2501
2501
|
let Te;
|
|
2502
|
-
return e[102] !== K || e[103] !==
|
|
2502
|
+
return e[102] !== K || e[103] !== ae || e[104] !== ne || e[105] !== Ae || e[106] !== Se || e[107] !== xe || e[108] !== re ? (Te = /* @__PURE__ */ we(De, { component: "div", layout: "horizontal", labelAlign: K, labelCol: X, wrapperCol: ae, colon: !1, requiredMark: !0, className: ne, classNames: ce, children: [
|
|
2503
2503
|
Ae,
|
|
2504
2504
|
Se,
|
|
2505
2505
|
xe,
|
|
2506
2506
|
re
|
|
2507
|
-
] }), e[102] = K, e[103] =
|
|
2507
|
+
] }), e[102] = K, e[103] = ae, e[104] = ne, e[105] = Ae, e[106] = Se, e[107] = xe, e[108] = re, e[109] = Te) : Te = e[109], Te;
|
|
2508
2508
|
}
|
|
2509
2509
|
function $n(r) {
|
|
2510
2510
|
return r.map(In);
|
|
@@ -2535,17 +2535,17 @@ function Pn(r) {
|
|
|
2535
2535
|
let g;
|
|
2536
2536
|
e[0] !== n || e[1] !== t || e[2] !== u || e[3] !== m || e[4] !== l ? (g = u === "multiple" || t === "horizontal" ? /* @__PURE__ */ F(Le, { className: Y.navigateButton, icon: /* @__PURE__ */ F("span", { className: Y.navigateIcon, "aria-hidden": "true" }), iconPlacement: "end", disabled: n || l || !m, onClick: m, children: "转定价界面" }) : null, e[0] = n, e[1] = t, e[2] = u, e[3] = m, e[4] = l, e[5] = g) : g = e[5];
|
|
2537
2537
|
const f = n || l;
|
|
2538
|
-
let
|
|
2539
|
-
e[6] !== s || e[7] !== f ? (
|
|
2538
|
+
let w;
|
|
2539
|
+
e[6] !== s || e[7] !== f ? (w = /* @__PURE__ */ F(Le, { disabled: f, onClick: s, children: "重置" }), e[6] = s, e[7] = f, e[8] = w) : w = e[8];
|
|
2540
2540
|
const T = n || i;
|
|
2541
2541
|
let b;
|
|
2542
2542
|
e[9] !== E || e[10] !== l || e[11] !== T ? (b = /* @__PURE__ */ F(Le, { type: "primary", loading: l, disabled: T, onClick: E, children: "计算" }), e[9] = E, e[10] = l, e[11] = T, e[12] = b) : b = e[12];
|
|
2543
|
-
let
|
|
2544
|
-
return e[13] !== g || e[14] !==
|
|
2543
|
+
let k;
|
|
2544
|
+
return e[13] !== g || e[14] !== w || e[15] !== b ? (k = /* @__PURE__ */ we("div", { className: Y.footer, children: [
|
|
2545
2545
|
g,
|
|
2546
|
-
|
|
2546
|
+
w,
|
|
2547
2547
|
b
|
|
2548
|
-
] }), e[13] = g, e[14] =
|
|
2548
|
+
] }), e[13] = g, e[14] = w, e[15] = b, e[16] = k) : k = e[16], k;
|
|
2549
2549
|
}
|
|
2550
2550
|
const Ln = {
|
|
2551
2551
|
environments: "定价环境",
|
|
@@ -2969,18 +2969,18 @@ function uo(r) {
|
|
|
2969
2969
|
contracts: e,
|
|
2970
2970
|
productType: u,
|
|
2971
2971
|
dataSource: t
|
|
2972
|
-
} = r, [n, i] = Ut(zn, void 0, () => On(e.map((o) => o.contractId))), l = ee(!0), s = ee(0), m = ee(0), E = ee(null), g = ee(null), f = ee(null),
|
|
2972
|
+
} = r, [n, i] = Ut(zn, void 0, () => On(e.map((o) => o.contractId))), l = ee(!0), s = ee(0), m = ee(0), E = ee(null), g = ee(null), f = ee(null), w = ee(/* @__PURE__ */ new Map()), [T, b] = Oe(0), k = ee(/* @__PURE__ */ new Map());
|
|
2973
2973
|
ve(() => () => {
|
|
2974
|
-
l.current = !1, g.current?.abort(), f.current?.abort(),
|
|
2974
|
+
l.current = !1, g.current?.abort(), f.current?.abort(), w.current.forEach((o) => o.abort());
|
|
2975
2975
|
}, []);
|
|
2976
2976
|
const D = pe(async (o) => {
|
|
2977
2977
|
if (n.resources[o].attempts >= su) return;
|
|
2978
2978
|
i({
|
|
2979
2979
|
type: "resource/loading",
|
|
2980
2980
|
key: o
|
|
2981
|
-
}),
|
|
2981
|
+
}), w.current.get(o)?.abort();
|
|
2982
2982
|
const c = new AbortController();
|
|
2983
|
-
|
|
2983
|
+
w.current.set(o, c);
|
|
2984
2984
|
try {
|
|
2985
2985
|
let a;
|
|
2986
2986
|
switch (o) {
|
|
@@ -3046,11 +3046,11 @@ function uo(r) {
|
|
|
3046
3046
|
error: a instanceof Error ? a.message : Yu[o]
|
|
3047
3047
|
});
|
|
3048
3048
|
}
|
|
3049
|
-
}, [t, n.resources]),
|
|
3049
|
+
}, [t, n.resources]), _ = ee(!1);
|
|
3050
3050
|
ve(() => {
|
|
3051
|
-
|
|
3051
|
+
_.current || (_.current = !0, Promise.allSettled(Object.keys(Yu).map((o) => D(o))));
|
|
3052
3052
|
}, [D]);
|
|
3053
|
-
const y = Pe(() => [...n.resources.discountDefinitions.data, ...n.resources.customDiscountCurves.data, ...n.resources.carbonDefinitions.data, ...n.resources.customCarbonCurves.data], [n.resources]),
|
|
3053
|
+
const y = Pe(() => [...n.resources.discountDefinitions.data, ...n.resources.customDiscountCurves.data, ...n.resources.carbonDefinitions.data, ...n.resources.customCarbonCurves.data], [n.resources]), M = Pe(() => y.filter((o) => o.kind === "discount"), [y]), $ = Pe(() => y.filter((o) => o.kind === "carbonForward"), [y]), P = ee(y);
|
|
3054
3054
|
ve(() => {
|
|
3055
3055
|
P.current = y;
|
|
3056
3056
|
}, [y]);
|
|
@@ -3068,20 +3068,20 @@ function uo(r) {
|
|
|
3068
3068
|
i({
|
|
3069
3069
|
type: "environment-curves/loading"
|
|
3070
3070
|
});
|
|
3071
|
-
let p =
|
|
3071
|
+
let p = k.current.get(a);
|
|
3072
3072
|
return p || (p = t.getEnvironmentCurveSelection({
|
|
3073
3073
|
pricingEnvId: v.id,
|
|
3074
3074
|
productType: u
|
|
3075
3075
|
}, {
|
|
3076
3076
|
signal: o.signal
|
|
3077
|
-
}).then((h) => Xn($e("getEnvironmentCurveSelection", h))),
|
|
3077
|
+
}).then((h) => Xn($e("getEnvironmentCurveSelection", h))), k.current.set(a, p)), p.then((h) => {
|
|
3078
3078
|
!l.current || c !== s.current || i({
|
|
3079
3079
|
type: "environment-curves/success",
|
|
3080
3080
|
discountCurve: h ? O(h.discountCurve, v.currency) : null,
|
|
3081
3081
|
carbonForwardCurve: h ? O(h.carbonForwardCurve, v.currency) : null
|
|
3082
3082
|
});
|
|
3083
3083
|
}).catch((h) => {
|
|
3084
|
-
|
|
3084
|
+
k.current.delete(a), !o.signal.aborted && (!l.current || c !== s.current || i({
|
|
3085
3085
|
type: "environment-curves/error",
|
|
3086
3086
|
error: h instanceof Error ? h.message : "环境关联曲线加载失败"
|
|
3087
3087
|
}));
|
|
@@ -3128,7 +3128,7 @@ function uo(r) {
|
|
|
3128
3128
|
if (e.length === 0) return {
|
|
3129
3129
|
kind: "empty"
|
|
3130
3130
|
};
|
|
3131
|
-
const o = A.current, c =
|
|
3131
|
+
const o = A.current, c = _n(o), a = Mn(o.valuationDate, e);
|
|
3132
3132
|
if (!a.valid && a.message && (c.valuationDate = [a.message]), i({
|
|
3133
3133
|
type: "context/errors",
|
|
3134
3134
|
errors: c
|
|
@@ -3191,7 +3191,7 @@ function uo(r) {
|
|
|
3191
3191
|
return {
|
|
3192
3192
|
state: n,
|
|
3193
3193
|
initialized: d,
|
|
3194
|
-
discountCurves:
|
|
3194
|
+
discountCurves: M,
|
|
3195
3195
|
carbonForwardCurves: $,
|
|
3196
3196
|
setContext: x,
|
|
3197
3197
|
retryResource: D,
|
|
@@ -3199,7 +3199,7 @@ function uo(r) {
|
|
|
3199
3199
|
if (!v || n.environmentCurvesAttempts >= su)
|
|
3200
3200
|
return;
|
|
3201
3201
|
const o = JSON.stringify([v.id, u]);
|
|
3202
|
-
|
|
3202
|
+
k.current.delete(o), b((c) => c + 1);
|
|
3203
3203
|
},
|
|
3204
3204
|
calculate: R,
|
|
3205
3205
|
isCalculating: I,
|
|
@@ -3216,9 +3216,9 @@ const to = ue(function(e, u) {
|
|
|
3216
3216
|
dataSource: E,
|
|
3217
3217
|
showFooter: g,
|
|
3218
3218
|
onNavigateToPricingPage: f,
|
|
3219
|
-
className:
|
|
3219
|
+
className: w,
|
|
3220
3220
|
style: T
|
|
3221
|
-
} = e, b = n === void 0 ? "multiple" : n,
|
|
3221
|
+
} = e, b = n === void 0 ? "multiple" : n, k = i === void 0 ? "horizontal" : i, D = g === void 0 ? !0 : g, _ = b === "single" && k === "vertical", y = b === "single" && k === "horizontal", M = b === "multiple" ? Y.multiple : _ ? Y.single : Y.fixedSingle, {
|
|
3222
3222
|
message: $
|
|
3223
3223
|
} = vu.useApp();
|
|
3224
3224
|
let P;
|
|
@@ -3258,13 +3258,13 @@ const to = ue(function(e, u) {
|
|
|
3258
3258
|
const re = m.map(oo).filter(ao);
|
|
3259
3259
|
if (re.length === 0)
|
|
3260
3260
|
return $.info("所选合约成交编号为空,请返回重新选择"), !1;
|
|
3261
|
-
const Te = re.length < m.length,
|
|
3262
|
-
return f ? f(
|
|
3261
|
+
const Te = re.length < m.length, le = `/price-contracts-list?productType=${encodeURIComponent(s)}&instrumentCodes=${encodeURIComponent(re.join("&"))}&partialInstrumentCodeEmpty=${Te}`;
|
|
3262
|
+
return f ? f(le) : window.parent?.postMessage({
|
|
3263
3263
|
event: "g-navigate",
|
|
3264
3264
|
appId: l,
|
|
3265
3265
|
payload: {
|
|
3266
3266
|
appId: "GZ0303",
|
|
3267
|
-
routePath:
|
|
3267
|
+
routePath: le
|
|
3268
3268
|
},
|
|
3269
3269
|
timestamp: Date.now()
|
|
3270
3270
|
}, "*"), !0;
|
|
@@ -3320,15 +3320,15 @@ const to = ue(function(e, u) {
|
|
|
3320
3320
|
break e;
|
|
3321
3321
|
}
|
|
3322
3322
|
const re = b === "single", Te = !I.initialized || a.submitting;
|
|
3323
|
-
let
|
|
3324
|
-
t[48] !== B || t[49] !== a.resultByContractId || t[50] !== re || t[51] !== Te ? (
|
|
3323
|
+
let le;
|
|
3324
|
+
t[48] !== B || t[49] !== a.resultByContractId || t[50] !== re || t[51] !== Te ? (le = /* @__PURE__ */ F(yn, { single: re, contracts: B, results: a.resultByContractId, loading: Te }), t[48] = B, t[49] = a.resultByContractId, t[50] = re, t[51] = Te, t[52] = le) : le = t[52], J = le;
|
|
3325
3325
|
}
|
|
3326
|
-
const
|
|
3326
|
+
const ae = J;
|
|
3327
3327
|
let ne;
|
|
3328
|
-
t[53] !==
|
|
3328
|
+
t[53] !== w || t[54] !== M ? (ne = pu(Y.root, M, w), t[53] = w, t[54] = M, t[55] = ne) : ne = t[55];
|
|
3329
3329
|
const ce = a.submitting ? "submitting" : I.initialized ? "ready" : "loading", he = !I.initialized;
|
|
3330
|
-
let
|
|
3331
|
-
t[56] !==
|
|
3330
|
+
let ie;
|
|
3331
|
+
t[56] !== _ ? (ie = _ ? null : /* @__PURE__ */ F("h3", { className: Y.sectionTitle, children: "定价要素" }), t[56] = _, t[57] = ie) : ie = t[57];
|
|
3332
3332
|
let Be;
|
|
3333
3333
|
t[58] !== A || t[59] !== L ? (Be = A ? /* @__PURE__ */ F(Ye, { className: Y.limitAlert, type: "error", showIcon: !0, title: `最多支持1000笔,当前${L}笔,请返回重新选择` }) : null, t[58] = A, t[59] = L, t[60] = Be) : Be = t[60];
|
|
3334
3334
|
let me;
|
|
@@ -3341,28 +3341,28 @@ const to = ue(function(e, u) {
|
|
|
3341
3341
|
t[66] !== I.retryEnvironmentCurves || t[67] !== a.environmentCurvesAttempts || t[68] !== a.environmentCurvesError || t[69] !== a.environmentCurvesStatus ? (Fe = a.environmentCurvesStatus === "error" ? /* @__PURE__ */ F(Ye, { type: "error", showIcon: !0, title: "环境关联曲线加载失败", description: a.environmentCurvesError, action: /* @__PURE__ */ F(Le, { size: "small", disabled: a.environmentCurvesAttempts >= 3, onClick: I.retryEnvironmentCurves, children: "重试" }) }) : null, t[66] = I.retryEnvironmentCurves, t[67] = a.environmentCurvesAttempts, t[68] = a.environmentCurvesError, t[69] = a.environmentCurvesStatus, t[70] = Fe) : Fe = t[70];
|
|
3342
3342
|
const be = a.resources.environments.status === "loading", Ae = G || H;
|
|
3343
3343
|
let Se;
|
|
3344
|
-
t[71] !== I.carbonForwardCurves || t[72] !== I.discountCurves || t[73] !== I.setContext || t[74] !== H || t[75] !==
|
|
3344
|
+
t[71] !== I.carbonForwardCurves || t[72] !== I.discountCurves || t[73] !== I.setContext || t[74] !== H || t[75] !== k || t[76] !== b || t[77] !== a.context || t[78] !== a.contextErrors || t[79] !== a.resources.environments.data || t[80] !== a.submitting || t[81] !== be || t[82] !== Ae ? (Se = /* @__PURE__ */ F(kn, { mode: b, layout: k, value: a.context, errors: a.contextErrors, environments: a.resources.environments.data, discountCurves: I.discountCurves, carbonForwardCurves: I.carbonForwardCurves, environmentsLoading: be, curvesLoading: Ae, curvesDisabled: H, disabled: a.submitting, onChange: I.setContext }), t[71] = I.carbonForwardCurves, t[72] = I.discountCurves, t[73] = I.setContext, t[74] = H, t[75] = k, t[76] = b, t[77] = a.context, t[78] = a.contextErrors, t[79] = a.resources.environments.data, t[80] = a.submitting, t[81] = be, t[82] = Ae, t[83] = Se) : Se = t[83];
|
|
3345
3345
|
let xe;
|
|
3346
|
-
t[84] !==
|
|
3347
|
-
|
|
3346
|
+
t[84] !== ie || t[85] !== Be || t[86] !== Ee || t[87] !== Fe || t[88] !== Se ? (xe = /* @__PURE__ */ we("div", { className: Y.section, children: [
|
|
3347
|
+
ie,
|
|
3348
3348
|
Be,
|
|
3349
3349
|
Ee,
|
|
3350
3350
|
Fe,
|
|
3351
3351
|
Se
|
|
3352
|
-
] }), t[84] =
|
|
3353
|
-
let
|
|
3354
|
-
t[90] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3352
|
+
] }), t[84] = ie, t[85] = Be, t[86] = Ee, t[87] = Fe, t[88] = Se, t[89] = xe) : xe = t[89];
|
|
3353
|
+
let _e;
|
|
3354
|
+
t[90] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ F("div", { className: Y.sectionTitle, children: "定价结果" }), t[90] = _e) : _e = t[90];
|
|
3355
3355
|
let Ce;
|
|
3356
|
-
t[91] !==
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
] }), t[91] =
|
|
3356
|
+
t[91] !== ae ? (Ce = /* @__PURE__ */ we("div", { className: Y.section, children: [
|
|
3357
|
+
_e,
|
|
3358
|
+
ae
|
|
3359
|
+
] }), t[91] = ae, t[92] = Ce) : Ce = t[92];
|
|
3360
3360
|
let fe;
|
|
3361
|
-
t[93] !== N || t[94] !== z || t[95] !== j || t[96] !== Z || t[97] !== q || t[98] !==
|
|
3361
|
+
t[93] !== N || t[94] !== z || t[95] !== j || t[96] !== Z || t[97] !== q || t[98] !== k || t[99] !== b || t[100] !== D || t[101] !== a.submitting ? (fe = D ? /* @__PURE__ */ F(Pn, { mode: b, layout: k, allDisabled: N, calculateDisabled: z, submitting: a.submitting, onReset: q, onNavigateToPricingPage: Z, onCalculate: () => {
|
|
3362
3362
|
j();
|
|
3363
|
-
} }) : null, t[93] = N, t[94] = z, t[95] = j, t[96] = Z, t[97] = q, t[98] =
|
|
3363
|
+
} }) : null, t[93] = N, t[94] = z, t[95] = j, t[96] = Z, t[97] = q, t[98] = k, t[99] = b, t[100] = D, t[101] = a.submitting, t[102] = fe) : fe = t[102];
|
|
3364
3364
|
let ge;
|
|
3365
|
-
t[103] !== he || t[104] !== xe || t[105] !== Ce || t[106] !== fe ? (ge = /* @__PURE__ */
|
|
3365
|
+
t[103] !== he || t[104] !== xe || t[105] !== Ce || t[106] !== fe ? (ge = /* @__PURE__ */ we(hu, { spinning: he, description: "定价资源加载中", children: [
|
|
3366
3366
|
xe,
|
|
3367
3367
|
Ce,
|
|
3368
3368
|
fe
|
|
@@ -3551,9 +3551,9 @@ function ho({
|
|
|
3551
3551
|
locale: t,
|
|
3552
3552
|
theme: n
|
|
3553
3553
|
}) {
|
|
3554
|
-
const i = Pt(r, "ascending"), l = e === "price" ? "价格" : "NPV", s = i.map((
|
|
3555
|
-
date:
|
|
3556
|
-
}) => Fo(
|
|
3554
|
+
const i = Pt(r, "ascending"), l = e === "price" ? "价格" : "NPV", s = i.map((w) => Eo(w[e])), m = fo(s), E = go(s), g = vo(m), f = i.map(({
|
|
3555
|
+
date: w
|
|
3556
|
+
}) => Fo(w));
|
|
3557
3557
|
return {
|
|
3558
3558
|
// 数据或指标切换时使用 300ms 过渡动画。
|
|
3559
3559
|
animationDuration: 300,
|
|
@@ -3597,7 +3597,7 @@ function ho({
|
|
|
3597
3597
|
fontSize: n.fontSize
|
|
3598
3598
|
},
|
|
3599
3599
|
// 按当前币种和区域格式化提示框中的金额。
|
|
3600
|
-
valueFormatter: (
|
|
3600
|
+
valueFormatter: (w) => Eu(typeof w == "number" || typeof w == "string" ? w : null, u, t)
|
|
3601
3601
|
},
|
|
3602
3602
|
// 日期标签轴与符号基准线分离,避免全负数据把日期标签一起移动到顶部。
|
|
3603
3603
|
xAxis: [{
|
|
@@ -3674,9 +3674,9 @@ function ho({
|
|
|
3674
3674
|
// 纵轴标签使用主题次级文字色。
|
|
3675
3675
|
color: n.textSecondary,
|
|
3676
3676
|
// 刻度最多展示两位小数,并按当前区域添加数字分组格式。
|
|
3677
|
-
formatter: (
|
|
3677
|
+
formatter: (w) => new Intl.NumberFormat(t, {
|
|
3678
3678
|
maximumFractionDigits: 2
|
|
3679
|
-
}).format(
|
|
3679
|
+
}).format(w)
|
|
3680
3680
|
},
|
|
3681
3681
|
// 为每个纵轴主刻度绘制水平辅助线。
|
|
3682
3682
|
splitLine: {
|
|
@@ -3730,7 +3730,7 @@ function ho({
|
|
|
3730
3730
|
}]
|
|
3731
3731
|
};
|
|
3732
3732
|
}
|
|
3733
|
-
const Do = "
|
|
3733
|
+
const Do = "_root_onwmg_1", Bo = "_title_onwmg_12", yo = "_loading_onwmg_19", bo = "_content_onwmg_26", Ao = "_tablePanel_onwmg_32", So = "_chartPanel_onwmg_33", xo = "_table_onwmg_32", To = "_negativeValue_onwmg_69", wo = "_chartHeader_onwmg_76", _o = "_chartTitle_onwmg_85", Mo = "_chart_onwmg_33", ko = "_chartEmpty_onwmg_93", $o = "_chartScrollable_onwmg_102", Io = "_chartCanvas_onwmg_142", se = {
|
|
3734
3734
|
root: Do,
|
|
3735
3735
|
title: Bo,
|
|
3736
3736
|
loading: yo,
|
|
@@ -3739,10 +3739,10 @@ const Do = "_root_nkh0k_1", Bo = "_title_nkh0k_12", yo = "_loading_nkh0k_19", bo
|
|
|
3739
3739
|
chartPanel: So,
|
|
3740
3740
|
table: xo,
|
|
3741
3741
|
negativeValue: To,
|
|
3742
|
-
chartHeader:
|
|
3743
|
-
chartTitle:
|
|
3744
|
-
chart:
|
|
3745
|
-
chartEmpty:
|
|
3742
|
+
chartHeader: wo,
|
|
3743
|
+
chartTitle: _o,
|
|
3744
|
+
chart: Mo,
|
|
3745
|
+
chartEmpty: ko,
|
|
3746
3746
|
chartScrollable: $o,
|
|
3747
3747
|
chartCanvas: Io
|
|
3748
3748
|
};
|
|
@@ -3756,7 +3756,7 @@ function Po(r) {
|
|
|
3756
3756
|
locale: i,
|
|
3757
3757
|
theme: l,
|
|
3758
3758
|
className: s
|
|
3759
|
-
} = r, m = ee(null), E = ee(null), g = ee(null), f = u.length > Uu,
|
|
3759
|
+
} = r, m = ee(null), E = ee(null), g = ee(null), f = u.length > Uu, w = `${Math.max(u.length / Uu, 1) * 100}%`;
|
|
3760
3760
|
let T;
|
|
3761
3761
|
e[0] !== n || e[1] !== u || e[2] !== i || e[3] !== t || e[4] !== l ? (T = ho({
|
|
3762
3762
|
data: u,
|
|
@@ -3766,8 +3766,8 @@ function Po(r) {
|
|
|
3766
3766
|
theme: l
|
|
3767
3767
|
}), e[0] = n, e[1] = u, e[2] = i, e[3] = t, e[4] = l, e[5] = T) : T = e[5];
|
|
3768
3768
|
const b = T;
|
|
3769
|
-
let
|
|
3770
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3769
|
+
let k, D;
|
|
3770
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => {
|
|
3771
3771
|
const R = E.current;
|
|
3772
3772
|
if (!R)
|
|
3773
3773
|
return;
|
|
@@ -3779,15 +3779,15 @@ function Po(r) {
|
|
|
3779
3779
|
return d ? d.observe(R) : window.addEventListener("resize", C), () => {
|
|
3780
3780
|
d?.disconnect(), window.removeEventListener("resize", C), I.dispose(), g.current = null;
|
|
3781
3781
|
};
|
|
3782
|
-
}, D = [], e[6] =
|
|
3783
|
-
let
|
|
3784
|
-
e[8] !== b ? (
|
|
3782
|
+
}, D = [], e[6] = k, e[7] = D) : (k = e[6], D = e[7]), wu(k, D);
|
|
3783
|
+
let _, y;
|
|
3784
|
+
e[8] !== b ? (_ = () => {
|
|
3785
3785
|
g.current?.setOption(b, {
|
|
3786
3786
|
notMerge: !0
|
|
3787
3787
|
});
|
|
3788
|
-
}, y = [b], e[8] = b, e[9] =
|
|
3789
|
-
let
|
|
3790
|
-
e[11] !== f ? (
|
|
3788
|
+
}, y = [b], e[8] = b, e[9] = _, e[10] = y) : (_ = e[9], y = e[10]), ve(_, y);
|
|
3789
|
+
let M, $;
|
|
3790
|
+
e[11] !== f ? (M = () => {
|
|
3791
3791
|
const R = m.current;
|
|
3792
3792
|
if (!R || !f)
|
|
3793
3793
|
return;
|
|
@@ -3802,14 +3802,14 @@ function Po(r) {
|
|
|
3802
3802
|
}), () => {
|
|
3803
3803
|
R.removeEventListener("scroll", C), window.clearTimeout(I), delete R.dataset.scrolling;
|
|
3804
3804
|
};
|
|
3805
|
-
}, $ = [f], e[11] = f, e[12] =
|
|
3805
|
+
}, $ = [f], e[11] = f, e[12] = M, e[13] = $) : (M = e[12], $ = e[13]), ve(M, $);
|
|
3806
3806
|
let P;
|
|
3807
3807
|
e[14] !== f ? (P = () => {
|
|
3808
3808
|
const R = m.current;
|
|
3809
3809
|
!R || !f || (R.scrollLeft = R.scrollWidth - R.clientWidth);
|
|
3810
3810
|
}, e[14] = f, e[15] = P) : P = e[15];
|
|
3811
3811
|
let O;
|
|
3812
|
-
e[16] !== u || e[17] !== f ? (O = [u, f], e[16] = u, e[17] = f, e[18] = O) : O = e[18],
|
|
3812
|
+
e[16] !== u || e[17] !== f ? (O = [u, f], e[16] = u, e[17] = f, e[18] = O) : O = e[18], wu(P, O);
|
|
3813
3813
|
const v = t === "price" ? "价格" : "NPV";
|
|
3814
3814
|
let L;
|
|
3815
3815
|
e[19] !== s || e[20] !== f ? (L = pu(s, {
|
|
@@ -3817,9 +3817,9 @@ function Po(r) {
|
|
|
3817
3817
|
}), e[19] = s, e[20] = f, e[21] = L) : L = e[21];
|
|
3818
3818
|
const A = `按日期展示的${v}折线图`;
|
|
3819
3819
|
let x;
|
|
3820
|
-
e[22] !==
|
|
3821
|
-
width:
|
|
3822
|
-
} }), e[22] =
|
|
3820
|
+
e[22] !== w ? (x = /* @__PURE__ */ F("div", { ref: E, className: se.chartCanvas, style: {
|
|
3821
|
+
width: w
|
|
3822
|
+
} }), e[22] = w, e[23] = x) : x = e[23];
|
|
3823
3823
|
let B;
|
|
3824
3824
|
return e[24] !== f || e[25] !== L || e[26] !== A || e[27] !== x ? (B = /* @__PURE__ */ F("div", { ref: m, className: L, role: "img", "aria-label": A, "data-scrollable": f, children: x }), e[24] = f, e[25] = L, e[26] = A, e[27] = x, e[28] = B) : B = e[28], B;
|
|
3825
3825
|
}
|
|
@@ -3872,17 +3872,17 @@ function oa(r) {
|
|
|
3872
3872
|
status: "loading",
|
|
3873
3873
|
data: iu
|
|
3874
3874
|
}), e[0] = u, e[1] = t, e[2] = m) : m = e[2];
|
|
3875
|
-
const [E, g] = Oe(m), [f,
|
|
3876
|
-
let D,
|
|
3875
|
+
const [E, g] = Oe(m), [f, w] = Oe("price"), T = E.adapter === u && E.allVarCodeSnum === t, b = T ? E.status : "loading", k = T ? E.data : iu;
|
|
3876
|
+
let D, _;
|
|
3877
3877
|
e[3] !== u || e[4] !== t || e[5] !== l ? (D = () => {
|
|
3878
3878
|
const X = new AbortController();
|
|
3879
3879
|
let J = !0;
|
|
3880
|
-
const
|
|
3880
|
+
const ae = {
|
|
3881
3881
|
allVarCodeSnum: t,
|
|
3882
3882
|
endTime: co(/* @__PURE__ */ new Date()),
|
|
3883
3883
|
size: "30"
|
|
3884
3884
|
};
|
|
3885
|
-
return u.getValuationLogs(
|
|
3885
|
+
return u.getValuationLogs(ae, {
|
|
3886
3886
|
signal: X.signal
|
|
3887
3887
|
}).then((ne) => {
|
|
3888
3888
|
if (!J)
|
|
@@ -3904,10 +3904,10 @@ function oa(r) {
|
|
|
3904
3904
|
}), () => {
|
|
3905
3905
|
J = !1, X.abort();
|
|
3906
3906
|
};
|
|
3907
|
-
},
|
|
3907
|
+
}, _ = [u, t, l], e[3] = u, e[4] = t, e[5] = l, e[6] = D, e[7] = _) : (D = e[6], _ = e[7]), ve(D, _);
|
|
3908
3908
|
let y;
|
|
3909
|
-
e[8] !==
|
|
3910
|
-
const
|
|
3909
|
+
e[8] !== k ? (y = Pt(k, "descending").map(Zo), e[8] = k, e[9] = y) : y = e[9];
|
|
3910
|
+
const M = y, $ = k[0]?.currency || No;
|
|
3911
3911
|
let P;
|
|
3912
3912
|
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
|
|
3913
3913
|
headerName: "日期",
|
|
@@ -3970,7 +3970,7 @@ function oa(r) {
|
|
|
3970
3970
|
fontFamily: s.fontFamily,
|
|
3971
3971
|
fontSize: s.fontSize
|
|
3972
3972
|
}, e[20] = s.colorBgElevated, e[21] = s.colorBorder, e[22] = s.colorPrimary, e[23] = s.colorSplit, e[24] = s.colorText, e[25] = s.colorTextSecondary, e[26] = s.fontFamily, e[27] = s.fontSize, e[28] = R) : R = e[28];
|
|
3973
|
-
const I = R, C = b === "success", d =
|
|
3973
|
+
const I = R, C = b === "success", d = M.length > Yt;
|
|
3974
3974
|
let o;
|
|
3975
3975
|
e[29] !== n ? (o = pu(se.root, n), e[29] = n, e[30] = o) : o = e[30];
|
|
3976
3976
|
const c = b === "loading";
|
|
@@ -3983,7 +3983,7 @@ function oa(r) {
|
|
|
3983
3983
|
}, e[32] = h, e[33] = S) : S = e[33];
|
|
3984
3984
|
const N = d ? "normal" : "autoHeight";
|
|
3985
3985
|
let z;
|
|
3986
|
-
e[34] !== B || e[35] !== S || e[36] !== N || e[37] !== d || e[38] !==
|
|
3986
|
+
e[34] !== B || e[35] !== S || e[36] !== N || e[37] !== d || e[38] !== M ? (z = /* @__PURE__ */ F("div", { className: se.tablePanel, "aria-label": "估值日志表格", children: /* @__PURE__ */ F(yu, { className: se.table, containerStyle: S, domLayout: N, rowData: M, columnDefs: B, defaultColDef: zo, getRowId: Ho, headerHeight: zt, rowHeight: Vt, pagination: !1, noRowsOverlayComponent: Yo, suppressMovableColumns: !0, suppressCellFocus: !0, suppressContextMenu: !0, alwaysShowVerticalScroll: d }) }), e[34] = B, e[35] = S, e[36] = N, e[37] = d, e[38] = M, e[39] = z) : z = e[39];
|
|
3987
3987
|
let G;
|
|
3988
3988
|
e[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ F("h3", { className: se.chartTitle, children: "结果图形展示" }), e[40] = G) : G = e[40];
|
|
3989
3989
|
let H, W;
|
|
@@ -3997,29 +3997,29 @@ function oa(r) {
|
|
|
3997
3997
|
const {
|
|
3998
3998
|
target: J
|
|
3999
3999
|
} = X;
|
|
4000
|
-
return
|
|
4000
|
+
return w(J.value);
|
|
4001
4001
|
}, e[41] = H, e[42] = W) : (H = e[41], W = e[42]);
|
|
4002
4002
|
let q;
|
|
4003
|
-
e[43] !== f ? (q = /* @__PURE__ */
|
|
4003
|
+
e[43] !== f ? (q = /* @__PURE__ */ we("div", { className: se.chartHeader, children: [
|
|
4004
4004
|
G,
|
|
4005
4005
|
/* @__PURE__ */ F(uu.Group, { size: "small", optionType: "button", buttonStyle: "solid", "aria-label": "估值指标", value: f, options: H, onChange: W })
|
|
4006
4006
|
] }), e[43] = f, e[44] = q) : q = e[44];
|
|
4007
4007
|
let Q;
|
|
4008
|
-
e[45] !== I || e[46] !==
|
|
4008
|
+
e[45] !== I || e[46] !== k || e[47] !== f || e[48] !== $ || e[49] !== C || e[50] !== b ? (Q = C ? /* @__PURE__ */ F(Po, { className: se.chart, data: k, metric: f, currency: $, locale: lu, theme: I }) : b === "empty" ? /* @__PURE__ */ F(Gt, { className: se.chartEmpty, ariaLabel: "暂无估值曲线数据" }) : /* @__PURE__ */ F("div", { className: se.chartEmpty, "aria-label": "暂无估值曲线数据" }), e[45] = I, e[46] = k, e[47] = f, e[48] = $, e[49] = C, e[50] = b, e[51] = Q) : Q = e[51];
|
|
4009
4009
|
let Z;
|
|
4010
|
-
e[52] !== q || e[53] !== Q ? (Z = /* @__PURE__ */
|
|
4010
|
+
e[52] !== q || e[53] !== Q ? (Z = /* @__PURE__ */ we("section", { className: se.chartPanel, "aria-label": "估值日志图形展示", children: [
|
|
4011
4011
|
q,
|
|
4012
4012
|
Q
|
|
4013
4013
|
] }), e[52] = q, e[53] = Q, e[54] = Z) : Z = e[54];
|
|
4014
4014
|
let U;
|
|
4015
|
-
e[55] !== z || e[56] !== Z ? (U = /* @__PURE__ */
|
|
4015
|
+
e[55] !== z || e[56] !== Z ? (U = /* @__PURE__ */ we("div", { className: se.content, children: [
|
|
4016
4016
|
z,
|
|
4017
4017
|
Z
|
|
4018
4018
|
] }), e[55] = z, e[56] = Z, e[57] = U) : U = e[57];
|
|
4019
4019
|
let j;
|
|
4020
4020
|
e[58] !== p || e[59] !== U ? (j = /* @__PURE__ */ F(hu, { className: se.loading, spinning: p, description: "估值日志加载中", children: U }), e[58] = p, e[59] = U, e[60] = j) : j = e[60];
|
|
4021
4021
|
let K;
|
|
4022
|
-
return e[61] !== b || e[62] !== i || e[63] !== o || e[64] !== c || e[65] !== j ? (K = /* @__PURE__ */
|
|
4022
|
+
return e[61] !== b || e[62] !== i || e[63] !== o || e[64] !== c || e[65] !== j ? (K = /* @__PURE__ */ we("section", { className: o, style: i, "aria-label": "估值日志数据图表", "aria-busy": c, "data-status": b, children: [
|
|
4023
4023
|
a,
|
|
4024
4024
|
j
|
|
4025
4025
|
] }), e[61] = b, e[62] = i, e[63] = o, e[64] = c, e[65] = j, e[66] = K) : K = e[66], K;
|
|
@@ -4055,7 +4055,7 @@ export {
|
|
|
4055
4055
|
Ye as T,
|
|
4056
4056
|
oa as V,
|
|
4057
4057
|
vu as a,
|
|
4058
|
-
|
|
4058
|
+
ke as b,
|
|
4059
4059
|
V as c,
|
|
4060
4060
|
ze as d,
|
|
4061
4061
|
De as e,
|