gz-ui-web 1.1.2 → 1.1.3
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-DiLHOY5m.js → ValuationLogDataChart-D9Ku-mMT.js} +720 -737
- package/gz-ui-web-lib/{ValuationLogDataChart-DHFwTGcA.cjs → ValuationLogDataChart-DzmI0EJL.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/gz-ui-web.css +1 -1
- package/gz-ui-web-lib/index.cjs +2 -2
- package/gz-ui-web-lib/index.js +9 -3
- package/package.json +4 -5
package/gz-ui-web-lib/{ValuationLogDataChart-DiLHOY5m.js → ValuationLogDataChart-D9Ku-mMT.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as f, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { Alert as ju, App as Xu, Button as
|
|
1
|
+
import { jsx as f, jsxs as Me } from "react/jsx-runtime";
|
|
2
|
+
import qu, { forwardRef as ue, createContext as Ut, useRef as ee, useContext as Zu, useMemo as Le, useCallback as he, useEffect as Be, useState as ze, useReducer as Wt, useImperativeHandle as qt, useLayoutEffect as Mu } from "react";
|
|
3
|
+
import { Alert as ju, App as Xu, Button as Zt, Empty as Cu, Spin as Qu, theme as Ju, Tag as fu, Tooltip as jt, DatePicker as Pe, Form as we, ConfigProvider as Xt, Select as gu, Radio as pu } from "antd";
|
|
4
4
|
import He from "big.js";
|
|
5
5
|
import { AllEnterpriseModule as Qt } from "ag-grid-enterprise";
|
|
6
6
|
import { AgGridProvider as Jt, AgGridReact as Kt } from "ag-grid-react";
|
|
@@ -13,12 +13,12 @@ import { CanvasRenderer as ar } from "echarts/renderers";
|
|
|
13
13
|
function ut(r) {
|
|
14
14
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
15
15
|
}
|
|
16
|
-
var
|
|
17
|
-
var
|
|
16
|
+
var qe = { exports: {} }, ou = {};
|
|
17
|
+
var wu;
|
|
18
18
|
function ir() {
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
var r =
|
|
19
|
+
if (wu) return ou;
|
|
20
|
+
wu = 1;
|
|
21
|
+
var r = qu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
22
22
|
return ou.c = function(e) {
|
|
23
23
|
return r.H.useMemoCache(e);
|
|
24
24
|
}, ou;
|
|
@@ -27,7 +27,7 @@ var au = {};
|
|
|
27
27
|
var ku;
|
|
28
28
|
function lr() {
|
|
29
29
|
return ku || (ku = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
30
|
-
var r =
|
|
30
|
+
var r = qu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
31
31
|
au.c = function(e) {
|
|
32
32
|
var t = r.H;
|
|
33
33
|
return t === null && console.error(
|
|
@@ -42,9 +42,9 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
42
42
|
}
|
|
43
43
|
var $u;
|
|
44
44
|
function sr() {
|
|
45
|
-
return $u || ($u = 1, process.env.NODE_ENV === "production" ?
|
|
45
|
+
return $u || ($u = 1, process.env.NODE_ENV === "production" ? qe.exports = ir() : qe.exports = lr()), qe.exports;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
47
|
+
var z = sr();
|
|
48
48
|
function tt(r) {
|
|
49
49
|
var e, t, u = "";
|
|
50
50
|
if (typeof r == "string" || typeof r == "number") u += r;
|
|
@@ -59,13 +59,13 @@ function vu() {
|
|
|
59
59
|
return u;
|
|
60
60
|
}
|
|
61
61
|
const rt = ue((r, e) => {
|
|
62
|
-
const t =
|
|
62
|
+
const t = z.c(3);
|
|
63
63
|
let u;
|
|
64
64
|
return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(ju, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
|
|
65
65
|
});
|
|
66
66
|
rt.displayName = "GZAlert";
|
|
67
67
|
const cr = ju.ErrorBoundary, nt = (r) => {
|
|
68
|
-
const e =
|
|
68
|
+
const e = z.c(2);
|
|
69
69
|
let t;
|
|
70
70
|
return e[0] !== r ? (t = /* @__PURE__ */ f(cr, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
|
|
71
71
|
};
|
|
@@ -73,7 +73,7 @@ nt.displayName = "GZAlertErrorBoundary";
|
|
|
73
73
|
const Ge = rt;
|
|
74
74
|
Ge.ErrorBoundary = nt;
|
|
75
75
|
const ot = ue((r, e) => {
|
|
76
|
-
const t =
|
|
76
|
+
const t = z.c(3);
|
|
77
77
|
let u;
|
|
78
78
|
return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Xu, { ...r, ref: e }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
|
|
79
79
|
});
|
|
@@ -81,7 +81,7 @@ ot.displayName = "GZApp";
|
|
|
81
81
|
const hu = ot;
|
|
82
82
|
Object.assign(hu, Xu);
|
|
83
83
|
const Ne = ue((r, e) => {
|
|
84
|
-
const t =
|
|
84
|
+
const t = z.c(9);
|
|
85
85
|
let u, n, a;
|
|
86
86
|
t[0] !== r ? ({
|
|
87
87
|
children: u,
|
|
@@ -90,11 +90,11 @@ const Ne = ue((r, e) => {
|
|
|
90
90
|
} = r, t[0] = r, t[1] = u, t[2] = n, t[3] = a) : (u = t[1], n = t[2], a = t[3]);
|
|
91
91
|
const i = a === void 0 ? "default" : a;
|
|
92
92
|
let s;
|
|
93
|
-
return t[4] !== u || t[5] !== e || t[6] !== n || t[7] !== i ? (s = /* @__PURE__ */ f(
|
|
93
|
+
return t[4] !== u || t[5] !== e || t[6] !== n || t[7] !== i ? (s = /* @__PURE__ */ f(Zt, { ref: e, type: i, ...n, children: u }), t[4] = u, t[5] = e, t[6] = n, t[7] = i, t[8] = s) : s = t[8], s;
|
|
94
94
|
});
|
|
95
95
|
Ne.displayName = "GZButton";
|
|
96
96
|
const at = (r) => {
|
|
97
|
-
const e =
|
|
97
|
+
const e = z.c(2);
|
|
98
98
|
let t;
|
|
99
99
|
return e[0] !== r ? (t = /* @__PURE__ */ f(Cu, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
|
|
100
100
|
};
|
|
@@ -103,7 +103,7 @@ const Ve = at;
|
|
|
103
103
|
Ve.PRESENTED_IMAGE_DEFAULT = Cu.PRESENTED_IMAGE_DEFAULT;
|
|
104
104
|
Ve.PRESENTED_IMAGE_SIMPLE = Cu.PRESENTED_IMAGE_SIMPLE;
|
|
105
105
|
const it = (r) => {
|
|
106
|
-
const e =
|
|
106
|
+
const e = z.c(2);
|
|
107
107
|
let t;
|
|
108
108
|
return e[0] !== r ? (t = /* @__PURE__ */ f(Qu, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
|
|
109
109
|
};
|
|
@@ -1020,7 +1020,7 @@ var Er = {
|
|
|
1020
1020
|
notePlaceholder: "添加备注..."
|
|
1021
1021
|
};
|
|
1022
1022
|
const Fr = (r) => {
|
|
1023
|
-
const e =
|
|
1023
|
+
const e = z.c(2), {
|
|
1024
1024
|
text: t
|
|
1025
1025
|
} = r, u = t === void 0 ? "暂无符合条件的数据" : t;
|
|
1026
1026
|
let n;
|
|
@@ -1161,61 +1161,61 @@ const Fr = (r) => {
|
|
|
1161
1161
|
}, Dr = [Qt], Br = ["rowSummary", "pageSize", "pageSummary"], bu = ue((r, e) => {
|
|
1162
1162
|
const t = ee(null), {
|
|
1163
1163
|
themeMode: u
|
|
1164
|
-
} =
|
|
1164
|
+
} = Zu(lt), {
|
|
1165
1165
|
gridOptions: n
|
|
1166
|
-
} = r, a = r.pagination ?? n?.pagination ?? iu.pagination, i = r.paginationPanels ?? n?.paginationPanels, s = a && i === void 0, E = s ? Br : i,
|
|
1166
|
+
} = r, a = r.pagination ?? n?.pagination ?? iu.pagination, i = r.paginationPanels ?? n?.paginationPanels, s = a && i === void 0, E = s ? Br : i, F = u === "gold-dark" ? gr : u === "gold-light" ? pr : void 0, h = r.theme ?? n?.theme ?? F, p = Le(() => ({
|
|
1167
1167
|
...iu,
|
|
1168
1168
|
...n,
|
|
1169
1169
|
paginationPanels: E
|
|
1170
|
-
}), [n, E]),
|
|
1170
|
+
}), [n, E]), x = Le(() => ({
|
|
1171
1171
|
...iu.localeText,
|
|
1172
1172
|
...n?.localeText,
|
|
1173
1173
|
...r.localeText
|
|
1174
|
-
}), [n?.localeText, r.localeText]),
|
|
1174
|
+
}), [n?.localeText, r.localeText]), S = ["gz-table", a ? "gz-table-pagination" : void 0, s ? "gz-table-default-pagination-layout" : void 0, u === "gold-dark" ? "gz-table-gold-dark" : void 0, u === "gold-light" ? "gz-table-gold-light" : void 0, r.className].filter(Boolean).join(" "), I = Le(() => ({
|
|
1175
1175
|
...hr,
|
|
1176
1176
|
...n?.defaultColDef,
|
|
1177
1177
|
...r.defaultColDef
|
|
1178
|
-
}), [n?.defaultColDef, r.defaultColDef]),
|
|
1178
|
+
}), [n?.defaultColDef, r.defaultColDef]), b = he((D) => {
|
|
1179
1179
|
const R = t.current;
|
|
1180
1180
|
if (!R || !D) return;
|
|
1181
|
-
const
|
|
1182
|
-
if (
|
|
1181
|
+
const $ = R.querySelector(".ag-body-horizontal-scroll-viewport");
|
|
1182
|
+
if ($) {
|
|
1183
1183
|
const {
|
|
1184
|
-
scrollLeft:
|
|
1184
|
+
scrollLeft: v,
|
|
1185
1185
|
clientWidth: _,
|
|
1186
|
-
scrollWidth:
|
|
1187
|
-
} =
|
|
1188
|
-
R.classList.toggle("gz-table-ping-left",
|
|
1186
|
+
scrollWidth: k
|
|
1187
|
+
} = $, Y = v > 0, C = Math.ceil(v + _) < k - 1;
|
|
1188
|
+
R.classList.toggle("gz-table-ping-left", Y), R.classList.toggle("gz-table-ping-right", C);
|
|
1189
1189
|
} else
|
|
1190
1190
|
R.classList.remove("gz-table-ping-left", "gz-table-ping-right");
|
|
1191
|
-
}, []),
|
|
1192
|
-
D.direction === "horizontal" &&
|
|
1193
|
-
}, [
|
|
1194
|
-
|
|
1195
|
-
}, [
|
|
1196
|
-
|
|
1197
|
-
}, [
|
|
1198
|
-
|
|
1199
|
-
}, [
|
|
1200
|
-
|
|
1201
|
-
}, [
|
|
1191
|
+
}, []), g = he((D) => {
|
|
1192
|
+
D.direction === "horizontal" && b(D.api), r.onBodyScroll && r.onBodyScroll(D), n?.onBodyScroll && n.onBodyScroll(D);
|
|
1193
|
+
}, [b, r.onBodyScroll, n?.onBodyScroll]), T = he((D) => {
|
|
1194
|
+
b(D.api), r.onGridReady && r.onGridReady(D), n?.onGridReady && n.onGridReady(D);
|
|
1195
|
+
}, [b, r.onGridReady, n?.onGridReady]), y = he((D) => {
|
|
1196
|
+
b(D.api), r.onGridSizeChanged && r.onGridSizeChanged(D), n?.onGridSizeChanged && n.onGridSizeChanged(D);
|
|
1197
|
+
}, [b, r.onGridSizeChanged, n?.onGridSizeChanged]), M = he((D) => {
|
|
1198
|
+
b(D.api), r.onModelUpdated && r.onModelUpdated(D), n?.onModelUpdated && n.onModelUpdated(D);
|
|
1199
|
+
}, [b, r.onModelUpdated, n?.onModelUpdated]), P = he((D) => {
|
|
1200
|
+
b(D.api), r.onDisplayedColumnsChanged && r.onDisplayedColumnsChanged(D), n?.onDisplayedColumnsChanged && n.onDisplayedColumnsChanged(D);
|
|
1201
|
+
}, [b, r.onDisplayedColumnsChanged, n?.onDisplayedColumnsChanged]), w = r.getContextMenuItems ?? n?.getContextMenuItems, L = he((D) => {
|
|
1202
1202
|
const R = {
|
|
1203
1203
|
name: "复制整行数据",
|
|
1204
1204
|
icon: '<span class="ag-icon ag-icon-copy" unselectable="on" role="presentation"></span>',
|
|
1205
1205
|
action: () => {
|
|
1206
|
-
const
|
|
1207
|
-
if (!
|
|
1208
|
-
const
|
|
1209
|
-
const o = m.getColId(), l =
|
|
1206
|
+
const k = D.node;
|
|
1207
|
+
if (!k || !k.data) return;
|
|
1208
|
+
const C = (D.api.getAllDisplayedColumns() || []).map((m) => {
|
|
1209
|
+
const o = m.getColId(), l = k.data[o];
|
|
1210
1210
|
return typeof l == "object" ? JSON.stringify(l) : String(l ?? "");
|
|
1211
1211
|
}).join(" ");
|
|
1212
1212
|
if (navigator.clipboard && window.isSecureContext)
|
|
1213
|
-
navigator.clipboard.writeText(
|
|
1213
|
+
navigator.clipboard.writeText(C).catch((m) => {
|
|
1214
1214
|
console.error("复制整行数据失败: ", m);
|
|
1215
1215
|
});
|
|
1216
1216
|
else {
|
|
1217
1217
|
const m = document.createElement("textarea");
|
|
1218
|
-
m.value =
|
|
1218
|
+
m.value = C, m.style.position = "fixed", m.style.left = "-999999px", m.style.top = "-999999px", document.body.appendChild(m), m.focus(), m.select();
|
|
1219
1219
|
try {
|
|
1220
1220
|
document.execCommand("copy");
|
|
1221
1221
|
} catch (o) {
|
|
@@ -1225,37 +1225,37 @@ const Fr = (r) => {
|
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
1227
|
};
|
|
1228
|
-
let
|
|
1229
|
-
const
|
|
1230
|
-
return
|
|
1231
|
-
|
|
1228
|
+
let $ = D.defaultItems || [];
|
|
1229
|
+
const v = $.indexOf("copy");
|
|
1230
|
+
return v !== -1 && ($[v] = R), D.api.getRowGroupColumns().length > 0 && ($ = [
|
|
1231
|
+
...$,
|
|
1232
1232
|
"separator",
|
|
1233
1233
|
"expandAll",
|
|
1234
1234
|
"contractAll"
|
|
1235
1235
|
// AG Grid 中“收起全部”对应的内部指令是 contractAll
|
|
1236
1236
|
]), w ? w({
|
|
1237
1237
|
...D,
|
|
1238
|
-
defaultItems:
|
|
1239
|
-
}) :
|
|
1238
|
+
defaultItems: $
|
|
1239
|
+
}) : $;
|
|
1240
1240
|
}, [w]);
|
|
1241
1241
|
return /* @__PURE__ */ f("div", { ref: t, className: "gz-table-wrapper", style: {
|
|
1242
1242
|
height: "100%",
|
|
1243
1243
|
width: "100%",
|
|
1244
1244
|
display: "flex",
|
|
1245
1245
|
flexDirection: "column"
|
|
1246
|
-
}, children: /* @__PURE__ */ f(Jt, { modules: Dr, licenseKey: vr, children: /* @__PURE__ */ f(Kt, { ref: e, ...r, gridOptions:
|
|
1247
|
-
theme:
|
|
1248
|
-
}, className:
|
|
1249
|
-
}), yr = "_root_lxvvg_1", br = "_section_lxvvg_11", Ar = "_sectionTitle_lxvvg_17", Sr = "_contextForm_lxvvg_24", xr = "_fixedSingle_lxvvg_30", Tr = "_multiple_lxvvg_35",
|
|
1246
|
+
}, children: /* @__PURE__ */ f(Jt, { modules: Dr, licenseKey: vr, children: /* @__PURE__ */ f(Kt, { ref: e, ...r, gridOptions: p, ...h === void 0 ? {} : {
|
|
1247
|
+
theme: h
|
|
1248
|
+
}, className: S || void 0, defaultColDef: I, localeText: x, getContextMenuItems: L, onBodyScroll: g, onGridReady: T, onGridSizeChanged: y, onModelUpdated: M, onDisplayedColumnsChanged: P }) }) });
|
|
1249
|
+
}), yr = "_root_lxvvg_1", br = "_section_lxvvg_11", Ar = "_sectionTitle_lxvvg_17", Sr = "_contextForm_lxvvg_24", xr = "_fixedSingle_lxvvg_30", Tr = "_multiple_lxvvg_35", _r = "_single_lxvvg_40", Mr = "_contextFormItem_lxvvg_50", wr = "_contextFormLabel_lxvvg_53", kr = "_contextFormContent_lxvvg_57", $r = "_contextFormLabelText_lxvvg_82", Ir = "_selectPopup_lxvvg_92", Rr = "_selectPopupListItem_lxvvg_95", Pr = "_resourceIssues_lxvvg_111", Lr = "_limitAlert_lxvvg_115", Nr = "_fixedGrid_lxvvg_118", Or = "_multipleGrid_lxvvg_119", zr = "_singleGrid_lxvvg_156", Vr = "_fieldCell_lxvvg_160", Yr = "_singleContractHeader_lxvvg_165", Gr = "_negativeValue_lxvvg_194", Hr = "_gridErrorAlert_lxvvg_197", Ur = "_gridErrorIcon_lxvvg_209", Wr = "_gridErrorSection_lxvvg_212", qr = "_gridErrorMessage_lxvvg_216", Zr = "_mergedErrorGridCell_lxvvg_223", jr = "_mergedErrorCell_lxvvg_231", Xr = "_mergedErrorText_lxvvg_246", Qr = "_emptyState_lxvvg_252", Jr = "_footer_lxvvg_260", Kr = "_navigateButton_lxvvg_266", en = "_navigateIcon_lxvvg_269", V = {
|
|
1250
1250
|
root: yr,
|
|
1251
1251
|
section: br,
|
|
1252
1252
|
sectionTitle: Ar,
|
|
1253
1253
|
contextForm: Sr,
|
|
1254
1254
|
fixedSingle: xr,
|
|
1255
1255
|
multiple: Tr,
|
|
1256
|
-
single:
|
|
1257
|
-
contextFormItem:
|
|
1258
|
-
contextFormLabel:
|
|
1256
|
+
single: _r,
|
|
1257
|
+
contextFormItem: Mr,
|
|
1258
|
+
contextFormLabel: wr,
|
|
1259
1259
|
contextFormContent: kr,
|
|
1260
1260
|
contextFormLabelText: $r,
|
|
1261
1261
|
selectPopup: Ir,
|
|
@@ -1271,8 +1271,8 @@ const Fr = (r) => {
|
|
|
1271
1271
|
gridErrorAlert: Hr,
|
|
1272
1272
|
gridErrorIcon: Ur,
|
|
1273
1273
|
gridErrorSection: Wr,
|
|
1274
|
-
gridErrorMessage:
|
|
1275
|
-
mergedErrorGridCell:
|
|
1274
|
+
gridErrorMessage: qr,
|
|
1275
|
+
mergedErrorGridCell: Zr,
|
|
1276
1276
|
mergedErrorCell: jr,
|
|
1277
1277
|
mergedErrorText: Xr,
|
|
1278
1278
|
emptyState: Qr,
|
|
@@ -1344,7 +1344,7 @@ const Fr = (r) => {
|
|
|
1344
1344
|
borderColor: "transparent"
|
|
1345
1345
|
};
|
|
1346
1346
|
}, ct = ue((r, e) => {
|
|
1347
|
-
const t =
|
|
1347
|
+
const t = z.c(33);
|
|
1348
1348
|
let u, n, a, i, s;
|
|
1349
1349
|
t[0] !== r ? ({
|
|
1350
1350
|
color: u,
|
|
@@ -1354,37 +1354,37 @@ const Fr = (r) => {
|
|
|
1354
1354
|
...n
|
|
1355
1355
|
} = r, t[0] = r, t[1] = u, t[2] = n, t[3] = a, t[4] = i, t[5] = s) : (u = t[1], n = t[2], a = t[3], i = t[4], s = t[5]);
|
|
1356
1356
|
const E = s === void 0 ? "solid" : s, {
|
|
1357
|
-
themeMode:
|
|
1358
|
-
} =
|
|
1359
|
-
token:
|
|
1360
|
-
} = Ju.useToken(),
|
|
1361
|
-
let
|
|
1362
|
-
t[6] !== u || t[7] !==
|
|
1363
|
-
const
|
|
1364
|
-
let
|
|
1365
|
-
t[11] !== u || t[12] !==
|
|
1366
|
-
color: me(
|
|
1367
|
-
} : void 0, t[11] = u, t[12] =
|
|
1368
|
-
const
|
|
1369
|
-
let
|
|
1370
|
-
t[16] !== u || t[17] !==
|
|
1371
|
-
color: me(
|
|
1372
|
-
} : void 0, t[16] = u, t[17] =
|
|
1373
|
-
const y =
|
|
1374
|
-
let
|
|
1375
|
-
t[20] !==
|
|
1376
|
-
...
|
|
1357
|
+
themeMode: F
|
|
1358
|
+
} = Zu(lt), {
|
|
1359
|
+
token: h
|
|
1360
|
+
} = Ju.useToken(), p = h;
|
|
1361
|
+
let x;
|
|
1362
|
+
t[6] !== u || t[7] !== p || t[8] !== F || t[9] !== E ? (x = F === "gold-dark" ? tn(u, E, p) : F === "gold-light" ? rn(u, p) : void 0, t[6] = u, t[7] = p, t[8] = F, t[9] = E, t[10] = x) : x = t[10];
|
|
1363
|
+
const S = x;
|
|
1364
|
+
let I;
|
|
1365
|
+
t[11] !== u || t[12] !== p || t[13] !== F || t[14] !== E ? (I = F === "gold-dark" && E === "solid" && (u === "primary" || u === "default" || u === void 0) ? {
|
|
1366
|
+
color: me(p, "colorTextOnLight")
|
|
1367
|
+
} : void 0, t[11] = u, t[12] = p, t[13] = F, t[14] = E, t[15] = I) : I = t[15];
|
|
1368
|
+
const b = I;
|
|
1369
|
+
let g;
|
|
1370
|
+
t[16] !== u || t[17] !== p || t[18] !== F ? (g = F === "gold-light" && u === "primary" ? {
|
|
1371
|
+
color: me(p, "colorTextOnLight")
|
|
1372
|
+
} : void 0, t[16] = u, t[17] = p, t[18] = F, t[19] = g) : g = t[19];
|
|
1373
|
+
const y = b ?? g;
|
|
1374
|
+
let M;
|
|
1375
|
+
t[20] !== S || t[21] !== a ? (M = S ? {
|
|
1376
|
+
...S,
|
|
1377
1377
|
...a
|
|
1378
|
-
} : a, t[20] =
|
|
1379
|
-
const P =
|
|
1378
|
+
} : a, t[20] = S, t[21] = a, t[22] = M) : M = t[22];
|
|
1379
|
+
const P = M;
|
|
1380
1380
|
let w;
|
|
1381
|
-
t[23] !== y || t[24] !== i ? (w = y ? typeof i == "function" ? (
|
|
1382
|
-
const
|
|
1381
|
+
t[23] !== y || t[24] !== i ? (w = y ? typeof i == "function" ? ($) => {
|
|
1382
|
+
const v = i($);
|
|
1383
1383
|
return {
|
|
1384
|
-
...
|
|
1384
|
+
...v,
|
|
1385
1385
|
close: {
|
|
1386
1386
|
...y,
|
|
1387
|
-
...
|
|
1387
|
+
...v?.close
|
|
1388
1388
|
}
|
|
1389
1389
|
};
|
|
1390
1390
|
} : {
|
|
@@ -1394,19 +1394,19 @@ const Fr = (r) => {
|
|
|
1394
1394
|
...i?.close
|
|
1395
1395
|
}
|
|
1396
1396
|
} : i, t[23] = y, t[24] = i, t[25] = w) : w = t[25];
|
|
1397
|
-
const L = w, D =
|
|
1397
|
+
const L = w, D = F === "gold-dark" && u === "default" ? void 0 : u;
|
|
1398
1398
|
let R;
|
|
1399
1399
|
return t[26] !== D || t[27] !== P || t[28] !== L || t[29] !== e || t[30] !== n || t[31] !== E ? (R = /* @__PURE__ */ f(fu, { ref: e, color: D, variant: E, style: P, styles: L, ...n }), t[26] = D, t[27] = P, t[28] = L, t[29] = e, t[30] = n, t[31] = E, t[32] = R) : R = t[32], R;
|
|
1400
1400
|
});
|
|
1401
1401
|
ct.displayName = "GZTag";
|
|
1402
1402
|
const dt = ue((r, e) => {
|
|
1403
|
-
const t =
|
|
1403
|
+
const t = z.c(3);
|
|
1404
1404
|
let u;
|
|
1405
1405
|
return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(fu.CheckableTag, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
|
|
1406
1406
|
});
|
|
1407
1407
|
dt.displayName = "GZCheckableTag";
|
|
1408
1408
|
const mt = ue((r, e) => {
|
|
1409
|
-
const t =
|
|
1409
|
+
const t = z.c(3);
|
|
1410
1410
|
let u;
|
|
1411
1411
|
return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(fu.CheckableTagGroup, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
|
|
1412
1412
|
});
|
|
@@ -1453,12 +1453,12 @@ function nn(r) {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
}
|
|
1455
1455
|
function Ft(r) {
|
|
1456
|
-
const e =
|
|
1456
|
+
const e = z.c(3), t = nn(r.rawValue) ? V.negativeValue : void 0;
|
|
1457
1457
|
let u;
|
|
1458
1458
|
return e[0] !== r.value || e[1] !== t ? (u = /* @__PURE__ */ f("span", { className: t, children: r.value }), e[0] = r.value, e[1] = t, e[2] = u) : u = e[2], u;
|
|
1459
1459
|
}
|
|
1460
1460
|
function Ct(r) {
|
|
1461
|
-
const e =
|
|
1461
|
+
const e = z.c(4);
|
|
1462
1462
|
if (r.field === "direction") {
|
|
1463
1463
|
let u;
|
|
1464
1464
|
return e[0] !== r.value ? (u = r.value ? /* @__PURE__ */ f(Au, { variant: "outlined", color: r.value === "买入" ? "gold" : "green", children: r.value }) : "-", e[0] = r.value, e[1] = u) : u = e[1], u;
|
|
@@ -1472,55 +1472,55 @@ function an() {
|
|
|
1472
1472
|
(function(t, u) {
|
|
1473
1473
|
r.exports = u();
|
|
1474
1474
|
})(on, (function() {
|
|
1475
|
-
var t = 1e3, u = 6e4, n = 36e5, a = "millisecond", i = "second", s = "minute", E = "hour",
|
|
1476
|
-
var m = ["th", "st", "nd", "rd"], o =
|
|
1477
|
-
return "[" +
|
|
1478
|
-
} },
|
|
1479
|
-
var l = String(
|
|
1480
|
-
return !l || l.length >= m ?
|
|
1481
|
-
}, P = { s:
|
|
1482
|
-
var m = -
|
|
1483
|
-
return (m <= 0 ? "+" : "-") +
|
|
1484
|
-
}, m: function
|
|
1485
|
-
if (m.date() < o.date()) return -
|
|
1486
|
-
var l = 12 * (o.year() - m.year()) + (o.month() - m.month()), c = m.clone().add(l,
|
|
1475
|
+
var t = 1e3, u = 6e4, n = 36e5, a = "millisecond", i = "second", s = "minute", E = "hour", F = "day", h = "week", p = "month", x = "quarter", S = "year", I = "date", b = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|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
|
+
var m = ["th", "st", "nd", "rd"], o = C % 100;
|
|
1477
|
+
return "[" + C + (m[(o - 20) % 10] || m[o] || m[0]) + "]";
|
|
1478
|
+
} }, M = function(C, m, o) {
|
|
1479
|
+
var l = String(C);
|
|
1480
|
+
return !l || l.length >= m ? C : "" + Array(m + 1 - l.length).join(o) + C;
|
|
1481
|
+
}, P = { s: M, z: function(C) {
|
|
1482
|
+
var m = -C.utcOffset(), o = Math.abs(m), l = Math.floor(o / 60), c = o % 60;
|
|
1483
|
+
return (m <= 0 ? "+" : "-") + M(l, 2, "0") + ":" + M(c, 2, "0");
|
|
1484
|
+
}, m: function C(m, o) {
|
|
1485
|
+
if (m.date() < o.date()) return -C(o, m);
|
|
1486
|
+
var l = 12 * (o.year() - m.year()) + (o.month() - m.month()), c = m.clone().add(l, p), d = o - c < 0, B = m.clone().add(l + (d ? -1 : 1), p);
|
|
1487
1487
|
return +(-(l + (o - c) / (d ? c - B : B - c)) || 0);
|
|
1488
|
-
}, a: function(
|
|
1489
|
-
return
|
|
1490
|
-
}, p: function(
|
|
1491
|
-
return { M:
|
|
1492
|
-
}, u: function(
|
|
1493
|
-
return
|
|
1488
|
+
}, a: function(C) {
|
|
1489
|
+
return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
|
|
1490
|
+
}, p: function(C) {
|
|
1491
|
+
return { M: p, y: S, w: h, d: F, D: I, h: E, m: s, s: i, ms: a, Q: x }[C] || String(C || "").toLowerCase().replace(/s$/, "");
|
|
1492
|
+
}, u: function(C) {
|
|
1493
|
+
return C === void 0;
|
|
1494
1494
|
} }, w = "en", L = {};
|
|
1495
1495
|
L[w] = y;
|
|
1496
|
-
var D = "$isDayjsObject", R = function(
|
|
1497
|
-
return
|
|
1498
|
-
},
|
|
1496
|
+
var D = "$isDayjsObject", R = function(C) {
|
|
1497
|
+
return C instanceof k || !(!C || !C[D]);
|
|
1498
|
+
}, $ = function C(m, o, l) {
|
|
1499
1499
|
var c;
|
|
1500
1500
|
if (!m) return w;
|
|
1501
1501
|
if (typeof m == "string") {
|
|
1502
1502
|
var d = m.toLowerCase();
|
|
1503
1503
|
L[d] && (c = d), o && (L[d] = o, c = d);
|
|
1504
1504
|
var B = m.split("-");
|
|
1505
|
-
if (!c && B.length > 1) return
|
|
1505
|
+
if (!c && B.length > 1) return C(B[0]);
|
|
1506
1506
|
} else {
|
|
1507
|
-
var
|
|
1508
|
-
L[
|
|
1507
|
+
var A = m.name;
|
|
1508
|
+
L[A] = m, c = A;
|
|
1509
1509
|
}
|
|
1510
1510
|
return !l && c && (w = c), c || !l && w;
|
|
1511
|
-
},
|
|
1512
|
-
if (R(
|
|
1511
|
+
}, v = function(C, m) {
|
|
1512
|
+
if (R(C)) return C.clone();
|
|
1513
1513
|
var o = typeof m == "object" ? m : {};
|
|
1514
|
-
return o.date =
|
|
1514
|
+
return o.date = C, o.args = arguments, new k(o);
|
|
1515
1515
|
}, _ = P;
|
|
1516
|
-
_.l =
|
|
1517
|
-
return
|
|
1516
|
+
_.l = $, _.i = R, _.w = function(C, m) {
|
|
1517
|
+
return v(C, { locale: m.$L, utc: m.$u, x: m.$x, $offset: m.$offset });
|
|
1518
1518
|
};
|
|
1519
|
-
var
|
|
1520
|
-
function
|
|
1521
|
-
this.$L =
|
|
1519
|
+
var k = (function() {
|
|
1520
|
+
function C(o) {
|
|
1521
|
+
this.$L = $(o.locale, null, !0), this.parse(o), this.$x = this.$x || o.x || {}, this[D] = !0;
|
|
1522
1522
|
}
|
|
1523
|
-
var m =
|
|
1523
|
+
var m = C.prototype;
|
|
1524
1524
|
return m.parse = function(o) {
|
|
1525
1525
|
this.$d = (function(l) {
|
|
1526
1526
|
var c = l.date, d = l.utc;
|
|
@@ -1528,10 +1528,10 @@ function an() {
|
|
|
1528
1528
|
if (_.u(c)) return /* @__PURE__ */ new Date();
|
|
1529
1529
|
if (c instanceof Date) return new Date(c);
|
|
1530
1530
|
if (typeof c == "string" && !/Z$/i.test(c)) {
|
|
1531
|
-
var B = c.match(
|
|
1531
|
+
var B = c.match(g);
|
|
1532
1532
|
if (B) {
|
|
1533
|
-
var
|
|
1534
|
-
return d ? new Date(Date.UTC(B[1],
|
|
1533
|
+
var A = B[2] - 1 || 0, O = (B[7] || "0").substring(0, 3);
|
|
1534
|
+
return d ? new Date(Date.UTC(B[1], A, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, O)) : new Date(B[1], A, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, O);
|
|
1535
1535
|
}
|
|
1536
1536
|
}
|
|
1537
1537
|
return new Date(c);
|
|
@@ -1542,14 +1542,14 @@ function an() {
|
|
|
1542
1542
|
}, m.$utils = function() {
|
|
1543
1543
|
return _;
|
|
1544
1544
|
}, m.isValid = function() {
|
|
1545
|
-
return this.$d.toString() !==
|
|
1545
|
+
return this.$d.toString() !== b;
|
|
1546
1546
|
}, m.isSame = function(o, l) {
|
|
1547
|
-
var c =
|
|
1547
|
+
var c = v(o);
|
|
1548
1548
|
return this.startOf(l) <= c && c <= this.endOf(l);
|
|
1549
1549
|
}, m.isAfter = function(o, l) {
|
|
1550
|
-
return
|
|
1550
|
+
return v(o) < this.startOf(l);
|
|
1551
1551
|
}, m.isBefore = function(o, l) {
|
|
1552
|
-
return this.endOf(l) <
|
|
1552
|
+
return this.endOf(l) < v(o);
|
|
1553
1553
|
}, m.$g = function(o, l, c) {
|
|
1554
1554
|
return _.u(o) ? this[l] : this.set(c, o);
|
|
1555
1555
|
}, m.unix = function() {
|
|
@@ -1557,22 +1557,22 @@ function an() {
|
|
|
1557
1557
|
}, m.valueOf = function() {
|
|
1558
1558
|
return this.$d.getTime();
|
|
1559
1559
|
}, m.startOf = function(o, l) {
|
|
1560
|
-
var c = this, d = !!_.u(l) || l, B = _.p(o),
|
|
1561
|
-
var Q = _.w(c.$u ? Date.UTC(c.$y, H,
|
|
1562
|
-
return d ? Q : Q.endOf(
|
|
1563
|
-
}, O = function(
|
|
1564
|
-
return _.w(c.toDate()[
|
|
1560
|
+
var c = this, d = !!_.u(l) || l, B = _.p(o), A = function(Z, H) {
|
|
1561
|
+
var Q = _.w(c.$u ? Date.UTC(c.$y, H, Z) : new Date(c.$y, H, Z), c);
|
|
1562
|
+
return d ? Q : Q.endOf(F);
|
|
1563
|
+
}, O = function(Z, H) {
|
|
1564
|
+
return _.w(c.toDate()[Z].apply(c.toDate("s"), (d ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(H)), c);
|
|
1565
1565
|
}, N = this.$W, G = this.$M, W = this.$D, U = "set" + (this.$u ? "UTC" : "");
|
|
1566
1566
|
switch (B) {
|
|
1567
|
-
case
|
|
1568
|
-
return d ?
|
|
1569
|
-
case
|
|
1570
|
-
return d ?
|
|
1571
|
-
case
|
|
1572
|
-
var j = this.$locale().weekStart || 0,
|
|
1573
|
-
return
|
|
1574
|
-
case
|
|
1575
|
-
case
|
|
1567
|
+
case S:
|
|
1568
|
+
return d ? A(1, 0) : A(31, 11);
|
|
1569
|
+
case p:
|
|
1570
|
+
return d ? A(1, G) : A(0, G + 1);
|
|
1571
|
+
case h:
|
|
1572
|
+
var j = this.$locale().weekStart || 0, q = (N < j ? N + 7 : N) - j;
|
|
1573
|
+
return A(d ? W - q : W + (6 - q), G);
|
|
1574
|
+
case F:
|
|
1575
|
+
case I:
|
|
1576
1576
|
return O(U + "Hours", 0);
|
|
1577
1577
|
case E:
|
|
1578
1578
|
return O(U + "Minutes", 1);
|
|
@@ -1586,11 +1586,11 @@ function an() {
|
|
|
1586
1586
|
}, m.endOf = function(o) {
|
|
1587
1587
|
return this.startOf(o, !1);
|
|
1588
1588
|
}, m.$set = function(o, l) {
|
|
1589
|
-
var c, d = _.p(o), B = "set" + (this.$u ? "UTC" : ""),
|
|
1590
|
-
if (d ===
|
|
1591
|
-
var N = this.clone().set(
|
|
1592
|
-
N.$d[
|
|
1593
|
-
} else
|
|
1589
|
+
var c, d = _.p(o), B = "set" + (this.$u ? "UTC" : ""), A = (c = {}, c[F] = B + "Date", c[I] = B + "Date", c[p] = B + "Month", c[S] = B + "FullYear", c[E] = B + "Hours", c[s] = B + "Minutes", c[i] = B + "Seconds", c[a] = B + "Milliseconds", c)[d], O = d === F ? this.$D + (l - this.$W) : l;
|
|
1590
|
+
if (d === p || d === S) {
|
|
1591
|
+
var N = this.clone().set(I, 1);
|
|
1592
|
+
N.$d[A](O), N.init(), this.$d = N.set(I, Math.min(this.$D, N.daysInMonth())).$d;
|
|
1593
|
+
} else A && this.$d[A](O);
|
|
1594
1594
|
return this.init(), this;
|
|
1595
1595
|
}, m.set = function(o, l) {
|
|
1596
1596
|
return this.clone().$set(o, l);
|
|
@@ -1599,30 +1599,30 @@ function an() {
|
|
|
1599
1599
|
}, m.add = function(o, l) {
|
|
1600
1600
|
var c, d = this;
|
|
1601
1601
|
o = Number(o);
|
|
1602
|
-
var B = _.p(l),
|
|
1603
|
-
var W =
|
|
1602
|
+
var B = _.p(l), A = function(G) {
|
|
1603
|
+
var W = v(d);
|
|
1604
1604
|
return _.w(W.date(W.date() + Math.round(G * o)), d);
|
|
1605
1605
|
};
|
|
1606
|
-
if (B ===
|
|
1607
|
-
if (B ===
|
|
1608
|
-
if (B ===
|
|
1609
|
-
if (B ===
|
|
1606
|
+
if (B === p) return this.set(p, this.$M + o);
|
|
1607
|
+
if (B === S) return this.set(S, this.$y + o);
|
|
1608
|
+
if (B === F) return A(1);
|
|
1609
|
+
if (B === h) return A(7);
|
|
1610
1610
|
var O = (c = {}, c[s] = u, c[E] = n, c[i] = t, c)[B] || 1, N = this.$d.getTime() + o * O;
|
|
1611
1611
|
return _.w(N, this);
|
|
1612
1612
|
}, m.subtract = function(o, l) {
|
|
1613
1613
|
return this.add(-1 * o, l);
|
|
1614
1614
|
}, m.format = function(o) {
|
|
1615
1615
|
var l = this, c = this.$locale();
|
|
1616
|
-
if (!this.isValid()) return c.invalidDate ||
|
|
1617
|
-
var d = o || "YYYY-MM-DDTHH:mm:ssZ", B = _.z(this),
|
|
1616
|
+
if (!this.isValid()) return c.invalidDate || b;
|
|
1617
|
+
var d = o || "YYYY-MM-DDTHH:mm:ssZ", B = _.z(this), A = this.$H, O = this.$m, N = this.$M, G = c.weekdays, W = c.months, U = c.meridiem, j = function(H, Q, J, X) {
|
|
1618
1618
|
return H && (H[Q] || H(l, d)) || J[Q].slice(0, X);
|
|
1619
|
-
},
|
|
1620
|
-
return _.s(
|
|
1621
|
-
},
|
|
1619
|
+
}, q = function(H) {
|
|
1620
|
+
return _.s(A % 12 || 12, H, "0");
|
|
1621
|
+
}, Z = U || function(H, Q, J) {
|
|
1622
1622
|
var X = H < 12 ? "AM" : "PM";
|
|
1623
1623
|
return J ? X.toLowerCase() : X;
|
|
1624
1624
|
};
|
|
1625
|
-
return d.replace(
|
|
1625
|
+
return d.replace(T, (function(H, Q) {
|
|
1626
1626
|
return Q || (function(J) {
|
|
1627
1627
|
switch (J) {
|
|
1628
1628
|
case "YY":
|
|
@@ -1650,17 +1650,17 @@ function an() {
|
|
|
1650
1650
|
case "dddd":
|
|
1651
1651
|
return G[l.$W];
|
|
1652
1652
|
case "H":
|
|
1653
|
-
return String(
|
|
1653
|
+
return String(A);
|
|
1654
1654
|
case "HH":
|
|
1655
|
-
return _.s(
|
|
1655
|
+
return _.s(A, 2, "0");
|
|
1656
1656
|
case "h":
|
|
1657
|
-
return
|
|
1657
|
+
return q(1);
|
|
1658
1658
|
case "hh":
|
|
1659
|
-
return
|
|
1659
|
+
return q(2);
|
|
1660
1660
|
case "a":
|
|
1661
|
-
return
|
|
1661
|
+
return Z(A, O, !0);
|
|
1662
1662
|
case "A":
|
|
1663
|
-
return
|
|
1663
|
+
return Z(A, O, !1);
|
|
1664
1664
|
case "m":
|
|
1665
1665
|
return String(O);
|
|
1666
1666
|
case "mm":
|
|
@@ -1680,23 +1680,23 @@ function an() {
|
|
|
1680
1680
|
}, m.utcOffset = function() {
|
|
1681
1681
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1682
1682
|
}, m.diff = function(o, l, c) {
|
|
1683
|
-
var d, B = this,
|
|
1683
|
+
var d, B = this, A = _.p(l), O = v(o), N = (O.utcOffset() - this.utcOffset()) * u, G = this - O, W = function() {
|
|
1684
1684
|
return _.m(B, O);
|
|
1685
1685
|
};
|
|
1686
|
-
switch (
|
|
1687
|
-
case
|
|
1686
|
+
switch (A) {
|
|
1687
|
+
case S:
|
|
1688
1688
|
d = W() / 12;
|
|
1689
1689
|
break;
|
|
1690
|
-
case
|
|
1690
|
+
case p:
|
|
1691
1691
|
d = W();
|
|
1692
1692
|
break;
|
|
1693
|
-
case
|
|
1693
|
+
case x:
|
|
1694
1694
|
d = W() / 3;
|
|
1695
1695
|
break;
|
|
1696
|
-
case
|
|
1696
|
+
case h:
|
|
1697
1697
|
d = (G - N) / 6048e5;
|
|
1698
1698
|
break;
|
|
1699
|
-
case
|
|
1699
|
+
case F:
|
|
1700
1700
|
d = (G - N) / 864e5;
|
|
1701
1701
|
break;
|
|
1702
1702
|
case E:
|
|
@@ -1713,12 +1713,12 @@ function an() {
|
|
|
1713
1713
|
}
|
|
1714
1714
|
return c ? d : _.a(d);
|
|
1715
1715
|
}, m.daysInMonth = function() {
|
|
1716
|
-
return this.endOf(
|
|
1716
|
+
return this.endOf(p).$D;
|
|
1717
1717
|
}, m.$locale = function() {
|
|
1718
1718
|
return L[this.$L];
|
|
1719
1719
|
}, m.locale = function(o, l) {
|
|
1720
1720
|
if (!o) return this.$L;
|
|
1721
|
-
var c = this.clone(), d =
|
|
1721
|
+
var c = this.clone(), d = $(o, l, !0);
|
|
1722
1722
|
return d && (c.$L = d), c;
|
|
1723
1723
|
}, m.clone = function() {
|
|
1724
1724
|
return _.w(this.$d, this);
|
|
@@ -1730,17 +1730,17 @@ function an() {
|
|
|
1730
1730
|
return this.$d.toISOString();
|
|
1731
1731
|
}, m.toString = function() {
|
|
1732
1732
|
return this.$d.toUTCString();
|
|
1733
|
-
},
|
|
1734
|
-
})(),
|
|
1735
|
-
return
|
|
1736
|
-
|
|
1737
|
-
return this.$g(m,
|
|
1733
|
+
}, C;
|
|
1734
|
+
})(), Y = k.prototype;
|
|
1735
|
+
return v.prototype = Y, [["$ms", a], ["$s", i], ["$m", s], ["$H", E], ["$W", F], ["$M", p], ["$y", S], ["$D", I]].forEach((function(C) {
|
|
1736
|
+
Y[C[1]] = function(m) {
|
|
1737
|
+
return this.$g(m, C[0], C[1]);
|
|
1738
1738
|
};
|
|
1739
|
-
})),
|
|
1740
|
-
return
|
|
1741
|
-
},
|
|
1742
|
-
return
|
|
1743
|
-
},
|
|
1739
|
+
})), v.extend = function(C, m) {
|
|
1740
|
+
return C.$i || (C(m, k, v), C.$i = !0), v;
|
|
1741
|
+
}, v.locale = $, v.isDayjs = R, v.unix = function(C) {
|
|
1742
|
+
return v(1e3 * C);
|
|
1743
|
+
}, v.en = L[w], v.Ls = L, v.p = {}, v;
|
|
1744
1744
|
}));
|
|
1745
1745
|
})(Qe)), Qe.exports;
|
|
1746
1746
|
}
|
|
@@ -1752,116 +1752,116 @@ function cn() {
|
|
|
1752
1752
|
(function(t, u) {
|
|
1753
1753
|
r.exports = u();
|
|
1754
1754
|
})(sn, (function() {
|
|
1755
|
-
var t = { 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" }, u = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, a = /\d\d/, i = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, E = {},
|
|
1756
|
-
return (
|
|
1757
|
-
},
|
|
1758
|
-
return function(
|
|
1759
|
-
this[
|
|
1755
|
+
var t = { 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" }, u = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, a = /\d\d/, i = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, E = {}, F = function(g) {
|
|
1756
|
+
return (g = +g) + (g > 68 ? 1900 : 2e3);
|
|
1757
|
+
}, h = function(g) {
|
|
1758
|
+
return function(T) {
|
|
1759
|
+
this[g] = +T;
|
|
1760
1760
|
};
|
|
1761
|
-
},
|
|
1762
|
-
(this.zone || (this.zone = {})).offset = (function(
|
|
1763
|
-
if (!
|
|
1764
|
-
var y =
|
|
1765
|
-
return
|
|
1766
|
-
})(
|
|
1767
|
-
}],
|
|
1768
|
-
var
|
|
1769
|
-
return
|
|
1770
|
-
},
|
|
1771
|
-
var y,
|
|
1772
|
-
if (
|
|
1773
|
-
for (var P = 1; P <= 24; P += 1) if (
|
|
1761
|
+
}, p = [/[+-]\d\d:?(\d\d)?|Z/, function(g) {
|
|
1762
|
+
(this.zone || (this.zone = {})).offset = (function(T) {
|
|
1763
|
+
if (!T || T === "Z") return 0;
|
|
1764
|
+
var y = T.match(/([+-]|\d\d)/g), M = 60 * y[1] + (+y[2] || 0);
|
|
1765
|
+
return M === 0 ? 0 : y[0] === "+" ? -M : M;
|
|
1766
|
+
})(g);
|
|
1767
|
+
}], x = function(g) {
|
|
1768
|
+
var T = E[g];
|
|
1769
|
+
return T && (T.indexOf ? T : T.s.concat(T.f));
|
|
1770
|
+
}, S = function(g, T) {
|
|
1771
|
+
var y, M = E.meridiem;
|
|
1772
|
+
if (M) {
|
|
1773
|
+
for (var P = 1; P <= 24; P += 1) if (g.indexOf(M(P, 0, T)) > -1) {
|
|
1774
1774
|
y = P > 12;
|
|
1775
1775
|
break;
|
|
1776
1776
|
}
|
|
1777
|
-
} else y =
|
|
1777
|
+
} else y = g === (T ? "pm" : "PM");
|
|
1778
1778
|
return y;
|
|
1779
|
-
},
|
|
1780
|
-
this.afternoon =
|
|
1781
|
-
}], a: [s, function(
|
|
1782
|
-
this.afternoon =
|
|
1783
|
-
}], Q: [n, function(
|
|
1784
|
-
this.month = 3 * (
|
|
1785
|
-
}], S: [n, function(
|
|
1786
|
-
this.milliseconds = 100 * +
|
|
1787
|
-
}], SS: [a, function(
|
|
1788
|
-
this.milliseconds = 10 * +
|
|
1789
|
-
}], SSS: [/\d{3}/, function(
|
|
1790
|
-
this.milliseconds = +
|
|
1791
|
-
}], s: [i,
|
|
1792
|
-
var
|
|
1793
|
-
if (this.day = y[0],
|
|
1794
|
-
}], w: [i,
|
|
1795
|
-
var
|
|
1796
|
-
return
|
|
1797
|
-
}))).indexOf(
|
|
1779
|
+
}, I = { A: [s, function(g) {
|
|
1780
|
+
this.afternoon = S(g, !1);
|
|
1781
|
+
}], a: [s, function(g) {
|
|
1782
|
+
this.afternoon = S(g, !0);
|
|
1783
|
+
}], Q: [n, function(g) {
|
|
1784
|
+
this.month = 3 * (g - 1) + 1;
|
|
1785
|
+
}], S: [n, function(g) {
|
|
1786
|
+
this.milliseconds = 100 * +g;
|
|
1787
|
+
}], SS: [a, function(g) {
|
|
1788
|
+
this.milliseconds = 10 * +g;
|
|
1789
|
+
}], SSS: [/\d{3}/, function(g) {
|
|
1790
|
+
this.milliseconds = +g;
|
|
1791
|
+
}], s: [i, h("seconds")], ss: [i, h("seconds")], m: [i, h("minutes")], mm: [i, h("minutes")], H: [i, h("hours")], h: [i, h("hours")], HH: [i, h("hours")], hh: [i, h("hours")], D: [i, h("day")], DD: [a, h("day")], Do: [s, function(g) {
|
|
1792
|
+
var T = E.ordinal, y = g.match(/\d+/);
|
|
1793
|
+
if (this.day = y[0], T) for (var M = 1; M <= 31; M += 1) T(M).replace(/\[|\]/g, "") === g && (this.day = M);
|
|
1794
|
+
}], w: [i, h("week")], ww: [a, h("week")], M: [i, h("month")], MM: [a, h("month")], MMM: [s, function(g) {
|
|
1795
|
+
var T = x("months"), y = (x("monthsShort") || T.map((function(M) {
|
|
1796
|
+
return M.slice(0, 3);
|
|
1797
|
+
}))).indexOf(g) + 1;
|
|
1798
1798
|
if (y < 1) throw new Error();
|
|
1799
1799
|
this.month = y % 12 || y;
|
|
1800
|
-
}], MMMM: [s, function(
|
|
1801
|
-
var
|
|
1802
|
-
if (
|
|
1803
|
-
this.month =
|
|
1804
|
-
}], Y: [/[+-]?\d+/,
|
|
1805
|
-
this.year =
|
|
1806
|
-
}], YYYY: [/\d{4}/,
|
|
1807
|
-
function
|
|
1808
|
-
var
|
|
1809
|
-
|
|
1810
|
-
for (var
|
|
1811
|
-
var
|
|
1812
|
-
return _ || y[
|
|
1800
|
+
}], MMMM: [s, function(g) {
|
|
1801
|
+
var T = x("months").indexOf(g) + 1;
|
|
1802
|
+
if (T < 1) throw new Error();
|
|
1803
|
+
this.month = T % 12 || T;
|
|
1804
|
+
}], Y: [/[+-]?\d+/, h("year")], YY: [a, function(g) {
|
|
1805
|
+
this.year = F(g);
|
|
1806
|
+
}], YYYY: [/\d{4}/, h("year")], Z: p, ZZ: p };
|
|
1807
|
+
function b(g) {
|
|
1808
|
+
var T, y;
|
|
1809
|
+
T = g, y = E && E.formats;
|
|
1810
|
+
for (var M = (g = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(v, _, k) {
|
|
1811
|
+
var Y = k && k.toUpperCase();
|
|
1812
|
+
return _ || y[k] || t[k] || y[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(C, m, o) {
|
|
1813
1813
|
return m || o.slice(1);
|
|
1814
1814
|
}));
|
|
1815
|
-
}))).match(u), P =
|
|
1816
|
-
var L =
|
|
1817
|
-
|
|
1815
|
+
}))).match(u), P = M.length, w = 0; w < P; w += 1) {
|
|
1816
|
+
var L = M[w], D = I[L], R = D && D[0], $ = D && D[1];
|
|
1817
|
+
M[w] = $ ? { regex: R, parser: $ } : L.replace(/^\[|\]$/g, "");
|
|
1818
1818
|
}
|
|
1819
|
-
return function(
|
|
1820
|
-
for (var _ = {},
|
|
1821
|
-
var
|
|
1822
|
-
if (typeof
|
|
1819
|
+
return function(v) {
|
|
1820
|
+
for (var _ = {}, k = 0, Y = 0; k < P; k += 1) {
|
|
1821
|
+
var C = M[k];
|
|
1822
|
+
if (typeof C == "string") Y += C.length;
|
|
1823
1823
|
else {
|
|
1824
|
-
var m =
|
|
1825
|
-
o.call(_, c),
|
|
1824
|
+
var m = C.regex, o = C.parser, l = v.slice(Y), c = m.exec(l)[0];
|
|
1825
|
+
o.call(_, c), v = v.replace(c, "");
|
|
1826
1826
|
}
|
|
1827
1827
|
}
|
|
1828
1828
|
return (function(d) {
|
|
1829
1829
|
var B = d.afternoon;
|
|
1830
1830
|
if (B !== void 0) {
|
|
1831
|
-
var
|
|
1832
|
-
B ?
|
|
1831
|
+
var A = d.hours;
|
|
1832
|
+
B ? A < 12 && (d.hours += 12) : A === 12 && (d.hours = 0), delete d.afternoon;
|
|
1833
1833
|
}
|
|
1834
1834
|
})(_), _;
|
|
1835
1835
|
};
|
|
1836
1836
|
}
|
|
1837
|
-
return function(
|
|
1838
|
-
y.p.customParseFormat = !0,
|
|
1839
|
-
var
|
|
1840
|
-
|
|
1837
|
+
return function(g, T, y) {
|
|
1838
|
+
y.p.customParseFormat = !0, g && g.parseTwoDigitYear && (F = g.parseTwoDigitYear);
|
|
1839
|
+
var M = T.prototype, P = M.parse;
|
|
1840
|
+
M.parse = function(w) {
|
|
1841
1841
|
var L = w.date, D = w.utc, R = w.args;
|
|
1842
1842
|
this.$u = D;
|
|
1843
|
-
var
|
|
1844
|
-
if (typeof
|
|
1845
|
-
var
|
|
1846
|
-
_ && (
|
|
1843
|
+
var $ = R[1];
|
|
1844
|
+
if (typeof $ == "string") {
|
|
1845
|
+
var v = R[2] === !0, _ = R[3] === !0, k = v || _, Y = R[2];
|
|
1846
|
+
_ && (Y = R[2]), E = this.$locale(), !v && Y && (E = y.Ls[Y]), this.$d = (function(l, c, d, B) {
|
|
1847
1847
|
try {
|
|
1848
1848
|
if (["x", "X"].indexOf(c) > -1) return new Date((c === "X" ? 1e3 : 1) * l);
|
|
1849
|
-
var
|
|
1849
|
+
var A = b(c)(l), O = A.year, N = A.month, G = A.day, W = A.hours, U = A.minutes, j = A.seconds, q = A.milliseconds, Z = A.zone, H = A.week, Q = /* @__PURE__ */ new Date(), J = G || (O || N ? 1 : Q.getDate()), X = O || Q.getFullYear(), K = 0;
|
|
1850
1850
|
O && !N || (K = N > 0 ? N - 1 : Q.getMonth());
|
|
1851
|
-
var te, ie = W || 0, ne = U || 0,
|
|
1852
|
-
return
|
|
1851
|
+
var te, ie = W || 0, ne = U || 0, De = j || 0, ce = q || 0;
|
|
1852
|
+
return Z ? new Date(Date.UTC(X, K, J, ie, ne, De, ce + 60 * Z.offset * 1e3)) : d ? new Date(Date.UTC(X, K, J, ie, ne, De, ce)) : (te = new Date(X, K, J, ie, ne, De, ce), H && (te = B(te).week(H).toDate()), te);
|
|
1853
1853
|
} catch {
|
|
1854
1854
|
return /* @__PURE__ */ new Date("");
|
|
1855
1855
|
}
|
|
1856
|
-
})(L,
|
|
1857
|
-
} else if (
|
|
1858
|
-
R[1] =
|
|
1856
|
+
})(L, $, D, y), this.init(), Y && Y !== !0 && (this.$L = this.locale(Y).$L), k && L != this.format($) && (this.$d = /* @__PURE__ */ new Date("")), E = {};
|
|
1857
|
+
} else if ($ instanceof Array) for (var C = $.length, m = 1; m <= C; m += 1) {
|
|
1858
|
+
R[1] = $[m - 1];
|
|
1859
1859
|
var o = y.apply(this, R);
|
|
1860
1860
|
if (o.isValid()) {
|
|
1861
1861
|
this.$d = o.$d, this.$L = o.$L, this.init();
|
|
1862
1862
|
break;
|
|
1863
1863
|
}
|
|
1864
|
-
m ===
|
|
1864
|
+
m === C && (this.$d = /* @__PURE__ */ new Date(""));
|
|
1865
1865
|
}
|
|
1866
1866
|
else P.call(this, w);
|
|
1867
1867
|
};
|
|
@@ -1939,22 +1939,22 @@ const En = ["npv", "forwardPrice", "discountFactor"], Fn = {
|
|
|
1939
1939
|
rowNode: r
|
|
1940
1940
|
}) => r.data?.kind === "error";
|
|
1941
1941
|
function gn(r) {
|
|
1942
|
-
const e =
|
|
1942
|
+
const e = z.c(3), {
|
|
1943
1943
|
data: t
|
|
1944
1944
|
} = r, u = String(t?.instrumentCode ?? "定价计算失败");
|
|
1945
1945
|
let n;
|
|
1946
1946
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
1947
|
-
icon:
|
|
1948
|
-
section:
|
|
1947
|
+
icon: V.gridErrorIcon,
|
|
1948
|
+
section: V.gridErrorSection
|
|
1949
1949
|
}, e[0] = n) : n = e[0];
|
|
1950
1950
|
let a;
|
|
1951
|
-
return e[1] !== u ? (a = /* @__PURE__ */ f(Ge, { className:
|
|
1951
|
+
return e[1] !== u ? (a = /* @__PURE__ */ f(Ge, { className: V.gridErrorAlert, classNames: n, type: "error", showIcon: !0, title: /* @__PURE__ */ Me("span", { className: V.gridErrorMessage, title: u, children: [
|
|
1952
1952
|
"计算失败,失败原因:",
|
|
1953
1953
|
u
|
|
1954
1954
|
] }) }), e[1] = u, e[2] = a) : a = e[2], a;
|
|
1955
1955
|
}
|
|
1956
1956
|
function pn(r) {
|
|
1957
|
-
const e =
|
|
1957
|
+
const e = z.c(15), {
|
|
1958
1958
|
contract: t,
|
|
1959
1959
|
calculation: u,
|
|
1960
1960
|
loading: n
|
|
@@ -1966,18 +1966,18 @@ function pn(r) {
|
|
|
1966
1966
|
...Object.fromEntries(du.map((y) => [y.key, y.kind === "contract" ? pt(t, y.key) : oe]))
|
|
1967
1967
|
}], e[0] = t, e[1] = s) : s = e[1];
|
|
1968
1968
|
const E = s;
|
|
1969
|
-
let
|
|
1970
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1971
|
-
const
|
|
1972
|
-
let
|
|
1973
|
-
e[3] !== u || e[4] !== t.currency ? (
|
|
1974
|
-
const
|
|
1975
|
-
...
|
|
1969
|
+
let F;
|
|
1970
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = du.map(Dn), e[2] = F) : F = e[2];
|
|
1971
|
+
const h = F;
|
|
1972
|
+
let p;
|
|
1973
|
+
e[3] !== u || e[4] !== t.currency ? (p = (y) => {
|
|
1974
|
+
const M = y.getRowNode("contract"), P = M?.data ? {
|
|
1975
|
+
...M.data
|
|
1976
1976
|
} : null;
|
|
1977
1977
|
if (En.forEach((w) => {
|
|
1978
1978
|
const L = u?.status === "success" ? vt(u.result, w, t.currency) : oe;
|
|
1979
|
-
|
|
1980
|
-
}),
|
|
1979
|
+
M?.setDataValue(w, L), P && (P[w] = L);
|
|
1980
|
+
}), M && P && M.setData(P), i.current && (y.applyTransaction({
|
|
1981
1981
|
remove: [i.current]
|
|
1982
1982
|
}), i.current = null), u?.status === "error") {
|
|
1983
1983
|
const w = {
|
|
@@ -1990,19 +1990,19 @@ function pn(r) {
|
|
|
1990
1990
|
}), i.current = w;
|
|
1991
1991
|
}
|
|
1992
1992
|
y.resetRowHeights();
|
|
1993
|
-
}, e[3] = u, e[4] = t.currency, e[5] =
|
|
1994
|
-
const
|
|
1995
|
-
let
|
|
1996
|
-
e[6] !==
|
|
1997
|
-
a.current &&
|
|
1998
|
-
},
|
|
1999
|
-
let
|
|
2000
|
-
e[9] !==
|
|
2001
|
-
a.current = y.api,
|
|
2002
|
-
}, e[9] =
|
|
2003
|
-
const
|
|
2004
|
-
let
|
|
2005
|
-
return e[11] !== n || e[12] !==
|
|
1993
|
+
}, e[3] = u, e[4] = t.currency, e[5] = p) : p = e[5];
|
|
1994
|
+
const x = p;
|
|
1995
|
+
let S, I;
|
|
1996
|
+
e[6] !== x ? (S = () => {
|
|
1997
|
+
a.current && x(a.current);
|
|
1998
|
+
}, I = [x], e[6] = x, e[7] = S, e[8] = I) : (S = e[7], I = e[8]), Be(S, I);
|
|
1999
|
+
let b;
|
|
2000
|
+
e[9] !== x ? (b = (y) => {
|
|
2001
|
+
a.current = y.api, x(y.api);
|
|
2002
|
+
}, e[9] = x, e[10] = b) : b = e[10];
|
|
2003
|
+
const g = b;
|
|
2004
|
+
let T;
|
|
2005
|
+
return e[11] !== n || e[12] !== g || e[13] !== E ? (T = /* @__PURE__ */ f("div", { className: V.fixedGrid, "aria-label": "单笔合约定价结果", children: /* @__PURE__ */ f(bu, { rowData: E, columnDefs: h, defaultColDef: Fn, onGridReady: g, getRowId: hn, isFullWidthRow: fn, fullWidthCellRenderer: gn, getRowHeight: vn, headerHeight: 32, rowHeight: 32, autoSizeStrategy: Cn, autoSizePadding: 16, suppressColumnVirtualisation: !0, tooltipShowMode: "whenTruncated", tooltipShowDelay: 0, domLayout: "autoHeight", pagination: !1, loading: n, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }) }), e[11] = n, e[12] = g, e[13] = E, e[14] = T) : T = e[14], T;
|
|
2006
2006
|
}
|
|
2007
2007
|
function vn(r) {
|
|
2008
2008
|
return r.data?.kind === "error" ? 28 : 32;
|
|
@@ -2024,12 +2024,12 @@ function Dn(r) {
|
|
|
2024
2024
|
cellRenderer: (e) => r.kind === "result" ? /* @__PURE__ */ f(Ft, { value: String(e.value ?? oe) }) : /* @__PURE__ */ f(Ct, { field: r.key, value: String(e.value ?? oe) })
|
|
2025
2025
|
};
|
|
2026
2026
|
}
|
|
2027
|
-
const
|
|
2028
|
-
const t =
|
|
2027
|
+
const _u = ue((r, e) => {
|
|
2028
|
+
const t = z.c(3);
|
|
2029
2029
|
let u;
|
|
2030
2030
|
return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(jt, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
|
|
2031
2031
|
});
|
|
2032
|
-
|
|
2032
|
+
_u.displayName = "GZTooltip";
|
|
2033
2033
|
const Bn = ["npv", "forwardPrice", "discountFactor"], yn = {
|
|
2034
2034
|
suppressHeaderMenuButton: !0,
|
|
2035
2035
|
suppressHeaderContextMenu: !0
|
|
@@ -2041,46 +2041,46 @@ function eu(r) {
|
|
|
2041
2041
|
return !!(r && typeof r == "object" && "kind" in r);
|
|
2042
2042
|
}
|
|
2043
2043
|
function bn(r) {
|
|
2044
|
-
const e =
|
|
2044
|
+
const e = z.c(34), {
|
|
2045
2045
|
single: t,
|
|
2046
2046
|
contracts: u,
|
|
2047
2047
|
results: n,
|
|
2048
2048
|
loading: a
|
|
2049
|
-
} = r, i = t === void 0 ? !1 : t, s = ee(null), E = ee(null),
|
|
2050
|
-
let
|
|
2051
|
-
if (e[0] !== u || e[1] !==
|
|
2049
|
+
} = r, i = t === void 0 ? !1 : t, s = ee(null), E = ee(null), F = i ? mr : du;
|
|
2050
|
+
let h;
|
|
2051
|
+
if (e[0] !== u || e[1] !== F) {
|
|
2052
2052
|
let o;
|
|
2053
2053
|
e[3] !== u ? (o = (l) => ({
|
|
2054
2054
|
id: l.key,
|
|
2055
2055
|
label: l.label,
|
|
2056
2056
|
kind: l.kind,
|
|
2057
2057
|
...Object.fromEntries(u.map((c) => [c.contractId, l.kind === "contract" ? pt(c, l.key) : Nu]))
|
|
2058
|
-
}), e[3] = u, e[4] = o) : o = e[4],
|
|
2058
|
+
}), e[3] = u, e[4] = o) : o = e[4], h = F.map(o), e[0] = u, e[1] = F, e[2] = h;
|
|
2059
2059
|
} else
|
|
2060
|
-
|
|
2061
|
-
const
|
|
2062
|
-
let
|
|
2063
|
-
e[5] !==
|
|
2060
|
+
h = e[2];
|
|
2061
|
+
const p = h, x = i ? "" : "字段", S = i ? 160 : 180, I = i ? 160 : 180;
|
|
2062
|
+
let b;
|
|
2063
|
+
e[5] !== x || e[6] !== S || e[7] !== I ? (b = {
|
|
2064
2064
|
field: "label",
|
|
2065
2065
|
colId: "field",
|
|
2066
|
-
headerName:
|
|
2066
|
+
headerName: x,
|
|
2067
2067
|
pinned: "left",
|
|
2068
2068
|
lockPinned: !0,
|
|
2069
|
-
width:
|
|
2070
|
-
minWidth:
|
|
2069
|
+
width: S,
|
|
2070
|
+
minWidth: I,
|
|
2071
2071
|
sortable: !1,
|
|
2072
2072
|
resizable: !1,
|
|
2073
2073
|
suppressMovable: !0,
|
|
2074
|
-
cellClass:
|
|
2075
|
-
}, e[5] =
|
|
2076
|
-
let
|
|
2077
|
-
if (e[9] !== u || e[10] !== i || e[11] !==
|
|
2074
|
+
cellClass: V.fieldCell
|
|
2075
|
+
}, e[5] = x, e[6] = S, e[7] = I, e[8] = b) : b = e[8];
|
|
2076
|
+
let g;
|
|
2077
|
+
if (e[9] !== u || e[10] !== i || e[11] !== b) {
|
|
2078
2078
|
let o;
|
|
2079
2079
|
e[13] !== i ? (o = (l, c) => ({
|
|
2080
2080
|
field: l.contractId,
|
|
2081
2081
|
colId: l.contractId,
|
|
2082
2082
|
headerName: String(c + 1).padStart(3, "0"),
|
|
2083
|
-
headerClass: i ?
|
|
2083
|
+
headerClass: i ? V.singleContractHeader : void 0,
|
|
2084
2084
|
flex: 1,
|
|
2085
2085
|
width: 180,
|
|
2086
2086
|
minWidth: i ? 100 : 180,
|
|
@@ -2090,10 +2090,10 @@ function bn(r) {
|
|
|
2090
2090
|
spanRows: Tn,
|
|
2091
2091
|
cellClass: xn,
|
|
2092
2092
|
cellRenderer: Sn
|
|
2093
|
-
}), e[13] = i, e[14] = o) : o = e[14],
|
|
2093
|
+
}), e[13] = i, e[14] = o) : o = e[14], g = [b, ...u.map(o)], e[9] = u, e[10] = i, e[11] = b, e[12] = g;
|
|
2094
2094
|
} else
|
|
2095
|
-
|
|
2096
|
-
const
|
|
2095
|
+
g = e[12];
|
|
2096
|
+
const T = g;
|
|
2097
2097
|
let y;
|
|
2098
2098
|
e[15] !== u || e[16] !== n ? (y = (o) => {
|
|
2099
2099
|
Bn.forEach((l) => {
|
|
@@ -2104,26 +2104,26 @@ function bn(r) {
|
|
|
2104
2104
|
...c.data
|
|
2105
2105
|
};
|
|
2106
2106
|
u.forEach((B) => {
|
|
2107
|
-
const
|
|
2107
|
+
const A = n[B.contractId];
|
|
2108
2108
|
let O = Nu;
|
|
2109
|
-
|
|
2109
|
+
A?.status === "success" ? O = {
|
|
2110
2110
|
kind: "value",
|
|
2111
|
-
display: vt(
|
|
2112
|
-
rawValue:
|
|
2113
|
-
} :
|
|
2111
|
+
display: vt(A.result, l, B.currency),
|
|
2112
|
+
rawValue: A.result?.[l]
|
|
2113
|
+
} : A?.status === "error" && (O = {
|
|
2114
2114
|
kind: "error",
|
|
2115
|
-
display:
|
|
2115
|
+
display: A.message ?? "定价计算失败"
|
|
2116
2116
|
}), c.setDataValue(B.contractId, O), d[B.contractId] = O;
|
|
2117
2117
|
}), c.setData(d);
|
|
2118
2118
|
}), o.refreshCells({
|
|
2119
2119
|
force: !0
|
|
2120
2120
|
}), o.resetRowHeights();
|
|
2121
2121
|
}, e[15] = u, e[16] = n, e[17] = y) : y = e[17];
|
|
2122
|
-
const
|
|
2122
|
+
const M = y;
|
|
2123
2123
|
let P, w;
|
|
2124
|
-
e[18] !==
|
|
2125
|
-
E.current &&
|
|
2126
|
-
}, w = [
|
|
2124
|
+
e[18] !== M ? (P = () => {
|
|
2125
|
+
E.current && M(E.current);
|
|
2126
|
+
}, w = [M], e[18] = M, e[19] = P, e[20] = w) : (P = e[19], w = e[20]), Be(P, w);
|
|
2127
2127
|
let L;
|
|
2128
2128
|
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = (o) => {
|
|
2129
2129
|
s.current?.style.setProperty("--pricing-horizontal-scroll-left", `${o}px`);
|
|
@@ -2133,16 +2133,16 @@ function bn(r) {
|
|
|
2133
2133
|
e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = (o) => {
|
|
2134
2134
|
o.direction === "horizontal" && D(o.left);
|
|
2135
2135
|
}, e[22] = R) : R = e[22];
|
|
2136
|
-
const
|
|
2137
|
-
let
|
|
2138
|
-
e[23] !==
|
|
2139
|
-
E.current = o.api, D(o.api.getHorizontalPixelRange().left),
|
|
2140
|
-
}, e[23] =
|
|
2141
|
-
const _ =
|
|
2142
|
-
let
|
|
2143
|
-
e[25] !==
|
|
2136
|
+
const $ = R;
|
|
2137
|
+
let v;
|
|
2138
|
+
e[23] !== M ? (v = (o) => {
|
|
2139
|
+
E.current = o.api, D(o.api.getHorizontalPixelRange().left), M(o.api);
|
|
2140
|
+
}, e[23] = M, e[24] = v) : v = e[24];
|
|
2141
|
+
const _ = v, k = `${V.multipleGrid}${i ? ` ${V.singleGrid}` : ""}`, Y = i ? "单笔合约定价结果" : "多笔合约定价结果";
|
|
2142
|
+
let C;
|
|
2143
|
+
e[25] !== T || e[26] !== a || e[27] !== _ || e[28] !== p ? (C = /* @__PURE__ */ f(bu, { rowData: p, columnDefs: T, defaultColDef: yn, onGridReady: _, onBodyScroll: $, getRowId: An, headerHeight: 32, rowHeight: 28, domLayout: "autoHeight", pagination: !1, loading: a, enableCellSpan: !0, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }), e[25] = T, e[26] = a, e[27] = _, e[28] = p, e[29] = C) : C = e[29];
|
|
2144
2144
|
let m;
|
|
2145
|
-
return e[30] !==
|
|
2145
|
+
return e[30] !== k || e[31] !== Y || e[32] !== C ? (m = /* @__PURE__ */ f("div", { ref: s, className: k, "aria-label": Y, children: C }), e[30] = k, e[31] = Y, e[32] = C, e[33] = m) : m = e[33], m;
|
|
2146
2146
|
}
|
|
2147
2147
|
function An(r) {
|
|
2148
2148
|
return r.data.id;
|
|
@@ -2152,33 +2152,33 @@ function Sn(r) {
|
|
|
2152
2152
|
if (eu(t)) {
|
|
2153
2153
|
if (t.kind === "error") {
|
|
2154
2154
|
const u = `计算失败,失败原因:${t.display}`;
|
|
2155
|
-
return /* @__PURE__ */ f(
|
|
2155
|
+
return /* @__PURE__ */ f(_u, { title: u, children: /* @__PURE__ */ f("div", { className: V.mergedErrorCell, children: /* @__PURE__ */ f("span", { className: V.mergedErrorText, children: u }) }) });
|
|
2156
2156
|
}
|
|
2157
2157
|
return /* @__PURE__ */ f(Ft, { value: t.display, rawValue: t.rawValue });
|
|
2158
2158
|
}
|
|
2159
2159
|
return e ? /* @__PURE__ */ f(Ct, { field: e, value: String(t ?? oe) }) : null;
|
|
2160
2160
|
}
|
|
2161
2161
|
function xn(r) {
|
|
2162
|
-
return eu(r.value) && r.value.kind === "error" ?
|
|
2162
|
+
return eu(r.value) && r.value.kind === "error" ? V.mergedErrorGridCell : void 0;
|
|
2163
2163
|
}
|
|
2164
2164
|
function Tn(r) {
|
|
2165
2165
|
const e = r.valueA, t = r.valueB;
|
|
2166
2166
|
return eu(e) && eu(t) && e.kind === "error" && t.kind === "error" && e.display === t.display;
|
|
2167
2167
|
}
|
|
2168
2168
|
const ht = ue((r, e) => {
|
|
2169
|
-
const t =
|
|
2169
|
+
const t = z.c(3);
|
|
2170
2170
|
let u;
|
|
2171
2171
|
return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe.MonthPicker, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
|
|
2172
2172
|
});
|
|
2173
2173
|
ht.displayName = "GZMonthPicker";
|
|
2174
2174
|
const Dt = ue((r, e) => {
|
|
2175
|
-
const t =
|
|
2175
|
+
const t = z.c(3);
|
|
2176
2176
|
let u;
|
|
2177
2177
|
return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe.QuarterPicker, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
|
|
2178
2178
|
});
|
|
2179
2179
|
Dt.displayName = "GZQuarterPicker";
|
|
2180
2180
|
const Bt = ue((r, e) => {
|
|
2181
|
-
const t =
|
|
2181
|
+
const t = z.c(7);
|
|
2182
2182
|
let u, n;
|
|
2183
2183
|
t[0] !== r ? ({
|
|
2184
2184
|
children: u,
|
|
@@ -2189,28 +2189,28 @@ const Bt = ue((r, e) => {
|
|
|
2189
2189
|
});
|
|
2190
2190
|
Bt.displayName = "GZRangePicker";
|
|
2191
2191
|
const yt = ue((r, e) => {
|
|
2192
|
-
const t =
|
|
2192
|
+
const t = z.c(3);
|
|
2193
2193
|
let u;
|
|
2194
2194
|
return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe.TimePicker, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
|
|
2195
2195
|
});
|
|
2196
2196
|
yt.displayName = "GZTimePicker";
|
|
2197
2197
|
const bt = ue((r, e) => {
|
|
2198
|
-
const t =
|
|
2198
|
+
const t = z.c(3);
|
|
2199
2199
|
let u;
|
|
2200
2200
|
return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe.WeekPicker, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
|
|
2201
2201
|
});
|
|
2202
2202
|
bt.displayName = "GZWeekPicker";
|
|
2203
2203
|
const At = ue((r, e) => {
|
|
2204
|
-
const t =
|
|
2204
|
+
const t = z.c(3);
|
|
2205
2205
|
let u;
|
|
2206
2206
|
return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe.YearPicker, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
|
|
2207
2207
|
});
|
|
2208
2208
|
At.displayName = "GZYearPicker";
|
|
2209
|
-
const
|
|
2210
|
-
const t =
|
|
2209
|
+
const _n = ue((r, e) => {
|
|
2210
|
+
const t = z.c(3);
|
|
2211
2211
|
let u;
|
|
2212
2212
|
return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe, { format: "YYYY-MM-DD", ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
|
|
2213
|
-
}), ke =
|
|
2213
|
+
}), ke = _n;
|
|
2214
2214
|
ke.RangePicker = Bt;
|
|
2215
2215
|
ke.WeekPicker = bt;
|
|
2216
2216
|
ke.MonthPicker = ht;
|
|
@@ -2219,7 +2219,7 @@ ke.QuarterPicker = Dt;
|
|
|
2219
2219
|
ke.TimePicker = yt;
|
|
2220
2220
|
ke.displayName = "GZDatePicker";
|
|
2221
2221
|
const St = ue((r, e) => {
|
|
2222
|
-
const t =
|
|
2222
|
+
const t = z.c(13);
|
|
2223
2223
|
let u, n, a;
|
|
2224
2224
|
t[0] !== r ? ({
|
|
2225
2225
|
children: u,
|
|
@@ -2235,14 +2235,14 @@ const St = ue((r, e) => {
|
|
|
2235
2235
|
}
|
|
2236
2236
|
}, t[4] = n, t[5] = i) : i = t[5];
|
|
2237
2237
|
const s = i, E = a;
|
|
2238
|
-
let
|
|
2239
|
-
t[6] !== u || t[7] !== e || t[8] !== E ? (
|
|
2240
|
-
let
|
|
2241
|
-
return t[10] !==
|
|
2238
|
+
let F;
|
|
2239
|
+
t[6] !== u || t[7] !== e || t[8] !== E ? (F = /* @__PURE__ */ f(we, { ref: e, ...E, children: u }), t[6] = u, t[7] = e, t[8] = E, t[9] = F) : F = t[9];
|
|
2240
|
+
let h;
|
|
2241
|
+
return t[10] !== F || t[11] !== s ? (h = /* @__PURE__ */ f(Xt, { theme: s, children: F }), t[10] = F, t[11] = s, t[12] = h) : h = t[12], h;
|
|
2242
2242
|
});
|
|
2243
2243
|
St.displayName = "GZForm";
|
|
2244
2244
|
const xt = (r) => {
|
|
2245
|
-
const e =
|
|
2245
|
+
const e = z.c(6);
|
|
2246
2246
|
let t, u;
|
|
2247
2247
|
e[0] !== r ? ({
|
|
2248
2248
|
children: t,
|
|
@@ -2250,37 +2250,37 @@ const xt = (r) => {
|
|
|
2250
2250
|
} = r, e[0] = r, e[1] = t, e[2] = u) : (t = e[1], u = e[2]);
|
|
2251
2251
|
const n = u;
|
|
2252
2252
|
let a;
|
|
2253
|
-
return e[3] !== t || e[4] !== n ? (a = /* @__PURE__ */ f(
|
|
2253
|
+
return e[3] !== t || e[4] !== n ? (a = /* @__PURE__ */ f(we.Item, { ...n, children: t }), e[3] = t, e[4] = n, e[5] = a) : a = e[5], a;
|
|
2254
2254
|
};
|
|
2255
2255
|
xt.displayName = "GZFormItem";
|
|
2256
2256
|
const Tt = (r) => {
|
|
2257
|
-
const e =
|
|
2257
|
+
const e = z.c(2);
|
|
2258
2258
|
let t;
|
|
2259
|
-
return e[0] !== r ? (t = /* @__PURE__ */ f(
|
|
2259
|
+
return e[0] !== r ? (t = /* @__PURE__ */ f(we.List, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
|
|
2260
2260
|
};
|
|
2261
2261
|
Tt.displayName = "GZFormList";
|
|
2262
|
-
const
|
|
2263
|
-
const e =
|
|
2262
|
+
const _t = (r) => {
|
|
2263
|
+
const e = z.c(2);
|
|
2264
2264
|
let t;
|
|
2265
|
-
return e[0] !== r ? (t = /* @__PURE__ */ f(
|
|
2265
|
+
return e[0] !== r ? (t = /* @__PURE__ */ f(we.ErrorList, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
|
|
2266
2266
|
};
|
|
2267
|
-
|
|
2268
|
-
const
|
|
2269
|
-
const e =
|
|
2267
|
+
_t.displayName = "GZErrorList";
|
|
2268
|
+
const Mt = (r) => {
|
|
2269
|
+
const e = z.c(2);
|
|
2270
2270
|
let t;
|
|
2271
|
-
return e[0] !== r ? (t = /* @__PURE__ */ f(
|
|
2271
|
+
return e[0] !== r ? (t = /* @__PURE__ */ f(we.Provider, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
|
|
2272
2272
|
};
|
|
2273
|
-
|
|
2273
|
+
Mt.displayName = "GZFormProvider";
|
|
2274
2274
|
const ye = St;
|
|
2275
2275
|
ye.Item = xt;
|
|
2276
2276
|
ye.List = Tt;
|
|
2277
|
-
ye.ErrorList =
|
|
2278
|
-
ye.Provider =
|
|
2279
|
-
ye.useForm =
|
|
2280
|
-
ye.useFormInstance =
|
|
2281
|
-
ye.useWatch =
|
|
2282
|
-
const
|
|
2283
|
-
const t =
|
|
2277
|
+
ye.ErrorList = _t;
|
|
2278
|
+
ye.Provider = Mt;
|
|
2279
|
+
ye.useForm = we.useForm;
|
|
2280
|
+
ye.useFormInstance = we.useFormInstance;
|
|
2281
|
+
ye.useWatch = we.useWatch;
|
|
2282
|
+
const wt = ue((r, e) => {
|
|
2283
|
+
const t = z.c(7);
|
|
2284
2284
|
let u, n;
|
|
2285
2285
|
t[0] !== r ? ({
|
|
2286
2286
|
children: u,
|
|
@@ -2290,9 +2290,9 @@ const Mt = ue((r, e) => {
|
|
|
2290
2290
|
let i;
|
|
2291
2291
|
return t[3] !== u || t[4] !== n || t[5] !== a ? (i = /* @__PURE__ */ f(gu.Option, { ref: a, ...n, children: u }), t[3] = u, t[4] = n, t[5] = a, t[6] = i) : i = t[6], i;
|
|
2292
2292
|
});
|
|
2293
|
-
|
|
2293
|
+
wt.displayName = "GZSelectOption";
|
|
2294
2294
|
const kt = ue((r, e) => {
|
|
2295
|
-
const t =
|
|
2295
|
+
const t = z.c(7);
|
|
2296
2296
|
let u, n;
|
|
2297
2297
|
t[0] !== r ? ({
|
|
2298
2298
|
children: u,
|
|
@@ -2303,12 +2303,12 @@ const kt = ue((r, e) => {
|
|
|
2303
2303
|
return t[3] !== u || t[4] !== n || t[5] !== a ? (i = /* @__PURE__ */ f(gu.OptGroup, { ref: a, ...n, children: u }), t[3] = u, t[4] = n, t[5] = a, t[6] = i) : i = t[6], i;
|
|
2304
2304
|
});
|
|
2305
2305
|
kt.displayName = "GZSelectOptGroup";
|
|
2306
|
-
const
|
|
2307
|
-
const t =
|
|
2306
|
+
const Mn = ue((r, e) => {
|
|
2307
|
+
const t = z.c(3), u = e;
|
|
2308
2308
|
let n;
|
|
2309
2309
|
return t[0] !== r || t[1] !== u ? (n = /* @__PURE__ */ f(gu, { ref: u, ...r }), t[0] = r, t[1] = u, t[2] = n) : n = t[2], n;
|
|
2310
|
-
}), Oe =
|
|
2311
|
-
Oe.Option =
|
|
2310
|
+
}), Oe = Mn;
|
|
2311
|
+
Oe.Option = wt;
|
|
2312
2312
|
Oe.OptGroup = kt;
|
|
2313
2313
|
Oe.displayName = "GZSelect";
|
|
2314
2314
|
function Ou(r, e) {
|
|
@@ -2316,7 +2316,7 @@ function Ou(r, e) {
|
|
|
2316
2316
|
const t = r.executeDay ? Tu(r.executeDay) : void 0;
|
|
2317
2317
|
return !t || t !== e ? "曲线日与估值日非同一日" : void 0;
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2319
|
+
function wn(r) {
|
|
2320
2320
|
const e = {};
|
|
2321
2321
|
return Object.keys(Iu).forEach((t) => {
|
|
2322
2322
|
r[t] || (e[t] = [Iu[t]]);
|
|
@@ -2343,7 +2343,7 @@ function kn(r, e) {
|
|
|
2343
2343
|
message: n ? null : "估值日必须小于或等于所选合约最久的结算支付日"
|
|
2344
2344
|
};
|
|
2345
2345
|
}
|
|
2346
|
-
function
|
|
2346
|
+
function Ze(r) {
|
|
2347
2347
|
return {
|
|
2348
2348
|
validateStatus: r?.length ? "error" : void 0,
|
|
2349
2349
|
help: r?.join(";")
|
|
@@ -2358,21 +2358,21 @@ function Eu(r) {
|
|
|
2358
2358
|
return r.source === "custom" && r.executeDay ? `${e}-${Tu(r.executeDay)}` : e;
|
|
2359
2359
|
}
|
|
2360
2360
|
function je(r) {
|
|
2361
|
-
const e =
|
|
2361
|
+
const e = z.c(7), {
|
|
2362
2362
|
text: t
|
|
2363
2363
|
} = r, u = ee(null), [n, a] = ze(!1);
|
|
2364
2364
|
let i;
|
|
2365
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = (
|
|
2366
|
-
const
|
|
2367
|
-
a(
|
|
2365
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = (F) => {
|
|
2366
|
+
const h = u.current, p = !!(h && h.scrollWidth > h.clientWidth);
|
|
2367
|
+
a(F && p);
|
|
2368
2368
|
}, e[0] = i) : i = e[0];
|
|
2369
2369
|
let s;
|
|
2370
|
-
e[1] !== t ? (s = /* @__PURE__ */ f("span", { ref: u, className:
|
|
2370
|
+
e[1] !== t ? (s = /* @__PURE__ */ f("span", { ref: u, className: V.contextFormLabelText, children: t }), e[1] = t, e[2] = s) : s = e[2];
|
|
2371
2371
|
let E;
|
|
2372
|
-
return e[3] !== s || e[4] !== t || e[5] !== n ? (E = /* @__PURE__ */ f(
|
|
2372
|
+
return e[3] !== s || e[4] !== t || e[5] !== n ? (E = /* @__PURE__ */ f(_u, { title: t, open: n, onOpenChange: i, children: s }), e[3] = s, e[4] = t, e[5] = n, e[6] = E) : E = e[6], E;
|
|
2373
2373
|
}
|
|
2374
2374
|
function $n(r) {
|
|
2375
|
-
const e =
|
|
2375
|
+
const e = z.c(110), {
|
|
2376
2376
|
mode: t,
|
|
2377
2377
|
layout: u,
|
|
2378
2378
|
value: n,
|
|
@@ -2380,23 +2380,23 @@ function $n(r) {
|
|
|
2380
2380
|
environments: i,
|
|
2381
2381
|
discountCurves: s,
|
|
2382
2382
|
carbonForwardCurves: E,
|
|
2383
|
-
environmentsLoading:
|
|
2384
|
-
curvesLoading:
|
|
2385
|
-
curvesDisabled:
|
|
2386
|
-
disabled:
|
|
2387
|
-
onChange:
|
|
2388
|
-
} = r,
|
|
2389
|
-
let
|
|
2390
|
-
e[0] !== i ? (
|
|
2391
|
-
const y =
|
|
2383
|
+
environmentsLoading: F,
|
|
2384
|
+
curvesLoading: h,
|
|
2385
|
+
curvesDisabled: p,
|
|
2386
|
+
disabled: x,
|
|
2387
|
+
onChange: S
|
|
2388
|
+
} = r, I = t === "single" && u === "vertical", b = t === "single" && u === "horizontal", g = t === "multiple" ? V.multiple : I ? V.single : V.fixedSingle;
|
|
2389
|
+
let T;
|
|
2390
|
+
e[0] !== i ? (T = i.map(Pn), e[0] = i, e[1] = T) : T = e[1];
|
|
2391
|
+
const y = T, M = In;
|
|
2392
2392
|
let P;
|
|
2393
2393
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
|
|
2394
2394
|
popup: {
|
|
2395
|
-
root:
|
|
2396
|
-
listItem:
|
|
2395
|
+
root: V.selectPopup,
|
|
2396
|
+
listItem: V.selectPopupListItem
|
|
2397
2397
|
}
|
|
2398
2398
|
}, e[2] = P) : P = e[2];
|
|
2399
|
-
const w =
|
|
2399
|
+
const w = b ? 420 : 432;
|
|
2400
2400
|
let L;
|
|
2401
2401
|
e[3] !== w ? (L = {
|
|
2402
2402
|
popupMatchSelectWidth: !1,
|
|
@@ -2412,99 +2412,99 @@ function $n(r) {
|
|
|
2412
2412
|
const D = L;
|
|
2413
2413
|
let R;
|
|
2414
2414
|
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ f(je, { text: "碳金融远期价格曲线" }), e[5] = R) : R = e[5];
|
|
2415
|
-
let
|
|
2416
|
-
e[6] !== n.carbonForwardCurve || e[7] !== n.valuationDate ? (
|
|
2417
|
-
let
|
|
2418
|
-
e[9] !== a.carbonForwardCurve ? (
|
|
2419
|
-
const _ =
|
|
2420
|
-
let
|
|
2421
|
-
e[11] !== E ? (
|
|
2422
|
-
const
|
|
2423
|
-
let
|
|
2424
|
-
e[13] !== n.carbonForwardCurve ? (
|
|
2415
|
+
let $;
|
|
2416
|
+
e[6] !== n.carbonForwardCurve || e[7] !== n.valuationDate ? ($ = Ou(n.carbonForwardCurve, n.valuationDate), e[6] = n.carbonForwardCurve, e[7] = n.valuationDate, e[8] = $) : $ = e[8];
|
|
2417
|
+
let v;
|
|
2418
|
+
e[9] !== a.carbonForwardCurve ? (v = Ze(a.carbonForwardCurve), e[9] = a.carbonForwardCurve, e[10] = v) : v = e[10];
|
|
2419
|
+
const _ = x || p;
|
|
2420
|
+
let k;
|
|
2421
|
+
e[11] !== E ? (k = M(E), e[11] = E, e[12] = k) : k = e[12];
|
|
2422
|
+
const Y = n.carbonForwardCurve?.key;
|
|
2423
|
+
let C;
|
|
2424
|
+
e[13] !== n.carbonForwardCurve ? (C = () => Eu(n.carbonForwardCurve), e[13] = n.carbonForwardCurve, e[14] = C) : C = e[14];
|
|
2425
2425
|
let m;
|
|
2426
|
-
e[15] !== E || e[16] !==
|
|
2426
|
+
e[15] !== E || e[16] !== S ? (m = (le) => S("carbonForwardCurve", E.find((se) => se.key === le) ?? null), e[15] = E, e[16] = S, e[17] = m) : m = e[17];
|
|
2427
2427
|
let o;
|
|
2428
|
-
e[18] !==
|
|
2428
|
+
e[18] !== S ? (o = () => S("carbonForwardCurve", null), e[18] = S, e[19] = o) : o = e[19];
|
|
2429
2429
|
let l;
|
|
2430
|
-
e[20] !==
|
|
2430
|
+
e[20] !== h || e[21] !== D || e[22] !== C || e[23] !== m || e[24] !== o || e[25] !== _ || e[26] !== k || e[27] !== Y ? (l = /* @__PURE__ */ f(Oe, { ...D, "aria-label": "碳金融远期价格曲线", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: h, disabled: _, placeholder: "请选择碳金融远期价格曲线", options: k, value: Y, labelRender: C, onChange: m, onClear: o }), e[20] = h, e[21] = D, e[22] = C, e[23] = m, e[24] = o, e[25] = _, e[26] = k, e[27] = Y, e[28] = l) : l = e[28];
|
|
2431
2431
|
let c;
|
|
2432
|
-
e[29] !== l || e[30] !==
|
|
2432
|
+
e[29] !== l || e[30] !== $ || e[31] !== v ? (c = /* @__PURE__ */ f(ye.Item, { className: V.contextFormItem, label: R, required: !0, extra: $, ...v, children: l }), e[29] = l, e[30] = $, e[31] = v, e[32] = c) : c = e[32];
|
|
2433
2433
|
const d = c;
|
|
2434
2434
|
let B;
|
|
2435
2435
|
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ f(je, { text: "无风险利率曲线" }), e[33] = B) : B = e[33];
|
|
2436
|
-
let
|
|
2437
|
-
e[34] !== n.discountCurve || e[35] !== n.valuationDate ? (
|
|
2436
|
+
let A;
|
|
2437
|
+
e[34] !== n.discountCurve || e[35] !== n.valuationDate ? (A = Ou(n.discountCurve, n.valuationDate), e[34] = n.discountCurve, e[35] = n.valuationDate, e[36] = A) : A = e[36];
|
|
2438
2438
|
let O;
|
|
2439
|
-
e[37] !== a.discountCurve ? (O =
|
|
2440
|
-
const N =
|
|
2439
|
+
e[37] !== a.discountCurve ? (O = Ze(a.discountCurve), e[37] = a.discountCurve, e[38] = O) : O = e[38];
|
|
2440
|
+
const N = x || p;
|
|
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 W = n.discountCurve?.key;
|
|
2444
2444
|
let U;
|
|
2445
2445
|
e[41] !== n.discountCurve ? (U = () => Eu(n.discountCurve), e[41] = n.discountCurve, e[42] = U) : U = e[42];
|
|
2446
2446
|
let j;
|
|
2447
|
-
e[43] !== s || e[44] !==
|
|
2448
|
-
let Z;
|
|
2449
|
-
e[46] !== x ? (Z = () => x("discountCurve", null), e[46] = x, e[47] = Z) : Z = e[47];
|
|
2447
|
+
e[43] !== s || e[44] !== S ? (j = (le) => S("discountCurve", s.find((se) => se.key === le) ?? null), e[43] = s, e[44] = S, e[45] = j) : j = e[45];
|
|
2450
2448
|
let q;
|
|
2451
|
-
e[
|
|
2449
|
+
e[46] !== S ? (q = () => S("discountCurve", null), e[46] = S, e[47] = q) : q = e[47];
|
|
2450
|
+
let Z;
|
|
2451
|
+
e[48] !== h || e[49] !== D || e[50] !== N || e[51] !== G || e[52] !== W || e[53] !== U || e[54] !== j || e[55] !== q ? (Z = /* @__PURE__ */ f(Oe, { ...D, "aria-label": "无风险利率曲线", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: h, disabled: N, placeholder: "请选择无风险利率曲线", options: G, value: W, labelRender: U, onChange: j, onClear: q }), e[48] = h, e[49] = D, e[50] = N, e[51] = G, e[52] = W, e[53] = U, e[54] = j, e[55] = q, e[56] = Z) : Z = e[56];
|
|
2452
2452
|
let H;
|
|
2453
|
-
e[57] !==
|
|
2454
|
-
const Q = H, J =
|
|
2453
|
+
e[57] !== A || e[58] !== O || e[59] !== Z ? (H = /* @__PURE__ */ f(ye.Item, { className: V.contextFormItem, label: B, required: !0, extra: A, ...O, children: Z }), e[57] = A, e[58] = O, e[59] = Z, e[60] = H) : H = e[60];
|
|
2454
|
+
const Q = H, J = I ? "left" : "right";
|
|
2455
2455
|
let X;
|
|
2456
2456
|
e[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = {
|
|
2457
2457
|
flex: "0 0 var(--pricing-form-label-width)"
|
|
2458
2458
|
}, e[61] = X) : X = e[61];
|
|
2459
|
-
const K =
|
|
2459
|
+
const K = I ? "1 1 0" : "0 0 var(--pricing-form-control-width)";
|
|
2460
2460
|
let te;
|
|
2461
2461
|
e[62] !== K ? (te = {
|
|
2462
2462
|
flex: K
|
|
2463
2463
|
}, e[62] = K, e[63] = te) : te = e[63];
|
|
2464
|
-
const ie = `${
|
|
2464
|
+
const ie = `${V.contextForm} ${g}`;
|
|
2465
2465
|
let ne;
|
|
2466
2466
|
e[64] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = {
|
|
2467
|
-
label:
|
|
2468
|
-
content:
|
|
2467
|
+
label: V.contextFormLabel,
|
|
2468
|
+
content: V.contextFormContent
|
|
2469
2469
|
}, e[64] = ne) : ne = e[64];
|
|
2470
|
-
let
|
|
2471
|
-
e[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2470
|
+
let De;
|
|
2471
|
+
e[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = /* @__PURE__ */ f(je, { text: "定价环境" }), e[65] = De) : De = e[65];
|
|
2472
2472
|
let ce;
|
|
2473
|
-
e[66] !== a.pricingEnvironment ? (ce =
|
|
2473
|
+
e[66] !== a.pricingEnvironment ? (ce = Ze(a.pricingEnvironment), e[66] = a.pricingEnvironment, e[67] = ce) : ce = e[67];
|
|
2474
2474
|
const be = n.pricingEnvironment?.id;
|
|
2475
2475
|
let Ee;
|
|
2476
2476
|
e[68] !== n.pricingEnvironment?.code || e[69] !== n.pricingEnvironment?.name ? (Ee = () => $t(n.pricingEnvironment?.name, n.pricingEnvironment?.code), e[68] = n.pricingEnvironment?.code, e[69] = n.pricingEnvironment?.name, e[70] = Ee) : Ee = e[70];
|
|
2477
2477
|
let Fe;
|
|
2478
|
-
e[71] !== i || e[72] !==
|
|
2478
|
+
e[71] !== i || e[72] !== S ? (Fe = (le) => S("pricingEnvironment", i.find((se) => se.id === le) ?? null), e[71] = i, e[72] = S, e[73] = Fe) : Fe = e[73];
|
|
2479
2479
|
let Ce;
|
|
2480
|
-
e[74] !==
|
|
2480
|
+
e[74] !== S ? (Ce = () => S("pricingEnvironment", null), e[74] = S, e[75] = Ce) : Ce = e[75];
|
|
2481
2481
|
let fe;
|
|
2482
|
-
e[76] !==
|
|
2482
|
+
e[76] !== x || e[77] !== y || e[78] !== F || e[79] !== D || e[80] !== be || e[81] !== Ee || e[82] !== Fe || e[83] !== Ce ? (fe = /* @__PURE__ */ f(Oe, { ...D, "aria-label": "定价环境", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: F, disabled: x, placeholder: "请选择定价环境", options: y, value: be, labelRender: Ee, onChange: Fe, onClear: Ce }), e[76] = x, e[77] = y, e[78] = F, e[79] = D, e[80] = be, e[81] = Ee, e[82] = Fe, e[83] = Ce, e[84] = fe) : fe = e[84];
|
|
2483
2483
|
let Te;
|
|
2484
|
-
e[85] !== ce || e[86] !== fe ? (Te = /* @__PURE__ */ f(ye.Item, { className:
|
|
2485
|
-
const $e =
|
|
2484
|
+
e[85] !== ce || e[86] !== fe ? (Te = /* @__PURE__ */ f(ye.Item, { className: V.contextFormItem, label: De, required: !0, ...ce, children: fe }), e[85] = ce, e[86] = fe, e[87] = Te) : Te = e[87];
|
|
2485
|
+
const $e = I ? Q : d, _e = I ? d : Q;
|
|
2486
2486
|
let Ae;
|
|
2487
2487
|
e[88] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = /* @__PURE__ */ f(je, { text: "估值日" }), e[88] = Ae) : Ae = e[88];
|
|
2488
2488
|
let Se;
|
|
2489
|
-
e[89] !== a.valuationDate ? (Se =
|
|
2489
|
+
e[89] !== a.valuationDate ? (Se = Ze(a.valuationDate), e[89] = a.valuationDate, e[90] = Se) : Se = e[90];
|
|
2490
2490
|
let ge;
|
|
2491
2491
|
e[91] !== n.valuationDate ? (ge = n.valuationDate ? Ue(n.valuationDate) : null, e[91] = n.valuationDate, e[92] = ge) : ge = e[92];
|
|
2492
2492
|
let pe;
|
|
2493
|
-
e[93] !==
|
|
2493
|
+
e[93] !== S ? (pe = (le) => {
|
|
2494
2494
|
const se = Array.isArray(le) ? le[0] : le;
|
|
2495
|
-
|
|
2496
|
-
}, e[93] =
|
|
2495
|
+
S("valuationDate", se?.format("YYYY-MM-DD") ?? null);
|
|
2496
|
+
}, e[93] = S, e[94] = pe) : pe = e[94];
|
|
2497
2497
|
let ve;
|
|
2498
|
-
e[95] !==
|
|
2498
|
+
e[95] !== x || e[96] !== ge || e[97] !== pe ? (ve = /* @__PURE__ */ f(ke, { "aria-label": "估值日", allowClear: !0, disabled: x, value: ge, onChange: pe }), e[95] = x, e[96] = ge, e[97] = pe, e[98] = ve) : ve = e[98];
|
|
2499
2499
|
let xe;
|
|
2500
|
-
e[99] !== Se || e[100] !== ve ? (xe = /* @__PURE__ */ f(ye.Item, { className:
|
|
2500
|
+
e[99] !== Se || e[100] !== ve ? (xe = /* @__PURE__ */ f(ye.Item, { className: V.contextFormItem, label: Ae, required: !0, ...Se, children: ve }), e[99] = Se, e[100] = ve, e[101] = xe) : xe = e[101];
|
|
2501
2501
|
let re;
|
|
2502
|
-
return e[102] !== J || e[103] !== te || e[104] !== ie || e[105] !== Te || e[106] !== $e || e[107] !==
|
|
2502
|
+
return e[102] !== J || e[103] !== te || e[104] !== ie || e[105] !== Te || e[106] !== $e || e[107] !== _e || e[108] !== xe ? (re = /* @__PURE__ */ Me(ye, { component: "div", layout: "horizontal", labelAlign: J, labelCol: X, wrapperCol: te, colon: !1, requiredMark: !0, className: ie, classNames: ne, children: [
|
|
2503
2503
|
Te,
|
|
2504
2504
|
$e,
|
|
2505
|
-
|
|
2505
|
+
_e,
|
|
2506
2506
|
xe
|
|
2507
|
-
] }), e[102] = J, e[103] = te, e[104] = ie, e[105] = Te, e[106] = $e, e[107] =
|
|
2507
|
+
] }), e[102] = J, e[103] = te, e[104] = ie, e[105] = Te, e[106] = $e, e[107] = _e, e[108] = xe, e[109] = re) : re = e[109], re;
|
|
2508
2508
|
}
|
|
2509
2509
|
function In(r) {
|
|
2510
2510
|
return r.map(Rn);
|
|
@@ -2522,7 +2522,7 @@ function Pn(r) {
|
|
|
2522
2522
|
};
|
|
2523
2523
|
}
|
|
2524
2524
|
function Ln(r) {
|
|
2525
|
-
const e =
|
|
2525
|
+
const e = z.c(17), {
|
|
2526
2526
|
mode: t,
|
|
2527
2527
|
layout: u,
|
|
2528
2528
|
allDisabled: n,
|
|
@@ -2530,22 +2530,22 @@ function Ln(r) {
|
|
|
2530
2530
|
submitting: i,
|
|
2531
2531
|
onReset: s,
|
|
2532
2532
|
onNavigateToPricingPage: E,
|
|
2533
|
-
onCalculate:
|
|
2533
|
+
onCalculate: F
|
|
2534
2534
|
} = r;
|
|
2535
|
-
let
|
|
2536
|
-
e[0] !== n || e[1] !== u || e[2] !== t || e[3] !== E || e[4] !== i ? (
|
|
2537
|
-
const
|
|
2538
|
-
let
|
|
2539
|
-
e[6] !== s || e[7] !==
|
|
2540
|
-
const
|
|
2541
|
-
let
|
|
2542
|
-
e[9] !==
|
|
2543
|
-
let
|
|
2544
|
-
return e[13] !==
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
] }), e[13] =
|
|
2535
|
+
let h;
|
|
2536
|
+
e[0] !== n || e[1] !== u || e[2] !== t || e[3] !== E || e[4] !== i ? (h = t === "multiple" || u === "horizontal" ? /* @__PURE__ */ f(Ne, { className: V.navigateButton, icon: /* @__PURE__ */ f("span", { className: V.navigateIcon, "aria-hidden": "true" }), iconPlacement: "end", disabled: n || i || !E, onClick: E, children: "转定价界面" }) : null, e[0] = n, e[1] = u, e[2] = t, e[3] = E, e[4] = i, e[5] = h) : h = e[5];
|
|
2537
|
+
const p = n || i;
|
|
2538
|
+
let x;
|
|
2539
|
+
e[6] !== s || e[7] !== p ? (x = /* @__PURE__ */ f(Ne, { disabled: p, onClick: s, children: "重置" }), e[6] = s, e[7] = p, e[8] = x) : x = e[8];
|
|
2540
|
+
const S = n || a;
|
|
2541
|
+
let I;
|
|
2542
|
+
e[9] !== F || e[10] !== i || e[11] !== S ? (I = /* @__PURE__ */ f(Ne, { type: "primary", loading: i, disabled: S, onClick: F, children: "计算" }), e[9] = F, e[10] = i, e[11] = S, e[12] = I) : I = e[12];
|
|
2543
|
+
let b;
|
|
2544
|
+
return e[13] !== h || e[14] !== x || e[15] !== I ? (b = /* @__PURE__ */ Me("div", { className: V.footer, children: [
|
|
2545
|
+
h,
|
|
2546
|
+
x,
|
|
2547
|
+
I
|
|
2548
|
+
] }), e[13] = h, e[14] = x, e[15] = I, e[16] = b) : b = e[16], b;
|
|
2549
2549
|
}
|
|
2550
2550
|
const Nn = {
|
|
2551
2551
|
environments: "定价环境",
|
|
@@ -2555,7 +2555,7 @@ const Nn = {
|
|
|
2555
2555
|
customCarbonCurves: "自定义碳金融远期价格曲线"
|
|
2556
2556
|
};
|
|
2557
2557
|
function On(r) {
|
|
2558
|
-
const e =
|
|
2558
|
+
const e = z.c(9), {
|
|
2559
2559
|
resources: t,
|
|
2560
2560
|
onRetry: u
|
|
2561
2561
|
} = r;
|
|
@@ -2563,14 +2563,14 @@ function On(r) {
|
|
|
2563
2563
|
e[0] !== t ? (n = Object.keys(t), e[0] = t, e[1] = n) : n = e[1];
|
|
2564
2564
|
const a = n;
|
|
2565
2565
|
let i;
|
|
2566
|
-
e[2] !== t || e[3] !== a ? (i = a.filter((
|
|
2566
|
+
e[2] !== t || e[3] !== a ? (i = a.filter((F) => t[F].status === "error"), e[2] = t, e[3] = a, e[4] = i) : i = e[4];
|
|
2567
2567
|
const s = i;
|
|
2568
2568
|
if (s.length === 0)
|
|
2569
2569
|
return null;
|
|
2570
2570
|
let E;
|
|
2571
|
-
return e[5] !== s || e[6] !== u || e[7] !== t ? (E = /* @__PURE__ */ f("div", { className:
|
|
2572
|
-
const
|
|
2573
|
-
return /* @__PURE__ */ f(Ge, { type: "error", showIcon: !0, title: `${Nn[
|
|
2571
|
+
return e[5] !== s || e[6] !== u || e[7] !== t ? (E = /* @__PURE__ */ f("div", { className: V.resourceIssues, "aria-label": "资源加载异常", children: s.map((F) => {
|
|
2572
|
+
const h = t[F], p = h.attempts >= cu;
|
|
2573
|
+
return /* @__PURE__ */ f(Ge, { type: "error", showIcon: !0, title: `${Nn[F]}加载失败`, description: p ? `${h.error ?? "未知错误"}(已达到 3 次尝试上限)` : h.error, action: /* @__PURE__ */ f(Ne, { size: "small", disabled: p, onClick: () => u(F), children: "重试" }) }, F);
|
|
2574
2574
|
}) }), e[5] = s, e[6] = u, e[7] = t, e[8] = E) : E = e[8], E;
|
|
2575
2575
|
}
|
|
2576
2576
|
function Ye(r) {
|
|
@@ -2766,21 +2766,21 @@ function uu(r, e) {
|
|
|
2766
2766
|
if (!Re(t)) return [];
|
|
2767
2767
|
const u = t[e.idField];
|
|
2768
2768
|
if (u == null || u === "") return [];
|
|
2769
|
-
const n = String(u), a = String(t.code ?? ""), i = String(t.name ?? ""), s = String(t.currency ?? ""), E = e.source === "custom" && typeof t.createDate == "string" ? t.createDate : void 0,
|
|
2769
|
+
const n = String(u), a = String(t.code ?? ""), i = String(t.name ?? ""), s = String(t.currency ?? ""), E = e.source === "custom" && typeof t.createDate == "string" ? t.createDate : void 0, F = e.source === "custom" && typeof t.executeDay == "string" ? t.executeDay : void 0, h = {
|
|
2770
2770
|
[e.idField]: n
|
|
2771
2771
|
};
|
|
2772
2772
|
return [{
|
|
2773
2773
|
key: `${e.kind}:${e.source}:${n}`,
|
|
2774
2774
|
id: n,
|
|
2775
|
-
label: It(a, i,
|
|
2775
|
+
label: It(a, i, F),
|
|
2776
2776
|
code: a,
|
|
2777
2777
|
name: i,
|
|
2778
2778
|
kind: e.kind,
|
|
2779
2779
|
source: e.source,
|
|
2780
2780
|
currency: s,
|
|
2781
2781
|
createDate: E,
|
|
2782
|
-
executeDay:
|
|
2783
|
-
requestMapping:
|
|
2782
|
+
executeDay: F,
|
|
2783
|
+
requestMapping: h
|
|
2784
2784
|
}];
|
|
2785
2785
|
}) : [];
|
|
2786
2786
|
}
|
|
@@ -2795,14 +2795,14 @@ function Wn(r) {
|
|
|
2795
2795
|
}];
|
|
2796
2796
|
}) : [];
|
|
2797
2797
|
}
|
|
2798
|
-
function
|
|
2798
|
+
function qn(r) {
|
|
2799
2799
|
return uu(r, {
|
|
2800
2800
|
idField: "disCurveDefId",
|
|
2801
2801
|
kind: "discount",
|
|
2802
2802
|
source: "definition"
|
|
2803
2803
|
});
|
|
2804
2804
|
}
|
|
2805
|
-
function
|
|
2805
|
+
function Zn(r) {
|
|
2806
2806
|
return uu(r, {
|
|
2807
2807
|
idField: "disCurveId",
|
|
2808
2808
|
kind: "discount",
|
|
@@ -2879,31 +2879,31 @@ function Jn(r, e) {
|
|
|
2879
2879
|
comCurveDefId: s.comCurveDefId,
|
|
2880
2880
|
comCurveId: s.comCurveId
|
|
2881
2881
|
};
|
|
2882
|
-
return r.map((
|
|
2882
|
+
return r.map((F) => ({
|
|
2883
2883
|
astType: "",
|
|
2884
|
-
targtAllVarCodeSum:
|
|
2885
|
-
scrtyCode:
|
|
2886
|
-
currency:
|
|
2887
|
-
fwdMaturityDate:
|
|
2888
|
-
settleDate:
|
|
2889
|
-
physicalDelivery:
|
|
2890
|
-
direction:
|
|
2891
|
-
fwdDlvPrice:
|
|
2892
|
-
targtVol:
|
|
2893
|
-
...
|
|
2894
|
-
productType:
|
|
2884
|
+
targtAllVarCodeSum: F.targtAllVarCodeSum,
|
|
2885
|
+
scrtyCode: F.scrtyCode,
|
|
2886
|
+
currency: F.currency,
|
|
2887
|
+
fwdMaturityDate: F.fwdMaturityDate,
|
|
2888
|
+
settleDate: F.settleDate,
|
|
2889
|
+
physicalDelivery: F.physicalDelivery,
|
|
2890
|
+
direction: F.direction,
|
|
2891
|
+
fwdDlvPrice: F.fwdDlvPrice,
|
|
2892
|
+
targtVol: F.targtVol,
|
|
2893
|
+
...F.productType ? {
|
|
2894
|
+
productType: F.productType
|
|
2895
2895
|
} : {},
|
|
2896
|
-
...
|
|
2897
|
-
instrumentId:
|
|
2896
|
+
...F.instrumentId ? {
|
|
2897
|
+
instrumentId: F.instrumentId
|
|
2898
2898
|
} : {},
|
|
2899
|
-
...
|
|
2900
|
-
instrumentCode:
|
|
2899
|
+
...F.instrumentCode ? {
|
|
2900
|
+
instrumentCode: F.instrumentCode
|
|
2901
2901
|
} : {},
|
|
2902
|
-
...
|
|
2903
|
-
instrumentName:
|
|
2902
|
+
...F.instrumentName ? {
|
|
2903
|
+
instrumentName: F.instrumentName
|
|
2904
2904
|
} : {},
|
|
2905
|
-
...
|
|
2906
|
-
tradeContpId:
|
|
2905
|
+
...F.tradeContpId ? {
|
|
2906
|
+
tradeContpId: F.tradeContpId
|
|
2907
2907
|
} : {},
|
|
2908
2908
|
...E
|
|
2909
2909
|
}));
|
|
@@ -2969,18 +2969,18 @@ function to(r) {
|
|
|
2969
2969
|
contracts: e,
|
|
2970
2970
|
productType: t,
|
|
2971
2971
|
dataSource: u
|
|
2972
|
-
} = r, [n, a] = Wt(Vn, void 0, () => zn(e.map((o) => o.contractId))), i = ee(!0), s = ee(0), E = ee(0),
|
|
2973
|
-
|
|
2974
|
-
i.current = !1,
|
|
2972
|
+
} = r, [n, a] = Wt(Vn, void 0, () => zn(e.map((o) => o.contractId))), i = ee(!0), s = ee(0), E = ee(0), F = ee(null), h = ee(null), p = ee(null), x = ee(/* @__PURE__ */ new Map()), [S, I] = ze(0), b = ee(/* @__PURE__ */ new Map());
|
|
2973
|
+
Be(() => () => {
|
|
2974
|
+
i.current = !1, h.current?.abort(), p.current?.abort(), x.current.forEach((o) => o.abort());
|
|
2975
2975
|
}, []);
|
|
2976
|
-
const
|
|
2976
|
+
const g = he(async (o) => {
|
|
2977
2977
|
if (n.resources[o].attempts >= cu) return;
|
|
2978
2978
|
a({
|
|
2979
2979
|
type: "resource/loading",
|
|
2980
2980
|
key: o
|
|
2981
|
-
}),
|
|
2981
|
+
}), x.current.get(o)?.abort();
|
|
2982
2982
|
const l = new AbortController();
|
|
2983
|
-
|
|
2983
|
+
x.current.set(o, l);
|
|
2984
2984
|
try {
|
|
2985
2985
|
let c;
|
|
2986
2986
|
switch (o) {
|
|
@@ -3000,7 +3000,7 @@ function to(r) {
|
|
|
3000
3000
|
}, {
|
|
3001
3001
|
signal: l.signal
|
|
3002
3002
|
});
|
|
3003
|
-
c =
|
|
3003
|
+
c = qn(Ie("listDiscountCurveDefinitions", d));
|
|
3004
3004
|
break;
|
|
3005
3005
|
}
|
|
3006
3006
|
case "customDiscountCurves": {
|
|
@@ -3010,7 +3010,7 @@ function to(r) {
|
|
|
3010
3010
|
}, {
|
|
3011
3011
|
signal: l.signal
|
|
3012
3012
|
});
|
|
3013
|
-
c =
|
|
3013
|
+
c = Zn(Ie("listCustomDiscountCurves", d));
|
|
3014
3014
|
break;
|
|
3015
3015
|
}
|
|
3016
3016
|
case "carbonDefinitions": {
|
|
@@ -3046,12 +3046,12 @@ function to(r) {
|
|
|
3046
3046
|
error: c instanceof Error ? c.message : Gu[o]
|
|
3047
3047
|
});
|
|
3048
3048
|
}
|
|
3049
|
-
}, [u, n.resources]),
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
}, [
|
|
3053
|
-
const y = Le(() => [...n.resources.discountDefinitions.data, ...n.resources.customDiscountCurves.data, ...n.resources.carbonDefinitions.data, ...n.resources.customCarbonCurves.data], [n.resources]),
|
|
3054
|
-
|
|
3049
|
+
}, [u, n.resources]), T = ee(!1);
|
|
3050
|
+
Be(() => {
|
|
3051
|
+
T.current || (T.current = !0, Promise.allSettled(Object.keys(Gu).map((o) => g(o))));
|
|
3052
|
+
}, [g]);
|
|
3053
|
+
const y = Le(() => [...n.resources.discountDefinitions.data, ...n.resources.customDiscountCurves.data, ...n.resources.carbonDefinitions.data, ...n.resources.customCarbonCurves.data], [n.resources]), M = Le(() => y.filter((o) => o.kind === "discount"), [y]), P = Le(() => y.filter((o) => o.kind === "carbonForward"), [y]), w = ee(y);
|
|
3054
|
+
Be(() => {
|
|
3055
3055
|
w.current = y;
|
|
3056
3056
|
}, [y]);
|
|
3057
3057
|
const L = he((o, l) => w.current.find((c) => c.kind === o.kind && (c.id === o.id || c.key === o.id)) ?? {
|
|
@@ -3059,68 +3059,68 @@ function to(r) {
|
|
|
3059
3059
|
key: `${o.kind}:${o.source}:${o.id}`,
|
|
3060
3060
|
currency: l
|
|
3061
3061
|
}, []), D = n.context.pricingEnvironment;
|
|
3062
|
-
|
|
3062
|
+
Be(() => {
|
|
3063
3063
|
if (!D || !t) return;
|
|
3064
|
-
|
|
3064
|
+
p.current?.abort();
|
|
3065
3065
|
const o = new AbortController();
|
|
3066
|
-
|
|
3066
|
+
p.current = o;
|
|
3067
3067
|
const l = ++s.current, c = JSON.stringify([D.id, t]);
|
|
3068
3068
|
a({
|
|
3069
3069
|
type: "environment-curves/loading"
|
|
3070
3070
|
});
|
|
3071
|
-
let d =
|
|
3071
|
+
let d = b.current.get(c);
|
|
3072
3072
|
return d || (d = u.getEnvironmentCurveSelection({
|
|
3073
3073
|
pricingEnvId: D.id,
|
|
3074
3074
|
productType: t
|
|
3075
3075
|
}, {
|
|
3076
3076
|
signal: o.signal
|
|
3077
|
-
}).then((B) => Qn(Ie("getEnvironmentCurveSelection", B))),
|
|
3077
|
+
}).then((B) => Qn(Ie("getEnvironmentCurveSelection", B))), b.current.set(c, d)), d.then((B) => {
|
|
3078
3078
|
!i.current || l !== s.current || a({
|
|
3079
3079
|
type: "environment-curves/success",
|
|
3080
3080
|
discountCurve: B ? L(B.discountCurve, D.currency) : null,
|
|
3081
3081
|
carbonForwardCurve: B ? L(B.carbonForwardCurve, D.currency) : null
|
|
3082
3082
|
});
|
|
3083
3083
|
}).catch((B) => {
|
|
3084
|
-
|
|
3084
|
+
b.current.delete(c), !o.signal.aborted && (!i.current || l !== s.current || a({
|
|
3085
3085
|
type: "environment-curves/error",
|
|
3086
3086
|
error: B instanceof Error ? B.message : "环境关联曲线加载失败"
|
|
3087
3087
|
}));
|
|
3088
3088
|
}), () => o.abort();
|
|
3089
|
-
}, [u,
|
|
3089
|
+
}, [u, S, t, L, D]);
|
|
3090
3090
|
const R = ee(t);
|
|
3091
|
-
|
|
3091
|
+
Be(() => {
|
|
3092
3092
|
R.current !== t && (R.current = t, n.context.pricingEnvironment && a({
|
|
3093
3093
|
type: "context/set",
|
|
3094
3094
|
field: "pricingEnvironment",
|
|
3095
3095
|
value: n.context.pricingEnvironment
|
|
3096
3096
|
}));
|
|
3097
3097
|
}, [t, n.context.pricingEnvironment]);
|
|
3098
|
-
const
|
|
3099
|
-
|
|
3100
|
-
|
|
3098
|
+
const $ = ee(n.context);
|
|
3099
|
+
Be(() => {
|
|
3100
|
+
$.current = n.context;
|
|
3101
3101
|
}, [n.context]);
|
|
3102
|
-
const
|
|
3103
|
-
const c =
|
|
3104
|
-
c === l || c != null && l != null && typeof c == "object" && typeof l == "object" && ("key" in c && "key" in l && c.key === l.key || "id" in c && "id" in l && c.id === l.id) || (o === "pricingEnvironment" && l && console.log("[IndicativePricingforSelectedContracts] selected pricing environment id:", l.id),
|
|
3105
|
-
|
|
3102
|
+
const v = he((o, l) => {
|
|
3103
|
+
const c = $.current[o];
|
|
3104
|
+
c === l || c != null && l != null && typeof c == "object" && typeof l == "object" && ("key" in c && "key" in l && c.key === l.key || "id" in c && "id" in l && c.id === l.id) || (o === "pricingEnvironment" && l && console.log("[IndicativePricingforSelectedContracts] selected pricing environment id:", l.id), $.current = {
|
|
3105
|
+
...$.current,
|
|
3106
3106
|
[o]: l
|
|
3107
|
-
}, E.current += 1,
|
|
3107
|
+
}, E.current += 1, h.current?.abort(), F.current = null, a({
|
|
3108
3108
|
type: "context/set",
|
|
3109
3109
|
field: o,
|
|
3110
3110
|
value: l
|
|
3111
3111
|
}));
|
|
3112
3112
|
}, []), _ = ee(!1);
|
|
3113
|
-
|
|
3113
|
+
Be(() => {
|
|
3114
3114
|
const o = n.resources.environments;
|
|
3115
3115
|
if (_.current || o.status !== "success" && o.status !== "empty" || (_.current = !0, n.context.pricingEnvironment)) return;
|
|
3116
3116
|
const l = o.data.find((c) => c.isDefaultForSelf === !0);
|
|
3117
|
-
l &&
|
|
3118
|
-
}, [
|
|
3119
|
-
const
|
|
3117
|
+
l && v("pricingEnvironment", l);
|
|
3118
|
+
}, [v, n.context.pricingEnvironment, n.resources.environments]);
|
|
3119
|
+
const k = he(async () => {
|
|
3120
3120
|
if (!i.current) return {
|
|
3121
3121
|
kind: "cancelled"
|
|
3122
3122
|
};
|
|
3123
|
-
if (
|
|
3123
|
+
if (F.current !== null)
|
|
3124
3124
|
return {
|
|
3125
3125
|
kind: "blocked",
|
|
3126
3126
|
reason: "submitting"
|
|
@@ -3128,7 +3128,7 @@ function to(r) {
|
|
|
3128
3128
|
if (e.length === 0) return {
|
|
3129
3129
|
kind: "empty"
|
|
3130
3130
|
};
|
|
3131
|
-
const o =
|
|
3131
|
+
const o = $.current, l = wn(o), c = kn(o.valuationDate, e);
|
|
3132
3132
|
if (!c.valid && c.message && (l.valuationDate = [c.message]), a({
|
|
3133
3133
|
type: "context/errors",
|
|
3134
3134
|
errors: l
|
|
@@ -3136,10 +3136,10 @@ function to(r) {
|
|
|
3136
3136
|
return {
|
|
3137
3137
|
kind: "invalid"
|
|
3138
3138
|
};
|
|
3139
|
-
const d = Jn(e, o), B = n.inputVersion,
|
|
3140
|
-
|
|
3139
|
+
const d = Jn(e, o), B = n.inputVersion, A = ++E.current;
|
|
3140
|
+
F.current = A, h.current?.abort();
|
|
3141
3141
|
const O = new AbortController();
|
|
3142
|
-
|
|
3142
|
+
h.current = O, a({
|
|
3143
3143
|
type: "calculation/submitting",
|
|
3144
3144
|
contractIds: e.map((N) => N.contractId)
|
|
3145
3145
|
});
|
|
@@ -3147,7 +3147,7 @@ function to(r) {
|
|
|
3147
3147
|
const N = Ie("calculate", await u.calculate(d, {
|
|
3148
3148
|
signal: O.signal
|
|
3149
3149
|
}));
|
|
3150
|
-
if (!i.current ||
|
|
3150
|
+
if (!i.current || A !== E.current)
|
|
3151
3151
|
return {
|
|
3152
3152
|
kind: "cancelled"
|
|
3153
3153
|
};
|
|
@@ -3161,7 +3161,7 @@ function to(r) {
|
|
|
3161
3161
|
hasExtraItems: G.length > e.length
|
|
3162
3162
|
};
|
|
3163
3163
|
} catch (N) {
|
|
3164
|
-
if (!i.current ||
|
|
3164
|
+
if (!i.current || A !== E.current)
|
|
3165
3165
|
return {
|
|
3166
3166
|
kind: "cancelled"
|
|
3167
3167
|
};
|
|
@@ -3179,10 +3179,10 @@ function to(r) {
|
|
|
3179
3179
|
kind: "requestError"
|
|
3180
3180
|
};
|
|
3181
3181
|
} finally {
|
|
3182
|
-
|
|
3182
|
+
F.current === A && (F.current = null);
|
|
3183
3183
|
}
|
|
3184
|
-
}, [e, u, n.inputVersion]),
|
|
3185
|
-
E.current += 1,
|
|
3184
|
+
}, [e, u, n.inputVersion]), Y = he(() => F.current !== null, []), C = he(() => {
|
|
3185
|
+
E.current += 1, h.current?.abort(), F.current = null, s.current += 1, p.current?.abort(), $.current = {
|
|
3186
3186
|
...Bu
|
|
3187
3187
|
}, a({
|
|
3188
3188
|
type: "reset"
|
|
@@ -3191,76 +3191,76 @@ function to(r) {
|
|
|
3191
3191
|
return {
|
|
3192
3192
|
state: n,
|
|
3193
3193
|
initialized: m,
|
|
3194
|
-
discountCurves:
|
|
3194
|
+
discountCurves: M,
|
|
3195
3195
|
carbonForwardCurves: P,
|
|
3196
|
-
setContext:
|
|
3197
|
-
retryResource:
|
|
3196
|
+
setContext: v,
|
|
3197
|
+
retryResource: g,
|
|
3198
3198
|
retryEnvironmentCurves: () => {
|
|
3199
3199
|
if (!D || n.environmentCurvesAttempts >= cu)
|
|
3200
3200
|
return;
|
|
3201
3201
|
const o = JSON.stringify([D.id, t]);
|
|
3202
|
-
|
|
3202
|
+
b.current.delete(o), I((l) => l + 1);
|
|
3203
3203
|
},
|
|
3204
|
-
calculate:
|
|
3205
|
-
isCalculating:
|
|
3206
|
-
reset:
|
|
3204
|
+
calculate: k,
|
|
3205
|
+
isCalculating: Y,
|
|
3206
|
+
reset: C
|
|
3207
3207
|
};
|
|
3208
3208
|
}
|
|
3209
3209
|
const ro = ue(function(e, t) {
|
|
3210
|
-
const u =
|
|
3210
|
+
const u = z.c(114), {
|
|
3211
3211
|
mode: n,
|
|
3212
3212
|
layout: a,
|
|
3213
3213
|
appId: i,
|
|
3214
3214
|
productType: s,
|
|
3215
3215
|
contractData: E,
|
|
3216
|
-
dataSource:
|
|
3217
|
-
showFooter:
|
|
3218
|
-
onNavigateToPricingPage:
|
|
3219
|
-
afterJumpPricingPage:
|
|
3220
|
-
className:
|
|
3221
|
-
style:
|
|
3222
|
-
} = e,
|
|
3216
|
+
dataSource: F,
|
|
3217
|
+
showFooter: h,
|
|
3218
|
+
onNavigateToPricingPage: p,
|
|
3219
|
+
afterJumpPricingPage: x,
|
|
3220
|
+
className: S,
|
|
3221
|
+
style: I
|
|
3222
|
+
} = e, b = n === void 0 ? "multiple" : n, g = a === void 0 ? "horizontal" : a, T = h === void 0 ? !0 : h, y = b === "single" && g === "vertical", M = b === "single" && g === "horizontal", P = b === "multiple" ? V.multiple : y ? V.single : V.fixedSingle, {
|
|
3223
3223
|
message: w
|
|
3224
3224
|
} = hu.useApp();
|
|
3225
3225
|
let L;
|
|
3226
|
-
u[0] !== E || u[1] !==
|
|
3226
|
+
u[0] !== E || u[1] !== b ? (L = () => Object.freeze((b === "multiple" ? [...E] : E.slice(0, 1)).map(no)), u[0] = E, u[1] = b, u[2] = L) : L = u[2];
|
|
3227
3227
|
const [D] = ze(L);
|
|
3228
3228
|
let R;
|
|
3229
3229
|
u[3] !== E.length ? (R = () => E.length, u[3] = E.length, u[4] = R) : R = u[4];
|
|
3230
|
-
const [
|
|
3230
|
+
const [$] = ze(R), v = b === "multiple" && $ > dr;
|
|
3231
3231
|
let _;
|
|
3232
|
-
u[5] !== D || u[6] !==
|
|
3233
|
-
const
|
|
3234
|
-
let
|
|
3235
|
-
u[8] !==
|
|
3236
|
-
contracts:
|
|
3232
|
+
u[5] !== D || u[6] !== v ? (_ = v ? [] : D, u[5] = D, u[6] = v, u[7] = _) : _ = u[7];
|
|
3233
|
+
const k = _;
|
|
3234
|
+
let Y;
|
|
3235
|
+
u[8] !== k || u[9] !== F || u[10] !== s ? (Y = {
|
|
3236
|
+
contracts: k,
|
|
3237
3237
|
productType: s,
|
|
3238
|
-
dataSource:
|
|
3239
|
-
}, u[8] =
|
|
3240
|
-
const
|
|
3238
|
+
dataSource: F
|
|
3239
|
+
}, u[8] = k, u[9] = F, u[10] = s, u[11] = Y) : Y = u[11];
|
|
3240
|
+
const C = to(Y), {
|
|
3241
3241
|
calculate: m,
|
|
3242
3242
|
initialized: o,
|
|
3243
3243
|
isCalculating: l,
|
|
3244
3244
|
reset: c,
|
|
3245
3245
|
state: d
|
|
3246
|
-
} =
|
|
3247
|
-
let
|
|
3248
|
-
u[12] !==
|
|
3249
|
-
|
|
3250
|
-
}, O = [
|
|
3251
|
-
const N =
|
|
3246
|
+
} = C, B = ee(!1);
|
|
3247
|
+
let A, O;
|
|
3248
|
+
u[12] !== k.length || u[13] !== w || u[14] !== v ? (A = () => {
|
|
3249
|
+
k.length === 0 && !v && !B.current && (B.current = !0, w.warning("请先选择一笔合约"));
|
|
3250
|
+
}, O = [k.length, w, v], u[12] = k.length, u[13] = w, u[14] = v, u[15] = A, u[16] = O) : (A = u[15], O = u[16]), Be(A, O);
|
|
3251
|
+
const N = k.length === 0 || v, G = !C.initialized || d.submitting || d.environmentCurvesStatus === "loading", W = [d.resources.discountDefinitions.status, d.resources.customDiscountCurves.status, d.resources.carbonDefinitions.status, d.resources.customCarbonCurves.status].some(oo), U = d.environmentCurvesStatus === "loading";
|
|
3252
3252
|
let j;
|
|
3253
3253
|
u[17] !== N || u[18] !== l || u[19] !== c ? (j = () => N || l() ? !1 : (c(), !0), u[17] = N, u[18] = l, u[19] = c, u[20] = j) : j = u[20];
|
|
3254
|
-
const
|
|
3255
|
-
let
|
|
3256
|
-
u[21] !==
|
|
3254
|
+
const q = j;
|
|
3255
|
+
let Z;
|
|
3256
|
+
u[21] !== x || u[22] !== N || u[23] !== i || u[24] !== E || u[25] !== l || u[26] !== w || u[27] !== p || u[28] !== s ? (Z = () => {
|
|
3257
3257
|
if (N || l())
|
|
3258
3258
|
return !1;
|
|
3259
3259
|
const re = E.map(ao).filter(io);
|
|
3260
3260
|
if (re.length === 0)
|
|
3261
3261
|
return w.info("所选合约成交编号为空,请返回重新选择"), !1;
|
|
3262
3262
|
const le = re.length < E.length, se = `/price-contracts-list?productType=${encodeURIComponent(s)}&instrumentCodes=${encodeURIComponent(re.join("&"))}&partialInstrumentCodeEmpty=${le}`;
|
|
3263
|
-
return
|
|
3263
|
+
return p ? p(se) : window.parent?.postMessage({
|
|
3264
3264
|
event: "g-navigate",
|
|
3265
3265
|
appId: i,
|
|
3266
3266
|
payload: {
|
|
@@ -3268,17 +3268,17 @@ const ro = ue(function(e, t) {
|
|
|
3268
3268
|
routePath: se
|
|
3269
3269
|
},
|
|
3270
3270
|
timestamp: Date.now()
|
|
3271
|
-
}, "*"),
|
|
3272
|
-
}, u[21] =
|
|
3273
|
-
const H =
|
|
3271
|
+
}, "*"), x && Promise.resolve().then(() => x()).catch(lo), !0;
|
|
3272
|
+
}, u[21] = x, u[22] = N, u[23] = i, u[24] = E, u[25] = l, u[26] = w, u[27] = p, u[28] = s, u[29] = Z) : Z = u[29];
|
|
3273
|
+
const H = Z;
|
|
3274
3274
|
let Q;
|
|
3275
|
-
u[30] !== m || u[31] !==
|
|
3276
|
-
if (
|
|
3275
|
+
u[30] !== m || u[31] !== k.length || u[32] !== U || u[33] !== o || u[34] !== l || u[35] !== w || u[36] !== v ? (Q = async () => {
|
|
3276
|
+
if (v)
|
|
3277
3277
|
return {
|
|
3278
3278
|
kind: "blocked",
|
|
3279
3279
|
reason: "overLimit"
|
|
3280
3280
|
};
|
|
3281
|
-
if (
|
|
3281
|
+
if (k.length === 0)
|
|
3282
3282
|
return {
|
|
3283
3283
|
kind: "empty"
|
|
3284
3284
|
};
|
|
@@ -3294,82 +3294,82 @@ const ro = ue(function(e, t) {
|
|
|
3294
3294
|
};
|
|
3295
3295
|
const re = await m();
|
|
3296
3296
|
return re.kind === "invalid" ? w.error("请完成所有定价要素配置") : re.kind === "success" && re.hasExtraItems && w.warning("定价服务返回了多余结果,已按请求顺序忽略"), re;
|
|
3297
|
-
}, u[30] = m, u[31] =
|
|
3297
|
+
}, u[30] = m, u[31] = k.length, u[32] = U, u[33] = o, u[34] = l, u[35] = w, u[36] = v, u[37] = Q) : Q = u[37];
|
|
3298
3298
|
const J = Q;
|
|
3299
3299
|
let X, K;
|
|
3300
|
-
u[38] !== J || u[39] !== H || u[40] !==
|
|
3301
|
-
reset:
|
|
3300
|
+
u[38] !== J || u[39] !== H || u[40] !== q ? (X = () => ({
|
|
3301
|
+
reset: q,
|
|
3302
3302
|
navigateToPricingPage: H,
|
|
3303
3303
|
calculate: J
|
|
3304
|
-
}), K = [J, H,
|
|
3304
|
+
}), K = [J, H, q], u[38] = J, u[39] = H, u[40] = q, u[41] = X, u[42] = K) : (X = u[41], K = u[42]), qt(t, X, K);
|
|
3305
3305
|
let te;
|
|
3306
3306
|
e: {
|
|
3307
|
-
if (
|
|
3307
|
+
if (v) {
|
|
3308
3308
|
let de;
|
|
3309
|
-
u[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ f("div", { className:
|
|
3309
|
+
u[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ f("div", { className: V.emptyState, children: /* @__PURE__ */ f(Ve, { description: "合约数量超出支持范围" }) }), u[43] = de) : de = u[43], te = de;
|
|
3310
3310
|
break e;
|
|
3311
3311
|
}
|
|
3312
|
-
if (
|
|
3312
|
+
if (k.length === 0) {
|
|
3313
3313
|
let de;
|
|
3314
|
-
u[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ f("div", { className:
|
|
3314
|
+
u[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ f("div", { className: V.emptyState, children: /* @__PURE__ */ f(Ve, { description: "请先选择一笔合约" }) }), u[44] = de) : de = u[44], te = de;
|
|
3315
3315
|
break e;
|
|
3316
3316
|
}
|
|
3317
|
-
if (
|
|
3318
|
-
const de =
|
|
3317
|
+
if (M) {
|
|
3318
|
+
const de = k[0], ru = d.resultByContractId[de.contractId], nu = !C.initialized || d.submitting;
|
|
3319
3319
|
let We;
|
|
3320
3320
|
u[45] !== de || u[46] !== ru || u[47] !== nu ? (We = /* @__PURE__ */ f(pn, { contract: de, calculation: ru, loading: nu }), u[45] = de, u[46] = ru, u[47] = nu, u[48] = We) : We = u[48], te = We;
|
|
3321
3321
|
break e;
|
|
3322
3322
|
}
|
|
3323
|
-
const re =
|
|
3323
|
+
const re = b === "single", le = !C.initialized || d.submitting;
|
|
3324
3324
|
let se;
|
|
3325
|
-
u[49] !==
|
|
3325
|
+
u[49] !== k || u[50] !== d.resultByContractId || u[51] !== re || u[52] !== le ? (se = /* @__PURE__ */ f(bn, { single: re, contracts: k, results: d.resultByContractId, loading: le }), u[49] = k, u[50] = d.resultByContractId, u[51] = re, u[52] = le, u[53] = se) : se = u[53], te = se;
|
|
3326
3326
|
}
|
|
3327
3327
|
const ie = te;
|
|
3328
3328
|
let ne;
|
|
3329
|
-
u[54] !==
|
|
3330
|
-
const
|
|
3329
|
+
u[54] !== S || u[55] !== P ? (ne = vu(V.root, P, S), u[54] = S, u[55] = P, u[56] = ne) : ne = u[56];
|
|
3330
|
+
const De = d.submitting ? "submitting" : C.initialized ? "ready" : "loading", ce = !C.initialized;
|
|
3331
3331
|
let be;
|
|
3332
|
-
u[57] !== y ? (be = y ? null : /* @__PURE__ */ f("h3", { className:
|
|
3332
|
+
u[57] !== y ? (be = y ? null : /* @__PURE__ */ f("h3", { className: V.sectionTitle, children: "定价要素" }), u[57] = y, u[58] = be) : be = u[58];
|
|
3333
3333
|
let Ee;
|
|
3334
|
-
u[59] !==
|
|
3334
|
+
u[59] !== v || u[60] !== $ ? (Ee = v ? /* @__PURE__ */ f(Ge, { className: V.limitAlert, type: "error", showIcon: !0, title: `最多支持1000笔,当前${$}笔,请返回重新选择` }) : null, u[59] = v, u[60] = $, u[61] = Ee) : Ee = u[61];
|
|
3335
3335
|
let Fe;
|
|
3336
|
-
u[62] !==
|
|
3337
|
-
|
|
3338
|
-
}, u[62] =
|
|
3336
|
+
u[62] !== C ? (Fe = (re) => {
|
|
3337
|
+
C.retryResource(re);
|
|
3338
|
+
}, u[62] = C, u[63] = Fe) : Fe = u[63];
|
|
3339
3339
|
let Ce;
|
|
3340
3340
|
u[64] !== d.resources || u[65] !== Fe ? (Ce = /* @__PURE__ */ f(On, { resources: d.resources, onRetry: Fe }), u[64] = d.resources, u[65] = Fe, u[66] = Ce) : Ce = u[66];
|
|
3341
3341
|
let fe;
|
|
3342
|
-
u[67] !==
|
|
3342
|
+
u[67] !== C.retryEnvironmentCurves || u[68] !== d.environmentCurvesAttempts || u[69] !== d.environmentCurvesError || u[70] !== d.environmentCurvesStatus ? (fe = d.environmentCurvesStatus === "error" ? /* @__PURE__ */ f(Ge, { type: "error", showIcon: !0, title: "环境关联曲线加载失败", description: d.environmentCurvesError, action: /* @__PURE__ */ f(Ne, { size: "small", disabled: d.environmentCurvesAttempts >= 3, onClick: C.retryEnvironmentCurves, children: "重试" }) }) : null, u[67] = C.retryEnvironmentCurves, u[68] = d.environmentCurvesAttempts, u[69] = d.environmentCurvesError, u[70] = d.environmentCurvesStatus, u[71] = fe) : fe = u[71];
|
|
3343
3343
|
const Te = d.resources.environments.status === "loading", $e = W || U;
|
|
3344
|
-
let
|
|
3345
|
-
u[72] !==
|
|
3344
|
+
let _e;
|
|
3345
|
+
u[72] !== C.carbonForwardCurves || u[73] !== C.discountCurves || u[74] !== C.setContext || u[75] !== U || u[76] !== g || u[77] !== b || u[78] !== d.context || u[79] !== d.contextErrors || u[80] !== d.resources.environments.data || u[81] !== d.submitting || u[82] !== Te || u[83] !== $e ? (_e = /* @__PURE__ */ f($n, { mode: b, layout: g, value: d.context, errors: d.contextErrors, environments: d.resources.environments.data, discountCurves: C.discountCurves, carbonForwardCurves: C.carbonForwardCurves, environmentsLoading: Te, curvesLoading: $e, curvesDisabled: U, disabled: d.submitting, onChange: C.setContext }), u[72] = C.carbonForwardCurves, u[73] = C.discountCurves, u[74] = C.setContext, u[75] = U, u[76] = g, u[77] = b, u[78] = d.context, u[79] = d.contextErrors, u[80] = d.resources.environments.data, u[81] = d.submitting, u[82] = Te, u[83] = $e, u[84] = _e) : _e = u[84];
|
|
3346
3346
|
let Ae;
|
|
3347
|
-
u[85] !== be || u[86] !== Ee || u[87] !== Ce || u[88] !== fe || u[89] !==
|
|
3347
|
+
u[85] !== be || u[86] !== Ee || u[87] !== Ce || u[88] !== fe || u[89] !== _e ? (Ae = /* @__PURE__ */ Me("div", { className: V.section, children: [
|
|
3348
3348
|
be,
|
|
3349
3349
|
Ee,
|
|
3350
3350
|
Ce,
|
|
3351
3351
|
fe,
|
|
3352
|
-
|
|
3353
|
-
] }), u[85] = be, u[86] = Ee, u[87] = Ce, u[88] = fe, u[89] =
|
|
3352
|
+
_e
|
|
3353
|
+
] }), u[85] = be, u[86] = Ee, u[87] = Ce, u[88] = fe, u[89] = _e, u[90] = Ae) : Ae = u[90];
|
|
3354
3354
|
let Se;
|
|
3355
|
-
u[91] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = /* @__PURE__ */ f("div", { className:
|
|
3355
|
+
u[91] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = /* @__PURE__ */ f("div", { className: V.sectionTitle, children: "定价结果" }), u[91] = Se) : Se = u[91];
|
|
3356
3356
|
let ge;
|
|
3357
|
-
u[92] !== ie ? (ge = /* @__PURE__ */
|
|
3357
|
+
u[92] !== ie ? (ge = /* @__PURE__ */ Me("div", { className: V.section, children: [
|
|
3358
3358
|
Se,
|
|
3359
3359
|
ie
|
|
3360
3360
|
] }), u[92] = ie, u[93] = ge) : ge = u[93];
|
|
3361
3361
|
let pe;
|
|
3362
|
-
u[94] !== N || u[95] !== G || u[96] !== J || u[97] !== H || u[98] !==
|
|
3362
|
+
u[94] !== N || u[95] !== G || u[96] !== J || u[97] !== H || u[98] !== q || u[99] !== g || u[100] !== b || u[101] !== T || u[102] !== d.submitting ? (pe = T ? /* @__PURE__ */ f(Ln, { mode: b, layout: g, allDisabled: N, calculateDisabled: G, submitting: d.submitting, onReset: q, onNavigateToPricingPage: H, onCalculate: () => {
|
|
3363
3363
|
J();
|
|
3364
|
-
} }) : null, u[94] = N, u[95] = G, u[96] = J, u[97] = H, u[98] =
|
|
3364
|
+
} }) : null, u[94] = N, u[95] = G, u[96] = J, u[97] = H, u[98] = q, u[99] = g, u[100] = b, u[101] = T, u[102] = d.submitting, u[103] = pe) : pe = u[103];
|
|
3365
3365
|
let ve;
|
|
3366
|
-
u[104] !== ce || u[105] !== Ae || u[106] !== ge || u[107] !== pe ? (ve = /* @__PURE__ */
|
|
3366
|
+
u[104] !== ce || u[105] !== Ae || u[106] !== ge || u[107] !== pe ? (ve = /* @__PURE__ */ Me(Du, { spinning: ce, description: "定价资源加载中", children: [
|
|
3367
3367
|
Ae,
|
|
3368
3368
|
ge,
|
|
3369
3369
|
pe
|
|
3370
3370
|
] }), u[104] = ce, u[105] = Ae, u[106] = ge, u[107] = pe, u[108] = ve) : ve = u[108];
|
|
3371
3371
|
let xe;
|
|
3372
|
-
return u[109] !==
|
|
3372
|
+
return u[109] !== I || u[110] !== ne || u[111] !== De || u[112] !== ve ? (xe = /* @__PURE__ */ f("section", { className: ne, style: I, "aria-label": "交易合约试定价", "data-status": De, children: ve }), u[109] = I, u[110] = ne, u[111] = De, u[112] = ve, u[113] = xe) : xe = u[113], xe;
|
|
3373
3373
|
});
|
|
3374
3374
|
ro.displayName = "IndicativePricingforSelectedContracts";
|
|
3375
3375
|
function no(r, e) {
|
|
@@ -3391,7 +3391,7 @@ function lo(r) {
|
|
|
3391
3391
|
console.error("[IndicativePricingforSelectedContracts] afterJumpPricingPage 执行失败", r);
|
|
3392
3392
|
}
|
|
3393
3393
|
const Rt = ue((r, e) => {
|
|
3394
|
-
const t =
|
|
3394
|
+
const t = z.c(7);
|
|
3395
3395
|
let u, n;
|
|
3396
3396
|
t[0] !== r ? ({
|
|
3397
3397
|
children: u,
|
|
@@ -3402,7 +3402,7 @@ const Rt = ue((r, e) => {
|
|
|
3402
3402
|
});
|
|
3403
3403
|
Rt.displayName = "GZRadioGroup";
|
|
3404
3404
|
const Pt = ue((r, e) => {
|
|
3405
|
-
const t =
|
|
3405
|
+
const t = z.c(7);
|
|
3406
3406
|
let u, n;
|
|
3407
3407
|
t[0] !== r ? ({
|
|
3408
3408
|
children: u,
|
|
@@ -3414,7 +3414,7 @@ const Pt = ue((r, e) => {
|
|
|
3414
3414
|
});
|
|
3415
3415
|
Pt.displayName = "GZRadioButton";
|
|
3416
3416
|
const so = ue((r, e) => {
|
|
3417
|
-
const t =
|
|
3417
|
+
const t = z.c(7);
|
|
3418
3418
|
let u, n;
|
|
3419
3419
|
t[0] !== r ? ({
|
|
3420
3420
|
children: u,
|
|
@@ -3489,7 +3489,7 @@ function Fu(r, e, t) {
|
|
|
3489
3489
|
style: "currency",
|
|
3490
3490
|
currency: e,
|
|
3491
3491
|
currencyDisplay: "narrowSymbol"
|
|
3492
|
-
}).formatToParts(0).find((
|
|
3492
|
+
}).formatToParts(0).find((F) => F.type === "currency")?.value;
|
|
3493
3493
|
return `${n ? "-" : ""}${E ?? e}${s}.${i}`;
|
|
3494
3494
|
} catch {
|
|
3495
3495
|
return `${n ? "-" : ""}${e} ${s}.${i}`;
|
|
@@ -3555,9 +3555,9 @@ function Bo({
|
|
|
3555
3555
|
locale: u,
|
|
3556
3556
|
theme: n
|
|
3557
3557
|
}) {
|
|
3558
|
-
const a = Lt(r, "ascending"), i = e === "price" ? "价格" : "NPV", s = a.map((
|
|
3559
|
-
date:
|
|
3560
|
-
}) => fo(
|
|
3558
|
+
const a = Lt(r, "ascending"), i = e === "price" ? "价格" : "NPV", s = a.map((x) => Co(x[e])), E = po(s), F = vo(s), h = Do(E), p = a.map(({
|
|
3559
|
+
date: x
|
|
3560
|
+
}) => fo(x));
|
|
3561
3561
|
return {
|
|
3562
3562
|
// 数据或指标切换时使用 300ms 过渡动画。
|
|
3563
3563
|
animationDuration: 300,
|
|
@@ -3601,7 +3601,7 @@ function Bo({
|
|
|
3601
3601
|
fontSize: n.fontSize
|
|
3602
3602
|
},
|
|
3603
3603
|
// 按当前币种和区域格式化提示框中的金额。
|
|
3604
|
-
valueFormatter: (
|
|
3604
|
+
valueFormatter: (x) => Fu(typeof x == "number" || typeof x == "string" ? x : null, t, u)
|
|
3605
3605
|
},
|
|
3606
3606
|
// 日期标签轴与符号基准线分离,避免全负数据把日期标签一起移动到顶部。
|
|
3607
3607
|
xAxis: [{
|
|
@@ -3611,7 +3611,7 @@ function Bo({
|
|
|
3611
3611
|
// 在首尾类目两侧保留半个类目间距,防止端点贴边。
|
|
3612
3612
|
boundaryGap: !0,
|
|
3613
3613
|
// 将日期转换为 YY-MM-DD 后写入横轴。
|
|
3614
|
-
data:
|
|
3614
|
+
data: p,
|
|
3615
3615
|
// 横轴仅保留标签,不显示刻度短线。
|
|
3616
3616
|
axisTick: {
|
|
3617
3617
|
// 隐藏每个日期下方的刻度短线。
|
|
@@ -3635,9 +3635,9 @@ function Bo({
|
|
|
3635
3635
|
}
|
|
3636
3636
|
}, {
|
|
3637
3637
|
type: "category",
|
|
3638
|
-
position:
|
|
3638
|
+
position: F.position,
|
|
3639
3639
|
boundaryGap: !0,
|
|
3640
|
-
data:
|
|
3640
|
+
data: p,
|
|
3641
3641
|
axisTick: {
|
|
3642
3642
|
show: !1
|
|
3643
3643
|
},
|
|
@@ -3647,7 +3647,7 @@ function Bo({
|
|
|
3647
3647
|
// 实线仅表达符号方向:全负在顶部、全正在底部、跨零时吸附 0。
|
|
3648
3648
|
axisLine: {
|
|
3649
3649
|
show: !0,
|
|
3650
|
-
onZero:
|
|
3650
|
+
onZero: F.onZero,
|
|
3651
3651
|
lineStyle: {
|
|
3652
3652
|
color: n.baseline,
|
|
3653
3653
|
type: "solid"
|
|
@@ -3666,7 +3666,7 @@ function Bo({
|
|
|
3666
3666
|
axisTick: {
|
|
3667
3667
|
// 隐藏纵轴刻度短线。
|
|
3668
3668
|
show: !1,
|
|
3669
|
-
customValues:
|
|
3669
|
+
customValues: h
|
|
3670
3670
|
},
|
|
3671
3671
|
// 隐藏纵轴自身的竖直轴线,减少视觉干扰。
|
|
3672
3672
|
axisLine: {
|
|
@@ -3678,9 +3678,9 @@ function Bo({
|
|
|
3678
3678
|
// 纵轴标签使用主题次级文字色。
|
|
3679
3679
|
color: n.textSecondary,
|
|
3680
3680
|
// 刻度最多展示两位小数,并按当前区域添加数字分组格式。
|
|
3681
|
-
formatter: (
|
|
3681
|
+
formatter: (x) => new Intl.NumberFormat(u, {
|
|
3682
3682
|
maximumFractionDigits: 2
|
|
3683
|
-
}).format(
|
|
3683
|
+
}).format(x)
|
|
3684
3684
|
},
|
|
3685
3685
|
// 为每个纵轴主刻度绘制水平辅助线。
|
|
3686
3686
|
splitLine: {
|
|
@@ -3734,16 +3734,16 @@ function Bo({
|
|
|
3734
3734
|
}]
|
|
3735
3735
|
};
|
|
3736
3736
|
}
|
|
3737
|
-
const yo = "
|
|
3737
|
+
const yo = "_root_11qye_1", bo = "_title_11qye_12", Ao = "_loading_11qye_19", So = "_content_11qye_26", xo = "_tablePanel_11qye_32", To = "_chartPanel_11qye_33", _o = "_table_11qye_32", Mo = "_negativeValue_11qye_69", wo = "_chartHeader_11qye_76", ko = "_chartTitle_11qye_85", $o = "_chart_11qye_33", Io = "_chartEmpty_11qye_93", Ro = "_chartScrollable_11qye_102", Po = "_chartCanvas_11qye_139", ae = {
|
|
3738
3738
|
root: yo,
|
|
3739
3739
|
title: bo,
|
|
3740
3740
|
loading: Ao,
|
|
3741
3741
|
content: So,
|
|
3742
3742
|
tablePanel: xo,
|
|
3743
3743
|
chartPanel: To,
|
|
3744
|
-
table:
|
|
3745
|
-
negativeValue:
|
|
3746
|
-
chartHeader:
|
|
3744
|
+
table: _o,
|
|
3745
|
+
negativeValue: Mo,
|
|
3746
|
+
chartHeader: wo,
|
|
3747
3747
|
chartTitle: ko,
|
|
3748
3748
|
chart: $o,
|
|
3749
3749
|
chartEmpty: Io,
|
|
@@ -3751,86 +3751,69 @@ const yo = "_root_onwmg_1", bo = "_title_onwmg_12", Ao = "_loading_onwmg_19", So
|
|
|
3751
3751
|
chartCanvas: Po
|
|
3752
3752
|
};
|
|
3753
3753
|
et.use([rr, nr, or, ar]);
|
|
3754
|
-
const Wu = 10
|
|
3755
|
-
function
|
|
3756
|
-
const e =
|
|
3754
|
+
const Wu = 10;
|
|
3755
|
+
function Lo(r) {
|
|
3756
|
+
const e = z.c(26), {
|
|
3757
3757
|
data: t,
|
|
3758
3758
|
metric: u,
|
|
3759
3759
|
currency: n,
|
|
3760
3760
|
locale: a,
|
|
3761
3761
|
theme: i,
|
|
3762
3762
|
className: s
|
|
3763
|
-
} = r, E = ee(null),
|
|
3764
|
-
let
|
|
3765
|
-
e[0] !== n || e[1] !== t || e[2] !== a || e[3] !== u || e[4] !== i ? (
|
|
3763
|
+
} = r, E = ee(null), F = ee(null), h = ee(null), p = t.length > Wu, x = `${Math.max(t.length / Wu, 1) * 100}%`;
|
|
3764
|
+
let S;
|
|
3765
|
+
e[0] !== n || e[1] !== t || e[2] !== a || e[3] !== u || e[4] !== i ? (S = Bo({
|
|
3766
3766
|
data: t,
|
|
3767
3767
|
metric: u,
|
|
3768
3768
|
currency: n,
|
|
3769
3769
|
locale: a,
|
|
3770
3770
|
theme: i
|
|
3771
|
-
}), e[0] = n, e[1] = t, e[2] = a, e[3] = u, e[4] = i, e[5] =
|
|
3772
|
-
const
|
|
3773
|
-
let
|
|
3774
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3775
|
-
const
|
|
3776
|
-
if (!
|
|
3771
|
+
}), e[0] = n, e[1] = t, e[2] = a, e[3] = u, e[4] = i, e[5] = S) : S = e[5];
|
|
3772
|
+
const I = S;
|
|
3773
|
+
let b, g;
|
|
3774
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => {
|
|
3775
|
+
const v = F.current;
|
|
3776
|
+
if (!v)
|
|
3777
3777
|
return;
|
|
3778
|
-
const
|
|
3778
|
+
const _ = et.init(v, void 0, {
|
|
3779
3779
|
renderer: "canvas"
|
|
3780
3780
|
});
|
|
3781
|
-
|
|
3782
|
-
const
|
|
3783
|
-
return
|
|
3784
|
-
|
|
3781
|
+
h.current = _;
|
|
3782
|
+
const k = () => _.resize(), Y = typeof ResizeObserver > "u" ? null : new ResizeObserver(k);
|
|
3783
|
+
return Y ? Y.observe(v) : window.addEventListener("resize", k), () => {
|
|
3784
|
+
Y?.disconnect(), window.removeEventListener("resize", k), _.dispose(), h.current = null;
|
|
3785
3785
|
};
|
|
3786
|
-
},
|
|
3787
|
-
let
|
|
3788
|
-
e[8] !==
|
|
3789
|
-
|
|
3786
|
+
}, g = [], e[6] = b, e[7] = g) : (b = e[6], g = e[7]), Mu(b, g);
|
|
3787
|
+
let T, y;
|
|
3788
|
+
e[8] !== I ? (T = () => {
|
|
3789
|
+
h.current?.setOption(I, {
|
|
3790
3790
|
notMerge: !0
|
|
3791
3791
|
});
|
|
3792
|
-
}, y = [
|
|
3793
|
-
let
|
|
3794
|
-
e[11] !==
|
|
3795
|
-
const
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
delete b.dataset.scrolling;
|
|
3802
|
-
}, Lo);
|
|
3803
|
-
};
|
|
3804
|
-
return b.addEventListener("scroll", F, {
|
|
3805
|
-
passive: !0
|
|
3806
|
-
}), () => {
|
|
3807
|
-
b.removeEventListener("scroll", F), window.clearTimeout(z), delete b.dataset.scrolling;
|
|
3808
|
-
};
|
|
3809
|
-
}, P = [g], e[11] = g, e[12] = k, e[13] = P) : (k = e[12], P = e[13]), De(k, P);
|
|
3810
|
-
let w;
|
|
3811
|
-
e[14] !== g ? (w = () => {
|
|
3812
|
-
const b = E.current;
|
|
3813
|
-
!b || !g || (b.scrollLeft = b.scrollWidth - b.clientWidth);
|
|
3814
|
-
}, e[14] = g, e[15] = w) : w = e[15];
|
|
3792
|
+
}, y = [I], e[8] = I, e[9] = T, e[10] = y) : (T = e[9], y = e[10]), Be(T, y);
|
|
3793
|
+
let M;
|
|
3794
|
+
e[11] !== p ? (M = () => {
|
|
3795
|
+
const v = E.current;
|
|
3796
|
+
!v || !p || (v.scrollLeft = v.scrollWidth - v.clientWidth);
|
|
3797
|
+
}, e[11] = p, e[12] = M) : M = e[12];
|
|
3798
|
+
let P;
|
|
3799
|
+
e[13] !== t || e[14] !== p ? (P = [t, p], e[13] = t, e[14] = p, e[15] = P) : P = e[15], Mu(M, P);
|
|
3800
|
+
const w = u === "price" ? "价格" : "NPV";
|
|
3815
3801
|
let L;
|
|
3816
|
-
e[16] !==
|
|
3817
|
-
|
|
3802
|
+
e[16] !== s || e[17] !== p ? (L = vu(s, {
|
|
3803
|
+
[ae.chartScrollable]: p
|
|
3804
|
+
}), e[16] = s, e[17] = p, e[18] = L) : L = e[18];
|
|
3805
|
+
const D = `按日期展示的${w}折线图`;
|
|
3818
3806
|
let R;
|
|
3819
|
-
e[19] !==
|
|
3820
|
-
|
|
3821
|
-
}), e[19] =
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
e[22] !== T ? (h = /* @__PURE__ */ f("div", { ref: C, className: ae.chartCanvas, style: {
|
|
3825
|
-
width: T
|
|
3826
|
-
} }), e[22] = T, e[23] = h) : h = e[23];
|
|
3827
|
-
let _;
|
|
3828
|
-
return e[24] !== g || e[25] !== R || e[26] !== I || e[27] !== h ? (_ = /* @__PURE__ */ f("div", { ref: E, className: R, role: "img", "aria-label": I, "data-scrollable": g, children: h }), e[24] = g, e[25] = R, e[26] = I, e[27] = h, e[28] = _) : _ = e[28], _;
|
|
3807
|
+
e[19] !== x ? (R = /* @__PURE__ */ f("div", { ref: F, className: ae.chartCanvas, style: {
|
|
3808
|
+
width: x
|
|
3809
|
+
} }), e[19] = x, e[20] = R) : R = e[20];
|
|
3810
|
+
let $;
|
|
3811
|
+
return e[21] !== p || e[22] !== R || e[23] !== L || e[24] !== D ? ($ = /* @__PURE__ */ f("div", { ref: E, className: L, role: "img", "aria-label": D, "data-scrollable": p, children: R }), e[21] = p, e[22] = R, e[23] = L, e[24] = D, e[25] = $) : $ = e[25], $;
|
|
3829
3812
|
}
|
|
3830
|
-
const
|
|
3813
|
+
const No = "数据加载失败,请稍后重试", lu = [], Oo = "CNY", su = "zh-CN", Vt = 32, Yt = 28, Gt = 7, zo = Vt + Yt * Gt + 2, Vo = {
|
|
3831
3814
|
suppressHeaderMenuButton: !0,
|
|
3832
3815
|
suppressHeaderContextMenu: !0
|
|
3833
|
-
},
|
|
3816
|
+
}, Yo = {
|
|
3834
3817
|
root: {
|
|
3835
3818
|
margin: 0
|
|
3836
3819
|
},
|
|
@@ -3841,25 +3824,25 @@ const Oo = "数据加载失败,请稍后重试", lu = [], zo = "CNY", su = "zh
|
|
|
3841
3824
|
}
|
|
3842
3825
|
};
|
|
3843
3826
|
function Ht(r) {
|
|
3844
|
-
const e =
|
|
3827
|
+
const e = z.c(4), {
|
|
3845
3828
|
ariaLabel: t,
|
|
3846
3829
|
className: u
|
|
3847
3830
|
} = r;
|
|
3848
3831
|
let n;
|
|
3849
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ f(Ve, { image: Ve.PRESENTED_IMAGE_SIMPLE, description: "暂无数据", styles:
|
|
3832
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ f(Ve, { image: Ve.PRESENTED_IMAGE_SIMPLE, description: "暂无数据", styles: Yo }), e[0] = n) : n = e[0];
|
|
3850
3833
|
let a;
|
|
3851
3834
|
return e[1] !== t || e[2] !== u ? (a = /* @__PURE__ */ f("div", { className: u, role: "status", "aria-label": t, children: n }), e[1] = t, e[2] = u, e[3] = a) : a = e[3], a;
|
|
3852
3835
|
}
|
|
3853
|
-
function
|
|
3854
|
-
const r =
|
|
3836
|
+
function Go() {
|
|
3837
|
+
const r = z.c(1);
|
|
3855
3838
|
let e;
|
|
3856
3839
|
return r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ f(Ht, { ariaLabel: "暂无估值日志数据" }), r[0] = e) : e = r[0], e;
|
|
3857
3840
|
}
|
|
3858
|
-
function
|
|
3841
|
+
function Ho(r) {
|
|
3859
3842
|
return r instanceof DOMException && r.name === "AbortError";
|
|
3860
3843
|
}
|
|
3861
|
-
function
|
|
3862
|
-
const e =
|
|
3844
|
+
function aa(r) {
|
|
3845
|
+
const e = z.c(67), {
|
|
3863
3846
|
adapter: t,
|
|
3864
3847
|
allVarCodeSnum: u,
|
|
3865
3848
|
className: n,
|
|
@@ -3876,9 +3859,9 @@ function ia(r) {
|
|
|
3876
3859
|
status: "loading",
|
|
3877
3860
|
data: lu
|
|
3878
3861
|
}), e[0] = t, e[1] = u, e[2] = E) : E = e[2];
|
|
3879
|
-
const [
|
|
3880
|
-
let
|
|
3881
|
-
e[3] !== t || e[4] !== u || e[5] !== i ? (
|
|
3862
|
+
const [F, h] = ze(E), [p, x] = ze("price"), S = F.adapter === t && F.allVarCodeSnum === u, I = S ? F.status : "loading", b = S ? F.data : lu;
|
|
3863
|
+
let g, T;
|
|
3864
|
+
e[3] !== t || e[4] !== u || e[5] !== i ? (g = () => {
|
|
3882
3865
|
const X = new AbortController();
|
|
3883
3866
|
let K = !0;
|
|
3884
3867
|
const te = {
|
|
@@ -3892,26 +3875,26 @@ function ia(r) {
|
|
|
3892
3875
|
if (!K)
|
|
3893
3876
|
return;
|
|
3894
3877
|
const ne = Fo(ie);
|
|
3895
|
-
|
|
3878
|
+
h({
|
|
3896
3879
|
adapter: t,
|
|
3897
3880
|
allVarCodeSnum: u,
|
|
3898
3881
|
status: ne.length === 0 ? "empty" : "success",
|
|
3899
3882
|
data: ne
|
|
3900
3883
|
});
|
|
3901
3884
|
}).catch((ie) => {
|
|
3902
|
-
!K || X.signal.aborted ||
|
|
3885
|
+
!K || X.signal.aborted || Ho(ie) || (h({
|
|
3903
3886
|
adapter: t,
|
|
3904
3887
|
allVarCodeSnum: u,
|
|
3905
3888
|
status: "error",
|
|
3906
3889
|
data: lu
|
|
3907
|
-
}), i.error(
|
|
3890
|
+
}), i.error(No));
|
|
3908
3891
|
}), () => {
|
|
3909
3892
|
K = !1, X.abort();
|
|
3910
3893
|
};
|
|
3911
|
-
},
|
|
3894
|
+
}, T = [t, u, i], e[3] = t, e[4] = u, e[5] = i, e[6] = g, e[7] = T) : (g = e[6], T = e[7]), Be(g, T);
|
|
3912
3895
|
let y;
|
|
3913
|
-
e[8] !==
|
|
3914
|
-
const
|
|
3896
|
+
e[8] !== b ? (y = Lt(b, "descending").map(Zo), e[8] = b, e[9] = y) : y = e[9];
|
|
3897
|
+
const M = y, P = b[0]?.currency || Oo;
|
|
3915
3898
|
let w;
|
|
3916
3899
|
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
|
|
3917
3900
|
headerName: "日期",
|
|
@@ -3942,10 +3925,10 @@ function ia(r) {
|
|
|
3942
3925
|
}, e[12] = P, e[13] = D) : D = e[13];
|
|
3943
3926
|
let R;
|
|
3944
3927
|
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = {
|
|
3945
|
-
[ae.negativeValue]:
|
|
3928
|
+
[ae.negativeValue]: Wo
|
|
3946
3929
|
}, e[14] = R) : R = e[14];
|
|
3947
|
-
let
|
|
3948
|
-
e[15] !== P ? (
|
|
3930
|
+
let $;
|
|
3931
|
+
e[15] !== P ? ($ = {
|
|
3949
3932
|
headerName: "NPV",
|
|
3950
3933
|
field: "npv",
|
|
3951
3934
|
flex: 1,
|
|
@@ -3959,12 +3942,12 @@ function ia(r) {
|
|
|
3959
3942
|
} = X;
|
|
3960
3943
|
return Fu(K, P, su);
|
|
3961
3944
|
}
|
|
3962
|
-
}, e[15] = P, e[16] =
|
|
3963
|
-
let
|
|
3964
|
-
e[17] !== D || e[18] !==
|
|
3965
|
-
const _ =
|
|
3966
|
-
let
|
|
3967
|
-
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 ? (
|
|
3945
|
+
}, e[15] = P, e[16] = $) : $ = e[16];
|
|
3946
|
+
let v;
|
|
3947
|
+
e[17] !== D || e[18] !== $ ? (v = [w, D, $], e[17] = D, e[18] = $, e[19] = v) : v = e[19];
|
|
3948
|
+
const _ = v;
|
|
3949
|
+
let k;
|
|
3950
|
+
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 ? (k = {
|
|
3968
3951
|
primary: s.colorPrimary,
|
|
3969
3952
|
baseline: s.colorBorder,
|
|
3970
3953
|
backgroundElevated: s.colorBgElevated,
|
|
@@ -3973,21 +3956,21 @@ function ia(r) {
|
|
|
3973
3956
|
split: s.colorSplit,
|
|
3974
3957
|
fontFamily: s.fontFamily,
|
|
3975
3958
|
fontSize: s.fontSize
|
|
3976
|
-
}, 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] =
|
|
3977
|
-
const
|
|
3959
|
+
}, 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] = k) : k = e[28];
|
|
3960
|
+
const Y = k, C = I === "success", m = M.length > Gt;
|
|
3978
3961
|
let o;
|
|
3979
3962
|
e[29] !== n ? (o = vu(ae.root, n), e[29] = n, e[30] = o) : o = e[30];
|
|
3980
|
-
const l =
|
|
3963
|
+
const l = I === "loading";
|
|
3981
3964
|
let c;
|
|
3982
3965
|
e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ f("h2", { className: ae.title, children: "最大展示30条日志数据" }), e[31] = c) : c = e[31];
|
|
3983
|
-
const d =
|
|
3984
|
-
let
|
|
3985
|
-
e[32] !== B ? (
|
|
3966
|
+
const d = I === "loading", B = m ? zo : "auto";
|
|
3967
|
+
let A;
|
|
3968
|
+
e[32] !== B ? (A = {
|
|
3986
3969
|
height: B
|
|
3987
|
-
}, e[32] = B, e[33] =
|
|
3970
|
+
}, e[32] = B, e[33] = A) : A = e[33];
|
|
3988
3971
|
const O = m ? "normal" : "autoHeight";
|
|
3989
3972
|
let N;
|
|
3990
|
-
e[34] !== _ || e[35] !==
|
|
3973
|
+
e[34] !== _ || e[35] !== A || e[36] !== O || e[37] !== m || e[38] !== M ? (N = /* @__PURE__ */ f("div", { className: ae.tablePanel, "aria-label": "估值日志表格", children: /* @__PURE__ */ f(bu, { className: ae.table, containerStyle: A, domLayout: O, rowData: M, columnDefs: _, defaultColDef: Vo, getRowId: Uo, headerHeight: Vt, rowHeight: Yt, pagination: !1, noRowsOverlayComponent: Go, suppressMovableColumns: !0, suppressCellFocus: !0, suppressContextMenu: !0, alwaysShowVerticalScroll: m }) }), e[34] = _, e[35] = A, e[36] = O, e[37] = m, e[38] = M, e[39] = N) : N = e[39];
|
|
3991
3974
|
let G;
|
|
3992
3975
|
e[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ f("h3", { className: ae.chartTitle, children: "结果图形展示" }), e[40] = G) : G = e[40];
|
|
3993
3976
|
let W, U;
|
|
@@ -4001,40 +3984,40 @@ function ia(r) {
|
|
|
4001
3984
|
const {
|
|
4002
3985
|
target: K
|
|
4003
3986
|
} = X;
|
|
4004
|
-
return
|
|
3987
|
+
return x(K.value);
|
|
4005
3988
|
}, e[41] = W, e[42] = U) : (W = e[41], U = e[42]);
|
|
4006
3989
|
let j;
|
|
4007
|
-
e[43] !==
|
|
3990
|
+
e[43] !== p ? (j = /* @__PURE__ */ Me("div", { className: ae.chartHeader, children: [
|
|
4008
3991
|
G,
|
|
4009
|
-
/* @__PURE__ */ f(tu.Group, { size: "small", optionType: "button", buttonStyle: "solid", "aria-label": "估值指标", value:
|
|
4010
|
-
] }), e[43] =
|
|
4011
|
-
let Z;
|
|
4012
|
-
e[45] !== z || e[46] !== A || e[47] !== g || e[48] !== P || e[49] !== F || e[50] !== $ ? (Z = F ? /* @__PURE__ */ f(No, { className: ae.chart, data: A, metric: g, currency: P, locale: su, theme: z }) : $ === "empty" ? /* @__PURE__ */ f(Ht, { className: ae.chartEmpty, ariaLabel: "暂无估值曲线数据" }) : /* @__PURE__ */ f("div", { className: ae.chartEmpty, "aria-label": "暂无估值曲线数据" }), e[45] = z, e[46] = A, e[47] = g, e[48] = P, e[49] = F, e[50] = $, e[51] = Z) : Z = e[51];
|
|
3992
|
+
/* @__PURE__ */ f(tu.Group, { size: "small", optionType: "button", buttonStyle: "solid", "aria-label": "估值指标", value: p, options: W, onChange: U })
|
|
3993
|
+
] }), e[43] = p, e[44] = j) : j = e[44];
|
|
4013
3994
|
let q;
|
|
4014
|
-
e[
|
|
3995
|
+
e[45] !== Y || e[46] !== b || e[47] !== p || e[48] !== P || e[49] !== C || e[50] !== I ? (q = C ? /* @__PURE__ */ f(Lo, { className: ae.chart, data: b, metric: p, currency: P, locale: su, theme: Y }) : I === "empty" ? /* @__PURE__ */ f(Ht, { className: ae.chartEmpty, ariaLabel: "暂无估值曲线数据" }) : /* @__PURE__ */ f("div", { className: ae.chartEmpty, "aria-label": "暂无估值曲线数据" }), e[45] = Y, e[46] = b, e[47] = p, e[48] = P, e[49] = C, e[50] = I, e[51] = q) : q = e[51];
|
|
3996
|
+
let Z;
|
|
3997
|
+
e[52] !== j || e[53] !== q ? (Z = /* @__PURE__ */ Me("section", { className: ae.chartPanel, "aria-label": "估值日志图形展示", children: [
|
|
4015
3998
|
j,
|
|
4016
|
-
|
|
4017
|
-
] }), e[52] = j, e[53] =
|
|
3999
|
+
q
|
|
4000
|
+
] }), e[52] = j, e[53] = q, e[54] = Z) : Z = e[54];
|
|
4018
4001
|
let H;
|
|
4019
|
-
e[55] !== N || e[56] !==
|
|
4002
|
+
e[55] !== N || e[56] !== Z ? (H = /* @__PURE__ */ Me("div", { className: ae.content, children: [
|
|
4020
4003
|
N,
|
|
4021
|
-
|
|
4022
|
-
] }), e[55] = N, e[56] =
|
|
4004
|
+
Z
|
|
4005
|
+
] }), e[55] = N, e[56] = Z, e[57] = H) : H = e[57];
|
|
4023
4006
|
let Q;
|
|
4024
4007
|
e[58] !== d || e[59] !== H ? (Q = /* @__PURE__ */ f(Du, { className: ae.loading, spinning: d, description: "估值日志加载中", children: H }), e[58] = d, e[59] = H, e[60] = Q) : Q = e[60];
|
|
4025
4008
|
let J;
|
|
4026
|
-
return e[61] !==
|
|
4009
|
+
return e[61] !== I || e[62] !== a || e[63] !== o || e[64] !== l || e[65] !== Q ? (J = /* @__PURE__ */ Me("section", { className: o, style: a, "aria-label": "估值日志数据图表", "aria-busy": l, "data-status": I, children: [
|
|
4027
4010
|
c,
|
|
4028
4011
|
Q
|
|
4029
|
-
] }), e[61] =
|
|
4012
|
+
] }), e[61] = I, e[62] = a, e[63] = o, e[64] = l, e[65] = Q, e[66] = J) : J = e[66], J;
|
|
4030
4013
|
}
|
|
4031
|
-
function
|
|
4014
|
+
function Uo(r) {
|
|
4032
4015
|
const {
|
|
4033
4016
|
data: e
|
|
4034
4017
|
} = r;
|
|
4035
4018
|
return e.rowId;
|
|
4036
4019
|
}
|
|
4037
|
-
function
|
|
4020
|
+
function Wo(r) {
|
|
4038
4021
|
const {
|
|
4039
4022
|
value: e
|
|
4040
4023
|
} = r;
|
|
@@ -4046,7 +4029,7 @@ function qo(r) {
|
|
|
4046
4029
|
} = r;
|
|
4047
4030
|
return Nt(e);
|
|
4048
4031
|
}
|
|
4049
|
-
function
|
|
4032
|
+
function Zo(r, e) {
|
|
4050
4033
|
return {
|
|
4051
4034
|
...r,
|
|
4052
4035
|
rowId: `${r.date}-${e}`
|
|
@@ -4056,9 +4039,9 @@ export {
|
|
|
4056
4039
|
Ne as B,
|
|
4057
4040
|
lt as G,
|
|
4058
4041
|
ro as I,
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4042
|
+
_u as T,
|
|
4043
|
+
aa as V,
|
|
4044
|
+
z as a,
|
|
4062
4045
|
Du as b,
|
|
4063
4046
|
vu as c,
|
|
4064
4047
|
Ve as d,
|