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/37616.async.js

1439 lines
76 KiB

"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[37616],{
/***/ 82826:
/*!**********************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined.js + 1 modules ***!
\**********************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_ArrowLeftOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(1413);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ArrowLeftOutlined.js
// This icon file is generated automatically.
var ArrowLeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, "name": "arrow-left", "theme": "outlined" };
/* harmony default export */ var asn_ArrowLeftOutlined = (ArrowLeftOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 6 modules
var AntdIcon = __webpack_require__(7918);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var ArrowLeftOutlined_ArrowLeftOutlined = function ArrowLeftOutlined(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
ref: ref,
icon: asn_ArrowLeftOutlined
}));
};
ArrowLeftOutlined_ArrowLeftOutlined.displayName = 'ArrowLeftOutlined';
/* harmony default export */ var icons_ArrowLeftOutlined = (/*#__PURE__*/react.forwardRef(ArrowLeftOutlined_ArrowLeftOutlined));
/***/ }),
/***/ 95025:
/*!**********************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/CaretDownOutlined.js ***!
\**********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var _ant_design_icons_svg_es_asn_CaretDownOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/CaretDownOutlined */ 57727);
/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 7918);
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var CaretDownOutlined = function CaretDownOutlined(props, ref) {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
ref: ref,
icon: _ant_design_icons_svg_es_asn_CaretDownOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
}));
};
CaretDownOutlined.displayName = 'CaretDownOutlined';
/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(CaretDownOutlined));
/***/ }),
/***/ 28508:
/*!******************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js ***!
\******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var _ant_design_icons_svg_es_asn_CloseOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/CloseOutlined */ 89503);
/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 7918);
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var CloseOutlined = function CloseOutlined(props, ref) {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
ref: ref,
icon: _ant_design_icons_svg_es_asn_CloseOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
}));
};
CloseOutlined.displayName = 'CloseOutlined';
/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(CloseOutlined));
/***/ }),
/***/ 95604:
/*!*******************************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/DeliveredProcedureOutlined.js + 1 modules ***!
\*******************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_DeliveredProcedureOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(1413);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/DeliveredProcedureOutlined.js
// This icon file is generated automatically.
var DeliveredProcedureOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "defs", "attrs": {}, "children": [{ "tag": "style", "attrs": {} }] }, { "tag": "path", "attrs": { "d": "M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z" } }] }, "name": "delivered-procedure", "theme": "outlined" };
/* harmony default export */ var asn_DeliveredProcedureOutlined = (DeliveredProcedureOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 6 modules
var AntdIcon = __webpack_require__(7918);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/DeliveredProcedureOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var DeliveredProcedureOutlined_DeliveredProcedureOutlined = function DeliveredProcedureOutlined(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
ref: ref,
icon: asn_DeliveredProcedureOutlined
}));
};
DeliveredProcedureOutlined_DeliveredProcedureOutlined.displayName = 'DeliveredProcedureOutlined';
/* harmony default export */ var icons_DeliveredProcedureOutlined = (/*#__PURE__*/react.forwardRef(DeliveredProcedureOutlined_DeliveredProcedureOutlined));
/***/ }),
/***/ 69753:
/*!*********************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var _ant_design_icons_svg_es_asn_DownloadOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/DownloadOutlined */ 49495);
/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 7918);
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var DownloadOutlined = function DownloadOutlined(props, ref) {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
ref: ref,
icon: _ant_design_icons_svg_es_asn_DownloadOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
}));
};
DownloadOutlined.displayName = 'DownloadOutlined';
/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(DownloadOutlined));
/***/ }),
/***/ 51042:
/*!*****************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/PlusOutlined.js ***!
\*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var _ant_design_icons_svg_es_asn_PlusOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/PlusOutlined */ 42110);
/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 7918);
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var PlusOutlined = function PlusOutlined(props, ref) {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
ref: ref,
icon: _ant_design_icons_svg_es_asn_PlusOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
}));
};
PlusOutlined.displayName = 'PlusOutlined';
/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(PlusOutlined));
/***/ }),
/***/ 33160:
/*!*******************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules ***!
\*******************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_ReloadOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(1413);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.js
// This icon file is generated automatically.
var ReloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, "name": "reload", "theme": "outlined" };
/* harmony default export */ var asn_ReloadOutlined = (ReloadOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 6 modules
var AntdIcon = __webpack_require__(7918);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var ReloadOutlined_ReloadOutlined = function ReloadOutlined(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
ref: ref,
icon: asn_ReloadOutlined
}));
};
ReloadOutlined_ReloadOutlined.displayName = 'ReloadOutlined';
/* harmony default export */ var icons_ReloadOutlined = (/*#__PURE__*/react.forwardRef(ReloadOutlined_ReloadOutlined));
/***/ }),
/***/ 42952:
/*!********************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/SettingOutlined.js + 1 modules ***!
\********************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_SettingOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(1413);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/SettingOutlined.js
// This icon file is generated automatically.
var SettingOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" } }] }, "name": "setting", "theme": "outlined" };
/* harmony default export */ var asn_SettingOutlined = (SettingOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 6 modules
var AntdIcon = __webpack_require__(7918);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/SettingOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var SettingOutlined_SettingOutlined = function SettingOutlined(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
ref: ref,
icon: asn_SettingOutlined
}));
};
SettingOutlined_SettingOutlined.displayName = 'SettingOutlined';
/* harmony default export */ var icons_SettingOutlined = (/*#__PURE__*/react.forwardRef(SettingOutlined_SettingOutlined));
/***/ }),
/***/ 75490:
/*!************************************************************!*\
!*** ./src/components/image-preview/index.tsx + 1 modules ***!
\************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ image_preview; }
});
// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
var style = __webpack_require__(29913);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./src/components/image-preview/index.less
// extracted by mini-css-extract-plugin
// EXTERNAL MODULE: ./src/components/mediator.js
var mediator = __webpack_require__(91562);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules
var ReloadOutlined = __webpack_require__(33160);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js
var DownloadOutlined = __webpack_require__(69753);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js
var CloseOutlined = __webpack_require__(28508);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/components/image-preview/index.tsx
/* harmony default export */ var image_preview = (function () {
var _useState = (0,react.useState)(''),
_useState2 = slicedToArray_default()(_useState, 2),
url = _useState2[0],
setUrl = _useState2[1];
var _useState3 = (0,react.useState)(0),
_useState4 = slicedToArray_default()(_useState3, 2),
deg = _useState4[0],
setDeg = _useState4[1];
var saveUrl = (0,react.useRef)('');
(0,react.useEffect)(function () {
var unSub = mediator/* default.subscribe */.Z.subscribe('preview-image', function (value) {
setUrl(value);
// window.document.body
// document.body.style.height='100%'
document.body.style.overflow = 'hidden';
});
return unSub;
}, []);
(0,react.useEffect)(function () {
document.addEventListener('keydown', onViewEscClose);
return function () {
document.removeEventListener('keydown', onViewEscClose);
};
}, []);
(0,react.useEffect)(function () {
saveUrl.current = url;
}, [url]);
function onViewEscClose(e) {
if (e.keyCode == 27 && saveUrl.current) {
onClose();
}
}
// https://data.educoder.net/api/attachments/1571649
function onClose() {
// document.body.style.height='100%'
document.body.style.overflow = 'auto';
setUrl('');
}
function onRotate() {
setDeg(deg + 90);
}
var maskRef = (0,react.useRef)();
var previewWrapperRef = (0,react.useRef)();
var handleMaskClick = function handleMaskClick(e) {
if (e.nativeEvent.target === maskRef.current || e.nativeEvent.target === previewWrapperRef.current) {
onClose();
}
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment, {
children: !url ? null : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "image-preview-container",
ref: maskRef,
onClick: handleMaskClick,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "button-group",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, {
onClick: onRotate,
children: ["\u65CB\u8F6C", /*#__PURE__*/(0,jsx_runtime.jsx)(ReloadOutlined/* default */.Z, {})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, {
href: url,
children: ["\u4E0B\u8F7D", /*#__PURE__*/(0,jsx_runtime.jsx)(DownloadOutlined/* default */.Z, {})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, {
onClick: onClose,
children: ["\u5173\u95ED", /*#__PURE__*/(0,jsx_runtime.jsx)(CloseOutlined/* default */.Z, {})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "preview-wrp-group",
ref: previewWrapperRef,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: "image-preview",
src: url,
alt: "\u9884\u89C8\u5927\u56FE",
style: {
transform: "rotate(".concat(deg, "deg)")
}
})
})]
})
});
});
/***/ }),
/***/ 92170:
/*!******************************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/Export/components/Head/index.tsx + 5 modules ***!
\******************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ components_Head; }
});
// EXTERNAL MODULE: ./node_modules/antd/es/table/style/index.js + 1 modules
var style = __webpack_require__(71854);
// EXTERNAL MODULE: ./node_modules/antd/es/table/index.js + 58 modules
var table = __webpack_require__(67250);
// EXTERNAL MODULE: ./node_modules/antd/es/row/style/index.js
var row_style = __webpack_require__(13062);
// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
var row = __webpack_require__(71230);
// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
var button_style = __webpack_require__(29913);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(17061);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(17156);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__(861);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(42122);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
var _umi_production_exports = __webpack_require__(89214);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/SettingOutlined.js + 1 modules
var SettingOutlined = __webpack_require__(42952);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Export/components/Head/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Headmodules = ({"wrap":"wrap___SSpd0","img":"img___nbd2O","table":"table___fcP71","totalScore":"totalScore___YxSMe","people":"people___bf9pK","glassSeal":"glassSeal___dYhKO","paperHeader":"paperHeader___gYUbq","exportBtn":"exportBtn___nyRYQ"});
// EXTERNAL MODULE: ./src/service/exercise.ts
var service_exercise = __webpack_require__(51412);
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 1 modules
var RenderHtml = __webpack_require__(12768);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./node_modules/antd/es/modal/style/index.js + 1 modules
var modal_style = __webpack_require__(35611);
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 7 modules
var modal = __webpack_require__(85402);
// EXTERNAL MODULE: ./node_modules/antd/es/spin/style/index.js + 1 modules
var spin_style = __webpack_require__(22536);
// EXTERNAL MODULE: ./node_modules/antd/es/spin/index.js
var spin = __webpack_require__(11382);
// EXTERNAL MODULE: ./node_modules/antd/es/input-number/style/index.js + 1 modules
var input_number_style = __webpack_require__(25359);
// EXTERNAL MODULE: ./node_modules/antd/es/input-number/index.js + 9 modules
var input_number = __webpack_require__(87799);
// EXTERNAL MODULE: ./node_modules/antd/es/col/style/index.js
var col_style = __webpack_require__(89032);
// EXTERNAL MODULE: ./node_modules/antd/es/col/index.js
var col = __webpack_require__(15746);
// EXTERNAL MODULE: ./node_modules/antd/es/checkbox/style/index.js + 1 modules
var checkbox_style = __webpack_require__(82000);
// EXTERNAL MODULE: ./node_modules/antd/es/checkbox/index.js + 2 modules
var es_checkbox = __webpack_require__(32808);
// EXTERNAL MODULE: ./node_modules/antd/es/upload/style/index.js + 1 modules
var upload_style = __webpack_require__(13759);
// EXTERNAL MODULE: ./node_modules/antd/es/upload/index.js + 20 modules
var upload = __webpack_require__(7426);
// EXTERNAL MODULE: ./node_modules/antd/es/message/style/index.js + 1 modules
var message_style = __webpack_require__(14934);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 1 modules
var message = __webpack_require__(12461);
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js + 1 modules
var input_style = __webpack_require__(69463);
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
var input = __webpack_require__(75008);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/PlusOutlined.js
var PlusOutlined = __webpack_require__(51042);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Export/components/ExportSetting/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var ExportSettingmodules = ({"modalWrapper":"modalWrapper___rWDvO","exportSettingWrapper":"exportSettingWrapper___pCClH","imgPreviewPart":"imgPreviewPart___PCv0Y","tips":"tips___EVeBl","pottedLine":"pottedLine___AaY68","text":"text___ho3u_"});
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(84519);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(44190);
// EXTERNAL MODULE: ./src/components/mediator.js
var mediator = __webpack_require__(91562);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(59758);
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
var markdown_editor = __webpack_require__(55373);
// EXTERNAL MODULE: ./src/components/image-preview/index.tsx + 1 modules
var image_preview = __webpack_require__(75490);
;// CONCATENATED MODULE: ./src/assets/images/classrooms/halfDottedLine.png
var halfDottedLine_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAAECAYAAADLcnBRAAAAAXNSR0IArs4c6QAAAcNJREFUSEvtlT1oFFEURs+dndmAqGBAMCAoKAqChT+lYGER6xQLlsGdXWMQFETbtREhjQgmuxmLdJIEi1SxCdjYRpCQbkEhoihioYjMneyVCDtMCuG+fqedc9437775ZoTRNZrAaAL/nYDs3bFZTmjB0dA5Jbt8kRfseD2b4YgOOOXlh1wCv6XHttezFWq6wQUvX+WSa7yTBrte19qcUzjg5cs9RfRlgR9ez5oc1xrHvHyZE/NNnvPR69kdDmvOGS9f5gh/pMtWiJe3uRzCl1kTvJcOude1Gc7qgENevswxPvwrSN6kB7RCF5CIuWSRB16vSGkMjGUvX3LCZj3jkteze4zrT757+X0FSRgPeXHzJpsQXsYoohEvsup9Rk2ZM+O+lx9ykdCLM255PU2ZNOO1l6+cUb+ecdrrWYdYd1Avv++MxjgZUnpNeWPG1dCsCJrDgsyKcD10AYFXccaS19MWVzAeevkK108y7no9u83BQnnp5atcnHBD5vnldTXlKYT/FanxJOny1ptTtJm2AVNefsgZrNcz5r2etbhYGI+8fCXncz3zf2StQ1R8Yi00Z4+Pa9yULl+9rqY8Bs57+ZKLePYXdsiA6BdYLZkAAAAASUVORK5CYII=";
;// CONCATENATED MODULE: ./src/assets/images/classrooms/dottedLine.png
var dottedLine_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAn4AAAAECAYAAAAQ9jLuAAAAAXNSR0IArs4c6QAABLVJREFUaEPtmVuIVVUYgL+1z17H0S6kliWaJdlVS7pQBHajoLAMKpjo8hKdfc7MiNmoaA8Fx4IIjMzIuZx9sijLrkRGGURQdHkJjSy7G2bqWHaTKbO99pw/ztRs9rz9ax58qHPeDnzf+tf6/7XWXmtvQ+vXykArA60MtDLQykArA60MtDLwv8iAaY5SFnKCSznGd8R2iL2mzi6tJ51MdA1O0vIjnIUDpp/PtJ48T8G9xdlaPs/Zy/nItDOkdaXCGQ4maPlsTAHbTS+/aj0pMd0VOE7LZ3FC9pm1fKf1ZBFHuoRTtHwWx3DQ9PGpj5dUOM+Hz2JNZaupkmhd6eRU1+AILZ/FEXaYGj9pPSkz1RmmafncXPjF9PKt1pNlHOYGOV3L59aRM/187ONJmXOcIfBxmqydwDazmj+1nnQxyw1xlJbPxtTG92YNP2g96WCKE2Zo+SxOgd9MD99oPanS5gaYo+Vzc65hamzx8aTCXAfWxxmuUYEvTA+/az0pMdMVmKzlszFZ9phH2dP8P+Y6G3aaPn7Uxj5kde5mvDvAbG2//tN1FnabGgPaXMhCJruUmVo+t18Oml6+1HpSpegGOEvL5znbx2ZjEK0rHcxxQpuWz82Hr02N/VpPysxwhilaPovz75lt+OCXlOgHyr6NmIBVtsZyrZdGtDeE57R8xhm2FGPO1XrSzSQ3yM9aflShLZN8DmRJaXiT9j5kBgHtYY0XtH10EatEWKblR7jA0B/GdGg9F3GlCG9o+VyNthdjZmk9qRK6XTgtP6pG4zjR5zDrIt4W4RLfWAGUwjqPaT0XcbcI92n5XO42FGNu1nquwoUyxAdafoQzsM/W/TYLF/GHyBguNpa5ppet2j66EhsFFmj5jAtYUqyxWuslZe6gwRotn8vd67bO1VpPImY78bsINds2hr9s7PfgcCUGBP9LoQm4yNZ4TzumpMRTwK1aPstdwEpbo9r87yJeFeEa3zaA7mKdh7VeErEY0fNZXw2v2Vjfv+EHfcon2n7l5tNBW2e8j+dK7BU41scZnlMh82wf72u9JGI9wi1aPjemqq2zUuulFW5rDLFOy+dq9K6NuVjrSRfHu4SdWj7P2emM83nJkER8hXCyb6zAMD+M2aT10hI9DejU8rncPWRjlo4c/BYaw1XejcBLYcwTWs+VmYewQsvnuO025k6tJ10cnjo2aPk8F1pu8rkFu2h4c/F+i0mBB3wWY3ORSIPrfccksKkY06P1mm94UtEv3pF2BQaKsf7yIFWCdDevaPs1qkYFbve5/buI+4EzvWMFPGL7eVPrpRVulIb/gxF4x8Y8qI0jZU5LhVVaPlej/cXYr38u4kVgnG+ssMAi08cOrdc8NAMXaPlsIxPqYV0/j9IKC6Shn6e5/nxoY+7V9q95I0+FtVo+xzkb+63zJOJJAxN9Y4UBK3y+pLiIJcBlvnGM8ExY/2c/dmXuQTjfuw2Iw5iNWi+NuFYg0vKHvM5CYuvc4NO/MdfZstz08Lk2liuzFOFSLZ+tRXg6jHlW67mIK4DFWj7HbbMxd2k9KXN0Kjyu5Uc9a6ZxnamSat00ok/w/+ojQrVYZ7M2TlKm0wjztXyuRi+HMev+Bu2qoBRawxtVAAAAAElFTkSuQmCC";
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Export/components/ExportSetting/index.tsx
var TextArea = input/* default.TextArea */.Z.TextArea;
var ExportSetting = function ExportSetting(_ref) {
var _data$file_list;
var exercise = _ref.exercise,
loading = _ref.loading,
dispatch = _ref.dispatch;
var workSetting = exercise.workSetting;
var params = (0,_umi_production_exports.useParams)();
params.category = params.categoryId || params.exerciseId;
params.categoryId = params.categoryId || params.exerciseId;
var _useState = (0,react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
disabled = _useState2[0],
setDisabled = _useState2[1];
var _useState3 = (0,react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
pageLoading = _useState4[0],
setPageLoading = _useState4[1];
var _useState5 = (0,react.useState)({
file_list: [],
attachment_id: '',
//卷头左角标附件id
show_title: false,
//展示试卷标题
show_body: false,
//展示考试内容
show_info: false,
//展示题量、分值、考试时长
show_table: false,
//展示得分、评分表格
show_user: false,
//密封线区域设置姓名
show_no: false,
//密封线区域设置学号
show_group: false,
//密封线区域设置专业班级
export_page_num: 40,
//每页导出最大试题数
show_desc: false,
//考试说明选择框
description: '' // 考试说明内容
}),
_useState6 = slicedToArray_default()(_useState5, 2),
data = _useState6[0],
setData = _useState6[1];
(0,react.useEffect)(function () {
setDefaultData();
}, [workSetting]);
(0,react.useEffect)(function () {
dispatch({
type: 'exercise/getWorkSetting',
payload: objectSpread2_default()({}, params)
});
}, []);
var setDefaultData = function setDefaultData() {
var _res$exercise_header2, _res$exercise_header3, _res$exercise_header4, _res$exercise_header5;
var res = JSON.parse(JSON.stringify(workSetting));
Object.keys(data).forEach(function (item) {
var _res$exercise_header;
data[item] = res === null || res === void 0 ? void 0 : (_res$exercise_header = res['exercise_header']) === null || _res$exercise_header === void 0 ? void 0 : _res$exercise_header[item];
});
data.file_list = res !== null && res !== void 0 && (_res$exercise_header2 = res['exercise_header']) !== null && _res$exercise_header2 !== void 0 && _res$exercise_header2.attachment_id ? [{
uid: res === null || res === void 0 ? void 0 : (_res$exercise_header3 = res['exercise_header']) === null || _res$exercise_header3 === void 0 ? void 0 : _res$exercise_header3.attachment_id,
id: res === null || res === void 0 ? void 0 : (_res$exercise_header4 = res['exercise_header']) === null || _res$exercise_header4 === void 0 ? void 0 : _res$exercise_header4.attachment_id,
url: res === null || res === void 0 ? void 0 : (_res$exercise_header5 = res['exercise_header']) === null || _res$exercise_header5 === void 0 ? void 0 : _res$exercise_header5.photo_url
}] : [];
setData(data);
};
var handleSubmit = function handleSubmit() {
var _bodyData$file_list, _bodyData$file_list$, _bodyData$file_list$$;
var bodyData = JSON.parse(JSON.stringify(data));
bodyData.categoryId = params.categoryId;
bodyData.attachment_id = ((_bodyData$file_list = bodyData.file_list) === null || _bodyData$file_list === void 0 ? void 0 : (_bodyData$file_list$ = _bodyData$file_list[0]) === null || _bodyData$file_list$ === void 0 ? void 0 : (_bodyData$file_list$$ = _bodyData$file_list$.response) === null || _bodyData$file_list$$ === void 0 ? void 0 : _bodyData$file_list$$.id) || null;
handleUpdate(bodyData);
};
var handleUpdate = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(bodyData) {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setPageLoading(true);
_context.next = 3;
return (0,fetch/* default */.ZP)("/api/exercises/".concat(params === null || params === void 0 ? void 0 : params.categoryId, "/foramt_settings.json"), {
method: 'post',
body: bodyData
});
case 3:
res = _context.sent;
if (res.status === 0) {
message/* default.success */.ZP.success('更新成功');
dispatch({
type: 'exercise/getCommonHeader',
payload: objectSpread2_default()({}, params)
});
dispatch({
type: 'exercise/getWorkSetting',
payload: objectSpread2_default()({}, params)
});
dispatch({
type: 'exercise/getExerciseExportHeadData',
payload: {
id: params.exerciseId || params.categoryId,
identify: params.userId || null
}
});
setPageLoading(false);
}
case 5:
case "end":
return _context.stop();
}
}, _callee);
}));
return function handleUpdate(_x) {
return _ref2.apply(this, arguments);
};
}();
var uploadProps = {
disabled: disabled,
multiple: false,
listType: "picture-card",
onPreview: function onPreview(file) {
mediator/* default.publish */.Z.publish('preview-image', file.thumbUrl || file.url);
},
withCredentials: true,
fileList: data.file_list,
beforeUpload: function beforeUpload(file) {
var fileSize = file.size / 1024;
if (fileSize > 200) {
message/* default.error */.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(200KB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20");
return false;
}
return true;
},
action: "".concat(env/* default.API_SERVER */.Z.API_SERVER, "/api/attachments.json"),
onChange: function onChange(info) {
var fileList = info.fileList.filter(function (file) {
return !!file.status;
});
data.file_list = fileList;
setData(Object.assign({}, data));
},
onRemove: function () {
var _onRemove = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(file) {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
data.file_list = [];
setData(Object.assign({}, data));
return _context2.abrupt("return", true);
case 3:
case "end":
return _context2.stop();
}
}, _callee2);
}));
function onRemove(_x2) {
return _onRemove.apply(this, arguments);
}
return onRemove;
}()
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
title: "\u5BFC\u51FA\u8BBE\u7F6E",
className: ExportSettingmodules.modalWrapper,
width: 900,
centered: true,
open: exercise.actionTabs.key === 'exportSetting',
onOk: function onOk() {
return handleSubmit();
},
onCancel: function onCancel() {
setDefaultData();
dispatch({
type: 'exercise/setActionTabs',
payload: {}
});
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: ExportSettingmodules.exportSettingWrapper,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
spinning: loading['exercise/getWorkSetting'] || pageLoading,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
wrap: false,
justify: "space-between",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5377\u5934\u5DE6\u89D2\u6807"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: ExportSettingmodules.tips,
children: "\u56FE\u7247\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A700px*500px\uFF0C\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7200k"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt15",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
children: !((_data$file_list = data.file_list) !== null && _data$file_list !== void 0 && _data$file_list.length) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(PlusOutlined/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
marginTop: 8
},
children: "\u4E0A\u4F20"
})]
})
}))
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 24,
className: "mt15",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
checked: data.show_title,
disabled: disabled,
onChange: function onChange(e) {
data.show_title = e.target.checked;
setData(Object.assign({}, data));
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5C55\u793A\u8BD5\u5377\u6807\u9898"
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 24,
className: "mt15",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
checked: data.show_body,
disabled: disabled,
onChange: function onChange(e) {
data.show_body = e.target.checked;
setData(Object.assign({}, data));
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5C55\u793A\u8003\u8BD5\u5185\u5BB9\uFF08\u5373\u672C\u8BD5\u5377\u6240\u5C5E\u8BFE\u7A0B\u540D\u79F0\uFF09"
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 24,
className: "mt15",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
checked: data.show_info,
disabled: disabled,
onChange: function onChange(e) {
data.show_info = e.target.checked;
setData(Object.assign({}, data));
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5C55\u793A\u9898\u91CF\u3001\u5206\u503C\u3001\u8003\u8BD5\u65F6\u957F"
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 24,
className: "mt15",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
checked: data.show_table,
disabled: disabled,
onChange: function onChange(e) {
data.show_table = e.target.checked;
setData(Object.assign({}, data));
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5C55\u793A\u5F97\u5206\u3001\u8BC4\u5206\u8868\u683C"
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "mt20 ".concat(ExportSettingmodules.pottedLine),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: halfDottedLine_namespaceObject,
alt: ""
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: ExportSettingmodules.text,
children: "\u5BC6\u5C01\u7EBF\u533A\u57DF\u8BBE\u7F6E"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: halfDottedLine_namespaceObject,
alt: ""
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: "mt15",
justify: "center",
style: {
width: 320
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
className: "pl8",
checked: data.show_user,
disabled: disabled,
onChange: function onChange(e) {
data.show_user = e.target.checked;
setData(Object.assign({}, data));
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u59D3\u540D"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
checked: data.show_no,
disabled: disabled,
onChange: function onChange(e) {
data.show_no = e.target.checked;
setData(Object.assign({}, data));
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5B66\u53F7"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
checked: data.show_group,
disabled: disabled,
onChange: function onChange(e) {
data.show_group = e.target.checked;
setData(Object.assign({}, data));
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u4E13\u4E1A\u73ED\u7EA7"
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: dottedLine_namespaceObject,
alt: "",
className: "mt15",
style: {
width: 320
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
span: 24,
className: "mt15",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u6BCF\u9875\u5BFC\u51FA\u6700\u5927\u8BD5\u9898\u6570\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
size: "large",
min: 1,
value: !data.export_page_num ? 40 : data.export_page_num,
onChange: function onChange(value) {
data.export_page_num = value;
setData(objectSpread2_default()({}, data));
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml10",
children: "\u9898"
})]
})
// <Col span={24} className="mt15 pl30">
// <Checkbox
// checked={data.export_page_num}
// disabled={disabled}
// onChange={e => {
// data.export_page_num = e.target.checked
// setData(Object.assign({}, data))
// }}
// >
// <div>每页导出题目数</div>
// </Checkbox>
// </Col>
, /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
className: "mt15",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
checked: data.show_desc,
disabled: disabled,
onChange: function onChange(e) {
data.show_desc = e.target.checked;
setData(Object.assign({}, data));
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u8003\u8BD5\u8BF4\u660E"
})
})
}), data.show_desc && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt15",
children:
/*#__PURE__*/
// disabled ?
// <TextArea style={{ height: 150, width: 550 }} disabled value={data.description} /> :
(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
width: 550,
height: 100,
defaultValue: data.description,
id: "exercise-detail-config-exam-description-id",
onChange: function onChange(value) {
data.description = value;
setData(Object.assign({}, data));
}
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
className: ExportSettingmodules.imgPreviewPart,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "pb10",
children: "\u793A\u4F8B\u56FE\u7247\u9884\u89C8\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: ImagesIcon/* exportExerciseTemplate */.qz
})]
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(image_preview/* default */.Z, {})]
})
});
};
/* harmony default export */ var components_ExportSetting = ((0,_umi_production_exports.connect)(function (_ref3) {
var exercise = _ref3.exercise,
loading = _ref3.loading,
globalSetting = _ref3.globalSetting;
return {
exercise: exercise,
loading: loading.effects,
globalSetting: globalSetting
};
})(ExportSetting));
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Export/components/Head/index.tsx
var Head = function Head(_ref) {
var _exercise$exerciseExp2, _exercise$commonHeade, _exercise$exerciseExp3, _exercise$commonHeade2;
var _ref$isPreview = _ref.isPreview,
isPreview = _ref$isPreview === void 0 ? false : _ref$isPreview,
_ref$isExportBlank = _ref.isExportBlank,
isExportBlank = _ref$isExportBlank === void 0 ? false : _ref$isExportBlank,
activeTabs = _ref.activeTabs,
exercise = _ref.exercise,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
user = _ref.user,
dispatch = _ref.dispatch,
_ref$showExportBtn = _ref.showExportBtn,
showExportBtn = _ref$showExportBtn === void 0 ? false : _ref$showExportBtn;
var params = (0,_umi_production_exports.useParams)();
var userInfo = user.userInfo;
var _useState = (0,react.useState)(),
_useState2 = slicedToArray_default()(_useState, 2),
headData = _useState2[0],
setHeadData = _useState2[1];
var _useState3 = (0,react.useState)(),
_useState4 = slicedToArray_default()(_useState3, 2),
tableData = _useState4[0],
setTableData = _useState4[1];
var leftheight = (0,react.useRef)(null);
var _useState5 = (0,react.useState)(21),
_useState6 = slicedToArray_default()(_useState5, 2),
leftheights = _useState6[0],
setleftheights = _useState6[1];
(0,react.useEffect)(function () {
if ((0,util/* isUnOrNull */.W)(activeTabs)) {
// getData();
} else {
// 兼容试卷预览tab 切换重新获取数据
activeTabs === "2" && getData();
}
}, [params.userId, params.coursesId, params.exerciseId, params.categoryId, activeTabs]);
(0,react.useEffect)(function () {
if (leftheight.current) {
setleftheights(leftheight.current.clientHeight);
}
}, [leftheight.current]);
(0,react.useEffect)(function () {
var _exercise$exerciseExp;
if ((_exercise$exerciseExp = exercise.exerciseExportHeadData) !== null && _exercise$exerciseExp !== void 0 && _exercise$exerciseExp.title) {
var res = exercise.exerciseExportHeadData;
setHeadData(objectSpread2_default()({}, res || {}));
var _ref2 = res || {},
table = _ref2.table;
var total_score;
var actual_total_score;
if (table !== null && table !== void 0 && table.total_singles_scores || table !== null && table !== void 0 && table.total_doubles_scores || table !== null && table !== void 0 && table.total_nulls_scores || table !== null && table !== void 0 && table.total_judges_scores || table !== null && table !== void 0 && table.total_pros_scores || table !== null && table !== void 0 && table.total_shixuns_scores || table !== null && table !== void 0 && table.total_mains_scores || table !== null && table !== void 0 && table.total_combination_scores) {
total_score = Number(table === null || table === void 0 ? void 0 : table.total_singles_scores) + Number(table === null || table === void 0 ? void 0 : table.total_doubles_scores) + Number(table === null || table === void 0 ? void 0 : table.total_nulls_scores) + Number(table === null || table === void 0 ? void 0 : table.total_judges_scores) + Number(table === null || table === void 0 ? void 0 : table.total_pros_scores) + Number(table === null || table === void 0 ? void 0 : table.total_shixuns_scores) + Number(table === null || table === void 0 ? void 0 : table.total_mains_scores) + Number(table === null || table === void 0 ? void 0 : table.total_combination_scores);
}
if (table !== null && table !== void 0 && table.singles_scores || table !== null && table !== void 0 && table.doubles_scores || table !== null && table !== void 0 && table.nulls_scores || table !== null && table !== void 0 && table.judges_scores || table !== null && table !== void 0 && table.pros_scores || table !== null && table !== void 0 && table.shixuns_scores || table !== null && table !== void 0 && table.mains_scores || table !== null && table !== void 0 && table.combination_scores) {
actual_total_score = Number(table === null || table === void 0 ? void 0 : table.singles_scores) + Number(table === null || table === void 0 ? void 0 : table.doubles_scores) + Number(table === null || table === void 0 ? void 0 : table.nulls_scores) + Number(table === null || table === void 0 ? void 0 : table.judges_scores) + Number(table === null || table === void 0 ? void 0 : table.pros_scores) + Number(table === null || table === void 0 ? void 0 : table.shixuns_scores) + Number(table === null || table === void 0 ? void 0 : table.mains_scores) + Number(table === null || table === void 0 ? void 0 : table.combination_scores);
}
var data = [{
key: '1',
name: '应得分',
singles_score: table === null || table === void 0 ? void 0 : table.total_singles_scores,
doubles_score: table === null || table === void 0 ? void 0 : table.total_doubles_scores,
nulls_score: table === null || table === void 0 ? void 0 : table.total_nulls_scores,
judges_score: table === null || table === void 0 ? void 0 : table.total_judges_scores,
pros_score: table === null || table === void 0 ? void 0 : table.total_pros_scores,
shixuns_score: table === null || table === void 0 ? void 0 : table.total_shixuns_scores,
mains_score: table === null || table === void 0 ? void 0 : table.total_mains_scores,
total_combination_scores: table === null || table === void 0 ? void 0 : table.total_combination_scores,
total_score: total_score
}, {
key: '2',
name: '实得分',
singles_score: table === null || table === void 0 ? void 0 : table.singles_scores,
doubles_score: table === null || table === void 0 ? void 0 : table.doubles_scores,
nulls_score: table === null || table === void 0 ? void 0 : table.nulls_scores,
judges_score: table === null || table === void 0 ? void 0 : table.judges_scores,
pros_score: table === null || table === void 0 ? void 0 : table.pros_scores,
shixuns_score: table === null || table === void 0 ? void 0 : table.shixuns_scores,
mains_score: table === null || table === void 0 ? void 0 : table.mains_scores,
total_combination_scores: table === null || table === void 0 ? void 0 : table.combination_scores,
total_score: actual_total_score
}, {
key: '3',
name: '评卷人'
}];
var blankData = [{
key: '1',
name: '应得分',
singles_score: table === null || table === void 0 ? void 0 : table.total_singles_scores,
doubles_score: table === null || table === void 0 ? void 0 : table.total_doubles_scores,
nulls_score: table === null || table === void 0 ? void 0 : table.total_nulls_scores,
judges_score: table === null || table === void 0 ? void 0 : table.total_judges_scores,
pros_score: table === null || table === void 0 ? void 0 : table.total_pros_scores,
shixuns_score: table === null || table === void 0 ? void 0 : table.total_shixuns_scores,
mains_score: table === null || table === void 0 ? void 0 : table.total_mains_scores,
total_combination_scores: table === null || table === void 0 ? void 0 : table.total_combination_scores,
total_score: total_score
}, {
key: '2',
name: '实得分'
}, {
key: '3',
name: '评卷人'
}];
setTableData(toConsumableArray_default()(isExportBlank ? blankData : data));
}
}, [exercise.exerciseExportHeadData]);
var getData = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var query, res, _ref4, table, total_score, actual_total_score, data, blankData;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
query = {
id: params.exerciseId || params.categoryId,
identify: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.login) || null
};
_context.next = 3;
return (0,service_exercise/* getExerciseExportHeadData */.iw)(query);
case 3:
res = _context.sent;
setHeadData(res || {});
_ref4 = res || {}, table = _ref4.table;
if (table !== null && table !== void 0 && table.total_singles_scores || table !== null && table !== void 0 && table.total_doubles_scores || table !== null && table !== void 0 && table.total_nulls_scores || table !== null && table !== void 0 && table.total_judges_scores || table !== null && table !== void 0 && table.total_pros_scores || table !== null && table !== void 0 && table.total_shixuns_scores || table !== null && table !== void 0 && table.total_mains_scores || table !== null && table !== void 0 && table.total_combination_scores) {
total_score = Number(table === null || table === void 0 ? void 0 : table.total_singles_scores) + Number(table === null || table === void 0 ? void 0 : table.total_doubles_scores) + Number(table === null || table === void 0 ? void 0 : table.total_nulls_scores) + Number(table === null || table === void 0 ? void 0 : table.total_judges_scores) + Number(table === null || table === void 0 ? void 0 : table.total_pros_scores) + Number(table === null || table === void 0 ? void 0 : table.total_shixuns_scores) + Number(table === null || table === void 0 ? void 0 : table.total_mains_scores) + Number(table === null || table === void 0 ? void 0 : table.total_combination_scores);
}
if (table !== null && table !== void 0 && table.singles_scores || table !== null && table !== void 0 && table.doubles_scores || table !== null && table !== void 0 && table.nulls_scores || table !== null && table !== void 0 && table.judges_scores || table !== null && table !== void 0 && table.pros_scores || table !== null && table !== void 0 && table.shixuns_scores || table !== null && table !== void 0 && table.mains_scores || table !== null && table !== void 0 && table.combination_scores) {
actual_total_score = Number(table === null || table === void 0 ? void 0 : table.singles_scores) + Number(table === null || table === void 0 ? void 0 : table.doubles_scores) + Number(table === null || table === void 0 ? void 0 : table.nulls_scores) + Number(table === null || table === void 0 ? void 0 : table.judges_scores) + Number(table === null || table === void 0 ? void 0 : table.pros_scores) + Number(table === null || table === void 0 ? void 0 : table.shixuns_scores) + Number(table === null || table === void 0 ? void 0 : table.mains_scores) + Number(table === null || table === void 0 ? void 0 : table.combination_scores);
}
data = [{
key: '1',
name: '应得分',
singles_score: table === null || table === void 0 ? void 0 : table.total_singles_scores,
doubles_score: table === null || table === void 0 ? void 0 : table.total_doubles_scores,
nulls_score: table === null || table === void 0 ? void 0 : table.total_nulls_scores,
judges_score: table === null || table === void 0 ? void 0 : table.total_judges_scores,
pros_score: table === null || table === void 0 ? void 0 : table.total_pros_scores,
shixuns_score: table === null || table === void 0 ? void 0 : table.total_shixuns_scores,
mains_score: table === null || table === void 0 ? void 0 : table.total_mains_scores,
total_combination_scores: table === null || table === void 0 ? void 0 : table.total_combination_scores,
total_score: total_score
}, {
key: '2',
name: '实得分',
singles_score: table === null || table === void 0 ? void 0 : table.singles_scores,
doubles_score: table === null || table === void 0 ? void 0 : table.doubles_scores,
nulls_score: table === null || table === void 0 ? void 0 : table.nulls_scores,
judges_score: table === null || table === void 0 ? void 0 : table.judges_scores,
pros_score: table === null || table === void 0 ? void 0 : table.pros_scores,
shixuns_score: table === null || table === void 0 ? void 0 : table.shixuns_scores,
mains_score: table === null || table === void 0 ? void 0 : table.mains_scores,
total_combination_scores: table === null || table === void 0 ? void 0 : table.combination_scores,
total_score: actual_total_score
}, {
key: '3',
name: '评卷人'
}];
blankData = [{
key: '1',
name: '应得分'
}, {
key: '2',
name: '实得分'
}, {
key: '3',
name: '评卷人'
}];
setTableData(isExportBlank ? blankData : data);
case 11:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData() {
return _ref3.apply(this, arguments);
};
}();
var columns = [{
width: '10%',
title: '题型',
align: 'center',
dataIndex: 'name',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
children: text
});
}
}, {
width: '10%',
title: '单选题',
align: 'center',
dataIndex: 'singles_score',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
children: text === '0.0' ? 0 : text
});
}
}, {
width: '10%',
title: '多选题',
align: 'center',
dataIndex: 'doubles_score',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
children: text === '0.0' ? 0 : text
});
}
}, {
width: '10%',
title: '填空题',
align: 'center',
dataIndex: 'nulls_score',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
children: text === '0.0' ? 0 : text
});
}
}, {
width: 140,
title: '判断题',
align: 'center',
dataIndex: 'judges_score',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
children: text === '0.0' ? 0 : text
});
}
}, {
width: '10%',
title: '编程题',
align: 'center',
dataIndex: 'pros_score',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
children: text === '0.0' ? 0 : text
});
}
}, {
width: '10%',
title: '实训题',
align: 'center',
dataIndex: 'shixuns_score',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
children: text === '0.0' ? 0 : text
});
}
}, {
width: '10%',
title: '简答题',
align: 'center',
dataIndex: 'mains_score',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
children: text === '0.0' ? 0 : text
});
}
}, {
width: '10%',
title: '组合题',
align: 'center',
dataIndex: 'total_combination_scores',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
children: text === '0.0' ? 0 : text
});
}
}, {
width: '10%',
title: '总分',
align: 'center',
dataIndex: 'total_score',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
children: text === '0.0' ? 0 : text
});
}
}];
var _ref5 = headData || {},
exercise_header = _ref5.exercise_header;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [((exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_user) || (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_no) || (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_group)) && /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: Headmodules.glassSeal,
children: [(exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_user) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u59D3\u540D\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: headData === null || headData === void 0 ? void 0 : headData.user
})]
}), (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_no) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u5B66\u53F7\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: headData === null || headData === void 0 ? void 0 : headData.student_id
})]
}), (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_group) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u4E13\u4E1A\u73ED\u7EA7\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: headData === null || headData === void 0 ? void 0 : headData.group_name
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "".concat(Headmodules.wrap, " ").concat(isPreview ? 'pl20' : '', " "),
children: [(headData === null || headData === void 0 ? void 0 : headData.photo_url) && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: Headmodules.img,
src: headData === null || headData === void 0 ? void 0 : headData.photo_url
}), (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_title) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: Headmodules.paperHeader,
justify: "center",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: headData === null || headData === void 0 ? void 0 : headData.title
}), showExportBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(SettingOutlined/* default */.Z, {}),
className: Headmodules.exportBtn,
onClick: function onClick() {
dispatch({
type: 'exercise/setActionTabs',
payload: {
key: 'exportSetting'
}
});
},
children: "\u5BFC\u51FA\u8BBE\u7F6E"
})]
}), (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_body) && ((exercise === null || exercise === void 0 ? void 0 : (_exercise$exerciseExp2 = exercise.exerciseExportHeadData) === null || _exercise$exerciseExp2 === void 0 ? void 0 : _exercise$exerciseExp2.exercise_description) || (exercise === null || exercise === void 0 ? void 0 : (_exercise$commonHeade = exercise.commonHeader) === null || _exercise$commonHeade === void 0 ? void 0 : _exercise$commonHeade.exercise_description)) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
ref: leftheight,
style: {
justifyContent: leftheights === 21 ? 'center' : 'left',
wordBreak: 'break-all',
display: 'flex',
textAlign: 'left'
},
className: "tc c-grey-333",
children: "\u8BD5\u5377\u987B\u77E5\uFF1A".concat((exercise === null || exercise === void 0 ? void 0 : (_exercise$exerciseExp3 = exercise.exerciseExportHeadData) === null || _exercise$exerciseExp3 === void 0 ? void 0 : _exercise$exerciseExp3.exercise_description) || (exercise === null || exercise === void 0 ? void 0 : (_exercise$commonHeade2 = exercise.commonHeader) === null || _exercise$commonHeade2 === void 0 ? void 0 : _exercise$commonHeade2.exercise_description))
}), (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_info) && /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: "tc c-grey-666",
children: ["\u5171:\u3010", headData === null || headData === void 0 ? void 0 : headData.large_counts, "\u5927\u9898\u3011\u3010", headData === null || headData === void 0 ? void 0 : headData.total_count, "\u5C0F\u9898\u3011\u3010 \u6EE1\u5206", headData === null || headData === void 0 ? void 0 : headData.score, "\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010", (headData === null || headData === void 0 ? void 0 : headData.time) > -1 ? "".concat(headData === null || headData === void 0 ? void 0 : headData.time, "\u5206\u949F") : "\u4E0D\u9650", "\u3011"]
}), (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_desc) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt10",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: "font16",
children: "\u8003\u8BD5\u8BF4\u660E\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: headData === null || headData === void 0 ? void 0 : headData.description
})]
}), (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_table) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt10",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
className: Headmodules.table,
columns: columns,
dataSource: toConsumableArray_default()(tableData || []),
bordered: true,
pagination: false
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_ExportSetting, {})]
});
};
/* harmony default export */ var components_Head = ((0,_umi_production_exports.connect)(function (_ref6) {
var exercise = _ref6.exercise,
loading = _ref6.loading,
user = _ref6.user,
globalSetting = _ref6.globalSetting;
return {
exercise: exercise,
globalSetting: globalSetting,
user: user,
loading: loading.effects
};
})(Head));
/***/ }),
/***/ 27049:
/*!***********************************************!*\
!*** ./node_modules/antd/es/divider/index.js ***!
\***********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ 87462);
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ 4942);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 94184);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider */ 53124);
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
var Divider = function Divider(props) {
var _classNames;
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_1__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_2__/* .ConfigContext */ .E_),
getPrefixCls = _React$useContext.getPrefixCls,
direction = _React$useContext.direction;
var customizePrefixCls = props.prefixCls,
_props$type = props.type,
type = _props$type === void 0 ? 'horizontal' : _props$type,
_props$orientation = props.orientation,
orientation = _props$orientation === void 0 ? 'center' : _props$orientation,
orientationMargin = props.orientationMargin,
className = props.className,
children = props.children,
dashed = props.dashed,
plain = props.plain,
restProps = __rest(props, ["prefixCls", "type", "orientation", "orientationMargin", "className", "children", "dashed", "plain"]);
var prefixCls = getPrefixCls('divider', customizePrefixCls);
var orientationPrefix = orientation.length > 0 ? "-".concat(orientation) : orientation;
var hasChildren = !!children;
var hasCustomMarginLeft = orientation === 'left' && orientationMargin != null;
var hasCustomMarginRight = orientation === 'right' && orientationMargin != null;
var classString = classnames__WEBPACK_IMPORTED_MODULE_0___default()(prefixCls, "".concat(prefixCls, "-").concat(type), (_classNames = {}, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-with-text"), hasChildren), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-with-text").concat(orientationPrefix), hasChildren), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-dashed"), !!dashed), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-plain"), !!plain), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-no-default-orientation-margin-left"), hasCustomMarginLeft), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-no-default-orientation-margin-right"), hasCustomMarginRight), _classNames), className);
var innerStyle = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({}, hasCustomMarginLeft && {
marginLeft: orientationMargin
}), hasCustomMarginRight && {
marginRight: orientationMargin
});
// Warning children not work in vertical mode
if (false) {}
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({
className: classString
}, restProps, {
role: "separator"
}), children && type !== 'vertical' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
className: "".concat(prefixCls, "-inner-text"),
style: innerStyle
}, children));
};
/* harmony default export */ __webpack_exports__["Z"] = (Divider);
/***/ }),
/***/ 98541:
/*!*****************************************************************!*\
!*** ./node_modules/antd/es/divider/style/index.js + 1 modules ***!
\*****************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
// EXTERNAL MODULE: ./node_modules/antd/es/style/default.less
var style_default = __webpack_require__(43146);
;// CONCATENATED MODULE: ./node_modules/antd/es/divider/style/index.less
// extracted by mini-css-extract-plugin
;// CONCATENATED MODULE: ./node_modules/antd/es/divider/style/index.js
/***/ })
}]);