@cloudtower/eagle 0.26.32 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/umd/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('antd'), require('react'), require('classnames'), require('lodash'), require('react-svg-unique-id'), require('@cloudtower/parrot'), require('react-i18next'), require('@linaria/core'), require('@linaria/react'), require('@cloudtower/icons-react'), require('moment'), require('react-dom'), require('react-is'), require('@ant-design/icons'), require('@ant-design/icons/CheckCircleFilled'), require('@ant-design/icons/CloseCircleFilled'), require('@ant-design/icons/ExclamationCircleFilled'), require('@ant-design/icons/InfoCircleFilled'), require('@ant-design/icons/LoadingOutlined'), require('@cloudtower/rc-notification'), require('redux'), require('react-redux'), require('react-beautiful-dnd'), require('dayjs'), require('timezones.json'), require('recharts'), require('antd/lib/locale/en_US'), require('antd/lib/locale/zh_CN')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'antd', 'react', 'classnames', 'lodash', 'react-svg-unique-id', '@cloudtower/parrot', 'react-i18next', '@linaria/core', '@linaria/react', '@cloudtower/icons-react', 'moment', 'react-dom', 'react-is', '@ant-design/icons', '@ant-design/icons/CheckCircleFilled', '@ant-design/icons/CloseCircleFilled', '@ant-design/icons/ExclamationCircleFilled', '@ant-design/icons/InfoCircleFilled', '@ant-design/icons/LoadingOutlined', '@cloudtower/rc-notification', 'redux', 'react-redux', 'react-beautiful-dnd', 'dayjs', 'timezones.json', 'recharts', 'antd/lib/locale/en_US', 'antd/lib/locale/zh_CN'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.antd, global.React, global.cs, global._, global.reactSvgUniqueId, global.parrot, global.reactI18next, global.core, global.react, global.iconsReact, global.moment, global.reactDom, global.reactIs, global.icons, global.CheckCircleFilled, global.CloseCircleFilled, global.ExclamationCircleFilled, global.InfoCircleFilled, global.LoadingOutlined, global.RCNotification, global.redux, global.reactRedux, global.reactBeautifulDnd, global.dayjs, global.TimeZones, null, global.enUS, global.zhCN));
5
- })(this, (function (exports, antd, React, cs, _, reactSvgUniqueId, parrot, reactI18next, core, react, iconsReact, moment, reactDom, reactIs, icons, CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, InfoCircleFilled, LoadingOutlined, RCNotification, redux, reactRedux, reactBeautifulDnd, dayjs, TimeZones, recharts, enUS, zhCN) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('antd'), require('react'), require('@cloudtower/icons-react'), require('classnames'), require('linaria/react'), require('lodash'), require('react-svg-unique-id'), require('react-transition-group'), require('@linaria/react'), require('@cloudtower/parrot'), require('react-i18next'), require('@linaria/core'), require('moment'), require('react-dom'), require('react-is'), require('@ant-design/icons'), require('@ant-design/icons/CheckCircleFilled'), require('@ant-design/icons/CloseCircleFilled'), require('@ant-design/icons/ExclamationCircleFilled'), require('@ant-design/icons/InfoCircleFilled'), require('@ant-design/icons/LoadingOutlined'), require('@cloudtower/rc-notification'), require('redux'), require('react-redux'), require('react-beautiful-dnd'), require('dayjs'), require('timezones.json'), require('recharts'), require('antd/lib/locale/en_US'), require('antd/lib/locale/zh_CN')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'antd', 'react', '@cloudtower/icons-react', 'classnames', 'linaria/react', 'lodash', 'react-svg-unique-id', 'react-transition-group', '@linaria/react', '@cloudtower/parrot', 'react-i18next', '@linaria/core', 'moment', 'react-dom', 'react-is', '@ant-design/icons', '@ant-design/icons/CheckCircleFilled', '@ant-design/icons/CloseCircleFilled', '@ant-design/icons/ExclamationCircleFilled', '@ant-design/icons/InfoCircleFilled', '@ant-design/icons/LoadingOutlined', '@cloudtower/rc-notification', 'redux', 'react-redux', 'react-beautiful-dnd', 'dayjs', 'timezones.json', 'recharts', 'antd/lib/locale/en_US', 'antd/lib/locale/zh_CN'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.antd, global.React, global.iconsReact, global.cs, global.react, global._, global.reactSvgUniqueId, global.reactTransitionGroup, global.react$1, global.parrot, global.reactI18next, global.core, global.moment, global.reactDom, global.reactIs, global.icons, global.CheckCircleFilled, global.CloseCircleFilled, global.ExclamationCircleFilled, global.InfoCircleFilled, global.LoadingOutlined, global.RCNotification, global.redux, global.reactRedux, global.reactBeautifulDnd, global.dayjs, global.TimeZones, null, global.enUS, global.zhCN));
5
+ })(this, (function (exports, antd, React, iconsReact, cs, react, _, reactSvgUniqueId, reactTransitionGroup, react$1, parrot, reactI18next, core, moment, reactDom, reactIs, icons, CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, InfoCircleFilled, LoadingOutlined, RCNotification, redux, reactRedux, reactBeautifulDnd, dayjs, TimeZones, recharts, enUS, zhCN) { 'use strict';
6
6
 
7
7
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
8
 
@@ -39,6 +39,312 @@
39
39
  var enUS__default = /*#__PURE__*/_interopDefault(enUS);
40
40
  var zhCN__default = /*#__PURE__*/_interopDefault(zhCN);
41
41
 
42
+ var __defProp$X = Object.defineProperty;
43
+ var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
44
+ var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
45
+ var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
46
+ var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
47
+ var __spreadValues$X = (a, b) => {
48
+ for (var prop in b || (b = {}))
49
+ if (__hasOwnProp$Z.call(b, prop))
50
+ __defNormalProp$X(a, prop, b[prop]);
51
+ if (__getOwnPropSymbols$Z)
52
+ for (var prop of __getOwnPropSymbols$Z(b)) {
53
+ if (__propIsEnum$Z.call(b, prop))
54
+ __defNormalProp$X(a, prop, b[prop]);
55
+ }
56
+ return a;
57
+ };
58
+ var __objRest$A = (source, exclude) => {
59
+ var target = {};
60
+ for (var prop in source)
61
+ if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
62
+ target[prop] = source[prop];
63
+ if (source != null && __getOwnPropSymbols$Z)
64
+ for (var prop of __getOwnPropSymbols$Z(source)) {
65
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
66
+ target[prop] = source[prop];
67
+ }
68
+ return target;
69
+ };
70
+ const BaseIcon = React__namespace.default.forwardRef(
71
+ (props, ref) => {
72
+ const _a = props, {
73
+ alt,
74
+ className,
75
+ width,
76
+ height,
77
+ cursor,
78
+ style,
79
+ children,
80
+ prefixNode,
81
+ suffixIconSrc: SuffixSrc,
82
+ src: Src
83
+ } = _a, HTMLSpanElementProps = __objRest$A(_a, [
84
+ "alt",
85
+ "className",
86
+ "width",
87
+ "height",
88
+ "cursor",
89
+ "style",
90
+ "children",
91
+ "prefixNode",
92
+ "suffixIconSrc",
93
+ "src"
94
+ ]);
95
+ return /* @__PURE__ */ React__namespace.default.createElement(
96
+ "span",
97
+ __spreadValues$X({
98
+ ref,
99
+ className,
100
+ style: ___default.default.pickBy(__spreadValues$X({ cursor }, style))
101
+ }, HTMLSpanElementProps),
102
+ prefixNode,
103
+ /* @__PURE__ */ React__namespace.default.createElement("span", { className: "icon-inner" }, typeof Src === "string" ? /* @__PURE__ */ React__namespace.default.createElement("img", { alt, src: Src, width, height }) : /* @__PURE__ */ React__namespace.default.createElement(reactSvgUniqueId.SVGUniqueID, null, Src({ width, height }))),
104
+ children && /* @__PURE__ */ React__namespace.default.createElement("span", { className: "icon-children" }, children),
105
+ SuffixSrc && /* @__PURE__ */ React__namespace.default.createElement("span", { className: "icon-inner suffix" }, typeof SuffixSrc === "string" ? /* @__PURE__ */ React__namespace.default.createElement("img", { alt, src: SuffixSrc, width, height }) : /* @__PURE__ */ React__namespace.default.createElement(reactSvgUniqueId.SVGUniqueID, null, SuffixSrc({ width, height })))
106
+ );
107
+ }
108
+ );
109
+
110
+ var __defProp$W = Object.defineProperty;
111
+ var __defProps$D = Object.defineProperties;
112
+ var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
113
+ var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
114
+ var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
115
+ var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
116
+ var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, {
117
+ enumerable: true,
118
+ configurable: true,
119
+ writable: true,
120
+ value
121
+ }) : obj[key] = value;
122
+ var __spreadValues$W = (a, b) => {
123
+ for (var prop in b || (b = {})) if (__hasOwnProp$Y.call(b, prop)) __defNormalProp$W(a, prop, b[prop]);
124
+ if (__getOwnPropSymbols$Y) for (var prop of __getOwnPropSymbols$Y(b)) {
125
+ if (__propIsEnum$Y.call(b, prop)) __defNormalProp$W(a, prop, b[prop]);
126
+ }
127
+ return a;
128
+ };
129
+ var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
130
+ var __objRest$z = (source, exclude) => {
131
+ var target = {};
132
+ for (var prop in source) if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
133
+ if (source != null && __getOwnPropSymbols$Y) for (var prop of __getOwnPropSymbols$Y(source)) {
134
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop)) target[prop] = source[prop];
135
+ }
136
+ return target;
137
+ };
138
+ const IconWrapper = "i1mrf09m";
139
+ const Icon = React__namespace.default.forwardRef((props, ref) => {
140
+ const _a = props,
141
+ {
142
+ src,
143
+ hoverSrc,
144
+ active,
145
+ activeSrc,
146
+ onMouseEnter,
147
+ onMouseLeave,
148
+ onMouseMove,
149
+ className,
150
+ iconWidth = 16,
151
+ iconHeight = 16,
152
+ cursor,
153
+ style,
154
+ isRotate,
155
+ prefix,
156
+ suffix
157
+ } = _a,
158
+ restProps = __objRest$z(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "isRotate", "prefix", "suffix"]);
159
+ const [hover, setHover] = React.useState(false);
160
+ const _src = React.useMemo(() => {
161
+ if (active && activeSrc) {
162
+ return activeSrc;
163
+ }
164
+ if (hover && hoverSrc) {
165
+ return hoverSrc;
166
+ }
167
+ return src;
168
+ }, [active, activeSrc, hover, hoverSrc, src]);
169
+ const suffixIconSrc = React.useMemo(() => {
170
+ if (!suffix) {
171
+ return void 0;
172
+ }
173
+ const {
174
+ activeSrc: activeSrc2,
175
+ hoverSrc: hoverSrc2,
176
+ src: src2
177
+ } = suffix;
178
+ if (active && activeSrc2) {
179
+ return activeSrc2;
180
+ }
181
+ if (hover && hoverSrc2) {
182
+ return hoverSrc2;
183
+ }
184
+ return src2;
185
+ }, [active, hover, suffix]);
186
+ return /* @__PURE__ */React__namespace.default.createElement(BaseIcon, __spreadProps$D(__spreadValues$W({
187
+ src: _src,
188
+ className: cs__default.default(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
189
+ suffixIconSrc,
190
+ height: iconHeight,
191
+ width: iconWidth,
192
+ prefixNode: prefix,
193
+ style: ___default.default.pickBy(__spreadValues$W({
194
+ cursor
195
+ }, style))
196
+ }, restProps), {
197
+ onMouseEnter: e => {
198
+ onMouseEnter == null ? void 0 : onMouseEnter(e);
199
+ if (hover) {
200
+ setHover(true);
201
+ }
202
+ },
203
+ onMouseMove: e => {
204
+ onMouseMove == null ? void 0 : onMouseMove(e);
205
+ if (hoverSrc) {
206
+ setHover(true);
207
+ }
208
+ },
209
+ onMouseLeave: e => {
210
+ onMouseLeave == null ? void 0 : onMouseLeave(e);
211
+ if (hoverSrc) {
212
+ setHover(false);
213
+ }
214
+ }
215
+ }));
216
+ });
217
+
218
+ var __defProp$V = Object.defineProperty;
219
+ var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
220
+ var __hasOwnProp$X = Object.prototype.hasOwnProperty;
221
+ var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
222
+ var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
223
+ var __spreadValues$V = (a, b) => {
224
+ for (var prop in b || (b = {}))
225
+ if (__hasOwnProp$X.call(b, prop))
226
+ __defNormalProp$V(a, prop, b[prop]);
227
+ if (__getOwnPropSymbols$X)
228
+ for (var prop of __getOwnPropSymbols$X(b)) {
229
+ if (__propIsEnum$X.call(b, prop))
230
+ __defNormalProp$V(a, prop, b[prop]);
231
+ }
232
+ return a;
233
+ };
234
+ var __objRest$y = (source, exclude) => {
235
+ var target = {};
236
+ for (var prop in source)
237
+ if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
238
+ target[prop] = source[prop];
239
+ if (source != null && __getOwnPropSymbols$X)
240
+ for (var prop of __getOwnPropSymbols$X(source)) {
241
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
242
+ target[prop] = source[prop];
243
+ }
244
+ return target;
245
+ };
246
+ const DropdownTransition = (props) => {
247
+ const _a = props, {
248
+ visible,
249
+ timeout,
250
+ children,
251
+ mountOnEnter = true,
252
+ unmountOnExit = true
253
+ } = _a, restProps = __objRest$y(_a, [
254
+ "visible",
255
+ "timeout",
256
+ "children",
257
+ "mountOnEnter",
258
+ "unmountOnExit"
259
+ ]);
260
+ return /* @__PURE__ */ React__namespace.default.createElement(
261
+ reactTransitionGroup.CSSTransition,
262
+ __spreadValues$V({
263
+ in: visible,
264
+ timeout: timeout || 200,
265
+ mountOnEnter,
266
+ unmountOnExit,
267
+ onEnter: (el) => {
268
+ el.style.height = `${el.scrollHeight}px`;
269
+ },
270
+ onEntered: (el) => {
271
+ el.removeAttribute("style");
272
+ },
273
+ onExit: (el) => {
274
+ el.style.height = `${el.offsetHeight}px`;
275
+ },
276
+ onExiting: (el) => {
277
+ el.style.height = "0px";
278
+ }
279
+ }, restProps),
280
+ children
281
+ );
282
+ };
283
+
284
+ const Card$1 = /*#__PURE__*/react.styled('div')({
285
+ name: "Card",
286
+ class: "c18gxmrl",
287
+ propsAsIs: false
288
+ });
289
+ const CloseButton = props => {
290
+ const {
291
+ className,
292
+ onClick
293
+ } = props;
294
+ return /* @__PURE__ */React__namespace.default.createElement(Icon, {
295
+ src: iconsReact.XmarkRemove24SecondaryIcon,
296
+ iconHeight: 24,
297
+ iconWidth: 24,
298
+ className,
299
+ onClick: e => {
300
+ e.stopPropagation();
301
+ onClick == null ? void 0 : onClick(e);
302
+ }
303
+ });
304
+ };
305
+ const AccordionCard = props => {
306
+ const {
307
+ header,
308
+ expand,
309
+ className,
310
+ defaultExpand = true,
311
+ mountOnEnter,
312
+ unmountOnExit
313
+ } = props;
314
+ const [active, setActive] = React.useState(defaultExpand);
315
+ return /* @__PURE__ */React__namespace.default.createElement(Card$1, {
316
+ className: cs__default.default(active && "active", className)
317
+ }, /* @__PURE__ */React__namespace.default.createElement("header", {
318
+ onClick: () => setActive(!active),
319
+ className: "show-close"
320
+ }, typeof header === "function" ? header(active) : header), /* @__PURE__ */React__namespace.default.createElement(DropdownTransition, {
321
+ visible: active,
322
+ timeout: 200,
323
+ classNames: "topo-dropdown",
324
+ mountOnEnter,
325
+ unmountOnExit
326
+ }, /* @__PURE__ */React__namespace.default.createElement("div", {
327
+ className: "expand"
328
+ }, expand)));
329
+ };
330
+ AccordionCard.CloseButton = CloseButton;
331
+
332
+ const CardWrapper$1 = /*#__PURE__*/react$1.styled('div')({
333
+ name: "CardWrapper",
334
+ class: "c1uzzomf",
335
+ propsAsIs: false
336
+ });
337
+ const DetailCard = props => {
338
+ const {
339
+ title
340
+ } = props;
341
+ return /* @__PURE__ */React__namespace.default.createElement(CardWrapper$1, null, title && /* @__PURE__ */React__namespace.default.createElement("div", {
342
+ className: "card-title"
343
+ }, title), /* @__PURE__ */React__namespace.default.createElement("div", {
344
+ className: "card-body"
345
+ }, props.children));
346
+ };
347
+
42
348
  const EMPTY_FUNCTION = () => {
43
349
  };
44
350
 
@@ -202,240 +508,64 @@
202
508
  }
203
509
  return {
204
510
  value: "1",
205
- unit: "%"
206
- };
207
- }
208
- return {
209
- value,
210
- unit: "%"
211
- };
212
- }
213
- function formatSpeed(input, decimals = 0) {
214
- input /= 1e3;
215
- if (input < 1)
216
- return { value: "-", unit: "" };
217
- const units = ["KbE", "MbE", "GbE", "TbE"];
218
- const k = 1e3;
219
- let i = Math.floor(Math.log(input) / Math.log(k));
220
- i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
221
- return {
222
- value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
223
- unit: units[i]
224
- };
225
- }
226
-
227
- var img$9 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.11092 7.0535C3.91566 6.85824 3.91566 6.54166 4.11092 6.3464C4.30619 6.15114 4.62277 6.15114 4.81803 6.3464L8.00001 9.52838L8.35226 9.17613L8.35356 9.17482L11.182 6.3464C11.3773 6.15114 11.6938 6.15114 11.8891 6.3464C12.0844 6.54166 12.0844 6.85824 11.8891 7.0535L10.4408 8.50184C10.4288 8.51384 10.4166 8.52604 10.4042 8.53843L9.13138 9.81122C9.11899 9.82361 9.1068 9.83581 9.09479 9.84781L9.06067 9.88193L9.057 9.88556C8.70964 10.2323 8.5226 10.41 8.30903 10.4794C8.10819 10.5447 7.89184 10.5447 7.691 10.4794C7.47748 10.4101 7.29048 10.2324 6.94327 9.88581L6.93935 9.88193L4.11092 7.0535Z' fill='%230080FF'/%3e%3c/svg%3e";
228
-
229
- var img$8 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.11092 7.0535C3.91566 6.85824 3.91566 6.54166 4.11092 6.3464C4.30619 6.15114 4.62277 6.15114 4.81803 6.3464L8.00001 9.52838L8.35226 9.17613L8.35356 9.17482L11.182 6.3464C11.3773 6.15114 11.6938 6.15114 11.8891 6.3464C12.0844 6.54166 12.0844 6.85824 11.8891 7.0535L10.4408 8.50184C10.4288 8.51384 10.4166 8.52604 10.4042 8.53843L9.13138 9.81122C9.11899 9.82361 9.1068 9.83581 9.09479 9.84781L9.06067 9.88193L9.057 9.88556C8.70964 10.2323 8.5226 10.41 8.30903 10.4794C8.10819 10.5447 7.89184 10.5447 7.691 10.4794C7.47748 10.4101 7.29048 10.2324 6.94327 9.88581L6.93935 9.88193L4.11092 7.0535Z' fill='%232C3852' fill-opacity='0.6'/%3e%3c/svg%3e";
230
-
231
- var img$7 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.06067 3.75725C9.45119 3.36672 10.0844 3.36672 10.4749 3.75725C10.8654 4.14777 10.8654 4.78094 10.4749 5.17146L7.64645 7.99989L10.4749 10.8283C10.8654 11.2188 10.8654 11.852 10.4749 12.2425C10.0844 12.6331 9.45119 12.6331 9.06067 12.2425L5.9494 9.13126C5.55338 8.73524 5.35537 8.53723 5.28118 8.30891C5.21592 8.10806 5.21592 7.89172 5.28118 7.69087C5.35537 7.46254 5.55338 7.26454 5.9494 6.86852L9.06067 3.75725Z' fill='%230080FF'/%3e%3c/svg%3e";
232
-
233
- var img$6 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.05028 9.4142L6.86865 5.59582C6.87513 5.58934 6.88156 5.58292 6.88793 5.57655C7.27116 5.19336 7.46641 5.00058 7.69101 4.92761C7.89185 4.86235 8.1082 4.86235 8.30904 4.92761C8.53737 5.00179 8.73538 5.1998 9.1314 5.59582L12.9498 9.4142C13.3403 9.80472 13.3403 10.4379 12.9498 10.8284C12.5592 11.2189 11.9261 11.2189 11.5356 10.8284L8.00003 7.29288L4.46449 10.8284C4.07397 11.2189 3.4408 11.2189 3.05028 10.8284C2.65975 10.4379 2.65975 9.80472 3.05028 9.4142Z' fill='%232C3852' fill-opacity='0.6'/%3e%3c/svg%3e";
234
-
235
- var img$5 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5ZM11.134 6.56615C11.3346 6.28527 11.2696 5.89493 10.9887 5.6943C10.7078 5.49367 10.3175 5.55872 10.1168 5.83961L7.26389 9.83372L5.81653 8.38635C5.57245 8.14227 5.17672 8.14227 4.93265 8.38635C4.68857 8.63043 4.68857 9.02616 4.93265 9.27023L6.90171 11.2393C7.03162 11.3692 7.2121 11.4354 7.3952 11.4202C7.57829 11.4051 7.74545 11.3101 7.85223 11.1606L11.134 6.56615Z' fill='%2300BA5D'/%3e%3c/svg%3e";
236
-
237
- var img$4 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.81662 7.33209C10.1545 7.55506 10.3235 7.66655 10.3822 7.80742C10.4336 7.93055 10.4336 8.0691 10.3822 8.19224C10.3235 8.33311 10.1545 8.4446 9.81662 8.66757L6.81921 10.6454C6.4159 10.9115 6.21424 11.0445 6.04715 11.034C5.90158 11.0248 5.76727 10.9525 5.67943 10.8361C5.57861 10.7024 5.57861 10.4608 5.57861 9.97761L5.57861 6.02205C5.57861 5.53885 5.57861 5.29726 5.67943 5.16359C5.76727 5.04714 5.90158 4.97485 6.04715 4.96567C6.21424 4.95513 6.4159 5.08819 6.81921 5.35431L9.81662 7.33209Z' fill='%230080FF'/%3e%3c/svg%3e";
238
-
239
- var img$3 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5ZM8.75 11.5C8.75 11.9142 8.41421 12.25 8 12.25C7.58579 12.25 7.25 11.9142 7.25 11.5V7.99812C7.25 7.58391 7.58579 7.24812 8 7.24812C8.41421 7.24812 8.75 7.58391 8.75 7.99812V11.5ZM8.875 5.125C8.875 5.60825 8.48325 6 8 6C7.51675 6 7.125 5.60825 7.125 5.125C7.125 4.64175 7.51675 4.25 8 4.25C8.48325 4.25 8.875 4.64175 8.875 5.125Z' fill='%230080FF'/%3e%3c/svg%3e";
240
-
241
- var img$2 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5ZM8.75 11.5C8.75 11.9142 8.41421 12.25 8 12.25C7.58579 12.25 7.25 11.9142 7.25 11.5V7.99812C7.25 7.58391 7.58579 7.24812 8 7.24812C8.41421 7.24812 8.75 7.58391 8.75 7.99812V11.5ZM8.875 5.125C8.875 5.60825 8.48325 6 8 6C7.51675 6 7.125 5.60825 7.125 5.125C7.125 4.64175 7.51675 4.25 8 4.25C8.48325 4.25 8.875 4.64175 8.875 5.125Z' fill='%232C3852' fill-opacity='0.6'/%3e%3c/svg%3e";
242
-
243
- var img$1 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.60245 1.88247C7.31193 2.00834 7.08625 2.37752 6.63487 3.11589L1.69402 11.1983C1.20753 11.9941 0.964285 12.392 0.992929 12.7198C1.0179 13.0056 1.16444 13.267 1.39527 13.4373C1.66005 13.6328 2.12641 13.6328 3.05915 13.6328H12.9408C13.8736 13.6328 14.34 13.6328 14.6047 13.4373C14.8356 13.267 14.9821 13.0056 15.0071 12.7198C15.0357 12.392 14.7925 11.9941 14.306 11.1983L9.36513 3.11589C8.91375 2.37752 8.68807 2.00834 8.39755 1.88247C8.14391 1.77258 7.85609 1.77258 7.60245 1.88247ZM7.25 5.38278C7.25 4.96856 7.58579 4.63278 8 4.63278C8.41421 4.63278 8.75 4.96856 8.75 5.38278V9.38278C8.75 9.79699 8.41421 10.1328 8 10.1328C7.58579 10.1328 7.25 9.79699 7.25 9.38278V5.38278ZM7.125 11.7578C7.125 11.2745 7.51675 10.8828 8 10.8828C8.48325 10.8828 8.875 11.2745 8.875 11.7578C8.875 12.241 8.48325 12.6328 8 12.6328C7.51675 12.6328 7.125 12.241 7.125 11.7578Z' fill='%23FEA008'/%3e%3c/svg%3e";
244
-
245
- var img = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.47964 2.70117L2.70108 4.47973C2.35518 4.82563 2.18223 4.99859 2.05854 5.20042C1.94889 5.37936 1.86808 5.57445 1.81908 5.77853C1.76382 6.0087 1.76382 6.25329 1.76382 6.74247V9.25773C1.76382 9.74691 1.76382 9.9915 1.81908 10.2217C1.86808 10.4258 1.94889 10.6208 2.05854 10.7998C2.18223 11.0016 2.35518 11.1746 2.70108 11.5205L4.47964 13.299C4.82554 13.6449 4.9985 13.8179 5.20033 13.9416C5.37927 14.0512 5.57436 14.132 5.77843 14.181C6.00861 14.2363 6.2532 14.2363 6.74238 14.2363H9.25764C9.74682 14.2363 9.99141 14.2363 10.2216 14.181C10.4257 14.132 10.6207 14.0512 10.7997 13.9416C11.0015 13.8179 11.1745 13.6449 11.5204 13.299L13.2989 11.5205C13.6448 11.1746 13.8178 11.0016 13.9415 10.7998C14.0511 10.6208 14.1319 10.4258 14.1809 10.2217C14.2362 9.9915 14.2362 9.74691 14.2362 9.25773V6.74247C14.2362 6.25329 14.2362 6.0087 14.1809 5.77853C14.1319 5.57445 14.0511 5.37936 13.9415 5.20042C13.8178 4.99859 13.6448 4.82563 13.2989 4.47973L11.5204 2.70117C11.1745 2.35527 11.0015 2.18232 10.7997 2.05864C10.6207 1.94898 10.4257 1.86817 10.2216 1.81918C9.99141 1.76392 9.74682 1.76392 9.25764 1.76392H6.74238C6.2532 1.76392 6.00861 1.76392 5.77843 1.81918C5.57436 1.86817 5.37927 1.94898 5.20033 2.05864C4.99849 2.18232 4.82554 2.35527 4.47964 2.70117ZM9.94454 5.17157C10.1886 4.92749 10.5843 4.92749 10.8284 5.17157C11.0725 5.41564 11.0725 5.81137 10.8284 6.05545L8.88389 7.99998L10.8285 9.94457C11.0726 10.1886 11.0726 10.5844 10.8285 10.8284C10.5844 11.0725 10.1887 11.0725 9.9446 10.8284L8.00001 8.88386L6.05545 10.8284C5.81138 11.0725 5.41565 11.0725 5.17157 10.8284C4.92749 10.5843 4.92749 10.1886 5.17157 9.94454L7.11613 7.99998L5.17162 6.05548C4.92755 5.8114 4.92755 5.41567 5.17162 5.17159C5.4157 4.92752 5.81143 4.92752 6.05551 5.17159L8.00001 7.1161L9.94454 5.17157Z' fill='%23F0483E'/%3e%3c/svg%3e";
246
-
247
- function getAlertIcon(type) {
248
- switch (type) {
249
- case "success":
250
- return img$5;
251
- case "info":
252
- return img$3;
253
- case "warning":
254
- return img$1;
255
- case "error":
256
- return img;
257
- case "normal":
258
- return img$2;
259
- default:
260
- return img$2;
261
- }
262
- }
263
-
264
- var __defProp$W = Object.defineProperty;
265
- var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
266
- var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
267
- var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
268
- var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
269
- var __spreadValues$W = (a, b) => {
270
- for (var prop in b || (b = {}))
271
- if (__hasOwnProp$Y.call(b, prop))
272
- __defNormalProp$W(a, prop, b[prop]);
273
- if (__getOwnPropSymbols$Y)
274
- for (var prop of __getOwnPropSymbols$Y(b)) {
275
- if (__propIsEnum$Y.call(b, prop))
276
- __defNormalProp$W(a, prop, b[prop]);
277
- }
278
- return a;
279
- };
280
- var __objRest$z = (source, exclude) => {
281
- var target = {};
282
- for (var prop in source)
283
- if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
284
- target[prop] = source[prop];
285
- if (source != null && __getOwnPropSymbols$Y)
286
- for (var prop of __getOwnPropSymbols$Y(source)) {
287
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
288
- target[prop] = source[prop];
289
- }
290
- return target;
291
- };
292
- const BaseIcon = React__namespace.default.forwardRef(
293
- (props, ref) => {
294
- const _a = props, {
295
- alt,
296
- className,
297
- width,
298
- height,
299
- cursor,
300
- style,
301
- children,
302
- prefixNode,
303
- suffixIconSrc: SuffixSrc,
304
- src: Src
305
- } = _a, HTMLSpanElementProps = __objRest$z(_a, [
306
- "alt",
307
- "className",
308
- "width",
309
- "height",
310
- "cursor",
311
- "style",
312
- "children",
313
- "prefixNode",
314
- "suffixIconSrc",
315
- "src"
316
- ]);
317
- return /* @__PURE__ */ React__namespace.default.createElement(
318
- "span",
319
- __spreadValues$W({
320
- ref,
321
- className,
322
- style: ___default.default.pickBy(__spreadValues$W({ cursor }, style))
323
- }, HTMLSpanElementProps),
324
- prefixNode,
325
- /* @__PURE__ */ React__namespace.default.createElement("span", { className: "icon-inner" }, typeof Src === "string" ? /* @__PURE__ */ React__namespace.default.createElement("img", { alt, src: Src, width, height }) : /* @__PURE__ */ React__namespace.default.createElement(reactSvgUniqueId.SVGUniqueID, null, Src({ width, height }))),
326
- children && /* @__PURE__ */ React__namespace.default.createElement("span", { className: "icon-children" }, children),
327
- SuffixSrc && /* @__PURE__ */ React__namespace.default.createElement("span", { className: "icon-inner suffix" }, typeof SuffixSrc === "string" ? /* @__PURE__ */ React__namespace.default.createElement("img", { alt, src: SuffixSrc, width, height }) : /* @__PURE__ */ React__namespace.default.createElement(reactSvgUniqueId.SVGUniqueID, null, SuffixSrc({ width, height })))
328
- );
329
- }
330
- );
331
-
332
- var __defProp$V = Object.defineProperty;
333
- var __defProps$D = Object.defineProperties;
334
- var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
335
- var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
336
- var __hasOwnProp$X = Object.prototype.hasOwnProperty;
337
- var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
338
- var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, {
339
- enumerable: true,
340
- configurable: true,
341
- writable: true,
342
- value
343
- }) : obj[key] = value;
344
- var __spreadValues$V = (a, b) => {
345
- for (var prop in b || (b = {})) if (__hasOwnProp$X.call(b, prop)) __defNormalProp$V(a, prop, b[prop]);
346
- if (__getOwnPropSymbols$X) for (var prop of __getOwnPropSymbols$X(b)) {
347
- if (__propIsEnum$X.call(b, prop)) __defNormalProp$V(a, prop, b[prop]);
348
- }
349
- return a;
350
- };
351
- var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
352
- var __objRest$y = (source, exclude) => {
353
- var target = {};
354
- for (var prop in source) if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
355
- if (source != null && __getOwnPropSymbols$X) for (var prop of __getOwnPropSymbols$X(source)) {
356
- if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop)) target[prop] = source[prop];
357
- }
358
- return target;
359
- };
360
- const IconWrapper = "i1mrf09m";
361
- const Icon = React__namespace.default.forwardRef((props, ref) => {
362
- const _a = props,
363
- {
364
- src,
365
- hoverSrc,
366
- active,
367
- activeSrc,
368
- onMouseEnter,
369
- onMouseLeave,
370
- onMouseMove,
371
- className,
372
- iconWidth = 16,
373
- iconHeight = 16,
374
- cursor,
375
- style,
376
- isRotate,
377
- prefix,
378
- suffix
379
- } = _a,
380
- restProps = __objRest$y(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "isRotate", "prefix", "suffix"]);
381
- const [hover, setHover] = React.useState(false);
382
- const _src = React.useMemo(() => {
383
- if (active && activeSrc) {
384
- return activeSrc;
385
- }
386
- if (hover && hoverSrc) {
387
- return hoverSrc;
388
- }
389
- return src;
390
- }, [active, activeSrc, hover, hoverSrc, src]);
391
- const suffixIconSrc = React.useMemo(() => {
392
- if (!suffix) {
393
- return void 0;
394
- }
395
- const {
396
- activeSrc: activeSrc2,
397
- hoverSrc: hoverSrc2,
398
- src: src2
399
- } = suffix;
400
- if (active && activeSrc2) {
401
- return activeSrc2;
402
- }
403
- if (hover && hoverSrc2) {
404
- return hoverSrc2;
405
- }
406
- return src2;
407
- }, [active, hover, suffix]);
408
- return /* @__PURE__ */React__namespace.default.createElement(BaseIcon, __spreadProps$D(__spreadValues$V({
409
- src: _src,
410
- className: cs__default.default(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
411
- suffixIconSrc,
412
- height: iconHeight,
413
- width: iconWidth,
414
- prefixNode: prefix,
415
- style: ___default.default.pickBy(__spreadValues$V({
416
- cursor
417
- }, style))
418
- }, restProps), {
419
- onMouseEnter: e => {
420
- onMouseEnter == null ? void 0 : onMouseEnter(e);
421
- if (hover) {
422
- setHover(true);
423
- }
424
- },
425
- onMouseMove: e => {
426
- onMouseMove == null ? void 0 : onMouseMove(e);
427
- if (hoverSrc) {
428
- setHover(true);
429
- }
430
- },
431
- onMouseLeave: e => {
432
- onMouseLeave == null ? void 0 : onMouseLeave(e);
433
- if (hoverSrc) {
434
- setHover(false);
435
- }
436
- }
437
- }));
438
- });
511
+ unit: "%"
512
+ };
513
+ }
514
+ return {
515
+ value,
516
+ unit: "%"
517
+ };
518
+ }
519
+ function formatSpeed(input, decimals = 0) {
520
+ input /= 1e3;
521
+ if (input < 1)
522
+ return { value: "-", unit: "" };
523
+ const units = ["KbE", "MbE", "GbE", "TbE"];
524
+ const k = 1e3;
525
+ let i = Math.floor(Math.log(input) / Math.log(k));
526
+ i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
527
+ return {
528
+ value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
529
+ unit: units[i]
530
+ };
531
+ }
532
+
533
+ var img$9 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.11092 7.0535C3.91566 6.85824 3.91566 6.54166 4.11092 6.3464C4.30619 6.15114 4.62277 6.15114 4.81803 6.3464L8.00001 9.52838L8.35226 9.17613L8.35356 9.17482L11.182 6.3464C11.3773 6.15114 11.6938 6.15114 11.8891 6.3464C12.0844 6.54166 12.0844 6.85824 11.8891 7.0535L10.4408 8.50184C10.4288 8.51384 10.4166 8.52604 10.4042 8.53843L9.13138 9.81122C9.11899 9.82361 9.1068 9.83581 9.09479 9.84781L9.06067 9.88193L9.057 9.88556C8.70964 10.2323 8.5226 10.41 8.30903 10.4794C8.10819 10.5447 7.89184 10.5447 7.691 10.4794C7.47748 10.4101 7.29048 10.2324 6.94327 9.88581L6.93935 9.88193L4.11092 7.0535Z' fill='%230080FF'/%3e%3c/svg%3e";
534
+
535
+ var img$8 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.11092 7.0535C3.91566 6.85824 3.91566 6.54166 4.11092 6.3464C4.30619 6.15114 4.62277 6.15114 4.81803 6.3464L8.00001 9.52838L8.35226 9.17613L8.35356 9.17482L11.182 6.3464C11.3773 6.15114 11.6938 6.15114 11.8891 6.3464C12.0844 6.54166 12.0844 6.85824 11.8891 7.0535L10.4408 8.50184C10.4288 8.51384 10.4166 8.52604 10.4042 8.53843L9.13138 9.81122C9.11899 9.82361 9.1068 9.83581 9.09479 9.84781L9.06067 9.88193L9.057 9.88556C8.70964 10.2323 8.5226 10.41 8.30903 10.4794C8.10819 10.5447 7.89184 10.5447 7.691 10.4794C7.47748 10.4101 7.29048 10.2324 6.94327 9.88581L6.93935 9.88193L4.11092 7.0535Z' fill='%232C3852' fill-opacity='0.6'/%3e%3c/svg%3e";
536
+
537
+ var img$7 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.06067 3.75725C9.45119 3.36672 10.0844 3.36672 10.4749 3.75725C10.8654 4.14777 10.8654 4.78094 10.4749 5.17146L7.64645 7.99989L10.4749 10.8283C10.8654 11.2188 10.8654 11.852 10.4749 12.2425C10.0844 12.6331 9.45119 12.6331 9.06067 12.2425L5.9494 9.13126C5.55338 8.73524 5.35537 8.53723 5.28118 8.30891C5.21592 8.10806 5.21592 7.89172 5.28118 7.69087C5.35537 7.46254 5.55338 7.26454 5.9494 6.86852L9.06067 3.75725Z' fill='%230080FF'/%3e%3c/svg%3e";
538
+
539
+ var img$6 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.05028 9.4142L6.86865 5.59582C6.87513 5.58934 6.88156 5.58292 6.88793 5.57655C7.27116 5.19336 7.46641 5.00058 7.69101 4.92761C7.89185 4.86235 8.1082 4.86235 8.30904 4.92761C8.53737 5.00179 8.73538 5.1998 9.1314 5.59582L12.9498 9.4142C13.3403 9.80472 13.3403 10.4379 12.9498 10.8284C12.5592 11.2189 11.9261 11.2189 11.5356 10.8284L8.00003 7.29288L4.46449 10.8284C4.07397 11.2189 3.4408 11.2189 3.05028 10.8284C2.65975 10.4379 2.65975 9.80472 3.05028 9.4142Z' fill='%232C3852' fill-opacity='0.6'/%3e%3c/svg%3e";
540
+
541
+ var img$5 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5ZM11.134 6.56615C11.3346 6.28527 11.2696 5.89493 10.9887 5.6943C10.7078 5.49367 10.3175 5.55872 10.1168 5.83961L7.26389 9.83372L5.81653 8.38635C5.57245 8.14227 5.17672 8.14227 4.93265 8.38635C4.68857 8.63043 4.68857 9.02616 4.93265 9.27023L6.90171 11.2393C7.03162 11.3692 7.2121 11.4354 7.3952 11.4202C7.57829 11.4051 7.74545 11.3101 7.85223 11.1606L11.134 6.56615Z' fill='%2300BA5D'/%3e%3c/svg%3e";
542
+
543
+ var img$4 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.81662 7.33209C10.1545 7.55506 10.3235 7.66655 10.3822 7.80742C10.4336 7.93055 10.4336 8.0691 10.3822 8.19224C10.3235 8.33311 10.1545 8.4446 9.81662 8.66757L6.81921 10.6454C6.4159 10.9115 6.21424 11.0445 6.04715 11.034C5.90158 11.0248 5.76727 10.9525 5.67943 10.8361C5.57861 10.7024 5.57861 10.4608 5.57861 9.97761L5.57861 6.02205C5.57861 5.53885 5.57861 5.29726 5.67943 5.16359C5.76727 5.04714 5.90158 4.97485 6.04715 4.96567C6.21424 4.95513 6.4159 5.08819 6.81921 5.35431L9.81662 7.33209Z' fill='%230080FF'/%3e%3c/svg%3e";
544
+
545
+ var img$3 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5ZM8.75 11.5C8.75 11.9142 8.41421 12.25 8 12.25C7.58579 12.25 7.25 11.9142 7.25 11.5V7.99812C7.25 7.58391 7.58579 7.24812 8 7.24812C8.41421 7.24812 8.75 7.58391 8.75 7.99812V11.5ZM8.875 5.125C8.875 5.60825 8.48325 6 8 6C7.51675 6 7.125 5.60825 7.125 5.125C7.125 4.64175 7.51675 4.25 8 4.25C8.48325 4.25 8.875 4.64175 8.875 5.125Z' fill='%230080FF'/%3e%3c/svg%3e";
546
+
547
+ var img$2 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5ZM8.75 11.5C8.75 11.9142 8.41421 12.25 8 12.25C7.58579 12.25 7.25 11.9142 7.25 11.5V7.99812C7.25 7.58391 7.58579 7.24812 8 7.24812C8.41421 7.24812 8.75 7.58391 8.75 7.99812V11.5ZM8.875 5.125C8.875 5.60825 8.48325 6 8 6C7.51675 6 7.125 5.60825 7.125 5.125C7.125 4.64175 7.51675 4.25 8 4.25C8.48325 4.25 8.875 4.64175 8.875 5.125Z' fill='%232C3852' fill-opacity='0.6'/%3e%3c/svg%3e";
548
+
549
+ var img$1 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.60245 1.88247C7.31193 2.00834 7.08625 2.37752 6.63487 3.11589L1.69402 11.1983C1.20753 11.9941 0.964285 12.392 0.992929 12.7198C1.0179 13.0056 1.16444 13.267 1.39527 13.4373C1.66005 13.6328 2.12641 13.6328 3.05915 13.6328H12.9408C13.8736 13.6328 14.34 13.6328 14.6047 13.4373C14.8356 13.267 14.9821 13.0056 15.0071 12.7198C15.0357 12.392 14.7925 11.9941 14.306 11.1983L9.36513 3.11589C8.91375 2.37752 8.68807 2.00834 8.39755 1.88247C8.14391 1.77258 7.85609 1.77258 7.60245 1.88247ZM7.25 5.38278C7.25 4.96856 7.58579 4.63278 8 4.63278C8.41421 4.63278 8.75 4.96856 8.75 5.38278V9.38278C8.75 9.79699 8.41421 10.1328 8 10.1328C7.58579 10.1328 7.25 9.79699 7.25 9.38278V5.38278ZM7.125 11.7578C7.125 11.2745 7.51675 10.8828 8 10.8828C8.48325 10.8828 8.875 11.2745 8.875 11.7578C8.875 12.241 8.48325 12.6328 8 12.6328C7.51675 12.6328 7.125 12.241 7.125 11.7578Z' fill='%23FEA008'/%3e%3c/svg%3e";
550
+
551
+ var img = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.47964 2.70117L2.70108 4.47973C2.35518 4.82563 2.18223 4.99859 2.05854 5.20042C1.94889 5.37936 1.86808 5.57445 1.81908 5.77853C1.76382 6.0087 1.76382 6.25329 1.76382 6.74247V9.25773C1.76382 9.74691 1.76382 9.9915 1.81908 10.2217C1.86808 10.4258 1.94889 10.6208 2.05854 10.7998C2.18223 11.0016 2.35518 11.1746 2.70108 11.5205L4.47964 13.299C4.82554 13.6449 4.9985 13.8179 5.20033 13.9416C5.37927 14.0512 5.57436 14.132 5.77843 14.181C6.00861 14.2363 6.2532 14.2363 6.74238 14.2363H9.25764C9.74682 14.2363 9.99141 14.2363 10.2216 14.181C10.4257 14.132 10.6207 14.0512 10.7997 13.9416C11.0015 13.8179 11.1745 13.6449 11.5204 13.299L13.2989 11.5205C13.6448 11.1746 13.8178 11.0016 13.9415 10.7998C14.0511 10.6208 14.1319 10.4258 14.1809 10.2217C14.2362 9.9915 14.2362 9.74691 14.2362 9.25773V6.74247C14.2362 6.25329 14.2362 6.0087 14.1809 5.77853C14.1319 5.57445 14.0511 5.37936 13.9415 5.20042C13.8178 4.99859 13.6448 4.82563 13.2989 4.47973L11.5204 2.70117C11.1745 2.35527 11.0015 2.18232 10.7997 2.05864C10.6207 1.94898 10.4257 1.86817 10.2216 1.81918C9.99141 1.76392 9.74682 1.76392 9.25764 1.76392H6.74238C6.2532 1.76392 6.00861 1.76392 5.77843 1.81918C5.57436 1.86817 5.37927 1.94898 5.20033 2.05864C4.99849 2.18232 4.82554 2.35527 4.47964 2.70117ZM9.94454 5.17157C10.1886 4.92749 10.5843 4.92749 10.8284 5.17157C11.0725 5.41564 11.0725 5.81137 10.8284 6.05545L8.88389 7.99998L10.8285 9.94457C11.0726 10.1886 11.0726 10.5844 10.8285 10.8284C10.5844 11.0725 10.1887 11.0725 9.9446 10.8284L8.00001 8.88386L6.05545 10.8284C5.81138 11.0725 5.41565 11.0725 5.17157 10.8284C4.92749 10.5843 4.92749 10.1886 5.17157 9.94454L7.11613 7.99998L5.17162 6.05548C4.92755 5.8114 4.92755 5.41567 5.17162 5.17159C5.4157 4.92752 5.81143 4.92752 6.05551 5.17159L8.00001 7.1161L9.94454 5.17157Z' fill='%23F0483E'/%3e%3c/svg%3e";
552
+
553
+ function getAlertIcon(type) {
554
+ switch (type) {
555
+ case "success":
556
+ return img$5;
557
+ case "info":
558
+ return img$3;
559
+ case "warning":
560
+ return img$1;
561
+ case "error":
562
+ return img;
563
+ case "normal":
564
+ return img$2;
565
+ default:
566
+ return img$2;
567
+ }
568
+ }
439
569
 
440
570
  var __defProp$U = Object.defineProperty;
441
571
  var __defProps$C = Object.defineProperties;
@@ -999,7 +1129,7 @@
999
1129
  return target;
1000
1130
  };
1001
1131
  const ButtonStyle = "bpq0js6";
1002
- const ButtonGroupContainer = /*#__PURE__*/react.styled('div')({
1132
+ const ButtonGroupContainer = /*#__PURE__*/react$1.styled('div')({
1003
1133
  name: "ButtonGroupContainer",
1004
1134
  class: "b15sn34c",
1005
1135
  propsAsIs: false
@@ -1109,13 +1239,13 @@
1109
1239
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
1110
1240
  };
1111
1241
 
1112
- const CardBody = /*#__PURE__*/react.styled('div')({
1242
+ const CardBody = /*#__PURE__*/react$1.styled('div')({
1113
1243
  name: "CardBody",
1114
1244
  class: "c1k4vanq",
1115
1245
  propsAsIs: false
1116
1246
  });
1117
1247
 
1118
- const CardTitle = /*#__PURE__*/react.styled('div')({
1248
+ const CardTitle = /*#__PURE__*/react$1.styled('div')({
1119
1249
  name: "CardTitle",
1120
1250
  class: "c1udgdh2",
1121
1251
  propsAsIs: false
@@ -1162,7 +1292,7 @@
1162
1292
  }, otherProps), children);
1163
1293
  });
1164
1294
  const _exp$3 = () => Wrapper;
1165
- const CardWrapper = /*#__PURE__*/react.styled(_exp$3())({
1295
+ const CardWrapper = /*#__PURE__*/react$1.styled(_exp$3())({
1166
1296
  name: "CardWrapper",
1167
1297
  class: "cav4gt6",
1168
1298
  propsAsIs: true
@@ -1465,12 +1595,12 @@
1465
1595
  ));
1466
1596
  };
1467
1597
 
1468
- const WizardBody = /*#__PURE__*/react.styled('div')({
1598
+ const WizardBody = /*#__PURE__*/react$1.styled('div')({
1469
1599
  name: "WizardBody",
1470
1600
  class: "w1vvwdlp",
1471
1601
  propsAsIs: false
1472
1602
  });
1473
- const FullView = /*#__PURE__*/react.styled('div')({
1603
+ const FullView = /*#__PURE__*/react$1.styled('div')({
1474
1604
  name: "FullView",
1475
1605
  class: "f1rest1f",
1476
1606
  propsAsIs: false
@@ -1717,7 +1847,7 @@
1717
1847
  const _exp6$1 = () => ({
1718
1848
  prefix
1719
1849
  }) => prefix ? "flex" : "none";
1720
- const AntdInputNumberStyled = /*#__PURE__*/react.styled(_exp$2())({
1850
+ const AntdInputNumberStyled = /*#__PURE__*/react$1.styled(_exp$2())({
1721
1851
  name: "AntdInputNumberStyled",
1722
1852
  class: "a6dbbkm",
1723
1853
  propsAsIs: true,
@@ -1984,7 +2114,7 @@
1984
2114
  const _exp6 = () => ({
1985
2115
  prefix
1986
2116
  }) => prefix ? "flex" : "none";
1987
- const AntdIntStyled = /*#__PURE__*/react.styled(_exp$1())({
2117
+ const AntdIntStyled = /*#__PURE__*/react$1.styled(_exp$1())({
1988
2118
  name: "AntdIntStyled",
1989
2119
  class: "at4ovwe",
1990
2120
  propsAsIs: true,
@@ -2078,7 +2208,7 @@
2078
2208
  ));
2079
2209
  };
2080
2210
 
2081
- const InputTagItem = /*#__PURE__*/react.styled('span')({
2211
+ const InputTagItem = /*#__PURE__*/react$1.styled('span')({
2082
2212
  name: "InputTagItem",
2083
2213
  class: "iap75of",
2084
2214
  propsAsIs: false
@@ -2636,20 +2766,11 @@
2636
2766
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
2637
2767
  };
2638
2768
 
2639
- const _exp = () => antd.Input.Group;
2640
- const InputGroup = /*#__PURE__*/react.styled(_exp())({
2641
- name: "InputGroup",
2642
- class: "iiqau4c",
2643
- propsAsIs: true
2644
- });
2645
-
2646
2769
  var __defProp$r = Object.defineProperty;
2647
- var __defProps$k = Object.defineProperties;
2648
- var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
2649
2770
  var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
2650
2771
  var __hasOwnProp$s = Object.prototype.hasOwnProperty;
2651
2772
  var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
2652
- var __defNormalProp$r = (obj, key2, value) => key2 in obj ? __defProp$r(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
2773
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2653
2774
  var __spreadValues$r = (a, b) => {
2654
2775
  for (var prop in b || (b = {}))
2655
2776
  if (__hasOwnProp$s.call(b, prop))
@@ -2661,6 +2782,67 @@
2661
2782
  }
2662
2783
  return a;
2663
2784
  };
2785
+ const ParrotTrans = (props) => {
2786
+ const { i18n } = useParrotTranslation();
2787
+ return /* @__PURE__ */ React__namespace.default.createElement(reactI18next.Trans, __spreadValues$r({ i18n }, props));
2788
+ };
2789
+
2790
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
2791
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
2792
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
2793
+ var __objRest$a = (source, exclude) => {
2794
+ var target = {};
2795
+ for (var prop in source) if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
2796
+ if (source != null && __getOwnPropSymbols$r) for (var prop of __getOwnPropSymbols$r(source)) {
2797
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop)) target[prop] = source[prop];
2798
+ }
2799
+ return target;
2800
+ };
2801
+ const NameTag = /*#__PURE__*/react$1.styled('span')({
2802
+ name: "NameTag",
2803
+ class: "n3qomhu",
2804
+ propsAsIs: false
2805
+ });
2806
+ const I18nNameTag = props => {
2807
+ const _a = props,
2808
+ {
2809
+ name,
2810
+ i18nKey
2811
+ } = _a,
2812
+ otherOption = __objRest$a(_a, ["name", "i18nKey"]);
2813
+ return /* @__PURE__ */React__namespace.default.createElement(ParrotTrans, {
2814
+ i18nKey,
2815
+ tOptions: otherOption
2816
+ }, "h", /* @__PURE__ */React__namespace.default.createElement(NameTag, null, {
2817
+ name
2818
+ }));
2819
+ };
2820
+
2821
+ const _exp = () => antd.Input.Group;
2822
+ const InputGroup = /*#__PURE__*/react$1.styled(_exp())({
2823
+ name: "InputGroup",
2824
+ class: "iiqau4c",
2825
+ propsAsIs: true
2826
+ });
2827
+
2828
+ var __defProp$q = Object.defineProperty;
2829
+ var __defProps$k = Object.defineProperties;
2830
+ var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
2831
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
2832
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
2833
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
2834
+ var __defNormalProp$q = (obj, key2, value) => key2 in obj ? __defProp$q(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
2835
+ var __spreadValues$q = (a, b) => {
2836
+ for (var prop in b || (b = {}))
2837
+ if (__hasOwnProp$q.call(b, prop))
2838
+ __defNormalProp$q(a, prop, b[prop]);
2839
+ if (__getOwnPropSymbols$q)
2840
+ for (var prop of __getOwnPropSymbols$q(b)) {
2841
+ if (__propIsEnum$q.call(b, prop))
2842
+ __defNormalProp$q(a, prop, b[prop]);
2843
+ }
2844
+ return a;
2845
+ };
2664
2846
  var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
2665
2847
  let messageInstance;
2666
2848
  let defaultDuration = 3;
@@ -2768,7 +2950,7 @@
2768
2950
  }
2769
2951
  getRCNotificationInstance(args, ({ prefixCls, instance }) => {
2770
2952
  instance.notice(
2771
- getRCNoticeProps(__spreadProps$k(__spreadValues$r({}, args), { key: target, onClose: callback }), prefixCls)
2953
+ getRCNoticeProps(__spreadProps$k(__spreadValues$q({}, args), { key: target, onClose: callback }), prefixCls)
2772
2954
  );
2773
2955
  });
2774
2956
  });
@@ -2797,7 +2979,7 @@
2797
2979
  function attachTypeApi(originalApi, type) {
2798
2980
  originalApi[type] = (content, duration, onClose) => {
2799
2981
  if (isArgsProps(content)) {
2800
- return originalApi.open(__spreadProps$k(__spreadValues$r({}, content), { type }));
2982
+ return originalApi.open(__spreadProps$k(__spreadValues$q({}, content), { type }));
2801
2983
  }
2802
2984
  if (typeof duration === "function") {
2803
2985
  onClose = duration;
@@ -2811,21 +2993,21 @@
2811
2993
  );
2812
2994
  api.warn = api.warning;
2813
2995
 
2814
- var __defProp$q = Object.defineProperty;
2996
+ var __defProp$p = Object.defineProperty;
2815
2997
  var __defProps$j = Object.defineProperties;
2816
2998
  var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
2817
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
2818
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
2819
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
2820
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2821
- var __spreadValues$q = (a, b) => {
2999
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
3000
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
3001
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
3002
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3003
+ var __spreadValues$p = (a, b) => {
2822
3004
  for (var prop in b || (b = {}))
2823
- if (__hasOwnProp$r.call(b, prop))
2824
- __defNormalProp$q(a, prop, b[prop]);
2825
- if (__getOwnPropSymbols$r)
2826
- for (var prop of __getOwnPropSymbols$r(b)) {
2827
- if (__propIsEnum$r.call(b, prop))
2828
- __defNormalProp$q(a, prop, b[prop]);
3005
+ if (__hasOwnProp$p.call(b, prop))
3006
+ __defNormalProp$p(a, prop, b[prop]);
3007
+ if (__getOwnPropSymbols$p)
3008
+ for (var prop of __getOwnPropSymbols$p(b)) {
3009
+ if (__propIsEnum$p.call(b, prop))
3010
+ __defNormalProp$p(a, prop, b[prop]);
2829
3011
  }
2830
3012
  return a;
2831
3013
  };
@@ -2839,8 +3021,8 @@
2839
3021
  switch (action.type) {
2840
3022
  case "SET_POINTER" /* SET_POINTER */: {
2841
3023
  const { uuid, left, text, visible, value } = action.payload;
2842
- return __spreadProps$j(__spreadValues$q({}, state), {
2843
- pointers: __spreadProps$j(__spreadValues$q({}, state.pointers), {
3024
+ return __spreadProps$j(__spreadValues$p({}, state), {
3025
+ pointers: __spreadProps$j(__spreadValues$p({}, state.pointers), {
2844
3026
  [uuid]: {
2845
3027
  left,
2846
3028
  text,
@@ -2852,16 +3034,16 @@
2852
3034
  }
2853
3035
  case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
2854
3036
  const { uuid, data } = action.payload;
2855
- return __spreadProps$j(__spreadValues$q({}, state), {
2856
- resourceData: __spreadProps$j(__spreadValues$q({}, state.resourceData), {
3037
+ return __spreadProps$j(__spreadValues$p({}, state), {
3038
+ resourceData: __spreadProps$j(__spreadValues$p({}, state.resourceData), {
2857
3039
  [uuid]: data
2858
3040
  })
2859
3041
  });
2860
3042
  }
2861
3043
  case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
2862
3044
  const { uuid, average } = action.payload;
2863
- return __spreadProps$j(__spreadValues$q({}, state), {
2864
- averageData: __spreadProps$j(__spreadValues$q({}, state.averageData), {
3045
+ return __spreadProps$j(__spreadValues$p({}, state), {
3046
+ averageData: __spreadProps$j(__spreadValues$p({}, state.averageData), {
2865
3047
  [uuid]: average
2866
3048
  })
2867
3049
  });
@@ -2872,21 +3054,21 @@
2872
3054
  }
2873
3055
  };
2874
3056
 
2875
- var __defProp$p = Object.defineProperty;
3057
+ var __defProp$o = Object.defineProperty;
2876
3058
  var __defProps$i = Object.defineProperties;
2877
3059
  var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
2878
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
2879
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
2880
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
2881
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2882
- var __spreadValues$p = (a, b) => {
3060
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
3061
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
3062
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
3063
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3064
+ var __spreadValues$o = (a, b) => {
2883
3065
  for (var prop in b || (b = {}))
2884
- if (__hasOwnProp$q.call(b, prop))
2885
- __defNormalProp$p(a, prop, b[prop]);
2886
- if (__getOwnPropSymbols$q)
2887
- for (var prop of __getOwnPropSymbols$q(b)) {
2888
- if (__propIsEnum$q.call(b, prop))
2889
- __defNormalProp$p(a, prop, b[prop]);
3066
+ if (__hasOwnProp$o.call(b, prop))
3067
+ __defNormalProp$o(a, prop, b[prop]);
3068
+ if (__getOwnPropSymbols$o)
3069
+ for (var prop of __getOwnPropSymbols$o(b)) {
3070
+ if (__propIsEnum$o.call(b, prop))
3071
+ __defNormalProp$o(a, prop, b[prop]);
2890
3072
  }
2891
3073
  return a;
2892
3074
  };
@@ -2911,22 +3093,22 @@
2911
3093
  )) {
2912
3094
  return state;
2913
3095
  }
2914
- return __spreadProps$i(__spreadValues$p({}, state), {
2915
- stack: state.stack.concat(__spreadProps$i(__spreadValues$p({}, action.payload), {
3096
+ return __spreadProps$i(__spreadValues$o({}, state), {
3097
+ stack: state.stack.concat(__spreadProps$i(__spreadValues$o({}, action.payload), {
2916
3098
  id: MODAL_ID++
2917
3099
  }))
2918
3100
  });
2919
3101
  case "POP_MODAL" /* POP_MODAL */:
2920
- return __spreadProps$i(__spreadValues$p({}, state), {
3102
+ return __spreadProps$i(__spreadValues$o({}, state), {
2921
3103
  stack: state.stack.slice(0, -1)
2922
3104
  });
2923
3105
  case "REMOVE_MODAL" /* REMOVE_MODAL */:
2924
- return __spreadProps$i(__spreadValues$p({}, state), {
3106
+ return __spreadProps$i(__spreadValues$o({}, state), {
2925
3107
  closeId: 0,
2926
3108
  stack: state.stack.filter((m) => m.id !== action.id)
2927
3109
  });
2928
3110
  case "CLOSE_MODAL" /* CLOSE_MODAL */:
2929
- return __spreadProps$i(__spreadValues$p({}, state), {
3111
+ return __spreadProps$i(__spreadValues$o({}, state), {
2930
3112
  closeId: action.id
2931
3113
  });
2932
3114
  default:
@@ -2983,33 +3165,33 @@
2983
3165
  const HorizontalStepContentStyle = "h1xo7yjb";
2984
3166
  const VerticalStepContentStyle = "v1f2f7cy";
2985
3167
 
2986
- var __defProp$o = Object.defineProperty;
3168
+ var __defProp$n = Object.defineProperty;
2987
3169
  var __defProps$h = Object.defineProperties;
2988
3170
  var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
2989
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
2990
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
2991
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
2992
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2993
- var __spreadValues$o = (a, b) => {
3171
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
3172
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
3173
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
3174
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3175
+ var __spreadValues$n = (a, b) => {
2994
3176
  for (var prop in b || (b = {}))
2995
- if (__hasOwnProp$p.call(b, prop))
2996
- __defNormalProp$o(a, prop, b[prop]);
2997
- if (__getOwnPropSymbols$p)
2998
- for (var prop of __getOwnPropSymbols$p(b)) {
2999
- if (__propIsEnum$p.call(b, prop))
3000
- __defNormalProp$o(a, prop, b[prop]);
3177
+ if (__hasOwnProp$n.call(b, prop))
3178
+ __defNormalProp$n(a, prop, b[prop]);
3179
+ if (__getOwnPropSymbols$n)
3180
+ for (var prop of __getOwnPropSymbols$n(b)) {
3181
+ if (__propIsEnum$n.call(b, prop))
3182
+ __defNormalProp$n(a, prop, b[prop]);
3001
3183
  }
3002
3184
  return a;
3003
3185
  };
3004
3186
  var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
3005
- var __objRest$a = (source, exclude) => {
3187
+ var __objRest$9 = (source, exclude) => {
3006
3188
  var target = {};
3007
3189
  for (var prop in source)
3008
- if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
3190
+ if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
3009
3191
  target[prop] = source[prop];
3010
- if (source != null && __getOwnPropSymbols$p)
3011
- for (var prop of __getOwnPropSymbols$p(source)) {
3012
- if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
3192
+ if (source != null && __getOwnPropSymbols$n)
3193
+ for (var prop of __getOwnPropSymbols$n(source)) {
3194
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
3013
3195
  target[prop] = source[prop];
3014
3196
  }
3015
3197
  return target;
@@ -3025,7 +3207,7 @@
3025
3207
  setTooltipEnable({});
3026
3208
  }
3027
3209
  }, [textRef]);
3028
- return /* @__PURE__ */ React__namespace.default.createElement(Tooltip, __spreadProps$h(__spreadValues$o({}, tooltipEnable), { title: step.title }), /* @__PURE__ */ React__namespace.default.createElement(
3210
+ return /* @__PURE__ */ React__namespace.default.createElement(Tooltip, __spreadProps$h(__spreadValues$n({}, tooltipEnable), { title: step.title }), /* @__PURE__ */ React__namespace.default.createElement(
3029
3211
  "div",
3030
3212
  {
3031
3213
  className: isVerticalMode ? VerticalStepContentStyle : HorizontalStepContentStyle
@@ -3041,7 +3223,7 @@
3041
3223
  containerClassname,
3042
3224
  current = 0,
3043
3225
  disabled
3044
- } = _a, stepsProps = __objRest$a(_a, [
3226
+ } = _a, stepsProps = __objRest$9(_a, [
3045
3227
  "stepsConfig",
3046
3228
  "direction",
3047
3229
  "containerClassname",
@@ -3060,14 +3242,14 @@
3060
3242
  },
3061
3243
  /* @__PURE__ */ React__namespace.default.createElement(
3062
3244
  antd.Steps,
3063
- __spreadProps$h(__spreadValues$o({}, stepsProps), {
3245
+ __spreadProps$h(__spreadValues$n({}, stepsProps), {
3064
3246
  direction,
3065
3247
  current,
3066
3248
  type: "default"
3067
3249
  }),
3068
3250
  (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */ React__namespace.default.createElement(
3069
3251
  antd.Steps.Step,
3070
- __spreadProps$h(__spreadValues$o({
3252
+ __spreadProps$h(__spreadValues$n({
3071
3253
  key: index
3072
3254
  }, step), {
3073
3255
  disabled: disabled || index > current,
@@ -3086,33 +3268,33 @@
3086
3268
  );
3087
3269
  };
3088
3270
 
3089
- var __defProp$n = Object.defineProperty;
3271
+ var __defProp$m = Object.defineProperty;
3090
3272
  var __defProps$g = Object.defineProperties;
3091
3273
  var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
3092
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
3093
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
3094
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
3095
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3096
- var __spreadValues$n = (a, b) => {
3274
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
3275
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
3276
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
3277
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3278
+ var __spreadValues$m = (a, b) => {
3097
3279
  for (var prop in b || (b = {}))
3098
- if (__hasOwnProp$o.call(b, prop))
3099
- __defNormalProp$n(a, prop, b[prop]);
3100
- if (__getOwnPropSymbols$o)
3101
- for (var prop of __getOwnPropSymbols$o(b)) {
3102
- if (__propIsEnum$o.call(b, prop))
3103
- __defNormalProp$n(a, prop, b[prop]);
3280
+ if (__hasOwnProp$m.call(b, prop))
3281
+ __defNormalProp$m(a, prop, b[prop]);
3282
+ if (__getOwnPropSymbols$m)
3283
+ for (var prop of __getOwnPropSymbols$m(b)) {
3284
+ if (__propIsEnum$m.call(b, prop))
3285
+ __defNormalProp$m(a, prop, b[prop]);
3104
3286
  }
3105
3287
  return a;
3106
3288
  };
3107
3289
  var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
3108
- var __objRest$9 = (source, exclude) => {
3290
+ var __objRest$8 = (source, exclude) => {
3109
3291
  var target = {};
3110
3292
  for (var prop in source)
3111
- if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
3293
+ if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
3112
3294
  target[prop] = source[prop];
3113
- if (source != null && __getOwnPropSymbols$o)
3114
- for (var prop of __getOwnPropSymbols$o(source)) {
3115
- if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
3295
+ if (source != null && __getOwnPropSymbols$m)
3296
+ for (var prop of __getOwnPropSymbols$m(source)) {
3297
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
3116
3298
  target[prop] = source[prop];
3117
3299
  }
3118
3300
  return target;
@@ -3139,7 +3321,7 @@
3139
3321
  showCancel = true,
3140
3322
  showOk = true,
3141
3323
  afterClose
3142
- } = _a, restProps = __objRest$9(_a, [
3324
+ } = _a, restProps = __objRest$8(_a, [
3143
3325
  "error",
3144
3326
  "okText",
3145
3327
  "cancelText",
@@ -3194,7 +3376,7 @@
3194
3376
  }
3195
3377
  return /* @__PURE__ */ React__namespace.default.createElement(
3196
3378
  antd.Modal,
3197
- __spreadProps$g(__spreadValues$n({
3379
+ __spreadProps$g(__spreadValues$m({
3198
3380
  maskClosable,
3199
3381
  className: cs__default.default(
3200
3382
  className,
@@ -3229,7 +3411,7 @@
3229
3411
  prevText
3230
3412
  ), error && /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: "modal-error" }, error))), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "modal-footer-btn-group" }, showCancel && /* @__PURE__ */ React__namespace.default.createElement(
3231
3413
  Button,
3232
- __spreadValues$n({
3414
+ __spreadValues$m({
3233
3415
  type: "quiet",
3234
3416
  onMouseDown: (e) => {
3235
3417
  e.preventDefault();
@@ -3243,7 +3425,7 @@
3243
3425
  cancelText
3244
3426
  ), showOk && /* @__PURE__ */ React__namespace.default.createElement(
3245
3427
  Button,
3246
- __spreadValues$n({
3428
+ __spreadValues$m({
3247
3429
  onClick: (e) => {
3248
3430
  var _a2, _b2;
3249
3431
  onOk == null ? void 0 : onOk(e);
@@ -3279,10 +3461,73 @@
3279
3461
  style: {
3280
3462
  display: index === wizard.step ? "block" : "none"
3281
3463
  }
3282
- },
3283
- step
3284
- ))), wizard.right && /* @__PURE__ */ React__namespace.default.createElement("div", { className: "right" }, wizard.right)) : restProps.children
3285
- );
3464
+ },
3465
+ step
3466
+ ))), wizard.right && /* @__PURE__ */ React__namespace.default.createElement("div", { className: "right" }, wizard.right)) : restProps.children
3467
+ );
3468
+ };
3469
+
3470
+ var __defProp$l = Object.defineProperty;
3471
+ var __defProps$f = Object.defineProperties;
3472
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
3473
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
3474
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
3475
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
3476
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, {
3477
+ enumerable: true,
3478
+ configurable: true,
3479
+ writable: true,
3480
+ value
3481
+ }) : obj[key] = value;
3482
+ var __spreadValues$l = (a, b) => {
3483
+ for (var prop in b || (b = {})) if (__hasOwnProp$l.call(b, prop)) __defNormalProp$l(a, prop, b[prop]);
3484
+ if (__getOwnPropSymbols$l) for (var prop of __getOwnPropSymbols$l(b)) {
3485
+ if (__propIsEnum$l.call(b, prop)) __defNormalProp$l(a, prop, b[prop]);
3486
+ }
3487
+ return a;
3488
+ };
3489
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
3490
+ const OverflowText = "o8ocss1";
3491
+ const NoWrap = "n17syc35";
3492
+ const OverflowTooltip = props => {
3493
+ const {
3494
+ content,
3495
+ className,
3496
+ onClick,
3497
+ isMultiLine
3498
+ } = props;
3499
+ const tooltip = props.tooltip || content;
3500
+ const [ellipsis, setEllipsis] = React.useState(false);
3501
+ const textRef = React.useRef(null);
3502
+ React.useEffect(() => {
3503
+ const ele = textRef.current;
3504
+ let observer;
3505
+ if (ele) {
3506
+ const handleResize = _.debounce(() => {
3507
+ if (isMultiLine) {
3508
+ setEllipsis(ele.scrollHeight > ele.offsetHeight);
3509
+ } else {
3510
+ setEllipsis(ele.scrollWidth > ele.offsetWidth);
3511
+ }
3512
+ }, 200);
3513
+ observer = new ResizeObserver(handleResize);
3514
+ observer.observe(ele);
3515
+ }
3516
+ return () => {
3517
+ observer == null ? void 0 : observer.disconnect();
3518
+ };
3519
+ });
3520
+ return /* @__PURE__ */React__namespace.default.createElement(Tooltip, __spreadProps$f(__spreadValues$l({}, !ellipsis && {
3521
+ visible: false
3522
+ }), {
3523
+ title: tooltip
3524
+ }), /* @__PURE__ */React__namespace.default.createElement("div", {
3525
+ ref: textRef,
3526
+ className: core.cx(OverflowText, !isMultiLine && NoWrap, className),
3527
+ onClick: () => {
3528
+ onClick && onClick();
3529
+ }
3530
+ }, /* @__PURE__ */React__namespace.default.createElement("span", null, content)));
3286
3531
  };
3287
3532
 
3288
3533
  const PaginationStyle = "p12gwtiw";
@@ -3390,19 +3635,19 @@
3390
3635
  }))));
3391
3636
  };
3392
3637
 
3393
- var __defProp$m = Object.defineProperty;
3394
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
3395
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
3396
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
3397
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3398
- var __spreadValues$m = (a, b) => {
3638
+ var __defProp$k = Object.defineProperty;
3639
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
3640
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
3641
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
3642
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3643
+ var __spreadValues$k = (a, b) => {
3399
3644
  for (var prop in b || (b = {}))
3400
- if (__hasOwnProp$n.call(b, prop))
3401
- __defNormalProp$m(a, prop, b[prop]);
3402
- if (__getOwnPropSymbols$n)
3403
- for (var prop of __getOwnPropSymbols$n(b)) {
3404
- if (__propIsEnum$n.call(b, prop))
3405
- __defNormalProp$m(a, prop, b[prop]);
3645
+ if (__hasOwnProp$k.call(b, prop))
3646
+ __defNormalProp$k(a, prop, b[prop]);
3647
+ if (__getOwnPropSymbols$k)
3648
+ for (var prop of __getOwnPropSymbols$k(b)) {
3649
+ if (__propIsEnum$k.call(b, prop))
3650
+ __defNormalProp$k(a, prop, b[prop]);
3406
3651
  }
3407
3652
  return a;
3408
3653
  };
@@ -3415,52 +3660,52 @@
3415
3660
  emptyProps
3416
3661
  }) => {
3417
3662
  if (isEmpty(rawValue)) {
3418
- return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$m({}, emptyProps));
3663
+ return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$k({}, emptyProps));
3419
3664
  }
3420
3665
  const { value, unit } = formatPercent(rawValue, decimals, saturated);
3421
3666
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, unit));
3422
3667
  };
3423
3668
 
3424
- var __defProp$l = Object.defineProperty;
3425
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
3426
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
3427
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
3428
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3429
- var __spreadValues$l = (a, b) => {
3669
+ var __defProp$j = Object.defineProperty;
3670
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
3671
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
3672
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
3673
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3674
+ var __spreadValues$j = (a, b) => {
3430
3675
  for (var prop in b || (b = {}))
3431
- if (__hasOwnProp$m.call(b, prop))
3432
- __defNormalProp$l(a, prop, b[prop]);
3433
- if (__getOwnPropSymbols$m)
3434
- for (var prop of __getOwnPropSymbols$m(b)) {
3435
- if (__propIsEnum$m.call(b, prop))
3436
- __defNormalProp$l(a, prop, b[prop]);
3676
+ if (__hasOwnProp$j.call(b, prop))
3677
+ __defNormalProp$j(a, prop, b[prop]);
3678
+ if (__getOwnPropSymbols$j)
3679
+ for (var prop of __getOwnPropSymbols$j(b)) {
3680
+ if (__propIsEnum$j.call(b, prop))
3681
+ __defNormalProp$j(a, prop, b[prop]);
3437
3682
  }
3438
3683
  return a;
3439
3684
  };
3440
- const Progress = (props) => /* @__PURE__ */ React__namespace.default.createElement(antd.Progress, __spreadValues$l({}, props));
3685
+ const Progress = (props) => /* @__PURE__ */ React__namespace.default.createElement(antd.Progress, __spreadValues$j({}, props));
3441
3686
 
3442
- var __defProp$k = Object.defineProperty;
3443
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
3444
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
3445
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
3446
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, {
3687
+ var __defProp$i = Object.defineProperty;
3688
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
3689
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
3690
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
3691
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, {
3447
3692
  enumerable: true,
3448
3693
  configurable: true,
3449
3694
  writable: true,
3450
3695
  value
3451
3696
  }) : obj[key] = value;
3452
- var __spreadValues$k = (a, b) => {
3453
- for (var prop in b || (b = {})) if (__hasOwnProp$l.call(b, prop)) __defNormalProp$k(a, prop, b[prop]);
3454
- if (__getOwnPropSymbols$l) for (var prop of __getOwnPropSymbols$l(b)) {
3455
- if (__propIsEnum$l.call(b, prop)) __defNormalProp$k(a, prop, b[prop]);
3697
+ var __spreadValues$i = (a, b) => {
3698
+ for (var prop in b || (b = {})) if (__hasOwnProp$i.call(b, prop)) __defNormalProp$i(a, prop, b[prop]);
3699
+ if (__getOwnPropSymbols$i) for (var prop of __getOwnPropSymbols$i(b)) {
3700
+ if (__propIsEnum$i.call(b, prop)) __defNormalProp$i(a, prop, b[prop]);
3456
3701
  }
3457
3702
  return a;
3458
3703
  };
3459
- var __objRest$8 = (source, exclude) => {
3704
+ var __objRest$7 = (source, exclude) => {
3460
3705
  var target = {};
3461
- for (var prop in source) if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3462
- if (source != null && __getOwnPropSymbols$l) for (var prop of __getOwnPropSymbols$l(source)) {
3463
- if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop)) target[prop] = source[prop];
3706
+ for (var prop in source) if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3707
+ if (source != null && __getOwnPropSymbols$i) for (var prop of __getOwnPropSymbols$i(source)) {
3708
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop)) target[prop] = source[prop];
3464
3709
  }
3465
3710
  return target;
3466
3711
  };
@@ -3476,7 +3721,7 @@
3476
3721
  checked,
3477
3722
  compact = false
3478
3723
  } = _b,
3479
- props = __objRest$8(_b, ["children", "className", "checked", "compact"]);
3724
+ props = __objRest$7(_b, ["children", "className", "checked", "compact"]);
3480
3725
  const {
3481
3726
  description
3482
3727
  } = props;
@@ -3486,7 +3731,7 @@
3486
3731
  className: core.cx("radio-description", Typo.Label.l4_regular)
3487
3732
  }, description));
3488
3733
  }
3489
- return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Radio, __spreadValues$k({
3734
+ return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Radio, __spreadValues$i({
3490
3735
  className: core.cx(className, RadioStyle, compact && "compact"),
3491
3736
  checked: checked || false,
3492
3737
  "data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
@@ -3498,13 +3743,13 @@
3498
3743
  children,
3499
3744
  className
3500
3745
  } = _d,
3501
- props = __objRest$8(_d, ["children", "className"]);
3746
+ props = __objRest$7(_d, ["children", "className"]);
3502
3747
  return /* @__PURE__ */React__namespace.default.createElement(KitRadioGroupContext.Provider, {
3503
3748
  value: {
3504
3749
  disabled: props.disabled,
3505
3750
  name: props.name
3506
3751
  }
3507
- }, /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Group, __spreadValues$k({
3752
+ }, /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Group, __spreadValues$i({
3508
3753
  className: core.cx(className, RadioGroupStyle)
3509
3754
  }, props), children ? children : null));
3510
3755
  };
@@ -3514,7 +3759,7 @@
3514
3759
  children,
3515
3760
  className
3516
3761
  } = _f,
3517
- props = __objRest$8(_f, ["children", "className"]);
3762
+ props = __objRest$7(_f, ["children", "className"]);
3518
3763
  const {
3519
3764
  type,
3520
3765
  placeholder = "Label",
@@ -3560,46 +3805,46 @@
3560
3805
  className: "ant-radio-button-input-label"
3561
3806
  }, typeof children === "string" ? children : ""));
3562
3807
  };
3563
- return /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Button, __spreadValues$k({
3808
+ return /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Button, __spreadValues$i({
3564
3809
  className: core.cx(className, RadioButtonStyle),
3565
3810
  value: radioButtonValue
3566
3811
  }, props), renderChildren());
3567
3812
  };
3568
3813
 
3569
- var __defProp$j = Object.defineProperty;
3570
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
3571
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
3572
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
3573
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3574
- var __spreadValues$j = (a, b) => {
3814
+ var __defProp$h = Object.defineProperty;
3815
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
3816
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
3817
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
3818
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3819
+ var __spreadValues$h = (a, b) => {
3575
3820
  for (var prop in b || (b = {}))
3576
- if (__hasOwnProp$k.call(b, prop))
3577
- __defNormalProp$j(a, prop, b[prop]);
3578
- if (__getOwnPropSymbols$k)
3579
- for (var prop of __getOwnPropSymbols$k(b)) {
3580
- if (__propIsEnum$k.call(b, prop))
3581
- __defNormalProp$j(a, prop, b[prop]);
3821
+ if (__hasOwnProp$h.call(b, prop))
3822
+ __defNormalProp$h(a, prop, b[prop]);
3823
+ if (__getOwnPropSymbols$h)
3824
+ for (var prop of __getOwnPropSymbols$h(b)) {
3825
+ if (__propIsEnum$h.call(b, prop))
3826
+ __defNormalProp$h(a, prop, b[prop]);
3582
3827
  }
3583
3828
  return a;
3584
3829
  };
3585
- var __objRest$7 = (source, exclude) => {
3830
+ var __objRest$6 = (source, exclude) => {
3586
3831
  var target = {};
3587
3832
  for (var prop in source)
3588
- if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
3833
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
3589
3834
  target[prop] = source[prop];
3590
- if (source != null && __getOwnPropSymbols$k)
3591
- for (var prop of __getOwnPropSymbols$k(source)) {
3592
- if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
3835
+ if (source != null && __getOwnPropSymbols$h)
3836
+ for (var prop of __getOwnPropSymbols$h(source)) {
3837
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
3593
3838
  target[prop] = source[prop];
3594
3839
  }
3595
3840
  return target;
3596
3841
  };
3597
3842
  const SearchInput = (props) => {
3598
- const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$7(_a, ["onChange", "debounceWait"]);
3843
+ const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$6(_a, ["onChange", "debounceWait"]);
3599
3844
  const onSearch = ___default.default.debounce(onChange, debounceWait);
3600
3845
  return /* @__PURE__ */ React__namespace.default.createElement(
3601
3846
  Input,
3602
- __spreadValues$j({
3847
+ __spreadValues$h({
3603
3848
  style: { width: 276 },
3604
3849
  prefix: /* @__PURE__ */ React__namespace.default.createElement(icons.SearchOutlined, null),
3605
3850
  onChange: (e) => onSearch(e.target.value)
@@ -3607,19 +3852,19 @@
3607
3852
  );
3608
3853
  };
3609
3854
 
3610
- var __defProp$i = Object.defineProperty;
3611
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
3612
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
3613
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
3614
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3615
- var __spreadValues$i = (a, b) => {
3855
+ var __defProp$g = Object.defineProperty;
3856
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
3857
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
3858
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
3859
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3860
+ var __spreadValues$g = (a, b) => {
3616
3861
  for (var prop in b || (b = {}))
3617
- if (__hasOwnProp$j.call(b, prop))
3618
- __defNormalProp$i(a, prop, b[prop]);
3619
- if (__getOwnPropSymbols$j)
3620
- for (var prop of __getOwnPropSymbols$j(b)) {
3621
- if (__propIsEnum$j.call(b, prop))
3622
- __defNormalProp$i(a, prop, b[prop]);
3862
+ if (__hasOwnProp$g.call(b, prop))
3863
+ __defNormalProp$g(a, prop, b[prop]);
3864
+ if (__getOwnPropSymbols$g)
3865
+ for (var prop of __getOwnPropSymbols$g(b)) {
3866
+ if (__propIsEnum$g.call(b, prop))
3867
+ __defNormalProp$g(a, prop, b[prop]);
3623
3868
  }
3624
3869
  return a;
3625
3870
  };
@@ -3633,7 +3878,7 @@
3633
3878
  }) => {
3634
3879
  const { t } = useParrotTranslation();
3635
3880
  if (isEmpty(rawValue)) {
3636
- return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$i({}, emptyProps));
3881
+ return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$g({}, emptyProps));
3637
3882
  }
3638
3883
  const { value, unit } = formatSeconds(rawValue, decimals);
3639
3884
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
@@ -3715,19 +3960,19 @@
3715
3960
  })));
3716
3961
  };
3717
3962
 
3718
- var __defProp$h = Object.defineProperty;
3719
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
3720
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
3721
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
3722
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3723
- var __spreadValues$h = (a, b) => {
3963
+ var __defProp$f = Object.defineProperty;
3964
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
3965
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
3966
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
3967
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3968
+ var __spreadValues$f = (a, b) => {
3724
3969
  for (var prop in b || (b = {}))
3725
- if (__hasOwnProp$i.call(b, prop))
3726
- __defNormalProp$h(a, prop, b[prop]);
3727
- if (__getOwnPropSymbols$i)
3728
- for (var prop of __getOwnPropSymbols$i(b)) {
3729
- if (__propIsEnum$i.call(b, prop))
3730
- __defNormalProp$h(a, prop, b[prop]);
3970
+ if (__hasOwnProp$f.call(b, prop))
3971
+ __defNormalProp$f(a, prop, b[prop]);
3972
+ if (__getOwnPropSymbols$f)
3973
+ for (var prop of __getOwnPropSymbols$f(b)) {
3974
+ if (__propIsEnum$f.call(b, prop))
3975
+ __defNormalProp$f(a, prop, b[prop]);
3731
3976
  }
3732
3977
  return a;
3733
3978
  };
@@ -3739,43 +3984,43 @@
3739
3984
  emptyProps
3740
3985
  }) => {
3741
3986
  if (isEmpty(rawValue)) {
3742
- return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$h({}, emptyProps));
3987
+ return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$f({}, emptyProps));
3743
3988
  }
3744
3989
  const { value, unit } = formatSpeed(rawValue, decimals);
3745
3990
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
3746
3991
  };
3747
3992
 
3748
- var __defProp$g = Object.defineProperty;
3749
- var __defProps$f = Object.defineProperties;
3750
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
3751
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
3752
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
3753
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
3754
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, {
3993
+ var __defProp$e = Object.defineProperty;
3994
+ var __defProps$e = Object.defineProperties;
3995
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
3996
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
3997
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
3998
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
3999
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, {
3755
4000
  enumerable: true,
3756
4001
  configurable: true,
3757
4002
  writable: true,
3758
4003
  value
3759
4004
  }) : obj[key] = value;
3760
- var __spreadValues$g = (a, b) => {
3761
- for (var prop in b || (b = {})) if (__hasOwnProp$h.call(b, prop)) __defNormalProp$g(a, prop, b[prop]);
3762
- if (__getOwnPropSymbols$h) for (var prop of __getOwnPropSymbols$h(b)) {
3763
- if (__propIsEnum$h.call(b, prop)) __defNormalProp$g(a, prop, b[prop]);
4005
+ var __spreadValues$e = (a, b) => {
4006
+ for (var prop in b || (b = {})) if (__hasOwnProp$e.call(b, prop)) __defNormalProp$e(a, prop, b[prop]);
4007
+ if (__getOwnPropSymbols$e) for (var prop of __getOwnPropSymbols$e(b)) {
4008
+ if (__propIsEnum$e.call(b, prop)) __defNormalProp$e(a, prop, b[prop]);
3764
4009
  }
3765
4010
  return a;
3766
4011
  };
3767
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
3768
- var __objRest$6 = (source, exclude) => {
4012
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
4013
+ var __objRest$5 = (source, exclude) => {
3769
4014
  var target = {};
3770
- for (var prop in source) if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3771
- if (source != null && __getOwnPropSymbols$h) for (var prop of __getOwnPropSymbols$h(source)) {
3772
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop)) target[prop] = source[prop];
4015
+ for (var prop in source) if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
4016
+ if (source != null && __getOwnPropSymbols$e) for (var prop of __getOwnPropSymbols$e(source)) {
4017
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop)) target[prop] = source[prop];
3773
4018
  }
3774
4019
  return target;
3775
4020
  };
3776
4021
  const PresetColors$3 = ["blue", "red", "yellow", "green", "gray"];
3777
4022
  const StatusCapsuleStyle = "s14dk8r1";
3778
- const StatusCode = /*#__PURE__*/react.styled('i')({
4023
+ const StatusCode = /*#__PURE__*/react$1.styled('i')({
3779
4024
  name: "StatusCode",
3780
4025
  class: "s1uupoto",
3781
4026
  propsAsIs: false
@@ -3812,9 +4057,9 @@
3812
4057
  offWhiteMode,
3813
4058
  number
3814
4059
  } = _b,
3815
- props = __objRest$6(_b, ["color", "className", "loading", "hoverable", "children", "offWhiteMode", "number"]);
4060
+ props = __objRest$5(_b, ["color", "className", "loading", "hoverable", "children", "offWhiteMode", "number"]);
3816
4061
  const computedColor = ColorMap[color] || color;
3817
- return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$f(__spreadValues$g({}, props), {
4062
+ return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$e(__spreadValues$e({}, props), {
3818
4063
  className: cs__default.default(className, StatusCapsuleStyle, Typo.Label.l4_regular, "ui-kit-status-capsule", {
3819
4064
  [`ant-tag-${computedColor}`]: PresetColors$3.includes(computedColor),
3820
4065
  "tag-hover": hoverable,
@@ -3829,31 +4074,31 @@
3829
4074
  }, number));
3830
4075
  };
3831
4076
 
3832
- var __defProp$f = Object.defineProperty;
3833
- var __defProps$e = Object.defineProperties;
3834
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
3835
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
3836
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
3837
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
3838
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, {
4077
+ var __defProp$d = Object.defineProperty;
4078
+ var __defProps$d = Object.defineProperties;
4079
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
4080
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
4081
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
4082
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
4083
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, {
3839
4084
  enumerable: true,
3840
4085
  configurable: true,
3841
4086
  writable: true,
3842
4087
  value
3843
4088
  }) : obj[key] = value;
3844
- var __spreadValues$f = (a, b) => {
3845
- for (var prop in b || (b = {})) if (__hasOwnProp$g.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
3846
- if (__getOwnPropSymbols$g) for (var prop of __getOwnPropSymbols$g(b)) {
3847
- if (__propIsEnum$g.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
4089
+ var __spreadValues$d = (a, b) => {
4090
+ for (var prop in b || (b = {})) if (__hasOwnProp$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
4091
+ if (__getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(b)) {
4092
+ if (__propIsEnum$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
3848
4093
  }
3849
4094
  return a;
3850
4095
  };
3851
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
3852
- var __objRest$5 = (source, exclude) => {
4096
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
4097
+ var __objRest$4 = (source, exclude) => {
3853
4098
  var target = {};
3854
- for (var prop in source) if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3855
- if (source != null && __getOwnPropSymbols$g) for (var prop of __getOwnPropSymbols$g(source)) {
3856
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop)) target[prop] = source[prop];
4099
+ for (var prop in source) if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
4100
+ if (source != null && __getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(source)) {
4101
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop)) target[prop] = source[prop];
3857
4102
  }
3858
4103
  return target;
3859
4104
  };
@@ -3865,15 +4110,15 @@
3865
4110
  className,
3866
4111
  checked
3867
4112
  } = _b,
3868
- props = __objRest$5(_b, ["children", "className", "checked"]);
3869
- const Content = /*#__PURE__*/react.styled('span')({
4113
+ props = __objRest$4(_b, ["children", "className", "checked"]);
4114
+ const Content = /*#__PURE__*/react$1.styled('span')({
3870
4115
  name: "Content",
3871
4116
  class: "c1to9vb9",
3872
4117
  propsAsIs: false
3873
4118
  });
3874
4119
  const classNames = [className, SwitchStyle, "switch"];
3875
4120
  if (props.size === "large") classNames.push("ant-switch-large");
3876
- return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Switch, __spreadProps$e(__spreadValues$f({
4121
+ return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Switch, __spreadProps$d(__spreadValues$d({
3877
4122
  className: core.cx(...classNames),
3878
4123
  checked: checked || false
3879
4124
  }, props), {
@@ -3959,26 +4204,26 @@
3959
4204
  }));
3960
4205
  };
3961
4206
 
3962
- var __defProp$e = Object.defineProperty;
3963
- var __defProps$d = Object.defineProperties;
3964
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
3965
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
3966
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
3967
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
3968
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, {
4207
+ var __defProp$c = Object.defineProperty;
4208
+ var __defProps$c = Object.defineProperties;
4209
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
4210
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
4211
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
4212
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
4213
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, {
3969
4214
  enumerable: true,
3970
4215
  configurable: true,
3971
4216
  writable: true,
3972
4217
  value
3973
4218
  }) : obj[key] = value;
3974
- var __spreadValues$e = (a, b) => {
3975
- for (var prop in b || (b = {})) if (__hasOwnProp$f.call(b, prop)) __defNormalProp$e(a, prop, b[prop]);
3976
- if (__getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(b)) {
3977
- if (__propIsEnum$f.call(b, prop)) __defNormalProp$e(a, prop, b[prop]);
4219
+ var __spreadValues$c = (a, b) => {
4220
+ for (var prop in b || (b = {})) if (__hasOwnProp$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
4221
+ if (__getOwnPropSymbols$c) for (var prop of __getOwnPropSymbols$c(b)) {
4222
+ if (__propIsEnum$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
3978
4223
  }
3979
4224
  return a;
3980
4225
  };
3981
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
4226
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
3982
4227
  const TableContainerStyle = "t1upn1sz";
3983
4228
  const tableStyleCover = "tta5kd2";
3984
4229
  const Table = props => {
@@ -4005,7 +4250,7 @@
4005
4250
  const orderRef = React.useRef(null);
4006
4251
  const hasScrollBard = useTableBodyHasScrollBar(wrapper, dataSource);
4007
4252
  const _columns = React.useMemo(() => columns.map(column => {
4008
- const _column = __spreadValues$e({}, column);
4253
+ const _column = __spreadValues$c({}, column);
4009
4254
  if (_column.sorter && typeof _column.title !== "function") {
4010
4255
  _column.title = /* @__PURE__ */React__namespace.default.createElement(ColumnTitle, {
4011
4256
  title: column.title,
@@ -4042,12 +4287,12 @@
4042
4287
  onSorterChange == null ? void 0 : onSorterChange(orderRef.current, sorter.columnKey);
4043
4288
  }
4044
4289
  },
4045
- onRow: (record, index) => __spreadValues$e({
4290
+ onRow: (record, index) => __spreadValues$c({
4046
4291
  onClick: evt => onRowClick == null ? void 0 : onRowClick(record, index, evt)
4047
4292
  }, onRow == null ? void 0 : onRow(record, index)),
4048
4293
  rowClassName,
4049
4294
  scroll,
4050
- rowSelection: rowSelection && __spreadProps$d(__spreadValues$e({}, rowSelection), {
4295
+ rowSelection: rowSelection && __spreadProps$c(__spreadValues$c({}, rowSelection), {
4051
4296
  columnWidth: 32
4052
4297
  }),
4053
4298
  showSorterTooltip: false
@@ -4057,22 +4302,22 @@
4057
4302
  const TitleStyle = "tc40oxa";
4058
4303
  const SubtitleStyle = "sa410aw";
4059
4304
  const BodyCellTextStyle = "b1lc7yin";
4060
- const BodyCellTextWrapper = /*#__PURE__*/react.styled('div')({
4305
+ const BodyCellTextWrapper = /*#__PURE__*/react$1.styled('div')({
4061
4306
  name: "BodyCellTextWrapper",
4062
4307
  class: "b1jhbz3e",
4063
4308
  propsAsIs: false
4064
4309
  });
4065
- const TableFormWrapper = /*#__PURE__*/react.styled('div')({
4310
+ const TableFormWrapper = /*#__PURE__*/react$1.styled('div')({
4066
4311
  name: "TableFormWrapper",
4067
4312
  class: "tyua489",
4068
4313
  propsAsIs: false
4069
4314
  });
4070
- const AddRowButtonWrapper = /*#__PURE__*/react.styled('div')({
4315
+ const AddRowButtonWrapper = /*#__PURE__*/react$1.styled('div')({
4071
4316
  name: "AddRowButtonWrapper",
4072
4317
  class: "a1ccrot9",
4073
4318
  propsAsIs: false
4074
4319
  });
4075
- const DraggableHandleWrapper = /*#__PURE__*/react.styled('div')({
4320
+ const DraggableHandleWrapper = /*#__PURE__*/react$1.styled('div')({
4076
4321
  name: "DraggableHandleWrapper",
4077
4322
  class: "d8c9v9g",
4078
4323
  propsAsIs: false
@@ -4109,33 +4354,33 @@
4109
4354
  return sortArr;
4110
4355
  };
4111
4356
 
4112
- var __defProp$d = Object.defineProperty;
4113
- var __defProps$c = Object.defineProperties;
4114
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
4115
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
4116
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
4117
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
4118
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4119
- var __spreadValues$d = (a, b) => {
4357
+ var __defProp$b = Object.defineProperty;
4358
+ var __defProps$b = Object.defineProperties;
4359
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
4360
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
4361
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
4362
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
4363
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4364
+ var __spreadValues$b = (a, b) => {
4120
4365
  for (var prop in b || (b = {}))
4121
- if (__hasOwnProp$e.call(b, prop))
4122
- __defNormalProp$d(a, prop, b[prop]);
4123
- if (__getOwnPropSymbols$e)
4124
- for (var prop of __getOwnPropSymbols$e(b)) {
4125
- if (__propIsEnum$e.call(b, prop))
4126
- __defNormalProp$d(a, prop, b[prop]);
4366
+ if (__hasOwnProp$b.call(b, prop))
4367
+ __defNormalProp$b(a, prop, b[prop]);
4368
+ if (__getOwnPropSymbols$b)
4369
+ for (var prop of __getOwnPropSymbols$b(b)) {
4370
+ if (__propIsEnum$b.call(b, prop))
4371
+ __defNormalProp$b(a, prop, b[prop]);
4127
4372
  }
4128
4373
  return a;
4129
4374
  };
4130
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
4131
- var __objRest$4 = (source, exclude) => {
4375
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
4376
+ var __objRest$3 = (source, exclude) => {
4132
4377
  var target = {};
4133
4378
  for (var prop in source)
4134
- if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
4379
+ if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
4135
4380
  target[prop] = source[prop];
4136
- if (source != null && __getOwnPropSymbols$e)
4137
- for (var prop of __getOwnPropSymbols$e(source)) {
4138
- if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
4381
+ if (source != null && __getOwnPropSymbols$b)
4382
+ for (var prop of __getOwnPropSymbols$b(source)) {
4383
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
4139
4384
  target[prop] = source[prop];
4140
4385
  }
4141
4386
  return target;
@@ -4151,7 +4396,7 @@
4151
4396
  const _a = buttonProps || {}, {
4152
4397
  disabled: disabledFromProp,
4153
4398
  onClick
4154
- } = _a, restButtonProps = __objRest$4(_a, [
4399
+ } = _a, restButtonProps = __objRest$3(_a, [
4155
4400
  "disabled",
4156
4401
  "onClick"
4157
4402
  ]);
@@ -4176,9 +4421,9 @@
4176
4421
  if (!columns.length) {
4177
4422
  return null;
4178
4423
  }
4179
- return CustomizedButton ? /* @__PURE__ */ React__namespace.default.createElement(CustomizedButton, __spreadValues$d({}, props)) : /* @__PURE__ */ React__namespace.default.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React__namespace.default.createElement(
4424
+ return CustomizedButton ? /* @__PURE__ */ React__namespace.default.createElement(CustomizedButton, __spreadValues$b({}, props)) : /* @__PURE__ */ React__namespace.default.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React__namespace.default.createElement(
4180
4425
  Button,
4181
- __spreadProps$c(__spreadValues$d({}, restButtonProps), {
4426
+ __spreadProps$b(__spreadValues$b({}, restButtonProps), {
4182
4427
  type: restButtonProps.type || "ordinary",
4183
4428
  size: restButtonProps.size || "small",
4184
4429
  prefixIcon: restButtonProps.prefixIcon || /* @__PURE__ */ React__namespace.default.createElement(iconsReact.PlusAddCreateNew16SecondaryIcon, null),
@@ -4273,25 +4518,25 @@
4273
4518
  );
4274
4519
  };
4275
4520
 
4276
- var __defProp$c = Object.defineProperty;
4277
- var __defProps$b = Object.defineProperties;
4278
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
4279
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
4280
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
4281
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
4282
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4283
- var __spreadValues$c = (a, b) => {
4521
+ var __defProp$a = Object.defineProperty;
4522
+ var __defProps$a = Object.defineProperties;
4523
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
4524
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
4525
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
4526
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
4527
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4528
+ var __spreadValues$a = (a, b) => {
4284
4529
  for (var prop in b || (b = {}))
4285
- if (__hasOwnProp$d.call(b, prop))
4286
- __defNormalProp$c(a, prop, b[prop]);
4287
- if (__getOwnPropSymbols$d)
4288
- for (var prop of __getOwnPropSymbols$d(b)) {
4289
- if (__propIsEnum$d.call(b, prop))
4290
- __defNormalProp$c(a, prop, b[prop]);
4530
+ if (__hasOwnProp$a.call(b, prop))
4531
+ __defNormalProp$a(a, prop, b[prop]);
4532
+ if (__getOwnPropSymbols$a)
4533
+ for (var prop of __getOwnPropSymbols$a(b)) {
4534
+ if (__propIsEnum$a.call(b, prop))
4535
+ __defNormalProp$a(a, prop, b[prop]);
4291
4536
  }
4292
4537
  return a;
4293
4538
  };
4294
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
4539
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
4295
4540
  const InputPassword = (props) => {
4296
4541
  const [showPassword, setShowPassword] = React.useState(false);
4297
4542
  React.useEffect(() => {
@@ -4307,7 +4552,7 @@
4307
4552
  const inputType = showPassword ? "text" : "password";
4308
4553
  return /* @__PURE__ */ React__namespace.default.createElement(
4309
4554
  Input,
4310
- __spreadProps$b(__spreadValues$c({}, props), {
4555
+ __spreadProps$a(__spreadValues$a({}, props), {
4311
4556
  type: inputType,
4312
4557
  suffix: showPassword ? /* @__PURE__ */ React__namespace.default.createElement(
4313
4558
  icons.EyeOutlined,
@@ -4327,9 +4572,9 @@
4327
4572
  };
4328
4573
  const CustomInput = (props) => {
4329
4574
  if (props.type === "password") {
4330
- return /* @__PURE__ */ React__namespace.default.createElement(InputPassword, __spreadValues$c({}, props));
4575
+ return /* @__PURE__ */ React__namespace.default.createElement(InputPassword, __spreadValues$a({}, props));
4331
4576
  }
4332
- return /* @__PURE__ */ React__namespace.default.createElement(Input, __spreadValues$c({}, props));
4577
+ return /* @__PURE__ */ React__namespace.default.createElement(Input, __spreadValues$a({}, props));
4333
4578
  };
4334
4579
  const InputColumnHeaderCell = ({ disabled, column, onChange, onBlur, onVisibleChange }) => {
4335
4580
  const _onChange = (e) => {
@@ -4453,25 +4698,25 @@
4453
4698
  return ValidateTriggerType2;
4454
4699
  })(ValidateTriggerType || {});
4455
4700
 
4456
- var __defProp$b = Object.defineProperty;
4457
- var __defProps$a = Object.defineProperties;
4458
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
4459
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
4460
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
4461
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
4462
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4463
- var __spreadValues$b = (a, b) => {
4701
+ var __defProp$9 = Object.defineProperty;
4702
+ var __defProps$9 = Object.defineProperties;
4703
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
4704
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
4705
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
4706
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
4707
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4708
+ var __spreadValues$9 = (a, b) => {
4464
4709
  for (var prop in b || (b = {}))
4465
- if (__hasOwnProp$c.call(b, prop))
4466
- __defNormalProp$b(a, prop, b[prop]);
4467
- if (__getOwnPropSymbols$c)
4468
- for (var prop of __getOwnPropSymbols$c(b)) {
4469
- if (__propIsEnum$c.call(b, prop))
4470
- __defNormalProp$b(a, prop, b[prop]);
4710
+ if (__hasOwnProp$9.call(b, prop))
4711
+ __defNormalProp$9(a, prop, b[prop]);
4712
+ if (__getOwnPropSymbols$9)
4713
+ for (var prop of __getOwnPropSymbols$9(b)) {
4714
+ if (__propIsEnum$9.call(b, prop))
4715
+ __defNormalProp$9(a, prop, b[prop]);
4471
4716
  }
4472
4717
  return a;
4473
4718
  };
4474
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
4719
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
4475
4720
  const TableFormBodyCell = (props) => {
4476
4721
  const {
4477
4722
  column,
@@ -4503,7 +4748,7 @@
4503
4748
  (currentValue) => {
4504
4749
  var _a;
4505
4750
  const value = currentValue || data[rowIndex][column.key];
4506
- const rowData = __spreadProps$a(__spreadValues$b({}, data[rowIndex]), { [column.key]: value });
4751
+ const rowData = __spreadProps$9(__spreadValues$9({}, data[rowIndex]), { [column.key]: value });
4507
4752
  const rowValidateRes = getRowValidateResult(rowData);
4508
4753
  if (rowValidateRes) {
4509
4754
  return;
@@ -4526,7 +4771,7 @@
4526
4771
  }, [validateAll, triggerValidate]);
4527
4772
  const _onChange = (value, data2) => {
4528
4773
  const newData = data2.map(
4529
- (row, i) => i === rowIndex ? __spreadProps$a(__spreadValues$b({}, row), { [column.key]: value }) : row
4774
+ (row, i) => i === rowIndex ? __spreadProps$9(__spreadValues$9({}, row), { [column.key]: value }) : row
4530
4775
  );
4531
4776
  onChange == null ? void 0 : onChange(newData, rowIndex, column.key);
4532
4777
  if (validateTriggerType === ValidateTriggerType.Normal && isTouched.current || validateTriggerType === ValidateTriggerType.Aggressive) {
@@ -4604,25 +4849,25 @@
4604
4849
  );
4605
4850
  };
4606
4851
 
4607
- var __defProp$a = Object.defineProperty;
4608
- var __defProps$9 = Object.defineProperties;
4609
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
4610
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
4611
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
4612
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
4613
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4614
- var __spreadValues$a = (a, b) => {
4852
+ var __defProp$8 = Object.defineProperty;
4853
+ var __defProps$8 = Object.defineProperties;
4854
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
4855
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
4856
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
4857
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
4858
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4859
+ var __spreadValues$8 = (a, b) => {
4615
4860
  for (var prop in b || (b = {}))
4616
- if (__hasOwnProp$b.call(b, prop))
4617
- __defNormalProp$a(a, prop, b[prop]);
4618
- if (__getOwnPropSymbols$b)
4619
- for (var prop of __getOwnPropSymbols$b(b)) {
4620
- if (__propIsEnum$b.call(b, prop))
4621
- __defNormalProp$a(a, prop, b[prop]);
4861
+ if (__hasOwnProp$8.call(b, prop))
4862
+ __defNormalProp$8(a, prop, b[prop]);
4863
+ if (__getOwnPropSymbols$8)
4864
+ for (var prop of __getOwnPropSymbols$8(b)) {
4865
+ if (__propIsEnum$8.call(b, prop))
4866
+ __defNormalProp$8(a, prop, b[prop]);
4622
4867
  }
4623
4868
  return a;
4624
4869
  };
4625
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
4870
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
4626
4871
  const TableFormRowDeleteAction = (props) => {
4627
4872
  var _a, _b, _c, _d;
4628
4873
  const { deleteConfig, row, updateData, rowIndex, data } = props;
@@ -4715,7 +4960,7 @@
4715
4960
  );
4716
4961
  });
4717
4962
  const DraggableHandle = React.useMemo(
4718
- () => draggable && provided ? /* @__PURE__ */ React__namespace.default.createElement(DraggableHandleWrapper, __spreadValues$a({}, provided.dragHandleProps), /* @__PURE__ */ React__namespace.default.createElement(
4963
+ () => draggable && provided ? /* @__PURE__ */ React__namespace.default.createElement(DraggableHandleWrapper, __spreadValues$8({}, provided.dragHandleProps), /* @__PURE__ */ React__namespace.default.createElement(
4719
4964
  Icon,
4720
4965
  {
4721
4966
  src: iconsReact.HandlePoint816SecondaryIcon,
@@ -4777,7 +5022,7 @@
4777
5022
  );
4778
5023
  return draggable ? /* @__PURE__ */ React__namespace.default.createElement(reactBeautifulDnd.DragDropContext, { onDragEnd }, /* @__PURE__ */ React__namespace.default.createElement(reactBeautifulDnd.Droppable, { droppableId: "droppable" }, (provided) => /* @__PURE__ */ React__namespace.default.createElement(
4779
5024
  "div",
4780
- __spreadValues$a({
5025
+ __spreadValues$8({
4781
5026
  className: "draggable-container",
4782
5027
  ref: provided.innerRef
4783
5028
  }, provided.droppableProps),
@@ -4788,9 +5033,9 @@
4788
5033
  key: `draggable-id-${i}`,
4789
5034
  index: i
4790
5035
  },
4791
- (provided2, snapshot) => /* @__PURE__ */ React__namespace.default.createElement("div", __spreadValues$a({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React__namespace.default.createElement(
5036
+ (provided2, snapshot) => /* @__PURE__ */ React__namespace.default.createElement("div", __spreadValues$8({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React__namespace.default.createElement(
4792
5037
  TableFormRow,
4793
- __spreadProps$9(__spreadValues$a({}, props), {
5038
+ __spreadProps$8(__spreadValues$8({}, props), {
4794
5039
  rowIndex: i,
4795
5040
  provided: provided2,
4796
5041
  snapshot
@@ -4798,28 +5043,28 @@
4798
5043
  ))
4799
5044
  )),
4800
5045
  provided.placeholder
4801
- ))) : /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__namespace.default.createElement(TableFormRow, __spreadProps$9(__spreadValues$a({}, props), { rowIndex: i, key: `table-row-${i}` }))));
5046
+ ))) : /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__namespace.default.createElement(TableFormRow, __spreadProps$8(__spreadValues$8({}, props), { rowIndex: i, key: `table-row-${i}` }))));
4802
5047
  });
4803
5048
 
4804
- var __defProp$9 = Object.defineProperty;
4805
- var __defProps$8 = Object.defineProperties;
4806
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
4807
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
4808
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
4809
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
4810
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4811
- var __spreadValues$9 = (a, b) => {
5049
+ var __defProp$7 = Object.defineProperty;
5050
+ var __defProps$7 = Object.defineProperties;
5051
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
5052
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
5053
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
5054
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
5055
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5056
+ var __spreadValues$7 = (a, b) => {
4812
5057
  for (var prop in b || (b = {}))
4813
- if (__hasOwnProp$a.call(b, prop))
4814
- __defNormalProp$9(a, prop, b[prop]);
4815
- if (__getOwnPropSymbols$a)
4816
- for (var prop of __getOwnPropSymbols$a(b)) {
4817
- if (__propIsEnum$a.call(b, prop))
4818
- __defNormalProp$9(a, prop, b[prop]);
5058
+ if (__hasOwnProp$7.call(b, prop))
5059
+ __defNormalProp$7(a, prop, b[prop]);
5060
+ if (__getOwnPropSymbols$7)
5061
+ for (var prop of __getOwnPropSymbols$7(b)) {
5062
+ if (__propIsEnum$7.call(b, prop))
5063
+ __defNormalProp$7(a, prop, b[prop]);
4819
5064
  }
4820
5065
  return a;
4821
5066
  };
4822
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
5067
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
4823
5068
  const BatchInputListHeaderCell = (props) => {
4824
5069
  const { column, disabled, data, disableBatchFilling, onBlur, onChange } = props;
4825
5070
  const [errMsg, setErrMsg] = React.useState();
@@ -4831,7 +5076,7 @@
4831
5076
  setErrMsg(err || void 0);
4832
5077
  const shouldAutoIncrease = column.type !== "password" && column.autoIncrease;
4833
5078
  const newData = data.map((cell, rowIndex) => {
4834
- return __spreadProps$8(__spreadValues$9({}, cell), {
5079
+ return __spreadProps$7(__spreadValues$7({}, cell), {
4835
5080
  [column.key]: shouldAutoIncrease && typeof value === "string" ? increaseLastNumber(value, rowIndex) : value
4836
5081
  });
4837
5082
  });
@@ -4848,7 +5093,7 @@
4848
5093
  const CellComponent = ColumnHeaderImpls[column.type];
4849
5094
  return /* @__PURE__ */ React__namespace.default.createElement(
4850
5095
  CellComponent,
4851
- __spreadProps$8(__spreadValues$9({}, props), {
5096
+ __spreadProps$7(__spreadValues$7({}, props), {
4852
5097
  column,
4853
5098
  onChange: headerOnChange,
4854
5099
  onBlur: _onBlur
@@ -4883,25 +5128,25 @@
4883
5128
  );
4884
5129
  };
4885
5130
 
4886
- var __defProp$8 = Object.defineProperty;
4887
- var __defProps$7 = Object.defineProperties;
4888
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
4889
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
4890
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
4891
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
4892
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4893
- var __spreadValues$8 = (a, b) => {
5131
+ var __defProp$6 = Object.defineProperty;
5132
+ var __defProps$6 = Object.defineProperties;
5133
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
5134
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
5135
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
5136
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
5137
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5138
+ var __spreadValues$6 = (a, b) => {
4894
5139
  for (var prop in b || (b = {}))
4895
- if (__hasOwnProp$9.call(b, prop))
4896
- __defNormalProp$8(a, prop, b[prop]);
4897
- if (__getOwnPropSymbols$9)
4898
- for (var prop of __getOwnPropSymbols$9(b)) {
4899
- if (__propIsEnum$9.call(b, prop))
4900
- __defNormalProp$8(a, prop, b[prop]);
5140
+ if (__hasOwnProp$6.call(b, prop))
5141
+ __defNormalProp$6(a, prop, b[prop]);
5142
+ if (__getOwnPropSymbols$6)
5143
+ for (var prop of __getOwnPropSymbols$6(b)) {
5144
+ if (__propIsEnum$6.call(b, prop))
5145
+ __defNormalProp$6(a, prop, b[prop]);
4901
5146
  }
4902
5147
  return a;
4903
5148
  };
4904
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
5149
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
4905
5150
  const DEFAULT_ROW_COUNT = 3;
4906
5151
  const TableForm = React__namespace.default.forwardRef(
4907
5152
  (props, ref) => {
@@ -4963,7 +5208,7 @@
4963
5208
  (key, error) => {
4964
5209
  if (error) {
4965
5210
  const newData = latestData.map((cell) => {
4966
- return __spreadProps$7(__spreadValues$8({}, cell), {
5211
+ return __spreadProps$6(__spreadValues$6({}, cell), {
4967
5212
  [key]: ""
4968
5213
  });
4969
5214
  });
@@ -5074,31 +5319,31 @@
5074
5319
  const TagStyle$1 = "tnd6h4m";
5075
5320
  const IconStyle$1 = "i1qw4clm";
5076
5321
 
5077
- var __defProp$7 = Object.defineProperty;
5078
- var __defProps$6 = Object.defineProperties;
5079
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
5080
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
5081
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
5082
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
5083
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, {
5322
+ var __defProp$5 = Object.defineProperty;
5323
+ var __defProps$5 = Object.defineProperties;
5324
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
5325
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
5326
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
5327
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
5328
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, {
5084
5329
  enumerable: true,
5085
5330
  configurable: true,
5086
5331
  writable: true,
5087
5332
  value
5088
5333
  }) : obj[key] = value;
5089
- var __spreadValues$7 = (a, b) => {
5090
- for (var prop in b || (b = {})) if (__hasOwnProp$8.call(b, prop)) __defNormalProp$7(a, prop, b[prop]);
5091
- if (__getOwnPropSymbols$8) for (var prop of __getOwnPropSymbols$8(b)) {
5092
- if (__propIsEnum$8.call(b, prop)) __defNormalProp$7(a, prop, b[prop]);
5334
+ var __spreadValues$5 = (a, b) => {
5335
+ for (var prop in b || (b = {})) if (__hasOwnProp$5.call(b, prop)) __defNormalProp$5(a, prop, b[prop]);
5336
+ if (__getOwnPropSymbols$5) for (var prop of __getOwnPropSymbols$5(b)) {
5337
+ if (__propIsEnum$5.call(b, prop)) __defNormalProp$5(a, prop, b[prop]);
5093
5338
  }
5094
5339
  return a;
5095
5340
  };
5096
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
5097
- var __objRest$3 = (source, exclude) => {
5341
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
5342
+ var __objRest$2 = (source, exclude) => {
5098
5343
  var target = {};
5099
- for (var prop in source) if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
5100
- if (source != null && __getOwnPropSymbols$8) for (var prop of __getOwnPropSymbols$8(source)) {
5101
- if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop)) target[prop] = source[prop];
5344
+ for (var prop in source) if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
5345
+ if (source != null && __getOwnPropSymbols$5) for (var prop of __getOwnPropSymbols$5(source)) {
5346
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop)) target[prop] = source[prop];
5102
5347
  }
5103
5348
  return target;
5104
5349
  };
@@ -5113,8 +5358,8 @@
5113
5358
  secondaryContent,
5114
5359
  icon
5115
5360
  } = _b,
5116
- props = __objRest$3(_b, ["size", "color", "className", "primaryContent", "secondaryContent", "icon"]);
5117
- return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$6(__spreadValues$7({}, props), {
5361
+ props = __objRest$2(_b, ["size", "color", "className", "primaryContent", "secondaryContent", "icon"]);
5362
+ return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$5(__spreadValues$5({}, props), {
5118
5363
  className: cs__default.default(className, TagStyle$1, Size$1[size], WrapperStyle, Typo.Label.l4_regular, {
5119
5364
  [`ant-tag-${color}`]: PresetColors$2.includes(color)
5120
5365
  }, "outside-tag")
@@ -5127,33 +5372,33 @@
5127
5372
  }, icon), primaryContent), secondaryContent);
5128
5373
  };
5129
5374
 
5130
- var __defProp$6 = Object.defineProperty;
5131
- var __defProps$5 = Object.defineProperties;
5132
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
5133
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
5134
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
5135
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
5136
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5137
- var __spreadValues$6 = (a, b) => {
5375
+ var __defProp$4 = Object.defineProperty;
5376
+ var __defProps$4 = Object.defineProperties;
5377
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
5378
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
5379
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
5380
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
5381
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5382
+ var __spreadValues$4 = (a, b) => {
5138
5383
  for (var prop in b || (b = {}))
5139
- if (__hasOwnProp$7.call(b, prop))
5140
- __defNormalProp$6(a, prop, b[prop]);
5141
- if (__getOwnPropSymbols$7)
5142
- for (var prop of __getOwnPropSymbols$7(b)) {
5143
- if (__propIsEnum$7.call(b, prop))
5144
- __defNormalProp$6(a, prop, b[prop]);
5384
+ if (__hasOwnProp$4.call(b, prop))
5385
+ __defNormalProp$4(a, prop, b[prop]);
5386
+ if (__getOwnPropSymbols$4)
5387
+ for (var prop of __getOwnPropSymbols$4(b)) {
5388
+ if (__propIsEnum$4.call(b, prop))
5389
+ __defNormalProp$4(a, prop, b[prop]);
5145
5390
  }
5146
5391
  return a;
5147
5392
  };
5148
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
5149
- var __objRest$2 = (source, exclude) => {
5393
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
5394
+ var __objRest$1 = (source, exclude) => {
5150
5395
  var target = {};
5151
5396
  for (var prop in source)
5152
- if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
5397
+ if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
5153
5398
  target[prop] = source[prop];
5154
- if (source != null && __getOwnPropSymbols$7)
5155
- for (var prop of __getOwnPropSymbols$7(source)) {
5156
- if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
5399
+ if (source != null && __getOwnPropSymbols$4)
5400
+ for (var prop of __getOwnPropSymbols$4(source)) {
5401
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
5157
5402
  target[prop] = source[prop];
5158
5403
  }
5159
5404
  return target;
@@ -5178,7 +5423,7 @@
5178
5423
  hoverable = false,
5179
5424
  icon,
5180
5425
  children
5181
- } = _b, props = __objRest$2(_b, [
5426
+ } = _b, props = __objRest$1(_b, [
5182
5427
  "size",
5183
5428
  "color",
5184
5429
  "className",
@@ -5189,7 +5434,7 @@
5189
5434
  const computedColor = AntdColorMap[color] || color;
5190
5435
  return /* @__PURE__ */ React__namespace.default.createElement(
5191
5436
  antd.Tag,
5192
- __spreadProps$5(__spreadValues$6({}, props), {
5437
+ __spreadProps$4(__spreadValues$4({}, props), {
5193
5438
  className: cs__default.default(className, Size$1[size], TagStyle$1, Typo.Label.l4_regular, {
5194
5439
  [`ant-tag-${computedColor}`]: PresetColors$1.includes(computedColor),
5195
5440
  "tag-hover": hoverable
@@ -5378,31 +5623,31 @@
5378
5623
 
5379
5624
  const IconStyle = "iwsze0q";
5380
5625
 
5381
- var __defProp$5 = Object.defineProperty;
5382
- var __defProps$4 = Object.defineProperties;
5383
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
5384
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
5385
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
5386
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
5387
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, {
5626
+ var __defProp$3 = Object.defineProperty;
5627
+ var __defProps$3 = Object.defineProperties;
5628
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
5629
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
5630
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
5631
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
5632
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, {
5388
5633
  enumerable: true,
5389
5634
  configurable: true,
5390
5635
  writable: true,
5391
5636
  value
5392
5637
  }) : obj[key] = value;
5393
- var __spreadValues$5 = (a, b) => {
5394
- for (var prop in b || (b = {})) if (__hasOwnProp$6.call(b, prop)) __defNormalProp$5(a, prop, b[prop]);
5395
- if (__getOwnPropSymbols$6) for (var prop of __getOwnPropSymbols$6(b)) {
5396
- if (__propIsEnum$6.call(b, prop)) __defNormalProp$5(a, prop, b[prop]);
5638
+ var __spreadValues$3 = (a, b) => {
5639
+ for (var prop in b || (b = {})) if (__hasOwnProp$3.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
5640
+ if (__getOwnPropSymbols$3) for (var prop of __getOwnPropSymbols$3(b)) {
5641
+ if (__propIsEnum$3.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
5397
5642
  }
5398
5643
  return a;
5399
5644
  };
5400
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
5401
- var __objRest$1 = (source, exclude) => {
5645
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
5646
+ var __objRest = (source, exclude) => {
5402
5647
  var target = {};
5403
- for (var prop in source) if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
5404
- if (source != null && __getOwnPropSymbols$6) for (var prop of __getOwnPropSymbols$6(source)) {
5405
- if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop)) target[prop] = source[prop];
5648
+ for (var prop in source) if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
5649
+ if (source != null && __getOwnPropSymbols$3) for (var prop of __getOwnPropSymbols$3(source)) {
5650
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop)) target[prop] = source[prop];
5406
5651
  }
5407
5652
  return target;
5408
5653
  };
@@ -5424,15 +5669,15 @@
5424
5669
  children,
5425
5670
  tooltipConfig
5426
5671
  } = _b,
5427
- props = __objRest$1(_b, ["size", "color", "className", "icon", "checked", "children", "tooltipConfig"]);
5428
- return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$4(__spreadValues$5({}, props), {
5672
+ props = __objRest(_b, ["size", "color", "className", "icon", "checked", "children", "tooltipConfig"]);
5673
+ return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$3(__spreadValues$3({}, props), {
5429
5674
  ref,
5430
5675
  className: cs__default.default(className, Size[size], TokenStyle, {
5431
5676
  [Typo.Label.l4_regular]: size === "small" || size === "medium",
5432
5677
  [Typo.Label.l3_regular]: size === "large",
5433
5678
  [`ant-tag-${color}`]: PresetColors.includes(color)
5434
5679
  }, "ui-kit-token", checked && "ui-kit-token-checked"),
5435
- closeIcon: /* @__PURE__ */React__namespace.default.createElement(Tooltip, __spreadValues$5({
5680
+ closeIcon: /* @__PURE__ */React__namespace.default.createElement(Tooltip, __spreadValues$3({
5436
5681
  title: tooltipConfig == null ? void 0 : tooltipConfig.title
5437
5682
  }, !(tooltipConfig == null ? void 0 : tooltipConfig.title) && {
5438
5683
  visible: false
@@ -5489,121 +5734,6 @@
5489
5734
  }, Text);
5490
5735
  };
5491
5736
 
5492
- var __defProp$4 = Object.defineProperty;
5493
- var __defProps$3 = Object.defineProperties;
5494
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
5495
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
5496
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
5497
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
5498
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, {
5499
- enumerable: true,
5500
- configurable: true,
5501
- writable: true,
5502
- value
5503
- }) : obj[key] = value;
5504
- var __spreadValues$4 = (a, b) => {
5505
- for (var prop in b || (b = {})) if (__hasOwnProp$5.call(b, prop)) __defNormalProp$4(a, prop, b[prop]);
5506
- if (__getOwnPropSymbols$5) for (var prop of __getOwnPropSymbols$5(b)) {
5507
- if (__propIsEnum$5.call(b, prop)) __defNormalProp$4(a, prop, b[prop]);
5508
- }
5509
- return a;
5510
- };
5511
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
5512
- const OverflowText = "o8ocss1";
5513
- const NoWrap = "n17syc35";
5514
- const OverflowTooltip = props => {
5515
- const {
5516
- content,
5517
- className,
5518
- onClick,
5519
- isMultiLine
5520
- } = props;
5521
- const tooltip = props.tooltip || content;
5522
- const [ellipsis, setEllipsis] = React.useState(false);
5523
- const textRef = React.useRef(null);
5524
- React.useEffect(() => {
5525
- const ele = textRef.current;
5526
- let observer;
5527
- if (ele) {
5528
- const handleResize = _.debounce(() => {
5529
- if (isMultiLine) {
5530
- setEllipsis(ele.scrollHeight > ele.offsetHeight);
5531
- } else {
5532
- setEllipsis(ele.scrollWidth > ele.offsetWidth);
5533
- }
5534
- }, 200);
5535
- observer = new ResizeObserver(handleResize);
5536
- observer.observe(ele);
5537
- }
5538
- return () => {
5539
- observer == null ? void 0 : observer.disconnect();
5540
- };
5541
- });
5542
- return /* @__PURE__ */React__namespace.default.createElement(Tooltip, __spreadProps$3(__spreadValues$4({}, !ellipsis && {
5543
- visible: false
5544
- }), {
5545
- title: tooltip
5546
- }), /* @__PURE__ */React__namespace.default.createElement("div", {
5547
- ref: textRef,
5548
- className: core.cx(OverflowText, !isMultiLine && NoWrap, className),
5549
- onClick: () => {
5550
- onClick && onClick();
5551
- }
5552
- }, /* @__PURE__ */React__namespace.default.createElement("span", null, content)));
5553
- };
5554
-
5555
- var __defProp$3 = Object.defineProperty;
5556
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
5557
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
5558
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
5559
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5560
- var __spreadValues$3 = (a, b) => {
5561
- for (var prop in b || (b = {}))
5562
- if (__hasOwnProp$4.call(b, prop))
5563
- __defNormalProp$3(a, prop, b[prop]);
5564
- if (__getOwnPropSymbols$4)
5565
- for (var prop of __getOwnPropSymbols$4(b)) {
5566
- if (__propIsEnum$4.call(b, prop))
5567
- __defNormalProp$3(a, prop, b[prop]);
5568
- }
5569
- return a;
5570
- };
5571
- const ParrotTrans = (props) => {
5572
- const { i18n } = useParrotTranslation();
5573
- return /* @__PURE__ */ React__namespace.default.createElement(reactI18next.Trans, __spreadValues$3({ i18n }, props));
5574
- };
5575
-
5576
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
5577
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
5578
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
5579
- var __objRest = (source, exclude) => {
5580
- var target = {};
5581
- for (var prop in source) if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
5582
- if (source != null && __getOwnPropSymbols$3) for (var prop of __getOwnPropSymbols$3(source)) {
5583
- if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop)) target[prop] = source[prop];
5584
- }
5585
- return target;
5586
- };
5587
- const NameTag = /*#__PURE__*/react.styled('span')({
5588
- name: "NameTag",
5589
- class: "n3qomhu",
5590
- propsAsIs: false
5591
- });
5592
- const I18nNameTag = props => {
5593
- const _a = props,
5594
- {
5595
- name,
5596
- i18nKey
5597
- } = _a,
5598
- otherOption = __objRest(_a, ["name", "i18nKey"]);
5599
- return /* @__PURE__ */React__namespace.default.createElement(ParrotTrans, {
5600
- i18nKey,
5601
- tOptions: otherOption
5602
- }, "h", /* @__PURE__ */React__namespace.default.createElement(NameTag, null, {
5603
- name
5604
- }));
5605
- };
5606
-
5607
5737
  function getAntdKit() {
5608
5738
  const kit = {
5609
5739
  loading: Loading,
@@ -5703,7 +5833,10 @@
5703
5833
  ExpandableContainer,
5704
5834
  ExpandableItem
5705
5835
  },
5706
- time: Time
5836
+ time: Time,
5837
+ DropdownTransition,
5838
+ AccordionCard,
5839
+ DetailCard
5707
5840
  };
5708
5841
  kit.option.isSelectOption = true;
5709
5842
  kit.button.__ANT_BUTTON = true;