@cloudtower/eagle 0.27.2 → 0.27.3-alpha.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/components/index.d.ts +10 -0
- package/dist/components.css +1554 -1463
- package/dist/coreX/BarChart/BarChart.stories.d.ts +6 -0
- package/dist/coreX/BarChart/index.d.ts +10 -0
- package/dist/coreX/ChartWithTooltip/ChartWithTooltip.stories.d.ts +7 -0
- package/dist/coreX/ChartWithTooltip/index.d.ts +40 -0
- package/dist/coreX/DonutChart/DonutChart.stories.d.ts +6 -0
- package/dist/coreX/DonutChart/index.d.ts +12 -0
- package/dist/coreX/SwitchWithText/SwitchWithText.stories.d.ts +9 -0
- package/dist/coreX/SwitchWithText/__tests__/h5_css.test.d.ts +1 -0
- package/dist/coreX/SwitchWithText/index.d.ts +4 -0
- package/dist/coreX/UnitWithChart/UnitWithChart.stories.d.ts +7 -0
- package/dist/coreX/UnitWithChart/index.d.ts +30 -0
- package/dist/esm/index.js +1717 -1365
- package/dist/esm/stats1.html +1 -1
- package/dist/spec/base.d.ts +15 -1
- package/dist/spec/type.d.ts +1 -0
- package/dist/style.css +802 -711
- package/dist/umd/index.js +1700 -1348
- package/dist/umd/stats1.html +1 -1
- package/dist/utils/tower.d.ts +1 -0
- package/package.json +6 -5
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { Tooltip as Tooltip$1, Alert as Alert$1, Badge as Badge$1, Button as Button$1, Checkbox as Checkbox$1, Card as Card$2, Collapse, DatePicker, Select as Select$1, InputNumber as InputNumber$1, Input as Input$1, TimePicker as TimePicker$1, Form as Form$1, Tag as Tag$1, Steps as Steps$1, Modal as Modal$1, Dropdown, Menu, Progress as Progress$1, Radio as Radio$1, Switch as Switch$1, Table as Table$1, Space, List, Row, Col, Tree, Divider, Skeleton, Layout, AutoComplete, Popover, Timeline, Typography, Cascader, Upload, Calendar, Tabs, message, Empty as Empty$1, TreeSelect, Drawer, ConfigProvider } from 'antd';
|
|
2
|
-
export { Col, Row } from 'antd';
|
|
3
1
|
import * as React from 'react';
|
|
4
|
-
import React__default, { useState, useMemo, useRef, useLayoutEffect,
|
|
2
|
+
import React__default, { useState, useMemo, useRef, useLayoutEffect, useCallback, useEffect, forwardRef, Fragment, createContext, memo, useImperativeHandle, useContext } from 'react';
|
|
3
|
+
import { cx } from '@linaria/core';
|
|
4
|
+
import { parrotI18n } from '@cloudtower/parrot';
|
|
5
|
+
export * from '@cloudtower/parrot';
|
|
6
|
+
import { useTranslation, Trans, withTranslation } from 'react-i18next';
|
|
7
|
+
import { Tooltip as Tooltip$1, Switch as Switch$1, Alert as Alert$1, Badge as Badge$1, Button as Button$1, Checkbox as Checkbox$1, Card as Card$2, Collapse, DatePicker, Select as Select$1, InputNumber as InputNumber$1, Input as Input$1, TimePicker as TimePicker$1, Form as Form$1, Tag as Tag$1, Steps as Steps$1, Modal as Modal$1, Dropdown, Menu, Progress as Progress$1, Radio as Radio$1, Table as Table$1, Space, List, Row, Col, Tree, Divider, Skeleton, Layout, AutoComplete, Popover, Timeline, Typography, Cascader, Upload, Calendar, Tabs, message, Empty as Empty$1, TreeSelect, Drawer, ConfigProvider } from 'antd';
|
|
8
|
+
export { Col, Row } from 'antd';
|
|
5
9
|
import { XmarkRemove24SecondaryIcon, InfoICircleFill16SecondaryIcon, XmarkFailedSeriousWarningFill16RedIcon, NoticeAttention16YellowIcon, InfoICircleFill16BlueIcon, CheckmarkDoneSuccessCircleFill16GreenIcon, ArrowRightGrayIcon, ArrowChevronUp16SecondaryIcon, ArrowChevronDown16SecondaryIcon, FocusIndicator16BlueIcon, CheckmarkDoneSuccessCorrect16SecondaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, ArrowChevronDownSmall16SecondaryIcon, ArrowChevronDownSmall16BlueIcon, Loading8GradientBlueIcon, ArrowChevronUp16BoldSecondaryIcon, PlusAddCreateNew16SecondaryIcon, HandlePoint816SecondaryIcon, HandlePoint816BlueIcon, XmarkRemove16SecondaryIcon, XmarkRemove16RegularRedIcon, CheckmarkDoneSuccessCorrect16BlueIcon, XmarkRemoveSmall16RegularInheritIcon } from '@cloudtower/icons-react';
|
|
6
10
|
import cs from 'classnames';
|
|
7
11
|
import { styled } from 'linaria/react';
|
|
@@ -9,10 +13,7 @@ import _, { debounce, uniqBy, groupBy, sortBy, toPairs } from 'lodash';
|
|
|
9
13
|
import { SVGUniqueID } from 'react-svg-unique-id';
|
|
10
14
|
import { CSSTransition } from 'react-transition-group';
|
|
11
15
|
import { styled as styled$1 } from '@linaria/react';
|
|
12
|
-
import {
|
|
13
|
-
export * from '@cloudtower/parrot';
|
|
14
|
-
import { useTranslation, Trans, withTranslation } from 'react-i18next';
|
|
15
|
-
import { cx } from '@linaria/core';
|
|
16
|
+
import { RadialBarChart, PolarAngleAxis, RadialBar } from 'recharts';
|
|
16
17
|
import moment from 'moment';
|
|
17
18
|
import { findDOMNode } from 'react-dom';
|
|
18
19
|
import { isElement } from 'react-is';
|
|
@@ -28,10 +29,253 @@ import { createDispatchHook, createSelectorHook, Provider } from 'react-redux';
|
|
|
28
29
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
29
30
|
import dayjs from 'dayjs';
|
|
30
31
|
import TimeZones from 'timezones.json';
|
|
31
|
-
import 'recharts';
|
|
32
32
|
import enUS from 'antd/lib/locale/en_US';
|
|
33
33
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
34
34
|
|
|
35
|
+
const MAGIC_METRIC_NULL = -2;
|
|
36
|
+
function formatBits(bits, decimals = 2) {
|
|
37
|
+
if (bits <= 0 || bits === MAGIC_METRIC_NULL) {
|
|
38
|
+
return {
|
|
39
|
+
value: 0,
|
|
40
|
+
unit: "b"
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
const k = 1e3;
|
|
44
|
+
const units = ["b", "Kb", "Mb", "Gb", "Tb", "Pb"];
|
|
45
|
+
let i = Math.floor(Math.log(bits) / Math.log(k));
|
|
46
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
47
|
+
return {
|
|
48
|
+
value: parseFloat((bits / Math.pow(k, i)).toFixed(decimals)),
|
|
49
|
+
unit: units[i]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function formatFrequency(frequency, decimals = 2) {
|
|
53
|
+
if (frequency <= 0 || frequency === MAGIC_METRIC_NULL) {
|
|
54
|
+
return {
|
|
55
|
+
value: 0,
|
|
56
|
+
unit: "Hz"
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
const k = 1e3;
|
|
60
|
+
const units = ["Hz", "KHz", "MHz", "GHz", "THz"];
|
|
61
|
+
let i = Math.floor(Math.log(frequency) / Math.log(k));
|
|
62
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
63
|
+
return {
|
|
64
|
+
value: parseFloat((frequency / Math.pow(k, i)).toFixed(decimals)),
|
|
65
|
+
unit: units[i]
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
const SECOND = 1;
|
|
69
|
+
const MINUTE = 60 * SECOND;
|
|
70
|
+
const HOUR = 60 * MINUTE;
|
|
71
|
+
const DAY = 24 * HOUR;
|
|
72
|
+
const WEEK = 7 * DAY;
|
|
73
|
+
function formatSeconds(seconds, decimals = 0) {
|
|
74
|
+
if (seconds <= MAGIC_METRIC_NULL) {
|
|
75
|
+
seconds = 0;
|
|
76
|
+
}
|
|
77
|
+
const units = [
|
|
78
|
+
{
|
|
79
|
+
value: WEEK,
|
|
80
|
+
unit: "week"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
value: DAY,
|
|
84
|
+
unit: "day"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
value: HOUR,
|
|
88
|
+
unit: "hour"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
value: MINUTE,
|
|
92
|
+
unit: "minute"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
value: SECOND,
|
|
96
|
+
unit: "second"
|
|
97
|
+
}
|
|
98
|
+
];
|
|
99
|
+
for (const unit of units) {
|
|
100
|
+
if (seconds > unit.value) {
|
|
101
|
+
return {
|
|
102
|
+
value: parseFloat((seconds / unit.value).toFixed(decimals)),
|
|
103
|
+
unit: unit.unit
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
value: parseFloat((seconds / SECOND).toFixed(decimals)),
|
|
109
|
+
unit: "second"
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function formatBitPerSecond(input, decimals = 1) {
|
|
113
|
+
if (input <= 0 || input === MAGIC_METRIC_NULL) {
|
|
114
|
+
return {
|
|
115
|
+
value: 0,
|
|
116
|
+
unit: "bps"
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
const k = 1e3;
|
|
120
|
+
const units = ["bps", "Kbps", "Mbps", "Gbps", "Tbps"];
|
|
121
|
+
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
122
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
123
|
+
return {
|
|
124
|
+
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
125
|
+
unit: units[i]
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
function formatBps(input, decimals = 1) {
|
|
129
|
+
if (input <= 0 || input === MAGIC_METRIC_NULL) {
|
|
130
|
+
return {
|
|
131
|
+
value: 0,
|
|
132
|
+
unit: "Bps"
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
const k = 1e3;
|
|
136
|
+
const units = ["Bps", "KBps", "MBps", "GBps", "TBps"];
|
|
137
|
+
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
138
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
139
|
+
return {
|
|
140
|
+
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
141
|
+
unit: units[i]
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
function formatBytes(bytes, decimals = 2) {
|
|
145
|
+
if (bytes <= 0 || bytes === MAGIC_METRIC_NULL) {
|
|
146
|
+
return {
|
|
147
|
+
value: 0,
|
|
148
|
+
unit: "B"
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
const k = 1024;
|
|
152
|
+
const units = ["B", "KiB", "MiB", "GiB", "TiB", "PiB"];
|
|
153
|
+
let i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
154
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
155
|
+
return {
|
|
156
|
+
value: parseFloat((bytes / Math.pow(k, i)).toFixed(decimals)),
|
|
157
|
+
unit: units[i]
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
function formatPercent(input, decimals = 2, saturated = true) {
|
|
161
|
+
if (input === MAGIC_METRIC_NULL) {
|
|
162
|
+
input = 0;
|
|
163
|
+
}
|
|
164
|
+
if (saturated) {
|
|
165
|
+
if (input <= 0) {
|
|
166
|
+
input = 0;
|
|
167
|
+
}
|
|
168
|
+
if (input > 100) {
|
|
169
|
+
input = 100;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
const value = input.toFixed(decimals);
|
|
173
|
+
if (parseFloat(value) === 0 && input > 0) {
|
|
174
|
+
if (decimals >= 1) {
|
|
175
|
+
return {
|
|
176
|
+
value: `0.${"0".repeat(decimals - 1)}1`,
|
|
177
|
+
numberValue: parseFloat(`0.${"0".repeat(decimals - 1)}1`),
|
|
178
|
+
unit: "%"
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
return {
|
|
182
|
+
value: "1",
|
|
183
|
+
numberValue: 1,
|
|
184
|
+
unit: "%"
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
return {
|
|
188
|
+
value,
|
|
189
|
+
numberValue: parseFloat(input.toFixed(decimals)),
|
|
190
|
+
unit: "%"
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
function formatSpeed(input, decimals = 0) {
|
|
194
|
+
input /= 1e3;
|
|
195
|
+
if (input < 1)
|
|
196
|
+
return { value: "-", unit: "" };
|
|
197
|
+
const units = ["KbE", "MbE", "GbE", "TbE"];
|
|
198
|
+
const k = 1e3;
|
|
199
|
+
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
200
|
+
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
201
|
+
return {
|
|
202
|
+
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
203
|
+
unit: units[i]
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
function isEmpty(rawValue) {
|
|
208
|
+
if (rawValue === null || rawValue === void 0 || rawValue === MAGIC_METRIC_NULL || Number.isNaN(rawValue) || !Number.isFinite(rawValue)) {
|
|
209
|
+
return true;
|
|
210
|
+
}
|
|
211
|
+
return false;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
const Empty = (props) => {
|
|
215
|
+
const { className, style } = props;
|
|
216
|
+
return /* @__PURE__ */ React__default.createElement("span", { className, style }, "-");
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
var __defProp$_ = Object.defineProperty;
|
|
220
|
+
var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
|
|
221
|
+
var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
|
|
222
|
+
var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
|
|
223
|
+
var __defNormalProp$_ = (obj, key, value) => key in obj ? __defProp$_(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
224
|
+
var __spreadValues$_ = (a, b) => {
|
|
225
|
+
for (var prop in b || (b = {}))
|
|
226
|
+
if (__hasOwnProp$10.call(b, prop))
|
|
227
|
+
__defNormalProp$_(a, prop, b[prop]);
|
|
228
|
+
if (__getOwnPropSymbols$10)
|
|
229
|
+
for (var prop of __getOwnPropSymbols$10(b)) {
|
|
230
|
+
if (__propIsEnum$10.call(b, prop))
|
|
231
|
+
__defNormalProp$_(a, prop, b[prop]);
|
|
232
|
+
}
|
|
233
|
+
return a;
|
|
234
|
+
};
|
|
235
|
+
const Bit = ({
|
|
236
|
+
rawValue,
|
|
237
|
+
decimals,
|
|
238
|
+
unitClassName,
|
|
239
|
+
valueClassName,
|
|
240
|
+
emptyProps
|
|
241
|
+
}) => {
|
|
242
|
+
if (isEmpty(rawValue)) {
|
|
243
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$_({}, emptyProps));
|
|
244
|
+
}
|
|
245
|
+
const { value, unit } = formatBits(rawValue, decimals);
|
|
246
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
var __defProp$Z = Object.defineProperty;
|
|
250
|
+
var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
|
|
251
|
+
var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
|
|
252
|
+
var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
|
|
253
|
+
var __defNormalProp$Z = (obj, key, value) => key in obj ? __defProp$Z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
254
|
+
var __spreadValues$Z = (a, b) => {
|
|
255
|
+
for (var prop in b || (b = {}))
|
|
256
|
+
if (__hasOwnProp$$.call(b, prop))
|
|
257
|
+
__defNormalProp$Z(a, prop, b[prop]);
|
|
258
|
+
if (__getOwnPropSymbols$$)
|
|
259
|
+
for (var prop of __getOwnPropSymbols$$(b)) {
|
|
260
|
+
if (__propIsEnum$$.call(b, prop))
|
|
261
|
+
__defNormalProp$Z(a, prop, b[prop]);
|
|
262
|
+
}
|
|
263
|
+
return a;
|
|
264
|
+
};
|
|
265
|
+
const BitPerSeconds = ({
|
|
266
|
+
rawValue,
|
|
267
|
+
decimals,
|
|
268
|
+
valueClassName,
|
|
269
|
+
unitClassName,
|
|
270
|
+
emptyProps
|
|
271
|
+
}) => {
|
|
272
|
+
if (isEmpty(rawValue)) {
|
|
273
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$Z({}, emptyProps));
|
|
274
|
+
}
|
|
275
|
+
const { value, unit } = formatBitPerSecond(rawValue, decimals);
|
|
276
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
277
|
+
};
|
|
278
|
+
|
|
35
279
|
var __defProp$Y = Object.defineProperty;
|
|
36
280
|
var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
|
|
37
281
|
var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
|
|
@@ -48,32 +292,229 @@ var __spreadValues$Y = (a, b) => {
|
|
|
48
292
|
}
|
|
49
293
|
return a;
|
|
50
294
|
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
295
|
+
const Bps = ({
|
|
296
|
+
rawValue,
|
|
297
|
+
decimals,
|
|
298
|
+
valueClassName,
|
|
299
|
+
unitClassName,
|
|
300
|
+
emptyProps
|
|
301
|
+
}) => {
|
|
302
|
+
if (isEmpty(rawValue)) {
|
|
303
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$Y({}, emptyProps));
|
|
304
|
+
}
|
|
305
|
+
const { value, unit } = formatBps(rawValue, decimals);
|
|
306
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
62
307
|
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
308
|
+
|
|
309
|
+
const useParrotTranslation = () => {
|
|
310
|
+
return useTranslation(void 0, {
|
|
311
|
+
i18n: parrotI18n
|
|
312
|
+
});
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
var __defProp$X = Object.defineProperty;
|
|
316
|
+
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
317
|
+
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
318
|
+
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
319
|
+
var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
320
|
+
var __spreadValues$X = (a, b) => {
|
|
321
|
+
for (var prop in b || (b = {}))
|
|
322
|
+
if (__hasOwnProp$Z.call(b, prop))
|
|
323
|
+
__defNormalProp$X(a, prop, b[prop]);
|
|
324
|
+
if (__getOwnPropSymbols$Z)
|
|
325
|
+
for (var prop of __getOwnPropSymbols$Z(b)) {
|
|
326
|
+
if (__propIsEnum$Z.call(b, prop))
|
|
327
|
+
__defNormalProp$X(a, prop, b[prop]);
|
|
328
|
+
}
|
|
329
|
+
return a;
|
|
330
|
+
};
|
|
331
|
+
const Byte = ({
|
|
332
|
+
rawValue,
|
|
333
|
+
noUnitOnZero,
|
|
334
|
+
decimals,
|
|
335
|
+
valueClassName,
|
|
336
|
+
unitClassName,
|
|
337
|
+
emptyProps
|
|
338
|
+
}) => {
|
|
339
|
+
const { t } = useParrotTranslation();
|
|
340
|
+
if (isEmpty(rawValue)) {
|
|
341
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$X({}, emptyProps));
|
|
342
|
+
}
|
|
343
|
+
if (rawValue === -1) {
|
|
344
|
+
return /* @__PURE__ */ React__default.createElement("span", null, t("common.calculation"));
|
|
345
|
+
}
|
|
346
|
+
const { value, unit } = formatBytes(rawValue, decimals);
|
|
347
|
+
if (noUnitOnZero && value === 0) {
|
|
348
|
+
return /* @__PURE__ */ React__default.createElement("span", { className: "value" }, value);
|
|
349
|
+
}
|
|
350
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
var __defProp$W = Object.defineProperty;
|
|
354
|
+
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
355
|
+
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
356
|
+
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
357
|
+
var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
358
|
+
var __spreadValues$W = (a, b) => {
|
|
359
|
+
for (var prop in b || (b = {}))
|
|
360
|
+
if (__hasOwnProp$Y.call(b, prop))
|
|
361
|
+
__defNormalProp$W(a, prop, b[prop]);
|
|
362
|
+
if (__getOwnPropSymbols$Y)
|
|
363
|
+
for (var prop of __getOwnPropSymbols$Y(b)) {
|
|
364
|
+
if (__propIsEnum$Y.call(b, prop))
|
|
365
|
+
__defNormalProp$W(a, prop, b[prop]);
|
|
366
|
+
}
|
|
367
|
+
return a;
|
|
368
|
+
};
|
|
369
|
+
const Frequency = ({
|
|
370
|
+
rawValue,
|
|
371
|
+
decimals,
|
|
372
|
+
valueClassName,
|
|
373
|
+
unitClassName,
|
|
374
|
+
emptyProps
|
|
375
|
+
}) => {
|
|
376
|
+
if (isEmpty(rawValue)) {
|
|
377
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$W({}, emptyProps));
|
|
378
|
+
}
|
|
379
|
+
const { value, unit } = formatFrequency(rawValue, decimals);
|
|
380
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
var __defProp$V = Object.defineProperty;
|
|
384
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
385
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
386
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
387
|
+
var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
388
|
+
var __spreadValues$V = (a, b) => {
|
|
389
|
+
for (var prop in b || (b = {}))
|
|
390
|
+
if (__hasOwnProp$X.call(b, prop))
|
|
391
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
392
|
+
if (__getOwnPropSymbols$X)
|
|
393
|
+
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
394
|
+
if (__propIsEnum$X.call(b, prop))
|
|
395
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
396
|
+
}
|
|
397
|
+
return a;
|
|
398
|
+
};
|
|
399
|
+
const Percent = ({
|
|
400
|
+
rawValue,
|
|
401
|
+
decimals,
|
|
402
|
+
saturated,
|
|
403
|
+
valueClassName,
|
|
404
|
+
unitClassName,
|
|
405
|
+
emptyProps
|
|
406
|
+
}) => {
|
|
407
|
+
if (isEmpty(rawValue)) {
|
|
408
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$V({}, emptyProps));
|
|
409
|
+
}
|
|
410
|
+
const { value, unit } = formatPercent(rawValue, decimals, saturated);
|
|
411
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, unit));
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
var __defProp$U = Object.defineProperty;
|
|
415
|
+
var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
|
|
416
|
+
var __hasOwnProp$W = Object.prototype.hasOwnProperty;
|
|
417
|
+
var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
|
|
418
|
+
var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
419
|
+
var __spreadValues$U = (a, b) => {
|
|
420
|
+
for (var prop in b || (b = {}))
|
|
421
|
+
if (__hasOwnProp$W.call(b, prop))
|
|
422
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
423
|
+
if (__getOwnPropSymbols$W)
|
|
424
|
+
for (var prop of __getOwnPropSymbols$W(b)) {
|
|
425
|
+
if (__propIsEnum$W.call(b, prop))
|
|
426
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
427
|
+
}
|
|
428
|
+
return a;
|
|
429
|
+
};
|
|
430
|
+
const Second = ({
|
|
431
|
+
rawValue,
|
|
432
|
+
decimals,
|
|
433
|
+
valueClassName,
|
|
434
|
+
unitClassName,
|
|
435
|
+
abbreviate,
|
|
436
|
+
emptyProps
|
|
437
|
+
}) => {
|
|
438
|
+
const { t } = useParrotTranslation();
|
|
439
|
+
if (isEmpty(rawValue)) {
|
|
440
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$U({}, emptyProps));
|
|
441
|
+
}
|
|
442
|
+
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
443
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
var __defProp$T = Object.defineProperty;
|
|
447
|
+
var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
|
|
448
|
+
var __hasOwnProp$V = Object.prototype.hasOwnProperty;
|
|
449
|
+
var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
|
|
450
|
+
var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
451
|
+
var __spreadValues$T = (a, b) => {
|
|
452
|
+
for (var prop in b || (b = {}))
|
|
453
|
+
if (__hasOwnProp$V.call(b, prop))
|
|
454
|
+
__defNormalProp$T(a, prop, b[prop]);
|
|
455
|
+
if (__getOwnPropSymbols$V)
|
|
456
|
+
for (var prop of __getOwnPropSymbols$V(b)) {
|
|
457
|
+
if (__propIsEnum$V.call(b, prop))
|
|
458
|
+
__defNormalProp$T(a, prop, b[prop]);
|
|
459
|
+
}
|
|
460
|
+
return a;
|
|
461
|
+
};
|
|
462
|
+
const Speed = ({
|
|
463
|
+
rawValue,
|
|
464
|
+
decimals,
|
|
465
|
+
valueClassName,
|
|
466
|
+
unitClassName,
|
|
467
|
+
emptyProps
|
|
468
|
+
}) => {
|
|
469
|
+
if (isEmpty(rawValue)) {
|
|
470
|
+
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$T({}, emptyProps));
|
|
471
|
+
}
|
|
472
|
+
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
473
|
+
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
var __defProp$S = Object.defineProperty;
|
|
477
|
+
var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
|
|
478
|
+
var __hasOwnProp$U = Object.prototype.hasOwnProperty;
|
|
479
|
+
var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
|
|
480
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
481
|
+
var __spreadValues$S = (a, b) => {
|
|
482
|
+
for (var prop in b || (b = {}))
|
|
483
|
+
if (__hasOwnProp$U.call(b, prop))
|
|
484
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
485
|
+
if (__getOwnPropSymbols$U)
|
|
486
|
+
for (var prop of __getOwnPropSymbols$U(b)) {
|
|
487
|
+
if (__propIsEnum$U.call(b, prop))
|
|
488
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
489
|
+
}
|
|
490
|
+
return a;
|
|
491
|
+
};
|
|
492
|
+
var __objRest$C = (source, exclude) => {
|
|
493
|
+
var target = {};
|
|
494
|
+
for (var prop in source)
|
|
495
|
+
if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
496
|
+
target[prop] = source[prop];
|
|
497
|
+
if (source != null && __getOwnPropSymbols$U)
|
|
498
|
+
for (var prop of __getOwnPropSymbols$U(source)) {
|
|
499
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
|
|
500
|
+
target[prop] = source[prop];
|
|
501
|
+
}
|
|
502
|
+
return target;
|
|
503
|
+
};
|
|
504
|
+
const BaseIcon = React__default.forwardRef(
|
|
505
|
+
(props, ref) => {
|
|
506
|
+
const _a = props, {
|
|
507
|
+
alt,
|
|
508
|
+
className,
|
|
509
|
+
width,
|
|
510
|
+
height,
|
|
511
|
+
cursor,
|
|
512
|
+
style,
|
|
513
|
+
children,
|
|
514
|
+
prefixNode,
|
|
515
|
+
suffixIconSrc: SuffixSrc,
|
|
516
|
+
src: Src
|
|
517
|
+
} = _a, HTMLSpanElementProps = __objRest$C(_a, [
|
|
77
518
|
"alt",
|
|
78
519
|
"className",
|
|
79
520
|
"width",
|
|
@@ -87,10 +528,10 @@ const BaseIcon = React__default.forwardRef(
|
|
|
87
528
|
]);
|
|
88
529
|
return /* @__PURE__ */ React__default.createElement(
|
|
89
530
|
"span",
|
|
90
|
-
__spreadValues$
|
|
531
|
+
__spreadValues$S({
|
|
91
532
|
ref,
|
|
92
533
|
className,
|
|
93
|
-
style: _.pickBy(__spreadValues$
|
|
534
|
+
style: _.pickBy(__spreadValues$S({ cursor }, style))
|
|
94
535
|
}, HTMLSpanElementProps),
|
|
95
536
|
prefixNode,
|
|
96
537
|
/* @__PURE__ */ React__default.createElement("span", { className: "icon-inner" }, typeof Src === "string" ? /* @__PURE__ */ React__default.createElement("img", { alt, src: Src, width, height }) : /* @__PURE__ */ React__default.createElement(SVGUniqueID, null, Src({ width, height }))),
|
|
@@ -100,31 +541,31 @@ const BaseIcon = React__default.forwardRef(
|
|
|
100
541
|
}
|
|
101
542
|
);
|
|
102
543
|
|
|
103
|
-
var __defProp$
|
|
544
|
+
var __defProp$R = Object.defineProperty;
|
|
104
545
|
var __defProps$F = Object.defineProperties;
|
|
105
546
|
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
106
|
-
var __getOwnPropSymbols$
|
|
107
|
-
var __hasOwnProp$
|
|
108
|
-
var __propIsEnum$
|
|
109
|
-
var __defNormalProp$
|
|
547
|
+
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
548
|
+
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
549
|
+
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
550
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, {
|
|
110
551
|
enumerable: true,
|
|
111
552
|
configurable: true,
|
|
112
553
|
writable: true,
|
|
113
554
|
value
|
|
114
555
|
}) : obj[key] = value;
|
|
115
|
-
var __spreadValues$
|
|
116
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
117
|
-
if (__getOwnPropSymbols$
|
|
118
|
-
if (__propIsEnum$
|
|
556
|
+
var __spreadValues$R = (a, b) => {
|
|
557
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$T.call(b, prop)) __defNormalProp$R(a, prop, b[prop]);
|
|
558
|
+
if (__getOwnPropSymbols$T) for (var prop of __getOwnPropSymbols$T(b)) {
|
|
559
|
+
if (__propIsEnum$T.call(b, prop)) __defNormalProp$R(a, prop, b[prop]);
|
|
119
560
|
}
|
|
120
561
|
return a;
|
|
121
562
|
};
|
|
122
563
|
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
123
|
-
var __objRest$
|
|
564
|
+
var __objRest$B = (source, exclude) => {
|
|
124
565
|
var target = {};
|
|
125
|
-
for (var prop in source) if (__hasOwnProp$
|
|
126
|
-
if (source != null && __getOwnPropSymbols$
|
|
127
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
566
|
+
for (var prop in source) if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
567
|
+
if (source != null && __getOwnPropSymbols$T) for (var prop of __getOwnPropSymbols$T(source)) {
|
|
568
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop)) target[prop] = source[prop];
|
|
128
569
|
}
|
|
129
570
|
return target;
|
|
130
571
|
};
|
|
@@ -148,7 +589,7 @@ const Icon = React__default.forwardRef((props, ref) => {
|
|
|
148
589
|
prefix,
|
|
149
590
|
suffix
|
|
150
591
|
} = _a,
|
|
151
|
-
restProps = __objRest$
|
|
592
|
+
restProps = __objRest$B(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "isRotate", "prefix", "suffix"]);
|
|
152
593
|
const [hover, setHover] = useState(false);
|
|
153
594
|
const _src = useMemo(() => {
|
|
154
595
|
if (active && activeSrc) {
|
|
@@ -176,14 +617,14 @@ const Icon = React__default.forwardRef((props, ref) => {
|
|
|
176
617
|
}
|
|
177
618
|
return src2;
|
|
178
619
|
}, [active, hover, suffix]);
|
|
179
|
-
return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$F(__spreadValues$
|
|
620
|
+
return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$F(__spreadValues$R({
|
|
180
621
|
src: _src,
|
|
181
622
|
className: cs(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
|
|
182
623
|
suffixIconSrc,
|
|
183
624
|
height: iconHeight,
|
|
184
625
|
width: iconWidth,
|
|
185
626
|
prefixNode: prefix,
|
|
186
|
-
style: _.pickBy(__spreadValues$
|
|
627
|
+
style: _.pickBy(__spreadValues$R({
|
|
187
628
|
cursor
|
|
188
629
|
}, style))
|
|
189
630
|
}, restProps), {
|
|
@@ -208,30 +649,30 @@ const Icon = React__default.forwardRef((props, ref) => {
|
|
|
208
649
|
}));
|
|
209
650
|
});
|
|
210
651
|
|
|
211
|
-
var __defProp$
|
|
212
|
-
var __getOwnPropSymbols$
|
|
213
|
-
var __hasOwnProp$
|
|
214
|
-
var __propIsEnum$
|
|
215
|
-
var __defNormalProp$
|
|
216
|
-
var __spreadValues$
|
|
652
|
+
var __defProp$Q = Object.defineProperty;
|
|
653
|
+
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
654
|
+
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
655
|
+
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
656
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
657
|
+
var __spreadValues$Q = (a, b) => {
|
|
217
658
|
for (var prop in b || (b = {}))
|
|
218
|
-
if (__hasOwnProp$
|
|
219
|
-
__defNormalProp$
|
|
220
|
-
if (__getOwnPropSymbols$
|
|
221
|
-
for (var prop of __getOwnPropSymbols$
|
|
222
|
-
if (__propIsEnum$
|
|
223
|
-
__defNormalProp$
|
|
659
|
+
if (__hasOwnProp$S.call(b, prop))
|
|
660
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
661
|
+
if (__getOwnPropSymbols$S)
|
|
662
|
+
for (var prop of __getOwnPropSymbols$S(b)) {
|
|
663
|
+
if (__propIsEnum$S.call(b, prop))
|
|
664
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
224
665
|
}
|
|
225
666
|
return a;
|
|
226
667
|
};
|
|
227
|
-
var __objRest$
|
|
668
|
+
var __objRest$A = (source, exclude) => {
|
|
228
669
|
var target = {};
|
|
229
670
|
for (var prop in source)
|
|
230
|
-
if (__hasOwnProp$
|
|
671
|
+
if (__hasOwnProp$S.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
231
672
|
target[prop] = source[prop];
|
|
232
|
-
if (source != null && __getOwnPropSymbols$
|
|
233
|
-
for (var prop of __getOwnPropSymbols$
|
|
234
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
673
|
+
if (source != null && __getOwnPropSymbols$S)
|
|
674
|
+
for (var prop of __getOwnPropSymbols$S(source)) {
|
|
675
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$S.call(source, prop))
|
|
235
676
|
target[prop] = source[prop];
|
|
236
677
|
}
|
|
237
678
|
return target;
|
|
@@ -243,7 +684,7 @@ const DropdownTransition = (props) => {
|
|
|
243
684
|
children,
|
|
244
685
|
mountOnEnter = true,
|
|
245
686
|
unmountOnExit = true
|
|
246
|
-
} = _a, restProps = __objRest$
|
|
687
|
+
} = _a, restProps = __objRest$A(_a, [
|
|
247
688
|
"visible",
|
|
248
689
|
"timeout",
|
|
249
690
|
"children",
|
|
@@ -252,7 +693,7 @@ const DropdownTransition = (props) => {
|
|
|
252
693
|
]);
|
|
253
694
|
return /* @__PURE__ */ React__default.createElement(
|
|
254
695
|
CSSTransition,
|
|
255
|
-
__spreadValues$
|
|
696
|
+
__spreadValues$Q({
|
|
256
697
|
in: visible,
|
|
257
698
|
timeout: timeout || 200,
|
|
258
699
|
mountOnEnter,
|
|
@@ -550,49 +991,51 @@ const CircleProgress = props => {
|
|
|
550
991
|
})));
|
|
551
992
|
};
|
|
552
993
|
|
|
553
|
-
const
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
};
|
|
994
|
+
const WizardBody = /*#__PURE__*/styled$1('div')({
|
|
995
|
+
name: "WizardBody",
|
|
996
|
+
class: "w1vvwdlp",
|
|
997
|
+
propsAsIs: false
|
|
998
|
+
});
|
|
999
|
+
const FullView = /*#__PURE__*/styled$1('div')({
|
|
1000
|
+
name: "FullView",
|
|
1001
|
+
class: "f1rest1f",
|
|
1002
|
+
propsAsIs: false
|
|
1003
|
+
});
|
|
1004
|
+
const TertiaryText = /*#__PURE__*/styled$1('div')({
|
|
1005
|
+
name: "TertiaryText",
|
|
1006
|
+
class: "t79k8o2",
|
|
1007
|
+
propsAsIs: false
|
|
1008
|
+
});
|
|
1009
|
+
const InputStyle = "ipd9bk";
|
|
1010
|
+
const KitInputStyle = "kypn5o5";
|
|
568
1011
|
|
|
569
|
-
var __defProp$
|
|
1012
|
+
var __defProp$P = Object.defineProperty;
|
|
570
1013
|
var __defProps$E = Object.defineProperties;
|
|
571
1014
|
var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
|
|
572
|
-
var __getOwnPropSymbols$
|
|
573
|
-
var __hasOwnProp$
|
|
574
|
-
var __propIsEnum$
|
|
575
|
-
var __defNormalProp$
|
|
576
|
-
var __spreadValues$
|
|
1015
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
1016
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
1017
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
1018
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1019
|
+
var __spreadValues$P = (a, b) => {
|
|
577
1020
|
for (var prop in b || (b = {}))
|
|
578
|
-
if (__hasOwnProp$
|
|
579
|
-
__defNormalProp$
|
|
580
|
-
if (__getOwnPropSymbols$
|
|
581
|
-
for (var prop of __getOwnPropSymbols$
|
|
582
|
-
if (__propIsEnum$
|
|
583
|
-
__defNormalProp$
|
|
1021
|
+
if (__hasOwnProp$R.call(b, prop))
|
|
1022
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
1023
|
+
if (__getOwnPropSymbols$R)
|
|
1024
|
+
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
1025
|
+
if (__propIsEnum$R.call(b, prop))
|
|
1026
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
584
1027
|
}
|
|
585
1028
|
return a;
|
|
586
1029
|
};
|
|
587
1030
|
var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
|
|
588
|
-
var __objRest$
|
|
1031
|
+
var __objRest$z = (source, exclude) => {
|
|
589
1032
|
var target = {};
|
|
590
1033
|
for (var prop in source)
|
|
591
|
-
if (__hasOwnProp$
|
|
1034
|
+
if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
592
1035
|
target[prop] = source[prop];
|
|
593
|
-
if (source != null && __getOwnPropSymbols$
|
|
594
|
-
for (var prop of __getOwnPropSymbols$
|
|
595
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1036
|
+
if (source != null && __getOwnPropSymbols$R)
|
|
1037
|
+
for (var prop of __getOwnPropSymbols$R(source)) {
|
|
1038
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop))
|
|
596
1039
|
target[prop] = source[prop];
|
|
597
1040
|
}
|
|
598
1041
|
return target;
|
|
@@ -604,7 +1047,7 @@ const Tooltip = (props) => {
|
|
|
604
1047
|
overlayClassName,
|
|
605
1048
|
overlayStyle,
|
|
606
1049
|
children
|
|
607
|
-
} = _a, restProps = __objRest$
|
|
1050
|
+
} = _a, restProps = __objRest$z(_a, [
|
|
608
1051
|
"followMouse",
|
|
609
1052
|
"overlayClassName",
|
|
610
1053
|
"overlayStyle",
|
|
@@ -646,10 +1089,10 @@ const Tooltip = (props) => {
|
|
|
646
1089
|
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
647
1090
|
return /* @__PURE__ */ React__default.createElement(
|
|
648
1091
|
Tooltip$1,
|
|
649
|
-
__spreadProps$E(__spreadValues$
|
|
1092
|
+
__spreadProps$E(__spreadValues$P({}, restProps), {
|
|
650
1093
|
overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
|
|
651
1094
|
children: _children,
|
|
652
|
-
overlayStyle: followMouse ? __spreadValues$
|
|
1095
|
+
overlayStyle: followMouse ? __spreadValues$P({
|
|
653
1096
|
transform: "translate(-50%, -100%)",
|
|
654
1097
|
pointerEvents: "none"
|
|
655
1098
|
}, overlayStyle) : overlayStyle
|
|
@@ -657,249 +1100,487 @@ const Tooltip = (props) => {
|
|
|
657
1100
|
);
|
|
658
1101
|
};
|
|
659
1102
|
|
|
660
|
-
|
|
1103
|
+
const StackBar = "skwah65";
|
|
1104
|
+
function getWidth(input) {
|
|
1105
|
+
const {
|
|
1106
|
+
value,
|
|
1107
|
+
unit
|
|
1108
|
+
} = formatPercent(input);
|
|
1109
|
+
return value + unit;
|
|
1110
|
+
}
|
|
1111
|
+
const BarChart = ({
|
|
1112
|
+
data,
|
|
1113
|
+
total
|
|
1114
|
+
}) => /* @__PURE__ */React__default.createElement("div", {
|
|
1115
|
+
className: StackBar
|
|
1116
|
+
}, (data || []).map(item => {
|
|
1117
|
+
const {
|
|
1118
|
+
value,
|
|
1119
|
+
color
|
|
1120
|
+
} = item;
|
|
1121
|
+
const width = total === 0 ? 0 : getWidth(100 * value / total);
|
|
1122
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
1123
|
+
className: "stack-bar-item",
|
|
1124
|
+
style: {
|
|
1125
|
+
width,
|
|
1126
|
+
background: color,
|
|
1127
|
+
display: width === 0 || width === "0%" ? "none" : "inline-block"
|
|
1128
|
+
}
|
|
1129
|
+
});
|
|
1130
|
+
}));
|
|
1131
|
+
|
|
1132
|
+
const DonutChart = ({
|
|
1133
|
+
data,
|
|
1134
|
+
dataKey,
|
|
1135
|
+
width,
|
|
1136
|
+
height,
|
|
1137
|
+
barSize,
|
|
1138
|
+
innerRadius,
|
|
1139
|
+
outerRadius
|
|
1140
|
+
}) => /* @__PURE__ */ React__default.createElement(
|
|
1141
|
+
RadialBarChart,
|
|
1142
|
+
{
|
|
1143
|
+
data,
|
|
1144
|
+
width,
|
|
1145
|
+
height,
|
|
1146
|
+
innerRadius,
|
|
1147
|
+
outerRadius,
|
|
1148
|
+
barSize,
|
|
1149
|
+
startAngle: 90,
|
|
1150
|
+
endAngle: -270
|
|
1151
|
+
},
|
|
1152
|
+
/* @__PURE__ */ React__default.createElement(PolarAngleAxis, { type: "number", domain: [0, 1], radiusAxisId: 0 }),
|
|
1153
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1154
|
+
RadialBar,
|
|
1155
|
+
{
|
|
1156
|
+
isAnimationActive: false,
|
|
1157
|
+
background: true,
|
|
1158
|
+
dataKey,
|
|
1159
|
+
radiusAxisId: 0
|
|
1160
|
+
}
|
|
1161
|
+
)
|
|
1162
|
+
);
|
|
1163
|
+
|
|
1164
|
+
var __defProp$O = Object.defineProperty;
|
|
1165
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
1166
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
1167
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
1168
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, {
|
|
1169
|
+
enumerable: true,
|
|
1170
|
+
configurable: true,
|
|
1171
|
+
writable: true,
|
|
1172
|
+
value
|
|
1173
|
+
}) : obj[key] = value;
|
|
1174
|
+
var __spreadValues$O = (a, b) => {
|
|
1175
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$Q.call(b, prop)) __defNormalProp$O(a, prop, b[prop]);
|
|
1176
|
+
if (__getOwnPropSymbols$Q) for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
1177
|
+
if (__propIsEnum$Q.call(b, prop)) __defNormalProp$O(a, prop, b[prop]);
|
|
1178
|
+
}
|
|
1179
|
+
return a;
|
|
1180
|
+
};
|
|
1181
|
+
const units$1 = {
|
|
1182
|
+
Percent,
|
|
1183
|
+
Byte,
|
|
1184
|
+
Frequency,
|
|
1185
|
+
Speed,
|
|
1186
|
+
Bps,
|
|
1187
|
+
BitPerSecond: BitPerSeconds,
|
|
1188
|
+
Bit,
|
|
1189
|
+
Second
|
|
1190
|
+
};
|
|
1191
|
+
const Wrapper$1 = /*#__PURE__*/styled$1('div')({
|
|
1192
|
+
name: "Wrapper",
|
|
1193
|
+
class: "wg1tsps",
|
|
1194
|
+
propsAsIs: false
|
|
1195
|
+
});
|
|
1196
|
+
const BarChartWrapper = "b1ctd5xy";
|
|
1197
|
+
const UnitWrapper = "u1p8acpn";
|
|
1198
|
+
const Sizes = {
|
|
1199
|
+
small: {
|
|
1200
|
+
width: 22,
|
|
1201
|
+
height: 22,
|
|
1202
|
+
barSize: 4,
|
|
1203
|
+
innerRadius: 8,
|
|
1204
|
+
outerRadius: 16
|
|
1205
|
+
},
|
|
1206
|
+
medium: {
|
|
1207
|
+
width: 50,
|
|
1208
|
+
height: 50,
|
|
1209
|
+
barSize: 8,
|
|
1210
|
+
innerRadius: 18,
|
|
1211
|
+
outerRadius: 34
|
|
1212
|
+
},
|
|
1213
|
+
large: {
|
|
1214
|
+
width: 100,
|
|
1215
|
+
height: 100,
|
|
1216
|
+
barSize: 15,
|
|
1217
|
+
innerRadius: 40,
|
|
1218
|
+
outerRadius: 70
|
|
1219
|
+
}
|
|
1220
|
+
};
|
|
1221
|
+
const UnitWithChart = ({
|
|
1222
|
+
rawValue,
|
|
1223
|
+
total,
|
|
1224
|
+
unit,
|
|
1225
|
+
color = "#0080FF",
|
|
1226
|
+
size = "small",
|
|
1227
|
+
chartType = "donutChart",
|
|
1228
|
+
data,
|
|
1229
|
+
saturated
|
|
1230
|
+
}) => {
|
|
1231
|
+
if (typeof rawValue !== "number" || typeof total !== "number") {
|
|
1232
|
+
return /* @__PURE__ */React__default.createElement(Empty, null);
|
|
1233
|
+
}
|
|
1234
|
+
const Unit = units$1[unit];
|
|
1235
|
+
return /* @__PURE__ */React__default.createElement(Wrapper$1, {
|
|
1236
|
+
className: "unit-chart"
|
|
1237
|
+
}, chartType === "barChart" && /* @__PURE__ */React__default.createElement("span", {
|
|
1238
|
+
className: BarChartWrapper
|
|
1239
|
+
}, /* @__PURE__ */React__default.createElement("span", {
|
|
1240
|
+
className: "chart"
|
|
1241
|
+
}, /* @__PURE__ */React__default.createElement(BarChart, {
|
|
1242
|
+
data: data || [],
|
|
1243
|
+
total
|
|
1244
|
+
}))), /* @__PURE__ */React__default.createElement("span", {
|
|
1245
|
+
className: UnitWrapper
|
|
1246
|
+
}, unit === "Percent" ? /* @__PURE__ */React__default.createElement(Percent, {
|
|
1247
|
+
rawValue,
|
|
1248
|
+
decimals: 1,
|
|
1249
|
+
saturated
|
|
1250
|
+
}) : /* @__PURE__ */React__default.createElement(Unit, {
|
|
1251
|
+
rawValue
|
|
1252
|
+
})), chartType === "donutChart" && /* @__PURE__ */React__default.createElement(DonutChart, __spreadValues$O({
|
|
1253
|
+
data: [{
|
|
1254
|
+
used: rawValue / total,
|
|
1255
|
+
fill: color
|
|
1256
|
+
}],
|
|
1257
|
+
dataKey: "used"
|
|
1258
|
+
}, Sizes[size])));
|
|
1259
|
+
};
|
|
1260
|
+
|
|
1261
|
+
const units = {
|
|
1262
|
+
Percent,
|
|
1263
|
+
Byte,
|
|
1264
|
+
Frequency,
|
|
1265
|
+
Speed,
|
|
1266
|
+
Bps,
|
|
1267
|
+
BitPerSecond: BitPerSeconds,
|
|
1268
|
+
Bit,
|
|
1269
|
+
Second
|
|
1270
|
+
};
|
|
1271
|
+
const ChartContent = /*#__PURE__*/styled$1('div')({
|
|
1272
|
+
name: "ChartContent",
|
|
1273
|
+
class: "c18bcrac",
|
|
1274
|
+
propsAsIs: false
|
|
1275
|
+
});
|
|
1276
|
+
const ChartTooltipContainer = /*#__PURE__*/styled$1('div')({
|
|
1277
|
+
name: "ChartTooltipContainer",
|
|
1278
|
+
class: "cro7kg2",
|
|
1279
|
+
propsAsIs: false
|
|
1280
|
+
});
|
|
1281
|
+
const ChartTooltipRow = /*#__PURE__*/styled$1('div')({
|
|
1282
|
+
name: "ChartTooltipRow",
|
|
1283
|
+
class: "c14wcxf0",
|
|
1284
|
+
propsAsIs: false
|
|
1285
|
+
});
|
|
1286
|
+
const _exp$4 = () => ChartTooltipRow;
|
|
1287
|
+
const ChartTooltipTitle = /*#__PURE__*/styled$1(_exp$4())({
|
|
1288
|
+
name: "ChartTooltipTitle",
|
|
1289
|
+
class: "coy29mj",
|
|
1290
|
+
propsAsIs: true
|
|
1291
|
+
});
|
|
1292
|
+
const _exp2$2 = () => props => props.color;
|
|
1293
|
+
const SpaceStatus = /*#__PURE__*/styled$1('i')({
|
|
1294
|
+
name: "SpaceStatus",
|
|
1295
|
+
class: "s11212zy",
|
|
1296
|
+
propsAsIs: false,
|
|
1297
|
+
vars: {
|
|
1298
|
+
"s11212zy-0": [_exp2$2()]
|
|
1299
|
+
}
|
|
1300
|
+
});
|
|
1301
|
+
const PrimaryUnit = /*#__PURE__*/styled$1('div')({
|
|
1302
|
+
name: "PrimaryUnit",
|
|
1303
|
+
class: "p1lyky6c",
|
|
1304
|
+
propsAsIs: false
|
|
1305
|
+
});
|
|
1306
|
+
const ChartWithUnit = props => {
|
|
1307
|
+
const {
|
|
1308
|
+
items,
|
|
1309
|
+
rawValue,
|
|
1310
|
+
unit,
|
|
1311
|
+
chartType,
|
|
1312
|
+
tableUnit,
|
|
1313
|
+
total
|
|
1314
|
+
} = props;
|
|
1315
|
+
const finalTableUnit = tableUnit != null ? tableUnit : unit;
|
|
1316
|
+
const emptyDisplay = rawValue2 => {
|
|
1317
|
+
if (_.isNil(rawValue2)) {
|
|
1318
|
+
return /* @__PURE__ */React__default.createElement(TertiaryText, null, "-");
|
|
1319
|
+
}
|
|
1320
|
+
return finalTableUnit === "Percent" ?
|
|
1321
|
+
// process 0.0%
|
|
1322
|
+
/* @__PURE__ */
|
|
1323
|
+
React__default.createElement("span", {
|
|
1324
|
+
className: UnitWrapper
|
|
1325
|
+
}, /* @__PURE__ */React__default.createElement(Percent, {
|
|
1326
|
+
rawValue: rawValue2,
|
|
1327
|
+
decimals: 1
|
|
1328
|
+
})) : rawValue2;
|
|
1329
|
+
};
|
|
1330
|
+
return /* @__PURE__ */React__default.createElement(ChartContent, null, rawValue || rawValue === 0 ? /* @__PURE__ */React__default.createElement(UnitWithChart, {
|
|
1331
|
+
unit: finalTableUnit,
|
|
1332
|
+
rawValue: chartType === "barChart" ? formatPercent(rawValue / total * 100, 1).numberValue : rawValue,
|
|
1333
|
+
total,
|
|
1334
|
+
chartType,
|
|
1335
|
+
data: items
|
|
1336
|
+
}) : emptyDisplay(rawValue));
|
|
1337
|
+
};
|
|
1338
|
+
const ChartWithTooltip = props => {
|
|
1339
|
+
const {
|
|
1340
|
+
title,
|
|
1341
|
+
items,
|
|
1342
|
+
rawValue,
|
|
1343
|
+
unit,
|
|
1344
|
+
chartType,
|
|
1345
|
+
tableUnit,
|
|
1346
|
+
saturated
|
|
1347
|
+
} = props;
|
|
1348
|
+
const KitUnit = units[unit];
|
|
1349
|
+
const total = title.value || 0;
|
|
1350
|
+
const finalTableUnit = tableUnit != null ? tableUnit : unit;
|
|
1351
|
+
const emptyDisplay = rawValue2 => {
|
|
1352
|
+
if (_.isNil(rawValue2)) {
|
|
1353
|
+
return /* @__PURE__ */React__default.createElement(TertiaryText, null, "-");
|
|
1354
|
+
}
|
|
1355
|
+
return finalTableUnit === "Percent" ?
|
|
1356
|
+
// process 0.0%
|
|
1357
|
+
/* @__PURE__ */
|
|
1358
|
+
React__default.createElement(Percent, {
|
|
1359
|
+
rawValue: rawValue2,
|
|
1360
|
+
decimals: 1
|
|
1361
|
+
}) : rawValue2;
|
|
1362
|
+
};
|
|
1363
|
+
return /* @__PURE__ */React__default.createElement(Tooltip, {
|
|
1364
|
+
title: /* @__PURE__ */React__default.createElement(ChartTooltipContainer, null, /* @__PURE__ */React__default.createElement(ChartTooltipTitle, null, /* @__PURE__ */React__default.createElement("label", null, title.label), /* @__PURE__ */React__default.createElement(KitUnit, {
|
|
1365
|
+
rawValue: total
|
|
1366
|
+
})), items.map(item => {
|
|
1367
|
+
var _a;
|
|
1368
|
+
return /* @__PURE__ */React__default.createElement(ChartTooltipRow, {
|
|
1369
|
+
key: item.label
|
|
1370
|
+
}, /* @__PURE__ */React__default.createElement("label", null, /* @__PURE__ */React__default.createElement(SpaceStatus, {
|
|
1371
|
+
color: item.color
|
|
1372
|
+
}), /* @__PURE__ */React__default.createElement("span", null, item.label)), /* @__PURE__ */React__default.createElement(PrimaryUnit, {
|
|
1373
|
+
className: "value"
|
|
1374
|
+
}, /* @__PURE__ */React__default.createElement(KitUnit, {
|
|
1375
|
+
rawValue: item.value || 0
|
|
1376
|
+
}), /* @__PURE__ */React__default.createElement("span", null, "(", total ? (item.value ? formatPercent((item.value || 0) / total * 100, 1, (_a = item.saturated) != null ? _a : true).value : 0) + "%" : "-", ")")));
|
|
1377
|
+
})),
|
|
1378
|
+
overlayStyle: {
|
|
1379
|
+
maxWidth: 500,
|
|
1380
|
+
minWidth: 246
|
|
1381
|
+
}
|
|
1382
|
+
}, /* @__PURE__ */React__default.createElement(ChartContent, null, total ? rawValue ? /* @__PURE__ */React__default.createElement(UnitWithChart, {
|
|
1383
|
+
unit: finalTableUnit,
|
|
1384
|
+
rawValue: chartType === "barChart" ? formatPercent(rawValue / total * 100, 1, saturated != null ? saturated : true).numberValue : rawValue,
|
|
1385
|
+
total,
|
|
1386
|
+
chartType,
|
|
1387
|
+
data: items,
|
|
1388
|
+
saturated
|
|
1389
|
+
}) : emptyDisplay(rawValue) : emptyDisplay(null)));
|
|
1390
|
+
};
|
|
1391
|
+
|
|
1392
|
+
const Counting = (props) => {
|
|
1393
|
+
const { stop, interval = 1e3, render } = props;
|
|
1394
|
+
const [, setState] = useState(true);
|
|
1395
|
+
useEffect(() => {
|
|
1396
|
+
if (stop)
|
|
1397
|
+
return;
|
|
1398
|
+
const timer = setInterval(() => {
|
|
1399
|
+
setState((state) => !state);
|
|
1400
|
+
}, interval);
|
|
1401
|
+
return () => {
|
|
1402
|
+
clearInterval(timer);
|
|
1403
|
+
};
|
|
1404
|
+
}, [stop, interval]);
|
|
1405
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, render());
|
|
1406
|
+
};
|
|
1407
|
+
|
|
1408
|
+
var __defProp$N = Object.defineProperty;
|
|
661
1409
|
var __defProps$D = Object.defineProperties;
|
|
662
1410
|
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
663
|
-
var __getOwnPropSymbols$
|
|
664
|
-
var __hasOwnProp$
|
|
665
|
-
var __propIsEnum$
|
|
666
|
-
var __defNormalProp$
|
|
1411
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
1412
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
1413
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
1414
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, {
|
|
667
1415
|
enumerable: true,
|
|
668
1416
|
configurable: true,
|
|
669
1417
|
writable: true,
|
|
670
1418
|
value
|
|
671
1419
|
}) : obj[key] = value;
|
|
672
|
-
var __spreadValues$
|
|
673
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
674
|
-
if (__getOwnPropSymbols$
|
|
675
|
-
if (__propIsEnum$
|
|
1420
|
+
var __spreadValues$N = (a, b) => {
|
|
1421
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$P.call(b, prop)) __defNormalProp$N(a, prop, b[prop]);
|
|
1422
|
+
if (__getOwnPropSymbols$P) for (var prop of __getOwnPropSymbols$P(b)) {
|
|
1423
|
+
if (__propIsEnum$P.call(b, prop)) __defNormalProp$N(a, prop, b[prop]);
|
|
676
1424
|
}
|
|
677
1425
|
return a;
|
|
678
1426
|
};
|
|
679
1427
|
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
1428
|
+
var __objRest$y = (source, exclude) => {
|
|
1429
|
+
var target = {};
|
|
1430
|
+
for (var prop in source) if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1431
|
+
if (source != null && __getOwnPropSymbols$P) for (var prop of __getOwnPropSymbols$P(source)) {
|
|
1432
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop)) target[prop] = source[prop];
|
|
1433
|
+
}
|
|
1434
|
+
return target;
|
|
1435
|
+
};
|
|
1436
|
+
const SwitchStyle = "s34f1qb";
|
|
1437
|
+
const Switch = _a => {
|
|
1438
|
+
var _b = _a,
|
|
1439
|
+
{
|
|
1440
|
+
children,
|
|
1441
|
+
className,
|
|
1442
|
+
checked
|
|
1443
|
+
} = _b,
|
|
1444
|
+
props = __objRest$y(_b, ["children", "className", "checked"]);
|
|
1445
|
+
const Content = /*#__PURE__*/styled$1('span')({
|
|
1446
|
+
name: "Content",
|
|
1447
|
+
class: "c1to9vb9",
|
|
1448
|
+
propsAsIs: false
|
|
1449
|
+
});
|
|
1450
|
+
const classNames = [className, SwitchStyle, "switch"];
|
|
1451
|
+
if (props.size === "large") classNames.push("ant-switch-large");
|
|
1452
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$1, __spreadProps$D(__spreadValues$N({
|
|
1453
|
+
className: cx(...classNames),
|
|
1454
|
+
checked: checked || false
|
|
1455
|
+
}, props), {
|
|
1456
|
+
size: props.size
|
|
1457
|
+
})), children ? /* @__PURE__ */React__default.createElement(Content, null, children) : null);
|
|
1458
|
+
};
|
|
1459
|
+
|
|
1460
|
+
var __defProp$M = Object.defineProperty;
|
|
1461
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
1462
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
1463
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
1464
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, {
|
|
1465
|
+
enumerable: true,
|
|
1466
|
+
configurable: true,
|
|
1467
|
+
writable: true,
|
|
1468
|
+
value
|
|
1469
|
+
}) : obj[key] = value;
|
|
1470
|
+
var __spreadValues$M = (a, b) => {
|
|
1471
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$O.call(b, prop)) __defNormalProp$M(a, prop, b[prop]);
|
|
1472
|
+
if (__getOwnPropSymbols$O) for (var prop of __getOwnPropSymbols$O(b)) {
|
|
1473
|
+
if (__propIsEnum$O.call(b, prop)) __defNormalProp$M(a, prop, b[prop]);
|
|
1474
|
+
}
|
|
1475
|
+
return a;
|
|
1476
|
+
};
|
|
680
1477
|
var __objRest$x = (source, exclude) => {
|
|
681
1478
|
var target = {};
|
|
682
|
-
for (var prop in source) if (__hasOwnProp$
|
|
683
|
-
if (source != null && __getOwnPropSymbols$
|
|
684
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1479
|
+
for (var prop in source) if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1480
|
+
if (source != null && __getOwnPropSymbols$O) for (var prop of __getOwnPropSymbols$O(source)) {
|
|
1481
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop)) target[prop] = source[prop];
|
|
685
1482
|
}
|
|
686
1483
|
return target;
|
|
687
1484
|
};
|
|
688
|
-
const
|
|
689
|
-
name: "
|
|
690
|
-
class: "
|
|
1485
|
+
const SwitchWrapper = /*#__PURE__*/styled('span')({
|
|
1486
|
+
name: "SwitchWrapper",
|
|
1487
|
+
class: "s1iv0tp1",
|
|
691
1488
|
propsAsIs: false
|
|
692
1489
|
});
|
|
693
|
-
const
|
|
1490
|
+
const SwitchWithText = props => {
|
|
1491
|
+
const {
|
|
1492
|
+
t
|
|
1493
|
+
} = useParrotTranslation();
|
|
694
1494
|
const _a = props,
|
|
695
1495
|
{
|
|
696
|
-
text
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
restProps = __objRest$x(_a, ["text", "textWrapperCls"]);
|
|
700
|
-
const [isTextTruncated, setTextTruncated] = useState(false);
|
|
701
|
-
const textWrapper = useRef(null);
|
|
702
|
-
useLayoutEffect(() => {
|
|
703
|
-
const ele = textWrapper.current;
|
|
704
|
-
if (ele) {
|
|
705
|
-
const parent = ele.parentElement;
|
|
706
|
-
if (parent && (parent == null ? void 0 : parent.scrollWidth) > (parent == null ? void 0 : parent.clientWidth)) {
|
|
707
|
-
setTextTruncated(true);
|
|
1496
|
+
text = {
|
|
1497
|
+
checked: t("common.enable"),
|
|
1498
|
+
unchecked: t("common.disable")
|
|
708
1499
|
}
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
},
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
"data-testid": "text-tooltip"
|
|
718
|
-
}), /* @__PURE__ */React__default.createElement(TruncatedTextWrapper, null, renderName())) : renderName();
|
|
719
|
-
};
|
|
720
|
-
|
|
721
|
-
const EMPTY_FUNCTION = () => {
|
|
1500
|
+
} = _a,
|
|
1501
|
+
_props = __objRest$x(_a, ["text"]);
|
|
1502
|
+
return /* @__PURE__ */React__default.createElement(SwitchWrapper, {
|
|
1503
|
+
className: "enabled-switch",
|
|
1504
|
+
onClick: e => e.stopPropagation()
|
|
1505
|
+
}, /* @__PURE__ */React__default.createElement("span", {
|
|
1506
|
+
className: "enabled-text"
|
|
1507
|
+
}, _props.checked ? text.checked : text.unchecked), /* @__PURE__ */React__default.createElement(Switch, __spreadValues$M({}, _props)));
|
|
722
1508
|
};
|
|
723
1509
|
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
return {
|
|
741
|
-
value: 0,
|
|
742
|
-
unit: "b"
|
|
743
|
-
};
|
|
744
|
-
}
|
|
745
|
-
const k = 1e3;
|
|
746
|
-
const units = ["b", "Kb", "Mb", "Gb", "Tb", "Pb"];
|
|
747
|
-
let i = Math.floor(Math.log(bits) / Math.log(k));
|
|
748
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
749
|
-
return {
|
|
750
|
-
value: parseFloat((bits / Math.pow(k, i)).toFixed(decimals)),
|
|
751
|
-
unit: units[i]
|
|
752
|
-
};
|
|
753
|
-
}
|
|
754
|
-
function formatFrequency(frequency, decimals = 2) {
|
|
755
|
-
if (frequency <= 0 || frequency === MAGIC_METRIC_NULL) {
|
|
756
|
-
return {
|
|
757
|
-
value: 0,
|
|
758
|
-
unit: "Hz"
|
|
759
|
-
};
|
|
760
|
-
}
|
|
761
|
-
const k = 1e3;
|
|
762
|
-
const units = ["Hz", "KHz", "MHz", "GHz", "THz"];
|
|
763
|
-
let i = Math.floor(Math.log(frequency) / Math.log(k));
|
|
764
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
765
|
-
return {
|
|
766
|
-
value: parseFloat((frequency / Math.pow(k, i)).toFixed(decimals)),
|
|
767
|
-
unit: units[i]
|
|
768
|
-
};
|
|
769
|
-
}
|
|
770
|
-
const SECOND = 1;
|
|
771
|
-
const MINUTE = 60 * SECOND;
|
|
772
|
-
const HOUR = 60 * MINUTE;
|
|
773
|
-
const DAY = 24 * HOUR;
|
|
774
|
-
const WEEK = 7 * DAY;
|
|
775
|
-
function formatSeconds(seconds, decimals = 0) {
|
|
776
|
-
if (seconds <= MAGIC_METRIC_NULL) {
|
|
777
|
-
seconds = 0;
|
|
778
|
-
}
|
|
779
|
-
const units = [
|
|
780
|
-
{
|
|
781
|
-
value: WEEK,
|
|
782
|
-
unit: "week"
|
|
783
|
-
},
|
|
784
|
-
{
|
|
785
|
-
value: DAY,
|
|
786
|
-
unit: "day"
|
|
787
|
-
},
|
|
788
|
-
{
|
|
789
|
-
value: HOUR,
|
|
790
|
-
unit: "hour"
|
|
791
|
-
},
|
|
792
|
-
{
|
|
793
|
-
value: MINUTE,
|
|
794
|
-
unit: "minute"
|
|
795
|
-
},
|
|
796
|
-
{
|
|
797
|
-
value: SECOND,
|
|
798
|
-
unit: "second"
|
|
799
|
-
}
|
|
800
|
-
];
|
|
801
|
-
for (const unit of units) {
|
|
802
|
-
if (seconds > unit.value) {
|
|
803
|
-
return {
|
|
804
|
-
value: parseFloat((seconds / unit.value).toFixed(decimals)),
|
|
805
|
-
unit: unit.unit
|
|
806
|
-
};
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
return {
|
|
810
|
-
value: parseFloat((seconds / SECOND).toFixed(decimals)),
|
|
811
|
-
unit: "second"
|
|
812
|
-
};
|
|
813
|
-
}
|
|
814
|
-
function formatBitPerSecond(input, decimals = 1) {
|
|
815
|
-
if (input <= 0 || input === MAGIC_METRIC_NULL) {
|
|
816
|
-
return {
|
|
817
|
-
value: 0,
|
|
818
|
-
unit: "bps"
|
|
819
|
-
};
|
|
820
|
-
}
|
|
821
|
-
const k = 1e3;
|
|
822
|
-
const units = ["bps", "Kbps", "Mbps", "Gbps", "Tbps"];
|
|
823
|
-
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
824
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
825
|
-
return {
|
|
826
|
-
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
827
|
-
unit: units[i]
|
|
828
|
-
};
|
|
829
|
-
}
|
|
830
|
-
function formatBps(input, decimals = 1) {
|
|
831
|
-
if (input <= 0 || input === MAGIC_METRIC_NULL) {
|
|
832
|
-
return {
|
|
833
|
-
value: 0,
|
|
834
|
-
unit: "Bps"
|
|
835
|
-
};
|
|
836
|
-
}
|
|
837
|
-
const k = 1e3;
|
|
838
|
-
const units = ["Bps", "KBps", "MBps", "GBps", "TBps"];
|
|
839
|
-
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
840
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
841
|
-
return {
|
|
842
|
-
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
843
|
-
unit: units[i]
|
|
844
|
-
};
|
|
845
|
-
}
|
|
846
|
-
function formatBytes(bytes, decimals = 2) {
|
|
847
|
-
if (bytes <= 0 || bytes === MAGIC_METRIC_NULL) {
|
|
848
|
-
return {
|
|
849
|
-
value: 0,
|
|
850
|
-
unit: "B"
|
|
851
|
-
};
|
|
852
|
-
}
|
|
853
|
-
const k = 1024;
|
|
854
|
-
const units = ["B", "KiB", "MiB", "GiB", "TiB", "PiB"];
|
|
855
|
-
let i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
856
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
857
|
-
return {
|
|
858
|
-
value: parseFloat((bytes / Math.pow(k, i)).toFixed(decimals)),
|
|
859
|
-
unit: units[i]
|
|
860
|
-
};
|
|
861
|
-
}
|
|
862
|
-
function formatPercent(input, decimals = 2, saturated = true) {
|
|
863
|
-
if (input === MAGIC_METRIC_NULL) {
|
|
864
|
-
input = 0;
|
|
1510
|
+
var __defProp$L = Object.defineProperty;
|
|
1511
|
+
var __defProps$C = Object.defineProperties;
|
|
1512
|
+
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
1513
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
1514
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
1515
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
1516
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, {
|
|
1517
|
+
enumerable: true,
|
|
1518
|
+
configurable: true,
|
|
1519
|
+
writable: true,
|
|
1520
|
+
value
|
|
1521
|
+
}) : obj[key] = value;
|
|
1522
|
+
var __spreadValues$L = (a, b) => {
|
|
1523
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$N.call(b, prop)) __defNormalProp$L(a, prop, b[prop]);
|
|
1524
|
+
if (__getOwnPropSymbols$N) for (var prop of __getOwnPropSymbols$N(b)) {
|
|
1525
|
+
if (__propIsEnum$N.call(b, prop)) __defNormalProp$L(a, prop, b[prop]);
|
|
865
1526
|
}
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
1527
|
+
return a;
|
|
1528
|
+
};
|
|
1529
|
+
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
1530
|
+
var __objRest$w = (source, exclude) => {
|
|
1531
|
+
var target = {};
|
|
1532
|
+
for (var prop in source) if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1533
|
+
if (source != null && __getOwnPropSymbols$N) for (var prop of __getOwnPropSymbols$N(source)) {
|
|
1534
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop)) target[prop] = source[prop];
|
|
873
1535
|
}
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
1536
|
+
return target;
|
|
1537
|
+
};
|
|
1538
|
+
const TruncatedTextWrapper = /*#__PURE__*/styled('div')({
|
|
1539
|
+
name: "TruncatedTextWrapper",
|
|
1540
|
+
class: "tje3huy",
|
|
1541
|
+
propsAsIs: false
|
|
1542
|
+
});
|
|
1543
|
+
const TruncatedTextWithTooltip = props => {
|
|
1544
|
+
const _a = props,
|
|
1545
|
+
{
|
|
1546
|
+
text,
|
|
1547
|
+
textWrapperCls
|
|
1548
|
+
} = _a,
|
|
1549
|
+
restProps = __objRest$w(_a, ["text", "textWrapperCls"]);
|
|
1550
|
+
const [isTextTruncated, setTextTruncated] = useState(false);
|
|
1551
|
+
const textWrapper = useRef(null);
|
|
1552
|
+
useLayoutEffect(() => {
|
|
1553
|
+
const ele = textWrapper.current;
|
|
1554
|
+
if (ele) {
|
|
1555
|
+
const parent = ele.parentElement;
|
|
1556
|
+
if (parent && (parent == null ? void 0 : parent.scrollWidth) > (parent == null ? void 0 : parent.clientWidth)) {
|
|
1557
|
+
setTextTruncated(true);
|
|
1558
|
+
}
|
|
881
1559
|
}
|
|
1560
|
+
}, [text]);
|
|
1561
|
+
const renderName = () => /* @__PURE__ */React__default.createElement("span", {
|
|
1562
|
+
ref: textWrapper,
|
|
1563
|
+
className: textWrapperCls
|
|
1564
|
+
}, text);
|
|
1565
|
+
return isTextTruncated ? /* @__PURE__ */React__default.createElement(Tooltip, __spreadProps$C(__spreadValues$L({}, restProps), {
|
|
1566
|
+
title: text,
|
|
1567
|
+
"data-testid": "text-tooltip"
|
|
1568
|
+
}), /* @__PURE__ */React__default.createElement(TruncatedTextWrapper, null, renderName())) : renderName();
|
|
1569
|
+
};
|
|
1570
|
+
|
|
1571
|
+
const EMPTY_FUNCTION = () => {
|
|
1572
|
+
};
|
|
1573
|
+
|
|
1574
|
+
function getSize(el) {
|
|
1575
|
+
if (!el) {
|
|
882
1576
|
return {
|
|
883
|
-
|
|
884
|
-
|
|
1577
|
+
width: 0,
|
|
1578
|
+
height: 0
|
|
885
1579
|
};
|
|
886
1580
|
}
|
|
887
1581
|
return {
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
};
|
|
891
|
-
}
|
|
892
|
-
function formatSpeed(input, decimals = 0) {
|
|
893
|
-
input /= 1e3;
|
|
894
|
-
if (input < 1)
|
|
895
|
-
return { value: "-", unit: "" };
|
|
896
|
-
const units = ["KbE", "MbE", "GbE", "TbE"];
|
|
897
|
-
const k = 1e3;
|
|
898
|
-
let i = Math.floor(Math.log(input) / Math.log(k));
|
|
899
|
-
i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
|
|
900
|
-
return {
|
|
901
|
-
value: parseFloat((input / Math.pow(k, i)).toFixed(decimals)),
|
|
902
|
-
unit: units[i]
|
|
1582
|
+
width: el.offsetWidth,
|
|
1583
|
+
height: el.offsetHeight
|
|
903
1584
|
};
|
|
904
1585
|
}
|
|
905
1586
|
|
|
@@ -920,31 +1601,31 @@ function getAlertIcon(type) {
|
|
|
920
1601
|
}
|
|
921
1602
|
}
|
|
922
1603
|
|
|
923
|
-
var __defProp$
|
|
924
|
-
var __defProps$
|
|
925
|
-
var __getOwnPropDescs$
|
|
926
|
-
var __getOwnPropSymbols$
|
|
927
|
-
var __hasOwnProp$
|
|
928
|
-
var __propIsEnum$
|
|
929
|
-
var __defNormalProp$
|
|
1604
|
+
var __defProp$K = Object.defineProperty;
|
|
1605
|
+
var __defProps$B = Object.defineProperties;
|
|
1606
|
+
var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
|
|
1607
|
+
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
|
1608
|
+
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
|
1609
|
+
var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
|
|
1610
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, {
|
|
930
1611
|
enumerable: true,
|
|
931
1612
|
configurable: true,
|
|
932
1613
|
writable: true,
|
|
933
1614
|
value
|
|
934
1615
|
}) : obj[key] = value;
|
|
935
|
-
var __spreadValues$
|
|
936
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
937
|
-
if (__getOwnPropSymbols$
|
|
938
|
-
if (__propIsEnum$
|
|
1616
|
+
var __spreadValues$K = (a, b) => {
|
|
1617
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$M.call(b, prop)) __defNormalProp$K(a, prop, b[prop]);
|
|
1618
|
+
if (__getOwnPropSymbols$M) for (var prop of __getOwnPropSymbols$M(b)) {
|
|
1619
|
+
if (__propIsEnum$M.call(b, prop)) __defNormalProp$K(a, prop, b[prop]);
|
|
939
1620
|
}
|
|
940
1621
|
return a;
|
|
941
1622
|
};
|
|
942
|
-
var __spreadProps$
|
|
943
|
-
var __objRest$
|
|
1623
|
+
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
1624
|
+
var __objRest$v = (source, exclude) => {
|
|
944
1625
|
var target = {};
|
|
945
|
-
for (var prop in source) if (__hasOwnProp$
|
|
946
|
-
if (source != null && __getOwnPropSymbols$
|
|
947
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1626
|
+
for (var prop in source) if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1627
|
+
if (source != null && __getOwnPropSymbols$M) for (var prop of __getOwnPropSymbols$M(source)) {
|
|
1628
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop)) target[prop] = source[prop];
|
|
948
1629
|
}
|
|
949
1630
|
return target;
|
|
950
1631
|
};
|
|
@@ -962,13 +1643,13 @@ const Alert = _a => {
|
|
|
962
1643
|
action,
|
|
963
1644
|
message
|
|
964
1645
|
} = _b,
|
|
965
|
-
props = __objRest$
|
|
1646
|
+
props = __objRest$v(_b, ["type", "icon", "showIcon", "className", "onClose", "closeText", "action", "message"]);
|
|
966
1647
|
const _icon = /* @__PURE__ */React__default.createElement(Icon, {
|
|
967
1648
|
alt: type,
|
|
968
1649
|
src: getAlertIcon(type)
|
|
969
1650
|
});
|
|
970
1651
|
const _type = type === "normal" ? "info" : type;
|
|
971
|
-
return /* @__PURE__ */React__default.createElement(Alert$1, __spreadProps$
|
|
1652
|
+
return /* @__PURE__ */React__default.createElement(Alert$1, __spreadProps$B(__spreadValues$K({}, props), {
|
|
972
1653
|
className: cs(AlertStyle, type ? `alert-${type}` : "", className, {
|
|
973
1654
|
action
|
|
974
1655
|
}),
|
|
@@ -990,12 +1671,6 @@ const Alert = _a => {
|
|
|
990
1671
|
}));
|
|
991
1672
|
};
|
|
992
1673
|
|
|
993
|
-
const useParrotTranslation = () => {
|
|
994
|
-
return useTranslation(void 0, {
|
|
995
|
-
i18n: parrotI18n
|
|
996
|
-
});
|
|
997
|
-
};
|
|
998
|
-
|
|
999
1674
|
const Arch = (props) => {
|
|
1000
1675
|
const { t } = useParrotTranslation();
|
|
1001
1676
|
const { architecture } = props;
|
|
@@ -1006,42 +1681,42 @@ const Arch = (props) => {
|
|
|
1006
1681
|
return /* @__PURE__ */ React__default.createElement("span", null, text);
|
|
1007
1682
|
};
|
|
1008
1683
|
|
|
1009
|
-
var __defProp$
|
|
1010
|
-
var __defProps$
|
|
1011
|
-
var __getOwnPropDescs$
|
|
1012
|
-
var __getOwnPropSymbols$
|
|
1013
|
-
var __hasOwnProp$
|
|
1014
|
-
var __propIsEnum$
|
|
1015
|
-
var __defNormalProp$
|
|
1016
|
-
var __spreadValues$
|
|
1684
|
+
var __defProp$J = Object.defineProperty;
|
|
1685
|
+
var __defProps$A = Object.defineProperties;
|
|
1686
|
+
var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
|
|
1687
|
+
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
|
1688
|
+
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
|
1689
|
+
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
|
1690
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1691
|
+
var __spreadValues$J = (a, b) => {
|
|
1017
1692
|
for (var prop in b || (b = {}))
|
|
1018
|
-
if (__hasOwnProp$
|
|
1019
|
-
__defNormalProp$
|
|
1020
|
-
if (__getOwnPropSymbols$
|
|
1021
|
-
for (var prop of __getOwnPropSymbols$
|
|
1022
|
-
if (__propIsEnum$
|
|
1023
|
-
__defNormalProp$
|
|
1693
|
+
if (__hasOwnProp$L.call(b, prop))
|
|
1694
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
1695
|
+
if (__getOwnPropSymbols$L)
|
|
1696
|
+
for (var prop of __getOwnPropSymbols$L(b)) {
|
|
1697
|
+
if (__propIsEnum$L.call(b, prop))
|
|
1698
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
1024
1699
|
}
|
|
1025
1700
|
return a;
|
|
1026
1701
|
};
|
|
1027
|
-
var __spreadProps$
|
|
1028
|
-
var __objRest$
|
|
1702
|
+
var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
|
|
1703
|
+
var __objRest$u = (source, exclude) => {
|
|
1029
1704
|
var target = {};
|
|
1030
1705
|
for (var prop in source)
|
|
1031
|
-
if (__hasOwnProp$
|
|
1706
|
+
if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1032
1707
|
target[prop] = source[prop];
|
|
1033
|
-
if (source != null && __getOwnPropSymbols$
|
|
1034
|
-
for (var prop of __getOwnPropSymbols$
|
|
1035
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1708
|
+
if (source != null && __getOwnPropSymbols$L)
|
|
1709
|
+
for (var prop of __getOwnPropSymbols$L(source)) {
|
|
1710
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop))
|
|
1036
1711
|
target[prop] = source[prop];
|
|
1037
1712
|
}
|
|
1038
1713
|
return target;
|
|
1039
1714
|
};
|
|
1040
1715
|
const Badge = (_a) => {
|
|
1041
|
-
var _b = _a, { type = "error", className } = _b, props = __objRest$
|
|
1716
|
+
var _b = _a, { type = "error", className } = _b, props = __objRest$u(_b, ["type", "className"]);
|
|
1042
1717
|
return /* @__PURE__ */ React__default.createElement(
|
|
1043
1718
|
Badge$1,
|
|
1044
|
-
__spreadProps$
|
|
1719
|
+
__spreadProps$A(__spreadValues$J({
|
|
1045
1720
|
className: cx(`badge-${type}`, className)
|
|
1046
1721
|
}, props), {
|
|
1047
1722
|
showZero: false
|
|
@@ -1049,108 +1724,6 @@ const Badge = (_a) => {
|
|
|
1049
1724
|
);
|
|
1050
1725
|
};
|
|
1051
1726
|
|
|
1052
|
-
function isEmpty(rawValue) {
|
|
1053
|
-
if (rawValue === null || rawValue === void 0 || rawValue === MAGIC_METRIC_NULL || Number.isNaN(rawValue) || !Number.isFinite(rawValue)) {
|
|
1054
|
-
return true;
|
|
1055
|
-
}
|
|
1056
|
-
return false;
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
const Empty = (props) => {
|
|
1060
|
-
const { className, style } = props;
|
|
1061
|
-
return /* @__PURE__ */ React__default.createElement("span", { className, style }, "-");
|
|
1062
|
-
};
|
|
1063
|
-
|
|
1064
|
-
var __defProp$R = Object.defineProperty;
|
|
1065
|
-
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
1066
|
-
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
1067
|
-
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
1068
|
-
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1069
|
-
var __spreadValues$R = (a, b) => {
|
|
1070
|
-
for (var prop in b || (b = {}))
|
|
1071
|
-
if (__hasOwnProp$T.call(b, prop))
|
|
1072
|
-
__defNormalProp$R(a, prop, b[prop]);
|
|
1073
|
-
if (__getOwnPropSymbols$T)
|
|
1074
|
-
for (var prop of __getOwnPropSymbols$T(b)) {
|
|
1075
|
-
if (__propIsEnum$T.call(b, prop))
|
|
1076
|
-
__defNormalProp$R(a, prop, b[prop]);
|
|
1077
|
-
}
|
|
1078
|
-
return a;
|
|
1079
|
-
};
|
|
1080
|
-
const Bit = ({
|
|
1081
|
-
rawValue,
|
|
1082
|
-
decimals,
|
|
1083
|
-
unitClassName,
|
|
1084
|
-
valueClassName,
|
|
1085
|
-
emptyProps
|
|
1086
|
-
}) => {
|
|
1087
|
-
if (isEmpty(rawValue)) {
|
|
1088
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$R({}, emptyProps));
|
|
1089
|
-
}
|
|
1090
|
-
const { value, unit } = formatBits(rawValue, decimals);
|
|
1091
|
-
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
1092
|
-
};
|
|
1093
|
-
|
|
1094
|
-
var __defProp$Q = Object.defineProperty;
|
|
1095
|
-
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
1096
|
-
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
1097
|
-
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
1098
|
-
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1099
|
-
var __spreadValues$Q = (a, b) => {
|
|
1100
|
-
for (var prop in b || (b = {}))
|
|
1101
|
-
if (__hasOwnProp$S.call(b, prop))
|
|
1102
|
-
__defNormalProp$Q(a, prop, b[prop]);
|
|
1103
|
-
if (__getOwnPropSymbols$S)
|
|
1104
|
-
for (var prop of __getOwnPropSymbols$S(b)) {
|
|
1105
|
-
if (__propIsEnum$S.call(b, prop))
|
|
1106
|
-
__defNormalProp$Q(a, prop, b[prop]);
|
|
1107
|
-
}
|
|
1108
|
-
return a;
|
|
1109
|
-
};
|
|
1110
|
-
const BitPerSeconds = ({
|
|
1111
|
-
rawValue,
|
|
1112
|
-
decimals,
|
|
1113
|
-
valueClassName,
|
|
1114
|
-
unitClassName,
|
|
1115
|
-
emptyProps
|
|
1116
|
-
}) => {
|
|
1117
|
-
if (isEmpty(rawValue)) {
|
|
1118
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$Q({}, emptyProps));
|
|
1119
|
-
}
|
|
1120
|
-
const { value, unit } = formatBitPerSecond(rawValue, decimals);
|
|
1121
|
-
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
1122
|
-
};
|
|
1123
|
-
|
|
1124
|
-
var __defProp$P = Object.defineProperty;
|
|
1125
|
-
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
1126
|
-
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
1127
|
-
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
1128
|
-
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1129
|
-
var __spreadValues$P = (a, b) => {
|
|
1130
|
-
for (var prop in b || (b = {}))
|
|
1131
|
-
if (__hasOwnProp$R.call(b, prop))
|
|
1132
|
-
__defNormalProp$P(a, prop, b[prop]);
|
|
1133
|
-
if (__getOwnPropSymbols$R)
|
|
1134
|
-
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
1135
|
-
if (__propIsEnum$R.call(b, prop))
|
|
1136
|
-
__defNormalProp$P(a, prop, b[prop]);
|
|
1137
|
-
}
|
|
1138
|
-
return a;
|
|
1139
|
-
};
|
|
1140
|
-
const Bps = ({
|
|
1141
|
-
rawValue,
|
|
1142
|
-
decimals,
|
|
1143
|
-
valueClassName,
|
|
1144
|
-
unitClassName,
|
|
1145
|
-
emptyProps
|
|
1146
|
-
}) => {
|
|
1147
|
-
if (isEmpty(rawValue)) {
|
|
1148
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$P({}, emptyProps));
|
|
1149
|
-
}
|
|
1150
|
-
const { value, unit } = formatBps(rawValue, decimals);
|
|
1151
|
-
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
1152
|
-
};
|
|
1153
|
-
|
|
1154
1727
|
const HoverableElement = (props) => {
|
|
1155
1728
|
const { className, hover = false, icon, hoverEle } = props;
|
|
1156
1729
|
if (hover) {
|
|
@@ -1159,28 +1732,28 @@ const HoverableElement = (props) => {
|
|
|
1159
1732
|
return icon != null ? React__default.cloneElement(icon, { className }) : null;
|
|
1160
1733
|
};
|
|
1161
1734
|
|
|
1162
|
-
var __defProp$
|
|
1163
|
-
var __getOwnPropSymbols$
|
|
1164
|
-
var __hasOwnProp$
|
|
1165
|
-
var __propIsEnum$
|
|
1166
|
-
var __defNormalProp$
|
|
1735
|
+
var __defProp$I = Object.defineProperty;
|
|
1736
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
|
1737
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
|
1738
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
|
1739
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, {
|
|
1167
1740
|
enumerable: true,
|
|
1168
1741
|
configurable: true,
|
|
1169
1742
|
writable: true,
|
|
1170
1743
|
value
|
|
1171
1744
|
}) : obj[key] = value;
|
|
1172
|
-
var __spreadValues$
|
|
1173
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1174
|
-
if (__getOwnPropSymbols$
|
|
1175
|
-
if (__propIsEnum$
|
|
1745
|
+
var __spreadValues$I = (a, b) => {
|
|
1746
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$K.call(b, prop)) __defNormalProp$I(a, prop, b[prop]);
|
|
1747
|
+
if (__getOwnPropSymbols$K) for (var prop of __getOwnPropSymbols$K(b)) {
|
|
1748
|
+
if (__propIsEnum$K.call(b, prop)) __defNormalProp$I(a, prop, b[prop]);
|
|
1176
1749
|
}
|
|
1177
1750
|
return a;
|
|
1178
1751
|
};
|
|
1179
|
-
var __objRest$
|
|
1752
|
+
var __objRest$t = (source, exclude) => {
|
|
1180
1753
|
var target = {};
|
|
1181
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1182
|
-
if (source != null && __getOwnPropSymbols$
|
|
1183
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1754
|
+
for (var prop in source) if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1755
|
+
if (source != null && __getOwnPropSymbols$K) for (var prop of __getOwnPropSymbols$K(source)) {
|
|
1756
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop)) target[prop] = source[prop];
|
|
1184
1757
|
}
|
|
1185
1758
|
return target;
|
|
1186
1759
|
};
|
|
@@ -1203,12 +1776,12 @@ const Button = React__default.forwardRef((props, ref) => {
|
|
|
1203
1776
|
onMouseLeave,
|
|
1204
1777
|
size = "middle"
|
|
1205
1778
|
} = _a,
|
|
1206
|
-
restProps = __objRest$
|
|
1779
|
+
restProps = __objRest$t(_a, ["type", "className", "children", "prefixIcon", "hoverPrefixIcon", "suffixIcon", "hoverSuffixIcon", "onMouseEnter", "onMouseLeave", "size"]);
|
|
1207
1780
|
const [status, setStatus] = useState("normal");
|
|
1208
1781
|
const hasIcon = prefixIcon || suffixIcon;
|
|
1209
1782
|
const hasHoverIcon = hoverPrefixIcon || hoverSuffixIcon;
|
|
1210
1783
|
const onlyIcon = !children && (prefixIcon || suffixIcon);
|
|
1211
|
-
return /* @__PURE__ */React__default.createElement(Button$1, __spreadValues$
|
|
1784
|
+
return /* @__PURE__ */React__default.createElement(Button$1, __spreadValues$I({
|
|
1212
1785
|
ref,
|
|
1213
1786
|
className: cs(className, ButtonStyle$1, type === "link" && NoPadding, size === "large" && Typo.Label.l1_regular_title, size === "middle" && Typo.Label.l2_regular_title, size === "small" && Typo.Label.l3_regular_title, type && `ant-btn-${type}`, onlyIcon && "ant-btn-icon-only"),
|
|
1214
1787
|
type: isAntdButtonTypes(type) ? type : void 0,
|
|
@@ -1236,30 +1809,30 @@ const Button = React__default.forwardRef((props, ref) => {
|
|
|
1236
1809
|
hover: status === "hover",
|
|
1237
1810
|
className: !onlyIcon ? "button-suffix-icon" : ""
|
|
1238
1811
|
}));
|
|
1239
|
-
});
|
|
1240
|
-
|
|
1241
|
-
var __defProp$
|
|
1242
|
-
var __getOwnPropSymbols$
|
|
1243
|
-
var __hasOwnProp$
|
|
1244
|
-
var __propIsEnum$
|
|
1245
|
-
var __defNormalProp$
|
|
1812
|
+
});
|
|
1813
|
+
|
|
1814
|
+
var __defProp$H = Object.defineProperty;
|
|
1815
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
1816
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
1817
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
1818
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, {
|
|
1246
1819
|
enumerable: true,
|
|
1247
1820
|
configurable: true,
|
|
1248
1821
|
writable: true,
|
|
1249
1822
|
value
|
|
1250
1823
|
}) : obj[key] = value;
|
|
1251
|
-
var __spreadValues$
|
|
1252
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1253
|
-
if (__getOwnPropSymbols$
|
|
1254
|
-
if (__propIsEnum$
|
|
1824
|
+
var __spreadValues$H = (a, b) => {
|
|
1825
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$J.call(b, prop)) __defNormalProp$H(a, prop, b[prop]);
|
|
1826
|
+
if (__getOwnPropSymbols$J) for (var prop of __getOwnPropSymbols$J(b)) {
|
|
1827
|
+
if (__propIsEnum$J.call(b, prop)) __defNormalProp$H(a, prop, b[prop]);
|
|
1255
1828
|
}
|
|
1256
1829
|
return a;
|
|
1257
1830
|
};
|
|
1258
|
-
var __objRest$
|
|
1831
|
+
var __objRest$s = (source, exclude) => {
|
|
1259
1832
|
var target = {};
|
|
1260
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1261
|
-
if (source != null && __getOwnPropSymbols$
|
|
1262
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1833
|
+
for (var prop in source) if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1834
|
+
if (source != null && __getOwnPropSymbols$J) for (var prop of __getOwnPropSymbols$J(source)) {
|
|
1835
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop)) target[prop] = source[prop];
|
|
1263
1836
|
}
|
|
1264
1837
|
return target;
|
|
1265
1838
|
};
|
|
@@ -1294,7 +1867,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
1294
1867
|
hideTitle,
|
|
1295
1868
|
title
|
|
1296
1869
|
} = _a,
|
|
1297
|
-
buttonPropArgs = __objRest$
|
|
1870
|
+
buttonPropArgs = __objRest$s(_a, ["key", "icon", "type", "children", "danger", "ghost", "className", "hideTitle", "title"]);
|
|
1298
1871
|
if (hideTitle) {
|
|
1299
1872
|
return /* @__PURE__ */React__default.createElement(Tooltip, {
|
|
1300
1873
|
key: key || index,
|
|
@@ -1303,7 +1876,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
1303
1876
|
style: {
|
|
1304
1877
|
cursor: "not-allowed"
|
|
1305
1878
|
}
|
|
1306
|
-
}, /* @__PURE__ */React__default.createElement(Button, __spreadValues$
|
|
1879
|
+
}, /* @__PURE__ */React__default.createElement(Button, __spreadValues$H({
|
|
1307
1880
|
style: {
|
|
1308
1881
|
pointerEvents: "none"
|
|
1309
1882
|
},
|
|
@@ -1313,7 +1886,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
1313
1886
|
ghost,
|
|
1314
1887
|
className: cx(ButtonStyle, className2),
|
|
1315
1888
|
prefixIcon: icon
|
|
1316
|
-
}, buttonPropArgs))) : /* @__PURE__ */React__default.createElement(Button, __spreadValues$
|
|
1889
|
+
}, buttonPropArgs))) : /* @__PURE__ */React__default.createElement(Button, __spreadValues$H({
|
|
1317
1890
|
type,
|
|
1318
1891
|
size,
|
|
1319
1892
|
danger,
|
|
@@ -1322,7 +1895,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
1322
1895
|
prefixIcon: icon
|
|
1323
1896
|
}, buttonPropArgs)));
|
|
1324
1897
|
}
|
|
1325
|
-
return /* @__PURE__ */React__default.createElement(Button, __spreadValues$
|
|
1898
|
+
return /* @__PURE__ */React__default.createElement(Button, __spreadValues$H({
|
|
1326
1899
|
key: key || index,
|
|
1327
1900
|
type,
|
|
1328
1901
|
size,
|
|
@@ -1336,44 +1909,6 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
|
|
|
1336
1909
|
}));
|
|
1337
1910
|
});
|
|
1338
1911
|
|
|
1339
|
-
var __defProp$M = Object.defineProperty;
|
|
1340
|
-
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
1341
|
-
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
1342
|
-
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
1343
|
-
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1344
|
-
var __spreadValues$M = (a, b) => {
|
|
1345
|
-
for (var prop in b || (b = {}))
|
|
1346
|
-
if (__hasOwnProp$O.call(b, prop))
|
|
1347
|
-
__defNormalProp$M(a, prop, b[prop]);
|
|
1348
|
-
if (__getOwnPropSymbols$O)
|
|
1349
|
-
for (var prop of __getOwnPropSymbols$O(b)) {
|
|
1350
|
-
if (__propIsEnum$O.call(b, prop))
|
|
1351
|
-
__defNormalProp$M(a, prop, b[prop]);
|
|
1352
|
-
}
|
|
1353
|
-
return a;
|
|
1354
|
-
};
|
|
1355
|
-
const Byte = ({
|
|
1356
|
-
rawValue,
|
|
1357
|
-
noUnitOnZero,
|
|
1358
|
-
decimals,
|
|
1359
|
-
valueClassName,
|
|
1360
|
-
unitClassName,
|
|
1361
|
-
emptyProps
|
|
1362
|
-
}) => {
|
|
1363
|
-
const { t } = useParrotTranslation();
|
|
1364
|
-
if (isEmpty(rawValue)) {
|
|
1365
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$M({}, emptyProps));
|
|
1366
|
-
}
|
|
1367
|
-
if (rawValue === -1) {
|
|
1368
|
-
return /* @__PURE__ */ React__default.createElement("span", null, t("common.calculation"));
|
|
1369
|
-
}
|
|
1370
|
-
const { value, unit } = formatBytes(rawValue, decimals);
|
|
1371
|
-
if (noUnitOnZero && value === 0) {
|
|
1372
|
-
return /* @__PURE__ */ React__default.createElement("span", { className: "value" }, value);
|
|
1373
|
-
}
|
|
1374
|
-
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
1375
|
-
};
|
|
1376
|
-
|
|
1377
1912
|
const CardBody = /*#__PURE__*/styled$1('div')({
|
|
1378
1913
|
name: "CardBody",
|
|
1379
1914
|
class: "c1k4vanq",
|
|
@@ -1386,28 +1921,28 @@ const CardTitle = /*#__PURE__*/styled$1('div')({
|
|
|
1386
1921
|
propsAsIs: false
|
|
1387
1922
|
});
|
|
1388
1923
|
|
|
1389
|
-
var __defProp$
|
|
1390
|
-
var __getOwnPropSymbols$
|
|
1391
|
-
var __hasOwnProp$
|
|
1392
|
-
var __propIsEnum$
|
|
1393
|
-
var __defNormalProp$
|
|
1924
|
+
var __defProp$G = Object.defineProperty;
|
|
1925
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
1926
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
1927
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
1928
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, {
|
|
1394
1929
|
enumerable: true,
|
|
1395
1930
|
configurable: true,
|
|
1396
1931
|
writable: true,
|
|
1397
1932
|
value
|
|
1398
1933
|
}) : obj[key] = value;
|
|
1399
|
-
var __spreadValues$
|
|
1400
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1401
|
-
if (__getOwnPropSymbols$
|
|
1402
|
-
if (__propIsEnum$
|
|
1934
|
+
var __spreadValues$G = (a, b) => {
|
|
1935
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$I.call(b, prop)) __defNormalProp$G(a, prop, b[prop]);
|
|
1936
|
+
if (__getOwnPropSymbols$I) for (var prop of __getOwnPropSymbols$I(b)) {
|
|
1937
|
+
if (__propIsEnum$I.call(b, prop)) __defNormalProp$G(a, prop, b[prop]);
|
|
1403
1938
|
}
|
|
1404
1939
|
return a;
|
|
1405
1940
|
};
|
|
1406
|
-
var __objRest$
|
|
1941
|
+
var __objRest$r = (source, exclude) => {
|
|
1407
1942
|
var target = {};
|
|
1408
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1409
|
-
if (source != null && __getOwnPropSymbols$
|
|
1410
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1943
|
+
for (var prop in source) if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1944
|
+
if (source != null && __getOwnPropSymbols$I) for (var prop of __getOwnPropSymbols$I(source)) {
|
|
1945
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop)) target[prop] = source[prop];
|
|
1411
1946
|
}
|
|
1412
1947
|
return target;
|
|
1413
1948
|
};
|
|
@@ -1419,8 +1954,8 @@ const Wrapper = forwardRef(props => {
|
|
|
1419
1954
|
className,
|
|
1420
1955
|
shadow
|
|
1421
1956
|
} = _a,
|
|
1422
|
-
otherProps = __objRest$
|
|
1423
|
-
return /* @__PURE__ */React__default.createElement("div", __spreadValues$
|
|
1957
|
+
otherProps = __objRest$r(_a, ["children", "className", "shadow"]);
|
|
1958
|
+
return /* @__PURE__ */React__default.createElement("div", __spreadValues$G({
|
|
1424
1959
|
className: cs({
|
|
1425
1960
|
[boxShadow]: shadow
|
|
1426
1961
|
}, className)
|
|
@@ -1433,33 +1968,33 @@ const CardWrapper = /*#__PURE__*/styled$1(_exp$3())({
|
|
|
1433
1968
|
propsAsIs: true
|
|
1434
1969
|
});
|
|
1435
1970
|
|
|
1436
|
-
var __defProp$
|
|
1437
|
-
var __defProps$
|
|
1438
|
-
var __getOwnPropDescs$
|
|
1439
|
-
var __getOwnPropSymbols$
|
|
1440
|
-
var __hasOwnProp$
|
|
1441
|
-
var __propIsEnum$
|
|
1442
|
-
var __defNormalProp$
|
|
1443
|
-
var __spreadValues$
|
|
1971
|
+
var __defProp$F = Object.defineProperty;
|
|
1972
|
+
var __defProps$z = Object.defineProperties;
|
|
1973
|
+
var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
|
|
1974
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
1975
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
1976
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
1977
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1978
|
+
var __spreadValues$F = (a, b) => {
|
|
1444
1979
|
for (var prop in b || (b = {}))
|
|
1445
|
-
if (__hasOwnProp$
|
|
1446
|
-
__defNormalProp$
|
|
1447
|
-
if (__getOwnPropSymbols$
|
|
1448
|
-
for (var prop of __getOwnPropSymbols$
|
|
1449
|
-
if (__propIsEnum$
|
|
1450
|
-
__defNormalProp$
|
|
1980
|
+
if (__hasOwnProp$H.call(b, prop))
|
|
1981
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
1982
|
+
if (__getOwnPropSymbols$H)
|
|
1983
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
|
1984
|
+
if (__propIsEnum$H.call(b, prop))
|
|
1985
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
1451
1986
|
}
|
|
1452
1987
|
return a;
|
|
1453
1988
|
};
|
|
1454
|
-
var __spreadProps$
|
|
1455
|
-
var __objRest$
|
|
1989
|
+
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
1990
|
+
var __objRest$q = (source, exclude) => {
|
|
1456
1991
|
var target = {};
|
|
1457
1992
|
for (var prop in source)
|
|
1458
|
-
if (__hasOwnProp$
|
|
1993
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1459
1994
|
target[prop] = source[prop];
|
|
1460
|
-
if (source != null && __getOwnPropSymbols$
|
|
1461
|
-
for (var prop of __getOwnPropSymbols$
|
|
1462
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1995
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
1996
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
1997
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
1463
1998
|
target[prop] = source[prop];
|
|
1464
1999
|
}
|
|
1465
2000
|
return target;
|
|
@@ -1474,7 +2009,7 @@ const Card = React__default.forwardRef(
|
|
|
1474
2009
|
defaultOpen = false,
|
|
1475
2010
|
hoverable,
|
|
1476
2011
|
shadow = true
|
|
1477
|
-
} = _a, domProps = __objRest$
|
|
2012
|
+
} = _a, domProps = __objRest$q(_a, [
|
|
1478
2013
|
"collapsible",
|
|
1479
2014
|
"title",
|
|
1480
2015
|
"subInfo",
|
|
@@ -1486,7 +2021,7 @@ const Card = React__default.forwardRef(
|
|
|
1486
2021
|
const [open, setOpen] = useState(defaultOpen);
|
|
1487
2022
|
return /* @__PURE__ */ React__default.createElement(
|
|
1488
2023
|
CardWrapper,
|
|
1489
|
-
__spreadProps$
|
|
2024
|
+
__spreadProps$z(__spreadValues$F({
|
|
1490
2025
|
ref,
|
|
1491
2026
|
className: cs(["card-wrapper", className, hoverable && "hoverable"])
|
|
1492
2027
|
}, domProps), {
|
|
@@ -1515,31 +2050,31 @@ const Card = React__default.forwardRef(
|
|
|
1515
2050
|
}
|
|
1516
2051
|
);
|
|
1517
2052
|
|
|
1518
|
-
var __defProp$
|
|
1519
|
-
var __defProps$
|
|
1520
|
-
var __getOwnPropDescs$
|
|
1521
|
-
var __getOwnPropSymbols$
|
|
1522
|
-
var __hasOwnProp$
|
|
1523
|
-
var __propIsEnum$
|
|
1524
|
-
var __defNormalProp$
|
|
2053
|
+
var __defProp$E = Object.defineProperty;
|
|
2054
|
+
var __defProps$y = Object.defineProperties;
|
|
2055
|
+
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
2056
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
2057
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
2058
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
2059
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, {
|
|
1525
2060
|
enumerable: true,
|
|
1526
2061
|
configurable: true,
|
|
1527
2062
|
writable: true,
|
|
1528
2063
|
value
|
|
1529
2064
|
}) : obj[key] = value;
|
|
1530
|
-
var __spreadValues$
|
|
1531
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1532
|
-
if (__getOwnPropSymbols$
|
|
1533
|
-
if (__propIsEnum$
|
|
2065
|
+
var __spreadValues$E = (a, b) => {
|
|
2066
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$G.call(b, prop)) __defNormalProp$E(a, prop, b[prop]);
|
|
2067
|
+
if (__getOwnPropSymbols$G) for (var prop of __getOwnPropSymbols$G(b)) {
|
|
2068
|
+
if (__propIsEnum$G.call(b, prop)) __defNormalProp$E(a, prop, b[prop]);
|
|
1534
2069
|
}
|
|
1535
2070
|
return a;
|
|
1536
2071
|
};
|
|
1537
|
-
var __spreadProps$
|
|
1538
|
-
var __objRest$
|
|
2072
|
+
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
2073
|
+
var __objRest$p = (source, exclude) => {
|
|
1539
2074
|
var target = {};
|
|
1540
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1541
|
-
if (source != null && __getOwnPropSymbols$
|
|
1542
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2075
|
+
for (var prop in source) if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2076
|
+
if (source != null && __getOwnPropSymbols$G) for (var prop of __getOwnPropSymbols$G(source)) {
|
|
2077
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop)) target[prop] = source[prop];
|
|
1543
2078
|
}
|
|
1544
2079
|
return target;
|
|
1545
2080
|
};
|
|
@@ -1552,8 +2087,8 @@ const Checkbox = _a => {
|
|
|
1552
2087
|
description,
|
|
1553
2088
|
compact
|
|
1554
2089
|
} = _b,
|
|
1555
|
-
props = __objRest$
|
|
1556
|
-
return /* @__PURE__ */React__default.createElement(Checkbox$1, __spreadProps$
|
|
2090
|
+
props = __objRest$p(_b, ["className", "children", "description", "compact"]);
|
|
2091
|
+
return /* @__PURE__ */React__default.createElement(Checkbox$1, __spreadProps$y(__spreadValues$E({}, props), {
|
|
1557
2092
|
"data-test": props["data-test"] || props.value,
|
|
1558
2093
|
className: cs(className, CheckboxStyle, compact && "compact")
|
|
1559
2094
|
}), children ? /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement("div", {
|
|
@@ -1631,39 +2166,39 @@ const ExpandableItem = props => {
|
|
|
1631
2166
|
}, children));
|
|
1632
2167
|
};
|
|
1633
2168
|
|
|
1634
|
-
var __defProp$
|
|
1635
|
-
var __getOwnPropSymbols$
|
|
1636
|
-
var __hasOwnProp$
|
|
1637
|
-
var __propIsEnum$
|
|
1638
|
-
var __defNormalProp$
|
|
1639
|
-
var __spreadValues$
|
|
2169
|
+
var __defProp$D = Object.defineProperty;
|
|
2170
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
2171
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
2172
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
2173
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2174
|
+
var __spreadValues$D = (a, b) => {
|
|
1640
2175
|
for (var prop in b || (b = {}))
|
|
1641
|
-
if (__hasOwnProp$
|
|
1642
|
-
__defNormalProp$
|
|
1643
|
-
if (__getOwnPropSymbols$
|
|
1644
|
-
for (var prop of __getOwnPropSymbols$
|
|
1645
|
-
if (__propIsEnum$
|
|
1646
|
-
__defNormalProp$
|
|
2176
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
2177
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
2178
|
+
if (__getOwnPropSymbols$F)
|
|
2179
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
2180
|
+
if (__propIsEnum$F.call(b, prop))
|
|
2181
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
1647
2182
|
}
|
|
1648
2183
|
return a;
|
|
1649
2184
|
};
|
|
1650
|
-
var __objRest$
|
|
2185
|
+
var __objRest$o = (source, exclude) => {
|
|
1651
2186
|
var target = {};
|
|
1652
2187
|
for (var prop in source)
|
|
1653
|
-
if (__hasOwnProp$
|
|
2188
|
+
if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1654
2189
|
target[prop] = source[prop];
|
|
1655
|
-
if (source != null && __getOwnPropSymbols$
|
|
1656
|
-
for (var prop of __getOwnPropSymbols$
|
|
1657
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2190
|
+
if (source != null && __getOwnPropSymbols$F)
|
|
2191
|
+
for (var prop of __getOwnPropSymbols$F(source)) {
|
|
2192
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
|
|
1658
2193
|
target[prop] = source[prop];
|
|
1659
2194
|
}
|
|
1660
2195
|
return target;
|
|
1661
2196
|
};
|
|
1662
2197
|
const FieldsBoolean = (_a) => {
|
|
1663
|
-
var _b = _a, { input, children } = _b, props = __objRest$
|
|
2198
|
+
var _b = _a, { input, children } = _b, props = __objRest$o(_b, ["input", "children"]);
|
|
1664
2199
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
1665
2200
|
Checkbox,
|
|
1666
|
-
__spreadValues$
|
|
2201
|
+
__spreadValues$D({
|
|
1667
2202
|
checked: Boolean(input.value),
|
|
1668
2203
|
onChange: (e) => input.onChange(e.target.checked)
|
|
1669
2204
|
}, props),
|
|
@@ -1688,17 +2223,17 @@ const FieldsDateTime = ({ input }) => /* @__PURE__ */ React__default.createEleme
|
|
|
1688
2223
|
}
|
|
1689
2224
|
));
|
|
1690
2225
|
|
|
1691
|
-
var __getOwnPropSymbols$
|
|
1692
|
-
var __hasOwnProp$
|
|
1693
|
-
var __propIsEnum$
|
|
1694
|
-
var __objRest$
|
|
2226
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
2227
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
2228
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
2229
|
+
var __objRest$n = (source, exclude) => {
|
|
1695
2230
|
var target = {};
|
|
1696
2231
|
for (var prop in source)
|
|
1697
|
-
if (__hasOwnProp$
|
|
2232
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1698
2233
|
target[prop] = source[prop];
|
|
1699
|
-
if (source != null && __getOwnPropSymbols$
|
|
1700
|
-
for (var prop of __getOwnPropSymbols$
|
|
1701
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2234
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
2235
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
2236
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
1702
2237
|
target[prop] = source[prop];
|
|
1703
2238
|
}
|
|
1704
2239
|
return target;
|
|
@@ -1706,7 +2241,7 @@ var __objRest$o = (source, exclude) => {
|
|
|
1706
2241
|
const FieldsDateTimeRange = (_a) => {
|
|
1707
2242
|
var _b = _a, {
|
|
1708
2243
|
input
|
|
1709
|
-
} = _b, props = __objRest$
|
|
2244
|
+
} = _b, props = __objRest$n(_b, [
|
|
1710
2245
|
"input"
|
|
1711
2246
|
]);
|
|
1712
2247
|
var _a2, _b2;
|
|
@@ -1730,74 +2265,61 @@ const FieldsDateTimeRange = (_a) => {
|
|
|
1730
2265
|
));
|
|
1731
2266
|
};
|
|
1732
2267
|
|
|
1733
|
-
const WizardBody = /*#__PURE__*/styled$1('div')({
|
|
1734
|
-
name: "WizardBody",
|
|
1735
|
-
class: "w1vvwdlp",
|
|
1736
|
-
propsAsIs: false
|
|
1737
|
-
});
|
|
1738
|
-
const FullView = /*#__PURE__*/styled$1('div')({
|
|
1739
|
-
name: "FullView",
|
|
1740
|
-
class: "f1rest1f",
|
|
1741
|
-
propsAsIs: false
|
|
1742
|
-
});
|
|
1743
|
-
const InputStyle = "ipd9bk";
|
|
1744
|
-
const KitInputStyle = "kypn5o5";
|
|
1745
|
-
|
|
1746
2268
|
const LoadingWrapper = "l4bld33";
|
|
1747
2269
|
const LoadingLine1 = "lgitjoj";
|
|
1748
2270
|
const LoadingLine2 = "l13g0exg";
|
|
1749
2271
|
const LoadingLine3 = "l1exo3h6";
|
|
1750
2272
|
|
|
1751
|
-
var __defProp$
|
|
1752
|
-
var __defProps$
|
|
1753
|
-
var __getOwnPropDescs$
|
|
1754
|
-
var __getOwnPropSymbols$
|
|
1755
|
-
var __hasOwnProp$
|
|
1756
|
-
var __propIsEnum$
|
|
1757
|
-
var __defNormalProp$
|
|
1758
|
-
var __spreadValues$
|
|
2273
|
+
var __defProp$C = Object.defineProperty;
|
|
2274
|
+
var __defProps$x = Object.defineProperties;
|
|
2275
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
2276
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
2277
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
2278
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
2279
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2280
|
+
var __spreadValues$C = (a, b) => {
|
|
1759
2281
|
for (var prop in b || (b = {}))
|
|
1760
|
-
if (__hasOwnProp$
|
|
1761
|
-
__defNormalProp$
|
|
1762
|
-
if (__getOwnPropSymbols$
|
|
1763
|
-
for (var prop of __getOwnPropSymbols$
|
|
1764
|
-
if (__propIsEnum$
|
|
1765
|
-
__defNormalProp$
|
|
2282
|
+
if (__hasOwnProp$D.call(b, prop))
|
|
2283
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
2284
|
+
if (__getOwnPropSymbols$D)
|
|
2285
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
|
2286
|
+
if (__propIsEnum$D.call(b, prop))
|
|
2287
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
1766
2288
|
}
|
|
1767
2289
|
return a;
|
|
1768
2290
|
};
|
|
1769
|
-
var __spreadProps$
|
|
2291
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
1770
2292
|
const Loading = ({ fullView = true }) => {
|
|
1771
2293
|
const Wrapper = fullView ? FullView : Fragment;
|
|
1772
2294
|
const props = fullView ? { className: "loading-full-view" } : {};
|
|
1773
|
-
return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadProps$
|
|
2295
|
+
return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadProps$x(__spreadValues$C({}, props), { "data-testid": "loading" }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingWrapper }, /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine1 }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine2 }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine3 })));
|
|
1774
2296
|
};
|
|
1775
2297
|
|
|
1776
|
-
var __defProp$
|
|
1777
|
-
var __defProps$
|
|
1778
|
-
var __getOwnPropDescs$
|
|
1779
|
-
var __getOwnPropSymbols$
|
|
1780
|
-
var __hasOwnProp$
|
|
1781
|
-
var __propIsEnum$
|
|
1782
|
-
var __defNormalProp$
|
|
2298
|
+
var __defProp$B = Object.defineProperty;
|
|
2299
|
+
var __defProps$w = Object.defineProperties;
|
|
2300
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
2301
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
2302
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
2303
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
2304
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, {
|
|
1783
2305
|
enumerable: true,
|
|
1784
2306
|
configurable: true,
|
|
1785
2307
|
writable: true,
|
|
1786
2308
|
value
|
|
1787
2309
|
}) : obj[key] = value;
|
|
1788
|
-
var __spreadValues$
|
|
1789
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1790
|
-
if (__getOwnPropSymbols$
|
|
1791
|
-
if (__propIsEnum$
|
|
2310
|
+
var __spreadValues$B = (a, b) => {
|
|
2311
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$C.call(b, prop)) __defNormalProp$B(a, prop, b[prop]);
|
|
2312
|
+
if (__getOwnPropSymbols$C) for (var prop of __getOwnPropSymbols$C(b)) {
|
|
2313
|
+
if (__propIsEnum$C.call(b, prop)) __defNormalProp$B(a, prop, b[prop]);
|
|
1792
2314
|
}
|
|
1793
2315
|
return a;
|
|
1794
2316
|
};
|
|
1795
|
-
var __spreadProps$
|
|
1796
|
-
var __objRest$
|
|
2317
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
2318
|
+
var __objRest$m = (source, exclude) => {
|
|
1797
2319
|
var target = {};
|
|
1798
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1799
|
-
if (source != null && __getOwnPropSymbols$
|
|
1800
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2320
|
+
for (var prop in source) if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2321
|
+
if (source != null && __getOwnPropSymbols$C) for (var prop of __getOwnPropSymbols$C(source)) {
|
|
2322
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop)) target[prop] = source[prop];
|
|
1801
2323
|
}
|
|
1802
2324
|
return target;
|
|
1803
2325
|
};
|
|
@@ -1825,7 +2347,7 @@ const Select = _a => {
|
|
|
1825
2347
|
meta,
|
|
1826
2348
|
placeholder
|
|
1827
2349
|
} = _b,
|
|
1828
|
-
restProps = __objRest$
|
|
2350
|
+
restProps = __objRest$m(_b, ["input", "multiple", "className", "scrollBottomBuffer", "onScrollBottom", "onPopupScroll", "onSearch", "showSearch", "filterOption", "loading", "notFoundContent", "children", "error", "selectLimit", "dropdownClassName", "danger", "size", "meta", "placeholder"]);
|
|
1829
2351
|
var _a2;
|
|
1830
2352
|
const limitExceeded = multiple && selectLimit && selectLimit <= (((_a2 = input.value) == null ? void 0 : _a2.length) || 0);
|
|
1831
2353
|
const typo = {
|
|
@@ -1851,7 +2373,7 @@ const Select = _a => {
|
|
|
1851
2373
|
inputDom && (placeholder || item) && inputDom.setAttribute("data-test", String(placeholder || item.textContent));
|
|
1852
2374
|
}
|
|
1853
2375
|
}, [selectRef, placeholder]);
|
|
1854
|
-
return /* @__PURE__ */React__default.createElement(Select$1, __spreadValues$
|
|
2376
|
+
return /* @__PURE__ */React__default.createElement(Select$1, __spreadValues$B(__spreadProps$w(__spreadValues$B({}, input), {
|
|
1855
2377
|
ref: selectRef,
|
|
1856
2378
|
size,
|
|
1857
2379
|
value: multiple ? input.value || [] : input.value || void 0,
|
|
@@ -1892,38 +2414,38 @@ const Select = _a => {
|
|
|
1892
2414
|
loading,
|
|
1893
2415
|
placeholder
|
|
1894
2416
|
}), restProps), React__default.Children.map(children, child => {
|
|
1895
|
-
return isElement(child) ? __spreadProps$
|
|
1896
|
-
props: __spreadProps$
|
|
2417
|
+
return isElement(child) ? __spreadProps$w(__spreadValues$B({}, child), {
|
|
2418
|
+
props: __spreadProps$w(__spreadValues$B({}, child.props), {
|
|
1897
2419
|
"data-test": child.props.value
|
|
1898
2420
|
})
|
|
1899
2421
|
}) : child;
|
|
1900
2422
|
}));
|
|
1901
2423
|
};
|
|
1902
2424
|
|
|
1903
|
-
var __defProp$
|
|
1904
|
-
var __getOwnPropSymbols$
|
|
1905
|
-
var __hasOwnProp$
|
|
1906
|
-
var __propIsEnum$
|
|
1907
|
-
var __defNormalProp$
|
|
1908
|
-
var __spreadValues$
|
|
2425
|
+
var __defProp$A = Object.defineProperty;
|
|
2426
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
2427
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
2428
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
2429
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2430
|
+
var __spreadValues$A = (a, b) => {
|
|
1909
2431
|
for (var prop in b || (b = {}))
|
|
1910
|
-
if (__hasOwnProp$
|
|
1911
|
-
__defNormalProp$
|
|
1912
|
-
if (__getOwnPropSymbols$
|
|
1913
|
-
for (var prop of __getOwnPropSymbols$
|
|
1914
|
-
if (__propIsEnum$
|
|
1915
|
-
__defNormalProp$
|
|
2432
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
2433
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
2434
|
+
if (__getOwnPropSymbols$B)
|
|
2435
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
2436
|
+
if (__propIsEnum$B.call(b, prop))
|
|
2437
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
1916
2438
|
}
|
|
1917
2439
|
return a;
|
|
1918
2440
|
};
|
|
1919
|
-
var __objRest$
|
|
2441
|
+
var __objRest$l = (source, exclude) => {
|
|
1920
2442
|
var target = {};
|
|
1921
2443
|
for (var prop in source)
|
|
1922
|
-
if (__hasOwnProp$
|
|
2444
|
+
if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1923
2445
|
target[prop] = source[prop];
|
|
1924
|
-
if (source != null && __getOwnPropSymbols$
|
|
1925
|
-
for (var prop of __getOwnPropSymbols$
|
|
1926
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2446
|
+
if (source != null && __getOwnPropSymbols$B)
|
|
2447
|
+
for (var prop of __getOwnPropSymbols$B(source)) {
|
|
2448
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
|
|
1927
2449
|
target[prop] = source[prop];
|
|
1928
2450
|
}
|
|
1929
2451
|
return target;
|
|
@@ -1933,12 +2455,12 @@ const FieldsEnum = (_a) => {
|
|
|
1933
2455
|
meta: __,
|
|
1934
2456
|
enumValues,
|
|
1935
2457
|
emptyLabel
|
|
1936
|
-
} = _b, restProps = __objRest$
|
|
2458
|
+
} = _b, restProps = __objRest$l(_b, [
|
|
1937
2459
|
"meta",
|
|
1938
2460
|
"enumValues",
|
|
1939
2461
|
"emptyLabel"
|
|
1940
2462
|
]);
|
|
1941
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Select, __spreadValues$
|
|
2463
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Select, __spreadValues$A({}, restProps), emptyLabel && /* @__PURE__ */ React__default.createElement(Select$1.Option, { value: "" }, emptyLabel), enumValues.map((v) => {
|
|
1942
2464
|
const item = typeof v === "string" ? { value: v, text: v } : v;
|
|
1943
2465
|
return /* @__PURE__ */ React__default.createElement(
|
|
1944
2466
|
Select$1.Option,
|
|
@@ -1952,31 +2474,31 @@ const FieldsEnum = (_a) => {
|
|
|
1952
2474
|
})));
|
|
1953
2475
|
};
|
|
1954
2476
|
|
|
1955
|
-
var __defProp$
|
|
1956
|
-
var __defProps$
|
|
1957
|
-
var __getOwnPropDescs$
|
|
1958
|
-
var __getOwnPropSymbols$
|
|
1959
|
-
var __hasOwnProp$
|
|
1960
|
-
var __propIsEnum$
|
|
1961
|
-
var __defNormalProp$
|
|
2477
|
+
var __defProp$z = Object.defineProperty;
|
|
2478
|
+
var __defProps$v = Object.defineProperties;
|
|
2479
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
2480
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
2481
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
2482
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
2483
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, {
|
|
1962
2484
|
enumerable: true,
|
|
1963
2485
|
configurable: true,
|
|
1964
2486
|
writable: true,
|
|
1965
2487
|
value
|
|
1966
2488
|
}) : obj[key] = value;
|
|
1967
|
-
var __spreadValues$
|
|
1968
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
1969
|
-
if (__getOwnPropSymbols$
|
|
1970
|
-
if (__propIsEnum$
|
|
2489
|
+
var __spreadValues$z = (a, b) => {
|
|
2490
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$A.call(b, prop)) __defNormalProp$z(a, prop, b[prop]);
|
|
2491
|
+
if (__getOwnPropSymbols$A) for (var prop of __getOwnPropSymbols$A(b)) {
|
|
2492
|
+
if (__propIsEnum$A.call(b, prop)) __defNormalProp$z(a, prop, b[prop]);
|
|
1971
2493
|
}
|
|
1972
2494
|
return a;
|
|
1973
2495
|
};
|
|
1974
|
-
var __spreadProps$
|
|
1975
|
-
var __objRest$
|
|
2496
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
2497
|
+
var __objRest$k = (source, exclude) => {
|
|
1976
2498
|
var target = {};
|
|
1977
|
-
for (var prop in source) if (__hasOwnProp$
|
|
1978
|
-
if (source != null && __getOwnPropSymbols$
|
|
1979
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2499
|
+
for (var prop in source) if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2500
|
+
if (source != null && __getOwnPropSymbols$A) for (var prop of __getOwnPropSymbols$A(source)) {
|
|
2501
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop)) target[prop] = source[prop];
|
|
1980
2502
|
}
|
|
1981
2503
|
return target;
|
|
1982
2504
|
};
|
|
@@ -2012,13 +2534,13 @@ const InputNumber = _a => {
|
|
|
2012
2534
|
prefix,
|
|
2013
2535
|
controls = true
|
|
2014
2536
|
} = _b,
|
|
2015
|
-
props = __objRest$
|
|
2537
|
+
props = __objRest$k(_b, ["className", "error", "size", "suffix", "prefix", "controls"]);
|
|
2016
2538
|
const typo = {
|
|
2017
2539
|
large: Typo.Label.l2_regular,
|
|
2018
2540
|
middle: Typo.Label.l3_regular,
|
|
2019
2541
|
small: Typo.Label.l4_regular
|
|
2020
2542
|
}[size];
|
|
2021
|
-
return /* @__PURE__ */React__default.createElement(AntdInputNumberStyled, __spreadProps$
|
|
2543
|
+
return /* @__PURE__ */React__default.createElement(AntdInputNumberStyled, __spreadProps$v(__spreadValues$z({}, props), {
|
|
2022
2544
|
size,
|
|
2023
2545
|
controls,
|
|
2024
2546
|
"data-test": props.name,
|
|
@@ -2028,33 +2550,33 @@ const InputNumber = _a => {
|
|
|
2028
2550
|
}));
|
|
2029
2551
|
};
|
|
2030
2552
|
|
|
2031
|
-
var __defProp$
|
|
2032
|
-
var __defProps$
|
|
2033
|
-
var __getOwnPropDescs$
|
|
2034
|
-
var __getOwnPropSymbols$
|
|
2035
|
-
var __hasOwnProp$
|
|
2036
|
-
var __propIsEnum$
|
|
2037
|
-
var __defNormalProp$
|
|
2038
|
-
var __spreadValues$
|
|
2553
|
+
var __defProp$y = Object.defineProperty;
|
|
2554
|
+
var __defProps$u = Object.defineProperties;
|
|
2555
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
2556
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
2557
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
2558
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
2559
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2560
|
+
var __spreadValues$y = (a, b) => {
|
|
2039
2561
|
for (var prop in b || (b = {}))
|
|
2040
|
-
if (__hasOwnProp$
|
|
2041
|
-
__defNormalProp$
|
|
2042
|
-
if (__getOwnPropSymbols$
|
|
2043
|
-
for (var prop of __getOwnPropSymbols$
|
|
2044
|
-
if (__propIsEnum$
|
|
2045
|
-
__defNormalProp$
|
|
2562
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
2563
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
2564
|
+
if (__getOwnPropSymbols$z)
|
|
2565
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
2566
|
+
if (__propIsEnum$z.call(b, prop))
|
|
2567
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
2046
2568
|
}
|
|
2047
2569
|
return a;
|
|
2048
2570
|
};
|
|
2049
|
-
var __spreadProps$
|
|
2050
|
-
var __objRest$
|
|
2571
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
2572
|
+
var __objRest$j = (source, exclude) => {
|
|
2051
2573
|
var target = {};
|
|
2052
2574
|
for (var prop in source)
|
|
2053
|
-
if (__hasOwnProp$
|
|
2575
|
+
if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2054
2576
|
target[prop] = source[prop];
|
|
2055
|
-
if (source != null && __getOwnPropSymbols$
|
|
2056
|
-
for (var prop of __getOwnPropSymbols$
|
|
2057
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2577
|
+
if (source != null && __getOwnPropSymbols$z)
|
|
2578
|
+
for (var prop of __getOwnPropSymbols$z(source)) {
|
|
2579
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
|
|
2058
2580
|
target[prop] = source[prop];
|
|
2059
2581
|
}
|
|
2060
2582
|
return target;
|
|
@@ -2065,7 +2587,7 @@ const FieldsFloat = (_a) => {
|
|
|
2065
2587
|
meta,
|
|
2066
2588
|
onBlur,
|
|
2067
2589
|
autoComplete = "off"
|
|
2068
|
-
} = _b, props = __objRest$
|
|
2590
|
+
} = _b, props = __objRest$j(_b, [
|
|
2069
2591
|
"input",
|
|
2070
2592
|
"meta",
|
|
2071
2593
|
"onBlur",
|
|
@@ -2073,7 +2595,7 @@ const FieldsFloat = (_a) => {
|
|
|
2073
2595
|
]);
|
|
2074
2596
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2075
2597
|
InputNumber,
|
|
2076
|
-
__spreadValues$
|
|
2598
|
+
__spreadValues$y(__spreadProps$u(__spreadValues$y({}, input), {
|
|
2077
2599
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
2078
2600
|
autoComplete,
|
|
2079
2601
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
@@ -2081,33 +2603,33 @@ const FieldsFloat = (_a) => {
|
|
|
2081
2603
|
));
|
|
2082
2604
|
};
|
|
2083
2605
|
|
|
2084
|
-
var __defProp$
|
|
2085
|
-
var __defProps$
|
|
2086
|
-
var __getOwnPropDescs$
|
|
2087
|
-
var __getOwnPropSymbols$
|
|
2088
|
-
var __hasOwnProp$
|
|
2089
|
-
var __propIsEnum$
|
|
2090
|
-
var __defNormalProp$
|
|
2091
|
-
var __spreadValues$
|
|
2606
|
+
var __defProp$x = Object.defineProperty;
|
|
2607
|
+
var __defProps$t = Object.defineProperties;
|
|
2608
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
2609
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
2610
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
2611
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
2612
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2613
|
+
var __spreadValues$x = (a, b) => {
|
|
2092
2614
|
for (var prop in b || (b = {}))
|
|
2093
|
-
if (__hasOwnProp$
|
|
2094
|
-
__defNormalProp$
|
|
2095
|
-
if (__getOwnPropSymbols$
|
|
2096
|
-
for (var prop of __getOwnPropSymbols$
|
|
2097
|
-
if (__propIsEnum$
|
|
2098
|
-
__defNormalProp$
|
|
2615
|
+
if (__hasOwnProp$y.call(b, prop))
|
|
2616
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
2617
|
+
if (__getOwnPropSymbols$y)
|
|
2618
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
|
2619
|
+
if (__propIsEnum$y.call(b, prop))
|
|
2620
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
2099
2621
|
}
|
|
2100
2622
|
return a;
|
|
2101
2623
|
};
|
|
2102
|
-
var __spreadProps$
|
|
2103
|
-
var __objRest$
|
|
2624
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
2625
|
+
var __objRest$i = (source, exclude) => {
|
|
2104
2626
|
var target = {};
|
|
2105
2627
|
for (var prop in source)
|
|
2106
|
-
if (__hasOwnProp$
|
|
2628
|
+
if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2107
2629
|
target[prop] = source[prop];
|
|
2108
|
-
if (source != null && __getOwnPropSymbols$
|
|
2109
|
-
for (var prop of __getOwnPropSymbols$
|
|
2110
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2630
|
+
if (source != null && __getOwnPropSymbols$y)
|
|
2631
|
+
for (var prop of __getOwnPropSymbols$y(source)) {
|
|
2632
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
|
|
2111
2633
|
target[prop] = source[prop];
|
|
2112
2634
|
}
|
|
2113
2635
|
return target;
|
|
@@ -2117,7 +2639,7 @@ const Input = (_a) => {
|
|
|
2117
2639
|
className,
|
|
2118
2640
|
error,
|
|
2119
2641
|
size = "middle"
|
|
2120
|
-
} = _b, props = __objRest$
|
|
2642
|
+
} = _b, props = __objRest$i(_b, [
|
|
2121
2643
|
"className",
|
|
2122
2644
|
"error",
|
|
2123
2645
|
"size"
|
|
@@ -2129,7 +2651,7 @@ const Input = (_a) => {
|
|
|
2129
2651
|
}[size];
|
|
2130
2652
|
return /* @__PURE__ */ React__default.createElement(
|
|
2131
2653
|
Input$1,
|
|
2132
|
-
__spreadProps$
|
|
2654
|
+
__spreadProps$t(__spreadValues$x({}, props), {
|
|
2133
2655
|
size,
|
|
2134
2656
|
"data-test": props.name,
|
|
2135
2657
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
@@ -2137,33 +2659,33 @@ const Input = (_a) => {
|
|
|
2137
2659
|
);
|
|
2138
2660
|
};
|
|
2139
2661
|
|
|
2140
|
-
var __defProp$
|
|
2141
|
-
var __defProps$
|
|
2142
|
-
var __getOwnPropDescs$
|
|
2143
|
-
var __getOwnPropSymbols$
|
|
2144
|
-
var __hasOwnProp$
|
|
2145
|
-
var __propIsEnum$
|
|
2146
|
-
var __defNormalProp$
|
|
2147
|
-
var __spreadValues$
|
|
2662
|
+
var __defProp$w = Object.defineProperty;
|
|
2663
|
+
var __defProps$s = Object.defineProperties;
|
|
2664
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
2665
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
2666
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
2667
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
2668
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2669
|
+
var __spreadValues$w = (a, b) => {
|
|
2148
2670
|
for (var prop in b || (b = {}))
|
|
2149
|
-
if (__hasOwnProp$
|
|
2150
|
-
__defNormalProp$
|
|
2151
|
-
if (__getOwnPropSymbols$
|
|
2152
|
-
for (var prop of __getOwnPropSymbols$
|
|
2153
|
-
if (__propIsEnum$
|
|
2154
|
-
__defNormalProp$
|
|
2671
|
+
if (__hasOwnProp$x.call(b, prop))
|
|
2672
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
2673
|
+
if (__getOwnPropSymbols$x)
|
|
2674
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
|
2675
|
+
if (__propIsEnum$x.call(b, prop))
|
|
2676
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
2155
2677
|
}
|
|
2156
2678
|
return a;
|
|
2157
2679
|
};
|
|
2158
|
-
var __spreadProps$
|
|
2159
|
-
var __objRest$
|
|
2680
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
2681
|
+
var __objRest$h = (source, exclude) => {
|
|
2160
2682
|
var target = {};
|
|
2161
2683
|
for (var prop in source)
|
|
2162
|
-
if (__hasOwnProp$
|
|
2684
|
+
if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2163
2685
|
target[prop] = source[prop];
|
|
2164
|
-
if (source != null && __getOwnPropSymbols$
|
|
2165
|
-
for (var prop of __getOwnPropSymbols$
|
|
2166
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2686
|
+
if (source != null && __getOwnPropSymbols$x)
|
|
2687
|
+
for (var prop of __getOwnPropSymbols$x(source)) {
|
|
2688
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
|
|
2167
2689
|
target[prop] = source[prop];
|
|
2168
2690
|
}
|
|
2169
2691
|
return target;
|
|
@@ -2175,7 +2697,7 @@ const FieldsInt = (_a) => {
|
|
|
2175
2697
|
onBlur,
|
|
2176
2698
|
autoComplete = "off",
|
|
2177
2699
|
supportNegativeValue = false
|
|
2178
|
-
} = _b, props = __objRest$
|
|
2700
|
+
} = _b, props = __objRest$h(_b, [
|
|
2179
2701
|
"input",
|
|
2180
2702
|
"meta",
|
|
2181
2703
|
"onBlur",
|
|
@@ -2184,7 +2706,7 @@ const FieldsInt = (_a) => {
|
|
|
2184
2706
|
]);
|
|
2185
2707
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2186
2708
|
Input,
|
|
2187
|
-
__spreadValues$
|
|
2709
|
+
__spreadValues$w(__spreadProps$s(__spreadValues$w({}, input), {
|
|
2188
2710
|
onChange: (e) => {
|
|
2189
2711
|
const value = e.currentTarget.value;
|
|
2190
2712
|
if (supportNegativeValue) {
|
|
@@ -2219,31 +2741,31 @@ const formatterInteger = (value) => {
|
|
|
2219
2741
|
}
|
|
2220
2742
|
};
|
|
2221
2743
|
|
|
2222
|
-
var __defProp$
|
|
2223
|
-
var __defProps$
|
|
2224
|
-
var __getOwnPropDescs$
|
|
2225
|
-
var __getOwnPropSymbols$
|
|
2226
|
-
var __hasOwnProp$
|
|
2227
|
-
var __propIsEnum$
|
|
2228
|
-
var __defNormalProp$
|
|
2744
|
+
var __defProp$v = Object.defineProperty;
|
|
2745
|
+
var __defProps$r = Object.defineProperties;
|
|
2746
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
2747
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
2748
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
2749
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
2750
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, {
|
|
2229
2751
|
enumerable: true,
|
|
2230
2752
|
configurable: true,
|
|
2231
2753
|
writable: true,
|
|
2232
2754
|
value
|
|
2233
2755
|
}) : obj[key] = value;
|
|
2234
|
-
var __spreadValues$
|
|
2235
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2236
|
-
if (__getOwnPropSymbols$
|
|
2237
|
-
if (__propIsEnum$
|
|
2756
|
+
var __spreadValues$v = (a, b) => {
|
|
2757
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$w.call(b, prop)) __defNormalProp$v(a, prop, b[prop]);
|
|
2758
|
+
if (__getOwnPropSymbols$w) for (var prop of __getOwnPropSymbols$w(b)) {
|
|
2759
|
+
if (__propIsEnum$w.call(b, prop)) __defNormalProp$v(a, prop, b[prop]);
|
|
2238
2760
|
}
|
|
2239
2761
|
return a;
|
|
2240
2762
|
};
|
|
2241
|
-
var __spreadProps$
|
|
2242
|
-
var __objRest$
|
|
2763
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
2764
|
+
var __objRest$g = (source, exclude) => {
|
|
2243
2765
|
var target = {};
|
|
2244
|
-
for (var prop in source) if (__hasOwnProp$
|
|
2245
|
-
if (source != null && __getOwnPropSymbols$
|
|
2246
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2766
|
+
for (var prop in source) if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2767
|
+
if (source != null && __getOwnPropSymbols$w) for (var prop of __getOwnPropSymbols$w(source)) {
|
|
2768
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop)) target[prop] = source[prop];
|
|
2247
2769
|
}
|
|
2248
2770
|
return target;
|
|
2249
2771
|
};
|
|
@@ -2281,13 +2803,13 @@ const InputInteger = _a => {
|
|
|
2281
2803
|
min,
|
|
2282
2804
|
controls = false
|
|
2283
2805
|
} = _b,
|
|
2284
|
-
props = __objRest$
|
|
2806
|
+
props = __objRest$g(_b, ["className", "error", "size", "suffix", "prefix", "max", "min", "controls"]);
|
|
2285
2807
|
const typo = {
|
|
2286
2808
|
large: Typo.Label.l2_regular,
|
|
2287
2809
|
middle: Typo.Label.l3_regular,
|
|
2288
2810
|
small: Typo.Label.l4_regular
|
|
2289
2811
|
}[size];
|
|
2290
|
-
return /* @__PURE__ */React__default.createElement(AntdIntStyled, __spreadProps$
|
|
2812
|
+
return /* @__PURE__ */React__default.createElement(AntdIntStyled, __spreadProps$r(__spreadValues$v({}, props), {
|
|
2291
2813
|
size,
|
|
2292
2814
|
formatter: formatterInteger,
|
|
2293
2815
|
parser: formatterInteger,
|
|
@@ -2301,33 +2823,33 @@ const InputInteger = _a => {
|
|
|
2301
2823
|
}));
|
|
2302
2824
|
};
|
|
2303
2825
|
|
|
2304
|
-
var __defProp$
|
|
2305
|
-
var __defProps$
|
|
2306
|
-
var __getOwnPropDescs$
|
|
2307
|
-
var __getOwnPropSymbols$
|
|
2308
|
-
var __hasOwnProp$
|
|
2309
|
-
var __propIsEnum$
|
|
2310
|
-
var __defNormalProp$
|
|
2311
|
-
var __spreadValues$
|
|
2826
|
+
var __defProp$u = Object.defineProperty;
|
|
2827
|
+
var __defProps$q = Object.defineProperties;
|
|
2828
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
2829
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
2830
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
2831
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
2832
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2833
|
+
var __spreadValues$u = (a, b) => {
|
|
2312
2834
|
for (var prop in b || (b = {}))
|
|
2313
|
-
if (__hasOwnProp$
|
|
2314
|
-
__defNormalProp$
|
|
2315
|
-
if (__getOwnPropSymbols$
|
|
2316
|
-
for (var prop of __getOwnPropSymbols$
|
|
2317
|
-
if (__propIsEnum$
|
|
2318
|
-
__defNormalProp$
|
|
2835
|
+
if (__hasOwnProp$v.call(b, prop))
|
|
2836
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
2837
|
+
if (__getOwnPropSymbols$v)
|
|
2838
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
|
2839
|
+
if (__propIsEnum$v.call(b, prop))
|
|
2840
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
2319
2841
|
}
|
|
2320
2842
|
return a;
|
|
2321
2843
|
};
|
|
2322
|
-
var __spreadProps$
|
|
2323
|
-
var __objRest$
|
|
2844
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
2845
|
+
var __objRest$f = (source, exclude) => {
|
|
2324
2846
|
var target = {};
|
|
2325
2847
|
for (var prop in source)
|
|
2326
|
-
if (__hasOwnProp$
|
|
2848
|
+
if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2327
2849
|
target[prop] = source[prop];
|
|
2328
|
-
if (source != null && __getOwnPropSymbols$
|
|
2329
|
-
for (var prop of __getOwnPropSymbols$
|
|
2330
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2850
|
+
if (source != null && __getOwnPropSymbols$v)
|
|
2851
|
+
for (var prop of __getOwnPropSymbols$v(source)) {
|
|
2852
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
|
|
2331
2853
|
target[prop] = source[prop];
|
|
2332
2854
|
}
|
|
2333
2855
|
return target;
|
|
@@ -2337,14 +2859,14 @@ const FieldsInteger = (_a) => {
|
|
|
2337
2859
|
meta,
|
|
2338
2860
|
input,
|
|
2339
2861
|
onBlur
|
|
2340
|
-
} = _b, props = __objRest$
|
|
2862
|
+
} = _b, props = __objRest$f(_b, [
|
|
2341
2863
|
"meta",
|
|
2342
2864
|
"input",
|
|
2343
2865
|
"onBlur"
|
|
2344
2866
|
]);
|
|
2345
2867
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2346
2868
|
InputInteger,
|
|
2347
|
-
__spreadProps$
|
|
2869
|
+
__spreadProps$q(__spreadValues$u(__spreadValues$u({}, props), input), {
|
|
2348
2870
|
onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
|
|
2349
2871
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
2350
2872
|
})
|
|
@@ -2509,33 +3031,33 @@ const Overflow = props => {
|
|
|
2509
3031
|
}, children), showOverflow && /* @__PURE__ */React__default.createElement("span", null, overflow));
|
|
2510
3032
|
};
|
|
2511
3033
|
|
|
2512
|
-
var __defProp$
|
|
2513
|
-
var __defProps$
|
|
2514
|
-
var __getOwnPropDescs$
|
|
2515
|
-
var __getOwnPropSymbols$
|
|
2516
|
-
var __hasOwnProp$
|
|
2517
|
-
var __propIsEnum$
|
|
2518
|
-
var __defNormalProp$
|
|
2519
|
-
var __spreadValues$
|
|
3034
|
+
var __defProp$t = Object.defineProperty;
|
|
3035
|
+
var __defProps$p = Object.defineProperties;
|
|
3036
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
3037
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
3038
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
3039
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
3040
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3041
|
+
var __spreadValues$t = (a, b) => {
|
|
2520
3042
|
for (var prop in b || (b = {}))
|
|
2521
|
-
if (__hasOwnProp$
|
|
2522
|
-
__defNormalProp$
|
|
2523
|
-
if (__getOwnPropSymbols$
|
|
2524
|
-
for (var prop of __getOwnPropSymbols$
|
|
2525
|
-
if (__propIsEnum$
|
|
2526
|
-
__defNormalProp$
|
|
3043
|
+
if (__hasOwnProp$u.call(b, prop))
|
|
3044
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
3045
|
+
if (__getOwnPropSymbols$u)
|
|
3046
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
|
3047
|
+
if (__propIsEnum$u.call(b, prop))
|
|
3048
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
2527
3049
|
}
|
|
2528
3050
|
return a;
|
|
2529
3051
|
};
|
|
2530
|
-
var __spreadProps$
|
|
2531
|
-
var __objRest$
|
|
3052
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
3053
|
+
var __objRest$e = (source, exclude) => {
|
|
2532
3054
|
var target = {};
|
|
2533
3055
|
for (var prop in source)
|
|
2534
|
-
if (__hasOwnProp$
|
|
3056
|
+
if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2535
3057
|
target[prop] = source[prop];
|
|
2536
|
-
if (source != null && __getOwnPropSymbols$
|
|
2537
|
-
for (var prop of __getOwnPropSymbols$
|
|
2538
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3058
|
+
if (source != null && __getOwnPropSymbols$u)
|
|
3059
|
+
for (var prop of __getOwnPropSymbols$u(source)) {
|
|
3060
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
|
|
2539
3061
|
target[prop] = source[prop];
|
|
2540
3062
|
}
|
|
2541
3063
|
return target;
|
|
@@ -2554,7 +3076,7 @@ const FieldsString = (_a) => {
|
|
|
2554
3076
|
onClick,
|
|
2555
3077
|
maxLength,
|
|
2556
3078
|
focusIndicator
|
|
2557
|
-
} = _b, props = __objRest$
|
|
3079
|
+
} = _b, props = __objRest$e(_b, [
|
|
2558
3080
|
"input",
|
|
2559
3081
|
"meta",
|
|
2560
3082
|
"autoComplete",
|
|
@@ -2586,7 +3108,7 @@ const FieldsString = (_a) => {
|
|
|
2586
3108
|
}
|
|
2587
3109
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2588
3110
|
Input,
|
|
2589
|
-
__spreadProps$
|
|
3111
|
+
__spreadProps$p(__spreadValues$t(__spreadProps$p(__spreadValues$t({
|
|
2590
3112
|
className: cs(
|
|
2591
3113
|
className,
|
|
2592
3114
|
KitInputStyle,
|
|
@@ -2611,33 +3133,33 @@ const FieldsString = (_a) => {
|
|
|
2611
3133
|
));
|
|
2612
3134
|
};
|
|
2613
3135
|
|
|
2614
|
-
var __defProp$
|
|
2615
|
-
var __defProps$
|
|
2616
|
-
var __getOwnPropDescs$
|
|
2617
|
-
var __getOwnPropSymbols$
|
|
2618
|
-
var __hasOwnProp$
|
|
2619
|
-
var __propIsEnum$
|
|
2620
|
-
var __defNormalProp$
|
|
2621
|
-
var __spreadValues$
|
|
3136
|
+
var __defProp$s = Object.defineProperty;
|
|
3137
|
+
var __defProps$o = Object.defineProperties;
|
|
3138
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
3139
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
3140
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
3141
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
3142
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3143
|
+
var __spreadValues$s = (a, b) => {
|
|
2622
3144
|
for (var prop in b || (b = {}))
|
|
2623
|
-
if (__hasOwnProp$
|
|
2624
|
-
__defNormalProp$
|
|
2625
|
-
if (__getOwnPropSymbols$
|
|
2626
|
-
for (var prop of __getOwnPropSymbols$
|
|
2627
|
-
if (__propIsEnum$
|
|
2628
|
-
__defNormalProp$
|
|
3145
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
3146
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
3147
|
+
if (__getOwnPropSymbols$t)
|
|
3148
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
3149
|
+
if (__propIsEnum$t.call(b, prop))
|
|
3150
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
2629
3151
|
}
|
|
2630
3152
|
return a;
|
|
2631
3153
|
};
|
|
2632
|
-
var __spreadProps$
|
|
2633
|
-
var __objRest$
|
|
3154
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
3155
|
+
var __objRest$d = (source, exclude) => {
|
|
2634
3156
|
var target = {};
|
|
2635
3157
|
for (var prop in source)
|
|
2636
|
-
if (__hasOwnProp$
|
|
3158
|
+
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2637
3159
|
target[prop] = source[prop];
|
|
2638
|
-
if (source != null && __getOwnPropSymbols$
|
|
2639
|
-
for (var prop of __getOwnPropSymbols$
|
|
2640
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3160
|
+
if (source != null && __getOwnPropSymbols$t)
|
|
3161
|
+
for (var prop of __getOwnPropSymbols$t(source)) {
|
|
3162
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
|
|
2641
3163
|
target[prop] = source[prop];
|
|
2642
3164
|
}
|
|
2643
3165
|
return target;
|
|
@@ -2647,7 +3169,7 @@ const TextArea = (_a) => {
|
|
|
2647
3169
|
className,
|
|
2648
3170
|
error,
|
|
2649
3171
|
size = "middle"
|
|
2650
|
-
} = _b, props = __objRest$
|
|
3172
|
+
} = _b, props = __objRest$d(_b, [
|
|
2651
3173
|
"className",
|
|
2652
3174
|
"error",
|
|
2653
3175
|
"size"
|
|
@@ -2659,7 +3181,7 @@ const TextArea = (_a) => {
|
|
|
2659
3181
|
}[size];
|
|
2660
3182
|
return /* @__PURE__ */ React__default.createElement(
|
|
2661
3183
|
Input$1.TextArea,
|
|
2662
|
-
__spreadProps$
|
|
3184
|
+
__spreadProps$o(__spreadValues$s({}, props), {
|
|
2663
3185
|
className: cs(
|
|
2664
3186
|
className,
|
|
2665
3187
|
InputStyle,
|
|
@@ -2673,33 +3195,33 @@ const TextArea = (_a) => {
|
|
|
2673
3195
|
);
|
|
2674
3196
|
};
|
|
2675
3197
|
|
|
2676
|
-
var __defProp$
|
|
2677
|
-
var __defProps$
|
|
2678
|
-
var __getOwnPropDescs$
|
|
2679
|
-
var __getOwnPropSymbols$
|
|
2680
|
-
var __hasOwnProp$
|
|
2681
|
-
var __propIsEnum$
|
|
2682
|
-
var __defNormalProp$
|
|
2683
|
-
var __spreadValues$
|
|
3198
|
+
var __defProp$r = Object.defineProperty;
|
|
3199
|
+
var __defProps$n = Object.defineProperties;
|
|
3200
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
3201
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
3202
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
3203
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
3204
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3205
|
+
var __spreadValues$r = (a, b) => {
|
|
2684
3206
|
for (var prop in b || (b = {}))
|
|
2685
|
-
if (__hasOwnProp$
|
|
2686
|
-
__defNormalProp$
|
|
2687
|
-
if (__getOwnPropSymbols$
|
|
2688
|
-
for (var prop of __getOwnPropSymbols$
|
|
2689
|
-
if (__propIsEnum$
|
|
2690
|
-
__defNormalProp$
|
|
3207
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
3208
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
3209
|
+
if (__getOwnPropSymbols$s)
|
|
3210
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
3211
|
+
if (__propIsEnum$s.call(b, prop))
|
|
3212
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
2691
3213
|
}
|
|
2692
3214
|
return a;
|
|
2693
3215
|
};
|
|
2694
|
-
var __spreadProps$
|
|
2695
|
-
var __objRest$
|
|
3216
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
3217
|
+
var __objRest$c = (source, exclude) => {
|
|
2696
3218
|
var target = {};
|
|
2697
3219
|
for (var prop in source)
|
|
2698
|
-
if (__hasOwnProp$
|
|
3220
|
+
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2699
3221
|
target[prop] = source[prop];
|
|
2700
|
-
if (source != null && __getOwnPropSymbols$
|
|
2701
|
-
for (var prop of __getOwnPropSymbols$
|
|
2702
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3222
|
+
if (source != null && __getOwnPropSymbols$s)
|
|
3223
|
+
for (var prop of __getOwnPropSymbols$s(source)) {
|
|
3224
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
|
|
2703
3225
|
target[prop] = source[prop];
|
|
2704
3226
|
}
|
|
2705
3227
|
return target;
|
|
@@ -2709,14 +3231,14 @@ const FieldsTextArea = (_a) => {
|
|
|
2709
3231
|
input,
|
|
2710
3232
|
meta,
|
|
2711
3233
|
onFocusChangeHeight
|
|
2712
|
-
} = _b, props = __objRest$
|
|
3234
|
+
} = _b, props = __objRest$c(_b, [
|
|
2713
3235
|
"input",
|
|
2714
3236
|
"meta",
|
|
2715
3237
|
"onFocusChangeHeight"
|
|
2716
3238
|
]);
|
|
2717
3239
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2718
3240
|
TextArea,
|
|
2719
|
-
__spreadProps$
|
|
3241
|
+
__spreadProps$n(__spreadValues$r(__spreadValues$r({}, input), props), {
|
|
2720
3242
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError),
|
|
2721
3243
|
onFocus: (e) => {
|
|
2722
3244
|
input.onFocus(e);
|
|
@@ -2730,33 +3252,33 @@ const FieldsTextArea = (_a) => {
|
|
|
2730
3252
|
));
|
|
2731
3253
|
};
|
|
2732
3254
|
|
|
2733
|
-
var __defProp$
|
|
2734
|
-
var __defProps$
|
|
2735
|
-
var __getOwnPropDescs$
|
|
2736
|
-
var __getOwnPropSymbols$
|
|
2737
|
-
var __hasOwnProp$
|
|
2738
|
-
var __propIsEnum$
|
|
2739
|
-
var __defNormalProp$
|
|
2740
|
-
var __spreadValues$
|
|
3255
|
+
var __defProp$q = Object.defineProperty;
|
|
3256
|
+
var __defProps$m = Object.defineProperties;
|
|
3257
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
3258
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
3259
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
3260
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
3261
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3262
|
+
var __spreadValues$q = (a, b) => {
|
|
2741
3263
|
for (var prop in b || (b = {}))
|
|
2742
|
-
if (__hasOwnProp$
|
|
2743
|
-
__defNormalProp$
|
|
2744
|
-
if (__getOwnPropSymbols$
|
|
2745
|
-
for (var prop of __getOwnPropSymbols$
|
|
2746
|
-
if (__propIsEnum$
|
|
2747
|
-
__defNormalProp$
|
|
3264
|
+
if (__hasOwnProp$r.call(b, prop))
|
|
3265
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
3266
|
+
if (__getOwnPropSymbols$r)
|
|
3267
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
|
3268
|
+
if (__propIsEnum$r.call(b, prop))
|
|
3269
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
2748
3270
|
}
|
|
2749
3271
|
return a;
|
|
2750
3272
|
};
|
|
2751
|
-
var __spreadProps$
|
|
2752
|
-
var __objRest$
|
|
3273
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
3274
|
+
var __objRest$b = (source, exclude) => {
|
|
2753
3275
|
var target = {};
|
|
2754
3276
|
for (var prop in source)
|
|
2755
|
-
if (__hasOwnProp$
|
|
3277
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2756
3278
|
target[prop] = source[prop];
|
|
2757
|
-
if (source != null && __getOwnPropSymbols$
|
|
2758
|
-
for (var prop of __getOwnPropSymbols$
|
|
2759
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3279
|
+
if (source != null && __getOwnPropSymbols$r)
|
|
3280
|
+
for (var prop of __getOwnPropSymbols$r(source)) {
|
|
3281
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
|
|
2760
3282
|
target[prop] = source[prop];
|
|
2761
3283
|
}
|
|
2762
3284
|
return target;
|
|
@@ -2766,7 +3288,7 @@ const TimePicker = (_a) => {
|
|
|
2766
3288
|
className,
|
|
2767
3289
|
error,
|
|
2768
3290
|
size = "middle"
|
|
2769
|
-
} = _b, props = __objRest$
|
|
3291
|
+
} = _b, props = __objRest$b(_b, [
|
|
2770
3292
|
"className",
|
|
2771
3293
|
"error",
|
|
2772
3294
|
"size"
|
|
@@ -2778,41 +3300,41 @@ const TimePicker = (_a) => {
|
|
|
2778
3300
|
}[size];
|
|
2779
3301
|
return /* @__PURE__ */ React__default.createElement(
|
|
2780
3302
|
TimePicker$1,
|
|
2781
|
-
__spreadProps$
|
|
3303
|
+
__spreadProps$m(__spreadValues$q({}, props), {
|
|
2782
3304
|
size,
|
|
2783
3305
|
"data-test": props.name,
|
|
2784
3306
|
className: cs(className, InputStyle, typo, error ? "error" : "")
|
|
2785
3307
|
})
|
|
2786
3308
|
);
|
|
2787
|
-
};
|
|
2788
|
-
|
|
2789
|
-
var __defProp$
|
|
2790
|
-
var __defProps$
|
|
2791
|
-
var __getOwnPropDescs$
|
|
2792
|
-
var __getOwnPropSymbols$
|
|
2793
|
-
var __hasOwnProp$
|
|
2794
|
-
var __propIsEnum$
|
|
2795
|
-
var __defNormalProp$
|
|
2796
|
-
var __spreadValues$
|
|
3309
|
+
};
|
|
3310
|
+
|
|
3311
|
+
var __defProp$p = Object.defineProperty;
|
|
3312
|
+
var __defProps$l = Object.defineProperties;
|
|
3313
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
3314
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
3315
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
3316
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
3317
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3318
|
+
var __spreadValues$p = (a, b) => {
|
|
2797
3319
|
for (var prop in b || (b = {}))
|
|
2798
|
-
if (__hasOwnProp$
|
|
2799
|
-
__defNormalProp$
|
|
2800
|
-
if (__getOwnPropSymbols$
|
|
2801
|
-
for (var prop of __getOwnPropSymbols$
|
|
2802
|
-
if (__propIsEnum$
|
|
2803
|
-
__defNormalProp$
|
|
3320
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
3321
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
3322
|
+
if (__getOwnPropSymbols$q)
|
|
3323
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
3324
|
+
if (__propIsEnum$q.call(b, prop))
|
|
3325
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
2804
3326
|
}
|
|
2805
3327
|
return a;
|
|
2806
3328
|
};
|
|
2807
|
-
var __spreadProps$
|
|
2808
|
-
var __objRest$
|
|
3329
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
3330
|
+
var __objRest$a = (source, exclude) => {
|
|
2809
3331
|
var target = {};
|
|
2810
3332
|
for (var prop in source)
|
|
2811
|
-
if (__hasOwnProp$
|
|
3333
|
+
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2812
3334
|
target[prop] = source[prop];
|
|
2813
|
-
if (source != null && __getOwnPropSymbols$
|
|
2814
|
-
for (var prop of __getOwnPropSymbols$
|
|
2815
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3335
|
+
if (source != null && __getOwnPropSymbols$q)
|
|
3336
|
+
for (var prop of __getOwnPropSymbols$q(source)) {
|
|
3337
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
|
|
2816
3338
|
target[prop] = source[prop];
|
|
2817
3339
|
}
|
|
2818
3340
|
return target;
|
|
@@ -2821,13 +3343,13 @@ const FieldsTimePicker = (_a) => {
|
|
|
2821
3343
|
var _b = _a, {
|
|
2822
3344
|
input,
|
|
2823
3345
|
meta
|
|
2824
|
-
} = _b, props = __objRest$
|
|
3346
|
+
} = _b, props = __objRest$a(_b, [
|
|
2825
3347
|
"input",
|
|
2826
3348
|
"meta"
|
|
2827
3349
|
]);
|
|
2828
3350
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2829
3351
|
TimePicker,
|
|
2830
|
-
__spreadValues$
|
|
3352
|
+
__spreadValues$p(__spreadProps$l(__spreadValues$p({}, input), {
|
|
2831
3353
|
error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
|
|
2832
3354
|
}), props)
|
|
2833
3355
|
));
|
|
@@ -2846,32 +3368,32 @@ const fields = {
|
|
|
2846
3368
|
DateTimeRange: FieldsDateTimeRange
|
|
2847
3369
|
};
|
|
2848
3370
|
|
|
2849
|
-
var __defProp$
|
|
2850
|
-
var __defProps$
|
|
2851
|
-
var __getOwnPropDescs$
|
|
2852
|
-
var __getOwnPropSymbols$
|
|
2853
|
-
var __hasOwnProp$
|
|
2854
|
-
var __propIsEnum$
|
|
2855
|
-
var __defNormalProp$
|
|
3371
|
+
var __defProp$o = Object.defineProperty;
|
|
3372
|
+
var __defProps$k = Object.defineProperties;
|
|
3373
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
3374
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
3375
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
3376
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
3377
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, {
|
|
2856
3378
|
enumerable: true,
|
|
2857
3379
|
configurable: true,
|
|
2858
3380
|
writable: true,
|
|
2859
3381
|
value
|
|
2860
3382
|
}) : obj[key] = value;
|
|
2861
|
-
var __spreadValues$
|
|
2862
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2863
|
-
if (__getOwnPropSymbols$
|
|
2864
|
-
if (__propIsEnum$
|
|
3383
|
+
var __spreadValues$o = (a, b) => {
|
|
3384
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$p.call(b, prop)) __defNormalProp$o(a, prop, b[prop]);
|
|
3385
|
+
if (__getOwnPropSymbols$p) for (var prop of __getOwnPropSymbols$p(b)) {
|
|
3386
|
+
if (__propIsEnum$p.call(b, prop)) __defNormalProp$o(a, prop, b[prop]);
|
|
2865
3387
|
}
|
|
2866
3388
|
return a;
|
|
2867
3389
|
};
|
|
2868
|
-
var __spreadProps$
|
|
3390
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
2869
3391
|
const {
|
|
2870
3392
|
Item: AntdFormItem
|
|
2871
3393
|
} = Form$1;
|
|
2872
3394
|
const FormItemStyle$1 = "f1p9ti6d";
|
|
2873
3395
|
const FormItem$1 = props => {
|
|
2874
|
-
return /* @__PURE__ */React__default.createElement(AntdFormItem, __spreadProps$
|
|
3396
|
+
return /* @__PURE__ */React__default.createElement(AntdFormItem, __spreadProps$k(__spreadValues$o({}, props), {
|
|
2875
3397
|
className: cs(FormItemStyle$1, props.className)
|
|
2876
3398
|
}));
|
|
2877
3399
|
};
|
|
@@ -2879,55 +3401,25 @@ const FormItem$1 = props => {
|
|
|
2879
3401
|
const Form = Form$1;
|
|
2880
3402
|
Form.Item = FormItem$1;
|
|
2881
3403
|
|
|
2882
|
-
var __defProp$
|
|
2883
|
-
var __getOwnPropSymbols$
|
|
2884
|
-
var __hasOwnProp$
|
|
2885
|
-
var __propIsEnum$
|
|
2886
|
-
var __defNormalProp$
|
|
2887
|
-
var __spreadValues$
|
|
2888
|
-
for (var prop in b || (b = {}))
|
|
2889
|
-
if (__hasOwnProp$t.call(b, prop))
|
|
2890
|
-
__defNormalProp$s(a, prop, b[prop]);
|
|
2891
|
-
if (__getOwnPropSymbols$t)
|
|
2892
|
-
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
2893
|
-
if (__propIsEnum$t.call(b, prop))
|
|
2894
|
-
__defNormalProp$s(a, prop, b[prop]);
|
|
2895
|
-
}
|
|
2896
|
-
return a;
|
|
2897
|
-
};
|
|
2898
|
-
const Frequency = ({
|
|
2899
|
-
rawValue,
|
|
2900
|
-
decimals,
|
|
2901
|
-
valueClassName,
|
|
2902
|
-
unitClassName,
|
|
2903
|
-
emptyProps
|
|
2904
|
-
}) => {
|
|
2905
|
-
if (isEmpty(rawValue)) {
|
|
2906
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$s({}, emptyProps));
|
|
2907
|
-
}
|
|
2908
|
-
const { value, unit } = formatFrequency(rawValue, decimals);
|
|
2909
|
-
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
2910
|
-
};
|
|
2911
|
-
|
|
2912
|
-
var __defProp$r = Object.defineProperty;
|
|
2913
|
-
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
2914
|
-
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
2915
|
-
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
2916
|
-
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2917
|
-
var __spreadValues$r = (a, b) => {
|
|
3404
|
+
var __defProp$n = Object.defineProperty;
|
|
3405
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
3406
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
3407
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
3408
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3409
|
+
var __spreadValues$n = (a, b) => {
|
|
2918
3410
|
for (var prop in b || (b = {}))
|
|
2919
|
-
if (__hasOwnProp$
|
|
2920
|
-
__defNormalProp$
|
|
2921
|
-
if (__getOwnPropSymbols$
|
|
2922
|
-
for (var prop of __getOwnPropSymbols$
|
|
2923
|
-
if (__propIsEnum$
|
|
2924
|
-
__defNormalProp$
|
|
3411
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
3412
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
3413
|
+
if (__getOwnPropSymbols$o)
|
|
3414
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
3415
|
+
if (__propIsEnum$o.call(b, prop))
|
|
3416
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2925
3417
|
}
|
|
2926
3418
|
return a;
|
|
2927
3419
|
};
|
|
2928
3420
|
const ParrotTrans = (props) => {
|
|
2929
3421
|
const { i18n } = useParrotTranslation();
|
|
2930
|
-
return /* @__PURE__ */ React__default.createElement(Trans, __spreadValues$
|
|
3422
|
+
return /* @__PURE__ */ React__default.createElement(Trans, __spreadValues$n({ i18n }, props));
|
|
2931
3423
|
};
|
|
2932
3424
|
|
|
2933
3425
|
const PresetColors$3 = [
|
|
@@ -2947,31 +3439,31 @@ const TagStyle$1 = "tnd6h4m";
|
|
|
2947
3439
|
const IconStyle$1 = "i1qw4clm";
|
|
2948
3440
|
const NameTagStyle = "n1r5ku5l";
|
|
2949
3441
|
|
|
2950
|
-
var __defProp$
|
|
2951
|
-
var __defProps$
|
|
2952
|
-
var __getOwnPropDescs$
|
|
2953
|
-
var __getOwnPropSymbols$
|
|
2954
|
-
var __hasOwnProp$
|
|
2955
|
-
var __propIsEnum$
|
|
2956
|
-
var __defNormalProp$
|
|
3442
|
+
var __defProp$m = Object.defineProperty;
|
|
3443
|
+
var __defProps$j = Object.defineProperties;
|
|
3444
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
3445
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
3446
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
3447
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
3448
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, {
|
|
2957
3449
|
enumerable: true,
|
|
2958
3450
|
configurable: true,
|
|
2959
3451
|
writable: true,
|
|
2960
3452
|
value
|
|
2961
3453
|
}) : obj[key] = value;
|
|
2962
|
-
var __spreadValues$
|
|
2963
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2964
|
-
if (__getOwnPropSymbols$
|
|
2965
|
-
if (__propIsEnum$
|
|
3454
|
+
var __spreadValues$m = (a, b) => {
|
|
3455
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$n.call(b, prop)) __defNormalProp$m(a, prop, b[prop]);
|
|
3456
|
+
if (__getOwnPropSymbols$n) for (var prop of __getOwnPropSymbols$n(b)) {
|
|
3457
|
+
if (__propIsEnum$n.call(b, prop)) __defNormalProp$m(a, prop, b[prop]);
|
|
2966
3458
|
}
|
|
2967
3459
|
return a;
|
|
2968
3460
|
};
|
|
2969
|
-
var __spreadProps$
|
|
2970
|
-
var __objRest$
|
|
3461
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
3462
|
+
var __objRest$9 = (source, exclude) => {
|
|
2971
3463
|
var target = {};
|
|
2972
|
-
for (var prop in source) if (__hasOwnProp$
|
|
2973
|
-
if (source != null && __getOwnPropSymbols$
|
|
2974
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3464
|
+
for (var prop in source) if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3465
|
+
if (source != null && __getOwnPropSymbols$n) for (var prop of __getOwnPropSymbols$n(source)) {
|
|
3466
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop)) target[prop] = source[prop];
|
|
2975
3467
|
}
|
|
2976
3468
|
return target;
|
|
2977
3469
|
};
|
|
@@ -2986,8 +3478,8 @@ const SplitTag = _a => {
|
|
|
2986
3478
|
secondaryContent,
|
|
2987
3479
|
icon
|
|
2988
3480
|
} = _b,
|
|
2989
|
-
props = __objRest$
|
|
2990
|
-
return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$
|
|
3481
|
+
props = __objRest$9(_b, ["size", "color", "className", "primaryContent", "secondaryContent", "icon"]);
|
|
3482
|
+
return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$j(__spreadValues$m({}, props), {
|
|
2991
3483
|
className: cs(className, TagStyle$1, Size$1[size], WrapperStyle, Typo.Label.l4_regular, {
|
|
2992
3484
|
[`ant-tag-${color}`]: PresetColors$3.includes(color)
|
|
2993
3485
|
}, "outside-tag")
|
|
@@ -3000,33 +3492,33 @@ const SplitTag = _a => {
|
|
|
3000
3492
|
}, icon), primaryContent), secondaryContent);
|
|
3001
3493
|
};
|
|
3002
3494
|
|
|
3003
|
-
var __defProp$
|
|
3004
|
-
var __defProps$
|
|
3005
|
-
var __getOwnPropDescs$
|
|
3006
|
-
var __getOwnPropSymbols$
|
|
3007
|
-
var __hasOwnProp$
|
|
3008
|
-
var __propIsEnum$
|
|
3009
|
-
var __defNormalProp$
|
|
3010
|
-
var __spreadValues$
|
|
3495
|
+
var __defProp$l = Object.defineProperty;
|
|
3496
|
+
var __defProps$i = Object.defineProperties;
|
|
3497
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
3498
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
3499
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
3500
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
3501
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3502
|
+
var __spreadValues$l = (a, b) => {
|
|
3011
3503
|
for (var prop in b || (b = {}))
|
|
3012
|
-
if (__hasOwnProp$
|
|
3013
|
-
__defNormalProp$
|
|
3014
|
-
if (__getOwnPropSymbols$
|
|
3015
|
-
for (var prop of __getOwnPropSymbols$
|
|
3016
|
-
if (__propIsEnum$
|
|
3017
|
-
__defNormalProp$
|
|
3504
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
3505
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
3506
|
+
if (__getOwnPropSymbols$m)
|
|
3507
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
3508
|
+
if (__propIsEnum$m.call(b, prop))
|
|
3509
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
3018
3510
|
}
|
|
3019
3511
|
return a;
|
|
3020
3512
|
};
|
|
3021
|
-
var __spreadProps$
|
|
3022
|
-
var __objRest$
|
|
3513
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
3514
|
+
var __objRest$8 = (source, exclude) => {
|
|
3023
3515
|
var target = {};
|
|
3024
3516
|
for (var prop in source)
|
|
3025
|
-
if (__hasOwnProp$
|
|
3517
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3026
3518
|
target[prop] = source[prop];
|
|
3027
|
-
if (source != null && __getOwnPropSymbols$
|
|
3028
|
-
for (var prop of __getOwnPropSymbols$
|
|
3029
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3519
|
+
if (source != null && __getOwnPropSymbols$m)
|
|
3520
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
3521
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
|
|
3030
3522
|
target[prop] = source[prop];
|
|
3031
3523
|
}
|
|
3032
3524
|
return target;
|
|
@@ -3051,7 +3543,7 @@ const Tag = (_a) => {
|
|
|
3051
3543
|
hoverable = false,
|
|
3052
3544
|
icon,
|
|
3053
3545
|
children
|
|
3054
|
-
} = _b, props = __objRest$
|
|
3546
|
+
} = _b, props = __objRest$8(_b, [
|
|
3055
3547
|
"size",
|
|
3056
3548
|
"color",
|
|
3057
3549
|
"className",
|
|
@@ -3062,7 +3554,7 @@ const Tag = (_a) => {
|
|
|
3062
3554
|
const computedColor = AntdColorMap[color] || color;
|
|
3063
3555
|
return /* @__PURE__ */ React__default.createElement(
|
|
3064
3556
|
Tag$1,
|
|
3065
|
-
__spreadProps$
|
|
3557
|
+
__spreadProps$i(__spreadValues$l({}, props), {
|
|
3066
3558
|
className: cs(className, Size$1[size], TagStyle$1, Typo.Label.l4_regular, {
|
|
3067
3559
|
[`ant-tag-${computedColor}`]: PresetColors$2.includes(computedColor),
|
|
3068
3560
|
"tag-hover": hoverable
|
|
@@ -3075,20 +3567,20 @@ const Tag = (_a) => {
|
|
|
3075
3567
|
);
|
|
3076
3568
|
};
|
|
3077
3569
|
const NameTag = (_c) => {
|
|
3078
|
-
var _d = _c, { className } = _d, props = __objRest$
|
|
3079
|
-
return /* @__PURE__ */ React__default.createElement(Tag, __spreadValues$
|
|
3570
|
+
var _d = _c, { className } = _d, props = __objRest$8(_d, ["className"]);
|
|
3571
|
+
return /* @__PURE__ */ React__default.createElement(Tag, __spreadValues$l({ className: cs(NameTagStyle, className) }, props));
|
|
3080
3572
|
};
|
|
3081
3573
|
Tag.SplitTag = SplitTag;
|
|
3082
3574
|
Tag.NameTag = NameTag;
|
|
3083
3575
|
|
|
3084
|
-
var __getOwnPropSymbols$
|
|
3085
|
-
var __hasOwnProp$
|
|
3086
|
-
var __propIsEnum$
|
|
3087
|
-
var __objRest$
|
|
3576
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
3577
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
3578
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
3579
|
+
var __objRest$7 = (source, exclude) => {
|
|
3088
3580
|
var target = {};
|
|
3089
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3090
|
-
if (source != null && __getOwnPropSymbols$
|
|
3091
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3581
|
+
for (var prop in source) if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3582
|
+
if (source != null && __getOwnPropSymbols$l) for (var prop of __getOwnPropSymbols$l(source)) {
|
|
3583
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop)) target[prop] = source[prop];
|
|
3092
3584
|
}
|
|
3093
3585
|
return target;
|
|
3094
3586
|
};
|
|
@@ -3099,7 +3591,7 @@ const I18nNameTag = props => {
|
|
|
3099
3591
|
name,
|
|
3100
3592
|
i18nKey
|
|
3101
3593
|
} = _a,
|
|
3102
|
-
otherOption = __objRest$
|
|
3594
|
+
otherOption = __objRest$7(_a, ["name", "i18nKey"]);
|
|
3103
3595
|
return /* @__PURE__ */React__default.createElement(ParrotTrans, {
|
|
3104
3596
|
i18nKey,
|
|
3105
3597
|
tOptions: otherOption
|
|
@@ -3117,25 +3609,25 @@ const InputGroup = /*#__PURE__*/styled$1(_exp())({
|
|
|
3117
3609
|
propsAsIs: true
|
|
3118
3610
|
});
|
|
3119
3611
|
|
|
3120
|
-
var __defProp$
|
|
3121
|
-
var __defProps$
|
|
3122
|
-
var __getOwnPropDescs$
|
|
3123
|
-
var __getOwnPropSymbols$
|
|
3124
|
-
var __hasOwnProp$
|
|
3125
|
-
var __propIsEnum$
|
|
3126
|
-
var __defNormalProp$
|
|
3127
|
-
var __spreadValues$
|
|
3612
|
+
var __defProp$k = Object.defineProperty;
|
|
3613
|
+
var __defProps$h = Object.defineProperties;
|
|
3614
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
3615
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
3616
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
3617
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
3618
|
+
var __defNormalProp$k = (obj, key2, value) => key2 in obj ? __defProp$k(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
3619
|
+
var __spreadValues$k = (a, b) => {
|
|
3128
3620
|
for (var prop in b || (b = {}))
|
|
3129
|
-
if (__hasOwnProp$
|
|
3130
|
-
__defNormalProp$
|
|
3131
|
-
if (__getOwnPropSymbols$
|
|
3132
|
-
for (var prop of __getOwnPropSymbols$
|
|
3133
|
-
if (__propIsEnum$
|
|
3134
|
-
__defNormalProp$
|
|
3621
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
3622
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
3623
|
+
if (__getOwnPropSymbols$k)
|
|
3624
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
3625
|
+
if (__propIsEnum$k.call(b, prop))
|
|
3626
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
3135
3627
|
}
|
|
3136
3628
|
return a;
|
|
3137
3629
|
};
|
|
3138
|
-
var __spreadProps$
|
|
3630
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
3139
3631
|
let messageInstance;
|
|
3140
3632
|
let defaultDuration = 3;
|
|
3141
3633
|
let defaultTop;
|
|
@@ -3242,7 +3734,7 @@ function notice(args) {
|
|
|
3242
3734
|
}
|
|
3243
3735
|
getRCNotificationInstance(args, ({ prefixCls, instance }) => {
|
|
3244
3736
|
instance.notice(
|
|
3245
|
-
getRCNoticeProps(__spreadProps$
|
|
3737
|
+
getRCNoticeProps(__spreadProps$h(__spreadValues$k({}, args), { key: target, onClose: callback }), prefixCls)
|
|
3246
3738
|
);
|
|
3247
3739
|
});
|
|
3248
3740
|
});
|
|
@@ -3271,7 +3763,7 @@ const api = {
|
|
|
3271
3763
|
function attachTypeApi(originalApi, type) {
|
|
3272
3764
|
originalApi[type] = (content, duration, onClose) => {
|
|
3273
3765
|
if (isArgsProps(content)) {
|
|
3274
|
-
return originalApi.open(__spreadProps$
|
|
3766
|
+
return originalApi.open(__spreadProps$h(__spreadValues$k({}, content), { type }));
|
|
3275
3767
|
}
|
|
3276
3768
|
if (typeof duration === "function") {
|
|
3277
3769
|
onClose = duration;
|
|
@@ -3285,25 +3777,25 @@ function attachTypeApi(originalApi, type) {
|
|
|
3285
3777
|
);
|
|
3286
3778
|
api.warn = api.warning;
|
|
3287
3779
|
|
|
3288
|
-
var __defProp$
|
|
3289
|
-
var __defProps$
|
|
3290
|
-
var __getOwnPropDescs$
|
|
3291
|
-
var __getOwnPropSymbols$
|
|
3292
|
-
var __hasOwnProp$
|
|
3293
|
-
var __propIsEnum$
|
|
3294
|
-
var __defNormalProp$
|
|
3295
|
-
var __spreadValues$
|
|
3780
|
+
var __defProp$j = Object.defineProperty;
|
|
3781
|
+
var __defProps$g = Object.defineProperties;
|
|
3782
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
3783
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
3784
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
3785
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
3786
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3787
|
+
var __spreadValues$j = (a, b) => {
|
|
3296
3788
|
for (var prop in b || (b = {}))
|
|
3297
|
-
if (__hasOwnProp$
|
|
3298
|
-
__defNormalProp$
|
|
3299
|
-
if (__getOwnPropSymbols$
|
|
3300
|
-
for (var prop of __getOwnPropSymbols$
|
|
3301
|
-
if (__propIsEnum$
|
|
3302
|
-
__defNormalProp$
|
|
3789
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
3790
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
3791
|
+
if (__getOwnPropSymbols$j)
|
|
3792
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
3793
|
+
if (__propIsEnum$j.call(b, prop))
|
|
3794
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
3303
3795
|
}
|
|
3304
3796
|
return a;
|
|
3305
3797
|
};
|
|
3306
|
-
var __spreadProps$
|
|
3798
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
3307
3799
|
const initialChartState = {
|
|
3308
3800
|
pointers: {},
|
|
3309
3801
|
resourceData: {},
|
|
@@ -3313,8 +3805,8 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
3313
3805
|
switch (action.type) {
|
|
3314
3806
|
case "SET_POINTER" /* SET_POINTER */: {
|
|
3315
3807
|
const { uuid, left, text, visible, value } = action.payload;
|
|
3316
|
-
return __spreadProps$
|
|
3317
|
-
pointers: __spreadProps$
|
|
3808
|
+
return __spreadProps$g(__spreadValues$j({}, state), {
|
|
3809
|
+
pointers: __spreadProps$g(__spreadValues$j({}, state.pointers), {
|
|
3318
3810
|
[uuid]: {
|
|
3319
3811
|
left,
|
|
3320
3812
|
text,
|
|
@@ -3326,16 +3818,16 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
3326
3818
|
}
|
|
3327
3819
|
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
3328
3820
|
const { uuid, data } = action.payload;
|
|
3329
|
-
return __spreadProps$
|
|
3330
|
-
resourceData: __spreadProps$
|
|
3821
|
+
return __spreadProps$g(__spreadValues$j({}, state), {
|
|
3822
|
+
resourceData: __spreadProps$g(__spreadValues$j({}, state.resourceData), {
|
|
3331
3823
|
[uuid]: data
|
|
3332
3824
|
})
|
|
3333
3825
|
});
|
|
3334
3826
|
}
|
|
3335
3827
|
case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
|
|
3336
3828
|
const { uuid, average } = action.payload;
|
|
3337
|
-
return __spreadProps$
|
|
3338
|
-
averageData: __spreadProps$
|
|
3829
|
+
return __spreadProps$g(__spreadValues$j({}, state), {
|
|
3830
|
+
averageData: __spreadProps$g(__spreadValues$j({}, state.averageData), {
|
|
3339
3831
|
[uuid]: average
|
|
3340
3832
|
})
|
|
3341
3833
|
});
|
|
@@ -3346,25 +3838,25 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
3346
3838
|
}
|
|
3347
3839
|
};
|
|
3348
3840
|
|
|
3349
|
-
var __defProp$
|
|
3350
|
-
var __defProps$
|
|
3351
|
-
var __getOwnPropDescs$
|
|
3352
|
-
var __getOwnPropSymbols$
|
|
3353
|
-
var __hasOwnProp$
|
|
3354
|
-
var __propIsEnum$
|
|
3355
|
-
var __defNormalProp$
|
|
3356
|
-
var __spreadValues$
|
|
3841
|
+
var __defProp$i = Object.defineProperty;
|
|
3842
|
+
var __defProps$f = Object.defineProperties;
|
|
3843
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
3844
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
3845
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
3846
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
3847
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3848
|
+
var __spreadValues$i = (a, b) => {
|
|
3357
3849
|
for (var prop in b || (b = {}))
|
|
3358
|
-
if (__hasOwnProp$
|
|
3359
|
-
__defNormalProp$
|
|
3360
|
-
if (__getOwnPropSymbols$
|
|
3361
|
-
for (var prop of __getOwnPropSymbols$
|
|
3362
|
-
if (__propIsEnum$
|
|
3363
|
-
__defNormalProp$
|
|
3850
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
3851
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
3852
|
+
if (__getOwnPropSymbols$i)
|
|
3853
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
3854
|
+
if (__propIsEnum$i.call(b, prop))
|
|
3855
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
3364
3856
|
}
|
|
3365
3857
|
return a;
|
|
3366
3858
|
};
|
|
3367
|
-
var __spreadProps$
|
|
3859
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
3368
3860
|
var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
|
|
3369
3861
|
ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
|
|
3370
3862
|
ModalActions2["POP_MODAL"] = "POP_MODAL";
|
|
@@ -3385,22 +3877,22 @@ const modalReducer = (state = initialModalState, action) => {
|
|
|
3385
3877
|
)) {
|
|
3386
3878
|
return state;
|
|
3387
3879
|
}
|
|
3388
|
-
return __spreadProps$
|
|
3389
|
-
stack: state.stack.concat(__spreadProps$
|
|
3880
|
+
return __spreadProps$f(__spreadValues$i({}, state), {
|
|
3881
|
+
stack: state.stack.concat(__spreadProps$f(__spreadValues$i({}, action.payload), {
|
|
3390
3882
|
id: MODAL_ID++
|
|
3391
3883
|
}))
|
|
3392
3884
|
});
|
|
3393
3885
|
case "POP_MODAL" /* POP_MODAL */:
|
|
3394
|
-
return __spreadProps$
|
|
3886
|
+
return __spreadProps$f(__spreadValues$i({}, state), {
|
|
3395
3887
|
stack: state.stack.slice(0, -1)
|
|
3396
3888
|
});
|
|
3397
3889
|
case "REMOVE_MODAL" /* REMOVE_MODAL */:
|
|
3398
|
-
return __spreadProps$
|
|
3890
|
+
return __spreadProps$f(__spreadValues$i({}, state), {
|
|
3399
3891
|
closeId: 0,
|
|
3400
3892
|
stack: state.stack.filter((m) => m.id !== action.id)
|
|
3401
3893
|
});
|
|
3402
3894
|
case "CLOSE_MODAL" /* CLOSE_MODAL */:
|
|
3403
|
-
return __spreadProps$
|
|
3895
|
+
return __spreadProps$f(__spreadValues$i({}, state), {
|
|
3404
3896
|
closeId: action.id
|
|
3405
3897
|
});
|
|
3406
3898
|
default:
|
|
@@ -3457,33 +3949,33 @@ const VerticalStyle = "v1p8siwu";
|
|
|
3457
3949
|
const HorizontalStepContentStyle = "h1xo7yjb";
|
|
3458
3950
|
const VerticalStepContentStyle = "v1f2f7cy";
|
|
3459
3951
|
|
|
3460
|
-
var __defProp$
|
|
3461
|
-
var __defProps$
|
|
3462
|
-
var __getOwnPropDescs$
|
|
3463
|
-
var __getOwnPropSymbols$
|
|
3464
|
-
var __hasOwnProp$
|
|
3465
|
-
var __propIsEnum$
|
|
3466
|
-
var __defNormalProp$
|
|
3467
|
-
var __spreadValues$
|
|
3952
|
+
var __defProp$h = Object.defineProperty;
|
|
3953
|
+
var __defProps$e = Object.defineProperties;
|
|
3954
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
3955
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
3956
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
3957
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
3958
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3959
|
+
var __spreadValues$h = (a, b) => {
|
|
3468
3960
|
for (var prop in b || (b = {}))
|
|
3469
|
-
if (__hasOwnProp$
|
|
3470
|
-
__defNormalProp$
|
|
3471
|
-
if (__getOwnPropSymbols$
|
|
3472
|
-
for (var prop of __getOwnPropSymbols$
|
|
3473
|
-
if (__propIsEnum$
|
|
3474
|
-
__defNormalProp$
|
|
3961
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
3962
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3963
|
+
if (__getOwnPropSymbols$h)
|
|
3964
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
3965
|
+
if (__propIsEnum$h.call(b, prop))
|
|
3966
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3475
3967
|
}
|
|
3476
3968
|
return a;
|
|
3477
3969
|
};
|
|
3478
|
-
var __spreadProps$
|
|
3479
|
-
var __objRest$
|
|
3970
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
3971
|
+
var __objRest$6 = (source, exclude) => {
|
|
3480
3972
|
var target = {};
|
|
3481
3973
|
for (var prop in source)
|
|
3482
|
-
if (__hasOwnProp$
|
|
3974
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3483
3975
|
target[prop] = source[prop];
|
|
3484
|
-
if (source != null && __getOwnPropSymbols$
|
|
3485
|
-
for (var prop of __getOwnPropSymbols$
|
|
3486
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3976
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
3977
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
3978
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
3487
3979
|
target[prop] = source[prop];
|
|
3488
3980
|
}
|
|
3489
3981
|
return target;
|
|
@@ -3499,7 +3991,7 @@ const StepTitle = (props) => {
|
|
|
3499
3991
|
setTooltipEnable({});
|
|
3500
3992
|
}
|
|
3501
3993
|
}, [textRef]);
|
|
3502
|
-
return /* @__PURE__ */ React__default.createElement(Tooltip, __spreadProps$
|
|
3994
|
+
return /* @__PURE__ */ React__default.createElement(Tooltip, __spreadProps$e(__spreadValues$h({}, tooltipEnable), { title: step.title }), /* @__PURE__ */ React__default.createElement(
|
|
3503
3995
|
"div",
|
|
3504
3996
|
{
|
|
3505
3997
|
className: isVerticalMode ? VerticalStepContentStyle : HorizontalStepContentStyle
|
|
@@ -3515,7 +4007,7 @@ const Steps = (props) => {
|
|
|
3515
4007
|
containerClassname,
|
|
3516
4008
|
current = 0,
|
|
3517
4009
|
disabled
|
|
3518
|
-
} = _a, stepsProps = __objRest$
|
|
4010
|
+
} = _a, stepsProps = __objRest$6(_a, [
|
|
3519
4011
|
"stepsConfig",
|
|
3520
4012
|
"direction",
|
|
3521
4013
|
"containerClassname",
|
|
@@ -3534,14 +4026,14 @@ const Steps = (props) => {
|
|
|
3534
4026
|
},
|
|
3535
4027
|
/* @__PURE__ */ React__default.createElement(
|
|
3536
4028
|
Steps$1,
|
|
3537
|
-
__spreadProps$
|
|
4029
|
+
__spreadProps$e(__spreadValues$h({}, stepsProps), {
|
|
3538
4030
|
direction,
|
|
3539
4031
|
current,
|
|
3540
4032
|
type: "default"
|
|
3541
4033
|
}),
|
|
3542
4034
|
(stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */ React__default.createElement(
|
|
3543
4035
|
Steps$1.Step,
|
|
3544
|
-
__spreadProps$
|
|
4036
|
+
__spreadProps$e(__spreadValues$h({
|
|
3545
4037
|
key: index
|
|
3546
4038
|
}, step), {
|
|
3547
4039
|
disabled: disabled || index > current,
|
|
@@ -3560,33 +4052,33 @@ const Steps = (props) => {
|
|
|
3560
4052
|
);
|
|
3561
4053
|
};
|
|
3562
4054
|
|
|
3563
|
-
var __defProp$
|
|
3564
|
-
var __defProps$
|
|
3565
|
-
var __getOwnPropDescs$
|
|
3566
|
-
var __getOwnPropSymbols$
|
|
3567
|
-
var __hasOwnProp$
|
|
3568
|
-
var __propIsEnum$
|
|
3569
|
-
var __defNormalProp$
|
|
3570
|
-
var __spreadValues$
|
|
4055
|
+
var __defProp$g = Object.defineProperty;
|
|
4056
|
+
var __defProps$d = Object.defineProperties;
|
|
4057
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
4058
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
4059
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
4060
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
4061
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4062
|
+
var __spreadValues$g = (a, b) => {
|
|
3571
4063
|
for (var prop in b || (b = {}))
|
|
3572
|
-
if (__hasOwnProp$
|
|
3573
|
-
__defNormalProp$
|
|
3574
|
-
if (__getOwnPropSymbols$
|
|
3575
|
-
for (var prop of __getOwnPropSymbols$
|
|
3576
|
-
if (__propIsEnum$
|
|
3577
|
-
__defNormalProp$
|
|
4064
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
4065
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
4066
|
+
if (__getOwnPropSymbols$g)
|
|
4067
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
4068
|
+
if (__propIsEnum$g.call(b, prop))
|
|
4069
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
3578
4070
|
}
|
|
3579
4071
|
return a;
|
|
3580
4072
|
};
|
|
3581
|
-
var __spreadProps$
|
|
3582
|
-
var __objRest$
|
|
4073
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
4074
|
+
var __objRest$5 = (source, exclude) => {
|
|
3583
4075
|
var target = {};
|
|
3584
4076
|
for (var prop in source)
|
|
3585
|
-
if (__hasOwnProp$
|
|
4077
|
+
if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3586
4078
|
target[prop] = source[prop];
|
|
3587
|
-
if (source != null && __getOwnPropSymbols$
|
|
3588
|
-
for (var prop of __getOwnPropSymbols$
|
|
3589
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4079
|
+
if (source != null && __getOwnPropSymbols$g)
|
|
4080
|
+
for (var prop of __getOwnPropSymbols$g(source)) {
|
|
4081
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
|
|
3590
4082
|
target[prop] = source[prop];
|
|
3591
4083
|
}
|
|
3592
4084
|
return target;
|
|
@@ -3613,7 +4105,7 @@ const Modal = (props) => {
|
|
|
3613
4105
|
showCancel = true,
|
|
3614
4106
|
showOk = true,
|
|
3615
4107
|
afterClose
|
|
3616
|
-
} = _a, restProps = __objRest$
|
|
4108
|
+
} = _a, restProps = __objRest$5(_a, [
|
|
3617
4109
|
"error",
|
|
3618
4110
|
"okText",
|
|
3619
4111
|
"cancelText",
|
|
@@ -3668,7 +4160,7 @@ const Modal = (props) => {
|
|
|
3668
4160
|
}
|
|
3669
4161
|
return /* @__PURE__ */ React__default.createElement(
|
|
3670
4162
|
Modal$1,
|
|
3671
|
-
__spreadProps$
|
|
4163
|
+
__spreadProps$d(__spreadValues$g({
|
|
3672
4164
|
maskClosable,
|
|
3673
4165
|
className: cs(
|
|
3674
4166
|
className,
|
|
@@ -3703,7 +4195,7 @@ const Modal = (props) => {
|
|
|
3703
4195
|
prevText
|
|
3704
4196
|
), error && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("span", { className: "modal-error" }, error))), /* @__PURE__ */ React__default.createElement("div", { className: "modal-footer-btn-group" }, showCancel && /* @__PURE__ */ React__default.createElement(
|
|
3705
4197
|
Button,
|
|
3706
|
-
__spreadValues$
|
|
4198
|
+
__spreadValues$g({
|
|
3707
4199
|
type: "quiet",
|
|
3708
4200
|
onMouseDown: (e) => {
|
|
3709
4201
|
e.preventDefault();
|
|
@@ -3717,7 +4209,7 @@ const Modal = (props) => {
|
|
|
3717
4209
|
cancelText
|
|
3718
4210
|
), showOk && /* @__PURE__ */ React__default.createElement(
|
|
3719
4211
|
Button,
|
|
3720
|
-
__spreadValues$
|
|
4212
|
+
__spreadValues$g({
|
|
3721
4213
|
onClick: (e) => {
|
|
3722
4214
|
var _a2, _b2;
|
|
3723
4215
|
onOk == null ? void 0 : onOk(e);
|
|
@@ -3759,26 +4251,26 @@ const Modal = (props) => {
|
|
|
3759
4251
|
);
|
|
3760
4252
|
};
|
|
3761
4253
|
|
|
3762
|
-
var __defProp$
|
|
3763
|
-
var __defProps$
|
|
3764
|
-
var __getOwnPropDescs$
|
|
3765
|
-
var __getOwnPropSymbols$
|
|
3766
|
-
var __hasOwnProp$
|
|
3767
|
-
var __propIsEnum$
|
|
3768
|
-
var __defNormalProp$
|
|
4254
|
+
var __defProp$f = Object.defineProperty;
|
|
4255
|
+
var __defProps$c = Object.defineProperties;
|
|
4256
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
4257
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
4258
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
4259
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
4260
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, {
|
|
3769
4261
|
enumerable: true,
|
|
3770
4262
|
configurable: true,
|
|
3771
4263
|
writable: true,
|
|
3772
4264
|
value
|
|
3773
4265
|
}) : obj[key] = value;
|
|
3774
|
-
var __spreadValues$
|
|
3775
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3776
|
-
if (__getOwnPropSymbols$
|
|
3777
|
-
if (__propIsEnum$
|
|
4266
|
+
var __spreadValues$f = (a, b) => {
|
|
4267
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
|
|
4268
|
+
if (__getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(b)) {
|
|
4269
|
+
if (__propIsEnum$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
|
|
3778
4270
|
}
|
|
3779
4271
|
return a;
|
|
3780
4272
|
};
|
|
3781
|
-
var __spreadProps$
|
|
4273
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
3782
4274
|
const OverflowText = "o8ocss1";
|
|
3783
4275
|
const NoWrap = "n17syc35";
|
|
3784
4276
|
const OverflowTooltip = props => {
|
|
@@ -3809,7 +4301,7 @@ const OverflowTooltip = props => {
|
|
|
3809
4301
|
observer == null ? void 0 : observer.disconnect();
|
|
3810
4302
|
};
|
|
3811
4303
|
});
|
|
3812
|
-
return /* @__PURE__ */React__default.createElement(Tooltip, __spreadProps$
|
|
4304
|
+
return /* @__PURE__ */React__default.createElement(Tooltip, __spreadProps$c(__spreadValues$f({}, !ellipsis && {
|
|
3813
4305
|
visible: false
|
|
3814
4306
|
}), {
|
|
3815
4307
|
title: tooltip
|
|
@@ -3927,77 +4419,46 @@ const Pagination = props => {
|
|
|
3927
4419
|
}))));
|
|
3928
4420
|
};
|
|
3929
4421
|
|
|
3930
|
-
var __defProp$
|
|
3931
|
-
var __getOwnPropSymbols$
|
|
3932
|
-
var __hasOwnProp$
|
|
3933
|
-
var __propIsEnum$
|
|
3934
|
-
var __defNormalProp$
|
|
3935
|
-
var __spreadValues$
|
|
3936
|
-
for (var prop in b || (b = {}))
|
|
3937
|
-
if (__hasOwnProp$i.call(b, prop))
|
|
3938
|
-
__defNormalProp$i(a, prop, b[prop]);
|
|
3939
|
-
if (__getOwnPropSymbols$i)
|
|
3940
|
-
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
3941
|
-
if (__propIsEnum$i.call(b, prop))
|
|
3942
|
-
__defNormalProp$i(a, prop, b[prop]);
|
|
3943
|
-
}
|
|
3944
|
-
return a;
|
|
3945
|
-
};
|
|
3946
|
-
const Percent = ({
|
|
3947
|
-
rawValue,
|
|
3948
|
-
decimals,
|
|
3949
|
-
saturated,
|
|
3950
|
-
valueClassName,
|
|
3951
|
-
unitClassName,
|
|
3952
|
-
emptyProps
|
|
3953
|
-
}) => {
|
|
3954
|
-
if (isEmpty(rawValue)) {
|
|
3955
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$i({}, emptyProps));
|
|
3956
|
-
}
|
|
3957
|
-
const { value, unit } = formatPercent(rawValue, decimals, saturated);
|
|
3958
|
-
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, unit));
|
|
3959
|
-
};
|
|
3960
|
-
|
|
3961
|
-
var __defProp$h = Object.defineProperty;
|
|
3962
|
-
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
3963
|
-
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
3964
|
-
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
3965
|
-
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3966
|
-
var __spreadValues$h = (a, b) => {
|
|
4422
|
+
var __defProp$e = Object.defineProperty;
|
|
4423
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
4424
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
4425
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
4426
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4427
|
+
var __spreadValues$e = (a, b) => {
|
|
3967
4428
|
for (var prop in b || (b = {}))
|
|
3968
|
-
if (__hasOwnProp$
|
|
3969
|
-
__defNormalProp$
|
|
3970
|
-
if (__getOwnPropSymbols$
|
|
3971
|
-
for (var prop of __getOwnPropSymbols$
|
|
3972
|
-
if (__propIsEnum$
|
|
3973
|
-
__defNormalProp$
|
|
4429
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
4430
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
4431
|
+
if (__getOwnPropSymbols$e)
|
|
4432
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
4433
|
+
if (__propIsEnum$e.call(b, prop))
|
|
4434
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
3974
4435
|
}
|
|
3975
4436
|
return a;
|
|
3976
4437
|
};
|
|
3977
|
-
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$
|
|
4438
|
+
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$e({}, props));
|
|
3978
4439
|
|
|
3979
|
-
var __defProp$
|
|
3980
|
-
var __getOwnPropSymbols$
|
|
3981
|
-
var __hasOwnProp$
|
|
3982
|
-
var __propIsEnum$
|
|
3983
|
-
var __defNormalProp$
|
|
4440
|
+
var __defProp$d = Object.defineProperty;
|
|
4441
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
4442
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
4443
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
4444
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, {
|
|
3984
4445
|
enumerable: true,
|
|
3985
4446
|
configurable: true,
|
|
3986
4447
|
writable: true,
|
|
3987
4448
|
value
|
|
3988
4449
|
}) : obj[key] = value;
|
|
3989
|
-
var __spreadValues$
|
|
3990
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3991
|
-
if (__getOwnPropSymbols$
|
|
3992
|
-
if (__propIsEnum$
|
|
4450
|
+
var __spreadValues$d = (a, b) => {
|
|
4451
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
|
|
4452
|
+
if (__getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(b)) {
|
|
4453
|
+
if (__propIsEnum$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
|
|
3993
4454
|
}
|
|
3994
4455
|
return a;
|
|
3995
4456
|
};
|
|
3996
|
-
var __objRest$
|
|
4457
|
+
var __objRest$4 = (source, exclude) => {
|
|
3997
4458
|
var target = {};
|
|
3998
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3999
|
-
if (source != null && __getOwnPropSymbols$
|
|
4000
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4459
|
+
for (var prop in source) if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
4460
|
+
if (source != null && __getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(source)) {
|
|
4461
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop)) target[prop] = source[prop];
|
|
4001
4462
|
}
|
|
4002
4463
|
return target;
|
|
4003
4464
|
};
|
|
@@ -4013,7 +4474,7 @@ const Radio = _a => {
|
|
|
4013
4474
|
checked,
|
|
4014
4475
|
compact = false
|
|
4015
4476
|
} = _b,
|
|
4016
|
-
props = __objRest$
|
|
4477
|
+
props = __objRest$4(_b, ["children", "className", "checked", "compact"]);
|
|
4017
4478
|
const {
|
|
4018
4479
|
description
|
|
4019
4480
|
} = props;
|
|
@@ -4023,7 +4484,7 @@ const Radio = _a => {
|
|
|
4023
4484
|
className: cx("radio-description", Typo.Label.l4_regular)
|
|
4024
4485
|
}, description));
|
|
4025
4486
|
}
|
|
4026
|
-
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$
|
|
4487
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$d({
|
|
4027
4488
|
className: cx(className, RadioStyle, compact && "compact"),
|
|
4028
4489
|
checked: checked || false,
|
|
4029
4490
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -4035,13 +4496,13 @@ const RadioGroup = _c => {
|
|
|
4035
4496
|
children,
|
|
4036
4497
|
className
|
|
4037
4498
|
} = _d,
|
|
4038
|
-
props = __objRest$
|
|
4499
|
+
props = __objRest$4(_d, ["children", "className"]);
|
|
4039
4500
|
return /* @__PURE__ */React__default.createElement(KitRadioGroupContext.Provider, {
|
|
4040
4501
|
value: {
|
|
4041
4502
|
disabled: props.disabled,
|
|
4042
4503
|
name: props.name
|
|
4043
4504
|
}
|
|
4044
|
-
}, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$
|
|
4505
|
+
}, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$d({
|
|
4045
4506
|
className: cx(className, RadioGroupStyle)
|
|
4046
4507
|
}, props), children ? children : null));
|
|
4047
4508
|
};
|
|
@@ -4051,7 +4512,7 @@ const RadioButton = _e => {
|
|
|
4051
4512
|
children,
|
|
4052
4513
|
className
|
|
4053
4514
|
} = _f,
|
|
4054
|
-
props = __objRest$
|
|
4515
|
+
props = __objRest$4(_f, ["children", "className"]);
|
|
4055
4516
|
const {
|
|
4056
4517
|
type,
|
|
4057
4518
|
placeholder = "Label",
|
|
@@ -4097,46 +4558,46 @@ const RadioButton = _e => {
|
|
|
4097
4558
|
className: "ant-radio-button-input-label"
|
|
4098
4559
|
}, typeof children === "string" ? children : ""));
|
|
4099
4560
|
};
|
|
4100
|
-
return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$
|
|
4561
|
+
return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$d({
|
|
4101
4562
|
className: cx(className, RadioButtonStyle),
|
|
4102
4563
|
value: radioButtonValue
|
|
4103
4564
|
}, props), renderChildren());
|
|
4104
4565
|
};
|
|
4105
4566
|
|
|
4106
|
-
var __defProp$
|
|
4107
|
-
var __getOwnPropSymbols$
|
|
4108
|
-
var __hasOwnProp$
|
|
4109
|
-
var __propIsEnum$
|
|
4110
|
-
var __defNormalProp$
|
|
4111
|
-
var __spreadValues$
|
|
4567
|
+
var __defProp$c = Object.defineProperty;
|
|
4568
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
4569
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
4570
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
4571
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4572
|
+
var __spreadValues$c = (a, b) => {
|
|
4112
4573
|
for (var prop in b || (b = {}))
|
|
4113
|
-
if (__hasOwnProp$
|
|
4114
|
-
__defNormalProp$
|
|
4115
|
-
if (__getOwnPropSymbols$
|
|
4116
|
-
for (var prop of __getOwnPropSymbols$
|
|
4117
|
-
if (__propIsEnum$
|
|
4118
|
-
__defNormalProp$
|
|
4574
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
4575
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
4576
|
+
if (__getOwnPropSymbols$c)
|
|
4577
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
4578
|
+
if (__propIsEnum$c.call(b, prop))
|
|
4579
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
4119
4580
|
}
|
|
4120
4581
|
return a;
|
|
4121
4582
|
};
|
|
4122
|
-
var __objRest$
|
|
4583
|
+
var __objRest$3 = (source, exclude) => {
|
|
4123
4584
|
var target = {};
|
|
4124
4585
|
for (var prop in source)
|
|
4125
|
-
if (__hasOwnProp$
|
|
4586
|
+
if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4126
4587
|
target[prop] = source[prop];
|
|
4127
|
-
if (source != null && __getOwnPropSymbols$
|
|
4128
|
-
for (var prop of __getOwnPropSymbols$
|
|
4129
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4588
|
+
if (source != null && __getOwnPropSymbols$c)
|
|
4589
|
+
for (var prop of __getOwnPropSymbols$c(source)) {
|
|
4590
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
|
|
4130
4591
|
target[prop] = source[prop];
|
|
4131
4592
|
}
|
|
4132
4593
|
return target;
|
|
4133
4594
|
};
|
|
4134
4595
|
const SearchInput = (props) => {
|
|
4135
|
-
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$
|
|
4596
|
+
const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$3(_a, ["onChange", "debounceWait"]);
|
|
4136
4597
|
const onSearch = _.debounce(onChange, debounceWait);
|
|
4137
4598
|
return /* @__PURE__ */ React__default.createElement(
|
|
4138
4599
|
Input,
|
|
4139
|
-
__spreadValues$
|
|
4600
|
+
__spreadValues$c({
|
|
4140
4601
|
style: { width: 276 },
|
|
4141
4602
|
prefix: /* @__PURE__ */ React__default.createElement(SearchOutlined, null),
|
|
4142
4603
|
onChange: (e) => onSearch(e.target.value)
|
|
@@ -4144,38 +4605,6 @@ const SearchInput = (props) => {
|
|
|
4144
4605
|
);
|
|
4145
4606
|
};
|
|
4146
4607
|
|
|
4147
|
-
var __defProp$e = Object.defineProperty;
|
|
4148
|
-
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
4149
|
-
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
4150
|
-
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
4151
|
-
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4152
|
-
var __spreadValues$e = (a, b) => {
|
|
4153
|
-
for (var prop in b || (b = {}))
|
|
4154
|
-
if (__hasOwnProp$e.call(b, prop))
|
|
4155
|
-
__defNormalProp$e(a, prop, b[prop]);
|
|
4156
|
-
if (__getOwnPropSymbols$e)
|
|
4157
|
-
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
4158
|
-
if (__propIsEnum$e.call(b, prop))
|
|
4159
|
-
__defNormalProp$e(a, prop, b[prop]);
|
|
4160
|
-
}
|
|
4161
|
-
return a;
|
|
4162
|
-
};
|
|
4163
|
-
const Second = ({
|
|
4164
|
-
rawValue,
|
|
4165
|
-
decimals,
|
|
4166
|
-
valueClassName,
|
|
4167
|
-
unitClassName,
|
|
4168
|
-
abbreviate,
|
|
4169
|
-
emptyProps
|
|
4170
|
-
}) => {
|
|
4171
|
-
const { t } = useParrotTranslation();
|
|
4172
|
-
if (isEmpty(rawValue)) {
|
|
4173
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$e({}, emptyProps));
|
|
4174
|
-
}
|
|
4175
|
-
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
4176
|
-
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
|
|
4177
|
-
};
|
|
4178
|
-
|
|
4179
4608
|
const inputStyle = "igz4le8";
|
|
4180
4609
|
const SimplePagination = props => {
|
|
4181
4610
|
const {
|
|
@@ -4252,61 +4681,31 @@ const SimplePagination = props => {
|
|
|
4252
4681
|
})));
|
|
4253
4682
|
};
|
|
4254
4683
|
|
|
4255
|
-
var __defProp$
|
|
4256
|
-
var
|
|
4257
|
-
var
|
|
4258
|
-
var
|
|
4259
|
-
var
|
|
4260
|
-
var
|
|
4261
|
-
|
|
4262
|
-
if (__hasOwnProp$d.call(b, prop))
|
|
4263
|
-
__defNormalProp$d(a, prop, b[prop]);
|
|
4264
|
-
if (__getOwnPropSymbols$d)
|
|
4265
|
-
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
4266
|
-
if (__propIsEnum$d.call(b, prop))
|
|
4267
|
-
__defNormalProp$d(a, prop, b[prop]);
|
|
4268
|
-
}
|
|
4269
|
-
return a;
|
|
4270
|
-
};
|
|
4271
|
-
const Speed = ({
|
|
4272
|
-
rawValue,
|
|
4273
|
-
decimals,
|
|
4274
|
-
valueClassName,
|
|
4275
|
-
unitClassName,
|
|
4276
|
-
emptyProps
|
|
4277
|
-
}) => {
|
|
4278
|
-
if (isEmpty(rawValue)) {
|
|
4279
|
-
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$d({}, emptyProps));
|
|
4280
|
-
}
|
|
4281
|
-
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
4282
|
-
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
4283
|
-
};
|
|
4284
|
-
|
|
4285
|
-
var __defProp$c = Object.defineProperty;
|
|
4286
|
-
var __defProps$c = Object.defineProperties;
|
|
4287
|
-
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
4288
|
-
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
4289
|
-
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
4290
|
-
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
4291
|
-
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, {
|
|
4684
|
+
var __defProp$b = Object.defineProperty;
|
|
4685
|
+
var __defProps$b = Object.defineProperties;
|
|
4686
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
4687
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
4688
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
4689
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
4690
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, {
|
|
4292
4691
|
enumerable: true,
|
|
4293
4692
|
configurable: true,
|
|
4294
4693
|
writable: true,
|
|
4295
4694
|
value
|
|
4296
4695
|
}) : obj[key] = value;
|
|
4297
|
-
var __spreadValues$
|
|
4298
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
4299
|
-
if (__getOwnPropSymbols$
|
|
4300
|
-
if (__propIsEnum$
|
|
4696
|
+
var __spreadValues$b = (a, b) => {
|
|
4697
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
|
|
4698
|
+
if (__getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(b)) {
|
|
4699
|
+
if (__propIsEnum$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
|
|
4301
4700
|
}
|
|
4302
4701
|
return a;
|
|
4303
4702
|
};
|
|
4304
|
-
var __spreadProps$
|
|
4305
|
-
var __objRest$
|
|
4703
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
4704
|
+
var __objRest$2 = (source, exclude) => {
|
|
4306
4705
|
var target = {};
|
|
4307
|
-
for (var prop in source) if (__hasOwnProp$
|
|
4308
|
-
if (source != null && __getOwnPropSymbols$
|
|
4309
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4706
|
+
for (var prop in source) if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
4707
|
+
if (source != null && __getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(source)) {
|
|
4708
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop)) target[prop] = source[prop];
|
|
4310
4709
|
}
|
|
4311
4710
|
return target;
|
|
4312
4711
|
};
|
|
@@ -4349,9 +4748,9 @@ const StatusCapsule = _a => {
|
|
|
4349
4748
|
offWhiteMode,
|
|
4350
4749
|
number
|
|
4351
4750
|
} = _b,
|
|
4352
|
-
props = __objRest$
|
|
4751
|
+
props = __objRest$2(_b, ["color", "className", "loading", "hoverable", "children", "offWhiteMode", "number"]);
|
|
4353
4752
|
const computedColor = ColorMap[color] || color;
|
|
4354
|
-
return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$
|
|
4753
|
+
return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$b(__spreadValues$b({}, props), {
|
|
4355
4754
|
className: cs(className, StatusCapsuleStyle, Typo.Label.l4_regular, "ui-kit-status-capsule", {
|
|
4356
4755
|
[`ant-tag-${computedColor}`]: PresetColors$1.includes(computedColor),
|
|
4357
4756
|
"tag-hover": hoverable,
|
|
@@ -4366,58 +4765,6 @@ const StatusCapsule = _a => {
|
|
|
4366
4765
|
}, number));
|
|
4367
4766
|
};
|
|
4368
4767
|
|
|
4369
|
-
var __defProp$b = Object.defineProperty;
|
|
4370
|
-
var __defProps$b = Object.defineProperties;
|
|
4371
|
-
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
4372
|
-
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
4373
|
-
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
4374
|
-
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
4375
|
-
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, {
|
|
4376
|
-
enumerable: true,
|
|
4377
|
-
configurable: true,
|
|
4378
|
-
writable: true,
|
|
4379
|
-
value
|
|
4380
|
-
}) : obj[key] = value;
|
|
4381
|
-
var __spreadValues$b = (a, b) => {
|
|
4382
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
|
|
4383
|
-
if (__getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(b)) {
|
|
4384
|
-
if (__propIsEnum$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
|
|
4385
|
-
}
|
|
4386
|
-
return a;
|
|
4387
|
-
};
|
|
4388
|
-
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
4389
|
-
var __objRest$2 = (source, exclude) => {
|
|
4390
|
-
var target = {};
|
|
4391
|
-
for (var prop in source) if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
4392
|
-
if (source != null && __getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(source)) {
|
|
4393
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop)) target[prop] = source[prop];
|
|
4394
|
-
}
|
|
4395
|
-
return target;
|
|
4396
|
-
};
|
|
4397
|
-
const SwitchStyle = "s34f1qb";
|
|
4398
|
-
const Switch = _a => {
|
|
4399
|
-
var _b = _a,
|
|
4400
|
-
{
|
|
4401
|
-
children,
|
|
4402
|
-
className,
|
|
4403
|
-
checked
|
|
4404
|
-
} = _b,
|
|
4405
|
-
props = __objRest$2(_b, ["children", "className", "checked"]);
|
|
4406
|
-
const Content = /*#__PURE__*/styled$1('span')({
|
|
4407
|
-
name: "Content",
|
|
4408
|
-
class: "c1to9vb9",
|
|
4409
|
-
propsAsIs: false
|
|
4410
|
-
});
|
|
4411
|
-
const classNames = [className, SwitchStyle, "switch"];
|
|
4412
|
-
if (props.size === "large") classNames.push("ant-switch-large");
|
|
4413
|
-
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$1, __spreadProps$b(__spreadValues$b({
|
|
4414
|
-
className: cx(...classNames),
|
|
4415
|
-
checked: checked || false
|
|
4416
|
-
}, props), {
|
|
4417
|
-
size: props.size
|
|
4418
|
-
})), children ? /* @__PURE__ */React__default.createElement(Content, null, children) : null);
|
|
4419
|
-
};
|
|
4420
|
-
|
|
4421
4768
|
function canScroll(el, direction = "vertical") {
|
|
4422
4769
|
const overflow = window.getComputedStyle(el).getPropertyValue("overflow");
|
|
4423
4770
|
if (overflow === "hidden")
|
|
@@ -5975,6 +6322,7 @@ function getAntdKit() {
|
|
|
5975
6322
|
card: Card,
|
|
5976
6323
|
overflowTooltip: OverflowTooltip,
|
|
5977
6324
|
I18nNameTag,
|
|
6325
|
+
SwitchWithText,
|
|
5978
6326
|
truncate: Truncate,
|
|
5979
6327
|
expandableList: {
|
|
5980
6328
|
ExpandableContainer,
|
|
@@ -5987,7 +6335,11 @@ function getAntdKit() {
|
|
|
5987
6335
|
TruncatedTextWithTooltip,
|
|
5988
6336
|
Counting,
|
|
5989
6337
|
Breadcrumb,
|
|
5990
|
-
CircleProgress
|
|
6338
|
+
CircleProgress,
|
|
6339
|
+
ChartWithTooltip,
|
|
6340
|
+
ChartWithUnit,
|
|
6341
|
+
DonutChart,
|
|
6342
|
+
UnitWithChart
|
|
5991
6343
|
};
|
|
5992
6344
|
kit.option.isSelectOption = true;
|
|
5993
6345
|
kit.button.__ANT_BUTTON = true;
|