Auto Submit

dev_local_v9_test4
autosubmit 2 years ago
parent f71043bb70
commit 199ad1b3d7

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[10646,52720,73336,45504,98964,38996,27491,44467,93221,88178,14161,70122,81326,98255],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[10646,52720,73336,45504,98964,38996,27491,93221,88178,14161,70122,81326,98255],{
/***/ 89136:
/*!*****************************************************************************************************!*\

@ -230,8 +230,8 @@ var context = __webpack_require__(36355);
var useLocale = __webpack_require__(9763);
// EXTERNAL MODULE: ./node_modules/_@ctrl_tinycolor@3.6.1@@ctrl/tinycolor/dist/module/index.js
var dist_module = __webpack_require__(64993);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/useToken.js + 4 modules
var useToken = __webpack_require__(88088);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/useToken.js + 2 modules
var useToken = __webpack_require__(26068);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/empty/empty.js
"use client";

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[71796],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[13261],{
/***/ 7054:
/*!******************************************************************************************************!*\
@ -46,27 +46,23 @@ if (false) {}
/***/ }),
/***/ 71796:
/*!***************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/typography/index.js + 18 modules ***!
\***************************************************************************/
/***/ 31302:
/*!******************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EditOutlined.js + 1 modules ***!
\******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ typography; }
Z: function() { return /* binding */ icons_EditOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CheckOutlined.js + 1 modules
var CheckOutlined = __webpack_require__(75742);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CopyOutlined.js + 1 modules
var CopyOutlined = __webpack_require__(7054);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
// 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.4.2@@ant-design/icons-svg/es/asn/EditOutlined.js
// This icon file is generated automatically.
var EditOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" } }] }, "name": "edit", "theme": "outlined" };
@ -93,6 +89,30 @@ var EditOutlined_EditOutlined = function EditOutlined(props, ref) {
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EditOutlined_EditOutlined);
if (false) {}
/* harmony default export */ var icons_EditOutlined = (RefIcon);
/***/ }),
/***/ 13261:
/*!***************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/typography/index.js + 16 modules ***!
\***************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ typography; }
});
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CheckOutlined.js + 1 modules
var CheckOutlined = __webpack_require__(75742);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CopyOutlined.js + 1 modules
var CopyOutlined = __webpack_require__(7054);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EditOutlined.js + 1 modules
var EditOutlined = __webpack_require__(31302);
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
@ -191,11 +211,15 @@ var context = __webpack_require__(36355);
var useLocale = __webpack_require__(9763);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var es_tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EnterOutlined.js
// This icon file is generated automatically.
var EnterOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z" } }] }, "name": "enter", "theme": "outlined" };
/* harmony default export */ var asn_EnterOutlined = (EnterOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EnterOutlined.js
// GENERATE BY ./scripts/generate.ts
@ -212,9 +236,9 @@ var EnterOutlined_EnterOutlined = function EnterOutlined(props, ref) {
};
/**![enter](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg2NCAxNzBoLTYwYy00LjQgMC04IDMuNi04IDh2NTE4SDMxMHYtNzNjMC02LjctNy44LTEwLjUtMTMtNi4zbC0xNDEuOSAxMTJhOCA4IDAgMDAwIDEyLjZsMTQxLjkgMTEyYzUuMyA0LjIgMTMgLjQgMTMtNi4zdi03NWg0OThjMzUuMyAwIDY0LTI4LjcgNjQtNjRWMTc4YzAtNC40LTMuNi04LTgtOHoiIC8+PC9zdmc+) */
var EnterOutlined_RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EnterOutlined_EnterOutlined);
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EnterOutlined_EnterOutlined);
if (false) {}
/* harmony default export */ var icons_EnterOutlined = (EnterOutlined_RefIcon);
/* harmony default export */ var icons_EnterOutlined = (RefIcon);
// 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/input/TextArea.js
@ -1263,7 +1287,7 @@ const Base = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
className: `${prefixCls}-edit`,
onClick: onEditClick,
"aria-label": ariaLabel
}, icon || /*#__PURE__*/_react_17_0_2_react.createElement(icons_EditOutlined, {
}, icon || /*#__PURE__*/_react_17_0_2_react.createElement(EditOutlined/* default */.Z, {
role: "button"
}))) : null;
};

@ -2173,8 +2173,8 @@ var Tour = function Tour(props) {
var _util_placements = __webpack_require__(79676);
// 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/theme/useToken.js + 4 modules
var useToken = __webpack_require__(88088);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/useToken.js + 2 modules
var useToken = __webpack_require__(26068);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CloseOutlined.js + 1 modules
var CloseOutlined = __webpack_require__(14834);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js

@ -3951,8 +3951,8 @@ var en_US = __webpack_require__(31724);
var es_pagination = __webpack_require__(53864);
// 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/theme/useToken.js + 4 modules
var useToken = __webpack_require__(88088);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/useToken.js + 2 modules
var useToken = __webpack_require__(26068);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/table/ExpandIcon.js
"use client";

File diff suppressed because one or more lines are too long

@ -12,6 +12,7 @@
__webpack_require__.d(__webpack_exports__, {
xp: function() { return /* reexport */ anony_namespaceObject; },
AG: function() { return /* reexport */ blibli_namespaceObject; },
uM: function() { return /* reexport */ certificate_namespaceObject; },
JA: function() { return /* reexport */ chrome_namespaceObject; },
FX: function() { return /* reexport */ cjjs_namespaceObject; },
k$: function() { return /* reexport */ done1_namespaceObject; },
@ -25,7 +26,6 @@ __webpack_require__.d(__webpack_exports__, {
Gm: function() { return /* reexport */ firefox_namespaceObject; },
yt: function() { return /* reexport */ hb_namespaceObject; },
I2: function() { return /* reexport */ mainbanner_namespaceObject; },
sQ: function() { return /* reexport */ match_ad_namespaceObject; },
z3: function() { return /* reexport */ nodata; },
GY: function() { return /* reexport */ notice_namespaceObject; },
wC: function() { return /* reexport */ qrCode; },
@ -34,13 +34,12 @@ __webpack_require__.d(__webpack_exports__, {
L6: function() { return /* reexport */ search1_namespaceObject; },
RL: function() { return /* reexport */ search; },
f$: function() { return /* reexport */ small_program_namespaceObject; },
X3: function() { return /* reexport */ teacherQQ_namespaceObject; },
d6: function() { return /* reexport */ tx_live_namespaceObject; },
j1: function() { return /* reexport */ weibaitong_namespaceObject; },
g4: function() { return /* reexport */ zoom_namespaceObject; }
});
// UNUSED EXPORTS: UserQrCode, certificateIcon, charpterWhiteIcon, chooseIcon, groups1Icon, groups2Icon, groups3Icon, lockcloseIcon, qrCode
// UNUSED EXPORTS: UserQrCode, charpterWhiteIcon, chooseIcon, groups1Icon, groups2Icon, groups3Icon, lockcloseIcon, matchAdIcon, qrCode, teacherQQIcon
// EXTERNAL MODULE: ./src/assets/images/icons/search.png
var search = __webpack_require__(58143);

@ -769,8 +769,8 @@ var context = __webpack_require__(36355);
var useLocale = __webpack_require__(9763);
// EXTERNAL MODULE: ./node_modules/_@ctrl_tinycolor@3.6.1@@ctrl/tinycolor/dist/module/index.js
var dist_module = __webpack_require__(64993);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/useToken.js + 4 modules
var useToken = __webpack_require__(88088);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/useToken.js + 2 modules
var useToken = __webpack_require__(26068);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/empty/empty.js
"use client";

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[23942,73336,79074,56219,99998,39011,38996,27491,44467,93221,88178,14161,70122,98255],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[23942,73336,79074,56219,99998,39011,38996,27491,93221,88178,14161,70122,98255],{
/***/ 89136:
/*!*****************************************************************************************************!*\

@ -161,8 +161,8 @@ var context = __webpack_require__(36355);
var useLocale = __webpack_require__(9763);
// EXTERNAL MODULE: ./node_modules/_@ctrl_tinycolor@3.6.1@@ctrl/tinycolor/dist/module/index.js
var dist_module = __webpack_require__(64993);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/useToken.js + 4 modules
var useToken = __webpack_require__(88088);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/useToken.js + 2 modules
var useToken = __webpack_require__(26068);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/empty/empty.js
"use client";

@ -1,5 +1,449 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[62945],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[24698],{
/***/ 89136:
/*!*****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
\*****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_EyeOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
// 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.4.2@@ant-design/icons-svg/es/asn/EyeOutlined.js
// This icon file is generated automatically.
var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeOutlined
}));
};
/**![eye](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk0Mi4yIDQ4Ni4yQzg0Ny40IDI4Ni41IDcwNC4xIDE4NiA1MTIgMTg2Yy0xOTIuMiAwLTMzNS40IDEwMC41LTQzMC4yIDMwMC4zYTYwLjMgNjAuMyAwIDAwMCA1MS41QzE3Ni42IDczNy41IDMxOS45IDgzOCA1MTIgODM4YzE5Mi4yIDAgMzM1LjQtMTAwLjUgNDMwLjItMzAwLjMgNy43LTE2LjIgNy43LTM1IDAtNTEuNXpNNTEyIDc2NmMtMTYxLjMgMC0yNzkuNC04MS44LTM2Mi43LTI1NEMyMzIuNiAzMzkuOCAzNTAuNyAyNTggNTEyIDI1OGMxNjEuMyAwIDI3OS40IDgxLjggMzYyLjcgMjU0Qzc5MS41IDY4NC4yIDY3My40IDc2NiA1MTIgNzY2em0tNC00MzBjLTk3LjIgMC0xNzYgNzguOC0xNzYgMTc2czc4LjggMTc2IDE3NiAxNzYgMTc2LTc4LjggMTc2LTE3Ni03OC44LTE3Ni0xNzYtMTc2em0wIDI4OGMtNjEuOSAwLTExMi01MC4xLTExMi0xMTJzNTAuMS0xMTIgMTEyLTExMiAxMTIgNTAuMSAxMTIgMTEyLTUwLjEgMTEyLTExMiAxMTJ6IiAvPjwvc3ZnPg==) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined);
if (false) {}
/* harmony default export */ var icons_EyeOutlined = (RefIcon);
/***/ }),
/***/ 98135:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ input; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_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/form/context.js
var form_context = __webpack_require__(32441);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js
var style = __webpack_require__(9937);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js
"use client";
const Group = props => {
const {
getPrefixCls,
direction
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
className
} = props;
const prefixCls = getPrefixCls('input-group', customizePrefixCls);
const inputPrefixCls = getPrefixCls('input');
const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls);
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
[`${prefixCls}-lg`]: props.size === 'large',
[`${prefixCls}-sm`]: props.size === 'small',
[`${prefixCls}-compact`]: props.compact,
[`${prefixCls}-rtl`]: direction === 'rtl'
}, hashId, className);
const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM);
const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
isFormItemInput: false
}), [formItemContext]);
if (false) {}
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: cls,
style: props.style,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave,
onFocus: props.onFocus,
onBlur: props.onBlur
}, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, {
value: groupFormItemContext
}, props.children)));
};
/* harmony default export */ var input_Group = (Group);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules
var Input = __webpack_require__(9432);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js
// This icon file is generated automatically.
var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" };
/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeInvisibleOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeInvisibleOutlined
}));
};
/**![eye-invisible](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk0Mi4yIDQ4Ni4yUTg4OS40NyAzNzUuMTEgODE2LjcgMzA1bC01MC44OCA1MC44OEM4MDcuMzEgMzk1LjUzIDg0My40NSA0NDcuNCA4NzQuNyA1MTIgNzkxLjUgNjg0LjIgNjczLjQgNzY2IDUxMiA3NjZxLTcyLjY3IDAtMTMzLjg3LTIyLjM4TDMyMyA3OTguNzVRNDA4IDgzOCA1MTIgODM4cTI4OC4zIDAgNDMwLjItMzAwLjNhNjAuMjkgNjAuMjkgMCAwMDAtNTEuNXptLTYzLjU3LTMyMC42NEw4MzYgMTIyLjg4YTggOCAwIDAwLTExLjMyIDBMNzE1LjMxIDIzMi4yUTYyNC44NiAxODYgNTEyIDE4NnEtMjg4LjMgMC00MzAuMiAzMDAuM2E2MC4zIDYwLjMgMCAwMDAgNTEuNXE1Ni42OSAxMTkuNCAxMzYuNSAxOTEuNDFMMTEyLjQ4IDgzNWE4IDggMCAwMDAgMTEuMzFMMTU1LjE3IDg4OWE4IDggMCAwMDExLjMxIDBsNzEyLjE1LTcxMi4xMmE4IDggMCAwMDAtMTEuMzJ6TTE0OS4zIDUxMkMyMzIuNiAzMzkuOCAzNTAuNyAyNTggNTEyIDI1OGM1NC41NCAwIDEwNC4xMyA5LjM2IDE0OS4xMiAyOC4zOWwtNzAuMyA3MC4zYTE3NiAxNzYgMCAwMC0yMzguMTMgMjM4LjEzbC04My40MiA4My40MkMyMjMuMSA2MzcuNDkgMTgzLjMgNTgyLjI4IDE0OS4zIDUxMnptMjQ2LjcgMGExMTIuMTEgMTEyLjExIDAgMDExNDYuMi0xMDYuNjlMNDAxLjMxIDU0Ni4yQTExMiAxMTIgMCAwMTM5NiA1MTJ6IiAvPjxwYXRoIGQ9Ik01MDggNjI0Yy0zLjQ2IDAtNi44Ny0uMTYtMTAuMjUtLjQ3bC01Mi44MiA1Mi44MmExNzYuMDkgMTc2LjA5IDAgMDAyMjcuNDItMjI3LjQybC01Mi44MiA1Mi44MmMuMzEgMy4zOC40NyA2Ljc5LjQ3IDEwLjI1YTExMS45NCAxMTEuOTQgMCAwMS0xMTIgMTEyeiIgLz48L3N2Zz4=) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined);
if (false) {}
/* harmony default export */ var icons_EyeInvisibleOutlined = (RefIcon);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
var EyeOutlined = __webpack_require__(89136);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.41.0@rc-util/es/omit.js
var omit = __webpack_require__(83930);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.41.0@rc-util/es/ref.js
var es_ref = __webpack_require__(85510);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js
var useRemovePasswordTimeout = __webpack_require__(59412);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.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 defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null);
const ActionMap = {
click: 'onClick',
hover: 'onMouseOver'
};
const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
visibilityToggle = true
} = props;
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
const inputRef = (0,_react_17_0_2_react.useRef)(null);
_react_17_0_2_react.useEffect(() => {
if (visibilityControlled) {
setVisible(visibilityToggle.visible);
}
}, [visibilityControlled, visibilityToggle]);
// Remove Password value
const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
const onVisibleChange = () => {
const {
disabled
} = props;
if (disabled) {
return;
}
if (visible) {
removePasswordTimeout();
}
setVisible(prevState => {
var _a;
const newState = !prevState;
if (typeof visibilityToggle === 'object') {
(_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
}
return newState;
});
};
const getIcon = prefixCls => {
const {
action = 'click',
iconRender = defaultIconRender
} = props;
const iconTrigger = ActionMap[action] || '';
const icon = iconRender(visible);
const iconProps = {
[iconTrigger]: onVisibleChange,
className: `${prefixCls}-icon`,
key: 'passwordIcon',
onMouseDown: e => {
// Prevent focused state lost
// https://github.com/ant-design/ant-design/issues/15173
e.preventDefault();
},
onMouseUp: e => {
// Prevent caret position change
// https://github.com/ant-design/ant-design/issues/23524
e.preventDefault();
}
};
return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps);
};
const {
className,
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
size
} = props,
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
const suffixIcon = visibilityToggle && getIcon(prefixCls);
const inputClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, {
[`${prefixCls}-${size}`]: !!size
});
const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
type: visible ? 'text' : 'password',
className: inputClassName,
prefixCls: inputPrefixCls,
suffix: suffixIcon
});
if (size) {
omittedProps.size = size;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
}, omittedProps));
});
if (false) {}
/* harmony default export */ var input_Password = (Password);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
var SearchOutlined = __webpack_require__(11013);
// 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/button/index.js
var es_button = __webpack_require__(3113);
// 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/space/Compact.js
var Compact = __webpack_require__(33234);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js
"use client";
var Search_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 Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
className,
size: customizeSize,
suffix,
enterButton = false,
addonAfter,
loading,
disabled,
onSearch: customOnSearch,
onChange: customOnChange,
onCompositionStart,
onCompositionEnd
} = props,
restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
const {
getPrefixCls,
direction
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const composedRef = _react_17_0_2_react.useRef(false);
const prefixCls = getPrefixCls('input-search', customizePrefixCls);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const {
compactSize
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
const size = (0,useSize/* default */.Z)(ctx => {
var _a;
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
});
const inputRef = _react_17_0_2_react.useRef(null);
const onChange = e => {
if (e && e.target && e.type === 'click' && customOnSearch) {
customOnSearch(e.target.value, e, {
source: 'clear'
});
}
if (customOnChange) {
customOnChange(e);
}
};
const onMouseDown = e => {
var _a;
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
e.preventDefault();
}
};
const onSearch = e => {
var _a, _b;
if (customOnSearch) {
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, {
source: 'input'
});
}
};
const onPressEnter = e => {
if (composedRef.current || loading) {
return;
}
onSearch(e);
};
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null;
const btnClassName = `${prefixCls}-button`;
let button;
const enterButtonAsElement = enterButton || {};
const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
if (isAntdButton || enterButtonAsElement.type === 'button') {
button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({
onMouseDown,
onClick: e => {
var _a, _b;
(_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
onSearch(e);
},
key: 'enterButton'
}, isAntdButton ? {
className: btnClassName,
size
} : {}));
} else {
button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
className: btnClassName,
type: enterButton ? 'primary' : undefined,
size: size,
disabled: disabled,
key: "enterButton",
onMouseDown: onMouseDown,
onClick: onSearch,
loading: loading,
icon: searchIcon
}, enterButton);
}
if (addonAfter) {
button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
key: 'addonAfter'
})];
}
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-${size}`]: !!size,
[`${prefixCls}-with-button`]: !!enterButton
}, className);
const handleOnCompositionStart = e => {
composedRef.current = true;
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
};
const handleOnCompositionEnd = e => {
composedRef.current = false;
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
};
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
onPressEnter: onPressEnter
}, restProps, {
size: size,
onCompositionStart: handleOnCompositionStart,
onCompositionEnd: handleOnCompositionEnd,
prefixCls: inputPrefixCls,
addonAfter: button,
suffix: suffix,
onChange: onChange,
className: cls,
disabled: disabled
}));
});
if (false) {}
/* harmony default export */ var input_Search = (Search);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js
var TextArea = __webpack_require__(1643);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js
"use client";
const input_Input = Input/* default */.Z;
if (false) {}
input_Input.Group = input_Group;
input_Input.Search = input_Search;
input_Input.TextArea = TextArea/* default */.Z;
input_Input.Password = input_Password;
/* harmony default export */ var input = (input_Input);
/***/ }),
/***/ 63767:
/*!**********************************************************************************!*\

@ -1350,10 +1350,10 @@ var SendToClassModal = function SendToClassModal(_ref) {
};
var heightLight = function heightLight(source) {
var reg = new RegExp(keywords, "ig");
var str = source.replace(reg, "<span style=\"color:#3061D0\">$&</span>");
var str = (source === null || source === void 0 ? void 0 : source.replace(reg, "<span style=\"color:#3061D0\">$&</span>")) || source;
if (keywords) return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
dangerouslySetInnerHTML: {
__html: str
__html: str || ""
}
});else return source;
};

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27491,73336,38996,44467,93221,88178,14161,70122,98255],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27491,73336,38996,93221,88178,14161,70122,98255],{
/***/ 89136:
/*!*****************************************************************************************************!*\

File diff suppressed because it is too large Load Diff

@ -0,0 +1,877 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[29847,28247,19807],{
/***/ 89136:
/*!*****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
\*****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_EyeOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
// 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.4.2@@ant-design/icons-svg/es/asn/EyeOutlined.js
// This icon file is generated automatically.
var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeOutlined
}));
};
/**![eye](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk0Mi4yIDQ4Ni4yQzg0Ny40IDI4Ni41IDcwNC4xIDE4NiA1MTIgMTg2Yy0xOTIuMiAwLTMzNS40IDEwMC41LTQzMC4yIDMwMC4zYTYwLjMgNjAuMyAwIDAwMCA1MS41QzE3Ni42IDczNy41IDMxOS45IDgzOCA1MTIgODM4YzE5Mi4yIDAgMzM1LjQtMTAwLjUgNDMwLjItMzAwLjMgNy43LTE2LjIgNy43LTM1IDAtNTEuNXpNNTEyIDc2NmMtMTYxLjMgMC0yNzkuNC04MS44LTM2Mi43LTI1NEMyMzIuNiAzMzkuOCAzNTAuNyAyNTggNTEyIDI1OGMxNjEuMyAwIDI3OS40IDgxLjggMzYyLjcgMjU0Qzc5MS41IDY4NC4yIDY3My40IDc2NiA1MTIgNzY2em0tNC00MzBjLTk3LjIgMC0xNzYgNzguOC0xNzYgMTc2czc4LjggMTc2IDE3NiAxNzYgMTc2LTc4LjggMTc2LTE3Ni03OC44LTE3Ni0xNzYtMTc2em0wIDI4OGMtNjEuOSAwLTExMi01MC4xLTExMi0xMTJzNTAuMS0xMTIgMTEyLTExMiAxMTIgNTAuMSAxMTIgMTEyLTUwLjEgMTEyLTExMiAxMTJ6IiAvPjwvc3ZnPg==) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined);
if (false) {}
/* harmony default export */ var icons_EyeOutlined = (RefIcon);
/***/ }),
/***/ 62426:
/*!******************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LikeOutlined.js + 1 modules ***!
\******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_LikeOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
// 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.4.2@@ant-design/icons-svg/es/asn/LikeOutlined.js
// This icon file is generated automatically.
var LikeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z" } }] }, "name": "like", "theme": "outlined" };
/* harmony default export */ var asn_LikeOutlined = (LikeOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LikeOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var LikeOutlined_LikeOutlined = function LikeOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_LikeOutlined
}));
};
/**![like](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4NS45IDUzMy43YzE2LjgtMjIuMiAyNi4xLTQ5LjQgMjYuMS03Ny43IDAtNDQuOS0yNS4xLTg3LjQtNjUuNS0xMTEuMWE2Ny42NyA2Ny42NyAwIDAwLTM0LjMtOS4zSDU3Mi40bDYtMTIyLjljMS40LTI5LjctOS4xLTU3LjktMjkuNS03OS40QTEwNi42MiAxMDYuNjIgMCAwMDQ3MSA5OS45Yy01MiAwLTk4IDM1LTExMS44IDg1LjFsLTg1LjkgMzExSDE0NGMtMTcuNyAwLTMyIDE0LjMtMzIgMzJ2MzY0YzAgMTcuNyAxNC4zIDMyIDMyIDMyaDYwMS4zYzkuMiAwIDE4LjItMS44IDI2LjUtNS40IDQ3LjYtMjAuMyA3OC4zLTY2LjggNzguMy0xMTguNCAwLTEyLjYtMS44LTI1LTUuNC0zNyAxNi44LTIyLjIgMjYuMS00OS40IDI2LjEtNzcuNyAwLTEyLjYtMS44LTI1LTUuNC0zNyAxNi44LTIyLjIgMjYuMS00OS40IDI2LjEtNzcuNy0uMi0xMi42LTItMjUuMS01LjYtMzcuMXpNMTg0IDg1MlY1NjhoODF2Mjg0aC04MXptNjM2LjQtMzUzbC0yMS45IDE5IDEzLjkgMjUuNGE1Ni4yIDU2LjIgMCAwMTYuOSAyNy4zYzAgMTYuNS03LjIgMzIuMi0xOS42IDQzbC0yMS45IDE5IDEzLjkgMjUuNGE1Ni4yIDU2LjIgMCAwMTYuOSAyNy4zYzAgMTYuNS03LjIgMzIuMi0xOS42IDQzbC0yMS45IDE5IDEzLjkgMjUuNGE1Ni4yIDU2LjIgMCAwMTYuOSAyNy4zYzAgMjIuNC0xMy4yIDQyLjYtMzMuNiA1MS44SDMyOVY1NjQuOGw5OS41LTM2MC41YTQ0LjEgNDQuMSAwIDAxNDIuMi0zMi4zYzcuNiAwIDE1LjEgMi4yIDIxLjEgNi43IDkuOSA3LjQgMTUuMiAxOC42IDE0LjYgMzAuNWwtOS42IDE5OC40aDMxNC40QzgyOSA0MTguNSA4NDAgNDM2LjkgODQwIDQ1NmMwIDE2LjUtNy4yIDMyLjEtMTkuNiA0M3oiIC8+PC9zdmc+) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(LikeOutlined_LikeOutlined);
if (false) {}
/* harmony default export */ var icons_LikeOutlined = (RefIcon);
/***/ }),
/***/ 30798:
/*!*********************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/MessageOutlined.js + 1 modules ***!
\*********************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_MessageOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
// 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.4.2@@ant-design/icons-svg/es/asn/MessageOutlined.js
// This icon file is generated automatically.
var MessageOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z" } }] }, "name": "message", "theme": "outlined" };
/* harmony default export */ var asn_MessageOutlined = (MessageOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/MessageOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var MessageOutlined_MessageOutlined = function MessageOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_MessageOutlined
}));
};
/**![message](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ2NCA1MTJhNDggNDggMCAxMDk2IDAgNDggNDggMCAxMC05NiAwem0yMDAgMGE0OCA0OCAwIDEwOTYgMCA0OCA0OCAwIDEwLTk2IDB6bS00MDAgMGE0OCA0OCAwIDEwOTYgMCA0OCA0OCAwIDEwLTk2IDB6bTY2MS4yLTE3My42Yy0yMi42LTUzLjctNTUtMTAxLjktOTYuMy0xNDMuM2E0NDQuMzUgNDQ0LjM1IDAgMDAtMTQzLjMtOTYuM0M2MzAuNiA3NS43IDU3Mi4yIDY0IDUxMiA2NGgtMmMtNjAuNi4zLTExOS4zIDEyLjMtMTc0LjUgMzUuOWE0NDUuMzUgNDQ1LjM1IDAgMDAtMTQyIDk2LjVjLTQwLjkgNDEuMy03MyA4OS4zLTk1LjIgMTQyLjgtMjMgNTUuNC0zNC42IDExNC4zLTM0LjMgMTc0LjlBNDQ5LjQgNDQ5LjQgMCAwMDExMiA3MTR2MTUyYTQ2IDQ2IDAgMDA0NiA0NmgxNTIuMUE0NDkuNCA0NDkuNCAwIDAwNTEwIDk2MGgyLjFjNTkuOSAwIDExOC0xMS42IDE3Mi43LTM0LjNhNDQ0LjQ4IDQ0NC40OCAwIDAwMTQyLjgtOTUuMmM0MS4zLTQwLjkgNzMuOC04OC43IDk2LjUtMTQyIDIzLjYtNTUuMiAzNS42LTExMy45IDM1LjktMTc0LjUuMy02MC45LTExLjUtMTIwLTM0LjgtMTc1LjZ6bS0xNTEuMSA0MzhDNzA0IDg0NS44IDYxMSA4ODQgNTEyIDg4NGgtMS43Yy02MC4zLS4zLTEyMC4yLTE1LjMtMTczLjEtNDMuNWwtOC40LTQuNUgxODhWNjk1LjJsLTQuNS04LjRDMTU1LjMgNjMzLjkgMTQwLjMgNTc0IDE0MCA1MTMuN2MtLjQtOTkuNyAzNy43LTE5My4zIDEwNy42LTI2My44IDY5LjgtNzAuNSAxNjMuMS0xMDkuNSAyNjIuOC0xMDkuOWgxLjdjNTAgMCA5OC41IDkuNyAxNDQuMiAyOC45IDQ0LjYgMTguNyA4NC42IDQ1LjYgMTE5IDgwIDM0LjMgMzQuMyA2MS4zIDc0LjQgODAgMTE5IDE5LjQgNDYuMiAyOS4xIDk1LjIgMjguOSAxNDUuOC0uNiA5OS42LTM5LjcgMTkyLjktMTEwLjEgMjYyLjd6IiAvPjwvc3ZnPg==) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(MessageOutlined_MessageOutlined);
if (false) {}
/* harmony default export */ var icons_MessageOutlined = (RefIcon);
/***/ }),
/***/ 38854:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules ***!
\************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ es_dropdown; }
});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
var dropdown = __webpack_require__(91857);
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_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/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
var EllipsisOutlined = __webpack_require__(75197);
// 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/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules
var space = __webpack_require__(81327);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
var Compact = __webpack_require__(33234);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/style/index.js + 1 modules
var style = __webpack_require__(47211);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown-button.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 DropdownButton = props => {
const {
getPopupContainer: getContextPopupContainer,
getPrefixCls,
direction
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
type = 'default',
danger,
disabled,
loading,
onClick,
htmlType,
children,
className,
menu,
arrow,
autoFocus,
overlay,
trigger,
align,
open,
onOpenChange,
placement,
getPopupContainer,
href,
icon = /*#__PURE__*/_react_17_0_2_react.createElement(EllipsisOutlined/* default */.Z, null),
title,
buttonsRender = buttons => buttons,
mouseEnterDelay,
mouseLeaveDelay,
overlayClassName,
overlayStyle,
destroyPopupOnHide,
dropdownRender
} = props,
restProps = __rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]);
const prefixCls = getPrefixCls('dropdown', customizePrefixCls);
const buttonPrefixCls = `${prefixCls}-button`;
const [wrapSSR, hashId] = (0,style/* default */.Z)(prefixCls);
const dropdownProps = {
menu,
arrow,
autoFocus,
align,
disabled,
trigger: disabled ? [] : trigger,
onOpenChange,
getPopupContainer: getPopupContainer || getContextPopupContainer,
mouseEnterDelay,
mouseLeaveDelay,
overlayClassName,
overlayStyle,
destroyPopupOnHide,
dropdownRender
};
const {
compactSize,
compactItemClassnames
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
const classes = _classnames_2_5_1_classnames_default()(buttonPrefixCls, compactItemClassnames, className, hashId);
if ('overlay' in props) {
dropdownProps.overlay = overlay;
}
if ('open' in props) {
dropdownProps.open = open;
}
if ('placement' in props) {
dropdownProps.placement = placement;
} else {
dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight';
}
const leftButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
type: type,
danger: danger,
disabled: disabled,
loading: loading,
onClick: onClick,
htmlType: htmlType,
href: href,
title: title
}, children);
const rightButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
type: type,
danger: danger,
icon: icon
});
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(space/* default */.Z.Compact, Object.assign({
className: classes,
size: compactSize,
block: true
}, restProps), leftButtonToRender, /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({}, dropdownProps), rightButtonToRender)));
};
DropdownButton.__ANT_BUTTON = true;
/* harmony default export */ var dropdown_button = (DropdownButton);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js
"use client";
const Dropdown = dropdown/* default */.Z;
Dropdown.Button = dropdown_button;
/* harmony default export */ var es_dropdown = (Dropdown);
/***/ }),
/***/ 98135:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ input; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_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/form/context.js
var form_context = __webpack_require__(32441);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js
var style = __webpack_require__(9937);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js
"use client";
const Group = props => {
const {
getPrefixCls,
direction
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
className
} = props;
const prefixCls = getPrefixCls('input-group', customizePrefixCls);
const inputPrefixCls = getPrefixCls('input');
const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls);
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
[`${prefixCls}-lg`]: props.size === 'large',
[`${prefixCls}-sm`]: props.size === 'small',
[`${prefixCls}-compact`]: props.compact,
[`${prefixCls}-rtl`]: direction === 'rtl'
}, hashId, className);
const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM);
const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
isFormItemInput: false
}), [formItemContext]);
if (false) {}
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: cls,
style: props.style,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave,
onFocus: props.onFocus,
onBlur: props.onBlur
}, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, {
value: groupFormItemContext
}, props.children)));
};
/* harmony default export */ var input_Group = (Group);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules
var Input = __webpack_require__(9432);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js
// This icon file is generated automatically.
var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" };
/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeInvisibleOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeInvisibleOutlined
}));
};
/**![eye-invisible](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk0Mi4yIDQ4Ni4yUTg4OS40NyAzNzUuMTEgODE2LjcgMzA1bC01MC44OCA1MC44OEM4MDcuMzEgMzk1LjUzIDg0My40NSA0NDcuNCA4NzQuNyA1MTIgNzkxLjUgNjg0LjIgNjczLjQgNzY2IDUxMiA3NjZxLTcyLjY3IDAtMTMzLjg3LTIyLjM4TDMyMyA3OTguNzVRNDA4IDgzOCA1MTIgODM4cTI4OC4zIDAgNDMwLjItMzAwLjNhNjAuMjkgNjAuMjkgMCAwMDAtNTEuNXptLTYzLjU3LTMyMC42NEw4MzYgMTIyLjg4YTggOCAwIDAwLTExLjMyIDBMNzE1LjMxIDIzMi4yUTYyNC44NiAxODYgNTEyIDE4NnEtMjg4LjMgMC00MzAuMiAzMDAuM2E2MC4zIDYwLjMgMCAwMDAgNTEuNXE1Ni42OSAxMTkuNCAxMzYuNSAxOTEuNDFMMTEyLjQ4IDgzNWE4IDggMCAwMDAgMTEuMzFMMTU1LjE3IDg4OWE4IDggMCAwMDExLjMxIDBsNzEyLjE1LTcxMi4xMmE4IDggMCAwMDAtMTEuMzJ6TTE0OS4zIDUxMkMyMzIuNiAzMzkuOCAzNTAuNyAyNTggNTEyIDI1OGM1NC41NCAwIDEwNC4xMyA5LjM2IDE0OS4xMiAyOC4zOWwtNzAuMyA3MC4zYTE3NiAxNzYgMCAwMC0yMzguMTMgMjM4LjEzbC04My40MiA4My40MkMyMjMuMSA2MzcuNDkgMTgzLjMgNTgyLjI4IDE0OS4zIDUxMnptMjQ2LjcgMGExMTIuMTEgMTEyLjExIDAgMDExNDYuMi0xMDYuNjlMNDAxLjMxIDU0Ni4yQTExMiAxMTIgMCAwMTM5NiA1MTJ6IiAvPjxwYXRoIGQ9Ik01MDggNjI0Yy0zLjQ2IDAtNi44Ny0uMTYtMTAuMjUtLjQ3bC01Mi44MiA1Mi44MmExNzYuMDkgMTc2LjA5IDAgMDAyMjcuNDItMjI3LjQybC01Mi44MiA1Mi44MmMuMzEgMy4zOC40NyA2Ljc5LjQ3IDEwLjI1YTExMS45NCAxMTEuOTQgMCAwMS0xMTIgMTEyeiIgLz48L3N2Zz4=) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined);
if (false) {}
/* harmony default export */ var icons_EyeInvisibleOutlined = (RefIcon);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
var EyeOutlined = __webpack_require__(89136);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.41.0@rc-util/es/omit.js
var omit = __webpack_require__(83930);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.41.0@rc-util/es/ref.js
var es_ref = __webpack_require__(85510);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js
var useRemovePasswordTimeout = __webpack_require__(59412);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.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 defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null);
const ActionMap = {
click: 'onClick',
hover: 'onMouseOver'
};
const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
visibilityToggle = true
} = props;
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
const inputRef = (0,_react_17_0_2_react.useRef)(null);
_react_17_0_2_react.useEffect(() => {
if (visibilityControlled) {
setVisible(visibilityToggle.visible);
}
}, [visibilityControlled, visibilityToggle]);
// Remove Password value
const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
const onVisibleChange = () => {
const {
disabled
} = props;
if (disabled) {
return;
}
if (visible) {
removePasswordTimeout();
}
setVisible(prevState => {
var _a;
const newState = !prevState;
if (typeof visibilityToggle === 'object') {
(_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
}
return newState;
});
};
const getIcon = prefixCls => {
const {
action = 'click',
iconRender = defaultIconRender
} = props;
const iconTrigger = ActionMap[action] || '';
const icon = iconRender(visible);
const iconProps = {
[iconTrigger]: onVisibleChange,
className: `${prefixCls}-icon`,
key: 'passwordIcon',
onMouseDown: e => {
// Prevent focused state lost
// https://github.com/ant-design/ant-design/issues/15173
e.preventDefault();
},
onMouseUp: e => {
// Prevent caret position change
// https://github.com/ant-design/ant-design/issues/23524
e.preventDefault();
}
};
return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps);
};
const {
className,
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
size
} = props,
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
const suffixIcon = visibilityToggle && getIcon(prefixCls);
const inputClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, {
[`${prefixCls}-${size}`]: !!size
});
const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
type: visible ? 'text' : 'password',
className: inputClassName,
prefixCls: inputPrefixCls,
suffix: suffixIcon
});
if (size) {
omittedProps.size = size;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
}, omittedProps));
});
if (false) {}
/* harmony default export */ var input_Password = (Password);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
var SearchOutlined = __webpack_require__(11013);
// 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/button/index.js
var es_button = __webpack_require__(3113);
// 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/space/Compact.js
var Compact = __webpack_require__(33234);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js
"use client";
var Search_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 Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
className,
size: customizeSize,
suffix,
enterButton = false,
addonAfter,
loading,
disabled,
onSearch: customOnSearch,
onChange: customOnChange,
onCompositionStart,
onCompositionEnd
} = props,
restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
const {
getPrefixCls,
direction
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const composedRef = _react_17_0_2_react.useRef(false);
const prefixCls = getPrefixCls('input-search', customizePrefixCls);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const {
compactSize
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
const size = (0,useSize/* default */.Z)(ctx => {
var _a;
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
});
const inputRef = _react_17_0_2_react.useRef(null);
const onChange = e => {
if (e && e.target && e.type === 'click' && customOnSearch) {
customOnSearch(e.target.value, e, {
source: 'clear'
});
}
if (customOnChange) {
customOnChange(e);
}
};
const onMouseDown = e => {
var _a;
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
e.preventDefault();
}
};
const onSearch = e => {
var _a, _b;
if (customOnSearch) {
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, {
source: 'input'
});
}
};
const onPressEnter = e => {
if (composedRef.current || loading) {
return;
}
onSearch(e);
};
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null;
const btnClassName = `${prefixCls}-button`;
let button;
const enterButtonAsElement = enterButton || {};
const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
if (isAntdButton || enterButtonAsElement.type === 'button') {
button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({
onMouseDown,
onClick: e => {
var _a, _b;
(_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
onSearch(e);
},
key: 'enterButton'
}, isAntdButton ? {
className: btnClassName,
size
} : {}));
} else {
button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
className: btnClassName,
type: enterButton ? 'primary' : undefined,
size: size,
disabled: disabled,
key: "enterButton",
onMouseDown: onMouseDown,
onClick: onSearch,
loading: loading,
icon: searchIcon
}, enterButton);
}
if (addonAfter) {
button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
key: 'addonAfter'
})];
}
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-${size}`]: !!size,
[`${prefixCls}-with-button`]: !!enterButton
}, className);
const handleOnCompositionStart = e => {
composedRef.current = true;
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
};
const handleOnCompositionEnd = e => {
composedRef.current = false;
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
};
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
onPressEnter: onPressEnter
}, restProps, {
size: size,
onCompositionStart: handleOnCompositionStart,
onCompositionEnd: handleOnCompositionEnd,
prefixCls: inputPrefixCls,
addonAfter: button,
suffix: suffix,
onChange: onChange,
className: cls,
disabled: disabled
}));
});
if (false) {}
/* harmony default export */ var input_Search = (Search);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js
var TextArea = __webpack_require__(1643);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js
"use client";
const input_Input = Input/* default */.Z;
if (false) {}
input_Input.Group = input_Group;
input_Input.Search = input_Search;
input_Input.TextArea = TextArea/* default */.Z;
input_Input.Password = input_Password;
/* harmony default export */ var input = (input_Input);
/***/ }),
/***/ 81327:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ space; }
});
// UNUSED EXPORTS: SpaceContext
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.41.0@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(29541);
// 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/space/Compact.js
var Compact = __webpack_require__(33234);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/context.js
const SpaceContext = /*#__PURE__*/_react_17_0_2_react.createContext({
latestIndex: 0
});
const SpaceContextProvider = SpaceContext.Provider;
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Item.js
"use client";
const Item = _ref => {
let {
className,
index,
children,
split,
style
} = _ref;
const {
latestIndex
} = _react_17_0_2_react.useContext(SpaceContext);
if (children === null || children === undefined) {
return null;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: className,
style: style
}, children), index < latestIndex && split && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${className}-split`
}, split));
};
/* harmony default export */ var space_Item = (Item);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/style/index.js + 1 modules
var space_style = __webpack_require__(2856);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/utils.js
function isPresetSize(size) {
return ['small', 'middle', 'large'].includes(size);
}
function isValidGapNumber(size) {
if (!size) {
// The case of size = 0 is deliberately excluded here, because the default value of the gap attribute in CSS is 0, so if the user passes 0 in, we can directly ignore it.
return false;
}
return typeof size === 'number' && !Number.isNaN(size);
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/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 Space = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
var _a, _b;
const {
getPrefixCls,
space,
direction: directionConfig
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const {
size = (space === null || space === void 0 ? void 0 : space.size) || 'small',
align,
className,
rootClassName,
children,
direction = 'horizontal',
prefixCls: customizePrefixCls,
split,
style,
wrap = false,
classNames: customClassNames,
styles
} = props,
otherProps = __rest(props, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]);
const [horizontalSize, verticalSize] = Array.isArray(size) ? size : [size, size];
const isPresetVerticalSize = isPresetSize(verticalSize);
const isPresetHorizontalSize = isPresetSize(horizontalSize);
const isValidVerticalSize = isValidGapNumber(verticalSize);
const isValidHorizontalSize = isValidGapNumber(horizontalSize);
const childNodes = (0,toArray/* default */.Z)(children, {
keepEmpty: true
});
const mergedAlign = align === undefined && direction === 'horizontal' ? 'center' : align;
const prefixCls = getPrefixCls('space', customizePrefixCls);
const [wrapSSR, hashId] = (0,space_style/* default */.Z)(prefixCls);
const cls = _classnames_2_5_1_classnames_default()(prefixCls, space === null || space === void 0 ? void 0 : space.className, hashId, `${prefixCls}-${direction}`, {
[`${prefixCls}-rtl`]: directionConfig === 'rtl',
[`${prefixCls}-align-${mergedAlign}`]: mergedAlign,
[`${prefixCls}-gap-row-${verticalSize}`]: isPresetVerticalSize,
[`${prefixCls}-gap-col-${horizontalSize}`]: isPresetHorizontalSize
}, className, rootClassName);
const itemClassName = _classnames_2_5_1_classnames_default()(`${prefixCls}-item`, (_a = customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.classNames) === null || _b === void 0 ? void 0 : _b.item);
// Calculate latest one
let latestIndex = 0;
const nodes = childNodes.map((child, i) => {
var _a, _b;
if (child !== null && child !== undefined) {
latestIndex = i;
}
const key = child && child.key || `${itemClassName}-${i}`;
return /*#__PURE__*/_react_17_0_2_react.createElement(space_Item, {
className: itemClassName,
key: key,
index: i,
split: split,
style: (_a = styles === null || styles === void 0 ? void 0 : styles.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.styles) === null || _b === void 0 ? void 0 : _b.item
}, child);
});
const spaceContext = _react_17_0_2_react.useMemo(() => ({
latestIndex
}), [latestIndex]);
// =========================== Render ===========================
if (childNodes.length === 0) {
return null;
}
const gapStyle = {};
if (wrap) {
gapStyle.flexWrap = 'wrap';
}
if (!isPresetHorizontalSize && isValidHorizontalSize) {
gapStyle.columnGap = horizontalSize;
}
if (!isPresetVerticalSize && isValidVerticalSize) {
gapStyle.rowGap = verticalSize;
}
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
ref: ref,
className: cls,
style: Object.assign(Object.assign(Object.assign({}, gapStyle), space === null || space === void 0 ? void 0 : space.style), style)
}, otherProps), /*#__PURE__*/_react_17_0_2_react.createElement(SpaceContextProvider, {
value: spaceContext
}, nodes)));
});
if (false) {}
const CompoundedSpace = Space;
CompoundedSpace.Compact = Compact/* default */.ZP;
/* harmony default export */ var space = (CompoundedSpace);
/***/ })
}]);

@ -630,6 +630,8 @@ var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./src/pages/tasks/util.js
var util = __webpack_require__(40720);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(33287);
;// CONCATENATED MODULE: ./src/components/markdown-editor/upload-image/index.tsx
@ -639,6 +641,7 @@ var util = __webpack_require__(40720);
var useForm = es_form/* default */.Z.useForm;
var style = {
width: 280,
@ -754,6 +757,10 @@ function uploadImage(file, callback) {
throw new String('没有文件');
return;
}
if (!(0,authority/* isLogin */.bg)()) {
message/* default */.ZP.warning("请登录后再操作");
throw new String("请登录后再操作");
}
var formData = new FormData();
formData.append('editormd-image-file', file);
formData.append('file_param_name', 'editormd-image-file');
@ -1126,7 +1133,10 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
instance.replaceSelection("[".concat(file.name, "](").concat(env/* default */.Z.API_SERVER, "/api/attachments/").concat(data.id, "?type=").concat(data.content_type, ")"));
}
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) document.location.href = '/user/login';
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
}
}
});
} catch (e) {
@ -1205,7 +1215,10 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
instance.replaceSelection("[".concat(file.name, "](").concat(env/* default */.Z.API_SERVER, "/api/attachments/").concat(data.id, "?type=").concat(data.content_type, ")"));
}
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) document.location.href = '/user/login';
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
}
}
});
};

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[33473,73336,8585,39011,38996,27491,44467,93221,88178,14161,70122,98255],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[33473,73336,8585,39011,38996,27491,93221,88178,14161,70122,98255],{
/***/ 22596:
/*!***********************************************************************************************************!*\

@ -250,7 +250,7 @@ var _disabledTime = function disabledTime(current, compared) {
var RangePicker = antd__WEBPACK_IMPORTED_MODULE_15__["default"].RangePicker;
var Option = antd__WEBPACK_IMPORTED_MODULE_16__["default"].Option;
var WorkList = function WorkList(_ref) {
var _workList$homework_st2, _classroomList$Assist3, _workSetting$group_se4, _workSetting$group_se5, _workList$homework_st4, _workList$homework_st5, _classroomList$Assist4, _classroomList$Assist5, _groupSettings2, _workSetting$group_se7;
var _headerInfo$homework_2, _classroomList$Assist3, _workSetting$group_se4, _workSetting$group_se5, _headerInfo$homework_4, _headerInfo$homework_5, _classroomList$Assist4, _classroomList$Assist5, _groupSettings2, _workSetting$group_se7;
var shixunHomeworks = _ref.shixunHomeworks,
loading = _ref.loading,
dispatch = _ref.dispatch,
@ -258,6 +258,8 @@ var WorkList = function WorkList(_ref) {
var params = (0,umi__WEBPACK_IMPORTED_MODULE_12__.useParams)();
var workSetting = shixunHomeworks.workSetting,
workList = shixunHomeworks.workList,
shixunWorkList = shixunHomeworks.shixunWorkList,
headerInfo = shixunHomeworks.headerInfo,
changeData = shixunHomeworks.changeData;
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(true),
_useState2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_4___default()(_useState, 2),
@ -470,7 +472,7 @@ var WorkList = function WorkList(_ref) {
//校验弹框
var setVerify = function setVerify(bodyData) {
var _ref2, _workList$homework_st;
var _ref2, _headerInfo$homework_;
if (bodyData.total_score === null) {
antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");
return;
@ -513,7 +515,7 @@ var WorkList = function WorkList(_ref) {
setDisabled(true);
getData();
dispatch({
type: 'shixunHomeworks/getWorkList',
type: 'shixunHomeworks/getShixunWorkHeadInfo',
payload: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, params)
});
}
@ -529,7 +531,7 @@ var WorkList = function WorkList(_ref) {
return _ref3.apply(this, arguments);
};
}();
if (!(0,lodash__WEBPACK_IMPORTED_MODULE_9__.isEqual)(changeData, newChangeData) && !(workList !== null && workList !== void 0 && (_workList$homework_st = workList.homework_status) !== null && _workList$homework_st !== void 0 && _workList$homework_st.includes("未发布"))) {
if (!(0,lodash__WEBPACK_IMPORTED_MODULE_9__.isEqual)(changeData, newChangeData) && !(headerInfo !== null && headerInfo !== void 0 && (_headerInfo$homework_ = headerInfo.homework_status) !== null && _headerInfo$homework_ !== void 0 && _headerInfo$homework_.includes("未发布"))) {
antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z.confirm({
title: "更新成绩",
content: "您改动了本次作业的关卡得分设置,这可能导致已完成作业的学生的成绩产生错误。点击“确定”按钮将保存最新设置并按最新设置更新全班成绩。",
@ -586,7 +588,7 @@ var WorkList = function WorkList(_ref) {
// !hasEndedGroup ||
(workSetting === null || workSetting === void 0 ? void 0 : workSetting.allow_late) || (workSetting === null || workSetting === void 0 ? void 0 : workSetting.all_group_late)
);
}, [workSetting, workList]);
}, [workSetting, headerInfo]);
var unifiedLateTimeDisabled = workSetting === null || workSetting === void 0 ? void 0 : workSetting.anonymous_comment;
var groupLateTimeDisabled = function groupLateTimeDisabled(id) {
if (!id) {
@ -649,11 +651,11 @@ var WorkList = function WorkList(_ref) {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("label", {
children: "\u53D1\u5E03\u65B9\u5F0F\uFF1A"
}), " ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_22__/* ["default"].Group */ .ZP.Group, {
disabled: disabled || !(workList !== null && workList !== void 0 && (_workList$homework_st2 = workList.homework_status) !== null && _workList$homework_st2 !== void 0 && _workList$homework_st2.includes("未发布")) || (0,_utils_authority__WEBPACK_IMPORTED_MODULE_7__/* .isAssistant */ .Rm)() && !((_classroomList$Assist3 = classroomList.AssistantObject.practice) !== null && _classroomList$Assist3 !== void 0 && _classroomList$Assist3.can_publish),
disabled: disabled || !(headerInfo !== null && headerInfo !== void 0 && (_headerInfo$homework_2 = headerInfo.homework_status) !== null && _headerInfo$homework_2 !== void 0 && _headerInfo$homework_2.includes("未发布")) || (0,_utils_authority__WEBPACK_IMPORTED_MODULE_7__/* .isAssistant */ .Rm)() && !((_classroomList$Assist3 = classroomList.AssistantObject.practice) !== null && _classroomList$Assist3 !== void 0 && _classroomList$Assist3.can_publish),
value: data.unified_setting,
onChange: function onChange(e) {
var _workList$homework_st3;
if (!(workList !== null && workList !== void 0 && (_workList$homework_st3 = workList.homework_status) !== null && _workList$homework_st3 !== void 0 && _workList$homework_st3.includes("未发布"))) {
var _headerInfo$homework_3;
if (!(headerInfo !== null && headerInfo !== void 0 && (_headerInfo$homework_3 = headerInfo.homework_status) !== null && _headerInfo$homework_3 !== void 0 && _headerInfo$homework_3.includes("未发布"))) {
antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");
return;
}
@ -702,7 +704,7 @@ var WorkList = function WorkList(_ref) {
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
className: "ml5",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_15__["default"], {
disabled: (disabled ? disabled : workList !== null && workList !== void 0 && (_workList$homework_st4 = workList.homework_status) !== null && _workList$homework_st4 !== void 0 && _workList$homework_st4.includes("未发布") || workList !== null && workList !== void 0 && (_workList$homework_st5 = workList.homework_status) !== null && _workList$homework_st5 !== void 0 && _workList$homework_st5.includes("未开始") ? false : true) || (0,_utils_authority__WEBPACK_IMPORTED_MODULE_7__/* .isAssistant */ .Rm)() && !((_classroomList$Assist4 = classroomList.AssistantObject.practice) !== null && _classroomList$Assist4 !== void 0 && _classroomList$Assist4.can_publish),
disabled: (disabled ? disabled : headerInfo !== null && headerInfo !== void 0 && (_headerInfo$homework_4 = headerInfo.homework_status) !== null && _headerInfo$homework_4 !== void 0 && _headerInfo$homework_4.includes("未发布") || headerInfo !== null && headerInfo !== void 0 && (_headerInfo$homework_5 = headerInfo.homework_status) !== null && _headerInfo$homework_5 !== void 0 && _headerInfo$homework_5.includes("未开始") ? false : true) || (0,_utils_authority__WEBPACK_IMPORTED_MODULE_7__/* .isAssistant */ .Rm)() && !((_classroomList$Assist4 = classroomList.AssistantObject.practice) !== null && _classroomList$Assist4 !== void 0 && _classroomList$Assist4.can_publish),
style: {
width: 170
},
@ -809,7 +811,7 @@ var WorkList = function WorkList(_ref) {
})]
})
}), groupSettings && groupSettings.map(function (v, k) {
var _workList$homework_st6, _classroomList$Assist6, _findGroupItemById, _workSetting$group_se6;
var _headerInfo$homework_6, _classroomList$Assist6, _findGroupItemById, _workSetting$group_se6;
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
span: 24,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, {
@ -826,7 +828,7 @@ var WorkList = function WorkList(_ref) {
maxWidth: 300
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_16__["default"], {
disabled: disabled || !(workList !== null && workList !== void 0 && (_workList$homework_st6 = workList.homework_status) !== null && _workList$homework_st6 !== void 0 && _workList$homework_st6.includes("未发布")) && v.id || (0,_utils_authority__WEBPACK_IMPORTED_MODULE_7__/* .isAssistant */ .Rm)() && !((_classroomList$Assist6 = classroomList.AssistantObject.practice) !== null && _classroomList$Assist6 !== void 0 && _classroomList$Assist6.can_publish),
disabled: (disabled ? disabled : headerInfo !== null && headerInfo !== void 0 && (_headerInfo$homework_6 = headerInfo.homework_status) !== null && _headerInfo$homework_6 !== void 0 && _headerInfo$homework_6.includes("未发布") && v.id || moment__WEBPACK_IMPORTED_MODULE_6___default()() < moment__WEBPACK_IMPORTED_MODULE_6___default()(v === null || v === void 0 ? void 0 : v.publish_time) ? false : v !== null && v !== void 0 && v.publish_time ? true : false) || (0,_utils_authority__WEBPACK_IMPORTED_MODULE_7__/* .isAssistant */ .Rm)() && !((_classroomList$Assist6 = classroomList.AssistantObject.practice) !== null && _classroomList$Assist6 !== void 0 && _classroomList$Assist6.can_publish),
className: "ml20",
mode: "multiple",
style: {
@ -1133,7 +1135,7 @@ var WorkList = function WorkList(_ref) {
})]
})]
}) : repairSettings.map(function (v, k) {
var _workList$homework_st7;
var _headerInfo$homework_7;
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
span: 24,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, {
@ -1145,7 +1147,7 @@ var WorkList = function WorkList(_ref) {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)("span", {
children: ["\u8865\u4EA4\u89C4\u5219", k + 1, "\uFF1A"]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_16__["default"], {
disabled: disabled || !(workList !== null && workList !== void 0 && (_workList$homework_st7 = workList.homework_status) !== null && _workList$homework_st7 !== void 0 && _workList$homework_st7.includes("未发布")) && v.id || (workSetting === null || workSetting === void 0 ? void 0 : workSetting.anonymous_comment),
disabled: disabled || !(headerInfo !== null && headerInfo !== void 0 && (_headerInfo$homework_7 = headerInfo.homework_status) !== null && _headerInfo$homework_7 !== void 0 && _headerInfo$homework_7.includes("未发布")) && v.id || (workSetting === null || workSetting === void 0 ? void 0 : workSetting.anonymous_comment),
mode: "multiple",
style: {
width: 306

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38996,73336,27491,44467,93221,88178,14161,70122,98255],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38996,73336,27491,93221,88178,14161,70122,98255],{
/***/ 89136:
/*!*****************************************************************************************************!*\

File diff suppressed because it is too large Load Diff

@ -0,0 +1,714 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[40971],{
/***/ 41521:
/*!*************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CloseCircleOutlined.js + 1 modules ***!
\*************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_CloseCircleOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
// 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.4.2@@ant-design/icons-svg/es/asn/CloseCircleOutlined.js
// This icon file is generated automatically.
var CloseCircleOutlined = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" } }] }, "name": "close-circle", "theme": "outlined" };
/* harmony default export */ var asn_CloseCircleOutlined = (CloseCircleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CloseCircleOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var CloseCircleOutlined_CloseCircleOutlined = function CloseCircleOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_CloseCircleOutlined
}));
};
/**![close-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdmlld0JveD0iNjQgNjQgODk2IDg5NiIgZm9jdXNhYmxlPSJmYWxzZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNTEyIDY0YzI0Ny40IDAgNDQ4IDIwMC42IDQ0OCA0NDhTNzU5LjQgOTYwIDUxMiA5NjAgNjQgNzU5LjQgNjQgNTEyIDI2NC42IDY0IDUxMiA2NHptMCA3NmMtMjA1LjQgMC0zNzIgMTY2LjYtMzcyIDM3MnMxNjYuNiAzNzIgMzcyIDM3MiAzNzItMTY2LjYgMzcyLTM3Mi0xNjYuNi0zNzItMzcyLTM3MnptMTI4LjAxIDE5OC44M2MuMDMgMCAuMDUuMDEuMDkuMDZsNDUuMDIgNDUuMDFhLjIuMiAwIDAxLjA1LjA5LjEyLjEyIDAgMDEwIC4wN2MwIC4wMi0uMDEuMDQtLjA1LjA4TDU1Ny4yNSA1MTJsMTI3Ljg3IDEyNy44NmEuMjcuMjcgMCAwMS4wNS4wNnYuMDJhLjEyLjEyIDAgMDEwIC4wN2MwIC4wMy0uMDEuMDUtLjA1LjA5bC00NS4wMiA0NS4wMmEuMi4yIDAgMDEtLjA5LjA1LjEyLjEyIDAgMDEtLjA3IDBjLS4wMiAwLS4wNC0uMDEtLjA4LS4wNUw1MTIgNTU3LjI1IDM4NC4xNCA2ODUuMTJjLS4wNC4wNC0uMDYuMDUtLjA4LjA1YS4xMi4xMiAwIDAxLS4wNyAwYy0uMDMgMC0uMDUtLjAxLS4wOS0uMDVsLTQ1LjAyLTQ1LjAyYS4yLjIgMCAwMS0uMDUtLjA5LjEyLjEyIDAgMDEwLS4wN2MwLS4wMi4wMS0uMDQuMDYtLjA4TDQ2Ni43NSA1MTIgMzM4Ljg4IDM4NC4xNGEuMjcuMjcgMCAwMS0uMDUtLjA2bC0uMDEtLjAyYS4xMi4xMiAwIDAxMC0uMDdjMC0uMDMuMDEtLjA1LjA1LS4wOWw0NS4wMi00NS4wMmEuMi4yIDAgMDEuMDktLjA1LjEyLjEyIDAgMDEuMDcgMGMuMDIgMCAuMDQuMDEuMDguMDZMNTEyIDQ2Ni43NWwxMjcuODYtMTI3Ljg2Yy4wNC0uMDUuMDYtLjA2LjA4LS4wNmEuMTIuMTIgMCAwMS4wNyAweiIgLz48L3N2Zz4=) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(CloseCircleOutlined_CloseCircleOutlined);
if (false) {}
/* harmony default export */ var icons_CloseCircleOutlined = (RefIcon);
/***/ }),
/***/ 53547:
/*!****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/UpOutlined.js + 1 modules ***!
\****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_UpOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
// 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.4.2@@ant-design/icons-svg/es/asn/UpOutlined.js
// This icon file is generated automatically.
var UpOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" } }] }, "name": "up", "theme": "outlined" };
/* harmony default export */ var asn_UpOutlined = (UpOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/UpOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var UpOutlined_UpOutlined = function UpOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_UpOutlined
}));
};
/**![up](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg5MC41IDc1NS4zTDUzNy45IDI2OS4yYy0xMi44LTE3LjYtMzktMTcuNi01MS43IDBMMTMzLjUgNzU1LjNBOCA4IDAgMDAxNDAgNzY4aDc1YzUuMSAwIDkuOS0yLjUgMTIuOS02LjZMNTEyIDM2OS44bDI4NC4xIDM5MS42YzMgNC4xIDcuOCA2LjYgMTIuOSA2LjZoNzVjNi41IDAgMTAuMy03LjQgNi41LTEyLjd6IiAvPjwvc3ZnPg==) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(UpOutlined_UpOutlined);
if (false) {}
/* harmony default export */ var icons_UpOutlined = (RefIcon);
/***/ }),
/***/ 26850:
/*!**********************************************************!*\
!*** ./node_modules/_swiper@5.4.5@swiper/css/swiper.css ***!
\**********************************************************/
/***/ (function() {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ 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.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_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_1_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);
/***/ }),
/***/ 12563:
/*!*******************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/tag/index.js + 5 modules ***!
\*******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ tag; }
});
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CloseOutlined.js + 1 modules
var CloseOutlined = __webpack_require__(14834);
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/colors.js
var colors = __webpack_require__(36785);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useClosable.js
var useClosable = __webpack_require__(47729);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/index.js + 4 modules
var wave = __webpack_require__(14088);
// 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/statistic.js
var statistic = __webpack_require__(37613);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
var genComponentStyleHook = __webpack_require__(83116);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tag/style/index.js
// ============================== Styles ==============================
const genBaseStyle = token => {
const {
paddingXXS,
lineWidth,
tagPaddingHorizontal,
componentCls
} = token;
const paddingInline = tagPaddingHorizontal - lineWidth;
const iconMarginInline = paddingXXS - lineWidth;
return {
// Result
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
display: 'inline-block',
height: 'auto',
marginInlineEnd: token.marginXS,
paddingInline,
fontSize: token.tagFontSize,
lineHeight: token.tagLineHeight,
whiteSpace: 'nowrap',
background: token.defaultBg,
border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,
borderRadius: token.borderRadiusSM,
opacity: 1,
transition: `all ${token.motionDurationMid}`,
textAlign: 'start',
position: 'relative',
// RTL
[`&${componentCls}-rtl`]: {
direction: 'rtl'
},
'&, a, a:hover': {
color: token.defaultColor
},
[`${componentCls}-close-icon`]: {
marginInlineStart: iconMarginInline,
color: token.colorTextDescription,
fontSize: token.tagIconSize,
cursor: 'pointer',
transition: `all ${token.motionDurationMid}`,
'&:hover': {
color: token.colorTextHeading
}
},
[`&${componentCls}-has-color`]: {
borderColor: 'transparent',
[`&, a, a:hover, ${token.iconCls}-close, ${token.iconCls}-close:hover`]: {
color: token.colorTextLightSolid
}
},
[`&-checkable`]: {
backgroundColor: 'transparent',
borderColor: 'transparent',
cursor: 'pointer',
[`&:not(${componentCls}-checkable-checked):hover`]: {
color: token.colorPrimary,
backgroundColor: token.colorFillSecondary
},
'&:active, &-checked': {
color: token.colorTextLightSolid
},
'&-checked': {
backgroundColor: token.colorPrimary,
'&:hover': {
backgroundColor: token.colorPrimaryHover
}
},
'&:active': {
backgroundColor: token.colorPrimaryActive
}
},
[`&-hidden`]: {
display: 'none'
},
// To ensure that a space will be placed between character and `Icon`.
[`> ${token.iconCls} + span, > span + ${token.iconCls}`]: {
marginInlineStart: paddingInline
}
}),
[`${componentCls}-borderless`]: {
borderColor: 'transparent',
background: token.tagBorderlessBg
}
};
};
// ============================== Export ==============================
const prepareToken = token => {
const {
lineWidth,
fontSizeIcon
} = token;
const tagFontSize = token.fontSizeSM;
const tagLineHeight = `${token.lineHeightSM * tagFontSize}px`;
const tagToken = (0,statistic/* merge */.TS)(token, {
tagFontSize,
tagLineHeight,
tagIconSize: fontSizeIcon - 2 * lineWidth,
tagPaddingHorizontal: 8,
tagBorderlessBg: token.colorFillTertiary
});
return tagToken;
};
const prepareCommonToken = token => ({
defaultBg: token.colorFillQuaternary,
defaultColor: token.colorText
});
/* harmony default export */ var tag_style = ((0,genComponentStyleHook/* default */.Z)('Tag', token => {
const tagToken = prepareToken(token);
return genBaseStyle(tagToken);
}, prepareCommonToken));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tag/CheckableTag.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 CheckableTag = props => {
const {
prefixCls: customizePrefixCls,
style,
className,
checked,
onChange,
onClick
} = props,
restProps = __rest(props, ["prefixCls", "style", "className", "checked", "onChange", "onClick"]);
const {
getPrefixCls,
tag
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const handleClick = e => {
onChange === null || onChange === void 0 ? void 0 : onChange(!checked);
onClick === null || onClick === void 0 ? void 0 : onClick(e);
};
const prefixCls = getPrefixCls('tag', customizePrefixCls);
// Style
const [wrapSSR, hashId] = tag_style(prefixCls);
const cls = _classnames_2_5_1_classnames_default()(prefixCls, `${prefixCls}-checkable`, {
[`${prefixCls}-checkable-checked`]: checked
}, tag === null || tag === void 0 ? void 0 : tag.className, className, hashId);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, restProps, {
style: Object.assign(Object.assign({}, style), tag === null || tag === void 0 ? void 0 : tag.style),
className: cls,
onClick: handleClick
})));
};
/* harmony default export */ var tag_CheckableTag = (CheckableTag);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genPresetColor.js
var genPresetColor = __webpack_require__(45157);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tag/style/presetCmp.js
// Style as status component
// ============================== Preset ==============================
const genPresetStyle = token => (0,genPresetColor/* default */.Z)(token, (colorKey, _ref) => {
let {
textColor,
lightBorderColor,
lightColor,
darkColor
} = _ref;
return {
[`${token.componentCls}-${colorKey}`]: {
color: textColor,
background: lightColor,
borderColor: lightBorderColor,
// Inverse color
'&-inverse': {
color: token.colorTextLightSolid,
background: darkColor,
borderColor: darkColor
},
[`&${token.componentCls}-borderless`]: {
borderColor: 'transparent'
}
}
};
});
// ============================== Export ==============================
/* harmony default export */ var presetCmp = ((0,genComponentStyleHook/* genSubStyleComponent */.b)(['Tag', 'preset'], token => {
const tagToken = prepareToken(token);
return genPresetStyle(tagToken);
}, prepareCommonToken));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/capitalize.js
function capitalize(str) {
if (typeof str !== 'string') {
return str;
}
const ret = str.charAt(0).toUpperCase() + str.slice(1);
return ret;
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tag/style/statusCmp.js
const genTagStatusStyle = (token, status, cssVariableType) => {
const capitalizedCssVariableType = capitalize(cssVariableType);
return {
[`${token.componentCls}-${status}`]: {
color: token[`color${cssVariableType}`],
background: token[`color${capitalizedCssVariableType}Bg`],
borderColor: token[`color${capitalizedCssVariableType}Border`],
[`&${token.componentCls}-borderless`]: {
borderColor: 'transparent'
}
}
};
};
// ============================== Export ==============================
/* harmony default export */ var statusCmp = ((0,genComponentStyleHook/* genSubStyleComponent */.b)(['Tag', 'status'], token => {
const tagToken = prepareToken(token);
return [genTagStatusStyle(tagToken, 'success', 'Success'), genTagStatusStyle(tagToken, 'processing', 'Info'), genTagStatusStyle(tagToken, 'error', 'Error'), genTagStatusStyle(tagToken, 'warning', 'Warning')];
}, prepareCommonToken));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tag/index.js
"use client";
var tag_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const InternalTag = (tagProps, ref) => {
const {
prefixCls: customizePrefixCls,
className,
rootClassName,
style,
children,
icon,
color,
onClose,
closeIcon,
closable,
bordered = true
} = tagProps,
props = tag_rest(tagProps, ["prefixCls", "className", "rootClassName", "style", "children", "icon", "color", "onClose", "closeIcon", "closable", "bordered"]);
const {
getPrefixCls,
direction,
tag
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const [visible, setVisible] = _react_17_0_2_react.useState(true);
// Warning for deprecated usage
if (false) {}
_react_17_0_2_react.useEffect(() => {
if ('visible' in props) {
setVisible(props.visible);
}
}, [props.visible]);
const isPreset = (0,colors/* isPresetColor */.o2)(color);
const isStatus = (0,colors/* isPresetStatusColor */.yT)(color);
const isInternalColor = isPreset || isStatus;
const tagStyle = Object.assign(Object.assign({
backgroundColor: color && !isInternalColor ? color : undefined
}, tag === null || tag === void 0 ? void 0 : tag.style), style);
const prefixCls = getPrefixCls('tag', customizePrefixCls);
// Style
const [wrapSSR, hashId] = tag_style(prefixCls);
const tagClassName = _classnames_2_5_1_classnames_default()(prefixCls, tag === null || tag === void 0 ? void 0 : tag.className, {
[`${prefixCls}-${color}`]: isInternalColor,
[`${prefixCls}-has-color`]: color && !isInternalColor,
[`${prefixCls}-hidden`]: !visible,
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-borderless`]: !bordered
}, className, rootClassName, hashId);
const handleCloseClick = e => {
e.stopPropagation();
onClose === null || onClose === void 0 ? void 0 : onClose(e);
if (e.defaultPrevented) {
return;
}
setVisible(false);
};
const [, mergedCloseIcon] = (0,useClosable/* default */.Z)(closable, closeIcon, iconNode => iconNode === null ? /*#__PURE__*/_react_17_0_2_react.createElement(CloseOutlined/* default */.Z, {
className: `${prefixCls}-close-icon`,
onClick: handleCloseClick
}) : /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-close-icon`,
onClick: handleCloseClick
}, iconNode), null, false);
const isNeedWave = typeof props.onClick === 'function' || children && children.type === 'a';
const iconNode = icon || null;
const kids = iconNode ? /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, iconNode, children && /*#__PURE__*/_react_17_0_2_react.createElement("span", null, children)) : children;
const tagNode = /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, props, {
ref: ref,
className: tagClassName,
style: tagStyle
}), kids, mergedCloseIcon, isPreset && /*#__PURE__*/_react_17_0_2_react.createElement(presetCmp, {
key: "preset",
prefixCls: prefixCls
}), isStatus && /*#__PURE__*/_react_17_0_2_react.createElement(statusCmp, {
key: "status",
prefixCls: prefixCls
}));
return wrapSSR(isNeedWave ? /*#__PURE__*/_react_17_0_2_react.createElement(wave/* default */.Z, {
component: "Tag"
}, tagNode) : tagNode);
};
const Tag = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalTag);
if (false) {}
Tag.CheckableTag = tag_CheckableTag;
/* harmony default export */ var tag = (Tag);
/***/ })
}]);

File diff suppressed because one or more lines are too long

@ -986,8 +986,8 @@ var TabPane = tabs/* default */.Z.TabPane;
/* harmony default export */ var Collaboratemodules = ({"bg":"bg___Onnmh","wrap":"wrap___VTtdp","modal":"modal___MArZa","content":"content___a69LK","head":"head____zVzr","headCount":"headCount___GhK7o","button":"button___DoAh3","itemWrap":"itemWrap___UR35k","imgWrap":"imgWrap___DpS0R","img":"img___N9se3","manager":"manager___m4Mzg","itemContent":"itemContent___Ut7hr","nameWrap":"nameWrap___y73uS","name":"name___hJUHg","actionGroup":"actionGroup___QEytf","deleteIcon":"deleteIcon___XGFcN","schoolWrap":"schoolWrap___qsoOp","school":"school___yh8l2","countWrap":"countWrap___MQKPn","deletetitle":"deletetitle___nAICN","yseTitle":"yseTitle___t5fzp"});
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/PlusOutlined.js + 1 modules
var PlusOutlined = __webpack_require__(22415);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 12 modules
var Header = __webpack_require__(15932);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 5 modules
var Header = __webpack_require__(49962);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(27786);
;// CONCATENATED MODULE: ./src/pages/Innovation/Tasks/Collaborate/index.tsx

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[85274,96738,80638,63276],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[45289,96738,99531,63276],{
/***/ 5929:
/*!**********************************************!*\
@ -1453,9 +1453,9 @@ var FileDownloadList = function FileDownloadList(_ref) {
/***/ }),
/***/ 80638:
/***/ 99531:
/*!**********************************************************!*\
!*** ./src/components/MultiUpload/index.tsx + 3 modules ***!
!*** ./src/components/MultiUpload/index.tsx + 2 modules ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -1486,7 +1486,7 @@ var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js + 24 modules
var upload = __webpack_require__(46651);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var es_message = __webpack_require__(8591);
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
@ -1495,136 +1495,8 @@ var es_button = __webpack_require__(3113);
var env = __webpack_require__(17985);
// EXTERNAL MODULE: ./src/pages/MoopCases/FormPanel/service.ts
var service = __webpack_require__(52989);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/SingleUpload/index.tsx
var uploadNameSizeSeperator = '  ';
function bytesToSize(bytes) {
var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
if (bytes == 0) return '0 Byte';
var i = parseInt('' + Math.floor(Math.log(bytes) / Math.log(1024)), 10);
return (bytes / Math.pow(1024, i)).toFixed(1) + ' ' + sizes[i];
}
/* harmony default export */ var SingleUpload = (function (_ref) {
var _ref$value = _ref.value,
value = _ref$value === void 0 ? [] : _ref$value,
action = _ref.action,
_onChange = _ref.onChange,
className = _ref.className,
_ref$maxSize = _ref.maxSize,
maxSize = _ref$maxSize === void 0 ? 150 : _ref$maxSize,
_ref$title = _ref.title,
title = _ref$title === void 0 ? '文件上传' : _ref$title,
_ref$accept = _ref.accept,
accept = _ref$accept === void 0 ? null : _ref$accept;
var uploadProps = {
multiple: false,
fileList: value,
accept: accept,
withCredentials: true,
beforeUpload: function beforeUpload(file) {
var fileSize = file.size / 1024 / 1024;
if (!(fileSize < maxSize)) {
message.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB),\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 Promise.reject();
}
return true;
},
action: "".concat(ENV.API_SERVER, "/api/attachments.json"),
// ?debug=student&randomcode=undefined&client_key=6d57f8c3dd186c5ada392546ace9620a
onChange: function onChange(info) {
var _info$file;
var fileList = _toConsumableArray(info.fileList);
fileList = fileList.map(function (file) {
if (file.name.indexOf(uploadNameSizeSeperator) === -1) {
file.name = "".concat(file.name).concat(uploadNameSizeSeperator).concat(bytesToSize(file.size));
}
return _objectSpread({}, file);
});
if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 || (_info$file = _info$file.response) === null || _info$file === void 0 ? void 0 : _info$file.status) === -1) {
var _info$file2;
message.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message);
_onChange([]);
return;
}
_onChange(fileList);
},
onRemove: function () {
var _onRemove = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
var fileSize, id, rs;
return _regeneratorRuntime().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
fileSize = file.size / 1024 / 1024;
if (!(file.status === 'uploading')) {
_context.next = 3;
break;
}
return _context.abrupt("return", true);
case 3:
if (fileSize < maxSize) {
_context.next = 7;
break;
}
return _context.abrupt("return", true);
case 7:
id = file.response ? file.response.id : file.uid;
if (!id) {
_context.next = 15;
break;
}
_context.next = 11;
return removeAttachment(file.response ? file.response.id : file.id);
case 11:
rs = _context.sent;
return _context.abrupt("return", rs);
case 15:
return _context.abrupt("return", true);
case 16:
case "end":
return _context.stop();
}
}, _callee);
}));
function onRemove(_x) {
return _onRemove.apply(this, arguments);
}
return onRemove;
}()
};
function onCancel(e) {
e.preventDefault();
e.stopPropagation();
}
return /*#__PURE__*/_jsx("div", {
className: "single-upload ".concat(className ? className : ''),
children: /*#__PURE__*/_jsxs(Upload, _objectSpread(_objectSpread({}, uploadProps), {}, {
children: [/*#__PURE__*/_jsx(Button, {
type: "primary",
title: value.length > 0 ? '每次只能上传一个资源, 删除下面资源可重新上传 ' : '',
disabled: value.length > 0,
ghost: true,
children: title
}), /*#__PURE__*/_jsxs("span", {
onClick: onCancel,
style: {
marginLeft: 10
},
children: ["(\u5355\u4E2A\u6587\u4EF6\u6700\u5927", maxSize, "M)", ' ']
})]
}))
});
});
// EXTERNAL MODULE: ./src/components/SingleUpload/index.tsx
var SingleUpload = __webpack_require__(95081);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/InboxOutlined.js + 1 modules
var InboxOutlined = __webpack_require__(93737);
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
@ -1680,6 +1552,8 @@ var SvgUploadImg = function SvgUploadImg(props) {
};
/* harmony default export */ var uploadImg = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=");
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/MultiUpload/index.tsx
@ -1705,7 +1579,7 @@ function coverToFileList(data) {
return {
uid: item.id,
id: item.id,
name: item.title + uploadNameSizeSeperator + item.filesize,
name: item.title + SingleUpload/* uploadNameSizeSeperator */.sX + item.filesize,
url: item.url,
filesize: item.filesize,
status: 'done',
@ -1778,7 +1652,7 @@ function coverToFileList(data) {
if (fileList.concat(fileArr).length > number) {
fileList.pop();
setFileList(toConsumableArray_default()(fileList));
es_message/* default */.ZP.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(number, "\u4E2A\u6587\u4EF6"));
message/* default */.ZP.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(number, "\u4E2A\u6587\u4EF6"));
if (aloneClear) {
return Promise.reject();
}
@ -1786,7 +1660,7 @@ function coverToFileList(data) {
return false;
}
if (!(fileSize < maxSize)) {
es_message/* default */.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB)."));
message/* default */.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB)."));
if (aloneClear) {
return Promise.reject();
}
@ -1807,7 +1681,7 @@ function coverToFileList(data) {
}
if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 || (_info$file = _info$file.response) === null || _info$file === void 0 ? void 0 : _info$file.status) === -1) {
var _info$file2;
es_message/* default */.ZP.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message);
message/* default */.ZP.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message);
return;
}
if (fileList.length >= number) setDisabled(true);else setDisabled(false);
@ -1818,8 +1692,8 @@ function coverToFileList(data) {
var _file$response2;
file.url = "/api/attachments/".concat(file === null || file === void 0 || (_file$response2 = file.response) === null || _file$response2 === void 0 ? void 0 : _file$response2.id);
}
if (file.name.indexOf(uploadNameSizeSeperator) === -1) {
file.name = "".concat(file.name).concat(uploadNameSizeSeperator).concat(bytesToSize(file.size));
if (file.name.indexOf(SingleUpload/* uploadNameSizeSeperator */.sX) === -1) {
file.name = "".concat(file.name).concat(SingleUpload/* uploadNameSizeSeperator */.sX).concat((0,SingleUpload/* bytesToSize */.RD)(file.size));
}
return objectSpread2_default()({}, file);
});
@ -1885,7 +1759,7 @@ function coverToFileList(data) {
return remove();
case 2:
res = _context2.sent;
es_message/* default */.ZP.success('删除成功');
message/* default */.ZP.success('删除成功');
resolve(true);
case 5:
case "end":
@ -1953,6 +1827,158 @@ function coverToFileList(data) {
/***/ }),
/***/ 95081:
/*!***********************************************!*\
!*** ./src/components/SingleUpload/index.tsx ***!
\***********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ RD: function() { return /* binding */ bytesToSize; },
/* harmony export */ sX: function() { return /* binding */ uploadNameSizeSeperator; }
/* harmony export */ });
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js */ 37205);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/utils/env */ 17985);
/* harmony import */ var _pages_MoopCases_FormPanel_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/pages/MoopCases/FormPanel/service */ 52989);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var uploadNameSizeSeperator = '  ';
function bytesToSize(bytes) {
var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
if (bytes == 0) return '0 Byte';
var i = parseInt('' + Math.floor(Math.log(bytes) / Math.log(1024)), 10);
return (bytes / Math.pow(1024, i)).toFixed(1) + ' ' + sizes[i];
}
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (function (_ref) {
var _ref$value = _ref.value,
value = _ref$value === void 0 ? [] : _ref$value,
action = _ref.action,
_onChange = _ref.onChange,
className = _ref.className,
_ref$maxSize = _ref.maxSize,
maxSize = _ref$maxSize === void 0 ? 150 : _ref$maxSize,
_ref$title = _ref.title,
title = _ref$title === void 0 ? '文件上传' : _ref$title,
_ref$accept = _ref.accept,
accept = _ref$accept === void 0 ? null : _ref$accept;
var uploadProps = {
multiple: false,
fileList: value,
accept: accept,
withCredentials: true,
beforeUpload: function beforeUpload(file) {
var fileSize = file.size / 1024 / 1024;
if (!(fileSize < maxSize)) {
message.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB),\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 Promise.reject();
}
return true;
},
action: "".concat(ENV.API_SERVER, "/api/attachments.json"),
// ?debug=student&randomcode=undefined&client_key=6d57f8c3dd186c5ada392546ace9620a
onChange: function onChange(info) {
var _info$file;
var fileList = _toConsumableArray(info.fileList);
fileList = fileList.map(function (file) {
if (file.name.indexOf(uploadNameSizeSeperator) === -1) {
file.name = "".concat(file.name).concat(uploadNameSizeSeperator).concat(bytesToSize(file.size));
}
return _objectSpread({}, file);
});
if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 || (_info$file = _info$file.response) === null || _info$file === void 0 ? void 0 : _info$file.status) === -1) {
var _info$file2;
message.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message);
_onChange([]);
return;
}
_onChange(fileList);
},
onRemove: function () {
var _onRemove = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
var fileSize, id, rs;
return _regeneratorRuntime().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
fileSize = file.size / 1024 / 1024;
if (!(file.status === 'uploading')) {
_context.next = 3;
break;
}
return _context.abrupt("return", true);
case 3:
if (fileSize < maxSize) {
_context.next = 7;
break;
}
return _context.abrupt("return", true);
case 7:
id = file.response ? file.response.id : file.uid;
if (!id) {
_context.next = 15;
break;
}
_context.next = 11;
return removeAttachment(file.response ? file.response.id : file.id);
case 11:
rs = _context.sent;
return _context.abrupt("return", rs);
case 15:
return _context.abrupt("return", true);
case 16:
case "end":
return _context.stop();
}
}, _callee);
}));
function onRemove(_x) {
return _onRemove.apply(this, arguments);
}
return onRemove;
}()
};
function onCancel(e) {
e.preventDefault();
e.stopPropagation();
}
return /*#__PURE__*/_jsx("div", {
className: "single-upload ".concat(className ? className : ''),
children: /*#__PURE__*/_jsxs(Upload, _objectSpread(_objectSpread({}, uploadProps), {}, {
children: [/*#__PURE__*/_jsx(Button, {
type: "primary",
title: value.length > 0 ? '每次只能上传一个资源, 删除下面资源可重新上传 ' : '',
disabled: value.length > 0,
ghost: true,
children: title
}), /*#__PURE__*/_jsxs("span", {
onClick: onCancel,
style: {
marginLeft: 10
},
children: ["(\u5355\u4E2A\u6587\u4EF6\u6700\u5927", maxSize, "M)", ' ']
})]
}))
});
});
/***/ }),
/***/ 819:
/*!***************************************************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/CommonHomework/Detail/components/ConfigWorks/HiddenSetting/GroupAppeal.tsx ***!
@ -3027,6 +3053,7 @@ function updateMoopCase(id, params) {
/* harmony export */ D9: function() { return /* binding */ ExportStudentanalysis; },
/* harmony export */ IM: function() { return /* binding */ get_ecs_attachment; },
/* harmony export */ Iy: function() { return /* binding */ ExportCourseWorkListScores; },
/* harmony export */ KM: function() { return /* binding */ getmember_works; },
/* harmony export */ Ne: function() { return /* binding */ getec_training_objectives; },
/* harmony export */ ON: function() { return /* binding */ exportPaperlibraryPaper; },
/* harmony export */ Uj: function() { return /* binding */ exportTaskPass; },
@ -3045,16 +3072,16 @@ function updateMoopCase(id, params) {
/* harmony export */ iA: function() { return /* binding */ ExportCourseAndOther; },
/* harmony export */ j6: function() { return /* binding */ ExportCourseTotalScore; },
/* harmony export */ je: function() { return /* binding */ ExportExerciseStudentScores; },
/* harmony export */ jj: function() { return /* binding */ ExportCourseWorkListShixuns; },
/* harmony export */ kS: function() { return /* binding */ getquestion_rank_list; },
/* harmony export */ o6: function() { return /* binding */ ExportVideoStudent; },
/* harmony export */ pO: function() { return /* binding */ exportUserExerciseDetail; },
/* harmony export */ rQ: function() { return /* binding */ ExportProblemset; },
/* harmony export */ sA: function() { return /* binding */ ExportPollsScores; },
/* harmony export */ xm: function() { return /* binding */ getecyears; },
/* harmony export */ xo: function() { return /* binding */ getec_graduation_requirements; },
/* harmony export */ y8: function() { return /* binding */ Exportcompetitions; }
/* harmony export */ xo: function() { return /* binding */ getec_graduation_requirements; }
/* harmony export */ });
/* unused harmony export ExportCourseWorkListAppendix */
/* unused harmony exports ExportCourseWorkListAppendix, Exportcompetitions */
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
@ -3572,14 +3599,14 @@ var ExportProblemset = /*#__PURE__*/function () {
return _ref15.apply(this, arguments);
};
}();
var Exportcompetitions = /*#__PURE__*/function () {
var _ref16 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee16(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee16$(_context16) {
var Exportcompetitions = /*#__PURE__*/(/* unused pure expression or super */ null && (function () {
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(params) {
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
while (1) switch (_context16.prev = _context16.next) {
case 0:
_context16.next = 2;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/competitions/region_reports.xlsx",
return downLoadFile('', setUrlQuery({
url: ENV.API_SERVER + "/api/competitions/region_reports.xlsx",
query: params
}));
case 2:
@ -3591,7 +3618,7 @@ var Exportcompetitions = /*#__PURE__*/function () {
return function Exportcompetitions(_x17) {
return _ref16.apply(this, arguments);
};
}();
}()));
var ExportExerciseStudentScores = /*#__PURE__*/function () {
var _ref17 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee17(params) {
var res;
@ -3844,7 +3871,7 @@ var exportUserExerciseDetail = /*#__PURE__*/function () {
case 0:
_context28.next = 2;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)(title || '', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/exercises/".concat(params === null || params === void 0 ? void 0 : params.exercise_id, "/user_exercise_detail.json"),
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/exercises/".concat(params === null || params === void 0 ? void 0 : params.exercise_id, "/consult_exercise.json"),
query: params
}));
case 2:
@ -3879,16 +3906,14 @@ var exportClassroomsPaper = /*#__PURE__*/function () {
return _ref29.apply(this, arguments);
};
}();
// 导出问卷word文档
var exportCommitResultWord = /*#__PURE__*/function () {
var getmember_works = /*#__PURE__*/function () {
var _ref30 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee30(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee30$(_context30) {
while (1) switch (_context30.prev = _context30.next) {
case 0:
_context30.next = 2;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/polls/".concat(params === null || params === void 0 ? void 0 : params.id, "/commit_result.json"),
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/competitions/".concat(params === null || params === void 0 ? void 0 : params.identifier, "/competition_commit_records/member_works.xlsx"),
query: params
}));
case 2:
@ -3897,20 +3922,19 @@ var exportCommitResultWord = /*#__PURE__*/function () {
}
}, _callee30);
}));
return function exportCommitResultWord(_x32) {
return function getmember_works(_x32) {
return _ref30.apply(this, arguments);
};
}();
// 导出实训word
var exportTaskPass = /*#__PURE__*/function () {
// 导出问卷word文档
var exportCommitResultWord = /*#__PURE__*/function () {
var _ref31 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee31(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee31$(_context31) {
while (1) switch (_context31.prev = _context31.next) {
case 0:
_context31.next = 2;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/paths/get_task_pass.json",
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/polls/".concat(params === null || params === void 0 ? void 0 : params.id, "/commit_result.json"),
query: params
}));
case 2:
@ -3919,11 +3943,71 @@ var exportTaskPass = /*#__PURE__*/function () {
}
}, _callee31);
}));
return function exportTaskPass(_x33) {
return function exportCommitResultWord(_x33) {
return _ref31.apply(this, arguments);
};
}();
// 导出实训word
var exportTaskPass = /*#__PURE__*/function () {
var _ref32 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee32(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee32$(_context32) {
while (1) switch (_context32.prev = _context32.next) {
case 0:
_context32.next = 2;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/paths/get_task_pass.json",
query: params
}));
case 2:
case "end":
return _context32.stop();
}
}, _callee32);
}));
return function exportTaskPass(_x34) {
return _ref32.apply(this, arguments);
};
}();
var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
var _ref33 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee33(params, type) {
var res;
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee33$(_context33) {
while (1) switch (_context33.prev = _context33.next) {
case 0:
_context33.next = 2;
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportCourseWorkListShiXuns */ .o_)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params));
case 2:
res = _context33.sent;
if (res.status === 0) {
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP.info('导出任务生成成功导出后文件保存时间为7天请及时下载');
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/").concat(type));
} else if (res.status === -3) {
(0,umi__WEBPACK_IMPORTED_MODULE_4__.getDvaApp)()._store.dispatch({
type: 'classroomList/setActionTabs',
payload: {
key: '导出提醒'
}
});
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/").concat(type));
}
// else if(res.status === -1){
// history.push(`/classrooms/${params.coursesId}/exportlist/${type}`)
// };
// console.log(JSON.stringify(params))
// if(res.status === 0) await downLoadFileIframe('',setUrlQuery({url:ENV.API_SERVER + `/api/homework_commons/${params.categoryId}/works_list.xlsx`,query:params}))
// hideLoading();
case 4:
case "end":
return _context33.stop();
}
}, _callee33);
}));
return function ExportCourseWorkListShixuns(_x35, _x36) {
return _ref33.apply(this, arguments);
};
}();
/***/ }),
/***/ 57636:

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[46117,52720,73336,45504,80480,39011,10646,98964,38996,27491,44467,93221,88178,14161,70122,81326,98255],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[46117,52720,73336,45504,80480,39011,10646,98964,38996,27491,93221,88178,14161,70122,81326,98255],{
/***/ 89136:
/*!*****************************************************************************************************!*\

File diff suppressed because one or more lines are too long

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[56219,73336,79074,23942,99998,39011,38996,27491,44467,93221,88178,14161,70122,98255],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[56219,73336,79074,23942,99998,39011,38996,27491,93221,88178,14161,70122,98255],{
/***/ 89136:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[36150,45927,26744,93617,86736,28247,19807,17814,98255],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[5627],{
/***/ 88289:
/*!*******************************************************************************************************************!*\
@ -46,51 +46,6 @@ if (false) {}
/***/ }),
/***/ 89136:
/*!*****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
\*****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_EyeOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
// 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.4.2@@ant-design/icons-svg/es/asn/EyeOutlined.js
// This icon file is generated automatically.
var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeOutlined
}));
};
/**![eye](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk0Mi4yIDQ4Ni4yQzg0Ny40IDI4Ni41IDcwNC4xIDE4NiA1MTIgMTg2Yy0xOTIuMiAwLTMzNS40IDEwMC41LTQzMC4yIDMwMC4zYTYwLjMgNjAuMyAwIDAwMCA1MS41QzE3Ni42IDczNy41IDMxOS45IDgzOCA1MTIgODM4YzE5Mi4yIDAgMzM1LjQtMTAwLjUgNDMwLjItMzAwLjMgNy43LTE2LjIgNy43LTM1IDAtNTEuNXpNNTEyIDc2NmMtMTYxLjMgMC0yNzkuNC04MS44LTM2Mi43LTI1NEMyMzIuNiAzMzkuOCAzNTAuNyAyNTggNTEyIDI1OGMxNjEuMyAwIDI3OS40IDgxLjggMzYyLjcgMjU0Qzc5MS41IDY4NC4yIDY3My40IDc2NiA1MTIgNzY2em0tNC00MzBjLTk3LjIgMC0xNzYgNzguOC0xNzYgMTc2czc4LjggMTc2IDE3NiAxNzYgMTc2LTc4LjggMTc2LTE3Ni03OC44LTE3Ni0xNzYtMTc2em0wIDI4OGMtNjEuOSAwLTExMi01MC4xLTExMi0xMTJzNTAuMS0xMTIgMTEyLTExMiAxMTIgNTAuMSAxMTIgMTEyLTUwLjEgMTEyLTExMiAxMTJ6IiAvPjwvc3ZnPg==) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined);
if (false) {}
/* harmony default export */ var icons_EyeOutlined = (RefIcon);
/***/ }),
/***/ 24905:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules ***!
@ -768,405 +723,6 @@ Dropdown.Button = dropdown_button;
/***/ }),
/***/ 98135:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ input; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_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/form/context.js
var form_context = __webpack_require__(32441);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js
var style = __webpack_require__(9937);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js
"use client";
const Group = props => {
const {
getPrefixCls,
direction
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
className
} = props;
const prefixCls = getPrefixCls('input-group', customizePrefixCls);
const inputPrefixCls = getPrefixCls('input');
const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls);
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
[`${prefixCls}-lg`]: props.size === 'large',
[`${prefixCls}-sm`]: props.size === 'small',
[`${prefixCls}-compact`]: props.compact,
[`${prefixCls}-rtl`]: direction === 'rtl'
}, hashId, className);
const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM);
const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
isFormItemInput: false
}), [formItemContext]);
if (false) {}
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: cls,
style: props.style,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave,
onFocus: props.onFocus,
onBlur: props.onBlur
}, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, {
value: groupFormItemContext
}, props.children)));
};
/* harmony default export */ var input_Group = (Group);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules
var Input = __webpack_require__(9432);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js
// This icon file is generated automatically.
var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" };
/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeInvisibleOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeInvisibleOutlined
}));
};
/**![eye-invisible](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk0Mi4yIDQ4Ni4yUTg4OS40NyAzNzUuMTEgODE2LjcgMzA1bC01MC44OCA1MC44OEM4MDcuMzEgMzk1LjUzIDg0My40NSA0NDcuNCA4NzQuNyA1MTIgNzkxLjUgNjg0LjIgNjczLjQgNzY2IDUxMiA3NjZxLTcyLjY3IDAtMTMzLjg3LTIyLjM4TDMyMyA3OTguNzVRNDA4IDgzOCA1MTIgODM4cTI4OC4zIDAgNDMwLjItMzAwLjNhNjAuMjkgNjAuMjkgMCAwMDAtNTEuNXptLTYzLjU3LTMyMC42NEw4MzYgMTIyLjg4YTggOCAwIDAwLTExLjMyIDBMNzE1LjMxIDIzMi4yUTYyNC44NiAxODYgNTEyIDE4NnEtMjg4LjMgMC00MzAuMiAzMDAuM2E2MC4zIDYwLjMgMCAwMDAgNTEuNXE1Ni42OSAxMTkuNCAxMzYuNSAxOTEuNDFMMTEyLjQ4IDgzNWE4IDggMCAwMDAgMTEuMzFMMTU1LjE3IDg4OWE4IDggMCAwMDExLjMxIDBsNzEyLjE1LTcxMi4xMmE4IDggMCAwMDAtMTEuMzJ6TTE0OS4zIDUxMkMyMzIuNiAzMzkuOCAzNTAuNyAyNTggNTEyIDI1OGM1NC41NCAwIDEwNC4xMyA5LjM2IDE0OS4xMiAyOC4zOWwtNzAuMyA3MC4zYTE3NiAxNzYgMCAwMC0yMzguMTMgMjM4LjEzbC04My40MiA4My40MkMyMjMuMSA2MzcuNDkgMTgzLjMgNTgyLjI4IDE0OS4zIDUxMnptMjQ2LjcgMGExMTIuMTEgMTEyLjExIDAgMDExNDYuMi0xMDYuNjlMNDAxLjMxIDU0Ni4yQTExMiAxMTIgMCAwMTM5NiA1MTJ6IiAvPjxwYXRoIGQ9Ik01MDggNjI0Yy0zLjQ2IDAtNi44Ny0uMTYtMTAuMjUtLjQ3bC01Mi44MiA1Mi44MmExNzYuMDkgMTc2LjA5IDAgMDAyMjcuNDItMjI3LjQybC01Mi44MiA1Mi44MmMuMzEgMy4zOC40NyA2Ljc5LjQ3IDEwLjI1YTExMS45NCAxMTEuOTQgMCAwMS0xMTIgMTEyeiIgLz48L3N2Zz4=) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined);
if (false) {}
/* harmony default export */ var icons_EyeInvisibleOutlined = (RefIcon);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
var EyeOutlined = __webpack_require__(89136);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.41.0@rc-util/es/omit.js
var omit = __webpack_require__(83930);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.41.0@rc-util/es/ref.js
var es_ref = __webpack_require__(85510);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js
var useRemovePasswordTimeout = __webpack_require__(59412);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.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 defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null);
const ActionMap = {
click: 'onClick',
hover: 'onMouseOver'
};
const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
visibilityToggle = true
} = props;
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
const inputRef = (0,_react_17_0_2_react.useRef)(null);
_react_17_0_2_react.useEffect(() => {
if (visibilityControlled) {
setVisible(visibilityToggle.visible);
}
}, [visibilityControlled, visibilityToggle]);
// Remove Password value
const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
const onVisibleChange = () => {
const {
disabled
} = props;
if (disabled) {
return;
}
if (visible) {
removePasswordTimeout();
}
setVisible(prevState => {
var _a;
const newState = !prevState;
if (typeof visibilityToggle === 'object') {
(_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
}
return newState;
});
};
const getIcon = prefixCls => {
const {
action = 'click',
iconRender = defaultIconRender
} = props;
const iconTrigger = ActionMap[action] || '';
const icon = iconRender(visible);
const iconProps = {
[iconTrigger]: onVisibleChange,
className: `${prefixCls}-icon`,
key: 'passwordIcon',
onMouseDown: e => {
// Prevent focused state lost
// https://github.com/ant-design/ant-design/issues/15173
e.preventDefault();
},
onMouseUp: e => {
// Prevent caret position change
// https://github.com/ant-design/ant-design/issues/23524
e.preventDefault();
}
};
return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps);
};
const {
className,
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
size
} = props,
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
const suffixIcon = visibilityToggle && getIcon(prefixCls);
const inputClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, {
[`${prefixCls}-${size}`]: !!size
});
const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
type: visible ? 'text' : 'password',
className: inputClassName,
prefixCls: inputPrefixCls,
suffix: suffixIcon
});
if (size) {
omittedProps.size = size;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
}, omittedProps));
});
if (false) {}
/* harmony default export */ var input_Password = (Password);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
var SearchOutlined = __webpack_require__(11013);
// 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/button/index.js
var es_button = __webpack_require__(3113);
// 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/space/Compact.js
var Compact = __webpack_require__(33234);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js
"use client";
var Search_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 Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
className,
size: customizeSize,
suffix,
enterButton = false,
addonAfter,
loading,
disabled,
onSearch: customOnSearch,
onChange: customOnChange,
onCompositionStart,
onCompositionEnd
} = props,
restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
const {
getPrefixCls,
direction
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const composedRef = _react_17_0_2_react.useRef(false);
const prefixCls = getPrefixCls('input-search', customizePrefixCls);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const {
compactSize
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
const size = (0,useSize/* default */.Z)(ctx => {
var _a;
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
});
const inputRef = _react_17_0_2_react.useRef(null);
const onChange = e => {
if (e && e.target && e.type === 'click' && customOnSearch) {
customOnSearch(e.target.value, e, {
source: 'clear'
});
}
if (customOnChange) {
customOnChange(e);
}
};
const onMouseDown = e => {
var _a;
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
e.preventDefault();
}
};
const onSearch = e => {
var _a, _b;
if (customOnSearch) {
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, {
source: 'input'
});
}
};
const onPressEnter = e => {
if (composedRef.current || loading) {
return;
}
onSearch(e);
};
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null;
const btnClassName = `${prefixCls}-button`;
let button;
const enterButtonAsElement = enterButton || {};
const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
if (isAntdButton || enterButtonAsElement.type === 'button') {
button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({
onMouseDown,
onClick: e => {
var _a, _b;
(_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
onSearch(e);
},
key: 'enterButton'
}, isAntdButton ? {
className: btnClassName,
size
} : {}));
} else {
button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
className: btnClassName,
type: enterButton ? 'primary' : undefined,
size: size,
disabled: disabled,
key: "enterButton",
onMouseDown: onMouseDown,
onClick: onSearch,
loading: loading,
icon: searchIcon
}, enterButton);
}
if (addonAfter) {
button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
key: 'addonAfter'
})];
}
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-${size}`]: !!size,
[`${prefixCls}-with-button`]: !!enterButton
}, className);
const handleOnCompositionStart = e => {
composedRef.current = true;
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
};
const handleOnCompositionEnd = e => {
composedRef.current = false;
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
};
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
onPressEnter: onPressEnter
}, restProps, {
size: size,
onCompositionStart: handleOnCompositionStart,
onCompositionEnd: handleOnCompositionEnd,
prefixCls: inputPrefixCls,
addonAfter: button,
suffix: suffix,
onChange: onChange,
className: cls,
disabled: disabled
}));
});
if (false) {}
/* harmony default export */ var input_Search = (Search);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js
var TextArea = __webpack_require__(1643);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js
"use client";
const input_Input = Input/* default */.Z;
if (false) {}
input_Input.Group = input_Group;
input_Input.Search = input_Search;
input_Input.TextArea = TextArea/* default */.Z;
input_Input.Password = input_Password;
/* harmony default export */ var input = (input_Input);
/***/ }),
/***/ 44000:
/*!**********************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/layout/index.js ***!
@ -1188,224 +744,6 @@ Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
/***/ }),
/***/ 57809:
/*!**********************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/select/index.js ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-select */ 77861);
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/omit */ 83930);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/PurePanel */ 53487);
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/motion */ 62892);
/* harmony import */ var _util_statusUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/statusUtils */ 19080);
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 36355);
/* harmony import */ var _config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/DisabledContext */ 1684);
/* harmony import */ var _config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/defaultRenderEmpty */ 93891);
/* harmony import */ var _config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/hooks/useSize */ 19716);
/* harmony import */ var _form_context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../form/context */ 32441);
/* harmony import */ var _space_Compact__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../space/Compact */ 33234);
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 14154);
/* harmony import */ var _useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./useBuiltinPlacements */ 58582);
/* harmony import */ var _useShowArrow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useShowArrow */ 84443);
/* harmony import */ var _utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/iconUtil */ 66339);
"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;
};
// TODO: 4.0 - codemod should help to change `filterOption` to support node props.
const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
const InternalSelect = (_a, ref) => {
var _b;
var {
prefixCls: customizePrefixCls,
bordered = true,
className,
rootClassName,
getPopupContainer,
popupClassName,
dropdownClassName,
listHeight = 256,
placement,
listItemHeight = 24,
size: customizeSize,
disabled: customDisabled,
notFoundContent,
status: customStatus,
builtinPlacements,
dropdownMatchSelectWidth,
popupMatchSelectWidth,
direction: propDirection,
style,
allowClear
} = _a,
props = __rest(_a, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear"]);
const {
getPopupContainer: getContextPopupContainer,
getPrefixCls,
renderEmpty,
direction: contextDirection,
virtual,
popupMatchSelectWidth: contextPopupMatchSelectWidth,
popupOverflow,
select
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* .ConfigContext */ .E_);
const prefixCls = getPrefixCls('select', customizePrefixCls);
const rootPrefixCls = getPrefixCls();
const direction = propDirection !== null && propDirection !== void 0 ? propDirection : contextDirection;
const {
compactSize,
compactItemClassnames
} = (0,_space_Compact__WEBPACK_IMPORTED_MODULE_4__/* .useCompactItemContext */ .ri)(prefixCls, direction);
const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(prefixCls);
const mode = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
const {
mode: m
} = props;
if (m === 'combobox') {
return undefined;
}
if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) {
return 'combobox';
}
return m;
}, [props.mode]);
const isMultiple = mode === 'multiple' || mode === 'tags';
const showSuffixIcon = (0,_useShowArrow__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props.suffixIcon, props.showArrow);
const mergedPopupMatchSelectWidth = (_b = popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth) !== null && _b !== void 0 ? _b : contextPopupMatchSelectWidth;
// ===================== Form Status =====================
const {
status: contextStatus,
hasFeedback,
isFormItemInput,
feedbackIcon
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_form_context__WEBPACK_IMPORTED_MODULE_7__/* .FormItemInputContext */ .aM);
const mergedStatus = (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getMergedStatus */ .F)(contextStatus, customStatus);
// ===================== Empty =====================
let mergedNotFound;
if (notFoundContent !== undefined) {
mergedNotFound = notFoundContent;
} else if (mode === 'combobox') {
mergedNotFound = null;
} else {
mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Select')) || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
componentName: "Select"
});
}
// ===================== Icons =====================
const {
suffixIcon,
itemIcon,
removeIcon,
clearIcon
} = (0,_utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(Object.assign(Object.assign({}, props), {
multiple: isMultiple,
hasFeedback,
feedbackIcon,
showSuffixIcon,
prefixCls,
showArrow: props.showArrow,
componentName: 'Select'
}));
const mergedAllowClear = allowClear === true ? {
clearIcon
} : allowClear;
const selectProps = (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)(props, ['suffixIcon', 'itemIcon']);
const rcSelectRtlDropdownClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()(popupClassName || dropdownClassName, {
[`${prefixCls}-dropdown-${direction}`]: direction === 'rtl'
}, rootClassName, hashId);
const mergedSize = (0,_config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(ctx => {
var _a;
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
});
// ===================== Disabled =====================
const disabled = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z);
const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
const mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
[`${prefixCls}-lg`]: mergedSize === 'large',
[`${prefixCls}-sm`]: mergedSize === 'small',
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-borderless`]: !bordered,
[`${prefixCls}-in-form-item`]: isFormItemInput
}, (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getStatusClassNames */ .Z)(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, select === null || select === void 0 ? void 0 : select.className, className, rootClassName, hashId);
// ===================== Placement =====================
const memoPlacement = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
if (placement !== undefined) {
return placement;
}
return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
}, [placement, direction]);
const mergedBuiltinPlacements = (0,_useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(builtinPlacements, popupOverflow);
// ====================== Warning ======================
if (false) {}
// ====================== Render =======================
return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_select__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP, Object.assign({
ref: ref,
virtual: virtual,
showSearch: select === null || select === void 0 ? void 0 : select.showSearch
}, selectProps, {
style: Object.assign(Object.assign({}, select === null || select === void 0 ? void 0 : select.style), style),
dropdownMatchSelectWidth: mergedPopupMatchSelectWidth,
builtinPlacements: mergedBuiltinPlacements,
transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_15__/* .getTransitionName */ .m)(rootPrefixCls, 'slide-up', props.transitionName),
listHeight: listHeight,
listItemHeight: listItemHeight,
mode: mode,
prefixCls: prefixCls,
placement: memoPlacement,
direction: direction,
suffixIcon: suffixIcon,
menuItemSelectedIcon: itemIcon,
removeIcon: removeIcon,
allowClear: mergedAllowClear,
notFoundContent: mergedNotFound,
className: mergedClassName,
getPopupContainer: getPopupContainer || getContextPopupContainer,
dropdownClassName: rcSelectRtlDropdownClassName,
disabled: mergedDisabled
})));
};
if (false) {}
const Select = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(InternalSelect);
// We don't care debug panel
/* istanbul ignore next */
const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(Select);
Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
Select.Option = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .Option */ .Wx;
Select.OptGroup = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .OptGroup */ .Xo;
Select._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
if (false) {}
/* harmony default export */ __webpack_exports__["default"] = (Select);
/***/ }),
/***/ 81327:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules ***!
@ -1584,6 +922,108 @@ const CompoundedSpace = Space;
CompoundedSpace.Compact = Compact/* default */.ZP;
/* harmony default export */ var space = (CompoundedSpace);
/***/ }),
/***/ 5630:
/*!*****************************************************************!*\
!*** ./node_modules/_rc-checkbox@3.1.0@rc-checkbox/es/index.js ***!
\*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* unused harmony export Checkbox */
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ 4751);
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 28343);
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ 34725);
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ 4816);
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ 92413);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/hooks/useMergedState */ 77944);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
var _excluded = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"];
var Checkbox = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function (props, ref) {
var _classNames;
var _props$prefixCls = props.prefixCls,
prefixCls = _props$prefixCls === void 0 ? 'rc-checkbox' : _props$prefixCls,
className = props.className,
style = props.style,
checked = props.checked,
disabled = props.disabled,
_props$defaultChecked = props.defaultChecked,
defaultChecked = _props$defaultChecked === void 0 ? false : _props$defaultChecked,
_props$type = props.type,
type = _props$type === void 0 ? 'checkbox' : _props$type,
title = props.title,
onChange = props.onChange,
inputProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(props, _excluded);
var inputRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);
var _useMergedState = (0,rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(defaultChecked, {
value: checked
}),
_useMergedState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(_useMergedState, 2),
rawValue = _useMergedState2[0],
setRawValue = _useMergedState2[1];
(0,react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle)(ref, function () {
return {
focus: function focus() {
var _inputRef$current;
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
},
blur: function blur() {
var _inputRef$current2;
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.blur();
},
input: inputRef.current
};
});
var classString = classnames__WEBPACK_IMPORTED_MODULE_0___default()(prefixCls, className, (_classNames = {}, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-checked"), rawValue), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), _classNames));
var handleChange = function handleChange(e) {
if (disabled) {
return;
}
if (!('checked' in props)) {
setRawValue(e.target.checked);
}
onChange === null || onChange === void 0 ? void 0 : onChange({
target: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)({}, props), {}, {
type: type,
checked: e.target.checked
}),
stopPropagation: function stopPropagation() {
e.stopPropagation();
},
preventDefault: function preventDefault() {
e.preventDefault();
},
nativeEvent: e.nativeEvent
});
};
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", {
className: classString,
title: title,
style: style
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("input", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)({}, inputProps, {
className: "".concat(prefixCls, "-input"),
ref: inputRef,
onChange: handleChange,
disabled: disabled,
checked: !!rawValue,
type: type
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", {
className: "".concat(prefixCls, "-inner")
}));
});
/* harmony default export */ __webpack_exports__.Z = (Checkbox);
/***/ })
}]);

@ -1,651 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[56925],{
/***/ 88289:
/*!*******************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@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.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
// 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.4.2@@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.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@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
}));
};
/**![exclamation-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PHBhdGggZD0iTTQ2NCA2ODhhNDggNDggMCAxMDk2IDAgNDggNDggMCAxMC05NiAwem0yNC0xMTJoNDhjNC40IDAgOC0zLjYgOC04VjI5NmMwLTQuNC0zLjYtOC04LThoLTQ4Yy00LjQgMC04IDMuNi04IDh2MjcyYzAgNC40IDMuNiA4IDggOHoiIC8+PC9zdmc+) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined);
if (false) {}
/* harmony default export */ var icons_ExclamationCircleOutlined = (RefIcon);
/***/ }),
/***/ 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 */ 92310);
/* 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 */ 29541);
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/omit */ 83930);
/* 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.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.41.0@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(29541);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.41.0@rc-util/es/pickAttrs.js
var pickAttrs = __webpack_require__(68073);
// 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.3.7@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
var DownOutlined = __webpack_require__(43501);
// 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_1_classnames_default()(`${prefixCls}-link`, className),
href: href
}), children);
}
return /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, passedProps, {
className: _classnames_2_5_1_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_1_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);
/***/ })
}]);

File diff suppressed because one or more lines are too long

@ -705,6 +705,8 @@ var util = __webpack_require__(26795);
var ExportSetting = __webpack_require__(60778);
// EXTERNAL MODULE: ./src/utils/constant.ts
var constant = __webpack_require__(62390);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(17985);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Export/components/Head/index.tsx
@ -727,6 +729,7 @@ var jsx_runtime = __webpack_require__(37712);
var Head = function Head(_ref) {
var _questionName$find, _questionName$find2, _questionName$find3, _questionName$find4, _questionName$find5, _questionName$find6, _questionName$find7, _questionName$find8, _questionName$find9, _exercise$exerciseExp2, _exercise$commonHeade, _exercise$exerciseExp3, _exercise$commonHeade2, _exercise$exerciseExp4, _exercise$exerciseExp5;
var _ref$isPreview = _ref.isPreview,
@ -760,20 +763,28 @@ var Head = function Head(_ref) {
_useState8 = slicedToArray_default()(_useState7, 2),
questionName = _useState8[0],
setQuestionName = _useState8[1];
var questionNameGet = (0,_react_17_0_2_react.useRef)(true);
(0,_react_17_0_2_react.useEffect)(function () {
!asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var questionName;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
if (questionNameGet.current) {
_context.next = 2;
break;
}
return _context.abrupt("return");
case 2:
questionNameGet.current = false;
_context.next = 5;
return (0,service_exercise/* getQuestionTypeAlias */.cV)({
id: params.exerciseId || params.categoryId
});
case 2:
case 5:
questionName = _context.sent;
questionName.status == 0 && setQuestionName(questionName.data);
case 4:
case 7:
case "end":
return _context.stop();
}
@ -1100,7 +1111,7 @@ var Head = function Head(_ref) {
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
src: "".concat(env/* default */.Z.API_SERVER).concat(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",
@ -1189,6 +1200,7 @@ var Head = function Head(_ref) {
/* harmony export */ D9: function() { return /* binding */ ExportStudentanalysis; },
/* harmony export */ IM: function() { return /* binding */ get_ecs_attachment; },
/* harmony export */ Iy: function() { return /* binding */ ExportCourseWorkListScores; },
/* harmony export */ KM: function() { return /* binding */ getmember_works; },
/* harmony export */ Ne: function() { return /* binding */ getec_training_objectives; },
/* harmony export */ ON: function() { return /* binding */ exportPaperlibraryPaper; },
/* harmony export */ Uj: function() { return /* binding */ exportTaskPass; },
@ -1207,16 +1219,16 @@ var Head = function Head(_ref) {
/* harmony export */ iA: function() { return /* binding */ ExportCourseAndOther; },
/* harmony export */ j6: function() { return /* binding */ ExportCourseTotalScore; },
/* harmony export */ je: function() { return /* binding */ ExportExerciseStudentScores; },
/* harmony export */ jj: function() { return /* binding */ ExportCourseWorkListShixuns; },
/* harmony export */ kS: function() { return /* binding */ getquestion_rank_list; },
/* harmony export */ o6: function() { return /* binding */ ExportVideoStudent; },
/* harmony export */ pO: function() { return /* binding */ exportUserExerciseDetail; },
/* harmony export */ rQ: function() { return /* binding */ ExportProblemset; },
/* harmony export */ sA: function() { return /* binding */ ExportPollsScores; },
/* harmony export */ xm: function() { return /* binding */ getecyears; },
/* harmony export */ xo: function() { return /* binding */ getec_graduation_requirements; },
/* harmony export */ y8: function() { return /* binding */ Exportcompetitions; }
/* harmony export */ xo: function() { return /* binding */ getec_graduation_requirements; }
/* harmony export */ });
/* unused harmony export ExportCourseWorkListAppendix */
/* unused harmony exports ExportCourseWorkListAppendix, Exportcompetitions */
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
@ -1734,14 +1746,14 @@ var ExportProblemset = /*#__PURE__*/function () {
return _ref15.apply(this, arguments);
};
}();
var Exportcompetitions = /*#__PURE__*/function () {
var _ref16 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee16(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee16$(_context16) {
var Exportcompetitions = /*#__PURE__*/(/* unused pure expression or super */ null && (function () {
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(params) {
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
while (1) switch (_context16.prev = _context16.next) {
case 0:
_context16.next = 2;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/competitions/region_reports.xlsx",
return downLoadFile('', setUrlQuery({
url: ENV.API_SERVER + "/api/competitions/region_reports.xlsx",
query: params
}));
case 2:
@ -1753,7 +1765,7 @@ var Exportcompetitions = /*#__PURE__*/function () {
return function Exportcompetitions(_x17) {
return _ref16.apply(this, arguments);
};
}();
}()));
var ExportExerciseStudentScores = /*#__PURE__*/function () {
var _ref17 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee17(params) {
var res;
@ -2006,7 +2018,7 @@ var exportUserExerciseDetail = /*#__PURE__*/function () {
case 0:
_context28.next = 2;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)(title || '', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/exercises/".concat(params === null || params === void 0 ? void 0 : params.exercise_id, "/user_exercise_detail.json"),
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/exercises/".concat(params === null || params === void 0 ? void 0 : params.exercise_id, "/consult_exercise.json"),
query: params
}));
case 2:
@ -2041,16 +2053,14 @@ var exportClassroomsPaper = /*#__PURE__*/function () {
return _ref29.apply(this, arguments);
};
}();
// 导出问卷word文档
var exportCommitResultWord = /*#__PURE__*/function () {
var getmember_works = /*#__PURE__*/function () {
var _ref30 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee30(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee30$(_context30) {
while (1) switch (_context30.prev = _context30.next) {
case 0:
_context30.next = 2;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/polls/".concat(params === null || params === void 0 ? void 0 : params.id, "/commit_result.json"),
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/competitions/".concat(params === null || params === void 0 ? void 0 : params.identifier, "/competition_commit_records/member_works.xlsx"),
query: params
}));
case 2:
@ -2059,20 +2069,19 @@ var exportCommitResultWord = /*#__PURE__*/function () {
}
}, _callee30);
}));
return function exportCommitResultWord(_x32) {
return function getmember_works(_x32) {
return _ref30.apply(this, arguments);
};
}();
// 导出实训word
var exportTaskPass = /*#__PURE__*/function () {
// 导出问卷word文档
var exportCommitResultWord = /*#__PURE__*/function () {
var _ref31 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee31(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee31$(_context31) {
while (1) switch (_context31.prev = _context31.next) {
case 0:
_context31.next = 2;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/paths/get_task_pass.json",
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/polls/".concat(params === null || params === void 0 ? void 0 : params.id, "/commit_result.json"),
query: params
}));
case 2:
@ -2081,11 +2090,71 @@ var exportTaskPass = /*#__PURE__*/function () {
}
}, _callee31);
}));
return function exportTaskPass(_x33) {
return function exportCommitResultWord(_x33) {
return _ref31.apply(this, arguments);
};
}();
// 导出实训word
var exportTaskPass = /*#__PURE__*/function () {
var _ref32 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee32(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee32$(_context32) {
while (1) switch (_context32.prev = _context32.next) {
case 0:
_context32.next = 2;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/paths/get_task_pass.json",
query: params
}));
case 2:
case "end":
return _context32.stop();
}
}, _callee32);
}));
return function exportTaskPass(_x34) {
return _ref32.apply(this, arguments);
};
}();
var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
var _ref33 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee33(params, type) {
var res;
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee33$(_context33) {
while (1) switch (_context33.prev = _context33.next) {
case 0:
_context33.next = 2;
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportCourseWorkListShiXuns */ .o_)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params));
case 2:
res = _context33.sent;
if (res.status === 0) {
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP.info('导出任务生成成功导出后文件保存时间为7天请及时下载');
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/").concat(type));
} else if (res.status === -3) {
(0,umi__WEBPACK_IMPORTED_MODULE_4__.getDvaApp)()._store.dispatch({
type: 'classroomList/setActionTabs',
payload: {
key: '导出提醒'
}
});
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/").concat(type));
}
// else if(res.status === -1){
// history.push(`/classrooms/${params.coursesId}/exportlist/${type}`)
// };
// console.log(JSON.stringify(params))
// if(res.status === 0) await downLoadFileIframe('',setUrlQuery({url:ENV.API_SERVER + `/api/homework_commons/${params.categoryId}/works_list.xlsx`,query:params}))
// hideLoading();
case 4:
case "end":
return _context33.stop();
}
}, _callee33);
}));
return function ExportCourseWorkListShixuns(_x35, _x36) {
return _ref33.apply(this, arguments);
};
}();
/***/ })
}]);

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[44467,73336,38996,27491,93221,88178,14161,70122,98255],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[5848,37057,65170,21117,98255],{
/***/ 89136:
/*!*****************************************************************************************************!*\
@ -109,499 +109,6 @@ function useForceUpdate() {
/***/ }),
/***/ 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.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.41.0@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(29541);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.41.0@rc-util/es/pickAttrs.js
var pickAttrs = __webpack_require__(68073);
// 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.3.7@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
var DownOutlined = __webpack_require__(43501);
// 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_1_classnames_default()(`${prefixCls}-link`, className),
href: href
}), children);
}
return /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, passedProps, {
className: _classnames_2_5_1_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_1_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);
/***/ }),
/***/ 98135:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
@ -1217,6 +724,33 @@ Select._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
if (false) {}
/* harmony default export */ __webpack_exports__["default"] = (Select);
/***/ }),
/***/ 8378:
/*!*******************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/collapse.js ***!
\*******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__) {
const genCollapseMotion = token => ({
[token.componentCls]: {
// For common/openAnimation
[`${token.antCls}-motion-collapse-legacy`]: {
overflow: 'hidden',
'&-active': {
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
}
},
[`${token.antCls}-motion-collapse`]: {
overflow: 'hidden',
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
}
}
});
/* harmony default export */ __webpack_exports__.Z = (genCollapseMotion);
/***/ })
}]);

@ -1,656 +0,0 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[6155],{
/***/ 41521:
/*!*************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CloseCircleOutlined.js + 1 modules ***!
\*************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_CloseCircleOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
// 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.4.2@@ant-design/icons-svg/es/asn/CloseCircleOutlined.js
// This icon file is generated automatically.
var CloseCircleOutlined = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" } }] }, "name": "close-circle", "theme": "outlined" };
/* harmony default export */ var asn_CloseCircleOutlined = (CloseCircleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CloseCircleOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var CloseCircleOutlined_CloseCircleOutlined = function CloseCircleOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_CloseCircleOutlined
}));
};
/**![close-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdmlld0JveD0iNjQgNjQgODk2IDg5NiIgZm9jdXNhYmxlPSJmYWxzZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNTEyIDY0YzI0Ny40IDAgNDQ4IDIwMC42IDQ0OCA0NDhTNzU5LjQgOTYwIDUxMiA5NjAgNjQgNzU5LjQgNjQgNTEyIDI2NC42IDY0IDUxMiA2NHptMCA3NmMtMjA1LjQgMC0zNzIgMTY2LjYtMzcyIDM3MnMxNjYuNiAzNzIgMzcyIDM3MiAzNzItMTY2LjYgMzcyLTM3Mi0xNjYuNi0zNzItMzcyLTM3MnptMTI4LjAxIDE5OC44M2MuMDMgMCAuMDUuMDEuMDkuMDZsNDUuMDIgNDUuMDFhLjIuMiAwIDAxLjA1LjA5LjEyLjEyIDAgMDEwIC4wN2MwIC4wMi0uMDEuMDQtLjA1LjA4TDU1Ny4yNSA1MTJsMTI3Ljg3IDEyNy44NmEuMjcuMjcgMCAwMS4wNS4wNnYuMDJhLjEyLjEyIDAgMDEwIC4wN2MwIC4wMy0uMDEuMDUtLjA1LjA5bC00NS4wMiA0NS4wMmEuMi4yIDAgMDEtLjA5LjA1LjEyLjEyIDAgMDEtLjA3IDBjLS4wMiAwLS4wNC0uMDEtLjA4LS4wNUw1MTIgNTU3LjI1IDM4NC4xNCA2ODUuMTJjLS4wNC4wNC0uMDYuMDUtLjA4LjA1YS4xMi4xMiAwIDAxLS4wNyAwYy0uMDMgMC0uMDUtLjAxLS4wOS0uMDVsLTQ1LjAyLTQ1LjAyYS4yLjIgMCAwMS0uMDUtLjA5LjEyLjEyIDAgMDEwLS4wN2MwLS4wMi4wMS0uMDQuMDYtLjA4TDQ2Ni43NSA1MTIgMzM4Ljg4IDM4NC4xNGEuMjcuMjcgMCAwMS0uMDUtLjA2bC0uMDEtLjAyYS4xMi4xMiAwIDAxMC0uMDdjMC0uMDMuMDEtLjA1LjA1LS4wOWw0NS4wMi00NS4wMmEuMi4yIDAgMDEuMDktLjA1LjEyLjEyIDAgMDEuMDcgMGMuMDIgMCAuMDQuMDEuMDguMDZMNTEyIDQ2Ni43NWwxMjcuODYtMTI3Ljg2Yy4wNC0uMDUuMDYtLjA2LjA4LS4wNmEuMTIuMTIgMCAwMS4wNyAweiIgLz48L3N2Zz4=) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(CloseCircleOutlined_CloseCircleOutlined);
if (false) {}
/* harmony default export */ var icons_CloseCircleOutlined = (RefIcon);
/***/ }),
/***/ 88289:
/*!*******************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules ***!
\*******************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_ExclamationCircleOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
// 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.4.2@@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.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@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
}));
};
/**![exclamation-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PHBhdGggZD0iTTQ2NCA2ODhhNDggNDggMCAxMDk2IDAgNDggNDggMCAxMC05NiAwem0yNC0xMTJoNDhjNC40IDAgOC0zLjYgOC04VjI5NmMwLTQuNC0zLjYtOC04LThoLTQ4Yy00LjQgMC04IDMuNi04IDh2MjcyYzAgNC40IDMuNiA4IDggOHoiIC8+PC9zdmc+) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined);
if (false) {}
/* harmony default export */ var icons_ExclamationCircleOutlined = (RefIcon);
/***/ }),
/***/ 28103:
/*!***********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/divider/index.js + 1 modules ***!
\***********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ divider; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_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_1_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);
/***/ }),
/***/ 51581:
/*!****************************************************************************************************!*\
!*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/dist/InfiniteScroll.js ***!
\****************************************************************************************************/
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__(/*! react */ 59301);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(/*! prop-types */ 12708);
var _propTypes2 = _interopRequireDefault(_propTypes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var InfiniteScroll = function (_Component) {
_inherits(InfiniteScroll, _Component);
function InfiniteScroll(props) {
_classCallCheck(this, InfiniteScroll);
var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));
_this.scrollListener = _this.scrollListener.bind(_this);
_this.eventListenerOptions = _this.eventListenerOptions.bind(_this);
_this.mousewheelListener = _this.mousewheelListener.bind(_this);
return _this;
}
_createClass(InfiniteScroll, [{
key: 'componentDidMount',
value: function componentDidMount() {
this.pageLoaded = this.props.pageStart;
this.options = this.eventListenerOptions();
this.attachScrollListener();
}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate() {
if (this.props.isReverse && this.loadMore) {
var parentElement = this.getParentElement(this.scrollComponent);
parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;
this.loadMore = false;
}
this.attachScrollListener();
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
this.detachScrollListener();
this.detachMousewheelListener();
}
}, {
key: 'isPassiveSupported',
value: function isPassiveSupported() {
var passive = false;
var testOptions = {
get passive() {
passive = true;
}
};
try {
document.addEventListener('test', null, testOptions);
document.removeEventListener('test', null, testOptions);
} catch (e) {
// ignore
}
return passive;
}
}, {
key: 'eventListenerOptions',
value: function eventListenerOptions() {
var options = this.props.useCapture;
if (this.isPassiveSupported()) {
options = {
useCapture: this.props.useCapture,
passive: true
};
}
return options;
}
// Set a defaut loader for all your `InfiniteScroll` components
}, {
key: 'setDefaultLoader',
value: function setDefaultLoader(loader) {
this.defaultLoader = loader;
}
}, {
key: 'detachMousewheelListener',
value: function detachMousewheelListener() {
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = this.scrollComponent.parentNode;
}
scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
}
}, {
key: 'detachScrollListener',
value: function detachScrollListener() {
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = this.getParentElement(this.scrollComponent);
}
scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
}
}, {
key: 'getParentElement',
value: function getParentElement(el) {
var scrollParent = this.props.getScrollParent && this.props.getScrollParent();
if (scrollParent != null) {
return scrollParent;
}
return el && el.parentNode;
}
}, {
key: 'filterProps',
value: function filterProps(props) {
return props;
}
}, {
key: 'attachScrollListener',
value: function attachScrollListener() {
var parentElement = this.getParentElement(this.scrollComponent);
if (!this.props.hasMore || !parentElement) {
return;
}
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = parentElement;
}
scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
if (this.props.initialLoad) {
this.scrollListener();
}
}
}, {
key: 'mousewheelListener',
value: function mousewheelListener(e) {
// Prevents Chrome hangups
// See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257
if (e.deltaY === 1 && !this.isPassiveSupported()) {
e.preventDefault();
}
}
}, {
key: 'scrollListener',
value: function scrollListener() {
var el = this.scrollComponent;
var scrollEl = window;
var parentNode = this.getParentElement(el);
var offset = void 0;
if (this.props.useWindow) {
var doc = document.documentElement || document.body.parentNode || document.body;
var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;
if (this.props.isReverse) {
offset = scrollTop;
} else {
offset = this.calculateOffset(el, scrollTop);
}
} else if (this.props.isReverse) {
offset = parentNode.scrollTop;
} else {
offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;
}
// Here we make sure the element is visible as well as checking the offset
if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {
this.detachScrollListener();
this.beforeScrollHeight = parentNode.scrollHeight;
this.beforeScrollTop = parentNode.scrollTop;
// Call loadMore after detachScrollListener to allow for non-async loadMore functions
if (typeof this.props.loadMore === 'function') {
this.props.loadMore(this.pageLoaded += 1);
this.loadMore = true;
}
}
}
}, {
key: 'calculateOffset',
value: function calculateOffset(el, scrollTop) {
if (!el) {
return 0;
}
return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);
}
}, {
key: 'calculateTopPosition',
value: function calculateTopPosition(el) {
if (!el) {
return 0;
}
return el.offsetTop + this.calculateTopPosition(el.offsetParent);
}
}, {
key: 'render',
value: function render() {
var _this2 = this;
var renderProps = this.filterProps(this.props);
var children = renderProps.children,
element = renderProps.element,
hasMore = renderProps.hasMore,
initialLoad = renderProps.initialLoad,
isReverse = renderProps.isReverse,
loader = renderProps.loader,
loadMore = renderProps.loadMore,
pageStart = renderProps.pageStart,
ref = renderProps.ref,
threshold = renderProps.threshold,
useCapture = renderProps.useCapture,
useWindow = renderProps.useWindow,
getScrollParent = renderProps.getScrollParent,
props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);
props.ref = function (node) {
_this2.scrollComponent = node;
if (ref) {
ref(node);
}
};
var childrenArray = [children];
if (hasMore) {
if (loader) {
isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);
} else if (this.defaultLoader) {
isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);
}
}
return _react2.default.createElement(element, props, childrenArray);
}
}]);
return InfiniteScroll;
}(_react.Component);
InfiniteScroll.propTypes = {
children: _propTypes2.default.node.isRequired,
element: _propTypes2.default.node,
hasMore: _propTypes2.default.bool,
initialLoad: _propTypes2.default.bool,
isReverse: _propTypes2.default.bool,
loader: _propTypes2.default.node,
loadMore: _propTypes2.default.func.isRequired,
pageStart: _propTypes2.default.number,
ref: _propTypes2.default.func,
getScrollParent: _propTypes2.default.func,
threshold: _propTypes2.default.number,
useCapture: _propTypes2.default.bool,
useWindow: _propTypes2.default.bool
};
InfiniteScroll.defaultProps = {
element: 'div',
hasMore: false,
initialLoad: true,
pageStart: 0,
ref: null,
threshold: 250,
useWindow: true,
isReverse: false,
useCapture: false,
loader: null,
getScrollParent: null
};
exports["default"] = InfiniteScroll;
module.exports = exports['default'];
/***/ }),
/***/ 26724:
/*!**************************************************************************************!*\
!*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/index.js ***!
\**************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 51581)
/***/ })
}]);

@ -377,8 +377,8 @@ var PoweroffOutlined = __webpack_require__(84078);
var lib = __webpack_require__(56102);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(12712);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(80638);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
var MultiUpload = __webpack_require__(99531);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(17985);
// EXTERNAL MODULE: ./src/utils/fetch.ts
@ -591,7 +591,7 @@ var difficultyDesc = {
className: "pt10",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {
isDragger: true,
maxSize: 20,
maxSize: 2 * 1024,
additionalText: "\u9ED8\u8BA4\u5B58\u653E\u76EE\u5F55\u8DEF\u5F84\u4E3A\"".concat(uploadWorkspace, "\""),
action: "".concat(env/* default */.Z.API_SERVER, "/api/tasks/").concat(params.taskId || params.identifier, "/upload_file?debug=admin&shixun_environment_id=").concat(shixun_environment_id || null, "&tab_type=").concat(tab_type || null, "&is_jupyter=").concat(is_jupyter || false),
onChange: function onChange(fileList) {

File diff suppressed because it is too large Load Diff

@ -11,6 +11,7 @@
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
rX: function() { return /* binding */ AuthorizeModel; },
Ku: function() { return /* binding */ OpeniCompetitionVerifyLogin; },
gy: function() { return /* binding */ ShixunStatusModel; },
xY: function() { return /* binding */ handleCanShixunAddModal; },
O5: function() { return /* binding */ handleProfessionalCertificationModal; },
@ -30,10 +31,10 @@ var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerat
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(12712);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
// 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 modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(33287);
// EXTERNAL MODULE: ./src/utils/util.tsx
@ -63,8 +64,27 @@ var jsx_runtime = __webpack_require__(37712);
// import qrCodeImg from '@/assets/images/user/qrcode.png'
// import ENV from './env';
// 鹏城竞赛登录验证处理
var OpeniCompetitionVerifyLogin = function OpeniCompetitionVerifyLogin(dispatch) {
var _getDvaApp$_store$get = (0,_umi_production_exports.getDvaApp)()._store.getState(),
globalSetting = _getDvaApp$_store$get.globalSetting;
if (!(0,authority/* isLogin */.bg)()) {
var _globalSetting$settin;
if (!!(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin = globalSetting.setting) !== null && _globalSetting$settin !== void 0 && _globalSetting$settin.sso_url)) {
message/* default */.ZP.warning("用户还未登录,正在跳转登录");
setTimeout(function () {
var _globalSetting$settin2;
window.location.href = globalSetting === null || globalSetting === void 0 || (_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.sso_url;
}, 1000);
} else {
handleVerifyLogin(dispatch);
}
return false;
}
return true;
};
var handleVerify = function handleVerify(dispatch) {
var isShixun = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
if (handleVerifyLogin(dispatch) && handleProfleCompletedModal(isShixun)) {
@ -89,8 +109,8 @@ var handleVerifyLogin = function handleVerifyLogin(dispatch) {
var handleProfleCompletedModal = function handleProfleCompletedModal() {
var _user$userInfo;
var isShixun = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
var _getDvaApp$_store$get = (0,_umi_production_exports.getDvaApp)()._store.getState(),
user = _getDvaApp$_store$get.user;
var _getDvaApp$_store$get2 = (0,_umi_production_exports.getDvaApp)()._store.getState(),
user = _getDvaApp$_store$get2.user;
if (!((_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.profile_completed)) {
modal/* default */.Z.confirm({
title: '提示',
@ -125,8 +145,8 @@ var handleReload = function handleReload() {
};
var handleProfessionalCertificationModal = function handleProfessionalCertificationModal() {
var _user$userInfo2;
var _getDvaApp$_store$get2 = (0,_umi_production_exports.getDvaApp)()._store.getState(),
user = _getDvaApp$_store$get2.user;
var _getDvaApp$_store$get3 = (0,_umi_production_exports.getDvaApp)()._store.getState(),
user = _getDvaApp$_store$get3.user;
if (!((_user$userInfo2 = user.userInfo) !== null && _user$userInfo2 !== void 0 && _user$userInfo2.professional_certification)) {
modal/* default */.Z.confirm({
title: '提示',
@ -207,8 +227,8 @@ var AuthorizeModel = function AuthorizeModel(type, text) {
};
var ShixunStatusModel = function ShixunStatusModel(dispatch) {
var text = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
var _getDvaApp$_store$get3 = (0,_umi_production_exports.getDvaApp)()._store.getState(),
detail = _getDvaApp$_store$get3.shixunsDetail.detail;
var _getDvaApp$_store$get4 = (0,_umi_production_exports.getDvaApp)()._store.getState(),
detail = _getDvaApp$_store$get4.shixunsDetail.detail;
if ((detail === null || detail === void 0 ? void 0 : detail["public"]) === 2 || (detail === null || detail === void 0 ? void 0 : detail["public"]) === 1 || (detail === null || detail === void 0 ? void 0 : detail.shixun_status) === 3) {
var str = '';
if ((detail === null || detail === void 0 ? void 0 : detail["public"]) === 2) {

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[70601,85213,37057,65170,21117,98255],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[70601,85213,5848,37057,65170,21117,98255],{
/***/ 89136:
/*!*****************************************************************************************************!*\

File diff suppressed because it is too large Load Diff

@ -1,4 +1,5 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[78684,49166,28247,19807],{
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[74287,28247,19807],{
/***/ 89136:
/*!*****************************************************************************************************!*\
@ -6,7 +7,6 @@
\*****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -52,7 +52,6 @@ if (false) {}
\******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -98,7 +97,6 @@ if (false) {}
\**********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Z: function() { return /* binding */ getRenderPropValue; }
/* harmony export */ });
@ -120,7 +118,6 @@ const getRenderPropValue = propValue => {
\**************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -614,7 +611,6 @@ if (false) {}
\************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -774,7 +770,6 @@ Dropdown.Button = dropdown_button;
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -1174,7 +1169,6 @@ input_Input.Password = input_Password;
\**************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -1501,7 +1495,6 @@ if (false) {}
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
@ -1583,7 +1576,6 @@ const PurePanel = props => {
\***********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
/* 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 */ 59301);
@ -1675,7 +1667,6 @@ Popover._InternalPanelDoNotUseOrYouWillBeFired = _PurePanel__WEBPACK_IMPORTED_MO
\*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style */ 17313);
/* harmony import */ var _style_motion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../style/motion */ 29878);
/* harmony import */ var _style_placementArrow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../style/placementArrow */ 19447);
@ -1846,7 +1837,6 @@ const genWireframeStyle = token => {
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -2019,322 +2009,6 @@ const CompoundedSpace = Space;
CompoundedSpace.Compact = Compact/* default */.ZP;
/* harmony default export */ var space = (CompoundedSpace);
/***/ }),
/***/ 51581:
/*!****************************************************************************************************!*\
!*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/dist/InfiniteScroll.js ***!
\****************************************************************************************************/
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__(/*! react */ 59301);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(/*! prop-types */ 12708);
var _propTypes2 = _interopRequireDefault(_propTypes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var InfiniteScroll = function (_Component) {
_inherits(InfiniteScroll, _Component);
function InfiniteScroll(props) {
_classCallCheck(this, InfiniteScroll);
var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));
_this.scrollListener = _this.scrollListener.bind(_this);
_this.eventListenerOptions = _this.eventListenerOptions.bind(_this);
_this.mousewheelListener = _this.mousewheelListener.bind(_this);
return _this;
}
_createClass(InfiniteScroll, [{
key: 'componentDidMount',
value: function componentDidMount() {
this.pageLoaded = this.props.pageStart;
this.options = this.eventListenerOptions();
this.attachScrollListener();
}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate() {
if (this.props.isReverse && this.loadMore) {
var parentElement = this.getParentElement(this.scrollComponent);
parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;
this.loadMore = false;
}
this.attachScrollListener();
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
this.detachScrollListener();
this.detachMousewheelListener();
}
}, {
key: 'isPassiveSupported',
value: function isPassiveSupported() {
var passive = false;
var testOptions = {
get passive() {
passive = true;
}
};
try {
document.addEventListener('test', null, testOptions);
document.removeEventListener('test', null, testOptions);
} catch (e) {
// ignore
}
return passive;
}
}, {
key: 'eventListenerOptions',
value: function eventListenerOptions() {
var options = this.props.useCapture;
if (this.isPassiveSupported()) {
options = {
useCapture: this.props.useCapture,
passive: true
};
}
return options;
}
// Set a defaut loader for all your `InfiniteScroll` components
}, {
key: 'setDefaultLoader',
value: function setDefaultLoader(loader) {
this.defaultLoader = loader;
}
}, {
key: 'detachMousewheelListener',
value: function detachMousewheelListener() {
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = this.scrollComponent.parentNode;
}
scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
}
}, {
key: 'detachScrollListener',
value: function detachScrollListener() {
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = this.getParentElement(this.scrollComponent);
}
scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
}
}, {
key: 'getParentElement',
value: function getParentElement(el) {
var scrollParent = this.props.getScrollParent && this.props.getScrollParent();
if (scrollParent != null) {
return scrollParent;
}
return el && el.parentNode;
}
}, {
key: 'filterProps',
value: function filterProps(props) {
return props;
}
}, {
key: 'attachScrollListener',
value: function attachScrollListener() {
var parentElement = this.getParentElement(this.scrollComponent);
if (!this.props.hasMore || !parentElement) {
return;
}
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = parentElement;
}
scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
if (this.props.initialLoad) {
this.scrollListener();
}
}
}, {
key: 'mousewheelListener',
value: function mousewheelListener(e) {
// Prevents Chrome hangups
// See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257
if (e.deltaY === 1 && !this.isPassiveSupported()) {
e.preventDefault();
}
}
}, {
key: 'scrollListener',
value: function scrollListener() {
var el = this.scrollComponent;
var scrollEl = window;
var parentNode = this.getParentElement(el);
var offset = void 0;
if (this.props.useWindow) {
var doc = document.documentElement || document.body.parentNode || document.body;
var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;
if (this.props.isReverse) {
offset = scrollTop;
} else {
offset = this.calculateOffset(el, scrollTop);
}
} else if (this.props.isReverse) {
offset = parentNode.scrollTop;
} else {
offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;
}
// Here we make sure the element is visible as well as checking the offset
if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {
this.detachScrollListener();
this.beforeScrollHeight = parentNode.scrollHeight;
this.beforeScrollTop = parentNode.scrollTop;
// Call loadMore after detachScrollListener to allow for non-async loadMore functions
if (typeof this.props.loadMore === 'function') {
this.props.loadMore(this.pageLoaded += 1);
this.loadMore = true;
}
}
}
}, {
key: 'calculateOffset',
value: function calculateOffset(el, scrollTop) {
if (!el) {
return 0;
}
return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);
}
}, {
key: 'calculateTopPosition',
value: function calculateTopPosition(el) {
if (!el) {
return 0;
}
return el.offsetTop + this.calculateTopPosition(el.offsetParent);
}
}, {
key: 'render',
value: function render() {
var _this2 = this;
var renderProps = this.filterProps(this.props);
var children = renderProps.children,
element = renderProps.element,
hasMore = renderProps.hasMore,
initialLoad = renderProps.initialLoad,
isReverse = renderProps.isReverse,
loader = renderProps.loader,
loadMore = renderProps.loadMore,
pageStart = renderProps.pageStart,
ref = renderProps.ref,
threshold = renderProps.threshold,
useCapture = renderProps.useCapture,
useWindow = renderProps.useWindow,
getScrollParent = renderProps.getScrollParent,
props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);
props.ref = function (node) {
_this2.scrollComponent = node;
if (ref) {
ref(node);
}
};
var childrenArray = [children];
if (hasMore) {
if (loader) {
isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);
} else if (this.defaultLoader) {
isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);
}
}
return _react2.default.createElement(element, props, childrenArray);
}
}]);
return InfiniteScroll;
}(_react.Component);
InfiniteScroll.propTypes = {
children: _propTypes2.default.node.isRequired,
element: _propTypes2.default.node,
hasMore: _propTypes2.default.bool,
initialLoad: _propTypes2.default.bool,
isReverse: _propTypes2.default.bool,
loader: _propTypes2.default.node,
loadMore: _propTypes2.default.func.isRequired,
pageStart: _propTypes2.default.number,
ref: _propTypes2.default.func,
getScrollParent: _propTypes2.default.func,
threshold: _propTypes2.default.number,
useCapture: _propTypes2.default.bool,
useWindow: _propTypes2.default.bool
};
InfiniteScroll.defaultProps = {
element: 'div',
hasMore: false,
initialLoad: true,
pageStart: 0,
ref: null,
threshold: 250,
useWindow: true,
isReverse: false,
useCapture: false,
loader: null,
getScrollParent: null
};
exports["default"] = InfiniteScroll;
module.exports = exports['default'];
/***/ }),
/***/ 26724:
/*!**************************************************************************************!*\
!*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/index.js ***!
\**************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 51581)
/***/ })
}]);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[79074,73336,56219,23942,99998,39011,38996,27491,44467,93221,88178,14161,70122,98255],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[79074,73336,56219,23942,99998,39011,38996,27491,93221,88178,14161,70122,98255],{
/***/ 89136:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[80480,52720,73336,45504,46117,39011,10646,98964,38996,27491,44467,93221,88178,14161,70122,81326,98255],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[80480,52720,73336,45504,46117,39011,10646,98964,38996,27491,93221,88178,14161,70122,81326,98255],{
/***/ 89136:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[8585,73336,33473,39011,38996,27491,44467,93221,88178,14161,70122,98255],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[8585,73336,33473,39011,38996,27491,93221,88178,14161,70122,98255],{
/***/ 22596:
/*!***********************************************************************************************************!*\

@ -7919,7 +7919,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
onChange: handleTabsChange,
tabBarExtraContent: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Problemsetmodules.searchWrap,
children: [activeTabsKey === TabType.Mine && isProblemset && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
children: [(0,authority/* isLogin */.bg)() && activeTabsKey === TabType.Mine && isProblemset && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
className: Problemsetmodules.addQuestionBtn,
onClick: handleNew,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
@ -7953,7 +7953,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
tab: "\u56E2\u961F\u5171\u4EAB"
}, "3"), !(0,authority/* isCommonSuperAdminOrOperation */.ag)() && !(0,authority/* isCommonStudent */.JA)() && !isprogram_homework && /*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, {
tab: "\u6536\u85CF\u5939"
}, "2"), /*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, {
}, "2"), (0,authority/* isLogin */.bg)() && /*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, {
tab: "\u6211\u521B\u5EFA\u7684"
}, "0")]
})

@ -21,7 +21,7 @@
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider */ 36355);
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../menu */ 20834);
/* harmony import */ var _menu_OverrideContext__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../menu/OverrideContext */ 40875);
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../theme/internal */ 88088);
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../theme/internal */ 26068);
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./style */ 47211);
"use client";

@ -12,6 +12,7 @@
/* harmony export */ D9: function() { return /* binding */ ExportStudentanalysis; },
/* harmony export */ IM: function() { return /* binding */ get_ecs_attachment; },
/* harmony export */ Iy: function() { return /* binding */ ExportCourseWorkListScores; },
/* harmony export */ KM: function() { return /* binding */ getmember_works; },
/* harmony export */ Ne: function() { return /* binding */ getec_training_objectives; },
/* harmony export */ ON: function() { return /* binding */ exportPaperlibraryPaper; },
/* harmony export */ Uj: function() { return /* binding */ exportTaskPass; },
@ -30,16 +31,16 @@
/* harmony export */ iA: function() { return /* binding */ ExportCourseAndOther; },
/* harmony export */ j6: function() { return /* binding */ ExportCourseTotalScore; },
/* harmony export */ je: function() { return /* binding */ ExportExerciseStudentScores; },
/* harmony export */ jj: function() { return /* binding */ ExportCourseWorkListShixuns; },
/* harmony export */ kS: function() { return /* binding */ getquestion_rank_list; },
/* harmony export */ o6: function() { return /* binding */ ExportVideoStudent; },
/* harmony export */ pO: function() { return /* binding */ exportUserExerciseDetail; },
/* harmony export */ rQ: function() { return /* binding */ ExportProblemset; },
/* harmony export */ sA: function() { return /* binding */ ExportPollsScores; },
/* harmony export */ xm: function() { return /* binding */ getecyears; },
/* harmony export */ xo: function() { return /* binding */ getec_graduation_requirements; },
/* harmony export */ y8: function() { return /* binding */ Exportcompetitions; }
/* harmony export */ xo: function() { return /* binding */ getec_graduation_requirements; }
/* harmony export */ });
/* unused harmony export ExportCourseWorkListAppendix */
/* unused harmony exports ExportCourseWorkListAppendix, Exportcompetitions */
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
@ -557,14 +558,14 @@ var ExportProblemset = /*#__PURE__*/function () {
return _ref15.apply(this, arguments);
};
}();
var Exportcompetitions = /*#__PURE__*/function () {
var _ref16 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee16(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee16$(_context16) {
var Exportcompetitions = /*#__PURE__*/(/* unused pure expression or super */ null && (function () {
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(params) {
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
while (1) switch (_context16.prev = _context16.next) {
case 0:
_context16.next = 2;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/competitions/region_reports.xlsx",
return downLoadFile('', setUrlQuery({
url: ENV.API_SERVER + "/api/competitions/region_reports.xlsx",
query: params
}));
case 2:
@ -576,7 +577,7 @@ var Exportcompetitions = /*#__PURE__*/function () {
return function Exportcompetitions(_x17) {
return _ref16.apply(this, arguments);
};
}();
}()));
var ExportExerciseStudentScores = /*#__PURE__*/function () {
var _ref17 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee17(params) {
var res;
@ -829,7 +830,7 @@ var exportUserExerciseDetail = /*#__PURE__*/function () {
case 0:
_context28.next = 2;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)(title || '', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/exercises/".concat(params === null || params === void 0 ? void 0 : params.exercise_id, "/user_exercise_detail.json"),
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/exercises/".concat(params === null || params === void 0 ? void 0 : params.exercise_id, "/consult_exercise.json"),
query: params
}));
case 2:
@ -864,16 +865,14 @@ var exportClassroomsPaper = /*#__PURE__*/function () {
return _ref29.apply(this, arguments);
};
}();
// 导出问卷word文档
var exportCommitResultWord = /*#__PURE__*/function () {
var getmember_works = /*#__PURE__*/function () {
var _ref30 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee30(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee30$(_context30) {
while (1) switch (_context30.prev = _context30.next) {
case 0:
_context30.next = 2;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/polls/".concat(params === null || params === void 0 ? void 0 : params.id, "/commit_result.json"),
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/competitions/".concat(params === null || params === void 0 ? void 0 : params.identifier, "/competition_commit_records/member_works.xlsx"),
query: params
}));
case 2:
@ -882,20 +881,19 @@ var exportCommitResultWord = /*#__PURE__*/function () {
}
}, _callee30);
}));
return function exportCommitResultWord(_x32) {
return function getmember_works(_x32) {
return _ref30.apply(this, arguments);
};
}();
// 导出实训word
var exportTaskPass = /*#__PURE__*/function () {
// 导出问卷word文档
var exportCommitResultWord = /*#__PURE__*/function () {
var _ref31 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee31(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee31$(_context31) {
while (1) switch (_context31.prev = _context31.next) {
case 0:
_context31.next = 2;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/paths/get_task_pass.json",
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/polls/".concat(params === null || params === void 0 ? void 0 : params.id, "/commit_result.json"),
query: params
}));
case 2:
@ -904,11 +902,71 @@ var exportTaskPass = /*#__PURE__*/function () {
}
}, _callee31);
}));
return function exportTaskPass(_x33) {
return function exportCommitResultWord(_x33) {
return _ref31.apply(this, arguments);
};
}();
// 导出实训word
var exportTaskPass = /*#__PURE__*/function () {
var _ref32 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee32(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee32$(_context32) {
while (1) switch (_context32.prev = _context32.next) {
case 0:
_context32.next = 2;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/paths/get_task_pass.json",
query: params
}));
case 2:
case "end":
return _context32.stop();
}
}, _callee32);
}));
return function exportTaskPass(_x34) {
return _ref32.apply(this, arguments);
};
}();
var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
var _ref33 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee33(params, type) {
var res;
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee33$(_context33) {
while (1) switch (_context33.prev = _context33.next) {
case 0:
_context33.next = 2;
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportCourseWorkListShiXuns */ .o_)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params));
case 2:
res = _context33.sent;
if (res.status === 0) {
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP.info('导出任务生成成功导出后文件保存时间为7天请及时下载');
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/").concat(type));
} else if (res.status === -3) {
(0,umi__WEBPACK_IMPORTED_MODULE_4__.getDvaApp)()._store.dispatch({
type: 'classroomList/setActionTabs',
payload: {
key: '导出提醒'
}
});
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/").concat(type));
}
// else if(res.status === -1){
// history.push(`/classrooms/${params.coursesId}/exportlist/${type}`)
// };
// console.log(JSON.stringify(params))
// if(res.status === 0) await downLoadFileIframe('',setUrlQuery({url:ENV.API_SERVER + `/api/homework_commons/${params.categoryId}/works_list.xlsx`,query:params}))
// hideLoading();
case 4:
case "end":
return _context33.stop();
}
}, _callee33);
}));
return function ExportCourseWorkListShixuns(_x35, _x36) {
return _ref33.apply(this, arguments);
};
}();
/***/ })
}]);

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[98964,52720,73336,45504,10646,38996,27491,44467,93221,88178,14161,70122,81326,98255],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[98964,52720,73336,45504,10646,38996,27491,93221,88178,14161,70122,81326,98255],{
/***/ 89136:
/*!*****************************************************************************************************!*\

@ -1,9 +1,9 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[80638],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[99531],{
/***/ 80638:
/***/ 99531:
/*!**********************************************************!*\
!*** ./src/components/MultiUpload/index.tsx + 3 modules ***!
!*** ./src/components/MultiUpload/index.tsx + 2 modules ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -34,7 +34,7 @@ var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js + 24 modules
var upload = __webpack_require__(46651);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var es_message = __webpack_require__(8591);
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
@ -43,136 +43,8 @@ var es_button = __webpack_require__(3113);
var env = __webpack_require__(17985);
// EXTERNAL MODULE: ./src/pages/MoopCases/FormPanel/service.ts
var service = __webpack_require__(52989);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/SingleUpload/index.tsx
var uploadNameSizeSeperator = '  ';
function bytesToSize(bytes) {
var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
if (bytes == 0) return '0 Byte';
var i = parseInt('' + Math.floor(Math.log(bytes) / Math.log(1024)), 10);
return (bytes / Math.pow(1024, i)).toFixed(1) + ' ' + sizes[i];
}
/* harmony default export */ var SingleUpload = (function (_ref) {
var _ref$value = _ref.value,
value = _ref$value === void 0 ? [] : _ref$value,
action = _ref.action,
_onChange = _ref.onChange,
className = _ref.className,
_ref$maxSize = _ref.maxSize,
maxSize = _ref$maxSize === void 0 ? 150 : _ref$maxSize,
_ref$title = _ref.title,
title = _ref$title === void 0 ? '文件上传' : _ref$title,
_ref$accept = _ref.accept,
accept = _ref$accept === void 0 ? null : _ref$accept;
var uploadProps = {
multiple: false,
fileList: value,
accept: accept,
withCredentials: true,
beforeUpload: function beforeUpload(file) {
var fileSize = file.size / 1024 / 1024;
if (!(fileSize < maxSize)) {
message.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB),\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 Promise.reject();
}
return true;
},
action: "".concat(ENV.API_SERVER, "/api/attachments.json"),
// ?debug=student&randomcode=undefined&client_key=6d57f8c3dd186c5ada392546ace9620a
onChange: function onChange(info) {
var _info$file;
var fileList = _toConsumableArray(info.fileList);
fileList = fileList.map(function (file) {
if (file.name.indexOf(uploadNameSizeSeperator) === -1) {
file.name = "".concat(file.name).concat(uploadNameSizeSeperator).concat(bytesToSize(file.size));
}
return _objectSpread({}, file);
});
if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 || (_info$file = _info$file.response) === null || _info$file === void 0 ? void 0 : _info$file.status) === -1) {
var _info$file2;
message.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message);
_onChange([]);
return;
}
_onChange(fileList);
},
onRemove: function () {
var _onRemove = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
var fileSize, id, rs;
return _regeneratorRuntime().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
fileSize = file.size / 1024 / 1024;
if (!(file.status === 'uploading')) {
_context.next = 3;
break;
}
return _context.abrupt("return", true);
case 3:
if (fileSize < maxSize) {
_context.next = 7;
break;
}
return _context.abrupt("return", true);
case 7:
id = file.response ? file.response.id : file.uid;
if (!id) {
_context.next = 15;
break;
}
_context.next = 11;
return removeAttachment(file.response ? file.response.id : file.id);
case 11:
rs = _context.sent;
return _context.abrupt("return", rs);
case 15:
return _context.abrupt("return", true);
case 16:
case "end":
return _context.stop();
}
}, _callee);
}));
function onRemove(_x) {
return _onRemove.apply(this, arguments);
}
return onRemove;
}()
};
function onCancel(e) {
e.preventDefault();
e.stopPropagation();
}
return /*#__PURE__*/_jsx("div", {
className: "single-upload ".concat(className ? className : ''),
children: /*#__PURE__*/_jsxs(Upload, _objectSpread(_objectSpread({}, uploadProps), {}, {
children: [/*#__PURE__*/_jsx(Button, {
type: "primary",
title: value.length > 0 ? '每次只能上传一个资源, 删除下面资源可重新上传 ' : '',
disabled: value.length > 0,
ghost: true,
children: title
}), /*#__PURE__*/_jsxs("span", {
onClick: onCancel,
style: {
marginLeft: 10
},
children: ["(\u5355\u4E2A\u6587\u4EF6\u6700\u5927", maxSize, "M)", ' ']
})]
}))
});
});
// EXTERNAL MODULE: ./src/components/SingleUpload/index.tsx
var SingleUpload = __webpack_require__(95081);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/InboxOutlined.js + 1 modules
var InboxOutlined = __webpack_require__(93737);
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
@ -228,6 +100,8 @@ var SvgUploadImg = function SvgUploadImg(props) {
};
/* harmony default export */ var uploadImg = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=");
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/MultiUpload/index.tsx
@ -253,7 +127,7 @@ function coverToFileList(data) {
return {
uid: item.id,
id: item.id,
name: item.title + uploadNameSizeSeperator + item.filesize,
name: item.title + SingleUpload/* uploadNameSizeSeperator */.sX + item.filesize,
url: item.url,
filesize: item.filesize,
status: 'done',
@ -326,7 +200,7 @@ function coverToFileList(data) {
if (fileList.concat(fileArr).length > number) {
fileList.pop();
setFileList(toConsumableArray_default()(fileList));
es_message/* default */.ZP.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(number, "\u4E2A\u6587\u4EF6"));
message/* default */.ZP.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(number, "\u4E2A\u6587\u4EF6"));
if (aloneClear) {
return Promise.reject();
}
@ -334,7 +208,7 @@ function coverToFileList(data) {
return false;
}
if (!(fileSize < maxSize)) {
es_message/* default */.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB)."));
message/* default */.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB)."));
if (aloneClear) {
return Promise.reject();
}
@ -355,7 +229,7 @@ function coverToFileList(data) {
}
if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 || (_info$file = _info$file.response) === null || _info$file === void 0 ? void 0 : _info$file.status) === -1) {
var _info$file2;
es_message/* default */.ZP.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message);
message/* default */.ZP.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message);
return;
}
if (fileList.length >= number) setDisabled(true);else setDisabled(false);
@ -366,8 +240,8 @@ function coverToFileList(data) {
var _file$response2;
file.url = "/api/attachments/".concat(file === null || file === void 0 || (_file$response2 = file.response) === null || _file$response2 === void 0 ? void 0 : _file$response2.id);
}
if (file.name.indexOf(uploadNameSizeSeperator) === -1) {
file.name = "".concat(file.name).concat(uploadNameSizeSeperator).concat(bytesToSize(file.size));
if (file.name.indexOf(SingleUpload/* uploadNameSizeSeperator */.sX) === -1) {
file.name = "".concat(file.name).concat(SingleUpload/* uploadNameSizeSeperator */.sX).concat((0,SingleUpload/* bytesToSize */.RD)(file.size));
}
return objectSpread2_default()({}, file);
});
@ -433,7 +307,7 @@ function coverToFileList(data) {
return remove();
case 2:
res = _context2.sent;
es_message/* default */.ZP.success('删除成功');
message/* default */.ZP.success('删除成功');
resolve(true);
case 5:
case "end":
@ -501,6 +375,158 @@ function coverToFileList(data) {
/***/ }),
/***/ 95081:
/*!***********************************************!*\
!*** ./src/components/SingleUpload/index.tsx ***!
\***********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ RD: function() { return /* binding */ bytesToSize; },
/* harmony export */ sX: function() { return /* binding */ uploadNameSizeSeperator; }
/* harmony export */ });
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js */ 37205);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/utils/env */ 17985);
/* harmony import */ var _pages_MoopCases_FormPanel_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/pages/MoopCases/FormPanel/service */ 52989);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var uploadNameSizeSeperator = '  ';
function bytesToSize(bytes) {
var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
if (bytes == 0) return '0 Byte';
var i = parseInt('' + Math.floor(Math.log(bytes) / Math.log(1024)), 10);
return (bytes / Math.pow(1024, i)).toFixed(1) + ' ' + sizes[i];
}
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (function (_ref) {
var _ref$value = _ref.value,
value = _ref$value === void 0 ? [] : _ref$value,
action = _ref.action,
_onChange = _ref.onChange,
className = _ref.className,
_ref$maxSize = _ref.maxSize,
maxSize = _ref$maxSize === void 0 ? 150 : _ref$maxSize,
_ref$title = _ref.title,
title = _ref$title === void 0 ? '文件上传' : _ref$title,
_ref$accept = _ref.accept,
accept = _ref$accept === void 0 ? null : _ref$accept;
var uploadProps = {
multiple: false,
fileList: value,
accept: accept,
withCredentials: true,
beforeUpload: function beforeUpload(file) {
var fileSize = file.size / 1024 / 1024;
if (!(fileSize < maxSize)) {
message.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB),\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 Promise.reject();
}
return true;
},
action: "".concat(ENV.API_SERVER, "/api/attachments.json"),
// ?debug=student&randomcode=undefined&client_key=6d57f8c3dd186c5ada392546ace9620a
onChange: function onChange(info) {
var _info$file;
var fileList = _toConsumableArray(info.fileList);
fileList = fileList.map(function (file) {
if (file.name.indexOf(uploadNameSizeSeperator) === -1) {
file.name = "".concat(file.name).concat(uploadNameSizeSeperator).concat(bytesToSize(file.size));
}
return _objectSpread({}, file);
});
if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 || (_info$file = _info$file.response) === null || _info$file === void 0 ? void 0 : _info$file.status) === -1) {
var _info$file2;
message.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message);
_onChange([]);
return;
}
_onChange(fileList);
},
onRemove: function () {
var _onRemove = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
var fileSize, id, rs;
return _regeneratorRuntime().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
fileSize = file.size / 1024 / 1024;
if (!(file.status === 'uploading')) {
_context.next = 3;
break;
}
return _context.abrupt("return", true);
case 3:
if (fileSize < maxSize) {
_context.next = 7;
break;
}
return _context.abrupt("return", true);
case 7:
id = file.response ? file.response.id : file.uid;
if (!id) {
_context.next = 15;
break;
}
_context.next = 11;
return removeAttachment(file.response ? file.response.id : file.id);
case 11:
rs = _context.sent;
return _context.abrupt("return", rs);
case 15:
return _context.abrupt("return", true);
case 16:
case "end":
return _context.stop();
}
}, _callee);
}));
function onRemove(_x) {
return _onRemove.apply(this, arguments);
}
return onRemove;
}()
};
function onCancel(e) {
e.preventDefault();
e.stopPropagation();
}
return /*#__PURE__*/_jsx("div", {
className: "single-upload ".concat(className ? className : ''),
children: /*#__PURE__*/_jsxs(Upload, _objectSpread(_objectSpread({}, uploadProps), {}, {
children: [/*#__PURE__*/_jsx(Button, {
type: "primary",
title: value.length > 0 ? '每次只能上传一个资源, 删除下面资源可重新上传 ' : '',
disabled: value.length > 0,
ghost: true,
children: title
}), /*#__PURE__*/_jsxs("span", {
onClick: onCancel,
style: {
marginLeft: 10
},
children: ["(\u5355\u4E2A\u6587\u4EF6\u6700\u5927", maxSize, "M)", ' ']
})]
}))
});
});
/***/ }),
/***/ 52989:
/*!**************************************************!*\
!*** ./src/pages/MoopCases/FormPanel/service.ts ***!

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[99998,73336,79074,56219,23942,39011,38996,27491,44467,93221,88178,14161,70122,98255],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[99998,73336,79074,56219,23942,39011,38996,27491,93221,88178,14161,70122,98255],{
/***/ 89136:
/*!*****************************************************************************************************!*\

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

@ -11,7 +11,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
<meta http-equiv="Cache-Control" content="no-transform">
<title>头歌实践教学平台</title>
<title> </title>
<link rel="stylesheet" href="/react/build/umi.11a7530f.css">
<script src="/react/build/js/polyfill.min.js"></script>
</head>
@ -27,7 +27,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.e18e31da.js"></script>
<script src="/react/build/umi.08e3ba48.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -1,7 +1,9 @@
(function (open) {
var lockEvent = false;
; (function (open) {
XMLHttpRequest.prototype.open = function (method, url, async, user, password) {
this.addEventListener("load", function () {
if (method === "PUT") {
// if(!lockEvent)
window.top.postMessage('jupytermessage', '*');
}
});
@ -15,6 +17,7 @@
return fetch.apply(this, arguments).then(function (response) {
try {
if (options.method === "PUT" || (typeof url === "object" && url.method === "PUT")) {
// if(!lockEvent)
window.top.postMessage('jupytermessage', '*');
}
} catch (error) {
@ -27,6 +30,23 @@
})(window.fetch);
function saveCode() {
try {
var elements = document.querySelectorAll('[data-command="docmanager:save"]');
elements.forEach(function (element) {
element.click();
});
} catch (error) {
}
try {
document.querySelector("[data-jupyter-action='jupyter-notebook:save-notebook']").click();
} catch (error) {
}
var saveEvent = new KeyboardEvent('keydown', {
key: 's',
ctrlKey: true
@ -37,18 +57,18 @@
function onReceiveMessage(e) {
try {
if (mes.type === 'saveCode') {
if (e.data === 'saveCode') {
lockEvent = true;
saveCode()
setTimeout(() => {
lockEvent = false
}, 1000)
}
} catch (error) {
console.log('error:', error, e);
}
}
(function () {
setInterval(() => {
saveCode()
}, 5000)
})();
window.addEventListener('message', onReceiveMessage);

@ -68,7 +68,7 @@ function IEVersion() {
var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //判断是否IE的Edge浏览器
var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;
if (isIE || isIE11) {
window.location.replace('/upgrade-browser.html');
window.location.replace('/react/build/upgrade-browser.html');
}
}
IEVersion();

@ -1745,16 +1745,18 @@ var AddStudent_AddTeacher = function AddTeacher(_ref) {
}
}, [classroomList.actionTabs.key]);
(0,_react_17_0_2_react.useEffect)(function () {
(0,classrooms/* getAllClass */.F9)().then(function (res) {
if (res) {
var _res$student_groups$;
setClassData(res.student_groups);
// 设置form
form.setFieldsValue({
search_class: res === null || res === void 0 || (_res$student_groups$ = res.student_groups[0]) === null || _res$student_groups$ === void 0 ? void 0 : _res$student_groups$.id
});
}
});
if (classroomList.actionTabs.key === '添加学生') {
(0,classrooms/* getAllClass */.F9)().then(function (res) {
if (res) {
var _res$student_groups$;
setClassData(res.student_groups);
// 设置form
form.setFieldsValue({
search_class: res === null || res === void 0 || (_res$student_groups$ = res.student_groups[0]) === null || _res$student_groups$ === void 0 ? void 0 : _res$student_groups$.id
});
}
});
}
}, []);
var getData = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {

@ -30,232 +30,101 @@
box-orient: block-axis;
}
.header___Wn4fJ {
min-width: 1200px;
position: relative;
}
.header___Wn4fJ [class~='ant-layout-header'] {
padding: 0;
height: 72px;
background: #24292f;
}
.header___Wn4fJ .logo___QnotM {
height: 36px;
margin-right: 40px;
background: #101010;
height: 62px;
}
.header___Wn4fJ .menu___twLGR {
margin: 0;
padding: 0;
.header___Wn4fJ .wrap___Yr9Co {
width: 1200px;
height: 100%;
display: flex;
flex-flow: row nowrap;
align-items: center;
margin: 0 auto;
}
.header___Wn4fJ .menu___twLGR li {
margin-right: 30px;
position: relative;
.header___Wn4fJ .wrap___Yr9Co .menu {
display: flex;
align-items: center;
justify-content: center;
}
.header___Wn4fJ .menu___twLGR li .dropDown___Cwaoa {
background: #ffffff;
box-shadow: 0px 10px 16px 0px #cecece;
border-radius: 6px;
position: absolute;
z-index: 999;
left: -20px;
top: 50px;
padding: 20px;
line-height: 1.5;
display: none;
}
.header___Wn4fJ .menu___twLGR li .dropDown___Cwaoa .line___D1auu {
width: 100%;
height: 1px;
background: #dbdce0;
margin: 24px 0;
}
.header___Wn4fJ .menu___twLGR li .dropDown___Cwaoa .subName___gql7K {
cursor: pointer;
}
.header___Wn4fJ .menu___twLGR li .dropDown___Cwaoa .subName___gql7K:hover aside {
color: #165dff;
}
.header___Wn4fJ .menu___twLGR li .name___dR5V2 {
display: flex;
align-items: center;
height: 50px;
cursor: pointer;
}
.header___Wn4fJ .menu___twLGR li .name___dR5V2 span {
font-size: 16px;
color: #ffffff;
display: inline-block;
position: relative;
}
.header___Wn4fJ .menu___twLGR li .name___dR5V2 span b {
color: #d4443c;
transform: translate(2px, -7px);
display: inline-block;
}
.header___Wn4fJ .menu___twLGR li .name___dR5V2 i {
font-size: 12px;
display: inline-block;
transform: translateY(1px) scale(0.6);
color: #979797;
}
.header___Wn4fJ .menu___twLGR li:hover .name___dR5V2 span {
color: #c5c5c5;
}
.header___Wn4fJ .menu___twLGR li:hover .dropDown___Cwaoa {
display: block;
}
.header___Wn4fJ .menu___twLGR li.actived___ohMks .name___dR5V2 span {
color: #c5c5c5;
}
.header___Wn4fJ .menu___twLGR li.actived___ohMks .name___dR5V2 span::after {
content: '';
width: 100%;
height: 2px;
background: #c5c5c5;
position: absolute;
bottom: 12px;
left: 0;
border-radius: 1px;
}
.header___Wn4fJ .edu-menu___iWLK0 {
display: flex;
width: 100%;
height: 72px;
width: 1200px;
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
margin: 0 auto;
}
.header___Wn4fJ .newslight___lSZjL {
width: 5px;
height: 5px;
border-radius: 5px;
position: absolute;
top: 0;
left: 10px;
background: #fb3226;
.header___Wn4fJ .wrap___Yr9Co .menu a {
color: #fff;
margin: 0 15px;
font-size: 15px;
}
.header___Wn4fJ .classromediv___knFRv {
animation: glow___gzrPH 200ms ease-out infinite alternate;
.header___Wn4fJ .wrap___Yr9Co .menu a:nth-last-child(1) {
margin-right: 0;
}
.spandiv___Gm_hg {
height: 30px;
line-height: 30px;
text-align: center;
background: rgba(0, 255, 249, 0.2);
width: 80px;
.header___Wn4fJ .wrap___Yr9Co .menu a:hover {
color: #5299e1;
}
.header-iearning___LZfyg {
min-width: 1200px;
height: 60px;
width: 100%;
background-color: rgba(255, 255, 255, 0.8) !important;
box-shadow: 0px 2px 10px 0px rgba(136, 136, 136, 0.5);
position: fixed;
top: 0px;
left: 0px;
z-index: 1000;
}
.header-iearning___LZfyg .logo___QnotM {
height: 36px;
.header___Wn4fJ .wrap___Yr9Co .menu .logo {
margin-left: 0;
margin-right: 22px;
}
.header-iearning___LZfyg [class~='ant-layout-header'] {
padding: 0;
height: 60px;
color: #000;
color: initial;
background: transparent;
.header___Wn4fJ .wrap___Yr9Co .menu .logo img {
height: 43px;
}
.header-iearning___LZfyg .menu___twLGR {
margin: 0;
padding: 0;
.header___Wn4fJ .wrap___Yr9Co .menu .right {
margin-left: auto;
display: flex;
flex-flow: row nowrap;
align-items: center;
}
.header-iearning___LZfyg .menu___twLGR li {
margin-right: 30px;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.header-iearning___LZfyg .menu___twLGR li:hover a {
color: #828383;
}
.header-iearning___LZfyg .menu___twLGR li.actived___ohMks a {
color: #196efd;
.header___Wn4fJ .wrap___Yr9Co .menu .hidden {
display: none;
}
.header-iearning___LZfyg .menu___twLGR li.actived___ohMks::after {
.header___Wn4fJ .wrap___Yr9Co .menu .active::after {
content: '';
width: 28px;
height: 4px;
background-color: #196efd;
width: 85px;
height: 2px;
position: absolute;
bottom: 10px;
z-index: 2;
bottom: 5px;
left: 50%;
transform: translateX(-50%);
background: #ffffff;
pointer-events: none;
}
.header-iearning___LZfyg .menu___twLGR li a {
color: #434d6c;
.header___Wn4fJ .wrap___Yr9Co .menu .list {
position: relative;
font-size: 16px;
color: #ffffff;
cursor: default;
height: 50px;
line-height: 50px;
}
.header-iearning___LZfyg .edu-menu___iWLK0 {
.header___Wn4fJ .wrap___Yr9Co .menu .list:hover .transition {
display: flex;
width: 100%;
padding: 0 20px;
height: 60px;
min-width: 1200px;
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
}
.header-iearning___LZfyg .newslight___lSZjL {
width: 5px;
height: 5px;
border-radius: 5px;
position: absolute;
top: 0px;
left: 10px;
background: #fb3226;
}
.header-iearning___LZfyg .classromediv___knFRv {
animation: glow___gzrPH 200ms ease-out infinite alternate;
.header___Wn4fJ .wrap___Yr9Co .menu .list > i {
margin-left: 12px;
font-size: 10px;
display: inline-block;
transform: scale(0.7);
}
.header-iearning___LZfyg .title___Ozzjk {
font-size: 18px;
font-weight: 600;
color: #196efd;
margin-left: 10px;
.header___Wn4fJ .wrap___Yr9Co .menu .list .transition {
position: absolute;
z-index: 20;
top: 49px;
left: -15px;
display: none;
background-color: #fff;
box-shadow: 0px 10px 16px 0px #cecece;
border-radius: 6px;
flex-direction: column;
padding: 7px 0;
}
.headerFixed___QLwBd {
position: fixed;
top: 0px;
z-index: 999;
width: 100%;
.header___Wn4fJ .wrap___Yr9Co .menu .list .transition .item {
color: rgba(0, 0, 0, 0.87);
padding: 7px 17px;
margin: 0;
line-height: normal;
line-height: initial;
white-space: nowrap;
}
.headerFixed___QLwBd + section {
padding-top: 60px;
.header___Wn4fJ .wrap___Yr9Co .menu .list .transition .item:hover {
color: #5299e1;
}
@keyframes glow___gzrPH {
0% {
border-color: #00fff9;
background: rgba(0, 255, 249, 0.2);
box-shadow: 0 0 5px rgba(0, 255, 249, 0.2);
}
100% {
border-color: #00fff9;
background: rgba(0, 255, 249, 0.2);
box-shadow: 0 0 8px rgba(0, 255, 249, 0.6);
}
.logo___QnotM {
height: 36px;
margin-right: 46px;
}
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
@ -289,126 +158,6 @@
color: #fff;
}
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/AuthModal/index.less?modules ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.tilte___IfiMG {
color: #333333;
font-size: 16px;
text-align: center;
}
.flexRow___pQP78 {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin-top: 30px;
}
.flexColumn___xrBZQ {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.footerWrap___C5kCC {
display: flex;
justify-content: space-between;
}
.img___GoWZu {
width: 40px;
height: 37px;
vertical-align: middle;
border-style: none;
}
.content___pumTK {
font-size: 14px;
color: #979797;
margin-top: 15px;
}
.modalContent___XvHiZ {
text-align: center;
margin-top: 10px;
color: #333333;
font-size: 16px;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Header/components/Join/index.less?modules ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___cltIf {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___fKr_O {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center____QfiA {
align-items: center;
box-align: center;
}
.flex_box_center_end___ysqmH {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___CfE8K {
flex-direction: column;
box-orient: block-axis;
}
.rightMenu___ADTOX {
width: 120px;
text-align: center;
}
.rightMenu___ADTOX li {
padding: 0 15px;
height: 35px;
line-height: 35px;
background: none !important;
}
.rightMenu___ADTOX li:hover {
background: #0152d9 !important;
}
.rightMenu___ADTOX li:hover a {
color: white !important;
}
.rightMenu___ADTOX li a {
font-size: 14px;
margin: 0;
padding: 0;
}
.joinMenu___aRGsf {
padding: 0 0;
width: 240px;
}
.joinMenu___aRGsf a {
color: #323232;
}
.joinBoard___AeUvr {
border: 1px solid #eee;
width: 1px;
height: 100%;
}
.joinCol___fV4uL {
width: 48%;
}
.hidden___TkCJZ {
display: none;
}
.w140___Vx5lp {
width: 140px !important;
}
.w100___yYRaC {
width: 90%;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Header/components/User/index.less?modules ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/

@ -173,232 +173,101 @@
box-orient: block-axis;
}
.header___Wn4fJ {
min-width: 1200px;
position: relative;
}
.header___Wn4fJ [class~='ant-layout-header'] {
padding: 0;
height: 72px;
background: #24292f;
background: #101010;
height: 62px;
}
.header___Wn4fJ .logo___QnotM {
height: 36px;
margin-right: 40px;
}
.header___Wn4fJ .menu___twLGR {
margin: 0;
padding: 0;
.header___Wn4fJ .wrap___Yr9Co {
width: 1200px;
height: 100%;
display: flex;
flex-flow: row nowrap;
align-items: center;
margin: 0 auto;
}
.header___Wn4fJ .menu___twLGR li {
margin-right: 30px;
position: relative;
.header___Wn4fJ .wrap___Yr9Co .menu {
display: flex;
align-items: center;
justify-content: center;
}
.header___Wn4fJ .menu___twLGR li .dropDown___Cwaoa {
background: #ffffff;
box-shadow: 0px 10px 16px 0px #cecece;
border-radius: 6px;
position: absolute;
z-index: 999;
left: -20px;
top: 50px;
padding: 20px;
line-height: 1.5;
display: none;
}
.header___Wn4fJ .menu___twLGR li .dropDown___Cwaoa .line___D1auu {
width: 100%;
height: 1px;
background: #dbdce0;
margin: 24px 0;
}
.header___Wn4fJ .menu___twLGR li .dropDown___Cwaoa .subName___gql7K {
cursor: pointer;
}
.header___Wn4fJ .menu___twLGR li .dropDown___Cwaoa .subName___gql7K:hover aside {
color: #165dff;
}
.header___Wn4fJ .menu___twLGR li .name___dR5V2 {
display: flex;
align-items: center;
height: 50px;
cursor: pointer;
}
.header___Wn4fJ .menu___twLGR li .name___dR5V2 span {
font-size: 16px;
color: #ffffff;
display: inline-block;
position: relative;
}
.header___Wn4fJ .menu___twLGR li .name___dR5V2 span b {
color: #d4443c;
transform: translate(2px, -7px);
display: inline-block;
}
.header___Wn4fJ .menu___twLGR li .name___dR5V2 i {
font-size: 12px;
display: inline-block;
transform: translateY(1px) scale(0.6);
color: #979797;
}
.header___Wn4fJ .menu___twLGR li:hover .name___dR5V2 span {
color: #c5c5c5;
}
.header___Wn4fJ .menu___twLGR li:hover .dropDown___Cwaoa {
display: block;
}
.header___Wn4fJ .menu___twLGR li.actived___ohMks .name___dR5V2 span {
color: #c5c5c5;
}
.header___Wn4fJ .menu___twLGR li.actived___ohMks .name___dR5V2 span::after {
content: '';
width: 100%;
height: 2px;
background: #c5c5c5;
position: absolute;
bottom: 12px;
left: 0;
border-radius: 1px;
}
.header___Wn4fJ .edu-menu___iWLK0 {
display: flex;
width: 100%;
height: 72px;
width: 1200px;
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
margin: 0 auto;
.header___Wn4fJ .wrap___Yr9Co .menu a {
color: #fff;
margin: 0 15px;
font-size: 15px;
}
.header___Wn4fJ .newslight___lSZjL {
width: 5px;
height: 5px;
border-radius: 5px;
position: absolute;
top: 0;
left: 10px;
background: #fb3226;
.header___Wn4fJ .wrap___Yr9Co .menu a:nth-last-child(1) {
margin-right: 0;
}
.header___Wn4fJ .classromediv___knFRv {
animation: glow___gzrPH 200ms ease-out infinite alternate;
.header___Wn4fJ .wrap___Yr9Co .menu a:hover {
color: #5299e1;
}
.spandiv___Gm_hg {
height: 30px;
line-height: 30px;
text-align: center;
background: rgba(0, 255, 249, 0.2);
width: 80px;
.header___Wn4fJ .wrap___Yr9Co .menu .logo {
margin-left: 0;
margin-right: 22px;
}
.header-iearning___LZfyg {
min-width: 1200px;
height: 60px;
width: 100%;
background-color: rgba(255, 255, 255, 0.8) !important;
box-shadow: 0px 2px 10px 0px rgba(136, 136, 136, 0.5);
position: fixed;
top: 0px;
left: 0px;
z-index: 1000;
}
.header-iearning___LZfyg .logo___QnotM {
height: 36px;
.header___Wn4fJ .wrap___Yr9Co .menu .logo img {
height: 43px;
}
.header-iearning___LZfyg [class~='ant-layout-header'] {
padding: 0;
height: 60px;
color: #000;
color: initial;
background: transparent;
}
.header-iearning___LZfyg .menu___twLGR {
margin: 0;
padding: 0;
.header___Wn4fJ .wrap___Yr9Co .menu .right {
margin-left: auto;
display: flex;
flex-flow: row nowrap;
align-items: center;
}
.header-iearning___LZfyg .menu___twLGR li {
margin-right: 30px;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.header-iearning___LZfyg .menu___twLGR li:hover a {
color: #828383;
}
.header-iearning___LZfyg .menu___twLGR li.actived___ohMks a {
color: #196efd;
.header___Wn4fJ .wrap___Yr9Co .menu .hidden {
display: none;
}
.header-iearning___LZfyg .menu___twLGR li.actived___ohMks::after {
.header___Wn4fJ .wrap___Yr9Co .menu .active::after {
content: '';
width: 28px;
height: 4px;
background-color: #196efd;
width: 85px;
height: 2px;
position: absolute;
bottom: 10px;
z-index: 2;
bottom: 5px;
left: 50%;
transform: translateX(-50%);
background: #ffffff;
pointer-events: none;
}
.header-iearning___LZfyg .menu___twLGR li a {
color: #434d6c;
.header___Wn4fJ .wrap___Yr9Co .menu .list {
position: relative;
font-size: 16px;
color: #ffffff;
cursor: default;
height: 50px;
line-height: 50px;
}
.header-iearning___LZfyg .edu-menu___iWLK0 {
.header___Wn4fJ .wrap___Yr9Co .menu .list:hover .transition {
display: flex;
width: 100%;
padding: 0 20px;
height: 60px;
min-width: 1200px;
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
}
.header-iearning___LZfyg .newslight___lSZjL {
width: 5px;
height: 5px;
border-radius: 5px;
position: absolute;
top: 0px;
left: 10px;
background: #fb3226;
}
.header-iearning___LZfyg .classromediv___knFRv {
animation: glow___gzrPH 200ms ease-out infinite alternate;
.header___Wn4fJ .wrap___Yr9Co .menu .list > i {
margin-left: 12px;
font-size: 10px;
display: inline-block;
transform: scale(0.7);
}
.header-iearning___LZfyg .title___Ozzjk {
font-size: 18px;
font-weight: 600;
color: #196efd;
margin-left: 10px;
.header___Wn4fJ .wrap___Yr9Co .menu .list .transition {
position: absolute;
z-index: 20;
top: 49px;
left: -15px;
display: none;
background-color: #fff;
box-shadow: 0px 10px 16px 0px #cecece;
border-radius: 6px;
flex-direction: column;
padding: 7px 0;
}
.headerFixed___QLwBd {
position: fixed;
top: 0px;
z-index: 999;
width: 100%;
.header___Wn4fJ .wrap___Yr9Co .menu .list .transition .item {
color: rgba(0, 0, 0, 0.87);
padding: 7px 17px;
margin: 0;
line-height: normal;
line-height: initial;
white-space: nowrap;
}
.headerFixed___QLwBd + section {
padding-top: 60px;
.header___Wn4fJ .wrap___Yr9Co .menu .list .transition .item:hover {
color: #5299e1;
}
@keyframes glow___gzrPH {
0% {
border-color: #00fff9;
background: rgba(0, 255, 249, 0.2);
box-shadow: 0 0 5px rgba(0, 255, 249, 0.2);
}
100% {
border-color: #00fff9;
background: rgba(0, 255, 249, 0.2);
box-shadow: 0 0 8px rgba(0, 255, 249, 0.6);
}
.logo___QnotM {
height: 36px;
margin-right: 46px;
}
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
@ -432,126 +301,6 @@
color: #fff;
}
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/AuthModal/index.less?modules ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.tilte___IfiMG {
color: #333333;
font-size: 16px;
text-align: center;
}
.flexRow___pQP78 {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin-top: 30px;
}
.flexColumn___xrBZQ {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.footerWrap___C5kCC {
display: flex;
justify-content: space-between;
}
.img___GoWZu {
width: 40px;
height: 37px;
vertical-align: middle;
border-style: none;
}
.content___pumTK {
font-size: 14px;
color: #979797;
margin-top: 15px;
}
.modalContent___XvHiZ {
text-align: center;
margin-top: 10px;
color: #333333;
font-size: 16px;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Header/components/Join/index.less?modules ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___cltIf {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___fKr_O {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center____QfiA {
align-items: center;
box-align: center;
}
.flex_box_center_end___ysqmH {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___CfE8K {
flex-direction: column;
box-orient: block-axis;
}
.rightMenu___ADTOX {
width: 120px;
text-align: center;
}
.rightMenu___ADTOX li {
padding: 0 15px;
height: 35px;
line-height: 35px;
background: none !important;
}
.rightMenu___ADTOX li:hover {
background: #0152d9 !important;
}
.rightMenu___ADTOX li:hover a {
color: white !important;
}
.rightMenu___ADTOX li a {
font-size: 14px;
margin: 0;
padding: 0;
}
.joinMenu___aRGsf {
padding: 0 0;
width: 240px;
}
.joinMenu___aRGsf a {
color: #323232;
}
.joinBoard___AeUvr {
border: 1px solid #eee;
width: 1px;
height: 100%;
}
.joinCol___fV4uL {
width: 48%;
}
.hidden___TkCJZ {
display: none;
}
.w140___Vx5lp {
width: 140px !important;
}
.w100___yYRaC {
width: 90%;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Header/components/User/index.less?modules ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/

@ -1,4 +1,3 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[41717],{
/***/ 88289:
@ -7,6 +6,7 @@
\*******************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -52,6 +52,7 @@ if (false) {}
\********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
@ -350,6 +351,11 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
;// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/LoginPanel/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var LoginPanelmodules = ({"login-panel-wrapper2":"login-panel-wrapper2___HuMNJ","ant-form-item-explain":"ant-form-item-explain___c1FeE","ant-form-item":"ant-form-item___qb60e","ant-form-item-with-help":"ant-form-item-with-help___NeAwJ","login-panel-right-wrp":"login-panel-right-wrp___vWD_i","res-error-values":"res-error-values___hV1lz","tabs":"tabs___EwOAX"});
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(17985);
// EXTERNAL MODULE: ./node_modules/_crypto-js@4.1.1@crypto-js/index.js
var _crypto_js_4_1_1_crypto_js = __webpack_require__(28209);
var _crypto_js_4_1_1_crypto_js_default = /*#__PURE__*/__webpack_require__.n(_crypto_js_4_1_1_crypto_js);
;// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/LoginPanel/LoginForm.tsx
@ -365,6 +371,8 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
var LoginForm_inputStyle = {
height: 48,
borderRadius: 4
@ -398,9 +406,16 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
openUnlockLogin = _useState8[0],
setOpenUnlockLogin = _useState8[1];
var password = /^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/;
var _useState9 = (0,_react_17_0_2_react.useState)(0),
_useState10 = slicedToArray_default()(_useState9, 2),
changeImgNum = _useState10[0],
setChangeImgNum = _useState10[1];
var imgSrc = (0,_react_17_0_2_react.useMemo)(function () {
return '/rucaptcha?t=' + new Date().getTime();
}, [changeImgNum]);
var onFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
var res, from;
var newValues, iv, ciphertext, res, from;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
@ -410,17 +425,24 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
setErrorValue('系统检测您的密码强度过低,请及时修改');
// return
}
newValues = objectSpread2_default()({}, values);
iv = _crypto_js_4_1_1_crypto_js_default().enc.Utf8.parse("5183666c72eec9e4");
ciphertext = _crypto_js_4_1_1_crypto_js_default().AES.encrypt(values.password || "", iv, {
iv: iv,
mode: (_crypto_js_4_1_1_crypto_js_default()).mode.CBC
});
newValues.password = ciphertext.toString();
setFormValue(objectSpread2_default()({}, values));
_context.next = 5;
return (0,service_user/* LoginIn */.Es)(values);
case 5:
_context.next = 9;
return (0,service_user/* LoginIn */.Es)(newValues);
case 9:
res = _context.sent;
if (!res.status) {
_context.next = 19;
_context.next = 23;
break;
}
if (!(res.status === -4)) {
_context.next = 13;
_context.next = 17;
break;
}
dispatch({
@ -438,18 +460,18 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
}
});
return _context.abrupt("return");
case 13:
case 17:
if (!(res.status === -5)) {
_context.next = 17;
_context.next = 21;
break;
}
setErrorData([res === null || res === void 0 ? void 0 : res.message]);
setOpenUnlockLogin(true);
return _context.abrupt("return");
case 17:
case 21:
setErrorValue(res === null || res === void 0 ? void 0 : res.message);
return _context.abrupt("return");
case 19:
case 23:
if (res !== null && res !== void 0 && res.show) {
localStorage.setItem('extension-modal', 'exist');
localStorage.setItem('extension-date', res === null || res === void 0 ? void 0 : res.start_date);
@ -457,35 +479,35 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
localStorage.removeItem('extension-modal');
}
if (!(location.pathname === '/user/login' || location.pathname === '/login')) {
_context.next = 35;
_context.next = 39;
break;
}
from = searchParams.get("form") || searchParams.get("back_url");
if (!from) {
_context.next = 26;
_context.next = 30;
break;
}
window.location.href = decodeURIComponent(from);
_context.next = 33;
_context.next = 37;
break;
case 26:
case 30:
if (password.test(values.password)) {
_context.next = 31;
_context.next = 35;
break;
}
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
window.location.href = '/account/secure';
_context.next = 33;
_context.next = 37;
break;
case 31:
case 35:
window.location.reload();
return _context.abrupt("return");
case 33:
_context.next = 43;
case 37:
_context.next = 47;
break;
case 35:
case 39:
if (password.test(values.password)) {
_context.next = 41;
_context.next = 45;
break;
}
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
@ -496,14 +518,14 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
showPopLogin: false
}
});
_context.next = 43;
_context.next = 47;
break;
case 41:
case 45:
window.location.reload();
return _context.abrupt("return");
case 43:
case 47:
form.resetFields();
case 44:
case 48:
case "end":
return _context.stop();
}
@ -581,6 +603,35 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
size: 'middle',
placeholder: "\u5BC6\u7801"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "code",
rules: [{
required: true,
message: '请输入验证码'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
style: LoginForm_inputStyle
// visibilityToggle={false}
,
size: "large",
placeholder: "\u9A8C\u8BC1\u7801"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: (env/* default */.Z === null || env/* default */.Z === void 0 ? void 0 : env/* default */.Z.API_SERVER) + imgSrc,
style: {
height: '32px',
marginLeft: '10px'
},
onClick: function onClick() {
// setImgsrc(ImgSrc + '/?t=' + Date.now())
setChangeImgNum(changeImgNum + 1);
// "this.src = '/rucaptcha/?t=' + Date.now();"
}
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "flex-container",
@ -1523,8 +1574,6 @@ var SvgQq = function SvgQq(props) {
;// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/OauthPanel/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var OauthPanelmodules = ({"other-login":"other-login___Jd48Z","btn-link":"btn-link___MhTA6","wechat-qrcode":"wechat-qrcode___bLWkh","driver":"driver___IuicK"});
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(17985);
;// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/OauthPanel/index.tsx
@ -2657,8 +2706,8 @@ var spin = __webpack_require__(71418);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.11@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(99232);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 12 modules
var Header = __webpack_require__(15932);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 5 modules
var Header = __webpack_require__(49962);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__(37205);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
@ -3180,6 +3229,7 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -3657,6 +3707,7 @@ es_alert_Alert.ErrorBoundary = alert_ErrorBoundary;
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 84966);
/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 10711);
"use client";
@ -3670,6 +3721,16 @@ Layout.Content = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Content */ .VY;
Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
/* harmony default export */ __webpack_exports__.Z = (Layout);
/***/ }),
/***/ 3828:
/*!************************!*\
!*** crypto (ignored) ***!
\************************/
/***/ (function() {
/* (ignored) */
/***/ })
}]);

@ -54,232 +54,101 @@
box-orient: block-axis;
}
.header___Wn4fJ {
min-width: 1200px;
position: relative;
}
.header___Wn4fJ [class~='ant-layout-header'] {
padding: 0;
height: 72px;
background: #24292f;
}
.header___Wn4fJ .logo___QnotM {
height: 36px;
margin-right: 40px;
}
.header___Wn4fJ .menu___twLGR {
margin: 0;
padding: 0;
display: flex;
flex-flow: row nowrap;
align-items: center;
background: #101010;
height: 62px;
}
.header___Wn4fJ .menu___twLGR li {
margin-right: 30px;
position: relative;
.header___Wn4fJ .wrap___Yr9Co {
width: 1200px;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.header___Wn4fJ .menu___twLGR li .dropDown___Cwaoa {
background: #ffffff;
box-shadow: 0px 10px 16px 0px #cecece;
border-radius: 6px;
position: absolute;
z-index: 999;
left: -20px;
top: 50px;
padding: 20px;
line-height: 1.5;
display: none;
}
.header___Wn4fJ .menu___twLGR li .dropDown___Cwaoa .line___D1auu {
width: 100%;
height: 1px;
background: #dbdce0;
margin: 24px 0;
}
.header___Wn4fJ .menu___twLGR li .dropDown___Cwaoa .subName___gql7K {
cursor: pointer;
}
.header___Wn4fJ .menu___twLGR li .dropDown___Cwaoa .subName___gql7K:hover aside {
color: #165dff;
margin: 0 auto;
}
.header___Wn4fJ .menu___twLGR li .name___dR5V2 {
.header___Wn4fJ .wrap___Yr9Co .menu {
display: flex;
align-items: center;
height: 50px;
cursor: pointer;
}
.header___Wn4fJ .menu___twLGR li .name___dR5V2 span {
font-size: 16px;
color: #ffffff;
display: inline-block;
position: relative;
}
.header___Wn4fJ .menu___twLGR li .name___dR5V2 span b {
color: #d4443c;
transform: translate(2px, -7px);
display: inline-block;
}
.header___Wn4fJ .menu___twLGR li .name___dR5V2 i {
font-size: 12px;
display: inline-block;
transform: translateY(1px) scale(0.6);
color: #979797;
}
.header___Wn4fJ .menu___twLGR li:hover .name___dR5V2 span {
color: #c5c5c5;
}
.header___Wn4fJ .menu___twLGR li:hover .dropDown___Cwaoa {
display: block;
}
.header___Wn4fJ .menu___twLGR li.actived___ohMks .name___dR5V2 span {
color: #c5c5c5;
}
.header___Wn4fJ .menu___twLGR li.actived___ohMks .name___dR5V2 span::after {
content: '';
width: 100%;
height: 2px;
background: #c5c5c5;
position: absolute;
bottom: 12px;
left: 0;
border-radius: 1px;
}
.header___Wn4fJ .edu-menu___iWLK0 {
display: flex;
width: 100%;
height: 72px;
width: 1200px;
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
margin: 0 auto;
}
.header___Wn4fJ .newslight___lSZjL {
width: 5px;
height: 5px;
border-radius: 5px;
position: absolute;
top: 0;
left: 10px;
background: #fb3226;
.header___Wn4fJ .wrap___Yr9Co .menu a {
color: #fff;
margin: 0 15px;
font-size: 15px;
}
.header___Wn4fJ .classromediv___knFRv {
animation: glow___gzrPH 200ms ease-out infinite alternate;
.header___Wn4fJ .wrap___Yr9Co .menu a:nth-last-child(1) {
margin-right: 0;
}
.spandiv___Gm_hg {
height: 30px;
line-height: 30px;
text-align: center;
background: rgba(0, 255, 249, 0.2);
width: 80px;
.header___Wn4fJ .wrap___Yr9Co .menu a:hover {
color: #5299e1;
}
.header-iearning___LZfyg {
min-width: 1200px;
height: 60px;
width: 100%;
background-color: rgba(255, 255, 255, 0.8) !important;
box-shadow: 0px 2px 10px 0px rgba(136, 136, 136, 0.5);
position: fixed;
top: 0px;
left: 0px;
z-index: 1000;
}
.header-iearning___LZfyg .logo___QnotM {
height: 36px;
.header___Wn4fJ .wrap___Yr9Co .menu .logo {
margin-left: 0;
margin-right: 22px;
}
.header-iearning___LZfyg [class~='ant-layout-header'] {
padding: 0;
height: 60px;
color: #000;
color: initial;
background: transparent;
.header___Wn4fJ .wrap___Yr9Co .menu .logo img {
height: 43px;
}
.header-iearning___LZfyg .menu___twLGR {
margin: 0;
padding: 0;
.header___Wn4fJ .wrap___Yr9Co .menu .right {
margin-left: auto;
display: flex;
flex-flow: row nowrap;
align-items: center;
}
.header-iearning___LZfyg .menu___twLGR li {
margin-right: 30px;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.header-iearning___LZfyg .menu___twLGR li:hover a {
color: #828383;
}
.header-iearning___LZfyg .menu___twLGR li.actived___ohMks a {
color: #196efd;
.header___Wn4fJ .wrap___Yr9Co .menu .hidden {
display: none;
}
.header-iearning___LZfyg .menu___twLGR li.actived___ohMks::after {
.header___Wn4fJ .wrap___Yr9Co .menu .active::after {
content: '';
width: 28px;
height: 4px;
background-color: #196efd;
width: 85px;
height: 2px;
position: absolute;
bottom: 10px;
z-index: 2;
bottom: 5px;
left: 50%;
transform: translateX(-50%);
background: #ffffff;
pointer-events: none;
}
.header-iearning___LZfyg .menu___twLGR li a {
color: #434d6c;
.header___Wn4fJ .wrap___Yr9Co .menu .list {
position: relative;
font-size: 16px;
color: #ffffff;
cursor: default;
height: 50px;
line-height: 50px;
}
.header-iearning___LZfyg .edu-menu___iWLK0 {
.header___Wn4fJ .wrap___Yr9Co .menu .list:hover .transition {
display: flex;
width: 100%;
padding: 0 20px;
height: 60px;
min-width: 1200px;
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
}
.header-iearning___LZfyg .newslight___lSZjL {
width: 5px;
height: 5px;
border-radius: 5px;
position: absolute;
top: 0px;
left: 10px;
background: #fb3226;
.header___Wn4fJ .wrap___Yr9Co .menu .list > i {
margin-left: 12px;
font-size: 10px;
display: inline-block;
transform: scale(0.7);
}
.header-iearning___LZfyg .classromediv___knFRv {
animation: glow___gzrPH 200ms ease-out infinite alternate;
.header___Wn4fJ .wrap___Yr9Co .menu .list .transition {
position: absolute;
z-index: 20;
top: 49px;
left: -15px;
display: none;
background-color: #fff;
box-shadow: 0px 10px 16px 0px #cecece;
border-radius: 6px;
flex-direction: column;
padding: 7px 0;
}
.header-iearning___LZfyg .title___Ozzjk {
font-size: 18px;
font-weight: 600;
color: #196efd;
margin-left: 10px;
}
.headerFixed___QLwBd {
position: fixed;
top: 0px;
z-index: 999;
width: 100%;
.header___Wn4fJ .wrap___Yr9Co .menu .list .transition .item {
color: rgba(0, 0, 0, 0.87);
padding: 7px 17px;
margin: 0;
line-height: normal;
line-height: initial;
white-space: nowrap;
}
.headerFixed___QLwBd + section {
padding-top: 60px;
.header___Wn4fJ .wrap___Yr9Co .menu .list .transition .item:hover {
color: #5299e1;
}
@keyframes glow___gzrPH {
0% {
border-color: #00fff9;
background: rgba(0, 255, 249, 0.2);
box-shadow: 0 0 5px rgba(0, 255, 249, 0.2);
}
100% {
border-color: #00fff9;
background: rgba(0, 255, 249, 0.2);
box-shadow: 0 0 8px rgba(0, 255, 249, 0.6);
}
.logo___QnotM {
height: 36px;
margin-right: 46px;
}
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
@ -313,126 +182,6 @@
color: #fff;
}
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/AuthModal/index.less?modules ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.tilte___IfiMG {
color: #333333;
font-size: 16px;
text-align: center;
}
.flexRow___pQP78 {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin-top: 30px;
}
.flexColumn___xrBZQ {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.footerWrap___C5kCC {
display: flex;
justify-content: space-between;
}
.img___GoWZu {
width: 40px;
height: 37px;
vertical-align: middle;
border-style: none;
}
.content___pumTK {
font-size: 14px;
color: #979797;
margin-top: 15px;
}
.modalContent___XvHiZ {
text-align: center;
margin-top: 10px;
color: #333333;
font-size: 16px;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Header/components/Join/index.less?modules ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___cltIf {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___fKr_O {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center____QfiA {
align-items: center;
box-align: center;
}
.flex_box_center_end___ysqmH {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___CfE8K {
flex-direction: column;
box-orient: block-axis;
}
.rightMenu___ADTOX {
width: 120px;
text-align: center;
}
.rightMenu___ADTOX li {
padding: 0 15px;
height: 35px;
line-height: 35px;
background: none !important;
}
.rightMenu___ADTOX li:hover {
background: #0152d9 !important;
}
.rightMenu___ADTOX li:hover a {
color: white !important;
}
.rightMenu___ADTOX li a {
font-size: 14px;
margin: 0;
padding: 0;
}
.joinMenu___aRGsf {
padding: 0 0;
width: 240px;
}
.joinMenu___aRGsf a {
color: #323232;
}
.joinBoard___AeUvr {
border: 1px solid #eee;
width: 1px;
height: 100%;
}
.joinCol___fV4uL {
width: 48%;
}
.hidden___TkCJZ {
display: none;
}
.w140___Vx5lp {
width: 140px !important;
}
.w100___yYRaC {
width: 90%;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.2.10@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Header/components/User/index.less?modules ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/

File diff suppressed because one or more lines are too long

@ -1,328 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[25972],{
/***/ 63228:
/*!************************************************!*\
!*** ./src/layouts/user/index.tsx + 5 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 */ user; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(39647);
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);
;// CONCATENATED MODULE: ./src/components/User/OauthPanel/wechat.svg
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
var __defProp = Object.defineProperty;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = function __defNormalProp(obj, key, value) {
return key in obj ? __defProp(obj, key, {
enumerable: true,
configurable: true,
writable: true,
value: value
}) : obj[key] = value;
};
var __spreadValues = function __spreadValues(a, b) {
for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
if (__getOwnPropSymbols) {
var _iterator = _createForOfIteratorHelper(__getOwnPropSymbols(b)),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var prop = _step.value;
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
}
return a;
};
var SvgWechat = function SvgWechat(props) {
return /* @__PURE__ */React.createElement("svg", __spreadValues({
className: "wechat_svg__icon",
viewBox: "0 0 1024 1024",
xmlns: "http://www.w3.org/2000/svg",
width: 200,
height: 200
}, props), /* @__PURE__ */React.createElement("path", {
d: "M512 0c282.793 0 512 229.202 512 512 0 282.793-229.207 512-512 512S0 794.793 0 512C0 229.202 229.207 0 512 0zm122.081 423.383c-103.69 0-185.472 72.366-185.472 161.219 0 88.929 81.782 161.146 185.472 161.146 21.71 0 43.54-5.54 65.383-11.084L759.265 768l-16.4-55.588c43.756-33.408 76.34-77.762 76.34-127.81 0-88.853-87.23-161.219-185.119-161.219zM423.265 256C303.196 256 204.8 339.84 204.8 446.31c0 61.43 32.722 111.837 87.409 151l-21.817 67.307 76.365-39.24c27.274 5.581 49.229 11.239 76.508 11.239 6.882 0 13.63-.287 20.378-.87-4.23-14.936-6.748-30.603-6.748-46.92 0-97.695 81.96-177.04 185.738-177.04 7.107 0 14.141.512 21.023 1.306C624.794 323.01 530.698 256 423.27 256zM694.41 512c16.348 0 27.264 11.13 27.264 22.19 0 11.131-10.916 22.118-27.264 22.118-10.71 0-21.494-10.987-21.494-22.118 0-11.06 10.783-22.19 21.494-22.19zm-121.753 0c16.435 0 27.115 11.13 27.115 22.19 0 11.131-10.68 22.118-27.12 22.118-10.752 0-21.643-10.987-21.643-22.118 0-11.06 10.896-22.19 21.643-22.19zM351.549 349.542c17.23 0 28.79 11.72 28.79 29.497 0 17.694-11.56 29.578-28.79 29.578-17.218 0-34.6-11.878-34.6-29.578 0-17.777 17.382-29.502 34.6-29.502zm153.314 0c16.03 0 26.64 11.72 26.64 29.497 0 17.694-10.61 29.578-26.64 29.578-15.903 0-31.877-11.878-31.877-29.578 0-17.777 15.974-29.502 31.877-29.502z",
fill: "#62B900"
}));
};
/* harmony default export */ var wechat = ("data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTUxMiAwYzI4Mi43OTMgMCA1MTIgMjI5LjIwMiA1MTIgNTEyIDAgMjgyLjc5My0yMjkuMjA3IDUxMi01MTIgNTEyUzAgNzk0Ljc5MyAwIDUxMkMwIDIyOS4yMDIgMjI5LjIwNyAwIDUxMiAwem0xMjIuMDgxIDQyMy4zODNjLTEwMy42OSAwLTE4NS40NzIgNzIuMzY2LTE4NS40NzIgMTYxLjIxOSAwIDg4LjkyOSA4MS43ODIgMTYxLjE0NiAxODUuNDcyIDE2MS4xNDYgMjEuNzEgMCA0My41NC01LjU0IDY1LjM4My0xMS4wODRMNzU5LjI2NSA3NjhsLTE2LjQtNTUuNTg4YzQzLjc1Ni0zMy40MDggNzYuMzQtNzcuNzYyIDc2LjM0LTEyNy44MSAwLTg4Ljg1My04Ny4yMy0xNjEuMjE5LTE4NS4xMTktMTYxLjIxOXpNNDIzLjI2NSAyNTZDMzAzLjE5NiAyNTYgMjA0LjggMzM5Ljg0IDIwNC44IDQ0Ni4zMWMwIDYxLjQzIDMyLjcyMiAxMTEuODM3IDg3LjQwOSAxNTFsLTIxLjgxNyA2Ny4zMDcgNzYuMzY1LTM5LjI0YzI3LjI3NCA1LjU4MSA0OS4yMjkgMTEuMjM5IDc2LjUwOCAxMS4yMzkgNi44ODIgMCAxMy42My0uMjg3IDIwLjM3OC0uODctNC4yMy0xNC45MzYtNi43NDgtMzAuNjAzLTYuNzQ4LTQ2LjkyIDAtOTcuNjk1IDgxLjk2LTE3Ny4wNCAxODUuNzM4LTE3Ny4wNCA3LjEwNyAwIDE0LjE0MS41MTIgMjEuMDIzIDEuMzA2QzYyNC43OTQgMzIzLjAxIDUzMC42OTggMjU2IDQyMy4yNyAyNTZ6TTY5NC40MSA1MTJjMTYuMzQ4IDAgMjcuMjY0IDExLjEzIDI3LjI2NCAyMi4xOSAwIDExLjEzMS0xMC45MTYgMjIuMTE4LTI3LjI2NCAyMi4xMTgtMTAuNzEgMC0yMS40OTQtMTAuOTg3LTIxLjQ5NC0yMi4xMTggMC0xMS4wNiAxMC43ODMtMjIuMTkgMjEuNDk0LTIyLjE5em0tMTIxLjc1MyAwYzE2LjQzNSAwIDI3LjExNSAxMS4xMyAyNy4xMTUgMjIuMTkgMCAxMS4xMzEtMTAuNjggMjIuMTE4LTI3LjEyIDIyLjExOC0xMC43NTIgMC0yMS42NDMtMTAuOTg3LTIxLjY0My0yMi4xMTggMC0xMS4wNiAxMC44OTYtMjIuMTkgMjEuNjQzLTIyLjE5ek0zNTEuNTQ5IDM0OS41NDJjMTcuMjMgMCAyOC43OSAxMS43MiAyOC43OSAyOS40OTcgMCAxNy42OTQtMTEuNTYgMjkuNTc4LTI4Ljc5IDI5LjU3OC0xNy4yMTggMC0zNC42LTExLjg3OC0zNC42LTI5LjU3OCAwLTE3Ljc3NyAxNy4zODItMjkuNTAyIDM0LjYtMjkuNTAyem0xNTMuMzE0IDBjMTYuMDMgMCAyNi42NCAxMS43MiAyNi42NCAyOS40OTcgMCAxNy42OTQtMTAuNjEgMjkuNTc4LTI2LjY0IDI5LjU3OC0xNS45MDMgMC0zMS44NzctMTEuODc4LTMxLjg3Ny0yOS41NzggMC0xNy43NzcgMTUuOTc0LTI5LjUwMiAzMS44NzctMjkuNTAyeiIgZmlsbD0iIzYyQjkwMCIvPjwvc3ZnPg==");
;// CONCATENATED MODULE: ./src/components/User/OauthPanel/qq.svg
function qq_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = qq_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
function qq_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return qq_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return qq_arrayLikeToArray(o, minLen); }
function qq_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
var qq_defProp = Object.defineProperty;
var qq_getOwnPropSymbols = Object.getOwnPropertySymbols;
var qq_hasOwnProp = Object.prototype.hasOwnProperty;
var qq_propIsEnum = Object.prototype.propertyIsEnumerable;
var qq_defNormalProp = function __defNormalProp(obj, key, value) {
return key in obj ? qq_defProp(obj, key, {
enumerable: true,
configurable: true,
writable: true,
value: value
}) : obj[key] = value;
};
var qq_spreadValues = function __spreadValues(a, b) {
for (var prop in b || (b = {})) if (qq_hasOwnProp.call(b, prop)) qq_defNormalProp(a, prop, b[prop]);
if (qq_getOwnPropSymbols) {
var _iterator = qq_createForOfIteratorHelper(qq_getOwnPropSymbols(b)),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var prop = _step.value;
if (qq_propIsEnum.call(b, prop)) qq_defNormalProp(a, prop, b[prop]);
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
}
return a;
};
var SvgQq = function SvgQq(props) {
return /* @__PURE__ */React.createElement("svg", qq_spreadValues({
className: "qq_svg__icon",
viewBox: "0 0 1024 1024",
xmlns: "http://www.w3.org/2000/svg",
width: 200,
height: 200
}, props), /* @__PURE__ */React.createElement("path", {
d: "M512 0C229.356 0 0 229.356 0 512s229.356 512 512 512 512-229.356 512-512S794.644 0 512 0zm235.75 647.603c-10.7 5.417-27.417-6.963-43.34-30.157-6.267 25.262-21.673 47.95-43.607 66.253 23.244 8.505 38.123 22.17 38.123 37.898 0 25.519-40.99 46.403-91.387 46.403-45.43 0-83.287-17.014-90.076-38.927h-10.967C499.446 751.243 461.85 768 416.42 768c-50.396 0-91.387-20.623-91.387-46.403 0-15.728 15.145-29.388 38.118-37.898-21.929-18.304-37.596-41.252-43.602-66.253-15.667 23.194-32.634 35.83-43.34 30.157-15.668-7.987-12.534-51.046 7.05-96.159 15.145-35.317 36.03-61.614 51.697-67.287-.262-2.319-.262-4.638-.262-6.707 0-13.66 3.917-26.291 10.445-36.608v-2.314c0-6.19 1.567-12.119 4.178-17.275C353.23 329.216 414.07 256 512.241 256s159.006 73.216 162.923 165.253a38.374 38.374 0 0 1 4.178 17.275v2.32c6.528 10.311 10.445 22.942 10.445 36.607 0 2.32 0 4.64-.261 6.702 15.923 5.673 36.557 31.97 51.696 67.287 19.062 45.118 22.196 88.167 6.528 96.16z",
fill: "#378AFE"
}));
};
/* harmony default export */ var qq = ("data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTUxMiAwQzIyOS4zNTYgMCAwIDIyOS4zNTYgMCA1MTJzMjI5LjM1NiA1MTIgNTEyIDUxMiA1MTItMjI5LjM1NiA1MTItNTEyUzc5NC42NDQgMCA1MTIgMHptMjM1Ljc1IDY0Ny42MDNjLTEwLjcgNS40MTctMjcuNDE3LTYuOTYzLTQzLjM0LTMwLjE1Ny02LjI2NyAyNS4yNjItMjEuNjczIDQ3Ljk1LTQzLjYwNyA2Ni4yNTMgMjMuMjQ0IDguNTA1IDM4LjEyMyAyMi4xNyAzOC4xMjMgMzcuODk4IDAgMjUuNTE5LTQwLjk5IDQ2LjQwMy05MS4zODcgNDYuNDAzLTQ1LjQzIDAtODMuMjg3LTE3LjAxNC05MC4wNzYtMzguOTI3aC0xMC45NjdDNDk5LjQ0NiA3NTEuMjQzIDQ2MS44NSA3NjggNDE2LjQyIDc2OGMtNTAuMzk2IDAtOTEuMzg3LTIwLjYyMy05MS4zODctNDYuNDAzIDAtMTUuNzI4IDE1LjE0NS0yOS4zODggMzguMTE4LTM3Ljg5OC0yMS45MjktMTguMzA0LTM3LjU5Ni00MS4yNTItNDMuNjAyLTY2LjI1My0xNS42NjcgMjMuMTk0LTMyLjYzNCAzNS44My00My4zNCAzMC4xNTctMTUuNjY4LTcuOTg3LTEyLjUzNC01MS4wNDYgNy4wNS05Ni4xNTkgMTUuMTQ1LTM1LjMxNyAzNi4wMy02MS42MTQgNTEuNjk3LTY3LjI4Ny0uMjYyLTIuMzE5LS4yNjItNC42MzgtLjI2Mi02LjcwNyAwLTEzLjY2IDMuOTE3LTI2LjI5MSAxMC40NDUtMzYuNjA4di0yLjMxNGMwLTYuMTkgMS41NjctMTIuMTE5IDQuMTc4LTE3LjI3NUMzNTMuMjMgMzI5LjIxNiA0MTQuMDcgMjU2IDUxMi4yNDEgMjU2czE1OS4wMDYgNzMuMjE2IDE2Mi45MjMgMTY1LjI1M2EzOC4zNzQgMzguMzc0IDAgMCAxIDQuMTc4IDE3LjI3NXYyLjMyYzYuNTI4IDEwLjMxMSAxMC40NDUgMjIuOTQyIDEwLjQ0NSAzNi42MDcgMCAyLjMyIDAgNC42NC0uMjYxIDYuNzAyIDE1LjkyMyA1LjY3MyAzNi41NTcgMzEuOTcgNTEuNjk2IDY3LjI4NyAxOS4wNjIgNDUuMTE4IDIyLjE5NiA4OC4xNjcgNi41MjggOTYuMTZ6IiBmaWxsPSIjMzc4QUZFIi8+PC9zdmc+");
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(26795);
;// CONCATENATED MODULE: ./src/components/User/OauthPanel/index.less
// extracted by mini-css-extract-plugin
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(17985);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/User/OauthPanel/index.tsx
var HOST = window.location.host;
var redirect_uri = env/* default */.Z.QQLoginCB;
/* harmony default export */ var OauthPanel = (function (_ref) {
var onWechatLogin = _ref.onWechatLogin;
function onQQLogin() {
if ((0,util/* isPc */.b9)()) {
window.location.href = "https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=".concat(redirect_uri, "%2fotherloginqq&state=null,").concat(HOST, "&response_type=code");
} else {
(0,util/* openNewWindow */.xg)("https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=101508858&daid=383&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=authorize&which=&client_id=101508858&response_type=code&scope=get_user_info&redirect_uri=".concat(redirect_uri, "%2fotherloginqq&state=null,").concat(HOST, "&response_type=code"));
}
}
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: "driver",
children: [' ', "\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014 ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#444444'
},
children: "\u5FEB\u901F\u767B\u5F55"
}), " \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014", ' ']
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "other-login",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
title: "\u5FAE\u4FE1\u767B\u5F55",
onClick: onWechatLogin,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: wechat,
alt: "\u5FAE\u4FE1",
width: 46
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
title: "qq\u767B\u5F55",
onClick: onQQLogin,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: qq,
alt: "QQ",
width: 46
})
})]
})]
});
});
function WechatQrcode(_ref2) {
var onBack = _ref2.onBack;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("iframe", {
className: "wechat-qrcode",
frameBorder: "0",
sandbox: "allow-scripts allow-same-origin allow-top-navigation",
scrolling: "no",
src: "https://open.weixin.qq.com/connect/qrconnect?appid=wx6b119e2d829c13fa&redirect_uri=".concat(redirect_uri, "%2fotherloginstart&response_type=code&scope=snsapi_login&state=null,").concat(HOST, "#wechat_redirect")
}), /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
className: "btn-link",
onClick: onBack,
children: "\u8FD4\u56DE\u8D26\u53F7\u767B\u5F55"
})]
});
}
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 12 modules
var Header = __webpack_require__(15932);
;// CONCATENATED MODULE: ./src/layouts/user/index.less
// extracted by mini-css-extract-plugin
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(12712);
;// CONCATENATED MODULE: ./src/layouts/user/index.tsx
var _excluded = ["dispatch", "globalSetting", "children"];
function Register(_ref) {
var _globalSetting$settin2, _globalSetting$settin3, _globalSetting$settin4;
var dispatch = _ref.dispatch,
globalSetting = _ref.globalSetting,
children = _ref.children,
props = objectWithoutProperties_default()(_ref, _excluded);
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
wechatQrcode = _useState2[0],
setWechatQrcode = _useState2[1];
function onBack() {
setWechatQrcode(false);
_umi_production_exports.history.push('/user/login');
}
function onWechatLogin() {
setWechatQrcode(true);
}
(0,_react_17_0_2_react.useEffect)(function () {
if (!globalSetting.setting) {
dispatch({
type: 'globalSetting/query'
});
}
}, []);
var renderNav = function renderNav() {
var _globalSetting$settin;
var _useLocation = (0,_umi_production_exports.useLocation)(),
pathname = _useLocation.pathname;
if (pathname === '/user/reset-password') {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "register-nav",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: '#333'
},
children: "\u627E\u56DE\u5BC6\u7801"
})
});
}
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "register-nav",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
return _umi_production_exports.history.push('/user/login');
},
className: pathname === '/user/login' || pathname === '/login' ? 'nav-active' : '',
children: "\u767B\u5F55"
}), !((_globalSetting$settin = globalSetting.setting) !== null && _globalSetting$settin !== void 0 && _globalSetting$settin.close_register) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
return _umi_production_exports.history.push('/user/register');
},
className: pathname === '/user/register' || pathname === '/register' ? 'nav-active' : '',
children: "\u6CE8\u518C"
})]
});
};
var is_main_site = (_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.main_site;
var login_logo_url = (_globalSetting$settin3 = globalSetting.setting) === null || _globalSetting$settin3 === void 0 ? void 0 : _globalSetting$settin3.login_logo_url;
var is_local = (_globalSetting$settin4 = globalSetting.setting) === null || _globalSetting$settin4 === void 0 ? void 0 : _globalSetting$settin4.is_local;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "register-container",
children: [!(0,util/* checkIsClientExam */.Ll)() && /*#__PURE__*/(0,jsx_runtime.jsx)(Header/* default */.Z, objectSpread2_default()({
isLogin: true
}, props)), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "register-bg",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "register-introduce",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("h4", {
children: "\u4EBA\u5DE5\u667A\u80FD\u8BAD\u7EC3\u5E08\u5B9E\u8BAD\u5E73\u53F0"
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "register-panel",
children: [!wechatQrcode ? renderNav() : null, !wechatQrcode ? /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {}) : null, wechatQrcode ? /*#__PURE__*/(0,jsx_runtime.jsx)(WechatQrcode, {
onBack: onBack
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: is_main_site && !is_local && /*#__PURE__*/(0,jsx_runtime.jsx)(OauthPanel, {
onWechatLogin: onWechatLogin
})
})]
})]
}), !is_local && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "register-footer",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\xA9"
}), " 2021 EduCoder \u6E58ICP\u590717009477\u53F7", ' ', /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
href: "https://team.trustie.net/",
target: "_blank",
children: "Trustie"
}), ' ', "& IntelliDE inside"]
})]
});
}
/* harmony default export */ var user = ((0,_umi_production_exports.connect)(function (_ref2) {
var loading = _ref2.loading,
globalSetting = _ref2.globalSetting;
return {
globalSetting: globalSetting,
loading: loading.models.index
};
})(Register));
/***/ })
}]);

@ -46,9 +46,9 @@ if (false) {}
/***/ }),
/***/ 11178:
/***/ 77190:
/*!********************************************************!*\
!*** ./src/pages/Account/Secure/index.tsx + 1 modules ***!
!*** ./src/pages/Account/Secure/index.tsx + 2 modules ***!
\********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -94,8 +94,31 @@ var modal = __webpack_require__(43418);
;// CONCATENATED MODULE: ./src/pages/Account/Secure/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Securemodules = ({"wrap":"wrap___vEhcs","content":"content___ebZIP","hint":"hint___b1gVO","titleWrap":"titleWrap___iGFyX","title":"title___O7ajd","formWrap":"formWrap___hsI9d","row":"row___xYJES","rowBorder":"rowBorder___YP4Tf","name":"name___kvtHq","status":"status___Z3SQA","description":"description___iGcNP","active":"active___DoK2i","color999":"color999___MWFZD","colorCDCDCD":"colorCDCDCD___miC4g","colorRed":"colorRed___YHbHP","submitButton":"submitButton___iLv6C","buttonWrap":"buttonWrap___gaJuB"});
// EXTERNAL MODULE: ./src/utils/hooks/useInterval.tsx
var useInterval = __webpack_require__(73224);
;// CONCATENATED MODULE: ./src/utils/hooks/useInterval.tsx
function useInterval(callback, delay) {
var savedCallback = (0,_react_17_0_2_react.useRef)();
var savedId = (0,_react_17_0_2_react.useRef)();
// 保存新回调
(0,_react_17_0_2_react.useEffect)(function () {
savedCallback.current = callback;
});
// 建立 interval
(0,_react_17_0_2_react.useEffect)(function () {
function tick() {
savedCallback.current();
}
if (delay !== null) {
var id = setInterval(tick, delay);
savedId.current = id;
return function () {
return clearInterval(id);
};
}
}, [delay]);
}
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(26795);
// EXTERNAL MODULE: ./src/utils/fetch.ts
@ -225,7 +248,7 @@ var Secure = function Secure(_ref) {
(0,_react_17_0_2_react.useEffect)(function () {
setActive(parseInt(searchParams.get("active")));
}, [location]);
(0,useInterval/* useInterval */.Y)(function () {
useInterval(function () {
if (!countdownFlag) {
return;
} else {
@ -1109,43 +1132,6 @@ var Secure = function Secure(_ref) {
/***/ }),
/***/ 73224:
/*!*****************************************!*\
!*** ./src/utils/hooks/useInterval.tsx ***!
\*****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Y: function() { return /* binding */ useInterval; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
function useInterval(callback, delay) {
var savedCallback = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
var savedId = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
// 保存新回调
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
savedCallback.current = callback;
});
// 建立 interval
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
function tick() {
savedCallback.current();
}
if (delay !== null) {
var id = setInterval(tick, delay);
savedId.current = id;
return function () {
return clearInterval(id);
};
}
}, [delay]);
}
/***/ }),
/***/ 98135:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!

@ -351,7 +351,7 @@ div[data-node-key="3"] {
}
.addStudentContainer___c5ADl .listItem___cOpB2 {
display: flex;
justify-content: center;
flex-wrap: wrap;
padding-top: 10px;
}
.addStudentContainer___c5ADl .listItem___cOpB2 .tips___UuolQ {

@ -825,6 +825,9 @@ var AddTeacher = function AddTeacher(_ref) {
})]
}), notSearch && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "tc font16 c-light-black mt40 pb30",
style: {
width: '100%'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: ImagesIcon/* search1Icon */.L6,
width: "250",
@ -835,6 +838,9 @@ var AddTeacher = function AddTeacher(_ref) {
})]
}), !notSearch && tableData == '' && !isLoading && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "tc font16 c-light-black mt40 pb30",
style: {
width: '100%'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: ImagesIcon/* noDataIcon */.z3,
width: "100",

@ -455,11 +455,10 @@ var VerifyType = /*#__PURE__*/function (VerifyType) {
return VerifyType;
}(VerifyType || {});
var Page = function Page(_ref) {
var _user$userInfo3, _globalSetting$settin, _globalSetting$settin2, _globalSetting$settin3;
var _user$userInfo3, _globalSetting$settin, _user$userInfo4, _globalSetting$settin2, _globalSetting$settin3;
var globalSetting = _ref.globalSetting,
dispatch = _ref.dispatch,
user = _ref.user,
homePage = _ref.homePage;
user = _ref.user;
var _useState = (0,_react_17_0_2_react.useState)({
page: 1,
limit: 16,
@ -525,10 +524,7 @@ var Page = function Page(_ref) {
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
getList(params);
dispatch({
type: 'homePage/home',
payload: {}
});
// dispatch({ type: 'ja', payload: {} })
}, []);
var getList = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(parameter) {
@ -629,7 +625,7 @@ var Page = function Page(_ref) {
click: function click() {
(0,util/* openNewWindow */.xg)('/classroomsoverview');
},
isShow: homePage === null || homePage === void 0 ? void 0 : homePage.is_show_btn
isShow: user === null || user === void 0 || (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.is_show_btn
}].filter(function (item) {
return item.isShow;
});
@ -691,12 +687,10 @@ var Page = function Page(_ref) {
};
/* harmony default export */ var Index = ((0,_umi_production_exports.connect)(function (_ref3) {
var user = _ref3.user,
globalSetting = _ref3.globalSetting,
homePage = _ref3.homePage;
globalSetting = _ref3.globalSetting;
return {
user: user,
globalSetting: globalSetting,
homePage: homePage
globalSetting: globalSetting
};
})(Page));

@ -1160,9 +1160,9 @@ var Upload_SetPublic = function SetPublic(_ref) {
beforeUpload: function beforeUpload(file) {
var fileSize = file.size / 1024 / 1024;
var fileType = file.name.split(".").slice(-1)[0].toLowerCase();
if (fileSize > 500 || fileSize == 0) {
message/* default */.ZP.error("".concat(file.name, " \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002").concat(fileSize == 0 ? "文件内容不能为空" : '超过文件大小限制(500MB)'));
return Promise.reject();
if (fileSize > 5000 || fileSize == 0) {
message/* default */.ZP.error("".concat(file.name, " \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002").concat(fileSize == 0 ? "文件内容不能为空" : '超过文件大小限制(5G)'));
return upload/* default */.Z.LIST_IGNORE;
}
// if(fileTypes.indexOf(fileType)==-1){
// message.error(`${file.name} 文件无法上传,当前仅限支持pdf、word、excel、ppt、zip文件`)
@ -1198,8 +1198,7 @@ var Upload_SetPublic = function SetPublic(_ref) {
case 2:
value = form.getFieldValue();
value = Object.assign({}, formValue, value);
console.log(value.attachment_ids);
_context.next = 7;
_context.next = 6;
return (0,fetch/* default */.ZP)("/api/files/upload.json", {
method: 'post',
body: {
@ -1215,7 +1214,7 @@ var Upload_SetPublic = function SetPublic(_ref) {
publish_time: value.publish_time
}
});
case 7:
case 6:
res = _context.sent;
if (res.status === 0) {
message/* default */.ZP.success('操作成功');
@ -1237,7 +1236,7 @@ var Upload_SetPublic = function SetPublic(_ref) {
});
}
setFileList([]);
case 10:
case 9:
case "end":
return _context.stop();
}
@ -1271,11 +1270,7 @@ var Upload_SetPublic = function SetPublic(_ref) {
normalize: function normalize(value) {
var uploadNameSizeSeperator = '  ';
var fileList = value.filter(function (item) {
var fileSize = item.size / 1024 / 1024;
var fileType = item.originFileObj.name.split(".").slice(-1)[0].toLowerCase();
if (item.name.indexOf(uploadNameSizeSeperator) === -1) item.name = "".concat(item.name).concat(uploadNameSizeSeperator).concat((0,util/* bytesToSize */.RD)(item.size));
// if (fileSize > 150||(fileTypes.indexOf(fileType)==-1)) return false;
if (fileSize > 500 || fileSize == 0) return false;
return true;
});
setFileList(fileList);
@ -1306,7 +1301,7 @@ var Upload_SetPublic = function SetPublic(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "1. \u4E00\u6B21\u6700\u591A\u4E0A\u4F2010\u4E2A\u6587\u4EF6\u3002"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["2. \u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7", (0,authority/* isSuperAdmins */.Ny)() ? '1G' : '150M', "\u3002"]
children: ["2. \u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7", (0,authority/* isSuperAdmins */.Ny)() ? '5G' : '5G', "\u3002"]
})]
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
@ -1777,8 +1772,8 @@ var Config_SetPublic = function SetPublic(_ref) {
beforeUpload: function beforeUpload(file) {
var fileSize = file.size / 1024 / 1024;
var fileType = file.name.split(".").slice(-1)[0].toLowerCase();
if (fileSize > 500) {
message/* default */.ZP.error("".concat(file.name, " \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(500MB)"));
if (fileSize > 5000) {
message/* default */.ZP.error("".concat(file.name, " \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(5G)"));
return Promise.reject();
}
if (fileTypes.indexOf(fileType) == -1) {

@ -54,8 +54,8 @@ var ArrowLeftOutlined = __webpack_require__(22596);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Board/Add/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Addmodules = ({"flex_box_center":"flex_box_center___Zr62V","flex_space_between":"flex_space_between___MocyP","flex_box_vertical_center":"flex_box_vertical_center___q9TyA","flex_box_center_end":"flex_box_center_end___uv4oS","flex_box_column":"flex_box_column___Tkhbw","title":"title___vcf30","export":"export___WECx3","bg":"bg___cLnNg","tabs":"tabs___fDuTh","btn":"btn___ckSh1","sticky":"sticky___Jdoog"});
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(80638);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
var MultiUpload = __webpack_require__(99531);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(33287);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js

@ -52,8 +52,8 @@ var ArrowLeftOutlined = __webpack_require__(22596);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Board/Edit/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Editmodules = ({"flex_box_center":"flex_box_center___bErbF","flex_space_between":"flex_space_between___X4dC_","flex_box_vertical_center":"flex_box_vertical_center___gHQ8N","flex_box_center_end":"flex_box_center_end___Smiak","flex_box_column":"flex_box_column___uAEy9","title":"title___weIJS","export":"export___Z0YvH","bg":"bg___wQbLV","tabs":"tabs___PRyjG","btn":"btn___y2qNz","sticky":"sticky___AmErR"});
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(80638);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
var MultiUpload = __webpack_require__(99531);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(33287);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js

@ -46,8 +46,8 @@ var service_shixunHomeworks = __webpack_require__(41027);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/Add/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Addmodules = ({"bg":"bg___mk00l","flexRow":"flexRow___cF86d","flexJustifyCenter":"flexJustifyCenter___xffJH","flexAlignEnd":"flexAlignEnd___XZNbd","flexAlignCenter":"flexAlignCenter___rBycD","flexColumn":"flexColumn___bvZmC","formWrap":"formWrap___IeMB8","titleWrap":"titleWrap___jBULn","fieldWrap":"fieldWrap___mRoj3","mdWrap":"mdWrap___XC6AD","backgroundFa":"backgroundFa___dCgV1","button":"button___ga1Ue"});
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(80638);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
var MultiUpload = __webpack_require__(99531);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(26795);
// EXTERNAL MODULE: ./src/components/AddPoints/index.tsx + 2 modules

@ -821,12 +821,14 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
});
});
setdatatables(items);
dispatch({
type: 'classroomList/getAssistantPermissions',
payload: {
course_id: params.coursesId
}
});
if ((0,authority/* isAssistant */.Rm)()) {
dispatch({
type: 'classroomList/getAssistantPermissions',
payload: {
course_id: params.coursesId
}
});
}
// console.log('----',items);

@ -7186,7 +7186,7 @@ var shixunExec = __webpack_require__(97892);
var CommonHomeworkDetail = function CommonHomeworkDetail(_ref) {
var _workList$category, _workList$category2;
var _user$userInfo, _workList$category, _workList$category2;
var user = _ref.user,
shixunHomeworks = _ref.shixunHomeworks,
dispatch = _ref.dispatch,
@ -7213,13 +7213,15 @@ var CommonHomeworkDetail = function CommonHomeworkDetail(_ref) {
getData();
}, [params.coursesId]);
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: 'classroomList/getAssistantPermissions',
payload: {
course_id: params.coursesId
}
});
}, [(0,authority/* isLogin */.bg)()]);
if ((0,authority/* isAssistant */.Rm)()) {
dispatch({
type: 'classroomList/getAssistantPermissions',
payload: {
course_id: params.coursesId
}
});
}
}, [user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login]);
/**
* 获取数据
*/
@ -7608,7 +7610,7 @@ var CommonHomeworkDetail = function CommonHomeworkDetail(_ref) {
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 98135);
/* harmony import */ var _service_shixunHomeworks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/service/shixunHomeworks */ 41027);
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! umi */ 12712);
/* harmony import */ var _components_MultiUpload__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/MultiUpload */ 80638);
/* harmony import */ var _components_MultiUpload__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/MultiUpload */ 99531);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ 37712);

@ -49,8 +49,8 @@ var service_shixunHomeworks = __webpack_require__(41027);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/EditWork/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var EditWorkmodules = ({"flex_box_center":"flex_box_center___GSZm1","flex_space_between":"flex_space_between___CqZVt","flex_box_vertical_center":"flex_box_vertical_center___qljQ5","flex_box_center_end":"flex_box_center_end___sDM6r","flex_box_column":"flex_box_column___sHSL3","bg":"bg___J84pl","flexRow":"flexRow___Pr6cS","flexJustifyCenter":"flexJustifyCenter___Ncnh8","flexAlignEnd":"flexAlignEnd___In8cH","flexAlignCenter":"flexAlignCenter___PDuBO","flexColumn":"flexColumn___gE1bq","formWrap":"formWrap___W4Lac","titleWrap":"titleWrap____Ia29","fieldWrap":"fieldWrap___OJdJh","mdWrap":"mdWrap___adquF","backgroundFa":"backgroundFa___J8U3h","button":"button___VA52Q","searchMember":"searchMember___jBt4d"});
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(80638);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
var MultiUpload = __webpack_require__(99531);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/EditWork/index.tsx

@ -46,8 +46,8 @@ var service_shixunHomeworks = __webpack_require__(41027);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/Edit/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Editmodules = ({"bg":"bg___ZTexa","flexRow":"flexRow___VO4ro","flexJustifyCenter":"flexJustifyCenter___OXFkk","flexAlignEnd":"flexAlignEnd___d6zIM","flexAlignCenter":"flexAlignCenter___YzqD8","flexColumn":"flexColumn___RKoTE","formWrap":"formWrap___BxAFG","titleWrap":"titleWrap___tvKuf","fieldWrap":"fieldWrap___eigdN","mdWrap":"mdWrap___cmz87","backgroundFa":"backgroundFa___b57J2","button":"button___VVH5U"});
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(80638);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
var MultiUpload = __webpack_require__(99531);
// EXTERNAL MODULE: ./src/components/AddPoints/index.tsx + 2 modules
var AddPoints = __webpack_require__(45563);
// EXTERNAL MODULE: ./src/utils/fetch.ts

@ -844,8 +844,8 @@ var DelShixun = function DelShixun(_ref) {
var RenderHtml = __webpack_require__(6150);
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
var lodash = __webpack_require__(89392);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(80638);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
var MultiUpload = __webpack_require__(99531);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/Review/components/AfterAppendix.tsx

@ -49,8 +49,8 @@ var service_shixunHomeworks = __webpack_require__(41027);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/SubmitWork/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var SubmitWorkmodules = ({"flex_box_center":"flex_box_center___HcDSI","flex_space_between":"flex_space_between___Apy3C","flex_box_vertical_center":"flex_box_vertical_center___D1ebH","flex_box_center_end":"flex_box_center_end___RoAdV","flex_box_column":"flex_box_column___o0Rwk","bg":"bg___TiMPN","flexRow":"flexRow___z3dqH","flexJustifyCenter":"flexJustifyCenter___PBTpD","flexAlignEnd":"flexAlignEnd___vbqsb","flexAlignCenter":"flexAlignCenter___wRMBE","flexColumn":"flexColumn___ZjAyF","formWrap":"formWrap___t6WyS","titleWrap":"titleWrap___riXqq","fieldWrap":"fieldWrap___TBdw7","mdWrap":"mdWrap____nxvH","backgroundFa":"backgroundFa___gDA1e","button":"button___mpK6Z","searchMember":"searchMember___vifCN"});
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(80638);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
var MultiUpload = __webpack_require__(99531);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/SubmitWork/index.tsx

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[49890,80638,63276],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[49890,99531,63276],{
/***/ 28194:
/*!******************************************************!*\
@ -729,9 +729,9 @@ var CuttOffNow = function CuttOffNow(_ref) {
/***/ }),
/***/ 80638:
/***/ 99531:
/*!**********************************************************!*\
!*** ./src/components/MultiUpload/index.tsx + 3 modules ***!
!*** ./src/components/MultiUpload/index.tsx + 2 modules ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -762,7 +762,7 @@ var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js + 24 modules
var upload = __webpack_require__(46651);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var es_message = __webpack_require__(8591);
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
@ -771,136 +771,8 @@ var es_button = __webpack_require__(3113);
var env = __webpack_require__(17985);
// EXTERNAL MODULE: ./src/pages/MoopCases/FormPanel/service.ts
var service = __webpack_require__(52989);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/SingleUpload/index.tsx
var uploadNameSizeSeperator = '  ';
function bytesToSize(bytes) {
var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
if (bytes == 0) return '0 Byte';
var i = parseInt('' + Math.floor(Math.log(bytes) / Math.log(1024)), 10);
return (bytes / Math.pow(1024, i)).toFixed(1) + ' ' + sizes[i];
}
/* harmony default export */ var SingleUpload = (function (_ref) {
var _ref$value = _ref.value,
value = _ref$value === void 0 ? [] : _ref$value,
action = _ref.action,
_onChange = _ref.onChange,
className = _ref.className,
_ref$maxSize = _ref.maxSize,
maxSize = _ref$maxSize === void 0 ? 150 : _ref$maxSize,
_ref$title = _ref.title,
title = _ref$title === void 0 ? '文件上传' : _ref$title,
_ref$accept = _ref.accept,
accept = _ref$accept === void 0 ? null : _ref$accept;
var uploadProps = {
multiple: false,
fileList: value,
accept: accept,
withCredentials: true,
beforeUpload: function beforeUpload(file) {
var fileSize = file.size / 1024 / 1024;
if (!(fileSize < maxSize)) {
message.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB),\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 Promise.reject();
}
return true;
},
action: "".concat(ENV.API_SERVER, "/api/attachments.json"),
// ?debug=student&randomcode=undefined&client_key=6d57f8c3dd186c5ada392546ace9620a
onChange: function onChange(info) {
var _info$file;
var fileList = _toConsumableArray(info.fileList);
fileList = fileList.map(function (file) {
if (file.name.indexOf(uploadNameSizeSeperator) === -1) {
file.name = "".concat(file.name).concat(uploadNameSizeSeperator).concat(bytesToSize(file.size));
}
return _objectSpread({}, file);
});
if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 || (_info$file = _info$file.response) === null || _info$file === void 0 ? void 0 : _info$file.status) === -1) {
var _info$file2;
message.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message);
_onChange([]);
return;
}
_onChange(fileList);
},
onRemove: function () {
var _onRemove = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
var fileSize, id, rs;
return _regeneratorRuntime().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
fileSize = file.size / 1024 / 1024;
if (!(file.status === 'uploading')) {
_context.next = 3;
break;
}
return _context.abrupt("return", true);
case 3:
if (fileSize < maxSize) {
_context.next = 7;
break;
}
return _context.abrupt("return", true);
case 7:
id = file.response ? file.response.id : file.uid;
if (!id) {
_context.next = 15;
break;
}
_context.next = 11;
return removeAttachment(file.response ? file.response.id : file.id);
case 11:
rs = _context.sent;
return _context.abrupt("return", rs);
case 15:
return _context.abrupt("return", true);
case 16:
case "end":
return _context.stop();
}
}, _callee);
}));
function onRemove(_x) {
return _onRemove.apply(this, arguments);
}
return onRemove;
}()
};
function onCancel(e) {
e.preventDefault();
e.stopPropagation();
}
return /*#__PURE__*/_jsx("div", {
className: "single-upload ".concat(className ? className : ''),
children: /*#__PURE__*/_jsxs(Upload, _objectSpread(_objectSpread({}, uploadProps), {}, {
children: [/*#__PURE__*/_jsx(Button, {
type: "primary",
title: value.length > 0 ? '每次只能上传一个资源, 删除下面资源可重新上传 ' : '',
disabled: value.length > 0,
ghost: true,
children: title
}), /*#__PURE__*/_jsxs("span", {
onClick: onCancel,
style: {
marginLeft: 10
},
children: ["(\u5355\u4E2A\u6587\u4EF6\u6700\u5927", maxSize, "M)", ' ']
})]
}))
});
});
// EXTERNAL MODULE: ./src/components/SingleUpload/index.tsx
var SingleUpload = __webpack_require__(95081);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/InboxOutlined.js + 1 modules
var InboxOutlined = __webpack_require__(93737);
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
@ -956,6 +828,8 @@ var SvgUploadImg = function SvgUploadImg(props) {
};
/* harmony default export */ var uploadImg = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=");
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/MultiUpload/index.tsx
@ -981,7 +855,7 @@ function coverToFileList(data) {
return {
uid: item.id,
id: item.id,
name: item.title + uploadNameSizeSeperator + item.filesize,
name: item.title + SingleUpload/* uploadNameSizeSeperator */.sX + item.filesize,
url: item.url,
filesize: item.filesize,
status: 'done',
@ -1054,7 +928,7 @@ function coverToFileList(data) {
if (fileList.concat(fileArr).length > number) {
fileList.pop();
setFileList(toConsumableArray_default()(fileList));
es_message/* default */.ZP.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(number, "\u4E2A\u6587\u4EF6"));
message/* default */.ZP.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(number, "\u4E2A\u6587\u4EF6"));
if (aloneClear) {
return Promise.reject();
}
@ -1062,7 +936,7 @@ function coverToFileList(data) {
return false;
}
if (!(fileSize < maxSize)) {
es_message/* default */.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB)."));
message/* default */.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB)."));
if (aloneClear) {
return Promise.reject();
}
@ -1083,7 +957,7 @@ function coverToFileList(data) {
}
if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 || (_info$file = _info$file.response) === null || _info$file === void 0 ? void 0 : _info$file.status) === -1) {
var _info$file2;
es_message/* default */.ZP.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message);
message/* default */.ZP.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message);
return;
}
if (fileList.length >= number) setDisabled(true);else setDisabled(false);
@ -1094,8 +968,8 @@ function coverToFileList(data) {
var _file$response2;
file.url = "/api/attachments/".concat(file === null || file === void 0 || (_file$response2 = file.response) === null || _file$response2 === void 0 ? void 0 : _file$response2.id);
}
if (file.name.indexOf(uploadNameSizeSeperator) === -1) {
file.name = "".concat(file.name).concat(uploadNameSizeSeperator).concat(bytesToSize(file.size));
if (file.name.indexOf(SingleUpload/* uploadNameSizeSeperator */.sX) === -1) {
file.name = "".concat(file.name).concat(SingleUpload/* uploadNameSizeSeperator */.sX).concat((0,SingleUpload/* bytesToSize */.RD)(file.size));
}
return objectSpread2_default()({}, file);
});
@ -1161,7 +1035,7 @@ function coverToFileList(data) {
return remove();
case 2:
res = _context2.sent;
es_message/* default */.ZP.success('删除成功');
message/* default */.ZP.success('删除成功');
resolve(true);
case 5:
case "end":
@ -1229,6 +1103,158 @@ function coverToFileList(data) {
/***/ }),
/***/ 95081:
/*!***********************************************!*\
!*** ./src/components/SingleUpload/index.tsx ***!
\***********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ RD: function() { return /* binding */ bytesToSize; },
/* harmony export */ sX: function() { return /* binding */ uploadNameSizeSeperator; }
/* harmony export */ });
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js */ 37205);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/utils/env */ 17985);
/* harmony import */ var _pages_MoopCases_FormPanel_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/pages/MoopCases/FormPanel/service */ 52989);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var uploadNameSizeSeperator = '  ';
function bytesToSize(bytes) {
var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
if (bytes == 0) return '0 Byte';
var i = parseInt('' + Math.floor(Math.log(bytes) / Math.log(1024)), 10);
return (bytes / Math.pow(1024, i)).toFixed(1) + ' ' + sizes[i];
}
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (function (_ref) {
var _ref$value = _ref.value,
value = _ref$value === void 0 ? [] : _ref$value,
action = _ref.action,
_onChange = _ref.onChange,
className = _ref.className,
_ref$maxSize = _ref.maxSize,
maxSize = _ref$maxSize === void 0 ? 150 : _ref$maxSize,
_ref$title = _ref.title,
title = _ref$title === void 0 ? '文件上传' : _ref$title,
_ref$accept = _ref.accept,
accept = _ref$accept === void 0 ? null : _ref$accept;
var uploadProps = {
multiple: false,
fileList: value,
accept: accept,
withCredentials: true,
beforeUpload: function beforeUpload(file) {
var fileSize = file.size / 1024 / 1024;
if (!(fileSize < maxSize)) {
message.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB),\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 Promise.reject();
}
return true;
},
action: "".concat(ENV.API_SERVER, "/api/attachments.json"),
// ?debug=student&randomcode=undefined&client_key=6d57f8c3dd186c5ada392546ace9620a
onChange: function onChange(info) {
var _info$file;
var fileList = _toConsumableArray(info.fileList);
fileList = fileList.map(function (file) {
if (file.name.indexOf(uploadNameSizeSeperator) === -1) {
file.name = "".concat(file.name).concat(uploadNameSizeSeperator).concat(bytesToSize(file.size));
}
return _objectSpread({}, file);
});
if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 || (_info$file = _info$file.response) === null || _info$file === void 0 ? void 0 : _info$file.status) === -1) {
var _info$file2;
message.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message);
_onChange([]);
return;
}
_onChange(fileList);
},
onRemove: function () {
var _onRemove = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
var fileSize, id, rs;
return _regeneratorRuntime().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
fileSize = file.size / 1024 / 1024;
if (!(file.status === 'uploading')) {
_context.next = 3;
break;
}
return _context.abrupt("return", true);
case 3:
if (fileSize < maxSize) {
_context.next = 7;
break;
}
return _context.abrupt("return", true);
case 7:
id = file.response ? file.response.id : file.uid;
if (!id) {
_context.next = 15;
break;
}
_context.next = 11;
return removeAttachment(file.response ? file.response.id : file.id);
case 11:
rs = _context.sent;
return _context.abrupt("return", rs);
case 15:
return _context.abrupt("return", true);
case 16:
case "end":
return _context.stop();
}
}, _callee);
}));
function onRemove(_x) {
return _onRemove.apply(this, arguments);
}
return onRemove;
}()
};
function onCancel(e) {
e.preventDefault();
e.stopPropagation();
}
return /*#__PURE__*/_jsx("div", {
className: "single-upload ".concat(className ? className : ''),
children: /*#__PURE__*/_jsxs(Upload, _objectSpread(_objectSpread({}, uploadProps), {}, {
children: [/*#__PURE__*/_jsx(Button, {
type: "primary",
title: value.length > 0 ? '每次只能上传一个资源, 删除下面资源可重新上传 ' : '',
disabled: value.length > 0,
ghost: true,
children: title
}), /*#__PURE__*/_jsxs("span", {
onClick: onCancel,
style: {
marginLeft: 10
},
children: ["(\u5355\u4E2A\u6587\u4EF6\u6700\u5927", maxSize, "M)", ' ']
})]
}))
});
});
/***/ }),
/***/ 52781:
/*!**********************************************!*\
!*** ./src/components/TooltipTags/index.tsx ***!
@ -1290,7 +1316,7 @@ var TooltipTags = function TooltipTags(_ref) {
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 98135);
/* harmony import */ var _service_shixunHomeworks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/service/shixunHomeworks */ 41027);
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! umi */ 12712);
/* harmony import */ var _components_MultiUpload__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/MultiUpload */ 80638);
/* harmony import */ var _components_MultiUpload__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/MultiUpload */ 99531);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
@ -2881,8 +2907,8 @@ var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/index.js
var _react_infinite_scroller_1_2_4_react_infinite_scroller = __webpack_require__(26724);
var _react_infinite_scroller_1_2_4_react_infinite_scroller_default = /*#__PURE__*/__webpack_require__.n(_react_infinite_scroller_1_2_4_react_infinite_scroller);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/typography/index.js + 18 modules
var typography = __webpack_require__(71796);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/typography/index.js + 16 modules
var typography = __webpack_require__(13261);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/index.js + 1 modules
var divider = __webpack_require__(28103);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules
@ -5081,7 +5107,7 @@ var CommonHomeworkContext = /*#__PURE__*/(0,_react_17_0_2_react.createContext)({
selectArrs: []
});
var ShixunsListPage = function ShixunsListPage(_ref) {
var _user$userInfo4, _detailCommonHomework;
var _user$userInfo4, _user$userInfo5, _detailCommonHomework;
var classroomList = _ref.classroomList,
loading = _ref.loading,
dispatch = _ref.dispatch,
@ -5241,13 +5267,15 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
// params.categoryId = paramsFromRouter.categoryId
}, [params.categoryId]);
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: 'classroomList/getAssistantPermissions',
payload: {
course_id: params.id
}
});
}, []);
if ((0,authority/* isAssistant */.Rm)()) {
dispatch({
type: 'classroomList/getAssistantPermissions',
payload: {
course_id: params.id
}
});
}
}, [user === null || user === void 0 || (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.login]);
/**
* 监听课程选中
@ -5655,11 +5683,11 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
getData();
},
onSort: function onSort(item) {
var _user$userInfo5;
var _user$userInfo6;
params.sort_by = item.type;
params.sort_direction = item.direction;
params.page = 1;
util/* localSort */.cX.setItem("".concat(user === null || user === void 0 || (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.login).concat((0,authority/* isAdmin */.GJ)() ? 'Teacher1' : 'Student1'), item, 'CommonHomework');
util/* localSort */.cX.setItem("".concat(user === null || user === void 0 || (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.login).concat((0,authority/* isAdmin */.GJ)() ? 'Teacher1' : 'Student1'), item, 'CommonHomework');
getData(params);
},
onBatch: function onBatch(status) {

@ -151,9 +151,10 @@ var jsx_runtime = __webpack_require__(37712);
dayjs_min_default().locale('zh-cn');
var ShixunsListPage = function ShixunsListPage(_ref) {
var _params$search, _params$search2, _params$search3, _courseGroupList$filt;
var _params$search, _params$search2, _params$search3, _courseGroupList$filt, _user$userInfo;
var classroomList = _ref.classroomList,
globalSetting = _ref.globalSetting,
user = _ref.user,
loading = _ref.loading,
dispatch = _ref.dispatch;
var _useState = (0,_react_17_0_2_react.useState)(objectSpread2_default()(objectSpread2_default()({}, (0,_umi_production_exports.useParams)()), {
@ -768,10 +769,70 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
title: '操作',
align: 'center',
dataIndex: 'name',
width: 140,
width: ((0,authority/* isCreator */.d8)() || (0,authority/* isTeacher */.IR)()) && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.professional_certification || (0,authority/* isSuperAdmins */.Ny)() ? 180 : 140,
render: function render(text, record) {
var _user$userInfo2, _user$userInfo3;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
children: [(((0,authority/* isCreator */.d8)() || (0,authority/* isTeacher */.IR)()) && ((_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.professional_certification) && ((_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.school_name) === (record === null || record === void 0 ? void 0 : record.school_name) || (0,authority/* isSuperAdmins */.Ny)()) && /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
style: {
color: '#165DFF'
},
onClick: function onClick() {
modal/* default */.Z.confirm({
centered: true,
width: 515,
icon: null,
okText: '确定',
cancelText: '取消',
title: "\u63D0\u793A",
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
marginBottom: '10px'
},
children: ["\u91CD\u7F6E\u5BC6\u7801\u540E\uFF0C\u521D\u59CB\u5BC6\u7801\u5C06\u8BBE\u7F6E\u4E3A\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#DF8323"
},
children: "12345678"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5E76\u4E14\u8BE5\u5B66\u751F\u5C06\u4F1A\u6536\u5230\u5BC6\u7801\u91CD\u7F6E\u7684\u6D88\u606F\u901A\u77E5\uFF0C\u8BF7\u63D0\u9192\u5B66\u751F\u5C3D\u5FEB\u4FEE\u6539\u5BC6\u7801!"
})]
}),
onOk: function () {
var _onOk6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11() {
var res;
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
_context11.next = 2;
return (0,fetch/* default */.ZP)("/api/courses/".concat(params.coursesId, "/reset_student_password.json"), {
method: 'post',
body: {
user_id: record.user_id
}
});
case 2:
res = _context11.sent;
if (res.status === 0) {
message/* default */.ZP.success('操作成功');
}
case 4:
case "end":
return _context11.stop();
}
}, _callee11);
}));
function onOk() {
return _onOk6.apply(this, arguments);
}
return onOk;
}()
});
},
children: "\u91CD\u7F6E\u5BC6\u7801"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
dropdownRender: function dropdownRender() {
var _courseGroupList$filt2;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(menu/* default */.Z, {
@ -829,7 +890,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "font14 current",
style: {
color: '#3061d0'
color: '#165DFF'
},
children: "\u79FB\u52A8\u5206\u73ED"
})
@ -837,7 +898,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
className: "current",
style: {
color: 'red',
marginLeft: 10
marginLeft: 20
},
onClick: function onClick() {
modal/* default */.Z.confirm({
@ -847,12 +908,12 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
title: "\u662F\u5426\u786E\u8BA4\u5220\u9664",
content: '是否确认将学生从课堂内删除?',
onOk: function () {
var _onOk6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11() {
var _onOk7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12() {
var res;
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
while (1) switch (_context12.prev = _context12.next) {
case 0:
_context11.next = 2;
_context12.next = 2;
return (0,teacher/* deleteCourseStudents */.l3)({
coursesId: params.coursesId,
students: [{
@ -860,7 +921,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
}]
});
case 2:
res = _context11.sent;
res = _context12.sent;
if (res.status === 0) {
message/* default */.ZP.success('删除成功');
params.page = 1;
@ -876,12 +937,12 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
}
case 4:
case "end":
return _context11.stop();
return _context12.stop();
}
}, _callee11);
}, _callee12);
}));
function onOk() {
return _onOk6.apply(this, arguments);
return _onOk7.apply(this, arguments);
}
return onOk;
}()
@ -1061,11 +1122,13 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
/* harmony default export */ var Detail = ((0,_umi_production_exports.connect)(function (_ref7) {
var classroomList = _ref7.classroomList,
loading = _ref7.loading,
globalSetting = _ref7.globalSetting;
globalSetting = _ref7.globalSetting,
user = _ref7.user;
return {
classroomList: classroomList,
globalSetting: globalSetting,
loading: loading
loading: loading,
user: user
};
})(ShixunsListPage));

@ -1313,7 +1313,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(space/* default */.Z, {
size: "middle",
children: [(0,authority/* isAdmin */.GJ)() && !(0,authority/* courseIsEnd */.aQ)() && /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
children: [(record === null || record === void 0 ? void 0 : record.manage_auth) && (0,authority/* isAdmin */.GJ)() && !(0,authority/* courseIsEnd */.aQ)() && (record === null || record === void 0 ? void 0 : record.id) != 0 && (record === null || record === void 0 ? void 0 : record.name) != '未分班' && /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
dispatch({
type: 'classroomList/setActionTabs',
@ -1373,7 +1373,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
},
children: "\u52A0\u5165\u5206\u73ED"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
}), (record === null || record === void 0 ? void 0 : record.manage_auth) && (detailCourseGroupsList.current_group_id == (record === null || record === void 0 ? void 0 : record.id) || (0,authority/* isAdmin */.GJ)()) && /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
return _umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/course_group/").concat(record === null || record === void 0 ? void 0 : record.id, "/detail"));
},

@ -641,9 +641,10 @@ var teacher = __webpack_require__(563);
dayjs_min_default().locale('zh-cn');
var ShixunsListPage = function ShixunsListPage(_ref) {
var _detailCoursStudentsL;
var _user$userInfo, _detailCoursStudentsL;
var classroomList = _ref.classroomList,
globalSetting = _ref.globalSetting,
user = _ref.user,
loading = _ref.loading,
dispatch = _ref.dispatch;
var _useState = (0,_react_17_0_2_react.useState)(objectSpread2_default()(objectSpread2_default()({}, (0,_umi_production_exports.useParams)()), {}, {
@ -1001,8 +1002,9 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
title: '操作',
align: 'center',
dataIndex: 'name',
width: 140,
width: (0,authority/* isCreator */.d8)() && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.professional_certification || (0,authority/* isSuperAdmins */.Ny)() ? 180 : 140,
render: function render(text, record) {
var _user$userInfo2, _user$userInfo3;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(DropdownSearch/* default */.Z, {
onClick: function onClick(id) {
@ -1016,6 +1018,63 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
},
children: "\u79FB\u52A8\u5206\u73ED"
})]
}), ((0,authority/* isCreator */.d8)() && ((_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.professional_certification) && ((_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.school_name) === (record === null || record === void 0 ? void 0 : record.school_name) || (0,authority/* isSuperAdmins */.Ny)()) && /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
className: "ml10",
onClick: function onClick() {
modal/* default */.Z.confirm({
centered: true,
icon: null,
width: 515,
okText: '确定',
cancelText: '取消',
title: "\u63D0\u793A",
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
marginBottom: '10px'
},
children: ["\u91CD\u7F6E\u5BC6\u7801\u540E\uFF0C\u521D\u59CB\u5BC6\u7801\u5C06\u8BBE\u7F6E\u4E3A\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#DF8323"
},
children: "12345678"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5E76\u4E14\u8BE5\u5B66\u751F\u5C06\u4F1A\u6536\u5230\u5BC6\u7801\u91CD\u7F6E\u7684\u6D88\u606F\u901A\u77E5\uFF0C\u8BF7\u63D0\u9192\u5B66\u751F\u5C3D\u5FEB\u4FEE\u6539\u5BC6\u7801!"
})]
}),
onOk: function () {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
var res;
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
_context6.next = 2;
return (0,fetch/* default */.ZP)("/api/courses/".concat(params.coursesId, "/reset_student_password.json"), {
method: 'post',
body: {
user_id: record.user_id
}
});
case 2:
res = _context6.sent;
if (res.status === 0) {
message/* default */.ZP.success('操作成功');
}
case 4:
case "end":
return _context6.stop();
}
}, _callee6);
}));
function onOk() {
return _onOk2.apply(this, arguments);
}
return onOk;
}()
});
},
children: "\u91CD\u7F6E\u5BC6\u7801"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "current",
style: {
@ -1030,12 +1089,12 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
title: "\u662F\u5426\u786E\u8BA4\u5220\u9664",
content: '是否确认将学生从课堂内删除?',
onOk: function () {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
var _onOk3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
var res;
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
_context6.next = 2;
_context7.next = 2;
return (0,teacher/* deleteCourseStudents */.l3)({
coursesId: params.coursesId,
students: [{
@ -1043,7 +1102,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
}]
});
case 2:
res = _context6.sent;
res = _context7.sent;
if (res.status === 0) {
message/* default */.ZP.success('删除成功');
setSelectArrs([]);
@ -1056,12 +1115,12 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
}
case 4:
case "end":
return _context6.stop();
return _context7.stop();
}
}, _callee6);
}, _callee7);
}));
function onOk() {
return _onOk2.apply(this, arguments);
return _onOk3.apply(this, arguments);
}
return onOk;
}()
@ -1221,11 +1280,13 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
/* harmony default export */ var NotList = ((0,_umi_production_exports.connect)(function (_ref6) {
var classroomList = _ref6.classroomList,
loading = _ref6.loading,
globalSetting = _ref6.globalSetting;
globalSetting = _ref6.globalSetting,
user = _ref6.user;
return {
classroomList: classroomList,
globalSetting: globalSetting,
loading: loading
loading: loading,
user: user
};
})(ShixunsListPage));

@ -1446,6 +1446,8 @@ var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./src/pages/tasks/util.js
var util = __webpack_require__(40720);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(33287);
;// CONCATENATED MODULE: ./src/components/markdown-editor/upload-image/index.tsx
@ -1455,6 +1457,7 @@ var util = __webpack_require__(40720);
var useForm = es_form/* default */.Z.useForm;
var style = {
width: 280,
@ -1570,6 +1573,10 @@ function uploadImage(file, callback) {
throw new String('没有文件');
return;
}
if (!(0,authority/* isLogin */.bg)()) {
message/* default */.ZP.warning("请登录后再操作");
throw new String("请登录后再操作");
}
var formData = new FormData();
formData.append('editormd-image-file', file);
formData.append('file_param_name', 'editormd-image-file');
@ -1942,7 +1949,10 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
instance.replaceSelection("[".concat(file.name, "](").concat(env/* default */.Z.API_SERVER, "/api/attachments/").concat(data.id, "?type=").concat(data.content_type, ")"));
}
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) document.location.href = '/user/login';
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
}
}
});
} catch (e) {
@ -2021,7 +2031,10 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
instance.replaceSelection("[".concat(file.name, "](").concat(env/* default */.Z.API_SERVER, "/api/attachments/").concat(data.id, "?type=").concat(data.content_type, ")"));
}
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) document.location.href = '/user/login';
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
}
}
});
};

@ -2413,14 +2413,11 @@ span.CodeMirror-selectedtext {
font-size: 14px;
display: flex;
align-items: center;
width: 944px;
}
.row___HJKId > div {
width: 190px;
}
.row___HJKId > div:last-child {
width: auto;
flex: 1 1;
}
.row___HJKId.row___HJKId:nth-child(even) {
background-color: #f5f5f5;
}
@ -4923,57 +4920,57 @@ ul.s-navs a.active {
flex-direction: column;
box-orient: block-axis;
}
.formDom___ahHwX {
[id="educoder"] .formDom___ahHwX {
margin-top: 30px;
margin-bottom: 20px;
padding-bottom: 40px;
}
.formDom___ahHwX strong {
[id="educoder"] .formDom___ahHwX strong {
font-weight: normal;
color: #333;
font-size: 16px;
}
.formDom___ahHwX label[class~='ant-radio-wrapper'],
.formDom___ahHwX label[class~='ant-checkbox-wrapper'] {
[id="educoder"] .formDom___ahHwX label[class~='ant-radio-wrapper'],
[id="educoder"] .formDom___ahHwX label[class~='ant-checkbox-wrapper'] {
font-size: 16px;
font-weight: 500;
color: #333333;
}
.formDom___ahHwX label[class~='ant-radio-wrapper'] span,
.formDom___ahHwX label[class~='ant-checkbox-wrapper'] span {
[id="educoder"] .formDom___ahHwX label[class~='ant-radio-wrapper'] span,
[id="educoder"] .formDom___ahHwX label[class~='ant-checkbox-wrapper'] span {
color: #333333;
}
.formDom___ahHwX div[class~='ant-form-item'] {
[id="educoder"] .formDom___ahHwX div[class~='ant-form-item'] {
margin-bottom: 28px;
}
.form___TDc55 {
[id="educoder"] .form___TDc55 {
margin-bottom: 20px;
padding-bottom: 40px;
}
.form___TDc55 strong {
[id="educoder"] .form___TDc55 strong {
font-weight: normal;
color: #333;
font-size: 16px;
}
.form___TDc55 h1 {
[id="educoder"] .form___TDc55 h1 {
font-weight: 600;
color: #333;
font-size: 16px;
}
.form___TDc55 label[class~='ant-radio-wrapper'],
.form___TDc55 label[class~='ant-checkbox-wrapper'] {
[id="educoder"] .form___TDc55 label[class~='ant-radio-wrapper'],
[id="educoder"] .form___TDc55 label[class~='ant-checkbox-wrapper'] {
font-size: 16px;
font-weight: 500;
color: #333333;
}
.form___TDc55 label[class~='ant-radio-wrapper'] span,
.form___TDc55 label[class~='ant-checkbox-wrapper'] span {
[id="educoder"] .form___TDc55 label[class~='ant-radio-wrapper'] span,
[id="educoder"] .form___TDc55 label[class~='ant-checkbox-wrapper'] span {
color: #333333;
}
.form___TDc55 [class~='ant-form-item'] {
[id="educoder"] .form___TDc55 [class~='ant-form-item'] {
margin-bottom: 0;
}
.buttonFixed___oKPiL {
[id="educoder"] .buttonFixed___oKPiL {
position: fixed;
z-index: 1000;
bottom: 0;
@ -4983,13 +4980,13 @@ ul.s-navs a.active {
background: #fff;
box-shadow: 0 -4px 4px 0 rgba(0, 0, 0, 0.05);
}
.buttonFixed___oKPiL .buttonWrap___LDtpG {
[id="educoder"] .buttonFixed___oKPiL .buttonWrap___LDtpG {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
.buttonFixed___oKPiL .buttonWrap___LDtpG .button___ydPRd {
[id="educoder"] .buttonFixed___oKPiL .buttonWrap___LDtpG .button___ydPRd {
width: 100px;
height: 38px !important;
line-height: 38px !important;
@ -4997,22 +4994,25 @@ ul.s-navs a.active {
padding: 0px;
font-size: 14px !important;
}
.buttonFixed___oKPiL div[class~='ant-form-item'] {
[id="educoder"] .buttonFixed___oKPiL div[class~='ant-form-item'] {
margin-bottom: 0px;
height: 100%;
}
.buttonFixed___oKPiL div[class~='ant-form-item-control-input'] {
[id="educoder"] .buttonFixed___oKPiL div[class~='ant-form-item-control-input'] {
height: 100%;
}
.scoreSettingWrapper___L7weV label[class~='ant-radio-wrapper'] span,
.scoreSettingWrapper___L7weV label[class~='ant-checkbox-wrapper'] span {
[id="educoder"] .scoreSettingWrapper___L7weV {
padding-bottom: 40px;
}
[id="educoder"] .scoreSettingWrapper___L7weV label[class~='ant-radio-wrapper'] span,
[id="educoder"] .scoreSettingWrapper___L7weV label[class~='ant-checkbox-wrapper'] span {
color: #333333;
}
.ipItem___nAf_u {
[id="educoder"] .ipItem___nAf_u {
font-size: 14px;
padding: 10px;
}
.ipItem___nAf_u i {
[id="educoder"] .ipItem___nAf_u i {
background: rgba(24, 144, 255, 0.1);
font-style: normal;
border-radius: 12px;
@ -5021,21 +5021,21 @@ ul.s-navs a.active {
line-height: 1;
display: inline-block;
}
.ipWrp___x3LTQ {
[id="educoder"] .ipWrp___x3LTQ {
padding: 20px;
background: #fafafa;
}
.tagWrap___PMN4b {
[id="educoder"] .tagWrap___PMN4b {
display: flex;
align-items: center;
justify-content: space-between;
margin-right: 10px;
}
.tagWrap___PMN4b > div {
[id="educoder"] .tagWrap___PMN4b > div {
display: flex;
flex-wrap: wrap;
}
.tagWrap___PMN4b .tag___Auf1J {
[id="educoder"] .tagWrap___PMN4b .tag___Auf1J {
height: 24px;
line-height: 24px;
font-size: 14px;
@ -5046,7 +5046,7 @@ ul.s-navs a.active {
border-radius: 2px;
display: inline-flex;
}
.tagWrap___PMN4b .tag___Auf1J b {
[id="educoder"] .tagWrap___PMN4b .tag___Auf1J b {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
@ -5054,59 +5054,59 @@ ul.s-navs a.active {
max-width: 70px;
font-weight: 400;
}
.tagWrap___PMN4b .tag___Auf1J span {
[id="educoder"] .tagWrap___PMN4b .tag___Auf1J span {
cursor: pointer;
color: #0152d9;
margin-left: 5px;
}
.tagWrap___PMN4b .tag___Auf1J span i {
[id="educoder"] .tagWrap___PMN4b .tag___Auf1J span i {
font-size: 12px;
display: inline-block;
transform: scale(0.6);
}
.padding___veqnd {
[id="educoder"] .padding___veqnd {
padding: 9px 8px !important;
}
.unlockKeyWrapper___UOERJ {
[id="educoder"] .unlockKeyWrapper___UOERJ {
margin-top: 15px;
padding-left: 24px;
}
.unlockKeyWrapper___UOERJ .unlockKeyInput___ItI9I {
[id="educoder"] .unlockKeyWrapper___UOERJ .unlockKeyInput___ItI9I {
width: 144px;
}
.mb40___eMjps {
[id="educoder"] .mb40___eMjps {
margin-bottom: 40px;
}
.mb28___ZxJPY {
[id="educoder"] .mb28___ZxJPY {
margin-bottom: 28px;
}
.mainRuleText___U5cJS {
[id="educoder"] .mainRuleText___U5cJS {
font-size: 16px;
font-weight: 400;
color: #333333;
}
.minorRuleText___aZezx {
[id="educoder"] .minorRuleText___aZezx {
font-size: 14px;
font-weight: 400;
color: #333333;
}
.contentInterval___slPV9 {
[id="educoder"] .contentInterval___slPV9 {
margin-left: 24px;
}
[id='root'] .numberInput____ONIt {
[id="educoder"] .numberInput____ONIt {
margin: 0 10px;
width: 276px;
height: 38px;
display: flex;
align-items: center;
}
.publishRuleIndex___s2cVA {
[id="educoder"] .publishRuleIndex___s2cVA {
font-size: 16px;
font-weight: 500;
color: #333333;
margin-bottom: 30px;
}
.publishRuleIndex___s2cVA::before {
[id="educoder"] .publishRuleIndex___s2cVA::before {
content: '';
display: inline-block;
width: 8px;
@ -5116,74 +5116,74 @@ ul.s-navs a.active {
margin-right: 10px;
margin-left: 4px;
}
.publishRuleContent___HohmS {
[id="educoder"] .publishRuleContent___HohmS {
margin-bottom: 40px;
padding-right: 40px;
}
.publishRuleContent___HohmS .groupSelector___Zxqsw {
[id="educoder"] .publishRuleContent___HohmS .groupSelector___Zxqsw {
margin-left: 10px;
margin-right: 40px;
width: 314px;
}
.publishRuleContent___HohmS .groupSelector___Zxqsw div[class~='ant-select-selector'] {
[id="educoder"] .publishRuleContent___HohmS .groupSelector___Zxqsw div[class~='ant-select-selector'] {
min-height: 38px;
}
.publishRuleContent___HohmS div[class~='ant-picker'] {
[id="educoder"] .publishRuleContent___HohmS div[class~='ant-picker'] {
margin-left: 10px;
height: 38px;
}
.publishRuleContent___HohmS .addAndDelete___saTVM {
[id="educoder"] .publishRuleContent___HohmS .addAndDelete___saTVM {
text-align: right;
font-size: 20px;
margin-left: 32px;
}
.publishRuleContent___HohmS .addAndDelete___saTVM .deleteIcon___vnkck {
[id="educoder"] .publishRuleContent___HohmS .addAndDelete___saTVM .deleteIcon___vnkck {
color: #E30000;
}
.publishRuleContent___HohmS .addAndDelete___saTVM .addIcon___Yz7Ef {
[id="educoder"] .publishRuleContent___HohmS .addAndDelete___saTVM .addIcon___Yz7Ef {
color: #3061D0;
margin-left: 14px;
}
.cancelBtn___p8Klw {
[id="educoder"] .cancelBtn___p8Klw {
width: 60px;
height: 32px;
background: #F8F9FC;
border-radius: 2px;
}
.submitBtn___pmm2G {
[id="educoder"] .submitBtn___pmm2G {
width: 88px;
height: 32px;
background: #3061D0;
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 2px;
}
.remindForm___K6X21 {
[id="educoder"] .remindForm___K6X21 {
padding: 20px 0 20px 20px;
background: #F8F9FA;
margin-bottom: 40px;
}
.remindForm___K6X21 .remindItem___Z7rRb {
[id="educoder"] .remindForm___K6X21 .remindItem___Z7rRb {
padding-right: 40px;
margin-bottom: 16px;
color: #4C4C4C;
font-size: 14px;
}
.remindForm___K6X21 .remindItem___Z7rRb .remindInput___r_wq3 {
[id="educoder"] .remindForm___K6X21 .remindItem___Z7rRb .remindInput___r_wq3 {
display: flex;
align-items: center;
font-size: 14px;
}
.remindForm___K6X21 .remindItem___Z7rRb .remindInput___r_wq3 input[class~='ant-input-number-input'] {
[id="educoder"] .remindForm___K6X21 .remindItem___Z7rRb .remindInput___r_wq3 input[class~='ant-input-number-input'] {
height: 38px;
}
.remindForm___K6X21 .remindItem___Z7rRb .remindInput___r_wq3 input[class~='ant-input'] {
[id="educoder"] .remindForm___K6X21 .remindItem___Z7rRb .remindInput___r_wq3 input[class~='ant-input'] {
height: 30px;
}
.remindForm___K6X21 .addRemind___jbnIp {
[id="educoder"] .remindForm___K6X21 .addRemind___jbnIp {
cursor: pointer;
color: #165DFF;
}
.remindForm___K6X21 .addRemind___jbnIp.disabled___ebijK {
[id="educoder"] .remindForm___K6X21 .addRemind___jbnIp.disabled___ebijK {
color: rgba(0, 0, 0, 0.25);
cursor: not-allowed;
}

@ -119,6 +119,8 @@ var exercise = __webpack_require__(44239);
var AsyncButton = __webpack_require__(5929);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(26795);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(17985);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Notice/index.tsx
@ -134,6 +136,7 @@ var jsx_runtime = __webpack_require__(37712);
var DescriptionItem = function DescriptionItem(_ref) {
var title = _ref.title,
content = _ref.content;
@ -417,7 +420,7 @@ var Notice = function Notice(_ref2) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.linkText,
onClick: function onClick() {
return (0,util/* openNewWindow */.xg)('https://www.educoder.net/forums/4460');
return (0,util/* openNewWindow */.xg)("".concat(env/* default */.Z.API_SERVER, "/pdf/\u6D4F\u89C8\u5668\u65E0\u6CD5\u81EA\u52A8\u5168\u5C4F\u53C2\u8003\u624B\u518C.pdf"));
},
children: "\u6D4F\u89C8\u5668\u65E0\u6CD5\u81EA\u52A8\u5168\u5C4F\uFF1F"
})]

@ -15,15 +15,15 @@ __webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ ReviewGroup; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
@ -166,7 +166,7 @@ var _excluded = ["exercise", "globalSetting", "loading", "user", "dispatch"];
var questionType = ['单选题', '多选题', '判断题', '填空题', '简答题', '实训题'];
var ExeriseReview = function ExeriseReview(_ref) {
var _userInfo$course, _reviewGroupExercise$, _reviewGroupExercise$2, _reviewGroupExercise$3, _reviewGroupExercise$4, _reviewGroupExercise$5, _reviewGroupExercise$6, _reviewGroupExercise$7, _reviewGroupExercise$8, _reviewGroupExercise$9, _reviewGroupExercise$10, _reviewGroupExercise$11, _reviewGroupExercise$12, _reviewGroupExercise$13, _reviewGroupExercise$14, _reviewGroupExercise$15, _reviewGroupExercise$16;
var _user$userInfo3, _userInfo$course, _reviewGroupExercise$, _reviewGroupExercise$2, _reviewGroupExercise$3, _reviewGroupExercise$4, _reviewGroupExercise$5, _reviewGroupExercise$6, _reviewGroupExercise$7, _reviewGroupExercise$8, _reviewGroupExercise$9, _reviewGroupExercise$10, _reviewGroupExercise$11, _reviewGroupExercise$12, _reviewGroupExercise$13, _reviewGroupExercise$14, _reviewGroupExercise$15, _reviewGroupExercise$16;
var exercise = _ref.exercise,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
@ -174,7 +174,6 @@ var ExeriseReview = function ExeriseReview(_ref) {
dispatch = _ref.dispatch,
props = objectWithoutProperties_default()(_ref, _excluded);
var params = (0,_umi_production_exports.useParams)();
var location = (0,_umi_production_exports.useLocation)();
var userInfo = user.userInfo;
var reviewGroupExercise = exercise.reviewGroupExercise;
var _useState = (0,_react_17_0_2_react.useState)({}),
@ -185,66 +184,53 @@ var ExeriseReview = function ExeriseReview(_ref) {
_useState4 = slicedToArray_default()(_useState3, 2),
showAll = _useState4[0],
setShowAll = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(),
_useState6 = slicedToArray_default()(_useState5, 2),
nextUser = _useState6[0],
setNextUser = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(),
_useState8 = slicedToArray_default()(_useState7, 2),
totalUser = _useState8[0],
setTotalUser = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(''),
_useState10 = slicedToArray_default()(_useState9, 2),
comment = _useState10[0],
setcomment = _useState10[1];
var inputRef = (0,_react_17_0_2_react.useRef)();
console.log(changeScoreData);
(0,_react_17_0_2_react.useEffect)(function () {
try {
setTotalUser(JSON.parse(localStorage.total_exercise_users));
} catch (e) {}
var dealData = function dealData() {
var _user$userInfo;
console.log(params, 222);
var data = localStorage["".concat(user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login, "-").concat(params.coursesId, "-").concat(params.exerciseId, "-filter")];
if (data) {
data = JSON.parse(data);
} else {
data = {};
}
if (Object.prototype.toString.call(data) !== '[object Object]') {
return {};
}
;
}, [params.userId]);
return data;
};
(0,_react_17_0_2_react.useEffect)(function () {
if (totalUser) {
console.log("totalUser:", totalUser, JSON.parse(localStorage.total_exercise_users));
totalUser.map(function (item, key) {
if (item.user_login === params.userId) {
setNextUser(totalUser[key + 1]);
}
});
var _user$userInfo2;
if (user !== null && user !== void 0 && (_user$userInfo2 = user.userInfo) !== null && _user$userInfo2 !== void 0 && _user$userInfo2.login) {
getData();
}
}, [totalUser]);
}, [user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.login]);
var getData = function getData() {
var data = dealData();
dispatch({
type: "exercise/getReviewGroupExercise",
payload: {
exerciseId: params.exerciseId,
user_ids: totalUser.map(function (item) {
return String(item.user_id);
})
}
payload: objectSpread2_default()({
exerciseId: params.exerciseId
}, data)
});
};
var saveChangeScore = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(item) {
var res;
var data, res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
console.log("totalUser", totalUser);
data = dealData();
_context.next = 3;
return (0,service_exercise/* putBatchAdjustScore */.LP)({
return (0,service_exercise/* putBatchAdjustScore */.LP)(objectSpread2_default()({
cover_all: true,
id: item.question_id,
max_score: changeScoreData[item.q_position]["max"],
min_score: changeScoreData[item.q_position]["min"],
user_ids: totalUser.map(function (item) {
return item.user_id;
}),
comment: changeScoreData["comment"]
});
}, data));
case 3:
res = _context.sent;
if (res.status === 0) {

@ -2476,7 +2476,6 @@ var jsx_runtime = __webpack_require__(37712);
var TextArea = input/* default */.Z.TextArea;
var BFill = function BFill(_ref) {
var _datas$records, _item$submit_records;
@ -2680,8 +2679,15 @@ var BFill = function BFill(_ref) {
color: (item === null || item === void 0 || (_item$standard_answer = item.standard_answer) === null || _item$standard_answer === void 0 || (_item$standard_answer = _item$standard_answer[index]) === null || _item$standard_answer === void 0 || (_item$standard_answer = _item$standard_answer.answer_text) === null || _item$standard_answer === void 0 ? void 0 : _item$standard_answer[0]) == (answer === null || answer === void 0 ? void 0 : answer.answer_text) ? "#37AD83" : "#E30000"
},
children: answer === null || answer === void 0 ? void 0 : answer.answer_text
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: answer === null || answer === void 0 ? void 0 : answer.answer_text
}) :
/*#__PURE__*/
// <RenderHtml value={answer?.answer_text} />
(0,jsx_runtime.jsx)("div", {
style: {
whiteSpace: 'pre-wrap',
lineHeight: '25px'
},
children: answer === null || answer === void 0 ? void 0 : answer.answer_text
})
})]
});
@ -3879,6 +3885,7 @@ var ui_customization = __webpack_require__(16116);
var Drawer = function Drawer(_ref) {
var _location$pathname;
var visible = _ref.visible,
@ -3917,18 +3924,25 @@ var Drawer = function Drawer(_ref) {
setLoading = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
realSealedReview = _useState10[0],
setRealSealedReview = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)(0),
fetchLoading = _useState10[0],
setFetchLoading = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)(false),
_useState12 = slicedToArray_default()(_useState11, 2),
total = _useState12[0],
setTotal = _useState12[1];
realSealedReview = _useState12[0],
setRealSealedReview = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)(0),
_useState14 = slicedToArray_default()(_useState13, 2),
total = _useState14[0],
setTotal = _useState14[1];
var canLoadData = (0,_react_17_0_2_react.useRef)(true);
(0,_react_17_0_2_react.useEffect)(function () {
var record = params;
if (visible) {
if (!isCentralizeReview) {
params.user_ids = data;
record = objectSpread2_default()(objectSpread2_default()({}, data), params);
}
getData(params);
setParams(objectSpread2_default()({}, record));
getData(record);
}
}, [visible]);
(0,_react_17_0_2_react.useEffect)(function () {
@ -3967,10 +3981,9 @@ var Drawer = function Drawer(_ref) {
case 5:
res = _context.sent;
setTableData((res === null || res === void 0 ? void 0 : res.review_list) || []);
setClassData((res === null || res === void 0 ? void 0 : res.course_groups) || []);
setTotal((res === null || res === void 0 ? void 0 : res.count) || 0);
setLoading(false);
case 10:
case 9:
case "end":
return _context.stop();
}
@ -3980,24 +3993,62 @@ var Drawer = function Drawer(_ref) {
return _ref2.apply(this, arguments);
};
}();
var getClassData = /*#__PURE__*/function () {
var _ref3 = 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:
if (canLoadData.current) {
_context2.next = 2;
break;
}
return _context2.abrupt("return");
case 2:
setFetchLoading(true);
_context2.next = 5;
return (0,fetch/* default */.ZP)("/api/courses/".concat(urlParams.coursesId, "/course_groups.json"), {
method: 'get',
params: {
limit: 20000,
page: 1
}
});
case 5:
res = _context2.sent;
if (res !== null && res !== void 0 && res.course_groups) {
setClassData((res === null || res === void 0 ? void 0 : res.course_groups) || []);
canLoadData.current = false;
}
setFetchLoading(false);
case 8:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function getClassData() {
return _ref3.apply(this, arguments);
};
}();
var skip = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(v) {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(v) {
var _location$pathname2;
var str;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
str = location !== null && location !== void 0 && (_location$pathname2 = location.pathname) !== null && _location$pathname2 !== void 0 && _location$pathname2.includes('/centralizeReview') ? 'centralizeReview' : 'review';
_umi_production_exports.history.replace("/classrooms/".concat(urlParams.coursesId, "/exercise/").concat(urlParams.exerciseId, "/").concat(str, "/").concat(v.login));
onChange(v);
case 3:
case "end":
return _context2.stop();
return _context3.stop();
}
}, _callee2);
}, _callee3);
}));
return function skip(_x2) {
return _ref3.apply(this, arguments);
return _ref4.apply(this, arguments);
};
}();
var handleChange = function handleChange(current) {
@ -4026,11 +4077,19 @@ var Drawer = function Drawer(_ref) {
width: 170
},
showSearch: false,
showArrow: true,
onDropdownVisibleChange: getClassData,
getPopupContainer: function getPopupContainer(trigger) {
return trigger.parentNode;
},
onChange: handlePoint,
onChange: handlePoint
// loading={fetchLoading}
,
dropdownRender: function dropdownRender(n) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
spinning: fetchLoading,
children: n
});
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: 'all',
children: "\u5168\u90E8\u73ED\u7EA7"
@ -4121,7 +4180,7 @@ var Drawer = function Drawer(_ref) {
children: e.student_id
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
title: e.course_group,
children: e.course_group
children: (0,util/* cutName */.Pq)(e.course_group, 11)
}), e !== null && e !== void 0 && e.reviewed ? /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
style: {
color: '#0152d9'
@ -4157,6 +4216,7 @@ var Drawer = function Drawer(_ref) {
pageSize: params === null || params === void 0 ? void 0 : params.limit,
current: params === null || params === void 0 ? void 0 : params.page,
showSizeChanger: true,
size: "small",
onShowSizeChange: handleShowSizeChange,
onChange: handleChange,
showQuickJumper: true,
@ -4214,6 +4274,8 @@ var _excluded = ["exercise", "globalSetting", "loading", "user", "dispatch", "is
var StudentEaxmPaper_TextArea = input/* default */.Z.TextArea;
var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
var exercise = _ref.exercise,
@ -4259,6 +4321,13 @@ var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
newuserCommentVisible = _useState14[0],
setnewUserCommentVisible = _useState14[1]; //导出所有学生试卷时只需求最新的
var questionType = {
'0': "单选题",
'1': "多选题",
'2': "判断题",
'3': "填空题",
'4': "简答题"
};
(0,_react_17_0_2_react.useEffect)(function () {
if (userInfo !== null && userInfo !== void 0 && userInfo.login) {
getData();
@ -4298,7 +4367,9 @@ var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
if (item.question_type === 7) {
item.items.forEach(function (i) {
i.sub_exercise_questions.forEach(function (k) {
k.question_choices = (0,util/* randomArray */.M2)(k.question_choices, random_id);
if (k.question_choices) {
k.question_choices = (0,util/* randomArray */.M2)(k.question_choices, random_id);
}
});
});
}
@ -4333,12 +4404,9 @@ var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
break;
}
_context.next = 4;
return dispatch({
type: "exercise/getReviewExercise",
payload: {
exerciseId: params.exerciseId,
login: params.userId
}
return (0,service_exercise/* postReviewExercise */.pu)({
exerciseId: params.exerciseId,
login: params.userId
});
case 4:
res = _context.sent;
@ -4464,10 +4532,11 @@ var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
return _ref3.apply(this, arguments);
};
}();
var renderQuestion = function renderQuestion(item, i) {
var _item$question_choice, _item$question_choice2, _item$question_choice3, _changeScoreData$item, _item$user_answer4, _item$user_answer_lig, _item$user_answer5, _item$sub_exercise_qu, _item$standard_answer, _item$standard_answer2, _item$standard_answer3, _item$standard_answer4;
var renderQuestion = function renderQuestion(item, i, isIncombination) {
var _item$question_choice, _item$question_choice2, _item$question_choice3, _changeScoreData$item, _item$user_answer4, _item$user_answer_lig, _item$user_answer5, _item$sub_exercise_qu, _item$user_answer6, _item$user_answer7, _item$standard_answer, _item$standard_answer2, _item$standard_answer3, _item$standard_answer4;
// isIncombination为true表示是组合题中的小题
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [!isIncombination && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex'
},
@ -4479,7 +4548,7 @@ var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
className: "font18",
children: [i, "."]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: item.question_title
value: (item === null || item === void 0 ? void 0 : item.question_type) === 8 ? item === null || item === void 0 ? void 0 : item.description : item.question_title
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
flexShrink: 0
@ -4487,6 +4556,10 @@ var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
className: "font16",
children: ["\uFF08", (item === null || item === void 0 ? void 0 : item.question_type) === 7 ? "\u5171".concat(item === null || item === void 0 ? void 0 : item.sub_q_count, "\u5C0F\u9898") : '', " ", item.question_score, "\u5206\uFF09"]
})]
}), (item === null || item === void 0 ? void 0 : item.question_type) === 8 && /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
showProgramFill: true,
disabledFill: true,
value: base64.Base64.decode((item === null || item === void 0 ? void 0 : item.code) || '')
}),
// 单选题
item.question_type === utils_enum/* QuestionType */.c.Single && ((_item$question_choice = item.question_choices) === null || _item$question_choice === void 0 ? void 0 : _item$question_choice.map(function (val, key) {
@ -4598,7 +4671,6 @@ var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
answerData: exportData,
autoHeight: autoHeight
}), item.question_type === utils_enum/* QuestionType */.c.Combine && ((_item$sub_exercise_qu = item.sub_exercise_questions) === null || _item$sub_exercise_qu === void 0 ? void 0 : _item$sub_exercise_qu.map(function (val, key) {
var _val$question_choices, _val$standard_answer;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
marginLeft: 10
@ -4607,48 +4679,39 @@ var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
style: {
fontSize: '16px'
},
children: [i, ".", key + 1, "\uFF08\u5355\u9009\u9898\uFF09", val === null || val === void 0 ? void 0 : val.question_title, "\uFF08", val === null || val === void 0 ? void 0 : val.question_score, "\u5206\uFF09"]
}), (_val$question_choices = val.question_choices) === null || _val$question_choices === void 0 ? void 0 : _val$question_choices.map(function (vals, keys) {
var _val$user_answer;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "25px",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: 25,
overflow: "hidden"
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
checked: (_val$user_answer = val.user_answer) === null || _val$user_answer === void 0 ? void 0 : _val$user_answer.includes(vals.choice_id),
style: {
width: 25
}
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "1",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: vals.choice_text || ""
})
})]
}, keys);
}), (val === null || val === void 0 ? void 0 : val.standard_answer_show) && isshowanswer && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "font16 ",
children: ["\u6B63\u786E\u7B54\u6848\uFF1A", val === null || val === void 0 ? void 0 : val.standard_answer_show]
}), ((val === null || val === void 0 ? void 0 : val.standard_answer_show) || (val === null || val === void 0 || (_val$standard_answer = val.standard_answer) === null || _val$standard_answer === void 0 ? void 0 : _val$standard_answer.length) > 0) && isshowanswer && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
style: {
marginTop: 14
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "font16 ",
children: "\u89E3\u6790\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
className: Exportmodules/* default */.Z.renderHtml,
value: (val === null || val === void 0 ? void 0 : val.analysis) || '暂无解析'
})]
})]
children: [i, ".", key + 1, "\uFF08", questionType["".concat(val === null || val === void 0 ? void 0 : val.question_type)], "\uFF09", val === null || val === void 0 ? void 0 : val.question_title, "\uFF08", val === null || val === void 0 ? void 0 : val.question_score, "\u5206\uFF09"]
}), renderQuestion(val, key, true)]
});
})), isshowanswer && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
})), item.question_type === 8 && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt5",
style: {
padding: "10px 17px",
background: "#FAFAFA"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "font14 c-light-primary mb5",
children: "\u5B66\u751F\u7B54\u9898"
}), (item === null || item === void 0 || (_item$user_answer6 = item.user_answer) === null || _item$user_answer6 === void 0 ? void 0 : _item$user_answer6.length) > 0 && (item === null || item === void 0 || (_item$user_answer7 = item.user_answer) === null || _item$user_answer7 === void 0 ? void 0 : _item$user_answer7.map(function (v) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
lineHeight: '25px'
},
children: ["\u7B54\u6848(\u586B\u7A7A", v === null || v === void 0 ? void 0 : v.choice_id, ")\uFF1A"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("pre", {
style: {
whiteSpace: 'pre-wrap'
},
children: v === null || v === void 0 ? void 0 : v.answer_text
})]
});
}))]
})
}), isshowanswer && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
marginTop: 10
},
@ -4696,7 +4759,7 @@ var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
value: (item === null || item === void 0 ? void 0 : item.analysis) || '暂无解析'
})]
})]
}), userScoreVisible && !Number.isNaN(parseFloat(item === null || item === void 0 ? void 0 : item.user_score)) && (item === null || item === void 0 ? void 0 : item.question_type) !== utils_enum/* QuestionType */.c.Shixun && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
}), userScoreVisible && !Number.isNaN(parseFloat(item === null || item === void 0 ? void 0 : item.user_score)) && (item === null || item === void 0 ? void 0 : item.question_type) !== utils_enum/* QuestionType */.c.Shixun && (item === null || item === void 0 ? void 0 : item.question_type) !== utils_enum/* QuestionType */.c.Combine && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#0152d9'
@ -4706,7 +4769,7 @@ var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
}), (item === null || item === void 0 ? void 0 : item.answer_comments) && userCommentVisible && /*#__PURE__*/(0,jsx_runtime.jsx)(AnswerComments/* default */.Z, {
newuserCommentVisible: newuserCommentVisible,
list: item === null || item === void 0 ? void 0 : item.answer_comments
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {
}), !isIncombination && /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {
style: isExportBlank.current ? {
marginTop: 30
} : {}
@ -4868,7 +4931,7 @@ var utils_export = __webpack_require__(96738);
var ExeriseReview = function ExeriseReview(_ref) {
var _location$pathname, _questionName$find, _questionName$find2, _questionName$find3, _questionName$find4, _questionName$find5, _questionName$find6, _questionName$find7, _questionName$find8, _questionName$find9, _reviewExercise$table, _reviewExercise$table2, _reviewExercise$table3, _reviewExercise$table4, _reviewExercise$table5, _reviewExercise$table6, _reviewExercise$table7, _reviewExercise$table8, _reviewExercise$table9, _reviewExercise$table10, _reviewExercise$table11, _reviewExercise$table12, _reviewExercise$table13, _reviewExercise$table14, _reviewExercise$table15, _reviewExercise$table16, _reviewExercise$table17, _reviewExercise$table18, _reviewExercise$table19, _reviewExercise$table20, _reviewExercise$exerc2, _userInfo$course, _reviewExercise$exerc8, _reviewExercise$exerc9, _reviewExercise$exerc10, _reviewExercise$exerc11, _reviewExercise$exerc12, _reviewExercise$exerc13, _reviewExercise$exerc14, _reviewExercise$exerc15, _reviewExercise$exerc16, _reviewExercise$exerc17, _reviewExercise$exerc18, _reviewExercise$exerc19, _reviewExercise$revie8, _reviewExercise$exerc22, _reviewExercise$exerc23, _reviewExercise$exerc24, _reviewExercise$exerc25, _reviewExercise$exerc26, _reviewExercise$exerc27, _reviewExercise$exerc28, _reviewExercise$exerc29, _reviewExercise$revie9, _reviewExercise$exerc30, _reviewExercise$exerc31, _reviewExercise$exerc32, _reviewExercise$exerc33, _reviewExercise$exerc34, _reviewExercise$exerc35, _reviewExercise$exerc36, _reviewExercise$exerc37, _reviewExercise$exerc38, _reviewExercise$exerc39, _reviewExercise$exerc40, _reviewExercise$exerc41, _reviewExercise$exerc42, _reviewExercise$exerc43, _reviewExercise$exerc44, _reviewExercise$exerc45, _reviewExercise$revie10, _reviewExercise$revie11, _reviewExercise$revie12, _reviewExercise$revie13, _reviewExercise$revie14, _reviewExercise$exerc46, _reviewExercise$revie15, _reviewExercise$revie16, _reviewExercise$exerc47, _reviewExercise$exerc48, _reviewExercise$exerc49, _reviewExercise$exerc50, _reviewExercise$exerc51, _reviewExercise$exerc52, _reviewExercise$exerc53, _reviewExercise$exerc54, _reviewExercise$exerc55, _reviewExercise$exerc56, _reviewExercise$exerc57, _reviewExercise$exerc58, _reviewExercise$exerc59, _reviewExercise$exerc60, _reviewExercise$exerc61, _reviewExercise$exerc62, _reviewExercise$exerc63, _reviewExercise$exerc64, _reviewExercise$exerc65, _reviewExercise$exerc66, _reviewExercise$table21;
var _location$pathname, _questionName$find, _questionName$find2, _questionName$find3, _questionName$find4, _questionName$find5, _questionName$find6, _questionName$find7, _questionName$find8, _questionName$find9, _reviewExercise$table, _reviewExercise$table2, _reviewExercise$table3, _reviewExercise$table4, _reviewExercise$table5, _reviewExercise$table6, _reviewExercise$table7, _reviewExercise$table8, _reviewExercise$table9, _reviewExercise$table10, _reviewExercise$table11, _reviewExercise$table12, _reviewExercise$table13, _reviewExercise$table14, _reviewExercise$table15, _reviewExercise$table16, _reviewExercise$table17, _reviewExercise$table18, _reviewExercise$table19, _reviewExercise$table20, _reviewExercise$exerc2, _userInfo$course, _reviewExercise$exerc8, _reviewExercise$exerc9, _reviewExercise$exerc10, _reviewExercise$exerc11, _reviewExercise$exerc12, _reviewExercise$exerc13, _reviewExercise$exerc14, _reviewExercise$exerc15, _reviewExercise$exerc16, _reviewExercise$exerc17, _reviewExercise$exerc18, _reviewExercise$exerc19, _reviewExercise$revie10, _reviewExercise$exerc22, _reviewExercise$exerc23, _reviewExercise$exerc24, _reviewExercise$exerc25, _reviewExercise$exerc26, _reviewExercise$exerc27, _reviewExercise$exerc28, _reviewExercise$exerc29, _reviewExercise$revie11, _reviewExercise$exerc30, _reviewExercise$exerc31, _reviewExercise$exerc32, _reviewExercise$exerc33, _reviewExercise$exerc34, _reviewExercise$exerc35, _reviewExercise$exerc36, _reviewExercise$exerc37, _reviewExercise$exerc38, _reviewExercise$exerc39, _reviewExercise$exerc40, _reviewExercise$exerc41, _reviewExercise$exerc42, _reviewExercise$exerc43, _reviewExercise$exerc44, _reviewExercise$exerc45, _reviewExercise$revie12, _reviewExercise$revie13, _reviewExercise$revie14, _reviewExercise$revie15, _reviewExercise$revie16, _reviewExercise$revie17, _reviewExercise$revie18, _reviewExercise$exerc46, _reviewExercise$revie19, _reviewExercise$revie20, _reviewExercise$exerc47, _reviewExercise$exerc48, _reviewExercise$exerc49, _reviewExercise$exerc50, _reviewExercise$exerc51, _reviewExercise$exerc52, _reviewExercise$exerc53, _reviewExercise$exerc54, _reviewExercise$exerc55, _reviewExercise$exerc56, _reviewExercise$exerc57, _reviewExercise$exerc58, _reviewExercise$exerc59, _reviewExercise$exerc60, _reviewExercise$exerc61, _reviewExercise$exerc62, _reviewExercise$exerc63, _reviewExercise$exerc64, _reviewExercise$exerc65, _reviewExercise$exerc66, _reviewExercise$table21;
var classroomList = _ref.classroomList,
exercise = _ref.exercise,
globalSetting = _ref.globalSetting,
@ -4938,21 +5001,14 @@ var ExeriseReview = function ExeriseReview(_ref) {
_useState26 = slicedToArray_default()(_useState25, 2),
onlyAnalysis = _useState26[0],
setOnlyAnalysis = _useState26[1];
var _useState27 = (0,_react_17_0_2_react.useState)({
prev_login: true,
next_login: true
}),
var _useState27 = (0,_react_17_0_2_react.useState)(""),
_useState28 = slicedToArray_default()(_useState27, 2),
userReviewList = _useState28[0],
setUserReviewList = _useState28[1];
var _useState29 = (0,_react_17_0_2_react.useState)(""),
exportType = _useState28[0],
setExportType = _useState28[1];
var _useState29 = (0,_react_17_0_2_react.useState)([]),
_useState30 = slicedToArray_default()(_useState29, 2),
exportType = _useState30[0],
setExportType = _useState30[1];
var _useState31 = (0,_react_17_0_2_react.useState)([]),
_useState32 = slicedToArray_default()(_useState31, 2),
questionName = _useState32[0],
setQuestionName = _useState32[1];
questionName = _useState30[0],
setQuestionName = _useState30[1];
var columns = [{
title: "题型",
dataIndex: 'type_name',
@ -5070,7 +5126,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
}))();
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
if ((0,authority/* isStudent */.dE)()) dispatch({
type: "classroomList/getAssistantPermissions",
payload: {
course_id: params.coursesId
@ -5233,21 +5289,17 @@ var ExeriseReview = function ExeriseReview(_ref) {
};
var dealData = function dealData() {
var _user$userInfo;
var data = localStorage["".concat(user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login, "-").concat(params.coursesId, "-").concat(params.exerciseId, "-review")] || '';
data = data ? JSON.parse(data) : [];
var user_ids = [];
var next_user_id = null;
data.forEach(function (e, i) {
user_ids.push(e.user_id);
if (e.user_login === params.userId) {
var _data;
next_user_id = (_data = data) === null || _data === void 0 || (_data = _data[i + 1]) === null || _data === void 0 ? void 0 : _data.user_id;
}
});
return {
user_ids: user_ids,
next_user_id: next_user_id
};
var data = localStorage["".concat(user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login, "-").concat(params.coursesId, "-").concat(params.exerciseId, "-filter")];
if (data) {
data = JSON.parse(data);
} else {
data = {};
}
if (Object.prototype.toString.call(data) !== '[object Object]') {
return {};
}
;
return data;
};
var scrollQuestionsId = function scrollQuestionsId(data) {
var array1 = (data === null || data === void 0 ? void 0 : data.filter(function (item) {
@ -5284,8 +5336,6 @@ var ExeriseReview = function ExeriseReview(_ref) {
payload,
data,
res,
sendData,
result,
anchorName,
_res$review_progress,
_args5 = arguments;
@ -5299,8 +5349,8 @@ var ExeriseReview = function ExeriseReview(_ref) {
};
if (!isCentralizeReview) {
data = dealData();
payload.user_ids = data.user_ids;
saveData.current = data.user_ids || [];
payload = objectSpread2_default()(objectSpread2_default()({}, data), payload);
saveData.current = data;
}
_context5.next = 5;
return dispatch({
@ -5309,32 +5359,9 @@ var ExeriseReview = function ExeriseReview(_ref) {
});
case 5:
res = _context5.sent;
sendData = {
limit: 100,
name: "",
page: 1,
review_type: isCentralizeReview ? "appraise" : "normal",
login: params.userId
};
if (!isCentralizeReview) {
sendData["user_ids"] = saveData.current;
}
if (isScore) {
_context5.next = 13;
break;
}
_context5.next = 11;
return (0,fetch/* default */.ZP)("/api/exercises/".concat(params.exerciseId, "/user_review_list.json"), {
method: 'post',
body: sendData
});
case 11:
result = _context5.sent;
setUserReviewList(result);
case 13:
_context5.next = 15;
_context5.next = 8;
return handleCheckInitModal(res);
case 15:
case 8:
if (needToLocate.current) {
anchorName = scrollQuestionsId(res === null || res === void 0 ? void 0 : res.exercise_question_types);
setTimeout(function () {
@ -5351,7 +5378,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
} else {
setReviewType(1);
}
case 18:
case 11:
case "end":
return _context5.stop();
}
@ -5555,7 +5582,16 @@ var ExeriseReview = function ExeriseReview(_ref) {
};
}();
var renderQuestion = function renderQuestion(item, i) {
var _item$question_choice, _item$question_choice2, _item$question_choice3, _changeScoreData$item, _changeScoreData$item2, _reviewExercise$revie3, _changeScoreData$item3, _item$sub_exercise_qu, _item$question_choice4, _item$user_answer2, _item$user_score, _item$user_score2, _item$question_score, _item$question_score2;
var _item$question_choice, _item$question_choice2, _item$question_choice3, _changeScoreData$item, _changeScoreData$item2, _reviewExercise$revie3, _changeScoreData$item3, _item$sub_exercise_qu, _item$question_choice4, _item$user_answer3, _item$user_score, _item$user_score2, _item$question_score, _item$question_score2;
var lastScoreDetail = [];
if ((item === null || item === void 0 ? void 0 : item.question_type) === 8) {
var _item$user_answer;
item === null || item === void 0 || (_item$user_answer = item.user_answer) === null || _item$user_answer === void 0 || _item$user_answer.map(function (item) {
lastScoreDetail.push({
value: item === null || item === void 0 ? void 0 : item.answer_text
});
});
}
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: "mb20",
@ -5607,6 +5643,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
}), (item === null || item === void 0 ? void 0 : item.question_type) === 8 && /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
showProgramFill: true,
disabledFill: true,
programFillValue: lastScoreDetail,
value: base64.Base64.decode((item === null || item === void 0 ? void 0 : item.code) || '')
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [
@ -5759,11 +5796,11 @@ var ExeriseReview = function ExeriseReview(_ref) {
children: ["\u5B66\u751F\u7B54\u6848\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "c-blue",
children: [(_item$question_choice4 = item.question_choices) === null || _item$question_choice4 === void 0 || (_item$question_choice4 = _item$question_choice4.filter(function (i) {
var _item$user_answer;
return (_item$user_answer = item.user_answer) === null || _item$user_answer === void 0 ? void 0 : _item$user_answer.includes(i.choice_id);
var _item$user_answer2;
return (_item$user_answer2 = item.user_answer) === null || _item$user_answer2 === void 0 ? void 0 : _item$user_answer2.includes(i.choice_id);
})) === null || _item$question_choice4 === void 0 ? void 0 : _item$question_choice4.map(function (i, key) {
return item.question_type === 2 ? util/* JudgeSort */.Qq[i.choice_position - 1] : util/* ZimuSort */.oV[i.choice_position - 1];
}), ((_item$user_answer2 = item.user_answer) === null || _item$user_answer2 === void 0 ? void 0 : _item$user_answer2.length) <= 0 && '未答']
}), ((_item$user_answer3 = item.user_answer) === null || _item$user_answer3 === void 0 ? void 0 : _item$user_answer3.length) <= 0 && '未答']
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), item.standard_answer_show && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr5",
@ -5998,12 +6035,13 @@ var ExeriseReview = function ExeriseReview(_ref) {
}();
var handleNextExamPaper = /*#__PURE__*/function () {
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8(type) {
var _reviewExercise$revie8, _reviewExercise$revie9;
var str, Login;
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
str = isCentralizeReview ? 'centralizeReview' : 'review';
Login = type == "next" ? userReviewList === null || userReviewList === void 0 ? void 0 : userReviewList.next_login : userReviewList === null || userReviewList === void 0 ? void 0 : userReviewList.prev_login;
Login = type == "next" ? reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie8 = reviewExercise.review_progress) === null || _reviewExercise$revie8 === void 0 ? void 0 : _reviewExercise$revie8.next_login : reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie9 = reviewExercise.review_progress) === null || _reviewExercise$revie9 === void 0 ? void 0 : _reviewExercise$revie9.prev_login;
if (Login) _umi_production_exports.history.replace("/classrooms/".concat(params.coursesId, "/exercise/").concat(params.exerciseId, "/").concat(str, "/").concat(Login));else getData();
case 3:
case "end":
@ -6187,7 +6225,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
className: Reviewmodules/* default */.Z.leftBar,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(affix/* default */.Z, {
offsetTop: 0,
children: [!(reviewExercise !== null && reviewExercise !== void 0 && (_reviewExercise$revie8 = reviewExercise.review_progress) !== null && _reviewExercise$revie8 !== void 0 && _reviewExercise$revie8.sealed_review) && /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
children: [!(reviewExercise !== null && reviewExercise !== void 0 && (_reviewExercise$revie10 = reviewExercise.review_progress) !== null && _reviewExercise$revie10 !== void 0 && _reviewExercise$revie10.sealed_review) && /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "".concat(Reviewmodules/* default */.Z.bg, " ").concat(Reviewmodules/* default */.Z.userInfo),
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
@ -6261,7 +6299,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
children: "\u8BD5\u9898"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "".concat(Reviewmodules/* default */.Z.greyBg, " ").concat(Reviewmodules/* default */.Z.listType, " mt10"),
children: reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie9 = reviewExercise.review_progress) === null || _reviewExercise$revie9 === void 0 || (_reviewExercise$revie9 = _reviewExercise$revie9.appraise_question) === null || _reviewExercise$revie9 === void 0 ? void 0 : _reviewExercise$revie9.map(function (e) {
children: reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie11 = reviewExercise.review_progress) === null || _reviewExercise$revie11 === void 0 || (_reviewExercise$revie11 = _reviewExercise$revie11.appraise_question) === null || _reviewExercise$revie11 === void 0 ? void 0 : _reviewExercise$revie11.map(function (e) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [e.name, "\uFF1B"]
});
@ -6542,19 +6580,19 @@ var ExeriseReview = function ExeriseReview(_ref) {
style: {
color: "#3061D0"
},
children: "".concat((reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie10 = reviewExercise.review_progress) === null || _reviewExercise$revie10 === void 0 || (_reviewExercise$revie10 = _reviewExercise$revie10.progress) === null || _reviewExercise$revie10 === void 0 ? void 0 : _reviewExercise$revie10.completed_count) || 0, "/").concat((reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie11 = reviewExercise.review_progress) === null || _reviewExercise$revie11 === void 0 || (_reviewExercise$revie11 = _reviewExercise$revie11.progress) === null || _reviewExercise$revie11 === void 0 ? void 0 : _reviewExercise$revie11.total) || 0)
children: "".concat((reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie12 = reviewExercise.review_progress) === null || _reviewExercise$revie12 === void 0 || (_reviewExercise$revie12 = _reviewExercise$revie12.progress) === null || _reviewExercise$revie12 === void 0 ? void 0 : _reviewExercise$revie12.completed_count) || 0, "/").concat((reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie13 = reviewExercise.review_progress) === null || _reviewExercise$revie13 === void 0 || (_reviewExercise$revie13 = _reviewExercise$revie13.progress) === null || _reviewExercise$revie13 === void 0 ? void 0 : _reviewExercise$revie13.total) || 0)
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_progress/* default */.Z, {
trailColor: "#EBEDF3",
strokeColor: "#3061D0",
percent: (reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie12 = reviewExercise.review_progress) === null || _reviewExercise$revie12 === void 0 || (_reviewExercise$revie12 = _reviewExercise$revie12.progress) === null || _reviewExercise$revie12 === void 0 ? void 0 : _reviewExercise$revie12.completed_count) / (reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie13 = reviewExercise.review_progress) === null || _reviewExercise$revie13 === void 0 || (_reviewExercise$revie13 = _reviewExercise$revie13.progress) === null || _reviewExercise$revie13 === void 0 ? void 0 : _reviewExercise$revie13.total) * 100,
percent: (reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie14 = reviewExercise.review_progress) === null || _reviewExercise$revie14 === void 0 || (_reviewExercise$revie14 = _reviewExercise$revie14.progress) === null || _reviewExercise$revie14 === void 0 ? void 0 : _reviewExercise$revie14.completed_count) / (reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie15 = reviewExercise.review_progress) === null || _reviewExercise$revie15 === void 0 || (_reviewExercise$revie15 = _reviewExercise$revie15.progress) === null || _reviewExercise$revie15 === void 0 ? void 0 : _reviewExercise$revie15.total) * 100,
showInfo: false
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
children: [(reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie14 = reviewExercise.review_progress) === null || _reviewExercise$revie14 === void 0 || (_reviewExercise$revie14 = _reviewExercise$revie14.progress) === null || _reviewExercise$revie14 === void 0 ? void 0 : _reviewExercise$revie14.total) != 1 && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [userReviewList.prev_login && /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
children: [(reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie16 = reviewExercise.review_progress) === null || _reviewExercise$revie16 === void 0 || (_reviewExercise$revie16 = _reviewExercise$revie16.progress) === null || _reviewExercise$revie16 === void 0 ? void 0 : _reviewExercise$revie16.total) != 1 && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [(reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie17 = reviewExercise.review_progress) === null || _reviewExercise$revie17 === void 0 ? void 0 : _reviewExercise$revie17.prev_login) && /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
style: {
lineHeight: "30px"
},
@ -6571,7 +6609,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
}, _callee10);
})),
children: "\u4E0A\u4E00\u4EBA"
}), userReviewList.next_login && /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
}), (reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie18 = reviewExercise.review_progress) === null || _reviewExercise$revie18 === void 0 ? void 0 : _reviewExercise$revie18.next_login) && /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
style: {
marginLeft: "14px",
lineHeight: "30px"
@ -6613,7 +6651,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
},
onChange: function onChange(v) {},
data: saveData.current,
sealedReview: reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie15 = reviewExercise.review_progress) === null || _reviewExercise$revie15 === void 0 ? void 0 : _reviewExercise$revie15.sealed_review
sealedReview: reviewExercise === null || reviewExercise === void 0 || (_reviewExercise$revie19 = reviewExercise.review_progress) === null || _reviewExercise$revie19 === void 0 ? void 0 : _reviewExercise$revie19.sealed_review
}), /*#__PURE__*/(0,jsx_runtime.jsx)(image_preview/* default */.Z, {})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ExportSetting/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_modal/* default */.Z, {
title: '导出试卷选择',
@ -6777,7 +6815,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Reviewmodules/* default */.Z.userInfoModel,
children: [!(reviewExercise !== null && reviewExercise !== void 0 && (_reviewExercise$revie16 = reviewExercise.review_progress) !== null && _reviewExercise$revie16 !== void 0 && _reviewExercise$revie16.sealed_review) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [!(reviewExercise !== null && reviewExercise !== void 0 && (_reviewExercise$revie20 = reviewExercise.review_progress) !== null && _reviewExercise$revie20 !== void 0 && _reviewExercise$revie20.sealed_review) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: Reviewmodules/* default */.Z.width,
wrap: false,

@ -1959,7 +1959,7 @@ var List = function List(_ref) {
backgroundColor: '#FC2D6B'
},
className: "tag-style mr10",
children: "\u5DF2\u7ED3\u675F"
children: "\u5DF2\u622A\u6B62"
});
}
if (v !== null && v !== void 0 && v.includes('未开始')) {
@ -1980,13 +1980,19 @@ var List = function List(_ref) {
children: "\u8003\u8BD5\u4E2D"
});
}
if (v !== null && v !== void 0 && v.includes('已结束')) {
if (v !== null && v !== void 0 && v.includes('已截止')) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
backgroundColor: '#FC2D6B'
},
className: "tag-style mr10",
children: "\u5DF2\u7ED3\u675F"
children: "\u5DF2\u622A\u6B62"
});
}
if (v !== null && v !== void 0 && v.includes('导入')) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "export mr10",
children: "\u5BFC\u5165"
});
}
};
@ -2577,7 +2583,7 @@ var Exercise_excluded = ["user", "classroomList", "globalSetting", "loading", "d
var ShixunsListPage = function ShixunsListPage(_ref) {
var _user$userInfo4, _detailExerciseList$e, _detailExerciseList$e2, _detailExerciseList$e3, _detailExerciseList$e4, _detailExerciseList$e5, _detailExerciseList$e9, _detailExerciseList$e10, _detailLeftMenus$cour, _detailExerciseList$e12;
var _user$userInfo4, _user$userInfo5, _detailExerciseList$e, _detailExerciseList$e2, _detailExerciseList$e3, _detailExerciseList$e4, _detailExerciseList$e5, _detailExerciseList$e9, _detailExerciseList$e10, _detailLeftMenus$cour, _detailExerciseList$e12;
var user = _ref.user,
classroomList = _ref.classroomList,
globalSetting = _ref.globalSetting,
@ -2711,12 +2717,6 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
}
}, [searchParams.get("tabs")]);
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: "classroomList/getAssistantPermissions",
payload: {
course_id: params.coursesId
}
});
if (sessionStorage.getItem("illegalEntry")) {
sessionStorage.removeItem("illegalEntry");
es_modal/* default */.Z.info({
@ -2748,6 +2748,16 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
});
}
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
if ((0,authority/* isAssistant */.Rm)()) {
dispatch({
type: "classroomList/getAssistantPermissions",
payload: {
course_id: params.coursesId
}
});
}
}, [user === null || user === void 0 || (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.login]);
var Menus = [{
name: '全部',
id: 'all',
@ -2824,8 +2834,8 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
params.sort_by = item.type;
params.sort_direction = item.direction;
if ((0,authority/* isAdmin */.GJ)()) {
var _user$userInfo5;
util/* localSort */.cX.setItem("".concat(user === null || user === void 0 || (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.login, "Teacher"), item, 'Exercise');
var _user$userInfo6;
util/* localSort */.cX.setItem("".concat(user === null || user === void 0 || (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.login, "Teacher"), item, 'Exercise');
}
params.page = 1;
dispatch({

@ -56,8 +56,8 @@ var es_button = __webpack_require__(3113);
/* harmony default export */ var Addmodules = ({"flex_box_center":"flex_box_center___xV7b6","flex_space_between":"flex_space_between___VKhsb","flex_box_vertical_center":"flex_box_vertical_center___ZeNry","flex_box_center_end":"flex_box_center_end___j462S","flex_box_column":"flex_box_column___zDUss","bg":"bg___I9Ce6","title":"title___N0IDa","titleLeft":"titleLeft___v14y3","titleRight":"titleRight___QkPDR","btns":"btns___QGvIi"});
// EXTERNAL MODULE: ./src/service/graduation.ts
var service_graduation = __webpack_require__(98726);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(80638);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
var MultiUpload = __webpack_require__(99531);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Graduation/Tasks/Add/index.tsx

@ -56,8 +56,8 @@ var es_button = __webpack_require__(3113);
/* harmony default export */ var Editmodules = ({"flex_box_center":"flex_box_center___kxbNF","flex_space_between":"flex_space_between___Te3v3","flex_box_vertical_center":"flex_box_vertical_center___JIb6j","flex_box_center_end":"flex_box_center_end___cEF2a","flex_box_column":"flex_box_column___IiBIg","bg":"bg___FvwS3","title":"title___Tcifz","titleLeft":"titleLeft___E3nrq","titleRight":"titleRight___UwoN7","btns":"btns___Yd_8X"});
// EXTERNAL MODULE: ./src/service/graduation.ts
var service_graduation = __webpack_require__(98726);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(80638);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
var MultiUpload = __webpack_require__(99531);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Graduation/Tasks/Edit/index.tsx

@ -58,8 +58,8 @@ var service_shixunHomeworks = __webpack_require__(41027);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/GroupHomework/Add/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Addmodules = ({"bg":"bg___wrwMu","flexRow":"flexRow___tXDGx","flexJustifyCenter":"flexJustifyCenter___FJrBL","flexAlignEnd":"flexAlignEnd___Y_tEj","flexAlignCenter":"flexAlignCenter___KQIWk","flexColumn":"flexColumn___bt5NB","formWrap":"formWrap___zb3yW","titleWrap":"titleWrap___Tqypo","fieldWrap":"fieldWrap___LZQ8o","mdWrap":"mdWrap___oYoPg","backgroundFa":"backgroundFa___ilebm","button":"button___JhLyG"});
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(80638);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
var MultiUpload = __webpack_require__(99531);
// EXTERNAL MODULE: ./src/components/AddPoints/index.tsx + 2 modules
var AddPoints = __webpack_require__(45563);
// EXTERNAL MODULE: ./src/utils/fetch.ts

@ -720,6 +720,8 @@ var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./src/pages/tasks/util.js
var util = __webpack_require__(40720);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(33287);
;// CONCATENATED MODULE: ./src/components/markdown-editor/upload-image/index.tsx
@ -729,6 +731,7 @@ var util = __webpack_require__(40720);
var useForm = es_form/* default */.Z.useForm;
var style = {
width: 280,
@ -844,6 +847,10 @@ function uploadImage(file, callback) {
throw new String('没有文件');
return;
}
if (!(0,authority/* isLogin */.bg)()) {
message/* default */.ZP.warning("请登录后再操作");
throw new String("请登录后再操作");
}
var formData = new FormData();
formData.append('editormd-image-file', file);
formData.append('file_param_name', 'editormd-image-file');
@ -1216,7 +1223,10 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
instance.replaceSelection("[".concat(file.name, "](").concat(env/* default */.Z.API_SERVER, "/api/attachments/").concat(data.id, "?type=").concat(data.content_type, ")"));
}
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) document.location.href = '/user/login';
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
}
}
});
} catch (e) {
@ -1295,7 +1305,10 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
instance.replaceSelection("[".concat(file.name, "](").concat(env/* default */.Z.API_SERVER, "/api/attachments/").concat(data.id, "?type=").concat(data.content_type, ")"));
}
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) document.location.href = '/user/login';
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
}
}
});
};
@ -8049,7 +8062,7 @@ var ExportZip = __webpack_require__(59315);
var Detail_ShixunsListPage = function ShixunsListPage(_ref) {
var _workList$category, _workList$category2;
var _user$userInfo, _workList$category, _workList$category2;
var shixunHomeworks = _ref.shixunHomeworks,
classroomList = _ref.classroomList,
user = _ref.user,
@ -8086,13 +8099,15 @@ var Detail_ShixunsListPage = function ShixunsListPage(_ref) {
getData();
}, [params.coursesId]);
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: 'classroomList/getAssistantPermissions',
payload: {
course_id: params.coursesId
}
});
}, [(0,authority/* isLogin */.bg)()]);
if ((0,authority/* isAssistant */.Rm)()) {
dispatch({
type: 'classroomList/getAssistantPermissions',
payload: {
course_id: params.coursesId
}
});
}
}, [user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login]);
/**
* 获取数据
@ -8472,7 +8487,7 @@ var Detail_ShixunsListPage = function ShixunsListPage(_ref) {
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 98135);
/* harmony import */ var _service_shixunHomeworks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/service/shixunHomeworks */ 41027);
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! umi */ 12712);
/* harmony import */ var _components_MultiUpload__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/MultiUpload */ 80638);
/* harmony import */ var _components_MultiUpload__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/MultiUpload */ 99531);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ 37712);

@ -138,8 +138,8 @@ var service_shixunHomeworks = __webpack_require__(41027);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/GroupHomework/EditWork/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var EditWorkmodules = ({"flex_box_center":"flex_box_center___Oai0Y","flex_space_between":"flex_space_between___fZFK_","flex_box_vertical_center":"flex_box_vertical_center___RWV5x","flex_box_center_end":"flex_box_center_end___ajHAV","flex_box_column":"flex_box_column___jI14a","bg":"bg___cSxNp","flexRow":"flexRow___bc5Oj","flexJustifyCenter":"flexJustifyCenter___Nx05M","flexAlignEnd":"flexAlignEnd___DhuDB","flexAlignCenter":"flexAlignCenter___nIPvg","flexColumn":"flexColumn___KpeLE","formWrap":"formWrap___ORs91","titleWrap":"titleWrap___J_NOF","fieldWrap":"fieldWrap___G9hW5","mdWrap":"mdWrap___TuZ7q","backgroundFa":"backgroundFa___QRzbN","button":"button___S5k_z","Onerow":"Onerow___Pi45X","searchMember":"searchMember___oWEni","searchMemberHeader":"searchMemberHeader___K11IN"});
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(80638);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
var MultiUpload = __webpack_require__(99531);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/GroupHomework/EditWork/index.tsx

@ -56,8 +56,8 @@ var service_shixunHomeworks = __webpack_require__(41027);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/GroupHomework/Edit/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Editmodules = ({"bg":"bg___znu26","flexRow":"flexRow___wGnqf","flexJustifyCenter":"flexJustifyCenter____vugD","flexAlignEnd":"flexAlignEnd___gq4z7","flexAlignCenter":"flexAlignCenter___xzbBs","flexColumn":"flexColumn___F71iN","formWrap":"formWrap___THE6p","titleWrap":"titleWrap___TPgV7","fieldWrap":"fieldWrap___vVJhC","mdWrap":"mdWrap___Wjo_5","backgroundFa":"backgroundFa___KSlqe","button":"button___HFajm"});
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(80638);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
var MultiUpload = __webpack_require__(99531);
// EXTERNAL MODULE: ./src/components/AddPoints/index.tsx + 2 modules
var AddPoints = __webpack_require__(45563);
// EXTERNAL MODULE: ./src/utils/fetch.ts

@ -837,8 +837,8 @@ var DelShixun = function DelShixun(_ref) {
shixunHomeworks: shixunHomeworks
};
})(DelShixun));
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(80638);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
var MultiUpload = __webpack_require__(99531);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/GroupHomework/Review/components/AfterAppendix.tsx

@ -138,8 +138,8 @@ var service_shixunHomeworks = __webpack_require__(41027);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/GroupHomework/SubmitWork/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var SubmitWorkmodules = ({"flex_box_center":"flex_box_center___zhDlQ","flex_space_between":"flex_space_between___G3Pry","flex_box_vertical_center":"flex_box_vertical_center___IidBt","flex_box_center_end":"flex_box_center_end___jySR4","flex_box_column":"flex_box_column___AzFAn","bg":"bg___wt09q","flexRow":"flexRow___D5fvl","flexJustifyCenter":"flexJustifyCenter___wXpVq","flexAlignEnd":"flexAlignEnd___L6jeu","flexAlignCenter":"flexAlignCenter___aGyHJ","flexColumn":"flexColumn____MXLR","formWrap":"formWrap___zUO3M","titleWrap":"titleWrap___WjWMI","fieldWrap":"fieldWrap___jarda","mdWrap":"mdWrap___Ig5ru","backgroundFa":"backgroundFa___kIq8U","button":"button___RImGP","Onerow":"Onerow___yUQfa","searchMember":"searchMember___ty7AP","searchMemberHeader":"searchMemberHeader___NA8eK"});
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(80638);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
var MultiUpload = __webpack_require__(99531);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/GroupHomework/SubmitWork/index.tsx

@ -1281,7 +1281,7 @@ var TabMenu = function TabMenu(_ref) {
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 98135);
/* harmony import */ var _service_shixunHomeworks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/service/shixunHomeworks */ 41027);
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! umi */ 12712);
/* harmony import */ var _components_MultiUpload__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/MultiUpload */ 80638);
/* harmony import */ var _components_MultiUpload__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/MultiUpload */ 99531);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
@ -3971,7 +3971,7 @@ var GroupHomeworkContext = /*#__PURE__*/(0,_react_17_0_2_react.createContext)({
selectArrs: []
});
var ShixunsListPage = function ShixunsListPage(_ref) {
var _user$userInfo4, _detailCommonHomework;
var _user$userInfo, _user$userInfo5, _detailCommonHomework;
var user = _ref.user,
classroomList = _ref.classroomList,
loading = _ref.loading,
@ -4081,19 +4081,21 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
// }
// }, [params]);
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: 'classroomList/getAssistantPermissions',
payload: {
course_id: params.id
}
});
}, []);
if ((0,authority/* isAssistant */.Rm)()) {
dispatch({
type: 'classroomList/getAssistantPermissions',
payload: {
course_id: params.id
}
});
}
}, [user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login]);
(0,_react_17_0_2_react.useEffect)(function () {
var _user$userInfo, _user$userInfo3;
var _user$userInfo2, _user$userInfo4;
var tabs = searchParams.get("tabs");
if (user !== null && user !== void 0 && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.login) {
var _user$userInfo2;
var localRecordValue = util/* localSort */.cX.getItem("".concat(user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login).concat((0,authority/* isAdmin */.GJ)() ? 'Teacher' : 'Student'), 'GroupHomework');
if (user !== null && user !== void 0 && (_user$userInfo2 = user.userInfo) !== null && _user$userInfo2 !== void 0 && _user$userInfo2.login) {
var _user$userInfo3;
var localRecordValue = util/* localSort */.cX.getItem("".concat(user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.login).concat((0,authority/* isAdmin */.GJ)() ? 'Teacher' : 'Student'), 'GroupHomework');
if (localRecordValue) {
params.sort_by = localRecordValue === null || localRecordValue === void 0 ? void 0 : localRecordValue.type;
params.sort_direction = localRecordValue === null || localRecordValue === void 0 ? void 0 : localRecordValue.direction;
@ -4111,7 +4113,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
}
}
getData(data);
} else if (user !== null && user !== void 0 && (_user$userInfo3 = user.userInfo) !== null && _user$userInfo3 !== void 0 && _user$userInfo3.username) {
} else if (user !== null && user !== void 0 && (_user$userInfo4 = user.userInfo) !== null && _user$userInfo4 !== void 0 && _user$userInfo4.username) {
var _data = paramsFromRouter.categoryId === undefined ? {} : {
categoryId: paramsFromRouter.categoryId,
category: paramsFromRouter.categoryId
@ -4125,7 +4127,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
}
getData(_data);
}
}, [user === null || user === void 0 || (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.login, location === null || location === void 0 ? void 0 : location.pathname]);
}, [user === null || user === void 0 || (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.login, location === null || location === void 0 ? void 0 : location.pathname]);
(0,_react_17_0_2_react.useEffect)(function () {
if (classroomList.actionTabs.key === '目录重命名成功') {
getData();
@ -4518,11 +4520,11 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
getData();
},
onSort: function onSort(item) {
var _user$userInfo5;
var _user$userInfo6;
params.sort_by = item.type;
params.sort_direction = item.direction;
params.page = 1;
util/* localSort */.cX.setItem("".concat(user === null || user === void 0 || (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.login).concat((0,authority/* isAdmin */.GJ)() ? 'Teacher' : 'Student'), item, 'GroupHomework');
util/* localSort */.cX.setItem("".concat(user === null || user === void 0 || (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.login).concat((0,authority/* isAdmin */.GJ)() ? 'Teacher' : 'Student'), item, 'GroupHomework');
getData(params);
},
onBatch: function onBatch(status) {

@ -751,8 +751,8 @@ var Head = function Head(_ref) {
var exercise = __webpack_require__(44239);
// EXTERNAL MODULE: ./src/pages/Video/Detail/components/AddVideoModal/index.tsx + 1 modules
var AddVideoModal = __webpack_require__(8910);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(80638);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 2 modules
var MultiUpload = __webpack_require__(99531);
// EXTERNAL MODULE: ./src/pages/Paths/Detail/components/Sort/index.tsx + 1 modules
var Sort = __webpack_require__(33622);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules

@ -978,7 +978,7 @@ var html2pdf_default = /*#__PURE__*/__webpack_require__.n(html2pdf);
var Comment_excluded = ["shixunHomeworks", "globalSetting", "loading", "classroomList", "dispatch"];
var Comment_excluded = ["shixunHomeworks", "globalSetting", "loading", "classroomList", "dispatch", "user"];
@ -998,12 +998,13 @@ var Comment_excluded = ["shixunHomeworks", "globalSetting", "loading", "classroo
var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
var _shixunWorkReport$cat, _shixunWorkReport$cat2, _shixunWorkReport$cat3, _shixunWorkReport$cat4, _shixunWorkReport$cat5, _shixunWorkReport$dat, _shixunWorkReport$cat6, _shixunWorkReport$dat2, _shixunWorkReport$dat3, _shixunWorkReport$dat4, _shixunWorkReport$dat5, _shixunWorkReport$dat6, _shixunWorkReport$dat7, _shixunWorkReport$dat8, _shixunWorkReport$dat9, _shixunWorkReport$dat10, _shixunWorkReport$dat11, _shixunWorkReport$dat12, _shixunWorkReport$dat13, _shixunWorkReport$dat14, _shixunWorkReport$dat15, _shixunWorkReport$dat16, _shixunWorkReport$dat17, _shixunWorkReport$dat18, _shixunWorkReport$dat19, _shixunWorkReport$dat21, _shixunWorkReport$dat22, _shixunWorkReport$dat23, _shixunWorkReport$dat24, _shixunWorkReport$dat25, _shixunWorkReport$dat26;
var _user$userInfo, _shixunWorkReport$cat, _shixunWorkReport$cat2, _shixunWorkReport$cat3, _shixunWorkReport$cat4, _shixunWorkReport$cat5, _shixunWorkReport$dat, _shixunWorkReport$cat6, _shixunWorkReport$dat2, _shixunWorkReport$dat3, _shixunWorkReport$dat4, _shixunWorkReport$dat5, _shixunWorkReport$dat6, _shixunWorkReport$dat7, _shixunWorkReport$dat8, _shixunWorkReport$dat9, _shixunWorkReport$dat10, _shixunWorkReport$dat11, _shixunWorkReport$dat12, _shixunWorkReport$dat13, _shixunWorkReport$dat14, _shixunWorkReport$dat15, _shixunWorkReport$dat16, _shixunWorkReport$dat17, _shixunWorkReport$dat18, _shixunWorkReport$dat19, _shixunWorkReport$dat21, _shixunWorkReport$dat22, _shixunWorkReport$dat23, _shixunWorkReport$dat24, _shixunWorkReport$dat25, _shixunWorkReport$dat26;
var shixunHomeworks = _ref.shixunHomeworks,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
classroomList = _ref.classroomList,
dispatch = _ref.dispatch,
user = _ref.user,
props = objectWithoutProperties_default()(_ref, Comment_excluded);
var _useState = (0,_react_17_0_2_react.useState)(objectSpread2_default()({}, (0,_umi_production_exports.useParams)())),
_useState2 = slicedToArray_default()(_useState, 2),
@ -1062,12 +1063,6 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
type: 'globalSetting/footerToggle',
payload: false
});
dispatch({
type: 'classroomList/getAssistantPermissions',
payload: {
course_id: params.coursesId
}
});
return function () {
dispatch({
type: 'globalSetting/footerToggle',
@ -1075,6 +1070,16 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
});
};
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
if ((0,authority/* isAssistant */.Rm)()) {
dispatch({
type: 'classroomList/getAssistantPermissions',
payload: {
course_id: params.coursesId
}
});
}
}, [user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login]);
(0,_react_17_0_2_react.useEffect)(function () {
if (shixunHomeworks.actionTabs.key === '导出实训报告' && allStudentWorks.length > 0) {
exportReport('all');
@ -2106,12 +2111,14 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
var shixunHomeworks = _ref9.shixunHomeworks,
loading = _ref9.loading,
globalSetting = _ref9.globalSetting,
classroomList = _ref9.classroomList;
classroomList = _ref9.classroomList,
user = _ref9.user;
return {
shixunHomeworks: shixunHomeworks,
globalSetting: globalSetting,
loading: loading.effects,
classroomList: classroomList
classroomList: classroomList,
user: user
};
})(Comment_ShixunsListPage));

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save