seeder-st2110-components 1.7.8 → 1.7.9
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/index.esm.js +1395 -218
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1395 -218
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -5,15 +5,15 @@ import { useWebSocket, useInterval } from 'ahooks';
|
|
|
5
5
|
import { LoadingOutlined, ExclamationCircleFilled, PlusOutlined } from '@ant-design/icons';
|
|
6
6
|
import axios from 'axios';
|
|
7
7
|
|
|
8
|
-
function _defineProperty
|
|
9
|
-
return (r = _toPropertyKey
|
|
8
|
+
function _defineProperty(e, r, t) {
|
|
9
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
10
10
|
value: t,
|
|
11
11
|
enumerable: !0,
|
|
12
12
|
configurable: !0,
|
|
13
13
|
writable: !0
|
|
14
14
|
}) : e[r] = t, e;
|
|
15
15
|
}
|
|
16
|
-
function ownKeys
|
|
16
|
+
function ownKeys(e, r) {
|
|
17
17
|
var t = Object.keys(e);
|
|
18
18
|
if (Object.getOwnPropertySymbols) {
|
|
19
19
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -23,29 +23,29 @@ function ownKeys$1(e, r) {
|
|
|
23
23
|
}
|
|
24
24
|
return t;
|
|
25
25
|
}
|
|
26
|
-
function _objectSpread2
|
|
26
|
+
function _objectSpread2(e) {
|
|
27
27
|
for (var r = 1; r < arguments.length; r++) {
|
|
28
28
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
29
|
-
r % 2 ? ownKeys
|
|
30
|
-
_defineProperty
|
|
31
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys
|
|
29
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
30
|
+
_defineProperty(e, r, t[r]);
|
|
31
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
32
32
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
return e;
|
|
36
36
|
}
|
|
37
|
-
function _objectWithoutProperties
|
|
37
|
+
function _objectWithoutProperties(e, t) {
|
|
38
38
|
if (null == e) return {};
|
|
39
39
|
var o,
|
|
40
40
|
r,
|
|
41
|
-
i = _objectWithoutPropertiesLoose
|
|
41
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
42
42
|
if (Object.getOwnPropertySymbols) {
|
|
43
43
|
var n = Object.getOwnPropertySymbols(e);
|
|
44
44
|
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
45
45
|
}
|
|
46
46
|
return i;
|
|
47
47
|
}
|
|
48
|
-
function _objectWithoutPropertiesLoose
|
|
48
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
49
49
|
if (null == r) return {};
|
|
50
50
|
var t = {};
|
|
51
51
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
@@ -54,7 +54,7 @@ function _objectWithoutPropertiesLoose$1(r, e) {
|
|
|
54
54
|
}
|
|
55
55
|
return t;
|
|
56
56
|
}
|
|
57
|
-
function _toPrimitive
|
|
57
|
+
function _toPrimitive(t, r) {
|
|
58
58
|
if ("object" != typeof t || !t) return t;
|
|
59
59
|
var e = t[Symbol.toPrimitive];
|
|
60
60
|
if (void 0 !== e) {
|
|
@@ -64,8 +64,8 @@ function _toPrimitive$1(t, r) {
|
|
|
64
64
|
}
|
|
65
65
|
return ("string" === r ? String : Number)(t);
|
|
66
66
|
}
|
|
67
|
-
function _toPropertyKey
|
|
68
|
-
var i = _toPrimitive
|
|
67
|
+
function _toPropertyKey(t) {
|
|
68
|
+
var i = _toPrimitive(t, "string");
|
|
69
69
|
return "symbol" == typeof i ? i : i + "";
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -112,7 +112,7 @@ const useHardwareWebSocket = socketUrl => {
|
|
|
112
112
|
const handleMessage = useCallback(message => {
|
|
113
113
|
try {
|
|
114
114
|
if (message) {
|
|
115
|
-
setSystemStatus(prev => _objectSpread2
|
|
115
|
+
setSystemStatus(prev => _objectSpread2(_objectSpread2({}, prev), message));
|
|
116
116
|
}
|
|
117
117
|
} catch (error) {
|
|
118
118
|
console.error('Message processing error:', error);
|
|
@@ -207,7 +207,7 @@ const getItems = details => {
|
|
|
207
207
|
items.push(createMetricItem('CPU Temperature', 'seeder-icon-CPUwendu', details.cpu_temp, '℃'));
|
|
208
208
|
}
|
|
209
209
|
if (details.mem_usage !== null && details.mem_usage !== undefined) {
|
|
210
|
-
items.push(_objectSpread2
|
|
210
|
+
items.push(_objectSpread2(_objectSpread2({}, createMetricItem('Memory Usage', 'seeder-icon-shiyongshuai', details.mem_usage, '%')), {}, {
|
|
211
211
|
memTotal: details.mem_total
|
|
212
212
|
}));
|
|
213
213
|
}
|
|
@@ -251,15 +251,15 @@ const useHardwareUsage = socketUrl => {
|
|
|
251
251
|
};
|
|
252
252
|
var useHardwareUsage$1 = useHardwareUsage;
|
|
253
253
|
|
|
254
|
-
const _excluded$
|
|
255
|
-
const StyledModal
|
|
254
|
+
const _excluded$3 = ["width", "okText", "cancelText", "styles"];
|
|
255
|
+
const StyledModal = props => {
|
|
256
256
|
const {
|
|
257
257
|
width = "520px",
|
|
258
258
|
okText = "Apply",
|
|
259
259
|
cancelText = "Close",
|
|
260
260
|
styles: propStyles = {}
|
|
261
261
|
} = props,
|
|
262
|
-
restProps = _objectWithoutProperties
|
|
262
|
+
restProps = _objectWithoutProperties(props, _excluded$3);
|
|
263
263
|
|
|
264
264
|
// 基础样式配置
|
|
265
265
|
const baseStyles = {
|
|
@@ -287,15 +287,15 @@ const StyledModal$2 = props => {
|
|
|
287
287
|
};
|
|
288
288
|
|
|
289
289
|
// 合并样式
|
|
290
|
-
const styles = _objectSpread2
|
|
291
|
-
return /*#__PURE__*/jsx(Modal, _objectSpread2
|
|
290
|
+
const styles = _objectSpread2(_objectSpread2({}, baseStyles), propStyles);
|
|
291
|
+
return /*#__PURE__*/jsx(Modal, _objectSpread2({
|
|
292
292
|
width: width,
|
|
293
293
|
okText: okText,
|
|
294
294
|
cancelText: cancelText,
|
|
295
295
|
styles: styles
|
|
296
296
|
}, restProps));
|
|
297
297
|
};
|
|
298
|
-
var StyledModal$
|
|
298
|
+
var StyledModal$1 = StyledModal;
|
|
299
299
|
|
|
300
300
|
const AuthorizationModal = _ref => {
|
|
301
301
|
let {
|
|
@@ -335,7 +335,7 @@ const AuthorizationModal = _ref => {
|
|
|
335
335
|
showIcon: true
|
|
336
336
|
});
|
|
337
337
|
const defaultOkText = isActivated ? "Reactivate" : "Activate Now";
|
|
338
|
-
return /*#__PURE__*/jsx(StyledModal$
|
|
338
|
+
return /*#__PURE__*/jsx(StyledModal$1, {
|
|
339
339
|
title: title,
|
|
340
340
|
width: width,
|
|
341
341
|
open: true,
|
|
@@ -950,7 +950,7 @@ const NetworkFieldGroup = _ref => {
|
|
|
950
950
|
enabled: true
|
|
951
951
|
}
|
|
952
952
|
};
|
|
953
|
-
const mergedFieldConfig = _objectSpread2
|
|
953
|
+
const mergedFieldConfig = _objectSpread2(_objectSpread2(_objectSpread2({}, defaultFieldConfig), fieldConfig), {}, {
|
|
954
954
|
netmask: {
|
|
955
955
|
label: "Netmask",
|
|
956
956
|
enabled: (_fieldConfig$netmask$ = (_fieldConfig$netmask = fieldConfig.netmask) === null || _fieldConfig$netmask === void 0 ? void 0 : _fieldConfig$netmask.enabled) !== null && _fieldConfig$netmask$ !== void 0 ? _fieldConfig$netmask$ : defaultFieldConfig.netmask.enabled // 合并 enabled
|
|
@@ -1031,18 +1031,18 @@ const NetworkSettingsModal = _ref2 => {
|
|
|
1031
1031
|
hasInitialized: false
|
|
1032
1032
|
});
|
|
1033
1033
|
const preparedFieldConfig = useMemo(() => {
|
|
1034
|
-
const config = _objectSpread2
|
|
1034
|
+
const config = _objectSpread2({}, fieldConfig);
|
|
1035
1035
|
|
|
1036
1036
|
// 确保LAN和QSFP的配置存在
|
|
1037
1037
|
config.LAN = config.LAN || {};
|
|
1038
1038
|
config.QSFP = config.QSFP || {};
|
|
1039
1039
|
if (sections.includes('LAN')) {
|
|
1040
|
-
config.LAN.netmask = _objectSpread2
|
|
1040
|
+
config.LAN.netmask = _objectSpread2(_objectSpread2({}, config.LAN.netmask || {}), {}, {
|
|
1041
1041
|
enabled: showNetmask.LAN
|
|
1042
1042
|
});
|
|
1043
1043
|
}
|
|
1044
1044
|
if (sections.includes('QSFP')) {
|
|
1045
|
-
config.QSFP.netmask = _objectSpread2
|
|
1045
|
+
config.QSFP.netmask = _objectSpread2(_objectSpread2({}, config.QSFP.netmask || {}), {}, {
|
|
1046
1046
|
enabled: showNetmask.QSFP
|
|
1047
1047
|
});
|
|
1048
1048
|
}
|
|
@@ -1117,7 +1117,7 @@ const NetworkSettingsModal = _ref2 => {
|
|
|
1117
1117
|
const initialValues = useMemo(() => {
|
|
1118
1118
|
const values = {};
|
|
1119
1119
|
if (sections.includes('LAN') && lanConfigs.length > 0) {
|
|
1120
|
-
values.LAN = lanConfigs.map(config => _objectSpread2
|
|
1120
|
+
values.LAN = lanConfigs.map(config => _objectSpread2({
|
|
1121
1121
|
connection_id: config.connection_id,
|
|
1122
1122
|
display_name: config.display_name,
|
|
1123
1123
|
ip_address: config.ip_address
|
|
@@ -1126,7 +1126,7 @@ const NetworkSettingsModal = _ref2 => {
|
|
|
1126
1126
|
} : {}));
|
|
1127
1127
|
}
|
|
1128
1128
|
if (sections.includes('QSFP') && st2110Interfaces.length > 0) {
|
|
1129
|
-
values.QSFP = st2110Interfaces.map(iface => _objectSpread2
|
|
1129
|
+
values.QSFP = st2110Interfaces.map(iface => _objectSpread2(_objectSpread2({}, iface.id !== undefined && {
|
|
1130
1130
|
id: iface.id
|
|
1131
1131
|
}), {}, {
|
|
1132
1132
|
display_name: iface.display_name,
|
|
@@ -1178,8 +1178,8 @@ const NetworkSettingsModal = _ref2 => {
|
|
|
1178
1178
|
modal.confirm({
|
|
1179
1179
|
icon: /*#__PURE__*/jsx(ExclamationCircleFilled, {}),
|
|
1180
1180
|
title: "Configuration modified. Restart to apply changes?",
|
|
1181
|
-
cancelText: "
|
|
1182
|
-
okText: "
|
|
1181
|
+
cancelText: "Cancel",
|
|
1182
|
+
okText: "Restart Now",
|
|
1183
1183
|
onOk: async () => {
|
|
1184
1184
|
await restart();
|
|
1185
1185
|
if (onRestartSuccess && typeof onRestartSuccess === 'function') {
|
|
@@ -1196,8 +1196,8 @@ const NetworkSettingsModal = _ref2 => {
|
|
|
1196
1196
|
modal.confirm({
|
|
1197
1197
|
icon: /*#__PURE__*/jsx(ExclamationCircleFilled, {}),
|
|
1198
1198
|
title: "Configuration modified. Restart to apply changes?",
|
|
1199
|
-
cancelText: "
|
|
1200
|
-
okText: "
|
|
1199
|
+
cancelText: "Cancel",
|
|
1200
|
+
okText: "Restart Now",
|
|
1201
1201
|
onOk: async () => {
|
|
1202
1202
|
await restart();
|
|
1203
1203
|
if (onRestartSuccess && typeof onRestartSuccess === 'function') {
|
|
@@ -1232,7 +1232,7 @@ const NetworkSettingsModal = _ref2 => {
|
|
|
1232
1232
|
if (sections.includes('LAN') && values.LAN) {
|
|
1233
1233
|
const lanData = values.LAN.map((item, index) => {
|
|
1234
1234
|
var _lanConfigs$index;
|
|
1235
|
-
return _objectSpread2
|
|
1235
|
+
return _objectSpread2({
|
|
1236
1236
|
connection_id: (_lanConfigs$index = lanConfigs[index]) === null || _lanConfigs$index === void 0 ? void 0 : _lanConfigs$index.connection_id,
|
|
1237
1237
|
ip_address: item.ip_address
|
|
1238
1238
|
}, showNetmask.LAN ? {
|
|
@@ -1246,7 +1246,7 @@ const NetworkSettingsModal = _ref2 => {
|
|
|
1246
1246
|
if (sections.includes('QSFP') && values.QSFP) {
|
|
1247
1247
|
const interfacesData = values.QSFP.map((item, index) => {
|
|
1248
1248
|
var _st2110Interfaces$ind, _st2110Interfaces$ind2, _st2110Interfaces$ind3;
|
|
1249
|
-
return _objectSpread2
|
|
1249
|
+
return _objectSpread2(_objectSpread2(_objectSpread2({}, (st2110Interfaces === null || st2110Interfaces === void 0 || (_st2110Interfaces$ind = st2110Interfaces[index]) === null || _st2110Interfaces$ind === void 0 ? void 0 : _st2110Interfaces$ind.id) !== undefined && {
|
|
1250
1250
|
id: st2110Interfaces === null || st2110Interfaces === void 0 || (_st2110Interfaces$ind2 = st2110Interfaces[index]) === null || _st2110Interfaces$ind2 === void 0 ? void 0 : _st2110Interfaces$ind2.id
|
|
1251
1251
|
}), (st2110Interfaces === null || st2110Interfaces === void 0 || (_st2110Interfaces$ind3 = st2110Interfaces[index]) === null || _st2110Interfaces$ind3 === void 0 ? void 0 : _st2110Interfaces$ind3.ip) !== undefined ? {
|
|
1252
1252
|
ip: item.ip_address
|
|
@@ -1288,7 +1288,7 @@ const NetworkSettingsModal = _ref2 => {
|
|
|
1288
1288
|
}, [form, sections, lanConfigs, st2110Interfaces, updateLanConfig, updateSysConfig, handleSuccess]);
|
|
1289
1289
|
|
|
1290
1290
|
// 合并默认模态框属性和传入的属性
|
|
1291
|
-
const mergedModalProps = _objectSpread2
|
|
1291
|
+
const mergedModalProps = _objectSpread2({
|
|
1292
1292
|
title: "Network Settings",
|
|
1293
1293
|
width: 650,
|
|
1294
1294
|
open,
|
|
@@ -1303,7 +1303,7 @@ const NetworkSettingsModal = _ref2 => {
|
|
|
1303
1303
|
}, modalProps);
|
|
1304
1304
|
|
|
1305
1305
|
// 合并默认表单属性和传入的属性
|
|
1306
|
-
const mergedFormProps = _objectSpread2
|
|
1306
|
+
const mergedFormProps = _objectSpread2({
|
|
1307
1307
|
form: form,
|
|
1308
1308
|
labelCol: {
|
|
1309
1309
|
span: 6
|
|
@@ -1313,8 +1313,8 @@ const NetworkSettingsModal = _ref2 => {
|
|
|
1313
1313
|
},
|
|
1314
1314
|
autoComplete: "off"
|
|
1315
1315
|
}, formProps);
|
|
1316
|
-
return /*#__PURE__*/jsxs(StyledModal$
|
|
1317
|
-
children: [/*#__PURE__*/jsxs(Form, _objectSpread2
|
|
1316
|
+
return /*#__PURE__*/jsxs(StyledModal$1, _objectSpread2(_objectSpread2({}, mergedModalProps), {}, {
|
|
1317
|
+
children: [/*#__PURE__*/jsxs(Form, _objectSpread2(_objectSpread2({}, mergedFormProps), {}, {
|
|
1318
1318
|
children: [sections.includes('LAN') && lanConfigs.length > 0 && /*#__PURE__*/jsxs(Fragment, {
|
|
1319
1319
|
children: [/*#__PURE__*/jsx(NetworkFieldGroup, {
|
|
1320
1320
|
prefix: "LAN",
|
|
@@ -1436,7 +1436,7 @@ function convertPtpStatusToArray(ptpStatus, fieldConfigs, fieldOrder) {
|
|
|
1436
1436
|
formType: 'text'
|
|
1437
1437
|
};
|
|
1438
1438
|
const value = ptpStatus[key];
|
|
1439
|
-
return _objectSpread2
|
|
1439
|
+
return _objectSpread2(_objectSpread2({
|
|
1440
1440
|
key,
|
|
1441
1441
|
value
|
|
1442
1442
|
}, config), {}, {
|
|
@@ -1548,7 +1548,7 @@ const PtpModal = _ref => {
|
|
|
1548
1548
|
if (!open || !ptpStatus) return null;
|
|
1549
1549
|
|
|
1550
1550
|
// 合并默认模态框属性和传入的属性
|
|
1551
|
-
const mergedModalProps = _objectSpread2
|
|
1551
|
+
const mergedModalProps = _objectSpread2({
|
|
1552
1552
|
title: "PTP",
|
|
1553
1553
|
width: 650,
|
|
1554
1554
|
open,
|
|
@@ -1560,7 +1560,7 @@ const PtpModal = _ref => {
|
|
|
1560
1560
|
}, modalProps);
|
|
1561
1561
|
|
|
1562
1562
|
// 合并默认表单属性和传入的属性
|
|
1563
|
-
const mergedFormProps = _objectSpread2
|
|
1563
|
+
const mergedFormProps = _objectSpread2({
|
|
1564
1564
|
form: form,
|
|
1565
1565
|
name: "ptpForm",
|
|
1566
1566
|
labelCol: {
|
|
@@ -1571,8 +1571,8 @@ const PtpModal = _ref => {
|
|
|
1571
1571
|
},
|
|
1572
1572
|
autoComplete: "off"
|
|
1573
1573
|
}, formProps);
|
|
1574
|
-
return /*#__PURE__*/jsx(StyledModal$
|
|
1575
|
-
children: /*#__PURE__*/jsx(Form, _objectSpread2
|
|
1574
|
+
return /*#__PURE__*/jsx(StyledModal$1, _objectSpread2(_objectSpread2({}, mergedModalProps), {}, {
|
|
1575
|
+
children: /*#__PURE__*/jsx(Form, _objectSpread2(_objectSpread2({}, mergedFormProps), {}, {
|
|
1576
1576
|
children: ptpStatusArray.map(item => /*#__PURE__*/jsx(Form.Item, {
|
|
1577
1577
|
label: item.label,
|
|
1578
1578
|
name: item.key,
|
|
@@ -1767,7 +1767,7 @@ const RightDetailForm = /*#__PURE__*/memo(_ref3 => {
|
|
|
1767
1767
|
return fields.category_list.options.map(category => {
|
|
1768
1768
|
const isInitiallySelected = initialSelected.includes(category.name);
|
|
1769
1769
|
const shouldDisable = isSavedPreset ? !isInitiallySelected : false;
|
|
1770
|
-
return _objectSpread2
|
|
1770
|
+
return _objectSpread2(_objectSpread2({}, category), {}, {
|
|
1771
1771
|
disabled: shouldDisable,
|
|
1772
1772
|
initiallySelected: isInitiallySelected
|
|
1773
1773
|
});
|
|
@@ -1917,7 +1917,7 @@ const RightDetailForm = /*#__PURE__*/memo(_ref3 => {
|
|
|
1917
1917
|
}) :
|
|
1918
1918
|
/*#__PURE__*/
|
|
1919
1919
|
// 非编辑模式下的按钮
|
|
1920
|
-
jsx(SubmitButton, _objectSpread2
|
|
1920
|
+
jsx(SubmitButton, _objectSpread2(_objectSpread2({
|
|
1921
1921
|
action: handleLoad
|
|
1922
1922
|
}, hasCategoryList && {
|
|
1923
1923
|
disabled: !currentSelected.length
|
|
@@ -2045,8 +2045,8 @@ const Preset = _ref => {
|
|
|
2045
2045
|
icon: /*#__PURE__*/jsx(ExclamationCircleFilled, {}),
|
|
2046
2046
|
title: 'Delete Preset',
|
|
2047
2047
|
content: "".concat(texts.deleteConfirm, " \"").concat(presetName, "\"?"),
|
|
2048
|
-
cancelText: '
|
|
2049
|
-
okText: '
|
|
2048
|
+
cancelText: 'Cancel',
|
|
2049
|
+
okText: 'Delete',
|
|
2050
2050
|
onOk: async () => {
|
|
2051
2051
|
// 在删除前记录当前选中项的位置
|
|
2052
2052
|
const currentIndex = presetList.findIndex(item => isUnsavedPreset ? !item.id : item.id === selectedPreset.id);
|
|
@@ -2102,8 +2102,8 @@ const Preset = _ref => {
|
|
|
2102
2102
|
modalInstance = modal.confirm({
|
|
2103
2103
|
title: 'Load Preset',
|
|
2104
2104
|
content: "".concat(texts.loadConfirm, " \"").concat(loadData.name, "\"?"),
|
|
2105
|
-
cancelText: '
|
|
2106
|
-
okText: '
|
|
2105
|
+
cancelText: 'Cancel',
|
|
2106
|
+
okText: 'Load',
|
|
2107
2107
|
// onOk 返回一个 pending Promise
|
|
2108
2108
|
onOk: () => {
|
|
2109
2109
|
return new Promise((resolve, reject) => {
|
|
@@ -2131,7 +2131,7 @@ const Preset = _ref => {
|
|
|
2131
2131
|
});
|
|
2132
2132
|
(async () => {
|
|
2133
2133
|
try {
|
|
2134
|
-
await loadPreset(_objectSpread2
|
|
2134
|
+
await loadPreset(_objectSpread2({
|
|
2135
2135
|
id: loadData.id
|
|
2136
2136
|
}, loadData.category_list && {
|
|
2137
2137
|
category_list: loadData.category_list
|
|
@@ -2255,7 +2255,7 @@ const Preset = _ref => {
|
|
|
2255
2255
|
useEffect(() => {
|
|
2256
2256
|
fetchPresetList();
|
|
2257
2257
|
}, [fetchPresetList]);
|
|
2258
|
-
return /*#__PURE__*/jsx(StyledModal$
|
|
2258
|
+
return /*#__PURE__*/jsx(StyledModal$1, {
|
|
2259
2259
|
title: texts.title,
|
|
2260
2260
|
width: width,
|
|
2261
2261
|
open: open,
|
|
@@ -2323,7 +2323,7 @@ const Preset = _ref => {
|
|
|
2323
2323
|
};
|
|
2324
2324
|
var PresetModal = /*#__PURE__*/memo(Preset);
|
|
2325
2325
|
|
|
2326
|
-
const _excluded$
|
|
2326
|
+
const _excluded$2 = ["menuItems", "onMenuClick", "downloadFiles", "upgradeExecute", "upgradeStatus", "acceptFileTypes", "uploadCompleteDelay", "statusPollingInterval", "children"];
|
|
2327
2327
|
const UpgradeManager = _ref => {
|
|
2328
2328
|
let {
|
|
2329
2329
|
menuItems = [],
|
|
@@ -2336,7 +2336,7 @@ const UpgradeManager = _ref => {
|
|
|
2336
2336
|
statusPollingInterval = 1000,
|
|
2337
2337
|
children
|
|
2338
2338
|
} = _ref,
|
|
2339
|
-
dropdownProps = _objectWithoutProperties
|
|
2339
|
+
dropdownProps = _objectWithoutProperties(_ref, _excluded$2);
|
|
2340
2340
|
const [upgradeElement] = useUpgrade$1({
|
|
2341
2341
|
menuItems,
|
|
2342
2342
|
onMenuClick,
|
|
@@ -2352,7 +2352,7 @@ const UpgradeManager = _ref => {
|
|
|
2352
2352
|
const dropdownElement = upgradeElement.props.children[0];
|
|
2353
2353
|
const otherElements = upgradeElement.props.children.slice(1);
|
|
2354
2354
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
2355
|
-
children: [/*#__PURE__*/jsx(Dropdown, _objectSpread2
|
|
2355
|
+
children: [/*#__PURE__*/jsx(Dropdown, _objectSpread2(_objectSpread2(_objectSpread2({}, dropdownProps), dropdownElement.props), {}, {
|
|
2356
2356
|
children: children
|
|
2357
2357
|
})), otherElements]
|
|
2358
2358
|
});
|
|
@@ -2367,15 +2367,15 @@ UpgradeManager.defaultProps = {
|
|
|
2367
2367
|
};
|
|
2368
2368
|
var UpgradeManager$1 = UpgradeManager;
|
|
2369
2369
|
|
|
2370
|
-
function getDefaultExportFromCjs$
|
|
2370
|
+
function getDefaultExportFromCjs$6 (x) {
|
|
2371
2371
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
2372
2372
|
}
|
|
2373
2373
|
|
|
2374
|
-
var propTypes$
|
|
2374
|
+
var propTypes$6 = {exports: {}};
|
|
2375
2375
|
|
|
2376
|
-
var reactIs$
|
|
2376
|
+
var reactIs$6 = {exports: {}};
|
|
2377
2377
|
|
|
2378
|
-
var reactIs_production_min$
|
|
2378
|
+
var reactIs_production_min$6 = {};
|
|
2379
2379
|
|
|
2380
2380
|
/** @license React v16.13.1
|
|
2381
2381
|
* react-is.production.min.js
|
|
@@ -2386,21 +2386,21 @@ var reactIs_production_min$5 = {};
|
|
|
2386
2386
|
* LICENSE file in the root directory of this source tree.
|
|
2387
2387
|
*/
|
|
2388
2388
|
|
|
2389
|
-
var hasRequiredReactIs_production_min$
|
|
2389
|
+
var hasRequiredReactIs_production_min$6;
|
|
2390
2390
|
|
|
2391
|
-
function requireReactIs_production_min$
|
|
2392
|
-
if (hasRequiredReactIs_production_min$
|
|
2393
|
-
hasRequiredReactIs_production_min$
|
|
2391
|
+
function requireReactIs_production_min$6 () {
|
|
2392
|
+
if (hasRequiredReactIs_production_min$6) return reactIs_production_min$6;
|
|
2393
|
+
hasRequiredReactIs_production_min$6 = 1;
|
|
2394
2394
|
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
2395
2395
|
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
2396
|
-
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min$
|
|
2397
|
-
reactIs_production_min$
|
|
2398
|
-
reactIs_production_min$
|
|
2399
|
-
reactIs_production_min$
|
|
2400
|
-
return reactIs_production_min$
|
|
2396
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min$6.AsyncMode=l;reactIs_production_min$6.ConcurrentMode=m;reactIs_production_min$6.ContextConsumer=k;reactIs_production_min$6.ContextProvider=h;reactIs_production_min$6.Element=c;reactIs_production_min$6.ForwardRef=n;reactIs_production_min$6.Fragment=e;reactIs_production_min$6.Lazy=t;reactIs_production_min$6.Memo=r;reactIs_production_min$6.Portal=d;
|
|
2397
|
+
reactIs_production_min$6.Profiler=g;reactIs_production_min$6.StrictMode=f;reactIs_production_min$6.Suspense=p;reactIs_production_min$6.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min$6.isConcurrentMode=A;reactIs_production_min$6.isContextConsumer=function(a){return z(a)===k};reactIs_production_min$6.isContextProvider=function(a){return z(a)===h};reactIs_production_min$6.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min$6.isForwardRef=function(a){return z(a)===n};reactIs_production_min$6.isFragment=function(a){return z(a)===e};reactIs_production_min$6.isLazy=function(a){return z(a)===t};
|
|
2398
|
+
reactIs_production_min$6.isMemo=function(a){return z(a)===r};reactIs_production_min$6.isPortal=function(a){return z(a)===d};reactIs_production_min$6.isProfiler=function(a){return z(a)===g};reactIs_production_min$6.isStrictMode=function(a){return z(a)===f};reactIs_production_min$6.isSuspense=function(a){return z(a)===p};
|
|
2399
|
+
reactIs_production_min$6.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min$6.typeOf=z;
|
|
2400
|
+
return reactIs_production_min$6;
|
|
2401
2401
|
}
|
|
2402
2402
|
|
|
2403
|
-
var reactIs_development$
|
|
2403
|
+
var reactIs_development$6 = {};
|
|
2404
2404
|
|
|
2405
2405
|
/** @license React v16.13.1
|
|
2406
2406
|
* react-is.development.js
|
|
@@ -2411,11 +2411,11 @@ var reactIs_development$5 = {};
|
|
|
2411
2411
|
* LICENSE file in the root directory of this source tree.
|
|
2412
2412
|
*/
|
|
2413
2413
|
|
|
2414
|
-
var hasRequiredReactIs_development$
|
|
2414
|
+
var hasRequiredReactIs_development$6;
|
|
2415
2415
|
|
|
2416
|
-
function requireReactIs_development$
|
|
2417
|
-
if (hasRequiredReactIs_development$
|
|
2418
|
-
hasRequiredReactIs_development$
|
|
2416
|
+
function requireReactIs_development$6 () {
|
|
2417
|
+
if (hasRequiredReactIs_development$6) return reactIs_development$6;
|
|
2418
|
+
hasRequiredReactIs_development$6 = 1;
|
|
2419
2419
|
|
|
2420
2420
|
|
|
2421
2421
|
|
|
@@ -2556,51 +2556,51 @@ function requireReactIs_development$5 () {
|
|
|
2556
2556
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
2557
2557
|
}
|
|
2558
2558
|
|
|
2559
|
-
reactIs_development$
|
|
2560
|
-
reactIs_development$
|
|
2561
|
-
reactIs_development$
|
|
2562
|
-
reactIs_development$
|
|
2563
|
-
reactIs_development$
|
|
2564
|
-
reactIs_development$
|
|
2565
|
-
reactIs_development$
|
|
2566
|
-
reactIs_development$
|
|
2567
|
-
reactIs_development$
|
|
2568
|
-
reactIs_development$
|
|
2569
|
-
reactIs_development$
|
|
2570
|
-
reactIs_development$
|
|
2571
|
-
reactIs_development$
|
|
2572
|
-
reactIs_development$
|
|
2573
|
-
reactIs_development$
|
|
2574
|
-
reactIs_development$
|
|
2575
|
-
reactIs_development$
|
|
2576
|
-
reactIs_development$
|
|
2577
|
-
reactIs_development$
|
|
2578
|
-
reactIs_development$
|
|
2579
|
-
reactIs_development$
|
|
2580
|
-
reactIs_development$
|
|
2581
|
-
reactIs_development$
|
|
2582
|
-
reactIs_development$
|
|
2583
|
-
reactIs_development$
|
|
2584
|
-
reactIs_development$
|
|
2585
|
-
reactIs_development$
|
|
2586
|
-
reactIs_development$
|
|
2559
|
+
reactIs_development$6.AsyncMode = AsyncMode;
|
|
2560
|
+
reactIs_development$6.ConcurrentMode = ConcurrentMode;
|
|
2561
|
+
reactIs_development$6.ContextConsumer = ContextConsumer;
|
|
2562
|
+
reactIs_development$6.ContextProvider = ContextProvider;
|
|
2563
|
+
reactIs_development$6.Element = Element;
|
|
2564
|
+
reactIs_development$6.ForwardRef = ForwardRef;
|
|
2565
|
+
reactIs_development$6.Fragment = Fragment;
|
|
2566
|
+
reactIs_development$6.Lazy = Lazy;
|
|
2567
|
+
reactIs_development$6.Memo = Memo;
|
|
2568
|
+
reactIs_development$6.Portal = Portal;
|
|
2569
|
+
reactIs_development$6.Profiler = Profiler;
|
|
2570
|
+
reactIs_development$6.StrictMode = StrictMode;
|
|
2571
|
+
reactIs_development$6.Suspense = Suspense;
|
|
2572
|
+
reactIs_development$6.isAsyncMode = isAsyncMode;
|
|
2573
|
+
reactIs_development$6.isConcurrentMode = isConcurrentMode;
|
|
2574
|
+
reactIs_development$6.isContextConsumer = isContextConsumer;
|
|
2575
|
+
reactIs_development$6.isContextProvider = isContextProvider;
|
|
2576
|
+
reactIs_development$6.isElement = isElement;
|
|
2577
|
+
reactIs_development$6.isForwardRef = isForwardRef;
|
|
2578
|
+
reactIs_development$6.isFragment = isFragment;
|
|
2579
|
+
reactIs_development$6.isLazy = isLazy;
|
|
2580
|
+
reactIs_development$6.isMemo = isMemo;
|
|
2581
|
+
reactIs_development$6.isPortal = isPortal;
|
|
2582
|
+
reactIs_development$6.isProfiler = isProfiler;
|
|
2583
|
+
reactIs_development$6.isStrictMode = isStrictMode;
|
|
2584
|
+
reactIs_development$6.isSuspense = isSuspense;
|
|
2585
|
+
reactIs_development$6.isValidElementType = isValidElementType;
|
|
2586
|
+
reactIs_development$6.typeOf = typeOf;
|
|
2587
2587
|
})();
|
|
2588
2588
|
}
|
|
2589
|
-
return reactIs_development$
|
|
2589
|
+
return reactIs_development$6;
|
|
2590
2590
|
}
|
|
2591
2591
|
|
|
2592
|
-
var hasRequiredReactIs$
|
|
2592
|
+
var hasRequiredReactIs$6;
|
|
2593
2593
|
|
|
2594
|
-
function requireReactIs$
|
|
2595
|
-
if (hasRequiredReactIs$
|
|
2596
|
-
hasRequiredReactIs$
|
|
2594
|
+
function requireReactIs$6 () {
|
|
2595
|
+
if (hasRequiredReactIs$6) return reactIs$6.exports;
|
|
2596
|
+
hasRequiredReactIs$6 = 1;
|
|
2597
2597
|
|
|
2598
2598
|
if (process.env.NODE_ENV === 'production') {
|
|
2599
|
-
reactIs$
|
|
2599
|
+
reactIs$6.exports = requireReactIs_production_min$6();
|
|
2600
2600
|
} else {
|
|
2601
|
-
reactIs$
|
|
2601
|
+
reactIs$6.exports = requireReactIs_development$6();
|
|
2602
2602
|
}
|
|
2603
|
-
return reactIs$
|
|
2603
|
+
return reactIs$6.exports;
|
|
2604
2604
|
}
|
|
2605
2605
|
|
|
2606
2606
|
/*
|
|
@@ -2609,12 +2609,12 @@ object-assign
|
|
|
2609
2609
|
@license MIT
|
|
2610
2610
|
*/
|
|
2611
2611
|
|
|
2612
|
-
var objectAssign$
|
|
2613
|
-
var hasRequiredObjectAssign$
|
|
2612
|
+
var objectAssign$6;
|
|
2613
|
+
var hasRequiredObjectAssign$6;
|
|
2614
2614
|
|
|
2615
|
-
function requireObjectAssign$
|
|
2616
|
-
if (hasRequiredObjectAssign$
|
|
2617
|
-
hasRequiredObjectAssign$
|
|
2615
|
+
function requireObjectAssign$6 () {
|
|
2616
|
+
if (hasRequiredObjectAssign$6) return objectAssign$6;
|
|
2617
|
+
hasRequiredObjectAssign$6 = 1;
|
|
2618
2618
|
/* eslint-disable no-unused-vars */
|
|
2619
2619
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
2620
2620
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -2672,7 +2672,7 @@ function requireObjectAssign$5 () {
|
|
|
2672
2672
|
}
|
|
2673
2673
|
}
|
|
2674
2674
|
|
|
2675
|
-
objectAssign$
|
|
2675
|
+
objectAssign$6 = shouldUseNative() ? Object.assign : function (target, source) {
|
|
2676
2676
|
var from;
|
|
2677
2677
|
var to = toObject(target);
|
|
2678
2678
|
var symbols;
|
|
@@ -2698,7 +2698,7 @@ function requireObjectAssign$5 () {
|
|
|
2698
2698
|
|
|
2699
2699
|
return to;
|
|
2700
2700
|
};
|
|
2701
|
-
return objectAssign$
|
|
2701
|
+
return objectAssign$6;
|
|
2702
2702
|
}
|
|
2703
2703
|
|
|
2704
2704
|
/**
|
|
@@ -2708,27 +2708,27 @@ function requireObjectAssign$5 () {
|
|
|
2708
2708
|
* LICENSE file in the root directory of this source tree.
|
|
2709
2709
|
*/
|
|
2710
2710
|
|
|
2711
|
-
var ReactPropTypesSecret_1$
|
|
2712
|
-
var hasRequiredReactPropTypesSecret$
|
|
2711
|
+
var ReactPropTypesSecret_1$6;
|
|
2712
|
+
var hasRequiredReactPropTypesSecret$6;
|
|
2713
2713
|
|
|
2714
|
-
function requireReactPropTypesSecret$
|
|
2715
|
-
if (hasRequiredReactPropTypesSecret$
|
|
2716
|
-
hasRequiredReactPropTypesSecret$
|
|
2714
|
+
function requireReactPropTypesSecret$6 () {
|
|
2715
|
+
if (hasRequiredReactPropTypesSecret$6) return ReactPropTypesSecret_1$6;
|
|
2716
|
+
hasRequiredReactPropTypesSecret$6 = 1;
|
|
2717
2717
|
|
|
2718
2718
|
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
2719
2719
|
|
|
2720
|
-
ReactPropTypesSecret_1$
|
|
2721
|
-
return ReactPropTypesSecret_1$
|
|
2720
|
+
ReactPropTypesSecret_1$6 = ReactPropTypesSecret;
|
|
2721
|
+
return ReactPropTypesSecret_1$6;
|
|
2722
2722
|
}
|
|
2723
2723
|
|
|
2724
|
-
var has$
|
|
2725
|
-
var hasRequiredHas$
|
|
2724
|
+
var has$6;
|
|
2725
|
+
var hasRequiredHas$6;
|
|
2726
2726
|
|
|
2727
|
-
function requireHas$
|
|
2728
|
-
if (hasRequiredHas$
|
|
2729
|
-
hasRequiredHas$
|
|
2730
|
-
has$
|
|
2731
|
-
return has$
|
|
2727
|
+
function requireHas$6 () {
|
|
2728
|
+
if (hasRequiredHas$6) return has$6;
|
|
2729
|
+
hasRequiredHas$6 = 1;
|
|
2730
|
+
has$6 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2731
|
+
return has$6;
|
|
2732
2732
|
}
|
|
2733
2733
|
|
|
2734
2734
|
/**
|
|
@@ -2738,19 +2738,19 @@ function requireHas$5 () {
|
|
|
2738
2738
|
* LICENSE file in the root directory of this source tree.
|
|
2739
2739
|
*/
|
|
2740
2740
|
|
|
2741
|
-
var checkPropTypes_1$
|
|
2742
|
-
var hasRequiredCheckPropTypes$
|
|
2741
|
+
var checkPropTypes_1$6;
|
|
2742
|
+
var hasRequiredCheckPropTypes$6;
|
|
2743
2743
|
|
|
2744
|
-
function requireCheckPropTypes$
|
|
2745
|
-
if (hasRequiredCheckPropTypes$
|
|
2746
|
-
hasRequiredCheckPropTypes$
|
|
2744
|
+
function requireCheckPropTypes$6 () {
|
|
2745
|
+
if (hasRequiredCheckPropTypes$6) return checkPropTypes_1$6;
|
|
2746
|
+
hasRequiredCheckPropTypes$6 = 1;
|
|
2747
2747
|
|
|
2748
2748
|
var printWarning = function() {};
|
|
2749
2749
|
|
|
2750
2750
|
if (process.env.NODE_ENV !== 'production') {
|
|
2751
|
-
var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$
|
|
2751
|
+
var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$6();
|
|
2752
2752
|
var loggedTypeFailures = {};
|
|
2753
|
-
var has = /*@__PURE__*/ requireHas$
|
|
2753
|
+
var has = /*@__PURE__*/ requireHas$6();
|
|
2754
2754
|
|
|
2755
2755
|
printWarning = function(text) {
|
|
2756
2756
|
var message = 'Warning: ' + text;
|
|
@@ -2838,8 +2838,8 @@ function requireCheckPropTypes$5 () {
|
|
|
2838
2838
|
}
|
|
2839
2839
|
};
|
|
2840
2840
|
|
|
2841
|
-
checkPropTypes_1$
|
|
2842
|
-
return checkPropTypes_1$
|
|
2841
|
+
checkPropTypes_1$6 = checkPropTypes;
|
|
2842
|
+
return checkPropTypes_1$6;
|
|
2843
2843
|
}
|
|
2844
2844
|
|
|
2845
2845
|
/**
|
|
@@ -2849,19 +2849,19 @@ function requireCheckPropTypes$5 () {
|
|
|
2849
2849
|
* LICENSE file in the root directory of this source tree.
|
|
2850
2850
|
*/
|
|
2851
2851
|
|
|
2852
|
-
var factoryWithTypeCheckers$
|
|
2853
|
-
var hasRequiredFactoryWithTypeCheckers$
|
|
2852
|
+
var factoryWithTypeCheckers$6;
|
|
2853
|
+
var hasRequiredFactoryWithTypeCheckers$6;
|
|
2854
2854
|
|
|
2855
|
-
function requireFactoryWithTypeCheckers$
|
|
2856
|
-
if (hasRequiredFactoryWithTypeCheckers$
|
|
2857
|
-
hasRequiredFactoryWithTypeCheckers$
|
|
2855
|
+
function requireFactoryWithTypeCheckers$6 () {
|
|
2856
|
+
if (hasRequiredFactoryWithTypeCheckers$6) return factoryWithTypeCheckers$6;
|
|
2857
|
+
hasRequiredFactoryWithTypeCheckers$6 = 1;
|
|
2858
2858
|
|
|
2859
|
-
var ReactIs = requireReactIs$
|
|
2860
|
-
var assign = requireObjectAssign$
|
|
2859
|
+
var ReactIs = requireReactIs$6();
|
|
2860
|
+
var assign = requireObjectAssign$6();
|
|
2861
2861
|
|
|
2862
|
-
var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$
|
|
2863
|
-
var has = /*@__PURE__*/ requireHas$
|
|
2864
|
-
var checkPropTypes = /*@__PURE__*/ requireCheckPropTypes$
|
|
2862
|
+
var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$6();
|
|
2863
|
+
var has = /*@__PURE__*/ requireHas$6();
|
|
2864
|
+
var checkPropTypes = /*@__PURE__*/ requireCheckPropTypes$6();
|
|
2865
2865
|
|
|
2866
2866
|
var printWarning = function() {};
|
|
2867
2867
|
|
|
@@ -2884,7 +2884,7 @@ function requireFactoryWithTypeCheckers$5 () {
|
|
|
2884
2884
|
return null;
|
|
2885
2885
|
}
|
|
2886
2886
|
|
|
2887
|
-
factoryWithTypeCheckers$
|
|
2887
|
+
factoryWithTypeCheckers$6 = function(isValidElement, throwOnDirectAccess) {
|
|
2888
2888
|
/* global Symbol */
|
|
2889
2889
|
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
2890
2890
|
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
@@ -3457,7 +3457,7 @@ function requireFactoryWithTypeCheckers$5 () {
|
|
|
3457
3457
|
|
|
3458
3458
|
return ReactPropTypes;
|
|
3459
3459
|
};
|
|
3460
|
-
return factoryWithTypeCheckers$
|
|
3460
|
+
return factoryWithTypeCheckers$6;
|
|
3461
3461
|
}
|
|
3462
3462
|
|
|
3463
3463
|
/**
|
|
@@ -3467,20 +3467,20 @@ function requireFactoryWithTypeCheckers$5 () {
|
|
|
3467
3467
|
* LICENSE file in the root directory of this source tree.
|
|
3468
3468
|
*/
|
|
3469
3469
|
|
|
3470
|
-
var factoryWithThrowingShims$
|
|
3471
|
-
var hasRequiredFactoryWithThrowingShims$
|
|
3470
|
+
var factoryWithThrowingShims$6;
|
|
3471
|
+
var hasRequiredFactoryWithThrowingShims$6;
|
|
3472
3472
|
|
|
3473
|
-
function requireFactoryWithThrowingShims$
|
|
3474
|
-
if (hasRequiredFactoryWithThrowingShims$
|
|
3475
|
-
hasRequiredFactoryWithThrowingShims$
|
|
3473
|
+
function requireFactoryWithThrowingShims$6 () {
|
|
3474
|
+
if (hasRequiredFactoryWithThrowingShims$6) return factoryWithThrowingShims$6;
|
|
3475
|
+
hasRequiredFactoryWithThrowingShims$6 = 1;
|
|
3476
3476
|
|
|
3477
|
-
var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$
|
|
3477
|
+
var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$6();
|
|
3478
3478
|
|
|
3479
3479
|
function emptyFunction() {}
|
|
3480
3480
|
function emptyFunctionWithReset() {}
|
|
3481
3481
|
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
3482
3482
|
|
|
3483
|
-
factoryWithThrowingShims$
|
|
3483
|
+
factoryWithThrowingShims$6 = function() {
|
|
3484
3484
|
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
3485
3485
|
if (secret === ReactPropTypesSecret) {
|
|
3486
3486
|
// It is still safe when called from React.
|
|
@@ -3528,7 +3528,7 @@ function requireFactoryWithThrowingShims$5 () {
|
|
|
3528
3528
|
|
|
3529
3529
|
return ReactPropTypes;
|
|
3530
3530
|
};
|
|
3531
|
-
return factoryWithThrowingShims$
|
|
3531
|
+
return factoryWithThrowingShims$6;
|
|
3532
3532
|
}
|
|
3533
3533
|
|
|
3534
3534
|
/**
|
|
@@ -3538,28 +3538,28 @@ function requireFactoryWithThrowingShims$5 () {
|
|
|
3538
3538
|
* LICENSE file in the root directory of this source tree.
|
|
3539
3539
|
*/
|
|
3540
3540
|
|
|
3541
|
-
var hasRequiredPropTypes$
|
|
3541
|
+
var hasRequiredPropTypes$6;
|
|
3542
3542
|
|
|
3543
|
-
function requirePropTypes$
|
|
3544
|
-
if (hasRequiredPropTypes$
|
|
3545
|
-
hasRequiredPropTypes$
|
|
3543
|
+
function requirePropTypes$6 () {
|
|
3544
|
+
if (hasRequiredPropTypes$6) return propTypes$6.exports;
|
|
3545
|
+
hasRequiredPropTypes$6 = 1;
|
|
3546
3546
|
if (process.env.NODE_ENV !== 'production') {
|
|
3547
|
-
var ReactIs = requireReactIs$
|
|
3547
|
+
var ReactIs = requireReactIs$6();
|
|
3548
3548
|
|
|
3549
3549
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
3550
3550
|
// http://fb.me/prop-types-in-prod
|
|
3551
3551
|
var throwOnDirectAccess = true;
|
|
3552
|
-
propTypes$
|
|
3552
|
+
propTypes$6.exports = /*@__PURE__*/ requireFactoryWithTypeCheckers$6()(ReactIs.isElement, throwOnDirectAccess);
|
|
3553
3553
|
} else {
|
|
3554
3554
|
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
3555
3555
|
// http://fb.me/prop-types-in-prod
|
|
3556
|
-
propTypes$
|
|
3556
|
+
propTypes$6.exports = /*@__PURE__*/ requireFactoryWithThrowingShims$6()();
|
|
3557
3557
|
}
|
|
3558
|
-
return propTypes$
|
|
3558
|
+
return propTypes$6.exports;
|
|
3559
3559
|
}
|
|
3560
3560
|
|
|
3561
|
-
var propTypesExports$
|
|
3562
|
-
var PropTypes$
|
|
3561
|
+
var propTypesExports$6 = /*@__PURE__*/ requirePropTypes$6();
|
|
3562
|
+
var PropTypes$6 = /*@__PURE__*/getDefaultExportFromCjs$6(propTypesExports$6);
|
|
3563
3563
|
|
|
3564
3564
|
const SystemOperations = _ref => {
|
|
3565
3565
|
let {
|
|
@@ -3574,8 +3574,8 @@ const SystemOperations = _ref => {
|
|
|
3574
3574
|
iconClassName = "seeder-iconfont seeder-icon-guanji1 text-xl text-neutral-400",
|
|
3575
3575
|
confirmMessage = "Are you sure you want to {action} the system? This action cannot be undone.",
|
|
3576
3576
|
confirmTitle = "Confirmation Required",
|
|
3577
|
-
cancelText = "
|
|
3578
|
-
okText = "
|
|
3577
|
+
cancelText = "Cancel",
|
|
3578
|
+
okText = "Confirm"
|
|
3579
3579
|
} = _ref;
|
|
3580
3580
|
const {
|
|
3581
3581
|
modal
|
|
@@ -3650,15 +3650,15 @@ const SystemOperations = _ref => {
|
|
|
3650
3650
|
});
|
|
3651
3651
|
};
|
|
3652
3652
|
SystemOperations.propTypes = {
|
|
3653
|
-
onPowerOff: PropTypes$
|
|
3654
|
-
onRestart: PropTypes$
|
|
3655
|
-
powerOffLabel: PropTypes$
|
|
3656
|
-
restartLabel: PropTypes$
|
|
3657
|
-
iconClassName: PropTypes$
|
|
3658
|
-
confirmTitle: PropTypes$
|
|
3659
|
-
cancelText: PropTypes$
|
|
3660
|
-
okText: PropTypes$
|
|
3661
|
-
run: PropTypes$
|
|
3653
|
+
onPowerOff: PropTypes$6.func,
|
|
3654
|
+
onRestart: PropTypes$6.func,
|
|
3655
|
+
powerOffLabel: PropTypes$6.string,
|
|
3656
|
+
restartLabel: PropTypes$6.string,
|
|
3657
|
+
iconClassName: PropTypes$6.string,
|
|
3658
|
+
confirmTitle: PropTypes$6.string,
|
|
3659
|
+
cancelText: PropTypes$6.string,
|
|
3660
|
+
okText: PropTypes$6.string,
|
|
3661
|
+
run: PropTypes$6.func
|
|
3662
3662
|
};
|
|
3663
3663
|
var SystemOperations$1 = SystemOperations;
|
|
3664
3664
|
|
|
@@ -3701,10 +3701,10 @@ const useSpaLogo = function () {
|
|
|
3701
3701
|
}, "logo")];
|
|
3702
3702
|
};
|
|
3703
3703
|
useSpaLogo.propTypes = {
|
|
3704
|
-
logoUrl: PropTypes$
|
|
3705
|
-
logoWidth: PropTypes$
|
|
3706
|
-
logoAlt: PropTypes$
|
|
3707
|
-
onClick: PropTypes$
|
|
3704
|
+
logoUrl: PropTypes$6.string,
|
|
3705
|
+
logoWidth: PropTypes$6.number,
|
|
3706
|
+
logoAlt: PropTypes$6.string,
|
|
3707
|
+
onClick: PropTypes$6.func
|
|
3708
3708
|
};
|
|
3709
3709
|
var useSpaLogo$1 = useSpaLogo;
|
|
3710
3710
|
|
|
@@ -3816,10 +3816,10 @@ const LSMLabelField = props => {
|
|
|
3816
3816
|
};
|
|
3817
3817
|
loadLsmData();
|
|
3818
3818
|
}, [fetchLsmData]);
|
|
3819
|
-
return /*#__PURE__*/jsx(Form.Item, _objectSpread2
|
|
3819
|
+
return /*#__PURE__*/jsx(Form.Item, _objectSpread2(_objectSpread2({
|
|
3820
3820
|
label: label
|
|
3821
3821
|
}, formItemProps), {}, {
|
|
3822
|
-
children: /*#__PURE__*/jsx(Select, _objectSpread2
|
|
3822
|
+
children: /*#__PURE__*/jsx(Select, _objectSpread2(_objectSpread2(_objectSpread2({}, field), selectProps), {}, {
|
|
3823
3823
|
options: lsmList,
|
|
3824
3824
|
fieldNames: fieldNames,
|
|
3825
3825
|
allowClear: true,
|
|
@@ -3835,15 +3835,15 @@ const LSMLabelField = props => {
|
|
|
3835
3835
|
};
|
|
3836
3836
|
var LSMLabelField$1 = /*#__PURE__*/memo(LSMLabelField);
|
|
3837
3837
|
|
|
3838
|
-
function _defineProperty(e, r, t) {
|
|
3839
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
3838
|
+
function _defineProperty$1(e, r, t) {
|
|
3839
|
+
return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
|
|
3840
3840
|
value: t,
|
|
3841
3841
|
enumerable: !0,
|
|
3842
3842
|
configurable: !0,
|
|
3843
3843
|
writable: !0
|
|
3844
3844
|
}) : e[r] = t, e;
|
|
3845
3845
|
}
|
|
3846
|
-
function ownKeys(e, r) {
|
|
3846
|
+
function ownKeys$1(e, r) {
|
|
3847
3847
|
var t = Object.keys(e);
|
|
3848
3848
|
if (Object.getOwnPropertySymbols) {
|
|
3849
3849
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -3853,29 +3853,29 @@ function ownKeys(e, r) {
|
|
|
3853
3853
|
}
|
|
3854
3854
|
return t;
|
|
3855
3855
|
}
|
|
3856
|
-
function _objectSpread2(e) {
|
|
3856
|
+
function _objectSpread2$1(e) {
|
|
3857
3857
|
for (var r = 1; r < arguments.length; r++) {
|
|
3858
3858
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
3859
|
-
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
3860
|
-
_defineProperty(e, r, t[r]);
|
|
3861
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
3859
|
+
r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) {
|
|
3860
|
+
_defineProperty$1(e, r, t[r]);
|
|
3861
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) {
|
|
3862
3862
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
3863
3863
|
});
|
|
3864
3864
|
}
|
|
3865
3865
|
return e;
|
|
3866
3866
|
}
|
|
3867
|
-
function _objectWithoutProperties(e, t) {
|
|
3867
|
+
function _objectWithoutProperties$1(e, t) {
|
|
3868
3868
|
if (null == e) return {};
|
|
3869
3869
|
var o,
|
|
3870
3870
|
r,
|
|
3871
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
3871
|
+
i = _objectWithoutPropertiesLoose$1(e, t);
|
|
3872
3872
|
if (Object.getOwnPropertySymbols) {
|
|
3873
3873
|
var n = Object.getOwnPropertySymbols(e);
|
|
3874
3874
|
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
3875
3875
|
}
|
|
3876
3876
|
return i;
|
|
3877
3877
|
}
|
|
3878
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
3878
|
+
function _objectWithoutPropertiesLoose$1(r, e) {
|
|
3879
3879
|
if (null == r) return {};
|
|
3880
3880
|
var t = {};
|
|
3881
3881
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
@@ -3884,7 +3884,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
3884
3884
|
}
|
|
3885
3885
|
return t;
|
|
3886
3886
|
}
|
|
3887
|
-
function _toPrimitive(t, r) {
|
|
3887
|
+
function _toPrimitive$1(t, r) {
|
|
3888
3888
|
if ("object" != typeof t || !t) return t;
|
|
3889
3889
|
var e = t[Symbol.toPrimitive];
|
|
3890
3890
|
if (void 0 !== e) {
|
|
@@ -3894,19 +3894,19 @@ function _toPrimitive(t, r) {
|
|
|
3894
3894
|
}
|
|
3895
3895
|
return ("string" === r ? String : Number)(t);
|
|
3896
3896
|
}
|
|
3897
|
-
function _toPropertyKey(t) {
|
|
3898
|
-
var i = _toPrimitive(t, "string");
|
|
3897
|
+
function _toPropertyKey$1(t) {
|
|
3898
|
+
var i = _toPrimitive$1(t, "string");
|
|
3899
3899
|
return "symbol" == typeof i ? i : i + "";
|
|
3900
3900
|
}
|
|
3901
|
-
const _excluded$
|
|
3902
|
-
const StyledModal = props => {
|
|
3901
|
+
const _excluded$4 = ["width", "okText", "cancelText", "styles"];
|
|
3902
|
+
const StyledModal$2 = props => {
|
|
3903
3903
|
const {
|
|
3904
3904
|
width = "520px",
|
|
3905
3905
|
okText = "Apply",
|
|
3906
3906
|
cancelText = "Close",
|
|
3907
3907
|
styles: propStyles = {}
|
|
3908
3908
|
} = props,
|
|
3909
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
3909
|
+
restProps = _objectWithoutProperties$1(props, _excluded$4);
|
|
3910
3910
|
|
|
3911
3911
|
// 基础样式配置
|
|
3912
3912
|
const baseStyles = {
|
|
@@ -3934,15 +3934,1192 @@ const StyledModal = props => {
|
|
|
3934
3934
|
};
|
|
3935
3935
|
|
|
3936
3936
|
// 合并样式
|
|
3937
|
-
const styles = _objectSpread2(_objectSpread2({}, baseStyles), propStyles);
|
|
3938
|
-
return /*#__PURE__*/jsx(Modal, _objectSpread2({
|
|
3937
|
+
const styles = _objectSpread2$1(_objectSpread2$1({}, baseStyles), propStyles);
|
|
3938
|
+
return /*#__PURE__*/jsx(Modal, _objectSpread2$1({
|
|
3939
3939
|
width: width,
|
|
3940
3940
|
okText: okText,
|
|
3941
3941
|
cancelText: cancelText,
|
|
3942
3942
|
styles: styles
|
|
3943
3943
|
}, restProps));
|
|
3944
3944
|
};
|
|
3945
|
-
var StyledModal$
|
|
3945
|
+
var StyledModal$3 = StyledModal$2;
|
|
3946
|
+
function getDefaultExportFromCjs$5(x) {
|
|
3947
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
3948
|
+
}
|
|
3949
|
+
var propTypes$5 = {
|
|
3950
|
+
exports: {}
|
|
3951
|
+
};
|
|
3952
|
+
var reactIs$5 = {
|
|
3953
|
+
exports: {}
|
|
3954
|
+
};
|
|
3955
|
+
var reactIs_production_min$5 = {};
|
|
3956
|
+
|
|
3957
|
+
/** @license React v16.13.1
|
|
3958
|
+
* react-is.production.min.js
|
|
3959
|
+
*
|
|
3960
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3961
|
+
*
|
|
3962
|
+
* This source code is licensed under the MIT license found in the
|
|
3963
|
+
* LICENSE file in the root directory of this source tree.
|
|
3964
|
+
*/
|
|
3965
|
+
|
|
3966
|
+
var hasRequiredReactIs_production_min$5;
|
|
3967
|
+
function requireReactIs_production_min$5() {
|
|
3968
|
+
if (hasRequiredReactIs_production_min$5) return reactIs_production_min$5;
|
|
3969
|
+
hasRequiredReactIs_production_min$5 = 1;
|
|
3970
|
+
var b = "function" === typeof Symbol && Symbol.for,
|
|
3971
|
+
c = b ? Symbol.for("react.element") : 60103,
|
|
3972
|
+
d = b ? Symbol.for("react.portal") : 60106,
|
|
3973
|
+
e = b ? Symbol.for("react.fragment") : 60107,
|
|
3974
|
+
f = b ? Symbol.for("react.strict_mode") : 60108,
|
|
3975
|
+
g = b ? Symbol.for("react.profiler") : 60114,
|
|
3976
|
+
h = b ? Symbol.for("react.provider") : 60109,
|
|
3977
|
+
k = b ? Symbol.for("react.context") : 60110,
|
|
3978
|
+
l = b ? Symbol.for("react.async_mode") : 60111,
|
|
3979
|
+
m = b ? Symbol.for("react.concurrent_mode") : 60111,
|
|
3980
|
+
n = b ? Symbol.for("react.forward_ref") : 60112,
|
|
3981
|
+
p = b ? Symbol.for("react.suspense") : 60113,
|
|
3982
|
+
q = b ? Symbol.for("react.suspense_list") : 60120,
|
|
3983
|
+
r = b ? Symbol.for("react.memo") : 60115,
|
|
3984
|
+
t = b ? Symbol.for("react.lazy") : 60116,
|
|
3985
|
+
v = b ? Symbol.for("react.block") : 60121,
|
|
3986
|
+
w = b ? Symbol.for("react.fundamental") : 60117,
|
|
3987
|
+
x = b ? Symbol.for("react.responder") : 60118,
|
|
3988
|
+
y = b ? Symbol.for("react.scope") : 60119;
|
|
3989
|
+
function z(a) {
|
|
3990
|
+
if ("object" === typeof a && null !== a) {
|
|
3991
|
+
var u = a.$$typeof;
|
|
3992
|
+
switch (u) {
|
|
3993
|
+
case c:
|
|
3994
|
+
switch (a = a.type, a) {
|
|
3995
|
+
case l:
|
|
3996
|
+
case m:
|
|
3997
|
+
case e:
|
|
3998
|
+
case g:
|
|
3999
|
+
case f:
|
|
4000
|
+
case p:
|
|
4001
|
+
return a;
|
|
4002
|
+
default:
|
|
4003
|
+
switch (a = a && a.$$typeof, a) {
|
|
4004
|
+
case k:
|
|
4005
|
+
case n:
|
|
4006
|
+
case t:
|
|
4007
|
+
case r:
|
|
4008
|
+
case h:
|
|
4009
|
+
return a;
|
|
4010
|
+
default:
|
|
4011
|
+
return u;
|
|
4012
|
+
}
|
|
4013
|
+
}
|
|
4014
|
+
case d:
|
|
4015
|
+
return u;
|
|
4016
|
+
}
|
|
4017
|
+
}
|
|
4018
|
+
}
|
|
4019
|
+
function A(a) {
|
|
4020
|
+
return z(a) === m;
|
|
4021
|
+
}
|
|
4022
|
+
reactIs_production_min$5.AsyncMode = l;
|
|
4023
|
+
reactIs_production_min$5.ConcurrentMode = m;
|
|
4024
|
+
reactIs_production_min$5.ContextConsumer = k;
|
|
4025
|
+
reactIs_production_min$5.ContextProvider = h;
|
|
4026
|
+
reactIs_production_min$5.Element = c;
|
|
4027
|
+
reactIs_production_min$5.ForwardRef = n;
|
|
4028
|
+
reactIs_production_min$5.Fragment = e;
|
|
4029
|
+
reactIs_production_min$5.Lazy = t;
|
|
4030
|
+
reactIs_production_min$5.Memo = r;
|
|
4031
|
+
reactIs_production_min$5.Portal = d;
|
|
4032
|
+
reactIs_production_min$5.Profiler = g;
|
|
4033
|
+
reactIs_production_min$5.StrictMode = f;
|
|
4034
|
+
reactIs_production_min$5.Suspense = p;
|
|
4035
|
+
reactIs_production_min$5.isAsyncMode = function (a) {
|
|
4036
|
+
return A(a) || z(a) === l;
|
|
4037
|
+
};
|
|
4038
|
+
reactIs_production_min$5.isConcurrentMode = A;
|
|
4039
|
+
reactIs_production_min$5.isContextConsumer = function (a) {
|
|
4040
|
+
return z(a) === k;
|
|
4041
|
+
};
|
|
4042
|
+
reactIs_production_min$5.isContextProvider = function (a) {
|
|
4043
|
+
return z(a) === h;
|
|
4044
|
+
};
|
|
4045
|
+
reactIs_production_min$5.isElement = function (a) {
|
|
4046
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
4047
|
+
};
|
|
4048
|
+
reactIs_production_min$5.isForwardRef = function (a) {
|
|
4049
|
+
return z(a) === n;
|
|
4050
|
+
};
|
|
4051
|
+
reactIs_production_min$5.isFragment = function (a) {
|
|
4052
|
+
return z(a) === e;
|
|
4053
|
+
};
|
|
4054
|
+
reactIs_production_min$5.isLazy = function (a) {
|
|
4055
|
+
return z(a) === t;
|
|
4056
|
+
};
|
|
4057
|
+
reactIs_production_min$5.isMemo = function (a) {
|
|
4058
|
+
return z(a) === r;
|
|
4059
|
+
};
|
|
4060
|
+
reactIs_production_min$5.isPortal = function (a) {
|
|
4061
|
+
return z(a) === d;
|
|
4062
|
+
};
|
|
4063
|
+
reactIs_production_min$5.isProfiler = function (a) {
|
|
4064
|
+
return z(a) === g;
|
|
4065
|
+
};
|
|
4066
|
+
reactIs_production_min$5.isStrictMode = function (a) {
|
|
4067
|
+
return z(a) === f;
|
|
4068
|
+
};
|
|
4069
|
+
reactIs_production_min$5.isSuspense = function (a) {
|
|
4070
|
+
return z(a) === p;
|
|
4071
|
+
};
|
|
4072
|
+
reactIs_production_min$5.isValidElementType = function (a) {
|
|
4073
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
4074
|
+
};
|
|
4075
|
+
reactIs_production_min$5.typeOf = z;
|
|
4076
|
+
return reactIs_production_min$5;
|
|
4077
|
+
}
|
|
4078
|
+
var reactIs_development$5 = {};
|
|
4079
|
+
|
|
4080
|
+
/** @license React v16.13.1
|
|
4081
|
+
* react-is.development.js
|
|
4082
|
+
*
|
|
4083
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
4084
|
+
*
|
|
4085
|
+
* This source code is licensed under the MIT license found in the
|
|
4086
|
+
* LICENSE file in the root directory of this source tree.
|
|
4087
|
+
*/
|
|
4088
|
+
|
|
4089
|
+
var hasRequiredReactIs_development$5;
|
|
4090
|
+
function requireReactIs_development$5() {
|
|
4091
|
+
if (hasRequiredReactIs_development$5) return reactIs_development$5;
|
|
4092
|
+
hasRequiredReactIs_development$5 = 1;
|
|
4093
|
+
if (process.env.NODE_ENV !== "production") {
|
|
4094
|
+
(function () {
|
|
4095
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
4096
|
+
// nor polyfill, then a plain number is used for performance.
|
|
4097
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
4098
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
4099
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
4100
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
4101
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
4102
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
4103
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
4104
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
4105
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
4106
|
+
|
|
4107
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
4108
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
4109
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
4110
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
4111
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
4112
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
4113
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
4114
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
4115
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
4116
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
4117
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
4118
|
+
function isValidElementType(type) {
|
|
4119
|
+
return typeof type === 'string' || typeof type === 'function' ||
|
|
4120
|
+
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
4121
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
4122
|
+
}
|
|
4123
|
+
function typeOf(object) {
|
|
4124
|
+
if (typeof object === 'object' && object !== null) {
|
|
4125
|
+
var $$typeof = object.$$typeof;
|
|
4126
|
+
switch ($$typeof) {
|
|
4127
|
+
case REACT_ELEMENT_TYPE:
|
|
4128
|
+
var type = object.type;
|
|
4129
|
+
switch (type) {
|
|
4130
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
4131
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
4132
|
+
case REACT_FRAGMENT_TYPE:
|
|
4133
|
+
case REACT_PROFILER_TYPE:
|
|
4134
|
+
case REACT_STRICT_MODE_TYPE:
|
|
4135
|
+
case REACT_SUSPENSE_TYPE:
|
|
4136
|
+
return type;
|
|
4137
|
+
default:
|
|
4138
|
+
var $$typeofType = type && type.$$typeof;
|
|
4139
|
+
switch ($$typeofType) {
|
|
4140
|
+
case REACT_CONTEXT_TYPE:
|
|
4141
|
+
case REACT_FORWARD_REF_TYPE:
|
|
4142
|
+
case REACT_LAZY_TYPE:
|
|
4143
|
+
case REACT_MEMO_TYPE:
|
|
4144
|
+
case REACT_PROVIDER_TYPE:
|
|
4145
|
+
return $$typeofType;
|
|
4146
|
+
default:
|
|
4147
|
+
return $$typeof;
|
|
4148
|
+
}
|
|
4149
|
+
}
|
|
4150
|
+
case REACT_PORTAL_TYPE:
|
|
4151
|
+
return $$typeof;
|
|
4152
|
+
}
|
|
4153
|
+
}
|
|
4154
|
+
return undefined;
|
|
4155
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
4156
|
+
|
|
4157
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
4158
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
4159
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
4160
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
4161
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
4162
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
4163
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
4164
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
4165
|
+
var Memo = REACT_MEMO_TYPE;
|
|
4166
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
4167
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
4168
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
4169
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
4170
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
4171
|
+
|
|
4172
|
+
function isAsyncMode(object) {
|
|
4173
|
+
{
|
|
4174
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
4175
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
4176
|
+
|
|
4177
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
4178
|
+
}
|
|
4179
|
+
}
|
|
4180
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
4181
|
+
}
|
|
4182
|
+
function isConcurrentMode(object) {
|
|
4183
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
4184
|
+
}
|
|
4185
|
+
function isContextConsumer(object) {
|
|
4186
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
4187
|
+
}
|
|
4188
|
+
function isContextProvider(object) {
|
|
4189
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
4190
|
+
}
|
|
4191
|
+
function isElement(object) {
|
|
4192
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
4193
|
+
}
|
|
4194
|
+
function isForwardRef(object) {
|
|
4195
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
4196
|
+
}
|
|
4197
|
+
function isFragment(object) {
|
|
4198
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
4199
|
+
}
|
|
4200
|
+
function isLazy(object) {
|
|
4201
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
4202
|
+
}
|
|
4203
|
+
function isMemo(object) {
|
|
4204
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
4205
|
+
}
|
|
4206
|
+
function isPortal(object) {
|
|
4207
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
4208
|
+
}
|
|
4209
|
+
function isProfiler(object) {
|
|
4210
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
4211
|
+
}
|
|
4212
|
+
function isStrictMode(object) {
|
|
4213
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
4214
|
+
}
|
|
4215
|
+
function isSuspense(object) {
|
|
4216
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
4217
|
+
}
|
|
4218
|
+
reactIs_development$5.AsyncMode = AsyncMode;
|
|
4219
|
+
reactIs_development$5.ConcurrentMode = ConcurrentMode;
|
|
4220
|
+
reactIs_development$5.ContextConsumer = ContextConsumer;
|
|
4221
|
+
reactIs_development$5.ContextProvider = ContextProvider;
|
|
4222
|
+
reactIs_development$5.Element = Element;
|
|
4223
|
+
reactIs_development$5.ForwardRef = ForwardRef;
|
|
4224
|
+
reactIs_development$5.Fragment = Fragment;
|
|
4225
|
+
reactIs_development$5.Lazy = Lazy;
|
|
4226
|
+
reactIs_development$5.Memo = Memo;
|
|
4227
|
+
reactIs_development$5.Portal = Portal;
|
|
4228
|
+
reactIs_development$5.Profiler = Profiler;
|
|
4229
|
+
reactIs_development$5.StrictMode = StrictMode;
|
|
4230
|
+
reactIs_development$5.Suspense = Suspense;
|
|
4231
|
+
reactIs_development$5.isAsyncMode = isAsyncMode;
|
|
4232
|
+
reactIs_development$5.isConcurrentMode = isConcurrentMode;
|
|
4233
|
+
reactIs_development$5.isContextConsumer = isContextConsumer;
|
|
4234
|
+
reactIs_development$5.isContextProvider = isContextProvider;
|
|
4235
|
+
reactIs_development$5.isElement = isElement;
|
|
4236
|
+
reactIs_development$5.isForwardRef = isForwardRef;
|
|
4237
|
+
reactIs_development$5.isFragment = isFragment;
|
|
4238
|
+
reactIs_development$5.isLazy = isLazy;
|
|
4239
|
+
reactIs_development$5.isMemo = isMemo;
|
|
4240
|
+
reactIs_development$5.isPortal = isPortal;
|
|
4241
|
+
reactIs_development$5.isProfiler = isProfiler;
|
|
4242
|
+
reactIs_development$5.isStrictMode = isStrictMode;
|
|
4243
|
+
reactIs_development$5.isSuspense = isSuspense;
|
|
4244
|
+
reactIs_development$5.isValidElementType = isValidElementType;
|
|
4245
|
+
reactIs_development$5.typeOf = typeOf;
|
|
4246
|
+
})();
|
|
4247
|
+
}
|
|
4248
|
+
return reactIs_development$5;
|
|
4249
|
+
}
|
|
4250
|
+
var hasRequiredReactIs$5;
|
|
4251
|
+
function requireReactIs$5() {
|
|
4252
|
+
if (hasRequiredReactIs$5) return reactIs$5.exports;
|
|
4253
|
+
hasRequiredReactIs$5 = 1;
|
|
4254
|
+
if (process.env.NODE_ENV === 'production') {
|
|
4255
|
+
reactIs$5.exports = requireReactIs_production_min$5();
|
|
4256
|
+
} else {
|
|
4257
|
+
reactIs$5.exports = requireReactIs_development$5();
|
|
4258
|
+
}
|
|
4259
|
+
return reactIs$5.exports;
|
|
4260
|
+
}
|
|
4261
|
+
|
|
4262
|
+
/*
|
|
4263
|
+
object-assign
|
|
4264
|
+
(c) Sindre Sorhus
|
|
4265
|
+
@license MIT
|
|
4266
|
+
*/
|
|
4267
|
+
|
|
4268
|
+
var objectAssign$5;
|
|
4269
|
+
var hasRequiredObjectAssign$5;
|
|
4270
|
+
function requireObjectAssign$5() {
|
|
4271
|
+
if (hasRequiredObjectAssign$5) return objectAssign$5;
|
|
4272
|
+
hasRequiredObjectAssign$5 = 1;
|
|
4273
|
+
/* eslint-disable no-unused-vars */
|
|
4274
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
4275
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
4276
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
4277
|
+
function toObject(val) {
|
|
4278
|
+
if (val === null || val === undefined) {
|
|
4279
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
4280
|
+
}
|
|
4281
|
+
return Object(val);
|
|
4282
|
+
}
|
|
4283
|
+
function shouldUseNative() {
|
|
4284
|
+
try {
|
|
4285
|
+
if (!Object.assign) {
|
|
4286
|
+
return false;
|
|
4287
|
+
}
|
|
4288
|
+
|
|
4289
|
+
// Detect buggy property enumeration order in older V8 versions.
|
|
4290
|
+
|
|
4291
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
4292
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
4293
|
+
test1[5] = 'de';
|
|
4294
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
4295
|
+
return false;
|
|
4296
|
+
}
|
|
4297
|
+
|
|
4298
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
4299
|
+
var test2 = {};
|
|
4300
|
+
for (var i = 0; i < 10; i++) {
|
|
4301
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
4302
|
+
}
|
|
4303
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
4304
|
+
return test2[n];
|
|
4305
|
+
});
|
|
4306
|
+
if (order2.join('') !== '0123456789') {
|
|
4307
|
+
return false;
|
|
4308
|
+
}
|
|
4309
|
+
|
|
4310
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
4311
|
+
var test3 = {};
|
|
4312
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
4313
|
+
test3[letter] = letter;
|
|
4314
|
+
});
|
|
4315
|
+
if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
|
|
4316
|
+
return false;
|
|
4317
|
+
}
|
|
4318
|
+
return true;
|
|
4319
|
+
} catch (err) {
|
|
4320
|
+
// We don't expect any of the above to throw, but better to be safe.
|
|
4321
|
+
return false;
|
|
4322
|
+
}
|
|
4323
|
+
}
|
|
4324
|
+
objectAssign$5 = shouldUseNative() ? Object.assign : function (target, source) {
|
|
4325
|
+
var from;
|
|
4326
|
+
var to = toObject(target);
|
|
4327
|
+
var symbols;
|
|
4328
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
4329
|
+
from = Object(arguments[s]);
|
|
4330
|
+
for (var key in from) {
|
|
4331
|
+
if (hasOwnProperty.call(from, key)) {
|
|
4332
|
+
to[key] = from[key];
|
|
4333
|
+
}
|
|
4334
|
+
}
|
|
4335
|
+
if (getOwnPropertySymbols) {
|
|
4336
|
+
symbols = getOwnPropertySymbols(from);
|
|
4337
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
4338
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
4339
|
+
to[symbols[i]] = from[symbols[i]];
|
|
4340
|
+
}
|
|
4341
|
+
}
|
|
4342
|
+
}
|
|
4343
|
+
}
|
|
4344
|
+
return to;
|
|
4345
|
+
};
|
|
4346
|
+
return objectAssign$5;
|
|
4347
|
+
}
|
|
4348
|
+
|
|
4349
|
+
/**
|
|
4350
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4351
|
+
*
|
|
4352
|
+
* This source code is licensed under the MIT license found in the
|
|
4353
|
+
* LICENSE file in the root directory of this source tree.
|
|
4354
|
+
*/
|
|
4355
|
+
|
|
4356
|
+
var ReactPropTypesSecret_1$5;
|
|
4357
|
+
var hasRequiredReactPropTypesSecret$5;
|
|
4358
|
+
function requireReactPropTypesSecret$5() {
|
|
4359
|
+
if (hasRequiredReactPropTypesSecret$5) return ReactPropTypesSecret_1$5;
|
|
4360
|
+
hasRequiredReactPropTypesSecret$5 = 1;
|
|
4361
|
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
4362
|
+
ReactPropTypesSecret_1$5 = ReactPropTypesSecret;
|
|
4363
|
+
return ReactPropTypesSecret_1$5;
|
|
4364
|
+
}
|
|
4365
|
+
var has$5;
|
|
4366
|
+
var hasRequiredHas$5;
|
|
4367
|
+
function requireHas$5() {
|
|
4368
|
+
if (hasRequiredHas$5) return has$5;
|
|
4369
|
+
hasRequiredHas$5 = 1;
|
|
4370
|
+
has$5 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
4371
|
+
return has$5;
|
|
4372
|
+
}
|
|
4373
|
+
|
|
4374
|
+
/**
|
|
4375
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4376
|
+
*
|
|
4377
|
+
* This source code is licensed under the MIT license found in the
|
|
4378
|
+
* LICENSE file in the root directory of this source tree.
|
|
4379
|
+
*/
|
|
4380
|
+
|
|
4381
|
+
var checkPropTypes_1$5;
|
|
4382
|
+
var hasRequiredCheckPropTypes$5;
|
|
4383
|
+
function requireCheckPropTypes$5() {
|
|
4384
|
+
if (hasRequiredCheckPropTypes$5) return checkPropTypes_1$5;
|
|
4385
|
+
hasRequiredCheckPropTypes$5 = 1;
|
|
4386
|
+
var printWarning = function () {};
|
|
4387
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4388
|
+
var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret$5();
|
|
4389
|
+
var loggedTypeFailures = {};
|
|
4390
|
+
var has = /*@__PURE__*/requireHas$5();
|
|
4391
|
+
printWarning = function (text) {
|
|
4392
|
+
var message = 'Warning: ' + text;
|
|
4393
|
+
if (typeof console !== 'undefined') {
|
|
4394
|
+
console.error(message);
|
|
4395
|
+
}
|
|
4396
|
+
try {
|
|
4397
|
+
// --- Welcome to debugging React ---
|
|
4398
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
4399
|
+
// to find the callsite that caused this warning to fire.
|
|
4400
|
+
throw new Error(message);
|
|
4401
|
+
} catch (x) {/**/}
|
|
4402
|
+
};
|
|
4403
|
+
}
|
|
4404
|
+
|
|
4405
|
+
/**
|
|
4406
|
+
* Assert that the values match with the type specs.
|
|
4407
|
+
* Error messages are memorized and will only be shown once.
|
|
4408
|
+
*
|
|
4409
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
4410
|
+
* @param {object} values Runtime values that need to be type-checked
|
|
4411
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
|
4412
|
+
* @param {string} componentName Name of the component for error messages.
|
|
4413
|
+
* @param {?Function} getStack Returns the component stack.
|
|
4414
|
+
* @private
|
|
4415
|
+
*/
|
|
4416
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
4417
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4418
|
+
for (var typeSpecName in typeSpecs) {
|
|
4419
|
+
if (has(typeSpecs, typeSpecName)) {
|
|
4420
|
+
var error;
|
|
4421
|
+
// Prop type validation may throw. In case they do, we don't want to
|
|
4422
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
4423
|
+
// After these have been cleaned up, we'll let them throw.
|
|
4424
|
+
try {
|
|
4425
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
4426
|
+
// behavior as without this statement except with a better message.
|
|
4427
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
4428
|
+
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
|
4429
|
+
err.name = 'Invariant Violation';
|
|
4430
|
+
throw err;
|
|
4431
|
+
}
|
|
4432
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
4433
|
+
} catch (ex) {
|
|
4434
|
+
error = ex;
|
|
4435
|
+
}
|
|
4436
|
+
if (error && !(error instanceof Error)) {
|
|
4437
|
+
printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
|
|
4438
|
+
}
|
|
4439
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
4440
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
4441
|
+
// same error.
|
|
4442
|
+
loggedTypeFailures[error.message] = true;
|
|
4443
|
+
var stack = getStack ? getStack() : '';
|
|
4444
|
+
printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
|
|
4445
|
+
}
|
|
4446
|
+
}
|
|
4447
|
+
}
|
|
4448
|
+
}
|
|
4449
|
+
}
|
|
4450
|
+
|
|
4451
|
+
/**
|
|
4452
|
+
* Resets warning cache when testing.
|
|
4453
|
+
*
|
|
4454
|
+
* @private
|
|
4455
|
+
*/
|
|
4456
|
+
checkPropTypes.resetWarningCache = function () {
|
|
4457
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4458
|
+
loggedTypeFailures = {};
|
|
4459
|
+
}
|
|
4460
|
+
};
|
|
4461
|
+
checkPropTypes_1$5 = checkPropTypes;
|
|
4462
|
+
return checkPropTypes_1$5;
|
|
4463
|
+
}
|
|
4464
|
+
|
|
4465
|
+
/**
|
|
4466
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4467
|
+
*
|
|
4468
|
+
* This source code is licensed under the MIT license found in the
|
|
4469
|
+
* LICENSE file in the root directory of this source tree.
|
|
4470
|
+
*/
|
|
4471
|
+
|
|
4472
|
+
var factoryWithTypeCheckers$5;
|
|
4473
|
+
var hasRequiredFactoryWithTypeCheckers$5;
|
|
4474
|
+
function requireFactoryWithTypeCheckers$5() {
|
|
4475
|
+
if (hasRequiredFactoryWithTypeCheckers$5) return factoryWithTypeCheckers$5;
|
|
4476
|
+
hasRequiredFactoryWithTypeCheckers$5 = 1;
|
|
4477
|
+
var ReactIs = requireReactIs$5();
|
|
4478
|
+
var assign = requireObjectAssign$5();
|
|
4479
|
+
var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret$5();
|
|
4480
|
+
var has = /*@__PURE__*/requireHas$5();
|
|
4481
|
+
var checkPropTypes = /*@__PURE__*/requireCheckPropTypes$5();
|
|
4482
|
+
var printWarning = function () {};
|
|
4483
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4484
|
+
printWarning = function (text) {
|
|
4485
|
+
var message = 'Warning: ' + text;
|
|
4486
|
+
if (typeof console !== 'undefined') {
|
|
4487
|
+
console.error(message);
|
|
4488
|
+
}
|
|
4489
|
+
try {
|
|
4490
|
+
// --- Welcome to debugging React ---
|
|
4491
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
4492
|
+
// to find the callsite that caused this warning to fire.
|
|
4493
|
+
throw new Error(message);
|
|
4494
|
+
} catch (x) {}
|
|
4495
|
+
};
|
|
4496
|
+
}
|
|
4497
|
+
function emptyFunctionThatReturnsNull() {
|
|
4498
|
+
return null;
|
|
4499
|
+
}
|
|
4500
|
+
factoryWithTypeCheckers$5 = function (isValidElement, throwOnDirectAccess) {
|
|
4501
|
+
/* global Symbol */
|
|
4502
|
+
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
4503
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
4504
|
+
|
|
4505
|
+
/**
|
|
4506
|
+
* Returns the iterator method function contained on the iterable object.
|
|
4507
|
+
*
|
|
4508
|
+
* Be sure to invoke the function with the iterable as context:
|
|
4509
|
+
*
|
|
4510
|
+
* var iteratorFn = getIteratorFn(myIterable);
|
|
4511
|
+
* if (iteratorFn) {
|
|
4512
|
+
* var iterator = iteratorFn.call(myIterable);
|
|
4513
|
+
* ...
|
|
4514
|
+
* }
|
|
4515
|
+
*
|
|
4516
|
+
* @param {?object} maybeIterable
|
|
4517
|
+
* @return {?function}
|
|
4518
|
+
*/
|
|
4519
|
+
function getIteratorFn(maybeIterable) {
|
|
4520
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
4521
|
+
if (typeof iteratorFn === 'function') {
|
|
4522
|
+
return iteratorFn;
|
|
4523
|
+
}
|
|
4524
|
+
}
|
|
4525
|
+
|
|
4526
|
+
/**
|
|
4527
|
+
* Collection of methods that allow declaration and validation of props that are
|
|
4528
|
+
* supplied to React components. Example usage:
|
|
4529
|
+
*
|
|
4530
|
+
* var Props = require('ReactPropTypes');
|
|
4531
|
+
* var MyArticle = React.createClass({
|
|
4532
|
+
* propTypes: {
|
|
4533
|
+
* // An optional string prop named "description".
|
|
4534
|
+
* description: Props.string,
|
|
4535
|
+
*
|
|
4536
|
+
* // A required enum prop named "category".
|
|
4537
|
+
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
4538
|
+
*
|
|
4539
|
+
* // A prop named "dialog" that requires an instance of Dialog.
|
|
4540
|
+
* dialog: Props.instanceOf(Dialog).isRequired
|
|
4541
|
+
* },
|
|
4542
|
+
* render: function() { ... }
|
|
4543
|
+
* });
|
|
4544
|
+
*
|
|
4545
|
+
* A more formal specification of how these methods are used:
|
|
4546
|
+
*
|
|
4547
|
+
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
4548
|
+
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
4549
|
+
*
|
|
4550
|
+
* Each and every declaration produces a function with the same signature. This
|
|
4551
|
+
* allows the creation of custom validation functions. For example:
|
|
4552
|
+
*
|
|
4553
|
+
* var MyLink = React.createClass({
|
|
4554
|
+
* propTypes: {
|
|
4555
|
+
* // An optional string or URI prop named "href".
|
|
4556
|
+
* href: function(props, propName, componentName) {
|
|
4557
|
+
* var propValue = props[propName];
|
|
4558
|
+
* if (propValue != null && typeof propValue !== 'string' &&
|
|
4559
|
+
* !(propValue instanceof URI)) {
|
|
4560
|
+
* return new Error(
|
|
4561
|
+
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
4562
|
+
* componentName
|
|
4563
|
+
* );
|
|
4564
|
+
* }
|
|
4565
|
+
* }
|
|
4566
|
+
* },
|
|
4567
|
+
* render: function() {...}
|
|
4568
|
+
* });
|
|
4569
|
+
*
|
|
4570
|
+
* @internal
|
|
4571
|
+
*/
|
|
4572
|
+
|
|
4573
|
+
var ANONYMOUS = '<<anonymous>>';
|
|
4574
|
+
|
|
4575
|
+
// Important!
|
|
4576
|
+
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
4577
|
+
var ReactPropTypes = {
|
|
4578
|
+
array: createPrimitiveTypeChecker('array'),
|
|
4579
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
4580
|
+
bool: createPrimitiveTypeChecker('boolean'),
|
|
4581
|
+
func: createPrimitiveTypeChecker('function'),
|
|
4582
|
+
number: createPrimitiveTypeChecker('number'),
|
|
4583
|
+
object: createPrimitiveTypeChecker('object'),
|
|
4584
|
+
string: createPrimitiveTypeChecker('string'),
|
|
4585
|
+
symbol: createPrimitiveTypeChecker('symbol'),
|
|
4586
|
+
any: createAnyTypeChecker(),
|
|
4587
|
+
arrayOf: createArrayOfTypeChecker,
|
|
4588
|
+
element: createElementTypeChecker(),
|
|
4589
|
+
elementType: createElementTypeTypeChecker(),
|
|
4590
|
+
instanceOf: createInstanceTypeChecker,
|
|
4591
|
+
node: createNodeChecker(),
|
|
4592
|
+
objectOf: createObjectOfTypeChecker,
|
|
4593
|
+
oneOf: createEnumTypeChecker,
|
|
4594
|
+
oneOfType: createUnionTypeChecker,
|
|
4595
|
+
shape: createShapeTypeChecker,
|
|
4596
|
+
exact: createStrictShapeTypeChecker
|
|
4597
|
+
};
|
|
4598
|
+
|
|
4599
|
+
/**
|
|
4600
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
4601
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
4602
|
+
*/
|
|
4603
|
+
/*eslint-disable no-self-compare*/
|
|
4604
|
+
function is(x, y) {
|
|
4605
|
+
// SameValue algorithm
|
|
4606
|
+
if (x === y) {
|
|
4607
|
+
// Steps 1-5, 7-10
|
|
4608
|
+
// Steps 6.b-6.e: +0 != -0
|
|
4609
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
4610
|
+
} else {
|
|
4611
|
+
// Step 6.a: NaN == NaN
|
|
4612
|
+
return x !== x && y !== y;
|
|
4613
|
+
}
|
|
4614
|
+
}
|
|
4615
|
+
/*eslint-enable no-self-compare*/
|
|
4616
|
+
|
|
4617
|
+
/**
|
|
4618
|
+
* We use an Error-like object for backward compatibility as people may call
|
|
4619
|
+
* PropTypes directly and inspect their output. However, we don't use real
|
|
4620
|
+
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
4621
|
+
* is prohibitively expensive if they are created too often, such as what
|
|
4622
|
+
* happens in oneOfType() for any type before the one that matched.
|
|
4623
|
+
*/
|
|
4624
|
+
function PropTypeError(message, data) {
|
|
4625
|
+
this.message = message;
|
|
4626
|
+
this.data = data && typeof data === 'object' ? data : {};
|
|
4627
|
+
this.stack = '';
|
|
4628
|
+
}
|
|
4629
|
+
// Make `instanceof Error` still work for returned errors.
|
|
4630
|
+
PropTypeError.prototype = Error.prototype;
|
|
4631
|
+
function createChainableTypeChecker(validate) {
|
|
4632
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4633
|
+
var manualPropTypeCallCache = {};
|
|
4634
|
+
var manualPropTypeWarningCount = 0;
|
|
4635
|
+
}
|
|
4636
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
4637
|
+
componentName = componentName || ANONYMOUS;
|
|
4638
|
+
propFullName = propFullName || propName;
|
|
4639
|
+
if (secret !== ReactPropTypesSecret) {
|
|
4640
|
+
if (throwOnDirectAccess) {
|
|
4641
|
+
// New behavior only for users of `prop-types` package
|
|
4642
|
+
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
4643
|
+
err.name = 'Invariant Violation';
|
|
4644
|
+
throw err;
|
|
4645
|
+
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
4646
|
+
// Old behavior for people using React.PropTypes
|
|
4647
|
+
var cacheKey = componentName + ':' + propName;
|
|
4648
|
+
if (!manualPropTypeCallCache[cacheKey] &&
|
|
4649
|
+
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
4650
|
+
manualPropTypeWarningCount < 3) {
|
|
4651
|
+
printWarning('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
|
|
4652
|
+
manualPropTypeCallCache[cacheKey] = true;
|
|
4653
|
+
manualPropTypeWarningCount++;
|
|
4654
|
+
}
|
|
4655
|
+
}
|
|
4656
|
+
}
|
|
4657
|
+
if (props[propName] == null) {
|
|
4658
|
+
if (isRequired) {
|
|
4659
|
+
if (props[propName] === null) {
|
|
4660
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
4661
|
+
}
|
|
4662
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
4663
|
+
}
|
|
4664
|
+
return null;
|
|
4665
|
+
} else {
|
|
4666
|
+
return validate(props, propName, componentName, location, propFullName);
|
|
4667
|
+
}
|
|
4668
|
+
}
|
|
4669
|
+
var chainedCheckType = checkType.bind(null, false);
|
|
4670
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
4671
|
+
return chainedCheckType;
|
|
4672
|
+
}
|
|
4673
|
+
function createPrimitiveTypeChecker(expectedType) {
|
|
4674
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
4675
|
+
var propValue = props[propName];
|
|
4676
|
+
var propType = getPropType(propValue);
|
|
4677
|
+
if (propType !== expectedType) {
|
|
4678
|
+
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
4679
|
+
// check, but we can offer a more precise error message here rather than
|
|
4680
|
+
// 'of type `object`'.
|
|
4681
|
+
var preciseType = getPreciseType(propValue);
|
|
4682
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
|
|
4683
|
+
expectedType: expectedType
|
|
4684
|
+
});
|
|
4685
|
+
}
|
|
4686
|
+
return null;
|
|
4687
|
+
}
|
|
4688
|
+
return createChainableTypeChecker(validate);
|
|
4689
|
+
}
|
|
4690
|
+
function createAnyTypeChecker() {
|
|
4691
|
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
4692
|
+
}
|
|
4693
|
+
function createArrayOfTypeChecker(typeChecker) {
|
|
4694
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
4695
|
+
if (typeof typeChecker !== 'function') {
|
|
4696
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
4697
|
+
}
|
|
4698
|
+
var propValue = props[propName];
|
|
4699
|
+
if (!Array.isArray(propValue)) {
|
|
4700
|
+
var propType = getPropType(propValue);
|
|
4701
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
4702
|
+
}
|
|
4703
|
+
for (var i = 0; i < propValue.length; i++) {
|
|
4704
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
4705
|
+
if (error instanceof Error) {
|
|
4706
|
+
return error;
|
|
4707
|
+
}
|
|
4708
|
+
}
|
|
4709
|
+
return null;
|
|
4710
|
+
}
|
|
4711
|
+
return createChainableTypeChecker(validate);
|
|
4712
|
+
}
|
|
4713
|
+
function createElementTypeChecker() {
|
|
4714
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
4715
|
+
var propValue = props[propName];
|
|
4716
|
+
if (!isValidElement(propValue)) {
|
|
4717
|
+
var propType = getPropType(propValue);
|
|
4718
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
4719
|
+
}
|
|
4720
|
+
return null;
|
|
4721
|
+
}
|
|
4722
|
+
return createChainableTypeChecker(validate);
|
|
4723
|
+
}
|
|
4724
|
+
function createElementTypeTypeChecker() {
|
|
4725
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
4726
|
+
var propValue = props[propName];
|
|
4727
|
+
if (!ReactIs.isValidElementType(propValue)) {
|
|
4728
|
+
var propType = getPropType(propValue);
|
|
4729
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
4730
|
+
}
|
|
4731
|
+
return null;
|
|
4732
|
+
}
|
|
4733
|
+
return createChainableTypeChecker(validate);
|
|
4734
|
+
}
|
|
4735
|
+
function createInstanceTypeChecker(expectedClass) {
|
|
4736
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
4737
|
+
if (!(props[propName] instanceof expectedClass)) {
|
|
4738
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
4739
|
+
var actualClassName = getClassName(props[propName]);
|
|
4740
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
4741
|
+
}
|
|
4742
|
+
return null;
|
|
4743
|
+
}
|
|
4744
|
+
return createChainableTypeChecker(validate);
|
|
4745
|
+
}
|
|
4746
|
+
function createEnumTypeChecker(expectedValues) {
|
|
4747
|
+
if (!Array.isArray(expectedValues)) {
|
|
4748
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4749
|
+
if (arguments.length > 1) {
|
|
4750
|
+
printWarning('Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).');
|
|
4751
|
+
} else {
|
|
4752
|
+
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
4753
|
+
}
|
|
4754
|
+
}
|
|
4755
|
+
return emptyFunctionThatReturnsNull;
|
|
4756
|
+
}
|
|
4757
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
4758
|
+
var propValue = props[propName];
|
|
4759
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
|
4760
|
+
if (is(propValue, expectedValues[i])) {
|
|
4761
|
+
return null;
|
|
4762
|
+
}
|
|
4763
|
+
}
|
|
4764
|
+
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
4765
|
+
var type = getPreciseType(value);
|
|
4766
|
+
if (type === 'symbol') {
|
|
4767
|
+
return String(value);
|
|
4768
|
+
}
|
|
4769
|
+
return value;
|
|
4770
|
+
});
|
|
4771
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
4772
|
+
}
|
|
4773
|
+
return createChainableTypeChecker(validate);
|
|
4774
|
+
}
|
|
4775
|
+
function createObjectOfTypeChecker(typeChecker) {
|
|
4776
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
4777
|
+
if (typeof typeChecker !== 'function') {
|
|
4778
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
4779
|
+
}
|
|
4780
|
+
var propValue = props[propName];
|
|
4781
|
+
var propType = getPropType(propValue);
|
|
4782
|
+
if (propType !== 'object') {
|
|
4783
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
4784
|
+
}
|
|
4785
|
+
for (var key in propValue) {
|
|
4786
|
+
if (has(propValue, key)) {
|
|
4787
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
4788
|
+
if (error instanceof Error) {
|
|
4789
|
+
return error;
|
|
4790
|
+
}
|
|
4791
|
+
}
|
|
4792
|
+
}
|
|
4793
|
+
return null;
|
|
4794
|
+
}
|
|
4795
|
+
return createChainableTypeChecker(validate);
|
|
4796
|
+
}
|
|
4797
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
4798
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
4799
|
+
process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
4800
|
+
return emptyFunctionThatReturnsNull;
|
|
4801
|
+
}
|
|
4802
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
4803
|
+
var checker = arrayOfTypeCheckers[i];
|
|
4804
|
+
if (typeof checker !== 'function') {
|
|
4805
|
+
printWarning('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
|
|
4806
|
+
return emptyFunctionThatReturnsNull;
|
|
4807
|
+
}
|
|
4808
|
+
}
|
|
4809
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
4810
|
+
var expectedTypes = [];
|
|
4811
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
4812
|
+
var checker = arrayOfTypeCheckers[i];
|
|
4813
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
4814
|
+
if (checkerResult == null) {
|
|
4815
|
+
return null;
|
|
4816
|
+
}
|
|
4817
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
4818
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
4819
|
+
}
|
|
4820
|
+
}
|
|
4821
|
+
var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
|
|
4822
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
4823
|
+
}
|
|
4824
|
+
return createChainableTypeChecker(validate);
|
|
4825
|
+
}
|
|
4826
|
+
function createNodeChecker() {
|
|
4827
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
4828
|
+
if (!isNode(props[propName])) {
|
|
4829
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
4830
|
+
}
|
|
4831
|
+
return null;
|
|
4832
|
+
}
|
|
4833
|
+
return createChainableTypeChecker(validate);
|
|
4834
|
+
}
|
|
4835
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
4836
|
+
return new PropTypeError((componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.');
|
|
4837
|
+
}
|
|
4838
|
+
function createShapeTypeChecker(shapeTypes) {
|
|
4839
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
4840
|
+
var propValue = props[propName];
|
|
4841
|
+
var propType = getPropType(propValue);
|
|
4842
|
+
if (propType !== 'object') {
|
|
4843
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
4844
|
+
}
|
|
4845
|
+
for (var key in shapeTypes) {
|
|
4846
|
+
var checker = shapeTypes[key];
|
|
4847
|
+
if (typeof checker !== 'function') {
|
|
4848
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
4849
|
+
}
|
|
4850
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
4851
|
+
if (error) {
|
|
4852
|
+
return error;
|
|
4853
|
+
}
|
|
4854
|
+
}
|
|
4855
|
+
return null;
|
|
4856
|
+
}
|
|
4857
|
+
return createChainableTypeChecker(validate);
|
|
4858
|
+
}
|
|
4859
|
+
function createStrictShapeTypeChecker(shapeTypes) {
|
|
4860
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
4861
|
+
var propValue = props[propName];
|
|
4862
|
+
var propType = getPropType(propValue);
|
|
4863
|
+
if (propType !== 'object') {
|
|
4864
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
4865
|
+
}
|
|
4866
|
+
// We need to check all keys in case some are required but missing from props.
|
|
4867
|
+
var allKeys = assign({}, props[propName], shapeTypes);
|
|
4868
|
+
for (var key in allKeys) {
|
|
4869
|
+
var checker = shapeTypes[key];
|
|
4870
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
4871
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
4872
|
+
}
|
|
4873
|
+
if (!checker) {
|
|
4874
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
|
|
4875
|
+
}
|
|
4876
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
4877
|
+
if (error) {
|
|
4878
|
+
return error;
|
|
4879
|
+
}
|
|
4880
|
+
}
|
|
4881
|
+
return null;
|
|
4882
|
+
}
|
|
4883
|
+
return createChainableTypeChecker(validate);
|
|
4884
|
+
}
|
|
4885
|
+
function isNode(propValue) {
|
|
4886
|
+
switch (typeof propValue) {
|
|
4887
|
+
case 'number':
|
|
4888
|
+
case 'string':
|
|
4889
|
+
case 'undefined':
|
|
4890
|
+
return true;
|
|
4891
|
+
case 'boolean':
|
|
4892
|
+
return !propValue;
|
|
4893
|
+
case 'object':
|
|
4894
|
+
if (Array.isArray(propValue)) {
|
|
4895
|
+
return propValue.every(isNode);
|
|
4896
|
+
}
|
|
4897
|
+
if (propValue === null || isValidElement(propValue)) {
|
|
4898
|
+
return true;
|
|
4899
|
+
}
|
|
4900
|
+
var iteratorFn = getIteratorFn(propValue);
|
|
4901
|
+
if (iteratorFn) {
|
|
4902
|
+
var iterator = iteratorFn.call(propValue);
|
|
4903
|
+
var step;
|
|
4904
|
+
if (iteratorFn !== propValue.entries) {
|
|
4905
|
+
while (!(step = iterator.next()).done) {
|
|
4906
|
+
if (!isNode(step.value)) {
|
|
4907
|
+
return false;
|
|
4908
|
+
}
|
|
4909
|
+
}
|
|
4910
|
+
} else {
|
|
4911
|
+
// Iterator will provide entry [k,v] tuples rather than values.
|
|
4912
|
+
while (!(step = iterator.next()).done) {
|
|
4913
|
+
var entry = step.value;
|
|
4914
|
+
if (entry) {
|
|
4915
|
+
if (!isNode(entry[1])) {
|
|
4916
|
+
return false;
|
|
4917
|
+
}
|
|
4918
|
+
}
|
|
4919
|
+
}
|
|
4920
|
+
}
|
|
4921
|
+
} else {
|
|
4922
|
+
return false;
|
|
4923
|
+
}
|
|
4924
|
+
return true;
|
|
4925
|
+
default:
|
|
4926
|
+
return false;
|
|
4927
|
+
}
|
|
4928
|
+
}
|
|
4929
|
+
function isSymbol(propType, propValue) {
|
|
4930
|
+
// Native Symbol.
|
|
4931
|
+
if (propType === 'symbol') {
|
|
4932
|
+
return true;
|
|
4933
|
+
}
|
|
4934
|
+
|
|
4935
|
+
// falsy value can't be a Symbol
|
|
4936
|
+
if (!propValue) {
|
|
4937
|
+
return false;
|
|
4938
|
+
}
|
|
4939
|
+
|
|
4940
|
+
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
4941
|
+
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
4942
|
+
return true;
|
|
4943
|
+
}
|
|
4944
|
+
|
|
4945
|
+
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
4946
|
+
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
4947
|
+
return true;
|
|
4948
|
+
}
|
|
4949
|
+
return false;
|
|
4950
|
+
}
|
|
4951
|
+
|
|
4952
|
+
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
4953
|
+
function getPropType(propValue) {
|
|
4954
|
+
var propType = typeof propValue;
|
|
4955
|
+
if (Array.isArray(propValue)) {
|
|
4956
|
+
return 'array';
|
|
4957
|
+
}
|
|
4958
|
+
if (propValue instanceof RegExp) {
|
|
4959
|
+
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
4960
|
+
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
4961
|
+
// passes PropTypes.object.
|
|
4962
|
+
return 'object';
|
|
4963
|
+
}
|
|
4964
|
+
if (isSymbol(propType, propValue)) {
|
|
4965
|
+
return 'symbol';
|
|
4966
|
+
}
|
|
4967
|
+
return propType;
|
|
4968
|
+
}
|
|
4969
|
+
|
|
4970
|
+
// This handles more types than `getPropType`. Only used for error messages.
|
|
4971
|
+
// See `createPrimitiveTypeChecker`.
|
|
4972
|
+
function getPreciseType(propValue) {
|
|
4973
|
+
if (typeof propValue === 'undefined' || propValue === null) {
|
|
4974
|
+
return '' + propValue;
|
|
4975
|
+
}
|
|
4976
|
+
var propType = getPropType(propValue);
|
|
4977
|
+
if (propType === 'object') {
|
|
4978
|
+
if (propValue instanceof Date) {
|
|
4979
|
+
return 'date';
|
|
4980
|
+
} else if (propValue instanceof RegExp) {
|
|
4981
|
+
return 'regexp';
|
|
4982
|
+
}
|
|
4983
|
+
}
|
|
4984
|
+
return propType;
|
|
4985
|
+
}
|
|
4986
|
+
|
|
4987
|
+
// Returns a string that is postfixed to a warning about an invalid type.
|
|
4988
|
+
// For example, "undefined" or "of type array"
|
|
4989
|
+
function getPostfixForTypeWarning(value) {
|
|
4990
|
+
var type = getPreciseType(value);
|
|
4991
|
+
switch (type) {
|
|
4992
|
+
case 'array':
|
|
4993
|
+
case 'object':
|
|
4994
|
+
return 'an ' + type;
|
|
4995
|
+
case 'boolean':
|
|
4996
|
+
case 'date':
|
|
4997
|
+
case 'regexp':
|
|
4998
|
+
return 'a ' + type;
|
|
4999
|
+
default:
|
|
5000
|
+
return type;
|
|
5001
|
+
}
|
|
5002
|
+
}
|
|
5003
|
+
|
|
5004
|
+
// Returns class name of the object, if any.
|
|
5005
|
+
function getClassName(propValue) {
|
|
5006
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
|
5007
|
+
return ANONYMOUS;
|
|
5008
|
+
}
|
|
5009
|
+
return propValue.constructor.name;
|
|
5010
|
+
}
|
|
5011
|
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
5012
|
+
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
5013
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
5014
|
+
return ReactPropTypes;
|
|
5015
|
+
};
|
|
5016
|
+
return factoryWithTypeCheckers$5;
|
|
5017
|
+
}
|
|
5018
|
+
|
|
5019
|
+
/**
|
|
5020
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
5021
|
+
*
|
|
5022
|
+
* This source code is licensed under the MIT license found in the
|
|
5023
|
+
* LICENSE file in the root directory of this source tree.
|
|
5024
|
+
*/
|
|
5025
|
+
|
|
5026
|
+
var factoryWithThrowingShims$5;
|
|
5027
|
+
var hasRequiredFactoryWithThrowingShims$5;
|
|
5028
|
+
function requireFactoryWithThrowingShims$5() {
|
|
5029
|
+
if (hasRequiredFactoryWithThrowingShims$5) return factoryWithThrowingShims$5;
|
|
5030
|
+
hasRequiredFactoryWithThrowingShims$5 = 1;
|
|
5031
|
+
var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret$5();
|
|
5032
|
+
function emptyFunction() {}
|
|
5033
|
+
function emptyFunctionWithReset() {}
|
|
5034
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
5035
|
+
factoryWithThrowingShims$5 = function () {
|
|
5036
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
5037
|
+
if (secret === ReactPropTypesSecret) {
|
|
5038
|
+
// It is still safe when called from React.
|
|
5039
|
+
return;
|
|
5040
|
+
}
|
|
5041
|
+
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
5042
|
+
err.name = 'Invariant Violation';
|
|
5043
|
+
throw err;
|
|
5044
|
+
}
|
|
5045
|
+
shim.isRequired = shim;
|
|
5046
|
+
function getShim() {
|
|
5047
|
+
return shim;
|
|
5048
|
+
} // Important!
|
|
5049
|
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
5050
|
+
var ReactPropTypes = {
|
|
5051
|
+
array: shim,
|
|
5052
|
+
bigint: shim,
|
|
5053
|
+
bool: shim,
|
|
5054
|
+
func: shim,
|
|
5055
|
+
number: shim,
|
|
5056
|
+
object: shim,
|
|
5057
|
+
string: shim,
|
|
5058
|
+
symbol: shim,
|
|
5059
|
+
any: shim,
|
|
5060
|
+
arrayOf: getShim,
|
|
5061
|
+
element: shim,
|
|
5062
|
+
elementType: shim,
|
|
5063
|
+
instanceOf: getShim,
|
|
5064
|
+
node: shim,
|
|
5065
|
+
objectOf: getShim,
|
|
5066
|
+
oneOf: getShim,
|
|
5067
|
+
oneOfType: getShim,
|
|
5068
|
+
shape: getShim,
|
|
5069
|
+
exact: getShim,
|
|
5070
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
5071
|
+
resetWarningCache: emptyFunction
|
|
5072
|
+
};
|
|
5073
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
5074
|
+
return ReactPropTypes;
|
|
5075
|
+
};
|
|
5076
|
+
return factoryWithThrowingShims$5;
|
|
5077
|
+
}
|
|
5078
|
+
|
|
5079
|
+
/**
|
|
5080
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
5081
|
+
*
|
|
5082
|
+
* This source code is licensed under the MIT license found in the
|
|
5083
|
+
* LICENSE file in the root directory of this source tree.
|
|
5084
|
+
*/
|
|
5085
|
+
|
|
5086
|
+
var hasRequiredPropTypes$5;
|
|
5087
|
+
function requirePropTypes$5() {
|
|
5088
|
+
if (hasRequiredPropTypes$5) return propTypes$5.exports;
|
|
5089
|
+
hasRequiredPropTypes$5 = 1;
|
|
5090
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5091
|
+
var ReactIs = requireReactIs$5();
|
|
5092
|
+
|
|
5093
|
+
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
5094
|
+
// http://fb.me/prop-types-in-prod
|
|
5095
|
+
var throwOnDirectAccess = true;
|
|
5096
|
+
propTypes$5.exports = /*@__PURE__*/requireFactoryWithTypeCheckers$5()(ReactIs.isElement, throwOnDirectAccess);
|
|
5097
|
+
} else {
|
|
5098
|
+
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
5099
|
+
// http://fb.me/prop-types-in-prod
|
|
5100
|
+
propTypes$5.exports = /*@__PURE__*/requireFactoryWithThrowingShims$5()();
|
|
5101
|
+
}
|
|
5102
|
+
return propTypes$5.exports;
|
|
5103
|
+
}
|
|
5104
|
+
var propTypesExports$5 = /*@__PURE__*/requirePropTypes$5();
|
|
5105
|
+
var PropTypes$5 = /*@__PURE__*/getDefaultExportFromCjs$5(propTypesExports$5);
|
|
5106
|
+
({
|
|
5107
|
+
onPowerOff: PropTypes$5.func,
|
|
5108
|
+
onRestart: PropTypes$5.func,
|
|
5109
|
+
powerOffLabel: PropTypes$5.string,
|
|
5110
|
+
restartLabel: PropTypes$5.string,
|
|
5111
|
+
iconClassName: PropTypes$5.string,
|
|
5112
|
+
confirmTitle: PropTypes$5.string,
|
|
5113
|
+
cancelText: PropTypes$5.string,
|
|
5114
|
+
okText: PropTypes$5.string,
|
|
5115
|
+
run: PropTypes$5.func
|
|
5116
|
+
});
|
|
5117
|
+
({
|
|
5118
|
+
logoUrl: PropTypes$5.string,
|
|
5119
|
+
logoWidth: PropTypes$5.number,
|
|
5120
|
+
logoAlt: PropTypes$5.string,
|
|
5121
|
+
onClick: PropTypes$5.func
|
|
5122
|
+
});
|
|
3946
5123
|
function getDefaultExportFromCjs$4(x) {
|
|
3947
5124
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
3948
5125
|
}
|
|
@@ -9988,7 +11165,7 @@ const NmosModal = _ref => {
|
|
|
9988
11165
|
const values = await form.getFieldsValue();
|
|
9989
11166
|
setLoading(true);
|
|
9990
11167
|
try {
|
|
9991
|
-
const response = await updateNmosSettings(_objectSpread2
|
|
11168
|
+
const response = await updateNmosSettings(_objectSpread2(_objectSpread2({}, nmosSettings), values));
|
|
9992
11169
|
if (response) {
|
|
9993
11170
|
message.success('Success');
|
|
9994
11171
|
setTimeout(() => {
|
|
@@ -10001,7 +11178,7 @@ const NmosModal = _ref => {
|
|
|
10001
11178
|
setLoading(false);
|
|
10002
11179
|
}
|
|
10003
11180
|
};
|
|
10004
|
-
return /*#__PURE__*/jsx(StyledModal$
|
|
11181
|
+
return /*#__PURE__*/jsx(StyledModal$3, _objectSpread2(_objectSpread2({
|
|
10005
11182
|
title: "NMOS",
|
|
10006
11183
|
width: 650,
|
|
10007
11184
|
open: open,
|
|
@@ -10010,7 +11187,7 @@ const NmosModal = _ref => {
|
|
|
10010
11187
|
confirmLoading: loading,
|
|
10011
11188
|
destroyOnClose: true // 关闭时销毁组件,确保下次打开重新初始化
|
|
10012
11189
|
}, modalProps), {}, {
|
|
10013
|
-
children: /*#__PURE__*/jsxs(Form, _objectSpread2
|
|
11190
|
+
children: /*#__PURE__*/jsxs(Form, _objectSpread2(_objectSpread2({
|
|
10014
11191
|
form: form,
|
|
10015
11192
|
name: "nmosForm",
|
|
10016
11193
|
labelCol: {
|
|
@@ -10046,7 +11223,7 @@ const NmosModal = _ref => {
|
|
|
10046
11223
|
}), /*#__PURE__*/jsx(Form.Item, {
|
|
10047
11224
|
label: "Registry Port",
|
|
10048
11225
|
name: "registration_port",
|
|
10049
|
-
children: /*#__PURE__*/jsx(InputNumber, _objectSpread2
|
|
11226
|
+
children: /*#__PURE__*/jsx(InputNumber, _objectSpread2(_objectSpread2({}, numberProps), {}, {
|
|
10050
11227
|
min: 0,
|
|
10051
11228
|
max: 65535,
|
|
10052
11229
|
style: {
|
|
@@ -10075,7 +11252,7 @@ const NmosModal = _ref => {
|
|
|
10075
11252
|
}), /*#__PURE__*/jsx(Form.Item, {
|
|
10076
11253
|
label: "Logging Level",
|
|
10077
11254
|
name: "logging_level",
|
|
10078
|
-
children: /*#__PURE__*/jsx(InputNumber, _objectSpread2
|
|
11255
|
+
children: /*#__PURE__*/jsx(InputNumber, _objectSpread2(_objectSpread2({}, numberProps), {}, {
|
|
10079
11256
|
min: -40,
|
|
10080
11257
|
max: 40,
|
|
10081
11258
|
style: {
|
|
@@ -10361,7 +11538,7 @@ function DraggableNumberInput(_ref2) {
|
|
|
10361
11538
|
// 新增 disabled 属性
|
|
10362
11539
|
style
|
|
10363
11540
|
} = _ref2,
|
|
10364
|
-
restProps = _objectWithoutProperties
|
|
11541
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$1);
|
|
10365
11542
|
const inputRef = useRef(null);
|
|
10366
11543
|
const [isMouseDown, setIsMouseDown] = useState(false);
|
|
10367
11544
|
const [isDragging, setIsDragging] = useState(false);
|
|
@@ -10470,7 +11647,7 @@ function DraggableNumberInput(_ref2) {
|
|
|
10470
11647
|
applyMovement(totalMovement.current, e);
|
|
10471
11648
|
}, [isMouseDown, disabled]);
|
|
10472
11649
|
const getModifiers = useCallback(e => {
|
|
10473
|
-
const mods = _objectSpread2
|
|
11650
|
+
const mods = _objectSpread2(_objectSpread2({}, defaultModifiers), modifierKeys);
|
|
10474
11651
|
for (const key in mods) {
|
|
10475
11652
|
if (key !== "default" && e[key]) {
|
|
10476
11653
|
currentMultiplier.current = mods[key].multiplier;
|
|
@@ -10586,7 +11763,7 @@ function DraggableNumberInput(_ref2) {
|
|
|
10586
11763
|
background: 'rgba(255, 255, 255, 0.08)',
|
|
10587
11764
|
color: 'rgba(255, 255, 255, 0.25)'
|
|
10588
11765
|
} : {};
|
|
10589
|
-
return /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("input", _objectSpread2
|
|
11766
|
+
return /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("input", _objectSpread2({
|
|
10590
11767
|
ref: inputRef,
|
|
10591
11768
|
type: "text",
|
|
10592
11769
|
inputMode: "numeric",
|
|
@@ -10600,7 +11777,7 @@ function DraggableNumberInput(_ref2) {
|
|
|
10600
11777
|
disabled: disabled,
|
|
10601
11778
|
// 添加 disabled 属性
|
|
10602
11779
|
className: "draggable-number-input ".concat(className, " ").concat(isDragging ? "dragging" : "", " ").concat(disabled ? "disabled" : ""),
|
|
10603
|
-
style: _objectSpread2
|
|
11780
|
+
style: _objectSpread2(_objectSpread2(_objectSpread2({}, {
|
|
10604
11781
|
cursor: disabled ? 'not-allowed' : 'ew-resize',
|
|
10605
11782
|
userSelect: disabled ? 'none' : 'auto',
|
|
10606
11783
|
caretColor: isDragging ? "transparent" : "initial"
|
|
@@ -10621,7 +11798,7 @@ const BoundedInput = _ref => {
|
|
|
10621
11798
|
placeholder = 'Enter an integer',
|
|
10622
11799
|
disabled = false
|
|
10623
11800
|
} = _ref,
|
|
10624
|
-
props = _objectWithoutProperties
|
|
11801
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
10625
11802
|
// 1. 处理输入变更:只管记录,不修正,不打断
|
|
10626
11803
|
const handleChange = val => {
|
|
10627
11804
|
if (val === null || val === undefined) {
|
|
@@ -10653,7 +11830,7 @@ const BoundedInput = _ref => {
|
|
|
10653
11830
|
onChange === null || onChange === void 0 || onChange(safeVal);
|
|
10654
11831
|
}
|
|
10655
11832
|
};
|
|
10656
|
-
return /*#__PURE__*/jsx(InputNumber, _objectSpread2
|
|
11833
|
+
return /*#__PURE__*/jsx(InputNumber, _objectSpread2({
|
|
10657
11834
|
value: value,
|
|
10658
11835
|
onChange: handleChange,
|
|
10659
11836
|
onBlur: handleBlur,
|
|
@@ -10680,7 +11857,7 @@ const BoundedInput = _ref => {
|
|
|
10680
11857
|
/**
|
|
10681
11858
|
* 专用端口输入框
|
|
10682
11859
|
*/
|
|
10683
|
-
const PortInput = props => /*#__PURE__*/jsx(BoundedInput, _objectSpread2
|
|
11860
|
+
const PortInput = props => /*#__PURE__*/jsx(BoundedInput, _objectSpread2({
|
|
10684
11861
|
min: 0,
|
|
10685
11862
|
max: 65535,
|
|
10686
11863
|
placeholder: "Enter port (0-65535)"
|
|
@@ -10689,11 +11866,11 @@ const PortInput = props => /*#__PURE__*/jsx(BoundedInput, _objectSpread2$1({
|
|
|
10689
11866
|
/**
|
|
10690
11867
|
* 专用 Payload 输入框
|
|
10691
11868
|
*/
|
|
10692
|
-
const PayloadInput = props => /*#__PURE__*/jsx(BoundedInput, _objectSpread2
|
|
11869
|
+
const PayloadInput = props => /*#__PURE__*/jsx(BoundedInput, _objectSpread2({
|
|
10693
11870
|
min: 96,
|
|
10694
11871
|
max: 127,
|
|
10695
11872
|
placeholder: "Enter payload (96-127)"
|
|
10696
11873
|
}, props));
|
|
10697
11874
|
|
|
10698
|
-
export { AuthorizationModal$1 as AuthorizationModal, CommonHeader$1 as CommonHeader, DraggableNumberInput, LSMLabelField$1 as LSMLabelField, MaintenancePage, NetworkSettingsModal$1 as NetworkSettingsModal, NmosModal$1 as NmosModal, PayloadInput, PortInput, PresetModal, PtpModal$1 as PtpModal, StyledModal$
|
|
11875
|
+
export { AuthorizationModal$1 as AuthorizationModal, CommonHeader$1 as CommonHeader, DraggableNumberInput, LSMLabelField$1 as LSMLabelField, MaintenancePage, NetworkSettingsModal$1 as NetworkSettingsModal, NmosModal$1 as NmosModal, PayloadInput, PortInput, PresetModal, PtpModal$1 as PtpModal, StyledModal$1 as StyledModal, SystemOperations$1 as SystemOperations, UpgradeManager$1 as UpgradeManager, useAuth, useHardwareUsage$1 as useHardwareUsage, usePageReload$1 as usePageReload, useSystemOperations$1 as useSystemOperations, useUpgrade$1 as useUpgrade };
|
|
10699
11876
|
//# sourceMappingURL=index.esm.js.map
|