gz-ui-web 1.0.5 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,34 +1,34 @@
1
- import { jsx as F, jsxs as ke } from "react/jsx-runtime";
2
- import Uu, { forwardRef as ee, createContext as Gt, useRef as te, useContext as Wu, useMemo as Pe, useCallback as ge, useEffect as pe, useState as Oe, useReducer as Ht, useImperativeHandle as Ut, useLayoutEffect as xu } from "react";
3
- import { Alert as Zu, App as qu, Button as Wt, Empty as Eu, Spin as ju, theme as Xu, Tag as Fu, Tooltip as Zt, DatePicker as Re, Form as Me, ConfigProvider as qt, Select as Cu, Radio as fu } from "antd";
1
+ import { jsx as F, jsxs as we } from "react/jsx-runtime";
2
+ import Wu, { forwardRef as ue, createContext as Ht, useRef as ee, useContext as Zu, useMemo as Pe, useCallback as pe, useEffect as ve, useState as Oe, useReducer as Ut, useImperativeHandle as Wt, useLayoutEffect as wu } from "react";
3
+ import { Alert as qu, App as ju, Button as Zt, Empty as Fu, Spin as Xu, theme as Qu, Tag as Cu, Tooltip as qt, DatePicker as Re, Form as Me, ConfigProvider as jt, Select as fu, Radio as gu } from "antd";
4
4
  import Ge from "big.js";
5
- import { AllEnterpriseModule as jt } from "ag-grid-enterprise";
6
- import { AgGridProvider as Xt, AgGridReact as Qt } from "ag-grid-react";
7
- import { themeQuartz as Jt, createPart as Qu } from "ag-grid-community";
8
- import { g as Kt, a as er } from "./goldLightAgGridTokens-C71rk0pu.js";
9
- import * as Ju from "echarts/core";
10
- import { LineChart as ur } from "echarts/charts";
11
- import { GridComponent as tr, TooltipComponent as rr } from "echarts/components";
12
- import { CanvasRenderer as nr } from "echarts/renderers";
13
- function Ku(r) {
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: {} }, ru = {};
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) {
16
+ var We = { exports: {} }, nu = {};
17
+ var _u;
18
+ function ar() {
19
+ if (_u) return nu;
20
+ _u = 1;
21
+ var r = Wu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
22
+ return nu.c = function(e) {
23
23
  return r.H.useMemoCache(e);
24
- }, ru;
24
+ }, nu;
25
25
  }
26
- var nu = {};
27
- var wu;
28
- function ar() {
29
- return wu || (wu = 1, process.env.NODE_ENV !== "production" && (function() {
30
- var r = Uu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
31
- nu.c = function(e) {
26
+ var ou = {};
27
+ var Mu;
28
+ function ir() {
29
+ return Mu || (Mu = 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
- })()), nu;
41
+ })()), ou;
42
42
  }
43
- var Mu;
44
- function ir() {
45
- return Mu || (Mu = 1, process.env.NODE_ENV === "production" ? We.exports = or() : We.exports = ar()), We.exports;
43
+ var ku;
44
+ function lr() {
45
+ return ku || (ku = 1, process.env.NODE_ENV === "production" ? We.exports = ar() : We.exports = ir()), We.exports;
46
46
  }
47
- var Y = ir();
48
- function et(r) {
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 = et(r[e])) && (t && (t += " "), t += 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 gu() {
58
- for (var r, e, u = 0, t = "", n = arguments.length; u < n; u++) (r = arguments[u]) && (e = et(r)) && (t && (t += " "), t += 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 ut = ee((r, e) => {
62
- const u = Y.c(3);
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(Zu, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
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
- ut.displayName = "GZAlert";
67
- const lr = Zu.ErrorBoundary, tt = (r) => {
68
- const e = Y.c(2);
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(lr, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
70
+ return e[0] !== r ? (u = /* @__PURE__ */ F(sr, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
71
71
  };
72
- tt.displayName = "GZAlertErrorBoundary";
73
- const Ye = ut;
74
- Ye.ErrorBoundary = tt;
75
- const rt = ee((r, e) => {
76
- const u = Y.c(3);
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(qu, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
78
+ return u[0] !== r || u[1] !== e ? (t = /* @__PURE__ */ F(ju, { ...r, ref: e }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
79
79
  });
80
- rt.displayName = "GZApp";
81
- const pu = rt;
82
- Object.assign(pu, qu);
83
- const Le = ee((r, e) => {
84
- const u = Y.c(9);
85
- let t, n, o;
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: o,
88
+ type: i,
89
89
  ...n
90
- } = r, u[0] = r, u[1] = t, u[2] = n, u[3] = o) : (t = u[1], n = u[2], o = u[3]);
91
- const a = o === void 0 ? "default" : o;
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] !== a ? (s = /* @__PURE__ */ F(Wt, { ref: e, type: a, ...n, children: t }), u[4] = t, u[5] = e, u[6] = n, u[7] = a, u[8] = s) : s = u[8], s;
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 nt = (r) => {
97
- const e = Y.c(2);
96
+ const ot = (r) => {
97
+ const e = V.c(2);
98
98
  let u;
99
- return e[0] !== r ? (u = /* @__PURE__ */ F(Eu, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
99
+ return e[0] !== r ? (u = /* @__PURE__ */ F(Fu, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
100
100
  };
101
- nt.displayName = "GZEmpty";
102
- const Ve = nt;
103
- Ve.PRESENTED_IMAGE_DEFAULT = Eu.PRESENTED_IMAGE_DEFAULT;
104
- Ve.PRESENTED_IMAGE_SIMPLE = Eu.PRESENTED_IMAGE_SIMPLE;
105
- const ot = (r) => {
106
- const e = Y.c(2);
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(ju, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
108
+ return e[0] !== r ? (u = /* @__PURE__ */ F(Xu, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
109
109
  };
110
- ot.displayName = "GZSpin";
111
- const hu = ot;
112
- Object.assign(hu, ju);
113
- const sr = 1e3, lu = 3, ae = "-", vu = {
110
+ at.displayName = "GZSpin";
111
+ const hu = at;
112
+ Object.assign(hu, Xu);
113
+ const cr = 1e3, su = 3, oe = "-", Du = {
114
114
  pricingEnvironment: null,
115
115
  carbonForwardCurve: null,
116
116
  discountCurve: null,
117
117
  valuationDate: null
118
- }, _u = {
118
+ }, $u = {
119
119
  pricingEnvironment: "请选择定价环境",
120
120
  carbonForwardCurve: "请选择碳金融远期价格曲线",
121
121
  discountCurve: "请选择无风险利率曲线",
122
122
  valuationDate: "请选择估值日"
123
- }, su = [{
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
- }], cr = [{
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
- }], at = Gt({});
196
- var dr = {
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 mr = (r) => {
1019
- const e = Y.c(2), {
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
- }, Er = Qu({
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
- }), Fr = Qu({
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
- }), Du = Jt.withPart(Er).withPart(Fr).withParams({
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
- }), Cr = Du.withParams(Kt), fr = Du.withParams(er), gr = "AgGridLicense66fwc79n[NORMAL][v0102]_NDA3MDk2NjQwMDAwMA==80908dd5fb71b58d3ce28b2ed320216d", ou = {
1122
- theme: Du,
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: mr,
1130
+ noRowsOverlayComponent: Er,
1127
1131
  // 注入官方的纯中文语言包,并覆盖部分默认文案以符合业务习惯
1128
1132
  localeText: {
1129
- ...dr,
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
- }, pr = {
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 = [jt], vr = ["rowSummary", "pageSize", "pageSummary"], Bu = ee((r, e) => {
1158
- const u = te(null), {
1161
+ }, hr = [Xt], Dr = ["rowSummary", "pageSize", "pageSummary"], yu = ue((r, e) => {
1162
+ const u = ee(null), {
1159
1163
  themeMode: t
1160
- } = Wu(at), {
1164
+ } = Zu(it), {
1161
1165
  gridOptions: n
1162
- } = r, o = r.pagination ?? n?.pagination ?? ou.pagination, a = r.paginationPanels ?? n?.paginationPanels, s = o && a === void 0, E = s ? vr : a, m = t === "gold-dark" ? Cr : t === "gold-light" ? fr : void 0, p = r.theme ?? n?.theme ?? m, g = Pe(() => ({
1163
- ...ou,
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: E
1166
- }), [n, E]), M = Pe(() => ({
1167
- ...ou.localeText,
1169
+ paginationPanels: m
1170
+ }), [n, m]), w = Pe(() => ({
1171
+ ...au.localeText,
1168
1172
  ...n?.localeText,
1169
1173
  ...r.localeText
1170
- }), [n?.localeText, r.localeText]), B = ["gz-table", o ? "gz-table-pagination" : void 0, s ? "gz-table-default-pagination-layout" : void 0, t === "gold-dark" ? "gz-table-gold-dark" : void 0, t === "gold-light" ? "gz-table-gold-light" : void 0, r.className].filter(Boolean).join(" "), k = Pe(() => ({
1171
- ...pr,
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]), R = ge((h) => {
1175
- const w = u.current;
1176
- if (!w || !h) return;
1177
- const $ = w.querySelector(".ag-body-horizontal-scroll-viewport");
1178
- if ($) {
1178
+ }), [n?.defaultColDef, r.defaultColDef]), k = 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: v,
1181
- clientWidth: A,
1182
- scrollWidth: C
1183
- } = $, N = v > 0, f = Math.ceil(v + A) < C - 1;
1184
- w.classList.toggle("gz-table-ping-left", N), w.classList.toggle("gz-table-ping-right", f);
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
- w.classList.remove("gz-table-ping-left", "gz-table-ping-right");
1187
- }, []), y = ge((h) => {
1188
- h.direction === "horizontal" && R(h.api), r.onBodyScroll && r.onBodyScroll(h), n?.onBodyScroll && n.onBodyScroll(h);
1189
- }, [R, r.onBodyScroll, n?.onBodyScroll]), _ = ge((h) => {
1190
- R(h.api), r.onGridReady && r.onGridReady(h), n?.onGridReady && n.onGridReady(h);
1191
- }, [R, r.onGridReady, n?.onGridReady]), b = ge((h) => {
1192
- R(h.api), r.onGridSizeChanged && r.onGridSizeChanged(h), n?.onGridSizeChanged && n.onGridSizeChanged(h);
1193
- }, [R, r.onGridSizeChanged, n?.onGridSizeChanged]), T = ge((h) => {
1194
- R(h.api), r.onModelUpdated && r.onModelUpdated(h), n?.onModelUpdated && n.onModelUpdated(h);
1195
- }, [R, r.onModelUpdated, n?.onModelUpdated]), P = ge((h) => {
1196
- R(h.api), r.onDisplayedColumnsChanged && r.onDisplayedColumnsChanged(h), n?.onDisplayedColumnsChanged && n.onDisplayedColumnsChanged(h);
1197
- }, [R, r.onDisplayedColumnsChanged, n?.onDisplayedColumnsChanged]), I = r.getContextMenuItems ?? n?.getContextMenuItems, L = ge((h) => {
1198
- const w = {
1190
+ L.classList.remove("gz-table-ping-left", "gz-table-ping-right");
1191
+ }, []), D = pe((v) => {
1192
+ v.direction === "horizontal" && k(v.api), r.onBodyScroll && r.onBodyScroll(v), n?.onBodyScroll && n.onBodyScroll(v);
1193
+ }, [k, r.onBodyScroll, n?.onBodyScroll]), _ = pe((v) => {
1194
+ k(v.api), r.onGridReady && r.onGridReady(v), n?.onGridReady && n.onGridReady(v);
1195
+ }, [k, r.onGridReady, n?.onGridReady]), y = pe((v) => {
1196
+ k(v.api), r.onGridSizeChanged && r.onGridSizeChanged(v), n?.onGridSizeChanged && n.onGridSizeChanged(v);
1197
+ }, [k, r.onGridSizeChanged, n?.onGridSizeChanged]), M = pe((v) => {
1198
+ k(v.api), r.onModelUpdated && r.onModelUpdated(v), n?.onModelUpdated && n.onModelUpdated(v);
1199
+ }, [k, r.onModelUpdated, n?.onModelUpdated]), $ = pe((v) => {
1200
+ k(v.api), r.onDisplayedColumnsChanged && r.onDisplayedColumnsChanged(v), n?.onDisplayedColumnsChanged && n.onDisplayedColumnsChanged(v);
1201
+ }, [k, r.onDisplayedColumnsChanged, n?.onDisplayedColumnsChanged]), P = r.getContextMenuItems ?? n?.getContextMenuItems, O = pe((v) => {
1202
+ 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 C = h.node;
1203
- if (!C || !C.data) return;
1204
- const f = (h.api.getAllDisplayedColumns() || []).map((c) => {
1205
- const i = c.getColId(), l = C.data[i];
1206
- return typeof l == "object" ? JSON.stringify(l) : String(l ?? "");
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(f).catch((c) => {
1210
- console.error("复制整行数据失败: ", c);
1213
+ navigator.clipboard.writeText(C).catch((d) => {
1214
+ console.error("复制整行数据失败: ", d);
1211
1215
  });
1212
1216
  else {
1213
- const c = document.createElement("textarea");
1214
- c.value = f, c.style.position = "fixed", c.style.left = "-999999px", c.style.top = "-999999px", document.body.appendChild(c), c.focus(), c.select();
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 (i) {
1218
- console.error("降级复制失败", i);
1221
+ } catch (o) {
1222
+ console.error("降级复制失败", o);
1219
1223
  }
1220
- c.remove();
1224
+ d.remove();
1221
1225
  }
1222
1226
  }
1223
1227
  };
1224
- let $ = h.defaultItems || [];
1225
- const v = $.indexOf("copy");
1226
- return v !== -1 && ($[v] = w), h.api.getRowGroupColumns().length > 0 && ($ = [
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
- ]), I ? I({
1233
- ...h,
1234
- defaultItems: $
1235
- }) : $;
1236
- }, [I]);
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(Xt, { modules: hr, licenseKey: gr, children: /* @__PURE__ */ F(Qt, { ref: e, ...r, gridOptions: g, ...p === void 0 ? {} : {
1243
- theme: p
1244
- }, className: B || void 0, defaultColDef: k, localeText: M, getContextMenuItems: L, onBodyScroll: y, onGridReady: _, onGridSizeChanged: b, onModelUpdated: T, onDisplayedColumnsChanged: P }) }) });
1245
- }), Dr = "_root_168ty_1", Br = "_section_168ty_11", yr = "_sectionTitle_168ty_17", br = "_contextForm_168ty_24", Ar = "_fixedSingle_168ty_30", Sr = "_multiple_168ty_35", Tr = "_single_168ty_40", xr = "_contextFormItem_168ty_50", kr = "_contextFormLabel_168ty_53", wr = "_contextFormContent_168ty_57", Mr = "_contextFormLabelText_168ty_82", _r = "_selectPopup_168ty_92", $r = "_selectPopupListItem_168ty_95", Ir = "_resourceIssues_168ty_111", Rr = "_limitAlert_168ty_115", Pr = "_fixedGrid_168ty_118", Lr = "_multipleGrid_168ty_119", Nr = "_singleGrid_168ty_156", Or = "_fieldCell_168ty_160", Vr = "_singleContractHeader_168ty_165", zr = "_negativeValue_168ty_188", Yr = "_gridErrorAlert_168ty_191", Gr = "_gridErrorIcon_168ty_203", Hr = "_gridErrorSection_168ty_206", Ur = "_gridErrorMessage_168ty_210", Wr = "_mergedErrorGridCell_168ty_217", Zr = "_mergedErrorCell_168ty_225", qr = "_mergedErrorText_168ty_240", jr = "_emptyState_168ty_246", Xr = "_footer_168ty_254", Qr = "_navigateButton_168ty_260", Jr = "_navigateIcon_168ty_263", G = {
1246
- root: Dr,
1247
- section: Br,
1248
- sectionTitle: yr,
1249
- contextForm: br,
1250
- fixedSingle: Ar,
1251
- multiple: Sr,
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: w, getContextMenuItems: O, onBodyScroll: D, onGridReady: _, onGridSizeChanged: y, onModelUpdated: M, onDisplayedColumnsChanged: $ }) }) });
1249
+ }), Br = "_root_lxvvg_1", yr = "_section_lxvvg_11", br = "_sectionTitle_lxvvg_17", Ar = "_contextForm_lxvvg_24", Sr = "_fixedSingle_lxvvg_30", xr = "_multiple_lxvvg_35", Tr = "_single_lxvvg_40", wr = "_contextFormItem_lxvvg_50", _r = "_contextFormLabel_lxvvg_53", Mr = "_contextFormContent_lxvvg_57", kr = "_contextFormLabelText_lxvvg_82", $r = "_selectPopup_lxvvg_92", Ir = "_selectPopupListItem_lxvvg_95", Rr = "_resourceIssues_lxvvg_111", Pr = "_limitAlert_lxvvg_115", Lr = "_fixedGrid_lxvvg_118", Nr = "_multipleGrid_lxvvg_119", Or = "_singleGrid_lxvvg_156", zr = "_fieldCell_lxvvg_160", Vr = "_singleContractHeader_lxvvg_165", Yr = "_negativeValue_lxvvg_194", Gr = "_gridErrorAlert_lxvvg_197", Hr = "_gridErrorIcon_lxvvg_209", Ur = "_gridErrorSection_lxvvg_212", Wr = "_gridErrorMessage_lxvvg_216", Zr = "_mergedErrorGridCell_lxvvg_223", qr = "_mergedErrorCell_lxvvg_231", jr = "_mergedErrorText_lxvvg_246", Xr = "_emptyState_lxvvg_252", Qr = "_footer_lxvvg_260", Jr = "_navigateButton_lxvvg_266", Kr = "_navigateIcon_lxvvg_269", Y = {
1250
+ root: Br,
1251
+ section: yr,
1252
+ sectionTitle: br,
1253
+ contextForm: Ar,
1254
+ fixedSingle: Sr,
1255
+ multiple: xr,
1252
1256
  single: Tr,
1253
- contextFormItem: xr,
1254
- contextFormLabel: kr,
1255
- contextFormContent: wr,
1256
- contextFormLabelText: Mr,
1257
- selectPopup: _r,
1258
- selectPopupListItem: $r,
1259
- resourceIssues: Ir,
1260
- limitAlert: Rr,
1261
- fixedGrid: Pr,
1262
- multipleGrid: Lr,
1263
- singleGrid: Nr,
1264
- fieldCell: Or,
1257
+ contextFormItem: wr,
1258
+ contextFormLabel: _r,
1259
+ contextFormContent: Mr,
1260
+ contextFormLabelText: kr,
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: zr,
1267
- gridErrorAlert: Yr,
1268
- gridErrorIcon: Gr,
1269
- gridErrorSection: Hr,
1270
- gridErrorMessage: Ur,
1271
- mergedErrorGridCell: Wr,
1272
- mergedErrorCell: Zr,
1273
- mergedErrorText: qr,
1274
- emptyState: jr,
1275
- footer: Xr,
1276
- navigateButton: Qr,
1277
- navigateIcon: Jr
1278
- }, it = {
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
- }, Kr = (r) => Object.prototype.hasOwnProperty.call(it, r), en = (r, e, u) => {
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 E = de(u, "colorBgSolid");
1301
+ const m = de(u, "colorBgSolid");
1298
1302
  return {
1299
1303
  color: de(u, "colorTextOnLight"),
1300
- backgroundColor: E,
1301
- borderColor: E
1304
+ backgroundColor: m,
1305
+ borderColor: m
1302
1306
  };
1303
1307
  }
1304
1308
  if (r === "primary") {
1305
- const E = de(u, "colorPrimary");
1309
+ const m = de(u, "colorPrimary");
1306
1310
  return {
1307
1311
  // primary 三种 variant 都使用浅色背景和 on-light 文字色。
1308
1312
  color: de(u, "colorTextOnLight"),
1309
- backgroundColor: E,
1313
+ backgroundColor: m,
1310
1314
  // outlined 使用设计描边色;solid 的边框与背景保持一致;filled 不额外设置边框。
1311
1315
  ...e === "outlined" ? {
1312
1316
  borderColor: de(u, "colorPrimaryBorder")
1313
1317
  } : e === "solid" ? {
1314
- borderColor: E
1318
+ borderColor: m
1315
1319
  } : void 0
1316
1320
  };
1317
1321
  }
1318
- if (!Kr(r)) return;
1319
- const t = it[r], [n, o, a, s] = t;
1322
+ if (!en(r)) return;
1323
+ const t = lt[r], [n, i, l, s] = t;
1320
1324
  if (e === "solid") {
1321
- const E = de(u, a);
1325
+ const m = de(u, l);
1322
1326
  return {
1323
1327
  color: de(u, "colorTextLightSolid"),
1324
- backgroundColor: E,
1325
- borderColor: E
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, o)
1336
+ borderColor: de(u, i)
1333
1337
  } : void 0
1334
1338
  };
1335
- }, un = (r, e) => {
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
- }, lt = ee((r, e) => {
1343
- const u = Y.c(33);
1344
- let t, n, o, a, s;
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: o,
1348
- styles: a,
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] = o, u[4] = a, u[5] = s) : (t = u[1], n = u[2], o = u[3], a = u[4], s = u[5]);
1352
- const E = s === void 0 ? "solid" : s, {
1353
- themeMode: m
1354
- } = Wu(at), {
1355
- token: p
1356
- } = Xu.useToken(), g = p;
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;
1361
+ let w;
1362
+ u[6] !== t || u[7] !== f || u[8] !== E || u[9] !== m ? (w = E === "gold-dark" ? un(t, m, f) : E === "gold-light" ? tn(t, f) : void 0, u[6] = t, u[7] = f, u[8] = E, u[9] = m, u[10] = w) : w = u[10];
1363
+ const T = w;
1364
+ 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 k = 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 = k ?? D;
1357
1374
  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;
1360
- let k;
1361
- u[11] !== t || u[12] !== g || u[13] !== m || u[14] !== E ? (k = m === "gold-dark" && E === "solid" && (t === "primary" || t === "default" || t === void 0) ? {
1362
- color: de(g, "colorTextOnLight")
1363
- } : void 0, u[11] = t, u[12] = g, u[13] = m, u[14] = E, u[15] = k) : k = u[15];
1364
- const R = k;
1365
- let y;
1366
- u[16] !== t || u[17] !== g || u[18] !== m ? (y = m === "gold-light" && t === "primary" ? {
1367
- color: de(g, "colorTextOnLight")
1368
- } : void 0, u[16] = t, u[17] = g, u[18] = m, u[19] = y) : y = u[19];
1369
- const b = R ?? y;
1370
- let T;
1371
- u[20] !== B || u[21] !== o ? (T = B ? {
1372
- ...B,
1373
- ...o
1374
- } : o, u[20] = B, u[21] = o, u[22] = T) : T = u[22];
1375
- const P = T;
1376
- let I;
1377
- u[23] !== b || u[24] !== a ? (I = b ? typeof a == "function" ? ($) => {
1378
- const v = a($);
1375
+ u[20] !== T || u[21] !== i ? (M = T ? {
1376
+ ...T,
1377
+ ...i
1378
+ } : i, u[20] = T, u[21] = i, u[22] = M) : M = u[22];
1379
+ const $ = M;
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
- ...v,
1384
+ ...x,
1381
1385
  close: {
1382
- ...b,
1383
- ...v?.close
1386
+ ...y,
1387
+ ...x?.close
1384
1388
  }
1385
1389
  };
1386
1390
  } : {
1387
- ...a,
1391
+ ...l,
1388
1392
  close: {
1389
- ...b,
1390
- ...a?.close
1393
+ ...y,
1394
+ ...l?.close
1391
1395
  }
1392
- } : a, u[23] = b, u[24] = a, u[25] = I) : I = u[25];
1393
- const L = I, h = m === "gold-dark" && t === "default" ? void 0 : t;
1394
- let w;
1395
- return u[26] !== h || u[27] !== P || u[28] !== L || u[29] !== e || u[30] !== n || u[31] !== E ? (w = /* @__PURE__ */ F(Fu, { ref: e, color: h, variant: E, style: P, styles: L, ...n }), u[26] = h, u[27] = P, u[28] = L, u[29] = e, u[30] = n, u[31] = E, u[32] = w) : w = u[32], w;
1396
+ } : 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
- lt.displayName = "GZTag";
1398
- const st = ee((r, e) => {
1399
- const u = Y.c(3);
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(Fu.CheckableTag, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
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
- st.displayName = "GZCheckableTag";
1404
- const ct = ee((r, e) => {
1405
- const u = Y.c(3);
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(Fu.CheckableTagGroup, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
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
- ct.displayName = "GZCheckableTagGroup";
1410
- const yu = lt;
1411
- yu.CheckableTag = st;
1412
- yu.CheckableTagGroup = ct;
1413
- function dt(r, e) {
1414
- if (r == null || r === "") return ae;
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 oe;
1415
1419
  try {
1416
1420
  return new Ge(r).toFixed(e);
1417
1421
  } catch {
1418
- return ae;
1422
+ return oe;
1419
1423
  }
1420
1424
  }
1421
- function bu(r, e) {
1422
- const u = dt(r, e);
1423
- if (u === ae) return u;
1424
- const [t, n] = u.split("."), o = t.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
1425
- return n == null ? o : `${o}.${n}`;
1425
+ function Au(r, e) {
1426
+ const u = mt(r, e);
1427
+ if (u === oe) 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 $u(r, e, u = 2) {
1428
- const t = dt(r, u);
1429
- if (t === ae) return t;
1430
- const n = t.startsWith("-") ? t.slice(1) : t, o = bu(n, u);
1431
+ function Iu(r, e, u = 2) {
1432
+ const t = mt(r, u);
1433
+ if (t === oe) 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((E) => E.type === "currency")?.value ?? e;
1439
- return `${t.startsWith("-") ? "-" : ""}${s}${o}`;
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 tn(r) {
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 mt(r) {
1452
- const e = Y.c(3), u = tn(r.rawValue) ? G.negativeValue : void 0;
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 Et(r) {
1457
- const e = Y.c(4);
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(yu, { variant: "outlined", color: r.value === "买入" ? "gold" : "green", children: r.value }) : "-", e[0] = r.value, e[1] = t) : t = e[1], t;
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: {} }, rn = Xe.exports, Iu;
1466
- function nn() {
1467
- return Iu || (Iu = 1, (function(r, e) {
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
- })(rn, (function() {
1471
- var u = 1e3, t = 6e4, n = 36e5, o = "millisecond", a = "second", s = "minute", E = "hour", m = "day", p = "week", g = "month", M = "quarter", B = "year", k = "date", R = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, _ = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(f) {
1472
- var c = ["th", "st", "nd", "rd"], i = f % 100;
1473
- return "[" + f + (c[(i - 20) % 10] || c[i] || c[0]) + "]";
1474
- } }, T = function(f, c, i) {
1475
- var l = String(f);
1476
- return !l || l.length >= c ? f : "" + Array(c + 1 - l.length).join(i) + f;
1477
- }, P = { s: T, z: function(f) {
1478
- var c = -f.utcOffset(), i = Math.abs(c), l = Math.floor(i / 60), d = i % 60;
1479
- return (c <= 0 ? "+" : "-") + T(l, 2, "0") + ":" + T(d, 2, "0");
1480
- }, m: function f(c, i) {
1481
- if (c.date() < i.date()) return -f(i, c);
1482
- var l = 12 * (i.year() - c.year()) + (i.month() - c.month()), d = c.clone().add(l, g), D = i - d < 0, S = c.clone().add(l + (D ? -1 : 1), g);
1483
- return +(-(l + (i - d) / (D ? d - S : S - d)) || 0);
1484
- }, a: function(f) {
1485
- return f < 0 ? Math.ceil(f) || 0 : Math.floor(f);
1486
- }, p: function(f) {
1487
- return { M: g, y: B, w: p, d: m, D: k, h: E, m: s, s: a, ms: o, Q: M }[f] || String(f || "").toLowerCase().replace(/s$/, "");
1488
- }, u: function(f) {
1489
- return f === void 0;
1490
- } }, I = "en", L = {};
1491
- L[I] = b;
1492
- var h = "$isDayjsObject", w = function(f) {
1493
- return f instanceof C || !(!f || !f[h]);
1494
- }, $ = function f(c, i, l) {
1495
- var d;
1496
- if (!c) return I;
1497
- if (typeof c == "string") {
1498
- var D = c.toLowerCase();
1499
- L[D] && (d = D), i && (L[D] = i, d = D);
1500
- var S = c.split("-");
1501
- if (!d && S.length > 1) return f(S[0]);
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", w = "quarter", T = "year", b = "date", k = "Invalid Date", D = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, _ = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(C) {
1476
+ var d = ["th", "st", "nd", "rd"], o = C % 100;
1477
+ return "[" + C + (d[(o - 20) % 10] || d[o] || d[0]) + "]";
1478
+ } }, M = 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: M, z: function(C) {
1482
+ var d = -C.utcOffset(), o = Math.abs(d), c = Math.floor(o / 60), a = o % 60;
1483
+ return (d <= 0 ? "+" : "-") + M(c, 2, "0") + ":" + M(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: w }[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 x = c.name;
1504
- L[x] = c, d = x;
1507
+ var S = d.name;
1508
+ O[S] = d, a = S;
1505
1509
  }
1506
- return !l && d && (I = d), d || !l && I;
1507
- }, v = function(f, c) {
1508
- if (w(f)) return f.clone();
1509
- var i = typeof c == "object" ? c : {};
1510
- return i.date = f, i.args = arguments, new C(i);
1511
- }, A = P;
1512
- A.l = $, A.i = w, A.w = function(f, c) {
1513
- return v(f, { locale: c.$L, utc: c.$u, x: c.$x, $offset: c.$offset });
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 C = (function() {
1516
- function f(i) {
1517
- this.$L = $(i.locale, null, !0), this.parse(i), this.$x = this.$x || i.x || {}, this[h] = !0;
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 c = f.prototype;
1520
- return c.parse = function(i) {
1521
- this.$d = (function(l) {
1522
- var d = l.date, D = l.utc;
1523
- if (d === null) return /* @__PURE__ */ new Date(NaN);
1524
- if (A.u(d)) return /* @__PURE__ */ new Date();
1525
- if (d instanceof Date) return new Date(d);
1526
- if (typeof d == "string" && !/Z$/i.test(d)) {
1527
- var S = d.match(y);
1528
- if (S) {
1529
- var x = S[2] - 1 || 0, O = (S[7] || "0").substring(0, 3);
1530
- return D ? new Date(Date.UTC(S[1], x, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, O)) : new Date(S[1], x, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, O);
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(d);
1534
- })(i), this.init();
1535
- }, c.init = function() {
1536
- var i = this.$d;
1537
- this.$y = i.getFullYear(), this.$M = i.getMonth(), this.$D = i.getDate(), this.$W = i.getDay(), this.$H = i.getHours(), this.$m = i.getMinutes(), this.$s = i.getSeconds(), this.$ms = i.getMilliseconds();
1538
- }, c.$utils = function() {
1539
- return A;
1540
- }, c.isValid = function() {
1541
- return this.$d.toString() !== R;
1542
- }, c.isSame = function(i, l) {
1543
- var d = v(i);
1544
- return this.startOf(l) <= d && d <= this.endOf(l);
1545
- }, c.isAfter = function(i, l) {
1546
- return v(i) < this.startOf(l);
1547
- }, c.isBefore = function(i, l) {
1548
- return this.endOf(l) < v(i);
1549
- }, c.$g = function(i, l, d) {
1550
- return A.u(i) ? this[l] : this.set(d, i);
1551
- }, c.unix = function() {
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() !== k;
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
- }, c.valueOf = function() {
1557
+ }, d.valueOf = function() {
1554
1558
  return this.$d.getTime();
1555
- }, c.startOf = function(i, l) {
1556
- var d = this, D = !!A.u(l) || l, S = A.p(i), x = function(q, H) {
1557
- var Q = A.w(d.$u ? Date.UTC(d.$y, H, q) : new Date(d.$y, H, q), d);
1558
- return D ? Q : Q.endOf(m);
1559
- }, O = function(q, H) {
1560
- return A.w(d.toDate()[q].apply(d.toDate("s"), (D ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(H)), d);
1561
- }, V = this.$W, z = this.$M, W = this.$D, U = "set" + (this.$u ? "UTC" : "");
1562
- switch (S) {
1563
- case B:
1564
- return D ? x(1, 0) : x(31, 11);
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
- return D ? x(1, z) : x(0, z + 1);
1567
- case p:
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
- return O(U + "Minutes", 1);
1575
+ case b:
1576
+ return N(W + "Hours", 0);
1577
+ case m:
1578
+ return N(W + "Minutes", 1);
1575
1579
  case s:
1576
- return O(U + "Seconds", 2);
1577
- case a:
1578
- return O(U + "Milliseconds", 3);
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
- }, c.endOf = function(i) {
1583
- return this.startOf(i, !1);
1584
- }, c.$set = function(i, l) {
1585
- var d, D = A.p(i), S = "set" + (this.$u ? "UTC" : ""), x = (d = {}, d[m] = S + "Date", d[k] = S + "Date", d[g] = S + "Month", d[B] = S + "FullYear", d[E] = S + "Hours", d[s] = S + "Minutes", d[a] = S + "Seconds", d[o] = S + "Milliseconds", d)[D], O = D === m ? this.$D + (l - this.$W) : l;
1586
- if (D === g || D === B) {
1587
- var V = this.clone().set(k, 1);
1588
- V.$d[x](O), V.init(), this.$d = V.set(k, Math.min(this.$D, V.daysInMonth())).$d;
1589
- } else x && this.$d[x](O);
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
- }, c.set = function(i, l) {
1592
- return this.clone().$set(i, l);
1593
- }, c.get = function(i) {
1594
- return this[A.p(i)]();
1595
- }, c.add = function(i, l) {
1596
- var d, D = this;
1597
- i = Number(i);
1598
- var S = A.p(l), x = function(z) {
1599
- var W = v(D);
1600
- return A.w(W.date(W.date() + Math.round(z * i)), D);
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 (S === g) return this.set(g, this.$M + i);
1603
- if (S === B) return this.set(B, this.$y + i);
1604
- if (S === m) return x(1);
1605
- if (S === p) return x(7);
1606
- var O = (d = {}, d[s] = t, d[E] = n, d[a] = u, d)[S] || 1, V = this.$d.getTime() + i * O;
1607
- return A.w(V, this);
1608
- }, c.subtract = function(i, l) {
1609
- return this.add(-1 * i, l);
1610
- }, c.format = function(i) {
1611
- var l = this, d = this.$locale();
1612
- if (!this.isValid()) return d.invalidDate || R;
1613
- var D = i || "YYYY-MM-DDTHH:mm:ssZ", S = A.z(this), x = this.$H, O = this.$m, V = this.$M, z = d.weekdays, W = d.months, U = d.meridiem, X = function(H, Q, K, j) {
1614
- return H && (H[Q] || H(l, D)) || K[Q].slice(0, j);
1615
- }, Z = function(H) {
1616
- return A.s(x % 12 || 12, H, "0");
1617
- }, q = U || function(H, Q, K) {
1618
- var j = H < 12 ? "AM" : "PM";
1619
- return K ? j.toLowerCase() : j;
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 || k;
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 D.replace(_, (function(H, Q) {
1622
- return Q || (function(K) {
1625
+ return p.replace(_, (function(U, j) {
1626
+ return j || (function(K) {
1623
1627
  switch (K) {
1624
1628
  case "YY":
1625
- return String(l.$y).slice(-2);
1629
+ return String(c.$y).slice(-2);
1626
1630
  case "YYYY":
1627
- return A.s(l.$y, 4, "0");
1631
+ return B.s(c.$y, 4, "0");
1628
1632
  case "M":
1629
- return V + 1;
1633
+ return z + 1;
1630
1634
  case "MM":
1631
- return A.s(V + 1, 2, "0");
1635
+ return B.s(z + 1, 2, "0");
1632
1636
  case "MMM":
1633
- return X(d.monthsShort, V, W, 3);
1637
+ return q(a.monthsShort, z, H, 3);
1634
1638
  case "MMMM":
1635
- return X(W, V);
1639
+ return q(H, z);
1636
1640
  case "D":
1637
- return l.$D;
1641
+ return c.$D;
1638
1642
  case "DD":
1639
- return A.s(l.$D, 2, "0");
1643
+ return B.s(c.$D, 2, "0");
1640
1644
  case "d":
1641
- return String(l.$W);
1645
+ return String(c.$W);
1642
1646
  case "dd":
1643
- return X(d.weekdaysMin, l.$W, z, 2);
1647
+ return q(a.weekdaysMin, c.$W, G, 2);
1644
1648
  case "ddd":
1645
- return X(d.weekdaysShort, l.$W, z, 3);
1649
+ return q(a.weekdaysShort, c.$W, G, 3);
1646
1650
  case "dddd":
1647
- return z[l.$W];
1651
+ return G[c.$W];
1648
1652
  case "H":
1649
- return String(x);
1653
+ return String(S);
1650
1654
  case "HH":
1651
- return A.s(x, 2, "0");
1655
+ return B.s(S, 2, "0");
1652
1656
  case "h":
1653
- return Z(1);
1657
+ return Q(1);
1654
1658
  case "hh":
1655
- return Z(2);
1659
+ return Q(2);
1656
1660
  case "a":
1657
- return q(x, O, !0);
1661
+ return Z(S, N, !0);
1658
1662
  case "A":
1659
- return q(x, O, !1);
1663
+ return Z(S, N, !1);
1660
1664
  case "m":
1661
- return String(O);
1665
+ return String(N);
1662
1666
  case "mm":
1663
- return A.s(O, 2, "0");
1667
+ return B.s(N, 2, "0");
1664
1668
  case "s":
1665
- return String(l.$s);
1669
+ return String(c.$s);
1666
1670
  case "ss":
1667
- return A.s(l.$s, 2, "0");
1671
+ return B.s(c.$s, 2, "0");
1668
1672
  case "SSS":
1669
- return A.s(l.$ms, 3, "0");
1673
+ return B.s(c.$ms, 3, "0");
1670
1674
  case "Z":
1671
- return S;
1675
+ return h;
1672
1676
  }
1673
1677
  return null;
1674
- })(H) || S.replace(":", "");
1678
+ })(U) || h.replace(":", "");
1675
1679
  }));
1676
- }, c.utcOffset = function() {
1680
+ }, d.utcOffset = function() {
1677
1681
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1678
- }, c.diff = function(i, l, d) {
1679
- var D, S = this, x = A.p(l), O = v(i), V = (O.utcOffset() - this.utcOffset()) * t, z = this - O, W = function() {
1680
- return A.m(S, O);
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 (x) {
1683
- case B:
1684
- D = W() / 12;
1685
- break;
1686
- case g:
1687
- D = W();
1686
+ switch (S) {
1687
+ case T:
1688
+ p = H() / 12;
1688
1689
  break;
1689
- case M:
1690
- D = W() / 3;
1690
+ case f:
1691
+ p = H();
1691
1692
  break;
1692
- case p:
1693
- D = (z - V) / 6048e5;
1693
+ case w:
1694
+ p = H() / 3;
1694
1695
  break;
1695
- case m:
1696
- D = (z - V) / 864e5;
1696
+ case g:
1697
+ p = (G - z) / 6048e5;
1697
1698
  break;
1698
1699
  case E:
1699
- D = z / n;
1700
+ p = (G - z) / 864e5;
1701
+ break;
1702
+ case m:
1703
+ p = G / n;
1700
1704
  break;
1701
1705
  case s:
1702
- D = z / t;
1706
+ p = G / t;
1703
1707
  break;
1704
- case a:
1705
- D = z / u;
1708
+ case l:
1709
+ p = G / u;
1706
1710
  break;
1707
1711
  default:
1708
- D = z;
1712
+ p = G;
1709
1713
  }
1710
- return d ? D : A.a(D);
1711
- }, c.daysInMonth = function() {
1712
- return this.endOf(g).$D;
1713
- }, c.$locale = function() {
1714
- return L[this.$L];
1715
- }, c.locale = function(i, l) {
1716
- if (!i) return this.$L;
1717
- var d = this.clone(), D = $(i, l, !0);
1718
- return D && (d.$L = D), d;
1719
- }, c.clone = function() {
1720
- return A.w(this.$d, this);
1721
- }, c.toDate = function() {
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
- }, c.toJSON = function() {
1727
+ }, d.toJSON = function() {
1724
1728
  return this.isValid() ? this.toISOString() : null;
1725
- }, c.toISOString = function() {
1729
+ }, d.toISOString = function() {
1726
1730
  return this.$d.toISOString();
1727
- }, c.toString = function() {
1731
+ }, d.toString = function() {
1728
1732
  return this.$d.toUTCString();
1729
- }, f;
1730
- })(), N = C.prototype;
1731
- return v.prototype = N, [["$ms", o], ["$s", a], ["$m", s], ["$H", E], ["$W", m], ["$M", g], ["$y", B], ["$D", k]].forEach((function(f) {
1732
- N[f[1]] = function(c) {
1733
- return this.$g(c, f[0], f[1]);
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
- })), v.extend = function(f, c) {
1736
- return f.$i || (f(c, C, v), f.$i = !0), v;
1737
- }, v.locale = $, v.isDayjs = w, v.unix = function(f) {
1738
- return v(1e3 * f);
1739
- }, v.en = L[I], v.Ls = L, v.p = {}, v;
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 on = nn();
1744
- const He = /* @__PURE__ */ Ku(on);
1745
- var Qe = { exports: {} }, an = Qe.exports, Ru;
1746
- function ln() {
1747
- return Ru || (Ru = 1, (function(r, e) {
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
- })(an, (function() {
1751
- var u = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, o = /\d\d/, a = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, E = {}, m = function(y) {
1752
- return (y = +y) + (y > 68 ? 1900 : 2e3);
1753
- }, p = function(y) {
1754
+ })(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) {
1754
1758
  return function(_) {
1755
- this[y] = +_;
1759
+ this[D] = +_;
1756
1760
  };
1757
- }, g = [/[+-]\d\d:?(\d\d)?|Z/, function(y) {
1761
+ }, f = [/[+-]\d\d:?(\d\d)?|Z/, function(D) {
1758
1762
  (this.zone || (this.zone = {})).offset = (function(_) {
1759
1763
  if (!_ || _ === "Z") return 0;
1760
- var b = _.match(/([+-]|\d\d)/g), T = 60 * b[1] + (+b[2] || 0);
1761
- return T === 0 ? 0 : b[0] === "+" ? -T : T;
1762
- })(y);
1763
- }], M = function(y) {
1764
- var _ = E[y];
1764
+ var y = _.match(/([+-]|\d\d)/g), M = 60 * y[1] + (+y[2] || 0);
1765
+ return M === 0 ? 0 : y[0] === "+" ? -M : M;
1766
+ })(D);
1767
+ }], w = function(D) {
1768
+ var _ = m[D];
1765
1769
  return _ && (_.indexOf ? _ : _.s.concat(_.f));
1766
- }, B = function(y, _) {
1767
- var b, T = E.meridiem;
1768
- if (T) {
1769
- for (var P = 1; P <= 24; P += 1) if (y.indexOf(T(P, 0, _)) > -1) {
1770
- b = P > 12;
1770
+ }, T = function(D, _) {
1771
+ var y, M = m.meridiem;
1772
+ if (M) {
1773
+ for (var $ = 1; $ <= 24; $ += 1) if (D.indexOf(M($, 0, _)) > -1) {
1774
+ y = $ > 12;
1771
1775
  break;
1772
1776
  }
1773
- } else b = y === (_ ? "pm" : "PM");
1774
- return b;
1775
- }, k = { A: [s, function(y) {
1776
- this.afternoon = B(y, !1);
1777
- }], a: [s, function(y) {
1778
- this.afternoon = B(y, !0);
1779
- }], Q: [n, function(y) {
1780
- this.month = 3 * (y - 1) + 1;
1781
- }], S: [n, function(y) {
1782
- this.milliseconds = 100 * +y;
1783
- }], SS: [o, function(y) {
1784
- this.milliseconds = 10 * +y;
1785
- }], SSS: [/\d{3}/, function(y) {
1786
- this.milliseconds = +y;
1787
- }], s: [a, p("seconds")], ss: [a, p("seconds")], m: [a, p("minutes")], mm: [a, p("minutes")], H: [a, p("hours")], h: [a, p("hours")], HH: [a, p("hours")], hh: [a, p("hours")], D: [a, p("day")], DD: [o, p("day")], Do: [s, function(y) {
1788
- var _ = E.ordinal, b = y.match(/\d+/);
1789
- if (this.day = b[0], _) for (var T = 1; T <= 31; T += 1) _(T).replace(/\[|\]/g, "") === y && (this.day = T);
1790
- }], w: [a, p("week")], ww: [o, p("week")], M: [a, p("month")], MM: [o, p("month")], MMM: [s, function(y) {
1791
- var _ = M("months"), b = (M("monthsShort") || _.map((function(T) {
1792
- return T.slice(0, 3);
1793
- }))).indexOf(y) + 1;
1794
- if (b < 1) throw new Error();
1795
- this.month = b % 12 || b;
1796
- }], MMMM: [s, function(y) {
1797
- var _ = M("months").indexOf(y) + 1;
1777
+ } else y = D === (_ ? "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 _ = m.ordinal, y = D.match(/\d+/);
1793
+ if (this.day = y[0], _) for (var M = 1; M <= 31; M += 1) _(M).replace(/\[|\]/g, "") === D && (this.day = M);
1794
+ }], w: [l, g("week")], ww: [i, g("week")], M: [l, g("month")], MM: [i, g("month")], MMM: [s, function(D) {
1795
+ var _ = w("months"), y = (w("monthsShort") || _.map((function(M) {
1796
+ return M.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("months").indexOf(D) + 1;
1798
1802
  if (_ < 1) throw new Error();
1799
1803
  this.month = _ % 12 || _;
1800
- }], Y: [/[+-]?\d+/, p("year")], YY: [o, function(y) {
1801
- this.year = m(y);
1802
- }], YYYY: [/\d{4}/, p("year")], Z: g, ZZ: g };
1803
- function R(y) {
1804
- var _, b;
1805
- _ = y, b = E && E.formats;
1806
- for (var T = (y = _.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(v, A, C) {
1807
- var N = C && C.toUpperCase();
1808
- return A || b[C] || u[C] || b[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(f, c, i) {
1809
- return c || i.slice(1);
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 k(D) {
1808
+ var _, y;
1809
+ _ = D, y = m && m.formats;
1810
+ for (var M = (D = _.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(x, B, R) {
1811
+ 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), P = T.length, I = 0; I < P; I += 1) {
1812
- var L = T[I], h = k[L], w = h && h[0], $ = h && h[1];
1813
- T[I] = $ ? { regex: w, parser: $ } : L.replace(/^\[|\]$/g, "");
1815
+ }))).match(t), $ = M.length, P = 0; P < $; P += 1) {
1816
+ var O = M[P], v = b[O], L = v && v[0], A = v && v[1];
1817
+ M[P] = A ? { regex: L, parser: A } : O.replace(/^\[|\]$/g, "");
1814
1818
  }
1815
- return function(v) {
1816
- for (var A = {}, C = 0, N = 0; C < P; C += 1) {
1817
- var f = T[C];
1818
- if (typeof f == "string") N += f.length;
1819
+ return function(x) {
1820
+ for (var B = {}, R = 0, I = 0; R < $; R += 1) {
1821
+ var C = M[R];
1822
+ if (typeof C == "string") I += C.length;
1819
1823
  else {
1820
- var c = f.regex, i = f.parser, l = v.slice(N), d = c.exec(l)[0];
1821
- i.call(A, d), v = v.replace(d, "");
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(D) {
1825
- var S = D.afternoon;
1826
- if (S !== void 0) {
1827
- var x = D.hours;
1828
- S ? x < 12 && (D.hours += 12) : x === 12 && (D.hours = 0), delete D.afternoon;
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
- })(A), A;
1834
+ })(B), B;
1831
1835
  };
1832
1836
  }
1833
- return function(y, _, b) {
1834
- b.p.customParseFormat = !0, y && y.parseTwoDigitYear && (m = y.parseTwoDigitYear);
1835
- var T = _.prototype, P = T.parse;
1836
- T.parse = function(I) {
1837
- var L = I.date, h = I.utc, w = I.args;
1838
- this.$u = h;
1839
- var $ = w[1];
1840
- if (typeof $ == "string") {
1841
- var v = w[2] === !0, A = w[3] === !0, C = v || A, N = w[2];
1842
- A && (N = w[2]), E = this.$locale(), !v && N && (E = b.Ls[N]), this.$d = (function(l, d, D, S) {
1837
+ return function(D, _, y) {
1838
+ y.p.customParseFormat = !0, D && D.parseTwoDigitYear && (E = D.parseTwoDigitYear);
1839
+ var M = _.prototype, $ = M.parse;
1840
+ M.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(d) > -1) return new Date((d === "X" ? 1e3 : 1) * l);
1845
- var x = R(d)(l), O = x.year, V = x.month, z = x.day, W = x.hours, U = x.minutes, X = x.seconds, Z = x.milliseconds, q = x.zone, H = x.week, Q = /* @__PURE__ */ new Date(), K = z || (O || V ? 1 : Q.getDate()), j = O || Q.getFullYear(), ue = 0;
1846
- O && !V || (ue = V > 0 ? V - 1 : Q.getMonth());
1847
- var ne, le = W || 0, se = U || 0, ce = X || 0, oe = Z || 0;
1848
- return q ? new Date(Date.UTC(j, ue, K, le, se, ce, oe + 60 * q.offset * 1e3)) : D ? new Date(Date.UTC(j, ue, K, le, se, ce, oe)) : (ne = new Date(j, ue, K, le, se, ce, oe), H && (ne = S(ne).week(H).toDate()), ne);
1848
+ if (["x", "X"].indexOf(a) > -1) return new Date((a === "X" ? 1e3 : 1) * c);
1849
+ var S = k(a)(c), N = S.year, z = S.month, G = S.day, H = S.hours, W = S.minutes, q = S.seconds, Q = S.milliseconds, Z = S.zone, U = S.week, j = /* @__PURE__ */ new Date(), K = G || (N || z ? 1 : j.getDate()), X = N || j.getFullYear(), J = 0;
1850
+ N && !z || (J = z > 0 ? z - 1 : j.getMonth());
1851
+ var ae, ne = H || 0, ce = W || 0, he = q || 0, ie = Q || 0;
1852
+ return Z ? new Date(Date.UTC(X, J, K, ne, ce, he, ie + 60 * Z.offset * 1e3)) : p ? new Date(Date.UTC(X, J, K, ne, ce, he, ie)) : (ae = new Date(X, J, K, ne, ce, he, ie), U && (ae = h(ae).week(U).toDate()), ae);
1849
1853
  } catch {
1850
1854
  return /* @__PURE__ */ new Date("");
1851
1855
  }
1852
- })(L, $, h, b), this.init(), N && N !== !0 && (this.$L = this.locale(N).$L), C && L != this.format($) && (this.$d = /* @__PURE__ */ new Date("")), E = {};
1853
- } else if ($ instanceof Array) for (var f = $.length, c = 1; c <= f; c += 1) {
1854
- w[1] = $[c - 1];
1855
- var i = b.apply(this, w);
1856
- if (i.isValid()) {
1857
- this.$d = i.$d, this.$L = i.$L, this.init();
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
- c === f && (this.$d = /* @__PURE__ */ new Date(""));
1864
+ d === C && (this.$d = /* @__PURE__ */ new Date(""));
1861
1865
  }
1862
- else P.call(this, I);
1866
+ else $.call(this, P);
1863
1867
  };
1864
1868
  };
1865
1869
  }));
1866
1870
  })(Qe)), Qe.exports;
1867
1871
  }
1868
- var sn = ln();
1869
- const cn = /* @__PURE__ */ Ku(sn);
1870
- He.extend(cn);
1871
- function Ft(r) {
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 Au(r) {
1878
+ function Su(r) {
1875
1879
  return !!(r && He(r, "YYYYMMDD", !0).isValid());
1876
1880
  }
1877
- function Ct(r) {
1881
+ function ft(r) {
1878
1882
  return r.replaceAll("-", "");
1879
1883
  }
1880
- function cu(r) {
1881
- return Au(r) ? He(r, "YYYYMMDD", !0).format("YYYY-MM-DD") : r;
1884
+ function du(r) {
1885
+ return Su(r) ? He(r, "YYYYMMDD", !0).format("YYYY-MM-DD") : r;
1882
1886
  }
1883
- function Su(r) {
1887
+ function xu(r) {
1884
1888
  const e = r.trim(), u = e.slice(0, 8);
1885
- return Au(u) ? cu(u) : e.slice(0, 10);
1889
+ return Su(u) ? du(u) : e.slice(0, 10);
1886
1890
  }
1887
- function ft(r, e) {
1891
+ function gt(r, e) {
1888
1892
  switch (e) {
1889
1893
  case "instrumentCode":
1890
- return r.instrumentCode || ae;
1894
+ return r.instrumentCode || oe;
1891
1895
  case "scrtyCode":
1892
- return r.scrtyCode || ae;
1896
+ return r.scrtyCode || oe;
1893
1897
  case "fwdMaturityDate":
1894
- return r.fwdMaturityDate ? cu(r.fwdMaturityDate) : ae;
1898
+ return r.fwdMaturityDate ? du(r.fwdMaturityDate) : oe;
1895
1899
  case "settleDate":
1896
- return r.settleDate ? cu(r.settleDate) : ae;
1900
+ return r.settleDate ? du(r.settleDate) : oe;
1897
1901
  case "physicalDelivery":
1898
- return r.physicalDelivery === "1" ? "实物交割" : r.physicalDelivery === "2" ? "现金交割" : ae;
1902
+ return r.physicalDelivery === "1" ? "实物交割" : r.physicalDelivery === "2" ? "现金交割" : oe;
1899
1903
  case "direction":
1900
- return r.direction === "L" ? "买入" : r.direction === "S" ? "卖出" : "";
1904
+ return r.direction === "L" ? "买入" : r.direction === "S" ? "卖出" : oe;
1901
1905
  case "fwdDlvPrice":
1902
- return r.fwdDlvPrice || ae;
1906
+ return r.fwdDlvPrice || oe;
1903
1907
  case "targtVol":
1904
- return bu(r.targtVol);
1908
+ return Au(r.targtVol);
1905
1909
  default:
1906
- return ae;
1910
+ return oe;
1907
1911
  }
1908
1912
  }
1909
- function gt(r, e, u) {
1910
- return e === "npv" ? $u(r?.npv, u) : e === "forwardPrice" ? $u(r?.forwardPrice, u, 8) : bu(r?.discountFactor, 4);
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 dn = ["npv", "forwardPrice", "discountFactor"], mn = {
1916
+ const mn = ["npv", "forwardPrice", "discountFactor"], En = {
1913
1917
  suppressHeaderMenuButton: !0,
1914
1918
  suppressHeaderContextMenu: !0
1915
- }, En = {
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
- }, Fn = ({
1938
+ }, Cn = ({
1935
1939
  rowNode: r
1936
1940
  }) => r.data?.kind === "error";
1937
- function Cn(r) {
1938
- const e = Y.c(3), {
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: G.gridErrorIcon,
1944
- section: G.gridErrorSection
1947
+ icon: Y.gridErrorIcon,
1948
+ section: Y.gridErrorSection
1945
1949
  }, e[0] = n) : n = e[0];
1946
- let o;
1947
- return e[1] !== t ? (o = /* @__PURE__ */ F(Ye, { className: G.gridErrorAlert, classNames: n, type: "error", showIcon: !0, title: /* @__PURE__ */ ke("span", { className: G.gridErrorMessage, title: t, children: [
1950
+ let i;
1951
+ return e[1] !== t ? (i = /* @__PURE__ */ F(Ye, { className: Y.gridErrorAlert, classNames: n, type: "error", showIcon: !0, title: /* @__PURE__ */ we("span", { className: Y.gridErrorMessage, title: t, children: [
1948
1952
  "计算失败,失败原因:",
1949
1953
  t
1950
- ] }) }), e[1] = t, e[2] = o) : o = e[2], o;
1954
+ ] }) }), e[1] = t, e[2] = i) : i = e[2], i;
1951
1955
  }
1952
- function fn(r) {
1953
- const e = Y.c(15), {
1956
+ function gn(r) {
1957
+ const e = V.c(15), {
1954
1958
  contract: u,
1955
1959
  calculation: t,
1956
1960
  loading: n
1957
- } = r, o = te(null), a = te(null);
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(su.map((b) => [b.key, b.kind === "contract" ? ft(u, b.key) : ae]))
1966
+ ...Object.fromEntries(cu.map((y) => [y.key, y.kind === "contract" ? gt(u, y.key) : oe]))
1963
1967
  }], e[0] = u, e[1] = s) : s = e[1];
1964
- const E = s;
1965
- let m;
1966
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = su.map(hn), e[2] = m) : m = e[2];
1967
- const p = m;
1968
- let g;
1969
- e[3] !== t || e[4] !== u.currency ? (g = (b) => {
1970
- const T = b.getRowNode("contract"), P = T?.data ? {
1971
- ...T.data
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 M = y.getRowNode("contract"), $ = M?.data ? {
1975
+ ...M.data
1972
1976
  } : null;
1973
- if (dn.forEach((I) => {
1974
- const L = t?.status === "success" ? gt(t.result, I, u.currency) : ae;
1975
- T?.setDataValue(I, L), P && (P[I] = L);
1976
- }), T && P && T.setData(P), a.current && (b.applyTransaction({
1977
- remove: [a.current]
1978
- }), a.current = null), t?.status === "error") {
1979
- const I = {
1977
+ if (mn.forEach((P) => {
1978
+ const O = t?.status === "success" ? pt(t.result, P, u.currency) : oe;
1979
+ M?.setDataValue(P, O), $ && ($[P] = O);
1980
+ }), M && $ && M.setData($), l.current && (y.applyTransaction({
1981
+ 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
- b.applyTransaction({
1985
- add: [I]
1986
- }), a.current = I;
1988
+ y.applyTransaction({
1989
+ add: [P]
1990
+ }), l.current = P;
1987
1991
  }
1988
- b.resetRowHeights();
1989
- }, e[3] = t, e[4] = u.currency, e[5] = g) : g = e[5];
1990
- const M = g;
1991
- let B, k;
1992
- e[6] !== M ? (B = () => {
1993
- o.current && M(o.current);
1994
- }, k = [M], e[6] = M, e[7] = B, e[8] = k) : (B = e[7], k = e[8]), pe(B, k);
1995
- let R;
1996
- e[9] !== M ? (R = (b) => {
1997
- o.current = b.api, M(b.api);
1998
- }, e[9] = M, e[10] = R) : R = e[10];
1999
- const y = R;
1992
+ y.resetRowHeights();
1993
+ }, e[3] = t, e[4] = u.currency, e[5] = f) : f = e[5];
1994
+ const w = f;
1995
+ let T, b;
1996
+ e[6] !== w ? (T = () => {
1997
+ i.current && w(i.current);
1998
+ }, b = [w], e[6] = w, e[7] = T, e[8] = b) : (T = e[7], b = e[8]), ve(T, b);
1999
+ let k;
2000
+ e[9] !== w ? (k = (y) => {
2001
+ i.current = y.api, w(y.api);
2002
+ }, e[9] = w, e[10] = k) : k = e[10];
2003
+ const D = k;
2000
2004
  let _;
2001
- return e[11] !== n || e[12] !== y || e[13] !== E ? (_ = /* @__PURE__ */ F("div", { className: G.fixedGrid, "aria-label": "单笔合约定价结果", children: /* @__PURE__ */ F(Bu, { rowData: E, columnDefs: p, defaultColDef: mn, onGridReady: y, getRowId: pn, isFullWidthRow: Fn, fullWidthCellRenderer: Cn, getRowHeight: gn, headerHeight: 32, rowHeight: 32, autoSizeStrategy: En, autoSizePadding: 16, suppressColumnVirtualisation: !0, tooltipShowMode: "whenTruncated", tooltipShowDelay: 0, domLayout: "autoHeight", pagination: !1, loading: n, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }) }), e[11] = n, e[12] = y, e[13] = E, e[14] = _) : _ = e[14], _;
2005
+ return e[11] !== n || e[12] !== D || e[13] !== m ? (_ = /* @__PURE__ */ F("div", { className: Y.fixedGrid, "aria-label": "单笔合约定价结果", children: /* @__PURE__ */ F(yu, { rowData: m, columnDefs: g, defaultColDef: En, onGridReady: D, getRowId: vn, isFullWidthRow: Cn, fullWidthCellRenderer: fn, getRowHeight: pn, headerHeight: 32, rowHeight: 32, autoSizeStrategy: Fn, autoSizePadding: 16, suppressColumnVirtualisation: !0, tooltipShowMode: "whenTruncated", tooltipShowDelay: 0, domLayout: "autoHeight", pagination: !1, loading: n, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }) }), e[11] = n, e[12] = D, e[13] = m, e[14] = _) : _ = e[14], _;
2002
2006
  }
2003
- function gn(r) {
2007
+ function pn(r) {
2004
2008
  return r.data?.kind === "error" ? 28 : 32;
2005
2009
  }
2006
- function pn(r) {
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(mt, { value: String(e.value ?? ae) }) : /* @__PURE__ */ F(Et, { field: r.key, value: String(e.value ?? ae) })
2024
+ cellRenderer: (e) => r.kind === "result" ? /* @__PURE__ */ F(Et, { value: String(e.value ?? oe) }) : /* @__PURE__ */ F(Ft, { field: r.key, value: String(e.value ?? oe) })
2021
2025
  };
2022
2026
  }
2023
- const Tu = ee((r, e) => {
2024
- const u = Y.c(3);
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(Zt, { ref: e, ...r }), u[0] = r, u[1] = e, u[2] = t) : t = u[2], t;
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 vn = ["npv", "forwardPrice", "discountFactor"], Dn = {
2033
+ const Dn = ["npv", "forwardPrice", "discountFactor"], Bn = {
2030
2034
  suppressHeaderMenuButton: !0,
2031
2035
  suppressHeaderContextMenu: !0
2032
- }, Pu = {
2036
+ }, Lu = {
2033
2037
  kind: "empty",
2034
- display: ae
2038
+ display: oe
2035
2039
  };
2036
2040
  function Ke(r) {
2037
2041
  return !!(r && typeof r == "object" && "kind" in r);
2038
2042
  }
2039
- function Bn(r) {
2040
- const e = Y.c(32), {
2043
+ function yn(r) {
2044
+ const e = V.c(34), {
2041
2045
  single: u,
2042
2046
  contracts: t,
2043
2047
  results: n,
2044
- loading: o
2045
- } = r, a = u === void 0 ? !1 : u, s = te(null), E = a ? cr : su;
2046
- let m;
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 A;
2049
- e[3] !== t ? (A = (C) => ({
2050
- id: C.key,
2051
- label: C.label,
2052
- kind: C.kind,
2053
- ...Object.fromEntries(t.map((N) => [N.contractId, C.kind === "contract" ? ft(N, C.key) : Pu]))
2054
- }), e[3] = t, e[4] = A) : A = e[4], m = E.map(A), e[0] = t, e[1] = E, e[2] = m;
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
- m = e[2];
2057
- const p = m, g = a ? "" : "字段", M = a ? 160 : 180, B = a ? 160 : 180;
2060
+ g = e[2];
2061
+ const f = g, w = l ? "" : "字段", T = l ? 160 : 180, b = l ? 160 : 180;
2058
2062
  let k;
2059
- e[5] !== g || e[6] !== M || e[7] !== B ? (k = {
2063
+ e[5] !== w || e[6] !== T || e[7] !== b ? (k = {
2060
2064
  field: "label",
2061
2065
  colId: "field",
2062
- headerName: g,
2066
+ headerName: w,
2063
2067
  pinned: "left",
2064
2068
  lockPinned: !0,
2065
- width: M,
2066
- minWidth: B,
2069
+ width: T,
2070
+ minWidth: b,
2067
2071
  sortable: !1,
2068
2072
  resizable: !1,
2069
2073
  suppressMovable: !0,
2070
- cellClass: G.fieldCell
2071
- }, e[5] = g, e[6] = M, e[7] = B, e[8] = k) : k = e[8];
2072
- let R;
2073
- if (e[9] !== t || e[10] !== a || e[11] !== k) {
2074
- let A;
2075
- e[13] !== a ? (A = (C, N) => ({
2076
- field: C.contractId,
2077
- colId: C.contractId,
2078
- headerName: String(N + 1).padStart(3, "0"),
2079
- headerClass: a ? G.singleContractHeader : void 0,
2074
+ cellClass: Y.fieldCell
2075
+ }, e[5] = w, e[6] = T, e[7] = b, e[8] = k) : k = e[8];
2076
+ let D;
2077
+ if (e[9] !== t || e[10] !== l || e[11] !== k) {
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: Sn,
2087
- cellClass: An,
2088
- cellRenderer: bn
2089
- }), e[13] = a, e[14] = A) : A = e[14], R = [k, ...t.map(A)], e[9] = t, e[10] = a, e[11] = k, e[12] = R;
2090
+ spanRows: xn,
2091
+ cellClass: Sn,
2092
+ cellRenderer: An
2093
+ }), e[13] = l, e[14] = o) : o = e[14], D = [k, ...t.map(o)], e[9] = t, e[10] = l, e[11] = k, e[12] = D;
2090
2094
  } else
2091
- R = e[12];
2092
- const y = R;
2093
- let _;
2094
- e[15] !== t || e[16] !== n ? (_ = (A) => {
2095
- vn.forEach((C) => {
2096
- const N = A.getRowNode(C);
2097
- if (!N?.data)
2095
+ D = e[12];
2096
+ const _ = 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 f = {
2100
- ...N.data
2103
+ const p = {
2104
+ ...a.data
2101
2105
  };
2102
- t.forEach((c) => {
2103
- const i = n[c.contractId];
2104
- let l = Pu;
2105
- i?.status === "success" ? l = {
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: gt(i.result, C, c.currency),
2108
- rawValue: i.result?.[C]
2109
- } : i?.status === "error" && (l = {
2111
+ display: pt(S.result, c, h.currency),
2112
+ rawValue: S.result?.[c]
2113
+ } : S?.status === "error" && (N = {
2110
2114
  kind: "error",
2111
- display: i.message ?? "定价计算失败"
2112
- }), N.setDataValue(c.contractId, l), f[c.contractId] = l;
2113
- }), N.setData(f);
2114
- }), A.refreshCells({
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
- }), A.resetRowHeights();
2117
- }, e[15] = t, e[16] = n, e[17] = _) : _ = e[17];
2118
- const b = _;
2119
- let T, P;
2120
- e[18] !== b ? (T = () => {
2121
- s.current && b(s.current);
2122
- }, P = [b], e[18] = b, e[19] = T, e[20] = P) : (T = e[19], P = e[20]), pe(T, P);
2123
- let I;
2124
- e[21] !== b ? (I = (A) => {
2125
- s.current = A.api, b(A.api);
2126
- }, e[21] = b, e[22] = I) : I = e[22];
2127
- const L = I, h = `${G.multipleGrid}${a ? ` ${G.singleGrid}` : ""}`, w = a ? "单笔合约定价结果" : "多笔合约定价结果";
2128
- let $;
2129
- e[23] !== y || e[24] !== o || e[25] !== L || e[26] !== p ? ($ = /* @__PURE__ */ F(Bu, { rowData: p, columnDefs: y, defaultColDef: Dn, onGridReady: L, getRowId: yn, headerHeight: 32, rowHeight: 28, domLayout: "autoHeight", pagination: !1, loading: o, enableCellSpan: !0, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }), e[23] = y, e[24] = o, e[25] = L, e[26] = p, e[27] = $) : $ = e[27];
2130
- let v;
2131
- return e[28] !== h || e[29] !== w || e[30] !== $ ? (v = /* @__PURE__ */ F("div", { className: h, "aria-label": w, children: $ }), e[28] = h, e[29] = w, e[30] = $, e[31] = v) : v = e[31], v;
2120
+ }), o.resetRowHeights();
2121
+ }, e[15] = t, e[16] = n, e[17] = y) : y = e[17];
2122
+ const M = y;
2123
+ let $, P;
2124
+ e[18] !== M ? ($ = () => {
2125
+ m.current && M(m.current);
2126
+ }, P = [M], e[18] = M, e[19] = $, e[20] = P) : ($ = e[19], P = e[20]), ve($, P);
2127
+ 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] !== M ? (x = (o) => {
2139
+ m.current = o.api, v(o.api.getHorizontalPixelRange().left), M(o.api);
2140
+ }, e[23] = M, e[24] = x) : x = e[24];
2141
+ const B = x, R = `${Y.multipleGrid}${l ? ` ${Y.singleGrid}` : ""}`, I = l ? "单笔合约定价结果" : "多笔合约定价结果";
2142
+ let C;
2143
+ e[25] !== _ || e[26] !== i || e[27] !== B || e[28] !== f ? (C = /* @__PURE__ */ F(yu, { rowData: f, columnDefs: _, defaultColDef: Bn, onGridReady: B, onBodyScroll: A, getRowId: bn, headerHeight: 32, rowHeight: 28, domLayout: "autoHeight", pagination: !1, loading: i, enableCellSpan: !0, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }), e[25] = _, e[26] = i, e[27] = B, e[28] = f, e[29] = C) : C = e[29];
2144
+ 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 yn(r) {
2147
+ function bn(r) {
2134
2148
  return r.data.id;
2135
2149
  }
2136
- function bn(r) {
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: G.mergedErrorCell, children: /* @__PURE__ */ F("span", { className: G.mergedErrorText, children: t }) }) });
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(mt, { value: u.display, rawValue: u.rawValue });
2157
+ return /* @__PURE__ */ F(Et, { value: u.display, rawValue: u.rawValue });
2144
2158
  }
2145
- return e ? /* @__PURE__ */ F(Et, { field: e, value: String(u ?? ae) }) : null;
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 ?? oe) }) : 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 pt = ee((r, e) => {
2155
- const u = Y.c(3);
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
- pt.displayName = "GZMonthPicker";
2160
- const ht = ee((r, e) => {
2161
- const u = Y.c(3);
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 vt = ee((r, e) => {
2167
- const u = Y.c(7);
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 o;
2174
- return u[3] !== t || u[4] !== e || u[5] !== n ? (o = /* @__PURE__ */ F(Re.RangePicker, { ref: e, ...n, children: t }), u[3] = t, u[4] = e, u[5] = n, u[6] = o) : o = u[6], o;
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
- vt.displayName = "GZRangePicker";
2177
- const Dt = ee((r, e) => {
2178
- const u = Y.c(3);
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
- Dt.displayName = "GZTimePicker";
2183
- const Bt = ee((r, e) => {
2184
- const u = Y.c(3);
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
- Bt.displayName = "GZWeekPicker";
2189
- const yt = ee((r, e) => {
2190
- const u = Y.c(3);
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
- yt.displayName = "GZYearPicker";
2195
- const Tn = ee((r, e) => {
2196
- const u = Y.c(3);
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
- }), _e = Tn;
2200
- _e.RangePicker = vt;
2201
- _e.WeekPicker = Bt;
2202
- _e.MonthPicker = pt;
2203
- _e.YearPicker = yt;
2204
- _e.QuarterPicker = ht;
2205
- _e.TimePicker = Dt;
2206
- _e.displayName = "GZDatePicker";
2207
- const bt = ee((r, e) => {
2208
- const u = Y.c(13);
2209
- let t, n, o;
2213
+ }), ke = Tn;
2214
+ ke.RangePicker = Dt;
2215
+ ke.WeekPicker = yt;
2216
+ ke.MonthPicker = vt;
2217
+ ke.YearPicker = bt;
2218
+ ke.QuarterPicker = ht;
2219
+ ke.TimePicker = Bt;
2220
+ ke.displayName = "GZDatePicker";
2221
+ 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
- ...o
2214
- } = r, u[0] = r, u[1] = t, u[2] = n, u[3] = o) : (t = u[1], n = u[2], o = u[3]);
2215
- let a;
2216
- u[4] !== n ? (a = n === void 0 ? void 0 : {
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] = a) : a = u[5];
2223
- const s = a, E = o;
2224
- let m;
2225
- u[6] !== t || u[7] !== e || u[8] !== E ? (m = /* @__PURE__ */ F(Me, { ref: e, ...E, children: t }), u[6] = t, u[7] = e, u[8] = E, u[9] = m) : m = u[9];
2226
- let p;
2227
- return u[10] !== m || u[11] !== s ? (p = /* @__PURE__ */ F(qt, { theme: s, children: m }), u[10] = m, u[11] = s, u[12] = p) : p = u[12], p;
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(Me, { 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
- bt.displayName = "GZForm";
2230
- const At = (r) => {
2231
- const e = Y.c(6);
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 o;
2239
- return e[3] !== u || e[4] !== n ? (o = /* @__PURE__ */ F(Me.Item, { ...n, children: u }), e[3] = u, e[4] = n, e[5] = o) : o = e[5], o;
2252
+ let i;
2253
+ return e[3] !== u || e[4] !== n ? (i = /* @__PURE__ */ F(Me.Item, { ...n, children: u }), e[3] = u, e[4] = n, e[5] = i) : i = e[5], i;
2240
2254
  };
2241
- At.displayName = "GZFormItem";
2242
- const St = (r) => {
2243
- const e = Y.c(2);
2255
+ St.displayName = "GZFormItem";
2256
+ const xt = (r) => {
2257
+ const e = V.c(2);
2244
2258
  let u;
2245
2259
  return e[0] !== r ? (u = /* @__PURE__ */ F(Me.List, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
2246
2260
  };
2247
- St.displayName = "GZFormList";
2261
+ xt.displayName = "GZFormList";
2248
2262
  const Tt = (r) => {
2249
- const e = Y.c(2);
2263
+ const e = V.c(2);
2250
2264
  let u;
2251
2265
  return e[0] !== r ? (u = /* @__PURE__ */ F(Me.ErrorList, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
2252
2266
  };
2253
2267
  Tt.displayName = "GZErrorList";
2254
- const xt = (r) => {
2255
- const e = Y.c(2);
2268
+ const wt = (r) => {
2269
+ const e = V.c(2);
2256
2270
  let u;
2257
2271
  return e[0] !== r ? (u = /* @__PURE__ */ F(Me.Provider, { ...r }), e[0] = r, e[1] = u) : u = e[1], u;
2258
2272
  };
2259
- xt.displayName = "GZFormProvider";
2260
- const De = bt;
2261
- De.Item = At;
2262
- De.List = St;
2273
+ wt.displayName = "GZFormProvider";
2274
+ const De = At;
2275
+ De.Item = St;
2276
+ De.List = xt;
2263
2277
  De.ErrorList = Tt;
2264
- De.Provider = xt;
2278
+ De.Provider = wt;
2265
2279
  De.useForm = Me.useForm;
2266
2280
  De.useFormInstance = Me.useFormInstance;
2267
2281
  De.useWatch = Me.useWatch;
2268
- const kt = ee((r, e) => {
2269
- const u = Y.c(7);
2282
+ const _t = 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 o = e;
2276
- let a;
2277
- return u[3] !== t || u[4] !== n || u[5] !== o ? (a = /* @__PURE__ */ F(Cu.Option, { ref: o, ...n, children: t }), u[3] = t, u[4] = n, u[5] = o, u[6] = a) : a = u[6], a;
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
- kt.displayName = "GZSelectOption";
2280
- const wt = ee((r, e) => {
2281
- const u = Y.c(7);
2293
+ _t.displayName = "GZSelectOption";
2294
+ const Mt = 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 o = e;
2288
- let a;
2289
- return u[3] !== t || u[4] !== n || u[5] !== o ? (a = /* @__PURE__ */ F(Cu.OptGroup, { ref: o, ...n, children: t }), u[3] = t, u[4] = n, u[5] = o, u[6] = a) : a = u[6], a;
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
- wt.displayName = "GZSelectOptGroup";
2292
- const xn = ee((r, e) => {
2293
- const u = Y.c(3), t = e;
2305
+ Mt.displayName = "GZSelectOptGroup";
2306
+ const wn = 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(Cu, { ref: t, ...r }), u[0] = r, u[1] = t, u[2] = n) : n = u[2], n;
2296
- }), Ne = xn;
2297
- Ne.Option = kt;
2298
- Ne.OptGroup = wt;
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 = wn;
2311
+ Ne.Option = _t;
2312
+ Ne.OptGroup = Mt;
2299
2313
  Ne.displayName = "GZSelect";
2300
- function Lu(r, e) {
2314
+ function Nu(r, e) {
2301
2315
  if (r?.source !== "custom" || !e) return;
2302
- const u = r.executeDay ? Su(r.executeDay) : void 0;
2316
+ const u = r.executeDay ? xu(r.executeDay) : void 0;
2303
2317
  return !u || u !== e ? "曲线日与估值日非同一日" : void 0;
2304
2318
  }
2305
- function kn(r) {
2319
+ function _n(r) {
2306
2320
  const e = {};
2307
- return Object.keys(_u).forEach((u) => {
2308
- r[u] || (e[u] = [_u[u]]);
2309
- }), r.valuationDate && !Ft(r.valuationDate) && (e.valuationDate = ["估值日格式必须为 YYYY-MM-DD"]), e;
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 wn(r, e) {
2312
- if (!r || !Ft(r) || e.length === 0)
2325
+ function Mn(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((o) => o.settleDate);
2319
- if (u.some((o) => !Au(o)))
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((o, a) => a > o ? a : o), n = Ct(r) <= t;
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,
@@ -2335,231 +2349,231 @@ function Ze(r) {
2335
2349
  help: r?.join(";")
2336
2350
  };
2337
2351
  }
2338
- function Mt(r, e, u = "") {
2352
+ function kt(r, e, u = "") {
2339
2353
  return r && e ? `${r}(${e})` : r || e || u;
2340
2354
  }
2341
- function du(r) {
2355
+ function mu(r) {
2342
2356
  if (!r) return "";
2343
- const e = Mt(r.name, r.code, r.label);
2344
- return r.source === "custom" && r.executeDay ? `${e}-${Su(r.executeDay)}` : e;
2357
+ const e = kt(r.name, r.code, r.label);
2358
+ return r.source === "custom" && r.executeDay ? `${e}-${xu(r.executeDay)}` : e;
2345
2359
  }
2346
2360
  function qe(r) {
2347
- const e = Y.c(7), {
2361
+ const e = V.c(7), {
2348
2362
  text: u
2349
- } = r, t = te(null), [n, o] = Oe(!1);
2350
- let a;
2351
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = (m) => {
2352
- const p = t.current, g = !!(p && p.scrollWidth > p.clientWidth);
2353
- o(m && g);
2354
- }, e[0] = a) : a = 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: G.contextFormLabelText, children: u }), e[1] = u, e[2] = s) : s = e[2];
2357
- let E;
2358
- return e[3] !== s || e[4] !== u || e[5] !== n ? (E = /* @__PURE__ */ F(Tu, { title: u, open: n, onOpenChange: a, children: s }), e[3] = s, e[4] = u, e[5] = n, e[6] = E) : E = e[6], E;
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
- function Mn(r) {
2361
- const e = Y.c(110), {
2374
+ function kn(r) {
2375
+ const e = V.c(110), {
2362
2376
  mode: u,
2363
2377
  layout: t,
2364
2378
  value: n,
2365
- errors: o,
2366
- environments: a,
2379
+ errors: i,
2380
+ environments: l,
2367
2381
  discountCurves: s,
2368
- carbonForwardCurves: E,
2369
- environmentsLoading: m,
2370
- curvesLoading: p,
2371
- curvesDisabled: g,
2372
- disabled: M,
2373
- onChange: B
2374
- } = r, k = u === "single" && t === "vertical", R = u === "single" && t === "horizontal", y = u === "multiple" ? G.multiple : k ? G.single : G.fixedSingle;
2382
+ carbonForwardCurves: m,
2383
+ environmentsLoading: E,
2384
+ curvesLoading: g,
2385
+ curvesDisabled: f,
2386
+ disabled: w,
2387
+ onChange: T
2388
+ } = r, b = u === "single" && t === "vertical", k = u === "single" && t === "horizontal", D = u === "multiple" ? Y.multiple : b ? Y.single : Y.fixedSingle;
2375
2389
  let _;
2376
- e[0] !== a ? (_ = a.map(In), e[0] = a, e[1] = _) : _ = e[1];
2377
- const b = _, T = _n;
2378
- let P;
2379
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
2390
+ e[0] !== l ? (_ = l.map(Rn), e[0] = l, e[1] = _) : _ = e[1];
2391
+ const y = _, M = $n;
2392
+ let $;
2393
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = {
2380
2394
  popup: {
2381
- root: G.selectPopup,
2382
- listItem: G.selectPopupListItem
2395
+ root: Y.selectPopup,
2396
+ listItem: Y.selectPopupListItem
2383
2397
  }
2384
- }, e[2] = P) : P = e[2];
2385
- const I = R ? 420 : 432;
2386
- let L;
2387
- e[3] !== I ? (L = {
2398
+ }, e[2] = $) : $ = e[2];
2399
+ const P = k ? 420 : 432;
2400
+ let O;
2401
+ e[3] !== P ? (O = {
2388
2402
  popupMatchSelectWidth: !1,
2389
- classNames: P,
2403
+ classNames: $,
2390
2404
  styles: {
2391
2405
  popup: {
2392
2406
  root: {
2393
- maxWidth: I
2407
+ maxWidth: P
2394
2408
  }
2395
2409
  }
2396
2410
  }
2397
- }, e[3] = I, e[4] = L) : L = e[4];
2398
- const h = L;
2399
- let w;
2400
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ F(qe, { text: "碳金融远期价格曲线" }), e[5] = w) : w = e[5];
2401
- let $;
2402
- e[6] !== n.carbonForwardCurve || e[7] !== n.valuationDate ? ($ = Lu(n.carbonForwardCurve, n.valuationDate), e[6] = n.carbonForwardCurve, e[7] = n.valuationDate, e[8] = $) : $ = e[8];
2403
- let v;
2404
- e[9] !== o.carbonForwardCurve ? (v = Ze(o.carbonForwardCurve), e[9] = o.carbonForwardCurve, e[10] = v) : v = e[10];
2405
- const A = M || g;
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 = w || f;
2420
+ let R;
2421
+ e[11] !== m ? (R = M(m), e[11] = m, e[12] = R) : R = e[12];
2422
+ const I = n.carbonForwardCurve?.key;
2406
2423
  let C;
2407
- e[11] !== E ? (C = T(E), e[11] = E, e[12] = C) : C = e[12];
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[29] !== l || e[30] !== $ || e[31] !== v ? (d = /* @__PURE__ */ F(De.Item, { className: G.contextFormItem, label: w, required: !0, extra: $, ...v, children: l }), e[29] = l, e[30] = $, e[31] = v, e[32] = d) : d = e[32];
2419
- const D = d;
2426
+ e[15] !== m || e[16] !== T ? (d = (le) => T("carbonForwardCurve", m.find((te) => te.key === le) ?? null), e[15] = m, e[16] = T, e[17] = d) : d = e[17];
2427
+ 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[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ F(qe, { text: "无风险利率曲线" }), e[33] = S) : S = e[33];
2422
- let x;
2423
- e[34] !== n.discountCurve || e[35] !== n.valuationDate ? (x = Lu(n.discountCurve, n.valuationDate), e[34] = n.discountCurve, e[35] = n.valuationDate, e[36] = x) : x = e[36];
2424
- let O;
2425
- e[37] !== o.discountCurve ? (O = Ze(o.discountCurve), e[37] = o.discountCurve, e[38] = O) : O = e[38];
2426
- const V = M || g;
2427
- let z;
2428
- e[39] !== s ? (z = T(s), e[39] = s, e[40] = z) : z = e[40];
2429
- const W = n.discountCurve?.key;
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 = w || f;
2441
+ let G;
2442
+ e[39] !== s ? (G = M(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 = (le) => T("discountCurve", s.find((te) => te.key === le) ?? 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[41] !== n.discountCurve ? (U = () => du(n.discountCurve), e[41] = n.discountCurve, e[42] = U) : U = e[42];
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[43] !== s || e[44] !== B ? (X = (J) => B("discountCurve", s.find((Ae) => Ae.key === J) ?? null), e[43] = s, e[44] = B, e[45] = X) : X = e[45];
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] = j) : j = e[61];
2445
- const ue = k ? "1 1 0" : "0 0 var(--pricing-form-control-width)";
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];
2458
+ }, e[61] = X) : X = e[61];
2459
+ const J = b ? "1 1 0" : "0 0 var(--pricing-form-control-width)";
2460
+ let ae;
2461
+ e[62] !== J ? (ae = {
2462
+ flex: J
2463
+ }, e[62] = J, e[63] = ae) : ae = e[63];
2464
+ const ne = `${Y.contextForm} ${D}`;
2456
2465
  let ce;
2457
- e[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ce = /* @__PURE__ */ F(qe, { text: "定价环境" }), e[65] = ce) : ce = e[65];
2458
- let oe;
2459
- e[66] !== o.pricingEnvironment ? (oe = Ze(o.pricingEnvironment), e[66] = o.pricingEnvironment, e[67] = oe) : oe = e[67];
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 ie;
2473
+ e[66] !== i.pricingEnvironment ? (ie = Ze(i.pricingEnvironment), e[66] = i.pricingEnvironment, e[67] = ie) : ie = e[67];
2460
2474
  const Be = n.pricingEnvironment?.id;
2461
2475
  let me;
2462
- e[68] !== n.pricingEnvironment?.code || e[69] !== n.pricingEnvironment?.name ? (me = () => Mt(n.pricingEnvironment?.name, n.pricingEnvironment?.code), e[68] = n.pricingEnvironment?.code, e[69] = n.pricingEnvironment?.name, e[70] = me) : me = e[70];
2476
+ e[68] !== n.pricingEnvironment?.code || e[69] !== n.pricingEnvironment?.name ? (me = () => kt(n.pricingEnvironment?.name, n.pricingEnvironment?.code), e[68] = n.pricingEnvironment?.code, e[69] = n.pricingEnvironment?.name, e[70] = me) : me = e[70];
2463
2477
  let Ee;
2464
- e[71] !== a || e[72] !== B ? (Ee = (J) => B("pricingEnvironment", a.find((Ae) => Ae.id === J) ?? null), e[71] = a, e[72] = B, e[73] = Ee) : Ee = e[73];
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 = (le) => T("pricingEnvironment", l.find((te) => te.id === le) ?? null), e[71] = l, e[72] = T, e[73] = Ee) : Ee = e[73];
2469
2479
  let Fe;
2470
- e[85] !== oe || e[86] !== Te ? (Fe = /* @__PURE__ */ F(De.Item, { className: G.contextFormItem, label: ce, required: !0, ...oe, children: Te }), e[85] = oe, e[86] = Te, e[87] = Fe) : Fe = e[87];
2471
- const xe = k ? Q : D, we = k ? D : Q;
2472
- let ye;
2473
- e[88] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = /* @__PURE__ */ F(qe, { text: "估值日" }), e[88] = ye) : ye = e[88];
2480
+ e[74] !== T ? (Fe = () => T("pricingEnvironment", null), e[74] = T, e[75] = Fe) : Fe = e[75];
2481
+ let be;
2482
+ e[76] !== w || e[77] !== y || e[78] !== E || e[79] !== v || e[80] !== Be || e[81] !== me || e[82] !== Ee || e[83] !== Fe ? (be = /* @__PURE__ */ F(Ne, { ...v, "aria-label": "定价环境", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: E, disabled: w, placeholder: "请选择定价环境", options: y, value: Be, labelRender: me, onChange: Ee, onClear: Fe }), e[76] = w, e[77] = y, e[78] = E, e[79] = v, e[80] = Be, e[81] = me, e[82] = Ee, e[83] = Fe, e[84] = be) : be = e[84];
2483
+ let Ae;
2484
+ e[85] !== ie || e[86] !== be ? (Ae = /* @__PURE__ */ F(De.Item, { className: Y.contextFormItem, label: he, required: !0, ...ie, children: be }), e[85] = ie, e[86] = be, e[87] = Ae) : Ae = e[87];
2485
+ const Se = b ? j : p, xe = b ? p : j;
2486
+ let _e;
2487
+ e[88] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ F(qe, { text: "估值日" }), e[88] = _e) : _e = e[88];
2474
2488
  let Ce;
2475
- e[89] !== o.valuationDate ? (Ce = Ze(o.valuationDate), e[89] = o.valuationDate, e[90] = Ce) : Ce = e[90];
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 be;
2479
- e[93] !== B ? (be = (J) => {
2480
- const Ae = Array.isArray(J) ? J[0] : J;
2481
- B("valuationDate", Ae?.format("YYYY-MM-DD") ?? null);
2482
- }, e[93] = B, e[94] = be) : be = e[94];
2492
+ let ge;
2493
+ e[93] !== T ? (ge = (le) => {
2494
+ const te = Array.isArray(le) ? le[0] : le;
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] !== w || e[96] !== fe || e[97] !== ge ? (ye = /* @__PURE__ */ F(ke, { "aria-label": "估值日", allowClear: !0, disabled: w, value: fe, onChange: ge }), e[95] = w, e[96] = fe, e[97] = ge, e[98] = ye) : ye = e[98];
2483
2499
  let re;
2484
- e[95] !== M || e[96] !== fe || e[97] !== be ? (re = /* @__PURE__ */ F(_e, { "aria-label": "估值日", allowClear: !0, disabled: M, value: fe, onChange: be }), e[95] = M, e[96] = fe, e[97] = be, e[98] = re) : re = e[98];
2485
- let he;
2486
- e[99] !== Ce || e[100] !== re ? (he = /* @__PURE__ */ F(De.Item, { className: G.contextFormItem, label: ye, required: !0, ...Ce, children: re }), e[99] = Ce, e[100] = re, e[101] = he) : he = e[101];
2487
- let ve;
2488
- return e[102] !== K || e[103] !== ne || e[104] !== le || e[105] !== Fe || e[106] !== xe || e[107] !== we || e[108] !== he ? (ve = /* @__PURE__ */ ke(De, { component: "div", layout: "horizontal", labelAlign: K, labelCol: j, wrapperCol: ne, colon: !1, requiredMark: !0, className: le, classNames: se, children: [
2489
- Fe,
2500
+ e[99] !== Ce || e[100] !== ye ? (re = /* @__PURE__ */ F(De.Item, { className: Y.contextFormItem, label: _e, required: !0, ...Ce, children: ye }), e[99] = Ce, e[100] = ye, e[101] = re) : re = e[101];
2501
+ let Te;
2502
+ return e[102] !== K || e[103] !== ae || e[104] !== ne || e[105] !== Ae || e[106] !== Se || e[107] !== xe || e[108] !== re ? (Te = /* @__PURE__ */ we(De, { component: "div", layout: "horizontal", labelAlign: K, labelCol: X, wrapperCol: ae, colon: !1, requiredMark: !0, className: ne, classNames: ce, children: [
2503
+ Ae,
2504
+ Se,
2490
2505
  xe,
2491
- we,
2492
- he
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] = ae, 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: du(r),
2514
+ label: mu(r),
2501
2515
  value: r.key
2502
2516
  };
2503
2517
  }
2504
- function In(r) {
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 Rn(r) {
2511
- const e = Y.c(17), {
2524
+ function Pn(r) {
2525
+ const e = V.c(17), {
2512
2526
  mode: u,
2513
2527
  layout: t,
2514
2528
  allDisabled: n,
2515
- calculateDisabled: o,
2516
- submitting: a,
2529
+ calculateDisabled: i,
2530
+ submitting: l,
2517
2531
  onReset: s,
2518
- onNavigateToPricingPage: E,
2519
- onCalculate: m
2532
+ onNavigateToPricingPage: m,
2533
+ onCalculate: E
2520
2534
  } = r;
2521
- let p;
2522
- e[0] !== n || e[1] !== t || e[2] !== u || e[3] !== E || e[4] !== a ? (p = u === "multiple" || t === "horizontal" ? /* @__PURE__ */ F(Le, { className: G.navigateButton, icon: /* @__PURE__ */ F("span", { className: G.navigateIcon, "aria-hidden": "true" }), iconPlacement: "end", disabled: n || a || !E, onClick: E, children: "转定价界面" }) : null, e[0] = n, e[1] = t, e[2] = u, e[3] = E, e[4] = a, e[5] = p) : p = e[5];
2523
- const g = n || a;
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;
2538
+ let w;
2539
+ e[6] !== s || e[7] !== f ? (w = /* @__PURE__ */ F(Le, { disabled: f, onClick: s, children: "重置" }), e[6] = s, e[7] = f, e[8] = w) : w = e[8];
2540
+ 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];
2527
2543
  let k;
2528
- e[9] !== m || e[10] !== a || e[11] !== B ? (k = /* @__PURE__ */ F(Le, { type: "primary", loading: a, disabled: B, onClick: m, children: "计算" }), e[9] = m, e[10] = a, e[11] = B, e[12] = k) : k = e[12];
2529
- let R;
2530
- return e[13] !== p || e[14] !== M || e[15] !== k ? (R = /* @__PURE__ */ ke("div", { className: G.footer, children: [
2531
- p,
2532
- M,
2533
- k
2534
- ] }), e[13] = p, e[14] = M, e[15] = k, e[16] = R) : R = e[16], R;
2544
+ return e[13] !== g || e[14] !== w || e[15] !== b ? (k = /* @__PURE__ */ we("div", { className: Y.footer, children: [
2545
+ g,
2546
+ w,
2547
+ b
2548
+ ] }), e[13] = g, e[14] = w, e[15] = b, e[16] = k) : k = e[16], k;
2535
2549
  }
2536
- const Pn = {
2550
+ const Ln = {
2537
2551
  environments: "定价环境",
2538
2552
  discountDefinitions: "无风险利率曲线定义",
2539
2553
  customDiscountCurves: "自定义无风险利率曲线",
2540
2554
  carbonDefinitions: "碳金融远期价格曲线定义",
2541
2555
  customCarbonCurves: "自定义碳金融远期价格曲线"
2542
2556
  };
2543
- function Ln(r) {
2544
- const e = Y.c(9), {
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 o = n;
2551
- let a;
2552
- e[2] !== u || e[3] !== o ? (a = o.filter((m) => u[m].status === "error"), e[2] = u, e[3] = o, e[4] = a) : a = e[4];
2553
- const s = a;
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 E;
2557
- return e[5] !== s || e[6] !== t || e[7] !== u ? (E = /* @__PURE__ */ F("div", { className: G.resourceIssues, "aria-label": "资源加载异常", children: s.map((m) => {
2558
- const p = u[m], g = p.attempts >= lu;
2559
- return /* @__PURE__ */ F(Ye, { type: "error", showIcon: !0, title: `${Pn[m]}加载失败`, description: g ? `${p.error ?? "未知错误"}(已达到 3 次尝试上限)` : p.error, action: /* @__PURE__ */ F(Le, { size: "small", disabled: g, onClick: () => t(m), children: "重试" }) }, m);
2560
- }) }), e[5] = s, e[6] = t, e[7] = u, e[8] = E) : E = e[8], E;
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 ze(r) {
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 Nn(r) {
2584
+ function On(r) {
2571
2585
  return {
2572
2586
  context: {
2573
- ...vu
2587
+ ...Du
2574
2588
  },
2575
2589
  contextErrors: {},
2576
2590
  resources: {
2577
- environments: ze([]),
2578
- discountDefinitions: ze([]),
2579
- customDiscountCurves: ze([]),
2580
- carbonDefinitions: ze([]),
2581
- customCarbonCurves: ze([])
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 Nu(r) {
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 On(r, e) {
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: Nu(r),
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
- ...vu
2737
+ ...Du
2724
2738
  },
2725
2739
  contextErrors: {},
2726
2740
  environmentCurvesStatus: "idle",
2727
2741
  environmentCurvesError: null,
2728
2742
  environmentCurvesAttempts: 0,
2729
- resultByContractId: Nu(r),
2743
+ resultByContractId: Ou(r),
2730
2744
  inputVersion: r.inputVersion + 1,
2731
2745
  submitting: !1
2732
2746
  };
2733
2747
  }
2734
2748
  }
2735
- const Vn = "3", zn = "11";
2749
+ const Vn = "3", Yn = "11";
2736
2750
  function Ie(r) {
2737
2751
  return typeof r == "object" && r !== null;
2738
2752
  }
2739
- function Yn(r) {
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 Gn(r) {
2756
+ function Hn(r) {
2743
2757
  return !Array.isArray(r) && Ie(r) && Ie(r.discountCurve) && Ie(r.carbonForwardCurve);
2744
2758
  }
2745
- function _t(r, e, u) {
2759
+ function $t(r, e, u) {
2746
2760
  const t = r && e ? `${e}(${r})` : e || r;
2747
- return u ? `${t}-${Su(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 (Yn(u)) return [u];
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), o = String(u.code ?? ""), a = String(u.name ?? ""), s = String(u.currency ?? ""), E = e.source === "custom" && typeof u.createDate == "string" ? u.createDate : void 0, m = e.source === "custom" && typeof u.executeDay == "string" ? u.executeDay : void 0, p = {
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: _t(o, a, m),
2762
- code: o,
2763
- name: a,
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: E,
2768
- executeDay: m,
2769
- requestMapping: p
2781
+ createDate: m,
2782
+ executeDay: E,
2783
+ requestMapping: g
2770
2784
  }];
2771
2785
  }) : [];
2772
2786
  }
2773
- function Hn(r) {
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 Un(r) {
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 Wn(r) {
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 Zn(r) {
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 qn(r) {
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 Ou(r, e) {
2826
+ function zu(r, e) {
2813
2827
  const u = String(r.curveId);
2814
2828
  return {
2815
2829
  id: u,
2816
- label: _t(String(r.curveCode ?? ""), String(r.curveName ?? "")),
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 jn(r) {
2838
+ function Xn(r) {
2825
2839
  if (r === null) return null;
2826
- if (Gn(r)) return r;
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) === zn);
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: Ou(e, {
2844
+ discountCurve: zu(e, {
2831
2845
  kind: "discount",
2832
2846
  requestMapping: (t) => ({
2833
2847
  disCurveDefId: t
2834
2848
  })
2835
2849
  }),
2836
- carbonForwardCurve: Ou(u, {
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 Xn(r, e) {
2866
+ function Qn(r, e) {
2853
2867
  const {
2854
2868
  pricingEnvironment: u,
2855
2869
  discountCurve: t,
2856
2870
  carbonForwardCurve: n,
2857
- valuationDate: o
2871
+ valuationDate: i
2858
2872
  } = e;
2859
- if (!u || !t || !n || !o)
2873
+ if (!u || !t || !n || !i)
2860
2874
  return [];
2861
- const a = Vu(t.requestMapping), s = Vu(n.requestMapping), E = {
2862
- valDate: Ct(o),
2863
- disCurveDefId: a.disCurveDefId,
2864
- disCurveId: a.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((m) => ({
2882
+ return r.map((E) => ({
2869
2883
  astType: "",
2870
- targtAllVarCodeSum: m.targtAllVarCodeSum,
2871
- scrtyCode: m.scrtyCode,
2872
- currency: m.currency,
2873
- fwdMaturityDate: m.fwdMaturityDate,
2874
- settleDate: m.settleDate,
2875
- physicalDelivery: m.physicalDelivery,
2876
- direction: m.direction,
2877
- fwdDlvPrice: m.fwdDlvPrice,
2878
- targtVol: m.targtVol,
2879
- ...m.productType ? {
2880
- productType: m.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
- ...m.instrumentId ? {
2883
- instrumentId: m.instrumentId
2896
+ ...E.instrumentId ? {
2897
+ instrumentId: E.instrumentId
2884
2898
  } : {},
2885
- ...m.instrumentCode ? {
2886
- instrumentCode: m.instrumentCode
2899
+ ...E.instrumentCode ? {
2900
+ instrumentCode: E.instrumentCode
2887
2901
  } : {},
2888
- ...m.instrumentName ? {
2889
- instrumentName: m.instrumentName
2902
+ ...E.instrumentName ? {
2903
+ instrumentName: E.instrumentName
2890
2904
  } : {},
2891
- ...m.tradeContpId ? {
2892
- tradeContpId: m.tradeContpId
2905
+ ...E.tradeContpId ? {
2906
+ tradeContpId: E.tradeContpId
2893
2907
  } : {},
2894
- ...E
2908
+ ...m
2895
2909
  }));
2896
2910
  }
2897
2911
  function je(r) {
2898
2912
  return r == null || r === "" ? null : String(r);
2899
2913
  }
2900
- function Qn(r, e, u) {
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", o = [e.npv, e.forwardPrice, e.discountFactor, e.maturityTime].some((a) => a != null && a !== "");
2910
- return !n || !o ? {
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 Jn(r, e, u) {
2930
- return Object.fromEntries(r.map((t, n) => [t, Qn(t, e[n], u)]));
2943
+ function Kn(r, e, u) {
2944
+ return Object.fromEntries(r.map((t, n) => [t, Jn(t, e[n], u)]));
2931
2945
  }
2932
- const zu = {
2946
+ const Yu = {
2933
2947
  environments: "定价环境加载失败",
2934
2948
  discountDefinitions: "无风险利率曲线定义加载失败",
2935
2949
  customDiscountCurves: "自定义无风险利率曲线加载失败",
2936
2950
  carbonDefinitions: "碳金融远期价格曲线定义加载失败",
2937
2951
  customCarbonCurves: "自定义碳金融远期价格曲线加载失败"
2938
2952
  };
2939
- function Kn(r) {
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 eo(r) {
2967
+ function uo(r) {
2954
2968
  const {
2955
2969
  contracts: e,
2956
2970
  productType: u,
2957
2971
  dataSource: t
2958
- } = r, [n, o] = Ht(On, void 0, () => Nn(e.map((i) => i.contractId))), a = te(!0), s = te(0), E = te(0), m = te(null), p = te(null), g = te(null), M = te(/* @__PURE__ */ new Map()), [B, k] = Oe(0), R = te(/* @__PURE__ */ new Map());
2959
- pe(() => () => {
2960
- a.current = !1, p.current?.abort(), g.current?.abort(), M.current.forEach((i) => i.abort());
2972
+ } = r, [n, i] = Ut(zn, void 0, () => On(e.map((o) => o.contractId))), l = ee(!0), s = ee(0), m = ee(0), E = ee(null), g = ee(null), f = ee(null), w = ee(/* @__PURE__ */ new Map()), [T, b] = Oe(0), k = ee(/* @__PURE__ */ new Map());
2973
+ ve(() => () => {
2974
+ l.current = !1, g.current?.abort(), f.current?.abort(), w.current.forEach((o) => o.abort());
2961
2975
  }, []);
2962
- const y = ge(async (i) => {
2963
- if (n.resources[i].attempts >= lu) return;
2964
- o({
2976
+ const D = pe(async (o) => {
2977
+ if (n.resources[o].attempts >= su) return;
2978
+ i({
2965
2979
  type: "resource/loading",
2966
- key: i
2967
- }), M.current.get(i)?.abort();
2968
- const l = new AbortController();
2969
- M.current.set(i, l);
2980
+ key: o
2981
+ }), w.current.get(o)?.abort();
2982
+ const c = new AbortController();
2983
+ w.current.set(o, c);
2970
2984
  try {
2971
- let d;
2972
- switch (i) {
2985
+ let a;
2986
+ switch (o) {
2973
2987
  case "environments": {
2974
- const D = await t.listPricingEnvironments({
2988
+ const p = await t.listPricingEnvironments({
2975
2989
  status: !0
2976
2990
  }, {
2977
- signal: l.signal
2991
+ signal: c.signal
2978
2992
  });
2979
- d = Hn($e("listPricingEnvironments", D));
2993
+ a = Un($e("listPricingEnvironments", p));
2980
2994
  break;
2981
2995
  }
2982
2996
  case "discountDefinitions": {
2983
- const D = await t.listDiscountCurveDefinitions({
2997
+ const p = await t.listDiscountCurveDefinitions({
2984
2998
  type: "3",
2985
2999
  status: !0
2986
3000
  }, {
2987
- signal: l.signal
3001
+ signal: c.signal
2988
3002
  });
2989
- d = Un($e("listDiscountCurveDefinitions", D));
3003
+ a = Wn($e("listDiscountCurveDefinitions", p));
2990
3004
  break;
2991
3005
  }
2992
3006
  case "customDiscountCurves": {
2993
- const D = await t.listCustomDiscountCurves({
3007
+ const p = await t.listCustomDiscountCurves({
2994
3008
  type: "3",
2995
3009
  isCustom: !0
2996
3010
  }, {
2997
- signal: l.signal
3011
+ signal: c.signal
2998
3012
  });
2999
- d = Wn($e("listCustomDiscountCurves", D));
3013
+ a = Zn($e("listCustomDiscountCurves", p));
3000
3014
  break;
3001
3015
  }
3002
3016
  case "carbonDefinitions": {
3003
- const D = await t.listCarbonForwardCurveDefinitions({
3017
+ const p = await t.listCarbonForwardCurveDefinitions({
3004
3018
  type: "11",
3005
3019
  status: !0
3006
3020
  }, {
3007
- signal: l.signal
3021
+ signal: c.signal
3008
3022
  });
3009
- d = Zn($e("listCarbonForwardCurveDefinitions", D));
3023
+ a = qn($e("listCarbonForwardCurveDefinitions", p));
3010
3024
  break;
3011
3025
  }
3012
3026
  case "customCarbonCurves": {
3013
- const D = await t.listCustomCarbonForwardCurves({
3027
+ const p = await t.listCustomCarbonForwardCurves({
3014
3028
  type: "11",
3015
3029
  isCustom: !0
3016
3030
  }, {
3017
- signal: l.signal
3031
+ signal: c.signal
3018
3032
  });
3019
- d = qn($e("listCustomCarbonForwardCurves", D));
3033
+ a = jn($e("listCustomCarbonForwardCurves", p));
3020
3034
  break;
3021
3035
  }
3022
3036
  }
3023
- a.current && o({
3037
+ l.current && i({
3024
3038
  type: "resource/success",
3025
- key: i,
3026
- data: d
3039
+ key: o,
3040
+ data: a
3027
3041
  });
3028
- } catch (d) {
3029
- a.current && !l.signal.aborted && o({
3042
+ } catch (a) {
3043
+ l.current && !c.signal.aborted && i({
3030
3044
  type: "resource/error",
3031
- key: i,
3032
- error: d instanceof Error ? d.message : zu[i]
3045
+ key: o,
3046
+ error: a instanceof Error ? a.message : Yu[o]
3033
3047
  });
3034
3048
  }
3035
- }, [t, n.resources]), _ = te(!1);
3036
- pe(() => {
3037
- _.current || (_.current = !0, Promise.allSettled(Object.keys(zu).map((i) => y(i))));
3049
+ }, [t, n.resources]), _ = ee(!1);
3050
+ ve(() => {
3051
+ _.current || (_.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]), M = 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 b = Pe(() => [...n.resources.discountDefinitions.data, ...n.resources.customDiscountCurves.data, ...n.resources.carbonDefinitions.data, ...n.resources.customCarbonCurves.data], [n.resources]), T = Pe(() => b.filter((i) => i.kind === "discount"), [b]), P = Pe(() => b.filter((i) => i.kind === "carbonForward"), [b]), I = te(b);
3040
- pe(() => {
3041
- I.current = b;
3042
- }, [b]);
3043
- const L = ge((i, l) => I.current.find((d) => d.kind === i.kind && (d.id === i.id || d.key === i.id)) ?? {
3044
- ...i,
3045
- key: `${i.kind}:${i.source}:${i.id}`,
3046
- currency: l
3047
- }, []), h = n.context.pricingEnvironment;
3048
- pe(() => {
3049
- if (!h || !u) return;
3050
- g.current?.abort();
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 D = R.current.get(d);
3058
- return D || (D = t.getEnvironmentCurveSelection({
3059
- pricingEnvId: h.id,
3071
+ let p = k.current.get(a);
3072
+ return p || (p = t.getEnvironmentCurveSelection({
3073
+ pricingEnvId: v.id,
3060
3074
  productType: u
3061
3075
  }, {
3062
- signal: i.signal
3063
- }).then((S) => jn($e("getEnvironmentCurveSelection", S))), R.current.set(d, D)), D.then((S) => {
3064
- !a.current || l !== s.current || o({
3076
+ signal: o.signal
3077
+ }).then((h) => Xn($e("getEnvironmentCurveSelection", h))), k.current.set(a, p)), p.then((h) => {
3078
+ !l.current || c !== s.current || i({
3065
3079
  type: "environment-curves/success",
3066
- discountCurve: S ? L(S.discountCurve, h.currency) : null,
3067
- carbonForwardCurve: S ? L(S.carbonForwardCurve, h.currency) : null
3080
+ discountCurve: h ? O(h.discountCurve, v.currency) : null,
3081
+ carbonForwardCurve: h ? O(h.carbonForwardCurve, v.currency) : null
3068
3082
  });
3069
- }).catch((S) => {
3070
- R.current.delete(d), !i.signal.aborted && (!a.current || l !== s.current || o({
3083
+ }).catch((h) => {
3084
+ k.current.delete(a), !o.signal.aborted && (!l.current || c !== s.current || i({
3071
3085
  type: "environment-curves/error",
3072
- error: S instanceof Error ? S.message : "环境关联曲线加载失败"
3086
+ error: h instanceof Error ? h.message : "环境关联曲线加载失败"
3073
3087
  }));
3074
- }), () => i.abort();
3075
- }, [t, B, u, L, h]);
3076
- const w = te(u);
3077
- pe(() => {
3078
- w.current !== u && (w.current = u, n.context.pricingEnvironment && o({
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 $ = te(n.context);
3085
- pe(() => {
3086
- $.current = n.context;
3098
+ const A = ee(n.context);
3099
+ ve(() => {
3100
+ A.current = n.context;
3087
3101
  }, [n.context]);
3088
- const v = ge((i, l) => {
3089
- const d = $.current[i];
3090
- d === l || d != null && l != null && typeof d == "object" && typeof l == "object" && ("key" in d && "key" in l && d.key === l.key || "id" in d && "id" in l && d.id === l.id) || (i === "pricingEnvironment" && l && console.log("[IndicativePricingforSelectedContracts] selected pricing environment id:", l.id), $.current = {
3091
- ...$.current,
3092
- [i]: l
3093
- }, E.current += 1, p.current?.abort(), m.current = null, o({
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: i,
3096
- value: l
3109
+ field: o,
3110
+ value: c
3097
3111
  }));
3098
- }, []), A = te(!1);
3099
- pe(() => {
3100
- const i = n.resources.environments;
3101
- if (A.current || i.status !== "success" && i.status !== "empty" || (A.current = !0, n.context.pricingEnvironment)) return;
3102
- const l = i.data.find((d) => d.isDefaultForSelf === !0);
3103
- l && v("pricingEnvironment", l);
3104
- }, [v, n.context.pricingEnvironment, n.resources.environments]);
3105
- const C = ge(async () => {
3106
- if (!a.current) return {
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 (m.current !== null)
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 i = $.current, l = kn(i), d = wn(i.valuationDate, e);
3118
- if (!d.valid && d.message && (l.valuationDate = [d.message]), o({
3131
+ const o = A.current, c = _n(o), a = Mn(o.valuationDate, e);
3132
+ if (!a.valid && a.message && (c.valuationDate = [a.message]), i({
3119
3133
  type: "context/errors",
3120
- errors: l
3121
- }), Object.keys(l).length > 0)
3134
+ errors: c
3135
+ }), Object.keys(c).length > 0)
3122
3136
  return {
3123
3137
  kind: "invalid"
3124
3138
  };
3125
- const D = Xn(e, i), S = n.inputVersion, x = ++E.current;
3126
- m.current = x, p.current?.abort();
3127
- const O = new AbortController();
3128
- p.current = O, o({
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((V) => V.contractId)
3144
+ contractIds: e.map((z) => z.contractId)
3131
3145
  });
3132
3146
  try {
3133
- const V = $e("calculate", await t.calculate(D, {
3134
- signal: O.signal
3147
+ const z = $e("calculate", await t.calculate(p, {
3148
+ signal: N.signal
3135
3149
  }));
3136
- if (!a.current || x !== E.current)
3150
+ if (!l.current || S !== m.current)
3137
3151
  return {
3138
3152
  kind: "cancelled"
3139
3153
  };
3140
- const z = Array.isArray(V) ? V : [], W = Jn(e.map((U) => U.contractId), z, S);
3141
- return o({
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: W
3157
+ results: H
3144
3158
  }), {
3145
3159
  kind: "success",
3146
- hasErrors: Object.values(W).some((U) => U.status === "error"),
3147
- hasExtraItems: z.length > e.length
3160
+ hasErrors: Object.values(H).some((W) => W.status === "error"),
3161
+ hasExtraItems: G.length > e.length
3148
3162
  };
3149
- } catch (V) {
3150
- if (!a.current || x !== E.current)
3163
+ } catch (z) {
3164
+ if (!l.current || S !== m.current)
3151
3165
  return {
3152
3166
  kind: "cancelled"
3153
3167
  };
3154
- const z = Kn(V), W = Object.fromEntries(e.map((U) => [U.contractId, {
3155
- contractId: U.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: z,
3159
- resultInputVersion: S
3172
+ message: G,
3173
+ resultInputVersion: h
3160
3174
  }]));
3161
- return o({
3175
+ return i({
3162
3176
  type: "calculation/settled",
3163
- results: W
3177
+ results: H
3164
3178
  }), {
3165
3179
  kind: "requestError"
3166
3180
  };
3167
3181
  } finally {
3168
- m.current === x && (m.current = null);
3182
+ E.current === S && (E.current = null);
3169
3183
  }
3170
- }, [e, t, n.inputVersion]), N = ge(() => m.current !== null, []), f = ge(() => {
3171
- E.current += 1, p.current?.abort(), m.current = null, s.current += 1, g.current?.abort(), $.current = {
3172
- ...vu
3173
- }, o({
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
- }, []), c = Object.keys(n.resources).every((i) => n.resources[i].status !== "idle" && n.resources[i].status !== "loading");
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: c,
3180
- discountCurves: T,
3181
- carbonForwardCurves: P,
3182
- setContext: v,
3183
- retryResource: y,
3193
+ initialized: d,
3194
+ discountCurves: M,
3195
+ carbonForwardCurves: $,
3196
+ setContext: x,
3197
+ retryResource: D,
3184
3198
  retryEnvironmentCurves: () => {
3185
- if (!h || n.environmentCurvesAttempts >= lu)
3199
+ if (!v || n.environmentCurvesAttempts >= su)
3186
3200
  return;
3187
- const i = JSON.stringify([h.id, u]);
3188
- R.current.delete(i), k((l) => l + 1);
3201
+ const o = JSON.stringify([v.id, u]);
3202
+ k.current.delete(o), b((c) => c + 1);
3189
3203
  },
3190
- calculate: C,
3191
- isCalculating: N,
3192
- reset: f
3204
+ calculate: R,
3205
+ isCalculating: I,
3206
+ reset: C
3193
3207
  };
3194
3208
  }
3195
- const uo = ee(function(e, u) {
3196
- const t = Y.c(112), {
3209
+ const to = ue(function(e, u) {
3210
+ const t = V.c(113), {
3197
3211
  mode: n,
3198
- layout: o,
3199
- productType: a,
3200
- contractData: s,
3212
+ layout: i,
3213
+ appId: l,
3214
+ productType: s,
3215
+ contractData: m,
3201
3216
  dataSource: E,
3202
- showFooter: m,
3203
- onNavigateToPricingPage: p,
3204
- className: g,
3205
- style: M
3206
- } = e, B = n === void 0 ? "multiple" : n, k = o === void 0 ? "horizontal" : o, R = m === void 0 ? !0 : m, y = B === "single" && k === "vertical", _ = B === "single" && k === "horizontal", b = B === "multiple" ? G.multiple : y ? G.single : G.fixedSingle, {
3207
- message: T
3208
- } = pu.useApp();
3217
+ showFooter: g,
3218
+ onNavigateToPricingPage: f,
3219
+ className: w,
3220
+ style: T
3221
+ } = e, b = n === void 0 ? "multiple" : n, k = i === void 0 ? "horizontal" : i, D = g === void 0 ? !0 : g, _ = b === "single" && k === "vertical", y = b === "single" && k === "horizontal", M = b === "multiple" ? Y.multiple : _ ? Y.single : Y.fixedSingle, {
3222
+ message: $
3223
+ } = vu.useApp();
3209
3224
  let P;
3210
- t[0] !== s || t[1] !== B ? (P = () => Object.freeze((B === "multiple" ? [...s] : s.slice(0, 1)).map(to)), t[0] = s, t[1] = B, t[2] = P) : P = t[2];
3211
- const [I] = Oe(P);
3212
- let L;
3213
- t[3] !== s.length ? (L = () => s.length, t[3] = s.length, t[4] = L) : L = t[4];
3214
- const [h] = Oe(L), w = B === "multiple" && h > sr;
3215
- let $;
3216
- t[5] !== I || t[6] !== w ? ($ = w ? [] : I, t[5] = I, t[6] = w, t[7] = $) : $ = t[7];
3217
- const v = $;
3218
- let A;
3219
- t[8] !== v || t[9] !== E || t[10] !== a ? (A = {
3220
- contracts: v,
3221
- productType: a,
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] = v, t[9] = E, t[10] = a, t[11] = A) : A = t[11];
3224
- const C = eo(A), {
3225
- calculate: N,
3226
- initialized: f,
3227
- isCalculating: c,
3228
- reset: i,
3229
- state: l
3230
- } = C, d = te(!1);
3231
- let D, S;
3232
- t[12] !== v.length || t[13] !== T || t[14] !== w ? (D = () => {
3233
- v.length === 0 && !w && !d.current && (d.current = !0, T.warning("请先选择一笔合约"));
3234
- }, S = [v.length, T, w], t[12] = v.length, t[13] = T, t[14] = w, t[15] = D, t[16] = S) : (D = t[15], S = t[16]), pe(D, S);
3235
- const x = v.length === 0 || w, O = !C.initialized || l.submitting || l.environmentCurvesStatus === "loading", V = [l.resources.discountDefinitions.status, l.resources.customDiscountCurves.status, l.resources.carbonDefinitions.status, l.resources.customCarbonCurves.status].some(ro), z = l.environmentCurvesStatus === "loading";
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] !== x || t[18] !== c || t[19] !== i ? (W = () => x || c() ? !1 : (i(), !0), t[17] = x, t[18] = c, t[19] = i, t[20] = W) : W = t[20];
3238
- const U = W;
3239
- let X;
3240
- t[21] !== x || t[22] !== s || t[23] !== c || t[24] !== T || t[25] !== p || t[26] !== a ? (X = () => {
3241
- if (x || c())
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 = s.map(no).filter(oo);
3258
+ const re = m.map(oo).filter(ao);
3244
3259
  if (re.length === 0)
3245
- return T.info("所选合约成交编号为空,请返回重新选择"), !1;
3246
- const he = re.length < s.length, ve = `/price-contracts-list?productType=${encodeURIComponent(a)}&instrumentCodes=${encodeURIComponent(re.join("&"))}&partialInstrumentCodeEmpty=${he}`;
3247
- return p ? p(ve) : window.parent?.postMessage({
3260
+ return $.info("所选合约成交编号为空,请返回重新选择"), !1;
3261
+ const Te = re.length < m.length, le = `/price-contracts-list?productType=${encodeURIComponent(s)}&instrumentCodes=${encodeURIComponent(re.join("&"))}&partialInstrumentCodeEmpty=${Te}`;
3262
+ return f ? f(le) : window.parent?.postMessage({
3248
3263
  event: "g-navigate",
3264
+ appId: l,
3249
3265
  payload: {
3250
3266
  appId: "GZ0303",
3251
- routePath: ve
3267
+ routePath: le
3252
3268
  },
3253
3269
  timestamp: Date.now()
3254
3270
  }, "*"), !0;
3255
- }, t[21] = x, t[22] = s, t[23] = c, t[24] = T, t[25] = p, t[26] = a, t[27] = X) : X = t[27];
3256
- const Z = X;
3257
- let q;
3258
- t[28] !== N || t[29] !== v.length || t[30] !== z || t[31] !== f || t[32] !== c || t[33] !== T || t[34] !== w ? (q = async () => {
3259
- if (w)
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 (v.length === 0)
3280
+ if (B.length === 0)
3265
3281
  return {
3266
3282
  kind: "empty"
3267
3283
  };
3268
- if (c())
3284
+ if (o())
3269
3285
  return {
3270
3286
  kind: "blocked",
3271
3287
  reason: "submitting"
3272
3288
  };
3273
- if (!f || z)
3289
+ if (!d || H)
3274
3290
  return {
3275
3291
  kind: "blocked",
3276
3292
  reason: "loading"
3277
3293
  };
3278
- const re = await N();
3279
- return re.kind === "invalid" ? T.error("请完成所有定价要素配置") : re.kind === "success" && re.hasExtraItems && T.warning("定价服务返回了多余结果,已按请求顺序忽略"), re;
3280
- }, t[28] = N, t[29] = v.length, t[30] = z, t[31] = f, t[32] = c, t[33] = T, t[34] = w, t[35] = q) : q = t[35];
3281
- const H = q;
3282
- let Q, K;
3283
- t[36] !== H || t[37] !== Z || t[38] !== U ? (Q = () => ({
3284
- reset: U,
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: H
3287
- }), K = [H, Z, U], t[36] = H, t[37] = Z, t[38] = U, t[39] = Q, t[40] = K) : (Q = t[39], K = t[40]), Ut(u, Q, K);
3288
- let j;
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 (w) {
3291
- let J;
3292
- t[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ F("div", { className: G.emptyState, children: /* @__PURE__ */ F(Ve, { description: "合约数量超出支持范围" }) }), t[41] = J) : J = t[41], j = J;
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 (v.length === 0) {
3296
- let J;
3297
- t[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ F("div", { className: G.emptyState, children: /* @__PURE__ */ F(Ve, { description: "请先选择一笔合约" }) }), t[42] = J) : J = t[42], j = J;
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 J = v[0], Ae = l.resultByContractId[J.contractId], tu = !C.initialized || l.submitting;
3316
+ if (y) {
3317
+ const te = B[0], tu = a.resultByContractId[te.contractId], ru = !I.initialized || a.submitting;
3302
3318
  let Ue;
3303
- t[43] !== J || t[44] !== Ae || t[45] !== tu ? (Ue = /* @__PURE__ */ F(fn, { contract: J, calculation: Ae, loading: tu }), t[43] = J, t[44] = Ae, t[45] = tu, t[46] = Ue) : Ue = t[46], j = Ue;
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 = B === "single", he = !C.initialized || l.submitting;
3307
- let ve;
3308
- t[47] !== v || t[48] !== l.resultByContractId || t[49] !== re || t[50] !== he ? (ve = /* @__PURE__ */ F(Bn, { single: re, contracts: v, results: l.resultByContractId, loading: he }), t[47] = v, t[48] = l.resultByContractId, t[49] = re, t[50] = he, t[51] = ve) : ve = t[51], j = ve;
3322
+ const re = b === "single", Te = !I.initialized || a.submitting;
3323
+ let le;
3324
+ t[48] !== B || t[49] !== a.resultByContractId || t[50] !== re || t[51] !== Te ? (le = /* @__PURE__ */ F(yn, { single: re, contracts: B, results: a.resultByContractId, loading: Te }), t[48] = B, t[49] = a.resultByContractId, t[50] = re, t[51] = Te, t[52] = le) : le = t[52], J = le;
3309
3325
  }
3310
- const ue = j;
3326
+ const ae = J;
3311
3327
  let ne;
3312
- t[52] !== g || t[53] !== b ? (ne = gu(G.root, b, g), t[52] = g, t[53] = b, t[54] = ne) : ne = t[54];
3313
- const le = l.submitting ? "submitting" : C.initialized ? "ready" : "loading", se = !C.initialized;
3314
- let ce;
3315
- t[55] !== y ? (ce = y ? null : /* @__PURE__ */ F("h3", { className: G.sectionTitle, children: "定价要素" }), t[55] = y, t[56] = ce) : ce = t[56];
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] !== w || t[54] !== M ? (ne = pu(Y.root, M, w), t[53] = w, t[54] = M, t[55] = ne) : ne = t[55];
3329
+ const ce = a.submitting ? "submitting" : I.initialized ? "ready" : "loading", he = !I.initialized;
3330
+ let ie;
3331
+ t[56] !== _ ? (ie = _ ? null : /* @__PURE__ */ F("h3", { className: Y.sectionTitle, children: "定价要素" }), t[56] = _, t[57] = ie) : ie = t[57];
3318
3332
  let Be;
3319
- t[60] !== C ? (Be = (re) => {
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[62] !== l.resources || t[63] !== Be ? (me = /* @__PURE__ */ F(Ln, { resources: l.resources, onRetry: Be }), t[62] = l.resources, t[63] = Be, t[64] = me) : me = t[64];
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[65] !== C.retryEnvironmentCurves || t[66] !== l.environmentCurvesAttempts || t[67] !== l.environmentCurvesError || t[68] !== l.environmentCurvesStatus ? (Ee = l.environmentCurvesStatus === "error" ? /* @__PURE__ */ F(Ye, { type: "error", showIcon: !0, title: "环境关联曲线加载失败", description: l.environmentCurvesError, action: /* @__PURE__ */ F(Le, { size: "small", disabled: l.environmentCurvesAttempts >= 3, onClick: C.retryEnvironmentCurves, children: "重试" }) }) : null, t[65] = C.retryEnvironmentCurves, t[66] = l.environmentCurvesAttempts, t[67] = l.environmentCurvesError, t[68] = l.environmentCurvesStatus, t[69] = Ee) : Ee = t[69];
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[70] !== C.carbonForwardCurves || t[71] !== C.discountCurves || t[72] !== C.setContext || t[73] !== z || t[74] !== k || t[75] !== B || t[76] !== l.context || t[77] !== l.contextErrors || t[78] !== l.resources.environments.data || t[79] !== l.submitting || t[80] !== Se || t[81] !== Te ? (Fe = /* @__PURE__ */ F(Mn, { mode: B, layout: k, value: l.context, errors: l.contextErrors, environments: l.resources.environments.data, discountCurves: C.discountCurves, carbonForwardCurves: C.carbonForwardCurves, environmentsLoading: Se, curvesLoading: Te, curvesDisabled: z, disabled: l.submitting, onChange: C.setContext }), t[70] = C.carbonForwardCurves, t[71] = C.discountCurves, t[72] = C.setContext, t[73] = z, t[74] = k, t[75] = B, t[76] = l.context, t[77] = l.contextErrors, t[78] = l.resources.environments.data, t[79] = l.submitting, t[80] = Se, t[81] = Te, t[82] = Fe) : Fe = t[82];
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] !== k || t[76] !== b || t[77] !== a.context || t[78] !== a.contextErrors || t[79] !== a.resources.environments.data || t[80] !== a.submitting || t[81] !== be || t[82] !== Ae ? (Se = /* @__PURE__ */ F(kn, { mode: b, layout: k, value: a.context, errors: a.contextErrors, environments: a.resources.environments.data, discountCurves: I.discountCurves, carbonForwardCurves: I.carbonForwardCurves, environmentsLoading: be, curvesLoading: Ae, curvesDisabled: H, disabled: a.submitting, onChange: I.setContext }), t[71] = I.carbonForwardCurves, t[72] = I.discountCurves, t[73] = I.setContext, t[74] = H, t[75] = k, t[76] = b, t[77] = a.context, t[78] = a.contextErrors, t[79] = a.resources.environments.data, t[80] = a.submitting, t[81] = be, t[82] = Ae, t[83] = Se) : Se = t[83];
3329
3345
  let xe;
3330
- t[83] !== ce || t[84] !== oe || t[85] !== me || t[86] !== Ee || t[87] !== Fe ? (xe = /* @__PURE__ */ ke("div", { className: G.section, children: [
3331
- ce,
3332
- oe,
3333
- me,
3346
+ t[84] !== ie || t[85] !== Be || t[86] !== Ee || t[87] !== Fe || t[88] !== Se ? (xe = /* @__PURE__ */ we("div", { className: Y.section, children: [
3347
+ ie,
3348
+ Be,
3334
3349
  Ee,
3335
- Fe
3336
- ] }), t[83] = ce, t[84] = oe, t[85] = me, t[86] = Ee, t[87] = Fe, t[88] = xe) : xe = t[88];
3337
- let we;
3338
- t[89] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (we = /* @__PURE__ */ F("div", { className: G.sectionTitle, children: "定价结果" }), t[89] = we) : we = t[89];
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];
3350
+ Fe,
3351
+ Se
3352
+ ] }), t[84] = ie, t[85] = Be, t[86] = Ee, t[87] = Fe, t[88] = Se, t[89] = xe) : xe = t[89];
3353
+ let _e;
3354
+ t[90] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ F("div", { className: Y.sectionTitle, children: "定价结果" }), t[90] = _e) : _e = t[90];
3344
3355
  let Ce;
3345
- t[92] !== x || t[93] !== O || t[94] !== H || t[95] !== Z || t[96] !== U || t[97] !== k || t[98] !== B || t[99] !== R || t[100] !== l.submitting ? (Ce = R ? /* @__PURE__ */ F(Rn, { mode: B, layout: k, allDisabled: x, calculateDisabled: O, submitting: l.submitting, onReset: U, onNavigateToPricingPage: Z, onCalculate: () => {
3346
- H();
3347
- } }) : null, t[92] = x, t[93] = O, t[94] = H, t[95] = Z, t[96] = U, t[97] = k, t[98] = B, t[99] = R, t[100] = l.submitting, t[101] = Ce) : Ce = t[101];
3356
+ t[91] !== ae ? (Ce = /* @__PURE__ */ we("div", { className: Y.section, children: [
3357
+ _e,
3358
+ ae
3359
+ ] }), t[91] = ae, t[92] = Ce) : Ce = t[92];
3348
3360
  let fe;
3349
- t[102] !== se || t[103] !== xe || t[104] !== ye || t[105] !== Ce ? (fe = /* @__PURE__ */ ke(hu, { spinning: se, description: "定价资源加载中", children: [
3361
+ t[93] !== N || t[94] !== z || t[95] !== j || t[96] !== Z || t[97] !== q || t[98] !== k || t[99] !== b || t[100] !== D || t[101] !== a.submitting ? (fe = D ? /* @__PURE__ */ F(Pn, { mode: b, layout: k, allDisabled: N, calculateDisabled: z, submitting: a.submitting, onReset: q, onNavigateToPricingPage: Z, onCalculate: () => {
3362
+ j();
3363
+ } }) : null, t[93] = N, t[94] = z, t[95] = j, t[96] = Z, t[97] = q, t[98] = k, t[99] = b, t[100] = D, t[101] = a.submitting, t[102] = fe) : fe = t[102];
3364
+ let ge;
3365
+ t[103] !== he || t[104] !== xe || t[105] !== Ce || t[106] !== fe ? (ge = /* @__PURE__ */ we(hu, { spinning: he, description: "定价资源加载中", children: [
3350
3366
  xe,
3351
- ye,
3352
- Ce
3353
- ] }), t[102] = se, t[103] = xe, t[104] = ye, t[105] = Ce, t[106] = fe) : fe = t[106];
3354
- let be;
3355
- return t[107] !== M || t[108] !== ne || t[109] !== le || t[110] !== fe ? (be = /* @__PURE__ */ F("section", { className: ne, style: M, "aria-label": "交易合约试定价", "data-status": le, children: fe }), t[107] = M, t[108] = ne, t[109] = le, t[110] = fe, t[111] = be) : be = t[111], be;
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
- uo.displayName = "IndicativePricingforSelectedContracts";
3358
- function to(r, e) {
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 ro(r) {
3380
+ function no(r) {
3365
3381
  return r === "loading";
3366
3382
  }
3367
- function no(r) {
3383
+ function oo(r) {
3368
3384
  return r.instrumentCode?.trim();
3369
3385
  }
3370
- function oo(r) {
3386
+ function ao(r) {
3371
3387
  return !!r;
3372
3388
  }
3373
- const $t = ee((r, e) => {
3374
- const u = Y.c(7);
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 o;
3381
- return u[3] !== t || u[4] !== e || u[5] !== n ? (o = /* @__PURE__ */ F(fu.Group, { ref: e, ...n, children: t }), u[3] = t, u[4] = e, u[5] = n, u[6] = o) : o = u[6], o;
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
- $t.displayName = "GZRadioGroup";
3384
- const It = ee((r, e) => {
3385
- const u = Y.c(7);
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 o = e;
3392
- let a;
3393
- return u[3] !== t || u[4] !== n || u[5] !== o ? (a = /* @__PURE__ */ F(fu.Button, { ref: o, ...n, children: t }), u[3] = t, u[4] = n, u[5] = o, u[6] = a) : a = u[6], a;
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
- It.displayName = "GZRadioButton";
3396
- const ao = ee((r, e) => {
3397
- const u = Y.c(7);
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 o = e;
3404
- let a;
3405
- return u[3] !== t || u[4] !== n || u[5] !== o ? (a = /* @__PURE__ */ F(fu, { ref: o, ...n, children: t }), u[3] = t, u[4] = n, u[5] = o, u[6] = a) : a = u[6], a;
3406
- }), uu = ao;
3407
- uu.Group = $t;
3408
- uu.Button = It;
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 Yu = "-";
3411
- function io(r, e) {
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 lo(r) {
3431
+ function so(r) {
3416
3432
  return r.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3");
3417
3433
  }
3418
- function so(r) {
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 co(r) {
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: lo(e),
3447
+ date: so(e),
3432
3448
  price: u,
3433
3449
  npv: t,
3434
3450
  currency: n
3435
3451
  }));
3436
3452
  }
3437
- function Rt(r, e) {
3453
+ function Pt(r, e) {
3438
3454
  const u = e === "ascending" ? 1 : -1;
3439
- return [...r].sort((t, n) => u * io(t.date, n.date));
3455
+ return [...r].sort((t, n) => u * lo(t.date, n.date));
3440
3456
  }
3441
- function mo(r) {
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 Pt(r) {
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 mu(r, e, u) {
3459
- if (r == null || r === "") return Yu;
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 Yu;
3480
+ return Gu;
3465
3481
  }
3466
- const n = t.startsWith("-"), [o, a] = (n ? t.slice(1) : t).split("."), s = o.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
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 E = new Intl.NumberFormat(u, {
3484
+ const m = new Intl.NumberFormat(u, {
3469
3485
  style: "currency",
3470
3486
  currency: e,
3471
3487
  currencyDisplay: "narrowSymbol"
3472
- }).formatToParts(0).find((m) => m.type === "currency")?.value;
3473
- return `${n ? "-" : ""}${E ?? e}${s}.${a}`;
3488
+ }).formatToParts(0).find((E) => E.type === "currency")?.value;
3489
+ return `${n ? "-" : ""}${m ?? e}${s}.${l}`;
3474
3490
  } catch {
3475
- return `${n ? "-" : ""}${e} ${s}.${a}`;
3491
+ return `${n ? "-" : ""}${e} ${s}.${l}`;
3476
3492
  }
3477
3493
  }
3478
- function Eo(r) {
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 Gu = 0.05, Lt = 7, Fo = [8, 8];
3483
- function Nt(r) {
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 Co(r) {
3487
- const e = Nt(r);
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, o = n > 0 ? n * Gu : t !== 0 ? Math.abs(t) * Gu : 1, a = u - o, s = t + o;
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, a),
3507
+ min: Math.max(0, l),
3492
3508
  max: s
3493
3509
  } : t <= 0 ? {
3494
- min: a,
3510
+ min: l,
3495
3511
  max: Math.min(0, s)
3496
3512
  } : {
3497
- min: a,
3513
+ min: l,
3498
3514
  max: s
3499
3515
  };
3500
3516
  }
3501
- function fo(r) {
3502
- const e = Nt(r);
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", o = u <= 0 && t >= 0;
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: o
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 go(r, e) {
3518
- const u = (e - r) / Lt, t = Math.floor(Math.log10(u)), n = 10 ** t, o = u / n, a = o < 1.5 ? 1 : o < 2.5 ? 2 : o < 4 ? 3 : o < 7 ? 5 : 10;
3519
- return Je(a * n, -t);
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 po({
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 = go(r, e), t = Math.max(0, -Math.floor(Math.log10(u))) + 2, n = Je(Math.ceil(r / u) * u, t), o = Je(Math.floor(e / u) * u, t), a = r < n ? [r] : [];
3527
- for (let s = n; s <= o; s = Je(s + u, t))
3528
- a.push(s);
3529
- return e > o && a.push(e), r < 0 && e > 0 ? a.filter((s) => s !== 0) : a;
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 o = Rt(r, "ascending"), a = e === "price" ? "价格" : "NPV", s = o.map((M) => mo(M[e])), E = Co(s), m = fo(s), p = po(E), g = o.map(({
3539
- date: M
3540
- }) => Eo(M));
3554
+ const i = Pt(r, "ascending"), l = e === "price" ? "价格" : "NPV", s = i.map((w) => Eo(w[e])), m = fo(s), E = go(s), g = vo(m), f = i.map(({
3555
+ date: w
3556
+ }) => Fo(w));
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: (M) => mu(typeof M == "number" || typeof M == "string" ? M : null, u, t)
3600
+ valueFormatter: (w) => Eu(typeof w == "number" || typeof w == "string" ? w : 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: g,
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: m.position,
3634
+ position: E.position,
3619
3635
  boundaryGap: !0,
3620
- data: g,
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: m.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
- ...E,
3658
+ ...m,
3643
3659
  // 期望约分为 7 段,实际刻度数和间隔仍由 ECharts 取易读值。
3644
- splitNumber: Lt,
3660
+ splitNumber: Nt,
3645
3661
  // 纵轴通过网格线表达刻度,不额外显示刻度短线。
3646
3662
  axisTick: {
3647
3663
  // 隐藏纵轴刻度短线。
3648
3664
  show: !1,
3649
- customValues: p
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: (M) => new Intl.NumberFormat(t, {
3677
+ formatter: (w) => new Intl.NumberFormat(t, {
3662
3678
  maximumFractionDigits: 2
3663
- }).format(M)
3679
+ }).format(w)
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: Fo
3691
+ type: Co
3676
3692
  }
3677
3693
  }
3678
3694
  },
3679
3695
  // 当前图表只绘制一个价格或 NPV 折线系列。
3680
3696
  series: [{
3681
3697
  // 系列名称随当前选中的指标切换。
3682
- name: a,
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 vo = "_root_nkh0k_1", Do = "_title_nkh0k_12", Bo = "_loading_nkh0k_19", yo = "_content_nkh0k_26", bo = "_tablePanel_nkh0k_32", Ao = "_chartPanel_nkh0k_33", So = "_table_nkh0k_32", To = "_negativeValue_nkh0k_69", xo = "_chartHeader_nkh0k_76", ko = "_chartTitle_nkh0k_85", wo = "_chart_nkh0k_33", Mo = "_chartEmpty_nkh0k_93", _o = "_chartScrollable_nkh0k_102", $o = "_chartCanvas_nkh0k_142", ie = {
3718
- root: vo,
3719
- title: Do,
3720
- loading: Bo,
3721
- content: yo,
3722
- tablePanel: bo,
3723
- chartPanel: Ao,
3724
- table: So,
3733
+ const Do = "_root_onwmg_1", Bo = "_title_onwmg_12", yo = "_loading_onwmg_19", bo = "_content_onwmg_26", Ao = "_tablePanel_onwmg_32", So = "_chartPanel_onwmg_33", xo = "_table_onwmg_32", To = "_negativeValue_onwmg_69", wo = "_chartHeader_onwmg_76", _o = "_chartTitle_onwmg_85", Mo = "_chart_onwmg_33", ko = "_chartEmpty_onwmg_93", $o = "_chartScrollable_onwmg_102", Io = "_chartCanvas_onwmg_142", se = {
3734
+ 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: xo,
3727
- chartTitle: ko,
3728
- chart: wo,
3729
- chartEmpty: Mo,
3730
- chartScrollable: _o,
3731
- chartCanvas: $o
3742
+ chartHeader: wo,
3743
+ chartTitle: _o,
3744
+ chart: Mo,
3745
+ chartEmpty: ko,
3746
+ chartScrollable: $o,
3747
+ chartCanvas: Io
3732
3748
  };
3733
- Ju.use([ur, tr, rr, nr]);
3734
- const Hu = 10, Io = 800;
3735
- function Ro(r) {
3736
- const e = Y.c(29), {
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: o,
3741
- theme: a,
3756
+ locale: i,
3757
+ theme: l,
3742
3758
  className: s
3743
- } = r, E = te(null), m = te(null), p = te(null), g = u.length > Hu, M = `${Math.max(u.length / Hu, 1) * 100}%`;
3744
- let B;
3745
- e[0] !== n || e[1] !== u || e[2] !== o || e[3] !== t || e[4] !== a ? (B = ho({
3759
+ } = r, m = ee(null), E = ee(null), g = ee(null), f = u.length > Uu, w = `${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: o,
3750
- theme: a
3751
- }), e[0] = n, e[1] = u, e[2] = o, e[3] = t, e[4] = a, e[5] = B) : B = e[5];
3752
- const k = B;
3753
- let R, y;
3754
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = () => {
3755
- const C = m.current;
3756
- if (!C)
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 k, D;
3770
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => {
3771
+ const R = E.current;
3772
+ if (!R)
3757
3773
  return;
3758
- const N = Ju.init(C, void 0, {
3774
+ const I = Ku.init(R, void 0, {
3759
3775
  renderer: "canvas"
3760
3776
  });
3761
- p.current = N;
3762
- const f = () => N.resize(), c = typeof ResizeObserver > "u" ? null : new ResizeObserver(f);
3763
- return c ? c.observe(C) : window.addEventListener("resize", f), () => {
3764
- c?.disconnect(), window.removeEventListener("resize", f), N.dispose(), p.current = null;
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
- }, y = [], e[6] = R, e[7] = y) : (R = e[6], y = e[7]), xu(R, y);
3767
- let _, b;
3768
- e[8] !== k ? (_ = () => {
3769
- p.current?.setOption(k, {
3782
+ }, D = [], e[6] = k, e[7] = D) : (k = e[6], D = e[7]), wu(k, D);
3783
+ let _, y;
3784
+ e[8] !== b ? (_ = () => {
3785
+ g.current?.setOption(b, {
3770
3786
  notMerge: !0
3771
3787
  });
3772
- }, b = [k], e[8] = k, e[9] = _, e[10] = b) : (_ = e[9], b = e[10]), pe(_, b);
3773
- let T, P;
3774
- e[11] !== g ? (T = () => {
3775
- const C = E.current;
3776
- if (!C || !g)
3788
+ }, y = [b], e[8] = b, e[9] = _, e[10] = y) : (_ = e[9], y = e[10]), ve(_, y);
3789
+ let M, $;
3790
+ e[11] !== f ? (M = () => {
3791
+ const R = m.current;
3792
+ if (!R || !f)
3777
3793
  return;
3778
- let N;
3779
- const f = () => {
3780
- C.dataset.scrolling = "true", window.clearTimeout(N), N = window.setTimeout(() => {
3781
- delete C.dataset.scrolling;
3782
- }, Io);
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 C.addEventListener("scroll", f, {
3800
+ return R.addEventListener("scroll", C, {
3785
3801
  passive: !0
3786
3802
  }), () => {
3787
- C.removeEventListener("scroll", f), window.clearTimeout(N), delete C.dataset.scrolling;
3803
+ R.removeEventListener("scroll", C), window.clearTimeout(I), delete R.dataset.scrolling;
3788
3804
  };
3789
- }, P = [g], e[11] = g, e[12] = T, e[13] = P) : (T = e[12], P = e[13]), pe(T, P);
3790
- let I;
3791
- e[14] !== g ? (I = () => {
3792
- const C = E.current;
3793
- !C || !g || (C.scrollLeft = C.scrollWidth - C.clientWidth);
3794
- }, e[14] = g, e[15] = I) : I = e[15];
3805
+ }, $ = [f], e[11] = f, e[12] = M, e[13] = $) : (M = e[12], $ = e[13]), ve(M, $);
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], wu(P, O);
3813
+ const v = t === "price" ? "价格" : "NPV";
3795
3814
  let L;
3796
- e[16] !== u || e[17] !== g ? (L = [u, g], e[16] = u, e[17] = g, e[18] = L) : L = e[18], xu(I, L);
3797
- const h = t === "price" ? "价格" : "NPV";
3798
- let w;
3799
- e[19] !== s || e[20] !== g ? (w = gu(s, {
3800
- [ie.chartScrollable]: g
3801
- }), e[19] = s, e[20] = g, e[21] = w) : w = e[21];
3802
- const $ = `按日期展示的${h}折线图`;
3803
- let v;
3804
- e[22] !== M ? (v = /* @__PURE__ */ F("div", { ref: m, className: ie.chartCanvas, style: {
3805
- width: M
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] !== w ? (x = /* @__PURE__ */ F("div", { ref: E, className: se.chartCanvas, style: {
3821
+ width: w
3822
+ } }), e[22] = w, e[23] = x) : x = e[23];
3823
+ 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 Po = "数据加载失败,请稍后重试", au = [], Lo = "CNY", iu = "zh-CN", Ot = 32, Vt = 28, zt = 7, No = Ot + Vt * zt + 2, Oo = {
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 Yt(r) {
3824
- const e = Y.c(4), {
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(Ve, { image: Ve.PRESENTED_IMAGE_SIMPLE, description: "暂无数据", styles: Vo }), e[0] = n) : n = e[0];
3830
- let o;
3831
- return e[1] !== u || e[2] !== t ? (o = /* @__PURE__ */ F("div", { className: t, role: "status", "aria-label": u, children: n }), e[1] = u, e[2] = t, e[3] = o) : o = e[3], o;
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 zo() {
3834
- const r = Y.c(1);
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(Yt, { ariaLabel: "暂无估值日志数据" }), r[0] = e) : e = r[0], e;
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 Yo(r) {
3854
+ function Go(r) {
3839
3855
  return r instanceof DOMException && r.name === "AbortError";
3840
3856
  }
3841
- function na(r) {
3842
- const e = Y.c(67), {
3857
+ function oa(r) {
3858
+ const e = V.c(67), {
3843
3859
  adapter: u,
3844
3860
  allVarCodeSnum: t,
3845
3861
  className: n,
3846
- style: o
3862
+ style: i
3847
3863
  } = r, {
3848
- message: a
3849
- } = pu.useApp(), {
3864
+ message: l
3865
+ } = vu.useApp(), {
3850
3866
  token: s
3851
- } = Xu.useToken();
3852
- let E;
3853
- e[0] !== u || e[1] !== t ? (E = () => ({
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: au
3858
- }), e[0] = u, e[1] = t, e[2] = E) : E = e[2];
3859
- const [m, p] = Oe(E), [g, M] = Oe("price"), B = m.adapter === u && m.allVarCodeSnum === t, k = B ? m.status : "loading", R = B ? m.data : au;
3860
- let y, _;
3861
- e[3] !== u || e[4] !== t || e[5] !== a ? (y = () => {
3862
- const j = new AbortController();
3863
- let ue = !0;
3864
- const ne = {
3873
+ data: iu
3874
+ }), e[0] = u, e[1] = t, e[2] = m) : m = e[2];
3875
+ const [E, g] = Oe(m), [f, w] = Oe("price"), T = E.adapter === u && E.allVarCodeSnum === t, b = T ? E.status : "loading", k = T ? E.data : iu;
3876
+ let D, _;
3877
+ e[3] !== u || e[4] !== t || e[5] !== l ? (D = () => {
3878
+ const X = new AbortController();
3879
+ let J = !0;
3880
+ const ae = {
3865
3881
  allVarCodeSnum: t,
3866
- endTime: so(/* @__PURE__ */ new Date()),
3882
+ endTime: co(/* @__PURE__ */ new Date()),
3867
3883
  size: "30"
3868
3884
  };
3869
- return u.getValuationLogs(ne, {
3870
- signal: j.signal
3871
- }).then((le) => {
3872
- if (!ue)
3885
+ return u.getValuationLogs(ae, {
3886
+ signal: X.signal
3887
+ }).then((ne) => {
3888
+ if (!J)
3873
3889
  return;
3874
- const se = co(le);
3875
- p({
3890
+ const ce = mo(ne);
3891
+ g({
3876
3892
  adapter: u,
3877
3893
  allVarCodeSnum: t,
3878
- status: se.length === 0 ? "empty" : "success",
3879
- data: se
3894
+ status: ce.length === 0 ? "empty" : "success",
3895
+ data: ce
3880
3896
  });
3881
- }).catch((le) => {
3882
- !ue || j.signal.aborted || Yo(le) || (p({
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: au
3887
- }), a.error(Po));
3902
+ data: iu
3903
+ }), l.error(Lo));
3888
3904
  }), () => {
3889
- ue = !1, j.abort();
3905
+ J = !1, X.abort();
3890
3906
  };
3891
- }, _ = [u, t, a], e[3] = u, e[4] = t, e[5] = a, e[6] = y, e[7] = _) : (y = e[6], _ = e[7]), pe(y, _);
3892
- let b;
3893
- e[8] !== R ? (b = Rt(R, "descending").map(Wo), e[8] = R, e[9] = b) : b = e[9];
3894
- const T = b, P = R[0]?.currency || Lo;
3895
- let I;
3896
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = {
3907
+ }, _ = [u, t, l], e[3] = u, e[4] = t, e[5] = l, e[6] = D, e[7] = _) : (D = e[6], _ = e[7]), ve(D, _);
3908
+ let y;
3909
+ e[8] !== k ? (y = Pt(k, "descending").map(Zo), e[8] = k, e[9] = y) : y = e[9];
3910
+ const M = y, $ = k[0]?.currency || No;
3911
+ 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] = I) : I = e[10];
3903
- let L;
3904
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = {
3905
- [ie.negativeValue]: Uo
3906
- }, e[11] = L) : L = e[11];
3907
- let h;
3908
- e[12] !== P ? (h = {
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: L,
3916
- valueFormatter: (j) => {
3931
+ cellClassRules: O,
3932
+ valueFormatter: (X) => {
3917
3933
  const {
3918
- value: ue
3919
- } = j;
3920
- return mu(ue, P, iu);
3934
+ value: J
3935
+ } = X;
3936
+ return Eu(J, $, lu);
3921
3937
  }
3922
- }, e[12] = P, e[13] = h) : h = e[13];
3923
- let w;
3924
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
3925
- [ie.negativeValue]: Ho
3926
- }, e[14] = w) : w = e[14];
3927
- let $;
3928
- e[15] !== P ? ($ = {
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: w,
3936
- valueFormatter: (j) => {
3951
+ cellClassRules: L,
3952
+ valueFormatter: (X) => {
3937
3953
  const {
3938
- value: ue
3939
- } = j;
3940
- return mu(ue, P, iu);
3954
+ value: J
3955
+ } = X;
3956
+ return Eu(J, $, lu);
3941
3957
  }
3942
- }, e[15] = P, e[16] = $) : $ = e[16];
3943
- let v;
3944
- e[17] !== h || e[18] !== $ ? (v = [I, h, $], e[17] = h, e[18] = $, e[19] = v) : v = e[19];
3945
- const A = v;
3946
- let C;
3947
- e[20] !== s.colorBgElevated || e[21] !== s.colorBorder || e[22] !== s.colorPrimary || e[23] !== s.colorSplit || e[24] !== s.colorText || e[25] !== s.colorTextSecondary || e[26] !== s.fontFamily || e[27] !== s.fontSize ? (C = {
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] = C) : C = e[28];
3957
- const N = C, f = k === "success", c = T.length > zt;
3958
- let i;
3959
- e[29] !== n ? (i = gu(ie.root, n), e[29] = n, e[30] = i) : i = e[30];
3960
- const l = k === "loading";
3961
- let d;
3962
- e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ F("h2", { className: ie.title, children: "最大展示30条日志数据" }), e[31] = d) : d = e[31];
3963
- const D = k === "loading", S = c ? No : "auto";
3964
- let x;
3965
- e[32] !== S ? (x = {
3966
- height: S
3967
- }, e[32] = S, e[33] = x) : x = e[33];
3968
- const O = c ? "normal" : "autoHeight";
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 = M.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[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ F("h3", { className: ie.chartTitle, children: "结果图形展示" }), e[40] = z) : z = e[40];
3973
- let W, U;
3974
- e[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = [{
3986
+ e[34] !== B || e[35] !== S || e[36] !== N || e[37] !== d || e[38] !== M ? (z = /* @__PURE__ */ F("div", { className: se.tablePanel, "aria-label": "估值日志表格", children: /* @__PURE__ */ F(yu, { className: se.table, containerStyle: S, domLayout: N, rowData: M, columnDefs: B, defaultColDef: zo, getRowId: Ho, headerHeight: zt, rowHeight: Vt, pagination: !1, noRowsOverlayComponent: Yo, suppressMovableColumns: !0, suppressCellFocus: !0, suppressContextMenu: !0, alwaysShowVerticalScroll: d }) }), e[34] = B, e[35] = S, e[36] = N, e[37] = d, e[38] = M, e[39] = z) : z = e[39];
3987
+ 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
- }], U = (j) => {
3996
+ }], W = (X) => {
3981
3997
  const {
3982
- target: ue
3983
- } = j;
3984
- return M(ue.value);
3985
- }, e[41] = W, e[42] = U) : (W = e[41], U = e[42]);
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 w(J.value);
4001
+ }, e[41] = H, e[42] = W) : (H = e[41], W = e[42]);
3993
4002
  let q;
3994
- e[52] !== X || e[53] !== Z ? (q = /* @__PURE__ */ ke("section", { className: ie.chartPanel, "aria-label": "估值日志图形展示", children: [
3995
- X,
3996
- Z
3997
- ] }), e[52] = X, e[53] = Z, e[54] = q) : q = e[54];
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__ */ we("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[58] !== D || e[59] !== H ? (Q = /* @__PURE__ */ F(hu, { className: ie.loading, spinning: D, description: "估值日志加载中", children: H }), e[58] = D, e[59] = H, e[60] = Q) : Q = e[60];
4005
- let K;
4006
- return e[61] !== k || e[62] !== o || e[63] !== i || e[64] !== l || e[65] !== Q ? (K = /* @__PURE__ */ ke("section", { className: i, style: o, "aria-label": "估值日志数据图表", "aria-busy": l, "data-status": k, children: [
4007
- d,
4008
+ e[45] !== I || e[46] !== k || e[47] !== f || e[48] !== $ || e[49] !== C || e[50] !== b ? (Q = C ? /* @__PURE__ */ F(Po, { className: se.chart, data: k, metric: f, currency: $, locale: lu, theme: I }) : b === "empty" ? /* @__PURE__ */ F(Gt, { className: se.chartEmpty, ariaLabel: "暂无估值曲线数据" }) : /* @__PURE__ */ F("div", { className: se.chartEmpty, "aria-label": "暂无估值曲线数据" }), e[45] = I, e[46] = k, e[47] = f, e[48] = $, e[49] = C, e[50] = b, e[51] = Q) : Q = e[51];
4009
+ let Z;
4010
+ e[52] !== q || e[53] !== Q ? (Z = /* @__PURE__ */ we("section", { className: se.chartPanel, "aria-label": "估值日志图形展示", children: [
4011
+ q,
4008
4012
  Q
4009
- ] }), e[61] = k, e[62] = o, e[63] = i, e[64] = l, e[65] = Q, e[66] = K) : K = e[66], K;
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__ */ we("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__ */ we("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 Go(r) {
4027
+ function Ho(r) {
4012
4028
  const {
4013
4029
  data: e
4014
4030
  } = r;
4015
4031
  return e.rowId;
4016
4032
  }
4017
- function Ho(r) {
4033
+ function Uo(r) {
4018
4034
  const {
4019
4035
  value: e
4020
4036
  } = r;
4021
- return Pt(e);
4037
+ return Lt(e);
4022
4038
  }
4023
- function Uo(r) {
4039
+ function Wo(r) {
4024
4040
  const {
4025
4041
  value: e
4026
4042
  } = r;
4027
- return Pt(e);
4043
+ return Lt(e);
4028
4044
  }
4029
- function Wo(r, e) {
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
- at as G,
4038
- uo as I,
4053
+ it as G,
4054
+ to as I,
4039
4055
  Ye as T,
4040
- na as V,
4041
- pu as a,
4042
- _e as b,
4043
- Y as c,
4044
- Ve as d,
4056
+ oa as V,
4057
+ vu as a,
4058
+ ke as b,
4059
+ V as c,
4060
+ ze as d,
4045
4061
  De as e,
4046
4062
  uu as f,
4047
- Ku as g,
4063
+ et as g,
4048
4064
  Ne as h,
4049
4065
  hu as i,
4050
- Bu as j,
4051
- yu as k,
4066
+ yu as j,
4067
+ bu as k,
4052
4068
  Tu as l
4053
4069
  };