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