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