You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1410 lines
53 KiB
1410 lines
53 KiB
(self["webpackChunk"] = self["webpackChunk"] || []).push([[11988],{
|
|
|
|
/***/ 37653:
|
|
/*!*****************************************************************!*\
|
|
!*** ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js ***!
|
|
\*****************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
|
|
/* harmony import */ var _ant_design_icons_svg_es_asn_LeftOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/LeftOutlined */ 26554);
|
|
/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 7918);
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
|
|
|
|
|
var LeftOutlined = function LeftOutlined(props, ref) {
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
|
|
ref: ref,
|
|
icon: _ant_design_icons_svg_es_asn_LeftOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
|
|
}));
|
|
};
|
|
LeftOutlined.displayName = 'LeftOutlined';
|
|
/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(LeftOutlined));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 43929:
|
|
/*!******************************************************************!*\
|
|
!*** ./node_modules/@ant-design/icons/es/icons/RightOutlined.js ***!
|
|
\******************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
|
|
/* harmony import */ var _ant_design_icons_svg_es_asn_RightOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/RightOutlined */ 50756);
|
|
/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 7918);
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
|
|
|
|
|
var RightOutlined = function RightOutlined(props, ref) {
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
|
|
ref: ref,
|
|
icon: _ant_design_icons_svg_es_asn_RightOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
|
|
}));
|
|
};
|
|
RightOutlined.displayName = 'RightOutlined';
|
|
/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(RightOutlined));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 48148:
|
|
/*!********************************************!*\
|
|
!*** ./node_modules/swiper/css/swiper.css ***!
|
|
\********************************************/
|
|
/***/ (function() {
|
|
|
|
"use strict";
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 5467:
|
|
/*!**********************************************************!*\
|
|
!*** ./node_modules/antd/es/_util/getDataOrAriaProps.js ***!
|
|
\**********************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "Z": function() { return /* binding */ getDataOrAriaProps; }
|
|
/* harmony export */ });
|
|
function getDataOrAriaProps(props) {
|
|
return Object.keys(props).reduce(function (prev, key) {
|
|
if ((key.startsWith('data-') || key.startsWith('aria-') || key === 'role') && !key.startsWith('data-__')) {
|
|
prev[key] = props[key];
|
|
}
|
|
return prev;
|
|
}, {});
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ 97183:
|
|
/*!**********************************************!*\
|
|
!*** ./node_modules/antd/es/layout/index.js ***!
|
|
\**********************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 2897);
|
|
/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 10130);
|
|
|
|
|
|
var Layout = _layout__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP;
|
|
Layout.Header = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Header */ .h4;
|
|
Layout.Footer = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Footer */ .$_;
|
|
Layout.Content = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Content */ .VY;
|
|
Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
|
|
/* harmony default export */ __webpack_exports__["Z"] = (Layout);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 27221:
|
|
/*!****************************************************************!*\
|
|
!*** ./node_modules/antd/es/layout/style/index.js + 1 modules ***!
|
|
\****************************************************************/
|
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/style/default.less
|
|
var style_default = __webpack_require__(43146);
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/layout/style/index.less
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/layout/style/index.js
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 37029:
|
|
/*!**********************************************************!*\
|
|
!*** ./node_modules/antd/es/locale/zh_CN.js + 4 modules ***!
|
|
\**********************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
"Z": function() { return /* binding */ es_locale_zh_CN; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/rc-pagination/es/locale/zh_CN.js
|
|
var zh_CN = __webpack_require__(81626);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
var esm_extends = __webpack_require__(87462);
|
|
;// CONCATENATED MODULE: ./node_modules/rc-picker/es/locale/zh_CN.js
|
|
var locale = {
|
|
locale: 'zh_CN',
|
|
today: '今天',
|
|
now: '此刻',
|
|
backToToday: '返回今天',
|
|
ok: '确定',
|
|
timeSelect: '选择时间',
|
|
dateSelect: '选择日期',
|
|
weekSelect: '选择周',
|
|
clear: '清除',
|
|
month: '月',
|
|
year: '年',
|
|
previousMonth: '上个月 (翻页上键)',
|
|
nextMonth: '下个月 (翻页下键)',
|
|
monthSelect: '选择月份',
|
|
yearSelect: '选择年份',
|
|
decadeSelect: '选择年代',
|
|
yearFormat: 'YYYY年',
|
|
dayFormat: 'D日',
|
|
dateFormat: 'YYYY年M月D日',
|
|
dateTimeFormat: 'YYYY年M月D日 HH时mm分ss秒',
|
|
previousYear: '上一年 (Control键加左方向键)',
|
|
nextYear: '下一年 (Control键加右方向键)',
|
|
previousDecade: '上一年代',
|
|
nextDecade: '下一年代',
|
|
previousCentury: '上一世纪',
|
|
nextCentury: '下一世纪'
|
|
};
|
|
/* harmony default export */ var locale_zh_CN = (locale);
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/time-picker/locale/zh_CN.js
|
|
var zh_CN_locale = {
|
|
placeholder: '请选择时间',
|
|
rangePlaceholder: ['开始时间', '结束时间']
|
|
};
|
|
/* harmony default export */ var time_picker_locale_zh_CN = (zh_CN_locale);
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/date-picker/locale/zh_CN.js
|
|
|
|
|
|
|
|
// 统一合并为完整的 Locale
|
|
var locale_zh_CN_locale = {
|
|
lang: (0,esm_extends/* default */.Z)({
|
|
placeholder: '请选择日期',
|
|
yearPlaceholder: '请选择年份',
|
|
quarterPlaceholder: '请选择季度',
|
|
monthPlaceholder: '请选择月份',
|
|
weekPlaceholder: '请选择周',
|
|
rangePlaceholder: ['开始日期', '结束日期'],
|
|
rangeYearPlaceholder: ['开始年份', '结束年份'],
|
|
rangeMonthPlaceholder: ['开始月份', '结束月份'],
|
|
rangeQuarterPlaceholder: ['开始季度', '结束季度'],
|
|
rangeWeekPlaceholder: ['开始周', '结束周']
|
|
}, locale_zh_CN),
|
|
timePickerLocale: (0,esm_extends/* default */.Z)({}, time_picker_locale_zh_CN)
|
|
};
|
|
// should add whitespace between char in Button
|
|
locale_zh_CN_locale.lang.ok = '确定';
|
|
// All settings at:
|
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
|
/* harmony default export */ var date_picker_locale_zh_CN = (locale_zh_CN_locale);
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/calendar/locale/zh_CN.js
|
|
|
|
/* harmony default export */ var calendar_locale_zh_CN = (date_picker_locale_zh_CN);
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/locale/zh_CN.js
|
|
/* eslint-disable no-template-curly-in-string */
|
|
|
|
|
|
|
|
|
|
var typeTemplate = '${label}不是一个有效的${type}';
|
|
var localeValues = {
|
|
locale: 'zh-cn',
|
|
Pagination: zh_CN/* default */.Z,
|
|
DatePicker: date_picker_locale_zh_CN,
|
|
TimePicker: time_picker_locale_zh_CN,
|
|
Calendar: calendar_locale_zh_CN,
|
|
// locales for all components
|
|
global: {
|
|
placeholder: '请选择'
|
|
},
|
|
Table: {
|
|
filterTitle: '筛选',
|
|
filterConfirm: '确定',
|
|
filterReset: '重置',
|
|
filterEmptyText: '无筛选项',
|
|
filterCheckall: '全选',
|
|
filterSearchPlaceholder: '在筛选项中搜索',
|
|
selectAll: '全选当页',
|
|
selectInvert: '反选当页',
|
|
selectNone: '清空所有',
|
|
selectionAll: '全选所有',
|
|
sortTitle: '排序',
|
|
expand: '展开行',
|
|
collapse: '关闭行',
|
|
triggerDesc: '点击降序',
|
|
triggerAsc: '点击升序',
|
|
cancelSort: '取消排序'
|
|
},
|
|
Modal: {
|
|
okText: '确定',
|
|
cancelText: '取消',
|
|
justOkText: '知道了'
|
|
},
|
|
Popconfirm: {
|
|
cancelText: '取消',
|
|
okText: '确定'
|
|
},
|
|
Transfer: {
|
|
titles: ['', ''],
|
|
searchPlaceholder: '请输入搜索内容',
|
|
itemUnit: '项',
|
|
itemsUnit: '项',
|
|
remove: '删除',
|
|
selectCurrent: '全选当页',
|
|
removeCurrent: '删除当页',
|
|
selectAll: '全选所有',
|
|
removeAll: '删除全部',
|
|
selectInvert: '反选当页'
|
|
},
|
|
Upload: {
|
|
uploading: '文件上传中',
|
|
removeFile: '删除文件',
|
|
uploadError: '上传错误',
|
|
previewFile: '预览文件',
|
|
downloadFile: '下载文件'
|
|
},
|
|
Empty: {
|
|
description: '暂无数据'
|
|
},
|
|
Icon: {
|
|
icon: '图标'
|
|
},
|
|
Text: {
|
|
edit: '编辑',
|
|
copy: '复制',
|
|
copied: '复制成功',
|
|
expand: '展开'
|
|
},
|
|
PageHeader: {
|
|
back: '返回'
|
|
},
|
|
Form: {
|
|
optional: '(可选)',
|
|
defaultValidateMessages: {
|
|
"default": '字段验证错误${label}',
|
|
required: '请输入${label}',
|
|
"enum": '${label}必须是其中一个[${enum}]',
|
|
whitespace: '${label}不能为空字符',
|
|
date: {
|
|
format: '${label}日期格式无效',
|
|
parse: '${label}不能转换为日期',
|
|
invalid: '${label}是一个无效日期'
|
|
},
|
|
types: {
|
|
string: typeTemplate,
|
|
method: typeTemplate,
|
|
array: typeTemplate,
|
|
object: typeTemplate,
|
|
number: typeTemplate,
|
|
date: typeTemplate,
|
|
"boolean": typeTemplate,
|
|
integer: typeTemplate,
|
|
"float": typeTemplate,
|
|
regexp: typeTemplate,
|
|
email: typeTemplate,
|
|
url: typeTemplate,
|
|
hex: typeTemplate
|
|
},
|
|
string: {
|
|
len: '${label}须为${len}个字符',
|
|
min: '${label}最少${min}个字符',
|
|
max: '${label}最多${max}个字符',
|
|
range: '${label}须在${min}-${max}字符之间'
|
|
},
|
|
number: {
|
|
len: '${label}必须等于${len}',
|
|
min: '${label}最小值为${min}',
|
|
max: '${label}最大值为${max}',
|
|
range: '${label}须在${min}-${max}之间'
|
|
},
|
|
array: {
|
|
len: '须为${len}个${label}',
|
|
min: '最少${min}个${label}',
|
|
max: '最多${max}个${label}',
|
|
range: '${label}数量须在${min}-${max}之间'
|
|
},
|
|
pattern: {
|
|
mismatch: '${label}与模式不匹配${pattern}'
|
|
}
|
|
}
|
|
},
|
|
Image: {
|
|
preview: '预览'
|
|
}
|
|
};
|
|
/* harmony default export */ var es_locale_zh_CN = (localeValues);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 29924:
|
|
/*!*********************************************************!*\
|
|
!*** ./node_modules/antd/es/radio/index.js + 4 modules ***!
|
|
\*********************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
"ZP": function() { return /* binding */ es_radio; }
|
|
});
|
|
|
|
// UNUSED EXPORTS: Button, Group
|
|
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
var esm_extends = __webpack_require__(87462);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
var defineProperty = __webpack_require__(4942);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
|
var slicedToArray = __webpack_require__(97685);
|
|
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
|
var classnames = __webpack_require__(94184);
|
|
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useMergedState.js
|
|
var useMergedState = __webpack_require__(21770);
|
|
// EXTERNAL MODULE: ./node_modules/react/index.js
|
|
var react = __webpack_require__(67294);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
|
var context = __webpack_require__(53124);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/SizeContext.js
|
|
var SizeContext = __webpack_require__(97647);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/_util/getDataOrAriaProps.js
|
|
var getDataOrAriaProps = __webpack_require__(5467);
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/context.js
|
|
|
|
var RadioGroupContext = /*#__PURE__*/react.createContext(null);
|
|
var RadioGroupContextProvider = RadioGroupContext.Provider;
|
|
/* harmony default export */ var radio_context = (RadioGroupContext);
|
|
var RadioOptionTypeContext = /*#__PURE__*/react.createContext(null);
|
|
var RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;
|
|
// EXTERNAL MODULE: ./node_modules/rc-checkbox/es/index.js
|
|
var es = __webpack_require__(50132);
|
|
// EXTERNAL MODULE: ./node_modules/rc-util/es/ref.js
|
|
var es_ref = __webpack_require__(42550);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/DisabledContext.js
|
|
var DisabledContext = __webpack_require__(98866);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
|
|
var form_context = __webpack_require__(65223);
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/radio.js
|
|
|
|
|
|
var __rest = undefined && undefined.__rest || function (s, e) {
|
|
var t = {};
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
}
|
|
return t;
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var InternalRadio = function InternalRadio(props, ref) {
|
|
var _classNames;
|
|
var groupContext = react.useContext(radio_context);
|
|
var radioOptionTypeContext = react.useContext(RadioOptionTypeContext);
|
|
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
|
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
direction = _React$useContext.direction;
|
|
var innerRef = react.useRef();
|
|
var mergedRef = (0,es_ref/* composeRef */.sQ)(ref, innerRef);
|
|
var _useContext = (0,react.useContext)(form_context/* FormItemInputContext */.aM),
|
|
isFormItemInput = _useContext.isFormItemInput;
|
|
false ? 0 : void 0;
|
|
var onChange = function onChange(e) {
|
|
var _a, _b;
|
|
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
(_b = groupContext === null || groupContext === void 0 ? void 0 : groupContext.onChange) === null || _b === void 0 ? void 0 : _b.call(groupContext, e);
|
|
};
|
|
var customizePrefixCls = props.prefixCls,
|
|
className = props.className,
|
|
children = props.children,
|
|
style = props.style,
|
|
customDisabled = props.disabled,
|
|
restProps = __rest(props, ["prefixCls", "className", "children", "style", "disabled"]);
|
|
var radioPrefixCls = getPrefixCls('radio', customizePrefixCls);
|
|
var prefixCls = ((groupContext === null || groupContext === void 0 ? void 0 : groupContext.optionType) || radioOptionTypeContext) === 'button' ? "".concat(radioPrefixCls, "-button") : radioPrefixCls;
|
|
var radioProps = (0,esm_extends/* default */.Z)({}, restProps);
|
|
// ===================== Disabled =====================
|
|
var disabled = react.useContext(DisabledContext/* default */.Z);
|
|
radioProps.disabled = customDisabled || disabled;
|
|
if (groupContext) {
|
|
radioProps.name = groupContext.name;
|
|
radioProps.onChange = onChange;
|
|
radioProps.checked = props.value === groupContext.value;
|
|
radioProps.disabled = radioProps.disabled || groupContext.disabled;
|
|
}
|
|
var wrapperClassString = classnames_default()("".concat(prefixCls, "-wrapper"), (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-checked"), radioProps.checked), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-disabled"), radioProps.disabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-in-form-item"), isFormItemInput), _classNames), className);
|
|
return (
|
|
/*#__PURE__*/
|
|
// eslint-disable-next-line jsx-a11y/label-has-associated-control
|
|
react.createElement("label", {
|
|
className: wrapperClassString,
|
|
style: style,
|
|
onMouseEnter: props.onMouseEnter,
|
|
onMouseLeave: props.onMouseLeave
|
|
}, /*#__PURE__*/react.createElement(es/* default */.Z, (0,esm_extends/* default */.Z)({}, radioProps, {
|
|
type: "radio",
|
|
prefixCls: prefixCls,
|
|
ref: mergedRef
|
|
})), children !== undefined ? /*#__PURE__*/react.createElement("span", null, children) : null)
|
|
);
|
|
};
|
|
var Radio = /*#__PURE__*/react.forwardRef(InternalRadio);
|
|
if (false) {}
|
|
/* harmony default export */ var radio_radio = (Radio);
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/group.js
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var RadioGroup = /*#__PURE__*/react.forwardRef(function (props, ref) {
|
|
var _classNames;
|
|
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
|
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
direction = _React$useContext.direction;
|
|
var size = react.useContext(SizeContext/* default */.Z);
|
|
var _useMergedState = (0,useMergedState/* default */.Z)(props.defaultValue, {
|
|
value: props.value
|
|
}),
|
|
_useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
|
|
value = _useMergedState2[0],
|
|
setValue = _useMergedState2[1];
|
|
var onRadioChange = function onRadioChange(ev) {
|
|
var lastValue = value;
|
|
var val = ev.target.value;
|
|
if (!('value' in props)) {
|
|
setValue(val);
|
|
}
|
|
var onChange = props.onChange;
|
|
if (onChange && val !== lastValue) {
|
|
onChange(ev);
|
|
}
|
|
};
|
|
var customizePrefixCls = props.prefixCls,
|
|
_props$className = props.className,
|
|
className = _props$className === void 0 ? '' : _props$className,
|
|
options = props.options,
|
|
_props$buttonStyle = props.buttonStyle,
|
|
buttonStyle = _props$buttonStyle === void 0 ? 'outline' : _props$buttonStyle,
|
|
disabled = props.disabled,
|
|
children = props.children,
|
|
customizeSize = props.size,
|
|
style = props.style,
|
|
id = props.id,
|
|
onMouseEnter = props.onMouseEnter,
|
|
onMouseLeave = props.onMouseLeave,
|
|
onFocus = props.onFocus,
|
|
onBlur = props.onBlur;
|
|
var prefixCls = getPrefixCls('radio', customizePrefixCls);
|
|
var groupPrefixCls = "".concat(prefixCls, "-group");
|
|
var childrenToRender = children;
|
|
// 如果存在 options, 优先使用
|
|
if (options && options.length > 0) {
|
|
childrenToRender = options.map(function (option) {
|
|
if (typeof option === 'string' || typeof option === 'number') {
|
|
// 此处类型自动推导为 string
|
|
return /*#__PURE__*/react.createElement(radio_radio, {
|
|
key: option.toString(),
|
|
prefixCls: prefixCls,
|
|
disabled: disabled,
|
|
value: option,
|
|
checked: value === option
|
|
}, option);
|
|
}
|
|
// 此处类型自动推导为 { label: string value: string }
|
|
return /*#__PURE__*/react.createElement(radio_radio, {
|
|
key: "radio-group-value-options-".concat(option.value),
|
|
prefixCls: prefixCls,
|
|
disabled: option.disabled || disabled,
|
|
value: option.value,
|
|
checked: value === option.value,
|
|
style: option.style
|
|
}, option.label);
|
|
});
|
|
}
|
|
var mergedSize = customizeSize || size;
|
|
var classString = classnames_default()(groupPrefixCls, "".concat(groupPrefixCls, "-").concat(buttonStyle), (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(groupPrefixCls, "-").concat(mergedSize), mergedSize), (0,defineProperty/* default */.Z)(_classNames, "".concat(groupPrefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
return /*#__PURE__*/react.createElement("div", (0,esm_extends/* default */.Z)({}, (0,getDataOrAriaProps/* default */.Z)(props), {
|
|
className: classString,
|
|
style: style,
|
|
onMouseEnter: onMouseEnter,
|
|
onMouseLeave: onMouseLeave,
|
|
onFocus: onFocus,
|
|
onBlur: onBlur,
|
|
id: id,
|
|
ref: ref
|
|
}), /*#__PURE__*/react.createElement(RadioGroupContextProvider, {
|
|
value: {
|
|
onChange: onRadioChange,
|
|
value: value,
|
|
disabled: props.disabled,
|
|
name: props.name,
|
|
optionType: props.optionType
|
|
}
|
|
}, childrenToRender));
|
|
});
|
|
/* harmony default export */ var group = (/*#__PURE__*/react.memo(RadioGroup));
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/radioButton.js
|
|
|
|
var radioButton_rest = undefined && undefined.__rest || function (s, e) {
|
|
var t = {};
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
}
|
|
return t;
|
|
};
|
|
|
|
|
|
|
|
|
|
var RadioButton = function RadioButton(props, ref) {
|
|
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
|
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
var customizePrefixCls = props.prefixCls,
|
|
radioProps = radioButton_rest(props, ["prefixCls"]);
|
|
var prefixCls = getPrefixCls('radio', customizePrefixCls);
|
|
return /*#__PURE__*/react.createElement(RadioOptionTypeContextProvider, {
|
|
value: "button"
|
|
}, /*#__PURE__*/react.createElement(radio_radio, (0,esm_extends/* default */.Z)({
|
|
prefixCls: prefixCls
|
|
}, radioProps, {
|
|
type: "radio",
|
|
ref: ref
|
|
})));
|
|
};
|
|
/* harmony default export */ var radioButton = (/*#__PURE__*/react.forwardRef(RadioButton));
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/index.js
|
|
|
|
|
|
|
|
|
|
var radio_Radio = radio_radio;
|
|
radio_Radio.Button = radioButton;
|
|
radio_Radio.Group = group;
|
|
radio_Radio.__ANT_RADIO = true;
|
|
/* harmony default export */ var es_radio = (radio_Radio);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 83822:
|
|
/*!***************************************************************!*\
|
|
!*** ./node_modules/antd/es/radio/style/index.js + 1 modules ***!
|
|
\***************************************************************/
|
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/style/default.less
|
|
var style_default = __webpack_require__(43146);
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/style/index.less
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/style/index.js
|
|
|
|
|
|
// deps-lint-skip: form
|
|
|
|
/***/ }),
|
|
|
|
/***/ 69309:
|
|
/*!*********************************************************!*\
|
|
!*** ./node_modules/antd/es/steps/index.js + 4 modules ***!
|
|
\*********************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
"Z": function() { return /* binding */ steps; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
var esm_extends = __webpack_require__(87462);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
var defineProperty = __webpack_require__(4942);
|
|
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/CheckOutlined.js
|
|
var CheckOutlined = __webpack_require__(64894);
|
|
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/CloseOutlined.js
|
|
var CloseOutlined = __webpack_require__(62208);
|
|
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
|
var classnames = __webpack_require__(94184);
|
|
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
var objectSpread2 = __webpack_require__(1413);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
var objectWithoutProperties = __webpack_require__(45987);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
var classCallCheck = __webpack_require__(15671);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
var createClass = __webpack_require__(43144);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
var assertThisInitialized = __webpack_require__(97326);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
var inherits = __webpack_require__(60136);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 1 modules
|
|
var createSuper = __webpack_require__(51630);
|
|
// EXTERNAL MODULE: ./node_modules/react/index.js
|
|
var react = __webpack_require__(67294);
|
|
;// CONCATENATED MODULE: ./node_modules/rc-steps/es/Step.js
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _excluded = ["className", "prefixCls", "style", "active", "status", "iconPrefix", "icon", "wrapperStyle", "stepNumber", "disabled", "description", "title", "subTitle", "progressDot", "stepIcon", "tailContent", "icons", "stepIndex", "onStepClick", "onClick"];
|
|
|
|
/* eslint react/prop-types: 0 */
|
|
|
|
|
|
|
|
function isString(str) {
|
|
return typeof str === 'string';
|
|
}
|
|
|
|
var Step = /*#__PURE__*/function (_React$Component) {
|
|
(0,inherits/* default */.Z)(Step, _React$Component);
|
|
|
|
var _super = (0,createSuper/* default */.Z)(Step);
|
|
|
|
function Step() {
|
|
var _this;
|
|
|
|
(0,classCallCheck/* default */.Z)(this, Step);
|
|
|
|
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
_args[_key] = arguments[_key];
|
|
}
|
|
|
|
_this = _super.call.apply(_super, [this].concat(_args));
|
|
|
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "onClick", function () {
|
|
var _this$props = _this.props,
|
|
onClick = _this$props.onClick,
|
|
onStepClick = _this$props.onStepClick,
|
|
stepIndex = _this$props.stepIndex;
|
|
|
|
if (onClick) {
|
|
onClick.apply(void 0, arguments);
|
|
}
|
|
|
|
onStepClick(stepIndex);
|
|
});
|
|
|
|
return _this;
|
|
}
|
|
|
|
(0,createClass/* default */.Z)(Step, [{
|
|
key: "renderIconNode",
|
|
value: function renderIconNode() {
|
|
var _classNames;
|
|
|
|
var _this$props2 = this.props,
|
|
prefixCls = _this$props2.prefixCls,
|
|
progressDot = _this$props2.progressDot,
|
|
stepIcon = _this$props2.stepIcon,
|
|
stepNumber = _this$props2.stepNumber,
|
|
status = _this$props2.status,
|
|
title = _this$props2.title,
|
|
description = _this$props2.description,
|
|
icon = _this$props2.icon,
|
|
iconPrefix = _this$props2.iconPrefix,
|
|
icons = _this$props2.icons;
|
|
var iconNode;
|
|
var iconClassName = classnames_default()("".concat(prefixCls, "-icon"), "".concat(iconPrefix, "icon"), (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(iconPrefix, "icon-").concat(icon), icon && isString(icon)), (0,defineProperty/* default */.Z)(_classNames, "".concat(iconPrefix, "icon-check"), !icon && status === 'finish' && (icons && !icons.finish || !icons)), (0,defineProperty/* default */.Z)(_classNames, "".concat(iconPrefix, "icon-cross"), !icon && status === 'error' && (icons && !icons.error || !icons)), _classNames));
|
|
var iconDot = /*#__PURE__*/react.createElement("span", {
|
|
className: "".concat(prefixCls, "-icon-dot")
|
|
}); // `progressDot` enjoy the highest priority
|
|
|
|
if (progressDot) {
|
|
if (typeof progressDot === 'function') {
|
|
iconNode = /*#__PURE__*/react.createElement("span", {
|
|
className: "".concat(prefixCls, "-icon")
|
|
}, progressDot(iconDot, {
|
|
index: stepNumber - 1,
|
|
status: status,
|
|
title: title,
|
|
description: description
|
|
}));
|
|
} else {
|
|
iconNode = /*#__PURE__*/react.createElement("span", {
|
|
className: "".concat(prefixCls, "-icon")
|
|
}, iconDot);
|
|
}
|
|
} else if (icon && !isString(icon)) {
|
|
iconNode = /*#__PURE__*/react.createElement("span", {
|
|
className: "".concat(prefixCls, "-icon")
|
|
}, icon);
|
|
} else if (icons && icons.finish && status === 'finish') {
|
|
iconNode = /*#__PURE__*/react.createElement("span", {
|
|
className: "".concat(prefixCls, "-icon")
|
|
}, icons.finish);
|
|
} else if (icons && icons.error && status === 'error') {
|
|
iconNode = /*#__PURE__*/react.createElement("span", {
|
|
className: "".concat(prefixCls, "-icon")
|
|
}, icons.error);
|
|
} else if (icon || status === 'finish' || status === 'error') {
|
|
iconNode = /*#__PURE__*/react.createElement("span", {
|
|
className: iconClassName
|
|
});
|
|
} else {
|
|
iconNode = /*#__PURE__*/react.createElement("span", {
|
|
className: "".concat(prefixCls, "-icon")
|
|
}, stepNumber);
|
|
}
|
|
|
|
if (stepIcon) {
|
|
iconNode = stepIcon({
|
|
index: stepNumber - 1,
|
|
status: status,
|
|
title: title,
|
|
description: description,
|
|
node: iconNode
|
|
});
|
|
}
|
|
|
|
return iconNode;
|
|
}
|
|
}, {
|
|
key: "render",
|
|
value: function render() {
|
|
var _classNames2;
|
|
|
|
var _this$props3 = this.props,
|
|
className = _this$props3.className,
|
|
prefixCls = _this$props3.prefixCls,
|
|
style = _this$props3.style,
|
|
active = _this$props3.active,
|
|
_this$props3$status = _this$props3.status,
|
|
status = _this$props3$status === void 0 ? 'wait' : _this$props3$status,
|
|
iconPrefix = _this$props3.iconPrefix,
|
|
icon = _this$props3.icon,
|
|
wrapperStyle = _this$props3.wrapperStyle,
|
|
stepNumber = _this$props3.stepNumber,
|
|
disabled = _this$props3.disabled,
|
|
description = _this$props3.description,
|
|
title = _this$props3.title,
|
|
subTitle = _this$props3.subTitle,
|
|
progressDot = _this$props3.progressDot,
|
|
stepIcon = _this$props3.stepIcon,
|
|
tailContent = _this$props3.tailContent,
|
|
icons = _this$props3.icons,
|
|
stepIndex = _this$props3.stepIndex,
|
|
onStepClick = _this$props3.onStepClick,
|
|
onClick = _this$props3.onClick,
|
|
restProps = (0,objectWithoutProperties/* default */.Z)(_this$props3, _excluded);
|
|
|
|
var classString = classnames_default()("".concat(prefixCls, "-item"), "".concat(prefixCls, "-item-").concat(status), className, (_classNames2 = {}, (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-item-custom"), icon), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-item-active"), active), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-item-disabled"), disabled === true), _classNames2));
|
|
|
|
var stepItemStyle = (0,objectSpread2/* default */.Z)({}, style);
|
|
|
|
var accessibilityProps = {};
|
|
|
|
if (onStepClick && !disabled) {
|
|
accessibilityProps.role = 'button';
|
|
accessibilityProps.tabIndex = 0;
|
|
accessibilityProps.onClick = this.onClick;
|
|
}
|
|
|
|
return /*#__PURE__*/react.createElement("div", (0,esm_extends/* default */.Z)({}, restProps, {
|
|
className: classString,
|
|
style: stepItemStyle
|
|
}), /*#__PURE__*/react.createElement("div", (0,esm_extends/* default */.Z)({
|
|
onClick: onClick
|
|
}, accessibilityProps, {
|
|
className: "".concat(prefixCls, "-item-container")
|
|
}), /*#__PURE__*/react.createElement("div", {
|
|
className: "".concat(prefixCls, "-item-tail")
|
|
}, tailContent), /*#__PURE__*/react.createElement("div", {
|
|
className: "".concat(prefixCls, "-item-icon")
|
|
}, this.renderIconNode()), /*#__PURE__*/react.createElement("div", {
|
|
className: "".concat(prefixCls, "-item-content")
|
|
}, /*#__PURE__*/react.createElement("div", {
|
|
className: "".concat(prefixCls, "-item-title")
|
|
}, title, subTitle && /*#__PURE__*/react.createElement("div", {
|
|
title: typeof subTitle === 'string' ? subTitle : undefined,
|
|
className: "".concat(prefixCls, "-item-subtitle")
|
|
}, subTitle)), description && /*#__PURE__*/react.createElement("div", {
|
|
className: "".concat(prefixCls, "-item-description")
|
|
}, description))));
|
|
}
|
|
}]);
|
|
|
|
return Step;
|
|
}(react.Component);
|
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/rc-steps/es/Steps.js
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Steps_excluded = ["prefixCls", "style", "className", "children", "direction", "type", "labelPlacement", "iconPrefix", "status", "size", "current", "progressDot", "stepIcon", "initial", "icons", "onChange", "items"];
|
|
|
|
/* eslint react/no-did-mount-set-state: 0, react/prop-types: 0 */
|
|
|
|
|
|
|
|
|
|
var Steps = /*#__PURE__*/function (_React$Component) {
|
|
(0,inherits/* default */.Z)(Steps, _React$Component);
|
|
|
|
var _super = (0,createSuper/* default */.Z)(Steps);
|
|
|
|
function Steps() {
|
|
var _this;
|
|
|
|
(0,classCallCheck/* default */.Z)(this, Steps);
|
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
args[_key] = arguments[_key];
|
|
}
|
|
|
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
|
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "onStepClick", function (next) {
|
|
var _this$props = _this.props,
|
|
onChange = _this$props.onChange,
|
|
current = _this$props.current;
|
|
|
|
if (onChange && current !== next) {
|
|
onChange(next);
|
|
}
|
|
});
|
|
|
|
return _this;
|
|
}
|
|
|
|
(0,createClass/* default */.Z)(Steps, [{
|
|
key: "render",
|
|
value: function render() {
|
|
var _classNames,
|
|
_this2 = this;
|
|
|
|
var _this$props2 = this.props,
|
|
prefixCls = _this$props2.prefixCls,
|
|
_this$props2$style = _this$props2.style,
|
|
style = _this$props2$style === void 0 ? {} : _this$props2$style,
|
|
className = _this$props2.className,
|
|
children = _this$props2.children,
|
|
direction = _this$props2.direction,
|
|
type = _this$props2.type,
|
|
labelPlacement = _this$props2.labelPlacement,
|
|
iconPrefix = _this$props2.iconPrefix,
|
|
status = _this$props2.status,
|
|
size = _this$props2.size,
|
|
current = _this$props2.current,
|
|
progressDot = _this$props2.progressDot,
|
|
stepIcon = _this$props2.stepIcon,
|
|
initial = _this$props2.initial,
|
|
icons = _this$props2.icons,
|
|
onChange = _this$props2.onChange,
|
|
_this$props2$items = _this$props2.items,
|
|
items = _this$props2$items === void 0 ? [] : _this$props2$items,
|
|
restProps = (0,objectWithoutProperties/* default */.Z)(_this$props2, Steps_excluded);
|
|
|
|
var isNav = type === 'navigation';
|
|
var adjustedLabelPlacement = progressDot ? 'vertical' : labelPlacement;
|
|
var classString = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(direction), className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-").concat(size), size), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-label-").concat(adjustedLabelPlacement), direction === 'horizontal'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-dot"), !!progressDot), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-navigation"), isNav), _classNames));
|
|
return /*#__PURE__*/react.createElement("div", (0,esm_extends/* default */.Z)({
|
|
className: classString,
|
|
style: style
|
|
}, restProps), items.filter(function (item) {
|
|
return item;
|
|
}).map(function (item, index) {
|
|
var mergedItem = (0,objectSpread2/* default */.Z)({}, item);
|
|
|
|
var stepNumber = initial + index; // fix tail color
|
|
|
|
if (status === 'error' && index === current - 1) {
|
|
mergedItem.className = "".concat(prefixCls, "-next-error");
|
|
}
|
|
|
|
if (!mergedItem.status) {
|
|
if (stepNumber === current) {
|
|
mergedItem.status = status;
|
|
} else if (stepNumber < current) {
|
|
mergedItem.status = 'finish';
|
|
} else {
|
|
mergedItem.status = 'wait';
|
|
}
|
|
}
|
|
|
|
return /*#__PURE__*/react.createElement(Step, (0,esm_extends/* default */.Z)({}, mergedItem, {
|
|
active: stepNumber === current,
|
|
stepNumber: stepNumber + 1,
|
|
stepIndex: stepNumber,
|
|
key: stepNumber,
|
|
prefixCls: prefixCls,
|
|
iconPrefix: iconPrefix,
|
|
wrapperStyle: style,
|
|
progressDot: progressDot,
|
|
stepIcon: stepIcon,
|
|
icons: icons,
|
|
onStepClick: onChange && _this2.onStepClick
|
|
}));
|
|
}));
|
|
}
|
|
}]);
|
|
|
|
return Steps;
|
|
}(react.Component);
|
|
|
|
(0,defineProperty/* default */.Z)(Steps, "Step", Step);
|
|
|
|
(0,defineProperty/* default */.Z)(Steps, "defaultProps", {
|
|
type: 'default',
|
|
prefixCls: 'rc-steps',
|
|
iconPrefix: 'rc',
|
|
direction: 'horizontal',
|
|
labelPlacement: 'horizontal',
|
|
initial: 0,
|
|
current: 0,
|
|
status: 'process',
|
|
size: '',
|
|
progressDot: false
|
|
});
|
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/rc-steps/es/index.js
|
|
|
|
|
|
|
|
/* harmony default export */ var es = (Steps);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
|
var context = __webpack_require__(53124);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/grid/hooks/useBreakpoint.js
|
|
var useBreakpoint = __webpack_require__(25378);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/progress/index.js + 10 modules
|
|
var progress = __webpack_require__(97910);
|
|
// EXTERNAL MODULE: ./node_modules/rc-util/es/Children/toArray.js
|
|
var toArray = __webpack_require__(50344);
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/steps/useLegacyItems.js
|
|
|
|
|
|
|
|
|
|
function filter(items) {
|
|
return items.filter(function (item) {
|
|
return item;
|
|
});
|
|
}
|
|
function useLegacyItems(items, children) {
|
|
if (items) {
|
|
return items;
|
|
}
|
|
false ? 0 : void 0;
|
|
var childrenItems = (0,toArray/* default */.Z)(children).map(function (node) {
|
|
if ( /*#__PURE__*/react.isValidElement(node)) {
|
|
var props = node.props;
|
|
var item = (0,esm_extends/* default */.Z)({}, props);
|
|
return item;
|
|
}
|
|
return null;
|
|
});
|
|
return filter(childrenItems);
|
|
}
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/steps/index.js
|
|
|
|
|
|
var __rest = undefined && undefined.__rest || function (s, e) {
|
|
var t = {};
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
}
|
|
return t;
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var steps_Steps = function Steps(props) {
|
|
var _classNames;
|
|
var percent = props.percent,
|
|
size = props.size,
|
|
className = props.className,
|
|
direction = props.direction,
|
|
items = props.items,
|
|
_props$responsive = props.responsive,
|
|
responsive = _props$responsive === void 0 ? true : _props$responsive,
|
|
_props$current = props.current,
|
|
current = _props$current === void 0 ? 0 : _props$current,
|
|
children = props.children,
|
|
restProps = __rest(props, ["percent", "size", "className", "direction", "items", "responsive", "current", "children"]);
|
|
var _useBreakpoint = (0,useBreakpoint/* default */.Z)(responsive),
|
|
xs = _useBreakpoint.xs;
|
|
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
|
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
rtlDirection = _React$useContext.direction;
|
|
var getDirection = react.useCallback(function () {
|
|
return responsive && xs ? 'vertical' : direction;
|
|
}, [xs, direction]);
|
|
var prefixCls = getPrefixCls('steps', props.prefixCls);
|
|
var iconPrefix = getPrefixCls('', props.iconPrefix);
|
|
var mergedItems = useLegacyItems(items, children);
|
|
var stepsClassName = classnames_default()((_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), rtlDirection === 'rtl'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-with-progress"), percent !== undefined), _classNames), className);
|
|
var icons = {
|
|
finish: /*#__PURE__*/react.createElement(CheckOutlined/* default */.Z, {
|
|
className: "".concat(prefixCls, "-finish-icon")
|
|
}),
|
|
error: /*#__PURE__*/react.createElement(CloseOutlined/* default */.Z, {
|
|
className: "".concat(prefixCls, "-error-icon")
|
|
})
|
|
};
|
|
var stepIconRender = function stepIconRender(_ref) {
|
|
var node = _ref.node,
|
|
status = _ref.status;
|
|
if (status === 'process' && percent !== undefined) {
|
|
// currently it's hard-coded, since we can't easily read the actually width of icon
|
|
var progressWidth = size === 'small' ? 32 : 40;
|
|
// iconWithProgress
|
|
return /*#__PURE__*/react.createElement("div", {
|
|
className: "".concat(prefixCls, "-progress-icon")
|
|
}, /*#__PURE__*/react.createElement(progress/* default */.Z, {
|
|
type: "circle",
|
|
percent: percent,
|
|
width: progressWidth,
|
|
strokeWidth: 4,
|
|
format: function format() {
|
|
return null;
|
|
}
|
|
}), node);
|
|
}
|
|
return node;
|
|
};
|
|
return /*#__PURE__*/react.createElement(es, (0,esm_extends/* default */.Z)({
|
|
icons: icons
|
|
}, restProps, {
|
|
current: current,
|
|
size: size,
|
|
items: mergedItems,
|
|
direction: getDirection(),
|
|
stepIcon: stepIconRender,
|
|
prefixCls: prefixCls,
|
|
iconPrefix: iconPrefix,
|
|
className: stepsClassName
|
|
}));
|
|
};
|
|
steps_Steps.Step = es.Step;
|
|
/* harmony default export */ var steps = (steps_Steps);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 32272:
|
|
/*!***************************************************************!*\
|
|
!*** ./node_modules/antd/es/steps/style/index.js + 1 modules ***!
|
|
\***************************************************************/
|
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/style/default.less
|
|
var style_default = __webpack_require__(43146);
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/steps/style/index.less
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/progress/style/index.js + 1 modules
|
|
var style = __webpack_require__(57273);
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/steps/style/index.js
|
|
|
|
|
|
// style dependencies
|
|
// deps-lint-skip: grid
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 20550:
|
|
/*!*******************************************************!*\
|
|
!*** ./node_modules/antd/es/tag/index.js + 1 modules ***!
|
|
\*******************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
"Z": function() { return /* binding */ tag; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
var defineProperty = __webpack_require__(4942);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
var esm_extends = __webpack_require__(87462);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
|
var slicedToArray = __webpack_require__(97685);
|
|
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/CloseOutlined.js
|
|
var CloseOutlined = __webpack_require__(62208);
|
|
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
|
var classnames = __webpack_require__(94184);
|
|
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
// EXTERNAL MODULE: ./node_modules/rc-util/es/omit.js
|
|
var omit = __webpack_require__(98423);
|
|
// EXTERNAL MODULE: ./node_modules/react/index.js
|
|
var react = __webpack_require__(67294);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
|
var context = __webpack_require__(53124);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/_util/colors.js
|
|
var colors = __webpack_require__(98787);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/_util/wave.js + 1 modules
|
|
var wave = __webpack_require__(68349);
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/tag/CheckableTag.js
|
|
|
|
|
|
var __rest = undefined && undefined.__rest || function (s, e) {
|
|
var t = {};
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
}
|
|
return t;
|
|
};
|
|
|
|
|
|
|
|
var CheckableTag = function CheckableTag(_a) {
|
|
var _classNames;
|
|
var customizePrefixCls = _a.prefixCls,
|
|
className = _a.className,
|
|
checked = _a.checked,
|
|
onChange = _a.onChange,
|
|
onClick = _a.onClick,
|
|
restProps = __rest(_a, ["prefixCls", "className", "checked", "onChange", "onClick"]);
|
|
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
|
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
var handleClick = function handleClick(e) {
|
|
onChange === null || onChange === void 0 ? void 0 : onChange(!checked);
|
|
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
};
|
|
var prefixCls = getPrefixCls('tag', customizePrefixCls);
|
|
var cls = classnames_default()(prefixCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-checkable"), true), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-checkable-checked"), checked), _classNames), className);
|
|
return /*#__PURE__*/react.createElement("span", (0,esm_extends/* default */.Z)({}, restProps, {
|
|
className: cls,
|
|
onClick: handleClick
|
|
}));
|
|
};
|
|
/* harmony default export */ var tag_CheckableTag = (CheckableTag);
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/tag/index.js
|
|
|
|
|
|
|
|
var tag_rest = undefined && undefined.__rest || function (s, e) {
|
|
var t = {};
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
}
|
|
return t;
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var PresetColorRegex = new RegExp("^(".concat(colors/* PresetColorTypes.join */.Y.join('|'), ")(-inverse)?$"));
|
|
var PresetStatusColorRegex = new RegExp("^(".concat(colors/* PresetStatusColorTypes.join */.E.join('|'), ")$"));
|
|
var InternalTag = function InternalTag(_a, ref) {
|
|
var _classNames;
|
|
var customizePrefixCls = _a.prefixCls,
|
|
className = _a.className,
|
|
style = _a.style,
|
|
children = _a.children,
|
|
icon = _a.icon,
|
|
color = _a.color,
|
|
onClose = _a.onClose,
|
|
closeIcon = _a.closeIcon,
|
|
_a$closable = _a.closable,
|
|
closable = _a$closable === void 0 ? false : _a$closable,
|
|
props = tag_rest(_a, ["prefixCls", "className", "style", "children", "icon", "color", "onClose", "closeIcon", "closable"]);
|
|
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
|
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
direction = _React$useContext.direction;
|
|
var _React$useState = react.useState(true),
|
|
_React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
|
|
visible = _React$useState2[0],
|
|
setVisible = _React$useState2[1];
|
|
// Warning for deprecated usage
|
|
if (false) {}
|
|
react.useEffect(function () {
|
|
if ('visible' in props) {
|
|
setVisible(props.visible);
|
|
}
|
|
}, [props.visible]);
|
|
var isPresetColor = function isPresetColor() {
|
|
if (!color) {
|
|
return false;
|
|
}
|
|
return PresetColorRegex.test(color) || PresetStatusColorRegex.test(color);
|
|
};
|
|
var tagStyle = (0,esm_extends/* default */.Z)({
|
|
backgroundColor: color && !isPresetColor() ? color : undefined
|
|
}, style);
|
|
var presetColor = isPresetColor();
|
|
var prefixCls = getPrefixCls('tag', customizePrefixCls);
|
|
var tagClassName = classnames_default()(prefixCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-").concat(color), presetColor), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-has-color"), color && !presetColor), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-hidden"), !visible), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
var handleCloseClick = function handleCloseClick(e) {
|
|
e.stopPropagation();
|
|
onClose === null || onClose === void 0 ? void 0 : onClose(e);
|
|
if (e.defaultPrevented) {
|
|
return;
|
|
}
|
|
if (!('visible' in props)) {
|
|
setVisible(false);
|
|
}
|
|
};
|
|
var renderCloseIcon = function renderCloseIcon() {
|
|
if (closable) {
|
|
return closeIcon ? /*#__PURE__*/react.createElement("span", {
|
|
className: "".concat(prefixCls, "-close-icon"),
|
|
onClick: handleCloseClick
|
|
}, closeIcon) : /*#__PURE__*/react.createElement(CloseOutlined/* default */.Z, {
|
|
className: "".concat(prefixCls, "-close-icon"),
|
|
onClick: handleCloseClick
|
|
});
|
|
}
|
|
return null;
|
|
};
|
|
var isNeedWave = 'onClick' in props || children && children.type === 'a';
|
|
var tagProps = (0,omit/* default */.Z)(props, ['visible']);
|
|
var iconNode = icon || null;
|
|
var kids = iconNode ? /*#__PURE__*/react.createElement(react.Fragment, null, iconNode, /*#__PURE__*/react.createElement("span", null, children)) : children;
|
|
var tagNode = /*#__PURE__*/react.createElement("span", (0,esm_extends/* default */.Z)({}, tagProps, {
|
|
ref: ref,
|
|
className: tagClassName,
|
|
style: tagStyle
|
|
}), kids, renderCloseIcon());
|
|
return isNeedWave ? /*#__PURE__*/react.createElement(wave/* default */.Z, null, tagNode) : tagNode;
|
|
};
|
|
var Tag = /*#__PURE__*/react.forwardRef(InternalTag);
|
|
if (false) {}
|
|
Tag.CheckableTag = tag_CheckableTag;
|
|
/* harmony default export */ var tag = (Tag);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 71114:
|
|
/*!*************************************************************!*\
|
|
!*** ./node_modules/antd/es/tag/style/index.js + 1 modules ***!
|
|
\*************************************************************/
|
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/style/default.less
|
|
var style_default = __webpack_require__(43146);
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/tag/style/index.less
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/antd/es/tag/style/index.js
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 74704:
|
|
/*!**************************************************************************!*\
|
|
!*** ./node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js ***!
|
|
\**************************************************************************/
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 86116);
|
|
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
if (!it) {
|
|
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
if (it) o = it;
|
|
var i = 0;
|
|
var F = function F() {};
|
|
return {
|
|
s: F,
|
|
n: function n() {
|
|
if (i >= o.length) return {
|
|
done: true
|
|
};
|
|
return {
|
|
done: false,
|
|
value: o[i++]
|
|
};
|
|
},
|
|
e: function e(_e) {
|
|
throw _e;
|
|
},
|
|
f: F
|
|
};
|
|
}
|
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
}
|
|
var normalCompletion = true,
|
|
didErr = false,
|
|
err;
|
|
return {
|
|
s: function s() {
|
|
it = it.call(o);
|
|
},
|
|
n: function n() {
|
|
var step = it.next();
|
|
normalCompletion = step.done;
|
|
return step;
|
|
},
|
|
e: function e(_e2) {
|
|
didErr = true;
|
|
err = _e2;
|
|
},
|
|
f: function f() {
|
|
try {
|
|
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
} finally {
|
|
if (didErr) throw err;
|
|
}
|
|
}
|
|
};
|
|
}
|
|
module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
|
/***/ })
|
|
|
|
}]); |