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.
NewEduCoderBuild/p__Competitions__Detail__in...

7103 lines
294 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[72570,52720],{
/***/ 80045:
/*!*******************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules ***!
\*******************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_ExclamationCircleOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(38329);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.js
// This icon file is generated automatically.
var ExclamationCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, "name": "exclamation-circle", "theme": "outlined" };
/* harmony default export */ var asn_ExclamationCircleOutlined = (ExclamationCircleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(91851);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/ExclamationCircleOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var ExclamationCircleOutlined_ExclamationCircleOutlined = function ExclamationCircleOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_ExclamationCircleOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_ExclamationCircleOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined));
/***/ }),
/***/ 60936:
/*!*******************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/InboxOutlined.js + 1 modules ***!
\*******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_InboxOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(38329);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/InboxOutlined.js
// This icon file is generated automatically.
var InboxOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z" } }] }, "name": "inbox", "theme": "outlined" };
/* harmony default export */ var asn_InboxOutlined = (InboxOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(91851);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/InboxOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var InboxOutlined_InboxOutlined = function InboxOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_InboxOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_InboxOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(InboxOutlined_InboxOutlined));
/***/ }),
/***/ 96402:
/*!********************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/UploadOutlined.js + 1 modules ***!
\********************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_UploadOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(38329);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/UploadOutlined.js
// This icon file is generated automatically.
var UploadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, "name": "upload", "theme": "outlined" };
/* harmony default export */ var asn_UploadOutlined = (UploadOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(91851);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/UploadOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var UploadOutlined_UploadOutlined = function UploadOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_UploadOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_UploadOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(UploadOutlined_UploadOutlined));
/***/ }),
/***/ 96700:
/*!**************************************************************!*\
!*** ./src/pages/Competitions/Detail/index.tsx + 13 modules ***!
\**************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ Detail; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(26801);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(10574);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(39343);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(11006);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(27161);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 15 modules
var _umi_production_exports = __webpack_require__(38670);
// EXTERNAL MODULE: ./src/pages/Competitions/Detail/index.less?modules
var Detailmodules = __webpack_require__(54278);
// EXTERNAL MODULE: ./src/components/AuthenticationModel/index.tsx
var AuthenticationModel = __webpack_require__(22059);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js + 24 modules
var upload = __webpack_require__(48826);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var es_modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/InboxOutlined.js + 1 modules
var InboxOutlined = __webpack_require__(60936);
// EXTERNAL MODULE: ./src/components/UploadFile/index.tsx
var UploadFile = __webpack_require__(63720);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/AddSubmitModel.tsx
var Dragger = upload/* default */.Z.Dragger;
var ShixunsListPage = function ShixunsListPage(_ref) {
var user = _ref.user,
dispatch = _ref.dispatch,
classroomList = _ref.classroomList,
shixunsDetail = _ref.shixunsDetail,
getResults = _ref.getResults;
var params = (0,_umi_production_exports.useParams)();
var _useState = (0,_react_17_0_2_react.useState)(),
_useState2 = slicedToArray_default()(_useState, 2),
time = _useState2[0],
setTime = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)([]),
_useState4 = slicedToArray_default()(_useState3, 2),
fileList = _useState4[0],
setFileList = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
confirmLoading = _useState6[0],
setConfirmLoading = _useState6[1];
var props = {
onRemove: function onRemove() {
setFileList([]);
},
beforeUpload: function beforeUpload(file) {
console.log(file);
if ((file === null || file === void 0 ? void 0 : file.size) > 1024 * 1024 * 500) {
message/* default */.ZP.info('文件超过500M不符合上传要求');
return false;
}
var filelist = [];
filelist.push(file);
setFileList([].concat(filelist));
return false;
},
fileList: fileList
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_modal/* default */.Z, {
title: "\u63D0\u4EA4\u6587\u4EF6",
open: shixunsDetail.actionTabs.key === 'md-tab',
confirmLoading: confirmLoading,
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _user$userInfo, _fileList$;
var resulr;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!((fileList === null || fileList === void 0 ? void 0 : fileList.length) <= 0)) {
_context.next = 3;
break;
}
message/* default */.ZP.info('请先选择文件');
return _context.abrupt("return");
case 3:
setConfirmLoading(true);
_context.next = 6;
return (0,UploadFile/* uploadFile */.cT)(fileList[0], {
login: (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login,
container_type: "Competition",
container_id: shixunsDetail.actionTabs.params.id,
stage_type: shixunsDetail.actionTabs.params.value,
file_name: (_fileList$ = fileList[0]) === null || _fileList$ === void 0 ? void 0 : _fileList$.name
});
case 6:
resulr = _context.sent;
if ((resulr === null || resulr === void 0 ? void 0 : resulr.status) === 0) {
message/* default */.ZP.info('提交成功');
dispatch({
type: 'shixunsDetail/setActionTabs',
payload: {
key: ''
}
});
setConfirmLoading(false);
setFileList([]);
getResults(shixunsDetail.actionTabs.params.value);
} else {
setConfirmLoading(false);
message/* default */.ZP.info('提交失败');
}
case 8:
case "end":
return _context.stop();
}
}, _callee);
})),
onCancel: function onCancel() {
setFileList([]);
dispatch({
type: 'shixunsDetail/setActionTabs',
payload: {
key: ''
}
});
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(Dragger, objectSpread2_default()(objectSpread2_default()({}, props), {}, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: "ant-upload-drag-icon",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(InboxOutlined/* default */.Z, {})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: "ant-upload-hint",
children: "\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"
})]
}))
});
};
/* harmony default export */ var AddSubmitModel = ((0,_umi_production_exports.connect)(function (_ref3) {
var user = _ref3.user,
classroomList = _ref3.classroomList,
shixunsDetail = _ref3.shixunsDetail;
return {
user: user,
classroomList: classroomList,
shixunsDetail: shixunsDetail
};
})(ShixunsListPage));
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules
var breadcrumb = __webpack_require__(66104);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
var spin = __webpack_require__(71418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/menu/index.js + 11 modules
var menu = __webpack_require__(20834);
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 1 modules
var RenderHtml = __webpack_require__(80416);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
var input = __webpack_require__(1056);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(67871);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var utils_fetch = __webpack_require__(15830);
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
var verifyLogin = __webpack_require__(23645);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
var es_select = __webpack_require__(57809);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/carousel/index.js + 10 modules
var carousel = __webpack_require__(9951);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/LeftOutlined.js + 1 modules
var LeftOutlined = __webpack_require__(52063);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/RightOutlined.js + 1 modules
var RightOutlined = __webpack_require__(22311);
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/Competitionbonus.tsx
//代金劵
var Option = es_select["default"].Option;
function Bonus(_ref) {
var rewarddata = _ref.rewarddata,
getlistdatas = _ref.getlistdatas,
is_signed = _ref.is_signed,
dispatch = _ref.dispatch,
userlist = _ref.userlist;
var Carousels = (0,_react_17_0_2_react.useRef)(null);
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
isshow = _useState2[0],
SetIsshow = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(undefined),
_useState4 = slicedToArray_default()(_useState3, 2),
className = _useState4[0],
SetClassname = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(''),
_useState6 = slicedToArray_default()(_useState5, 2),
id = _useState6[0],
SetId = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(undefined),
_useState8 = slicedToArray_default()(_useState7, 2),
name = _useState8[0],
SetName = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(undefined),
_useState10 = slicedToArray_default()(_useState9, 2),
email = _useState10[0],
SetEmail = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)(undefined),
_useState12 = slicedToArray_default()(_useState11, 2),
phone = _useState12[0],
SetPhone = _useState12[1];
function receive(_x) {
return _receive.apply(this, arguments);
}
function _receive() {
_receive = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(item) {
var result;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!item.user_received) {
_context.next = 3;
break;
}
window.open(item.click_info);
return _context.abrupt("return");
case 3:
if ((0,verifyLogin/* handleVerifyLogin */.o1)(dispatch)) {
_context.next = 5;
break;
}
return _context.abrupt("return");
case 5:
if (!(is_signed === false)) {
_context.next = 8;
break;
}
message/* default */.ZP.info('您尚未报名参赛,请报名参赛后领取');
return _context.abrupt("return");
case 8:
if (!(item.click_event === "Pop")) {
_context.next = 14;
break;
}
SetId(item.id);
SetIsshow(true);
return _context.abrupt("return");
case 14:
SetClassname(undefined);
case 15:
_context.next = 17;
return dispatch({
type: 'competitions/Reward',
payload: {
competition_module_setting_id: item.id
}
});
case 17:
result = _context.sent;
if (result && result.status === 0) {
getlistdatas();
if (item.click_event === "Link") {
message/* default */.ZP.info('领取成功');
window.open(item.click_info);
} else {
message/* default */.ZP.info(item.click_info);
}
}
case 19:
case "end":
return _context.stop();
}
}, _callee);
}));
return _receive.apply(this, arguments);
}
function submitreceive() {
return _submitreceive.apply(this, arguments);
}
function _submitreceive() {
_submitreceive = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var result;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
if (!(userlist && !userlist.real_name)) {
_context2.next = 4;
break;
}
if (name) {
_context2.next = 4;
break;
}
message/* default */.ZP.info('姓名不能为空');
return _context2.abrupt("return");
case 4:
if (!(userlist && !userlist.email)) {
_context2.next = 8;
break;
}
if (email) {
_context2.next = 8;
break;
}
message/* default */.ZP.info('邮箱不能为空');
return _context2.abrupt("return");
case 8:
if (!(userlist && !userlist.phone)) {
_context2.next = 12;
break;
}
if (phone) {
_context2.next = 12;
break;
}
message/* default */.ZP.info('手机号码不能为空');
return _context2.abrupt("return");
case 12:
if (className) {
_context2.next = 15;
break;
}
message/* default */.ZP.info('请选择你的年级');
return _context2.abrupt("return");
case 15:
_context2.next = 17;
return dispatch({
type: 'competitions/Reward',
payload: {
competition_module_setting_id: id,
className: className,
name: name,
mail: email,
phone: phone
}
});
case 17:
result = _context2.sent;
if (result && result.status === 0) {
SetIsshow(false);
getlistdatas();
message/* default */.ZP.info('HCIA认证考试代金劵将由Educoder平台统一发放请及时关注邮箱或站内短信查收');
}
case 19:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return _submitreceive.apply(this, arguments);
}
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_modal/* default */.Z, {
open: isshow,
title: '完善信息',
onCancel: function onCancel() {
return SetIsshow(false);
},
onOk: function onOk() {
submitreceive();
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
children: ["\u60A8\u7684\u59D3\u540D\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
className: userlist && userlist.real_name ? '' : Detailmodules/* default */.Z.bkfff,
style: {
width: '300px',
marginLeft: '14px',
background: userlist && userlist.phone ? '' : '#ffffff!important'
},
value: userlist && userlist.real_name || name,
disabled: userlist && userlist.real_name || false,
onChange: function onChange(e) {
return SetName(e.target.value);
}
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
style: {
marginTop: '1em'
},
children: ["\u60A8\u7684\u90AE\u7BB1\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
className: userlist && userlist.email ? '' : "bkfff",
style: {
width: '300px',
marginLeft: '14px',
background: userlist && userlist.phone ? '' : '#ffffff!important'
},
value: userlist && userlist.email || email,
disabled: userlist && userlist.email || false,
onChange: function onChange(e) {
return SetEmail(e.target.value);
}
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
style: {
marginTop: '1em'
},
children: ["\u60A8\u7684\u624B\u673A\u53F7\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
style: {
width: '300px'
},
className: userlist && userlist.phone ? '' : "bkfff",
value: userlist && userlist.phone || phone,
disabled: userlist && userlist.phone || false,
onChange: function onChange(e) {
return SetPhone(e.target.value);
}
})]
}), "\u60A8\u7684\u5E74\u7EA7\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
style: {
width: '300px',
marginTop: '1em',
marginLeft: '14px'
},
onChange: function onChange(e) {
SetClassname(e);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: "\u5927\u4E00",
children: "\u5927\u4E00"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: "\u5927\u4E8C",
children: "\u5927\u4E8C"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: "\u5927\u4E09",
children: "\u5927\u4E09"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: "\u5927\u56DB",
children: "\u5927\u56DB"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: "\u5927\u4E94",
children: "\u5927\u4E94"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: "\u7855\u4E00",
children: "\u7855\u4E00"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: "\u7855\u4E8C",
children: "\u7855\u4E8C"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: "\u7855\u4E09",
children: "\u7855\u4E09"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: "\u535A\u4E00",
children: "\u535A\u4E00"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: "\u535A\u4E8C",
children: "\u535A\u4E8C"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: "\u535A\u4E09",
children: "\u535A\u4E09"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: "\u535A\u56DB",
children: "\u535A\u56DB"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: "\u535A\u4E94",
children: "\u535A\u4E94"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
style: {
marginTop: '1em'
},
children: "\u63D0\u9192\uFF1A\u5982\u65E0\u534E\u4E3A\u4E91\u8D26\u53F7\uFF0C\u8BF7\u5C3D\u5FEB\u6CE8\u518C\u534E\u4E3A\u4E91\uFF01"
})]
}), rewarddata && rewarddata.length > 3 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
position: 'relative',
marginBottom: '10px',
marginTop: '10px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Detailmodules/* default */.Z.spanprev,
onClick: function onClick() {
Carousels.current.prev();
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(LeftOutlined/* default */.Z, {
style: {
color: '#fff',
fontSize: '20px',
marginLeft: "15px"
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(carousel/* default */.Z, {
ref: Carousels,
className: Detailmodules/* default */.Z.divwidth,
slidesToShow: 3,
slidesToScroll: 1,
children: rewarddata && rewarddata.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
textAlign: 'center',
position: 'relative'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: env/* default */.Z.IMG_SERVER + "/".concat(item.image_url)
}), item.user_received === false || item.click_event === "Link" ? /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: Detailmodules/* default */.Z.receiveclick,
onClick: function onClick() {
return receive(item);
},
children: "\u70B9\u51FB\u9886\u53D6"
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: Detailmodules/* default */.Z.receivealready,
children: "\u5DF2\u7ECF\u9886\u53D6"
})]
});
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Detailmodules/* default */.Z.spannext,
onClick: function onClick() {
Carousels.current.next();
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RightOutlined/* default */.Z, {
style: {
color: '#fff',
fontSize: '20px',
marginLeft: "5px"
}
})
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Detailmodules/* default */.Z.divwidth,
style: {
justifyContent: 'space-around',
marginBottom: '10px',
marginTop: '10px'
},
children: rewarddata && rewarddata.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
textAlign: 'center',
position: 'relative'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: env/* default */.Z.IMG_SERVER + "/".concat(item.image_url)
}), item.user_received === false || item.click_event === "Link" ? /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: Detailmodules/* default */.Z.receiveclick,
onClick: function onClick() {
return receive(item);
},
children: "\u70B9\u51FB\u9886\u53D6"
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: Detailmodules/* default */.Z.receivealready,
children: "\u5DF2\u7ECF\u9886\u53D6"
})]
});
})
})]
});
}
/* harmony default export */ var Competitionbonus = (Bonus);
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/SeeItem.tsx
//代金劵
var SeeItem = function SeeItem(_ref, ref) {
var StaffDetail = _ref.StaffDetail,
HeaderDetail = _ref.HeaderDetail,
ItemData = _ref.ItemData,
setIssee = _ref.setIssee,
ModelType = _ref.ModelType,
dispatch = _ref.dispatch,
userinfo = _ref.userinfo,
Editable = _ref.Editable;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
visible = _useState2[0],
setVisible = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)([]),
_useState4 = slicedToArray_default()(_useState3, 2),
fileList = _useState4[0],
setFileList = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(''),
_useState6 = slicedToArray_default()(_useState5, 2),
fileId = _useState6[0],
setFileId = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(''),
_useState8 = slicedToArray_default()(_useState7, 2),
text = _useState8[0],
setText = _useState8[1];
// const [disabled, setDisable] = useState(false)
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
loading = _useState10[0],
setLoading = _useState10[1];
var _useParams = (0,_umi_production_exports.useParams)(),
identifier = _useParams.identifier;
var enrolled = (0,_react_17_0_2_react.useRef)(null);
var dom = (0,_react_17_0_2_react.useRef)(null);
enrolled.current = StaffDetail === null || StaffDetail === void 0 ? void 0 : StaffDetail.enrolled;
(0,_react_17_0_2_react.useEffect)(function () {
var _dom$current;
(_dom$current = dom.current) === null || _dom$current === void 0 || _dom$current.addEventListener("click", modal);
return function () {
var _dom$current2;
(_dom$current2 = dom.current) === null || _dom$current2 === void 0 || _dom$current2.removeEventListener("click", modal);
};
}, []);
// useEffect(() => {
// if (visible || fileList.length) {
// setDisable(true)
// }
// }, [visible])
var modal = function modal(e) {
var _e$target;
// 检查事件源e.targe是否为Li
if ((e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.id) === 'modal-upload') {
if (!(0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
return;
}
if (!enrolled.current) {
es_modal/* default */.Z.info({
title: '提示',
centered: true,
okText: '我知道了',
content: '请先报名,再提交作品'
});
return;
}
setVisible(true);
}
};
(0,_react_17_0_2_react.useEffect)(function () {
if (HeaderDetail !== null && HeaderDetail !== void 0 && HeaderDetail.upload_file) {
var _HeaderDetail$upload_, _HeaderDetail$upload_2;
setFileList([{
name: HeaderDetail === null || HeaderDetail === void 0 || (_HeaderDetail$upload_ = HeaderDetail.upload_file) === null || _HeaderDetail$upload_ === void 0 ? void 0 : _HeaderDetail$upload_.title,
status: 'done',
uid: '123456789'
}]);
setText(HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.upload_file_url);
setFileId(HeaderDetail === null || HeaderDetail === void 0 || (_HeaderDetail$upload_2 = HeaderDetail.upload_file) === null || _HeaderDetail$upload_2 === void 0 || (_HeaderDetail$upload_2 = _HeaderDetail$upload_2.url) === null || _HeaderDetail$upload_2 === void 0 ? void 0 : _HeaderDetail$upload_2.split('/')[3]);
}
}, [HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.upload_file]);
var uploadProps = {
name: 'file',
multiple: false,
withCredentials: true,
// accept: ".doc, .docx, .pdf",
// action: '/api/attachments.json',
action: env/* default */.Z.API_SERVER + '/api/attachments.json',
showUploadList: {
showRemoveIcon: false
},
fileList: fileList,
onChange: function onChange(info) {
var status = info.file.status;
var newFileList = [objectSpread2_default()({}, info.file)];
setFileList(newFileList);
if (info.file.status === 'uploading') {
setLoading(true);
}
if (status === 'done') {
var _newFileList$;
setFileId((_newFileList$ = newFileList[0]) === null || _newFileList$ === void 0 || (_newFileList$ = _newFileList$.response) === null || _newFileList$ === void 0 ? void 0 : _newFileList$.id);
setLoading(false);
// setDisable(false)
}
if (status === 'error') {
setFileList([]);
setLoading(false);
}
},
beforeUpload: function beforeUpload(file) {
var isLt10M = file.size / 1024 / 1024 < 1000;
if (!isLt10M) {
message/* default */.ZP.info("文件大小必须小于1000MB");
return Promise.reject();
}
// if (!/\.(doc|docx|pdf|DOC|DOCX|PDF)$/.test(file.name)) {
// message.warning('只能上传Word或PDF文件')
// return Promise.reject();
// }
return Promise.resolve();
}
};
var handleVisible = function handleVisible() {
setVisible(true);
};
(0,_react_17_0_2_react.useImperativeHandle)(ref, function () {
return {
handleVisible: handleVisible
};
});
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
ref: dom,
children: [ModelType === "reward" ? /*#__PURE__*/(0,jsx_runtime.jsx)(Competitionbonus, {
userlist: userinfo,
dispatch: dispatch,
rewarddata: ItemData.reward_setting,
is_signed: ItemData.is_signed
}) : null, /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
textAlign: 'right'
},
children: ((userinfo === null || userinfo === void 0 ? void 0 : userinfo.admin) || (userinfo === null || userinfo === void 0 ? void 0 : userinfo.business) || Editable) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: function onClick() {
return setIssee(false);
},
children: "\u7F16\u8F91"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: ItemData.md_content || '暂无'
}), ItemData && ItemData.attachments && ItemData.attachments.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
href: (env/* default */.Z === null || env/* default */.Z === void 0 ? void 0 : env/* default */.Z.API_SERVER) + item.url,
target: "_self",
download: item.title,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
color: '#29BD8B'
},
className: "font-14 color-green iconfont icon-fujian mr8"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#000000'
},
children: item.title
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#000000',
marginLeft: '10px'
},
children: item.filesize
})]
})
});
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_modal/* default */.Z, {
centered: true,
title: "\u4E0A\u4F20\u4F5C\u54C1",
open: visible,
okText: "\u63D0\u4EA4\u4F5C\u54C1",
cancelText: "\u53D6\u6D88",
confirmLoading: loading,
onCancel: function onCancel() {
return setVisible(false);
},
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!(!fileId && !text)) {
_context.next = 3;
break;
}
setVisible(false);
return _context.abrupt("return");
case 3:
// if (disabled) {
// setVisible(false)
// return;
// }
setLoading(true);
_context.next = 6;
return (0,utils_fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/upload_file.json"), {
method: 'post',
body: {
attachment_id: fileId,
upload_file_url: text
}
});
case 6:
res = _context.sent;
if (res.status === 0) {
setVisible(false);
setLoading(false);
}
case 8:
case "end":
return _context.stop();
}
}, _callee);
})),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "mb20",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u4F5C\u54C1\u94FE\u63A5\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
style: {
width: 416
},
value: text,
onChange: function onChange(e) {
var _e$target2;
return setText((_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value);
}
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "top",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
lineHeight: '28px'
},
children: "\u4F5C\u54C1\u6587\u4EF6\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
className: "mb10",
children: "\u4E0A\u4F20\u4F5C\u54C1"
})
}))]
})]
})
})]
});
};
/* harmony default export */ var Detail_SeeItem = (/*#__PURE__*/(0,_react_17_0_2_react.forwardRef)(SeeItem));
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 14 modules
var markdown_editor = __webpack_require__(38874);
// EXTERNAL MODULE: ./src/service/competitions.ts
var competitions = __webpack_require__(68903);
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/Update.tsx
function Update_SeeItem(_ref) {
var ItemData = _ref.ItemData,
setIssee = _ref.setIssee,
MenuItem = _ref.MenuItem,
dispatch = _ref.dispatch,
identifier = _ref.identifier,
ModelType = _ref.ModelType,
userinfo = _ref.userinfo,
getrightdatas = _ref.getrightdatas;
var _useState = (0,_react_17_0_2_react.useState)([]),
_useState2 = slicedToArray_default()(_useState, 2),
defaultFileList = _useState2[0],
setDefaultFileList = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(ItemData.md_content),
_useState4 = slicedToArray_default()(_useState3, 2),
defaultcontent = _useState4[0],
setDefaultcontent = _useState4[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _ItemData$attachments;
var data = [];
ItemData === null || ItemData === void 0 || (_ItemData$attachments = ItemData.attachments) === null || _ItemData$attachments === void 0 || _ItemData$attachments.map(function (item) {
var tt = {
uid: item.id,
name: item.title,
response: {
id: item.id
}
};
data.push(tt);
});
setDefaultFileList(data);
}, [ItemData === null || ItemData === void 0 ? void 0 : ItemData.attachments]);
function getdata() {
var _ItemData$attachments2;
var data = [];
ItemData === null || ItemData === void 0 || (_ItemData$attachments2 = ItemData.attachments) === null || _ItemData$attachments2 === void 0 || _ItemData$attachments2.map(function (item) {
var tt = {
uid: item === null || item === void 0 ? void 0 : item.id,
name: item.title,
response: {
id: item.id
}
};
data.push(tt);
});
return data;
}
var uploadProps = {
name: 'file',
multiple: true,
withCredentials: true,
action: env/* default */.Z.API_SERVER + '/api/attachments.json',
defaultFileList: getdata(),
onRemove: function onRemove(e) {
(0,competitions/* deletAttachments */.y8)({
id: e.uid
});
},
onChange: function onChange(info) {
var status = info.file.status;
if (status !== 'uploading') {}
if (status === 'removed') {
setDefaultFileList(info.fileList);
}
if (status === 'done') {
setDefaultFileList(info.fileList);
message/* default */.ZP.success("".concat(info.file.name, " \u6587\u4EF6\u4E0A\u4F20\u6210\u529F"));
} else if (status === 'error') {
message/* default */.ZP.error("".concat(info.file.name, " \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"));
}
},
beforeUpload: function beforeUpload(file) {
var isLt150M = file.size / 1024 / 1024 < 150;
if (!isLt150M) {
message/* default */.ZP.info("文件大小必须小于150MB");
}
return isLt150M;
}
};
console.log(uploadProps);
//修改内容回调接口
function updateItem() {
return _updateItem.apply(this, arguments);
} //获取对应文件列表
function _updateItem() {
_updateItem = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var data;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return dispatch({
type: 'competitions/updateMdContent',
payload: {
attachment_ids: getitemid(defaultFileList),
competition_module_id: ItemData.id,
md_content_id: ItemData.md_id,
content: defaultcontent,
identifier: identifier
}
});
case 2:
data = _context.sent;
if (data) {
message/* default */.ZP.info('提交成功');
setIssee(true);
//刷新
getrightdatas(MenuItem);
}
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
return _updateItem.apply(this, arguments);
}
function getitemid(itemlist) {
var data = [];
itemlist && itemlist.map(function (item) {
data.push(item.response.id);
});
return data;
}
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [ModelType === "reward" ? /*#__PURE__*/(0,jsx_runtime.jsx)(Competitionbonus, {
userlist: userinfo,
dispatch: dispatch,
rewarddata: ItemData.reward_setting,
is_signed: ItemData.is_signed
}) : null, /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
defaultValue: defaultcontent,
onChange: function onChange(e) {
return setDefaultcontent(e);
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: "uploadBtn",
children: "\u4E0A\u4F20\u9644\u4EF6"
}), "(\u5355\u4E2A\u6587\u4EF6150M\u4EE5\u5185)"]
})), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
style: {
marginTop: '10px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
style: {
width: '90px'
},
type: "primary",
onClick: function onClick() {
return updateItem();
},
children: "\u63D0\u4EA4"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
style: {
marginLeft: '30px',
width: '90px'
},
onClick: function onClick() {
return setIssee(true);
},
children: "\u53D6\u6D88"
})]
})]
});
}
/* harmony default export */ var Update = (Update_SeeItem);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tabs/index.js + 24 modules
var tabs = __webpack_require__(99313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(72315);
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/RankingNuLL.tsx
//排行榜没有数据
function RankNull() {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
style: {
fontSize: '24px',
color: '#05101a'
},
children: "\u603B\u6392\u884C"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
textAlign: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: env/* default */.Z.IMG_SERVER + "/images/educoder/competitions/trophy.png"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "\u8981\u6293\u4F4F\u4E00\u5207\u673A\u4F1A\uFF0C\u5411\u6240\u6709\u4EBA\u8BC1\u660E\u81EA\u5DF1\uFF0C\u8BC1\u660E\u4F60\u80FD\u591F\u8FCE\u63A5\u8363\u8000"
})]
})]
});
}
/* harmony default export */ var RankingNuLL = (RankNull);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
var col = __webpack_require__(43604);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/card/index.js + 4 modules
var card = __webpack_require__(18889);
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/RankingItem.tsx
//1 2 3 排名数据样式
function RankingItem(_ref) {
var oneItem = _ref.oneItem,
towItem = _ref.towItem,
threeItem = _ref.threeItem;
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
textAlign: "center"
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
gutter: 16,
style: {
justifyContent: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 6,
style: {
marginTop: '30px',
marginRight: '20px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(card/* default */.Z, {
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules/* default */.Z.towtop,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
style: {
marginTop: '20px'
},
src: env/* default */.Z.IMG_SERVER + "/images/educoder/huangguan-two.png"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
style: {
marginTop: '10px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
to: "/users/".concat(towItem === null || towItem === void 0 ? void 0 : towItem.user_login, "/classrooms"),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: Detailmodules/* default */.Z.imgradius,
src: env/* default */.Z.IMG_SERVER + "/images/".concat(towItem === null || towItem === void 0 ? void 0 : towItem.user_image)
}), (towItem === null || towItem === void 0 ? void 0 : towItem.competition_prize) && /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: Detailmodules/* default */.Z.prize,
children: towItem === null || towItem === void 0 ? void 0 : towItem.competition_prize
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
style: {
color: '#05101a',
fontSize: '16px',
marginTop: '10px'
},
children: towItem === null || towItem === void 0 ? void 0 : towItem.record_user_name
})]
})
})]
}),
className: Detailmodules/* default */.Z.towdiv,
bordered: false,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
style: {
fontSize: '14px'
},
children: towItem === null || towItem === void 0 ? void 0 : towItem.school_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
style: {
fontSize: '18px'
},
children: towItem === null || towItem === void 0 ? void 0 : towItem.spend_time
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
style: {
fontSize: '26px',
color: '#a55b29'
},
children: [parseFloat(towItem === null || towItem === void 0 ? void 0 : towItem.extra_score) + parseFloat(towItem === null || towItem === void 0 ? void 0 : towItem.score), "\u5206"]
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 6,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(card/* default */.Z, {
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules/* default */.Z.onetop,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
style: {
marginTop: '20px'
},
src: env/* default */.Z.IMG_SERVER + "/images/educoder/huangguan.png"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
style: {
marginTop: '10px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
to: "/users/".concat(oneItem === null || oneItem === void 0 ? void 0 : oneItem.user_login, "/classrooms"),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: Detailmodules/* default */.Z.imgradius,
src: env/* default */.Z.IMG_SERVER + "/images/".concat(oneItem === null || oneItem === void 0 ? void 0 : oneItem.user_image)
}), (oneItem === null || oneItem === void 0 ? void 0 : oneItem.competition_prize) && /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: Detailmodules/* default */.Z.prize,
children: oneItem === null || oneItem === void 0 ? void 0 : oneItem.competition_prize
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
style: {
color: '#05101a',
fontSize: '16px',
marginTop: '10px'
},
children: oneItem === null || oneItem === void 0 ? void 0 : oneItem.record_user_name
})]
})
})]
}),
className: Detailmodules/* default */.Z.onediv,
bordered: false,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
style: {
fontSize: '14px'
},
children: oneItem === null || oneItem === void 0 ? void 0 : oneItem.school_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
style: {
fontSize: '18px'
},
children: oneItem === null || oneItem === void 0 ? void 0 : oneItem.spend_time
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
style: {
fontSize: '26px',
color: '#a55b29'
},
children: [parseFloat(oneItem === null || oneItem === void 0 ? void 0 : oneItem.extra_score) + parseFloat(oneItem === null || oneItem === void 0 ? void 0 : oneItem.score), "\u5206"]
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 6,
style: {
marginTop: '40px',
marginLeft: '20px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(card/* default */.Z, {
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules/* default */.Z.threetop,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
style: {
marginTop: '20px'
},
src: env/* default */.Z.IMG_SERVER + "/images/educoder/huangguan-three.png"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
style: {
marginTop: '10px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
to: "/users/".concat(threeItem === null || threeItem === void 0 ? void 0 : threeItem.user_login, "/classrooms"),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: Detailmodules/* default */.Z.imgradius,
src: env/* default */.Z.IMG_SERVER + "/images/".concat(threeItem === null || threeItem === void 0 ? void 0 : threeItem.user_image)
}), (threeItem === null || threeItem === void 0 ? void 0 : threeItem.competition_prize) && /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: Detailmodules/* default */.Z.prize,
children: threeItem === null || threeItem === void 0 ? void 0 : threeItem.competition_prize
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
style: {
color: '#05101a',
fontSize: '16px',
marginTop: '10px'
},
children: threeItem === null || threeItem === void 0 ? void 0 : threeItem.record_user_name
})]
})
})]
}),
className: Detailmodules/* default */.Z.threediv,
bordered: false,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
style: {
fontSize: '14px'
},
children: threeItem === null || threeItem === void 0 ? void 0 : threeItem.school_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
style: {
fontSize: '18px'
},
children: threeItem === null || threeItem === void 0 ? void 0 : threeItem.spend_time
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
style: {
fontSize: '26px',
color: '#a55b29'
},
children: [parseFloat(threeItem === null || threeItem === void 0 ? void 0 : threeItem.extra_score) + parseFloat(threeItem === null || threeItem === void 0 ? void 0 : threeItem.score), "\u5206"]
})]
})
})]
})
});
}
/* harmony default export */ var Detail_RankingItem = (RankingItem);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(6848);
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/RankingList.tsx
function RanKingList(_ref) {
var _ItemData$user_ranks, _ItemData$user_ranks2, _ItemData$user_ranks3, _ItemData$user_ranks4, _ItemData$user_ranks5, _ItemData$user_ranks6, _ItemData$user_ranks7, _ItemData$user_ranks8, _ItemData$user_ranks9, _ItemData$user_ranks10, _ItemData$user_ranks11, _ItemData$user_ranks12, _ItemData$user_ranks13, _ItemData$user_ranks14, _ItemData$user_ranks15, _ItemData$teams;
var ItemData = _ref.ItemData;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
style: {
fontSize: '24px',
color: '#05101a'
},
children: "\u603B\u6392\u884C"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Detail_RankingItem, {
oneItem: ItemData === null || ItemData === void 0 ? void 0 : ItemData.teams[0],
towItem: ItemData === null || ItemData === void 0 ? void 0 : ItemData.teams[1],
threeItem: ItemData === null || ItemData === void 0 ? void 0 : ItemData.teams[2]
}), (ItemData === null || ItemData === void 0 || (_ItemData$user_ranks = ItemData.user_ranks) === null || _ItemData$user_ranks === void 0 ? void 0 : _ItemData$user_ranks.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules/* default */.Z.myTeam,
children: [(ItemData === null || ItemData === void 0 || (_ItemData$user_ranks2 = ItemData.user_ranks) === null || _ItemData$user_ranks2 === void 0 || (_ItemData$user_ranks2 = _ItemData$user_ranks2[0]) === null || _ItemData$user_ranks2 === void 0 ? void 0 : _ItemData$user_ranks2.success) === false ? /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
marginRight: '70px',
padding: '10px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
style: {
marginBottom: '0px'
},
children: [" \u662F\u5426\u664B\u7EA7\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
"color": (ItemData === null || ItemData === void 0 || (_ItemData$user_ranks3 = ItemData.user_ranks) === null || _ItemData$user_ranks3 === void 0 || (_ItemData$user_ranks3 = _ItemData$user_ranks3[0]) === null || _ItemData$user_ranks3 === void 0 ? void 0 : _ItemData$user_ranks3.success) === false ? 'red' : 'green'
},
children: (ItemData === null || ItemData === void 0 || (_ItemData$user_ranks4 = ItemData.user_ranks) === null || _ItemData$user_ranks4 === void 0 || (_ItemData$user_ranks4 = _ItemData$user_ranks4[0]) === null || _ItemData$user_ranks4 === void 0 ? void 0 : _ItemData$user_ranks4.success) === false ? '否' : ItemData !== null && ItemData !== void 0 && (_ItemData$user_ranks5 = ItemData.user_ranks) !== null && _ItemData$user_ranks5 !== void 0 && (_ItemData$user_ranks5 = _ItemData$user_ranks5[0]) !== null && _ItemData$user_ranks5 !== void 0 && _ItemData$user_ranks5.success ? '是' : ''
})]
}), (ItemData === null || ItemData === void 0 || (_ItemData$user_ranks6 = ItemData.user_ranks) === null || _ItemData$user_ranks6 === void 0 || (_ItemData$user_ranks6 = _ItemData$user_ranks6[0]) === null || _ItemData$user_ranks6 === void 0 ? void 0 : _ItemData$user_ranks6.awards) && /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
style: {
marginBottom: '0px'
},
children: [" \u662F\u5426\u83B7\u5956\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (ItemData === null || ItemData === void 0 || (_ItemData$user_ranks7 = ItemData.user_ranks) === null || _ItemData$user_ranks7 === void 0 || (_ItemData$user_ranks7 = _ItemData$user_ranks7[0]) === null || _ItemData$user_ranks7 === void 0 ? void 0 : _ItemData$user_ranks7.awards) === 'percent_20' ? '二等奖' : (ItemData === null || ItemData === void 0 || (_ItemData$user_ranks8 = ItemData.user_ranks) === null || _ItemData$user_ranks8 === void 0 || (_ItemData$user_ranks8 = _ItemData$user_ranks8[0]) === null || _ItemData$user_ranks8 === void 0 ? void 0 : _ItemData$user_ranks8.awards) === 'percent_30' ? '三等奖' : '没有获得奖项'
})]
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
marginRight: '70px'
},
children: ["\u6211\u7684\u6392\u540D\uFF1A", ItemData === null || ItemData === void 0 || (_ItemData$user_ranks9 = ItemData.user_ranks) === null || _ItemData$user_ranks9 === void 0 || (_ItemData$user_ranks9 = _ItemData$user_ranks9[0]) === null || _ItemData$user_ranks9 === void 0 ? void 0 : _ItemData$user_ranks9.rank]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
flex: 1
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u6218\u961F\u540D",
children: ItemData === null || ItemData === void 0 || (_ItemData$user_ranks10 = ItemData.user_ranks) === null || _ItemData$user_ranks10 === void 0 || (_ItemData$user_ranks10 = _ItemData$user_ranks10[0]) === null || _ItemData$user_ranks10 === void 0 ? void 0 : _ItemData$user_ranks10.team_name
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
flex: 1
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u65F6\u95F4",
children: ItemData === null || ItemData === void 0 || (_ItemData$user_ranks11 = ItemData.user_ranks) === null || _ItemData$user_ranks11 === void 0 || (_ItemData$user_ranks11 = _ItemData$user_ranks11[0]) === null || _ItemData$user_ranks11 === void 0 ? void 0 : _ItemData$user_ranks11.cost_time
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
flex: 1,
textAlign: 'center'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u8D4B\u80FD\u8D5B\u52A0\u5206",
children: ItemData === null || ItemData === void 0 || (_ItemData$user_ranks12 = ItemData.user_ranks) === null || _ItemData$user_ranks12 === void 0 || (_ItemData$user_ranks12 = _ItemData$user_ranks12[0]) === null || _ItemData$user_ranks12 === void 0 ? void 0 : _ItemData$user_ranks12.extra_score
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
flex: 1
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u6BD4\u8D5B\u6210\u7EE9",
children: ItemData === null || ItemData === void 0 || (_ItemData$user_ranks13 = ItemData.user_ranks) === null || _ItemData$user_ranks13 === void 0 || (_ItemData$user_ranks13 = _ItemData$user_ranks13[0]) === null || _ItemData$user_ranks13 === void 0 ? void 0 : _ItemData$user_ranks13.score
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u603B\u5206",
children: parseFloat(ItemData === null || ItemData === void 0 || (_ItemData$user_ranks14 = ItemData.user_ranks) === null || _ItemData$user_ranks14 === void 0 || (_ItemData$user_ranks14 = _ItemData$user_ranks14[0]) === null || _ItemData$user_ranks14 === void 0 ? void 0 : _ItemData$user_ranks14.extra_score) + parseFloat(ItemData === null || ItemData === void 0 || (_ItemData$user_ranks15 = ItemData.user_ranks) === null || _ItemData$user_ranks15 === void 0 || (_ItemData$user_ranks15 = _ItemData$user_ranks15[0]) === null || _ItemData$user_ranks15 === void 0 ? void 0 : _ItemData$user_ranks15.score) || 0
})
})]
}), ItemData === null || ItemData === void 0 || (_ItemData$teams = ItemData.teams) === null || _ItemData$teams === void 0 ? void 0 : _ItemData$teams.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules/* default */.Z.bottomItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#0152d9',
marginRight: '20px'
},
children: index + 1
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
to: "/users/".concat(item === null || item === void 0 ? void 0 : item.user_login, "/classrooms"),
style: {
marginRight: '80px',
position: 'relative'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: Detailmodules/* default */.Z.imgradius,
src: env/* default */.Z.IMG_SERVER + "/images/".concat(item === null || item === void 0 ? void 0 : item.user_image)
}), (item === null || item === void 0 ? void 0 : item.competition_prize) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Detailmodules/* default */.Z.spanrightradius,
children: item === null || item === void 0 ? void 0 : item.competition_prize
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
flex: 1
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u6218\u961F\u540D",
children: item === null || item === void 0 ? void 0 : item.team_name
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
flex: 1
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u5355\u4F4D/\u5B66\u6821\u540D",
children: item.school_name
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
flex: 1,
textAlign: 'center'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u8D4B\u80FD\u8D5B\u52A0\u5206",
children: item.extra_score
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
flex: 1
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u6BD4\u8D5B\u6210\u7EE9",
children: item.score
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#0152d9'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u603B\u5206",
children: parseFloat(item.extra_score) + parseFloat(item.score)
})
})]
});
})]
});
}
/* harmony default export */ var RankingList = (RanKingList);
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/Ranking.tsx
var TabPane = tabs/* default */.Z.TabPane;
function Ranking(_ref) {
var _ChartRules$stages2, _ChartRules$stages3, _item$children, _item$children3, _ItemData$teams, _ItemData$teams2;
var ChartRules = _ref.ChartRules,
ItemData = _ref.ItemData,
getCharts = _ref.getCharts,
Selectkey = _ref.Selectkey,
getChartRules = _ref.getChartRules,
userinfo = _ref.userinfo,
Editable = _ref.Editable,
HeaderDetail = _ref.HeaderDetail;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
isUpdate = _useState2[0],
setIsupdate = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(''),
_useState4 = slicedToArray_default()(_useState3, 2),
defaultValue = _useState4[0],
setDefaultValue = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(true),
_useState6 = slicedToArray_default()(_useState5, 2),
ClickButton = _useState6[0],
setClickButton = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(),
_useState8 = slicedToArray_default()(_useState7, 2),
item = _useState8[0],
setItem = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(),
_useState10 = slicedToArray_default()(_useState9, 2),
items = _useState10[0],
setItems = _useState10[1];
var _useParams = (0,_umi_production_exports.useParams)(),
identifier = _useParams.identifier;
(0,_react_17_0_2_react.useEffect)(function () {
//进入初始化状态为第一个
if (ClickButton) {
var _ChartRules$stages;
var data = ChartRules === null || ChartRules === void 0 || (_ChartRules$stages = ChartRules.stages) === null || _ChartRules$stages === void 0 ? void 0 : _ChartRules$stages[0];
setItem(data);
if (data !== null && data !== void 0 && data.id) {
var _ChartRules$rule_cont;
if ((HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.task) === 'mAP' || (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.task) === 'dog') {
getCharts(data === null || data === void 0 ? void 0 : data.id);
}
setDefaultValue(((_ChartRules$rule_cont = ChartRules.rule_contents) === null || _ChartRules$rule_cont === void 0 || (_ChartRules$rule_cont = _ChartRules$rule_cont.filter(function (item) {
return parseInt(item.competition_stage_id) === parseInt(data === null || data === void 0 ? void 0 : data.id);
})) === null || _ChartRules$rule_cont === void 0 || (_ChartRules$rule_cont = _ChartRules$rule_cont[0]) === null || _ChartRules$rule_cont === void 0 ? void 0 : _ChartRules$rule_cont['content']) || '');
} else {
var _ChartRules$rule_cont2;
if ((HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.task) === 'mAP' || (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.task) === 'dog') {}
setDefaultValue(((_ChartRules$rule_cont2 = ChartRules.rule_contents) === null || _ChartRules$rule_cont2 === void 0 || (_ChartRules$rule_cont2 = _ChartRules$rule_cont2.filter(function (item) {
return parseInt(item.competition_stage_id) === 0;
})) === null || _ChartRules$rule_cont2 === void 0 || (_ChartRules$rule_cont2 = _ChartRules$rule_cont2[0]) === null || _ChartRules$rule_cont2 === void 0 ? void 0 : _ChartRules$rule_cont2['content']) || '');
}
}
}, [ChartRules]);
function updateitem() {
return _updateitem.apply(this, arguments);
}
function _updateitem() {
_updateitem = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var id, _ChartRules$rule_cont4, res, _ChartRules$rule_cont5, _res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (defaultValue) {
_context.next = 3;
break;
}
message/* default */.ZP.info('内容不能为空');
return _context.abrupt("return");
case 3:
setClickButton(false);
id = item === null || item === void 0 ? void 0 : item.id;
if (!id) {
_context.next = 12;
break;
}
_context.next = 8;
return (0,utils_fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/update_md_content.json"), {
method: 'post',
body: {
competition_module_id: Selectkey,
content: defaultValue,
md_content_id: (_ChartRules$rule_cont4 = ChartRules.rule_contents) === null || _ChartRules$rule_cont4 === void 0 || (_ChartRules$rule_cont4 = _ChartRules$rule_cont4.filter(function (item) {
return parseInt(item.competition_stage_id) === parseInt(id);
})) === null || _ChartRules$rule_cont4 === void 0 || (_ChartRules$rule_cont4 = _ChartRules$rule_cont4[0]) === null || _ChartRules$rule_cont4 === void 0 ? void 0 : _ChartRules$rule_cont4['id'],
stage_id: item === null || item === void 0 ? void 0 : item.id
}
});
case 8:
res = _context.sent;
if (res.status === 0) {
message/* default */.ZP.info('更新成功');
setIsupdate(false);
getChartRules();
}
_context.next = 16;
break;
case 12:
_context.next = 14;
return (0,utils_fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/update_md_content.json"), {
method: 'post',
body: {
competition_module_id: Selectkey,
content: defaultValue,
md_content_id: (_ChartRules$rule_cont5 = ChartRules.rule_contents) === null || _ChartRules$rule_cont5 === void 0 || (_ChartRules$rule_cont5 = _ChartRules$rule_cont5.filter(function (item) {
return parseInt(item.competition_stage_id) === 0;
})) === null || _ChartRules$rule_cont5 === void 0 || (_ChartRules$rule_cont5 = _ChartRules$rule_cont5[0]) === null || _ChartRules$rule_cont5 === void 0 ? void 0 : _ChartRules$rule_cont5['id'],
stage_id: item === null || item === void 0 ? void 0 : item.id
}
});
case 14:
_res = _context.sent;
if (_res.status === 0) {
message/* default */.ZP.info('更新成功');
setIsupdate(false);
getChartRules();
}
case 16:
case "end":
return _context.stop();
}
}, _callee);
}));
return _updateitem.apply(this, arguments);
}
var columns = [{
title: '排名',
dataIndex: 'name',
align: 'center',
key: 'name',
render: function render(a, b, c) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: c + 1
});
}
}, {
title: '头像',
dataIndex: 'user_image',
align: 'center',
key: 'user_image',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: Detailmodules/* default */.Z.imgradius,
src: env/* default */.Z.IMG_SERVER + "/images/".concat(text)
});
}
}, {
title: '战队名称',
dataIndex: 'team_name',
key: 'team_name',
// width:120,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
title: text,
children: text && (text === null || text === void 0 ? void 0 : text.length) >= 15 ? (text === null || text === void 0 ? void 0 : text.substr(0, 15)) + '...' : text || '--'
});
}
// align:'center',
}, {
title: '单位',
dataIndex: 'school_name',
key: 'school_name',
align: 'center',
render: function render(a) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: a || '--'
});
}
}, {
title: (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.task) === 'mAP' ? 'mAP指标' : (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.task) === 'Jittor-3' ? '总分' : 'top1指标',
dataIndex: 'score',
key: 'score',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
});
}
}];
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [(ChartRules === null || ChartRules === void 0 || (_ChartRules$stages2 = ChartRules.stages) === null || _ChartRules$stages2 === void 0 ? void 0 : _ChartRules$stages2.length) > 0 ? null : /*#__PURE__*/(0,jsx_runtime.jsx)(RankingNuLL, {}), (ChartRules === null || ChartRules === void 0 || (_ChartRules$stages3 = ChartRules.stages) === null || _ChartRules$stages3 === void 0 ? void 0 : _ChartRules$stages3.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(tabs/* default */.Z, {
animated: true,
tabBarExtraContent: ((userinfo === null || userinfo === void 0 ? void 0 : userinfo.admin) || (userinfo === null || userinfo === void 0 ? void 0 : userinfo.business) || Editable) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: function onClick() {
setIsupdate(true);
},
children: "\u7F16\u8F91"
}),
onChange: function onChange(e) {
var _ChartRules$stages4, _data$children, _ChartRules$rule_cont3;
setIsupdate(false);
var data = ChartRules === null || ChartRules === void 0 || (_ChartRules$stages4 = ChartRules.stages) === null || _ChartRules$stages4 === void 0 ? void 0 : _ChartRules$stages4.filter(function (item) {
return parseInt(e) === parseInt(item === null || item === void 0 ? void 0 : item.id);
})[0];
setItem(data);
var datas = data === null || data === void 0 || (_data$children = data.children) === null || _data$children === void 0 ? void 0 : _data$children[0];
setItems(datas);
setDefaultValue(((_ChartRules$rule_cont3 = ChartRules.rule_contents) === null || _ChartRules$rule_cont3 === void 0 || (_ChartRules$rule_cont3 = _ChartRules$rule_cont3.filter(function (item) {
return parseInt(item.competition_stage_id) === parseInt(data === null || data === void 0 ? void 0 : data.id);
})) === null || _ChartRules$rule_cont3 === void 0 || (_ChartRules$rule_cont3 = _ChartRules$rule_cont3[0]) === null || _ChartRules$rule_cont3 === void 0 ? void 0 : _ChartRules$rule_cont3['content']) || '');
getCharts((datas === null || datas === void 0 ? void 0 : datas.id) || e);
},
children: ChartRules && ChartRules.stages.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, {
tab: item.name,
children: isUpdate === false && ChartRules && ChartRules.rule_contents.map(function (items, keys) {
if (item.id === items.competition_stage_id) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: items.content === undefined || items.content === null ? "" : items.content
}, keys);
} else if (item.id === null && items.competition_stage_id === 0) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: items.content === undefined || items.content === null ? "" : items.content
}, keys);
}
})
}, item.id === null ? 0 : item.id);
})
}), (item === null || item === void 0 || (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(tabs/* default */.Z, {
activeKey: (items === null || items === void 0 ? void 0 : items.id) + '',
onChange: function onChange(e) {
var _item$children2;
var data = item === null || item === void 0 || (_item$children2 = item.children) === null || _item$children2 === void 0 ? void 0 : _item$children2.filter(function (item) {
return parseInt(e) === parseInt(item === null || item === void 0 ? void 0 : item.id);
})[0];
setItems(data);
getCharts(e);
//获取参数
},
children: item === null || item === void 0 || (_item$children3 = item.children) === null || _item$children3 === void 0 ? void 0 : _item$children3.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, {
tab: item.name
}, item.id === null ? 0 : item.id);
})
}), isUpdate && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
defaultValue: defaultValue,
onChange: function onChange(e) {
setDefaultValue(e);
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
style: {
marginTop: '10px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
style: {
width: '90px'
},
type: "primary",
onClick: function onClick() {
return updateitem();
},
children: "\u63D0\u4EA4"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
style: {
marginLeft: '30px',
width: '90px'
},
onClick: function onClick() {
return setIsupdate(false);
},
children: "\u53D6\u6D88"
})]
})]
}), (ItemData === null || ItemData === void 0 || (_ItemData$teams = ItemData.teams) === null || _ItemData$teams === void 0 ? void 0 : _ItemData$teams.length) > 0 && ((HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.task) === 'mAP' || (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.task) === 'dog' || (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.task) === 'Jittor-3') ? /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
dataSource: ItemData === null || ItemData === void 0 ? void 0 : ItemData.teams,
columns: columns,
pagination: false
}) : (ItemData === null || ItemData === void 0 || (_ItemData$teams2 = ItemData.teams) === null || _ItemData$teams2 === void 0 ? void 0 : _ItemData$teams2.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(RankingList, {
ItemData: ItemData
})]
});
}
/* harmony default export */ var Detail_Ranking = (Ranking);
// EXTERNAL MODULE: ./src/pages/Competitions/Detail/AwardPdf.tsx + 9 modules
var AwardPdf = __webpack_require__(96003);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(85578);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(58696);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.10@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(9498);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/SubmitResult.tsx
var SubmitResult_TabPane = tabs/* default */.Z.TabPane;
function SubmitResult_Ranking(_ref) {
var _ChartRules$stages3, _ChartRules$stages4, _item$children, _item$children3, _HeaderDetail$competi;
var ChartRules = _ref.ChartRules,
ItemData = _ref.ItemData,
getCharts = _ref.getCharts,
Selectkey = _ref.Selectkey,
HeaderDetail = _ref.HeaderDetail,
getChartRules = _ref.getChartRules,
userinfo = _ref.userinfo,
Editable = _ref.Editable,
dispatch = _ref.dispatch,
StaffDetail = _ref.StaffDetail;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
isUpdate = _useState2[0],
setIsupdate = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(''),
_useState4 = slicedToArray_default()(_useState3, 2),
defaultValue = _useState4[0],
setDefaultValue = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(true),
_useState6 = slicedToArray_default()(_useState5, 2),
ClickButton = _useState6[0],
setClickButton = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(),
_useState8 = slicedToArray_default()(_useState7, 2),
item = _useState8[0],
setItem = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(),
_useState10 = slicedToArray_default()(_useState9, 2),
items = _useState10[0],
setItems = _useState10[1];
var _useParams = (0,_umi_production_exports.useParams)(),
identifier = _useParams.identifier;
(0,_react_17_0_2_react.useEffect)(function () {
//进入初始化状态为第一个
if (ClickButton) {
var _ChartRules$stages, _ChartRules$stages2;
var data = ChartRules === null || ChartRules === void 0 || (_ChartRules$stages = ChartRules.stages) === null || _ChartRules$stages === void 0 ? void 0 : _ChartRules$stages[0];
setItem(data);
var datas = ChartRules === null || ChartRules === void 0 || (_ChartRules$stages2 = ChartRules.stages) === null || _ChartRules$stages2 === void 0 || (_ChartRules$stages2 = _ChartRules$stages2[0]) === null || _ChartRules$stages2 === void 0 || (_ChartRules$stages2 = _ChartRules$stages2.children) === null || _ChartRules$stages2 === void 0 ? void 0 : _ChartRules$stages2[0];
setItems(datas);
if (data !== null && data !== void 0 && data.id) {
var _ChartRules$rule_cont;
getCharts(data === null || data === void 0 ? void 0 : data.id);
setDefaultValue(((_ChartRules$rule_cont = ChartRules.rule_contents) === null || _ChartRules$rule_cont === void 0 || (_ChartRules$rule_cont = _ChartRules$rule_cont.filter(function (item) {
return parseInt(item.competition_stage_id) === parseInt(data === null || data === void 0 ? void 0 : data.id);
})) === null || _ChartRules$rule_cont === void 0 || (_ChartRules$rule_cont = _ChartRules$rule_cont[0]) === null || _ChartRules$rule_cont === void 0 ? void 0 : _ChartRules$rule_cont['content']) || '');
} else {
var _ChartRules$rule_cont2;
getCharts(0);
setDefaultValue(((_ChartRules$rule_cont2 = ChartRules.rule_contents) === null || _ChartRules$rule_cont2 === void 0 || (_ChartRules$rule_cont2 = _ChartRules$rule_cont2.filter(function (item) {
return parseInt(item.competition_stage_id) === 0;
})) === null || _ChartRules$rule_cont2 === void 0 || (_ChartRules$rule_cont2 = _ChartRules$rule_cont2[0]) === null || _ChartRules$rule_cont2 === void 0 ? void 0 : _ChartRules$rule_cont2['content']) || '');
}
}
}, [ChartRules]);
function updateitem() {
return _updateitem.apply(this, arguments);
}
function _updateitem() {
_updateitem = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var id, _ChartRules$rule_cont4, res, _ChartRules$rule_cont5, _res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (defaultValue) {
_context.next = 3;
break;
}
message/* default */.ZP.info('内容不能为空');
return _context.abrupt("return");
case 3:
setClickButton(false);
id = item === null || item === void 0 ? void 0 : item.id;
if (!id) {
_context.next = 12;
break;
}
_context.next = 8;
return (0,utils_fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/update_md_content.json"), {
method: 'post',
body: {
competition_module_id: Selectkey,
content: defaultValue,
md_content_id: (_ChartRules$rule_cont4 = ChartRules.rule_contents) === null || _ChartRules$rule_cont4 === void 0 || (_ChartRules$rule_cont4 = _ChartRules$rule_cont4.filter(function (item) {
return parseInt(item.competition_stage_id) === parseInt(id);
})) === null || _ChartRules$rule_cont4 === void 0 || (_ChartRules$rule_cont4 = _ChartRules$rule_cont4[0]) === null || _ChartRules$rule_cont4 === void 0 ? void 0 : _ChartRules$rule_cont4['id'],
stage_id: item === null || item === void 0 ? void 0 : item.id
}
});
case 8:
res = _context.sent;
if (res.status === 0) {
message/* default */.ZP.info('更新成功');
setIsupdate(false);
getChartRules();
}
_context.next = 16;
break;
case 12:
_context.next = 14;
return (0,utils_fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/update_md_content.json"), {
method: 'post',
body: {
competition_module_id: Selectkey,
content: defaultValue,
md_content_id: (_ChartRules$rule_cont5 = ChartRules.rule_contents) === null || _ChartRules$rule_cont5 === void 0 || (_ChartRules$rule_cont5 = _ChartRules$rule_cont5.filter(function (item) {
return parseInt(item.competition_stage_id) === 0;
})) === null || _ChartRules$rule_cont5 === void 0 || (_ChartRules$rule_cont5 = _ChartRules$rule_cont5[0]) === null || _ChartRules$rule_cont5 === void 0 ? void 0 : _ChartRules$rule_cont5['id'],
stage_id: item === null || item === void 0 ? void 0 : item.id
}
});
case 14:
_res = _context.sent;
if (_res.status === 0) {
message/* default */.ZP.info('更新成功');
setIsupdate(false);
getChartRules();
}
case 16:
case "end":
return _context.stop();
}
}, _callee);
}));
return _updateitem.apply(this, arguments);
}
var columns = [{
title: 'request_id',
dataIndex: 'request_id',
width: 120,
align: 'center',
key: 'name',
render: function render(a, b, c) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: a
});
}
}, {
title: '附件',
dataIndex: 'file_name',
align: 'center',
width: 150,
key: 'file_name',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
title: text,
children: text && (text === null || text === void 0 ? void 0 : text.length) >= 10 ? (text === null || text === void 0 ? void 0 : text.substr(0, 10)) + '...' : text || '--'
})
});
}
}, {
title: '提交人',
dataIndex: 'user_name',
key: 'user_name',
width: 100,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
title: text,
children: text && (text === null || text === void 0 ? void 0 : text.length) >= 6 ? (text === null || text === void 0 ? void 0 : text.substr(0, 6)) + '...' : text || '--'
});
}
// align:'center',
}, {
title: '提交时间',
dataIndex: 'created_at',
key: 'created_at',
align: 'center'
}, {
title: '状态',
dataIndex: 'status',
key: 'status',
width: 50,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text === 1 ? '计算中' : text === 2 ? '完成' : text === 0 ? '待计算' : text === 3 && '错误'
});
}
}, !(item !== null && item !== void 0 && item.display_four_indicators) && (item === null || item === void 0 ? void 0 : item.name) === '计图挑战热身赛' && {
title: '数据指标1',
dataIndex: 'data_ranking',
key: 'data_ranking',
align: 'center',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
});
}
}, !(item !== null && item !== void 0 && item.display_four_indicators) && (item === null || item === void 0 ? void 0 : item.name) === '计图挑战热身赛' && {
title: '数据指标2',
dataIndex: 'data_other',
key: 'data_other',
align: 'left',
render: function render(text) {
if ((text === null || text === void 0 ? void 0 : text.length) > 0) {
return text === null || text === void 0 ? void 0 : text.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [item === null || item === void 0 ? void 0 : item.name, "\uFF1A", item === null || item === void 0 ? void 0 : item.value, " ", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {})]
});
});
} else {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "--"
});
}
}
}, (item === null || item === void 0 ? void 0 : item.display_four_indicators) && {
title: 'mask accuary',
dataIndex: 'data_ranking',
key: 'data_ranking',
align: 'left',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
});
}
}, (item === null || item === void 0 ? void 0 : item.display_one_indicators) && {
title: 'mIoU',
dataIndex: 'data_other',
key: 'data_ranking',
align: 'left',
render: function render(text) {
var _text$find;
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (text === null || text === void 0 || (_text$find = text.find(function (item) {
return (item === null || item === void 0 ? void 0 : item.name) === 'mIoU';
})) === null || _text$find === void 0 ? void 0 : _text$find.value) || '--'
});
}
}, (item === null || item === void 0 ? void 0 : item.display_four_indicators) && {
title: '美学评分',
dataIndex: 'data_other',
key: 'data_other',
align: 'left',
render: function render(text) {
var _text$find2;
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (text === null || text === void 0 || (_text$find2 = text.find(function (item) {
return (item === null || item === void 0 ? void 0 : item.name) === 'score';
})) === null || _text$find2 === void 0 ? void 0 : _text$find2.value) || '--'
});
}
}, (item === null || item === void 0 ? void 0 : item.display_four_indicators) && {
title: 'FID',
dataIndex: 'data_other',
key: 'data_other',
align: 'left',
render: function render(text) {
var _text$find3;
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (text === null || text === void 0 || (_text$find3 = text.find(function (item) {
return (item === null || item === void 0 ? void 0 : item.name) === 'fid';
})) === null || _text$find3 === void 0 ? void 0 : _text$find3.value) || '--'
});
}
}, (item === null || item === void 0 ? void 0 : item.display_four_indicators) && {
title: '风格相似度',
dataIndex: 'data_other',
key: 'data_other',
align: 'left',
render: function render(text) {
var _text$find4;
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (text === null || text === void 0 || (_text$find4 = text.find(function (item) {
return (item === null || item === void 0 ? void 0 : item.name) === 'style_similarity';
})) === null || _text$find4 === void 0 ? void 0 : _text$find4.value) || '--'
});
}
}, (item === null || item === void 0 ? void 0 : item.display_four_indicators) && {
title: '总分',
dataIndex: 'data_other',
key: 'data_other',
align: 'left',
render: function render(text) {
var _text$find5;
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (text === null || text === void 0 || (_text$find5 = text.find(function (item) {
return (item === null || item === void 0 ? void 0 : item.name) === 'total_score';
})) === null || _text$find5 === void 0 ? void 0 : _text$find5.value) || '--'
});
}
}, !(item !== null && item !== void 0 && item.display_four_indicators) && (item === null || item === void 0 ? void 0 : item.name.includes('可微渲染新视角生成赛题')) && {
title: 'Car',
dataIndex: 'data_ranking',
key: 'data_ranking',
align: 'center',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
});
}
}, !(item !== null && item !== void 0 && item.display_four_indicators) && (item === null || item === void 0 ? void 0 : item.name.includes('可微渲染新视角生成赛题')) && {
title: 'Coffee',
dataIndex: 'data_other',
key: 'data_other',
align: 'center',
render: function render(text) {
var _text$find6;
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (text === null || text === void 0 || (_text$find6 = text.find(function (item) {
return (item === null || item === void 0 ? void 0 : item.name) === 'Coffee';
})) === null || _text$find6 === void 0 ? void 0 : _text$find6.value) || '--'
});
}
}, !(item !== null && item !== void 0 && item.display_four_indicators) && (item === null || item === void 0 ? void 0 : item.name.includes('可微渲染新视角生成赛题')) && {
title: 'Easyship',
dataIndex: 'data_other',
key: 'data_other',
align: 'center',
render: function render(text) {
var _text$find7;
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (text === null || text === void 0 || (_text$find7 = text.find(function (item) {
return (item === null || item === void 0 ? void 0 : item.name) === 'Easyship';
})) === null || _text$find7 === void 0 ? void 0 : _text$find7.value) || '--'
});
}
}, !(item !== null && item !== void 0 && item.display_four_indicators) && (item === null || item === void 0 ? void 0 : item.name.includes('可微渲染新视角生成赛题')) && {
title: 'Scar',
dataIndex: 'data_other',
key: 'data_other',
align: 'center',
render: function render(text) {
var _text$find8;
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (text === null || text === void 0 || (_text$find8 = text.find(function (item) {
return (item === null || item === void 0 ? void 0 : item.name) === 'Scar';
})) === null || _text$find8 === void 0 ? void 0 : _text$find8.value) || '--'
});
}
}, !(item !== null && item !== void 0 && item.display_four_indicators) && (item === null || item === void 0 ? void 0 : item.name.includes('可微渲染新视角生成赛题')) && {
title: 'Scarf',
dataIndex: 'data_other',
key: 'data_other',
align: 'center',
render: function render(text) {
var _text$find9;
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (text === null || text === void 0 || (_text$find9 = text.find(function (item) {
return (item === null || item === void 0 ? void 0 : item.name) === 'Scarf';
})) === null || _text$find9 === void 0 ? void 0 : _text$find9.value) || '--'
});
}
}, !(item !== null && item !== void 0 && item.display_four_indicators) && (item === null || item === void 0 ? void 0 : item.name.includes('可微渲染新视角生成赛题')) && {
title: '总分',
dataIndex: 'data_other',
key: 'data_other',
align: 'center',
render: function render(text) {
var _text$find10;
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (text === null || text === void 0 || (_text$find10 = text.find(function (item) {
return (item === null || item === void 0 ? void 0 : item.name) === 'Total';
})) === null || _text$find10 === void 0 ? void 0 : _text$find10.value) || '--'
});
}
}, {
title: '操作',
dataIndex: 'result_url',
width: 50,
key: 'result_url',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
href: text,
target: "_blank",
download: "\u9644\u4EF6",
children: "\u4E0B\u8F7D"
});
}
}].filter(function (item) {
return !!item;
});
;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [(ChartRules === null || ChartRules === void 0 || (_ChartRules$stages3 = ChartRules.stages) === null || _ChartRules$stages3 === void 0 ? void 0 : _ChartRules$stages3.length) > 0 ? null : /*#__PURE__*/(0,jsx_runtime.jsx)(RankingNuLL, {}), (ChartRules === null || ChartRules === void 0 || (_ChartRules$stages4 = ChartRules.stages) === null || _ChartRules$stages4 === void 0 ? void 0 : _ChartRules$stages4.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(tabs/* default */.Z, {
animated: true,
tabBarExtraContent: userinfo !== null && userinfo !== void 0 && userinfo.admin || userinfo !== null && userinfo !== void 0 && userinfo.business || Editable ? /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: function onClick() {
setIsupdate(true);
},
children: "\u7F16\u8F91"
}) : StaffDetail.enrolled && (item === null || item === void 0 ? void 0 : item.start_time) && (item === null || item === void 0 ? void 0 : item.end_time) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u63D0\u4EA4\u65F6\u95F4\uFF1A", dayjs_min_default()(item === null || item === void 0 ? void 0 : item.start_time).format("YYYY-MM-DD HH:mm:ss"), "\u81F3", dayjs_min_default()(item === null || item === void 0 ? void 0 : item.end_time).format("YYYY-MM-DD HH:mm:ss"), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
style: {
marginLeft: '20px'
},
disabled: dayjs_min_default()(item === null || item === void 0 ? void 0 : item.start_time).unix() > dayjs_min_default()(dayjs_min_default()().format('YYYY-MM-DD HH:mm:s')).unix() || dayjs_min_default()(dayjs_min_default()().format('YYYY-MM-DD HH:mm:s')).unix() > dayjs_min_default()(item === null || item === void 0 ? void 0 : item.end_time).unix(),
onClick: function onClick() {
// <moment(item?.end_time).unix()
dispatch({
type: 'shixunsDetail/setActionTabs',
payload: {
key: 'md-tab',
params: {
value: (items === null || items === void 0 ? void 0 : items.id) || (item === null || item === void 0 ? void 0 : item.id),
id: HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.id
}
}
});
},
children: "\u63D0\u4EA4\u7ED3\u679C"
})]
}),
onChange: function onChange(e) {
var _ChartRules$stages5, _data$children, _ChartRules$rule_cont3;
setIsupdate(false);
var data = ChartRules === null || ChartRules === void 0 || (_ChartRules$stages5 = ChartRules.stages) === null || _ChartRules$stages5 === void 0 ? void 0 : _ChartRules$stages5.filter(function (item) {
return parseInt(e) === parseInt(item === null || item === void 0 ? void 0 : item.id);
})[0];
var datas = data === null || data === void 0 || (_data$children = data.children) === null || _data$children === void 0 ? void 0 : _data$children[0];
setItems(datas);
setItem(data);
setDefaultValue(((_ChartRules$rule_cont3 = ChartRules.rule_contents) === null || _ChartRules$rule_cont3 === void 0 || (_ChartRules$rule_cont3 = _ChartRules$rule_cont3.filter(function (item) {
return parseInt(item.competition_stage_id) === parseInt(data === null || data === void 0 ? void 0 : data.id);
})) === null || _ChartRules$rule_cont3 === void 0 || (_ChartRules$rule_cont3 = _ChartRules$rule_cont3[0]) === null || _ChartRules$rule_cont3 === void 0 ? void 0 : _ChartRules$rule_cont3['content']) || '');
getCharts((datas === null || datas === void 0 ? void 0 : datas.id) || e);
},
children: ChartRules && ChartRules.stages.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(SubmitResult_TabPane, {
tab: item.name,
children: isUpdate === false && ChartRules && ChartRules.rule_contents.map(function (items, keys) {
if (item.id === items.competition_stage_id) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: items.content === undefined || items.content === null ? "" : items.content
}, keys);
} else if (item.id === null && items.competition_stage_id === 0) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: items.content === undefined || items.content === null ? "" : items.content
}, keys);
}
})
}, item.id === null ? 0 : item.id);
})
}), (item === null || item === void 0 || (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(tabs/* default */.Z, {
activeKey: (items === null || items === void 0 ? void 0 : items.id) + '',
onChange: function onChange(e) {
var _item$children2;
var data = item === null || item === void 0 || (_item$children2 = item.children) === null || _item$children2 === void 0 ? void 0 : _item$children2.filter(function (item) {
return parseInt(e) === parseInt(item === null || item === void 0 ? void 0 : item.id);
})[0];
setItems(data);
getCharts(e);
//获取参数
},
children: item === null || item === void 0 || (_item$children3 = item.children) === null || _item$children3 === void 0 ? void 0 : _item$children3.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(SubmitResult_TabPane, {
tab: item.name
}, item.id === null ? 0 : item.id);
})
}), isUpdate && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
defaultValue: defaultValue,
onChange: function onChange(e) {
setDefaultValue(e);
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
style: {
marginTop: '10px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
style: {
width: '90px'
},
type: "primary",
onClick: function onClick() {
return updateitem();
},
children: "\u63D0\u4EA4"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
style: {
marginLeft: '30px',
width: '90px'
},
onClick: function onClick() {
return setIsupdate(false);
},
children: "\u53D6\u6D88"
})]
})]
}), ((_HeaderDetail$competi = HeaderDetail.competition_modules.filter(function (item) {
return item.id === Selectkey;
})) === null || _HeaderDetail$competi === void 0 || (_HeaderDetail$competi = _HeaderDetail$competi[0]) === null || _HeaderDetail$competi === void 0 ? void 0 : _HeaderDetail$competi.show_leaderboard) && /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
dataSource: ItemData === null || ItemData === void 0 ? void 0 : ItemData.results,
columns: columns
})]
});
}
/* harmony default export */ var SubmitResult = (SubmitResult_Ranking);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
var pagination = __webpack_require__(41867);
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/MakeItem.tsx
var MakeItem_TabPane = tabs/* default */.Z.TabPane;
function MakeItem_Ranking(_ref) {
var _ChartRules$stages2, _ChartRules$stages5, _ChartRules$stages6, _item$children, _item$children3, _ItemData$results;
var loading = _ref.loading,
ChartRules = _ref.ChartRules,
ItemData = _ref.ItemData,
getCharts = _ref.getCharts,
Selectkey = _ref.Selectkey,
HeaderDetail = _ref.HeaderDetail,
getChartRules = _ref.getChartRules,
userinfo = _ref.userinfo,
Editable = _ref.Editable,
dispatch = _ref.dispatch,
StaffDetail = _ref.StaffDetail;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
isUpdate = _useState2[0],
setIsupdate = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(''),
_useState4 = slicedToArray_default()(_useState3, 2),
defaultValue = _useState4[0],
setDefaultValue = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(true),
_useState6 = slicedToArray_default()(_useState5, 2),
ClickButton = _useState6[0],
setClickButton = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(),
_useState8 = slicedToArray_default()(_useState7, 2),
item = _useState8[0],
setItem = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(),
_useState10 = slicedToArray_default()(_useState9, 2),
items = _useState10[0],
setItems = _useState10[1];
var _useParams = (0,_umi_production_exports.useParams)(),
identifier = _useParams.identifier;
var _useState11 = (0,_react_17_0_2_react.useState)({
page: 1,
limit: 10,
sort: 'desc'
}),
_useState12 = slicedToArray_default()(_useState11, 2),
params = _useState12[0],
setparams = _useState12[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _ChartRules$stages;
//进入初始化状态为第一个
if (ClickButton && ChartRules !== null && ChartRules !== void 0 && (_ChartRules$stages = ChartRules.stages) !== null && _ChartRules$stages !== void 0 && _ChartRules$stages[0]) {
getDate();
}
}, [ChartRules === null || ChartRules === void 0 || (_ChartRules$stages2 = ChartRules.stages) === null || _ChartRules$stages2 === void 0 ? void 0 : _ChartRules$stages2[0]]);
var getDate = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _ChartRules$stages3, _ChartRules$stages4;
var data, datas;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
data = ChartRules === null || ChartRules === void 0 || (_ChartRules$stages3 = ChartRules.stages) === null || _ChartRules$stages3 === void 0 ? void 0 : _ChartRules$stages3[0];
setItem(data);
datas = ChartRules === null || ChartRules === void 0 || (_ChartRules$stages4 = ChartRules.stages) === null || _ChartRules$stages4 === void 0 || (_ChartRules$stages4 = _ChartRules$stages4[0]) === null || _ChartRules$stages4 === void 0 || (_ChartRules$stages4 = _ChartRules$stages4.children) === null || _ChartRules$stages4 === void 0 ? void 0 : _ChartRules$stages4[0];
setItems(datas);
params.id = (datas === null || datas === void 0 ? void 0 : datas.id) || (data === null || data === void 0 ? void 0 : data.id), setparams(objectSpread2_default()({}, params));
_context.next = 7;
return getCharts(objectSpread2_default()(objectSpread2_default()({}, params), {}, {
stage_id: params.id
}));
case 7:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getDate() {
return _ref2.apply(this, arguments);
};
}();
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [(ChartRules === null || ChartRules === void 0 || (_ChartRules$stages5 = ChartRules.stages) === null || _ChartRules$stages5 === void 0 ? void 0 : _ChartRules$stages5.length) > 0 ? null : /*#__PURE__*/(0,jsx_runtime.jsx)(RankingNuLL, {}), (ChartRules === null || ChartRules === void 0 || (_ChartRules$stages6 = ChartRules.stages) === null || _ChartRules$stages6 === void 0 ? void 0 : _ChartRules$stages6.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(tabs/* default */.Z, {
tabBarStyle: {
height: 65,
marginLeft: 35,
marginRight: 30
},
animated: true,
onChange: /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(e) {
var _ChartRules$stages7, _data$children, _ChartRules$rule_cont;
var data, datas;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
setIsupdate(false);
data = ChartRules === null || ChartRules === void 0 || (_ChartRules$stages7 = ChartRules.stages) === null || _ChartRules$stages7 === void 0 ? void 0 : _ChartRules$stages7.filter(function (item) {
return parseInt(e) === parseInt(item === null || item === void 0 ? void 0 : item.id);
})[0];
datas = data === null || data === void 0 || (_data$children = data.children) === null || _data$children === void 0 ? void 0 : _data$children[0];
setItems(datas);
setItem(data);
setDefaultValue(((_ChartRules$rule_cont = ChartRules.rule_contents) === null || _ChartRules$rule_cont === void 0 || (_ChartRules$rule_cont = _ChartRules$rule_cont.filter(function (item) {
return parseInt(item.competition_stage_id) === parseInt(data === null || data === void 0 ? void 0 : data.id);
})) === null || _ChartRules$rule_cont === void 0 || (_ChartRules$rule_cont = _ChartRules$rule_cont[0]) === null || _ChartRules$rule_cont === void 0 ? void 0 : _ChartRules$rule_cont['content']) || '');
params.page = 1, params.limit = 10, params.id = (datas === null || datas === void 0 ? void 0 : datas.id) || e, setparams(objectSpread2_default()({}, params));
_context2.next = 9;
return getCharts(objectSpread2_default()({}, params));
case 9:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function (_x) {
return _ref3.apply(this, arguments);
};
}(),
children: ChartRules && ChartRules.stages.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(MakeItem_TabPane, {
tab: item.name
}, item.id === null ? 0 : item.id);
})
}), (item === null || item === void 0 || (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(tabs/* default */.Z, {
activeKey: (items === null || items === void 0 ? void 0 : items.id) + '',
onChange: /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(e) {
var _item$children2;
var data;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
data = item === null || item === void 0 || (_item$children2 = item.children) === null || _item$children2 === void 0 ? void 0 : _item$children2.filter(function (item) {
return parseInt(e) === parseInt(item === null || item === void 0 ? void 0 : item.id);
})[0];
setItems(data);
params.page = 1, params.limit = 10, params.id = e, setparams(objectSpread2_default()({}, params));
_context3.next = 5;
return getCharts(objectSpread2_default()({}, params));
case 5:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return function (_x2) {
return _ref4.apply(this, arguments);
};
}(),
children: item === null || item === void 0 || (_item$children3 = item.children) === null || _item$children3 === void 0 ? void 0 : _item$children3.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(MakeItem_TabPane, {
tab: item.name
}, item.id === null ? 0 : item.id);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
height: 10,
background: '#F5F5F5'
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
padding: "20px 30px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
cursor: 'pointer',
marginRight: 20
},
onClick: function onClick() {
params.page = 1, params.sort = params.sort === 'desc' ? 'asc' : 'desc';
setparams(objectSpread2_default()({}, params));
getCharts(objectSpread2_default()({}, params));
},
children: ["\u6309\u63D0\u4EA4\u65F6\u95F4", params.sort === 'asc' ? '正' : '倒', "\u5E8F\u6392\u5E8F ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont font14 ".concat(params.sort === 'asc' ? 'icon-jiantou9' : 'icon-changyongtubiao-xianxingdaochu-zhuanqu-')
})]
}), " ", /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
onSearch: function onSearch(e) {
params.page = 1, params.search = e, setparams(objectSpread2_default()({}, params));
getCharts(objectSpread2_default()({}, params));
},
style: {
width: '82%'
},
placeholder: "\u8F93\u5165\u4EBA\u5458/\u6218\u961F\u540D\u79F0\u8FDB\u884C\u641C\u7D22"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
spinning: loading,
children: ItemData === null || ItemData === void 0 || (_ItemData$results = ItemData.results) === null || _ItemData$results === void 0 ? void 0 : _ItemData$results.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
border: '1px solid #E3EFFC',
height: 100,
borderRadius: '2px 2px 0px 0px',
marginTop: index === 0 ? 14 : 30
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
height: 60,
padding: 10,
display: 'flex',
alignItems: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: env/* default */.Z.IMG_SERVER + '/images/' + (item === null || item === void 0 ? void 0 : item.image_url),
style: {
width: 40,
height: 40,
borderRadius: '50%'
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
marginLeft: 10
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#333333',
fontWeight: 500,
fontSize: '16px'
},
children: item === null || item === void 0 ? void 0 : item.user_name
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#999999',
fontWeight: 400,
fontSize: '14px',
marginLeft: 60
},
children: ["\u6240\u5C5E\u6218\u961F", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
marginLeft: 10,
color: '#333'
},
children: (item === null || item === void 0 ? void 0 : item.team_name) || '- -'
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#333333',
fontWeight: 400,
fontSize: '14px',
marginLeft: 40
},
children: ["\u5B66\u6821 ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
marginLeft: 10,
color: '#333'
},
children: (item === null || item === void 0 ? void 0 : item.school_name) || '- -'
})]
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
background: '#EEF2F8',
height: 40,
borderRadius: '0px 0px 2px 2px',
paddingLeft: 60,
paddingRight: 40,
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#666666',
fontSize: '12px'
},
children: ["\u63D0\u4EA4\u65F6\u95F4\uFF1A", item === null || item === void 0 ? void 0 : item.created_at]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#666666',
fontSize: '12px',
margin: '0px 40px'
},
children: ["\u6D88\u8017\u5185\u5B58\uFF1A", (item === null || item === void 0 ? void 0 : item.ts_mem) || '- -', "MB"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#666666',
fontSize: '12px'
},
children: ["\u4EE3\u7801\u6267\u884C\u65F6\u95F4\uFF1A", (item === null || item === void 0 ? void 0 : item.ts_time) || '- -', "\u79D2"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
style: {
display: 'flex',
alignItems: 'center'
},
href: "/tasks/".concat(item === null || item === void 0 ? void 0 : item.game_identifier),
target: "_blank",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-chakandaima",
style: {
marginRight: 4
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
lineHeight: '14px'
},
children: "\u67E5\u770B\u4EE3\u7801"
})]
})]
})]
});
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
total: ItemData === null || ItemData === void 0 ? void 0 : ItemData.total_count,
pageSize: 10,
hideOnSinglePage: true,
style: {
marginTop: 40,
textAlign: 'center'
},
showSizeChanger: false,
current: params.page,
onChange: function onChange(page, pageSize) {
params.page = page, setparams(objectSpread2_default()({}, params));
getCharts(objectSpread2_default()({}, params));
}
})]
})]
});
}
/* harmony default export */ var MakeItem = (MakeItem_Ranking);
// EXTERNAL MODULE: ./src/pages/Competitions/Detail/Challitems.tsx + 1 modules
var Challitems = __webpack_require__(72298);
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/Entrance.tsx
var Entrance_TabPane = tabs/* default */.Z.TabPane;
function Entrance_Ranking(_ref) {
var _ChartRules$stages2, _ChartRules$stages5, _ChartRules$stages6, _item$children, _item$children3, _ItemData$results, _NewItems$data;
var loading = _ref.loading,
ChartRules = _ref.ChartRules,
ItemData = _ref.ItemData,
getCharts = _ref.getCharts,
Selectkey = _ref.Selectkey,
HeaderDetail = _ref.HeaderDetail,
getChartRules = _ref.getChartRules,
userinfo = _ref.userinfo,
Editable = _ref.Editable,
dispatch = _ref.dispatch,
StaffDetail = _ref.StaffDetail;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
isUpdate = _useState2[0],
setIsupdate = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(''),
_useState4 = slicedToArray_default()(_useState3, 2),
defaultValue = _useState4[0],
setDefaultValue = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(true),
_useState6 = slicedToArray_default()(_useState5, 2),
ClickButton = _useState6[0],
setClickButton = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(),
_useState8 = slicedToArray_default()(_useState7, 2),
item = _useState8[0],
setItem = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(),
_useState10 = slicedToArray_default()(_useState9, 2),
items = _useState10[0],
setItems = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)([]),
_useState12 = slicedToArray_default()(_useState11, 2),
NewItems = _useState12[0],
setnewItems = _useState12[1];
var _useParams = (0,_umi_production_exports.useParams)(),
identifier = _useParams.identifier;
var _useState13 = (0,_react_17_0_2_react.useState)({
page: 1,
limit: 10
}),
_useState14 = slicedToArray_default()(_useState13, 2),
params = _useState14[0],
setparams = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)(),
_useState16 = slicedToArray_default()(_useState15, 2),
openitem = _useState16[0],
setopenitem = _useState16[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _ChartRules$stages;
//进入初始化状态为第一个
if (ClickButton && ChartRules !== null && ChartRules !== void 0 && (_ChartRules$stages = ChartRules.stages) !== null && _ChartRules$stages !== void 0 && _ChartRules$stages[0]) {
getDate();
}
}, [ChartRules === null || ChartRules === void 0 || (_ChartRules$stages2 = ChartRules.stages) === null || _ChartRules$stages2 === void 0 ? void 0 : _ChartRules$stages2[0]]);
var getDate = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _ChartRules$stages3, _ChartRules$stages4;
var data, datas;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
data = ChartRules === null || ChartRules === void 0 || (_ChartRules$stages3 = ChartRules.stages) === null || _ChartRules$stages3 === void 0 ? void 0 : _ChartRules$stages3[0];
setItem(data);
datas = ChartRules === null || ChartRules === void 0 || (_ChartRules$stages4 = ChartRules.stages) === null || _ChartRules$stages4 === void 0 || (_ChartRules$stages4 = _ChartRules$stages4[0]) === null || _ChartRules$stages4 === void 0 || (_ChartRules$stages4 = _ChartRules$stages4.children) === null || _ChartRules$stages4 === void 0 ? void 0 : _ChartRules$stages4[0];
setItems(datas);
params.id = (datas === null || datas === void 0 ? void 0 : datas.id) || (data === null || data === void 0 ? void 0 : data.id), setparams(objectSpread2_default()({}, params));
_context.next = 7;
return getCharts(objectSpread2_default()(objectSpread2_default()({}, params), {}, {
stage_id: params.id
}));
case 7:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getDate() {
return _ref2.apply(this, arguments);
};
}();
(0,_react_17_0_2_react.useEffect)(function () {
if (HeaderDetail !== null && HeaderDetail !== void 0 && HeaderDetail.is_new) {
getshixun();
}
}, [HeaderDetail]);
function getshixun() {
return _getshixun.apply(this, arguments);
}
function _getshixun() {
_getshixun = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
var res;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
_context4.next = 2;
return (0,utils_fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/get_shixun_settings.json"), {
method: 'get'
});
case 2:
res = _context4.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setnewItems(res);
}
case 4:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return _getshixun.apply(this, arguments);
}
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [(ChartRules === null || ChartRules === void 0 || (_ChartRules$stages5 = ChartRules.stages) === null || _ChartRules$stages5 === void 0 ? void 0 : _ChartRules$stages5.length) > 0 ? null : /*#__PURE__*/(0,jsx_runtime.jsx)(RankingNuLL, {}), (ChartRules === null || ChartRules === void 0 || (_ChartRules$stages6 = ChartRules.stages) === null || _ChartRules$stages6 === void 0 ? void 0 : _ChartRules$stages6.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(tabs/* default */.Z, {
tabBarStyle: {
height: 65,
marginLeft: 35,
marginRight: 30
},
animated: true,
onChange: /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(e) {
var _ChartRules$stages7, _data$children, _ChartRules$rule_cont;
var data, datas;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
setIsupdate(false);
data = ChartRules === null || ChartRules === void 0 || (_ChartRules$stages7 = ChartRules.stages) === null || _ChartRules$stages7 === void 0 ? void 0 : _ChartRules$stages7.filter(function (item) {
return parseInt(e) === parseInt(item === null || item === void 0 ? void 0 : item.id);
})[0];
datas = data === null || data === void 0 || (_data$children = data.children) === null || _data$children === void 0 ? void 0 : _data$children[0];
setItems(datas);
setItem(data);
setDefaultValue(((_ChartRules$rule_cont = ChartRules.rule_contents) === null || _ChartRules$rule_cont === void 0 || (_ChartRules$rule_cont = _ChartRules$rule_cont.filter(function (item) {
return parseInt(item.competition_stage_id) === parseInt(data === null || data === void 0 ? void 0 : data.id);
})) === null || _ChartRules$rule_cont === void 0 || (_ChartRules$rule_cont = _ChartRules$rule_cont[0]) === null || _ChartRules$rule_cont === void 0 ? void 0 : _ChartRules$rule_cont['content']) || '');
params.page = 1, params.limit = 10, params.id = (datas === null || datas === void 0 ? void 0 : datas.id) || e, setparams(objectSpread2_default()({}, params));
_context2.next = 9;
return getCharts(objectSpread2_default()({}, params));
case 9:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function (_x) {
return _ref3.apply(this, arguments);
};
}(),
children: ChartRules && ChartRules.stages.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(Entrance_TabPane, {
tab: item.name
}, item.id === null ? 0 : item.id);
})
}), (item === null || item === void 0 || (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(tabs/* default */.Z, {
activeKey: (items === null || items === void 0 ? void 0 : items.id) + '',
tabBarStyle: {
height: 65,
marginLeft: 35,
marginRight: 30
},
onChange: /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(e) {
var _item$children2;
var data;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
data = item === null || item === void 0 || (_item$children2 = item.children) === null || _item$children2 === void 0 ? void 0 : _item$children2.filter(function (item) {
return parseInt(e) === parseInt(item === null || item === void 0 ? void 0 : item.id);
})[0];
setItems(data);
params.page = 1, params.limit = 10, params.id = e, setparams(objectSpread2_default()({}, params));
_context3.next = 5;
return getCharts(objectSpread2_default()({}, params));
case 5:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return function (_x2) {
return _ref4.apply(this, arguments);
};
}(),
children: item === null || item === void 0 || (_item$children3 = item.children) === null || _item$children3 === void 0 ? void 0 : _item$children3.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(Entrance_TabPane, {
tab: item.name
}, item.id === null ? 0 : item.id);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
height: 10,
background: '#F5F5F5'
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
padding: "20px 30px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
justifyContent: 'space-between'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#9096A3'
},
children: ["\u4F5C\u54C1\u63D0\u4EA4\u65F6\u95F4", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#333333',
marginLeft: 5
},
children: [ItemData === null || ItemData === void 0 ? void 0 : ItemData.start_time, "~", ItemData === null || ItemData === void 0 ? void 0 : ItemData.end_time]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#9096A3'
},
children: ["\u6210\u7EE9\u6765\u6E90", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#333333',
marginLeft: 5
},
children: (ItemData === null || ItemData === void 0 ? void 0 : ItemData.score_source) === 0 ? '经验值' : '预测准确率'
}), " "]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(spin/* default */.Z, {
spinning: loading,
children: [!(HeaderDetail !== null && HeaderDetail !== void 0 && HeaderDetail.is_new) && (ItemData === null || ItemData === void 0 || (_ItemData$results = ItemData.results) === null || _ItemData$results === void 0 ? void 0 : _ItemData$results.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(Challitems/* default */.Z, {
dispatch: dispatch,
Header: HeaderDetail,
StaffDetail: StaffDetail,
item: item,
index: index
});
})), (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.is_new) && (NewItems === null || NewItems === void 0 || (_NewItems$data = NewItems.data) === null || _NewItems$data === void 0 ? void 0 : _NewItems$data.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(Challitems/* default */.Z, {
dispatch: dispatch,
Header: HeaderDetail,
StaffDetail: StaffDetail,
item: item,
index: index
});
}))]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
total: ItemData === null || ItemData === void 0 ? void 0 : ItemData.total_count,
pageSize: 10,
hideOnSinglePage: true,
style: {
marginTop: 40,
textAlign: 'center'
},
showSizeChanger: false,
current: params.page,
onChange: function onChange(page, pageSize) {
params.page = page, setparams(objectSpread2_default()({}, params));
getCharts(objectSpread2_default()({}, params));
}
})]
})]
});
}
/* harmony default export */ var Entrance = (Entrance_Ranking);
// EXTERNAL MODULE: ./src/pages/Competitions/Entered/Enteredmodel/JoinModel.tsx
var JoinModel = __webpack_require__(31508);
// EXTERNAL MODULE: ./src/pages/Competitions/Entered/Enteredmodel/Addteams.tsx
var Addteams = __webpack_require__(48474);
// EXTERNAL MODULE: ./src/pages/Competitions/components/PhoneModal.tsx
var PhoneModal = __webpack_require__(3296);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectDestructuringEmpty.js
var objectDestructuringEmpty = __webpack_require__(27223);
var objectDestructuringEmpty_default = /*#__PURE__*/__webpack_require__.n(objectDestructuringEmpty);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/createForOfIteratorHelper.js
var createForOfIteratorHelper = __webpack_require__(98190);
var createForOfIteratorHelper_default = /*#__PURE__*/__webpack_require__.n(createForOfIteratorHelper);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
var es_form = __webpack_require__(78241);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/UploadOutlined.js + 1 modules
var UploadOutlined = __webpack_require__(96402);
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/components/WorkSubmit/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var WorkSubmitmodules = ({"WorkSubmitDesc":"WorkSubmitDesc___zk_Kc","WorkSubmit":"WorkSubmit___BOuVl","span":"span___sGFYr","search":"search___wZWVl","downBut":"downBut___tfNYQ"});
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(57732);
// EXTERNAL MODULE: ./src/components/AsyncButton/index.tsx
var AsyncButton = __webpack_require__(97598);
// EXTERNAL MODULE: ./node_modules/_jszip@3.10.1@jszip/dist/jszip.min.js
var jszip_min = __webpack_require__(86129);
var jszip_min_default = /*#__PURE__*/__webpack_require__.n(jszip_min);
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/components/WorkSubmit/index.tsx
var WorkSubmit = function WorkSubmit(_ref) {
var _TabResults$stages5, _TabResults$stages6, _TabResults$rule_cont3, _TabResults$rule_cont5;
var dispatch = _ref.dispatch,
userinfo = _ref.userinfo,
Editable = _ref.Editable,
ItemData = _ref.ItemData,
TabResults = _ref.TabResults,
HeaderDetail = _ref.HeaderDetail,
StaffDetail = _ref.StaffDetail,
_ref$getTabResults = _ref.getTabResults,
getTabResults = _ref$getTabResults === void 0 ? function () {} : _ref$getTabResults;
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
formButLoading = _useState2[0],
setFormButLoading = _useState2[1];
// 开启/关闭 编辑
var _useState3 = (0,_react_17_0_2_react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
isEdit = _useState4[0],
setIsEdit = _useState4[1];
var _useParams = (0,_umi_production_exports.useParams)(),
identifier = _useParams.identifier;
// 提交作品1, 仅提交文件2
var _useState5 = (0,_react_17_0_2_react.useState)(1),
_useState6 = slicedToArray_default()(_useState5, 2),
modelType = _useState6[0],
setModelType = _useState6[1];
// 竞赛管理员、超管、运营
var _useState7 = (0,_react_17_0_2_react.useState)(false),
_useState8 = slicedToArray_default()(_useState7, 2),
identity = _useState8[0],
setIdentity = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
isSubmitModel = _useState10[0],
setIsSubmitModel = _useState10[1];
// 上传列表数据
var _useState11 = (0,_react_17_0_2_react.useState)([]),
_useState12 = slicedToArray_default()(_useState11, 2),
fileList = _useState12[0],
setFileList = _useState12[1];
// 表格数据
var _useState13 = (0,_react_17_0_2_react.useState)(false),
_useState14 = slicedToArray_default()(_useState13, 2),
tableLoading = _useState14[0],
setTableLoading = _useState14[1];
//战队信息
var _useState15 = (0,_react_17_0_2_react.useState)([]),
_useState16 = slicedToArray_default()(_useState15, 2),
teamList = _useState16[0],
setTeamlist = _useState16[1];
//loading状态
var _useState17 = (0,_react_17_0_2_react.useState)(false),
_useState18 = slicedToArray_default()(_useState17, 2),
isloading = _useState18[0],
setisloading = _useState18[1];
//获取id
var _useState19 = (0,_react_17_0_2_react.useState)({
name: "",
url: "",
id: null,
fileList: [],
competition_team_id: ''
}),
_useState20 = slicedToArray_default()(_useState19, 2),
rowTable = _useState20[0],
setRowTable = _useState20[1];
var _useState21 = (0,_react_17_0_2_react.useState)({
total_count: 0,
results: []
}),
_useState22 = slicedToArray_default()(_useState21, 2),
tableList = _useState22[0],
setTableList = _useState22[1];
// 当前赛事
var _useState23 = (0,_react_17_0_2_react.useState)(null),
_useState24 = slicedToArray_default()(_useState23, 2),
gameItem = _useState24[0],
setGameItem = _useState24[1];
// 分页,搜索
var _useState25 = (0,_react_17_0_2_react.useState)({
page: 1,
per_page: 20,
keyword: ""
}),
_useState26 = slicedToArray_default()(_useState25, 2),
urlData = _useState26[0],
setUrlData = _useState26[1];
// MD内容
var _useState27 = (0,_react_17_0_2_react.useState)(""),
_useState28 = slicedToArray_default()(_useState27, 2),
mdContent = _useState28[0],
setMdContent = _useState28[1];
// 下载所有文件时打包成zip文件
var _useState29 = (0,_react_17_0_2_react.useState)(new (jszip_min_default())()),
_useState30 = slicedToArray_default()(_useState29, 2),
zipAll = _useState30[0],
setZipAll = _useState30[1];
(0,_react_17_0_2_react.useEffect)(function () {
setIdentity((userinfo === null || userinfo === void 0 ? void 0 : userinfo.admin) || (userinfo === null || userinfo === void 0 ? void 0 : userinfo.business) || Editable);
}, [userinfo === null || userinfo === void 0 ? void 0 : userinfo.admin, userinfo === null || userinfo === void 0 ? void 0 : userinfo.business, Editable]);
(0,_react_17_0_2_react.useEffect)(function () {
if (ItemData !== null && ItemData !== void 0 && ItemData.only_file) setModelType(2);
}, [ItemData]);
(0,_react_17_0_2_react.useEffect)(function () {
var _TabResults$stages;
if (TabResults.stages && ((_TabResults$stages = TabResults.stages) === null || _TabResults$stages === void 0 ? void 0 : _TabResults$stages.length) > 0) {
var _TabResults$stages2, _TabResults$stages3, _TabResults$stages4;
((_TabResults$stages2 = TabResults.stages) === null || _TabResults$stages2 === void 0 || (_TabResults$stages2 = _TabResults$stages2[0]) === null || _TabResults$stages2 === void 0 || (_TabResults$stages2 = _TabResults$stages2.children) === null || _TabResults$stages2 === void 0 ? void 0 : _TabResults$stages2.length) > 0 ? setGameItem(((_TabResults$stages3 = TabResults.stages) === null || _TabResults$stages3 === void 0 || (_TabResults$stages3 = _TabResults$stages3[0]) === null || _TabResults$stages3 === void 0 || (_TabResults$stages3 = _TabResults$stages3.children) === null || _TabResults$stages3 === void 0 ? void 0 : _TabResults$stages3[0]) || null) : setGameItem(((_TabResults$stages4 = TabResults.stages) === null || _TabResults$stages4 === void 0 ? void 0 : _TabResults$stages4[0]) || null);
}
}, [TabResults.stages]);
(0,_react_17_0_2_react.useEffect)(function () {
getResults();
// getTeamList()
getTeam();
}, [gameItem === null || gameItem === void 0 ? void 0 : gameItem.id, urlData.page]);
function getTeamList() {
return _getTeamList.apply(this, arguments);
}
function _getTeamList() {
_getTeamList = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11() {
var res, _res$data;
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
setisloading(true);
_context11.next = 3;
return (0,utils_fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/my_teams"), {
method: 'get'
});
case 3:
res = _context11.sent;
setisloading(false);
setIsSubmitModel(true);
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setTeamlist(res === null || res === void 0 ? void 0 : res.data);
form.setFieldsValue({
name: '',
url: '',
id: '',
competition_team_id: res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 || (_res$data = _res$data[0]) === null || _res$data === void 0 ? void 0 : _res$data.id
});
}
case 7:
case "end":
return _context11.stop();
}
}, _callee11);
}));
return _getTeamList.apply(this, arguments);
}
function getTeam() {
return _getTeam.apply(this, arguments);
} // 表格头部数据
function _getTeam() {
_getTeam = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12() {
var res;
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
while (1) switch (_context12.prev = _context12.next) {
case 0:
_context12.next = 2;
return (0,utils_fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/my_teams"), {
method: 'get'
});
case 2:
res = _context12.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setTeamlist(res === null || res === void 0 ? void 0 : res.data);
}
case 4:
case "end":
return _context12.stop();
}
}, _callee12);
}));
return _getTeam.apply(this, arguments);
}
var columns = [{
title: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#5F6368"
},
children: "\u961F\u4F0D\u540D\u79F0"
}),
dataIndex: 'team_name',
width: "120px",
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "topLeft",
title: text,
children: text || "- -"
});
},
isShow: [1, 2]
}, {
title: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#5F6368"
},
children: "\u63D0\u4EA4\u4EBA"
}),
dataIndex: 'user_name',
width: "120px",
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "topLeft",
title: text,
children: text || "- -"
});
},
isShow: [1, 2]
}, {
title: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#5F6368"
},
children: "\u4F5C\u54C1\u540D\u79F0"
}),
dataIndex: 'name',
ellipsis: true,
render: function render(text, record) {
return text ? /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
href: record.url || '#',
target: "_blank",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "topLeft",
title: text,
children: text
})
}) : "--";
},
isShow: [1]
}, {
title: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#5F6368"
},
children: "\u4F5C\u54C1\u6587\u4EF6"
}),
dataIndex: 'file_name',
width: modelType == 1 ? "180px" : "",
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "topLeft",
title: text,
children: text || "- -"
});
},
isShow: [1, 2]
}, {
title: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#5F6368"
},
children: "\u66F4\u65B0\u65F6\u95F4"
}),
dataIndex: 'updated_at',
width: "180px",
render: function render(text) {
return text || '- -';
},
isShow: [1, 2]
}, {
title: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#5F6368"
},
children: "\u64CD\u4F5C"
}),
dataIndex: 'result_url',
ellipsis: true,
width: "200px",
align: 'center',
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
justify: identity ? "center" : "space-between",
children: [!identity && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "link",
onClick: function onClick() {
setIsSubmitModel(true);
setRowTable({
name: record.name,
url: record.url,
id: record.id,
competition_team_id: record.competition_team_id
});
form.setFieldsValue({
name: record.name,
url: record.url,
id: record.id,
competition_team_id: record.competition_team_id
});
if (record.file_name) {
setFileList([{
uid: "-1",
// TODO : 这里目前无法获取到id或者唯一标识暂时只能用-1
name: record.file_name,
status: 'done',
url: record.result_url || ""
}]);
}
},
children: "\u7F16\u8F91"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
type: "link",
disabled: !text,
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
return _context.abrupt("return", (0,util/* downLoadLink */.Nd)(record.file_name, text));
case 1:
case "end":
return _context.stop();
}
}, _callee);
})),
children: identity ? "下载文件" : "下载"
}), !identity && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "link",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
es_modal/* default */.Z.confirm({
title: '提示',
content: '提交作品删除后不可恢复,确认删除该作品',
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return (0,utils_fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/delete_result.json"), {
method: 'Delete',
body: {
result_id: record === null || record === void 0 ? void 0 : record.id
}
});
case 2:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default */.ZP.info("删除成功");
getResults();
}
case 4:
case "end":
return _context2.stop();
}
}, _callee2);
}));
function onOk() {
return _onOk.apply(this, arguments);
}
return onOk;
}()
});
case 1:
case "end":
return _context3.stop();
}
}, _callee3);
})),
children: "\u5220\u9664"
})]
});
},
isShow: [1, 2]
}].filter(function (item) {
return item.isShow.includes(modelType);
});
// 获取列表数据
var getResults = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
var data;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
setTableLoading(true);
_context4.next = 3;
return dispatch({
type: 'competitions/Results',
payload: objectSpread2_default()({
identifier: identifier,
stage_id: gameItem === null || gameItem === void 0 ? void 0 : gameItem.id,
module_type: 'worksubmit'
}, urlData)
});
case 3:
data = _context4.sent;
setTableList(data);
setTableLoading(false);
case 6:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return function getResults() {
return _ref4.apply(this, arguments);
};
}();
// 更新MD内容
var getUpMDContent = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(data) {
var res;
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
_context5.next = 2;
return dispatch({
type: 'competitions/updateMdContent',
payload: {
identifier: identifier,
stage_id: gameItem === null || gameItem === void 0 ? void 0 : gameItem.id,
competition_module_id: ItemData.id,
content: mdContent,
md_content_id: data === null || data === void 0 ? void 0 : data.id
}
});
case 2:
res = _context5.sent;
res.status == 0 && message/* default */.ZP.success(res.message);
setIsEdit(false);
_context5.next = 7;
return getTabResults();
case 7:
case "end":
return _context5.stop();
}
}, _callee5);
}));
return function getUpMDContent(_x) {
return _ref5.apply(this, arguments);
};
}();
// 作品提交或者编辑
var handleFormFinish = /*#__PURE__*/function () {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6(values) {
var _fileList$, _res2;
var res, Data, _res, _res3;
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
setFormButLoading(true);
if (!(modelType == 2 && fileList.length == 0)) {
_context6.next = 4;
break;
}
message/* default */.ZP.error("请选择文件");
return _context6.abrupt("return");
case 4:
Data = {
login: userinfo === null || userinfo === void 0 ? void 0 : userinfo.login,
container_type: "Competition",
file_name: fileList === null || fileList === void 0 || (_fileList$ = fileList[0]) === null || _fileList$ === void 0 ? void 0 : _fileList$.name,
stage_type: gameItem === null || gameItem === void 0 ? void 0 : gameItem.id,
container_id: HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.id,
result_id: rowTable === null || rowTable === void 0 ? void 0 : rowTable.id,
module_type: 'worksubmit',
competition_team_id: values.competition_team_id
};
if (!(modelType == 1)) {
_context6.next = 14;
break;
}
_context6.next = 8;
return (0,utils_fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/check_result_url.json"), {
method: "GET",
params: {
url: values.url,
stage_id: gameItem === null || gameItem === void 0 ? void 0 : gameItem.id,
result_id: rowTable === null || rowTable === void 0 ? void 0 : rowTable.id,
competition_team_id: values.competition_team_id
}
});
case 8:
_res = _context6.sent;
setFormButLoading(false);
if (!((_res === null || _res === void 0 ? void 0 : _res.status) != 0)) {
_context6.next = 12;
break;
}
return _context6.abrupt("return");
case 12:
Data["name"] = values.name;
Data["url"] = values.url;
case 14:
if (!(modelType == 1 && fileList.length == 0)) {
_context6.next = 20;
break;
}
_context6.next = 17;
return dispatch({
type: 'competitions/getWorkSubmitUpdateRes',
payload: {
identifier: identifier,
result_id: rowTable === null || rowTable === void 0 ? void 0 : rowTable.id,
name: values.name,
url: values.url,
stage_id: gameItem === null || gameItem === void 0 ? void 0 : gameItem.id,
result_url: rowTable === null || rowTable === void 0 ? void 0 : rowTable.result_url,
module_type: 'worksubmit',
competition_team_id: values.competition_team_id
}
});
case 17:
res = _context6.sent;
_context6.next = 23;
break;
case 20:
_context6.next = 22;
return (0,UploadFile/* uploadFile */.cT)(fileList[0], Data);
case 22:
res = _context6.sent;
case 23:
if (((_res2 = res) === null || _res2 === void 0 ? void 0 : _res2.status) == 0) {
message/* default */.ZP.success("提交成功");
} else {
message/* default */.ZP.info(((_res3 = res) === null || _res3 === void 0 ? void 0 : _res3.message) || "提交失败");
}
setFormButLoading(false);
setIsSubmitModel(false);
setFileList([]);
getResults();
case 28:
case "end":
return _context6.stop();
}
}, _callee6);
}));
return function handleFormFinish(_x2) {
return _ref6.apply(this, arguments);
};
}();
// 下载所有作品
var handleAllDownload = /*#__PURE__*/function () {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
var _res$results;
var res, DownloadList, modal, nameLsit, addzip, i, _iterator, _step, item;
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
_context8.next = 2;
return dispatch({
type: 'competitions/Results',
payload: {
identifier: identifier,
stage_id: gameItem === null || gameItem === void 0 ? void 0 : gameItem.id,
page: 1,
per_page: 9999999,
// TODO :查询所有列表数据
keyword: "",
module_type: 'worksubmit'
}
});
case 2:
res = _context8.sent;
DownloadList = res === null || res === void 0 || (_res$results = res.results) === null || _res$results === void 0 ? void 0 : _res$results.filter(function (item) {
return (item === null || item === void 0 ? void 0 : item.result_url) && item.file_name;
});
modal = es_modal/* default */.Z.info({
width: 460,
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u6B63\u5728\u5BFC\u51FA\u53C2\u8D5B\u6587\u4EF6,", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-red",
children: "\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3"
})]
}),
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u5F53\u524D\u8FDB\u5EA6: ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-blue",
children: 0
}), "/", DownloadList.length]
}),
maskClosable: false,
className: WorkSubmitmodules.modal,
onOk: function onOk() {}
});
nameLsit = [];
addzip = /*#__PURE__*/function () {
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7(data, progress) {
var zip, response, blob;
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
_context7.prev = 0;
zip = new (jszip_min_default())();
_context7.next = 4;
return fetch(data.result_url, {
method: "get"
});
case 4:
response = _context7.sent;
_context7.next = 7;
return response.blob();
case 7:
blob = _context7.sent;
zip.file(data.file_name, blob);
_context7.next = 11;
return zip.generateAsync({
type: "blob"
}).then(function (blob) {
var getNameFile = function getNameFile(name) {
var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
if (index == 0 && nameLsit.includes(name) || nameLsit.includes("".concat(name, "(").concat(index, ")"))) {
getNameFile(name, index + 1);
} else {
nameLsit.push(index == 0 ? name : "".concat(name, "(").concat(index, ")"));
zipAll.file(index == 0 ? name + ".zip" : "".concat(name, "(").concat(index, ")") + ".zip", blob);
}
};
getNameFile("".concat(data === null || data === void 0 ? void 0 : data.team_name, "-").concat(data === null || data === void 0 ? void 0 : data.user_name));
});
case 11:
modal.update({
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u5F53\u524D\u8FDB\u5EA6: ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-blue",
children: progress
}), "/", DownloadList.length]
})
});
_context7.next = 17;
break;
case 14:
_context7.prev = 14;
_context7.t0 = _context7["catch"](0);
message/* default */.ZP.error("".concat(data.file_name, "\u4E0B\u8F7D\u5931\u8D25"));
case 17:
case "end":
return _context7.stop();
}
}, _callee7, null, [[0, 14]]);
}));
return function addzip(_x3, _x4) {
return _ref8.apply(this, arguments);
};
}();
if (!(DownloadList.length > 0)) {
_context8.next = 27;
break;
}
i = 0;
_iterator = createForOfIteratorHelper_default()(DownloadList);
_context8.prev = 10;
_iterator.s();
case 12:
if ((_step = _iterator.n()).done) {
_context8.next = 18;
break;
}
item = _step.value;
_context8.next = 16;
return addzip(item, ++i);
case 16:
_context8.next = 12;
break;
case 18:
_context8.next = 23;
break;
case 20:
_context8.prev = 20;
_context8.t0 = _context8["catch"](10);
_iterator.e(_context8.t0);
case 23:
_context8.prev = 23;
_iterator.f();
return _context8.finish(23);
case 26:
zipAll.generateAsync({
type: "blob"
}).then(function (blob) {
(0,util/* downLoadLink */.Nd)(HeaderDetail.name, window.URL.createObjectURL(blob));
});
case 27:
modal.destroy();
case 28:
case "end":
return _context8.stop();
}
}, _callee8, null, [[10, 20, 23, 26]]);
}));
return function handleAllDownload() {
return _ref7.apply(this, arguments);
};
}();
var uploadProps = {
maxCount: 1,
withCredentials: true,
fileList: fileList,
onRemove: function onRemove() {
setFileList([]);
},
beforeUpload: function beforeUpload(file) {
var fileSize = file.size / 1024 / 1024;
var fileType = file.name.split(".").slice(-1)[0].toLowerCase();
if (modelType == 1 && fileSize > 150 || modelType == 2 && fileSize / 1024 > 1 || fileSize == 0) {
message/* default */.ZP.error("".concat(file.name, " \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002").concat(fileSize == 0 ? "文件内容不能为空" : "\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(modelType == 1 ? '150MB' : '1G', ")")));
return Promise.reject();
}
setFileList([file]);
return false;
}
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: WorkSubmitmodules.WorkSubmit,
children: [gameItem ? /*#__PURE__*/(0,jsx_runtime.jsx)(tabs/* default */.Z, {
defaultActiveKey: ((_TabResults$stages5 = TabResults.stages) === null || _TabResults$stages5 === void 0 || (_TabResults$stages5 = _TabResults$stages5[0]) === null || _TabResults$stages5 === void 0 ? void 0 : _TabResults$stages5.id) || 1,
destroyInactiveTabPane: true,
tabBarExtraContent: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
style: {
marginBottom: "10px"
},
children: [!identity && StaffDetail.enrolled && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: function onClick() {
return setIsSubmitModel(true);
},
children: "\u4F5C\u54C1\u63D0\u4EA4"
}), identity && !isEdit && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
style: {
marginLeft: "10px"
},
type: "primary",
onClick: function onClick() {
return setIsEdit(true);
},
children: "\u7F16\u8F91"
})]
}),
onChange: function onChange(activeKey) {
var item = TabResults.stages.find(function (item) {
return item.id == activeKey;
});
item.children.length > 0 ? setGameItem(item.children[0]) : setGameItem(item);
},
children: (_TabResults$stages6 = TabResults.stages) === null || _TabResults$stages6 === void 0 ? void 0 : _TabResults$stages6.map(function (item, index) {
var _TabResults$rule_cont, _TabResults$rule_cont2, _item$children, _item$children2, _item$children4;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(tabs/* default */.Z.TabPane, {
tab: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
marginBottom: "20px"
},
children: item.name
}),
children: [isEdit ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
defaultValue: ((_TabResults$rule_cont = TabResults.rule_contents[index]) === null || _TabResults$rule_cont === void 0 ? void 0 : _TabResults$rule_cont.content) || "",
onChange: function onChange(e) {
return setMdContent(e);
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
type: "primary",
onClick: function onClick() {
return getUpMDContent(TabResults.rule_contents[index]);
},
children: "\u63D0\u4EA4"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
style: {
marginLeft: "10px"
},
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
case 0:
return _context9.abrupt("return", setIsEdit(false));
case 1:
case "end":
return _context9.stop();
}
}, _callee9);
})),
children: "\u53D6\u6D88"
})]
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
style: {
marginTop: "10px"
},
value: ((_TabResults$rule_cont2 = TabResults.rule_contents[index]) === null || _TabResults$rule_cont2 === void 0 ? void 0 : _TabResults$rule_cont2.content) || ""
}), ((_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(tabs/* default */.Z, {
defaultActiveKey: (_item$children2 = item.children) === null || _item$children2 === void 0 || (_item$children2 = _item$children2[0]) === null || _item$children2 === void 0 ? void 0 : _item$children2.id,
destroyInactiveTabPane: true,
onChange: function onChange(activeKey) {
var _item$children3;
setGameItem((_item$children3 = item.children) === null || _item$children3 === void 0 ? void 0 : _item$children3.find(function (item) {
return item.id == activeKey;
}));
},
children: (_item$children4 = item.children) === null || _item$children4 === void 0 ? void 0 : _item$children4.map(function (ChildItem) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tabs/* default */.Z.TabPane, {
tab: ChildItem.name
}, ChildItem.id);
})
})]
}, item.id);
})
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [(StaffDetail.enrolled || identity) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
style: {
marginBottom: "10px",
paddingBottom: "10px",
borderBottom: "1px solid #eee"
},
children: [!identity && StaffDetail.enrolled && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
style: {
marginLeft: "auto"
},
loading: isloading,
type: "primary",
onClick: function onClick() {
getTeamList();
},
children: "\u4F5C\u54C1\u63D0\u4EA4"
}), identity && !isEdit && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
style: {
marginLeft: !identity && StaffDetail.enrolled ? "10px" : "auto"
},
type: "primary",
onClick: function onClick() {
return setIsEdit(true);
},
children: "\u7F16\u8F91"
})]
}), isEdit ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
defaultValue: ((_TabResults$rule_cont3 = TabResults.rule_contents) === null || _TabResults$rule_cont3 === void 0 || (_TabResults$rule_cont3 = _TabResults$rule_cont3[0]) === null || _TabResults$rule_cont3 === void 0 ? void 0 : _TabResults$rule_cont3.content) || "",
onChange: function onChange(e) {
return setMdContent(e);
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
type: "primary",
onClick: function onClick() {
var _TabResults$rule_cont4;
return getUpMDContent((_TabResults$rule_cont4 = TabResults.rule_contents) === null || _TabResults$rule_cont4 === void 0 ? void 0 : _TabResults$rule_cont4[0]);
},
children: "\u63D0\u4EA4"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
style: {
marginLeft: "10px"
},
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
return _context10.abrupt("return", setIsEdit(false));
case 1:
case "end":
return _context10.stop();
}
}, _callee10);
})),
children: "\u53D6\u6D88"
})]
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
style: {
marginTop: "10px"
},
value: ((_TabResults$rule_cont5 = TabResults.rule_contents) === null || _TabResults$rule_cont5 === void 0 || (_TabResults$rule_cont5 = _TabResults$rule_cont5[0]) === null || _TabResults$rule_cont5 === void 0 ? void 0 : _TabResults$rule_cont5.content) || ""
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
justify: "space-between",
style: {
marginTop: "21px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
className: WorkSubmitmodules.search,
placeholder: "\u8BF7\u8F93\u5165\u961F\u4F0D\u540D\u79F0\u6216\u63D0\u4EA4\u4EBA\u59D3\u540D\u641C\u7D22",
suffix: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-sousuo9",
onClick: getResults,
style: {
color: "#000",
cursor: "pointer",
fontSize: "14px"
}
}),
onChange: function onChange(e) {
urlData.keyword = e.target.value;
urlData.search = e.target.value;
setUrlData(urlData);
},
style: {
background: "#F6F7F9"
},
bordered: false,
onPressEnter: getResults
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
color: "#9B9B9B",
fontSize: "14px",
marginLeft: "20px"
},
children: ["\u5F53\u524D\u5171\u8BA1\u4F5C\u54C1", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#165DFF"
},
children: tableList.total_count
}), "\u4E2A"]
})]
}), identity && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
children: [modelType == 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
style: {
lineHeight: "32px"
},
target: "_blank",
href: "/api/competitions/".concat(identifier, "/results.xlsx?identifier=").concat(identifier, "&stage_id=").concat((gameItem === null || gameItem === void 0 ? void 0 : gameItem.id) || "", "&module_type=worksubmit"),
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-lianjie3",
style: {
fontSize: "16px",
color: "#44D7B6"
}
}),
className: WorkSubmitmodules.downBut,
children: "\u4E0B\u8F7D\u4F5C\u54C1\u94FE\u63A5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-wenjian4",
style: {
fontSize: "16px",
color: "#F6C555"
}
}),
className: WorkSubmitmodules.downBut,
style: {
marginLeft: "20px"
},
onClick: handleAllDownload,
children: "\u4E0B\u8F7D\u6240\u6709\u6587\u4EF6"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
style: {
marginTop: "17px"
},
loading: tableLoading,
columns: columns,
dataSource: tableList.results,
locale: {
emptyText: /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {})
},
pagination: false
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
style: {
marginTop: "20px"
},
align: "middle",
justify: "space-between",
children: [((gameItem === null || gameItem === void 0 ? void 0 : gameItem.end_time) && (gameItem === null || gameItem === void 0 ? void 0 : gameItem.start_time) || HeaderDetail.start_time && HeaderDetail.end_time) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: WorkSubmitmodules.span,
children: ["\u63D0\u4EA4\u65F6\u95F4\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: dayjs_min_default()((gameItem === null || gameItem === void 0 ? void 0 : gameItem.start_time) || HeaderDetail.start_time).format("YYYY-MM-DD HH:mm:ss")
}), " \u81F3 ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: dayjs_min_default()((gameItem === null || gameItem === void 0 ? void 0 : gameItem.end_time) || HeaderDetail.end_time).format("YYYY-MM-DD HH:mm:ss")
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
showQuickJumper: true,
hideOnSinglePage: true,
current: urlData.page,
pageSize: urlData.per_page,
onChange: function onChange(page) {
return setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
page: page
}));
},
onShowSizeChange: function onShowSizeChange(page, per_page) {
return setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
page: 1,
per_page: per_page
}));
},
total: tableList.total_count || 0
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_modal/* default */.Z, {
centered: true,
destroyOnClose: true,
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
fontWeight: "500",
color: "#000000",
marginTop: "10px"
},
children: "\u4F5C\u54C1\u63D0\u4EA4"
}),
open: isSubmitModel,
bodyStyle: {
padding: " 0px 25px 10px 25px"
},
onOk: function onOk() {
return form.submit();
},
confirmLoading: formButLoading,
onCancel: function onCancel() {
setIsSubmitModel(false);
setFileList([]);
setRowTable(null);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: WorkSubmitmodules.WorkSubmitDesc,
children: "\u8BF4\u660E\uFF1A\u5927\u8D5B\u8FDB\u884C\u4E2D\u4E0A\u4F20\u540E\u7684\u4F5C\u54C1\u5982\u9700\u4FEE\u6539\uFF0C\u53EF\u5728\u3010\u4F5C\u54C1\u63D0\u4EA4\u3011\u5217\u8868\u70B9\u51FB\u201C\u7F16\u8F91\u201D\u8FDB\u884C\u4FEE\u6539\u3002"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
form: form,
colon: false,
onFinish: handleFormFinish,
children: [modelType == 1 && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u4F5C\u54C1\u540D\u79F0",
name: "name",
rules: [{
required: true,
message: "请填写作品名称"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
showCount: true,
maxLength: 60,
placeholder: "\u8BF7\u8F93\u5165\u4F5C\u54C1\u540D\u79F0"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u4F5C\u54C1\u94FE\u63A5",
name: "url",
rules: [{
required: true,
message: "请填写作品链接"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u4F5C\u54C1\u94FE\u63A5"
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u63D0\u4EA4\u6218\u961F",
name: "competition_team_id",
rules: [{
required: true,
message: "请选择战队"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
children: teamList === null || teamList === void 0 ? void 0 : teamList.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: item === null || item === void 0 ? void 0 : item.id,
children: item === null || item === void 0 ? void 0 : item.name
}, item === null || item === void 0 ? void 0 : item.id);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
name: "fileList",
style: {
paddingLeft: modelType == 1 ? "76px" : "0"
},
valuePropName: "fileList",
getValueFromEvent: function getValueFromEvent(e) {
if (Array.isArray(e)) return e;
return e === null || e === void 0 ? void 0 : e.fileList;
},
children: [modelType == 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
ghost: true,
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(UploadOutlined/* default */.Z, {}),
children: fileList.length > 0 ? "更换文件" : "文件上传"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "right",
overlayStyle: {
maxWidth: 600
},
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
onClick: function onClick(e) {
e.preventDefault();
e.stopPropagation();
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "\u63D0\u793A\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "1. \u4E00\u6B21\u6700\u591A\u4E0A\u4F201\u4E2A\u6587\u4EF6\u3002"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "2. \u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7150M\u3002"
})]
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
onClick: function onClick(e) {
e.preventDefault();
e.stopPropagation();
},
className: "iconfont icon-tishixiaowenhao ml5",
style: {
cursor: 'pointer',
color: '#C5C5C5'
}
})
})]
})
})), modelType == 2 && /*#__PURE__*/(0,jsx_runtime.jsxs)(upload/* default */.Z.Dragger, objectSpread2_default()(objectSpread2_default()({
className: WorkSubmitmodules.fileList,
style: {
background: "#fff",
padding: "31px 0px"
}
}, uploadProps), {}, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: "ant-upload-drag-icon",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shangchuan4",
style: {
fontSize: "32px",
color: "#165DFF"
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: "ant-upload-text",
children: "\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"
})]
}))]
})]
})]
})]
});
};
/* harmony default export */ var components_WorkSubmit = ((0,_umi_production_exports.connect)(function (_ref11) {
objectDestructuringEmpty_default()(_ref11);
return {};
})(WorkSubmit));
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/index.tsx
var _excluded = ["globalSetting", "loading", "dispatch", "user"];
//查看内容
//编辑内容
//排行榜
//获奖证书
var competitionDetails = function competitionDetails(_ref) {
var _HeaderDetail$competi5, _user$userInfo3, _HeaderDetail$permiss, _HeaderDetail$permiss2, _HeaderDetail$permiss3, _HeaderDetail$permiss4, _HeaderDetail$permiss5, _HeaderDetail$permiss6;
var globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
user = _ref.user,
props = objectWithoutProperties_default()(_ref, _excluded);
var _useState = (0,_react_17_0_2_react.useState)({
avatar_url: ""
}),
_useState2 = slicedToArray_default()(_useState, 2),
HeaderDetail = _useState2[0],
setHeaderDetail = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)([]),
_useState4 = slicedToArray_default()(_useState3, 2),
StaffDetail = _useState4[0],
setStaffDetail = _useState4[1];
var _useParams = (0,_umi_production_exports.useParams)(),
identifier = _useParams.identifier;
var _useState5 = (0,_react_17_0_2_react.useState)([]),
_useState6 = slicedToArray_default()(_useState5, 2),
ItemData = _useState6[0],
setItemData = _useState6[1];
//打开编辑还是打开查看
var _useState7 = (0,_react_17_0_2_react.useState)(true),
_useState8 = slicedToArray_default()(_useState7, 2),
ISsee = _useState8[0],
setIssee = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)([]),
_useState10 = slicedToArray_default()(_useState9, 2),
MenuItem = _useState10[0],
setMenuItem = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)([]),
_useState12 = slicedToArray_default()(_useState11, 2),
ModelType = _useState12[0],
setModelType = _useState12[1];
//点击了排行榜
var _useState13 = (0,_react_17_0_2_react.useState)(false),
_useState14 = slicedToArray_default()(_useState13, 2),
isRanKing = _useState14[0],
setIsRanKing = _useState14[1];
//获取排行榜
var _useState15 = (0,_react_17_0_2_react.useState)(false),
_useState16 = slicedToArray_default()(_useState15, 2),
ChartRules = _useState16[0],
setChartRules = _useState16[1];
//点击了获奖证书
var _useState17 = (0,_react_17_0_2_react.useState)(false),
_useState18 = slicedToArray_default()(_useState17, 2),
isAward = _useState18[0],
setIsAward = _useState18[1];
//获奖证书信息
var _useState19 = (0,_react_17_0_2_react.useState)([]),
_useState20 = slicedToArray_default()(_useState19, 2),
Prize = _useState20[0],
setPrize = _useState20[1];
//获取个人信息 Accounts
var _useState21 = (0,_react_17_0_2_react.useState)([]),
_useState22 = slicedToArray_default()(_useState21, 2),
Accounts = _useState22[0],
SetAccounts = _useState22[1];
//设置选中的条目
var _useState23 = (0,_react_17_0_2_react.useState)([]),
_useState24 = slicedToArray_default()(_useState23, 2),
Selectkey = _useState24[0],
setSeleckjey = _useState24[1];
//md_tab
var _useState25 = (0,_react_17_0_2_react.useState)(false),
_useState26 = slicedToArray_default()(_useState25, 2),
MdTab = _useState26[0],
setMdTab = _useState26[1];
//getTabResults
var _useState27 = (0,_react_17_0_2_react.useState)([]),
_useState28 = slicedToArray_default()(_useState27, 2),
TabResults = _useState28[0],
setTabResults = _useState28[1];
//弹窗
var _useState29 = (0,_react_17_0_2_react.useState)(),
_useState30 = slicedToArray_default()(_useState29, 2),
isshowType = _useState30[0],
setisshowType = _useState30[1];
var _useState31 = (0,_react_17_0_2_react.useState)(true),
_useState32 = slicedToArray_default()(_useState31, 2),
itLoading = _useState32[0],
setItLoading = _useState32[1];
var _useState33 = (0,_react_17_0_2_react.useState)(false),
_useState34 = slicedToArray_default()(_useState33, 2),
showmake = _useState34[0],
setshowmake = _useState34[1];
var _useState35 = (0,_react_17_0_2_react.useState)(false),
_useState36 = slicedToArray_default()(_useState35, 2),
entrance = _useState36[0],
setentrance = _useState36[1];
var _useState37 = (0,_react_17_0_2_react.useState)(false),
_useState38 = slicedToArray_default()(_useState37, 2),
isshowmodal = _useState38[0],
setisshowmodal = _useState38[1];
var _useState39 = (0,_react_17_0_2_react.useState)(false),
_useState40 = slicedToArray_default()(_useState39, 2),
isAddmodel = _useState40[0],
setIsAddmodel = _useState40[1]; //新建战队
var _useState41 = (0,_react_17_0_2_react.useState)(false),
_useState42 = slicedToArray_default()(_useState41, 2),
isJoin = _useState42[0],
setJoin = _useState42[1]; //加入战队
var _useState43 = (0,_react_17_0_2_react.useState)(true),
_useState44 = slicedToArray_default()(_useState43, 2),
isClick = _useState44[0],
setIsClick = _useState44[1]; //增加参数 防止点击过快 多次调用
var _useState45 = (0,_react_17_0_2_react.useState)(false),
_useState46 = slicedToArray_default()(_useState45, 2),
showphone = _useState46[0],
setshowphone = _useState46[1];
var _useState47 = (0,_react_17_0_2_react.useState)(false),
_useState48 = slicedToArray_default()(_useState47, 2),
isopen = _useState48[0],
setisopen = _useState48[1];
var _useState49 = (0,_react_17_0_2_react.useState)(''),
_useState50 = slicedToArray_default()(_useState49, 2),
datas = _useState50[0],
setdatas = _useState50[1];
var loction = (0,_umi_production_exports.useLocation)();
var see = (0,_react_17_0_2_react.useRef)(null);
// 作品提交
var _useState51 = (0,_react_17_0_2_react.useState)(false),
_useState52 = slicedToArray_default()(_useState51, 2),
isWorkSubmit = _useState52[0],
setIsWorkSubmit = _useState52[1];
(0,_react_17_0_2_react.useEffect)(function () {
console.log("++++++++++++++++++++++++++++++++++++", identifier);
if (identifier) {
init();
//调用默认加载第一条数据
}
(0,util/* setDocumentTitle */.Dk)('竞赛');
}, [identifier]);
function init() {
return _init.apply(this, arguments);
}
function _init() {
_init = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.t0 = setStaffDetail;
_context2.next = 3;
return dispatch({
type: 'competitions/getStaff',
payload: {
identifier: identifier
}
});
case 3:
_context2.t1 = _context2.sent;
(0, _context2.t0)(_context2.t1);
_context2.next = 7;
return dispatch({
type: 'competitions/getHeader',
payload: {
identifier: identifier
}
});
case 7:
res = _context2.sent;
setHeaderDetail(res);
(0,util/* setDocumentTitle */.Dk)((res === null || res === void 0 ? void 0 : res.name) || '竞赛');
case 10:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return _init.apply(this, arguments);
}
(0,_react_17_0_2_react.useEffect)(function () {
var _loction$query;
// console.log('--------',parseInt(loction?.query?.type)===1);
setisshowType(parseInt(loction === null || loction === void 0 || (_loction$query = loction.query) === null || _loction$query === void 0 ? void 0 : _loction$query.type) === 1);
}, [loction]);
(0,_react_17_0_2_react.useEffect)(function () {
var _HeaderDetail$competi;
if ((HeaderDetail === null || HeaderDetail === void 0 || (_HeaderDetail$competi = HeaderDetail.competition_modules) === null || _HeaderDetail$competi === void 0 ? void 0 : _HeaderDetail$competi.length) > 0) {
var _loction$query2, _HeaderDetail$competi3;
if ((loction === null || loction === void 0 || (_loction$query2 = loction.query) === null || _loction$query2 === void 0 ? void 0 : _loction$query2.active) === '赛题发布') {
var _HeaderDetail$competi2;
var item = HeaderDetail === null || HeaderDetail === void 0 || (_HeaderDetail$competi2 = HeaderDetail.competition_modules) === null || _HeaderDetail$competi2 === void 0 ? void 0 : _HeaderDetail$competi2.find(function (e) {
return e.name === '赛题发布';
});
if (item) {
getrightdatas(item);
return;
}
}
getrightdatas(HeaderDetail === null || HeaderDetail === void 0 || (_HeaderDetail$competi3 = HeaderDetail.competition_modules) === null || _HeaderDetail$competi3 === void 0 ? void 0 : _HeaderDetail$competi3[0]);
}
}, [HeaderDetail]);
function getrightdatas(_x) {
return _getrightdatas.apply(this, arguments);
}
function _getrightdatas() {
_getrightdatas = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(item) {
var data;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
setSeleckjey(item.id);
Selectkey = item.id;
setMenuItem(item);
if (!(item.module_type === 'entrance')) {
_context3.next = 9;
break;
}
_context3.next = 6;
return dispatch({
type: 'competitions/getItem',
payload: {
url: item.module_url,
module_type: 'entrance'
}
});
case 6:
data = _context3.sent;
_context3.next = 12;
break;
case 9:
_context3.next = 11;
return dispatch({
type: 'competitions/getItem',
payload: {
url: item.module_url
}
});
case 11:
data = _context3.sent;
case 12:
setIsRanKing(false);
setIsAward(false);
setMdTab(false);
setItemData(data);
setshowmake(false);
setentrance(false);
setIsWorkSubmit(false);
setModelType(item.module_type);
if (item.module_type === "worksubmit") {
setIssee(false);
setIsWorkSubmit(true);
getTabResults();
} else if (item.module_type === "chart") {
setIsRanKing(true);
setIssee(false);
getChartRules();
} else if (item.module_type === "certificate") {
setIsAward(true);
setIsRanKing(false);
setIssee(false);
getPrize();
} else if (item.module_type === "md_tab") {
setMdTab(true);
setIssee(false);
localStorage.setItem('issee', '2');
setIsRanKing(false);
setIsAward(false);
// getChartRules();
getTabResults();
} else if (item.module_type === "md_shixun") {
setshowmake(true);
setIssee(false);
getTabResults();
} else if (item.module_type === 'entrance') {
setentrance(true);
setIssee(false);
getTabResults();
} else {
setIssee(true);
localStorage.setItem('issee', '1');
}
case 21:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return _getrightdatas.apply(this, arguments);
}
function gotocourse(_x2, _x3, _x4) {
return _gotocourse.apply(this, arguments);
}
function _gotocourse() {
_gotocourse = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(e, item, url) {
var _user$userInfo4;
var result;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
e.stopPropagation();
// if (!item.invite_code) {
// message.info('本竞赛只面向部分学校/单位开放,你暂时没有参赛资格');
// return;
// }
if (!(HeaderDetail.teacher_need_phone || HeaderDetail.member_need_phone)) {
_context4.next = 4;
break;
}
setshowphone(true);
return _context4.abrupt("return");
case 4:
if ((0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
_context4.next = 6;
break;
}
return _context4.abrupt("return");
case 6:
if (!(HeaderDetail !== null && HeaderDetail !== void 0 && HeaderDetail.is_authentication && !(user !== null && user !== void 0 && (_user$userInfo4 = user.userInfo) !== null && _user$userInfo4 !== void 0 && _user$userInfo4.authentication))) {
_context4.next = 9;
break;
}
dispatch({
type: 'shixunsDetail/setActionTabs',
payload: {
key: 'Banner-Auth'
}
});
return _context4.abrupt("return");
case 9:
if (!(HeaderDetail !== null && HeaderDetail !== void 0 && HeaderDetail.enroll_url)) {
_context4.next = 12;
break;
}
(0,util/* openNewWindow */.xg)(HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.enroll_url);
return _context4.abrupt("return");
case 12:
if (!(url === "ismodel")) {
_context4.next = 29;
break;
}
if (item.invite_code) {
_context4.next = 16;
break;
}
message/* default */.ZP.info('本竞赛只面向部分学校/单位开放,你暂时没有参赛资格');
return _context4.abrupt("return");
case 16:
if (!(item.member_of_course === true)) {
_context4.next = 20;
break;
}
(0,util/* openNewWindow */.xg)("/classrooms/".concat(item.course_id));
_context4.next = 27;
break;
case 20:
if (item.invite_code) {
_context4.next = 23;
break;
}
message/* default */.ZP.info('本竞赛只面向部分学校/单位开放,你暂时没有参赛资格');
return _context4.abrupt("return");
case 23:
_context4.next = 25;
return dispatch({
type: 'competitions/addApplytojoincourse',
payload: {
invite_code: item.invite_code,
student: 1
}
});
case 25:
result = _context4.sent;
if (result.status === 0) {
(0,util/* openNewWindow */.xg)("/classrooms/".concat(item.course_id));
}
case 27:
_context4.next = 33;
break;
case 29:
if (!(StaffDetail.enrolled === true)) {
_context4.next = 32;
break;
}
(0,util/* openNewWindow */.xg)(url);
return _context4.abrupt("return");
case 32:
setisshowmodal(true);
case 33:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return _gotocourse.apply(this, arguments);
}
function getChartRules() {
return _getChartRules.apply(this, arguments);
}
function _getChartRules() {
_getChartRules = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
_context5.t0 = setChartRules;
_context5.next = 3;
return dispatch({
type: 'competitions/ChartRules',
payload: {
identifier: identifier
}
});
case 3:
_context5.t1 = _context5.sent;
_context5.next = 6;
return (0, _context5.t0)(_context5.t1);
case 6:
case "end":
return _context5.stop();
}
}, _callee5);
}));
return _getChartRules.apply(this, arguments);
}
function getCharts(_x5) {
return _getCharts.apply(this, arguments);
}
function _getCharts() {
_getCharts = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6(id) {
var data;
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
_context6.next = 2;
return dispatch({
type: 'competitions/Charts',
payload: {
identifier: identifier,
stage_id: id
}
});
case 2:
data = _context6.sent;
setItemData(data);
case 4:
case "end":
return _context6.stop();
}
}, _callee6);
}));
return _getCharts.apply(this, arguments);
}
function getshixunCharts(_x6) {
return _getshixunCharts.apply(this, arguments);
}
function _getshixunCharts() {
_getshixunCharts = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7(params) {
var data;
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
setItLoading(true);
_context7.next = 3;
return dispatch({
type: 'competitions/Results',
payload: objectSpread2_default()({
identifier: identifier,
stage_id: params === null || params === void 0 ? void 0 : params.id
}, params)
});
case 3:
data = _context7.sent;
setItemData(data);
setItLoading(false);
case 6:
case "end":
return _context7.stop();
}
}, _callee7);
}));
return _getshixunCharts.apply(this, arguments);
}
function getEntrance(_x7) {
return _getEntrance.apply(this, arguments);
}
function _getEntrance() {
_getEntrance = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8(params) {
var data;
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
setItLoading(true);
_context8.next = 3;
return dispatch({
type: 'competitions/Results',
payload: objectSpread2_default()({
identifier: identifier,
stage_id: params === null || params === void 0 ? void 0 : params.id,
module_type: 'entrance'
}, params)
});
case 3:
data = _context8.sent;
setItemData(data);
setItLoading(false);
case 6:
case "end":
return _context8.stop();
}
}, _callee8);
}));
return _getEntrance.apply(this, arguments);
}
function getResults(_x8) {
return _getResults.apply(this, arguments);
}
function _getResults() {
_getResults = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9(id) {
var data;
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
case 0:
_context9.next = 2;
return dispatch({
type: 'competitions/Results',
payload: {
identifier: identifier,
stage_id: id
}
});
case 2:
data = _context9.sent;
if (!(localStorage.getItem('issee') === '1')) {
_context9.next = 5;
break;
}
return _context9.abrupt("return");
case 5:
setItemData(data);
case 6:
case "end":
return _context9.stop();
}
}, _callee9);
}));
return _getResults.apply(this, arguments);
}
function getTabResults() {
return _getTabResults.apply(this, arguments);
}
function _getTabResults() {
_getTabResults = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
_context10.t0 = setTabResults;
_context10.next = 3;
return dispatch({
type: 'competitions/TabResults',
payload: {
identifier: identifier,
competition_module_id: Selectkey
}
});
case 3:
_context10.t1 = _context10.sent;
(0, _context10.t0)(_context10.t1);
case 5:
case "end":
return _context10.stop();
}
}, _callee10);
}));
return _getTabResults.apply(this, arguments);
}
function getPrize() {
return _getPrize.apply(this, arguments);
} //个人信息 Accounts
function _getPrize() {
_getPrize = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11() {
var _user$userInfo5;
var data;
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
_context11.next = 2;
return dispatch({
type: 'competitions/Prize',
payload: {
identifier: identifier,
user_id: user === null || user === void 0 || (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.user_id
//user_id:39416
}
});
case 2:
data = _context11.sent;
setPrize(data);
case 4:
case "end":
return _context11.stop();
}
}, _callee11);
}));
return _getPrize.apply(this, arguments);
}
function getAccounts() {
return _getAccounts.apply(this, arguments);
}
function _getAccounts() {
_getAccounts = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12() {
var _user$userInfo6;
var data;
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
while (1) switch (_context12.prev = _context12.next) {
case 0:
_context12.next = 2;
return dispatch({
type: 'competitions/Accounts',
payload: {
id: user === null || user === void 0 || (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.user_id
//user_id:39416
}
});
case 2:
data = _context12.sent;
SetAccounts(data);
case 4:
case "end":
return _context12.stop();
}
}, _callee12);
}));
return _getAccounts.apply(this, arguments);
}
function addTeams(_x9) {
return _addTeams.apply(this, arguments);
}
function _addTeams() {
_addTeams = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee13(name) {
var data;
return regeneratorRuntime_default()().wrap(function _callee13$(_context13) {
while (1) switch (_context13.prev = _context13.next) {
case 0:
if (isClick) {
_context13.next = 2;
break;
}
return _context13.abrupt("return");
case 2:
setIsClick(false);
if (!isadd()) {
_context13.next = 5;
break;
}
return _context13.abrupt("return");
case 5:
_context13.next = 7;
return dispatch({
type: 'competitions/AddTeam',
payload: {
identifier: identifier,
name: name
}
});
case 7:
data = _context13.sent;
if (data && data.status === 0) {
setdatas(data);
setisopen(true);
init();
setIsAddmodel(false);
} else {
setIsClick(true);
}
case 9:
case "end":
return _context13.stop();
}
}, _callee13);
}));
return _addTeams.apply(this, arguments);
}
function isadd() {
var _user$userInfo, _user$userInfo2;
//判断 如果不符合条件 不能加入竞赛
if (user !== null && user !== void 0 && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.is_teacher) {
var _StaffDetail$all_staf, _StaffDetail$teacher_;
if (StaffDetail !== null && StaffDetail !== void 0 && (_StaffDetail$all_staf = StaffDetail.all_staff) !== null && _StaffDetail$all_staf !== void 0 && _StaffDetail$all_staf.mutiple_limited || StaffDetail !== null && StaffDetail !== void 0 && (_StaffDetail$teacher_ = StaffDetail.teacher_staff) !== null && _StaffDetail$teacher_ !== void 0 && _StaffDetail$teacher_.mutiple_limited) {
if (StaffDetail !== null && StaffDetail !== void 0 && StaffDetail.enrolled) {
message/* default */.ZP.info('你已经报名,不能重复报名');
setIsClick(true);
return true;
}
}
} else {
var _StaffDetail$all_staf2, _StaffDetail$member_s;
if (StaffDetail !== null && StaffDetail !== void 0 && (_StaffDetail$all_staf2 = StaffDetail.all_staff) !== null && _StaffDetail$all_staf2 !== void 0 && _StaffDetail$all_staf2.mutiple_limited || StaffDetail !== null && StaffDetail !== void 0 && (_StaffDetail$member_s = StaffDetail.member_staff) !== null && _StaffDetail$member_s !== void 0 && _StaffDetail$member_s.mutiple_limited) {
if (StaffDetail !== null && StaffDetail !== void 0 && StaffDetail.enrolled) {
message/* default */.ZP.info('你已经报名,不能重复报名');
setIsClick(true);
return true;
}
}
}
//判断竞赛是否关闭
if (StaffDetail !== null && StaffDetail !== void 0 && StaffDetail.enroll_ended) {
message/* default */.ZP.info('报名已截止,无需报名');
setIsClick(true);
return true;
}
// 是否可以全部报名
if (StaffDetail !== null && StaffDetail !== void 0 && StaffDetail.all_staff) return false;
//禁止老师or学生报名
if (user !== null && user !== void 0 && (_user$userInfo2 = user.userInfo) !== null && _user$userInfo2 !== void 0 && _user$userInfo2.is_teacher) {
if (!StaffDetail.teacher_staff) {
message/* default */.ZP.info('已禁止老师报名');
setIsClick(true);
return true;
}
} else {
if (!(StaffDetail !== null && StaffDetail !== void 0 && StaffDetail.member_staff)) {
message/* default */.ZP.info('已禁止学生报名');
setIsClick(true);
return true;
}
}
}
//加入战队
function JoinTeams(_x10) {
return _JoinTeams.apply(this, arguments);
} // console.log('-------',useLocation().query.type);
function _JoinTeams() {
_JoinTeams = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee14(name) {
var data;
return regeneratorRuntime_default()().wrap(function _callee14$(_context14) {
while (1) switch (_context14.prev = _context14.next) {
case 0:
if (isClick) {
_context14.next = 2;
break;
}
return _context14.abrupt("return");
case 2:
if (!isadd()) {
_context14.next = 4;
break;
}
return _context14.abrupt("return");
case 4:
setIsClick(false);
_context14.next = 7;
return dispatch({
type: 'competitions/JoinTeam',
payload: {
identifier: identifier,
invite_code: name
}
});
case 7:
data = _context14.sent;
if (data && data.status === 0) {
setisopen(true);
setdatas(data);
setJoin(false);
setIsClick(true);
init();
} else {
setIsClick(true);
}
case 9:
case "end":
return _context14.stop();
}
}, _callee14);
}));
return _JoinTeams.apply(this, arguments);
}
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "edu-container minH500",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
className: "mt10",
separator: ">",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/competitions/index",
children: "\u5728\u7EBF\u7ADE\u8D5B"
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z.Item, {
children: [HeaderDetail.name, HeaderDetail.sub_title ? '-' + HeaderDetail.sub_title : null]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt10",
style: {
display: 'flex',
background: '#fff',
position: 'relative',
padding: '20px 12px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
spinning: loading.effects['competitions/getHeader'],
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
height: '355px',
width: "800px"
},
children: [(HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.avatar_url) && (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.avatar_url) !== null && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
style: {
height: '355px',
width: '800px'
},
src: HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.avatar_url
}), !(HeaderDetail !== null && HeaderDetail !== void 0 && HeaderDetail.avatar_url) && (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.avatar_url) == null && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
style: {
height: '355px',
width: '800px'
},
src: "/images/educoder/competitions/mainbanner.jpg"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
marginLeft: '20px',
width: '400px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: "".concat(Detailmodules/* default */.Z.titlesize),
children: [HeaderDetail.name, HeaderDetail.sub_title ? '-' + HeaderDetail.sub_title : null]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
style: {
display: 'flex',
justifyContent: 'space-between',
marginRight: 18
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
display: 'flex',
flexDirection: 'column',
alignItems: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5956\u91D1"
}), !!(HeaderDetail !== null && HeaderDetail !== void 0 && HeaderDetail.bonus) ? /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
fontSize: '24px'
},
children: ["\xA5", parseInt(HeaderDetail && HeaderDetail.bonus).toLocaleString()]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
fontSize: '24px'
},
children: "\u6682\u65E0"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
display: 'flex',
flexDirection: 'column',
alignItems: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u6D4F\u89C8"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
fontSize: '24px'
},
children: parseInt(HeaderDetail && HeaderDetail.visits_count).toLocaleString()
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
display: 'flex',
flexDirection: 'column',
alignItems: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u62A5\u540D"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
fontSize: '24px'
},
children: parseInt(HeaderDetail && HeaderDetail.member_count).toLocaleString()
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: Detailmodules/* default */.Z.timesize,
style: {
marginTop: 30
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#9b9b9b',
marginTop: '30px'
},
children: "\u7ADE\u8D5B\u65F6\u95F4\uFF1A"
}), HeaderDetail.start_time, "~", HeaderDetail.end_time]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: Detailmodules/* default */.Z.timesize,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#9b9b9b'
},
children: "\u62A5\u540D\u622A\u6B62\uFF1A"
}), HeaderDetail.enroll_end_time]
}), HeaderDetail.competition_status === 'ended' ? /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: Detailmodules/* default */.Z.timesize,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#9b9b9b'
},
children: "\u7ADE\u8D5B\u72B6\u6001\uFF1A"
}), "\u5DF2\u7ED3\u675F"]
}) : null, HeaderDetail.competition_status === 'nearly_published' ? /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: Detailmodules/* default */.Z.timesize,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#9b9b9b'
},
children: "\u7ADE\u8D5B\u72B6\u6001\uFF1A"
}), "\u672A\u53D1\u5E03"]
}) : null, HeaderDetail.competition_status === 'progressing' ? /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: Detailmodules/* default */.Z.timesize,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#9b9b9b'
},
children: "\u7ADE\u8D5B\u72B6\u6001\uFF1A"
}), "\u8FDB\u884C\u4E2D"]
}) : null, /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
justifyContent: 'center'
},
children: [(HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.mode) <= 2 && StaffDetail.enrolled && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
onClick: function onClick(e) {
if ((HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.mode) === 1 || (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.mode) === 3) {
var _HeaderDetail$competi4;
getrightdatas((_HeaderDetail$competi4 = HeaderDetail.competition_modules) === null || _HeaderDetail$competi4 === void 0 ? void 0 : _HeaderDetail$competi4.find(function (item) {
return item.module_type === 'entrance';
}));
} else {
gotocourse(e, HeaderDetail, 'ismodel');
}
},
style: {
background: '#07C160',
color: '#fff',
border: '1px solid #07C160',
marginRight: 20,
display: (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.mode) === 2 ? '' : (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.mode) === 1 && ((_HeaderDetail$competi5 = HeaderDetail.competition_modules) === null || _HeaderDetail$competi5 === void 0 || (_HeaderDetail$competi5 = _HeaderDetail$competi5.filter(function (item) {
return item.module_type === 'entrance';
})) === null || _HeaderDetail$competi5 === void 0 ? void 0 : _HeaderDetail$competi5.length) > 0 ? '' : 'none'
},
className: Detailmodules/* default */.Z.buttonsize,
children: [(HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.mode) === 1 && '赛题入口', (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.mode) === 2 && '进入课堂', (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.mode) === 3 && '赛题入口']
}), HeaderDetail.competition_status === "ended" ? /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
className: Detailmodules/* default */.Z.buttonsize,
disabled: true,
children: "\u5DF2\u7ED3\u675F"
}) : null, HeaderDetail.competition_status === 'nearly_published' ? /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
className: Detailmodules/* default */.Z.buttonsize,
disabled: true,
children: "\u672A\u53D1\u5E03"
}) : null, HeaderDetail.competition_status !== 'nearly_published' && HeaderDetail.enroll_end && HeaderDetail.competition_status !== 'ended' ? /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
className: Detailmodules/* default */.Z.buttonsize,
disabled: true,
children: "\u62A5\u540D\u622A\u6B62"
}) : null, HeaderDetail.competition_status === 'progressing' && HeaderDetail.enroll_end != true && HeaderDetail.enroll_end_time ? /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
disabled: StaffDetail.enrolled && !HeaderDetail.need_attachment,
className: Detailmodules/* default */.Z.buttonsize,
onClick: function onClick(e) {
if (StaffDetail.enrolled && HeaderDetail.need_attachment) {
var _see$current;
(_see$current = see.current) === null || _see$current === void 0 || _see$current.handleVisible();
return;
}
gotocourse(e, HeaderDetail, HeaderDetail.mode === 2 ? 'ismodel' : HeaderDetail.personal ? 'personal' : "/competitions/".concat(HeaderDetail.identifier, "/detail/enroll"));
},
children: StaffDetail.enrolled ? HeaderDetail.need_attachment ? '上传作品' : '已报名' : HeaderDetail !== null && HeaderDetail !== void 0 && HeaderDetail.enroll_url ? '前往大赛官网报名' : '立即报名'
}) : null]
}), user.userInfo.real_name != "游客" && !(HeaderDetail !== null && HeaderDetail !== void 0 && HeaderDetail.enroll_url) && HeaderDetail.enroll_end_time && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: function onClick(e) {
return gotocourse(e, HeaderDetail, HeaderDetail.mode === 2 ? 'ismodel' : HeaderDetail.personal ? 'personal' : "/competitions/".concat(HeaderDetail.identifier, "/detail/enroll"));
},
className: Detailmodules/* default */.Z.myteam,
children: (0,authority/* isSuperAdmin */.j5)() ? '参赛战队>>' : '我的战队>>'
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules/* default */.Z.bootmdetail,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Detailmodules/* default */.Z.flex1,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z, {
selectedKeys: ["".concat(Selectkey)],
children: HeaderDetail && HeaderDetail.competition_modules && HeaderDetail.competition_modules.map(function (item, index) {
if (item.module_type != "enroll") {
return /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
className: Detailmodules/* default */.Z.menuItem,
onClick: function onClick() {
if (item !== null && item !== void 0 && item.is_authentication) {
if (!(0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
return;
}
message/* default */.ZP.info('加入战队才能查看');
return;
}
// if(item?.item?.has_url){
// window.open(item?.module_url)
// return
// }
getrightdatas(item);
},
children: item.name
}, item.id);
}
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules/* default */.Z.flex6,
style: {
padding: (showmake || entrance) && 0
},
children: [isAward ? /*#__PURE__*/(0,jsx_runtime.jsx)(AwardPdf/* default */.Z, {
dispatch: dispatch,
userid: user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.user_id,
Prize: Prize,
Accounts: Accounts,
getAccounts: getAccounts
}) : null, isRanKing ? /*#__PURE__*/(0,jsx_runtime.jsx)(Detail_Ranking, {
HeaderDetail: HeaderDetail,
userinfo: user.userInfo,
Editable: HeaderDetail === null || HeaderDetail === void 0 || (_HeaderDetail$permiss = HeaderDetail.permission) === null || _HeaderDetail$permiss === void 0 ? void 0 : _HeaderDetail$permiss.editable,
getCharts: getCharts,
getChartRules: getChartRules,
Selectkey: Selectkey,
ChartRules: ChartRules,
ItemData: ItemData
}) : null, ISsee ? /*#__PURE__*/(0,jsx_runtime.jsx)(Detail_SeeItem, {
ref: see,
StaffDetail: StaffDetail,
HeaderDetail: HeaderDetail,
userinfo: user.userInfo,
Editable: HeaderDetail === null || HeaderDetail === void 0 || (_HeaderDetail$permiss2 = HeaderDetail.permission) === null || _HeaderDetail$permiss2 === void 0 ? void 0 : _HeaderDetail$permiss2.editable,
ItemData: ItemData,
setIssee: setIssee,
ModelType: ModelType,
dispatch: dispatch
}) : null, !ISsee && !showmake && !entrance && !isRanKing && !isAward && !MdTab && !isWorkSubmit ? /*#__PURE__*/(0,jsx_runtime.jsx)(Update, {
userinfo: user.userInfo,
ModelType: ModelType,
getrightdatas: getrightdatas,
dispatch: dispatch,
MenuItem: MenuItem,
setIssee: setIssee,
identifier: identifier,
ItemData: ItemData
}) : null, MdTab && /*#__PURE__*/(0,jsx_runtime.jsx)(SubmitResult, {
dispatch: dispatch,
StaffDetail: StaffDetail,
userinfo: user.userInfo,
HeaderDetail: HeaderDetail,
Editable: HeaderDetail === null || HeaderDetail === void 0 || (_HeaderDetail$permiss3 = HeaderDetail.permission) === null || _HeaderDetail$permiss3 === void 0 ? void 0 : _HeaderDetail$permiss3.editable,
getCharts: getResults,
getChartRules: getTabResults,
Selectkey: Selectkey,
ChartRules: TabResults,
ItemData: ItemData
}), showmake && /*#__PURE__*/(0,jsx_runtime.jsx)(MakeItem, {
loading: itLoading,
dispatch: dispatch,
StaffDetail: StaffDetail,
userinfo: user.userInfo,
HeaderDetail: HeaderDetail,
Editable: HeaderDetail === null || HeaderDetail === void 0 || (_HeaderDetail$permiss4 = HeaderDetail.permission) === null || _HeaderDetail$permiss4 === void 0 ? void 0 : _HeaderDetail$permiss4.editable,
getCharts: getshixunCharts,
getChartRules: getTabResults,
Selectkey: Selectkey,
ChartRules: TabResults,
ItemData: ItemData
}), entrance && /*#__PURE__*/(0,jsx_runtime.jsx)(Entrance, {
loading: itLoading,
dispatch: dispatch,
StaffDetail: StaffDetail,
userinfo: user.userInfo,
HeaderDetail: HeaderDetail,
Editable: HeaderDetail === null || HeaderDetail === void 0 || (_HeaderDetail$permiss5 = HeaderDetail.permission) === null || _HeaderDetail$permiss5 === void 0 ? void 0 : _HeaderDetail$permiss5.editable,
getCharts: getEntrance,
getChartRules: getTabResults,
Selectkey: Selectkey,
ChartRules: TabResults,
ItemData: ItemData
}), isWorkSubmit && /*#__PURE__*/(0,jsx_runtime.jsx)(components_WorkSubmit, {
HeaderDetail: HeaderDetail,
userinfo: user.userInfo,
StaffDetail: StaffDetail,
Editable: HeaderDetail === null || HeaderDetail === void 0 || (_HeaderDetail$permiss6 = HeaderDetail.permission) === null || _HeaderDetail$permiss6 === void 0 ? void 0 : _HeaderDetail$permiss6.editable,
ItemData: MenuItem,
TabResults: TabResults,
getTabResults: getTabResults
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AuthenticationModel/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(AddSubmitModel, {
getResults: getResults
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_modal/* default */.Z, {
open: isshowType
// visible
,
footer: null,
width: 720,
title: "\u63D0\u793A",
centered: true,
onCancel: function onCancel() {
return setisshowType(false);
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules/* default */.Z.modal,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u534E\u4E3A\u6A21\u578B\u738B\u8005\u6311\u6218\u8D5B\u9EC4\u91D1\u8D5B\u6B63\u5F0F\u5F00\u542F\u5566"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u672C\u8D5B\u6BB5\u603B\u5956\u91D1\u9AD8\u8FBE", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#FF8C29'
},
children: "300,000"
}), "\u5143"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "1\u3001\u7B26\u5408\u8D5B\u9898\u8981\u6C42\u7684\u961F\u4F0D\uFF08\u517125\u652F\uFF09\u53EF\u83B7\u5F97\u5956\u91D1\uFF1A12000RMB/\u961F \uFF1B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "2\u3001\u53C2\u4E0E\u83B7\u5F97\u201C\u8363\u8000\u6BBF\u5802\u201D\u699C\u4E3B\u7684\u961F\u4F0D\uFF0C\u53EF\u83B7\u5F97\u7531\u4E2D\u56FD\u8F6F\u4EF6\u5F00\u6E90\u521B\u65B0\u5927\u8D5B\u7EC4\u59D4\u4F1A\u9881\u53D1\u7684\u9EC4\u91D1\u5B9D\u7BB1\uFF1B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "3\u3001\u5404\u8D5B\u9898\u7CBE\u5EA6\u6700\u9AD8\u7684\u961F\u4F0D\uFF0C\u53EF\u83B7\u5F97\u7531\u4E2D\u56FD\u8F6F\u4EF6\u5F00\u6E90\u521B\u65B0\u5927\u8D5B\u7EC4\u59D4\u4F1A\u9881\u53D1\u7684\u9EC4\u91D1\u5B9D\u7BB1+\u8363\u8A89\u8BC1\u4E66\uFF1B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5FC3\u52A8\u5427\uFF0C\u90A3\u5C31\u5FEB\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u62A5\u540D\u53C2\u8D5B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: function onClick() {
return (0,util/* openNewWindow */.xg)('https://competition.huaweicloud.com/information/1000041485/introduction');
},
children: "\u524D\u5F80\u62A5\u540D\u53C2\u8D5B"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_modal/* default */.Z, {
title: "\u9009\u62E9\u53C2\u8D5B\u65B9\u5F0F",
open: isshowmodal,
onCancel: function onCancel() {
setisshowmodal(false);
},
footer: false,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
justifyContent: 'space-around',
height: 100,
alignItems: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
style: {
height: 40
},
onClick: function onClick() {
setJoin(true);
setisshowmodal(false);
},
children: "\u52A0\u5165\u6218\u961F\u53C2\u8D5B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
style: {
height: 40
},
onClick: function onClick() {
setIsAddmodel(true);
setisshowmodal(false);
},
children: "\u53BB\u521B\u5EFA\u6218\u961F\u53C2\u8D5B"
})]
})
}), isJoin ? /*#__PURE__*/(0,jsx_runtime.jsx)(JoinModel/* default */.Z, {
isjoin: isJoin,
setJoin: setJoin,
JoinTeams: JoinTeams
}) : null, isAddmodel ? /*#__PURE__*/(0,jsx_runtime.jsx)(Addteams/* default */.Z, {
isAddmodle: isAddmodel,
setIsAdd: setIsAddmodel,
createTeam: addTeams
}) : null, /*#__PURE__*/(0,jsx_runtime.jsx)(PhoneModal/* default */.Z, {
datas: datas,
isopen: isopen,
setisopen: setisopen,
isShowPhone: showphone,
setIsShowPhone: setshowphone,
user: user,
dispatch: dispatch,
onOK: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return dispatch({
type: 'competitions/getHeader',
payload: {
identifier: identifier
}
});
case 2:
res = _context.sent;
setHeaderDetail(res);
case 4:
case "end":
return _context.stop();
}
}, _callee);
}))
})]
});
};
/* harmony default export */ var Detail = ((0,_umi_production_exports.connect)(function (_ref3) {
var loading = _ref3.loading,
globalSetting = _ref3.globalSetting,
user = _ref3.user;
return {
globalSetting: globalSetting,
loading: loading,
user: user
};
})(competitionDetails));
/***/ }),
/***/ 48474:
/*!******************************************************************!*\
!*** ./src/pages/Competitions/Entered/Enteredmodel/Addteams.tsx ***!
\******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js */ 11006);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd */ 43418);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd */ 8591);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd */ 1056);
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ant-design/icons */ 99174);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
//创建战队弹窗
function Addteans(_ref) {
var isAddmodle = _ref.isAddmodle,
setIsAdd = _ref.setIsAdd,
createTeam = _ref.createTeam;
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(""),
_useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2),
personname = _useState2[0],
setpersonname = _useState2[1];
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(antd__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
className: "modal_styles",
centered: true,
title: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div", {
style: {
alignItems: 'center',
display: 'flex'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
style: {
textAlign: 'left',
flex: '1'
},
children: "\u521B\u5EFA\u6218\u961F"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
onClick: function onClick() {
return setIsAdd(false);
},
style: {
cursor: 'porint'
}
})]
}),
open: isAddmodle,
closable: false,
destroyOnClose: true,
onOk: function onOk() {
if (!personname) {
antd__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .ZP.info('战队名不能为空');
return;
}
createTeam(personname);
},
onCancel: function onCancel() {
return setIsAdd(false);
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div", {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("span", {
style: {
fontSize: '14px',
color: '#F73737',
marginLeft: '10px'
},
children: "*"
}), "\u961F\u540D\uFF1A", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("p", {
style: {
marginTop: '15px',
marginLeft: '10px',
marginRight: '10px'
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(antd__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
placeholder: "请输入队名",
value: personname,
maxLength: 60,
addonAfter: String(personname && personname.length || 0) + "/60",
onChange: function onChange(e) {
return setpersonname(e.target.value);
}
})
})]
})
});
}
/* harmony default export */ __webpack_exports__.Z = (Addteans);
/***/ }),
/***/ 31508:
/*!*******************************************************************!*\
!*** ./src/pages/Competitions/Entered/Enteredmodel/JoinModel.tsx ***!
\*******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js */ 11006);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd */ 43418);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd */ 8591);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd */ 1056);
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ant-design/icons */ 99174);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
//通过邀请码加入战队
function Jointeam(_ref) {
var isjoin = _ref.isjoin,
setJoin = _ref.setJoin,
JoinTeams = _ref.JoinTeams;
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(""),
_useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2),
code = _useState2[0],
setCode = _useState2[1];
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(antd__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
className: "modal_styles",
centered: true,
title: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div", {
style: {
alignItems: 'center',
display: 'flex'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
style: {
textAlign: 'left',
flex: '1'
},
children: "\u52A0\u5165\u6218\u961F"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
onClick: function onClick() {
return setJoin(false);
},
style: {
cursor: 'porint'
}
})]
}),
open: isjoin,
closable: false,
destroyOnClose: true,
onOk: function onOk() {
if (!code) {
antd__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .ZP.info('邀请码不能为空');
return;
}
JoinTeams(code);
},
onCancel: function onCancel() {
return setJoin(false);
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("p", {
style: {
marginLeft: '10px',
display: 'flex',
alignItems: 'center',
marginRight: '10px'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("span", {
style: {
flex: 'none'
},
children: "\u9080\u8BF7\u7801\uFF1A"
}), " ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(antd__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
placeholder: "请输入邀请码",
value: code,
maxLength: 60,
addonAfter: String(code && code.length || 0) + "/60",
onChange: function onChange(e) {
return setCode(e.target.value);
}
})]
})
})
});
}
/* harmony default export */ __webpack_exports__.Z = (Jointeam);
/***/ }),
/***/ 88522:
/*!*****************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/auto-complete/index.js ***!
\*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 73287);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/Children/toArray */ 45659);
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/omit */ 99468);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/PurePanel */ 53487);
/* harmony import */ var _util_reactNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/reactNode */ 92343);
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider */ 36355);
/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../select */ 57809);
"use client";
const {
Option
} = _select__WEBPACK_IMPORTED_MODULE_3__["default"];
function isSelectOptionOrSelectOptGroup(child) {
return child && child.type && (child.type.isSelectOption || child.type.isSelectOptGroup);
}
const AutoComplete = (props, ref) => {
const {
prefixCls: customizePrefixCls,
className,
popupClassName,
dropdownClassName,
children,
dataSource
} = props;
const childNodes = (0,rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(children);
// ============================= Input =============================
let customizeInput;
if (childNodes.length === 1 && (0,_util_reactNode__WEBPACK_IMPORTED_MODULE_4__/* .isValidElement */ .l$)(childNodes[0]) && !isSelectOptionOrSelectOptGroup(childNodes[0])) {
[customizeInput] = childNodes;
}
const getInputElement = customizeInput ? () => customizeInput : undefined;
// ============================ Options ============================
let optionChildren;
// [Legacy] convert `children` or `dataSource` into option children
if (childNodes.length && isSelectOptionOrSelectOptGroup(childNodes[0])) {
optionChildren = children;
} else {
optionChildren = dataSource ? dataSource.map(item => {
if ((0,_util_reactNode__WEBPACK_IMPORTED_MODULE_4__/* .isValidElement */ .l$)(item)) {
return item;
}
switch (typeof item) {
case 'string':
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Option, {
key: item,
value: item
}, item);
case 'object':
{
const {
value: optionValue
} = item;
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Option, {
key: optionValue,
value: optionValue
}, item.text);
}
default:
false ? 0 : void 0;
return undefined;
}
}) : [];
}
if (false) {}
const {
getPrefixCls
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_5__/* .ConfigContext */ .E_);
const prefixCls = getPrefixCls('select', customizePrefixCls);
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_select__WEBPACK_IMPORTED_MODULE_3__["default"], Object.assign({
ref: ref,
suffixIcon: null
}, (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props, ['dataSource', 'dropdownClassName']), {
prefixCls: prefixCls,
popupClassName: popupClassName || dropdownClassName,
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(`${prefixCls}-auto-complete`, className),
mode: _select__WEBPACK_IMPORTED_MODULE_3__["default"].SECRET_COMBOBOX_MODE_DO_NOT_USE
}, {
// Internal api
getInputElement
}), optionChildren);
};
const RefAutoComplete = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(AutoComplete);
// We don't care debug panel
/* istanbul ignore next */
const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(RefAutoComplete);
RefAutoComplete.Option = Option;
RefAutoComplete._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
if (false) {}
/* harmony default export */ __webpack_exports__.Z = (RefAutoComplete);
/***/ }),
/***/ 66104:
/*!**************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules ***!
\**************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ breadcrumb; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.0@classnames/index.js
var _classnames_2_5_0_classnames = __webpack_require__(73287);
var _classnames_2_5_0_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_0_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(45659);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/pickAttrs.js
var pickAttrs = __webpack_require__(3286);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
var reactNode = __webpack_require__(92343);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
var DownOutlined = __webpack_require__(42884);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
var dropdown = __webpack_require__(91857);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbSeparator.js
"use client";
const BreadcrumbSeparator = _ref => {
let {
children
} = _ref;
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefixCls = getPrefixCls('breadcrumb');
return /*#__PURE__*/_react_17_0_2_react.createElement("li", {
className: `${prefixCls}-separator`,
"aria-hidden": "true"
}, children === '' ? children : children || '/');
};
BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
/* harmony default export */ var breadcrumb_BreadcrumbSeparator = (BreadcrumbSeparator);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItemRender.js
"use client";
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;
};
function getBreadcrumbName(route, params) {
if (route.title === undefined || route.title === null) {
return null;
}
const paramsKeys = Object.keys(params).join('|');
return typeof route.title === 'object' ? route.title : String(route.title).replace(new RegExp(`:(${paramsKeys})`, 'g'), (replacement, key) => params[key] || replacement);
}
function renderItem(prefixCls, item, children, href) {
if (children === null || children === undefined) {
return null;
}
const {
className,
onClick
} = item,
restItem = __rest(item, ["className", "onClick"]);
const passedProps = Object.assign(Object.assign({}, (0,pickAttrs/* default */.Z)(restItem, {
data: true,
aria: true
})), {
onClick
});
if (href !== undefined) {
return /*#__PURE__*/_react_17_0_2_react.createElement("a", Object.assign({}, passedProps, {
className: _classnames_2_5_0_classnames_default()(`${prefixCls}-link`, className),
href: href
}), children);
}
return /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, passedProps, {
className: _classnames_2_5_0_classnames_default()(`${prefixCls}-link`, className)
}), children);
}
function useItemRender(prefixCls, itemRender) {
const mergedItemRender = (item, params, routes, path, href) => {
if (itemRender) {
return itemRender(item, params, routes, path);
}
const name = getBreadcrumbName(item, params);
return renderItem(prefixCls, item, name, href);
};
return mergedItemRender;
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbItem.js
"use client";
var BreadcrumbItem_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;
};
const InternalBreadcrumbItem = props => {
const {
prefixCls,
separator = '/',
children,
menu,
overlay,
dropdownProps,
href
} = props;
// Warning for deprecated usage
if (false) {}
/** If overlay is have Wrap a Dropdown */
const renderBreadcrumbNode = breadcrumbItem => {
if (menu || overlay) {
const mergeDropDownProps = Object.assign({}, dropdownProps);
if (menu) {
const _a = menu || {},
{
items
} = _a,
menuProps = BreadcrumbItem_rest(_a, ["items"]);
mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
items: items === null || items === void 0 ? void 0 : items.map((_a, index) => {
var {
key,
title,
label,
path
} = _a,
itemProps = BreadcrumbItem_rest(_a, ["key", "title", "label", "path"]);
let mergedLabel = label !== null && label !== void 0 ? label : title;
if (path) {
mergedLabel = /*#__PURE__*/_react_17_0_2_react.createElement("a", {
href: `${href}${path}`
}, mergedLabel);
}
return Object.assign(Object.assign({}, itemProps), {
key: key !== null && key !== void 0 ? key : index,
label: mergedLabel
});
})
});
} else if (overlay) {
mergeDropDownProps.overlay = overlay;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({
placement: "bottom"
}, mergeDropDownProps), /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-overlay-link`
}, breadcrumbItem, /*#__PURE__*/_react_17_0_2_react.createElement(DownOutlined/* default */.Z, null)));
}
return breadcrumbItem;
};
// wrap to dropDown
const link = renderBreadcrumbNode(children);
if (link !== undefined && link !== null) {
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("li", null, link), separator && /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, null, separator));
}
return null;
};
const BreadcrumbItem = props => {
const {
prefixCls: customizePrefixCls,
children,
href
} = props,
restProps = BreadcrumbItem_rest(props, ["prefixCls", "children", "href"]);
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({}, restProps, {
prefixCls: prefixCls
}), renderItem(prefixCls, restProps, children, href));
};
BreadcrumbItem.__ANT_BREADCRUMB_ITEM = true;
/* harmony default export */ var breadcrumb_BreadcrumbItem = (BreadcrumbItem);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
var style = __webpack_require__(17313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
var genComponentStyleHook = __webpack_require__(83116);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
var statistic = __webpack_require__(37613);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/style/index.js
const genBreadcrumbStyle = token => {
const {
componentCls,
iconCls
} = token;
return {
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
color: token.itemColor,
fontSize: token.fontSize,
[iconCls]: {
fontSize: token.iconFontSize
},
ol: {
display: 'flex',
flexWrap: 'wrap',
margin: 0,
padding: 0,
listStyle: 'none'
},
a: Object.assign({
color: token.linkColor,
transition: `color ${token.motionDurationMid}`,
padding: `0 ${token.paddingXXS}px`,
borderRadius: token.borderRadiusSM,
height: token.lineHeight * token.fontSize,
display: 'inline-block',
marginInline: -token.marginXXS,
'&:hover': {
color: token.linkHoverColor,
backgroundColor: token.colorBgTextHover
}
}, (0,style/* genFocusStyle */.Qy)(token)),
[`li:last-child`]: {
color: token.lastItemColor
},
[`${componentCls}-separator`]: {
marginInline: token.separatorMargin,
color: token.separatorColor
},
[`${componentCls}-link`]: {
[`
> ${iconCls} + span,
> ${iconCls} + a
`]: {
marginInlineStart: token.marginXXS
}
},
[`${componentCls}-overlay-link`]: {
borderRadius: token.borderRadiusSM,
height: token.lineHeight * token.fontSize,
display: 'inline-block',
padding: `0 ${token.paddingXXS}px`,
marginInline: -token.marginXXS,
[`> ${iconCls}`]: {
marginInlineStart: token.marginXXS,
fontSize: token.fontSizeIcon
},
'&:hover': {
color: token.linkHoverColor,
backgroundColor: token.colorBgTextHover,
a: {
color: token.linkHoverColor
}
},
a: {
'&:hover': {
backgroundColor: 'transparent'
}
}
},
// rtl style
[`&${token.componentCls}-rtl`]: {
direction: 'rtl'
}
})
};
};
// ============================== Export ==============================
/* harmony default export */ var breadcrumb_style = ((0,genComponentStyleHook/* default */.Z)('Breadcrumb', token => {
const BreadcrumbToken = (0,statistic/* merge */.TS)(token, {});
return [genBreadcrumbStyle(BreadcrumbToken)];
}, token => ({
itemColor: token.colorTextDescription,
lastItemColor: token.colorText,
iconFontSize: token.fontSize,
linkColor: token.colorTextDescription,
linkHoverColor: token.colorText,
separatorColor: token.colorTextDescription,
separatorMargin: token.marginXS
})));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItems.js
var useItems_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;
};
function route2item(route) {
const {
breadcrumbName,
children
} = route,
rest = useItems_rest(route, ["breadcrumbName", "children"]);
const clone = Object.assign({
title: breadcrumbName
}, rest);
if (children) {
clone.menu = {
items: children.map(_a => {
var {
breadcrumbName: itemBreadcrumbName
} = _a,
itemProps = useItems_rest(_a, ["breadcrumbName"]);
return Object.assign(Object.assign({}, itemProps), {
title: itemBreadcrumbName
});
})
};
}
return clone;
}
function useItems(items, routes) {
return (0,_react_17_0_2_react.useMemo)(() => {
if (items) {
return items;
}
if (routes) {
return routes.map(route2item);
}
return null;
}, [items, routes]);
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/Breadcrumb.js
"use client";
var Breadcrumb_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;
};
const getPath = (params, path) => {
if (path === undefined) {
return path;
}
let mergedPath = (path || '').replace(/^\//, '');
Object.keys(params).forEach(key => {
mergedPath = mergedPath.replace(`:${key}`, params[key]);
});
return mergedPath;
};
const Breadcrumb = props => {
const {
prefixCls: customizePrefixCls,
separator = '/',
style,
className,
rootClassName,
routes: legacyRoutes,
items,
children,
itemRender,
params = {}
} = props,
restProps = Breadcrumb_rest(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
const {
getPrefixCls,
direction,
breadcrumb
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
let crumbs;
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
const [wrapSSR, hashId] = breadcrumb_style(prefixCls);
const mergedItems = useItems(items, legacyRoutes);
if (false) {}
const mergedItemRender = useItemRender(prefixCls, itemRender);
if (mergedItems && mergedItems.length > 0) {
// generated by route
const paths = [];
const itemRenderRoutes = items || legacyRoutes;
crumbs = mergedItems.map((item, index) => {
const {
path,
key,
type,
menu,
overlay,
onClick,
className: itemClassName,
separator: itemSeparator,
dropdownProps
} = item;
const mergedPath = getPath(params, path);
if (mergedPath !== undefined) {
paths.push(mergedPath);
}
const mergedKey = key !== null && key !== void 0 ? key : index;
if (type === 'separator') {
return /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, {
key: mergedKey
}, itemSeparator);
}
const itemProps = {};
const isLastItem = index === mergedItems.length - 1;
if (menu) {
itemProps.menu = menu;
} else if (overlay) {
itemProps.overlay = overlay;
}
let {
href
} = item;
if (paths.length && mergedPath !== undefined) {
href = `#/${paths.join('/')}`;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({
key: mergedKey
}, itemProps, (0,pickAttrs/* default */.Z)(item, {
data: true,
aria: true
}), {
className: itemClassName,
dropdownProps: dropdownProps,
href: href,
separator: isLastItem ? '' : separator,
onClick: onClick,
prefixCls: prefixCls
}), mergedItemRender(item, params, itemRenderRoutes, paths, href));
});
} else if (children) {
const childrenLength = (0,toArray/* default */.Z)(children).length;
crumbs = (0,toArray/* default */.Z)(children).map((element, index) => {
if (!element) {
return element;
}
// =================== Warning =====================
if (false) {}
false ? 0 : void 0;
const isLastItem = index === childrenLength - 1;
return (0,reactNode/* cloneElement */.Tm)(element, {
separator: isLastItem ? '' : separator,
key: index
});
});
}
const breadcrumbClassName = _classnames_2_5_0_classnames_default()(prefixCls, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.className, {
[`${prefixCls}-rtl`]: direction === 'rtl'
}, className, rootClassName, hashId);
const mergedStyle = Object.assign(Object.assign({}, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.style), style);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("nav", Object.assign({
className: breadcrumbClassName,
style: mergedStyle
}, restProps), /*#__PURE__*/_react_17_0_2_react.createElement("ol", null, crumbs)));
};
Breadcrumb.Item = breadcrumb_BreadcrumbItem;
Breadcrumb.Separator = breadcrumb_BreadcrumbSeparator;
if (false) {}
/* harmony default export */ var breadcrumb_Breadcrumb = (Breadcrumb);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js
"use client";
/* harmony default export */ var breadcrumb = (breadcrumb_Breadcrumb);
/***/ }),
/***/ 18889:
/*!********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/card/index.js + 4 modules ***!
\********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ card; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.0@classnames/index.js
var _classnames_2_5_0_classnames = __webpack_require__(73287);
var _classnames_2_5_0_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_0_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/omit.js
var omit = __webpack_require__(99468);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js
var useSize = __webpack_require__(19716);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(59981);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tabs/index.js + 24 modules
var es_tabs = __webpack_require__(99313);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/card/Grid.js
"use client";
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;
};
const Grid = _a => {
var {
prefixCls,
className,
hoverable = true
} = _a,
props = __rest(_a, ["prefixCls", "className", "hoverable"]);
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefix = getPrefixCls('card', prefixCls);
const classString = _classnames_2_5_0_classnames_default()(`${prefix}-grid`, className, {
[`${prefix}-grid-hoverable`]: hoverable
});
return /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({}, props, {
className: classString
}));
};
/* harmony default export */ var card_Grid = (Grid);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
var style = __webpack_require__(17313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
var genComponentStyleHook = __webpack_require__(83116);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
var statistic = __webpack_require__(37613);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/card/style/index.js
// ============================== Styles ==============================
// ============================== Head ==============================
const genCardHeadStyle = token => {
const {
antCls,
componentCls,
headerHeight,
cardPaddingBase,
tabsMarginBottom
} = token;
return Object.assign(Object.assign({
display: 'flex',
justifyContent: 'center',
flexDirection: 'column',
minHeight: headerHeight,
marginBottom: -1,
padding: `0 ${cardPaddingBase}px`,
color: token.colorTextHeading,
fontWeight: token.fontWeightStrong,
fontSize: token.headerFontSize,
background: token.headerBg,
borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorBorderSecondary}`,
borderRadius: `${token.borderRadiusLG}px ${token.borderRadiusLG}px 0 0`
}, (0,style/* clearFix */.dF)()), {
'&-wrapper': {
width: '100%',
display: 'flex',
alignItems: 'center'
},
'&-title': Object.assign(Object.assign({
display: 'inline-block',
flex: 1
}, style/* textEllipsis */.vS), {
[`
> ${componentCls}-typography,
> ${componentCls}-typography-edit-content
`]: {
insetInlineStart: 0,
marginTop: 0,
marginBottom: 0
}
}),
[`${antCls}-tabs-top`]: {
clear: 'both',
marginBottom: tabsMarginBottom,
color: token.colorText,
fontWeight: 'normal',
fontSize: token.fontSize,
'&-bar': {
borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorBorderSecondary}`
}
}
});
};
// ============================== Grid ==============================
const genCardGridStyle = token => {
const {
cardPaddingBase,
colorBorderSecondary,
cardShadow,
lineWidth
} = token;
return {
width: '33.33%',
padding: cardPaddingBase,
border: 0,
borderRadius: 0,
boxShadow: `
${lineWidth}px 0 0 0 ${colorBorderSecondary},
0 ${lineWidth}px 0 0 ${colorBorderSecondary},
${lineWidth}px ${lineWidth}px 0 0 ${colorBorderSecondary},
${lineWidth}px 0 0 0 ${colorBorderSecondary} inset,
0 ${lineWidth}px 0 0 ${colorBorderSecondary} inset;
`,
transition: `all ${token.motionDurationMid}`,
'&-hoverable:hover': {
position: 'relative',
zIndex: 1,
boxShadow: cardShadow
}
};
};
// ============================== Actions ==============================
const genCardActionsStyle = token => {
const {
componentCls,
iconCls,
actionsLiMargin,
cardActionsIconSize,
colorBorderSecondary,
actionsBg
} = token;
return Object.assign(Object.assign({
margin: 0,
padding: 0,
listStyle: 'none',
background: actionsBg,
borderTop: `${token.lineWidth}px ${token.lineType} ${colorBorderSecondary}`,
display: 'flex',
borderRadius: `0 0 ${token.borderRadiusLG}px ${token.borderRadiusLG}px `
}, (0,style/* clearFix */.dF)()), {
'& > li': {
margin: actionsLiMargin,
color: token.colorTextDescription,
textAlign: 'center',
'> span': {
position: 'relative',
display: 'block',
minWidth: token.cardActionsIconSize * 2,
fontSize: token.fontSize,
lineHeight: token.lineHeight,
cursor: 'pointer',
'&:hover': {
color: token.colorPrimary,
transition: `color ${token.motionDurationMid}`
},
[`a:not(${componentCls}-btn), > ${iconCls}`]: {
display: 'inline-block',
width: '100%',
color: token.colorTextDescription,
lineHeight: `${token.fontSize * token.lineHeight}px`,
transition: `color ${token.motionDurationMid}`,
'&:hover': {
color: token.colorPrimary
}
},
[`> ${iconCls}`]: {
fontSize: cardActionsIconSize,
lineHeight: `${cardActionsIconSize * token.lineHeight}px`
}
},
'&:not(:last-child)': {
borderInlineEnd: `${token.lineWidth}px ${token.lineType} ${colorBorderSecondary}`
}
}
});
};
// ============================== Meta ==============================
const genCardMetaStyle = token => Object.assign(Object.assign({
margin: `-${token.marginXXS}px 0`,
display: 'flex'
}, (0,style/* clearFix */.dF)()), {
'&-avatar': {
paddingInlineEnd: token.padding
},
'&-detail': {
overflow: 'hidden',
flex: 1,
'> div:not(:last-child)': {
marginBottom: token.marginXS
}
},
'&-title': Object.assign({
color: token.colorTextHeading,
fontWeight: token.fontWeightStrong,
fontSize: token.fontSizeLG
}, style/* textEllipsis */.vS),
'&-description': {
color: token.colorTextDescription
}
});
// ============================== Inner ==============================
const genCardTypeInnerStyle = token => {
const {
componentCls,
cardPaddingBase,
colorFillAlter
} = token;
return {
[`${componentCls}-head`]: {
padding: `0 ${cardPaddingBase}px`,
background: colorFillAlter,
'&-title': {
fontSize: token.fontSize
}
},
[`${componentCls}-body`]: {
padding: `${token.padding}px ${cardPaddingBase}px`
}
};
};
// ============================== Loading ==============================
const genCardLoadingStyle = token => {
const {
componentCls
} = token;
return {
overflow: 'hidden',
[`${componentCls}-body`]: {
userSelect: 'none'
}
};
};
// ============================== Basic ==============================
const genCardStyle = token => {
const {
antCls,
componentCls,
cardShadow,
cardHeadPadding,
colorBorderSecondary,
boxShadowTertiary,
cardPaddingBase,
extraColor
} = token;
return {
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
position: 'relative',
background: token.colorBgContainer,
borderRadius: token.borderRadiusLG,
[`&:not(${componentCls}-bordered)`]: {
boxShadow: boxShadowTertiary
},
[`${componentCls}-head`]: genCardHeadStyle(token),
[`${componentCls}-extra`]: {
// https://stackoverflow.com/a/22429853/3040605
marginInlineStart: 'auto',
color: extraColor,
fontWeight: 'normal',
fontSize: token.fontSize
},
[`${componentCls}-body`]: Object.assign({
padding: cardPaddingBase,
borderRadius: ` 0 0 ${token.borderRadiusLG}px ${token.borderRadiusLG}px`
}, (0,style/* clearFix */.dF)()),
[`${componentCls}-grid`]: genCardGridStyle(token),
[`${componentCls}-cover`]: {
'> *': {
display: 'block',
width: '100%'
},
[`img, img + ${antCls}-image-mask`]: {
borderRadius: `${token.borderRadiusLG}px ${token.borderRadiusLG}px 0 0`
}
},
[`${componentCls}-actions`]: genCardActionsStyle(token),
[`${componentCls}-meta`]: genCardMetaStyle(token)
}),
[`${componentCls}-bordered`]: {
border: `${token.lineWidth}px ${token.lineType} ${colorBorderSecondary}`,
[`${componentCls}-cover`]: {
marginTop: -1,
marginInlineStart: -1,
marginInlineEnd: -1
}
},
[`${componentCls}-hoverable`]: {
cursor: 'pointer',
transition: `box-shadow ${token.motionDurationMid}, border-color ${token.motionDurationMid}`,
'&:hover': {
borderColor: 'transparent',
boxShadow: cardShadow
}
},
[`${componentCls}-contain-grid`]: {
[`${componentCls}-body`]: {
display: 'flex',
flexWrap: 'wrap'
},
[`&:not(${componentCls}-loading) ${componentCls}-body`]: {
marginBlockStart: -token.lineWidth,
marginInlineStart: -token.lineWidth,
padding: 0
}
},
[`${componentCls}-contain-tabs`]: {
[`> ${componentCls}-head`]: {
[`${componentCls}-head-title, ${componentCls}-extra`]: {
paddingTop: cardHeadPadding
}
}
},
[`${componentCls}-type-inner`]: genCardTypeInnerStyle(token),
[`${componentCls}-loading`]: genCardLoadingStyle(token),
[`${componentCls}-rtl`]: {
direction: 'rtl'
}
};
};
// ============================== Size ==============================
const genCardSizeStyle = token => {
const {
componentCls,
cardPaddingSM,
headerHeightSM,
headerFontSizeSM
} = token;
return {
[`${componentCls}-small`]: {
[`> ${componentCls}-head`]: {
minHeight: headerHeightSM,
padding: `0 ${cardPaddingSM}px`,
fontSize: headerFontSizeSM,
[`> ${componentCls}-head-wrapper`]: {
[`> ${componentCls}-extra`]: {
fontSize: token.fontSize
}
}
},
[`> ${componentCls}-body`]: {
padding: cardPaddingSM
}
},
[`${componentCls}-small${componentCls}-contain-tabs`]: {
[`> ${componentCls}-head`]: {
[`${componentCls}-head-title, ${componentCls}-extra`]: {
minHeight: headerHeightSM,
paddingTop: 0,
display: 'flex',
alignItems: 'center'
}
}
}
};
};
// ============================== Export ==============================
/* harmony default export */ var card_style = ((0,genComponentStyleHook/* default */.Z)('Card', token => {
const cardToken = (0,statistic/* merge */.TS)(token, {
cardShadow: token.boxShadowCard,
cardHeadPadding: token.padding,
cardPaddingBase: token.paddingLG,
cardActionsIconSize: token.fontSize,
cardPaddingSM: 12 // Fixed padding.
});
return [
// Style
genCardStyle(cardToken),
// Size
genCardSizeStyle(cardToken)];
}, token => ({
headerBg: 'transparent',
headerFontSize: token.fontSizeLG,
headerFontSizeSM: token.fontSize,
headerHeight: token.fontSizeLG * token.lineHeightLG + token.padding * 2,
headerHeightSM: token.fontSize * token.lineHeight + token.paddingXS * 2,
actionsBg: token.colorBgContainer,
actionsLiMargin: `${token.paddingSM}px 0`,
tabsMarginBottom: -token.padding - token.lineWidth,
extraColor: token.colorText
})));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/card/Card.js
"use client";
var Card_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;
};
function getAction(actions) {
return actions.map((action, index) =>
/*#__PURE__*/
// eslint-disable-next-line react/no-array-index-key
_react_17_0_2_react.createElement("li", {
style: {
width: `${100 / actions.length}%`
},
key: `action-${index}`
}, /*#__PURE__*/_react_17_0_2_react.createElement("span", null, action)));
}
const Card = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
prefixCls: customizePrefixCls,
className,
rootClassName,
style,
extra,
headStyle = {},
bodyStyle = {},
title,
loading,
bordered = true,
size: customizeSize,
type,
cover,
actions,
tabList,
children,
activeTabKey,
defaultActiveTabKey,
tabBarExtraContent,
hoverable,
tabProps = {}
} = props,
others = Card_rest(props, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps"]);
const {
getPrefixCls,
direction,
card
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const onTabChange = key => {
var _a;
(_a = props.onTabChange) === null || _a === void 0 ? void 0 : _a.call(props, key);
};
const isContainGrid = _react_17_0_2_react.useMemo(() => {
let containGrid = false;
_react_17_0_2_react.Children.forEach(children, element => {
if (element && element.type && element.type === card_Grid) {
containGrid = true;
}
});
return containGrid;
}, [children]);
const prefixCls = getPrefixCls('card', customizePrefixCls);
const [wrapSSR, hashId] = card_style(prefixCls);
const loadingBlock = /*#__PURE__*/_react_17_0_2_react.createElement(skeleton/* default */.Z, {
loading: true,
active: true,
paragraph: {
rows: 4
},
title: false
}, children);
const hasActiveTabKey = activeTabKey !== undefined;
const extraProps = Object.assign(Object.assign({}, tabProps), {
[hasActiveTabKey ? 'activeKey' : 'defaultActiveKey']: hasActiveTabKey ? activeTabKey : defaultActiveTabKey,
tabBarExtraContent
});
let head;
const mergedSize = (0,useSize/* default */.Z)(customizeSize);
const tabSize = !mergedSize || mergedSize === 'default' ? 'large' : mergedSize;
const tabs = tabList ? /*#__PURE__*/_react_17_0_2_react.createElement(es_tabs/* default */.Z, Object.assign({
size: tabSize
}, extraProps, {
className: `${prefixCls}-head-tabs`,
onChange: onTabChange,
items: tabList.map(_a => {
var {
tab
} = _a,
item = Card_rest(_a, ["tab"]);
return Object.assign({
label: tab
}, item);
})
})) : null;
if (title || extra || tabs) {
head = /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: `${prefixCls}-head`,
style: headStyle
}, /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: `${prefixCls}-head-wrapper`
}, title && /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: `${prefixCls}-head-title`
}, title), extra && /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: `${prefixCls}-extra`
}, extra)), tabs);
}
const coverDom = cover ? /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: `${prefixCls}-cover`
}, cover) : null;
const body = /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: `${prefixCls}-body`,
style: bodyStyle
}, loading ? loadingBlock : children);
const actionDom = actions && actions.length ? /*#__PURE__*/_react_17_0_2_react.createElement("ul", {
className: `${prefixCls}-actions`
}, getAction(actions)) : null;
const divProps = (0,omit/* default */.Z)(others, ['onTabChange']);
const classString = _classnames_2_5_0_classnames_default()(prefixCls, card === null || card === void 0 ? void 0 : card.className, {
[`${prefixCls}-loading`]: loading,
[`${prefixCls}-bordered`]: bordered,
[`${prefixCls}-hoverable`]: hoverable,
[`${prefixCls}-contain-grid`]: isContainGrid,
[`${prefixCls}-contain-tabs`]: tabList && tabList.length,
[`${prefixCls}-${mergedSize}`]: mergedSize,
[`${prefixCls}-type-${type}`]: !!type,
[`${prefixCls}-rtl`]: direction === 'rtl'
}, className, rootClassName, hashId);
const mergedStyle = Object.assign(Object.assign({}, card === null || card === void 0 ? void 0 : card.style), style);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
ref: ref
}, divProps, {
className: classString,
style: mergedStyle
}), head, coverDom, body, actionDom));
});
/* harmony default export */ var card_Card = (Card);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/card/Meta.js
"use client";
var Meta_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;
};
const Meta = props => {
const {
prefixCls: customizePrefixCls,
className,
avatar,
title,
description
} = props,
others = Meta_rest(props, ["prefixCls", "className", "avatar", "title", "description"]);
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefixCls = getPrefixCls('card', customizePrefixCls);
const classString = _classnames_2_5_0_classnames_default()(`${prefixCls}-meta`, className);
const avatarDom = avatar ? /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: `${prefixCls}-meta-avatar`
}, avatar) : null;
const titleDom = title ? /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: `${prefixCls}-meta-title`
}, title) : null;
const descriptionDom = description ? /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: `${prefixCls}-meta-description`
}, description) : null;
const MetaDetail = titleDom || descriptionDom ? /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: `${prefixCls}-meta-detail`
}, titleDom, descriptionDom) : null;
return /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({}, others, {
className: classString
}), avatarDom, MetaDetail);
};
/* harmony default export */ var card_Meta = (Meta);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/card/index.js
"use client";
const es_card_Card = card_Card;
es_card_Card.Grid = card_Grid;
es_card_Card.Meta = card_Meta;
if (false) {}
/* harmony default export */ var card = (es_card_Card);
/***/ }),
/***/ 28103:
/*!***********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/divider/index.js + 1 modules ***!
\***********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ divider; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.0@classnames/index.js
var _classnames_2_5_0_classnames = __webpack_require__(73287);
var _classnames_2_5_0_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_0_classnames);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
var style = __webpack_require__(17313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
var genComponentStyleHook = __webpack_require__(83116);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
var statistic = __webpack_require__(37613);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/style/index.js
// ============================== Shared ==============================
const genSharedDividerStyle = token => {
const {
componentCls,
sizePaddingEdgeHorizontal,
colorSplit,
lineWidth,
textPaddingInline,
orientationMargin,
verticalMarginInline
} = token;
return {
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
borderBlockStart: `${lineWidth}px solid ${colorSplit}`,
// vertical
'&-vertical': {
position: 'relative',
top: '-0.06em',
display: 'inline-block',
height: '0.9em',
marginInline: verticalMarginInline,
marginBlock: 0,
verticalAlign: 'middle',
borderTop: 0,
borderInlineStart: `${lineWidth}px solid ${colorSplit}`
},
'&-horizontal': {
display: 'flex',
clear: 'both',
width: '100%',
minWidth: '100%',
margin: `${token.dividerHorizontalGutterMargin}px 0`
},
[`&-horizontal${componentCls}-with-text`]: {
display: 'flex',
alignItems: 'center',
margin: `${token.dividerHorizontalWithTextGutterMargin}px 0`,
color: token.colorTextHeading,
fontWeight: 500,
fontSize: token.fontSizeLG,
whiteSpace: 'nowrap',
textAlign: 'center',
borderBlockStart: `0 ${colorSplit}`,
'&::before, &::after': {
position: 'relative',
width: '50%',
borderBlockStart: `${lineWidth}px solid transparent`,
// Chrome not accept `inherit` in `border-top`
borderBlockStartColor: 'inherit',
borderBlockEnd: 0,
transform: 'translateY(50%)',
content: "''"
}
},
[`&-horizontal${componentCls}-with-text-left`]: {
'&::before': {
width: `${orientationMargin * 100}%`
},
'&::after': {
width: `${100 - orientationMargin * 100}%`
}
},
[`&-horizontal${componentCls}-with-text-right`]: {
'&::before': {
width: `${100 - orientationMargin * 100}%`
},
'&::after': {
width: `${orientationMargin * 100}%`
}
},
[`${componentCls}-inner-text`]: {
display: 'inline-block',
paddingBlock: 0,
paddingInline: textPaddingInline
},
'&-dashed': {
background: 'none',
borderColor: colorSplit,
borderStyle: 'dashed',
borderWidth: `${lineWidth}px 0 0`
},
[`&-horizontal${componentCls}-with-text${componentCls}-dashed`]: {
'&::before, &::after': {
borderStyle: 'dashed none none'
}
},
[`&-vertical${componentCls}-dashed`]: {
borderInlineStartWidth: lineWidth,
borderInlineEnd: 0,
borderBlockStart: 0,
borderBlockEnd: 0
},
[`&-plain${componentCls}-with-text`]: {
color: token.colorText,
fontWeight: 'normal',
fontSize: token.fontSize
},
[`&-horizontal${componentCls}-with-text-left${componentCls}-no-default-orientation-margin-left`]: {
'&::before': {
width: 0
},
'&::after': {
width: '100%'
},
[`${componentCls}-inner-text`]: {
paddingInlineStart: sizePaddingEdgeHorizontal
}
},
[`&-horizontal${componentCls}-with-text-right${componentCls}-no-default-orientation-margin-right`]: {
'&::before': {
width: '100%'
},
'&::after': {
width: 0
},
[`${componentCls}-inner-text`]: {
paddingInlineEnd: sizePaddingEdgeHorizontal
}
}
})
};
};
// ============================== Export ==============================
/* harmony default export */ var divider_style = ((0,genComponentStyleHook/* default */.Z)('Divider', token => {
const dividerToken = (0,statistic/* merge */.TS)(token, {
dividerHorizontalWithTextGutterMargin: token.margin,
dividerHorizontalGutterMargin: token.marginLG,
sizePaddingEdgeHorizontal: 0
});
return [genSharedDividerStyle(dividerToken)];
}, token => ({
textPaddingInline: '1em',
orientationMargin: 0.05,
verticalMarginInline: token.marginXS
})));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/index.js
"use client";
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;
};
const Divider = props => {
const {
getPrefixCls,
direction,
divider
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
type = 'horizontal',
orientation = 'center',
orientationMargin,
className,
rootClassName,
children,
dashed,
plain,
style
} = props,
restProps = __rest(props, ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "plain", "style"]);
const prefixCls = getPrefixCls('divider', customizePrefixCls);
const [wrapSSR, hashId] = divider_style(prefixCls);
const orientationPrefix = orientation.length > 0 ? `-${orientation}` : orientation;
const hasChildren = !!children;
const hasCustomMarginLeft = orientation === 'left' && orientationMargin != null;
const hasCustomMarginRight = orientation === 'right' && orientationMargin != null;
const classString = _classnames_2_5_0_classnames_default()(prefixCls, divider === null || divider === void 0 ? void 0 : divider.className, hashId, `${prefixCls}-${type}`, {
[`${prefixCls}-with-text`]: hasChildren,
[`${prefixCls}-with-text${orientationPrefix}`]: hasChildren,
[`${prefixCls}-dashed`]: !!dashed,
[`${prefixCls}-plain`]: !!plain,
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-no-default-orientation-margin-left`]: hasCustomMarginLeft,
[`${prefixCls}-no-default-orientation-margin-right`]: hasCustomMarginRight
}, className, rootClassName);
const memoizedOrientationMargin = _react_17_0_2_react.useMemo(() => {
if (typeof orientationMargin === 'number') {
return orientationMargin;
}
if (/^\d+$/.test(orientationMargin)) {
return Number(orientationMargin);
}
return orientationMargin;
}, [orientationMargin]);
const innerStyle = Object.assign(Object.assign({}, hasCustomMarginLeft && {
marginLeft: memoizedOrientationMargin
}), hasCustomMarginRight && {
marginRight: memoizedOrientationMargin
});
// Warning children not work in vertical mode
if (false) {}
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
className: classString,
style: Object.assign(Object.assign({}, divider === null || divider === void 0 ? void 0 : divider.style), style)
}, restProps, {
role: "separator"
}), children && type !== 'vertical' && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-inner-text`,
style: innerStyle
}, children)));
};
if (false) {}
/* harmony default export */ var divider = (Divider);
/***/ })
}]);