gz-ui-web 1.0.3 → 1.0.4
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-BRjP3HQm.js → ValuationLogDataChart-B-SqmKbD.js} +923 -912
- package/gz-ui-web-lib/ValuationLogDataChart-DIG1E6i_.cjs +49 -0
- package/gz-ui-web-lib/{agGridThemeCssVariables-CerlH-2H.js → agGridThemeCssVariables-BsssdLnP.js} +1 -1
- package/gz-ui-web-lib/{agGridThemeCssVariables-CXTSdLd3.cjs → agGridThemeCssVariables-LxqGcBN_.cjs} +1 -1
- package/gz-ui-web-lib/business-components/pcs/index.cjs +1 -1
- package/gz-ui-web-lib/business-components/pcs/index.js +1 -1
- package/gz-ui-web-lib/components/form/Form.d.ts +2 -0
- package/gz-ui-web-lib/{goldLightAgGridTokens-DdscbP4x.js → goldLightAgGridTokens-C71rk0pu.js} +1 -1
- package/gz-ui-web-lib/{goldLightAgGridTokens-fKRumAcu.cjs → goldLightAgGridTokens-tfYATIrl.cjs} +1 -1
- package/gz-ui-web-lib/gz-table/index.cjs +1 -1
- package/gz-ui-web-lib/gz-table/index.js +2 -2
- package/gz-ui-web-lib/index.cjs +1 -1
- package/gz-ui-web-lib/index.js +3 -3
- package/package.json +1 -1
- package/gz-ui-web-lib/ValuationLogDataChart-IclpIk4j.cjs +0 -49
package/gz-ui-web-lib/{ValuationLogDataChart-BRjP3HQm.js → ValuationLogDataChart-B-SqmKbD.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as F, jsxs as ke } from "react/jsx-runtime";
|
|
2
2
|
import Uu, { forwardRef as ee, createContext as Gt, useRef as te, useContext as Wu, useMemo as Pe, useCallback as ge, useEffect as pe, useState as Oe, useReducer as Ht, useImperativeHandle as Ut, useLayoutEffect as xu } from "react";
|
|
3
|
-
import { Alert as Zu, App as qu, Button as Wt, Empty as Eu, Spin as ju, theme as Xu, Tag as Fu, Tooltip as Zt, DatePicker as Re, Form as Me, Select as Cu, Radio as fu } from "antd";
|
|
3
|
+
import { Alert as Zu, App as qu, Button as Wt, Empty as Eu, Spin as ju, theme as Xu, Tag as Fu, Tooltip as Zt, DatePicker as Re, Form as Me, ConfigProvider as qt, Select as Cu, Radio as fu } from "antd";
|
|
4
4
|
import Ge from "big.js";
|
|
5
|
-
import { AllEnterpriseModule as
|
|
6
|
-
import { AgGridProvider as
|
|
7
|
-
import { themeQuartz as
|
|
8
|
-
import { g as
|
|
5
|
+
import { AllEnterpriseModule as jt } from "ag-grid-enterprise";
|
|
6
|
+
import { AgGridProvider as Xt, AgGridReact as Qt } from "ag-grid-react";
|
|
7
|
+
import { themeQuartz as Jt, createPart as Qu } from "ag-grid-community";
|
|
8
|
+
import { g as Kt, a as er } from "./goldLightAgGridTokens-C71rk0pu.js";
|
|
9
9
|
import * as Ju from "echarts/core";
|
|
10
|
-
import { LineChart as
|
|
11
|
-
import { GridComponent as
|
|
12
|
-
import { CanvasRenderer as
|
|
10
|
+
import { LineChart as ur } from "echarts/charts";
|
|
11
|
+
import { GridComponent as tr, TooltipComponent as rr } from "echarts/components";
|
|
12
|
+
import { CanvasRenderer as nr } from "echarts/renderers";
|
|
13
13
|
function Ku(r) {
|
|
14
14
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
15
15
|
}
|
|
16
16
|
var We = { exports: {} }, ru = {};
|
|
17
17
|
var ku;
|
|
18
|
-
function
|
|
18
|
+
function or() {
|
|
19
19
|
if (ku) return ru;
|
|
20
20
|
ku = 1;
|
|
21
21
|
var r = Uu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
@@ -25,78 +25,78 @@ function nr() {
|
|
|
25
25
|
}
|
|
26
26
|
var nu = {};
|
|
27
27
|
var wu;
|
|
28
|
-
function
|
|
28
|
+
function ar() {
|
|
29
29
|
return wu || (wu = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
30
30
|
var r = Uu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
31
31
|
nu.c = function(e) {
|
|
32
|
-
var
|
|
33
|
-
return
|
|
32
|
+
var u = r.H;
|
|
33
|
+
return u === null && console.error(
|
|
34
34
|
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
35
35
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
36
36
|
2. You might be breaking the Rules of Hooks
|
|
37
37
|
3. You might have more than one copy of React in the same app
|
|
38
38
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
39
|
-
),
|
|
39
|
+
), u.useMemoCache(e);
|
|
40
40
|
};
|
|
41
41
|
})()), nu;
|
|
42
42
|
}
|
|
43
43
|
var Mu;
|
|
44
|
-
function
|
|
45
|
-
return Mu || (Mu = 1, process.env.NODE_ENV === "production" ? We.exports =
|
|
44
|
+
function ir() {
|
|
45
|
+
return Mu || (Mu = 1, process.env.NODE_ENV === "production" ? We.exports = or() : We.exports = ar()), We.exports;
|
|
46
46
|
}
|
|
47
|
-
var Y =
|
|
47
|
+
var Y = ir();
|
|
48
48
|
function et(r) {
|
|
49
|
-
var e,
|
|
50
|
-
if (typeof r == "string" || typeof r == "number")
|
|
49
|
+
var e, u, t = "";
|
|
50
|
+
if (typeof r == "string" || typeof r == "number") t += r;
|
|
51
51
|
else if (typeof r == "object") if (Array.isArray(r)) {
|
|
52
52
|
var n = r.length;
|
|
53
|
-
for (e = 0; e < n; e++) r[e] && (
|
|
54
|
-
} else for (
|
|
55
|
-
return
|
|
53
|
+
for (e = 0; e < n; e++) r[e] && (u = et(r[e])) && (t && (t += " "), t += u);
|
|
54
|
+
} else for (u in r) r[u] && (t && (t += " "), t += u);
|
|
55
|
+
return t;
|
|
56
56
|
}
|
|
57
57
|
function gu() {
|
|
58
|
-
for (var r, e,
|
|
59
|
-
return
|
|
58
|
+
for (var r, e, u = 0, t = "", n = arguments.length; u < n; u++) (r = arguments[u]) && (e = et(r)) && (t && (t += " "), t += e);
|
|
59
|
+
return t;
|
|
60
60
|
}
|
|
61
61
|
const ut = ee((r, e) => {
|
|
62
|
-
const
|
|
63
|
-
let
|
|
64
|
-
return
|
|
62
|
+
const u = Y.c(3);
|
|
63
|
+
let t;
|
|
64
|
+
return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ F(Zu, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
|
|
65
65
|
});
|
|
66
66
|
ut.displayName = "GZAlert";
|
|
67
|
-
const
|
|
67
|
+
const lr = Zu.ErrorBoundary, tt = (r) => {
|
|
68
68
|
const e = Y.c(2);
|
|
69
|
-
let
|
|
70
|
-
return e[0] !== r ? (
|
|
69
|
+
let u;
|
|
70
|
+
return e[0] !== r ? (u = /* @__PURE__ */ F(lr, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
|
|
71
71
|
};
|
|
72
72
|
tt.displayName = "GZAlertErrorBoundary";
|
|
73
73
|
const Ye = ut;
|
|
74
74
|
Ye.ErrorBoundary = tt;
|
|
75
75
|
const rt = ee((r, e) => {
|
|
76
|
-
const
|
|
77
|
-
let
|
|
78
|
-
return
|
|
76
|
+
const u = Y.c(3);
|
|
77
|
+
let t;
|
|
78
|
+
return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ F(qu, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
|
|
79
79
|
});
|
|
80
80
|
rt.displayName = "GZApp";
|
|
81
81
|
const pu = rt;
|
|
82
82
|
Object.assign(pu, qu);
|
|
83
83
|
const Le = ee((r, e) => {
|
|
84
|
-
const
|
|
85
|
-
let
|
|
86
|
-
|
|
87
|
-
children:
|
|
84
|
+
const u = Y.c(9);
|
|
85
|
+
let t, n, o;
|
|
86
|
+
u[0] !== r ? ({
|
|
87
|
+
children: t,
|
|
88
88
|
type: o,
|
|
89
89
|
...n
|
|
90
|
-
} = r,
|
|
90
|
+
} = r, u[0] = r, u[1] = t, u[2] = n, u[3] = o) : (t = u[1], n = u[2], o = u[3]);
|
|
91
91
|
const a = o === void 0 ? "default" : o;
|
|
92
92
|
let s;
|
|
93
|
-
return
|
|
93
|
+
return u[4] !== t || u[5] !== e || u[6] !== n || u[7] !== a ? (s = /* @__PURE__ */ F(Wt, { ref: e, type: a, ...n, children: t }), u[4] = t, u[5] = e, u[6] = n, u[7] = a, u[8] = s) : s = u[8], s;
|
|
94
94
|
});
|
|
95
95
|
Le.displayName = "GZButton";
|
|
96
96
|
const nt = (r) => {
|
|
97
97
|
const e = Y.c(2);
|
|
98
|
-
let
|
|
99
|
-
return e[0] !== r ? (
|
|
98
|
+
let u;
|
|
99
|
+
return e[0] !== r ? (u = /* @__PURE__ */ F(Eu, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
|
|
100
100
|
};
|
|
101
101
|
nt.displayName = "GZEmpty";
|
|
102
102
|
const Ve = nt;
|
|
@@ -104,13 +104,13 @@ Ve.PRESENTED_IMAGE_DEFAULT = Eu.PRESENTED_IMAGE_DEFAULT;
|
|
|
104
104
|
Ve.PRESENTED_IMAGE_SIMPLE = Eu.PRESENTED_IMAGE_SIMPLE;
|
|
105
105
|
const ot = (r) => {
|
|
106
106
|
const e = Y.c(2);
|
|
107
|
-
let
|
|
108
|
-
return e[0] !== r ? (
|
|
107
|
+
let u;
|
|
108
|
+
return e[0] !== r ? (u = /* @__PURE__ */ F(ju, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
|
|
109
109
|
};
|
|
110
110
|
ot.displayName = "GZSpin";
|
|
111
111
|
const hu = ot;
|
|
112
112
|
Object.assign(hu, ju);
|
|
113
|
-
const
|
|
113
|
+
const sr = 1e3, lu = 3, ae = "-", vu = {
|
|
114
114
|
pricingEnvironment: null,
|
|
115
115
|
carbonForwardCurve: null,
|
|
116
116
|
discountCurve: null,
|
|
@@ -160,7 +160,7 @@ const lr = 1e3, lu = 3, ae = "-", vu = {
|
|
|
160
160
|
key: "discountFactor",
|
|
161
161
|
label: "支付日贴现因子",
|
|
162
162
|
kind: "result"
|
|
163
|
-
}],
|
|
163
|
+
}], cr = [{
|
|
164
164
|
key: "instrumentCode",
|
|
165
165
|
label: "成交编号",
|
|
166
166
|
kind: "contract"
|
|
@@ -193,7 +193,7 @@ const lr = 1e3, lu = 3, ae = "-", vu = {
|
|
|
193
193
|
label: "支付日贴现因子",
|
|
194
194
|
kind: "result"
|
|
195
195
|
}], at = Gt({});
|
|
196
|
-
var
|
|
196
|
+
var dr = {
|
|
197
197
|
// Set Filter
|
|
198
198
|
selectAll: "(全选)",
|
|
199
199
|
selectAllSearchResults: "(全选搜索结果)",
|
|
@@ -1015,13 +1015,13 @@ var cr = {
|
|
|
1015
1015
|
deleteNote: "删除备注",
|
|
1016
1016
|
notePlaceholder: "添加备注..."
|
|
1017
1017
|
};
|
|
1018
|
-
const
|
|
1018
|
+
const mr = (r) => {
|
|
1019
1019
|
const e = Y.c(2), {
|
|
1020
|
-
text:
|
|
1021
|
-
} = r,
|
|
1020
|
+
text: u
|
|
1021
|
+
} = r, t = u === void 0 ? "暂无符合条件的数据" : u;
|
|
1022
1022
|
let n;
|
|
1023
|
-
return e[0] !==
|
|
1024
|
-
},
|
|
1023
|
+
return e[0] !== t ? (n = /* @__PURE__ */ F("div", { className: "gz-table-no-rows-overlay", role: "status", children: t }), e[0] = t, e[1] = n) : n = e[1], n;
|
|
1024
|
+
}, Er = Qu({
|
|
1025
1025
|
feature: "gzTableDisabledCheckboxCursor",
|
|
1026
1026
|
css: `
|
|
1027
1027
|
.ag-checkbox-input:disabled,
|
|
@@ -1030,7 +1030,7 @@ const dr = (r) => {
|
|
|
1030
1030
|
cursor: not-allowed;
|
|
1031
1031
|
}
|
|
1032
1032
|
`
|
|
1033
|
-
}),
|
|
1033
|
+
}), Fr = Qu({
|
|
1034
1034
|
feature: "gzTablePaginationPickerWidth",
|
|
1035
1035
|
css: `
|
|
1036
1036
|
/* 覆盖分页器选择框的宽度,以及补充缺失的边框 */
|
|
@@ -1071,7 +1071,7 @@ const dr = (r) => {
|
|
|
1071
1071
|
padding: 0 !important;
|
|
1072
1072
|
}
|
|
1073
1073
|
`
|
|
1074
|
-
}), Du =
|
|
1074
|
+
}), Du = Jt.withPart(Er).withPart(Fr).withParams({
|
|
1075
1075
|
fontFamily: "var(--gz-font-family)",
|
|
1076
1076
|
fontSize: "calc(var(--gz-font-size) * 1px)",
|
|
1077
1077
|
fontWeight: "var(--gz-font-weight-normal)",
|
|
@@ -1118,15 +1118,15 @@ const dr = (r) => {
|
|
|
1118
1118
|
rowHoverColor: "color-mix(in srgb, transparent, var(--gz-color-primary) 15%)",
|
|
1119
1119
|
selectedRowBackgroundColor: "color-mix(in srgb, transparent, var(--gz-color-primary) 12%)",
|
|
1120
1120
|
paginationPanelHeight: 40
|
|
1121
|
-
}),
|
|
1121
|
+
}), Cr = Du.withParams(Kt), fr = Du.withParams(er), gr = "AgGridLicense66fwc79n[NORMAL][v0102]_NDA3MDk2NjQwMDAwMA==80908dd5fb71b58d3ce28b2ed320216d", ou = {
|
|
1122
1122
|
theme: Du,
|
|
1123
1123
|
// 允许鼠标划选并复制单元格里的文本(AG Grid 默认是 false,防止和拖拽冲突,但业务通常需要复制)
|
|
1124
1124
|
enableCellTextSelection: !0,
|
|
1125
1125
|
// 自定义空状态组件:当 rowData 为空时,展示我们自己写的 NoRowsOverlay 组件
|
|
1126
|
-
noRowsOverlayComponent:
|
|
1126
|
+
noRowsOverlayComponent: mr,
|
|
1127
1127
|
// 注入官方的纯中文语言包,并覆盖部分默认文案以符合业务习惯
|
|
1128
1128
|
localeText: {
|
|
1129
|
-
...
|
|
1129
|
+
...dr,
|
|
1130
1130
|
pageSizeSelectorLabel: "每页条数",
|
|
1131
1131
|
page: "第",
|
|
1132
1132
|
of: "页/共",
|
|
@@ -1147,19 +1147,19 @@ const dr = (r) => {
|
|
|
1147
1147
|
scrollbarWidth: 10,
|
|
1148
1148
|
// 默认关闭分页。如果要开启,使用者必须显式传 pagination: true
|
|
1149
1149
|
pagination: !1
|
|
1150
|
-
},
|
|
1150
|
+
}, pr = {
|
|
1151
1151
|
sortable: !0,
|
|
1152
1152
|
resizable: !0,
|
|
1153
1153
|
// 根据基线产品需求:开启按列聚合功能,并限制只能使用以下 5 种汇总方式(原生的 first/last 等被剔除)
|
|
1154
1154
|
enableValue: !0,
|
|
1155
1155
|
// 限制只能使用以下 5 种汇总方式(原生的 first/last 等被剔除)
|
|
1156
1156
|
allowedAggFuncs: ["sum", "avg", "max", "min", "count"]
|
|
1157
|
-
},
|
|
1158
|
-
const
|
|
1159
|
-
themeMode:
|
|
1157
|
+
}, hr = [jt], vr = ["rowSummary", "pageSize", "pageSummary"], Bu = ee((r, e) => {
|
|
1158
|
+
const u = te(null), {
|
|
1159
|
+
themeMode: t
|
|
1160
1160
|
} = Wu(at), {
|
|
1161
1161
|
gridOptions: n
|
|
1162
|
-
} = r, o = r.pagination ?? n?.pagination ?? ou.pagination, a = r.paginationPanels ?? n?.paginationPanels, s = o && a === void 0, E = s ?
|
|
1162
|
+
} = r, o = r.pagination ?? n?.pagination ?? ou.pagination, a = r.paginationPanels ?? n?.paginationPanels, s = o && a === void 0, E = s ? vr : a, m = t === "gold-dark" ? Cr : t === "gold-light" ? fr : void 0, p = r.theme ?? n?.theme ?? m, g = Pe(() => ({
|
|
1163
1163
|
...ou,
|
|
1164
1164
|
...n,
|
|
1165
1165
|
paginationPanels: E
|
|
@@ -1167,41 +1167,41 @@ const dr = (r) => {
|
|
|
1167
1167
|
...ou.localeText,
|
|
1168
1168
|
...n?.localeText,
|
|
1169
1169
|
...r.localeText
|
|
1170
|
-
}), [n?.localeText, r.localeText]),
|
|
1171
|
-
...
|
|
1170
|
+
}), [n?.localeText, r.localeText]), B = ["gz-table", o ? "gz-table-pagination" : void 0, s ? "gz-table-default-pagination-layout" : void 0, t === "gold-dark" ? "gz-table-gold-dark" : void 0, t === "gold-light" ? "gz-table-gold-light" : void 0, r.className].filter(Boolean).join(" "), k = Pe(() => ({
|
|
1171
|
+
...pr,
|
|
1172
1172
|
...n?.defaultColDef,
|
|
1173
1173
|
...r.defaultColDef
|
|
1174
|
-
}), [n?.defaultColDef, r.defaultColDef]), R = ge((
|
|
1175
|
-
const w =
|
|
1176
|
-
if (!w || !
|
|
1174
|
+
}), [n?.defaultColDef, r.defaultColDef]), R = ge((h) => {
|
|
1175
|
+
const w = u.current;
|
|
1176
|
+
if (!w || !h) return;
|
|
1177
1177
|
const $ = w.querySelector(".ag-body-horizontal-scroll-viewport");
|
|
1178
1178
|
if ($) {
|
|
1179
1179
|
const {
|
|
1180
|
-
scrollLeft:
|
|
1181
|
-
clientWidth:
|
|
1180
|
+
scrollLeft: v,
|
|
1181
|
+
clientWidth: A,
|
|
1182
1182
|
scrollWidth: C
|
|
1183
|
-
} = $, N =
|
|
1183
|
+
} = $, N = v > 0, f = Math.ceil(v + A) < C - 1;
|
|
1184
1184
|
w.classList.toggle("gz-table-ping-left", N), w.classList.toggle("gz-table-ping-right", f);
|
|
1185
1185
|
} else
|
|
1186
1186
|
w.classList.remove("gz-table-ping-left", "gz-table-ping-right");
|
|
1187
|
-
}, []),
|
|
1188
|
-
|
|
1189
|
-
}, [R, r.onBodyScroll, n?.onBodyScroll]), _ = ge((
|
|
1190
|
-
R(
|
|
1191
|
-
}, [R, r.onGridReady, n?.onGridReady]),
|
|
1192
|
-
R(
|
|
1193
|
-
}, [R, r.onGridSizeChanged, n?.onGridSizeChanged]), T = ge((
|
|
1194
|
-
R(
|
|
1195
|
-
}, [R, r.onModelUpdated, n?.onModelUpdated]), P = ge((
|
|
1196
|
-
R(
|
|
1197
|
-
}, [R, r.onDisplayedColumnsChanged, n?.onDisplayedColumnsChanged]), I = r.getContextMenuItems ?? n?.getContextMenuItems, L = ge((
|
|
1187
|
+
}, []), y = ge((h) => {
|
|
1188
|
+
h.direction === "horizontal" && R(h.api), r.onBodyScroll && r.onBodyScroll(h), n?.onBodyScroll && n.onBodyScroll(h);
|
|
1189
|
+
}, [R, r.onBodyScroll, n?.onBodyScroll]), _ = ge((h) => {
|
|
1190
|
+
R(h.api), r.onGridReady && r.onGridReady(h), n?.onGridReady && n.onGridReady(h);
|
|
1191
|
+
}, [R, r.onGridReady, n?.onGridReady]), b = ge((h) => {
|
|
1192
|
+
R(h.api), r.onGridSizeChanged && r.onGridSizeChanged(h), n?.onGridSizeChanged && n.onGridSizeChanged(h);
|
|
1193
|
+
}, [R, r.onGridSizeChanged, n?.onGridSizeChanged]), T = ge((h) => {
|
|
1194
|
+
R(h.api), r.onModelUpdated && r.onModelUpdated(h), n?.onModelUpdated && n.onModelUpdated(h);
|
|
1195
|
+
}, [R, r.onModelUpdated, n?.onModelUpdated]), P = ge((h) => {
|
|
1196
|
+
R(h.api), r.onDisplayedColumnsChanged && r.onDisplayedColumnsChanged(h), n?.onDisplayedColumnsChanged && n.onDisplayedColumnsChanged(h);
|
|
1197
|
+
}, [R, r.onDisplayedColumnsChanged, n?.onDisplayedColumnsChanged]), I = r.getContextMenuItems ?? n?.getContextMenuItems, L = ge((h) => {
|
|
1198
1198
|
const w = {
|
|
1199
1199
|
name: "复制整行数据",
|
|
1200
1200
|
icon: '<span class="ag-icon ag-icon-copy" unselectable="on" role="presentation"></span>',
|
|
1201
1201
|
action: () => {
|
|
1202
|
-
const C =
|
|
1202
|
+
const C = h.node;
|
|
1203
1203
|
if (!C || !C.data) return;
|
|
1204
|
-
const f = (
|
|
1204
|
+
const f = (h.api.getAllDisplayedColumns() || []).map((c) => {
|
|
1205
1205
|
const i = c.getColId(), l = C.data[i];
|
|
1206
1206
|
return typeof l == "object" ? JSON.stringify(l) : String(l ?? "");
|
|
1207
1207
|
}).join(" ");
|
|
@@ -1221,60 +1221,60 @@ const dr = (r) => {
|
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
1223
1223
|
};
|
|
1224
|
-
let $ =
|
|
1225
|
-
const
|
|
1226
|
-
return
|
|
1224
|
+
let $ = h.defaultItems || [];
|
|
1225
|
+
const v = $.indexOf("copy");
|
|
1226
|
+
return v !== -1 && ($[v] = w), h.api.getRowGroupColumns().length > 0 && ($ = [
|
|
1227
1227
|
...$,
|
|
1228
1228
|
"separator",
|
|
1229
1229
|
"expandAll",
|
|
1230
1230
|
"contractAll"
|
|
1231
1231
|
// AG Grid 中“收起全部”对应的内部指令是 contractAll
|
|
1232
1232
|
]), I ? I({
|
|
1233
|
-
...
|
|
1233
|
+
...h,
|
|
1234
1234
|
defaultItems: $
|
|
1235
1235
|
}) : $;
|
|
1236
1236
|
}, [I]);
|
|
1237
|
-
return /* @__PURE__ */ F("div", { ref:
|
|
1237
|
+
return /* @__PURE__ */ F("div", { ref: u, className: "gz-table-wrapper", style: {
|
|
1238
1238
|
height: "100%",
|
|
1239
1239
|
width: "100%",
|
|
1240
1240
|
display: "flex",
|
|
1241
1241
|
flexDirection: "column"
|
|
1242
|
-
}, children: /* @__PURE__ */ F(
|
|
1243
|
-
theme:
|
|
1244
|
-
}, className:
|
|
1245
|
-
}),
|
|
1246
|
-
root:
|
|
1247
|
-
section:
|
|
1248
|
-
sectionTitle:
|
|
1249
|
-
contextForm:
|
|
1250
|
-
fixedSingle:
|
|
1251
|
-
multiple:
|
|
1252
|
-
single:
|
|
1253
|
-
contextFormItem:
|
|
1254
|
-
contextFormLabel:
|
|
1255
|
-
contextFormContent:
|
|
1256
|
-
contextFormLabelText:
|
|
1257
|
-
selectPopup:
|
|
1258
|
-
selectPopupListItem:
|
|
1259
|
-
resourceIssues:
|
|
1260
|
-
limitAlert:
|
|
1261
|
-
fixedGrid:
|
|
1262
|
-
multipleGrid:
|
|
1263
|
-
singleGrid:
|
|
1264
|
-
fieldCell:
|
|
1265
|
-
singleContractHeader:
|
|
1266
|
-
negativeValue:
|
|
1267
|
-
gridErrorAlert:
|
|
1268
|
-
gridErrorIcon:
|
|
1269
|
-
gridErrorSection:
|
|
1270
|
-
gridErrorMessage:
|
|
1271
|
-
mergedErrorGridCell:
|
|
1272
|
-
mergedErrorCell:
|
|
1273
|
-
mergedErrorText:
|
|
1274
|
-
emptyState:
|
|
1275
|
-
footer:
|
|
1276
|
-
navigateButton:
|
|
1277
|
-
navigateIcon:
|
|
1242
|
+
}, children: /* @__PURE__ */ F(Xt, { modules: hr, licenseKey: gr, children: /* @__PURE__ */ F(Qt, { ref: e, ...r, gridOptions: g, ...p === void 0 ? {} : {
|
|
1243
|
+
theme: p
|
|
1244
|
+
}, className: B || void 0, defaultColDef: k, localeText: M, getContextMenuItems: L, onBodyScroll: y, onGridReady: _, onGridSizeChanged: b, onModelUpdated: T, onDisplayedColumnsChanged: P }) }) });
|
|
1245
|
+
}), Dr = "_root_168ty_1", Br = "_section_168ty_11", yr = "_sectionTitle_168ty_17", br = "_contextForm_168ty_24", Ar = "_fixedSingle_168ty_30", Sr = "_multiple_168ty_35", Tr = "_single_168ty_40", xr = "_contextFormItem_168ty_50", kr = "_contextFormLabel_168ty_53", wr = "_contextFormContent_168ty_57", Mr = "_contextFormLabelText_168ty_82", _r = "_selectPopup_168ty_92", $r = "_selectPopupListItem_168ty_95", Ir = "_resourceIssues_168ty_111", Rr = "_limitAlert_168ty_115", Pr = "_fixedGrid_168ty_118", Lr = "_multipleGrid_168ty_119", Nr = "_singleGrid_168ty_156", Or = "_fieldCell_168ty_160", Vr = "_singleContractHeader_168ty_165", zr = "_negativeValue_168ty_188", Yr = "_gridErrorAlert_168ty_191", Gr = "_gridErrorIcon_168ty_203", Hr = "_gridErrorSection_168ty_206", Ur = "_gridErrorMessage_168ty_210", Wr = "_mergedErrorGridCell_168ty_217", Zr = "_mergedErrorCell_168ty_225", qr = "_mergedErrorText_168ty_240", jr = "_emptyState_168ty_246", Xr = "_footer_168ty_254", Qr = "_navigateButton_168ty_260", Jr = "_navigateIcon_168ty_263", G = {
|
|
1246
|
+
root: Dr,
|
|
1247
|
+
section: Br,
|
|
1248
|
+
sectionTitle: yr,
|
|
1249
|
+
contextForm: br,
|
|
1250
|
+
fixedSingle: Ar,
|
|
1251
|
+
multiple: Sr,
|
|
1252
|
+
single: Tr,
|
|
1253
|
+
contextFormItem: xr,
|
|
1254
|
+
contextFormLabel: kr,
|
|
1255
|
+
contextFormContent: wr,
|
|
1256
|
+
contextFormLabelText: Mr,
|
|
1257
|
+
selectPopup: _r,
|
|
1258
|
+
selectPopupListItem: $r,
|
|
1259
|
+
resourceIssues: Ir,
|
|
1260
|
+
limitAlert: Rr,
|
|
1261
|
+
fixedGrid: Pr,
|
|
1262
|
+
multipleGrid: Lr,
|
|
1263
|
+
singleGrid: Nr,
|
|
1264
|
+
fieldCell: Or,
|
|
1265
|
+
singleContractHeader: Vr,
|
|
1266
|
+
negativeValue: zr,
|
|
1267
|
+
gridErrorAlert: Yr,
|
|
1268
|
+
gridErrorIcon: Gr,
|
|
1269
|
+
gridErrorSection: Hr,
|
|
1270
|
+
gridErrorMessage: Ur,
|
|
1271
|
+
mergedErrorGridCell: Wr,
|
|
1272
|
+
mergedErrorCell: Zr,
|
|
1273
|
+
mergedErrorText: qr,
|
|
1274
|
+
emptyState: jr,
|
|
1275
|
+
footer: Xr,
|
|
1276
|
+
navigateButton: Qr,
|
|
1277
|
+
navigateIcon: Jr
|
|
1278
1278
|
}, it = {
|
|
1279
1279
|
red: ["red1", "red3", "red6", "red7"],
|
|
1280
1280
|
volcano: ["volcano1", "volcano3", "volcano6", "volcano7"],
|
|
@@ -1289,50 +1289,50 @@ const dr = (r) => {
|
|
|
1289
1289
|
purple: ["purple1", "purple3", "purple6", "purple7"],
|
|
1290
1290
|
magenta: ["magenta1", "magenta3", "magenta6", "magenta7"]
|
|
1291
1291
|
}, de = (r, e) => {
|
|
1292
|
-
const
|
|
1293
|
-
return typeof
|
|
1294
|
-
},
|
|
1292
|
+
const u = r[e];
|
|
1293
|
+
return typeof u == "string" ? u : void 0;
|
|
1294
|
+
}, Kr = (r) => Object.prototype.hasOwnProperty.call(it, r), en = (r, e, u) => {
|
|
1295
1295
|
if (r === "default" || r === void 0) {
|
|
1296
1296
|
if (e !== "solid") return;
|
|
1297
|
-
const E = de(
|
|
1297
|
+
const E = de(u, "colorBgSolid");
|
|
1298
1298
|
return {
|
|
1299
|
-
color: de(
|
|
1299
|
+
color: de(u, "colorTextOnLight"),
|
|
1300
1300
|
backgroundColor: E,
|
|
1301
1301
|
borderColor: E
|
|
1302
1302
|
};
|
|
1303
1303
|
}
|
|
1304
1304
|
if (r === "primary") {
|
|
1305
|
-
const E = de(
|
|
1305
|
+
const E = de(u, "colorPrimary");
|
|
1306
1306
|
return {
|
|
1307
1307
|
// primary 三种 variant 都使用浅色背景和 on-light 文字色。
|
|
1308
|
-
color: de(
|
|
1308
|
+
color: de(u, "colorTextOnLight"),
|
|
1309
1309
|
backgroundColor: E,
|
|
1310
1310
|
// outlined 使用设计描边色;solid 的边框与背景保持一致;filled 不额外设置边框。
|
|
1311
1311
|
...e === "outlined" ? {
|
|
1312
|
-
borderColor: de(
|
|
1312
|
+
borderColor: de(u, "colorPrimaryBorder")
|
|
1313
1313
|
} : e === "solid" ? {
|
|
1314
1314
|
borderColor: E
|
|
1315
1315
|
} : void 0
|
|
1316
1316
|
};
|
|
1317
1317
|
}
|
|
1318
|
-
if (!
|
|
1319
|
-
const
|
|
1318
|
+
if (!Kr(r)) return;
|
|
1319
|
+
const t = it[r], [n, o, a, s] = t;
|
|
1320
1320
|
if (e === "solid") {
|
|
1321
|
-
const E = de(
|
|
1321
|
+
const E = de(u, a);
|
|
1322
1322
|
return {
|
|
1323
|
-
color: de(
|
|
1323
|
+
color: de(u, "colorTextLightSolid"),
|
|
1324
1324
|
backgroundColor: E,
|
|
1325
1325
|
borderColor: E
|
|
1326
1326
|
};
|
|
1327
1327
|
}
|
|
1328
1328
|
return {
|
|
1329
|
-
color: de(
|
|
1330
|
-
backgroundColor: de(
|
|
1329
|
+
color: de(u, s),
|
|
1330
|
+
backgroundColor: de(u, n),
|
|
1331
1331
|
...e === "outlined" ? {
|
|
1332
|
-
borderColor: de(
|
|
1332
|
+
borderColor: de(u, o)
|
|
1333
1333
|
} : void 0
|
|
1334
1334
|
};
|
|
1335
|
-
},
|
|
1335
|
+
}, un = (r, e) => {
|
|
1336
1336
|
if (r === "primary")
|
|
1337
1337
|
return {
|
|
1338
1338
|
color: de(e, "colorTextOnLight"),
|
|
@@ -1340,71 +1340,71 @@ const dr = (r) => {
|
|
|
1340
1340
|
borderColor: "transparent"
|
|
1341
1341
|
};
|
|
1342
1342
|
}, lt = ee((r, e) => {
|
|
1343
|
-
const
|
|
1344
|
-
let
|
|
1345
|
-
|
|
1346
|
-
color:
|
|
1343
|
+
const u = Y.c(33);
|
|
1344
|
+
let t, n, o, a, s;
|
|
1345
|
+
u[0] !== r ? ({
|
|
1346
|
+
color: t,
|
|
1347
1347
|
style: o,
|
|
1348
1348
|
styles: a,
|
|
1349
1349
|
variant: s,
|
|
1350
1350
|
...n
|
|
1351
|
-
} = r,
|
|
1351
|
+
} = r, u[0] = r, u[1] = t, u[2] = n, u[3] = o, u[4] = a, u[5] = s) : (t = u[1], n = u[2], o = u[3], a = u[4], s = u[5]);
|
|
1352
1352
|
const E = s === void 0 ? "solid" : s, {
|
|
1353
1353
|
themeMode: m
|
|
1354
1354
|
} = Wu(at), {
|
|
1355
|
-
token:
|
|
1356
|
-
} = Xu.useToken(), g =
|
|
1355
|
+
token: p
|
|
1356
|
+
} = Xu.useToken(), g = p;
|
|
1357
1357
|
let M;
|
|
1358
|
-
|
|
1359
|
-
const
|
|
1358
|
+
u[6] !== t || u[7] !== g || u[8] !== m || u[9] !== E ? (M = m === "gold-dark" ? en(t, E, g) : m === "gold-light" ? un(t, g) : void 0, u[6] = t, u[7] = g, u[8] = m, u[9] = E, u[10] = M) : M = u[10];
|
|
1359
|
+
const B = M;
|
|
1360
1360
|
let k;
|
|
1361
|
-
|
|
1361
|
+
u[11] !== t || u[12] !== g || u[13] !== m || u[14] !== E ? (k = m === "gold-dark" && E === "solid" && (t === "primary" || t === "default" || t === void 0) ? {
|
|
1362
1362
|
color: de(g, "colorTextOnLight")
|
|
1363
|
-
} : void 0,
|
|
1363
|
+
} : void 0, u[11] = t, u[12] = g, u[13] = m, u[14] = E, u[15] = k) : k = u[15];
|
|
1364
1364
|
const R = k;
|
|
1365
|
-
let
|
|
1366
|
-
|
|
1365
|
+
let y;
|
|
1366
|
+
u[16] !== t || u[17] !== g || u[18] !== m ? (y = m === "gold-light" && t === "primary" ? {
|
|
1367
1367
|
color: de(g, "colorTextOnLight")
|
|
1368
|
-
} : void 0,
|
|
1369
|
-
const
|
|
1368
|
+
} : void 0, u[16] = t, u[17] = g, u[18] = m, u[19] = y) : y = u[19];
|
|
1369
|
+
const b = R ?? y;
|
|
1370
1370
|
let T;
|
|
1371
|
-
|
|
1372
|
-
...
|
|
1371
|
+
u[20] !== B || u[21] !== o ? (T = B ? {
|
|
1372
|
+
...B,
|
|
1373
1373
|
...o
|
|
1374
|
-
} : o,
|
|
1374
|
+
} : o, u[20] = B, u[21] = o, u[22] = T) : T = u[22];
|
|
1375
1375
|
const P = T;
|
|
1376
1376
|
let I;
|
|
1377
|
-
|
|
1378
|
-
const
|
|
1377
|
+
u[23] !== b || u[24] !== a ? (I = b ? typeof a == "function" ? ($) => {
|
|
1378
|
+
const v = a($);
|
|
1379
1379
|
return {
|
|
1380
|
-
...
|
|
1380
|
+
...v,
|
|
1381
1381
|
close: {
|
|
1382
|
-
...
|
|
1383
|
-
...
|
|
1382
|
+
...b,
|
|
1383
|
+
...v?.close
|
|
1384
1384
|
}
|
|
1385
1385
|
};
|
|
1386
1386
|
} : {
|
|
1387
1387
|
...a,
|
|
1388
1388
|
close: {
|
|
1389
|
-
...
|
|
1389
|
+
...b,
|
|
1390
1390
|
...a?.close
|
|
1391
1391
|
}
|
|
1392
|
-
} : a,
|
|
1393
|
-
const L = I,
|
|
1392
|
+
} : a, u[23] = b, u[24] = a, u[25] = I) : I = u[25];
|
|
1393
|
+
const L = I, h = m === "gold-dark" && t === "default" ? void 0 : t;
|
|
1394
1394
|
let w;
|
|
1395
|
-
return
|
|
1395
|
+
return u[26] !== h || u[27] !== P || u[28] !== L || u[29] !== e || u[30] !== n || u[31] !== E ? (w = /* @__PURE__ */ F(Fu, { ref: e, color: h, variant: E, style: P, styles: L, ...n }), u[26] = h, u[27] = P, u[28] = L, u[29] = e, u[30] = n, u[31] = E, u[32] = w) : w = u[32], w;
|
|
1396
1396
|
});
|
|
1397
1397
|
lt.displayName = "GZTag";
|
|
1398
1398
|
const st = ee((r, e) => {
|
|
1399
|
-
const
|
|
1400
|
-
let
|
|
1401
|
-
return
|
|
1399
|
+
const u = Y.c(3);
|
|
1400
|
+
let t;
|
|
1401
|
+
return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ F(Fu.CheckableTag, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
|
|
1402
1402
|
});
|
|
1403
1403
|
st.displayName = "GZCheckableTag";
|
|
1404
1404
|
const ct = ee((r, e) => {
|
|
1405
|
-
const
|
|
1406
|
-
let
|
|
1407
|
-
return
|
|
1405
|
+
const u = Y.c(3);
|
|
1406
|
+
let t;
|
|
1407
|
+
return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ F(Fu.CheckableTagGroup, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
|
|
1408
1408
|
});
|
|
1409
1409
|
ct.displayName = "GZCheckableTagGroup";
|
|
1410
1410
|
const yu = lt;
|
|
@@ -1419,29 +1419,29 @@ function dt(r, e) {
|
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
1421
1421
|
function bu(r, e) {
|
|
1422
|
-
const
|
|
1423
|
-
if (
|
|
1424
|
-
const [
|
|
1422
|
+
const u = dt(r, e);
|
|
1423
|
+
if (u === ae) return u;
|
|
1424
|
+
const [t, n] = u.split("."), o = t.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
1425
1425
|
return n == null ? o : `${o}.${n}`;
|
|
1426
1426
|
}
|
|
1427
|
-
function $u(r, e,
|
|
1428
|
-
const
|
|
1429
|
-
if (
|
|
1430
|
-
const n =
|
|
1427
|
+
function $u(r, e, u = 2) {
|
|
1428
|
+
const t = dt(r, u);
|
|
1429
|
+
if (t === ae) return t;
|
|
1430
|
+
const n = t.startsWith("-") ? t.slice(1) : t, o = bu(n, u);
|
|
1431
1431
|
try {
|
|
1432
1432
|
const s = new Intl.NumberFormat("zh-CN", {
|
|
1433
1433
|
style: "currency",
|
|
1434
1434
|
currency: e,
|
|
1435
1435
|
currencyDisplay: "symbol",
|
|
1436
|
-
minimumFractionDigits:
|
|
1437
|
-
maximumFractionDigits:
|
|
1436
|
+
minimumFractionDigits: u,
|
|
1437
|
+
maximumFractionDigits: u
|
|
1438
1438
|
}).formatToParts(0).find((E) => E.type === "currency")?.value ?? e;
|
|
1439
|
-
return `${
|
|
1439
|
+
return `${t.startsWith("-") ? "-" : ""}${s}${o}`;
|
|
1440
1440
|
} catch {
|
|
1441
|
-
return `${e} ${
|
|
1441
|
+
return `${e} ${t}`.trim();
|
|
1442
1442
|
}
|
|
1443
1443
|
}
|
|
1444
|
-
function
|
|
1444
|
+
function tn(r) {
|
|
1445
1445
|
try {
|
|
1446
1446
|
return r != null && new Ge(r).lt(0);
|
|
1447
1447
|
} catch {
|
|
@@ -1449,26 +1449,26 @@ function un(r) {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
1451
|
function mt(r) {
|
|
1452
|
-
const e = Y.c(3),
|
|
1453
|
-
let
|
|
1454
|
-
return e[0] !== r.value || e[1] !==
|
|
1452
|
+
const e = Y.c(3), u = tn(r.rawValue) ? G.negativeValue : void 0;
|
|
1453
|
+
let t;
|
|
1454
|
+
return e[0] !== r.value || e[1] !== u ? (t = /* @__PURE__ */ F("span", { className: u, children: r.value }), e[0] = r.value, e[1] = u, e[2] = t) : t = e[2], t;
|
|
1455
1455
|
}
|
|
1456
1456
|
function Et(r) {
|
|
1457
1457
|
const e = Y.c(4);
|
|
1458
1458
|
if (r.field === "direction") {
|
|
1459
|
-
let
|
|
1460
|
-
return e[0] !== r.value ? (
|
|
1459
|
+
let t;
|
|
1460
|
+
return e[0] !== r.value ? (t = r.value ? /* @__PURE__ */ F(yu, { variant: "outlined", color: r.value === "买入" ? "gold" : "green", children: r.value }) : "-", e[0] = r.value, e[1] = t) : t = e[1], t;
|
|
1461
1461
|
}
|
|
1462
|
-
let
|
|
1463
|
-
return e[2] !== r.value ? (
|
|
1462
|
+
let u;
|
|
1463
|
+
return e[2] !== r.value ? (u = /* @__PURE__ */ F("span", { children: r.value }), e[2] = r.value, e[3] = u) : u = e[3], u;
|
|
1464
1464
|
}
|
|
1465
|
-
var Xe = { exports: {} },
|
|
1466
|
-
function
|
|
1465
|
+
var Xe = { exports: {} }, rn = Xe.exports, Iu;
|
|
1466
|
+
function nn() {
|
|
1467
1467
|
return Iu || (Iu = 1, (function(r, e) {
|
|
1468
|
-
(function(
|
|
1469
|
-
r.exports =
|
|
1470
|
-
})(
|
|
1471
|
-
var
|
|
1468
|
+
(function(u, t) {
|
|
1469
|
+
r.exports = t();
|
|
1470
|
+
})(rn, (function() {
|
|
1471
|
+
var u = 1e3, t = 6e4, n = 36e5, o = "millisecond", a = "second", s = "minute", E = "hour", m = "day", p = "week", g = "month", M = "quarter", B = "year", k = "date", R = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, _ = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { 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(f) {
|
|
1472
1472
|
var c = ["th", "st", "nd", "rd"], i = f % 100;
|
|
1473
1473
|
return "[" + f + (c[(i - 20) % 10] || c[i] || c[0]) + "]";
|
|
1474
1474
|
} }, T = function(f, c, i) {
|
|
@@ -1479,24 +1479,24 @@ function rn() {
|
|
|
1479
1479
|
return (c <= 0 ? "+" : "-") + T(l, 2, "0") + ":" + T(d, 2, "0");
|
|
1480
1480
|
}, m: function f(c, i) {
|
|
1481
1481
|
if (c.date() < i.date()) return -f(i, c);
|
|
1482
|
-
var l = 12 * (i.year() - c.year()) + (i.month() - c.month()), d = c.clone().add(l, g),
|
|
1483
|
-
return +(-(l + (i - d) / (
|
|
1482
|
+
var l = 12 * (i.year() - c.year()) + (i.month() - c.month()), d = c.clone().add(l, g), D = i - d < 0, S = c.clone().add(l + (D ? -1 : 1), g);
|
|
1483
|
+
return +(-(l + (i - d) / (D ? d - S : S - d)) || 0);
|
|
1484
1484
|
}, a: function(f) {
|
|
1485
1485
|
return f < 0 ? Math.ceil(f) || 0 : Math.floor(f);
|
|
1486
1486
|
}, p: function(f) {
|
|
1487
|
-
return { M: g, y:
|
|
1487
|
+
return { M: g, y: B, w: p, d: m, D: k, h: E, m: s, s: a, ms: o, Q: M }[f] || String(f || "").toLowerCase().replace(/s$/, "");
|
|
1488
1488
|
}, u: function(f) {
|
|
1489
1489
|
return f === void 0;
|
|
1490
1490
|
} }, I = "en", L = {};
|
|
1491
|
-
L[I] =
|
|
1492
|
-
var
|
|
1493
|
-
return f instanceof C || !(!f || !f[
|
|
1491
|
+
L[I] = b;
|
|
1492
|
+
var h = "$isDayjsObject", w = function(f) {
|
|
1493
|
+
return f instanceof C || !(!f || !f[h]);
|
|
1494
1494
|
}, $ = function f(c, i, l) {
|
|
1495
1495
|
var d;
|
|
1496
1496
|
if (!c) return I;
|
|
1497
1497
|
if (typeof c == "string") {
|
|
1498
|
-
var
|
|
1499
|
-
L[
|
|
1498
|
+
var D = c.toLowerCase();
|
|
1499
|
+
L[D] && (d = D), i && (L[D] = i, d = D);
|
|
1500
1500
|
var S = c.split("-");
|
|
1501
1501
|
if (!d && S.length > 1) return f(S[0]);
|
|
1502
1502
|
} else {
|
|
@@ -1504,30 +1504,30 @@ function rn() {
|
|
|
1504
1504
|
L[x] = c, d = x;
|
|
1505
1505
|
}
|
|
1506
1506
|
return !l && d && (I = d), d || !l && I;
|
|
1507
|
-
},
|
|
1507
|
+
}, v = function(f, c) {
|
|
1508
1508
|
if (w(f)) return f.clone();
|
|
1509
1509
|
var i = typeof c == "object" ? c : {};
|
|
1510
1510
|
return i.date = f, i.args = arguments, new C(i);
|
|
1511
|
-
},
|
|
1512
|
-
|
|
1513
|
-
return
|
|
1511
|
+
}, A = P;
|
|
1512
|
+
A.l = $, A.i = w, A.w = function(f, c) {
|
|
1513
|
+
return v(f, { locale: c.$L, utc: c.$u, x: c.$x, $offset: c.$offset });
|
|
1514
1514
|
};
|
|
1515
1515
|
var C = (function() {
|
|
1516
1516
|
function f(i) {
|
|
1517
|
-
this.$L = $(i.locale, null, !0), this.parse(i), this.$x = this.$x || i.x || {}, this[
|
|
1517
|
+
this.$L = $(i.locale, null, !0), this.parse(i), this.$x = this.$x || i.x || {}, this[h] = !0;
|
|
1518
1518
|
}
|
|
1519
1519
|
var c = f.prototype;
|
|
1520
1520
|
return c.parse = function(i) {
|
|
1521
1521
|
this.$d = (function(l) {
|
|
1522
|
-
var d = l.date,
|
|
1522
|
+
var d = l.date, D = l.utc;
|
|
1523
1523
|
if (d === null) return /* @__PURE__ */ new Date(NaN);
|
|
1524
|
-
if (
|
|
1524
|
+
if (A.u(d)) return /* @__PURE__ */ new Date();
|
|
1525
1525
|
if (d instanceof Date) return new Date(d);
|
|
1526
1526
|
if (typeof d == "string" && !/Z$/i.test(d)) {
|
|
1527
|
-
var S = d.match(
|
|
1527
|
+
var S = d.match(y);
|
|
1528
1528
|
if (S) {
|
|
1529
1529
|
var x = S[2] - 1 || 0, O = (S[7] || "0").substring(0, 3);
|
|
1530
|
-
return
|
|
1530
|
+
return D ? new Date(Date.UTC(S[1], x, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, O)) : new Date(S[1], x, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, O);
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
1533
1533
|
return new Date(d);
|
|
@@ -1536,37 +1536,37 @@ function rn() {
|
|
|
1536
1536
|
var i = this.$d;
|
|
1537
1537
|
this.$y = i.getFullYear(), this.$M = i.getMonth(), this.$D = i.getDate(), this.$W = i.getDay(), this.$H = i.getHours(), this.$m = i.getMinutes(), this.$s = i.getSeconds(), this.$ms = i.getMilliseconds();
|
|
1538
1538
|
}, c.$utils = function() {
|
|
1539
|
-
return
|
|
1539
|
+
return A;
|
|
1540
1540
|
}, c.isValid = function() {
|
|
1541
1541
|
return this.$d.toString() !== R;
|
|
1542
1542
|
}, c.isSame = function(i, l) {
|
|
1543
|
-
var d =
|
|
1543
|
+
var d = v(i);
|
|
1544
1544
|
return this.startOf(l) <= d && d <= this.endOf(l);
|
|
1545
1545
|
}, c.isAfter = function(i, l) {
|
|
1546
|
-
return
|
|
1546
|
+
return v(i) < this.startOf(l);
|
|
1547
1547
|
}, c.isBefore = function(i, l) {
|
|
1548
|
-
return this.endOf(l) <
|
|
1548
|
+
return this.endOf(l) < v(i);
|
|
1549
1549
|
}, c.$g = function(i, l, d) {
|
|
1550
|
-
return
|
|
1550
|
+
return A.u(i) ? this[l] : this.set(d, i);
|
|
1551
1551
|
}, c.unix = function() {
|
|
1552
1552
|
return Math.floor(this.valueOf() / 1e3);
|
|
1553
1553
|
}, c.valueOf = function() {
|
|
1554
1554
|
return this.$d.getTime();
|
|
1555
1555
|
}, c.startOf = function(i, l) {
|
|
1556
|
-
var d = this,
|
|
1557
|
-
var Q =
|
|
1558
|
-
return
|
|
1556
|
+
var d = this, D = !!A.u(l) || l, S = A.p(i), x = function(q, H) {
|
|
1557
|
+
var Q = A.w(d.$u ? Date.UTC(d.$y, H, q) : new Date(d.$y, H, q), d);
|
|
1558
|
+
return D ? Q : Q.endOf(m);
|
|
1559
1559
|
}, O = function(q, H) {
|
|
1560
|
-
return
|
|
1560
|
+
return A.w(d.toDate()[q].apply(d.toDate("s"), (D ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(H)), d);
|
|
1561
1561
|
}, V = this.$W, z = this.$M, W = this.$D, U = "set" + (this.$u ? "UTC" : "");
|
|
1562
1562
|
switch (S) {
|
|
1563
|
-
case
|
|
1564
|
-
return
|
|
1563
|
+
case B:
|
|
1564
|
+
return D ? x(1, 0) : x(31, 11);
|
|
1565
1565
|
case g:
|
|
1566
|
-
return
|
|
1567
|
-
case
|
|
1566
|
+
return D ? x(1, z) : x(0, z + 1);
|
|
1567
|
+
case p:
|
|
1568
1568
|
var X = this.$locale().weekStart || 0, Z = (V < X ? V + 7 : V) - X;
|
|
1569
|
-
return x(
|
|
1569
|
+
return x(D ? W - Z : W + (6 - Z), z);
|
|
1570
1570
|
case m:
|
|
1571
1571
|
case k:
|
|
1572
1572
|
return O(U + "Hours", 0);
|
|
@@ -1582,8 +1582,8 @@ function rn() {
|
|
|
1582
1582
|
}, c.endOf = function(i) {
|
|
1583
1583
|
return this.startOf(i, !1);
|
|
1584
1584
|
}, c.$set = function(i, l) {
|
|
1585
|
-
var d,
|
|
1586
|
-
if (
|
|
1585
|
+
var d, D = A.p(i), S = "set" + (this.$u ? "UTC" : ""), x = (d = {}, d[m] = S + "Date", d[k] = S + "Date", d[g] = S + "Month", d[B] = S + "FullYear", d[E] = S + "Hours", d[s] = S + "Minutes", d[a] = S + "Seconds", d[o] = S + "Milliseconds", d)[D], O = D === m ? this.$D + (l - this.$W) : l;
|
|
1586
|
+
if (D === g || D === B) {
|
|
1587
1587
|
var V = this.clone().set(k, 1);
|
|
1588
1588
|
V.$d[x](O), V.init(), this.$d = V.set(k, Math.min(this.$D, V.daysInMonth())).$d;
|
|
1589
1589
|
} else x && this.$d[x](O);
|
|
@@ -1591,44 +1591,44 @@ function rn() {
|
|
|
1591
1591
|
}, c.set = function(i, l) {
|
|
1592
1592
|
return this.clone().$set(i, l);
|
|
1593
1593
|
}, c.get = function(i) {
|
|
1594
|
-
return this[
|
|
1594
|
+
return this[A.p(i)]();
|
|
1595
1595
|
}, c.add = function(i, l) {
|
|
1596
|
-
var d,
|
|
1596
|
+
var d, D = this;
|
|
1597
1597
|
i = Number(i);
|
|
1598
|
-
var S =
|
|
1599
|
-
var W =
|
|
1600
|
-
return
|
|
1598
|
+
var S = A.p(l), x = function(z) {
|
|
1599
|
+
var W = v(D);
|
|
1600
|
+
return A.w(W.date(W.date() + Math.round(z * i)), D);
|
|
1601
1601
|
};
|
|
1602
1602
|
if (S === g) return this.set(g, this.$M + i);
|
|
1603
|
-
if (S ===
|
|
1603
|
+
if (S === B) return this.set(B, this.$y + i);
|
|
1604
1604
|
if (S === m) return x(1);
|
|
1605
|
-
if (S ===
|
|
1606
|
-
var O = (d = {}, d[s] =
|
|
1607
|
-
return
|
|
1605
|
+
if (S === p) return x(7);
|
|
1606
|
+
var O = (d = {}, d[s] = t, d[E] = n, d[a] = u, d)[S] || 1, V = this.$d.getTime() + i * O;
|
|
1607
|
+
return A.w(V, this);
|
|
1608
1608
|
}, c.subtract = function(i, l) {
|
|
1609
1609
|
return this.add(-1 * i, l);
|
|
1610
1610
|
}, c.format = function(i) {
|
|
1611
1611
|
var l = this, d = this.$locale();
|
|
1612
1612
|
if (!this.isValid()) return d.invalidDate || R;
|
|
1613
|
-
var
|
|
1614
|
-
return H && (H[Q] || H(l,
|
|
1613
|
+
var D = i || "YYYY-MM-DDTHH:mm:ssZ", S = A.z(this), x = this.$H, O = this.$m, V = this.$M, z = d.weekdays, W = d.months, U = d.meridiem, X = function(H, Q, K, j) {
|
|
1614
|
+
return H && (H[Q] || H(l, D)) || K[Q].slice(0, j);
|
|
1615
1615
|
}, Z = function(H) {
|
|
1616
|
-
return
|
|
1616
|
+
return A.s(x % 12 || 12, H, "0");
|
|
1617
1617
|
}, q = U || function(H, Q, K) {
|
|
1618
1618
|
var j = H < 12 ? "AM" : "PM";
|
|
1619
1619
|
return K ? j.toLowerCase() : j;
|
|
1620
1620
|
};
|
|
1621
|
-
return
|
|
1621
|
+
return D.replace(_, (function(H, Q) {
|
|
1622
1622
|
return Q || (function(K) {
|
|
1623
1623
|
switch (K) {
|
|
1624
1624
|
case "YY":
|
|
1625
1625
|
return String(l.$y).slice(-2);
|
|
1626
1626
|
case "YYYY":
|
|
1627
|
-
return
|
|
1627
|
+
return A.s(l.$y, 4, "0");
|
|
1628
1628
|
case "M":
|
|
1629
1629
|
return V + 1;
|
|
1630
1630
|
case "MM":
|
|
1631
|
-
return
|
|
1631
|
+
return A.s(V + 1, 2, "0");
|
|
1632
1632
|
case "MMM":
|
|
1633
1633
|
return X(d.monthsShort, V, W, 3);
|
|
1634
1634
|
case "MMMM":
|
|
@@ -1636,7 +1636,7 @@ function rn() {
|
|
|
1636
1636
|
case "D":
|
|
1637
1637
|
return l.$D;
|
|
1638
1638
|
case "DD":
|
|
1639
|
-
return
|
|
1639
|
+
return A.s(l.$D, 2, "0");
|
|
1640
1640
|
case "d":
|
|
1641
1641
|
return String(l.$W);
|
|
1642
1642
|
case "dd":
|
|
@@ -1648,7 +1648,7 @@ function rn() {
|
|
|
1648
1648
|
case "H":
|
|
1649
1649
|
return String(x);
|
|
1650
1650
|
case "HH":
|
|
1651
|
-
return
|
|
1651
|
+
return A.s(x, 2, "0");
|
|
1652
1652
|
case "h":
|
|
1653
1653
|
return Z(1);
|
|
1654
1654
|
case "hh":
|
|
@@ -1660,13 +1660,13 @@ function rn() {
|
|
|
1660
1660
|
case "m":
|
|
1661
1661
|
return String(O);
|
|
1662
1662
|
case "mm":
|
|
1663
|
-
return
|
|
1663
|
+
return A.s(O, 2, "0");
|
|
1664
1664
|
case "s":
|
|
1665
1665
|
return String(l.$s);
|
|
1666
1666
|
case "ss":
|
|
1667
|
-
return
|
|
1667
|
+
return A.s(l.$s, 2, "0");
|
|
1668
1668
|
case "SSS":
|
|
1669
|
-
return
|
|
1669
|
+
return A.s(l.$ms, 3, "0");
|
|
1670
1670
|
case "Z":
|
|
1671
1671
|
return S;
|
|
1672
1672
|
}
|
|
@@ -1676,48 +1676,48 @@ function rn() {
|
|
|
1676
1676
|
}, c.utcOffset = function() {
|
|
1677
1677
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1678
1678
|
}, c.diff = function(i, l, d) {
|
|
1679
|
-
var
|
|
1680
|
-
return
|
|
1679
|
+
var D, S = this, x = A.p(l), O = v(i), V = (O.utcOffset() - this.utcOffset()) * t, z = this - O, W = function() {
|
|
1680
|
+
return A.m(S, O);
|
|
1681
1681
|
};
|
|
1682
1682
|
switch (x) {
|
|
1683
|
-
case
|
|
1684
|
-
|
|
1683
|
+
case B:
|
|
1684
|
+
D = W() / 12;
|
|
1685
1685
|
break;
|
|
1686
1686
|
case g:
|
|
1687
|
-
|
|
1687
|
+
D = W();
|
|
1688
1688
|
break;
|
|
1689
1689
|
case M:
|
|
1690
|
-
|
|
1690
|
+
D = W() / 3;
|
|
1691
1691
|
break;
|
|
1692
|
-
case
|
|
1693
|
-
|
|
1692
|
+
case p:
|
|
1693
|
+
D = (z - V) / 6048e5;
|
|
1694
1694
|
break;
|
|
1695
1695
|
case m:
|
|
1696
|
-
|
|
1696
|
+
D = (z - V) / 864e5;
|
|
1697
1697
|
break;
|
|
1698
1698
|
case E:
|
|
1699
|
-
|
|
1699
|
+
D = z / n;
|
|
1700
1700
|
break;
|
|
1701
1701
|
case s:
|
|
1702
|
-
|
|
1702
|
+
D = z / t;
|
|
1703
1703
|
break;
|
|
1704
1704
|
case a:
|
|
1705
|
-
|
|
1705
|
+
D = z / u;
|
|
1706
1706
|
break;
|
|
1707
1707
|
default:
|
|
1708
|
-
|
|
1708
|
+
D = z;
|
|
1709
1709
|
}
|
|
1710
|
-
return d ?
|
|
1710
|
+
return d ? D : A.a(D);
|
|
1711
1711
|
}, c.daysInMonth = function() {
|
|
1712
1712
|
return this.endOf(g).$D;
|
|
1713
1713
|
}, c.$locale = function() {
|
|
1714
1714
|
return L[this.$L];
|
|
1715
1715
|
}, c.locale = function(i, l) {
|
|
1716
1716
|
if (!i) return this.$L;
|
|
1717
|
-
var d = this.clone(),
|
|
1718
|
-
return
|
|
1717
|
+
var d = this.clone(), D = $(i, l, !0);
|
|
1718
|
+
return D && (d.$L = D), d;
|
|
1719
1719
|
}, c.clone = function() {
|
|
1720
|
-
return
|
|
1720
|
+
return A.w(this.$d, this);
|
|
1721
1721
|
}, c.toDate = function() {
|
|
1722
1722
|
return new Date(this.valueOf());
|
|
1723
1723
|
}, c.toJSON = function() {
|
|
@@ -1728,131 +1728,131 @@ function rn() {
|
|
|
1728
1728
|
return this.$d.toUTCString();
|
|
1729
1729
|
}, f;
|
|
1730
1730
|
})(), N = C.prototype;
|
|
1731
|
-
return
|
|
1731
|
+
return v.prototype = N, [["$ms", o], ["$s", a], ["$m", s], ["$H", E], ["$W", m], ["$M", g], ["$y", B], ["$D", k]].forEach((function(f) {
|
|
1732
1732
|
N[f[1]] = function(c) {
|
|
1733
1733
|
return this.$g(c, f[0], f[1]);
|
|
1734
1734
|
};
|
|
1735
|
-
})),
|
|
1736
|
-
return f.$i || (f(c, C,
|
|
1737
|
-
},
|
|
1738
|
-
return
|
|
1739
|
-
},
|
|
1735
|
+
})), v.extend = function(f, c) {
|
|
1736
|
+
return f.$i || (f(c, C, v), f.$i = !0), v;
|
|
1737
|
+
}, v.locale = $, v.isDayjs = w, v.unix = function(f) {
|
|
1738
|
+
return v(1e3 * f);
|
|
1739
|
+
}, v.en = L[I], v.Ls = L, v.p = {}, v;
|
|
1740
1740
|
}));
|
|
1741
1741
|
})(Xe)), Xe.exports;
|
|
1742
1742
|
}
|
|
1743
|
-
var
|
|
1744
|
-
const He = /* @__PURE__ */ Ku(
|
|
1745
|
-
var Qe = { exports: {} },
|
|
1746
|
-
function
|
|
1743
|
+
var on = nn();
|
|
1744
|
+
const He = /* @__PURE__ */ Ku(on);
|
|
1745
|
+
var Qe = { exports: {} }, an = Qe.exports, Ru;
|
|
1746
|
+
function ln() {
|
|
1747
1747
|
return Ru || (Ru = 1, (function(r, e) {
|
|
1748
|
-
(function(
|
|
1749
|
-
r.exports =
|
|
1750
|
-
})(
|
|
1751
|
-
var
|
|
1752
|
-
return (
|
|
1753
|
-
},
|
|
1748
|
+
(function(u, t) {
|
|
1749
|
+
r.exports = t();
|
|
1750
|
+
})(an, (function() {
|
|
1751
|
+
var u = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, o = /\d\d/, a = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, E = {}, m = function(y) {
|
|
1752
|
+
return (y = +y) + (y > 68 ? 1900 : 2e3);
|
|
1753
|
+
}, p = function(y) {
|
|
1754
1754
|
return function(_) {
|
|
1755
|
-
this[
|
|
1755
|
+
this[y] = +_;
|
|
1756
1756
|
};
|
|
1757
|
-
}, g = [/[+-]\d\d:?(\d\d)?|Z/, function(
|
|
1757
|
+
}, g = [/[+-]\d\d:?(\d\d)?|Z/, function(y) {
|
|
1758
1758
|
(this.zone || (this.zone = {})).offset = (function(_) {
|
|
1759
1759
|
if (!_ || _ === "Z") return 0;
|
|
1760
|
-
var
|
|
1761
|
-
return T === 0 ? 0 :
|
|
1762
|
-
})(
|
|
1763
|
-
}], M = function(
|
|
1764
|
-
var _ = E[
|
|
1760
|
+
var b = _.match(/([+-]|\d\d)/g), T = 60 * b[1] + (+b[2] || 0);
|
|
1761
|
+
return T === 0 ? 0 : b[0] === "+" ? -T : T;
|
|
1762
|
+
})(y);
|
|
1763
|
+
}], M = function(y) {
|
|
1764
|
+
var _ = E[y];
|
|
1765
1765
|
return _ && (_.indexOf ? _ : _.s.concat(_.f));
|
|
1766
|
-
},
|
|
1767
|
-
var
|
|
1766
|
+
}, B = function(y, _) {
|
|
1767
|
+
var b, T = E.meridiem;
|
|
1768
1768
|
if (T) {
|
|
1769
|
-
for (var P = 1; P <= 24; P += 1) if (
|
|
1770
|
-
|
|
1769
|
+
for (var P = 1; P <= 24; P += 1) if (y.indexOf(T(P, 0, _)) > -1) {
|
|
1770
|
+
b = P > 12;
|
|
1771
1771
|
break;
|
|
1772
1772
|
}
|
|
1773
|
-
} else
|
|
1774
|
-
return
|
|
1775
|
-
}, k = { A: [s, function(
|
|
1776
|
-
this.afternoon =
|
|
1777
|
-
}], a: [s, function(
|
|
1778
|
-
this.afternoon =
|
|
1779
|
-
}], Q: [n, function(
|
|
1780
|
-
this.month = 3 * (
|
|
1781
|
-
}], S: [n, function(
|
|
1782
|
-
this.milliseconds = 100 * +
|
|
1783
|
-
}], SS: [o, function(
|
|
1784
|
-
this.milliseconds = 10 * +
|
|
1785
|
-
}], SSS: [/\d{3}/, function(
|
|
1786
|
-
this.milliseconds = +
|
|
1787
|
-
}], s: [a,
|
|
1788
|
-
var _ = E.ordinal,
|
|
1789
|
-
if (this.day =
|
|
1790
|
-
}], w: [a,
|
|
1791
|
-
var _ = M("months"),
|
|
1773
|
+
} else b = y === (_ ? "pm" : "PM");
|
|
1774
|
+
return b;
|
|
1775
|
+
}, k = { A: [s, function(y) {
|
|
1776
|
+
this.afternoon = B(y, !1);
|
|
1777
|
+
}], a: [s, function(y) {
|
|
1778
|
+
this.afternoon = B(y, !0);
|
|
1779
|
+
}], Q: [n, function(y) {
|
|
1780
|
+
this.month = 3 * (y - 1) + 1;
|
|
1781
|
+
}], S: [n, function(y) {
|
|
1782
|
+
this.milliseconds = 100 * +y;
|
|
1783
|
+
}], SS: [o, function(y) {
|
|
1784
|
+
this.milliseconds = 10 * +y;
|
|
1785
|
+
}], SSS: [/\d{3}/, function(y) {
|
|
1786
|
+
this.milliseconds = +y;
|
|
1787
|
+
}], s: [a, p("seconds")], ss: [a, p("seconds")], m: [a, p("minutes")], mm: [a, p("minutes")], H: [a, p("hours")], h: [a, p("hours")], HH: [a, p("hours")], hh: [a, p("hours")], D: [a, p("day")], DD: [o, p("day")], Do: [s, function(y) {
|
|
1788
|
+
var _ = E.ordinal, b = y.match(/\d+/);
|
|
1789
|
+
if (this.day = b[0], _) for (var T = 1; T <= 31; T += 1) _(T).replace(/\[|\]/g, "") === y && (this.day = T);
|
|
1790
|
+
}], w: [a, p("week")], ww: [o, p("week")], M: [a, p("month")], MM: [o, p("month")], MMM: [s, function(y) {
|
|
1791
|
+
var _ = M("months"), b = (M("monthsShort") || _.map((function(T) {
|
|
1792
1792
|
return T.slice(0, 3);
|
|
1793
|
-
}))).indexOf(
|
|
1794
|
-
if (
|
|
1795
|
-
this.month =
|
|
1796
|
-
}], MMMM: [s, function(
|
|
1797
|
-
var _ = M("months").indexOf(
|
|
1793
|
+
}))).indexOf(y) + 1;
|
|
1794
|
+
if (b < 1) throw new Error();
|
|
1795
|
+
this.month = b % 12 || b;
|
|
1796
|
+
}], MMMM: [s, function(y) {
|
|
1797
|
+
var _ = M("months").indexOf(y) + 1;
|
|
1798
1798
|
if (_ < 1) throw new Error();
|
|
1799
1799
|
this.month = _ % 12 || _;
|
|
1800
|
-
}], Y: [/[+-]?\d+/,
|
|
1801
|
-
this.year = m(
|
|
1802
|
-
}], YYYY: [/\d{4}/,
|
|
1803
|
-
function R(
|
|
1804
|
-
var _,
|
|
1805
|
-
_ =
|
|
1806
|
-
for (var T = (
|
|
1800
|
+
}], Y: [/[+-]?\d+/, p("year")], YY: [o, function(y) {
|
|
1801
|
+
this.year = m(y);
|
|
1802
|
+
}], YYYY: [/\d{4}/, p("year")], Z: g, ZZ: g };
|
|
1803
|
+
function R(y) {
|
|
1804
|
+
var _, b;
|
|
1805
|
+
_ = y, b = E && E.formats;
|
|
1806
|
+
for (var T = (y = _.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(v, A, C) {
|
|
1807
1807
|
var N = C && C.toUpperCase();
|
|
1808
|
-
return
|
|
1808
|
+
return A || b[C] || u[C] || b[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(f, c, i) {
|
|
1809
1809
|
return c || i.slice(1);
|
|
1810
1810
|
}));
|
|
1811
|
-
}))).match(
|
|
1812
|
-
var L = T[I],
|
|
1811
|
+
}))).match(t), P = T.length, I = 0; I < P; I += 1) {
|
|
1812
|
+
var L = T[I], h = k[L], w = h && h[0], $ = h && h[1];
|
|
1813
1813
|
T[I] = $ ? { regex: w, parser: $ } : L.replace(/^\[|\]$/g, "");
|
|
1814
1814
|
}
|
|
1815
|
-
return function(
|
|
1816
|
-
for (var
|
|
1815
|
+
return function(v) {
|
|
1816
|
+
for (var A = {}, C = 0, N = 0; C < P; C += 1) {
|
|
1817
1817
|
var f = T[C];
|
|
1818
1818
|
if (typeof f == "string") N += f.length;
|
|
1819
1819
|
else {
|
|
1820
|
-
var c = f.regex, i = f.parser, l =
|
|
1821
|
-
i.call(
|
|
1820
|
+
var c = f.regex, i = f.parser, l = v.slice(N), d = c.exec(l)[0];
|
|
1821
|
+
i.call(A, d), v = v.replace(d, "");
|
|
1822
1822
|
}
|
|
1823
1823
|
}
|
|
1824
|
-
return (function(
|
|
1825
|
-
var S =
|
|
1824
|
+
return (function(D) {
|
|
1825
|
+
var S = D.afternoon;
|
|
1826
1826
|
if (S !== void 0) {
|
|
1827
|
-
var x =
|
|
1828
|
-
S ? x < 12 && (
|
|
1827
|
+
var x = D.hours;
|
|
1828
|
+
S ? x < 12 && (D.hours += 12) : x === 12 && (D.hours = 0), delete D.afternoon;
|
|
1829
1829
|
}
|
|
1830
|
-
})(
|
|
1830
|
+
})(A), A;
|
|
1831
1831
|
};
|
|
1832
1832
|
}
|
|
1833
|
-
return function(
|
|
1834
|
-
|
|
1833
|
+
return function(y, _, b) {
|
|
1834
|
+
b.p.customParseFormat = !0, y && y.parseTwoDigitYear && (m = y.parseTwoDigitYear);
|
|
1835
1835
|
var T = _.prototype, P = T.parse;
|
|
1836
1836
|
T.parse = function(I) {
|
|
1837
|
-
var L = I.date,
|
|
1838
|
-
this.$u =
|
|
1837
|
+
var L = I.date, h = I.utc, w = I.args;
|
|
1838
|
+
this.$u = h;
|
|
1839
1839
|
var $ = w[1];
|
|
1840
1840
|
if (typeof $ == "string") {
|
|
1841
|
-
var
|
|
1842
|
-
|
|
1841
|
+
var v = w[2] === !0, A = w[3] === !0, C = v || A, N = w[2];
|
|
1842
|
+
A && (N = w[2]), E = this.$locale(), !v && N && (E = b.Ls[N]), this.$d = (function(l, d, D, S) {
|
|
1843
1843
|
try {
|
|
1844
1844
|
if (["x", "X"].indexOf(d) > -1) return new Date((d === "X" ? 1e3 : 1) * l);
|
|
1845
1845
|
var x = R(d)(l), O = x.year, V = x.month, z = x.day, W = x.hours, U = x.minutes, X = x.seconds, Z = x.milliseconds, q = x.zone, H = x.week, Q = /* @__PURE__ */ new Date(), K = z || (O || V ? 1 : Q.getDate()), j = O || Q.getFullYear(), ue = 0;
|
|
1846
1846
|
O && !V || (ue = V > 0 ? V - 1 : Q.getMonth());
|
|
1847
1847
|
var ne, le = W || 0, se = U || 0, ce = X || 0, oe = Z || 0;
|
|
1848
|
-
return q ? new Date(Date.UTC(j, ue, K, le, se, ce, oe + 60 * q.offset * 1e3)) :
|
|
1848
|
+
return q ? new Date(Date.UTC(j, ue, K, le, se, ce, oe + 60 * q.offset * 1e3)) : D ? new Date(Date.UTC(j, ue, K, le, se, ce, oe)) : (ne = new Date(j, ue, K, le, se, ce, oe), H && (ne = S(ne).week(H).toDate()), ne);
|
|
1849
1849
|
} catch {
|
|
1850
1850
|
return /* @__PURE__ */ new Date("");
|
|
1851
1851
|
}
|
|
1852
|
-
})(L, $,
|
|
1852
|
+
})(L, $, h, b), this.init(), N && N !== !0 && (this.$L = this.locale(N).$L), C && L != this.format($) && (this.$d = /* @__PURE__ */ new Date("")), E = {};
|
|
1853
1853
|
} else if ($ instanceof Array) for (var f = $.length, c = 1; c <= f; c += 1) {
|
|
1854
1854
|
w[1] = $[c - 1];
|
|
1855
|
-
var i =
|
|
1855
|
+
var i = b.apply(this, w);
|
|
1856
1856
|
if (i.isValid()) {
|
|
1857
1857
|
this.$d = i.$d, this.$L = i.$L, this.init();
|
|
1858
1858
|
break;
|
|
@@ -1865,9 +1865,9 @@ function an() {
|
|
|
1865
1865
|
}));
|
|
1866
1866
|
})(Qe)), Qe.exports;
|
|
1867
1867
|
}
|
|
1868
|
-
var
|
|
1869
|
-
const
|
|
1870
|
-
He.extend(
|
|
1868
|
+
var sn = ln();
|
|
1869
|
+
const cn = /* @__PURE__ */ Ku(sn);
|
|
1870
|
+
He.extend(cn);
|
|
1871
1871
|
function Ft(r) {
|
|
1872
1872
|
return !!(r && He(r, "YYYY-MM-DD", !0).isValid());
|
|
1873
1873
|
}
|
|
@@ -1881,8 +1881,8 @@ function cu(r) {
|
|
|
1881
1881
|
return Au(r) ? He(r, "YYYYMMDD", !0).format("YYYY-MM-DD") : r;
|
|
1882
1882
|
}
|
|
1883
1883
|
function Su(r) {
|
|
1884
|
-
const e = r.trim(),
|
|
1885
|
-
return Au(
|
|
1884
|
+
const e = r.trim(), u = e.slice(0, 8);
|
|
1885
|
+
return Au(u) ? cu(u) : e.slice(0, 10);
|
|
1886
1886
|
}
|
|
1887
1887
|
function ft(r, e) {
|
|
1888
1888
|
switch (e) {
|
|
@@ -1906,13 +1906,13 @@ function ft(r, e) {
|
|
|
1906
1906
|
return ae;
|
|
1907
1907
|
}
|
|
1908
1908
|
}
|
|
1909
|
-
function gt(r, e,
|
|
1910
|
-
return e === "npv" ? $u(r?.npv,
|
|
1909
|
+
function gt(r, e, u) {
|
|
1910
|
+
return e === "npv" ? $u(r?.npv, u) : e === "forwardPrice" ? $u(r?.forwardPrice, u, 8) : bu(r?.discountFactor, 4);
|
|
1911
1911
|
}
|
|
1912
|
-
const
|
|
1912
|
+
const dn = ["npv", "forwardPrice", "discountFactor"], mn = {
|
|
1913
1913
|
suppressHeaderMenuButton: !0,
|
|
1914
1914
|
suppressHeaderContextMenu: !0
|
|
1915
|
-
},
|
|
1915
|
+
}, En = {
|
|
1916
1916
|
type: "fitCellContents",
|
|
1917
1917
|
skipHeader: !1,
|
|
1918
1918
|
scaleUpToFitGridWidth: !0,
|
|
@@ -1931,82 +1931,82 @@ const cn = ["npv", "forwardPrice", "discountFactor"], dn = {
|
|
|
1931
1931
|
minWidth: 150,
|
|
1932
1932
|
maxWidth: 190
|
|
1933
1933
|
}]
|
|
1934
|
-
},
|
|
1934
|
+
}, Fn = ({
|
|
1935
1935
|
rowNode: r
|
|
1936
1936
|
}) => r.data?.kind === "error";
|
|
1937
|
-
function
|
|
1937
|
+
function Cn(r) {
|
|
1938
1938
|
const e = Y.c(3), {
|
|
1939
|
-
data:
|
|
1940
|
-
} = r,
|
|
1939
|
+
data: u
|
|
1940
|
+
} = r, t = String(u?.instrumentCode ?? "定价计算失败");
|
|
1941
1941
|
let n;
|
|
1942
1942
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
1943
1943
|
icon: G.gridErrorIcon,
|
|
1944
1944
|
section: G.gridErrorSection
|
|
1945
1945
|
}, e[0] = n) : n = e[0];
|
|
1946
1946
|
let o;
|
|
1947
|
-
return e[1] !==
|
|
1947
|
+
return e[1] !== t ? (o = /* @__PURE__ */ F(Ye, { className: G.gridErrorAlert, classNames: n, type: "error", showIcon: !0, title: /* @__PURE__ */ ke("span", { className: G.gridErrorMessage, title: t, children: [
|
|
1948
1948
|
"计算失败,失败原因:",
|
|
1949
|
-
|
|
1950
|
-
] }) }), e[1] =
|
|
1949
|
+
t
|
|
1950
|
+
] }) }), e[1] = t, e[2] = o) : o = e[2], o;
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1952
|
+
function fn(r) {
|
|
1953
1953
|
const e = Y.c(15), {
|
|
1954
|
-
contract:
|
|
1955
|
-
calculation:
|
|
1954
|
+
contract: u,
|
|
1955
|
+
calculation: t,
|
|
1956
1956
|
loading: n
|
|
1957
1957
|
} = r, o = te(null), a = te(null);
|
|
1958
1958
|
let s;
|
|
1959
|
-
e[0] !==
|
|
1959
|
+
e[0] !== u ? (s = [{
|
|
1960
1960
|
id: "contract",
|
|
1961
1961
|
kind: "contract",
|
|
1962
|
-
...Object.fromEntries(su.map((
|
|
1963
|
-
}], e[0] =
|
|
1962
|
+
...Object.fromEntries(su.map((b) => [b.key, b.kind === "contract" ? ft(u, b.key) : ae]))
|
|
1963
|
+
}], e[0] = u, e[1] = s) : s = e[1];
|
|
1964
1964
|
const E = s;
|
|
1965
1965
|
let m;
|
|
1966
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = su.map(
|
|
1967
|
-
const
|
|
1966
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = su.map(hn), e[2] = m) : m = e[2];
|
|
1967
|
+
const p = m;
|
|
1968
1968
|
let g;
|
|
1969
|
-
e[3] !==
|
|
1970
|
-
const T =
|
|
1969
|
+
e[3] !== t || e[4] !== u.currency ? (g = (b) => {
|
|
1970
|
+
const T = b.getRowNode("contract"), P = T?.data ? {
|
|
1971
1971
|
...T.data
|
|
1972
1972
|
} : null;
|
|
1973
|
-
if (
|
|
1974
|
-
const L =
|
|
1973
|
+
if (dn.forEach((I) => {
|
|
1974
|
+
const L = t?.status === "success" ? gt(t.result, I, u.currency) : ae;
|
|
1975
1975
|
T?.setDataValue(I, L), P && (P[I] = L);
|
|
1976
|
-
}), T && P && T.setData(P), a.current && (
|
|
1976
|
+
}), T && P && T.setData(P), a.current && (b.applyTransaction({
|
|
1977
1977
|
remove: [a.current]
|
|
1978
|
-
}), a.current = null),
|
|
1978
|
+
}), a.current = null), t?.status === "error") {
|
|
1979
1979
|
const I = {
|
|
1980
1980
|
id: "error",
|
|
1981
1981
|
kind: "error",
|
|
1982
|
-
instrumentCode:
|
|
1982
|
+
instrumentCode: t.message ?? "定价计算失败"
|
|
1983
1983
|
};
|
|
1984
|
-
|
|
1984
|
+
b.applyTransaction({
|
|
1985
1985
|
add: [I]
|
|
1986
1986
|
}), a.current = I;
|
|
1987
1987
|
}
|
|
1988
|
-
|
|
1989
|
-
}, e[3] =
|
|
1988
|
+
b.resetRowHeights();
|
|
1989
|
+
}, e[3] = t, e[4] = u.currency, e[5] = g) : g = e[5];
|
|
1990
1990
|
const M = g;
|
|
1991
|
-
let
|
|
1992
|
-
e[6] !== M ? (
|
|
1991
|
+
let B, k;
|
|
1992
|
+
e[6] !== M ? (B = () => {
|
|
1993
1993
|
o.current && M(o.current);
|
|
1994
|
-
}, k = [M], e[6] = M, e[7] =
|
|
1994
|
+
}, k = [M], e[6] = M, e[7] = B, e[8] = k) : (B = e[7], k = e[8]), pe(B, k);
|
|
1995
1995
|
let R;
|
|
1996
|
-
e[9] !== M ? (R = (
|
|
1997
|
-
o.current =
|
|
1996
|
+
e[9] !== M ? (R = (b) => {
|
|
1997
|
+
o.current = b.api, M(b.api);
|
|
1998
1998
|
}, e[9] = M, e[10] = R) : R = e[10];
|
|
1999
|
-
const
|
|
1999
|
+
const y = R;
|
|
2000
2000
|
let _;
|
|
2001
|
-
return e[11] !== n || e[12] !==
|
|
2001
|
+
return e[11] !== n || e[12] !== y || e[13] !== E ? (_ = /* @__PURE__ */ F("div", { className: G.fixedGrid, "aria-label": "单笔合约定价结果", children: /* @__PURE__ */ F(Bu, { rowData: E, columnDefs: p, defaultColDef: mn, onGridReady: y, getRowId: pn, isFullWidthRow: Fn, fullWidthCellRenderer: Cn, getRowHeight: gn, headerHeight: 32, rowHeight: 32, autoSizeStrategy: En, autoSizePadding: 16, suppressColumnVirtualisation: !0, tooltipShowMode: "whenTruncated", tooltipShowDelay: 0, domLayout: "autoHeight", pagination: !1, loading: n, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }) }), e[11] = n, e[12] = y, e[13] = E, e[14] = _) : _ = e[14], _;
|
|
2002
2002
|
}
|
|
2003
|
-
function
|
|
2003
|
+
function gn(r) {
|
|
2004
2004
|
return r.data?.kind === "error" ? 28 : 32;
|
|
2005
2005
|
}
|
|
2006
|
-
function
|
|
2006
|
+
function pn(r) {
|
|
2007
2007
|
return r.data.id;
|
|
2008
2008
|
}
|
|
2009
|
-
function
|
|
2009
|
+
function hn(r) {
|
|
2010
2010
|
return {
|
|
2011
2011
|
field: r.key,
|
|
2012
2012
|
colId: r.key,
|
|
@@ -2021,12 +2021,12 @@ function pn(r) {
|
|
|
2021
2021
|
};
|
|
2022
2022
|
}
|
|
2023
2023
|
const Tu = ee((r, e) => {
|
|
2024
|
-
const
|
|
2025
|
-
let
|
|
2026
|
-
return
|
|
2024
|
+
const u = Y.c(3);
|
|
2025
|
+
let t;
|
|
2026
|
+
return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ F(Zt, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
|
|
2027
2027
|
});
|
|
2028
2028
|
Tu.displayName = "GZTooltip";
|
|
2029
|
-
const
|
|
2029
|
+
const vn = ["npv", "forwardPrice", "discountFactor"], Dn = {
|
|
2030
2030
|
suppressHeaderMenuButton: !0,
|
|
2031
2031
|
suppressHeaderContextMenu: !0
|
|
2032
2032
|
}, Pu = {
|
|
@@ -2036,43 +2036,43 @@ const hn = ["npv", "forwardPrice", "discountFactor"], vn = {
|
|
|
2036
2036
|
function Ke(r) {
|
|
2037
2037
|
return !!(r && typeof r == "object" && "kind" in r);
|
|
2038
2038
|
}
|
|
2039
|
-
function
|
|
2039
|
+
function Bn(r) {
|
|
2040
2040
|
const e = Y.c(32), {
|
|
2041
|
-
single:
|
|
2042
|
-
contracts:
|
|
2041
|
+
single: u,
|
|
2042
|
+
contracts: t,
|
|
2043
2043
|
results: n,
|
|
2044
2044
|
loading: o
|
|
2045
|
-
} = r, a =
|
|
2045
|
+
} = r, a = u === void 0 ? !1 : u, s = te(null), E = a ? cr : su;
|
|
2046
2046
|
let m;
|
|
2047
|
-
if (e[0] !==
|
|
2048
|
-
let
|
|
2049
|
-
e[3] !==
|
|
2047
|
+
if (e[0] !== t || e[1] !== E) {
|
|
2048
|
+
let A;
|
|
2049
|
+
e[3] !== t ? (A = (C) => ({
|
|
2050
2050
|
id: C.key,
|
|
2051
2051
|
label: C.label,
|
|
2052
2052
|
kind: C.kind,
|
|
2053
|
-
...Object.fromEntries(
|
|
2054
|
-
}), e[3] =
|
|
2053
|
+
...Object.fromEntries(t.map((N) => [N.contractId, C.kind === "contract" ? ft(N, C.key) : Pu]))
|
|
2054
|
+
}), e[3] = t, e[4] = A) : A = e[4], m = E.map(A), e[0] = t, e[1] = E, e[2] = m;
|
|
2055
2055
|
} else
|
|
2056
2056
|
m = e[2];
|
|
2057
|
-
const
|
|
2057
|
+
const p = m, g = a ? "" : "字段", M = a ? 160 : 180, B = a ? 160 : 180;
|
|
2058
2058
|
let k;
|
|
2059
|
-
e[5] !== g || e[6] !== M || e[7] !==
|
|
2059
|
+
e[5] !== g || e[6] !== M || e[7] !== B ? (k = {
|
|
2060
2060
|
field: "label",
|
|
2061
2061
|
colId: "field",
|
|
2062
2062
|
headerName: g,
|
|
2063
2063
|
pinned: "left",
|
|
2064
2064
|
lockPinned: !0,
|
|
2065
2065
|
width: M,
|
|
2066
|
-
minWidth:
|
|
2066
|
+
minWidth: B,
|
|
2067
2067
|
sortable: !1,
|
|
2068
2068
|
resizable: !1,
|
|
2069
2069
|
suppressMovable: !0,
|
|
2070
2070
|
cellClass: G.fieldCell
|
|
2071
|
-
}, e[5] = g, e[6] = M, e[7] =
|
|
2071
|
+
}, e[5] = g, e[6] = M, e[7] = B, e[8] = k) : k = e[8];
|
|
2072
2072
|
let R;
|
|
2073
|
-
if (e[9] !==
|
|
2074
|
-
let
|
|
2075
|
-
e[13] !== a ? (
|
|
2073
|
+
if (e[9] !== t || e[10] !== a || e[11] !== k) {
|
|
2074
|
+
let A;
|
|
2075
|
+
e[13] !== a ? (A = (C, N) => ({
|
|
2076
2076
|
field: C.contractId,
|
|
2077
2077
|
colId: C.contractId,
|
|
2078
2078
|
headerName: String(N + 1).padStart(3, "0"),
|
|
@@ -2083,23 +2083,23 @@ function Dn(r) {
|
|
|
2083
2083
|
sortable: !1,
|
|
2084
2084
|
resizable: !1,
|
|
2085
2085
|
suppressMovable: !0,
|
|
2086
|
-
spanRows:
|
|
2087
|
-
cellClass:
|
|
2088
|
-
cellRenderer:
|
|
2089
|
-
}), e[13] = a, e[14] =
|
|
2086
|
+
spanRows: Sn,
|
|
2087
|
+
cellClass: An,
|
|
2088
|
+
cellRenderer: bn
|
|
2089
|
+
}), e[13] = a, e[14] = A) : A = e[14], R = [k, ...t.map(A)], e[9] = t, e[10] = a, e[11] = k, e[12] = R;
|
|
2090
2090
|
} else
|
|
2091
2091
|
R = e[12];
|
|
2092
|
-
const
|
|
2092
|
+
const y = R;
|
|
2093
2093
|
let _;
|
|
2094
|
-
e[15] !==
|
|
2095
|
-
|
|
2096
|
-
const N =
|
|
2094
|
+
e[15] !== t || e[16] !== n ? (_ = (A) => {
|
|
2095
|
+
vn.forEach((C) => {
|
|
2096
|
+
const N = A.getRowNode(C);
|
|
2097
2097
|
if (!N?.data)
|
|
2098
2098
|
return;
|
|
2099
2099
|
const f = {
|
|
2100
2100
|
...N.data
|
|
2101
2101
|
};
|
|
2102
|
-
|
|
2102
|
+
t.forEach((c) => {
|
|
2103
2103
|
const i = n[c.contractId];
|
|
2104
2104
|
let l = Pu;
|
|
2105
2105
|
i?.status === "success" ? l = {
|
|
@@ -2111,92 +2111,92 @@ function Dn(r) {
|
|
|
2111
2111
|
display: i.message ?? "定价计算失败"
|
|
2112
2112
|
}), N.setDataValue(c.contractId, l), f[c.contractId] = l;
|
|
2113
2113
|
}), N.setData(f);
|
|
2114
|
-
}),
|
|
2114
|
+
}), A.refreshCells({
|
|
2115
2115
|
force: !0
|
|
2116
|
-
}),
|
|
2117
|
-
}, e[15] =
|
|
2118
|
-
const
|
|
2116
|
+
}), A.resetRowHeights();
|
|
2117
|
+
}, e[15] = t, e[16] = n, e[17] = _) : _ = e[17];
|
|
2118
|
+
const b = _;
|
|
2119
2119
|
let T, P;
|
|
2120
|
-
e[18] !==
|
|
2121
|
-
s.current &&
|
|
2122
|
-
}, P = [
|
|
2120
|
+
e[18] !== b ? (T = () => {
|
|
2121
|
+
s.current && b(s.current);
|
|
2122
|
+
}, P = [b], e[18] = b, e[19] = T, e[20] = P) : (T = e[19], P = e[20]), pe(T, P);
|
|
2123
2123
|
let I;
|
|
2124
|
-
e[21] !==
|
|
2125
|
-
s.current =
|
|
2126
|
-
}, e[21] =
|
|
2127
|
-
const L = I,
|
|
2124
|
+
e[21] !== b ? (I = (A) => {
|
|
2125
|
+
s.current = A.api, b(A.api);
|
|
2126
|
+
}, e[21] = b, e[22] = I) : I = e[22];
|
|
2127
|
+
const L = I, h = `${G.multipleGrid}${a ? ` ${G.singleGrid}` : ""}`, w = a ? "单笔合约定价结果" : "多笔合约定价结果";
|
|
2128
2128
|
let $;
|
|
2129
|
-
e[23] !==
|
|
2130
|
-
let
|
|
2131
|
-
return e[28] !==
|
|
2129
|
+
e[23] !== y || e[24] !== o || e[25] !== L || e[26] !== p ? ($ = /* @__PURE__ */ F(Bu, { rowData: p, columnDefs: y, defaultColDef: Dn, onGridReady: L, getRowId: yn, headerHeight: 32, rowHeight: 28, domLayout: "autoHeight", pagination: !1, loading: o, enableCellSpan: !0, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }), e[23] = y, e[24] = o, e[25] = L, e[26] = p, e[27] = $) : $ = e[27];
|
|
2130
|
+
let v;
|
|
2131
|
+
return e[28] !== h || e[29] !== w || e[30] !== $ ? (v = /* @__PURE__ */ F("div", { className: h, "aria-label": w, children: $ }), e[28] = h, e[29] = w, e[30] = $, e[31] = v) : v = e[31], v;
|
|
2132
2132
|
}
|
|
2133
|
-
function
|
|
2133
|
+
function yn(r) {
|
|
2134
2134
|
return r.data.id;
|
|
2135
2135
|
}
|
|
2136
|
-
function
|
|
2137
|
-
const e = r.data?.id,
|
|
2138
|
-
if (Ke(
|
|
2139
|
-
if (
|
|
2140
|
-
const
|
|
2141
|
-
return /* @__PURE__ */ F(Tu, { title:
|
|
2136
|
+
function bn(r) {
|
|
2137
|
+
const e = r.data?.id, u = r.value;
|
|
2138
|
+
if (Ke(u)) {
|
|
2139
|
+
if (u.kind === "error") {
|
|
2140
|
+
const t = `计算失败,失败原因:${u.display}`;
|
|
2141
|
+
return /* @__PURE__ */ F(Tu, { title: t, children: /* @__PURE__ */ F("div", { className: G.mergedErrorCell, children: /* @__PURE__ */ F("span", { className: G.mergedErrorText, children: t }) }) });
|
|
2142
2142
|
}
|
|
2143
|
-
return /* @__PURE__ */ F(mt, { value:
|
|
2143
|
+
return /* @__PURE__ */ F(mt, { value: u.display, rawValue: u.rawValue });
|
|
2144
2144
|
}
|
|
2145
|
-
return e ? /* @__PURE__ */ F(Et, { field: e, value: String(
|
|
2145
|
+
return e ? /* @__PURE__ */ F(Et, { field: e, value: String(u ?? ae) }) : null;
|
|
2146
2146
|
}
|
|
2147
|
-
function
|
|
2147
|
+
function An(r) {
|
|
2148
2148
|
return Ke(r.value) && r.value.kind === "error" ? G.mergedErrorGridCell : void 0;
|
|
2149
2149
|
}
|
|
2150
|
-
function
|
|
2151
|
-
const e = r.valueA,
|
|
2152
|
-
return Ke(e) && Ke(
|
|
2150
|
+
function Sn(r) {
|
|
2151
|
+
const e = r.valueA, u = r.valueB;
|
|
2152
|
+
return Ke(e) && Ke(u) && e.kind === "error" && u.kind === "error" && e.display === u.display;
|
|
2153
2153
|
}
|
|
2154
2154
|
const pt = ee((r, e) => {
|
|
2155
|
-
const
|
|
2156
|
-
let
|
|
2157
|
-
return
|
|
2155
|
+
const u = Y.c(3);
|
|
2156
|
+
let t;
|
|
2157
|
+
return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ F(Re.MonthPicker, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
|
|
2158
2158
|
});
|
|
2159
2159
|
pt.displayName = "GZMonthPicker";
|
|
2160
2160
|
const ht = ee((r, e) => {
|
|
2161
|
-
const
|
|
2162
|
-
let
|
|
2163
|
-
return
|
|
2161
|
+
const u = Y.c(3);
|
|
2162
|
+
let t;
|
|
2163
|
+
return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ F(Re.QuarterPicker, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
|
|
2164
2164
|
});
|
|
2165
2165
|
ht.displayName = "GZQuarterPicker";
|
|
2166
2166
|
const vt = ee((r, e) => {
|
|
2167
|
-
const
|
|
2168
|
-
let
|
|
2169
|
-
|
|
2170
|
-
children:
|
|
2167
|
+
const u = Y.c(7);
|
|
2168
|
+
let t, n;
|
|
2169
|
+
u[0] !== r ? ({
|
|
2170
|
+
children: t,
|
|
2171
2171
|
...n
|
|
2172
|
-
} = r,
|
|
2172
|
+
} = r, u[0] = r, u[1] = t, u[2] = n) : (t = u[1], n = u[2]);
|
|
2173
2173
|
let o;
|
|
2174
|
-
return
|
|
2174
|
+
return u[3] !== t || u[4] !== e || u[5] !== n ? (o = /* @__PURE__ */ F(Re.RangePicker, { ref: e, ...n, children: t }), u[3] = t, u[4] = e, u[5] = n, u[6] = o) : o = u[6], o;
|
|
2175
2175
|
});
|
|
2176
2176
|
vt.displayName = "GZRangePicker";
|
|
2177
2177
|
const Dt = ee((r, e) => {
|
|
2178
|
-
const
|
|
2179
|
-
let
|
|
2180
|
-
return
|
|
2178
|
+
const u = Y.c(3);
|
|
2179
|
+
let t;
|
|
2180
|
+
return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ F(Re.TimePicker, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
|
|
2181
2181
|
});
|
|
2182
2182
|
Dt.displayName = "GZTimePicker";
|
|
2183
2183
|
const Bt = ee((r, e) => {
|
|
2184
|
-
const
|
|
2185
|
-
let
|
|
2186
|
-
return
|
|
2184
|
+
const u = Y.c(3);
|
|
2185
|
+
let t;
|
|
2186
|
+
return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ F(Re.WeekPicker, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
|
|
2187
2187
|
});
|
|
2188
2188
|
Bt.displayName = "GZWeekPicker";
|
|
2189
2189
|
const yt = ee((r, e) => {
|
|
2190
|
-
const
|
|
2191
|
-
let
|
|
2192
|
-
return
|
|
2190
|
+
const u = Y.c(3);
|
|
2191
|
+
let t;
|
|
2192
|
+
return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ F(Re.YearPicker, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
|
|
2193
2193
|
});
|
|
2194
2194
|
yt.displayName = "GZYearPicker";
|
|
2195
|
-
const
|
|
2196
|
-
const
|
|
2197
|
-
let
|
|
2198
|
-
return
|
|
2199
|
-
}), _e =
|
|
2195
|
+
const Tn = ee((r, e) => {
|
|
2196
|
+
const u = Y.c(3);
|
|
2197
|
+
let t;
|
|
2198
|
+
return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ F(Re, { format: "YYYY-MM-DD", ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
|
|
2199
|
+
}), _e = Tn;
|
|
2200
2200
|
_e.RangePicker = vt;
|
|
2201
2201
|
_e.WeekPicker = Bt;
|
|
2202
2202
|
_e.MonthPicker = pt;
|
|
@@ -2205,45 +2205,56 @@ _e.QuarterPicker = ht;
|
|
|
2205
2205
|
_e.TimePicker = Dt;
|
|
2206
2206
|
_e.displayName = "GZDatePicker";
|
|
2207
2207
|
const bt = ee((r, e) => {
|
|
2208
|
-
const
|
|
2209
|
-
let
|
|
2210
|
-
|
|
2211
|
-
children:
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2208
|
+
const u = Y.c(13);
|
|
2209
|
+
let t, n, o;
|
|
2210
|
+
u[0] !== r ? ({
|
|
2211
|
+
children: t,
|
|
2212
|
+
itemBottomSpace: n,
|
|
2213
|
+
...o
|
|
2214
|
+
} = r, u[0] = r, u[1] = t, u[2] = n, u[3] = o) : (t = u[1], n = u[2], o = u[3]);
|
|
2215
2215
|
let a;
|
|
2216
|
-
|
|
2216
|
+
u[4] !== n ? (a = n === void 0 ? void 0 : {
|
|
2217
|
+
components: {
|
|
2218
|
+
Form: {
|
|
2219
|
+
itemMarginBottom: n
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
}, u[4] = n, u[5] = a) : a = u[5];
|
|
2223
|
+
const s = a, E = o;
|
|
2224
|
+
let m;
|
|
2225
|
+
u[6] !== t || u[7] !== e || u[8] !== E ? (m = /* @__PURE__ */ F(Me, { ref: e, ...E, children: t }), u[6] = t, u[7] = e, u[8] = E, u[9] = m) : m = u[9];
|
|
2226
|
+
let p;
|
|
2227
|
+
return u[10] !== m || u[11] !== s ? (p = /* @__PURE__ */ F(qt, { theme: s, children: m }), u[10] = m, u[11] = s, u[12] = p) : p = u[12], p;
|
|
2217
2228
|
});
|
|
2218
2229
|
bt.displayName = "GZForm";
|
|
2219
2230
|
const At = (r) => {
|
|
2220
2231
|
const e = Y.c(6);
|
|
2221
|
-
let
|
|
2232
|
+
let u, t;
|
|
2222
2233
|
e[0] !== r ? ({
|
|
2223
|
-
children:
|
|
2224
|
-
...
|
|
2225
|
-
} = r, e[0] = r, e[1] =
|
|
2226
|
-
const n =
|
|
2234
|
+
children: u,
|
|
2235
|
+
...t
|
|
2236
|
+
} = r, e[0] = r, e[1] = u, e[2] = t) : (u = e[1], t = e[2]);
|
|
2237
|
+
const n = t;
|
|
2227
2238
|
let o;
|
|
2228
|
-
return e[3] !==
|
|
2239
|
+
return e[3] !== u || e[4] !== n ? (o = /* @__PURE__ */ F(Me.Item, { ...n, children: u }), e[3] = u, e[4] = n, e[5] = o) : o = e[5], o;
|
|
2229
2240
|
};
|
|
2230
2241
|
At.displayName = "GZFormItem";
|
|
2231
2242
|
const St = (r) => {
|
|
2232
2243
|
const e = Y.c(2);
|
|
2233
|
-
let
|
|
2234
|
-
return e[0] !== r ? (
|
|
2244
|
+
let u;
|
|
2245
|
+
return e[0] !== r ? (u = /* @__PURE__ */ F(Me.List, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
|
|
2235
2246
|
};
|
|
2236
2247
|
St.displayName = "GZFormList";
|
|
2237
2248
|
const Tt = (r) => {
|
|
2238
2249
|
const e = Y.c(2);
|
|
2239
|
-
let
|
|
2240
|
-
return e[0] !== r ? (
|
|
2250
|
+
let u;
|
|
2251
|
+
return e[0] !== r ? (u = /* @__PURE__ */ F(Me.ErrorList, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
|
|
2241
2252
|
};
|
|
2242
2253
|
Tt.displayName = "GZErrorList";
|
|
2243
2254
|
const xt = (r) => {
|
|
2244
2255
|
const e = Y.c(2);
|
|
2245
|
-
let
|
|
2246
|
-
return e[0] !== r ? (
|
|
2256
|
+
let u;
|
|
2257
|
+
return e[0] !== r ? (u = /* @__PURE__ */ F(Me.Provider, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
|
|
2247
2258
|
};
|
|
2248
2259
|
xt.displayName = "GZFormProvider";
|
|
2249
2260
|
const De = bt;
|
|
@@ -2255,65 +2266,65 @@ De.useForm = Me.useForm;
|
|
|
2255
2266
|
De.useFormInstance = Me.useFormInstance;
|
|
2256
2267
|
De.useWatch = Me.useWatch;
|
|
2257
2268
|
const kt = ee((r, e) => {
|
|
2258
|
-
const
|
|
2259
|
-
let
|
|
2260
|
-
|
|
2261
|
-
children:
|
|
2269
|
+
const u = Y.c(7);
|
|
2270
|
+
let t, n;
|
|
2271
|
+
u[0] !== r ? ({
|
|
2272
|
+
children: t,
|
|
2262
2273
|
...n
|
|
2263
|
-
} = r,
|
|
2274
|
+
} = r, u[0] = r, u[1] = t, u[2] = n) : (t = u[1], n = u[2]);
|
|
2264
2275
|
const o = e;
|
|
2265
2276
|
let a;
|
|
2266
|
-
return
|
|
2277
|
+
return u[3] !== t || u[4] !== n || u[5] !== o ? (a = /* @__PURE__ */ F(Cu.Option, { ref: o, ...n, children: t }), u[3] = t, u[4] = n, u[5] = o, u[6] = a) : a = u[6], a;
|
|
2267
2278
|
});
|
|
2268
2279
|
kt.displayName = "GZSelectOption";
|
|
2269
2280
|
const wt = ee((r, e) => {
|
|
2270
|
-
const
|
|
2271
|
-
let
|
|
2272
|
-
|
|
2273
|
-
children:
|
|
2281
|
+
const u = Y.c(7);
|
|
2282
|
+
let t, n;
|
|
2283
|
+
u[0] !== r ? ({
|
|
2284
|
+
children: t,
|
|
2274
2285
|
...n
|
|
2275
|
-
} = r,
|
|
2286
|
+
} = r, u[0] = r, u[1] = t, u[2] = n) : (t = u[1], n = u[2]);
|
|
2276
2287
|
const o = e;
|
|
2277
2288
|
let a;
|
|
2278
|
-
return
|
|
2289
|
+
return u[3] !== t || u[4] !== n || u[5] !== o ? (a = /* @__PURE__ */ F(Cu.OptGroup, { ref: o, ...n, children: t }), u[3] = t, u[4] = n, u[5] = o, u[6] = a) : a = u[6], a;
|
|
2279
2290
|
});
|
|
2280
2291
|
wt.displayName = "GZSelectOptGroup";
|
|
2281
|
-
const
|
|
2282
|
-
const
|
|
2292
|
+
const xn = ee((r, e) => {
|
|
2293
|
+
const u = Y.c(3), t = e;
|
|
2283
2294
|
let n;
|
|
2284
|
-
return
|
|
2285
|
-
}), Ne =
|
|
2295
|
+
return u[0] !== r || u[1] !== t ? (n = /* @__PURE__ */ F(Cu, { ref: t, ...r }), u[0] = r, u[1] = t, u[2] = n) : n = u[2], n;
|
|
2296
|
+
}), Ne = xn;
|
|
2286
2297
|
Ne.Option = kt;
|
|
2287
2298
|
Ne.OptGroup = wt;
|
|
2288
2299
|
Ne.displayName = "GZSelect";
|
|
2289
2300
|
function Lu(r, e) {
|
|
2290
2301
|
if (r?.source !== "custom" || !e) return;
|
|
2291
|
-
const
|
|
2292
|
-
return !
|
|
2302
|
+
const u = r.executeDay ? Su(r.executeDay) : void 0;
|
|
2303
|
+
return !u || u !== e ? "曲线日与估值日非同一日" : void 0;
|
|
2293
2304
|
}
|
|
2294
|
-
function
|
|
2305
|
+
function kn(r) {
|
|
2295
2306
|
const e = {};
|
|
2296
|
-
return Object.keys(_u).forEach((
|
|
2297
|
-
r[
|
|
2307
|
+
return Object.keys(_u).forEach((u) => {
|
|
2308
|
+
r[u] || (e[u] = [_u[u]]);
|
|
2298
2309
|
}), r.valuationDate && !Ft(r.valuationDate) && (e.valuationDate = ["估值日格式必须为 YYYY-MM-DD"]), e;
|
|
2299
2310
|
}
|
|
2300
|
-
function
|
|
2311
|
+
function wn(r, e) {
|
|
2301
2312
|
if (!r || !Ft(r) || e.length === 0)
|
|
2302
2313
|
return {
|
|
2303
2314
|
latestSettlementDate: null,
|
|
2304
2315
|
valid: !0,
|
|
2305
2316
|
message: null
|
|
2306
2317
|
};
|
|
2307
|
-
const
|
|
2308
|
-
if (
|
|
2318
|
+
const u = e.map((o) => o.settleDate);
|
|
2319
|
+
if (u.some((o) => !Au(o)))
|
|
2309
2320
|
return {
|
|
2310
2321
|
latestSettlementDate: null,
|
|
2311
2322
|
valid: !0,
|
|
2312
2323
|
message: null
|
|
2313
2324
|
};
|
|
2314
|
-
const
|
|
2325
|
+
const t = u.reduce((o, a) => a > o ? a : o), n = Ct(r) <= t;
|
|
2315
2326
|
return {
|
|
2316
|
-
latestSettlementDate:
|
|
2327
|
+
latestSettlementDate: t,
|
|
2317
2328
|
valid: n,
|
|
2318
2329
|
message: n ? null : "估值日必须小于或等于所选合约最久的结算支付日"
|
|
2319
2330
|
};
|
|
@@ -2324,8 +2335,8 @@ function Ze(r) {
|
|
|
2324
2335
|
help: r?.join(";")
|
|
2325
2336
|
};
|
|
2326
2337
|
}
|
|
2327
|
-
function Mt(r, e,
|
|
2328
|
-
return r && e ? `${r}(${e})` : r || e ||
|
|
2338
|
+
function Mt(r, e, u = "") {
|
|
2339
|
+
return r && e ? `${r}(${e})` : r || e || u;
|
|
2329
2340
|
}
|
|
2330
2341
|
function du(r) {
|
|
2331
2342
|
if (!r) return "";
|
|
@@ -2334,36 +2345,36 @@ function du(r) {
|
|
|
2334
2345
|
}
|
|
2335
2346
|
function qe(r) {
|
|
2336
2347
|
const e = Y.c(7), {
|
|
2337
|
-
text:
|
|
2338
|
-
} = r,
|
|
2348
|
+
text: u
|
|
2349
|
+
} = r, t = te(null), [n, o] = Oe(!1);
|
|
2339
2350
|
let a;
|
|
2340
2351
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = (m) => {
|
|
2341
|
-
const
|
|
2352
|
+
const p = t.current, g = !!(p && p.scrollWidth > p.clientWidth);
|
|
2342
2353
|
o(m && g);
|
|
2343
2354
|
}, e[0] = a) : a = e[0];
|
|
2344
2355
|
let s;
|
|
2345
|
-
e[1] !==
|
|
2356
|
+
e[1] !== u ? (s = /* @__PURE__ */ F("span", { ref: t, className: G.contextFormLabelText, children: u }), e[1] = u, e[2] = s) : s = e[2];
|
|
2346
2357
|
let E;
|
|
2347
|
-
return e[3] !== s || e[4] !==
|
|
2358
|
+
return e[3] !== s || e[4] !== u || e[5] !== n ? (E = /* @__PURE__ */ F(Tu, { title: u, open: n, onOpenChange: a, children: s }), e[3] = s, e[4] = u, e[5] = n, e[6] = E) : E = e[6], E;
|
|
2348
2359
|
}
|
|
2349
|
-
function
|
|
2360
|
+
function Mn(r) {
|
|
2350
2361
|
const e = Y.c(110), {
|
|
2351
|
-
mode:
|
|
2352
|
-
layout:
|
|
2362
|
+
mode: u,
|
|
2363
|
+
layout: t,
|
|
2353
2364
|
value: n,
|
|
2354
2365
|
errors: o,
|
|
2355
2366
|
environments: a,
|
|
2356
2367
|
discountCurves: s,
|
|
2357
2368
|
carbonForwardCurves: E,
|
|
2358
2369
|
environmentsLoading: m,
|
|
2359
|
-
curvesLoading:
|
|
2370
|
+
curvesLoading: p,
|
|
2360
2371
|
curvesDisabled: g,
|
|
2361
2372
|
disabled: M,
|
|
2362
|
-
onChange:
|
|
2363
|
-
} = r, k =
|
|
2373
|
+
onChange: B
|
|
2374
|
+
} = r, k = u === "single" && t === "vertical", R = u === "single" && t === "horizontal", y = u === "multiple" ? G.multiple : k ? G.single : G.fixedSingle;
|
|
2364
2375
|
let _;
|
|
2365
|
-
e[0] !== a ? (_ = a.map(
|
|
2366
|
-
const
|
|
2376
|
+
e[0] !== a ? (_ = a.map(In), e[0] = a, e[1] = _) : _ = e[1];
|
|
2377
|
+
const b = _, T = _n;
|
|
2367
2378
|
let P;
|
|
2368
2379
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
|
|
2369
2380
|
popup: {
|
|
@@ -2384,28 +2395,28 @@ function wn(r) {
|
|
|
2384
2395
|
}
|
|
2385
2396
|
}
|
|
2386
2397
|
}, e[3] = I, e[4] = L) : L = e[4];
|
|
2387
|
-
const
|
|
2398
|
+
const h = L;
|
|
2388
2399
|
let w;
|
|
2389
2400
|
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ F(qe, { text: "碳金融远期价格曲线" }), e[5] = w) : w = e[5];
|
|
2390
2401
|
let $;
|
|
2391
2402
|
e[6] !== n.carbonForwardCurve || e[7] !== n.valuationDate ? ($ = Lu(n.carbonForwardCurve, n.valuationDate), e[6] = n.carbonForwardCurve, e[7] = n.valuationDate, e[8] = $) : $ = e[8];
|
|
2392
|
-
let
|
|
2393
|
-
e[9] !== o.carbonForwardCurve ? (
|
|
2394
|
-
const
|
|
2403
|
+
let v;
|
|
2404
|
+
e[9] !== o.carbonForwardCurve ? (v = Ze(o.carbonForwardCurve), e[9] = o.carbonForwardCurve, e[10] = v) : v = e[10];
|
|
2405
|
+
const A = M || g;
|
|
2395
2406
|
let C;
|
|
2396
2407
|
e[11] !== E ? (C = T(E), e[11] = E, e[12] = C) : C = e[12];
|
|
2397
2408
|
const N = n.carbonForwardCurve?.key;
|
|
2398
2409
|
let f;
|
|
2399
2410
|
e[13] !== n.carbonForwardCurve ? (f = () => du(n.carbonForwardCurve), e[13] = n.carbonForwardCurve, e[14] = f) : f = e[14];
|
|
2400
2411
|
let c;
|
|
2401
|
-
e[15] !== E || e[16] !==
|
|
2412
|
+
e[15] !== E || e[16] !== B ? (c = (J) => B("carbonForwardCurve", E.find((Ae) => Ae.key === J) ?? null), e[15] = E, e[16] = B, e[17] = c) : c = e[17];
|
|
2402
2413
|
let i;
|
|
2403
|
-
e[18] !==
|
|
2414
|
+
e[18] !== B ? (i = () => B("carbonForwardCurve", null), e[18] = B, e[19] = i) : i = e[19];
|
|
2404
2415
|
let l;
|
|
2405
|
-
e[20] !==
|
|
2416
|
+
e[20] !== p || e[21] !== h || e[22] !== f || e[23] !== c || e[24] !== i || e[25] !== A || e[26] !== C || e[27] !== N ? (l = /* @__PURE__ */ F(Ne, { ...h, "aria-label": "碳金融远期价格曲线", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: p, disabled: A, placeholder: "请选择碳金融远期价格曲线", options: C, value: N, labelRender: f, onChange: c, onClear: i }), e[20] = p, e[21] = h, e[22] = f, e[23] = c, e[24] = i, e[25] = A, e[26] = C, e[27] = N, e[28] = l) : l = e[28];
|
|
2406
2417
|
let d;
|
|
2407
|
-
e[29] !== l || e[30] !== $ || e[31] !==
|
|
2408
|
-
const
|
|
2418
|
+
e[29] !== l || e[30] !== $ || e[31] !== v ? (d = /* @__PURE__ */ F(De.Item, { className: G.contextFormItem, label: w, required: !0, extra: $, ...v, children: l }), e[29] = l, e[30] = $, e[31] = v, e[32] = d) : d = e[32];
|
|
2419
|
+
const D = d;
|
|
2409
2420
|
let S;
|
|
2410
2421
|
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ F(qe, { text: "无风险利率曲线" }), e[33] = S) : S = e[33];
|
|
2411
2422
|
let x;
|
|
@@ -2419,11 +2430,11 @@ function wn(r) {
|
|
|
2419
2430
|
let U;
|
|
2420
2431
|
e[41] !== n.discountCurve ? (U = () => du(n.discountCurve), e[41] = n.discountCurve, e[42] = U) : U = e[42];
|
|
2421
2432
|
let X;
|
|
2422
|
-
e[43] !== s || e[44] !==
|
|
2433
|
+
e[43] !== s || e[44] !== B ? (X = (J) => B("discountCurve", s.find((Ae) => Ae.key === J) ?? null), e[43] = s, e[44] = B, e[45] = X) : X = e[45];
|
|
2423
2434
|
let Z;
|
|
2424
|
-
e[46] !==
|
|
2435
|
+
e[46] !== B ? (Z = () => B("discountCurve", null), e[46] = B, e[47] = Z) : Z = e[47];
|
|
2425
2436
|
let q;
|
|
2426
|
-
e[48] !==
|
|
2437
|
+
e[48] !== p || e[49] !== h || e[50] !== V || e[51] !== z || e[52] !== W || e[53] !== U || e[54] !== X || e[55] !== Z ? (q = /* @__PURE__ */ F(Ne, { ...h, "aria-label": "无风险利率曲线", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: p, disabled: V, placeholder: "请选择无风险利率曲线", options: z, value: W, labelRender: U, onChange: X, onClear: Z }), e[48] = p, e[49] = h, e[50] = V, e[51] = z, e[52] = W, e[53] = U, e[54] = X, e[55] = Z, e[56] = q) : q = e[56];
|
|
2427
2438
|
let H;
|
|
2428
2439
|
e[57] !== x || e[58] !== O || e[59] !== q ? (H = /* @__PURE__ */ F(De.Item, { className: G.contextFormItem, label: S, required: !0, extra: x, ...O, children: q }), e[57] = x, e[58] = O, e[59] = q, e[60] = H) : H = e[60];
|
|
2429
2440
|
const Q = H, K = k ? "left" : "right";
|
|
@@ -2436,7 +2447,7 @@ function wn(r) {
|
|
|
2436
2447
|
e[62] !== ue ? (ne = {
|
|
2437
2448
|
flex: ue
|
|
2438
2449
|
}, e[62] = ue, e[63] = ne) : ne = e[63];
|
|
2439
|
-
const le = `${G.contextForm} ${
|
|
2450
|
+
const le = `${G.contextForm} ${y}`;
|
|
2440
2451
|
let se;
|
|
2441
2452
|
e[64] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (se = {
|
|
2442
2453
|
label: G.contextFormLabel,
|
|
@@ -2450,14 +2461,14 @@ function wn(r) {
|
|
|
2450
2461
|
let me;
|
|
2451
2462
|
e[68] !== n.pricingEnvironment?.code || e[69] !== n.pricingEnvironment?.name ? (me = () => Mt(n.pricingEnvironment?.name, n.pricingEnvironment?.code), e[68] = n.pricingEnvironment?.code, e[69] = n.pricingEnvironment?.name, e[70] = me) : me = e[70];
|
|
2452
2463
|
let Ee;
|
|
2453
|
-
e[71] !== a || e[72] !==
|
|
2464
|
+
e[71] !== a || e[72] !== B ? (Ee = (J) => B("pricingEnvironment", a.find((Ae) => Ae.id === J) ?? null), e[71] = a, e[72] = B, e[73] = Ee) : Ee = e[73];
|
|
2454
2465
|
let Se;
|
|
2455
|
-
e[74] !==
|
|
2466
|
+
e[74] !== B ? (Se = () => B("pricingEnvironment", null), e[74] = B, e[75] = Se) : Se = e[75];
|
|
2456
2467
|
let Te;
|
|
2457
|
-
e[76] !== M || e[77] !==
|
|
2468
|
+
e[76] !== M || e[77] !== b || e[78] !== m || e[79] !== h || e[80] !== Be || e[81] !== me || e[82] !== Ee || e[83] !== Se ? (Te = /* @__PURE__ */ F(Ne, { ...h, "aria-label": "定价环境", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: m, disabled: M, placeholder: "请选择定价环境", options: b, value: Be, labelRender: me, onChange: Ee, onClear: Se }), e[76] = M, e[77] = b, e[78] = m, e[79] = h, e[80] = Be, e[81] = me, e[82] = Ee, e[83] = Se, e[84] = Te) : Te = e[84];
|
|
2458
2469
|
let Fe;
|
|
2459
2470
|
e[85] !== oe || e[86] !== Te ? (Fe = /* @__PURE__ */ F(De.Item, { className: G.contextFormItem, label: ce, required: !0, ...oe, children: Te }), e[85] = oe, e[86] = Te, e[87] = Fe) : Fe = e[87];
|
|
2460
|
-
const xe = k ? Q :
|
|
2471
|
+
const xe = k ? Q : D, we = k ? D : Q;
|
|
2461
2472
|
let ye;
|
|
2462
2473
|
e[88] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = /* @__PURE__ */ F(qe, { text: "估值日" }), e[88] = ye) : ye = e[88];
|
|
2463
2474
|
let Ce;
|
|
@@ -2465,10 +2476,10 @@ function wn(r) {
|
|
|
2465
2476
|
let fe;
|
|
2466
2477
|
e[91] !== n.valuationDate ? (fe = n.valuationDate ? He(n.valuationDate) : null, e[91] = n.valuationDate, e[92] = fe) : fe = e[92];
|
|
2467
2478
|
let be;
|
|
2468
|
-
e[93] !==
|
|
2479
|
+
e[93] !== B ? (be = (J) => {
|
|
2469
2480
|
const Ae = Array.isArray(J) ? J[0] : J;
|
|
2470
|
-
|
|
2471
|
-
}, e[93] =
|
|
2481
|
+
B("valuationDate", Ae?.format("YYYY-MM-DD") ?? null);
|
|
2482
|
+
}, e[93] = B, e[94] = be) : be = e[94];
|
|
2472
2483
|
let re;
|
|
2473
2484
|
e[95] !== M || e[96] !== fe || e[97] !== be ? (re = /* @__PURE__ */ F(_e, { "aria-label": "估值日", allowClear: !0, disabled: M, value: fe, onChange: be }), e[95] = M, e[96] = fe, e[97] = be, e[98] = re) : re = e[98];
|
|
2474
2485
|
let he;
|
|
@@ -2481,25 +2492,25 @@ function wn(r) {
|
|
|
2481
2492
|
he
|
|
2482
2493
|
] }), e[102] = K, e[103] = ne, e[104] = le, e[105] = Fe, e[106] = xe, e[107] = we, e[108] = he, e[109] = ve) : ve = e[109], ve;
|
|
2483
2494
|
}
|
|
2484
|
-
function Mn(r) {
|
|
2485
|
-
return r.map(_n);
|
|
2486
|
-
}
|
|
2487
2495
|
function _n(r) {
|
|
2496
|
+
return r.map($n);
|
|
2497
|
+
}
|
|
2498
|
+
function $n(r) {
|
|
2488
2499
|
return {
|
|
2489
2500
|
label: du(r),
|
|
2490
2501
|
value: r.key
|
|
2491
2502
|
};
|
|
2492
2503
|
}
|
|
2493
|
-
function
|
|
2504
|
+
function In(r) {
|
|
2494
2505
|
return {
|
|
2495
2506
|
label: `${r.name}(${r.code})`,
|
|
2496
2507
|
value: r.id
|
|
2497
2508
|
};
|
|
2498
2509
|
}
|
|
2499
|
-
function
|
|
2510
|
+
function Rn(r) {
|
|
2500
2511
|
const e = Y.c(17), {
|
|
2501
|
-
mode:
|
|
2502
|
-
layout:
|
|
2512
|
+
mode: u,
|
|
2513
|
+
layout: t,
|
|
2503
2514
|
allDisabled: n,
|
|
2504
2515
|
calculateDisabled: o,
|
|
2505
2516
|
submitting: a,
|
|
@@ -2507,46 +2518,46 @@ function In(r) {
|
|
|
2507
2518
|
onNavigateToPricingPage: E,
|
|
2508
2519
|
onCalculate: m
|
|
2509
2520
|
} = r;
|
|
2510
|
-
let
|
|
2511
|
-
e[0] !== n || e[1] !==
|
|
2521
|
+
let p;
|
|
2522
|
+
e[0] !== n || e[1] !== t || e[2] !== u || e[3] !== E || e[4] !== a ? (p = u === "multiple" || t === "horizontal" ? /* @__PURE__ */ F(Le, { className: G.navigateButton, icon: /* @__PURE__ */ F("span", { className: G.navigateIcon, "aria-hidden": "true" }), iconPlacement: "end", disabled: n || a || !E, onClick: E, children: "转定价界面" }) : null, e[0] = n, e[1] = t, e[2] = u, e[3] = E, e[4] = a, e[5] = p) : p = e[5];
|
|
2512
2523
|
const g = n || a;
|
|
2513
2524
|
let M;
|
|
2514
2525
|
e[6] !== s || e[7] !== g ? (M = /* @__PURE__ */ F(Le, { disabled: g, onClick: s, children: "重置" }), e[6] = s, e[7] = g, e[8] = M) : M = e[8];
|
|
2515
|
-
const
|
|
2526
|
+
const B = n || o;
|
|
2516
2527
|
let k;
|
|
2517
|
-
e[9] !== m || e[10] !== a || e[11] !==
|
|
2528
|
+
e[9] !== m || e[10] !== a || e[11] !== B ? (k = /* @__PURE__ */ F(Le, { type: "primary", loading: a, disabled: B, onClick: m, children: "计算" }), e[9] = m, e[10] = a, e[11] = B, e[12] = k) : k = e[12];
|
|
2518
2529
|
let R;
|
|
2519
|
-
return e[13] !==
|
|
2520
|
-
|
|
2530
|
+
return e[13] !== p || e[14] !== M || e[15] !== k ? (R = /* @__PURE__ */ ke("div", { className: G.footer, children: [
|
|
2531
|
+
p,
|
|
2521
2532
|
M,
|
|
2522
2533
|
k
|
|
2523
|
-
] }), e[13] =
|
|
2534
|
+
] }), e[13] = p, e[14] = M, e[15] = k, e[16] = R) : R = e[16], R;
|
|
2524
2535
|
}
|
|
2525
|
-
const
|
|
2536
|
+
const Pn = {
|
|
2526
2537
|
environments: "定价环境",
|
|
2527
2538
|
discountDefinitions: "无风险利率曲线定义",
|
|
2528
2539
|
customDiscountCurves: "自定义无风险利率曲线",
|
|
2529
2540
|
carbonDefinitions: "碳金融远期价格曲线定义",
|
|
2530
2541
|
customCarbonCurves: "自定义碳金融远期价格曲线"
|
|
2531
2542
|
};
|
|
2532
|
-
function
|
|
2543
|
+
function Ln(r) {
|
|
2533
2544
|
const e = Y.c(9), {
|
|
2534
|
-
resources:
|
|
2535
|
-
onRetry:
|
|
2545
|
+
resources: u,
|
|
2546
|
+
onRetry: t
|
|
2536
2547
|
} = r;
|
|
2537
2548
|
let n;
|
|
2538
|
-
e[0] !==
|
|
2549
|
+
e[0] !== u ? (n = Object.keys(u), e[0] = u, e[1] = n) : n = e[1];
|
|
2539
2550
|
const o = n;
|
|
2540
2551
|
let a;
|
|
2541
|
-
e[2] !==
|
|
2552
|
+
e[2] !== u || e[3] !== o ? (a = o.filter((m) => u[m].status === "error"), e[2] = u, e[3] = o, e[4] = a) : a = e[4];
|
|
2542
2553
|
const s = a;
|
|
2543
2554
|
if (s.length === 0)
|
|
2544
2555
|
return null;
|
|
2545
2556
|
let E;
|
|
2546
|
-
return e[5] !== s || e[6] !==
|
|
2547
|
-
const
|
|
2548
|
-
return /* @__PURE__ */ F(Ye, { type: "error", showIcon: !0, title: `${
|
|
2549
|
-
}) }), e[5] = s, e[6] =
|
|
2557
|
+
return e[5] !== s || e[6] !== t || e[7] !== u ? (E = /* @__PURE__ */ F("div", { className: G.resourceIssues, "aria-label": "资源加载异常", children: s.map((m) => {
|
|
2558
|
+
const p = u[m], g = p.attempts >= lu;
|
|
2559
|
+
return /* @__PURE__ */ F(Ye, { type: "error", showIcon: !0, title: `${Pn[m]}加载失败`, description: g ? `${p.error ?? "未知错误"}(已达到 3 次尝试上限)` : p.error, action: /* @__PURE__ */ F(Le, { size: "small", disabled: g, onClick: () => t(m), children: "重试" }) }, m);
|
|
2560
|
+
}) }), e[5] = s, e[6] = t, e[7] = u, e[8] = E) : E = e[8], E;
|
|
2550
2561
|
}
|
|
2551
2562
|
function ze(r) {
|
|
2552
2563
|
return {
|
|
@@ -2556,7 +2567,7 @@ function ze(r) {
|
|
|
2556
2567
|
attempts: 0
|
|
2557
2568
|
};
|
|
2558
2569
|
}
|
|
2559
|
-
function
|
|
2570
|
+
function Nn(r) {
|
|
2560
2571
|
return {
|
|
2561
2572
|
context: {
|
|
2562
2573
|
...vu
|
|
@@ -2592,19 +2603,19 @@ function Nu(r) {
|
|
|
2592
2603
|
resultInputVersion: null
|
|
2593
2604
|
}]));
|
|
2594
2605
|
}
|
|
2595
|
-
function
|
|
2606
|
+
function On(r, e) {
|
|
2596
2607
|
switch (e.type) {
|
|
2597
2608
|
case "resource/loading": {
|
|
2598
|
-
const
|
|
2609
|
+
const u = r.resources[e.key];
|
|
2599
2610
|
return {
|
|
2600
2611
|
...r,
|
|
2601
2612
|
resources: {
|
|
2602
2613
|
...r.resources,
|
|
2603
2614
|
[e.key]: {
|
|
2604
|
-
...
|
|
2615
|
+
...u,
|
|
2605
2616
|
status: "loading",
|
|
2606
2617
|
error: null,
|
|
2607
|
-
attempts:
|
|
2618
|
+
attempts: u.attempts + 1
|
|
2608
2619
|
}
|
|
2609
2620
|
}
|
|
2610
2621
|
};
|
|
@@ -2635,23 +2646,23 @@ function Nn(r, e) {
|
|
|
2635
2646
|
}
|
|
2636
2647
|
};
|
|
2637
2648
|
case "context/set": {
|
|
2638
|
-
const
|
|
2649
|
+
const u = e.field === "pricingEnvironment", t = {
|
|
2639
2650
|
...r.context,
|
|
2640
2651
|
[e.field]: e.value,
|
|
2641
|
-
...
|
|
2652
|
+
...u ? {
|
|
2642
2653
|
discountCurve: null,
|
|
2643
2654
|
carbonForwardCurve: null
|
|
2644
2655
|
} : void 0
|
|
2645
2656
|
}, n = {
|
|
2646
2657
|
...r.contextErrors
|
|
2647
2658
|
};
|
|
2648
|
-
return delete n[e.field],
|
|
2659
|
+
return delete n[e.field], u && (delete n.discountCurve, delete n.carbonForwardCurve), {
|
|
2649
2660
|
...r,
|
|
2650
|
-
context:
|
|
2661
|
+
context: t,
|
|
2651
2662
|
contextErrors: n,
|
|
2652
|
-
environmentCurvesStatus:
|
|
2653
|
-
environmentCurvesError:
|
|
2654
|
-
environmentCurvesAttempts:
|
|
2663
|
+
environmentCurvesStatus: u ? "idle" : r.environmentCurvesStatus,
|
|
2664
|
+
environmentCurvesError: u ? null : r.environmentCurvesError,
|
|
2665
|
+
environmentCurvesAttempts: u ? 0 : r.environmentCurvesAttempts,
|
|
2655
2666
|
resultByContractId: Nu(r),
|
|
2656
2667
|
inputVersion: r.inputVersion + 1,
|
|
2657
2668
|
submitting: !1
|
|
@@ -2691,8 +2702,8 @@ function Nn(r, e) {
|
|
|
2691
2702
|
return {
|
|
2692
2703
|
...r,
|
|
2693
2704
|
submitting: !0,
|
|
2694
|
-
resultByContractId: Object.fromEntries(e.contractIds.map((
|
|
2695
|
-
contractId:
|
|
2705
|
+
resultByContractId: Object.fromEntries(e.contractIds.map((u) => [u, {
|
|
2706
|
+
contractId: u,
|
|
2696
2707
|
status: "submitting",
|
|
2697
2708
|
result: null,
|
|
2698
2709
|
message: null,
|
|
@@ -2721,27 +2732,27 @@ function Nn(r, e) {
|
|
|
2721
2732
|
};
|
|
2722
2733
|
}
|
|
2723
2734
|
}
|
|
2724
|
-
const
|
|
2735
|
+
const Vn = "3", zn = "11";
|
|
2725
2736
|
function Ie(r) {
|
|
2726
2737
|
return typeof r == "object" && r !== null;
|
|
2727
2738
|
}
|
|
2728
|
-
function
|
|
2739
|
+
function Yn(r) {
|
|
2729
2740
|
return Ie(r) && typeof r.key == "string" && typeof r.id == "string" && typeof r.label == "string" && (r.kind === "discount" || r.kind === "carbonForward") && (r.source === "definition" || r.source === "custom") && Ie(r.requestMapping);
|
|
2730
2741
|
}
|
|
2731
|
-
function
|
|
2742
|
+
function Gn(r) {
|
|
2732
2743
|
return !Array.isArray(r) && Ie(r) && Ie(r.discountCurve) && Ie(r.carbonForwardCurve);
|
|
2733
2744
|
}
|
|
2734
|
-
function _t(r, e,
|
|
2735
|
-
const
|
|
2736
|
-
return
|
|
2745
|
+
function _t(r, e, u) {
|
|
2746
|
+
const t = r && e ? `${e}(${r})` : e || r;
|
|
2747
|
+
return u ? `${t}-${Su(u)}` : t;
|
|
2737
2748
|
}
|
|
2738
2749
|
function eu(r, e) {
|
|
2739
|
-
return Array.isArray(r) ? r.flatMap((
|
|
2740
|
-
if (
|
|
2741
|
-
if (!Ie(
|
|
2742
|
-
const
|
|
2743
|
-
if (
|
|
2744
|
-
const n = String(
|
|
2750
|
+
return Array.isArray(r) ? r.flatMap((u) => {
|
|
2751
|
+
if (Yn(u)) return [u];
|
|
2752
|
+
if (!Ie(u)) return [];
|
|
2753
|
+
const t = u[e.idField];
|
|
2754
|
+
if (t == null || t === "") return [];
|
|
2755
|
+
const n = String(t), o = String(u.code ?? ""), a = String(u.name ?? ""), s = String(u.currency ?? ""), E = e.source === "custom" && typeof u.createDate == "string" ? u.createDate : void 0, m = e.source === "custom" && typeof u.executeDay == "string" ? u.executeDay : void 0, p = {
|
|
2745
2756
|
[e.idField]: n
|
|
2746
2757
|
};
|
|
2747
2758
|
return [{
|
|
@@ -2755,43 +2766,43 @@ function eu(r, e) {
|
|
|
2755
2766
|
currency: s,
|
|
2756
2767
|
createDate: E,
|
|
2757
2768
|
executeDay: m,
|
|
2758
|
-
requestMapping:
|
|
2769
|
+
requestMapping: p
|
|
2759
2770
|
}];
|
|
2760
2771
|
}) : [];
|
|
2761
2772
|
}
|
|
2762
|
-
function
|
|
2773
|
+
function Hn(r) {
|
|
2763
2774
|
return Array.isArray(r) ? r.flatMap((e) => {
|
|
2764
2775
|
if (!Ie(e)) return [];
|
|
2765
|
-
const
|
|
2766
|
-
return
|
|
2767
|
-
...
|
|
2776
|
+
const u = e, t = u.id ?? ("pricingEnvId" in u ? u.pricingEnvId : "");
|
|
2777
|
+
return t === "" || t === null || t === void 0 ? [] : [{
|
|
2778
|
+
...u,
|
|
2768
2779
|
// 真实接口使用 pricingEnvId,组件内部统一使用字符串 id 维护 Select 值和联动请求。
|
|
2769
|
-
id: String(
|
|
2780
|
+
id: String(t)
|
|
2770
2781
|
}];
|
|
2771
2782
|
}) : [];
|
|
2772
2783
|
}
|
|
2773
|
-
function
|
|
2784
|
+
function Un(r) {
|
|
2774
2785
|
return eu(r, {
|
|
2775
2786
|
idField: "disCurveDefId",
|
|
2776
2787
|
kind: "discount",
|
|
2777
2788
|
source: "definition"
|
|
2778
2789
|
});
|
|
2779
2790
|
}
|
|
2780
|
-
function
|
|
2791
|
+
function Wn(r) {
|
|
2781
2792
|
return eu(r, {
|
|
2782
2793
|
idField: "disCurveId",
|
|
2783
2794
|
kind: "discount",
|
|
2784
2795
|
source: "custom"
|
|
2785
2796
|
});
|
|
2786
2797
|
}
|
|
2787
|
-
function
|
|
2798
|
+
function Zn(r) {
|
|
2788
2799
|
return eu(r, {
|
|
2789
2800
|
idField: "comCurveDefId",
|
|
2790
2801
|
kind: "carbonForward",
|
|
2791
2802
|
source: "definition"
|
|
2792
2803
|
});
|
|
2793
2804
|
}
|
|
2794
|
-
function
|
|
2805
|
+
function qn(r) {
|
|
2795
2806
|
return eu(r, {
|
|
2796
2807
|
idField: "comCurveId",
|
|
2797
2808
|
kind: "carbonForward",
|
|
@@ -2799,33 +2810,33 @@ function Zn(r) {
|
|
|
2799
2810
|
});
|
|
2800
2811
|
}
|
|
2801
2812
|
function Ou(r, e) {
|
|
2802
|
-
const
|
|
2813
|
+
const u = String(r.curveId);
|
|
2803
2814
|
return {
|
|
2804
|
-
id:
|
|
2815
|
+
id: u,
|
|
2805
2816
|
label: _t(String(r.curveCode ?? ""), String(r.curveName ?? "")),
|
|
2806
2817
|
code: String(r.curveCode ?? ""),
|
|
2807
2818
|
name: String(r.curveName ?? ""),
|
|
2808
2819
|
kind: e.kind,
|
|
2809
2820
|
source: "definition",
|
|
2810
|
-
requestMapping: e.requestMapping(
|
|
2821
|
+
requestMapping: e.requestMapping(u)
|
|
2811
2822
|
};
|
|
2812
2823
|
}
|
|
2813
|
-
function
|
|
2824
|
+
function jn(r) {
|
|
2814
2825
|
if (r === null) return null;
|
|
2815
|
-
if (
|
|
2826
|
+
if (Gn(r)) return r;
|
|
2816
2827
|
if (!Array.isArray(r)) return null;
|
|
2817
|
-
const e = r.find((
|
|
2818
|
-
return !e?.curveId || !
|
|
2828
|
+
const e = r.find((t) => String(t.curveType) === Vn), u = r.find((t) => String(t.curveType) === zn);
|
|
2829
|
+
return !e?.curveId || !u?.curveId ? null : {
|
|
2819
2830
|
discountCurve: Ou(e, {
|
|
2820
2831
|
kind: "discount",
|
|
2821
|
-
requestMapping: (
|
|
2822
|
-
disCurveDefId:
|
|
2832
|
+
requestMapping: (t) => ({
|
|
2833
|
+
disCurveDefId: t
|
|
2823
2834
|
})
|
|
2824
2835
|
}),
|
|
2825
|
-
carbonForwardCurve: Ou(
|
|
2836
|
+
carbonForwardCurve: Ou(u, {
|
|
2826
2837
|
kind: "carbonForward",
|
|
2827
|
-
requestMapping: (
|
|
2828
|
-
comCurveDefId:
|
|
2838
|
+
requestMapping: (t) => ({
|
|
2839
|
+
comCurveDefId: t
|
|
2829
2840
|
})
|
|
2830
2841
|
})
|
|
2831
2842
|
};
|
|
@@ -2838,16 +2849,16 @@ function Vu(r) {
|
|
|
2838
2849
|
comCurveId: "comCurveId" in r ? r.comCurveId : ""
|
|
2839
2850
|
};
|
|
2840
2851
|
}
|
|
2841
|
-
function
|
|
2852
|
+
function Xn(r, e) {
|
|
2842
2853
|
const {
|
|
2843
|
-
pricingEnvironment:
|
|
2844
|
-
discountCurve:
|
|
2854
|
+
pricingEnvironment: u,
|
|
2855
|
+
discountCurve: t,
|
|
2845
2856
|
carbonForwardCurve: n,
|
|
2846
2857
|
valuationDate: o
|
|
2847
2858
|
} = e;
|
|
2848
|
-
if (!
|
|
2859
|
+
if (!u || !t || !n || !o)
|
|
2849
2860
|
return [];
|
|
2850
|
-
const a = Vu(
|
|
2861
|
+
const a = Vu(t.requestMapping), s = Vu(n.requestMapping), E = {
|
|
2851
2862
|
valDate: Ct(o),
|
|
2852
2863
|
disCurveDefId: a.disCurveDefId,
|
|
2853
2864
|
disCurveId: a.disCurveId,
|
|
@@ -2886,22 +2897,22 @@ function jn(r, e) {
|
|
|
2886
2897
|
function je(r) {
|
|
2887
2898
|
return r == null || r === "" ? null : String(r);
|
|
2888
2899
|
}
|
|
2889
|
-
function
|
|
2900
|
+
function Qn(r, e, u) {
|
|
2890
2901
|
if (!e || typeof e != "object")
|
|
2891
2902
|
return {
|
|
2892
2903
|
contractId: r,
|
|
2893
2904
|
status: "error",
|
|
2894
2905
|
result: null,
|
|
2895
2906
|
message: "未返回计算结果",
|
|
2896
|
-
resultInputVersion:
|
|
2907
|
+
resultInputVersion: u
|
|
2897
2908
|
};
|
|
2898
|
-
const
|
|
2909
|
+
const t = e.code, n = t == null || t === 0 || t === 200 || t === "0" || t === "200", o = [e.npv, e.forwardPrice, e.discountFactor, e.maturityTime].some((a) => a != null && a !== "");
|
|
2899
2910
|
return !n || !o ? {
|
|
2900
2911
|
contractId: r,
|
|
2901
2912
|
status: "error",
|
|
2902
2913
|
result: null,
|
|
2903
2914
|
message: e.msg ?? "定价计算失败",
|
|
2904
|
-
resultInputVersion:
|
|
2915
|
+
resultInputVersion: u
|
|
2905
2916
|
} : {
|
|
2906
2917
|
contractId: r,
|
|
2907
2918
|
status: "success",
|
|
@@ -2912,11 +2923,11 @@ function Xn(r, e, t) {
|
|
|
2912
2923
|
maturityTime: je(e.maturityTime)
|
|
2913
2924
|
},
|
|
2914
2925
|
message: e.msg ?? null,
|
|
2915
|
-
resultInputVersion:
|
|
2926
|
+
resultInputVersion: u
|
|
2916
2927
|
};
|
|
2917
2928
|
}
|
|
2918
|
-
function
|
|
2919
|
-
return Object.fromEntries(r.map((
|
|
2929
|
+
function Jn(r, e, u) {
|
|
2930
|
+
return Object.fromEntries(r.map((t, n) => [t, Qn(t, e[n], u)]));
|
|
2920
2931
|
}
|
|
2921
2932
|
const zu = {
|
|
2922
2933
|
environments: "定价环境加载失败",
|
|
@@ -2925,13 +2936,13 @@ const zu = {
|
|
|
2925
2936
|
carbonDefinitions: "碳金融远期价格曲线定义加载失败",
|
|
2926
2937
|
customCarbonCurves: "自定义碳金融远期价格曲线加载失败"
|
|
2927
2938
|
};
|
|
2928
|
-
function
|
|
2939
|
+
function Kn(r) {
|
|
2929
2940
|
if (r && typeof r == "object" && "response" in r) {
|
|
2930
2941
|
const e = r.response;
|
|
2931
2942
|
if (e && typeof e == "object" && "data" in e) {
|
|
2932
|
-
const
|
|
2933
|
-
if (
|
|
2934
|
-
return
|
|
2943
|
+
const u = e.data;
|
|
2944
|
+
if (u && typeof u == "object" && "msg" in u && typeof u.msg == "string" && u.msg.trim())
|
|
2945
|
+
return u.msg;
|
|
2935
2946
|
}
|
|
2936
2947
|
}
|
|
2937
2948
|
return r instanceof Error && r.message ? r.message : "定价服务请求失败";
|
|
@@ -2939,16 +2950,16 @@ function Jn(r) {
|
|
|
2939
2950
|
function $e(r, e) {
|
|
2940
2951
|
return e;
|
|
2941
2952
|
}
|
|
2942
|
-
function
|
|
2953
|
+
function eo(r) {
|
|
2943
2954
|
const {
|
|
2944
2955
|
contracts: e,
|
|
2945
|
-
productType:
|
|
2946
|
-
dataSource:
|
|
2947
|
-
} = r, [n, o] = Ht(
|
|
2956
|
+
productType: u,
|
|
2957
|
+
dataSource: t
|
|
2958
|
+
} = r, [n, o] = Ht(On, void 0, () => Nn(e.map((i) => i.contractId))), a = te(!0), s = te(0), E = te(0), m = te(null), p = te(null), g = te(null), M = te(/* @__PURE__ */ new Map()), [B, k] = Oe(0), R = te(/* @__PURE__ */ new Map());
|
|
2948
2959
|
pe(() => () => {
|
|
2949
|
-
a.current = !1,
|
|
2960
|
+
a.current = !1, p.current?.abort(), g.current?.abort(), M.current.forEach((i) => i.abort());
|
|
2950
2961
|
}, []);
|
|
2951
|
-
const
|
|
2962
|
+
const y = ge(async (i) => {
|
|
2952
2963
|
if (n.resources[i].attempts >= lu) return;
|
|
2953
2964
|
o({
|
|
2954
2965
|
type: "resource/loading",
|
|
@@ -2960,52 +2971,52 @@ function Kn(r) {
|
|
|
2960
2971
|
let d;
|
|
2961
2972
|
switch (i) {
|
|
2962
2973
|
case "environments": {
|
|
2963
|
-
const
|
|
2974
|
+
const D = await t.listPricingEnvironments({
|
|
2964
2975
|
status: !0
|
|
2965
2976
|
}, {
|
|
2966
2977
|
signal: l.signal
|
|
2967
2978
|
});
|
|
2968
|
-
d =
|
|
2979
|
+
d = Hn($e("listPricingEnvironments", D));
|
|
2969
2980
|
break;
|
|
2970
2981
|
}
|
|
2971
2982
|
case "discountDefinitions": {
|
|
2972
|
-
const
|
|
2983
|
+
const D = await t.listDiscountCurveDefinitions({
|
|
2973
2984
|
type: "3",
|
|
2974
2985
|
status: !0
|
|
2975
2986
|
}, {
|
|
2976
2987
|
signal: l.signal
|
|
2977
2988
|
});
|
|
2978
|
-
d =
|
|
2989
|
+
d = Un($e("listDiscountCurveDefinitions", D));
|
|
2979
2990
|
break;
|
|
2980
2991
|
}
|
|
2981
2992
|
case "customDiscountCurves": {
|
|
2982
|
-
const
|
|
2993
|
+
const D = await t.listCustomDiscountCurves({
|
|
2983
2994
|
type: "3",
|
|
2984
2995
|
isCustom: !0
|
|
2985
2996
|
}, {
|
|
2986
2997
|
signal: l.signal
|
|
2987
2998
|
});
|
|
2988
|
-
d =
|
|
2999
|
+
d = Wn($e("listCustomDiscountCurves", D));
|
|
2989
3000
|
break;
|
|
2990
3001
|
}
|
|
2991
3002
|
case "carbonDefinitions": {
|
|
2992
|
-
const
|
|
3003
|
+
const D = await t.listCarbonForwardCurveDefinitions({
|
|
2993
3004
|
type: "11",
|
|
2994
3005
|
status: !0
|
|
2995
3006
|
}, {
|
|
2996
3007
|
signal: l.signal
|
|
2997
3008
|
});
|
|
2998
|
-
d =
|
|
3009
|
+
d = Zn($e("listCarbonForwardCurveDefinitions", D));
|
|
2999
3010
|
break;
|
|
3000
3011
|
}
|
|
3001
3012
|
case "customCarbonCurves": {
|
|
3002
|
-
const
|
|
3013
|
+
const D = await t.listCustomCarbonForwardCurves({
|
|
3003
3014
|
type: "11",
|
|
3004
3015
|
isCustom: !0
|
|
3005
3016
|
}, {
|
|
3006
3017
|
signal: l.signal
|
|
3007
3018
|
});
|
|
3008
|
-
d =
|
|
3019
|
+
d = qn($e("listCustomCarbonForwardCurves", D));
|
|
3009
3020
|
break;
|
|
3010
3021
|
}
|
|
3011
3022
|
}
|
|
@@ -3021,39 +3032,39 @@ function Kn(r) {
|
|
|
3021
3032
|
error: d instanceof Error ? d.message : zu[i]
|
|
3022
3033
|
});
|
|
3023
3034
|
}
|
|
3024
|
-
}, [
|
|
3035
|
+
}, [t, n.resources]), _ = te(!1);
|
|
3025
3036
|
pe(() => {
|
|
3026
|
-
_.current || (_.current = !0, Promise.allSettled(Object.keys(zu).map((i) =>
|
|
3027
|
-
}, [B]);
|
|
3028
|
-
const y = Pe(() => [...n.resources.discountDefinitions.data, ...n.resources.customDiscountCurves.data, ...n.resources.carbonDefinitions.data, ...n.resources.customCarbonCurves.data], [n.resources]), T = Pe(() => y.filter((i) => i.kind === "discount"), [y]), P = Pe(() => y.filter((i) => i.kind === "carbonForward"), [y]), I = te(y);
|
|
3029
|
-
pe(() => {
|
|
3030
|
-
I.current = y;
|
|
3037
|
+
_.current || (_.current = !0, Promise.allSettled(Object.keys(zu).map((i) => y(i))));
|
|
3031
3038
|
}, [y]);
|
|
3039
|
+
const b = Pe(() => [...n.resources.discountDefinitions.data, ...n.resources.customDiscountCurves.data, ...n.resources.carbonDefinitions.data, ...n.resources.customCarbonCurves.data], [n.resources]), T = Pe(() => b.filter((i) => i.kind === "discount"), [b]), P = Pe(() => b.filter((i) => i.kind === "carbonForward"), [b]), I = te(b);
|
|
3040
|
+
pe(() => {
|
|
3041
|
+
I.current = b;
|
|
3042
|
+
}, [b]);
|
|
3032
3043
|
const L = ge((i, l) => I.current.find((d) => d.kind === i.kind && (d.id === i.id || d.key === i.id)) ?? {
|
|
3033
3044
|
...i,
|
|
3034
3045
|
key: `${i.kind}:${i.source}:${i.id}`,
|
|
3035
3046
|
currency: l
|
|
3036
|
-
}, []),
|
|
3047
|
+
}, []), h = n.context.pricingEnvironment;
|
|
3037
3048
|
pe(() => {
|
|
3038
|
-
if (!
|
|
3049
|
+
if (!h || !u) return;
|
|
3039
3050
|
g.current?.abort();
|
|
3040
3051
|
const i = new AbortController();
|
|
3041
3052
|
g.current = i;
|
|
3042
|
-
const l = ++s.current, d = JSON.stringify([
|
|
3053
|
+
const l = ++s.current, d = JSON.stringify([h.id, u]);
|
|
3043
3054
|
o({
|
|
3044
3055
|
type: "environment-curves/loading"
|
|
3045
3056
|
});
|
|
3046
|
-
let
|
|
3047
|
-
return
|
|
3048
|
-
pricingEnvId:
|
|
3049
|
-
productType:
|
|
3057
|
+
let D = R.current.get(d);
|
|
3058
|
+
return D || (D = t.getEnvironmentCurveSelection({
|
|
3059
|
+
pricingEnvId: h.id,
|
|
3060
|
+
productType: u
|
|
3050
3061
|
}, {
|
|
3051
3062
|
signal: i.signal
|
|
3052
|
-
}).then((S) =>
|
|
3063
|
+
}).then((S) => jn($e("getEnvironmentCurveSelection", S))), R.current.set(d, D)), D.then((S) => {
|
|
3053
3064
|
!a.current || l !== s.current || o({
|
|
3054
3065
|
type: "environment-curves/success",
|
|
3055
|
-
discountCurve: S ? L(S.discountCurve,
|
|
3056
|
-
carbonForwardCurve: S ? L(S.carbonForwardCurve,
|
|
3066
|
+
discountCurve: S ? L(S.discountCurve, h.currency) : null,
|
|
3067
|
+
carbonForwardCurve: S ? L(S.carbonForwardCurve, h.currency) : null
|
|
3057
3068
|
});
|
|
3058
3069
|
}).catch((S) => {
|
|
3059
3070
|
R.current.delete(d), !i.signal.aborted && (!a.current || l !== s.current || o({
|
|
@@ -3061,36 +3072,36 @@ function Kn(r) {
|
|
|
3061
3072
|
error: S instanceof Error ? S.message : "环境关联曲线加载失败"
|
|
3062
3073
|
}));
|
|
3063
3074
|
}), () => i.abort();
|
|
3064
|
-
}, [
|
|
3065
|
-
const w = te(
|
|
3075
|
+
}, [t, B, u, L, h]);
|
|
3076
|
+
const w = te(u);
|
|
3066
3077
|
pe(() => {
|
|
3067
|
-
w.current !==
|
|
3078
|
+
w.current !== u && (w.current = u, n.context.pricingEnvironment && o({
|
|
3068
3079
|
type: "context/set",
|
|
3069
3080
|
field: "pricingEnvironment",
|
|
3070
3081
|
value: n.context.pricingEnvironment
|
|
3071
3082
|
}));
|
|
3072
|
-
}, [
|
|
3083
|
+
}, [u, n.context.pricingEnvironment]);
|
|
3073
3084
|
const $ = te(n.context);
|
|
3074
3085
|
pe(() => {
|
|
3075
3086
|
$.current = n.context;
|
|
3076
3087
|
}, [n.context]);
|
|
3077
|
-
const
|
|
3088
|
+
const v = ge((i, l) => {
|
|
3078
3089
|
const d = $.current[i];
|
|
3079
3090
|
d === l || d != null && l != null && typeof d == "object" && typeof l == "object" && ("key" in d && "key" in l && d.key === l.key || "id" in d && "id" in l && d.id === l.id) || (i === "pricingEnvironment" && l && console.log("[IndicativePricingforSelectedContracts] selected pricing environment id:", l.id), $.current = {
|
|
3080
3091
|
...$.current,
|
|
3081
3092
|
[i]: l
|
|
3082
|
-
}, E.current += 1,
|
|
3093
|
+
}, E.current += 1, p.current?.abort(), m.current = null, o({
|
|
3083
3094
|
type: "context/set",
|
|
3084
3095
|
field: i,
|
|
3085
3096
|
value: l
|
|
3086
3097
|
}));
|
|
3087
|
-
}, []),
|
|
3098
|
+
}, []), A = te(!1);
|
|
3088
3099
|
pe(() => {
|
|
3089
3100
|
const i = n.resources.environments;
|
|
3090
|
-
if (
|
|
3101
|
+
if (A.current || i.status !== "success" && i.status !== "empty" || (A.current = !0, n.context.pricingEnvironment)) return;
|
|
3091
3102
|
const l = i.data.find((d) => d.isDefaultForSelf === !0);
|
|
3092
|
-
l &&
|
|
3093
|
-
}, [
|
|
3103
|
+
l && v("pricingEnvironment", l);
|
|
3104
|
+
}, [v, n.context.pricingEnvironment, n.resources.environments]);
|
|
3094
3105
|
const C = ge(async () => {
|
|
3095
3106
|
if (!a.current) return {
|
|
3096
3107
|
kind: "cancelled"
|
|
@@ -3103,7 +3114,7 @@ function Kn(r) {
|
|
|
3103
3114
|
if (e.length === 0) return {
|
|
3104
3115
|
kind: "empty"
|
|
3105
3116
|
};
|
|
3106
|
-
const i = $.current, l =
|
|
3117
|
+
const i = $.current, l = kn(i), d = wn(i.valuationDate, e);
|
|
3107
3118
|
if (!d.valid && d.message && (l.valuationDate = [d.message]), o({
|
|
3108
3119
|
type: "context/errors",
|
|
3109
3120
|
errors: l
|
|
@@ -3111,22 +3122,22 @@ function Kn(r) {
|
|
|
3111
3122
|
return {
|
|
3112
3123
|
kind: "invalid"
|
|
3113
3124
|
};
|
|
3114
|
-
const
|
|
3115
|
-
m.current = x,
|
|
3125
|
+
const D = Xn(e, i), S = n.inputVersion, x = ++E.current;
|
|
3126
|
+
m.current = x, p.current?.abort();
|
|
3116
3127
|
const O = new AbortController();
|
|
3117
|
-
|
|
3128
|
+
p.current = O, o({
|
|
3118
3129
|
type: "calculation/submitting",
|
|
3119
3130
|
contractIds: e.map((V) => V.contractId)
|
|
3120
3131
|
});
|
|
3121
3132
|
try {
|
|
3122
|
-
const V = $e("calculate", await
|
|
3133
|
+
const V = $e("calculate", await t.calculate(D, {
|
|
3123
3134
|
signal: O.signal
|
|
3124
3135
|
}));
|
|
3125
3136
|
if (!a.current || x !== E.current)
|
|
3126
3137
|
return {
|
|
3127
3138
|
kind: "cancelled"
|
|
3128
3139
|
};
|
|
3129
|
-
const z = Array.isArray(V) ? V : [], W =
|
|
3140
|
+
const z = Array.isArray(V) ? V : [], W = Jn(e.map((U) => U.contractId), z, S);
|
|
3130
3141
|
return o({
|
|
3131
3142
|
type: "calculation/settled",
|
|
3132
3143
|
results: W
|
|
@@ -3140,7 +3151,7 @@ function Kn(r) {
|
|
|
3140
3151
|
return {
|
|
3141
3152
|
kind: "cancelled"
|
|
3142
3153
|
};
|
|
3143
|
-
const z =
|
|
3154
|
+
const z = Kn(V), W = Object.fromEntries(e.map((U) => [U.contractId, {
|
|
3144
3155
|
contractId: U.contractId,
|
|
3145
3156
|
status: "error",
|
|
3146
3157
|
result: null,
|
|
@@ -3156,8 +3167,8 @@ function Kn(r) {
|
|
|
3156
3167
|
} finally {
|
|
3157
3168
|
m.current === x && (m.current = null);
|
|
3158
3169
|
}
|
|
3159
|
-
}, [e,
|
|
3160
|
-
E.current += 1,
|
|
3170
|
+
}, [e, t, n.inputVersion]), N = ge(() => m.current !== null, []), f = ge(() => {
|
|
3171
|
+
E.current += 1, p.current?.abort(), m.current = null, s.current += 1, g.current?.abort(), $.current = {
|
|
3161
3172
|
...vu
|
|
3162
3173
|
}, o({
|
|
3163
3174
|
type: "reset"
|
|
@@ -3168,12 +3179,12 @@ function Kn(r) {
|
|
|
3168
3179
|
initialized: c,
|
|
3169
3180
|
discountCurves: T,
|
|
3170
3181
|
carbonForwardCurves: P,
|
|
3171
|
-
setContext:
|
|
3172
|
-
retryResource:
|
|
3182
|
+
setContext: v,
|
|
3183
|
+
retryResource: y,
|
|
3173
3184
|
retryEnvironmentCurves: () => {
|
|
3174
|
-
if (!
|
|
3185
|
+
if (!h || n.environmentCurvesAttempts >= lu)
|
|
3175
3186
|
return;
|
|
3176
|
-
const i = JSON.stringify([
|
|
3187
|
+
const i = JSON.stringify([h.id, u]);
|
|
3177
3188
|
R.current.delete(i), k((l) => l + 1);
|
|
3178
3189
|
},
|
|
3179
3190
|
calculate: C,
|
|
@@ -3181,59 +3192,59 @@ function Kn(r) {
|
|
|
3181
3192
|
reset: f
|
|
3182
3193
|
};
|
|
3183
3194
|
}
|
|
3184
|
-
const
|
|
3185
|
-
const
|
|
3195
|
+
const uo = ee(function(e, u) {
|
|
3196
|
+
const t = Y.c(112), {
|
|
3186
3197
|
mode: n,
|
|
3187
3198
|
layout: o,
|
|
3188
3199
|
productType: a,
|
|
3189
3200
|
contractData: s,
|
|
3190
3201
|
dataSource: E,
|
|
3191
3202
|
showFooter: m,
|
|
3192
|
-
onNavigateToPricingPage:
|
|
3203
|
+
onNavigateToPricingPage: p,
|
|
3193
3204
|
className: g,
|
|
3194
3205
|
style: M
|
|
3195
|
-
} = e,
|
|
3206
|
+
} = e, B = n === void 0 ? "multiple" : n, k = o === void 0 ? "horizontal" : o, R = m === void 0 ? !0 : m, y = B === "single" && k === "vertical", _ = B === "single" && k === "horizontal", b = B === "multiple" ? G.multiple : y ? G.single : G.fixedSingle, {
|
|
3196
3207
|
message: T
|
|
3197
3208
|
} = pu.useApp();
|
|
3198
3209
|
let P;
|
|
3199
|
-
|
|
3210
|
+
t[0] !== s || t[1] !== B ? (P = () => Object.freeze((B === "multiple" ? [...s] : s.slice(0, 1)).map(to)), t[0] = s, t[1] = B, t[2] = P) : P = t[2];
|
|
3200
3211
|
const [I] = Oe(P);
|
|
3201
3212
|
let L;
|
|
3202
|
-
|
|
3203
|
-
const [
|
|
3213
|
+
t[3] !== s.length ? (L = () => s.length, t[3] = s.length, t[4] = L) : L = t[4];
|
|
3214
|
+
const [h] = Oe(L), w = B === "multiple" && h > sr;
|
|
3204
3215
|
let $;
|
|
3205
|
-
|
|
3206
|
-
const
|
|
3207
|
-
let
|
|
3208
|
-
|
|
3209
|
-
contracts:
|
|
3216
|
+
t[5] !== I || t[6] !== w ? ($ = w ? [] : I, t[5] = I, t[6] = w, t[7] = $) : $ = t[7];
|
|
3217
|
+
const v = $;
|
|
3218
|
+
let A;
|
|
3219
|
+
t[8] !== v || t[9] !== E || t[10] !== a ? (A = {
|
|
3220
|
+
contracts: v,
|
|
3210
3221
|
productType: a,
|
|
3211
3222
|
dataSource: E
|
|
3212
|
-
},
|
|
3213
|
-
const C =
|
|
3223
|
+
}, t[8] = v, t[9] = E, t[10] = a, t[11] = A) : A = t[11];
|
|
3224
|
+
const C = eo(A), {
|
|
3214
3225
|
calculate: N,
|
|
3215
3226
|
initialized: f,
|
|
3216
3227
|
isCalculating: c,
|
|
3217
3228
|
reset: i,
|
|
3218
3229
|
state: l
|
|
3219
3230
|
} = C, d = te(!1);
|
|
3220
|
-
let
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
}, S = [
|
|
3224
|
-
const x =
|
|
3231
|
+
let D, S;
|
|
3232
|
+
t[12] !== v.length || t[13] !== T || t[14] !== w ? (D = () => {
|
|
3233
|
+
v.length === 0 && !w && !d.current && (d.current = !0, T.warning("请先选择一笔合约"));
|
|
3234
|
+
}, S = [v.length, T, w], t[12] = v.length, t[13] = T, t[14] = w, t[15] = D, t[16] = S) : (D = t[15], S = t[16]), pe(D, S);
|
|
3235
|
+
const x = v.length === 0 || w, O = !C.initialized || l.submitting || l.environmentCurvesStatus === "loading", V = [l.resources.discountDefinitions.status, l.resources.customDiscountCurves.status, l.resources.carbonDefinitions.status, l.resources.customCarbonCurves.status].some(ro), z = l.environmentCurvesStatus === "loading";
|
|
3225
3236
|
let W;
|
|
3226
|
-
|
|
3237
|
+
t[17] !== x || t[18] !== c || t[19] !== i ? (W = () => x || c() ? !1 : (i(), !0), t[17] = x, t[18] = c, t[19] = i, t[20] = W) : W = t[20];
|
|
3227
3238
|
const U = W;
|
|
3228
3239
|
let X;
|
|
3229
|
-
|
|
3240
|
+
t[21] !== x || t[22] !== s || t[23] !== c || t[24] !== T || t[25] !== p || t[26] !== a ? (X = () => {
|
|
3230
3241
|
if (x || c())
|
|
3231
3242
|
return !1;
|
|
3232
|
-
const re = s.map(
|
|
3243
|
+
const re = s.map(no).filter(oo);
|
|
3233
3244
|
if (re.length === 0)
|
|
3234
3245
|
return T.info("所选合约成交编号为空,请返回重新选择"), !1;
|
|
3235
3246
|
const he = re.length < s.length, ve = `/price-contracts-list?productType=${encodeURIComponent(a)}&instrumentCodes=${encodeURIComponent(re.join("&"))}&partialInstrumentCodeEmpty=${he}`;
|
|
3236
|
-
return
|
|
3247
|
+
return p ? p(ve) : window.parent?.postMessage({
|
|
3237
3248
|
event: "g-navigate",
|
|
3238
3249
|
payload: {
|
|
3239
3250
|
appId: "GZ0303",
|
|
@@ -3241,16 +3252,16 @@ const eo = ee(function(e, t) {
|
|
|
3241
3252
|
},
|
|
3242
3253
|
timestamp: Date.now()
|
|
3243
3254
|
}, "*"), !0;
|
|
3244
|
-
},
|
|
3255
|
+
}, t[21] = x, t[22] = s, t[23] = c, t[24] = T, t[25] = p, t[26] = a, t[27] = X) : X = t[27];
|
|
3245
3256
|
const Z = X;
|
|
3246
3257
|
let q;
|
|
3247
|
-
|
|
3258
|
+
t[28] !== N || t[29] !== v.length || t[30] !== z || t[31] !== f || t[32] !== c || t[33] !== T || t[34] !== w ? (q = async () => {
|
|
3248
3259
|
if (w)
|
|
3249
3260
|
return {
|
|
3250
3261
|
kind: "blocked",
|
|
3251
3262
|
reason: "overLimit"
|
|
3252
3263
|
};
|
|
3253
|
-
if (
|
|
3264
|
+
if (v.length === 0)
|
|
3254
3265
|
return {
|
|
3255
3266
|
kind: "empty"
|
|
3256
3267
|
};
|
|
@@ -3266,168 +3277,168 @@ const eo = ee(function(e, t) {
|
|
|
3266
3277
|
};
|
|
3267
3278
|
const re = await N();
|
|
3268
3279
|
return re.kind === "invalid" ? T.error("请完成所有定价要素配置") : re.kind === "success" && re.hasExtraItems && T.warning("定价服务返回了多余结果,已按请求顺序忽略"), re;
|
|
3269
|
-
},
|
|
3280
|
+
}, t[28] = N, t[29] = v.length, t[30] = z, t[31] = f, t[32] = c, t[33] = T, t[34] = w, t[35] = q) : q = t[35];
|
|
3270
3281
|
const H = q;
|
|
3271
3282
|
let Q, K;
|
|
3272
|
-
|
|
3283
|
+
t[36] !== H || t[37] !== Z || t[38] !== U ? (Q = () => ({
|
|
3273
3284
|
reset: U,
|
|
3274
3285
|
navigateToPricingPage: Z,
|
|
3275
3286
|
calculate: H
|
|
3276
|
-
}), K = [H, Z, U],
|
|
3287
|
+
}), K = [H, Z, U], t[36] = H, t[37] = Z, t[38] = U, t[39] = Q, t[40] = K) : (Q = t[39], K = t[40]), Ut(u, Q, K);
|
|
3277
3288
|
let j;
|
|
3278
3289
|
e: {
|
|
3279
3290
|
if (w) {
|
|
3280
3291
|
let J;
|
|
3281
|
-
|
|
3292
|
+
t[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ F("div", { className: G.emptyState, children: /* @__PURE__ */ F(Ve, { description: "合约数量超出支持范围" }) }), t[41] = J) : J = t[41], j = J;
|
|
3282
3293
|
break e;
|
|
3283
3294
|
}
|
|
3284
|
-
if (
|
|
3295
|
+
if (v.length === 0) {
|
|
3285
3296
|
let J;
|
|
3286
|
-
|
|
3297
|
+
t[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ F("div", { className: G.emptyState, children: /* @__PURE__ */ F(Ve, { description: "请先选择一笔合约" }) }), t[42] = J) : J = t[42], j = J;
|
|
3287
3298
|
break e;
|
|
3288
3299
|
}
|
|
3289
3300
|
if (_) {
|
|
3290
|
-
const J =
|
|
3301
|
+
const J = v[0], Ae = l.resultByContractId[J.contractId], tu = !C.initialized || l.submitting;
|
|
3291
3302
|
let Ue;
|
|
3292
|
-
|
|
3303
|
+
t[43] !== J || t[44] !== Ae || t[45] !== tu ? (Ue = /* @__PURE__ */ F(fn, { contract: J, calculation: Ae, loading: tu }), t[43] = J, t[44] = Ae, t[45] = tu, t[46] = Ue) : Ue = t[46], j = Ue;
|
|
3293
3304
|
break e;
|
|
3294
3305
|
}
|
|
3295
|
-
const re =
|
|
3306
|
+
const re = B === "single", he = !C.initialized || l.submitting;
|
|
3296
3307
|
let ve;
|
|
3297
|
-
|
|
3308
|
+
t[47] !== v || t[48] !== l.resultByContractId || t[49] !== re || t[50] !== he ? (ve = /* @__PURE__ */ F(Bn, { single: re, contracts: v, results: l.resultByContractId, loading: he }), t[47] = v, t[48] = l.resultByContractId, t[49] = re, t[50] = he, t[51] = ve) : ve = t[51], j = ve;
|
|
3298
3309
|
}
|
|
3299
3310
|
const ue = j;
|
|
3300
3311
|
let ne;
|
|
3301
|
-
|
|
3312
|
+
t[52] !== g || t[53] !== b ? (ne = gu(G.root, b, g), t[52] = g, t[53] = b, t[54] = ne) : ne = t[54];
|
|
3302
3313
|
const le = l.submitting ? "submitting" : C.initialized ? "ready" : "loading", se = !C.initialized;
|
|
3303
3314
|
let ce;
|
|
3304
|
-
|
|
3315
|
+
t[55] !== y ? (ce = y ? null : /* @__PURE__ */ F("h3", { className: G.sectionTitle, children: "定价要素" }), t[55] = y, t[56] = ce) : ce = t[56];
|
|
3305
3316
|
let oe;
|
|
3306
|
-
|
|
3317
|
+
t[57] !== w || t[58] !== h ? (oe = w ? /* @__PURE__ */ F(Ye, { className: G.limitAlert, type: "error", showIcon: !0, title: `最多支持1000笔,当前${h}笔,请返回重新选择` }) : null, t[57] = w, t[58] = h, t[59] = oe) : oe = t[59];
|
|
3307
3318
|
let Be;
|
|
3308
|
-
|
|
3319
|
+
t[60] !== C ? (Be = (re) => {
|
|
3309
3320
|
C.retryResource(re);
|
|
3310
|
-
},
|
|
3321
|
+
}, t[60] = C, t[61] = Be) : Be = t[61];
|
|
3311
3322
|
let me;
|
|
3312
|
-
|
|
3323
|
+
t[62] !== l.resources || t[63] !== Be ? (me = /* @__PURE__ */ F(Ln, { resources: l.resources, onRetry: Be }), t[62] = l.resources, t[63] = Be, t[64] = me) : me = t[64];
|
|
3313
3324
|
let Ee;
|
|
3314
|
-
|
|
3325
|
+
t[65] !== C.retryEnvironmentCurves || t[66] !== l.environmentCurvesAttempts || t[67] !== l.environmentCurvesError || t[68] !== l.environmentCurvesStatus ? (Ee = l.environmentCurvesStatus === "error" ? /* @__PURE__ */ F(Ye, { type: "error", showIcon: !0, title: "环境关联曲线加载失败", description: l.environmentCurvesError, action: /* @__PURE__ */ F(Le, { size: "small", disabled: l.environmentCurvesAttempts >= 3, onClick: C.retryEnvironmentCurves, children: "重试" }) }) : null, t[65] = C.retryEnvironmentCurves, t[66] = l.environmentCurvesAttempts, t[67] = l.environmentCurvesError, t[68] = l.environmentCurvesStatus, t[69] = Ee) : Ee = t[69];
|
|
3315
3326
|
const Se = l.resources.environments.status === "loading", Te = V || z;
|
|
3316
3327
|
let Fe;
|
|
3317
|
-
|
|
3328
|
+
t[70] !== C.carbonForwardCurves || t[71] !== C.discountCurves || t[72] !== C.setContext || t[73] !== z || t[74] !== k || t[75] !== B || t[76] !== l.context || t[77] !== l.contextErrors || t[78] !== l.resources.environments.data || t[79] !== l.submitting || t[80] !== Se || t[81] !== Te ? (Fe = /* @__PURE__ */ F(Mn, { mode: B, layout: k, value: l.context, errors: l.contextErrors, environments: l.resources.environments.data, discountCurves: C.discountCurves, carbonForwardCurves: C.carbonForwardCurves, environmentsLoading: Se, curvesLoading: Te, curvesDisabled: z, disabled: l.submitting, onChange: C.setContext }), t[70] = C.carbonForwardCurves, t[71] = C.discountCurves, t[72] = C.setContext, t[73] = z, t[74] = k, t[75] = B, t[76] = l.context, t[77] = l.contextErrors, t[78] = l.resources.environments.data, t[79] = l.submitting, t[80] = Se, t[81] = Te, t[82] = Fe) : Fe = t[82];
|
|
3318
3329
|
let xe;
|
|
3319
|
-
|
|
3330
|
+
t[83] !== ce || t[84] !== oe || t[85] !== me || t[86] !== Ee || t[87] !== Fe ? (xe = /* @__PURE__ */ ke("div", { className: G.section, children: [
|
|
3320
3331
|
ce,
|
|
3321
3332
|
oe,
|
|
3322
3333
|
me,
|
|
3323
3334
|
Ee,
|
|
3324
3335
|
Fe
|
|
3325
|
-
] }),
|
|
3336
|
+
] }), t[83] = ce, t[84] = oe, t[85] = me, t[86] = Ee, t[87] = Fe, t[88] = xe) : xe = t[88];
|
|
3326
3337
|
let we;
|
|
3327
|
-
|
|
3338
|
+
t[89] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (we = /* @__PURE__ */ F("div", { className: G.sectionTitle, children: "定价结果" }), t[89] = we) : we = t[89];
|
|
3328
3339
|
let ye;
|
|
3329
|
-
|
|
3340
|
+
t[90] !== ue ? (ye = /* @__PURE__ */ ke("div", { className: G.section, children: [
|
|
3330
3341
|
we,
|
|
3331
3342
|
ue
|
|
3332
|
-
] }),
|
|
3343
|
+
] }), t[90] = ue, t[91] = ye) : ye = t[91];
|
|
3333
3344
|
let Ce;
|
|
3334
|
-
|
|
3345
|
+
t[92] !== x || t[93] !== O || t[94] !== H || t[95] !== Z || t[96] !== U || t[97] !== k || t[98] !== B || t[99] !== R || t[100] !== l.submitting ? (Ce = R ? /* @__PURE__ */ F(Rn, { mode: B, layout: k, allDisabled: x, calculateDisabled: O, submitting: l.submitting, onReset: U, onNavigateToPricingPage: Z, onCalculate: () => {
|
|
3335
3346
|
H();
|
|
3336
|
-
} }) : null,
|
|
3347
|
+
} }) : null, t[92] = x, t[93] = O, t[94] = H, t[95] = Z, t[96] = U, t[97] = k, t[98] = B, t[99] = R, t[100] = l.submitting, t[101] = Ce) : Ce = t[101];
|
|
3337
3348
|
let fe;
|
|
3338
|
-
|
|
3349
|
+
t[102] !== se || t[103] !== xe || t[104] !== ye || t[105] !== Ce ? (fe = /* @__PURE__ */ ke(hu, { spinning: se, description: "定价资源加载中", children: [
|
|
3339
3350
|
xe,
|
|
3340
3351
|
ye,
|
|
3341
3352
|
Ce
|
|
3342
|
-
] }),
|
|
3353
|
+
] }), t[102] = se, t[103] = xe, t[104] = ye, t[105] = Ce, t[106] = fe) : fe = t[106];
|
|
3343
3354
|
let be;
|
|
3344
|
-
return
|
|
3355
|
+
return t[107] !== M || t[108] !== ne || t[109] !== le || t[110] !== fe ? (be = /* @__PURE__ */ F("section", { className: ne, style: M, "aria-label": "交易合约试定价", "data-status": le, children: fe }), t[107] = M, t[108] = ne, t[109] = le, t[110] = fe, t[111] = be) : be = t[111], be;
|
|
3345
3356
|
});
|
|
3346
|
-
|
|
3347
|
-
function
|
|
3357
|
+
uo.displayName = "IndicativePricingforSelectedContracts";
|
|
3358
|
+
function to(r, e) {
|
|
3348
3359
|
return Object.freeze({
|
|
3349
3360
|
...r,
|
|
3350
3361
|
contractId: `contract-${String(e + 1).padStart(3, "0")}`
|
|
3351
3362
|
});
|
|
3352
3363
|
}
|
|
3353
|
-
function
|
|
3364
|
+
function ro(r) {
|
|
3354
3365
|
return r === "loading";
|
|
3355
3366
|
}
|
|
3356
|
-
function
|
|
3367
|
+
function no(r) {
|
|
3357
3368
|
return r.instrumentCode?.trim();
|
|
3358
3369
|
}
|
|
3359
|
-
function
|
|
3370
|
+
function oo(r) {
|
|
3360
3371
|
return !!r;
|
|
3361
3372
|
}
|
|
3362
3373
|
const $t = ee((r, e) => {
|
|
3363
|
-
const
|
|
3364
|
-
let
|
|
3365
|
-
|
|
3366
|
-
children:
|
|
3374
|
+
const u = Y.c(7);
|
|
3375
|
+
let t, n;
|
|
3376
|
+
u[0] !== r ? ({
|
|
3377
|
+
children: t,
|
|
3367
3378
|
...n
|
|
3368
|
-
} = r,
|
|
3379
|
+
} = r, u[0] = r, u[1] = t, u[2] = n) : (t = u[1], n = u[2]);
|
|
3369
3380
|
let o;
|
|
3370
|
-
return
|
|
3381
|
+
return u[3] !== t || u[4] !== e || u[5] !== n ? (o = /* @__PURE__ */ F(fu.Group, { ref: e, ...n, children: t }), u[3] = t, u[4] = e, u[5] = n, u[6] = o) : o = u[6], o;
|
|
3371
3382
|
});
|
|
3372
3383
|
$t.displayName = "GZRadioGroup";
|
|
3373
3384
|
const It = ee((r, e) => {
|
|
3374
|
-
const
|
|
3375
|
-
let
|
|
3376
|
-
|
|
3377
|
-
children:
|
|
3385
|
+
const u = Y.c(7);
|
|
3386
|
+
let t, n;
|
|
3387
|
+
u[0] !== r ? ({
|
|
3388
|
+
children: t,
|
|
3378
3389
|
...n
|
|
3379
|
-
} = r,
|
|
3390
|
+
} = r, u[0] = r, u[1] = t, u[2] = n) : (t = u[1], n = u[2]);
|
|
3380
3391
|
const o = e;
|
|
3381
3392
|
let a;
|
|
3382
|
-
return
|
|
3393
|
+
return u[3] !== t || u[4] !== n || u[5] !== o ? (a = /* @__PURE__ */ F(fu.Button, { ref: o, ...n, children: t }), u[3] = t, u[4] = n, u[5] = o, u[6] = a) : a = u[6], a;
|
|
3383
3394
|
});
|
|
3384
3395
|
It.displayName = "GZRadioButton";
|
|
3385
|
-
const
|
|
3386
|
-
const
|
|
3387
|
-
let
|
|
3388
|
-
|
|
3389
|
-
children:
|
|
3396
|
+
const ao = ee((r, e) => {
|
|
3397
|
+
const u = Y.c(7);
|
|
3398
|
+
let t, n;
|
|
3399
|
+
u[0] !== r ? ({
|
|
3400
|
+
children: t,
|
|
3390
3401
|
...n
|
|
3391
|
-
} = r,
|
|
3402
|
+
} = r, u[0] = r, u[1] = t, u[2] = n) : (t = u[1], n = u[2]);
|
|
3392
3403
|
const o = e;
|
|
3393
3404
|
let a;
|
|
3394
|
-
return
|
|
3395
|
-
}), uu =
|
|
3405
|
+
return u[3] !== t || u[4] !== n || u[5] !== o ? (a = /* @__PURE__ */ F(fu, { ref: o, ...n, children: t }), u[3] = t, u[4] = n, u[5] = o, u[6] = a) : a = u[6], a;
|
|
3406
|
+
}), uu = ao;
|
|
3396
3407
|
uu.Group = $t;
|
|
3397
3408
|
uu.Button = It;
|
|
3398
3409
|
uu.displayName = "GZRadio";
|
|
3399
3410
|
const Yu = "-";
|
|
3400
|
-
function
|
|
3401
|
-
const
|
|
3402
|
-
return Number.isFinite(
|
|
3411
|
+
function io(r, e) {
|
|
3412
|
+
const u = Date.parse(r), t = Date.parse(e);
|
|
3413
|
+
return Number.isFinite(u) && Number.isFinite(t) ? u - t : r.localeCompare(e);
|
|
3403
3414
|
}
|
|
3404
|
-
function
|
|
3415
|
+
function lo(r) {
|
|
3405
3416
|
return r.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3");
|
|
3406
3417
|
}
|
|
3407
|
-
function
|
|
3418
|
+
function so(r) {
|
|
3408
3419
|
const e = new Date(r);
|
|
3409
3420
|
e.setDate(e.getDate() - 1);
|
|
3410
|
-
const
|
|
3411
|
-
return `${
|
|
3421
|
+
const u = e.getFullYear(), t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
|
|
3422
|
+
return `${u}${t}${n}`;
|
|
3412
3423
|
}
|
|
3413
|
-
function
|
|
3424
|
+
function co(r) {
|
|
3414
3425
|
return r.map(({
|
|
3415
3426
|
busnsDate: e,
|
|
3416
|
-
valtnPrice:
|
|
3417
|
-
mval:
|
|
3427
|
+
valtnPrice: u,
|
|
3428
|
+
mval: t,
|
|
3418
3429
|
tradeCrrc: n
|
|
3419
3430
|
}) => ({
|
|
3420
|
-
date:
|
|
3421
|
-
price:
|
|
3422
|
-
npv:
|
|
3431
|
+
date: lo(e),
|
|
3432
|
+
price: u,
|
|
3433
|
+
npv: t,
|
|
3423
3434
|
currency: n
|
|
3424
3435
|
}));
|
|
3425
3436
|
}
|
|
3426
3437
|
function Rt(r, e) {
|
|
3427
|
-
const
|
|
3428
|
-
return [...r].sort((
|
|
3438
|
+
const u = e === "ascending" ? 1 : -1;
|
|
3439
|
+
return [...r].sort((t, n) => u * io(t.date, n.date));
|
|
3429
3440
|
}
|
|
3430
|
-
function
|
|
3441
|
+
function mo(r) {
|
|
3431
3442
|
if (r == null || typeof r == "string" && r.trim() === "")
|
|
3432
3443
|
return 0;
|
|
3433
3444
|
try {
|
|
@@ -3444,17 +3455,17 @@ function Pt(r) {
|
|
|
3444
3455
|
return !1;
|
|
3445
3456
|
}
|
|
3446
3457
|
}
|
|
3447
|
-
function mu(r, e,
|
|
3458
|
+
function mu(r, e, u) {
|
|
3448
3459
|
if (r == null || r === "") return Yu;
|
|
3449
|
-
let
|
|
3460
|
+
let t;
|
|
3450
3461
|
try {
|
|
3451
|
-
|
|
3462
|
+
t = new Ge(r).toFixed(2);
|
|
3452
3463
|
} catch {
|
|
3453
3464
|
return Yu;
|
|
3454
3465
|
}
|
|
3455
|
-
const n =
|
|
3466
|
+
const n = t.startsWith("-"), [o, a] = (n ? t.slice(1) : t).split("."), s = o.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
3456
3467
|
try {
|
|
3457
|
-
const E = new Intl.NumberFormat(
|
|
3468
|
+
const E = new Intl.NumberFormat(u, {
|
|
3458
3469
|
style: "currency",
|
|
3459
3470
|
currency: e,
|
|
3460
3471
|
currencyDisplay: "narrowSymbol"
|
|
@@ -3464,22 +3475,22 @@ function mu(r, e, t) {
|
|
|
3464
3475
|
return `${n ? "-" : ""}${e} ${s}.${a}`;
|
|
3465
3476
|
}
|
|
3466
3477
|
}
|
|
3467
|
-
function
|
|
3478
|
+
function Eo(r) {
|
|
3468
3479
|
const e = /^(\d{4})-(\d{2})-(\d{2})/.exec(r);
|
|
3469
3480
|
return e ? `${e[1].slice(2)}-${e[2]}-${e[3]}` : r;
|
|
3470
3481
|
}
|
|
3471
|
-
const Gu = 0.05, Lt = 7,
|
|
3482
|
+
const Gu = 0.05, Lt = 7, Fo = [8, 8];
|
|
3472
3483
|
function Nt(r) {
|
|
3473
3484
|
return r.filter((e) => typeof e == "number" && Number.isFinite(e));
|
|
3474
3485
|
}
|
|
3475
|
-
function
|
|
3486
|
+
function Co(r) {
|
|
3476
3487
|
const e = Nt(r);
|
|
3477
3488
|
if (e.length === 0) return {};
|
|
3478
|
-
const
|
|
3479
|
-
return
|
|
3489
|
+
const u = Math.min(...e), t = Math.max(...e), n = t - u, o = n > 0 ? n * Gu : t !== 0 ? Math.abs(t) * Gu : 1, a = u - o, s = t + o;
|
|
3490
|
+
return u >= 0 ? {
|
|
3480
3491
|
min: Math.max(0, a),
|
|
3481
3492
|
max: s
|
|
3482
|
-
} :
|
|
3493
|
+
} : t <= 0 ? {
|
|
3483
3494
|
min: a,
|
|
3484
3495
|
max: Math.min(0, s)
|
|
3485
3496
|
} : {
|
|
@@ -3487,14 +3498,14 @@ function Fo(r) {
|
|
|
3487
3498
|
max: s
|
|
3488
3499
|
};
|
|
3489
3500
|
}
|
|
3490
|
-
function
|
|
3501
|
+
function fo(r) {
|
|
3491
3502
|
const e = Nt(r);
|
|
3492
3503
|
if (e.length === 0)
|
|
3493
3504
|
return {
|
|
3494
3505
|
position: "bottom",
|
|
3495
3506
|
onZero: !1
|
|
3496
3507
|
};
|
|
3497
|
-
const
|
|
3508
|
+
const u = Math.min(...e), t = Math.max(...e), n = t <= 0 && u < 0 ? "top" : "bottom", o = u <= 0 && t >= 0;
|
|
3498
3509
|
return {
|
|
3499
3510
|
position: n,
|
|
3500
3511
|
onZero: o
|
|
@@ -3503,30 +3514,30 @@ function Co(r) {
|
|
|
3503
3514
|
function Je(r, e) {
|
|
3504
3515
|
return Number(r.toFixed(Math.min(Math.max(e, 0), 20)));
|
|
3505
3516
|
}
|
|
3506
|
-
function
|
|
3507
|
-
const
|
|
3508
|
-
return Je(a * n, -
|
|
3517
|
+
function go(r, e) {
|
|
3518
|
+
const u = (e - r) / Lt, t = Math.floor(Math.log10(u)), n = 10 ** t, o = u / n, a = o < 1.5 ? 1 : o < 2.5 ? 2 : o < 4 ? 3 : o < 7 ? 5 : 10;
|
|
3519
|
+
return Je(a * n, -t);
|
|
3509
3520
|
}
|
|
3510
|
-
function
|
|
3521
|
+
function po({
|
|
3511
3522
|
min: r,
|
|
3512
3523
|
max: e
|
|
3513
3524
|
}) {
|
|
3514
3525
|
if (r == null || e == null || r >= e) return;
|
|
3515
|
-
const
|
|
3516
|
-
for (let s = n; s <= o; s = Je(s +
|
|
3526
|
+
const u = go(r, e), t = Math.max(0, -Math.floor(Math.log10(u))) + 2, n = Je(Math.ceil(r / u) * u, t), o = Je(Math.floor(e / u) * u, t), a = r < n ? [r] : [];
|
|
3527
|
+
for (let s = n; s <= o; s = Je(s + u, t))
|
|
3517
3528
|
a.push(s);
|
|
3518
3529
|
return e > o && a.push(e), r < 0 && e > 0 ? a.filter((s) => s !== 0) : a;
|
|
3519
3530
|
}
|
|
3520
|
-
function
|
|
3531
|
+
function ho({
|
|
3521
3532
|
data: r,
|
|
3522
3533
|
metric: e,
|
|
3523
|
-
currency:
|
|
3524
|
-
locale:
|
|
3534
|
+
currency: u,
|
|
3535
|
+
locale: t,
|
|
3525
3536
|
theme: n
|
|
3526
3537
|
}) {
|
|
3527
|
-
const o = Rt(r, "ascending"), a = e === "price" ? "价格" : "NPV", s = o.map((M) =>
|
|
3538
|
+
const o = Rt(r, "ascending"), a = e === "price" ? "价格" : "NPV", s = o.map((M) => mo(M[e])), E = Co(s), m = fo(s), p = po(E), g = o.map(({
|
|
3528
3539
|
date: M
|
|
3529
|
-
}) =>
|
|
3540
|
+
}) => Eo(M));
|
|
3530
3541
|
return {
|
|
3531
3542
|
// 数据或指标切换时使用 300ms 过渡动画。
|
|
3532
3543
|
animationDuration: 300,
|
|
@@ -3570,7 +3581,7 @@ function po({
|
|
|
3570
3581
|
fontSize: n.fontSize
|
|
3571
3582
|
},
|
|
3572
3583
|
// 按当前币种和区域格式化提示框中的金额。
|
|
3573
|
-
valueFormatter: (M) => mu(typeof M == "number" || typeof M == "string" ? M : null,
|
|
3584
|
+
valueFormatter: (M) => mu(typeof M == "number" || typeof M == "string" ? M : null, u, t)
|
|
3574
3585
|
},
|
|
3575
3586
|
// 日期标签轴与符号基准线分离,避免全负数据把日期标签一起移动到顶部。
|
|
3576
3587
|
xAxis: [{
|
|
@@ -3635,7 +3646,7 @@ function po({
|
|
|
3635
3646
|
axisTick: {
|
|
3636
3647
|
// 隐藏纵轴刻度短线。
|
|
3637
3648
|
show: !1,
|
|
3638
|
-
customValues:
|
|
3649
|
+
customValues: p
|
|
3639
3650
|
},
|
|
3640
3651
|
// 隐藏纵轴自身的竖直轴线,减少视觉干扰。
|
|
3641
3652
|
axisLine: {
|
|
@@ -3647,7 +3658,7 @@ function po({
|
|
|
3647
3658
|
// 纵轴标签使用主题次级文字色。
|
|
3648
3659
|
color: n.textSecondary,
|
|
3649
3660
|
// 刻度最多展示两位小数,并按当前区域添加数字分组格式。
|
|
3650
|
-
formatter: (M) => new Intl.NumberFormat(
|
|
3661
|
+
formatter: (M) => new Intl.NumberFormat(t, {
|
|
3651
3662
|
maximumFractionDigits: 2
|
|
3652
3663
|
}).format(M)
|
|
3653
3664
|
},
|
|
@@ -3661,7 +3672,7 @@ function po({
|
|
|
3661
3672
|
// 颜色读取当前 gz-ui 主题的分割线 Token。
|
|
3662
3673
|
color: n.split,
|
|
3663
3674
|
// 使用统一的线段与间隔长度绘制虚线。
|
|
3664
|
-
type:
|
|
3675
|
+
type: Fo
|
|
3665
3676
|
}
|
|
3666
3677
|
}
|
|
3667
3678
|
},
|
|
@@ -3703,43 +3714,43 @@ function po({
|
|
|
3703
3714
|
}]
|
|
3704
3715
|
};
|
|
3705
3716
|
}
|
|
3706
|
-
const
|
|
3707
|
-
root:
|
|
3708
|
-
title:
|
|
3709
|
-
loading:
|
|
3710
|
-
content:
|
|
3711
|
-
tablePanel:
|
|
3712
|
-
chartPanel:
|
|
3713
|
-
table:
|
|
3714
|
-
negativeValue:
|
|
3715
|
-
chartHeader:
|
|
3716
|
-
chartTitle:
|
|
3717
|
-
chart:
|
|
3718
|
-
chartEmpty:
|
|
3719
|
-
chartScrollable:
|
|
3720
|
-
chartCanvas:
|
|
3717
|
+
const vo = "_root_nkh0k_1", Do = "_title_nkh0k_12", Bo = "_loading_nkh0k_19", yo = "_content_nkh0k_26", bo = "_tablePanel_nkh0k_32", Ao = "_chartPanel_nkh0k_33", So = "_table_nkh0k_32", To = "_negativeValue_nkh0k_69", xo = "_chartHeader_nkh0k_76", ko = "_chartTitle_nkh0k_85", wo = "_chart_nkh0k_33", Mo = "_chartEmpty_nkh0k_93", _o = "_chartScrollable_nkh0k_102", $o = "_chartCanvas_nkh0k_142", ie = {
|
|
3718
|
+
root: vo,
|
|
3719
|
+
title: Do,
|
|
3720
|
+
loading: Bo,
|
|
3721
|
+
content: yo,
|
|
3722
|
+
tablePanel: bo,
|
|
3723
|
+
chartPanel: Ao,
|
|
3724
|
+
table: So,
|
|
3725
|
+
negativeValue: To,
|
|
3726
|
+
chartHeader: xo,
|
|
3727
|
+
chartTitle: ko,
|
|
3728
|
+
chart: wo,
|
|
3729
|
+
chartEmpty: Mo,
|
|
3730
|
+
chartScrollable: _o,
|
|
3731
|
+
chartCanvas: $o
|
|
3721
3732
|
};
|
|
3722
|
-
Ju.use([
|
|
3723
|
-
const Hu = 10,
|
|
3724
|
-
function
|
|
3733
|
+
Ju.use([ur, tr, rr, nr]);
|
|
3734
|
+
const Hu = 10, Io = 800;
|
|
3735
|
+
function Ro(r) {
|
|
3725
3736
|
const e = Y.c(29), {
|
|
3726
|
-
data:
|
|
3727
|
-
metric:
|
|
3737
|
+
data: u,
|
|
3738
|
+
metric: t,
|
|
3728
3739
|
currency: n,
|
|
3729
3740
|
locale: o,
|
|
3730
3741
|
theme: a,
|
|
3731
3742
|
className: s
|
|
3732
|
-
} = r, E = te(null), m = te(null),
|
|
3733
|
-
let
|
|
3734
|
-
e[0] !== n || e[1] !==
|
|
3735
|
-
data:
|
|
3736
|
-
metric:
|
|
3743
|
+
} = r, E = te(null), m = te(null), p = te(null), g = u.length > Hu, M = `${Math.max(u.length / Hu, 1) * 100}%`;
|
|
3744
|
+
let B;
|
|
3745
|
+
e[0] !== n || e[1] !== u || e[2] !== o || e[3] !== t || e[4] !== a ? (B = ho({
|
|
3746
|
+
data: u,
|
|
3747
|
+
metric: t,
|
|
3737
3748
|
currency: n,
|
|
3738
3749
|
locale: o,
|
|
3739
3750
|
theme: a
|
|
3740
|
-
}), e[0] = n, e[1] =
|
|
3741
|
-
const k =
|
|
3742
|
-
let R,
|
|
3751
|
+
}), e[0] = n, e[1] = u, e[2] = o, e[3] = t, e[4] = a, e[5] = B) : B = e[5];
|
|
3752
|
+
const k = B;
|
|
3753
|
+
let R, y;
|
|
3743
3754
|
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = () => {
|
|
3744
3755
|
const C = m.current;
|
|
3745
3756
|
if (!C)
|
|
@@ -3747,18 +3758,18 @@ function Io(r) {
|
|
|
3747
3758
|
const N = Ju.init(C, void 0, {
|
|
3748
3759
|
renderer: "canvas"
|
|
3749
3760
|
});
|
|
3750
|
-
|
|
3761
|
+
p.current = N;
|
|
3751
3762
|
const f = () => N.resize(), c = typeof ResizeObserver > "u" ? null : new ResizeObserver(f);
|
|
3752
3763
|
return c ? c.observe(C) : window.addEventListener("resize", f), () => {
|
|
3753
|
-
c?.disconnect(), window.removeEventListener("resize", f), N.dispose(),
|
|
3764
|
+
c?.disconnect(), window.removeEventListener("resize", f), N.dispose(), p.current = null;
|
|
3754
3765
|
};
|
|
3755
|
-
},
|
|
3756
|
-
let _,
|
|
3766
|
+
}, y = [], e[6] = R, e[7] = y) : (R = e[6], y = e[7]), xu(R, y);
|
|
3767
|
+
let _, b;
|
|
3757
3768
|
e[8] !== k ? (_ = () => {
|
|
3758
|
-
|
|
3769
|
+
p.current?.setOption(k, {
|
|
3759
3770
|
notMerge: !0
|
|
3760
3771
|
});
|
|
3761
|
-
},
|
|
3772
|
+
}, b = [k], e[8] = k, e[9] = _, e[10] = b) : (_ = e[9], b = e[10]), pe(_, b);
|
|
3762
3773
|
let T, P;
|
|
3763
3774
|
e[11] !== g ? (T = () => {
|
|
3764
3775
|
const C = E.current;
|
|
@@ -3768,7 +3779,7 @@ function Io(r) {
|
|
|
3768
3779
|
const f = () => {
|
|
3769
3780
|
C.dataset.scrolling = "true", window.clearTimeout(N), N = window.setTimeout(() => {
|
|
3770
3781
|
delete C.dataset.scrolling;
|
|
3771
|
-
},
|
|
3782
|
+
}, Io);
|
|
3772
3783
|
};
|
|
3773
3784
|
return C.addEventListener("scroll", f, {
|
|
3774
3785
|
passive: !0
|
|
@@ -3782,24 +3793,24 @@ function Io(r) {
|
|
|
3782
3793
|
!C || !g || (C.scrollLeft = C.scrollWidth - C.clientWidth);
|
|
3783
3794
|
}, e[14] = g, e[15] = I) : I = e[15];
|
|
3784
3795
|
let L;
|
|
3785
|
-
e[16] !==
|
|
3786
|
-
const
|
|
3796
|
+
e[16] !== u || e[17] !== g ? (L = [u, g], e[16] = u, e[17] = g, e[18] = L) : L = e[18], xu(I, L);
|
|
3797
|
+
const h = t === "price" ? "价格" : "NPV";
|
|
3787
3798
|
let w;
|
|
3788
3799
|
e[19] !== s || e[20] !== g ? (w = gu(s, {
|
|
3789
3800
|
[ie.chartScrollable]: g
|
|
3790
3801
|
}), e[19] = s, e[20] = g, e[21] = w) : w = e[21];
|
|
3791
|
-
const $ = `按日期展示的${
|
|
3792
|
-
let
|
|
3793
|
-
e[22] !== M ? (
|
|
3802
|
+
const $ = `按日期展示的${h}折线图`;
|
|
3803
|
+
let v;
|
|
3804
|
+
e[22] !== M ? (v = /* @__PURE__ */ F("div", { ref: m, className: ie.chartCanvas, style: {
|
|
3794
3805
|
width: M
|
|
3795
|
-
} }), e[22] = M, e[23] =
|
|
3796
|
-
let
|
|
3797
|
-
return e[24] !== g || e[25] !== w || e[26] !== $ || e[27] !==
|
|
3806
|
+
} }), e[22] = M, e[23] = v) : v = e[23];
|
|
3807
|
+
let A;
|
|
3808
|
+
return e[24] !== g || e[25] !== w || e[26] !== $ || e[27] !== v ? (A = /* @__PURE__ */ F("div", { ref: E, className: w, role: "img", "aria-label": $, "data-scrollable": g, children: v }), e[24] = g, e[25] = w, e[26] = $, e[27] = v, e[28] = A) : A = e[28], A;
|
|
3798
3809
|
}
|
|
3799
|
-
const
|
|
3810
|
+
const Po = "数据加载失败,请稍后重试", au = [], Lo = "CNY", iu = "zh-CN", Ot = 32, Vt = 28, zt = 7, No = Ot + Vt * zt + 2, Oo = {
|
|
3800
3811
|
suppressHeaderMenuButton: !0,
|
|
3801
3812
|
suppressHeaderContextMenu: !0
|
|
3802
|
-
},
|
|
3813
|
+
}, Vo = {
|
|
3803
3814
|
root: {
|
|
3804
3815
|
margin: 0
|
|
3805
3816
|
},
|
|
@@ -3811,26 +3822,26 @@ const Ro = "数据加载失败,请稍后重试", au = [], Po = "CNY", iu = "zh
|
|
|
3811
3822
|
};
|
|
3812
3823
|
function Yt(r) {
|
|
3813
3824
|
const e = Y.c(4), {
|
|
3814
|
-
ariaLabel:
|
|
3815
|
-
className:
|
|
3825
|
+
ariaLabel: u,
|
|
3826
|
+
className: t
|
|
3816
3827
|
} = r;
|
|
3817
3828
|
let n;
|
|
3818
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ F(Ve, { image: Ve.PRESENTED_IMAGE_SIMPLE, description: "暂无数据", styles:
|
|
3829
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ F(Ve, { image: Ve.PRESENTED_IMAGE_SIMPLE, description: "暂无数据", styles: Vo }), e[0] = n) : n = e[0];
|
|
3819
3830
|
let o;
|
|
3820
|
-
return e[1] !==
|
|
3831
|
+
return e[1] !== u || e[2] !== t ? (o = /* @__PURE__ */ F("div", { className: t, role: "status", "aria-label": u, children: n }), e[1] = u, e[2] = t, e[3] = o) : o = e[3], o;
|
|
3821
3832
|
}
|
|
3822
|
-
function
|
|
3833
|
+
function zo() {
|
|
3823
3834
|
const r = Y.c(1);
|
|
3824
3835
|
let e;
|
|
3825
3836
|
return r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ F(Yt, { ariaLabel: "暂无估值日志数据" }), r[0] = e) : e = r[0], e;
|
|
3826
3837
|
}
|
|
3827
|
-
function
|
|
3838
|
+
function Yo(r) {
|
|
3828
3839
|
return r instanceof DOMException && r.name === "AbortError";
|
|
3829
3840
|
}
|
|
3830
|
-
function
|
|
3841
|
+
function na(r) {
|
|
3831
3842
|
const e = Y.c(67), {
|
|
3832
|
-
adapter:
|
|
3833
|
-
allVarCodeSnum:
|
|
3843
|
+
adapter: u,
|
|
3844
|
+
allVarCodeSnum: t,
|
|
3834
3845
|
className: n,
|
|
3835
3846
|
style: o
|
|
3836
3847
|
} = r, {
|
|
@@ -3839,48 +3850,48 @@ function ra(r) {
|
|
|
3839
3850
|
token: s
|
|
3840
3851
|
} = Xu.useToken();
|
|
3841
3852
|
let E;
|
|
3842
|
-
e[0] !==
|
|
3843
|
-
adapter:
|
|
3844
|
-
allVarCodeSnum:
|
|
3853
|
+
e[0] !== u || e[1] !== t ? (E = () => ({
|
|
3854
|
+
adapter: u,
|
|
3855
|
+
allVarCodeSnum: t,
|
|
3845
3856
|
status: "loading",
|
|
3846
3857
|
data: au
|
|
3847
|
-
}), e[0] =
|
|
3848
|
-
const [m,
|
|
3849
|
-
let
|
|
3850
|
-
e[3] !==
|
|
3858
|
+
}), e[0] = u, e[1] = t, e[2] = E) : E = e[2];
|
|
3859
|
+
const [m, p] = Oe(E), [g, M] = Oe("price"), B = m.adapter === u && m.allVarCodeSnum === t, k = B ? m.status : "loading", R = B ? m.data : au;
|
|
3860
|
+
let y, _;
|
|
3861
|
+
e[3] !== u || e[4] !== t || e[5] !== a ? (y = () => {
|
|
3851
3862
|
const j = new AbortController();
|
|
3852
3863
|
let ue = !0;
|
|
3853
3864
|
const ne = {
|
|
3854
|
-
allVarCodeSnum:
|
|
3855
|
-
endTime:
|
|
3865
|
+
allVarCodeSnum: t,
|
|
3866
|
+
endTime: so(/* @__PURE__ */ new Date()),
|
|
3856
3867
|
size: "30"
|
|
3857
3868
|
};
|
|
3858
|
-
return
|
|
3869
|
+
return u.getValuationLogs(ne, {
|
|
3859
3870
|
signal: j.signal
|
|
3860
3871
|
}).then((le) => {
|
|
3861
3872
|
if (!ue)
|
|
3862
3873
|
return;
|
|
3863
|
-
const se =
|
|
3864
|
-
|
|
3865
|
-
adapter:
|
|
3866
|
-
allVarCodeSnum:
|
|
3874
|
+
const se = co(le);
|
|
3875
|
+
p({
|
|
3876
|
+
adapter: u,
|
|
3877
|
+
allVarCodeSnum: t,
|
|
3867
3878
|
status: se.length === 0 ? "empty" : "success",
|
|
3868
3879
|
data: se
|
|
3869
3880
|
});
|
|
3870
3881
|
}).catch((le) => {
|
|
3871
|
-
!ue || j.signal.aborted ||
|
|
3872
|
-
adapter:
|
|
3873
|
-
allVarCodeSnum:
|
|
3882
|
+
!ue || j.signal.aborted || Yo(le) || (p({
|
|
3883
|
+
adapter: u,
|
|
3884
|
+
allVarCodeSnum: t,
|
|
3874
3885
|
status: "error",
|
|
3875
3886
|
data: au
|
|
3876
|
-
}), a.error(
|
|
3887
|
+
}), a.error(Po));
|
|
3877
3888
|
}), () => {
|
|
3878
3889
|
ue = !1, j.abort();
|
|
3879
3890
|
};
|
|
3880
|
-
}, _ = [
|
|
3881
|
-
let
|
|
3882
|
-
e[8] !== R ? (
|
|
3883
|
-
const T =
|
|
3891
|
+
}, _ = [u, t, a], e[3] = u, e[4] = t, e[5] = a, e[6] = y, e[7] = _) : (y = e[6], _ = e[7]), pe(y, _);
|
|
3892
|
+
let b;
|
|
3893
|
+
e[8] !== R ? (b = Rt(R, "descending").map(Wo), e[8] = R, e[9] = b) : b = e[9];
|
|
3894
|
+
const T = b, P = R[0]?.currency || Lo;
|
|
3884
3895
|
let I;
|
|
3885
3896
|
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = {
|
|
3886
3897
|
headerName: "日期",
|
|
@@ -3891,10 +3902,10 @@ function ra(r) {
|
|
|
3891
3902
|
}, e[10] = I) : I = e[10];
|
|
3892
3903
|
let L;
|
|
3893
3904
|
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = {
|
|
3894
|
-
[ie.negativeValue]:
|
|
3905
|
+
[ie.negativeValue]: Uo
|
|
3895
3906
|
}, e[11] = L) : L = e[11];
|
|
3896
|
-
let
|
|
3897
|
-
e[12] !== P ? (
|
|
3907
|
+
let h;
|
|
3908
|
+
e[12] !== P ? (h = {
|
|
3898
3909
|
headerName: "价格",
|
|
3899
3910
|
field: "price",
|
|
3900
3911
|
flex: 1,
|
|
@@ -3908,10 +3919,10 @@ function ra(r) {
|
|
|
3908
3919
|
} = j;
|
|
3909
3920
|
return mu(ue, P, iu);
|
|
3910
3921
|
}
|
|
3911
|
-
}, e[12] = P, e[13] =
|
|
3922
|
+
}, e[12] = P, e[13] = h) : h = e[13];
|
|
3912
3923
|
let w;
|
|
3913
3924
|
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
|
|
3914
|
-
[ie.negativeValue]:
|
|
3925
|
+
[ie.negativeValue]: Ho
|
|
3915
3926
|
}, e[14] = w) : w = e[14];
|
|
3916
3927
|
let $;
|
|
3917
3928
|
e[15] !== P ? ($ = {
|
|
@@ -3929,9 +3940,9 @@ function ra(r) {
|
|
|
3929
3940
|
return mu(ue, P, iu);
|
|
3930
3941
|
}
|
|
3931
3942
|
}, e[15] = P, e[16] = $) : $ = e[16];
|
|
3932
|
-
let
|
|
3933
|
-
e[17] !==
|
|
3934
|
-
const
|
|
3943
|
+
let v;
|
|
3944
|
+
e[17] !== h || e[18] !== $ ? (v = [I, h, $], e[17] = h, e[18] = $, e[19] = v) : v = e[19];
|
|
3945
|
+
const A = v;
|
|
3935
3946
|
let C;
|
|
3936
3947
|
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 ? (C = {
|
|
3937
3948
|
primary: s.colorPrimary,
|
|
@@ -3949,14 +3960,14 @@ function ra(r) {
|
|
|
3949
3960
|
const l = k === "loading";
|
|
3950
3961
|
let d;
|
|
3951
3962
|
e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ F("h2", { className: ie.title, children: "最大展示30条日志数据" }), e[31] = d) : d = e[31];
|
|
3952
|
-
const
|
|
3963
|
+
const D = k === "loading", S = c ? No : "auto";
|
|
3953
3964
|
let x;
|
|
3954
3965
|
e[32] !== S ? (x = {
|
|
3955
3966
|
height: S
|
|
3956
3967
|
}, e[32] = S, e[33] = x) : x = e[33];
|
|
3957
3968
|
const O = c ? "normal" : "autoHeight";
|
|
3958
3969
|
let V;
|
|
3959
|
-
e[34] !==
|
|
3970
|
+
e[34] !== A || e[35] !== x || e[36] !== O || e[37] !== c || e[38] !== T ? (V = /* @__PURE__ */ F("div", { className: ie.tablePanel, "aria-label": "估值日志表格", children: /* @__PURE__ */ F(Bu, { className: ie.table, containerStyle: x, domLayout: O, rowData: T, columnDefs: A, defaultColDef: Oo, getRowId: Go, headerHeight: Ot, rowHeight: Vt, pagination: !1, noRowsOverlayComponent: zo, suppressMovableColumns: !0, suppressCellFocus: !0, suppressContextMenu: !0, alwaysShowVerticalScroll: c }) }), e[34] = A, e[35] = x, e[36] = O, e[37] = c, e[38] = T, e[39] = V) : V = e[39];
|
|
3960
3971
|
let z;
|
|
3961
3972
|
e[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ F("h3", { className: ie.chartTitle, children: "结果图形展示" }), e[40] = z) : z = e[40];
|
|
3962
3973
|
let W, U;
|
|
@@ -3978,7 +3989,7 @@ function ra(r) {
|
|
|
3978
3989
|
/* @__PURE__ */ F(uu.Group, { size: "small", optionType: "button", buttonStyle: "solid", "aria-label": "估值指标", value: g, options: W, onChange: U })
|
|
3979
3990
|
] }), e[43] = g, e[44] = X) : X = e[44];
|
|
3980
3991
|
let Z;
|
|
3981
|
-
e[45] !== N || e[46] !== R || e[47] !== g || e[48] !== P || e[49] !== f || e[50] !== k ? (Z = f ? /* @__PURE__ */ F(
|
|
3992
|
+
e[45] !== N || e[46] !== R || e[47] !== g || e[48] !== P || e[49] !== f || e[50] !== k ? (Z = f ? /* @__PURE__ */ F(Ro, { className: ie.chart, data: R, metric: g, currency: P, locale: iu, theme: N }) : k === "empty" ? /* @__PURE__ */ F(Yt, { className: ie.chartEmpty, ariaLabel: "暂无估值曲线数据" }) : /* @__PURE__ */ F("div", { className: ie.chartEmpty, "aria-label": "暂无估值曲线数据" }), e[45] = N, e[46] = R, e[47] = g, e[48] = P, e[49] = f, e[50] = k, e[51] = Z) : Z = e[51];
|
|
3982
3993
|
let q;
|
|
3983
3994
|
e[52] !== X || e[53] !== Z ? (q = /* @__PURE__ */ ke("section", { className: ie.chartPanel, "aria-label": "估值日志图形展示", children: [
|
|
3984
3995
|
X,
|
|
@@ -3990,32 +4001,32 @@ function ra(r) {
|
|
|
3990
4001
|
q
|
|
3991
4002
|
] }), e[55] = V, e[56] = q, e[57] = H) : H = e[57];
|
|
3992
4003
|
let Q;
|
|
3993
|
-
e[58] !==
|
|
4004
|
+
e[58] !== D || e[59] !== H ? (Q = /* @__PURE__ */ F(hu, { className: ie.loading, spinning: D, description: "估值日志加载中", children: H }), e[58] = D, e[59] = H, e[60] = Q) : Q = e[60];
|
|
3994
4005
|
let K;
|
|
3995
4006
|
return e[61] !== k || e[62] !== o || e[63] !== i || e[64] !== l || e[65] !== Q ? (K = /* @__PURE__ */ ke("section", { className: i, style: o, "aria-label": "估值日志数据图表", "aria-busy": l, "data-status": k, children: [
|
|
3996
4007
|
d,
|
|
3997
4008
|
Q
|
|
3998
4009
|
] }), e[61] = k, e[62] = o, e[63] = i, e[64] = l, e[65] = Q, e[66] = K) : K = e[66], K;
|
|
3999
4010
|
}
|
|
4000
|
-
function
|
|
4011
|
+
function Go(r) {
|
|
4001
4012
|
const {
|
|
4002
4013
|
data: e
|
|
4003
4014
|
} = r;
|
|
4004
4015
|
return e.rowId;
|
|
4005
4016
|
}
|
|
4006
|
-
function
|
|
4017
|
+
function Ho(r) {
|
|
4007
4018
|
const {
|
|
4008
4019
|
value: e
|
|
4009
4020
|
} = r;
|
|
4010
4021
|
return Pt(e);
|
|
4011
4022
|
}
|
|
4012
|
-
function
|
|
4023
|
+
function Uo(r) {
|
|
4013
4024
|
const {
|
|
4014
4025
|
value: e
|
|
4015
4026
|
} = r;
|
|
4016
4027
|
return Pt(e);
|
|
4017
4028
|
}
|
|
4018
|
-
function
|
|
4029
|
+
function Wo(r, e) {
|
|
4019
4030
|
return {
|
|
4020
4031
|
...r,
|
|
4021
4032
|
rowId: `${r.date}-${e}`
|
|
@@ -4024,9 +4035,9 @@ function Uo(r, e) {
|
|
|
4024
4035
|
export {
|
|
4025
4036
|
Le as B,
|
|
4026
4037
|
at as G,
|
|
4027
|
-
|
|
4038
|
+
uo as I,
|
|
4028
4039
|
Ye as T,
|
|
4029
|
-
|
|
4040
|
+
na as V,
|
|
4030
4041
|
pu as a,
|
|
4031
4042
|
_e as b,
|
|
4032
4043
|
Y as c,
|