Auto Submit

dev_local_v9_test4
autosubmit 2 years ago
parent cbeb3db5fb
commit 770cce200c

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[1024,14882],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -0,0 +1,596 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[13661],{
/***/ 13661:
/*!***************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/ProgramHomework/components/Publish.tsx ***!
\***************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* 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_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/defineProperty.js */ 85573);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_defineProperty_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_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __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_2___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_2__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__ = __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_3___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_3__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4__ = __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_4___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_4__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js */ 39647);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! antd */ 78241);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! antd */ 8591);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! antd */ 43418);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! antd */ 95237);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! antd */ 5112);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! antd */ 94001);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! antd */ 43604);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! antd */ 57930);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! antd */ 24905);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! moment */ 61186);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils/fetch */ 79311);
/* harmony import */ var _utils_authority__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/utils/authority */ 38296);
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/utils/util */ 27627);
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! umi */ 65363);
/* harmony import */ var _ShixunHomeworks_components_TrfList__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../ShixunHomeworks/components/TrfList */ 40300);
/* harmony import */ var _service_classrooms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/service/classrooms */ 24413);
/* harmony import */ var _pages_Classrooms_Lists_ShixunHomeworks_Detail_components_ConfigWorks_Releasesetting__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @/pages/Classrooms/Lists/ShixunHomeworks/Detail/components/ConfigWorks/Releasesetting */ 28448);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var _excluded = ["classroomList", "dispatch", "courseEndTime"];
var PublishShixun = function PublishShixun(_ref) {
var _classroomList$action, _classroomList$action7, _classroomList$action8, _classroomList$action9, _classroomList$action10, _classroomList$action11, _classroomList$action12, _classroomList$action13, _classroomList$action14, _classroomList$action15, _classroomList$action16;
var classroomList = _ref.classroomList,
dispatch = _ref.dispatch,
courseEndTime = _ref.courseEndTime,
props = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_6___default()(_ref, _excluded);
var params = (0,umi__WEBPACK_IMPORTED_MODULE_12__.useParams)();
var _Form$useForm = antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z.useForm(),
_Form$useForm2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_Form$useForm, 1),
form = _Form$useForm2[0];
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(1),
_useState2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState, 2),
page = _useState2[0],
setPage = _useState2[1];
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)([]),
_useState4 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState3, 2),
list = _useState4[0],
setList = _useState4[1];
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(0),
_useState6 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState5, 2),
count = _useState6[0],
setCount = _useState6[1];
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(2000),
_useState8 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState7, 2),
limit = _useState8[0],
setLimit = _useState8[1];
var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(true),
_useState10 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState9, 2),
loading = _useState10[0],
setLoading = _useState10[1];
var _useState11 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(false),
_useState12 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState11, 2),
cancelState = _useState12[0],
setCancelState = _useState12[1]; //防止多次取消时请求
var _useState13 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(false),
_useState14 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState13, 2),
btnLoading = _useState14[0],
setBtnLoading = _useState14[1];
var _useState15 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)([]),
_useState16 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState15, 2),
targetKeys = _useState16[0],
settargetKeys = _useState16[1];
var _useState17 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(true),
_useState18 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState17, 2),
radiovalue = _useState18[0],
setradiovalue = _useState18[1];
var _useState19 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(!((_classroomList$action = classroomList.actionTabs) !== null && _classroomList$action !== void 0 && (_classroomList$action = _classroomList$action.selectArrsAll) !== null && _classroomList$action !== void 0 && (_classroomList$action = _classroomList$action[0]) !== null && _classroomList$action !== void 0 && _classroomList$action.send_type)),
_useState20 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState19, 2),
isredio = _useState20[0],
setisredio = _useState20[1];
var _useState21 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)([0, 0, 0]),
_useState22 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState21, 2),
items = _useState22[0],
setitems = _useState22[1];
(0,react__WEBPACK_IMPORTED_MODULE_7__.useEffect)(function () {
if (classroomList.actionTabs.key === '立即发布') {
var _classroomList$action2, _classroomList$action5;
clear();
if (!((_classroomList$action2 = classroomList.actionTabs) !== null && _classroomList$action2 !== void 0 && (_classroomList$action2 = _classroomList$action2.selectArrsAll) !== null && _classroomList$action2 !== void 0 && (_classroomList$action2 = _classroomList$action2[0]) !== null && _classroomList$action2 !== void 0 && _classroomList$action2.can_publish)) {
var _classroomList$action3;
setitems(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4___default()((_classroomList$action3 = classroomList.actionTabs) === null || _classroomList$action3 === void 0 || (_classroomList$action3 = _classroomList$action3.selectArrsAll) === null || _classroomList$action3 === void 0 || (_classroomList$action3 = _classroomList$action3[0]) === null || _classroomList$action3 === void 0 ? void 0 : _classroomList$action3.difficult_settings));
} else {
var _classroomList$action4;
setitems(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4___default()((_classroomList$action4 = classroomList.actionTabs) === null || _classroomList$action4 === void 0 || (_classroomList$action4 = _classroomList$action4.selectArrsAll) === null || _classroomList$action4 === void 0 || (_classroomList$action4 = _classroomList$action4[0]) === null || _classroomList$action4 === void 0 ? void 0 : _classroomList$action4.difficult_count));
}
setisredio(!((_classroomList$action5 = classroomList.actionTabs) !== null && _classroomList$action5 !== void 0 && (_classroomList$action5 = _classroomList$action5.selectArrsAll) !== null && _classroomList$action5 !== void 0 && (_classroomList$action5 = _classroomList$action5[0]) !== null && _classroomList$action5 !== void 0 && _classroomList$action5.send_type));
getData();
if (classroomList.actionTabs.type === 2) {
var _classroomList$action6;
var selectItem = (_classroomList$action6 = classroomList.actionTabs.selectArrsAll) === null || _classroomList$action6 === void 0 ? void 0 : _classroomList$action6[0];
setradiovalue(selectItem.unified_setting);
}
}
}, [classroomList.actionTabs]);
(0,react__WEBPACK_IMPORTED_MODULE_7__.useEffect)(function () {
if (cancelState) {
if (btnLoading) return;
dispatch({
type: 'classroomList/setActionTabs',
payload: {}
});
if ((0,_utils_authority__WEBPACK_IMPORTED_MODULE_10__/* .isAdmin */ .GJ)()) {
dispatch({
type: 'classroomList/getClassroomTeacherCommonList',
payload: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, classroomList.actionTabs.params), {}, {
type: 1
})
});
dispatch({
type: 'shixunHomeworks/getWorkList',
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)
});
} else {
dispatch({
type: 'classroomList/getClassroomCommonList',
payload: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, classroomList.actionTabs.params)
});
}
}
}, [cancelState]);
var getData = /*#__PURE__*/function () {
var _ref2 = _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 _callee(nextPage) {
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 _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setLoading(true);
_context.next = 3;
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_14__/* .getAllCourseGroup */ .c_)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, params), {}, {
page: nextPage ? nextPage : page,
limit: 20000,
homework_id: classroomList.actionTabs.type === 1 ? '' : classroomList.actionTabs.selectArrs[0]
}));
case 3:
res = _context.sent;
res === null || res === void 0 || res.course_groups.map(function (item, index) {
item.key = item.id;
item.title = item.name;
item.disabled = item.is_published;
// item.disabled=item.id===2381;
});
if (res) {
setList(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4___default()(res === null || res === void 0 ? void 0 : res.course_groups));
setCount(res === null || res === void 0 ? void 0 : res.course_groups_count);
setLoading(false);
if (!nextPage) {
form.setFieldsValue(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_1___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_1___default()({}, 'publish_time', moment__WEBPACK_IMPORTED_MODULE_8___default()(moment__WEBPACK_IMPORTED_MODULE_8___default()(new Date()).add(0, 'days').format('YYYY-MM-DD HH:mm'))), 'end_time', moment__WEBPACK_IMPORTED_MODULE_8___default()(moment__WEBPACK_IMPORTED_MODULE_8___default()(new Date((0,_utils_util__WEBPACK_IMPORTED_MODULE_11__/* .DayHalfPastOne */ .qd)('/'))).add(7, 'days').format('YYYY-MM-DD HH:mm'))));
}
}
case 6:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData(_x) {
return _ref2.apply(this, arguments);
};
}();
/**
* 刷新数据
* @returns
*/
var onRefresh = function onRefresh() {
if ((0,_utils_authority__WEBPACK_IMPORTED_MODULE_10__/* .isAdmin */ .GJ)()) {
if (classroomList.actionTabs.detail) {
dispatch({
type: 'shixunHomeworks/setActionTabs',
payload: {}
});
dispatch({
type: 'shixunHomeworks/getWorkList',
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)
});
dispatch({
type: 'shixunHomeworks/getWorkSetting',
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)
});
} else {
dispatch({
type: 'classroomList/getClassroomTeacherCommonList',
payload: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, classroomList.actionTabs.params), {}, {
type: 5,
category: classroomList.actionTabs.params.categoryId
})
});
}
} else {
dispatch({
type: 'classroomList/getClassroomCommonList',
payload: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, classroomList.actionTabs.params)
});
}
};
var handleOk = /*#__PURE__*/function () {
var _ref3 = _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 _callee2() {
var _classroomList$Assist, _classroomList$detail;
var formValue, bodys, 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 _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
if (!((0,_utils_authority__WEBPACK_IMPORTED_MODULE_10__/* .isAssistant */ .Rm)() && !((_classroomList$Assist = classroomList.AssistantObject.hack) !== null && _classroomList$Assist !== void 0 && _classroomList$Assist.can_publish))) {
_context2.next = 4;
break;
}
antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .ZP.warning('您未获取此权限,需向管理员申请权限才能使用此功能');
setisLoading(false);
return _context2.abrupt("return");
case 4:
formValue = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, form.getFieldsValue());
if (!(formValue.end_time <= formValue.publish_time)) {
_context2.next = 9;
break;
}
antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .ZP.info('截止时间不能大于或等于发布时间');
setisLoading(false);
return _context2.abrupt("return");
case 9:
if (!((targetKeys === null || targetKeys === void 0 ? void 0 : targetKeys.length) <= 0 && !radiovalue && list.length > 0)) {
_context2.next = 13;
break;
}
antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .ZP.info('发布班级不能为空');
setisLoading(false);
return _context2.abrupt("return");
case 13:
if (!(items.reduce(function (a, b) {
return a + b;
}) === 0 && !isredio)) {
_context2.next = 17;
break;
}
antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .ZP.info('简单适中困难题数相加不能为0');
setisLoading(false);
return _context2.abrupt("return");
case 17:
bodys = {
homework_ids: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4___default()(classroomList.actionTabs.selectArrs),
group_ids: targetKeys.length > 0 ? targetKeys.map(function (item) {
return item.id;
}) : (_classroomList$detail = classroomList.detailCommonHomeworksList) === null || _classroomList$detail === void 0 ? void 0 : _classroomList$detail.course_groups,
end_time: moment__WEBPACK_IMPORTED_MODULE_8___default()(formValue.end_time).format('YYYY-MM-DD HH:mm'),
publish_time: moment__WEBPACK_IMPORTED_MODULE_8___default()(formValue.publish_time).format('YYYY-MM-DD HH:mm'),
difficult_settings: items === null || items === void 0 ? void 0 : items.map(function (ite) {
return ite;
}),
send_type: isredio ? '0' : '1',
unified_setting: !targetKeys.length
};
setisLoading(true);
_context2.next = 21;
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP)("/api/courses/".concat(params.coursesId, "/homework_commons/publish_with_homework_list_position.json"), {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, bodys)
});
case 21:
res = _context2.sent;
if (res.status === 0) {
setisLoading(false);
(0,_utils_util__WEBPACK_IMPORTED_MODULE_11__/* .trackEvent */ .L9)(['教学课堂', '图文作业', '立即发布']);
antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .ZP.success('发布成功');
dispatch({
type: 'classroomList/setActionTabs',
payload: {
key: '清除选择数据'
}
});
// dispatch({
// type: 'classroomList/getClassroomShixunsList',
// payload: { ...classroomList.actionTabs.params },
// })
props.onCallback && props.onCallback();
onRefresh();
if (localStorage.getItem('Noviceguide') === '0') {} else {
dispatch({
type: 'shixunHomeworks/setActionTabs',
payload: {
key: '底部弹窗',
type: 13,
text: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("div", {
children: "\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~"
})
}
});
}
} else {
setisLoading(false);
}
case 23:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function handleOk() {
return _ref3.apply(this, arguments);
};
}();
var clear = function clear() {
setPage(1);
setList([]);
settargetKeys([]);
};
var hasMore = count > page * limit;
var _useState23 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(false),
_useState24 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState23, 2),
isLoading = _useState24[0],
setisLoading = _useState24[1];
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, {
width: 600,
confirmLoading: isLoading,
centered: true,
title: "\u53D1\u5E03\u4F5C\u4E1A",
open: classroomList.actionTabs.key === '立即发布' ? true : false,
okText: "\u53D1\u5E03\u4F5C\u4E1A",
cancelText: "\u6682\u4E0D\u53D1\u5E03",
onOk: handleOk,
onCancel: function onCancel() {
clear();
onRefresh();
dispatch({
type: 'classroomList/setActionTabs',
payload: {}
});
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("p", {
className: "tc",
children: ["\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("br", {}), "\u672C\u64CD\u4F5C\u53EA\u5BF9\"\u672A\u53D1\u5E03\"\u7684\u4F5C\u4E1A\u6709\u6548"]
}), list && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z, {
form: form,
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("div", {
style: {
paddingLeft: 0
},
children: [classroomList.actionTabs.type === 2 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
style: {
marginBottom: '10px'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
className: "mr5",
children: "\u8BD5\u9898\u53D1\u9001:"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"].Group */ .ZP.Group, {
value: isredio,
disabled: !((_classroomList$action7 = classroomList.actionTabs) !== null && _classroomList$action7 !== void 0 && (_classroomList$action7 = _classroomList$action7.selectArrsAll) !== null && _classroomList$action7 !== void 0 && (_classroomList$action7 = _classroomList$action7[0]) !== null && _classroomList$action7 !== void 0 && _classroomList$action7.can_publish),
onChange: function onChange(e) {
setisredio(e.target.value);
// getData();
// settargetKeys([]);
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .ZP, {
value: true,
children: "\u5168\u90E8\u56FA\u5B9A\u8BD5\u9898"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .ZP, {
className: "ml20"
// disabled={list.length <= 0}
,
value: false,
children: "\u968F\u673A\u62BD\u53D6"
})]
})]
}), !isredio && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
style: {
marginBottom: '10px'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
style: {
marginRight: 65
}
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("span", {
children: ["\u7B80\u5355\u9898\u6570 ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z, {
value: items[0],
onChange: function onChange(e) {
items[0] = e;
setitems(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4___default()(items));
},
min: 0,
disabled: !((_classroomList$action8 = classroomList.actionTabs) !== null && _classroomList$action8 !== void 0 && (_classroomList$action8 = _classroomList$action8.selectArrsAll) !== null && _classroomList$action8 !== void 0 && (_classroomList$action8 = _classroomList$action8[0]) !== null && _classroomList$action8 !== void 0 && _classroomList$action8.can_publish),
placeholder: "\u6700\u5927".concat((_classroomList$action9 = classroomList.actionTabs) === null || _classroomList$action9 === void 0 || (_classroomList$action9 = _classroomList$action9.selectArrsAll) === null || _classroomList$action9 === void 0 || (_classroomList$action9 = _classroomList$action9[0]) === null || _classroomList$action9 === void 0 || (_classroomList$action9 = _classroomList$action9.difficult_count) === null || _classroomList$action9 === void 0 ? void 0 : _classroomList$action9[0]),
max: (_classroomList$action10 = classroomList.actionTabs) === null || _classroomList$action10 === void 0 || (_classroomList$action10 = _classroomList$action10.selectArrsAll) === null || _classroomList$action10 === void 0 || (_classroomList$action10 = _classroomList$action10[0]) === null || _classroomList$action10 === void 0 || (_classroomList$action10 = _classroomList$action10.difficult_count) === null || _classroomList$action10 === void 0 ? void 0 : _classroomList$action10[0],
style: {
width: 60
}
})]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("span", {
style: {
margin: '0px 40px'
},
children: ["\u9002\u4E2D\u9898\u6570 ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z, {
value: items[1],
onChange: function onChange(e) {
items[1] = e;
setitems(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4___default()(items));
},
min: 0,
disabled: !((_classroomList$action11 = classroomList.actionTabs) !== null && _classroomList$action11 !== void 0 && (_classroomList$action11 = _classroomList$action11.selectArrsAll) !== null && _classroomList$action11 !== void 0 && (_classroomList$action11 = _classroomList$action11[0]) !== null && _classroomList$action11 !== void 0 && _classroomList$action11.can_publish),
max: (_classroomList$action12 = classroomList.actionTabs) === null || _classroomList$action12 === void 0 || (_classroomList$action12 = _classroomList$action12.selectArrsAll) === null || _classroomList$action12 === void 0 || (_classroomList$action12 = _classroomList$action12[0]) === null || _classroomList$action12 === void 0 || (_classroomList$action12 = _classroomList$action12.difficult_count) === null || _classroomList$action12 === void 0 ? void 0 : _classroomList$action12[1],
placeholder: "\u6700\u5927".concat((_classroomList$action13 = classroomList.actionTabs) === null || _classroomList$action13 === void 0 || (_classroomList$action13 = _classroomList$action13.selectArrsAll) === null || _classroomList$action13 === void 0 || (_classroomList$action13 = _classroomList$action13[0]) === null || _classroomList$action13 === void 0 || (_classroomList$action13 = _classroomList$action13.difficult_count) === null || _classroomList$action13 === void 0 ? void 0 : _classroomList$action13[1]),
style: {
width: 60
}
})]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("span", {
children: ["\u56F0\u96BE\u9898\u6570 ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z, {
value: items[2],
onChange: function onChange(e) {
items[2] = e;
setitems(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4___default()(items));
},
min: 0,
disabled: !((_classroomList$action14 = classroomList.actionTabs) !== null && _classroomList$action14 !== void 0 && (_classroomList$action14 = _classroomList$action14.selectArrsAll) !== null && _classroomList$action14 !== void 0 && (_classroomList$action14 = _classroomList$action14[0]) !== null && _classroomList$action14 !== void 0 && _classroomList$action14.can_publish),
placeholder: "\u6700\u5927".concat((_classroomList$action15 = classroomList.actionTabs) === null || _classroomList$action15 === void 0 || (_classroomList$action15 = _classroomList$action15.selectArrsAll) === null || _classroomList$action15 === void 0 || (_classroomList$action15 = _classroomList$action15[0]) === null || _classroomList$action15 === void 0 || (_classroomList$action15 = _classroomList$action15.difficult_count) === null || _classroomList$action15 === void 0 ? void 0 : _classroomList$action15[2]),
max: (_classroomList$action16 = classroomList.actionTabs) === null || _classroomList$action16 === void 0 || (_classroomList$action16 = _classroomList$action16.selectArrsAll) === null || _classroomList$action16 === void 0 || (_classroomList$action16 = _classroomList$action16[0]) === null || _classroomList$action16 === void 0 || (_classroomList$action16 = _classroomList$action16.difficult_count) === null || _classroomList$action16 === void 0 ? void 0 : _classroomList$action16[2],
style: {
width: 60
}
})]
})]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
className: "mt30",
align: "middle",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_23__/* ["default"] */ .Z, {
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z.Item, {
name: "publish_time",
label: "\u53D1\u5E03\u65F6\u95F4",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_24__["default"], {
style: {
width: 170,
marginRight: '25px'
},
disabledDate: function disabledDate(current) {
return (0,_pages_Classrooms_Lists_ShixunHomeworks_Detail_components_ConfigWorks_Releasesetting__WEBPACK_IMPORTED_MODULE_15__/* .disabledDate */ .Q8)(current, courseEndTime);
},
disabledTime: function disabledTime(current) {
return (0,_pages_Classrooms_Lists_ShixunHomeworks_Detail_components_ConfigWorks_Releasesetting__WEBPACK_IMPORTED_MODULE_15__/* .disabledTime */ .d0)(current);
},
placeholder: '请选择发布时间',
showTime: {
format: 'HH:mm',
defaultValue: moment__WEBPACK_IMPORTED_MODULE_8___default()((0,_utils_util__WEBPACK_IMPORTED_MODULE_11__/* .HalfPastOne */ .U6)(), 'HH:mm')
},
format: "YYYY-MM-DD HH:mm",
allowClear: false
})
})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_23__/* ["default"] */ .Z, {
className: "ml20",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z.Item, {
name: "end_time",
label: "\u622A\u6B62\u65F6\u95F4",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_24__["default"], {
style: {
width: 170
},
placeholder: '请选择截止时间',
showTime: {
format: 'HH:mm',
defaultValue: moment__WEBPACK_IMPORTED_MODULE_8___default()((0,_utils_util__WEBPACK_IMPORTED_MODULE_11__/* .HalfPastOne */ .U6)(), 'HH:mm')
},
disabledDate: function disabledDate(current) {
return (0,_pages_Classrooms_Lists_ShixunHomeworks_Detail_components_ConfigWorks_Releasesetting__WEBPACK_IMPORTED_MODULE_15__/* .disabledDate */ .Q8)(current, courseEndTime, form.getFieldValue('publish_time'));
},
disabledTime: function disabledTime(current) {
return (0,_pages_Classrooms_Lists_ShixunHomeworks_Detail_components_ConfigWorks_Releasesetting__WEBPACK_IMPORTED_MODULE_15__/* .disabledTime */ .d0)(current, form.getFieldValue('publish_time'));
},
format: "YYYY-MM-DD HH:mm",
allowClear: false
})
})
})]
}), classroomList.actionTabs.type === 2 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
style: {
marginBottom: '10px'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
className: "mr5",
children: "\u53D1\u5E03\u8BBE\u7F6E:"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"].Group */ .ZP.Group, {
value: radiovalue,
onChange: function onChange(e) {
setradiovalue(e.target.value);
// getData();
settargetKeys([]);
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .ZP, {
value: true,
disabled: !classroomList.actionTabs.manage_all_group,
children: "\u7EDF\u4E00\u53D1\u5E03"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .ZP, {
className: "ml20",
disabled: list.length <= 0,
value: false,
children: "\u5206\u73ED\u53D1\u5E03"
})]
})]
}), list.length <= 0 && classroomList.actionTabs.type === 2 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
style: {
marginLeft: '65px',
color: 'rgba(0, 0, 0, 0.25)'
},
children: "\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\""
})]
}), (classroomList.actionTabs.type === 1 || !radiovalue) && list.length > 0 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("div", {
style: {
display: 'flex',
justifyContent: 'space-between',
marginBottom: '10px'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("span", {
style: {
flex: 1
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_25__/* ["default"] */ .Z, {
checked: targetKeys.length === list.length,
onChange: function onChange(e) {
if (targetKeys.length === list.length) {
settargetKeys([]);
} else {
settargetKeys(list.filter(function (item) {
return !item.is_published;
}));
}
},
children: "\u5168\u9009"
}), ' ']
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
style: {
width: 16
}
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("span", {
style: {
flex: 1
},
children: ["\u5DF2\u9009\u62E9", targetKeys.length || 0, "\u4E2A\u5206\u73ED"]
})]
}), (classroomList.actionTabs.type === 1 || !radiovalue) && list.length > 0 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(_ShixunHomeworks_components_TrfList__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
data: list,
selectedRowKeys: targetKeys,
setSelectedRowKeys: settargetKeys
})]
})]
});
};
/* harmony default export */ __webpack_exports__.Z = ((0,umi__WEBPACK_IMPORTED_MODULE_12__.connect)(function (_ref4) {
var classroomList = _ref4.classroomList;
return {
classroomList: classroomList
};
})(PublishShixun));
/***/ })
}]);

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[14882,1024,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[14882,1024],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16473,91056,18880,29642,96594,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16473,91056,18880,29642,96594,1024,14882],{
/***/ 680:
/*!*******************************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[17103,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[17103,1024,14882],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -1227,39 +1227,39 @@ var SendToClassModal = function SendToClassModal(_ref) {
dropKey = info.node.props.eventKey;
dragKey = info.dragNode.props.eventKey;
dropPos = info.node.props.pos.split('-');
dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]); // if (
// dropPos.length > 2 &&
// !info.node.dragOverGapBottom &&
// !info.node.dragOverGapTop
// ) {
// return false;
// }
if (!(info.node.dragOver && info.dragNodesKeys.length > 1)) {
dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
if (!(dropPos.length > 2 && !info.node.dragOverGapBottom && !info.node.dragOverGapTop)) {
_context4.next = 7;
break;
}
return _context4.abrupt("return", false);
case 7:
if (!(dropPos.length > 2 && info.dragNodesKeys.length > 1)) {
if (!(info.node.dragOver && info.dragNodesKeys.length > 1)) {
_context4.next = 9;
break;
}
return _context4.abrupt("return", false);
case 9:
if (!(dropPos.length > 2 && info.dragNodesKeys.length > 1)) {
_context4.next = 11;
break;
}
return _context4.abrupt("return", false);
case 11:
// 所以内容只能拖入文件夹StageCatalog 不能拖入其余类型 且
datas = ['Attachment', 'Hack', 'Shixun', 'SubjectHomework', 'Videoltem']; //文件层集合数组datas
if (!(datas.includes((_info$dragNode = info.dragNode) === null || _info$dragNode === void 0 ? void 0 : _info$dragNode.item_type) && ((_info$node = info.node) === null || _info$node === void 0 ? void 0 : _info$node.item_type) != 'StageCatalog' && dropPosition === 0)) {
_context4.next = 12;
_context4.next = 14;
break;
}
return _context4.abrupt("return", false);
case 12:
case 14:
if (!(((_info$dragNode2 = info.dragNode) === null || _info$dragNode2 === void 0 ? void 0 : _info$dragNode2.item_type) === 'StageCatalog' && datas.includes((_info$node2 = info.node) === null || _info$node2 === void 0 ? void 0 : _info$node2.item_type) && dropPosition === 0)) {
_context4.next = 14;
_context4.next = 16;
break;
}
return _context4.abrupt("return", false);
case 14:
case 16:
loop = function loop(data, key, callback) {
for (var i = 0; i < data.length; i++) {
if (data[i].key === key) {
@ -1306,17 +1306,17 @@ var SendToClassModal = function SendToClassModal(_ref) {
ar.splice(i + 1, 0, dragObj);
}
}
_context4.next = 20;
_context4.next = 22;
return updateSort({
stage_id: props.stage_id,
list: data
});
case 20:
case 22:
loopIndex(data, 0, 0, true);
console.log('data:', data);
setGdata(toConsumableArray_default()(data));
setOpenkeys([].concat(toConsumableArray_default()(openkeys), [info.node.key]));
case 24:
case 26:
case "end":
return _context4.stop();
}
@ -1350,10 +1350,10 @@ var SendToClassModal = function SendToClassModal(_ref) {
};
var heightLight = function heightLight(source) {
var reg = new RegExp(keywords, "ig");
var str = (source === null || source === void 0 ? void 0 : source.replace(reg, "<span style=\"color:#3061D0\">$&</span>")) || source;
var str = source.replace(reg, "<span style=\"color:#3061D0\">$&</span>");
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([[18880,91056,29642,96594,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18880,91056,29642,96594,1024,14882],{
/***/ 680:
/*!*******************************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19059,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19059,1024,14882],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[21321,84360,93826,35019,38660,1024,14882,27155,44407,11021],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[21321,84360,93826,35019,38660,1024,14882,11021],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -1,12 +1,12 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[82709],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[21622],{
/***/ 82709:
/***/ 21622:
/*!****************************************************************!*\
!*** ./node_modules/_dompurify@2.5.6@dompurify/dist/purify.js ***!
!*** ./node_modules/_dompurify@2.5.7@dompurify/dist/purify.js ***!
\****************************************************************/
/***/ (function(module) {
/*! @license DOMPurify 2.5.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.6/LICENSE */
/*! @license DOMPurify 2.5.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.7/LICENSE */
(function (global, factory) {
true ? module.exports = factory() :
@ -294,7 +294,7 @@
* Version label, exposed for easier checks
* if DOMPurify is up to date or not
*/
DOMPurify.version = '2.5.6';
DOMPurify.version = '2.5.7';
/**
* Array of elements that DOMPurify removed during sanitation.
@ -681,7 +681,7 @@
CONFIG = cfg;
};
var MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);
var HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'annotation-xml']);
var HTML_INTEGRATION_POINTS = addToSet({}, ['annotation-xml']);
// Certain elements are allowed in both SVG and HTML
// namespace. We need to specify them explicitly
@ -1157,12 +1157,6 @@
_executeHook('uponSanitizeAttribute', currentNode, hookEvent);
value = hookEvent.attrValue;
/* Work around a security issue with comments inside attributes */
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
_removeAttribute(name, currentNode);
continue;
}
/* Did the hooks approve of the attribute? */
if (hookEvent.forceKeepAttr) {
continue;
@ -1206,6 +1200,12 @@
value = SANITIZE_NAMED_PROPS_PREFIX + value;
}
/* Work around a security issue with comments inside attributes */
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
_removeAttribute(name, currentNode);
continue;
}
/* Handle attributes that require Trusted Types */
if (trustedTypesPolicy && _typeof(trustedTypes) === 'object' && typeof trustedTypes.getAttributeType === 'function') {
if (namespaceURI) ; else {

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[21642,84360,7385,60499,92952,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[21642,84360,7385,60499,92952,1024,14882],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -1,95 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18200,91056,18880,29642,96594,1024,14882,27155,44407,52708,11021],{
/***/ 64711:
/*!*************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@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.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// 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.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@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);
/***/ }),
/***/ 680:
/*!*******************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@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.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// 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.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@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);
/***/ }),
(self["webpackChunk"] = self["webpackChunk"] || []).push([[21995,11021],{
/***/ 50382:
/*!*****************************************************************************************************!*\
@ -136,6 +46,24 @@ if (false) {}
/***/ }),
/***/ 56762:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useForceUpdate.js ***!
\************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Z: function() { return /* binding */ useForceUpdate; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
function useForceUpdate() {
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
return forceUpdate;
}
/***/ }),
/***/ 24905:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules ***!
@ -654,165 +582,6 @@ function getStyle(prefixCls, token) {
/***/ }),
/***/ 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.5.1@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
var EllipsisOutlined = __webpack_require__(94172);
// 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);
/***/ }),
/***/ 73782:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
@ -1212,27 +981,6 @@ input_Input.Password = input_Password;
/***/ }),
/***/ 44000:
/*!**********************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/layout/index.js ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 84966);
/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 23088);
"use client";
const Layout = _layout__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP;
Layout.Header = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Header */ .h4;
Layout.Footer = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Footer */ .$_;
Layout.Content = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Content */ .VY;
Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
/* harmony default export */ __webpack_exports__.Z = (Layout);
/***/ }),
/***/ 57809:
/*!**********************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/select/index.js ***!

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19850,52720,7229,78169,84360,45504,72749,35555,58268,25473,81120,21321,93826,35019,38660,1024,14882,27155,44407,81326,11021],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[2355,52720,94338,78169,45504,58268,25473,81120,11021],{
/***/ 50382:
/*!*****************************************************************************************************!*\
@ -46,21 +46,48 @@ if (false) {}
/***/ }),
/***/ 56762:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useForceUpdate.js ***!
\************************************************************************/
/***/ 45532:
/*!************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/PlusCircleOutlined.js + 1 modules ***!
\************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Z: function() { return /* binding */ useForceUpdate; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
function useForceUpdate() {
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
return forceUpdate;
}
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_PlusCircleOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// 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/PlusCircleOutlined.js
// This icon file is generated automatically.
var PlusCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z" } }, { "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" } }] }, "name": "plus-circle", "theme": "outlined" };
/* harmony default export */ var asn_PlusCircleOutlined = (PlusCircleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/PlusCircleOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var PlusCircleOutlined_PlusCircleOutlined = function PlusCircleOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_PlusCircleOutlined
}));
};
/**![plus-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTY5NiA0ODBINTQ0VjMyOGMwLTQuNC0zLjYtOC04LThoLTQ4Yy00LjQgMC04IDMuNi04IDh2MTUySDMyOGMtNC40IDAtOCAzLjYtOCA4djQ4YzAgNC40IDMuNiA4IDggOGgxNTJ2MTUyYzAgNC40IDMuNiA4IDggOGg0OGM0LjQgMCA4LTMuNiA4LThWNTQ0aDE1MmM0LjQgMCA4LTMuNiA4LTh2LTQ4YzAtNC40LTMuNi04LTgtOHoiIC8+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PC9zdmc+) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(PlusCircleOutlined_PlusCircleOutlined);
if (false) {}
/* harmony default export */ var icons_PlusCircleOutlined = (RefIcon);
/***/ }),
@ -1319,165 +1346,6 @@ if (false) {}
/***/ }),
/***/ 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.5.1@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
var EllipsisOutlined = __webpack_require__(94172);
// 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);
/***/ }),
/***/ 73782:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
@ -2093,684 +1961,6 @@ 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 ***!
\*********************************************************************/
/***/ (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.43.0@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(75440);
// 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);
/***/ }),
/***/ 78673:
/*!**********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/switch/index.js + 2 modules ***!
\**********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ es_switch; }
});
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/LoadingOutlined.js + 1 modules
var LoadingOutlined = __webpack_require__(42141);
// 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/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(24018);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(54099);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(63011);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/hooks/useMergedState.js
var useMergedState = __webpack_require__(71366);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/KeyCode.js
var KeyCode = __webpack_require__(20287);
;// CONCATENATED MODULE: ./node_modules/_rc-switch@4.1.0@rc-switch/es/index.js
var _excluded = ["prefixCls", "className", "checked", "defaultChecked", "disabled", "loadingIcon", "checkedChildren", "unCheckedChildren", "onClick", "onChange", "onKeyDown"];
var Switch = /*#__PURE__*/_react_17_0_2_react.forwardRef(function (_ref, ref) {
var _classNames;
var _ref$prefixCls = _ref.prefixCls,
prefixCls = _ref$prefixCls === void 0 ? 'rc-switch' : _ref$prefixCls,
className = _ref.className,
checked = _ref.checked,
defaultChecked = _ref.defaultChecked,
disabled = _ref.disabled,
loadingIcon = _ref.loadingIcon,
checkedChildren = _ref.checkedChildren,
unCheckedChildren = _ref.unCheckedChildren,
onClick = _ref.onClick,
onChange = _ref.onChange,
onKeyDown = _ref.onKeyDown,
restProps = (0,objectWithoutProperties/* default */.Z)(_ref, _excluded);
var _useMergedState = (0,useMergedState/* default */.Z)(false, {
value: checked,
defaultValue: defaultChecked
}),
_useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
innerChecked = _useMergedState2[0],
setInnerChecked = _useMergedState2[1];
function triggerChange(newChecked, event) {
var mergedChecked = innerChecked;
if (!disabled) {
mergedChecked = newChecked;
setInnerChecked(mergedChecked);
onChange === null || onChange === void 0 ? void 0 : onChange(mergedChecked, event);
}
return mergedChecked;
}
function onInternalKeyDown(e) {
if (e.which === KeyCode/* default */.Z.LEFT) {
triggerChange(false, e);
} else if (e.which === KeyCode/* default */.Z.RIGHT) {
triggerChange(true, e);
}
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
}
function onInternalClick(e) {
var ret = triggerChange(!innerChecked, e);
// [Legacy] trigger onClick with value
onClick === null || onClick === void 0 ? void 0 : onClick(ret, e);
}
var switchClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-checked"), innerChecked), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), _classNames));
return /*#__PURE__*/_react_17_0_2_react.createElement("button", (0,esm_extends/* default */.Z)({}, restProps, {
type: "button",
role: "switch",
"aria-checked": innerChecked,
disabled: disabled,
className: switchClassName,
ref: ref,
onKeyDown: onInternalKeyDown,
onClick: onInternalClick
}), loadingIcon, /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: "".concat(prefixCls, "-inner")
}, /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: "".concat(prefixCls, "-inner-checked")
}, checkedChildren), /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: "".concat(prefixCls, "-inner-unchecked")
}, unCheckedChildren)));
});
Switch.displayName = 'Switch';
/* harmony default export */ var es = (Switch);
// 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/config-provider/DisabledContext.js
var DisabledContext = __webpack_require__(1684);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js
var useSize = __webpack_require__(19716);
// 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/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/switch/style/index.js
const genSwitchSmallStyle = token => {
const {
componentCls,
trackHeightSM,
trackPadding,
trackMinWidthSM,
innerMinMarginSM,
innerMaxMarginSM,
handleSizeSM
} = token;
const switchInnerCls = `${componentCls}-inner`;
return {
[componentCls]: {
[`&${componentCls}-small`]: {
minWidth: trackMinWidthSM,
height: trackHeightSM,
lineHeight: `${trackHeightSM}px`,
[`${componentCls}-inner`]: {
paddingInlineStart: innerMaxMarginSM,
paddingInlineEnd: innerMinMarginSM,
[`${switchInnerCls}-checked`]: {
marginInlineStart: `calc(-100% + ${handleSizeSM + trackPadding * 2}px - ${innerMaxMarginSM * 2}px)`,
marginInlineEnd: `calc(100% - ${handleSizeSM + trackPadding * 2}px + ${innerMaxMarginSM * 2}px)`
},
[`${switchInnerCls}-unchecked`]: {
marginTop: -trackHeightSM,
marginInlineStart: 0,
marginInlineEnd: 0
}
},
[`${componentCls}-handle`]: {
width: handleSizeSM,
height: handleSizeSM
},
[`${componentCls}-loading-icon`]: {
top: (handleSizeSM - token.switchLoadingIconSize) / 2,
fontSize: token.switchLoadingIconSize
},
[`&${componentCls}-checked`]: {
[`${componentCls}-inner`]: {
paddingInlineStart: innerMinMarginSM,
paddingInlineEnd: innerMaxMarginSM,
[`${switchInnerCls}-checked`]: {
marginInlineStart: 0,
marginInlineEnd: 0
},
[`${switchInnerCls}-unchecked`]: {
marginInlineStart: `calc(100% - ${handleSizeSM + trackPadding * 2}px + ${innerMaxMarginSM * 2}px)`,
marginInlineEnd: `calc(-100% + ${handleSizeSM + trackPadding * 2}px - ${innerMaxMarginSM * 2}px)`
}
},
[`${componentCls}-handle`]: {
insetInlineStart: `calc(100% - ${handleSizeSM + trackPadding}px)`
}
},
[`&:not(${componentCls}-disabled):active`]: {
[`&:not(${componentCls}-checked) ${switchInnerCls}`]: {
[`${switchInnerCls}-unchecked`]: {
marginInlineStart: token.marginXXS / 2,
marginInlineEnd: -token.marginXXS / 2
}
},
[`&${componentCls}-checked ${switchInnerCls}`]: {
[`${switchInnerCls}-checked`]: {
marginInlineStart: -token.marginXXS / 2,
marginInlineEnd: token.marginXXS / 2
}
}
}
}
}
};
};
const genSwitchLoadingStyle = token => {
const {
componentCls,
handleSize
} = token;
return {
[componentCls]: {
[`${componentCls}-loading-icon${token.iconCls}`]: {
position: 'relative',
top: (handleSize - token.fontSize) / 2,
color: token.switchLoadingIconColor,
verticalAlign: 'top'
},
[`&${componentCls}-checked ${componentCls}-loading-icon`]: {
color: token.switchColor
}
}
};
};
const genSwitchHandleStyle = token => {
const {
componentCls,
motion,
trackPadding,
handleBg,
handleShadow,
handleSize
} = token;
const switchHandleCls = `${componentCls}-handle`;
return {
[componentCls]: {
[switchHandleCls]: {
position: 'absolute',
top: trackPadding,
insetInlineStart: trackPadding,
width: handleSize,
height: handleSize,
transition: `all ${token.switchDuration} ease-in-out`,
'&::before': {
position: 'absolute',
top: 0,
insetInlineEnd: 0,
bottom: 0,
insetInlineStart: 0,
backgroundColor: handleBg,
borderRadius: handleSize / 2,
boxShadow: handleShadow,
transition: `all ${token.switchDuration} ease-in-out`,
content: '""'
}
},
[`&${componentCls}-checked ${switchHandleCls}`]: {
insetInlineStart: `calc(100% - ${handleSize + trackPadding}px)`
},
[`&:not(${componentCls}-disabled):active`]: motion ? {
[`${switchHandleCls}::before`]: {
insetInlineEnd: token.switchHandleActiveInset,
insetInlineStart: 0
},
[`&${componentCls}-checked ${switchHandleCls}::before`]: {
insetInlineEnd: 0,
insetInlineStart: token.switchHandleActiveInset
}
} : /* istanbul ignore next */
{}
}
};
};
const genSwitchInnerStyle = token => {
const {
componentCls,
trackHeight,
trackPadding,
innerMinMargin,
innerMaxMargin,
handleSize
} = token;
const switchInnerCls = `${componentCls}-inner`;
return {
[componentCls]: {
[switchInnerCls]: {
display: 'block',
overflow: 'hidden',
borderRadius: 100,
height: '100%',
paddingInlineStart: innerMaxMargin,
paddingInlineEnd: innerMinMargin,
transition: `padding-inline-start ${token.switchDuration} ease-in-out, padding-inline-end ${token.switchDuration} ease-in-out`,
[`${switchInnerCls}-checked, ${switchInnerCls}-unchecked`]: {
display: 'block',
color: token.colorTextLightSolid,
fontSize: token.fontSizeSM,
transition: `margin-inline-start ${token.switchDuration} ease-in-out, margin-inline-end ${token.switchDuration} ease-in-out`,
pointerEvents: 'none'
},
[`${switchInnerCls}-checked`]: {
marginInlineStart: `calc(-100% + ${handleSize + trackPadding * 2}px - ${innerMaxMargin * 2}px)`,
marginInlineEnd: `calc(100% - ${handleSize + trackPadding * 2}px + ${innerMaxMargin * 2}px)`
},
[`${switchInnerCls}-unchecked`]: {
marginTop: -trackHeight,
marginInlineStart: 0,
marginInlineEnd: 0
}
},
[`&${componentCls}-checked ${switchInnerCls}`]: {
paddingInlineStart: innerMinMargin,
paddingInlineEnd: innerMaxMargin,
[`${switchInnerCls}-checked`]: {
marginInlineStart: 0,
marginInlineEnd: 0
},
[`${switchInnerCls}-unchecked`]: {
marginInlineStart: `calc(100% - ${handleSize + trackPadding * 2}px + ${innerMaxMargin * 2}px)`,
marginInlineEnd: `calc(-100% + ${handleSize + trackPadding * 2}px - ${innerMaxMargin * 2}px)`
}
},
[`&:not(${componentCls}-disabled):active`]: {
[`&:not(${componentCls}-checked) ${switchInnerCls}`]: {
[`${switchInnerCls}-unchecked`]: {
marginInlineStart: trackPadding * 2,
marginInlineEnd: -trackPadding * 2
}
},
[`&${componentCls}-checked ${switchInnerCls}`]: {
[`${switchInnerCls}-checked`]: {
marginInlineStart: -trackPadding * 2,
marginInlineEnd: trackPadding * 2
}
}
}
}
};
};
const genSwitchStyle = token => {
const {
componentCls,
trackHeight,
trackMinWidth
} = token;
return {
[componentCls]: Object.assign(Object.assign(Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
position: 'relative',
display: 'inline-block',
boxSizing: 'border-box',
minWidth: trackMinWidth,
height: trackHeight,
lineHeight: `${trackHeight}px`,
verticalAlign: 'middle',
background: token.colorTextQuaternary,
border: '0',
borderRadius: 100,
cursor: 'pointer',
transition: `all ${token.motionDurationMid}`,
userSelect: 'none',
[`&:hover:not(${componentCls}-disabled)`]: {
background: token.colorTextTertiary
}
}), (0,style/* genFocusStyle */.Qy)(token)), {
[`&${componentCls}-checked`]: {
background: token.switchColor,
[`&:hover:not(${componentCls}-disabled)`]: {
background: token.colorPrimaryHover
}
},
[`&${componentCls}-loading, &${componentCls}-disabled`]: {
cursor: 'not-allowed',
opacity: token.switchDisabledOpacity,
'*': {
boxShadow: 'none',
cursor: 'not-allowed'
}
},
// rtl style
[`&${componentCls}-rtl`]: {
direction: 'rtl'
}
})
};
};
// ============================== Export ==============================
/* harmony default export */ var switch_style = ((0,genComponentStyleHook/* default */.Z)('Switch', token => {
const switchToken = (0,statistic/* merge */.TS)(token, {
switchDuration: token.motionDurationMid,
switchColor: token.colorPrimary,
switchDisabledOpacity: token.opacityLoading,
switchLoadingIconSize: token.fontSizeIcon * 0.75,
switchLoadingIconColor: `rgba(0, 0, 0, ${token.opacityLoading})`,
switchHandleActiveInset: '-30%'
});
return [genSwitchStyle(switchToken),
// inner style
genSwitchInnerStyle(switchToken),
// handle style
genSwitchHandleStyle(switchToken),
// loading style
genSwitchLoadingStyle(switchToken),
// small style
genSwitchSmallStyle(switchToken)];
}, token => {
const {
fontSize,
lineHeight,
controlHeight,
colorWhite
} = token;
const height = fontSize * lineHeight;
const heightSM = controlHeight / 2;
const padding = 2; // Fixed value
const handleSize = height - padding * 2;
const handleSizeSM = heightSM - padding * 2;
return {
trackHeight: height,
trackHeightSM: heightSM,
trackMinWidth: handleSize * 2 + padding * 4,
trackMinWidthSM: handleSizeSM * 2 + padding * 2,
trackPadding: padding,
handleBg: colorWhite,
handleSize,
handleSizeSM,
handleShadow: `0 2px 4px 0 ${new dist_module/* TinyColor */.C('#00230b').setAlpha(0.2).toRgbString()}`,
innerMinMargin: handleSize / 2,
innerMaxMargin: handleSize + padding + padding * 2,
innerMinMarginSM: handleSizeSM / 2,
innerMaxMarginSM: handleSizeSM + padding + padding * 2
};
}));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/switch/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 switch_Switch = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
prefixCls: customizePrefixCls,
size: customizeSize,
disabled: customDisabled,
loading,
className,
rootClassName,
style
} = props,
restProps = __rest(props, ["prefixCls", "size", "disabled", "loading", "className", "rootClassName", "style"]);
false ? 0 : void 0;
const {
getPrefixCls,
direction,
switch: SWITCH
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
// ===================== Disabled =====================
const disabled = _react_17_0_2_react.useContext(DisabledContext/* default */.Z);
const mergedDisabled = (customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled) || loading;
const prefixCls = getPrefixCls('switch', customizePrefixCls);
const loadingIcon = /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: `${prefixCls}-handle`
}, loading && /*#__PURE__*/_react_17_0_2_react.createElement(LoadingOutlined/* default */.Z, {
className: `${prefixCls}-loading-icon`
}));
// Style
const [wrapSSR, hashId] = switch_style(prefixCls);
const mergedSize = (0,useSize/* default */.Z)(customizeSize);
const classes = _classnames_2_5_1_classnames_default()(SWITCH === null || SWITCH === void 0 ? void 0 : SWITCH.className, {
[`${prefixCls}-small`]: mergedSize === 'small',
[`${prefixCls}-loading`]: loading,
[`${prefixCls}-rtl`]: direction === 'rtl'
}, className, rootClassName, hashId);
const mergedStyle = Object.assign(Object.assign({}, SWITCH === null || SWITCH === void 0 ? void 0 : SWITCH.style), style);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(wave/* default */.Z, {
component: "Switch"
}, /*#__PURE__*/_react_17_0_2_react.createElement(es, Object.assign({}, restProps, {
prefixCls: prefixCls,
className: classes,
style: mergedStyle,
disabled: mergedDisabled,
ref: ref,
loadingIcon: loadingIcon
}))));
});
switch_Switch.__ANT_SWITCH = true;
if (false) {}
/* harmony default export */ var es_switch = (switch_Switch);
/***/ })
}]);

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[23647,91056,18880,29642,96594,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[23647,91056,18880,29642,96594,1024,14882],{
/***/ 680:
/*!*******************************************************************************************************************!*\

@ -630,8 +630,6 @@ var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./src/pages/tasks/util.js
var util = __webpack_require__(18468);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(38296);
;// CONCATENATED MODULE: ./src/components/markdown-editor/upload-image/index.tsx
@ -641,7 +639,6 @@ var authority = __webpack_require__(38296);
var useForm = es_form/* default */.Z.useForm;
var style = {
width: 280,
@ -757,10 +754,6 @@ 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');
@ -1133,10 +1126,7 @@ 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) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
}
if ((data === null || data === void 0 ? void 0 : data.status) === 401) document.location.href = '/user/login';
}
});
} catch (e) {
@ -1215,10 +1205,7 @@ 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) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
}
if ((data === null || data === void 0 ? void 0 : data.status) === 401) document.location.href = '/user/login';
}
});
};

@ -0,0 +1,651 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[26334],{
/***/ 680:
/*!*******************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@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.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// 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.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@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 */ 75440);
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/omit */ 55405);
/* 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.43.0@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(75440);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/pickAttrs.js
var pickAttrs = __webpack_require__(47413);
// 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.5.1@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
var DownOutlined = __webpack_require__(78386);
// 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);
/***/ })
}]);

@ -284,7 +284,7 @@ var CertificateModal = function CertificateModal(_ref) {
style: {
marginLeft: '560px'
},
children: "\u5728\u7EBF\u7F16\u7A0B\u5B66\u9662"
children: "\u5934\u6B4C\u5728\u7EBF\u7F16\u7A0B\u5B66\u9662"
})]
})]
});
@ -388,7 +388,7 @@ var CertificateModal = function CertificateModal(_ref) {
children: data === null || data === void 0 || (_data$passed_date4 = data.passed_date) === null || _data$passed_date4 === void 0 ? void 0 : _data$passed_date4.slice(0, 4)
}), "\u5E74", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: data === null || data === void 0 || (_data$passed_date5 = data.passed_date) === null || _data$passed_date5 === void 0 ? void 0 : _data$passed_date5.slice(5, 7)
}), "\u6708\u5728\u5E73\u53F0\u5B8C\u6210\u4E86\u201C", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
}), "\u6708\u5728\u5934\u6B4C\u804C\u4E1A\u57F9\u8BAD\u5E73\u53F0\u5B8C\u6210\u4E86\u201C", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: data === null || data === void 0 ? void 0 : data.subject_name
}), "\u201D\u7684\u5168\u90E8\u8BFE\u7A0B\uFF0C\u6210\u7EE9\u4F18\u5F02\uFF0C\u51C6\u4E88\u7ED3\u4E1A!"]
})
@ -398,7 +398,7 @@ var CertificateModal = function CertificateModal(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CertificateModalmodules.date,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u6559\u7814\u4E2D\u5FC3"
children: "\u5934\u6B4C\u6559\u7814\u4E2D\u5FC3"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("b", {
children: ["\u53D1\u8BC1\u65E5\u671F\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: year

File diff suppressed because it is too large Load Diff

@ -1,787 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27155,1024,14882,44407],{
/***/ 50382:
/*!*****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@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.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// 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.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@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);
/***/ }),
/***/ 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.5.1@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
var EllipsisOutlined = __webpack_require__(94172);
// 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);
/***/ }),
/***/ 73782:
/*!*********************************************************************!*\
!*** ./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.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
;// 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.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@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.5.1@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
var EyeOutlined = __webpack_require__(50382);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/omit.js
var omit = __webpack_require__(55405);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/ref.js
var es_ref = __webpack_require__(25629);
// 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.5.1@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
var SearchOutlined = __webpack_require__(42653);
// 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.43.0@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(75440);
// 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);
/***/ })
}]);

File diff suppressed because it is too large Load Diff

@ -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 _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 _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 shixunHomeworks = _ref.shixunHomeworks,
loading = _ref.loading,
dispatch = _ref.dispatch,
@ -258,8 +258,6 @@ 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),
@ -472,7 +470,7 @@ var WorkList = function WorkList(_ref) {
//校验弹框
var setVerify = function setVerify(bodyData) {
var _ref2, _headerInfo$homework_;
var _ref2, _workList$homework_st;
if (bodyData.total_score === null) {
antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");
return;
@ -515,7 +513,7 @@ var WorkList = function WorkList(_ref) {
setDisabled(true);
getData();
dispatch({
type: 'shixunHomeworks/getShixunWorkHeadInfo',
type: 'shixunHomeworks/getWorkList',
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)
});
}
@ -531,7 +529,7 @@ var WorkList = function WorkList(_ref) {
return _ref3.apply(this, arguments);
};
}();
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("未发布"))) {
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("未发布"))) {
antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z.confirm({
title: "更新成绩",
content: "您改动了本次作业的关卡得分设置,这可能导致已完成作业的学生的成绩产生错误。点击“确定”按钮将保存最新设置并按最新设置更新全班成绩。",
@ -588,7 +586,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, headerInfo]);
}, [workSetting, workList]);
var unifiedLateTimeDisabled = workSetting === null || workSetting === void 0 ? void 0 : workSetting.anonymous_comment;
var groupLateTimeDisabled = function groupLateTimeDisabled(id) {
if (!id) {
@ -611,7 +609,7 @@ var WorkList = function WorkList(_ref) {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
flex: '1'
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
children: [(0,_utils_authority__WEBPACK_IMPORTED_MODULE_7__/* .isAdmin */ .GJ)() && disabled && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .ZP, {
children: [(0,_utils_authority__WEBPACK_IMPORTED_MODULE_7__/* .isAdmin */ .GJ)() && disabled && (workSetting === null || workSetting === void 0 ? void 0 : workSetting.can_edit) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .ZP, {
type: "primary",
size: "middle",
ghost: true,
@ -651,11 +649,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 || !(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),
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),
value: data.unified_setting,
onChange: function onChange(e) {
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("未发布"))) {
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("未发布"))) {
antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");
return;
}
@ -704,7 +702,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 : 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),
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),
style: {
width: 170
},
@ -811,7 +809,7 @@ var WorkList = function WorkList(_ref) {
})]
})
}), groupSettings && groupSettings.map(function (v, k) {
var _headerInfo$homework_6, _classroomList$Assist6, _findGroupItemById, _workSetting$group_se6;
var _workList$homework_st6, _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, {
@ -828,7 +826,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 ? 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),
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),
className: "ml20",
mode: "multiple",
style: {
@ -1135,7 +1133,7 @@ var WorkList = function WorkList(_ref) {
})]
})]
}) : repairSettings.map(function (v, k) {
var _headerInfo$homework_7;
var _workList$homework_st7;
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, {
@ -1147,7 +1145,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 || !(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),
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),
mode: "multiple",
style: {
width: 306

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[29642,91056,18880,96594,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[29642,91056,18880,96594,1024,14882],{
/***/ 680:
/*!*******************************************************************************************************************!*\

@ -2982,8 +2982,8 @@ var TrfList = function TrfList(_ref) {
function getMoopCase(id) {
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_2__/* .get */ .U2)("libraries/".concat(id, ".json"));
}
function getLibraryTags(params) {
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_2__/* .get */ .U2)('library_tags.json', params);
function getLibraryTags() {
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_2__/* .get */ .U2)('library_tags.json');
}
function removeAttachment(_x) {
return _removeAttachment.apply(this, arguments);
@ -3047,7 +3047,6 @@ 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; },
@ -3501,25 +3500,27 @@ var ExportCourseWorkListAppendix = /*#__PURE__*/(/* unused pure expression or su
}()));
var ExportPollsScores = /*#__PURE__*/function () {
var _ref11 = _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 _callee11(params) {
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 _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
showLoading();
_context11.next = 3;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFileIframe */ .QH)("", _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/polls/".concat(params.categoryId, "/commit_result.xlsx"));
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportPollsScores */ .MJ)(_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 3:
// const res = await exportPollsScores({ ...params });
// if (res.status === 0)
// await downLoadFileIframe(
// '',
// setUrlQuery({
// url:
// ENV.API_SERVER + `/api/polls/${params.categoryId}/commit_result.xlsx`,
// query: params,
// }),
// );
res = _context11.sent;
if (!(res.status === 0)) {
_context11.next = 7;
break;
}
_context11.next = 7;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFileIframe */ .QH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/polls/".concat(params.categoryId, "/commit_result.xlsx"),
query: params
}));
case 7:
hideLoading();
case 4:
case 8:
case "end":
return _context11.stop();
}
@ -3921,7 +3922,7 @@ var exportUserExerciseDetail = /*#__PURE__*/function () {
case 0:
_context30.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, "/consult_exercise.json"),
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"),
query: params
}));
case 2:
@ -4000,44 +4001,6 @@ var exportTaskPass = /*#__PURE__*/function () {
return _ref33.apply(this, arguments);
};
}();
var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
var _ref34 = _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 _callee34(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 _callee34$(_context34) {
while (1) switch (_context34.prev = _context34.next) {
case 0:
_context34.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 = _context34.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 _context34.stop();
}
}, _callee34);
}));
return function ExportCourseWorkListShixuns(_x38, _x39) {
return _ref34.apply(this, arguments);
};
}();
/***/ }),

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[26434],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[33582],{
/***/ 43329:
/*!********************************************************!*\
@ -370,9 +370,9 @@ var JoinClassroomModal = function JoinClassroomModal(_ref) {
/***/ }),
/***/ 26434:
/***/ 33582:
/*!******************************************************!*\
!*** ./src/components/Header/index.tsx + 14 modules ***!
!*** ./src/components/Header/index.tsx + 12 modules ***!
\******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -1145,7 +1145,6 @@ var JoinGraduationsModal_Page = function Page(_ref) {
var _excluded = ["homePage", "user", "globalSetting", "loading", "dispatch", "location"];
@ -1172,11 +1171,9 @@ var NavType = /*#__PURE__*/function (NavType) {
NavType["Projects"] = "projects";
NavType["Videos"] = "videos";
NavType["Topics"] = "topics";
NavType["Graduations"] = "graduations";
return NavType;
}(NavType || {});
var Join = function Join(_ref) {
var _globalSetting$settin, _globalSetting$settin2, _globalSetting$settin3, _globalSetting$settin4;
var homePage = _ref.homePage,
user = _ref.user,
globalSetting = _ref.globalSetting,
@ -1200,32 +1197,6 @@ var Join = function Join(_ref) {
_useState8 = slicedToArray_default()(_useState7, 2),
isJoinGraduations = _useState8[0],
setIsJoinGraduations = _useState8[1];
function isLinkHidden(navbar, link) {
var _iterator = createForOfIteratorHelper_default()(navbar),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var item = _step.value;
if (item.link === link) {
return item.hidden;
}
if (item.subitem && item.subitem.length > 0) {
if (isLinkHidden(item.subitem, link)) {
return true;
}
}
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
return false;
}
var isClassroomsHidden = isLinkHidden(((_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.navbar) || [], "/".concat(NavType.Classrooms));
var isShixunsHidden = isLinkHidden(((_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.navbar) || [], "/".concat(NavType.Shixuns));
var isPathsHidden = isLinkHidden(((_globalSetting$settin3 = globalSetting.setting) === null || _globalSetting$settin3 === void 0 ? void 0 : _globalSetting$settin3.navbar) || [], "/".concat(NavType.Paths));
var isGraduationsHidden = isLinkHidden(((_globalSetting$settin4 = globalSetting.setting) === null || _globalSetting$settin4 === void 0 ? void 0 : _globalSetting$settin4.navbar) || [], "/".concat(NavType.Graduations));
var handleJoinVerify = function handleJoinVerify(type) {
var _user$userInfo;
if (!(0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
@ -1256,35 +1227,35 @@ var Join = function Join(_ref) {
url && (window.location.href = url);
};
var JoinOverlay = function JoinOverlay(joinProps) {
var _user$userInfo3, _user$userInfo4, _globalSetting$settin5, _user$userInfo5, _user$userInfo6, _globalSetting$settin6, _user$userInfo7, _user$userInfo8, _globalSetting$settin7, _globalSetting$settin8, _user$userInfo9, _user$userInfo10, _user$userInfo11, _user$userInfo12, _user$userInfo13, _globalSetting$settin9, _user$userInfo14, _user$userInfo15, _user$userInfo16, _user$userInfo17, _user$userInfo18, _user$userInfo19, _globalSetting$settin10;
var _user$userInfo3, _user$userInfo4, _globalSetting$settin, _user$userInfo5, _user$userInfo6, _globalSetting$settin2, _user$userInfo7, _user$userInfo8, _globalSetting$settin3, _globalSetting$settin4, _user$userInfo9, _user$userInfo10, _user$userInfo11, _user$userInfo12, _user$userInfo13, _globalSetting$settin5, _user$userInfo14, _user$userInfo15, _user$userInfo16, _user$userInfo17, _user$userInfo18, _user$userInfo19, _globalSetting$settin6;
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
justify: "space-around",
className: "pt5 pb5",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
className: ((_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.user_identity) !== '学生' ? Joinmodules.joinCol : Joinmodules.hidden,
children: [((_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.user_identity) !== '学生' && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin5 = globalSetting.setting) !== null && _globalSetting$settin5 !== void 0 && _globalSetting$settin5.hide_course) && !isClassroomsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: [((_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.user_identity) !== '学生' && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin = globalSetting.setting) !== null && _globalSetting$settin !== void 0 && _globalSetting$settin.hide_course) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
return handleAddVerify('/classrooms/new');
},
children: (_user$userInfo5 = user.userInfo) !== null && _user$userInfo5 !== void 0 && _user$userInfo5.main_site ? '新建教学课堂' : '新建课堂'
})
})), ((_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.user_identity) !== '学生' && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin6 = globalSetting.setting) !== null && _globalSetting$settin6 !== void 0 && _globalSetting$settin6.hide_shixun) && (user === null || user === void 0 || (_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.is_shixun_marker) && !isShixunsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
})), ((_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.user_identity) !== '学生' && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin2 = globalSetting.setting) !== null && _globalSetting$settin2 !== void 0 && _globalSetting$settin2.hide_shixun) && (user === null || user === void 0 || (_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.is_shixun_marker) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
return handleAddVerify('/shixuns/new', VerifyType.Shixuns);
},
children: "\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE"
})
})), ((_user$userInfo8 = user.userInfo) === null || _user$userInfo8 === void 0 ? void 0 : _user$userInfo8.user_identity) !== '学生' && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin7 = globalSetting.setting) !== null && _globalSetting$settin7 !== void 0 && _globalSetting$settin7.hide_subject) && !isPathsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
})), ((_user$userInfo8 = user.userInfo) === null || _user$userInfo8 === void 0 ? void 0 : _user$userInfo8.user_identity) !== '学生' && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin3 = globalSetting.setting) !== null && _globalSetting$settin3 !== void 0 && _globalSetting$settin3.hide_subject) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
return handleAddVerify('/paths/new');
},
children: "\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B"
})
})), !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin8 = globalSetting.setting) !== null && _globalSetting$settin8 !== void 0 && _globalSetting$settin8.is_local) && ((_user$userInfo9 = user.userInfo) === null || _user$userInfo9 === void 0 ? void 0 : _user$userInfo9.main_site) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
})), !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin4 = globalSetting.setting) !== null && _globalSetting$settin4 !== void 0 && _globalSetting$settin4.is_local) && ((_user$userInfo9 = user.userInfo) === null || _user$userInfo9 === void 0 ? void 0 : _user$userInfo9.main_site) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
var _user$navigationInfo;
@ -1292,7 +1263,7 @@ var Join = function Join(_ref) {
},
children: "\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"
})
})), (user === null || user === void 0 || (_user$userInfo10 = user.userInfo) === null || _user$userInfo10 === void 0 ? void 0 : _user$userInfo10.identity) !== 'student' && !isGraduationsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
})), (user === null || user === void 0 || (_user$userInfo10 = user.userInfo) === null || _user$userInfo10 === void 0 ? void 0 : _user$userInfo10.identity) !== 'student' && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
onClick: function onClick() {
if (!(0,verifyLogin/* handleVerifyLogin */.o1)(dispatch)) return;
setIsNewGraduations(true);
@ -1301,14 +1272,14 @@ var Join = function Join(_ref) {
children: "\u65B0\u5EFA\u6BD5\u4E1A\u8BBE\u8BA1"
})
})), !((_user$userInfo11 = user.userInfo) !== null && _user$userInfo11 !== void 0 && _user$userInfo11.main_site) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [!isClassroomsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
return handleJoinVerify(VerifyType.Classrooms);
},
children: (_user$userInfo12 = user.userInfo) !== null && _user$userInfo12 !== void 0 && _user$userInfo12.main_site ? '加入教学课堂' : '加入课堂'
})
})), ((_user$userInfo13 = user.userInfo) === null || _user$userInfo13 === void 0 ? void 0 : _user$userInfo13.main_site) && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin9 = globalSetting.setting) !== null && _globalSetting$settin9 !== void 0 && _globalSetting$settin9.is_local) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
})), ((_user$userInfo13 = user.userInfo) === null || _user$userInfo13 === void 0 ? void 0 : _user$userInfo13.main_site) && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin5 = globalSetting.setting) !== null && _globalSetting$settin5 !== void 0 && _globalSetting$settin5.is_local) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
return handleJoinVerify(VerifyType.Projects);
@ -1323,21 +1294,21 @@ var Join = function Join(_ref) {
})
}), ((_user$userInfo16 = user.userInfo) === null || _user$userInfo16 === void 0 ? void 0 : _user$userInfo16.main_site) && /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
className: ((_user$userInfo17 = user.userInfo) === null || _user$userInfo17 === void 0 ? void 0 : _user$userInfo17.user_identity) !== '学生' ? Joinmodules.joinCol : Joinmodules.w90,
children: [!isClassroomsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
return handleJoinVerify(VerifyType.Classrooms);
},
children: (_user$userInfo18 = user.userInfo) !== null && _user$userInfo18 !== void 0 && _user$userInfo18.main_site ? '加入教学课堂' : '加入课堂'
})
})), ((_user$userInfo19 = user.userInfo) === null || _user$userInfo19 === void 0 ? void 0 : _user$userInfo19.main_site) && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin10 = globalSetting.setting) !== null && _globalSetting$settin10 !== void 0 && _globalSetting$settin10.is_local) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
})), ((_user$userInfo19 = user.userInfo) === null || _user$userInfo19 === void 0 ? void 0 : _user$userInfo19.main_site) && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin6 = globalSetting.setting) !== null && _globalSetting$settin6 !== void 0 && _globalSetting$settin6.is_local) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
return handleJoinVerify(VerifyType.Projects);
},
children: "\u52A0\u5165\u5F00\u53D1\u9879\u76EE"
})
})), !isGraduationsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
})), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
onClick: function onClick() {
if (!(0,verifyLogin/* handleVerifyLogin */.o1)(dispatch)) return;
setIsJoinGraduations(true);
@ -1414,7 +1385,6 @@ var env = __webpack_require__(15309);
var User_excluded = ["homePage", "user", "globalSetting", "loading", "dispatch", "shixunHomeworks", "location", "payload"];
@ -1450,16 +1420,10 @@ var User_NavType = /*#__PURE__*/function (NavType) {
NavType["Projects"] = "projects";
NavType["Videos"] = "videos";
NavType["Topics"] = "topics";
NavType["Competition"] = "competitions";
NavType["Engineering"] = "engineering";
NavType["Graduations"] = "graduations";
NavType["Paperlibrary"] = "paperlibrary";
NavType["Problemset"] = "problemset";
NavType["Dataset"] = "dataset";
return NavType;
}(User_NavType || {});
var User = function User(_ref) {
var _globalSetting$settin, _globalSetting$settin2, _globalSetting$settin3, _globalSetting$settin4, _globalSetting$settin5, _globalSetting$settin6, _globalSetting$settin7, _globalSetting$settin8, _globalSetting$settin9, _user$userInfo, _user$userInfo2, _user$userInfo3, _user$userInfo4, _user$userInfo5, _user$userInfo6;
var _find, _globalSetting$settin, _find2, _globalSetting$settin2, _find3, _globalSetting$settin3, _user$userInfo, _user$userInfo2, _user$userInfo3, _user$userInfo4, _user$userInfo5, _user$userInfo6;
var homePage = _ref.homePage,
user = _ref.user,
globalSetting = _ref.globalSetting,
@ -1470,37 +1434,15 @@ var User = function User(_ref) {
_ref$payload = _ref.payload,
payload = _ref$payload === void 0 ? {} : _ref$payload,
props = objectWithoutProperties_default()(_ref, User_excluded);
function isLinkHidden(navbar, link) {
var _iterator = createForOfIteratorHelper_default()(navbar),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var item = _step.value;
if (item.link === link) {
return item.hidden;
}
if (item.subitem && item.subitem.length > 0) {
if (isLinkHidden(item.subitem, link)) {
return true;
}
}
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
return false;
}
var isClassroomsHidden = isLinkHidden(((_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.navbar) || [], "/".concat(User_NavType.Classrooms));
var isShixunsHidden = isLinkHidden(((_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.navbar) || [], "/".concat(User_NavType.Shixuns));
var isPathsHidden = isLinkHidden(((_globalSetting$settin3 = globalSetting.setting) === null || _globalSetting$settin3 === void 0 ? void 0 : _globalSetting$settin3.navbar) || [], "/".concat(User_NavType.Paths));
var isCompetitionHidden = isLinkHidden(((_globalSetting$settin4 = globalSetting.setting) === null || _globalSetting$settin4 === void 0 ? void 0 : _globalSetting$settin4.navbar) || [], "/".concat(User_NavType.Competition));
var isEngineeringHidden = isLinkHidden(((_globalSetting$settin5 = globalSetting.setting) === null || _globalSetting$settin5 === void 0 ? void 0 : _globalSetting$settin5.navbar) || [], "/".concat(User_NavType.Engineering));
var isGraduationsHidden = isLinkHidden(((_globalSetting$settin6 = globalSetting.setting) === null || _globalSetting$settin6 === void 0 ? void 0 : _globalSetting$settin6.navbar) || [], "/".concat(User_NavType.Graduations));
var isPaperlibraryHidden = isLinkHidden(((_globalSetting$settin7 = globalSetting.setting) === null || _globalSetting$settin7 === void 0 ? void 0 : _globalSetting$settin7.navbar) || [], "/".concat(User_NavType.Paperlibrary));
var isProblemsetHidden = isLinkHidden(((_globalSetting$settin8 = globalSetting.setting) === null || _globalSetting$settin8 === void 0 ? void 0 : _globalSetting$settin8.navbar) || [], "/".concat(User_NavType.Problemset));
var isDatasetHidden = isLinkHidden(((_globalSetting$settin9 = globalSetting.setting) === null || _globalSetting$settin9 === void 0 ? void 0 : _globalSetting$settin9.navbar) || [], "/".concat(User_NavType.Dataset));
var isClassroomsHidden = (_find = (((_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.navbar) || []).find(function (item) {
return item.link === "/".concat(User_NavType.Classrooms);
})) === null || _find === void 0 ? void 0 : _find.hidden;
var isShixunsHidden = (_find2 = (((_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.navbar) || []).find(function (item) {
return item.link === "/".concat(User_NavType.Shixuns);
})) === null || _find2 === void 0 ? void 0 : _find2.hidden;
var isPathsHidden = (_find3 = (((_globalSetting$settin3 = globalSetting.setting) === null || _globalSetting$settin3 === void 0 ? void 0 : _globalSetting$settin3.navbar) || []).find(function (item) {
return item.link === "/".concat(User_NavType.Paths);
})) === null || _find3 === void 0 ? void 0 : _find3.hidden;
var isPaperlibraryShow = ((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.admin) || ((_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.business) || ((_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.is_shixun_marker) || ((_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.is_teacher) || ((_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.user_identity) !== '学生';
var isCollegeManageShow = (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.is_school_manage;
var DropdownMenu = function DropdownMenu() {
@ -1543,7 +1485,7 @@ var User = function User(_ref) {
to: "/users/".concat((_user$userInfo14 = user.userInfo) === null || _user$userInfo14 === void 0 ? void 0 : _user$userInfo14.login, "/teach-group"),
children: "\u6211\u7684\u6559\u7814\u56E2\u961F"
})
}), !isCompetitionHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/users/".concat((_user$userInfo15 = user.userInfo) === null || _user$userInfo15 === void 0 ? void 0 : _user$userInfo15.login, "/competitions"),
children: "\u6211\u7684\u7ADE\u8D5B\u7BA1\u7406"
@ -1553,7 +1495,7 @@ var User = function User(_ref) {
to: "/users/".concat((_user$userInfo17 = user.userInfo) === null || _user$userInfo17 === void 0 ? void 0 : _user$userInfo17.login, "/vspaces"),
children: "\u6211\u7684\u865A\u62DF\u793E\u533A"
})
}), ((_user$userInfo18 = user.userInfo) === null || _user$userInfo18 === void 0 ? void 0 : _user$userInfo18.user_identity) !== '学生' && !isProblemsetHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
}), ((_user$userInfo18 = user.userInfo) === null || _user$userInfo18 === void 0 ? void 0 : _user$userInfo18.user_identity) !== '学生' && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
if (!(0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
@ -1563,7 +1505,7 @@ var User = function User(_ref) {
},
children: "\u8BD5\u9898\u5E93"
})
}), isPaperlibraryShow && !isPaperlibraryHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
}), isPaperlibraryShow && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
if (!(0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
@ -1682,7 +1624,7 @@ var User = function User(_ref) {
})
});
} else {
var _globalSetting$settin10;
var _globalSetting$settin4;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "font15 ".concat(globalSetting.isIlearning ? Usermodules.login : ""),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
@ -1697,7 +1639,7 @@ var User = function User(_ref) {
});
},
children: "\u767B\u5F55"
}), !((_globalSetting$settin10 = globalSetting.setting) !== null && _globalSetting$settin10 !== void 0 && _globalSetting$settin10.close_register) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
}), !((_globalSetting$settin4 = globalSetting.setting) !== null && _globalSetting$settin4 !== void 0 && _globalSetting$settin4.close_register) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml5 mr5",
children: "|"
@ -1932,123 +1874,6 @@ var SvgLogo = function SvgLogo(props) {
/* harmony default export */ var logo = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNi41NzggOC44Yy4xNjItLjY4Mi4zLS43MzcuOTgyLS43MzcuNjg5IDAgLjc5My4wNTUuNjMyLjczNy0uMTY0LjY4OS0uMjk4Ljc2LS45ODcuNzYtLjY4MiAwLS43OS0uMDcxLS42MjctLjc2Wm0tLjIyMiAxLjE5OGgxLjQ4OGwtMS4wMDQgNC4yM0g1LjM1MmwxLjAwNC00LjIzWk04LjQ2NSAxMS4yNDRoMi40NzRsLS4yNzUgMS4xNkg4LjE4OXpNMTUuMTIgMTIuODg5bC0uMzE3IDEuMzRIMTEuMjNsMS4yOTEtNS40MzdoMS41NmwtLjk3NCA0LjA5N3pNMTguNjg4IDExLjU1Yy4wNzYtLjMyMi4wMS0uNTQxLS40NTktLjU0MS0uNTAxIDAtLjc0OC4xMTctLjkwNS42NDJsMS4zNjQtLjEwMlptMS4wNDEuOTU1LTIuNjM2LjE1NmMtLjAwMi4zNjkuMy41MTcuODQuNTE3LjU3MSAwIDEuMjU5LS4xNTUgMS41NDUtLjMwNWwtLjI2IDEuMDk3Yy0uMzAxLjE4LTEuMDEyLjMzNy0xLjg1LjMzNy0xLjMzMiAwLTIuMDM5LS40NTQtMS42MjYtMi4xOTQuNDEzLTEuNzM5IDEuMzM2LTIuMTkzIDIuNzM4LTIuMTkzIDEuNTA0IDAgMS43NjIuNjI2IDEuNDU1IDEuOTItLjA4Mi4zNDQtLjE2Ni42MDItLjIwNi42NjVaTTIyLjgwNiAxMi45MzZsLjA3OS0uMzNoLS41OTVjLS40NyAwLS42MzYuMDcxLS42OTUuMzIyLS4wNTIuMjIuMDk4LjI3NC40MDQuMjc0LjM2OCAwIC42NTUtLjExNy44MDctLjI2Nm0xLjg1Ny0xLjU4My0uNjgzIDIuODc1aC0xLjM0N2wtLjAyNS0uMzkxYy0uMTc1LjIxMi0uNTk2LjQ3LTEuMzQuNDctLjg4NSAwLTEuMzQ3LS40LTEuMTMxLTEuMzA4LjIzLS45NzIuODcyLTEuMzMyIDIuMTAxLTEuMzMyaC44N2MuMDgtLjQzLS4wNjMtLjQ5NC0uNjgyLS40OTQtLjMwNSAwLS42LjAyNC0uODg1LjA3bC4yOTUtMS4yNDVjLjMzNC0uMDU0Ljc5Mi0uMDcgMS4wOTgtLjA3IDEuNDggMCAxLjk2My40MzggMS43MjkgMS40MjVNMjguNjkxIDkuOTJsLS4zNDYgMS4zMjRoLS4xMThjLS40OTMgMC0xLjA1NS4xODgtMS4yNTcuNzc2bC0uNTI1IDIuMjA4aC0xLjQ4OGwxLjAwNS00LjIzaDEuNDg4bC0uMTc1LjczN2MuNDEtLjY3NC44MjgtLjgxNSAxLjMyOS0uODE1aC4wODdaTTMzLjA4NCAxMS4zNjlsLS42OCAyLjg2aC0xLjQ4OGwuNi0yLjUyM2MuMTI0LS41MjUuMDEyLS42MTEtLjQ1OC0uNjExLS4zNzYgMC0uNTcyLjEzMy0uNjg1LjM0NWwtLjY2MyAyLjc4OGgtMS40ODhsMS4wMDUtNC4yM2gxLjQ4OGwtLjEwMi40MzFjLjI4LS4yOS43NC0uNTEgMS40My0uNTEuOTkzIDAgMS4yODUuNDI0IDEuMDQxIDEuNDVNMzQuNTA3IDguOGMuMTYyLS42ODIuMy0uNzM3Ljk4Mi0uNzM3LjY4OCAwIC43OTMuMDU1LjYzMS43MzctLjE2My42ODktLjI5Ny43Ni0uOTg3Ljc2LS42ODEgMC0uNzktLjA3MS0uNjI2LS43NlptLS4yMjIgMS4xOThoMS40ODhsLTEuMDA0IDQuMjNIMzMuMjhsMS4wMDQtNC4yM1oiIGZpbGw9IiMxOTZFRkQiLz48cGF0aCBkPSJNMzQuNTA3IDguOGMuMTYyLS42ODIuMy0uNzM3Ljk4Mi0uNzM3LjY4OCAwIC43OTMuMDU1LjYzMS43MzctLjE2My42ODktLjI5Ny43Ni0uOTg3Ljc2LS42ODEgMC0uNzktLjA3MS0uNjI2LS43NlptLS4yMjIgMS4xOThoMS40ODhsLTEuMDA0IDQuMjNIMzMuMjhsMS4wMDQtNC4yM1pNNDAuNTIyIDExLjM2OWwtLjY4IDIuODZoLTEuNDg4bC42LTIuNTIzYy4xMjQtLjUyNS4wMTEtLjYxMS0uNDU4LS42MTEtLjM3NiAwLS41NzMuMTMzLS42ODUuMzQ1bC0uNjYzIDIuNzg4SDM1LjY2bDEuMDA0LTQuMjNoMS40ODlsLS4xMDIuNDMxYy4yOC0uMjkuNzQtLjUxIDEuNDI4LS41MS45OTYgMCAxLjI4Ni40MjQgMS4wNDMgMS40NSIgZmlsbD0iIzE5NkVGRCIvPjxwYXRoIGQ9Ik00NC4wMjUgMTIuMDcxYy0uMTczLjcyMS0uMzE3IDEuMTMyLTEuMDIzIDEuMTMyLS42MDYgMC0uNTc3LS41MTktLjQzMy0xLjEzMi4xMzctLjU3LjM1My0xLjA4OC45NTktMS4wODguNzE0IDAgLjY2My40MS40OTcgMS4wODhabS40MjUtMi4wNzYtLjA4Ni4zNjhjLS4wOTQtLjMxLS4zODItLjQ0LTEuMTAzLS40NC0xLjM0IDAtMS45MTcuOTk1LTIuMTk5IDIuMTQ4LS4zMDIgMS4yOS0uMTY1IDIuMTU2IDEuMTc1IDIuMTU2LjcxNCAwIDEuMDg5LS4xOCAxLjMyLS40ODNsLS4wMjIuMTA4Yy0uMTg3Ljc4Ni0uNDEgMi4wMDQtMS4zMiAyLjI1Ni0uNjYyLjE4OC0xLjQ2My0uMzM5LTIuMDktLjU0OGExMy45ODEgMTMuOTgxIDAgMCAwLTIuNDA4LS41OWMtMS45MTctLjI5Ni0zLjg3OC0uMTc0LTUuNzMuNDEtMy4yODcgMS4wNDItNi43NzUgMS4zMTUtMTAuMjA1IDEuMzUyLTMuNTA5LjAzNy02Ljk0My0uMDUyLTEwLjM3NC0uOTA3LTEuMDcxLS4yNjctMi4wODQtLjgyNS0zLjE2Ny0xLjAwMS0xLjc0LS4yODQtMy45NC40NjUtNS4yMi0xLjE2LS41ODQtLjczNS0uOTE1LTEuNi0uOTE1LTIuNTE1IDAtMS43NjcgMS4yMjUtMy4zMjQgMy4wODUtNC4yMjVsLjU5MS0uNzY0Yy0uMTEuMTQ1LTEuMTc0LjIxOC0xLjM5Ny4yODVhOC40NzggOC40NzggMCAwIDAtMS41MjQuNjE3Yy0uOTM2LjQ5MS0xLjgyIDEuMTc4LTIuMzc0IDIuMDkzLTEuMDAzIDEuNjU0LS4zNDYgMy44MDkuOTY4IDUuMTA5LjkxNC45MDMgMi4xMjIgMS40NTQgMy4zNjggMS43MiAxLjI5OC4yNzcgMi42ODQtLjE2NyAzLjk0My4yNzcgMS4xMzQuNCAyLjE0NC44MzEgMy4zNDIgMS4wNzVhMzEuNDIgMzEuNDIgMCAwIDAgMy44NzQuNTI2YzIuOTMxLjIyNCA1Ljg1OS4wODMgOC43OS0uMDU1YTI5Ljg4NCAyOS44ODQgMCAwIDAgNy41Ni0xLjMzMWMxLjgxNy0uNTc3IDMuNzYzLS42NDIgNS42My0uMjgxIDEuNDcxLjI4IDMuMTg3IDEuNDEzIDQuNjg2Ljk0NCAxLjQyOC0uNDQgMi4wMzMtMS45MzIgMi4zNS0zLjI2NWwuOTIzLTMuODc5aC0xLjQ3WiIgZmlsbD0iIzIzREQ3RiIvPjxwYXRoIGQ9Im0yMC4zODcgNC4xNi0uNzM1LjA3OWMtMS4yODMtMS42ODctMy41MTgtMi43OTctNi4wNDgtMi43OTctMy4xOCAwLTUuODc2IDEuNzUyLTYuODM0IDQuMThsLTEuODEuMTk2QzUuMTcgMi41OCA4LjYzNyAwIDEyLjg4MyAwYzMuNDg5IDAgNi40NTIgMS43MzcgNy41MDQgNC4xNiIgZmlsbD0iIzE5NkVGRCIvPjxwYXRoIGQ9Ik0yOC4wODYgNi40ODhoLTIuNTA4Yy0xLjAwMy0xLjA3NC0zLjA4Ni0xLjgwMi01LjQ4Ni0xLjgwMi0yLjQwOCAwLTQuNDkxLjczNS01LjQ5NCAxLjgxLjczNi0xLjM2MyAzLjA0My0yLjU2NyA1Ljg3Ni0yLjkyIDMuNDQ2LS40MjYgNy4xMzcgMS4yMSA3LjYxMiAyLjkxMiIgZmlsbD0iIzE5NkVGRCIvPjwvZz48L3N2Zz4=");
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
var lodash = __webpack_require__(89392);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/CloseCircleOutlined.js + 1 modules
var CloseCircleOutlined = __webpack_require__(64711);
;// CONCATENATED MODULE: ./src/components/Header/components/DelayTip/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var DelayTipmodules = ({"tip":"tip___a6MfI"});
;// CONCATENATED MODULE: ./src/components/Header/components/DelayTip/index.tsx
var DelayTip_Type = /*#__PURE__*/function (Type) {
Type[Type["Professor"] = 1] = "Professor";
Type[Type["AssistantProfessor"] = 2] = "AssistantProfessor";
Type[Type["Student"] = 3] = "Student";
return Type;
}(DelayTip_Type || {});
var DelayTip = function DelayTip(_ref) {
var _globalSetting$infoDa, _globalSetting$infoDa2;
var visible = _ref.visible,
user = _ref.user,
_ref$onCancel = _ref.onCancel,
onCancel = _ref$onCancel === void 0 ? function () {} : _ref$onCancel,
dispatch = _ref.dispatch,
globalSetting = _ref.globalSetting;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
toastVisible = _useState2[0],
setToastVisible = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)({
name: '',
phone: ''
}),
_useState4 = slicedToArray_default()(_useState3, 2),
info = _useState4[0],
setInfo = _useState4[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _user$userInfo;
if (user !== null && user !== void 0 && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.login) {
var _localStorage, _user$userInfo2;
var delaytip = JSON.parse((_localStorage = localStorage) === null || _localStorage === void 0 ? void 0 : _localStorage.getItem('delaytip_class'));
console.log(delaytip);
if (delaytip && delaytip !== null && delaytip !== void 0 && delaytip.isShow && (delaytip === null || delaytip === void 0 ? void 0 : delaytip.login) === (user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login)) {
setToastVisible(true);
setInfo({
name: delaytip === null || delaytip === void 0 ? void 0 : delaytip.name,
phone: delaytip === null || delaytip === void 0 ? void 0 : delaytip.phone
});
}
}
}, [user === null || user === void 0 ? void 0 : user.userInfo]);
var handleCancel = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
onCancel();
case 1:
case "end":
return _context.stop();
}
}, _callee);
}));
return function handleCancel() {
return _ref2.apply(this, arguments);
};
}();
var handleIgnore = function handleIgnore() {
var _localStorage2;
var delaytip = JSON.parse((_localStorage2 = localStorage) === null || _localStorage2 === void 0 ? void 0 : _localStorage2.getItem('delaytip_class'));
localStorage.setItem('delaytip_class', JSON.stringify(objectSpread2_default()(objectSpread2_default()({}, delaytip), {}, {
isShow: false
})));
setToastVisible(false);
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: toastVisible && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
background: 'rgba(255,24,24,0.1)',
color: '#E30000'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: DelayTipmodules.tip,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-tishi9 font14 mr10",
style: {
color: '#E30000'
}
}), "\u7531\u4E8E\u5B66\u6821\u7CFB\u7EDF\u786C\u4EF6\u8D44\u6E90\u539F\u56E0\uFF0C\u5F53\u524D\u7CFB\u7EDF\u652F\u6301\u4EBA\u6570\u5DF2\u8FBE\u5230\u4E0A\u9650\uFF0C\u4E3A\u4E86\u907F\u514D\u5F71\u54CD\u540E\u7EED\u6559\u5B66\u6D3B\u52A8\uFF0C\u8BF7\u5C3D\u5FEB\u8054\u7CFB\u8FD0\u7EF4\u6559\u5E08\uFF08".concat(globalSetting === null || globalSetting === void 0 || (_globalSetting$infoDa = globalSetting.infoData) === null || _globalSetting$infoDa === void 0 ? void 0 : _globalSetting$infoDa.name, "\uFF09\uFF0C\u8054\u7CFB\u65B9\u5F0F\uFF1A").concat(globalSetting === null || globalSetting === void 0 || (_globalSetting$infoDa2 = globalSetting.infoData) === null || _globalSetting$infoDa2 === void 0 ? void 0 : _globalSetting$infoDa2.phone)]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleOutlined/* default */.Z, {
onClick: handleIgnore,
style: {
color: '#165dff',
fontSize: 16
}
})
})]
})
})
});
};
/* harmony default export */ var components_DelayTip = ((0,_umi_production_exports.connect)(function (_ref3) {
var user = _ref3.user,
globalSetting = _ref3.globalSetting;
return {
user: user,
globalSetting: globalSetting
};
})(DelayTip));
;// CONCATENATED MODULE: ./src/components/Header/index.tsx
@ -2076,7 +1901,6 @@ var Header = layout/* default */.Z.Header;
var Search = input/* default */.Z.Search;
function getCourseParam() {
var _type$, _type$2;
@ -2100,7 +1924,7 @@ function getCourseParam() {
}
var Header_showLinks = ['/', '/classrooms', '/account/profile', '/account/profile/edit', '/classrooms/new'];
var HeaderComponents = function HeaderComponents(_ref) {
var _globalSetting$settin5;
var _globalSetting$settin4;
var homePage = _ref.homePage,
user = _ref.user,
globalSetting = _ref.globalSetting,
@ -2154,7 +1978,7 @@ var HeaderComponents = function HeaderComponents(_ref) {
//筛选头部导航数据学生账号不展示试卷库hidden为true的需要隐藏
var visibleNavBar = (0,lodash.cloneDeep)(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.navbar); //登录跳转不加这个会渲染以前的数据
visibleNavBar = (_visibleNavBar = visibleNavBar) === null || _visibleNavBar === void 0 ? void 0 : _visibleNavBar.filter(function (item) {
return !(item !== null && item !== void 0 && item.hidden) && !((0,authority/* isCommonStudent */.JA)() && (item === null || item === void 0 ? void 0 : item.link) === '/paperlibrary');
return !(item !== null && item !== void 0 && item.hidden) && !((0,authority/* isCommonStudent */.JA)() && item.link === '/paperlibrary');
});
var _iterator = createForOfIteratorHelper_default()(visibleNavBar),
_step;
@ -2163,7 +1987,7 @@ var HeaderComponents = function HeaderComponents(_ref) {
var visibleItem = _step.value;
if (visibleItem.subitem) {
visibleItem.subitem = visibleItem.subitem.filter(function (item) {
return !(item !== null && item !== void 0 && item.hidden) && !((0,authority/* isCommonStudent */.JA)() && (item === null || item === void 0 ? void 0 : item.link) === '/paperlibrary');
return !(item !== null && item !== void 0 && item.hidden) && !((0,authority/* isCommonStudent */.JA)() && item.link === '/paperlibrary');
});
}
}
@ -2174,9 +1998,9 @@ var HeaderComponents = function HeaderComponents(_ref) {
}
var hasMatchedUrl = false;
(_visibleNavBar2 = visibleNavBar) === null || _visibleNavBar2 === void 0 || _visibleNavBar2.map(function (val, key) {
var _location$pathname, _val$link, _val$subitem;
var _location$pathname, _val$link, _val$link$indexOf, _val$subitem;
var path = '/' + ((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[1]);
if ((val === null || val === void 0 ? void 0 : val.link) === path || (val === null || val === void 0 || (_val$link = val.link) === null || _val$link === void 0 ? void 0 : _val$link.indexOf(path)) > -1) {
if (val.link === path || ((_val$link = val.link) === null || _val$link === void 0 || (_val$link$indexOf = _val$link.indexOf) === null || _val$link$indexOf === void 0 ? void 0 : _val$link$indexOf.call(_val$link, path)) > -1) {
setActiveKey(val === null || val === void 0 ? void 0 : val.link);
(0,util/* setDocumentTitle */.Dk)(dealStr(val === null || val === void 0 ? void 0 : val.name));
setNavBar(footerDeal(key, {
@ -2186,9 +2010,8 @@ var HeaderComponents = function HeaderComponents(_ref) {
hasMatchedUrl = true;
}
if (path == '/') {
var _globalSetting$settin2;
setActiveKey('');
(0,util/* setDocumentTitle */.Dk)(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.name);
(0,util/* setDocumentTitle */.Dk)('首页');
}
if (val !== null && val !== void 0 && (_val$subitem = val.subitem) !== null && _val$subitem !== void 0 && _val$subitem.length) {
var _val$subitem2;
@ -2211,14 +2034,14 @@ var HeaderComponents = function HeaderComponents(_ref) {
}
}, [globalSetting === null || globalSetting === void 0 ? void 0 : globalSetting.setting, user]);
var logoUrl = (0,_react_17_0_2_react.useMemo)(function () {
var _globalSetting$settin3;
if (!!(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin3 = globalSetting.setting) !== null && _globalSetting$settin3 !== void 0 && _globalSetting$settin3.nav_logo_url)) {
var _globalSetting$settin4;
return "".concat(env/* default */.Z.IMG_SERVER, "/").concat(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin4 = globalSetting.setting) === null || _globalSetting$settin4 === void 0 ? void 0 : _globalSetting$settin4.nav_logo_url);
var _globalSetting$settin2;
if (!!(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin2 = globalSetting.setting) !== null && _globalSetting$settin2 !== void 0 && _globalSetting$settin2.nav_logo_url)) {
var _globalSetting$settin3;
return "".concat(env/* default */.Z.IMG_SERVER, "/").concat(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin3 = globalSetting.setting) === null || _globalSetting$settin3 === void 0 ? void 0 : _globalSetting$settin3.nav_logo_url);
} else {
return "".concat(env/* default */.Z.IMG_SERVER, "/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime());
}
}, [globalSetting === null || globalSetting === void 0 || (_globalSetting$settin5 = globalSetting.setting) === null || _globalSetting$settin5 === void 0 ? void 0 : _globalSetting$settin5.nav_logo_url]);
}, [globalSetting === null || globalSetting === void 0 || (_globalSetting$settin4 = globalSetting.setting) === null || _globalSetting$settin4 === void 0 ? void 0 : _globalSetting$settin4.nav_logo_url]);
function onGlobalSearch(value) {
_umi_production_exports.history.push('/search?value=' + value);
}
@ -2322,7 +2145,7 @@ var HeaderComponents = function HeaderComponents(_ref) {
return str;
};
if (globalSetting.showHeader && globalSetting.showHeaderFooter) {
var _globalSetting$settin6, _globalSetting$settin7, _globalSetting$settin8, _user$userInfo, _user$userInfo2, _user$navigationInfo;
var _globalSetting$settin5, _globalSetting$settin6, _globalSetting$settin7, _user$userInfo, _user$userInfo2, _user$navigationInfo;
return (
/*#__PURE__*/
//style={{background:`${location.pathname=='/training'?'rgba(0,0,0,0)':''}`}}
@ -2331,7 +2154,7 @@ var HeaderComponents = function HeaderComponents(_ref) {
background: "".concat(location.pathname == '/training' ? 'rgba(0,0,0,0)' : '')
},
className: "".concat(globalSetting.isIlearning ? Headermodules["header-iearning"] : Headermodules.header, " ").concat(globalSetting.showHeaderFixed ? Headermodules.headerFixed : ''),
children: [(globalSetting === null || globalSetting === void 0 ? void 0 : globalSetting.showTip) && /*#__PURE__*/(0,jsx_runtime.jsx)(components_DelayTip, {}), /*#__PURE__*/(0,jsx_runtime.jsxs)(Header, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(Header, {
className: "header",
style: {
background: "".concat(location.pathname == '/training' ? 'rgba(0,0,0,0)' : ''),
@ -2339,7 +2162,7 @@ var HeaderComponents = function HeaderComponents(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: Headermodules['edu-menu'],
children: [(!!globalSetting.isIlearning || !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin6 = globalSetting.setting) !== null && _globalSetting$settin6 !== void 0 && _globalSetting$settin6.main_site) && !!(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin7 = globalSetting.setting) !== null && _globalSetting$settin7 !== void 0 && _globalSetting$settin7.navbar)) && /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
children: [(!!globalSetting.isIlearning || !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin5 = globalSetting.setting) !== null && _globalSetting$settin5 !== void 0 && _globalSetting$settin5.main_site) && !!(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin6 = globalSetting.setting) !== null && _globalSetting$settin6 !== void 0 && _globalSetting$settin6.navbar)) && /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
style: {
display: 'flex',
alignItems: 'center'
@ -2355,7 +2178,7 @@ var HeaderComponents = function HeaderComponents(_ref) {
to: "/",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: Headermodules.logo,
title: (_globalSetting$settin8 = globalSetting.setting) === null || _globalSetting$settin8 === void 0 ? void 0 : _globalSetting$settin8.name,
title: (_globalSetting$settin7 = globalSetting.setting) === null || _globalSetting$settin7 === void 0 ? void 0 : _globalSetting$settin7.name,
src: logoUrl || logo
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {

@ -81,6 +81,8 @@ var Knowledge = function Knowledge(_ref) {
var handleChange = function handleChange(e, valuesmap) {
if (e) {
//获取选中的数据
// setValues([valuesmap.key])
// onChange([valuesmap.key]);
setValues(toConsumableArray_default()(valuesmap));
onChange(toConsumableArray_default()(valuesmap));
} else {
@ -179,6 +181,7 @@ var Knowledge = function Knowledge(_ref) {
_value2 = selectvalues;
_value2.push(res.tag_discipline_id);
onChange(toConsumableArray_default()(_value2));
// setValues([res.tag_discipline_id])
setValues(toConsumableArray_default()(_value2));
onChange(toConsumableArray_default()(_value2));
}

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34765,78169,58268,25473,81120,91056,18880,29642,96594,1024,14882,27155,44407,52708,11021],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34765,78169,58268,25473,81120,91056,18880,29642,96594,1024,14882,52708,11021],{
/***/ 71371:
/*!********************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[35019,84360,21321,93826,38660,1024,14882,27155,44407,11021],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[35019,84360,21321,93826,38660,1024,14882,11021],{
/***/ 50382:
/*!*****************************************************************************************************!*\

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[37873,91056,18880,29642,96594,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[37873,91056,18880,29642,96594,1024,14882],{
/***/ 680:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38660,84360,21321,93826,35019,1024,14882,27155,44407,11021],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38660,84360,21321,93826,35019,1024,14882,11021],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[39929,16351,35840,92611,57071,98962,11021],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[39929,21995,16351,35840,92611,57071,98962,11021],{
/***/ 50382:
/*!*****************************************************************************************************!*\

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[41339,49166,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[41339,49166,1024,14882],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[43213,84360,7385,21642,60499,92952,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[43213,84360,7385,21642,60499,92952,1024,14882],{
/***/ 27385:
/*!*******************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[89426],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[44191],{
/***/ 680:
/*!*******************************************************************************************************************!*\
@ -46,6 +46,52 @@ if (false) {}
/***/ }),
/***/ 14988:
/*!*******************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/RightOutlined.js + 1 modules ***!
\*******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_RightOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// 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/RightOutlined.js
// This icon file is generated automatically.
var RightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, "name": "right", "theme": "outlined" };
/* harmony default export */ var asn_RightOutlined = (RightOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/RightOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var RightOutlined_RightOutlined = function RightOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_RightOutlined
}));
};
/**![right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTc2NS43IDQ4Ni44TDMxNC45IDEzNC43QTcuOTcgNy45NyAwIDAwMzAyIDE0MXY3Ny4zYzAgNC45IDIuMyA5LjYgNi4xIDEyLjZsMzYwIDI4MS4xLTM2MCAyODEuMWMtMy45IDMtNi4xIDcuNy02LjEgMTIuNlY4ODNjMCA2LjcgNy43IDEwLjQgMTIuOSA2LjNsNDUwLjgtMzUyLjFhMzEuOTYgMzEuOTYgMCAwMDAtNTAuNHoiIC8+PC9zdmc+) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(RightOutlined_RightOutlined);
if (false) {}
/* harmony default export */ var icons_RightOutlined = (RefIcon);
/***/ }),
/***/ 77578:
/*!**********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/_util/getRenderPropValue.js ***!
@ -523,502 +569,31 @@ const genWireframeStyle = token => {
/***/ }),
/***/ 78673:
/*!**********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/switch/index.js + 2 modules ***!
\**********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/***/ 8378:
/*!*******************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/collapse.js ***!
\*******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ es_switch; }
});
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/LoadingOutlined.js + 1 modules
var LoadingOutlined = __webpack_require__(42141);
// 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/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(24018);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(54099);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(63011);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/hooks/useMergedState.js
var useMergedState = __webpack_require__(71366);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/KeyCode.js
var KeyCode = __webpack_require__(20287);
;// CONCATENATED MODULE: ./node_modules/_rc-switch@4.1.0@rc-switch/es/index.js
var _excluded = ["prefixCls", "className", "checked", "defaultChecked", "disabled", "loadingIcon", "checkedChildren", "unCheckedChildren", "onClick", "onChange", "onKeyDown"];
var Switch = /*#__PURE__*/_react_17_0_2_react.forwardRef(function (_ref, ref) {
var _classNames;
var _ref$prefixCls = _ref.prefixCls,
prefixCls = _ref$prefixCls === void 0 ? 'rc-switch' : _ref$prefixCls,
className = _ref.className,
checked = _ref.checked,
defaultChecked = _ref.defaultChecked,
disabled = _ref.disabled,
loadingIcon = _ref.loadingIcon,
checkedChildren = _ref.checkedChildren,
unCheckedChildren = _ref.unCheckedChildren,
onClick = _ref.onClick,
onChange = _ref.onChange,
onKeyDown = _ref.onKeyDown,
restProps = (0,objectWithoutProperties/* default */.Z)(_ref, _excluded);
var _useMergedState = (0,useMergedState/* default */.Z)(false, {
value: checked,
defaultValue: defaultChecked
}),
_useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
innerChecked = _useMergedState2[0],
setInnerChecked = _useMergedState2[1];
function triggerChange(newChecked, event) {
var mergedChecked = innerChecked;
if (!disabled) {
mergedChecked = newChecked;
setInnerChecked(mergedChecked);
onChange === null || onChange === void 0 ? void 0 : onChange(mergedChecked, event);
}
return mergedChecked;
}
function onInternalKeyDown(e) {
if (e.which === KeyCode/* default */.Z.LEFT) {
triggerChange(false, e);
} else if (e.which === KeyCode/* default */.Z.RIGHT) {
triggerChange(true, e);
}
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
}
function onInternalClick(e) {
var ret = triggerChange(!innerChecked, e);
// [Legacy] trigger onClick with value
onClick === null || onClick === void 0 ? void 0 : onClick(ret, e);
}
var switchClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-checked"), innerChecked), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), _classNames));
return /*#__PURE__*/_react_17_0_2_react.createElement("button", (0,esm_extends/* default */.Z)({}, restProps, {
type: "button",
role: "switch",
"aria-checked": innerChecked,
disabled: disabled,
className: switchClassName,
ref: ref,
onKeyDown: onInternalKeyDown,
onClick: onInternalClick
}), loadingIcon, /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: "".concat(prefixCls, "-inner")
}, /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: "".concat(prefixCls, "-inner-checked")
}, checkedChildren), /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: "".concat(prefixCls, "-inner-unchecked")
}, unCheckedChildren)));
});
Switch.displayName = 'Switch';
/* harmony default export */ var es = (Switch);
// 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/config-provider/DisabledContext.js
var DisabledContext = __webpack_require__(1684);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js
var useSize = __webpack_require__(19716);
// 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/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/switch/style/index.js
const genSwitchSmallStyle = token => {
const {
componentCls,
trackHeightSM,
trackPadding,
trackMinWidthSM,
innerMinMarginSM,
innerMaxMarginSM,
handleSizeSM
} = token;
const switchInnerCls = `${componentCls}-inner`;
return {
[componentCls]: {
[`&${componentCls}-small`]: {
minWidth: trackMinWidthSM,
height: trackHeightSM,
lineHeight: `${trackHeightSM}px`,
[`${componentCls}-inner`]: {
paddingInlineStart: innerMaxMarginSM,
paddingInlineEnd: innerMinMarginSM,
[`${switchInnerCls}-checked`]: {
marginInlineStart: `calc(-100% + ${handleSizeSM + trackPadding * 2}px - ${innerMaxMarginSM * 2}px)`,
marginInlineEnd: `calc(100% - ${handleSizeSM + trackPadding * 2}px + ${innerMaxMarginSM * 2}px)`
},
[`${switchInnerCls}-unchecked`]: {
marginTop: -trackHeightSM,
marginInlineStart: 0,
marginInlineEnd: 0
}
},
[`${componentCls}-handle`]: {
width: handleSizeSM,
height: handleSizeSM
},
[`${componentCls}-loading-icon`]: {
top: (handleSizeSM - token.switchLoadingIconSize) / 2,
fontSize: token.switchLoadingIconSize
},
[`&${componentCls}-checked`]: {
[`${componentCls}-inner`]: {
paddingInlineStart: innerMinMarginSM,
paddingInlineEnd: innerMaxMarginSM,
[`${switchInnerCls}-checked`]: {
marginInlineStart: 0,
marginInlineEnd: 0
},
[`${switchInnerCls}-unchecked`]: {
marginInlineStart: `calc(100% - ${handleSizeSM + trackPadding * 2}px + ${innerMaxMarginSM * 2}px)`,
marginInlineEnd: `calc(-100% + ${handleSizeSM + trackPadding * 2}px - ${innerMaxMarginSM * 2}px)`
}
},
[`${componentCls}-handle`]: {
insetInlineStart: `calc(100% - ${handleSizeSM + trackPadding}px)`
}
},
[`&:not(${componentCls}-disabled):active`]: {
[`&:not(${componentCls}-checked) ${switchInnerCls}`]: {
[`${switchInnerCls}-unchecked`]: {
marginInlineStart: token.marginXXS / 2,
marginInlineEnd: -token.marginXXS / 2
}
},
[`&${componentCls}-checked ${switchInnerCls}`]: {
[`${switchInnerCls}-checked`]: {
marginInlineStart: -token.marginXXS / 2,
marginInlineEnd: token.marginXXS / 2
}
}
}
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`
}
};
};
const genSwitchLoadingStyle = token => {
const {
componentCls,
handleSize
} = token;
return {
[componentCls]: {
[`${componentCls}-loading-icon${token.iconCls}`]: {
position: 'relative',
top: (handleSize - token.fontSize) / 2,
color: token.switchLoadingIconColor,
verticalAlign: 'top'
},
[`&${componentCls}-checked ${componentCls}-loading-icon`]: {
color: token.switchColor
}
}
};
};
const genSwitchHandleStyle = token => {
const {
componentCls,
motion,
trackPadding,
handleBg,
handleShadow,
handleSize
} = token;
const switchHandleCls = `${componentCls}-handle`;
return {
[componentCls]: {
[switchHandleCls]: {
position: 'absolute',
top: trackPadding,
insetInlineStart: trackPadding,
width: handleSize,
height: handleSize,
transition: `all ${token.switchDuration} ease-in-out`,
'&::before': {
position: 'absolute',
top: 0,
insetInlineEnd: 0,
bottom: 0,
insetInlineStart: 0,
backgroundColor: handleBg,
borderRadius: handleSize / 2,
boxShadow: handleShadow,
transition: `all ${token.switchDuration} ease-in-out`,
content: '""'
}
},
[`&${componentCls}-checked ${switchHandleCls}`]: {
insetInlineStart: `calc(100% - ${handleSize + trackPadding}px)`
},
[`&:not(${componentCls}-disabled):active`]: motion ? {
[`${switchHandleCls}::before`]: {
insetInlineEnd: token.switchHandleActiveInset,
insetInlineStart: 0
},
[`&${componentCls}-checked ${switchHandleCls}::before`]: {
insetInlineEnd: 0,
insetInlineStart: token.switchHandleActiveInset
}
} : /* istanbul ignore next */
{}
}
};
};
const genSwitchInnerStyle = token => {
const {
componentCls,
trackHeight,
trackPadding,
innerMinMargin,
innerMaxMargin,
handleSize
} = token;
const switchInnerCls = `${componentCls}-inner`;
return {
[componentCls]: {
[switchInnerCls]: {
display: 'block',
overflow: 'hidden',
borderRadius: 100,
height: '100%',
paddingInlineStart: innerMaxMargin,
paddingInlineEnd: innerMinMargin,
transition: `padding-inline-start ${token.switchDuration} ease-in-out, padding-inline-end ${token.switchDuration} ease-in-out`,
[`${switchInnerCls}-checked, ${switchInnerCls}-unchecked`]: {
display: 'block',
color: token.colorTextLightSolid,
fontSize: token.fontSizeSM,
transition: `margin-inline-start ${token.switchDuration} ease-in-out, margin-inline-end ${token.switchDuration} ease-in-out`,
pointerEvents: 'none'
},
[`${switchInnerCls}-checked`]: {
marginInlineStart: `calc(-100% + ${handleSize + trackPadding * 2}px - ${innerMaxMargin * 2}px)`,
marginInlineEnd: `calc(100% - ${handleSize + trackPadding * 2}px + ${innerMaxMargin * 2}px)`
},
[`${switchInnerCls}-unchecked`]: {
marginTop: -trackHeight,
marginInlineStart: 0,
marginInlineEnd: 0
}
},
[`&${componentCls}-checked ${switchInnerCls}`]: {
paddingInlineStart: innerMinMargin,
paddingInlineEnd: innerMaxMargin,
[`${switchInnerCls}-checked`]: {
marginInlineStart: 0,
marginInlineEnd: 0
},
[`${switchInnerCls}-unchecked`]: {
marginInlineStart: `calc(100% - ${handleSize + trackPadding * 2}px + ${innerMaxMargin * 2}px)`,
marginInlineEnd: `calc(-100% + ${handleSize + trackPadding * 2}px - ${innerMaxMargin * 2}px)`
}
},
[`&:not(${componentCls}-disabled):active`]: {
[`&:not(${componentCls}-checked) ${switchInnerCls}`]: {
[`${switchInnerCls}-unchecked`]: {
marginInlineStart: trackPadding * 2,
marginInlineEnd: -trackPadding * 2
}
},
[`&${componentCls}-checked ${switchInnerCls}`]: {
[`${switchInnerCls}-checked`]: {
marginInlineStart: -trackPadding * 2,
marginInlineEnd: trackPadding * 2
}
}
}
}
};
};
const genSwitchStyle = token => {
const {
componentCls,
trackHeight,
trackMinWidth
} = token;
return {
[componentCls]: Object.assign(Object.assign(Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
position: 'relative',
display: 'inline-block',
boxSizing: 'border-box',
minWidth: trackMinWidth,
height: trackHeight,
lineHeight: `${trackHeight}px`,
verticalAlign: 'middle',
background: token.colorTextQuaternary,
border: '0',
borderRadius: 100,
cursor: 'pointer',
transition: `all ${token.motionDurationMid}`,
userSelect: 'none',
[`&:hover:not(${componentCls}-disabled)`]: {
background: token.colorTextTertiary
}
}), (0,style/* genFocusStyle */.Qy)(token)), {
[`&${componentCls}-checked`]: {
background: token.switchColor,
[`&:hover:not(${componentCls}-disabled)`]: {
background: token.colorPrimaryHover
}
},
[`&${componentCls}-loading, &${componentCls}-disabled`]: {
cursor: 'not-allowed',
opacity: token.switchDisabledOpacity,
'*': {
boxShadow: 'none',
cursor: 'not-allowed'
}
},
// rtl style
[`&${componentCls}-rtl`]: {
direction: 'rtl'
}
})
};
};
// ============================== Export ==============================
/* harmony default export */ var switch_style = ((0,genComponentStyleHook/* default */.Z)('Switch', token => {
const switchToken = (0,statistic/* merge */.TS)(token, {
switchDuration: token.motionDurationMid,
switchColor: token.colorPrimary,
switchDisabledOpacity: token.opacityLoading,
switchLoadingIconSize: token.fontSizeIcon * 0.75,
switchLoadingIconColor: `rgba(0, 0, 0, ${token.opacityLoading})`,
switchHandleActiveInset: '-30%'
});
return [genSwitchStyle(switchToken),
// inner style
genSwitchInnerStyle(switchToken),
// handle style
genSwitchHandleStyle(switchToken),
// loading style
genSwitchLoadingStyle(switchToken),
// small style
genSwitchSmallStyle(switchToken)];
}, token => {
const {
fontSize,
lineHeight,
controlHeight,
colorWhite
} = token;
const height = fontSize * lineHeight;
const heightSM = controlHeight / 2;
const padding = 2; // Fixed value
const handleSize = height - padding * 2;
const handleSizeSM = heightSM - padding * 2;
return {
trackHeight: height,
trackHeightSM: heightSM,
trackMinWidth: handleSize * 2 + padding * 4,
trackMinWidthSM: handleSizeSM * 2 + padding * 2,
trackPadding: padding,
handleBg: colorWhite,
handleSize,
handleSizeSM,
handleShadow: `0 2px 4px 0 ${new dist_module/* TinyColor */.C('#00230b').setAlpha(0.2).toRgbString()}`,
innerMinMargin: handleSize / 2,
innerMaxMargin: handleSize + padding + padding * 2,
innerMinMarginSM: handleSizeSM / 2,
innerMaxMarginSM: handleSizeSM + padding + padding * 2
};
}));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/switch/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 switch_Switch = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
prefixCls: customizePrefixCls,
size: customizeSize,
disabled: customDisabled,
loading,
className,
rootClassName,
style
} = props,
restProps = __rest(props, ["prefixCls", "size", "disabled", "loading", "className", "rootClassName", "style"]);
false ? 0 : void 0;
const {
getPrefixCls,
direction,
switch: SWITCH
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
// ===================== Disabled =====================
const disabled = _react_17_0_2_react.useContext(DisabledContext/* default */.Z);
const mergedDisabled = (customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled) || loading;
const prefixCls = getPrefixCls('switch', customizePrefixCls);
const loadingIcon = /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: `${prefixCls}-handle`
}, loading && /*#__PURE__*/_react_17_0_2_react.createElement(LoadingOutlined/* default */.Z, {
className: `${prefixCls}-loading-icon`
}));
// Style
const [wrapSSR, hashId] = switch_style(prefixCls);
const mergedSize = (0,useSize/* default */.Z)(customizeSize);
const classes = _classnames_2_5_1_classnames_default()(SWITCH === null || SWITCH === void 0 ? void 0 : SWITCH.className, {
[`${prefixCls}-small`]: mergedSize === 'small',
[`${prefixCls}-loading`]: loading,
[`${prefixCls}-rtl`]: direction === 'rtl'
}, className, rootClassName, hashId);
const mergedStyle = Object.assign(Object.assign({}, SWITCH === null || SWITCH === void 0 ? void 0 : SWITCH.style), style);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(wave/* default */.Z, {
component: "Switch"
}, /*#__PURE__*/_react_17_0_2_react.createElement(es, Object.assign({}, restProps, {
prefixCls: prefixCls,
className: classes,
style: mergedStyle,
disabled: mergedDisabled,
ref: ref,
loadingIcon: loadingIcon
}))));
});
switch_Switch.__ANT_SWITCH = true;
if (false) {}
/* harmony default export */ var es_switch = (switch_Switch);
/* harmony default export */ __webpack_exports__.Z = (genCollapseMotion);
/***/ }),
@ -1086,6 +661,309 @@ exports["default"] = _default;
/***/ }),
/***/ 31561:
/*!*****************************************************************************!*\
!*** ./node_modules/_rc-dropdown@4.1.0@rc-dropdown/es/index.js + 4 modules ***!
\*****************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ _rc_dropdown_4_1_0_rc_dropdown_es; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(24018);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(54099);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(63011);
// EXTERNAL MODULE: ./node_modules/_@rc-component_trigger@1.18.3@@rc-component/trigger/es/index.js + 11 modules
var es = __webpack_require__(35593);
// 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.43.0@rc-util/es/ref.js
var es_ref = __webpack_require__(25629);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/KeyCode.js
var KeyCode = __webpack_require__(20287);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/raf.js
var raf = __webpack_require__(71783);
;// CONCATENATED MODULE: ./node_modules/_rc-dropdown@4.1.0@rc-dropdown/es/hooks/useAccessibility.js
var ESC = KeyCode/* default */.Z.ESC,
TAB = KeyCode/* default */.Z.TAB;
function useAccessibility(_ref) {
var visible = _ref.visible,
triggerRef = _ref.triggerRef,
onVisibleChange = _ref.onVisibleChange,
autoFocus = _ref.autoFocus,
overlayRef = _ref.overlayRef;
var focusMenuRef = _react_17_0_2_react.useRef(false);
var handleCloseMenuAndReturnFocus = function handleCloseMenuAndReturnFocus() {
if (visible) {
var _triggerRef$current, _triggerRef$current$f;
(_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 ? void 0 : (_triggerRef$current$f = _triggerRef$current.focus) === null || _triggerRef$current$f === void 0 ? void 0 : _triggerRef$current$f.call(_triggerRef$current);
onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(false);
}
};
var focusMenu = function focusMenu() {
var _overlayRef$current;
if ((_overlayRef$current = overlayRef.current) !== null && _overlayRef$current !== void 0 && _overlayRef$current.focus) {
overlayRef.current.focus();
focusMenuRef.current = true;
return true;
}
return false;
};
var handleKeyDown = function handleKeyDown(event) {
switch (event.keyCode) {
case ESC:
handleCloseMenuAndReturnFocus();
break;
case TAB:
{
var focusResult = false;
if (!focusMenuRef.current) {
focusResult = focusMenu();
}
if (focusResult) {
event.preventDefault();
} else {
handleCloseMenuAndReturnFocus();
}
break;
}
}
};
_react_17_0_2_react.useEffect(function () {
if (visible) {
window.addEventListener("keydown", handleKeyDown);
if (autoFocus) {
// FIXME: hack with raf
(0,raf/* default */.Z)(focusMenu, 3);
}
return function () {
window.removeEventListener("keydown", handleKeyDown);
focusMenuRef.current = false;
};
}
return function () {
focusMenuRef.current = false;
};
}, [visible]); // eslint-disable-line react-hooks/exhaustive-deps
}
;// CONCATENATED MODULE: ./node_modules/_rc-dropdown@4.1.0@rc-dropdown/es/Overlay.js
var Overlay = /*#__PURE__*/(0,_react_17_0_2_react.forwardRef)(function (props, ref) {
var overlay = props.overlay,
arrow = props.arrow,
prefixCls = props.prefixCls;
var overlayNode = (0,_react_17_0_2_react.useMemo)(function () {
var overlayElement;
if (typeof overlay === 'function') {
overlayElement = overlay();
} else {
overlayElement = overlay;
}
return overlayElement;
}, [overlay]);
var composedRef = (0,es_ref/* composeRef */.sQ)(ref, overlayNode === null || overlayNode === void 0 ? void 0 : overlayNode.ref);
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, arrow && /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: "".concat(prefixCls, "-arrow")
}), /*#__PURE__*/_react_17_0_2_react.cloneElement(overlayNode, {
ref: (0,es_ref/* supportRef */.Yr)(overlayNode) ? composedRef : undefined
}));
});
/* harmony default export */ var es_Overlay = (Overlay);
;// CONCATENATED MODULE: ./node_modules/_rc-dropdown@4.1.0@rc-dropdown/es/placements.js
var autoAdjustOverflow = {
adjustX: 1,
adjustY: 1
};
var targetOffset = [0, 0];
var placements = {
topLeft: {
points: ['bl', 'tl'],
overflow: autoAdjustOverflow,
offset: [0, -4],
targetOffset: targetOffset
},
top: {
points: ['bc', 'tc'],
overflow: autoAdjustOverflow,
offset: [0, -4],
targetOffset: targetOffset
},
topRight: {
points: ['br', 'tr'],
overflow: autoAdjustOverflow,
offset: [0, -4],
targetOffset: targetOffset
},
bottomLeft: {
points: ['tl', 'bl'],
overflow: autoAdjustOverflow,
offset: [0, 4],
targetOffset: targetOffset
},
bottom: {
points: ['tc', 'bc'],
overflow: autoAdjustOverflow,
offset: [0, 4],
targetOffset: targetOffset
},
bottomRight: {
points: ['tr', 'br'],
overflow: autoAdjustOverflow,
offset: [0, 4],
targetOffset: targetOffset
}
};
/* harmony default export */ var es_placements = (placements);
;// CONCATENATED MODULE: ./node_modules/_rc-dropdown@4.1.0@rc-dropdown/es/Dropdown.js
var _excluded = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
function Dropdown(props, ref) {
var _children$props;
var _props$arrow = props.arrow,
arrow = _props$arrow === void 0 ? false : _props$arrow,
_props$prefixCls = props.prefixCls,
prefixCls = _props$prefixCls === void 0 ? 'rc-dropdown' : _props$prefixCls,
transitionName = props.transitionName,
animation = props.animation,
align = props.align,
_props$placement = props.placement,
placement = _props$placement === void 0 ? 'bottomLeft' : _props$placement,
_props$placements = props.placements,
placements = _props$placements === void 0 ? es_placements : _props$placements,
getPopupContainer = props.getPopupContainer,
showAction = props.showAction,
hideAction = props.hideAction,
overlayClassName = props.overlayClassName,
overlayStyle = props.overlayStyle,
visible = props.visible,
_props$trigger = props.trigger,
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
autoFocus = props.autoFocus,
overlay = props.overlay,
children = props.children,
onVisibleChange = props.onVisibleChange,
otherProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
var _React$useState = _react_17_0_2_react.useState(),
_React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
triggerVisible = _React$useState2[0],
setTriggerVisible = _React$useState2[1];
var mergedVisible = 'visible' in props ? visible : triggerVisible;
var triggerRef = _react_17_0_2_react.useRef(null);
var overlayRef = _react_17_0_2_react.useRef(null);
var childRef = _react_17_0_2_react.useRef(null);
_react_17_0_2_react.useImperativeHandle(ref, function () {
return triggerRef.current;
});
var handleVisibleChange = function handleVisibleChange(newVisible) {
setTriggerVisible(newVisible);
onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(newVisible);
};
useAccessibility({
visible: mergedVisible,
triggerRef: childRef,
onVisibleChange: handleVisibleChange,
autoFocus: autoFocus,
overlayRef: overlayRef
});
var onClick = function onClick(e) {
var onOverlayClick = props.onOverlayClick;
setTriggerVisible(false);
if (onOverlayClick) {
onOverlayClick(e);
}
};
var getMenuElement = function getMenuElement() {
return /*#__PURE__*/_react_17_0_2_react.createElement(es_Overlay, {
ref: overlayRef,
overlay: overlay,
prefixCls: prefixCls,
arrow: arrow
});
};
var getMenuElementOrLambda = function getMenuElementOrLambda() {
if (typeof overlay === 'function') {
return getMenuElement;
}
return getMenuElement();
};
var getMinOverlayWidthMatchTrigger = function getMinOverlayWidthMatchTrigger() {
var minOverlayWidthMatchTrigger = props.minOverlayWidthMatchTrigger,
alignPoint = props.alignPoint;
if ('minOverlayWidthMatchTrigger' in props) {
return minOverlayWidthMatchTrigger;
}
return !alignPoint;
};
var getOpenClassName = function getOpenClassName() {
var openClassName = props.openClassName;
if (openClassName !== undefined) {
return openClassName;
}
return "".concat(prefixCls, "-open");
};
var childrenNode = /*#__PURE__*/_react_17_0_2_react.cloneElement(children, {
className: _classnames_2_5_1_classnames_default()((_children$props = children.props) === null || _children$props === void 0 ? void 0 : _children$props.className, mergedVisible && getOpenClassName()),
ref: (0,es_ref/* supportRef */.Yr)(children) ? (0,es_ref/* composeRef */.sQ)(childRef, children.ref) : undefined
});
var triggerHideAction = hideAction;
if (!triggerHideAction && trigger.indexOf('contextMenu') !== -1) {
triggerHideAction = ['click'];
}
return /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, (0,esm_extends/* default */.Z)({
builtinPlacements: placements
}, otherProps, {
prefixCls: prefixCls,
ref: triggerRef,
popupClassName: _classnames_2_5_1_classnames_default()(overlayClassName, (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-show-arrow"), arrow)),
popupStyle: overlayStyle,
action: trigger,
showAction: showAction,
hideAction: triggerHideAction,
popupPlacement: placement,
popupAlign: align,
popupTransitionName: transitionName,
popupAnimation: animation,
popupVisible: mergedVisible,
stretch: getMinOverlayWidthMatchTrigger() ? 'minWidth' : '',
popup: getMenuElementOrLambda(),
onPopupVisibleChange: handleVisibleChange,
onPopupClick: onClick,
getPopupContainer: getPopupContainer
}), childrenNode);
}
/* harmony default export */ var es_Dropdown = (/*#__PURE__*/_react_17_0_2_react.forwardRef(Dropdown));
;// CONCATENATED MODULE: ./node_modules/_rc-dropdown@4.1.0@rc-dropdown/es/index.js
/* harmony default export */ var _rc_dropdown_4_1_0_rc_dropdown_es = (es_Dropdown);
/***/ }),
/***/ 65835:
/*!**********************************************************************!*\
!*** ./node_modules/_rc-picker@3.13.2@rc-picker/lib/locale/zh_CN.js ***!

@ -1,787 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[44407,1024,14882,27155],{
/***/ 50382:
/*!*****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@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.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// 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.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@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);
/***/ }),
/***/ 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.5.1@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
var EllipsisOutlined = __webpack_require__(94172);
// 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);
/***/ }),
/***/ 73782:
/*!*********************************************************************!*\
!*** ./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.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
;// 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.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@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.5.1@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
var EyeOutlined = __webpack_require__(50382);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/omit.js
var omit = __webpack_require__(55405);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/ref.js
var es_ref = __webpack_require__(25629);
// 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.5.1@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
var SearchOutlined = __webpack_require__(42653);
// 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.43.0@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(75440);
// 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);
/***/ })
}]);

File diff suppressed because one or more lines are too long

@ -453,12 +453,12 @@ __webpack_require__.d(__webpack_exports__, {
// 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/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/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);
@ -1354,36 +1354,10 @@ var Index_competitionsPage = function competitionsPage(_ref) {
}, [identifier]);
(0,_react_17_0_2_react.useEffect)(function () {
// getHomeNotice();
function init() {
return _init.apply(this, arguments);
}
function _init() {
_init = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return dispatch({
type: 'competitions/getList',
payload: objectSpread2_default()(objectSpread2_default()({}, competitions.listParams), {}, {
tab_module_type: 'competitions'
})
});
case 2:
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 404) {
_umi_production_exports.history.replace('/404');
}
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
return _init.apply(this, arguments);
}
init();
dispatch({
type: 'competitions/getList',
payload: objectSpread2_default()({}, competitions.listParams)
});
}, [competitions.name]);
(0,_react_17_0_2_react.useEffect)(function () {
(0,util/* setDocumentTitle */.Dk)('在线竞赛');
@ -1410,11 +1384,11 @@ var Index_competitionsPage = function competitionsPage(_ref) {
return _gotocourse.apply(this, arguments);
}
function _gotocourse() {
_gotocourse = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(e, item, url) {
_gotocourse = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(e, item, url) {
var _user$userInfo5;
var res, result, _user$userInfo6, data;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
e.stopPropagation();
// if (!item.invite_code) {
@ -1424,13 +1398,13 @@ var Index_competitionsPage = function competitionsPage(_ref) {
// items=item
setitems(objectSpread2_default()({}, item));
if ((0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
_context4.next = 4;
_context3.next = 4;
break;
}
return _context4.abrupt("return");
return _context3.abrupt("return");
case 4:
if (!(item !== null && item !== void 0 && item.is_authentication && !(user !== null && user !== void 0 && (_user$userInfo5 = user.userInfo) !== null && _user$userInfo5 !== void 0 && _user$userInfo5.authentication))) {
_context4.next = 7;
_context3.next = 7;
break;
}
dispatch({
@ -1439,40 +1413,40 @@ var Index_competitionsPage = function competitionsPage(_ref) {
key: 'Banner-Auth'
}
});
return _context4.abrupt("return");
return _context3.abrupt("return");
case 7:
_context4.next = 9;
_context3.next = 9;
return (0,fetch/* default */.ZP)("/api/competitions/".concat(item.identifier, "/check_open.json"), {
method: 'post'
});
case 9:
res = _context4.sent;
res = _context3.sent;
if (!(res.status !== 0)) {
_context4.next = 12;
_context3.next = 12;
break;
}
return _context4.abrupt("return");
return _context3.abrupt("return");
case 12:
if (!(url === 'ismodel')) {
_context4.next = 26;
_context3.next = 26;
break;
}
if (!(item.member_of_course === true)) {
_context4.next = 17;
_context3.next = 17;
break;
}
(0,util/* openNewWindow */.xg)("/classrooms/".concat(item.course_id));
_context4.next = 24;
_context3.next = 24;
break;
case 17:
if (item.invite_code) {
_context4.next = 20;
_context3.next = 20;
break;
}
message/* default */.ZP.info('本竞赛只面向部分学校/单位开放,你暂时没有参赛资格');
return _context4.abrupt("return");
return _context3.abrupt("return");
case 20:
_context4.next = 22;
_context3.next = 22;
return dispatch({
type: 'competitions/addApplytojoincourse',
payload: {
@ -1481,7 +1455,7 @@ var Index_competitionsPage = function competitionsPage(_ref) {
}
});
case 22:
result = _context4.sent;
result = _context3.sent;
if (result.status === 0) {
if (item.is_new) {
_umi_production_exports.history.push("/competitions/detail/".concat(item.identifier));
@ -1490,40 +1464,40 @@ var Index_competitionsPage = function competitionsPage(_ref) {
}
}
case 24:
_context4.next = 70;
_context3.next = 70;
break;
case 26:
if (!(url === 'personal')) {
_context4.next = 57;
_context3.next = 57;
break;
}
if (!item.is_new) {
_context4.next = 54;
_context3.next = 54;
break;
}
if (!(item.enrolled === true)) {
_context4.next = 31;
_context3.next = 31;
break;
}
(0,util/* openNewWindow */.xg)("/competitions/detail/".concat(item.identifier, "?type=1"));
return _context4.abrupt("return");
return _context3.abrupt("return");
case 31:
if (!(item.teacher_need_phone || item.member_need_phone)) {
_context4.next = 35;
_context3.next = 35;
break;
}
e.stopPropagation();
setshowphone(true);
return _context4.abrupt("return");
return _context3.abrupt("return");
case 35:
if ((0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
_context4.next = 37;
_context3.next = 37;
break;
}
return _context4.abrupt("return");
return _context3.abrupt("return");
case 37:
if (!(item !== null && item !== void 0 && item.need_check_mail)) {
_context4.next = 41;
_context3.next = 41;
break;
}
e.stopPropagation();
@ -1538,10 +1512,10 @@ var Index_competitionsPage = function competitionsPage(_ref) {
window.open('/account/secure');
}
});
return _context4.abrupt("return");
return _context3.abrupt("return");
case 41:
if (!(item !== null && item !== void 0 && item.is_authentication && !(user !== null && user !== void 0 && (_user$userInfo6 = user.userInfo) !== null && _user$userInfo6 !== void 0 && _user$userInfo6.authentication))) {
_context4.next = 44;
_context3.next = 44;
break;
}
dispatch({
@ -1550,16 +1524,16 @@ var Index_competitionsPage = function competitionsPage(_ref) {
key: 'Banner-Auth'
}
});
return _context4.abrupt("return");
return _context3.abrupt("return");
case 44:
if (!buttonloading) {
_context4.next = 46;
_context3.next = 46;
break;
}
return _context4.abrupt("return");
return _context3.abrupt("return");
case 46:
setbuttonloading(true);
_context4.next = 49;
_context3.next = 49;
return dispatch({
type: 'competitions/AddTeam',
payload: {
@ -1567,7 +1541,7 @@ var Index_competitionsPage = function competitionsPage(_ref) {
}
});
case 49:
data = _context4.sent;
data = _context3.sent;
setbuttonloading(false);
if (data && data.status === 0) {
setdatas(data);
@ -1577,45 +1551,45 @@ var Index_competitionsPage = function competitionsPage(_ref) {
payload: objectSpread2_default()({}, competitions.listParams)
});
}
_context4.next = 55;
_context3.next = 55;
break;
case 54:
addTeams('');
case 55:
_context4.next = 70;
_context3.next = 70;
break;
case 57:
if (!(item.enrolled === true)) {
_context4.next = 60;
_context3.next = 60;
break;
}
(0,util/* openNewWindow */.xg)(url);
return _context4.abrupt("return");
return _context3.abrupt("return");
case 60:
if (!(url === 'personal')) {
_context4.next = 68;
_context3.next = 68;
break;
}
if (!(item.enroll_ended === true)) {
_context4.next = 64;
_context3.next = 64;
break;
}
//已截止
message/* default */.ZP.info("\u62A5\u540D\u5DF2\u622A\u6B62");
return _context4.abrupt("return");
return _context3.abrupt("return");
case 64:
setisshowmodal(true);
setitems(item);
_context4.next = 70;
_context3.next = 70;
break;
case 68:
setisshowmodal(true);
setitems(item);
case 70:
case "end":
return _context4.stop();
return _context3.stop();
}
}, _callee4);
}, _callee3);
}));
return _gotocourse.apply(this, arguments);
}
@ -1628,25 +1602,25 @@ var Index_competitionsPage = function competitionsPage(_ref) {
return _addTeams.apply(this, arguments);
}
function _addTeams() {
_addTeams = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(name) {
_addTeams = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(name) {
var data;
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
if (isClick) {
_context5.next = 2;
_context4.next = 2;
break;
}
return _context5.abrupt("return");
return _context4.abrupt("return");
case 2:
setIsClick(false);
if (!isadd()) {
_context5.next = 5;
_context4.next = 5;
break;
}
return _context5.abrupt("return");
return _context4.abrupt("return");
case 5:
_context5.next = 7;
_context4.next = 7;
return dispatch({
type: 'competitions/AddTeam',
payload: {
@ -1655,7 +1629,7 @@ var Index_competitionsPage = function competitionsPage(_ref) {
}
});
case 7:
data = _context5.sent;
data = _context4.sent;
if (data && data.status === 0) {
setisopen(true);
setdatas(data);
@ -1669,9 +1643,9 @@ var Index_competitionsPage = function competitionsPage(_ref) {
}
case 9:
case "end":
return _context5.stop();
return _context4.stop();
}
}, _callee5);
}, _callee4);
}));
return _addTeams.apply(this, arguments);
}
@ -1731,25 +1705,25 @@ var Index_competitionsPage = function competitionsPage(_ref) {
* 列表数据点击跳转事件
*/
function _JoinTeams() {
_JoinTeams = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6(name) {
_JoinTeams = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(name) {
var data;
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
if (isClick) {
_context6.next = 2;
_context5.next = 2;
break;
}
return _context6.abrupt("return");
return _context5.abrupt("return");
case 2:
if (!isadd()) {
_context6.next = 4;
_context5.next = 4;
break;
}
return _context6.abrupt("return");
return _context5.abrupt("return");
case 4:
setIsClick(false);
_context6.next = 7;
_context5.next = 7;
return dispatch({
type: 'competitions/JoinTeam',
payload: {
@ -1758,7 +1732,7 @@ var Index_competitionsPage = function competitionsPage(_ref) {
}
});
case 7:
data = _context6.sent;
data = _context5.sent;
if (data && data.status === 0) {
setisopen(true);
setdatas(data);
@ -1772,9 +1746,9 @@ var Index_competitionsPage = function competitionsPage(_ref) {
}
case 9:
case "end":
return _context6.stop();
return _context5.stop();
}
}, _callee6);
}, _callee5);
}));
return _JoinTeams.apply(this, arguments);
}
@ -2310,19 +2284,19 @@ var Index_competitionsPage = function competitionsPage(_ref) {
form: form,
layout: "vertical",
onFinish: ( /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(values) {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setbuttonloading(true);
_context2.next = 3;
_context.next = 3;
return (0,fetch/* default */.ZP)("/api/competitions.json", {
method: 'post',
body: objectSpread2_default()({}, values)
});
case 3:
res = _context2.sent;
res = _context.sent;
setbuttonloading(false);
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default */.ZP.info('创建成功');
@ -2330,9 +2304,9 @@ var Index_competitionsPage = function competitionsPage(_ref) {
}
case 6:
case "end":
return _context2.stop();
return _context.stop();
}
}, _callee2);
}, _callee);
}));
return function (_x6) {
return _ref2.apply(this, arguments);
@ -2430,12 +2404,12 @@ var Index_competitionsPage = function competitionsPage(_ref) {
width: 88
},
type: "primary",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context3.next = 2;
_context2.next = 2;
return (0,fetch/* default */.ZP)("/api/competitions/get_certificates.json", {
method: 'get',
params: {
@ -2443,15 +2417,15 @@ var Index_competitionsPage = function competitionsPage(_ref) {
}
});
case 2:
res = _context3.sent;
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
seetdataItems(res === null || res === void 0 ? void 0 : res.data);
}
case 4:
case "end":
return _context3.stop();
return _context2.stop();
}
}, _callee3);
}, _callee2);
})),
children: "\u67E5\u8BE2"
})]

@ -1,477 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[46946],{
/***/ 46946:
/*!*************************************************************!*\
!*** ./src/components/LanguageSelect/index.tsx + 1 modules ***!
\*************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
S: function() { return /* binding */ LanguageSelect; }
});
// 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/_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/menu/index.js + 11 modules
var menu = __webpack_require__(20834);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules
var dropdown = __webpack_require__(38854);
;// CONCATENATED MODULE: ./src/components/LanguageSelect/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var LanguageSelectmodules = ({"flex_box_center":"flex_box_center___EIpII","flex_space_between":"flex_space_between___fFu6C","flex_box_vertical_center":"flex_box_vertical_center___dbtuv","flex_box_center_end":"flex_box_center_end___qEYJa","flex_box_column":"flex_box_column___ncMrS","main":"main___A2KB0","wrap":"wrap___PrMse","content":"content___pEqhq","programName":"programName___h8PAJ","name":"name___oxG0a","directionContentWrap":"directionContentWrap____Ymcj","directionItem":"directionItem___uCMBX","active":"active___vOl0l","subActive":"subActive___WzT87","subItem":"subItem___nVuXN","subMenu":"subMenu___DqKGV","action":"action___O7v85"});
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/LanguageSelect/index.tsx
var typeData = [{
name: "编程题",
value: "PROGRAM"
}, {
name: "单选题",
value: "SINGLE"
}, {
name: "多选题",
value: "MULTIPLE"
}, {
name: "判断题",
value: "JUDGMENT"
}, {
name: "填空题",
value: "COMPLETION"
}, {
name: "简答题",
value: "SUBJECTIVE"
}, {
name: "组合题",
value: "COMBINATION"
}, {
name: "程序填空题",
value: "BPROGRAM"
}];
var difficultyData = [{
name: "简单",
value: 1
}, {
name: "适中",
value: 2
}, {
name: "困难",
value: 3
}];
var randomData = [{
name: "随机组卷",
value: 1
}, {
name: "人工组卷",
value: 2
}];
var LanguageSelect = function LanguageSelect(_ref) {
var _problemsetData$itemB, _problemsetData$itemB3;
var _ref$showSelectAll = _ref.showSelectAll,
showSelectAll = _ref$showSelectAll === void 0 ? false : _ref$showSelectAll,
_ref$disciplinesData = _ref.disciplinesData,
disciplinesData = _ref$disciplinesData === void 0 ? [] : _ref$disciplinesData,
_ref$knowledgeData = _ref.knowledgeData,
knowledgeData = _ref$knowledgeData === void 0 ? [] : _ref$knowledgeData,
directionValue = _ref.directionValue,
subDisciplineValue = _ref.subDisciplineValue,
typeValue = _ref.typeValue,
knowledgeValue = _ref.knowledgeValue,
_ref$showKnowledge = _ref.showKnowledge,
showKnowledge = _ref$showKnowledge === void 0 ? false : _ref$showKnowledge,
_ref$showRandomType = _ref.showRandomType,
showRandomType = _ref$showRandomType === void 0 ? false : _ref$showRandomType,
difficultyValue = _ref.difficultyValue,
randomValue = _ref.randomValue,
selectAll = _ref.selectAll,
languagesvalue = _ref.languagesvalue,
className = _ref.className,
_ref$languages = _ref.languages,
languages = _ref$languages === void 0 ? [] : _ref$languages,
isprogram_homework = _ref.isprogram_homework,
_ref$showShixun = _ref.showShixun,
showShixun = _ref$showShixun === void 0 ? false : _ref$showShixun,
_ref$showItemType = _ref.showItemType,
showItemType = _ref$showItemType === void 0 ? true : _ref$showItemType,
_ref$onShixunChange = _ref.onShixunChange,
onShixunChange = _ref$onShixunChange === void 0 ? function () {} : _ref$onShixunChange,
_ref$onDirectionChang = _ref.onDirectionChange,
onDirectionChange = _ref$onDirectionChang === void 0 ? function () {} : _ref$onDirectionChang,
_ref$onTypeChange = _ref.onTypeChange,
onTypeChange = _ref$onTypeChange === void 0 ? function () {} : _ref$onTypeChange,
_ref$onDifficultyChan = _ref.onDifficultyChange,
onDifficultyChange = _ref$onDifficultyChan === void 0 ? function () {} : _ref$onDifficultyChan,
_ref$handlelanguagesC = _ref.handlelanguagesChange,
handlelanguagesChange = _ref$handlelanguagesC === void 0 ? function () {} : _ref$handlelanguagesC,
_ref$onKnowledgeChang = _ref.onKnowledgeChange,
onKnowledgeChange = _ref$onKnowledgeChang === void 0 ? function () {} : _ref$onKnowledgeChang,
_ref$onRandomChange = _ref.onRandomChange,
onRandomChange = _ref$onRandomChange === void 0 ? function () {} : _ref$onRandomChange,
_ref$showTeachGroup = _ref.showTeachGroup,
showTeachGroup = _ref$showTeachGroup === void 0 ? false : _ref$showTeachGroup,
_ref$teachGroupData = _ref.teachGroupData,
teachGroupData = _ref$teachGroupData === void 0 ? [] : _ref$teachGroupData,
_ref$onTeachGroupChan = _ref.onTeachGroupChange,
onTeachGroupChange = _ref$onTeachGroupChan === void 0 ? function () {} : _ref$onTeachGroupChan,
teachGroupValue = _ref.teachGroupValue,
problemsetData = _ref.problemsetData;
var _useState = (0,_react_17_0_2_react.useState)(0),
_useState2 = slicedToArray_default()(_useState, 2),
directionShow = _useState2[0],
setDirectionShow = _useState2[1];
var directionWarp = (0,_react_17_0_2_react.useRef)(null);
var _useState3 = (0,_react_17_0_2_react.useState)(0),
_useState4 = slicedToArray_default()(_useState3, 2),
knowledgeShow = _useState4[0],
setKnowledgeShow = _useState4[1];
var knowledgeWarp = (0,_react_17_0_2_react.useRef)(null);
(0,_react_17_0_2_react.useEffect)(function () {
if (disciplinesData.length !== 0) {
var _directionWarp$curren;
if ((directionWarp === null || directionWarp === void 0 || (_directionWarp$curren = directionWarp.current) === null || _directionWarp$curren === void 0 ? void 0 : _directionWarp$curren.clientHeight) > 108) {
setDirectionShow(1);
} else {
setDirectionShow(0);
}
}
if (disciplinesData.length === 0) {
setDirectionShow(0);
}
}, [disciplinesData]);
(0,_react_17_0_2_react.useEffect)(function () {
// console.log(knowledgeData.length === 0, '数量')
if (knowledgeData.length !== 0) {
var _knowledgeWarp$curren;
// console.log(knowledgeWarp?.current?.clientHeight, '高度')
//两个像素的偏差106+2
if ((knowledgeWarp === null || knowledgeWarp === void 0 || (_knowledgeWarp$curren = knowledgeWarp.current) === null || _knowledgeWarp$curren === void 0 ? void 0 : _knowledgeWarp$curren.clientHeight) > 108) {
setKnowledgeShow(1);
} else {
setKnowledgeShow(0);
}
}
if (knowledgeData.length === 0) {
setKnowledgeShow(0);
}
}, [knowledgeData]);
var renderMenu = function renderMenu() {
var sub_disciplines = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var id = arguments.length > 1 ? arguments[1] : undefined;
return /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z, {
className: LanguageSelectmodules.subMenu,
children: sub_disciplines.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
className: "".concat(LanguageSelectmodules.subItem, " ").concat(subDisciplineValue === item.id ? LanguageSelectmodules.subActive : ''),
onClick: function onClick() {
return onDirectionChange(id, item.id);
},
children: item.name
})
}, item.id);
})
});
};
return /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: className ? "".concat(LanguageSelectmodules.main, " ").concat(className) : LanguageSelectmodules.main,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: LanguageSelectmodules.wrap,
children: [isprogram_homework && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: LanguageSelectmodules.programName,
children: "\u8BD5\u9898\u5E93-\u7F16\u7A0B\u9898"
}), showTeachGroup && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: LanguageSelectmodules.content,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: LanguageSelectmodules.name,
children: "\u56E2\u961F"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: LanguageSelectmodules.directionContentWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(LanguageSelectmodules.directionItem, " ").concat(!teachGroupValue ? LanguageSelectmodules.active : '', " "),
onClick: function onClick() {
return onTeachGroupChange(null);
},
children: "\u5168\u90E8"
}), teachGroupData === null || teachGroupData === void 0 ? void 0 : teachGroupData.map(function (item) {
// console.log(item, "itemssssss");
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(LanguageSelectmodules.directionItem, " ").concat(teachGroupValue === item.group_id ? LanguageSelectmodules.active : '', " "),
onClick: function onClick() {
return onTeachGroupChange(item.group_id);
},
children: item.name
}, item.group_id);
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: LanguageSelectmodules.content,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: LanguageSelectmodules.name,
children: "\u65B9\u5411"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: LanguageSelectmodules.directionContentWrap,
style: {
overflow: 'hidden',
height: directionShow === 1 ? 88 : 'auto'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(LanguageSelectmodules.directionItem, " ").concat(!directionValue ? LanguageSelectmodules.active : '', " "),
onClick: function onClick() {
return onDirectionChange(null);
},
children: "\u5168\u90E8"
}), disciplinesData.map(function (item) {
var _item$sub_disciplines;
return /*#__PURE__*/(0,jsx_runtime.jsx)(_react_17_0_2_react.Fragment, {
children: ((_item$sub_disciplines = item.sub_disciplines) === null || _item$sub_disciplines === void 0 ? void 0 : _item$sub_disciplines.length) > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
placement: "bottomLeft",
overlayStyle: {
width: 600
},
getPopupContainer: function getPopupContainer(trigger) {
return trigger.parentNode;
},
dropdownRender: function dropdownRender() {
return renderMenu(item.sub_disciplines, item.id);
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(LanguageSelectmodules.directionItem, " ").concat(directionValue === item.id ? LanguageSelectmodules.active : '', " "),
onClick: function onClick() {
return onDirectionChange(item.id);
},
children: item.name
})
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(LanguageSelectmodules.directionItem, " ").concat(directionValue === item.id ? LanguageSelectmodules.active : '', " "),
onClick: function onClick() {
return onDirectionChange(item.id);
},
children: item.name
})
}, item.id);
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: LanguageSelectmodules.directionContentWrap,
ref: directionWarp,
style: {
height: 'auto',
position: 'fixed',
left: 0,
top: 0,
width: 1024,
visibility: 'hidden'
},
children: disciplinesData.map(function (item) {
var _item$sub_disciplines2;
return /*#__PURE__*/(0,jsx_runtime.jsx)(_react_17_0_2_react.Fragment, {
children: ((_item$sub_disciplines2 = item.sub_disciplines) === null || _item$sub_disciplines2 === void 0 ? void 0 : _item$sub_disciplines2.length) > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
placement: "bottomLeft",
overlayStyle: {
width: 600
},
getPopupContainer: function getPopupContainer(trigger) {
return trigger.parentNode;
},
dropdownRender: function dropdownRender() {
return renderMenu(item.sub_disciplines, item.id);
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(LanguageSelectmodules.directionItem, " ").concat(directionValue === item.id ? LanguageSelectmodules.active : '', " "),
onClick: function onClick() {
return onDirectionChange(item.id);
},
children: item.name
})
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(LanguageSelectmodules.directionItem, " ").concat(directionValue === item.id ? LanguageSelectmodules.active : '', " "),
onClick: function onClick() {
return onDirectionChange(item.id);
},
children: item.name
})
}, item.id);
})
}), !!directionShow && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: LanguageSelectmodules.action,
children: [directionShow === 1 && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
onClick: function onClick() {
return setDirectionShow(2);
},
children: ["\u5C55\u5F00", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiala"
})]
}), directionShow === 2 && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
onClick: function onClick() {
return setDirectionShow(1);
},
children: ["\u6536\u8D77", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
transform: 'scale(0.5) rotate(180deg) translateY(2px)'
},
className: "iconfont icon-xiala"
})]
})]
})]
}), showKnowledge && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: LanguageSelectmodules.content,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: LanguageSelectmodules.name,
children: "\u77E5\u8BC6\u70B9"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: LanguageSelectmodules.directionContentWrap,
style: {
overflow: 'hidden',
height: knowledgeShow === 1 ? 94 : 'auto'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(LanguageSelectmodules.directionItem, " ").concat(knowledgeValue === -1 ? LanguageSelectmodules.active : '', " "),
onClick: function onClick() {
return onKnowledgeChange(-1);
},
children: "\u5168\u90E8"
}), knowledgeData.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(LanguageSelectmodules.directionItem, " ").concat(knowledgeValue === item.id ? LanguageSelectmodules.active : '', " "),
onClick: function onClick() {
return onKnowledgeChange(item.id);
},
children: item.name
}, item.id);
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
ref: knowledgeWarp,
className: LanguageSelectmodules.directionContentWrap,
style: {
height: 'auto',
position: 'fixed',
left: 0,
top: 0,
width: 1010,
visibility: 'hidden'
},
children: knowledgeData.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(LanguageSelectmodules.directionItem, " ").concat(knowledgeValue === item.id ? LanguageSelectmodules.active : '', " "),
onClick: function onClick() {
return onKnowledgeChange(item.id);
},
children: item.name
}, item.id);
})
}), !!knowledgeShow && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: LanguageSelectmodules.action,
children: [knowledgeShow === 1 && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
onClick: function onClick() {
return setKnowledgeShow(2);
},
children: ["\u5C55\u5F00", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiala"
})]
}), knowledgeShow === 2 && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
onClick: function onClick() {
return setKnowledgeShow(1);
},
children: ["\u6536\u8D77", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
transform: 'scale(0.5) rotate(180deg) translateY(2px)'
},
className: "iconfont icon-xiala"
})]
})]
})]
}), showItemType && !isprogram_homework && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: LanguageSelectmodules.content,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: LanguageSelectmodules.name,
children: "\u9898\u578B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(LanguageSelectmodules.directionItem, " ").concat(!typeValue ? LanguageSelectmodules.active : '', " "),
onClick: function onClick() {
return onTypeChange(null);
},
children: "\u5168\u90E8"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: LanguageSelectmodules.directionContentWrap,
children: [(problemsetData === null || problemsetData === void 0 || (_problemsetData$itemB = problemsetData.itemBanks) === null || _problemsetData$itemB === void 0 || (_problemsetData$itemB = _problemsetData$itemB.show_item_types) === null || _problemsetData$itemB === void 0 ? void 0 : _problemsetData$itemB.length) && typeData.map(function (item) {
var _problemsetData$itemB2;
if (!(problemsetData !== null && problemsetData !== void 0 && (_problemsetData$itemB2 = problemsetData.itemBanks) !== null && _problemsetData$itemB2 !== void 0 && _problemsetData$itemB2.show_item_types.includes(item.value))) return null;
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(LanguageSelectmodules.directionItem, " ").concat(typeValue === item.value ? LanguageSelectmodules.active : '', " "),
onClick: function onClick() {
return onTypeChange(item.value);
},
children: item.name
}, item.name);
}), (problemsetData === null || problemsetData === void 0 || (_problemsetData$itemB3 = problemsetData.itemBanks) === null || _problemsetData$itemB3 === void 0 || (_problemsetData$itemB3 = _problemsetData$itemB3.show_item_types) === null || _problemsetData$itemB3 === void 0 ? void 0 : _problemsetData$itemB3.includes('PRACTICAL')) && /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: LanguageSelectmodules.directionItem,
onClick: function onClick() {
return onShixunChange();
},
children: "\u5B9E\u8BAD\u9898"
}, '实训题')]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: LanguageSelectmodules.content,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: LanguageSelectmodules.name,
children: "\u96BE\u5EA6"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(LanguageSelectmodules.directionItem, " ").concat(!difficultyValue ? LanguageSelectmodules.active : '', " "),
onClick: function onClick() {
return onDifficultyChange(null);
},
children: "\u5168\u90E8"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: LanguageSelectmodules.directionContentWrap,
children: difficultyData.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(LanguageSelectmodules.directionItem, " ").concat(difficultyValue === item.value ? LanguageSelectmodules.active : '', " "),
onClick: function onClick() {
return onDifficultyChange(item.value);
},
children: item.name
}, item.name);
})
})]
}), showRandomType && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: LanguageSelectmodules.content,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: LanguageSelectmodules.name,
children: "\u7C7B\u578B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(LanguageSelectmodules.directionItem, " ").concat(!randomValue ? LanguageSelectmodules.active : '', " "),
onClick: function onClick() {
return onRandomChange(null);
},
children: "\u5168\u90E8"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: LanguageSelectmodules.directionContentWrap,
children: randomData.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(LanguageSelectmodules.directionItem, " ").concat(randomValue === item.value ? LanguageSelectmodules.active : '', " "),
onClick: function onClick() {
return onRandomChange(item.value);
},
children: item.name
}, item.name);
})
})]
})]
})
});
};
/***/ })
}]);

@ -32,7 +32,6 @@
/* 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; },
@ -486,25 +485,27 @@ var ExportCourseWorkListAppendix = /*#__PURE__*/(/* unused pure expression or su
}()));
var ExportPollsScores = /*#__PURE__*/function () {
var _ref11 = _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 _callee11(params) {
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 _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
showLoading();
_context11.next = 3;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFileIframe */ .QH)("", _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/polls/".concat(params.categoryId, "/commit_result.xlsx"));
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportPollsScores */ .MJ)(_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 3:
// const res = await exportPollsScores({ ...params });
// if (res.status === 0)
// await downLoadFileIframe(
// '',
// setUrlQuery({
// url:
// ENV.API_SERVER + `/api/polls/${params.categoryId}/commit_result.xlsx`,
// query: params,
// }),
// );
res = _context11.sent;
if (!(res.status === 0)) {
_context11.next = 7;
break;
}
_context11.next = 7;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFileIframe */ .QH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/polls/".concat(params.categoryId, "/commit_result.xlsx"),
query: params
}));
case 7:
hideLoading();
case 4:
case 8:
case "end":
return _context11.stop();
}
@ -906,7 +907,7 @@ var exportUserExerciseDetail = /*#__PURE__*/function () {
case 0:
_context30.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, "/consult_exercise.json"),
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"),
query: params
}));
case 2:
@ -985,44 +986,6 @@ var exportTaskPass = /*#__PURE__*/function () {
return _ref33.apply(this, arguments);
};
}();
var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
var _ref34 = _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 _callee34(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 _callee34$(_context34) {
while (1) switch (_context34.prev = _context34.next) {
case 0:
_context34.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 = _context34.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 _context34.stop();
}
}, _callee34);
}));
return function ExportCourseWorkListShixuns(_x38, _x39) {
return _ref34.apply(this, arguments);
};
}();
/***/ })

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[49029,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[49029,1024,14882],{
/***/ 16135:
/*!***********************************************************************************************************!*\

File diff suppressed because it is too large Load Diff

@ -404,6 +404,10 @@ var Edit = function Edit(_ref) {
_useState28 = slicedToArray_default()(_useState27, 2),
studentName = _useState28[0],
setStudentName = _useState28[1];
var _useState29 = (0,_react_17_0_2_react.useState)([]),
_useState30 = slicedToArray_default()(_useState29, 2),
courseClassList = _useState30[0],
setCourseClassList = _useState30[1];
var _account$basicInfo = account.basicInfo,
basicInfo = _account$basicInfo === void 0 ? {} : _account$basicInfo;
// 已职业认证的账户不能修改职业,学校/单位,院系/部门true为disable
@ -415,6 +419,7 @@ var Edit = function Edit(_ref) {
};
(0,_react_17_0_2_react.useEffect)(function () {
getSchoolOption();
getCourseClassOption();
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
if (basicInfo !== null && basicInfo !== void 0 && basicInfo.identity && (basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.identity) === 'student' || !(basicInfo !== null && basicInfo !== void 0 && basicInfo.identity)) {
@ -423,48 +428,71 @@ var Edit = function Edit(_ref) {
setStudentName('工号');
}
}, [account]);
(0,_react_17_0_2_react.useEffect)(function () {
asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _account$basicInfo2;
var getCourseClassOption = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return getDepartmentOption((_account$basicInfo2 = account.basicInfo) === null || _account$basicInfo2 === void 0 ? void 0 : _account$basicInfo2.school_id);
return dispatch({
type: 'account/getCourseClassOption'
});
case 2:
res = _context.sent;
setDepartmentList(res === null || res === void 0 ? void 0 : res.departments);
setCourseClassList(res === null || res === void 0 ? void 0 : res.data);
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getCourseClassOption() {
return _ref2.apply(this, arguments);
};
}();
(0,_react_17_0_2_react.useEffect)(function () {
asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var _account$basicInfo2;
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return getDepartmentOption((_account$basicInfo2 = account.basicInfo) === null || _account$basicInfo2 === void 0 ? void 0 : _account$basicInfo2.school_id);
case 2:
res = _context2.sent;
setDepartmentList(res === null || res === void 0 ? void 0 : res.departments);
case 4:
case "end":
return _context2.stop();
}
}, _callee2);
}))();
}, [(_account$basicInfo3 = account.basicInfo) === null || _account$basicInfo3 === void 0 ? void 0 : _account$basicInfo3.school_id]);
var getSchoolOption = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var res;
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:
setSchoolLoading(true);
_context2.next = 3;
_context3.next = 3;
return dispatch({
type: 'account/getSchoolOption'
});
case 3:
res = _context2.sent;
res = _context3.sent;
setSchoolLoading(false);
setSchoolList(res === null || res === void 0 ? void 0 : res.schools);
case 6:
case "end":
return _context2.stop();
return _context3.stop();
}
}, _callee2);
}, _callee3);
}));
return function getSchoolOption() {
return _ref3.apply(this, arguments);
return _ref4.apply(this, arguments);
};
}();
var getDepartmentOption = function getDepartmentOption(schoolId) {
@ -497,7 +525,8 @@ var Edit = function Edit(_ref) {
brief_introduction: basicInfo.brief_introduction,
jobTitle: basicInfo.identity == "teacher" ? basicInfo.technical_title : "教授",
manager: basicInfo.identity == "professional" ? basicInfo.technical_title : "企业管理者",
staff_id: basicInfo.staff_id
staff_id: basicInfo.staff_id,
course_class_id: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.course_class_id
// face_image:[{uid:'111',name:'111',url:basicInfo.face_image}]
};
if (basicInfo !== null && basicInfo !== void 0 && basicInfo.face_image) {
@ -588,26 +617,26 @@ var Edit = function Edit(_ref) {
});
};
var handleSetDepartment = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(school, departmentName) {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(school, departmentName) {
var _schoolList$find, _res$departments;
var findSchoolId, res, name;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
findSchoolId = (_schoolList$find = schoolList.find(function (item) {
return item.name === school;
})) === null || _schoolList$find === void 0 ? void 0 : _schoolList$find.id;
_context3.next = 3;
_context4.next = 3;
return getDepartmentOption(findSchoolId);
case 3:
_context3.t0 = _context3.sent;
if (_context3.t0) {
_context3.next = 6;
_context4.t0 = _context4.sent;
if (_context4.t0) {
_context4.next = 6;
break;
}
_context3.t0 = {};
_context4.t0 = {};
case 6:
res = _context3.t0;
res = _context4.t0;
setDepartmentList(res === null || res === void 0 ? void 0 : res.departments);
name = departmentName || (res === null || res === void 0 || (_res$departments = res.departments) === null || _res$departments === void 0 || (_res$departments = _res$departments[0]) === null || _res$departments === void 0 ? void 0 : _res$departments.name);
form.setFieldsValue({
@ -619,20 +648,20 @@ var Edit = function Edit(_ref) {
}));
case 11:
case "end":
return _context3.stop();
return _context4.stop();
}
}, _callee3);
}, _callee4);
}));
return function handleSetDepartment(_x, _x2) {
return _ref4.apply(this, arguments);
return _ref5.apply(this, arguments);
};
}();
var handleSchoolSuccess = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(schoolName) {
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(schoolName) {
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
_context4.next = 2;
_context5.next = 2;
return getSchoolOption();
case 2:
form.setFieldsValue({
@ -645,18 +674,18 @@ var Edit = function Edit(_ref) {
}));
case 4:
case "end":
return _context4.stop();
return _context5.stop();
}
}, _callee4);
}, _callee5);
}));
return function handleSchoolSuccess(_x3) {
return _ref5.apply(this, arguments);
return _ref6.apply(this, arguments);
};
}();
var handleCancelAuth = /*#__PURE__*/function () {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6(isRealNameAuth) {
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7(isRealNameAuth) {
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
modal/* default */.Z.confirm({
centered: true,
@ -664,33 +693,33 @@ var Edit = function Edit(_ref) {
cancelText: '取消',
title: isRealNameAuth ? '您已通过实名认证,修改姓名需要撤销实名认证,是否确定撤销?' : '您已通过职业认证,修改信息需要撤销职业认证,是否确定撤销?',
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
var _user$userInfo, _user$userInfo2;
var res, _user$userInfo3;
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
if (!isRealNameAuth) {
_context5.next = 6;
_context6.next = 6;
break;
}
_context5.next = 3;
_context6.next = 3;
return (0,service_account/* cancelAuthentication */.RA)({
login: (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login
});
case 3:
_context5.t0 = _context5.sent;
_context5.next = 9;
_context6.t0 = _context6.sent;
_context6.next = 9;
break;
case 6:
_context5.next = 8;
_context6.next = 8;
return (0,service_account/* cancelProfessionalCertification */.kN)({
login: (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login
});
case 8:
_context5.t0 = _context5.sent;
_context6.t0 = _context6.sent;
case 9:
res = _context5.t0;
res = _context6.t0;
if (res) {
message/* default */.ZP.success(isRealNameAuth ? '撤销实名认证成功' : '撤销职业认证成功');
dispatch({
@ -702,9 +731,9 @@ var Edit = function Edit(_ref) {
}
case 11:
case "end":
return _context5.stop();
return _context6.stop();
}
}, _callee5);
}, _callee6);
}));
function onOk() {
return _onOk.apply(this, arguments);
@ -714,12 +743,12 @@ var Edit = function Edit(_ref) {
});
case 1:
case "end":
return _context6.stop();
return _context7.stop();
}
}, _callee6);
}, _callee7);
}));
return function handleCancelAuth(_x4) {
return _ref6.apply(this, arguments);
return _ref7.apply(this, arguments);
};
}();
var educationBackound = function educationBackound() {
@ -734,13 +763,13 @@ var Edit = function Edit(_ref) {
});
};
var handleFinish = /*#__PURE__*/function () {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8(values) {
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9(values) {
var _departmentList$find, _schoolList$find2;
var nickname, gender, identity, studentNo, jobTitle, manager, school, department, edu_background, edu_entry_year, brief_introduction, face_image, staff_id, department_id, school_id, basicInfo, titls, professionalFlags, _account$basicInfo6, _fileList$2, res, _account$basicInfo7, _user$userInfo7;
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
var nickname, gender, identity, studentNo, jobTitle, manager, school, department, edu_background, edu_entry_year, brief_introduction, face_image, staff_id, course_class_id, department_id, school_id, basicInfo, titls, professionalFlags, _account$basicInfo6, _fileList$2, res, _account$basicInfo7, _user$userInfo7;
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
case 0:
nickname = values.nickname, gender = values.gender, identity = values.identity, studentNo = values.studentNo, jobTitle = values.jobTitle, manager = values.manager, school = values.school, department = values.department, edu_background = values.edu_background, edu_entry_year = values.edu_entry_year, brief_introduction = values.brief_introduction, face_image = values.face_image, staff_id = values.staff_id;
nickname = values.nickname, gender = values.gender, identity = values.identity, studentNo = values.studentNo, jobTitle = values.jobTitle, manager = values.manager, school = values.school, department = values.department, edu_background = values.edu_background, edu_entry_year = values.edu_entry_year, brief_introduction = values.brief_introduction, face_image = values.face_image, staff_id = values.staff_id, course_class_id = values.course_class_id;
department_id = (_departmentList$find = departmentList.find(function (item) {
return item.name === department;
})) === null || _departmentList$find === void 0 ? void 0 : _departmentList$find.id;
@ -788,44 +817,40 @@ var Edit = function Edit(_ref) {
}
}
if (!(titls.length > 0 || professionalFlags.length > 0)) {
_context8.next = 12;
_context9.next = 12;
break;
}
modal/* default */.Z.confirm({
centered: true,
icon: null,
okText: '确定',
cancelText: '取消',
title: '提示',
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u672C\u6B21\u4FEE\u6539\u6D89\u53CA".concat(titls.toString().replaceAll(',', '、')).concat(titls.length > 0 && professionalFlags.length > 0 ? '、' : '').concat(professionalFlags.toString().replaceAll(',', '、'), "\uFF0C\u9700\u8981\u91CD\u65B0\u8FDB\u884C").concat(titls.length > 0 ? '实名认证' : '').concat(titls.length > 0 && professionalFlags.length > 0 ? '和' : '').concat(professionalFlags.length > 0 ? '职业认证' : '', "\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FEE\u6539")
}),
title: "\u672C\u6B21\u4FEE\u6539\u6D89\u53CA".concat(titls.toString().replaceAll(',', '、')).concat(titls.length > 0 && professionalFlags.length > 0 ? '、' : '').concat(professionalFlags.toString().replaceAll(',', '、'), "\uFF0C\u9700\u8981\u91CD\u65B0\u8FDB\u884C").concat(titls.length > 0 ? '实名认证' : '').concat(titls.length > 0 && professionalFlags.length > 0 ? '和' : '').concat(professionalFlags.length > 0 ? '职业认证' : '', "\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FEE\u6539"),
onOk: function () {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
var _account$basicInfo4, _fileList$;
var _user$userInfo4, _user$userInfo5, res, _account$basicInfo5, _user$userInfo6;
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
if (!(titls.length > 0)) {
_context7.next = 3;
_context8.next = 3;
break;
}
_context7.next = 3;
_context8.next = 3;
return (0,service_account/* cancelAuthentication */.RA)({
login: (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.login
});
case 3:
if (!(professionalFlags.length > 0)) {
_context7.next = 6;
_context8.next = 6;
break;
}
_context7.next = 6;
_context8.next = 6;
return (0,service_account/* cancelProfessionalCertification */.kN)({
login: (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.login
});
case 6:
_context7.next = 8;
_context8.next = 8;
return dispatch({
type: 'account/updateAccount',
payload: {
@ -844,19 +869,20 @@ var Edit = function Edit(_ref) {
brief_introduction: brief_introduction,
student_id: identity === 'student' ? studentNo : null,
technical_title: jobTitle || manager,
face_image: fileList === null || fileList === void 0 || (_fileList$ = fileList[0]) === null || _fileList$ === void 0 || (_fileList$ = _fileList$.response) === null || _fileList$ === void 0 ? void 0 : _fileList$.id
face_image: fileList === null || fileList === void 0 || (_fileList$ = fileList[0]) === null || _fileList$ === void 0 || (_fileList$ = _fileList$.response) === null || _fileList$ === void 0 ? void 0 : _fileList$.id,
course_class_id: course_class_id
}
});
case 8:
res = _context7.sent;
res = _context8.sent;
if (!((res === null || res === void 0 ? void 0 : res.status) === -1)) {
_context7.next = 11;
_context8.next = 11;
break;
}
return _context7.abrupt("return");
return _context8.abrupt("return");
case 11:
if (!res) {
_context7.next = 19;
_context8.next = 19;
break;
}
message/* default */.ZP.info('保存成功');
@ -872,10 +898,10 @@ var Edit = function Edit(_ref) {
}
});
if (!(identity !== saveIdentity && identity === 'teacher')) {
_context7.next = 17;
_context8.next = 17;
break;
}
return _context7.abrupt("return");
return _context8.abrupt("return");
case 17:
if (localStorage.getItem('Noviceguide') === '0') {} else {
dispatch({
@ -893,9 +919,9 @@ var Edit = function Edit(_ref) {
_umi_production_exports.history.push('/account/profile');
case 19:
case "end":
return _context7.stop();
return _context8.stop();
}
}, _callee7);
}, _callee8);
}));
function onOk() {
return _onOk2.apply(this, arguments);
@ -903,10 +929,10 @@ var Edit = function Edit(_ref) {
return onOk;
}()
});
_context8.next = 25;
_context9.next = 25;
break;
case 12:
_context8.next = 14;
_context9.next = 14;
return dispatch({
type: 'account/updateAccount',
payload: {
@ -926,19 +952,20 @@ var Edit = function Edit(_ref) {
brief_introduction: brief_introduction,
student_id: identity === 'student' ? studentNo : null,
technical_title: jobTitle || manager,
face_image: fileList === null || fileList === void 0 || (_fileList$2 = fileList[0]) === null || _fileList$2 === void 0 || (_fileList$2 = _fileList$2.response) === null || _fileList$2 === void 0 ? void 0 : _fileList$2.id
face_image: fileList === null || fileList === void 0 || (_fileList$2 = fileList[0]) === null || _fileList$2 === void 0 || (_fileList$2 = _fileList$2.response) === null || _fileList$2 === void 0 ? void 0 : _fileList$2.id,
course_class_id: course_class_id
}
});
case 14:
res = _context8.sent;
res = _context9.sent;
if (!((res === null || res === void 0 ? void 0 : res.status) === -1)) {
_context8.next = 17;
_context9.next = 17;
break;
}
return _context8.abrupt("return");
return _context9.abrupt("return");
case 17:
if (!res) {
_context8.next = 25;
_context9.next = 25;
break;
}
message/* default */.ZP.info('保存成功');
@ -954,10 +981,10 @@ var Edit = function Edit(_ref) {
}
});
if (!(identity !== saveIdentity && identity === 'teacher')) {
_context8.next = 23;
_context9.next = 23;
break;
}
return _context8.abrupt("return");
return _context9.abrupt("return");
case 23:
if (localStorage.getItem('Noviceguide') === '0') {} else {
dispatch({
@ -975,12 +1002,12 @@ var Edit = function Edit(_ref) {
_umi_production_exports.history.push('/account/profile');
case 25:
case "end":
return _context8.stop();
return _context9.stop();
}
}, _callee8);
}, _callee9);
}));
return function handleFinish(_x5) {
return _ref7.apply(this, arguments);
return _ref8.apply(this, arguments);
};
}();
var modalSkip = function modalSkip() {
@ -1369,7 +1396,22 @@ var Edit = function Edit(_ref) {
})
})
})
})), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
})), formValue.identity == "student" && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u884C\u653F\u73ED",
name: "course_class_id",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
style: {
width: 200
},
placeholder: "请选择行政班级",
children: courseClassList === null || courseClassList === void 0 ? void 0 : courseClassList.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: item.id,
children: item.name
}, index);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u6635\u79F0",
name: "nickname",
rules: [{
@ -1636,7 +1678,7 @@ var Edit = function Edit(_ref) {
centered: true,
destroyOnClose: true,
open: assistantVisible,
title: "\u6559\u5E08\u4EA4\u6D41\u793E\u533A",
title: "\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A",
width: 648,
onCancel: modalSkip,
onOk: modalSkip,
@ -1665,12 +1707,12 @@ var Edit = function Edit(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(image_preview/* default */.Z, {})]
});
};
/* harmony default export */ var Profile_Edit = ((0,_umi_production_exports.connect)(function (_ref8) {
var user = _ref8.user,
account = _ref8.account,
loading = _ref8.loading,
globalSetting = _ref8.globalSetting,
shixunHomeworks = _ref8.shixunHomeworks;
/* harmony default export */ var Profile_Edit = ((0,_umi_production_exports.connect)(function (_ref9) {
var user = _ref9.user,
account = _ref9.account,
loading = _ref9.loading,
globalSetting = _ref9.globalSetting,
shixunHomeworks = _ref9.shixunHomeworks;
return {
user: user,
account: account,

@ -1,5 +1,50 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[7229,84360,21321,93826,35019,38660,1024,14882,27155,44407,11021],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[5451,91056,18880,29642,96594,1024,14882,52708,11021],{
/***/ 680:
/*!*******************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@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.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// 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.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@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);
/***/ }),
/***/ 50382:
/*!*****************************************************************************************************!*\
@ -46,24 +91,6 @@ if (false) {}
/***/ }),
/***/ 56762:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useForceUpdate.js ***!
\************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Z: function() { return /* binding */ useForceUpdate; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
function useForceUpdate() {
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
return forceUpdate;
}
/***/ }),
/***/ 24905:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules ***!
@ -1140,6 +1167,27 @@ input_Input.Password = input_Password;
/***/ }),
/***/ 44000:
/*!**********************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/layout/index.js ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 84966);
/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 23088);
"use client";
const Layout = _layout__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP;
Layout.Header = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Header */ .h4;
Layout.Footer = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Footer */ .$_;
Layout.Content = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Content */ .VY;
Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
/* harmony default export */ __webpack_exports__.Z = (Layout);
/***/ }),
/***/ 57809:
/*!**********************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/select/index.js ***!

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[56794,91056,18880,29642,96594,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[56794,91056,18880,29642,96594,1024,14882],{
/***/ 680:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[58047,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[58047,1024,14882],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[60499,84360,7385,21642,92952,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[60499,84360,7385,21642,92952,1024,14882],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -1,50 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18975,49127,97986,2909,47377,89426,95818,63122,84742],{
/***/ 64711:
/*!*************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@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.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// 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.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@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);
/***/ }),
(self["webpackChunk"] = self["webpackChunk"] || []).push([[60864,49127,97986,63269,95818,84742],{
/***/ 19098:
/*!*************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[61362,84360,7385,21642,60499,92952,91056,18880,29642,96594,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[61362,84360,7385,21642,60499,92952,91056,18880,29642,96594,1024,14882],{
/***/ 680:
/*!*******************************************************************************************************************!*\

@ -1,589 +0,0 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[63122],{
/***/ 64711:
/*!*************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@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.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// 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.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@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);
/***/ }),
/***/ 19098:
/*!*************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/CloseSquareOutlined.js + 1 modules ***!
\*************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_CloseSquareOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// 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/CloseSquareOutlined.js
// This icon file is generated automatically.
var CloseSquareOutlined = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M880 112c17.7 0 32 14.3 32 32v736c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32zm-40 72H184v656h656V184zM640.01 338.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-square", "theme": "outlined" };
/* harmony default export */ var asn_CloseSquareOutlined = (CloseSquareOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/CloseSquareOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var CloseSquareOutlined_CloseSquareOutlined = function CloseSquareOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_CloseSquareOutlined
}));
};
/**![close-square](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdmlld0JveD0iNjQgNjQgODk2IDg5NiIgZm9jdXNhYmxlPSJmYWxzZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNODgwIDExMmMxNy43IDAgMzIgMTQuMyAzMiAzMnY3MzZjMCAxNy43LTE0LjMgMzItMzIgMzJIMTQ0Yy0xNy43IDAtMzItMTQuMy0zMi0zMlYxNDRjMC0xNy43IDE0LjMtMzIgMzItMzJ6bS00MCA3MkgxODR2NjU2aDY1NlYxODR6TTY0MC4wMSAzMzguODNjLjAzIDAgLjA1LjAxLjA5LjA2bDQ1LjAyIDQ1LjAxYS4yLjIgMCAwMS4wNS4wOS4xMi4xMiAwIDAxMCAuMDdjMCAuMDItLjAxLjA0LS4wNS4wOEw1NTcuMjUgNTEybDEyNy44NyAxMjcuODZhLjI3LjI3IDAgMDEuMDUuMDZ2LjAyYS4xMi4xMiAwIDAxMCAuMDdjMCAuMDMtLjAxLjA1LS4wNS4wOWwtNDUuMDIgNDUuMDJhLjIuMiAwIDAxLS4wOS4wNS4xMi4xMiAwIDAxLS4wNyAwYy0uMDIgMC0uMDQtLjAxLS4wOC0uMDVMNTEyIDU1Ny4yNSAzODQuMTQgNjg1LjEyYy0uMDQuMDQtLjA2LjA1LS4wOC4wNWEuMTIuMTIgMCAwMS0uMDcgMGMtLjAzIDAtLjA1LS4wMS0uMDktLjA1bC00NS4wMi00NS4wMmEuMi4yIDAgMDEtLjA1LS4wOS4xMi4xMiAwIDAxMC0uMDdjMC0uMDIuMDEtLjA0LjA2LS4wOEw0NjYuNzUgNTEyIDMzOC44OCAzODQuMTRhLjI3LjI3IDAgMDEtLjA1LS4wNmwtLjAxLS4wMmEuMTIuMTIgMCAwMTAtLjA3YzAtLjAzLjAxLS4wNS4wNS0uMDlsNDUuMDItNDUuMDJhLjIuMiAwIDAxLjA5LS4wNS4xMi4xMiAwIDAxLjA3IDBjLjAyIDAgLjA0LjAxLjA4LjA2TDUxMiA0NjYuNzVsMTI3Ljg2LTEyNy44NmMuMDQtLjA1LjA2LS4wNi4wOC0uMDZhLjEyLjEyIDAgMDEuMDcgMHoiIC8+PC9zdmc+) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(CloseSquareOutlined_CloseSquareOutlined);
if (false) {}
/* harmony default export */ var icons_CloseSquareOutlined = (RefIcon);
/***/ }),
/***/ 680:
/*!*******************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@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.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// 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.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@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__) {
"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 rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/Children/toArray */ 75440);
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/omit */ 55405);
/* 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);
/***/ }),
/***/ 44000:
/*!**********************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/layout/index.js ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 84966);
/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 23088);
"use client";
const Layout = _layout__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP;
Layout.Header = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Header */ .h4;
Layout.Footer = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Footer */ .$_;
Layout.Content = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Content */ .VY;
Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
/* harmony default export */ __webpack_exports__.Z = (Layout);
/***/ }),
/***/ 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)
/***/ })
}]);

@ -1,50 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[2909],{
/***/ 64711:
/*!*************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@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.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// 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.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@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);
/***/ }),
(self["webpackChunk"] = self["webpackChunk"] || []).push([[63269],{
/***/ 680:
/*!*******************************************************************************************************************!*\

@ -559,7 +559,7 @@ var dealList = function dealList(item) {
}
var items = data.map(function (e) {
e.forEach(function (info) {
var arr = info.name.split(/\.(?=[^\.]+$)/);
var arr = info.name.split('.');
info.name = "".concat(arr[0], ".").concat(arr[1].toLowerCase());
});
if (e[0].name.includes('.in')) {

@ -525,8 +525,8 @@ function coverToFileList(data) {
function getMoopCase(id) {
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_2__/* .get */ .U2)("libraries/".concat(id, ".json"));
}
function getLibraryTags(params) {
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_2__/* .get */ .U2)('library_tags.json', params);
function getLibraryTags() {
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_2__/* .get */ .U2)('library_tags.json');
}
function removeAttachment(_x) {
return _removeAttachment.apply(this, arguments);

File diff suppressed because one or more lines are too long

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[7093,84360,7385,21642,60499,92952,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[7093,84360,7385,21642,60499,92952,1024,14882],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[7385,84360,21642,60499,92952,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[7385,84360,21642,60499,92952,1024,14882],{
/***/ 50382:
/*!*****************************************************************************************************!*\

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([[78158,84360,21321,93826,35019,38660,1024,14882,27155,44407,11021],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[78158,84360,21321,93826,35019,38660,1024,14882,11021],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -832,7 +832,9 @@ var ClassroomList = function ClassroomList(_ref) {
_ref$wrapWidth = _ref.wrapWidth,
wrapWidth = _ref$wrapWidth === void 0 ? 1200 : _ref$wrapWidth,
trackEventItems = _ref.trackEventItems,
loading = _ref.loading;
openMoveClassroomModal = _ref.openMoveClassroomModal,
loading = _ref.loading,
type = _ref.type;
var width = Math.floor((wrapWidth - (col - 1) * right) / col);
return /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
spinning: loading,
@ -870,7 +872,7 @@ var ClassroomList = function ClassroomList(_ref) {
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: ClassroomListmodules.img,
src: true ? env/* default */.Z.IMG_SERVER + '/images/' + item.avatar_url : 0
src: true ? env/* default */.Z.IMG_SERVER + item.avatar_url : 0
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ClassroomListmodules.text,
title: item.creator,
@ -914,16 +916,12 @@ var ClassroomList = function ClassroomList(_ref) {
className: "iconfont icon-zuoye"
}), item.tasks_count]
})
}), item.is_end ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: '#6B758B'
},
children: "\u5DF2\u7ED3\u675F"
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
color: '#00B187'
}), type === 1 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick(e) {
e.stopPropagation();
openMoveClassroomModal(item.id);
},
children: "\u8FDB\u884C\u4E2D"
children: "\u79FB\u52A8\u5230"
})]
})]
}), !item.is_accessible && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {

@ -162,11 +162,11 @@ function getUnlockAnswer(id, aid) {
answer_id: aid
});
}
function setUnity3dStatus(id, result, data, otherData) {
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/set_games_status.json"), _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({
function setUnity3dStatus(id, result, data) {
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/set_games_status.json"), {
result: result,
data: data
}, otherData || {}));
});
}
//保留唯一一个方法
@ -570,8 +570,8 @@ var difficultyDesc = {
//params.taskId 普通实训 params.identifier jupyter实训
var uploadWorkspace = cloud_type === 4 ? "/data/workspace/userfiles" : windows_vnc ? "C:\/Windows\/AppReadiness\/userfiles" : "/data/workspace/userfiles";
var downloadWorkspace = cloud_type === 4 ? "/data/workspace/downloadfiles" : windows_vnc ? "C:\/Windows\/AppReadiness\/downloadfiles" : "/data/workspace/downloadfiles";
var uploadWorkspace = windows_vnc ? "C:\/Windows\/AppReadiness\/userfiles" : "/data/workspace/userfiles";
var downloadWorkspace = windows_vnc ? "C:\/Windows\/AppReadiness\/downloadfiles" : "/data/workspace/downloadfiles";
var isLoadData = !(0,lodash.isEmpty)(resData) || !(0,lodash.isEmpty)(jupyterData);
var mirror_description = jupyterData ? {
name: jupyterData === null || jupyterData === void 0 ? void 0 : jupyterData.main_mirror_name,
@ -591,7 +591,7 @@ var difficultyDesc = {
className: "pt10",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {
isDragger: true,
maxSize: 2 * 1024,
maxSize: 20,
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) {
@ -614,7 +614,7 @@ var difficultyDesc = {
title: "下载代码",
centered: true,
width: 600,
content: "\u4EE3\u7801\u4E0B\u8F7D\u529F\u80FD\uFF1A\u5C06\u201C".concat(downloadWorkspace, "\u201D\u76EE\u5F55\u8FDB\u884C\u6253\u5305\u5E76\u4E0B\u8F7D\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC71G"),
content: "\u4EE3\u7801\u4E0B\u8F7D\u529F\u80FD\uFF1A\u5C06\u201C".concat(downloadWorkspace, "\u201D\u76EE\u5F55\u8FDB\u884C\u6253\u5305\u5E76\u4E0B\u8F7D"),
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
@ -862,7 +862,7 @@ var difficultyDesc = {
children: "\u7AEF\u53E3"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "c-grey-333",
children: cloud_type === 4 ? resData === null || resData === void 0 ? void 0 : resData.gpPort : resData === null || resData === void 0 ? void 0 : resData.port
children: resData === null || resData === void 0 ? void 0 : resData.port
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: "mt10",
@ -968,7 +968,7 @@ var difficultyDesc = {
},
className: "c-white font16"
}), "\u91CD\u542F\u4E91\u4E3B\u673A "]
}), (tab_type === 3 || tab_type === 5 || is_jupyter_notebook) && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
}), (tab_type === 3 || tab_type === 5 || is_jupyter_notebook || is_jupyter_lab) && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
onClick: function onClick() {
return onVncAction('reset-code');
},

@ -705,8 +705,6 @@ var util = __webpack_require__(27627);
var ExportSetting = __webpack_require__(73558);
// EXTERNAL MODULE: ./src/utils/constant.ts
var constant = __webpack_require__(12957);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(15309);
// 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
@ -729,7 +727,6 @@ 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,
@ -763,28 +760,20 @@ 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:
if (questionNameGet.current) {
_context.next = 2;
break;
}
return _context.abrupt("return");
case 2:
questionNameGet.current = false;
_context.next = 5;
_context.next = 2;
return (0,service_exercise/* getQuestionTypeAlias */.cV)({
id: params.exerciseId || params.categoryId
});
case 5:
case 2:
questionName = _context.sent;
questionName.status == 0 && setQuestionName(questionName.data);
case 7:
case 4:
case "end":
return _context.stop();
}
@ -1111,7 +1100,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: "".concat(env/* default */.Z.API_SERVER).concat(headData === null || headData === void 0 ? void 0 : headData.photo_url)
src: headData === null || headData === void 0 ? void 0 : headData.photo_url
}), (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_title) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: Headmodules.paperHeader,
justify: "center",
@ -1220,7 +1209,6 @@ 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; },
@ -1674,25 +1662,27 @@ var ExportCourseWorkListAppendix = /*#__PURE__*/(/* unused pure expression or su
}()));
var ExportPollsScores = /*#__PURE__*/function () {
var _ref11 = _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 _callee11(params) {
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 _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
showLoading();
_context11.next = 3;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFileIframe */ .QH)("", _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/polls/".concat(params.categoryId, "/commit_result.xlsx"));
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportPollsScores */ .MJ)(_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 3:
// const res = await exportPollsScores({ ...params });
// if (res.status === 0)
// await downLoadFileIframe(
// '',
// setUrlQuery({
// url:
// ENV.API_SERVER + `/api/polls/${params.categoryId}/commit_result.xlsx`,
// query: params,
// }),
// );
res = _context11.sent;
if (!(res.status === 0)) {
_context11.next = 7;
break;
}
_context11.next = 7;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFileIframe */ .QH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/polls/".concat(params.categoryId, "/commit_result.xlsx"),
query: params
}));
case 7:
hideLoading();
case 4:
case 8:
case "end":
return _context11.stop();
}
@ -2094,7 +2084,7 @@ var exportUserExerciseDetail = /*#__PURE__*/function () {
case 0:
_context30.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, "/consult_exercise.json"),
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"),
query: params
}));
case 2:
@ -2173,44 +2163,6 @@ var exportTaskPass = /*#__PURE__*/function () {
return _ref33.apply(this, arguments);
};
}();
var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
var _ref34 = _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 _callee34(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 _callee34$(_context34) {
while (1) switch (_context34.prev = _context34.next) {
case 0:
_context34.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 = _context34.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 _context34.stop();
}
}, _callee34);
}));
return function ExportCourseWorkListShixuns(_x38, _x39) {
return _ref34.apply(this, arguments);
};
}();
/***/ })

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[82854,84360,7385,21642,60499,92952,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[82854,84360,7385,21642,60499,92952,1024,14882],{
/***/ 27385:
/*!*******************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[84360,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[84360,1024,14882],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[86741,84360,7385,21642,60499,92952,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[86741,84360,7385,21642,60499,92952,1024,14882],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -1,50 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[30228,18200,91056,18880,29642,96594,1024,14882,27155,44407,52708,11021],{
/***/ 64711:
/*!*************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@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.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// 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.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@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);
/***/ }),
(self["webpackChunk"] = self["webpackChunk"] || []).push([[88973,5451,91056,18880,29642,96594,1024,14882,52708,11021],{
/***/ 680:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[91056,18880,29642,96594,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[91056,18880,29642,96594,1024,14882],{
/***/ 680:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[92952,84360,7385,21642,60499,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[92952,84360,7385,21642,60499,1024,14882],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[93826,84360,21321,35019,38660,1024,14882,27155,44407,11021],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[93826,84360,21321,35019,38660,1024,14882,11021],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[94338,52720,78169,45504,58268,25473,81120,11021],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[94338,52720,78169,45504,2355,58268,25473,81120,11021],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[95740,7229,84360,21321,93826,35019,38660,1024,14882,27155,44407,11021],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[95740,21995,84360,21321,93826,35019,38660,1024,14882,11021],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[96594,91056,18880,29642,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[96594,91056,18880,29642,1024,14882],{
/***/ 680:
/*!*******************************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[97928,17103,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[97928,17103,1024,14882],{
/***/ 71371:
/*!********************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[99816,84360,86741,7385,21642,60499,92952,1024,14882,27155,44407],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[99816,84360,86741,7385,21642,60499,92952,1024,14882],{
/***/ 50382:
/*!*****************************************************************************************************!*\

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

@ -11,7 +11,8 @@
<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">
<link rel="stylesheet" href="/react/build/umi.f44d49cc.css">
<title>头歌实践教学平台</title>
<link rel="stylesheet" href="/react/build/umi.7dd01ce7.css">
<script src="/react/build/js/polyfill.min.js"></script>
</head>
<body>
@ -26,7 +27,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.6742ddec.js"></script>
<script src="/react/build/umi.12a0f0ca.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -1,87 +0,0 @@
var lockEvent = false;
; (function (open) {
XMLHttpRequest.prototype.open = function (method, url, async, user, password) {
this.addEventListener("load", function () {
if (method === "PUT") {
// if(!lockEvent)
try {
if(url.indexOf("/api/workspaces/default") > -1 || url.indexOf("lab/api/workspaces/auto-M") > -1){
return
}
} catch (error) {
};
window.top.postMessage('jupytermessage', '*');
}
});
open.call(this, method, url, async, user, password);
};
})(XMLHttpRequest.prototype.open);
(function (fetch) {
window.fetch = function (url, options) {
options = options || {}
return fetch.apply(this, arguments).then(function (response) {
try {
if (options.method === "PUT" || (typeof url === "object" && url.method === "PUT")) {
// if(!lockEvent)
try {
if(url.url.indexOf("/api/workspaces/default") > -1 || url.url.indexOf("lab/api/workspaces/auto-M") > -1){
return
}
} catch (error) {
};
window.top.postMessage('jupytermessage', '*');
}
} catch (error) {
}
return response;
});
};
})(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
});
document.dispatchEvent(saveEvent);
}
function onReceiveMessage(e) {
try {
if (e.data === 'saveCode') {
lockEvent = true;
saveCode()
setTimeout(() => {
lockEvent = false
}, 1000)
}
} catch (error) {
console.log('error:', error, e);
}
}
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('/react/build/upgrade-browser.html');
window.location.replace('/upgrade-browser.html');
}
}
IEVersion();

@ -157,7 +157,7 @@ var PublishShixun = function PublishShixun(_ref) {
;
}, [classroomList.actionTabs.key]);
if (classroomList.actionTabs.key !== '添加目录') return null;
console.log('---', classroomList.actionTabs.selectArrs);
console.log('---xxxx', classroomList.actionTabs.selectArrs);
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
title: "\u65B0\u5EFA\u5B50\u76EE\u5F55",
@ -1312,6 +1312,20 @@ var AddAssistant_AddTeacher = function AddTeacher(_ref) {
})
});
}
}, {
title: '行政班',
dataIndex: 'course_class_name',
width: 80,
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "topLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
})
});
}
}, {
title: "实名认证",
dataIndex: "school_name",
@ -1402,6 +1416,9 @@ var AddAssistant_AddTeacher = function AddTeacher(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: "3",
children: "\u90AE\u7BB1"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: "3",
children: "\u90AE\u7BB1"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
@ -1745,19 +1762,17 @@ var AddStudent_AddTeacher = function AddTeacher(_ref) {
}
}, [classroomList.actionTabs.key]);
(0,_react_17_0_2_react.useEffect)(function () {
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
});
}
});
}
}, [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) === null || _res$student_groups === 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() {
var res;
@ -1984,6 +1999,20 @@ var AddStudent_AddTeacher = function AddTeacher(_ref) {
})
});
}
}, {
title: '行政班',
dataIndex: 'course_class_name',
width: 80,
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "topLeft",
title: text,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: text || '--'
})
});
}
}, {
title: '手机',
width: 100,
@ -2175,6 +2204,9 @@ var AddStudent_AddTeacher = function AddTeacher(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: "4",
children: "\u5B66\u53F7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: "5",
children: "\u884C\u653F\u73ED"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
@ -2184,11 +2216,7 @@ var AddStudent_AddTeacher = function AddTeacher(_ref) {
style: {
width: '170px'
},
showSearch: true,
filterOption: function filterOption(input, option) {
return option.children.toUpperCase().indexOf(input.toUpperCase()) !== -1;
},
children: classData.map(function (res) {
children: classData === null || classData === void 0 ? void 0 : classData.map(function (res) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: res === null || res === void 0 ? void 0 : res.id,
children: res === null || res === void 0 ? void 0 : res.name
@ -3497,7 +3525,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
// if(detailTopBanner.excellent && (text == 'board' || text === 'attachment') ){
// return false
// }
if (text === "attendance" || text === 'announcement' || text === "poll" || text === 'graduation' || text === 'course_group' || text === 'new_graduation') {
if (text === "attendance" || text === 'announcement' || text === "poll" || text === 'graduation' || text === 'course_group' || text === 'new_graduation' || text === 'template') {
return false;
} else {
return true;

@ -529,19 +529,6 @@
color: #979797;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.3.24@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.24@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Header/components/DelayTip/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.tip___a6MfI {
width: 1200px;
height: 40px;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 12px;
margin: 0 auto;
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.3.24@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.24@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Footer/BeforeFooter/index.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/

@ -30,8 +30,8 @@ var _react_17_0_2_react = __webpack_require__(59301);
var config_provider = __webpack_require__(92736);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/locale/zh_CN.js + 4 modules
var zh_CN = __webpack_require__(81863);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 14 modules
var Header = __webpack_require__(26434);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 12 modules
var Header = __webpack_require__(33582);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(65363);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.13@dayjs/dayjs.min.js
@ -404,7 +404,7 @@ var SideBar = function SideBar(_ref) {
centered: true,
destroyOnClose: true,
open: QQVisible,
title: "\u6559\u5E08\u4EA4\u6D41\u793E\u533A",
title: "\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A",
width: "500px",
footer: null,
onCancel: function onCancel() {

@ -672,19 +672,6 @@
color: #979797;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.3.24@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.24@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Header/components/DelayTip/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.tip___a6MfI {
width: 1200px;
height: 40px;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 12px;
margin: 0 auto;
}
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.3.24@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.24@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/PodModal/index.less?modules ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/

@ -1,50 +1,5 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[41717],{
/***/ 64711:
/*!*************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@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.25.6@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(33614);
// 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.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@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);
/***/ }),
(self["webpackChunk"] = self["webpackChunk"] || []).push([[41717],{
/***/ 680:
/*!*******************************************************************************************************************!*\
@ -52,7 +7,6 @@ if (false) {}
\*******************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -98,7 +52,6 @@ if (false) {}
\********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
@ -116,9 +69,6 @@ var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// 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/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);
@ -132,6 +82,9 @@ var modal = __webpack_require__(43418);
var zh_CN = __webpack_require__(81863);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(65363);
// 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/_antd@5.9.0@antd/es/form/index.js + 19 modules
var es_form = __webpack_require__(78241);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
@ -150,9 +103,6 @@ var CloseOutlined = __webpack_require__(51638);
var table = __webpack_require__(61998);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/alert/index.js + 3 modules
var es_alert = __webpack_require__(46400);
// 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);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/User/UnlockLogin/index.tsx
@ -166,7 +116,6 @@ var jsx_runtime = __webpack_require__(37712);
var inputStyle = {
height: 48,
borderRadius: 4
@ -230,58 +179,23 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
}];
var onFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _res2;
var res, newData, iv, ciphertext, _res, _res3, from;
var res, from;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return form.validateFields();
case 2:
if (!(accountInfo !== null && accountInfo !== void 0 && accountInfo.code)) {
_context.next = 8;
break;
}
_context.next = 5;
return (0,service_user/* LoginForPhone */.Gq)(objectSpread2_default()(objectSpread2_default()({}, accountInfo), {}, {
phone: accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.login
}, form.getFieldValue()));
case 5:
res = _context.sent;
_context.next = 21;
break;
case 8:
if (!(accountInfo !== null && accountInfo !== void 0 && accountInfo.user_token)) {
_context.next = 14;
break;
}
_context.next = 11;
return (0,service_user/* getUserInfo */.bG)(objectSpread2_default()(objectSpread2_default()({}, accountInfo), {}, {
websiteName: "exercise_unlock"
}, form.getFieldsValue()));
case 11:
res = _context.sent;
_context.next = 21;
break;
case 14:
newData = JSON.parse(JSON.stringify(accountInfo || {}));
iv = _crypto_js_4_1_1_crypto_js_default().enc.Utf8.parse("5183666c72eec9e4");
ciphertext = _crypto_js_4_1_1_crypto_js_default().AES.encrypt(newData.password || "", iv, {
iv: iv,
mode: (_crypto_js_4_1_1_crypto_js_default()).mode.CBC
});
newData.password = ciphertext.toString();
_context.next = 20;
return (0,service_user/* LoginIn */.Es)(objectSpread2_default()(objectSpread2_default()({}, newData), form.getFieldValue()));
case 20:
_context.next = 4;
return (0,service_user/* LoginIn */.Es)(objectSpread2_default()(objectSpread2_default()({}, accountInfo), form.getFieldValue()));
case 4:
res = _context.sent;
case 21:
if (!res.status) {
_context.next = 28;
_context.next = 12;
break;
}
if (!(res.status === -4)) {
_context.next = 26;
_context.next = 10;
break;
}
dispatch({
@ -299,65 +213,65 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
}
});
return _context.abrupt("return");
case 26:
setErrorValue((_res = res) === null || _res === void 0 ? void 0 : _res.message);
case 10:
setErrorValue(res === null || res === void 0 ? void 0 : res.message);
return _context.abrupt("return");
case 28:
case 12:
setOpenModal(false);
if ((_res2 = res) !== null && _res2 !== void 0 && _res2.show) {
if (res !== null && res !== void 0 && res.show) {
localStorage.setItem('extension-modal', 'exist');
localStorage.setItem('extension-date', (_res3 = res) === null || _res3 === void 0 ? void 0 : _res3.start_date);
localStorage.setItem('extension-date', res === null || res === void 0 ? void 0 : res.start_date);
} else {
localStorage.removeItem('extension-modal');
}
if (!(location.pathname === '/user/login' || location.pathname === '/login')) {
_context.next = 45;
_context.next = 29;
break;
}
from = searchParams.get("form") || searchParams.get("back_url");
if (!from) {
_context.next = 36;
_context.next = 20;
break;
}
window.location.href = decodeURIComponent(from);
_context.next = 43;
_context.next = 27;
break;
case 36:
if (!(!password.test(accountInfo.password) && !(accountInfo !== null && accountInfo !== void 0 && accountInfo.code))) {
_context.next = 41;
case 20:
if (password.test(accountInfo.password)) {
_context.next = 25;
break;
}
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
window.location.href = '/account/secure';
_context.next = 43;
_context.next = 27;
break;
case 41:
window.location.href = "/";
case 25:
window.location.reload();
return _context.abrupt("return");
case 43:
_context.next = 53;
case 27:
_context.next = 37;
break;
case 45:
if (!(!password.test(accountInfo.password) && !(accountInfo !== null && accountInfo !== void 0 && accountInfo.code))) {
_context.next = 51;
case 29:
if (password.test(accountInfo.password)) {
_context.next = 35;
break;
}
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
window.location.href = '/account/secure?active=3';
_umi_production_exports.history.replace('/account/secure?active=3');
dispatch({
type: 'user/showPopLogin',
payload: {
showPopLogin: false
}
});
_context.next = 53;
_context.next = 37;
break;
case 51:
case 35:
window.location.reload();
return _context.abrupt("return");
case 53:
case 37:
form.resetFields();
case 54:
case 38:
case "end":
return _context.stop();
}
@ -451,7 +365,6 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
var LoginForm_inputStyle = {
height: 48,
borderRadius: 4
@ -487,7 +400,7 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
var password = /^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/;
var onFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
var newValues, iv, ciphertext, res, from;
var res, from;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
@ -497,24 +410,17 @@ 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 = 9;
return (0,service_user/* LoginIn */.Es)(newValues);
case 9:
_context.next = 5;
return (0,service_user/* LoginIn */.Es)(values);
case 5:
res = _context.sent;
if (!res.status) {
_context.next = 23;
_context.next = 19;
break;
}
if (!(res.status === -4)) {
_context.next = 17;
_context.next = 13;
break;
}
dispatch({
@ -532,18 +438,18 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
}
});
return _context.abrupt("return");
case 17:
case 13:
if (!(res.status === -5)) {
_context.next = 21;
_context.next = 17;
break;
}
setErrorData([res === null || res === void 0 ? void 0 : res.message]);
setOpenUnlockLogin(true);
return _context.abrupt("return");
case 21:
case 17:
setErrorValue(res === null || res === void 0 ? void 0 : res.message);
return _context.abrupt("return");
case 23:
case 19:
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);
@ -551,35 +457,35 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
localStorage.removeItem('extension-modal');
}
if (!(location.pathname === '/user/login' || location.pathname === '/login')) {
_context.next = 39;
_context.next = 35;
break;
}
from = searchParams.get("form") || searchParams.get("back_url");
if (!from) {
_context.next = 30;
_context.next = 26;
break;
}
window.location.href = decodeURIComponent(from);
_context.next = 37;
_context.next = 33;
break;
case 30:
case 26:
if (password.test(values.password)) {
_context.next = 35;
_context.next = 31;
break;
}
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
window.location.href = '/account/secure';
_context.next = 37;
_context.next = 33;
break;
case 35:
case 31:
window.location.reload();
return _context.abrupt("return");
case 37:
_context.next = 47;
case 33:
_context.next = 43;
break;
case 39:
case 35:
if (password.test(values.password)) {
_context.next = 45;
_context.next = 41;
break;
}
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
@ -590,14 +496,14 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
showPopLogin: false
}
});
_context.next = 47;
_context.next = 43;
break;
case 45:
case 41:
window.location.reload();
return _context.abrupt("return");
case 47:
case 43:
form.resetFields();
case 48:
case 44:
case "end":
return _context.stop();
}
@ -1992,12 +1898,13 @@ var TabPane = tabs/* default */.Z.TabPane;
is_main_site = _ref.is_main_site,
is_local = _ref.is_local,
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style;
style = _ref$style === void 0 ? {} : _ref$style,
globalSetting = _ref.globalSetting;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
wechatQrcode = _useState2[0],
setWechatQrcode = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)('1'),
var _useState3 = (0,_react_17_0_2_react.useState)("1"),
_useState4 = slicedToArray_default()(_useState3, 2),
type = _useState4[0],
setType = _useState4[1];
@ -2177,10 +2084,37 @@ var TabPane = tabs/* default */.Z.TabPane;
return register;
}()
};
console.log('---', globalSetting);
var loginDom = (0,_react_17_0_2_react.useCallback)(function () {
var _globalSetting$settin;
switch (loginType) {
case 1:
return /*#__PURE__*/(0,jsx_runtime.jsx)(tabs/* default */.Z, {
tabBarExtraContent: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.zcst_authorize_url) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
onClick: function onClick() {
var _globalSetting$settin2;
window.location.href = globalSetting === null || globalSetting === void 0 || (_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.zcst_authorize_url;
},
style: {
alignItems: 'center',
marginRight: 40
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
style: {
width: 40,
cursor: 'pointer',
marginRight: 5
},
src: "https://t15.baidu.com/it/u=1067996267,3024058787&fm=179&app=42&size=w54&n=0&f=JPEG&fmt=auto?s=37F0E9365892F7E1429603EC0300E02F&sec=1678467600&t=07e25c502c22ff21e8b8f4e74e506e58"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
cursor: 'pointer'
},
children: "\u8BA4\u8BC1\u4E2D\u5FC3"
})]
})
}),
defaultActiveKey: type,
onChange: callback,
className: LoginPanelmodules.tabs,
@ -2294,6 +2228,7 @@ var PopLogin_LoginPopComponents = function LoginPopComponents(_ref) {
onCancel: onCancel,
children: user.showPopLogin && /*#__PURE__*/(0,jsx_runtime.jsx)(LoginPanel, {
is_main_site: is_main_site,
globalSetting: globalSetting,
is_local: is_local
})
});
@ -2751,8 +2686,8 @@ var spin = __webpack_require__(71418);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.13@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(61186);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 14 modules
var Header = __webpack_require__(26434);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 12 modules
var Header = __webpack_require__(33582);
// 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);
@ -2986,7 +2921,6 @@ var es = __webpack_require__(7102);
var _excluded = ["loading", "globalSetting", "user", "dispatch"];
@ -3007,7 +2941,6 @@ var _excluded = ["loading", "globalSetting", "user", "dispatch"];
dayjs_min_default().locale('zh-cn');
var SimpleLayouts = function SimpleLayouts(_ref) {
var loading = _ref.loading,
@ -3018,10 +2951,6 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
var location = (0,_umi_production_exports.useLocation)();
var payload = (0,Header/* getCourseParam */.g)();
var globalLoading = globalSetting.globalLoading;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
showUnlock = _useState2[0],
setShowUnlock = _useState2[1];
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _res;
@ -3071,15 +3000,7 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
if ((_res = res) !== null && _res !== void 0 && _res.username && location.pathname === '/login') {
_umi_production_exports.history.push("/");
}
if (res.status === -5) {
setShowUnlock({
data: [res.message],
accountInfo: {
user_token: res.message.user_token
}
});
}
case 16:
case 15:
case "end":
return _context.stop();
}
@ -3089,58 +3010,6 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
return _ref2.apply(this, arguments);
};
}();
var getLimit = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var _localStorage;
var res, delaytip, _res$data, _res$data2, _res$data3, _user$userInfo;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return (0,fetch/* default */.ZP)('/api/user_concurrencies', {
method: 'get'
});
case 2:
res = _context2.sent;
delaytip = JSON.parse((_localStorage = localStorage) === null || _localStorage === void 0 ? void 0 : _localStorage.getItem('delaytip_class'));
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
if (res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && _res$data.limit) {
if (!delaytip || dayjs_min_default()(delaytip === null || delaytip === void 0 ? void 0 : delaytip.time).add(5, 'minutes') < dayjs_min_default()(new Date())) {
localStorage.setItem('delaytip_class', JSON.stringify({
time: new Date(),
login: user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login,
isShow: true
}));
}
dispatch({
type: 'globalSetting/delayTipToggle',
payload: true
});
dispatch({
type: 'globalSetting/setInfoData',
payload: {
name: res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.edu_operations_information,
phone: res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.edu_contact_information
}
});
} else {
localStorage.removeItem('delaytip_class');
dispatch({
type: 'globalSetting/delayTipToggle',
payload: false
});
}
}
case 5:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function getLimit() {
return _ref3.apply(this, arguments);
};
}();
(0,_react_17_0_2_react.useEffect)(function () {
// window.less.modifyVars({
// ...themes[globalSetting.theme]
@ -3229,7 +3098,7 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-red",
children: "\u60A8\u7684\u8003\u8BD5\u7CFB\u7EDF\u67DC\u5BA2\u6237\u7AEF\u7248\u672C\u8FC7\u4F4E"
children: "\u60A8\u7684\u5934\u6B4C\u8003\u8BD5\u7CFB\u7EDF\u67DC\u5BA2\u6237\u7AEF\u7248\u672C\u8FC7\u4F4E"
}), "\uFF0C\u8BF7\u5347\u7EA7\u81F3\u6700\u65B0\u7248\u672C\u540E\u518D\u4F7F\u7528\uFF0C\u70B9\u51FB\"\u786E\u5B9A\"\u540E\u5C06\u4E0B\u8F7D\u6700\u65B0\u7248\u672C\u7684\u5BA2\u6237\u7AEF,", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-red",
children: "\u4E0B\u8F7D\u540E\u8BF7\u5148\u9000\u51FA\u5BA2\u6237\u7AEF\u518D\u5B89\u88C5"
@ -3265,24 +3134,14 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
localStorage.removeItem("updateEndTime");
}
}, [globalSetting.updateData.system_update]);
(0,_react_17_0_2_react.useEffect)(function () {
var _user$userInfo2;
if (user !== null && user !== void 0 && (_user$userInfo2 = user.userInfo) !== null && _user$userInfo2 !== void 0 && _user$userInfo2.login) {
getLimit();
var interval = setInterval(getLimit, 30000);
return function () {
clearInterval(interval);
};
}
}, [user === null || user === void 0 ? void 0 : user.userInfo]);
var toTrackEvent = function toTrackEvent() {
var _user$userInfo3;
var _user$userInfo;
var trackUserTime = localStorage.trackUserTime;
var trackUser = localStorage.trackUser;
if (trackUserTime && dayjs_min_default()(trackUserTime).isSame(dayjs_min_default()().startOf('day'), 'd') && trackUser == ((_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.login)) {} else {
var _user$userInfo4, _user$userInfo5, _user$userInfo6, _user$userInfo7;
if (trackUserTime && dayjs_min_default()(trackUserTime).isSame(dayjs_min_default()().startOf('day'), 'd') && trackUser == ((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login)) {} else {
var _user$userInfo2, _user$userInfo3, _user$userInfo4, _user$userInfo5;
localStorage.trackUserTime = new Date();
localStorage.trackUser = (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.login;
localStorage.trackUser = (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login;
var text = '';
switch (user.userInfo.role) {
case 1:
@ -3301,13 +3160,13 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
text = '学生';
break;
}
if (((_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.identity) !== 'student' && ((_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.identity) !== 'teacher') {
if (((_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.identity) !== 'student' && ((_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.identity) !== 'teacher') {
text = '专业人士';
}
if ((_user$userInfo7 = user.userInfo) !== null && _user$userInfo7 !== void 0 && _user$userInfo7.user_school) {
var _user$userInfo8, _user$userInfo9, _user$userInfo10;
(0,util/* trackEvent */.L9)(['学校活跃用户', (_user$userInfo8 = user.userInfo) === null || _user$userInfo8 === void 0 ? void 0 : _user$userInfo8.user_school]);
(0,util/* trackEvent */.L9)(['用户访问明细', (_user$userInfo9 = user.userInfo) === null || _user$userInfo9 === void 0 ? void 0 : _user$userInfo9.login, (_user$userInfo10 = user.userInfo) === null || _user$userInfo10 === void 0 ? void 0 : _user$userInfo10.user_school]);
if ((_user$userInfo5 = user.userInfo) !== null && _user$userInfo5 !== void 0 && _user$userInfo5.user_school) {
var _user$userInfo6, _user$userInfo7, _user$userInfo8;
(0,util/* trackEvent */.L9)(['学校活跃用户', (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.user_school]);
(0,util/* trackEvent */.L9)(['用户访问明细', (_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.login, (_user$userInfo8 = user.userInfo) === null || _user$userInfo8 === void 0 ? void 0 : _user$userInfo8.user_school]);
}
(0,util/* trackEvent */.L9)(['平台PC端', '总活跃用户数']);
(0,util/* trackEvent */.L9)(['平台PC端', text]);
@ -3321,11 +3180,7 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
autoInsertSpaceInButton: false,
componentSize: "middle",
theme: antd_theme,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(PopLogin, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(UnlockLogin, {
open: showUnlock ? true : false,
accountInfo: showUnlock === null || showUnlock === void 0 ? void 0 : showUnlock.accountInfo,
data: showUnlock === null || showUnlock === void 0 ? void 0 : showUnlock.data
}), /*#__PURE__*/(0,jsx_runtime.jsx)(User_BindAccountPanel, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_PodModal, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(PopLogin, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(User_BindAccountPanel, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_PodModal, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
size: 'middle',
spinning: globalLoading.show,
tip: globalLoading.text,
@ -3335,10 +3190,10 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
})
});
};
/* harmony default export */ var layouts = ((0,_umi_production_exports.connect)(function (_ref4) {
var loading = _ref4.loading,
globalSetting = _ref4.globalSetting,
user = _ref4.user;
/* harmony default export */ var layouts = ((0,_umi_production_exports.connect)(function (_ref3) {
var loading = _ref3.loading,
globalSetting = _ref3.globalSetting,
user = _ref3.user;
return {
loading: loading,
globalSetting: globalSetting,
@ -3354,7 +3209,6 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -3832,7 +3686,6 @@ 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 */ 23088);
"use client";
@ -3846,16 +3699,6 @@ 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) */
/***/ })
}]);

@ -201,8 +201,8 @@ function WechatQrcode(_ref2) {
})]
});
}
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 14 modules
var Header = __webpack_require__(26434);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 12 modules
var Header = __webpack_require__(33582);
;// CONCATENATED MODULE: ./src/layouts/user/index.less
// extracted by mini-css-extract-plugin
@ -256,13 +256,7 @@ function Register(_ref) {
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"
})
className: "register-nav"
});
}
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {

@ -553,19 +553,6 @@
color: #979797;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.3.24@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.24@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Header/components/DelayTip/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.tip___a6MfI {
width: 1200px;
height: 40px;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 12px;
margin: 0 auto;
}
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.24@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.24@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/layouts/user/index.less ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/

@ -5,7 +5,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
<meta content="telephone=no" name="format-detection">
<title>考试系统</title>
<title>头歌考试系统</title>
<style>
* {
margin: 0;

@ -5,7 +5,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
<meta content="telephone=no" name="format-detection">
<title>考试系统</title>
<title>头歌考试系统</title>
<style>
* {
margin: 0;

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>实践教学平台</title>
<title>头歌实践教学平台</title>
<!-- <link id="dynamic-favicon" rel="shortcut icon"
href="https://ali-cdn.educoder.net/images/avatars/LaboratorySetting/1tab?t=1610677202"> -->
</head>

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

@ -825,9 +825,6 @@ 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",
@ -838,9 +835,6 @@ 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",

@ -384,12 +384,12 @@ __webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ Index; }
});
// 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/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);
@ -455,10 +455,11 @@ var VerifyType = /*#__PURE__*/function (VerifyType) {
return VerifyType;
}(VerifyType || {});
var Page = function Page(_ref) {
var _user$userInfo3, _globalSetting$settin, _user$userInfo4, _globalSetting$settin2, _globalSetting$settin3;
var _user$userInfo3, _globalSetting$settin, _globalSetting$settin2, _globalSetting$settin3;
var globalSetting = _ref.globalSetting,
dispatch = _ref.dispatch,
user = _ref.user;
user = _ref.user,
homePage = _ref.homePage;
var _useState = (0,_react_17_0_2_react.useState)({
page: 1,
limit: 16,
@ -524,7 +525,10 @@ var Page = function Page(_ref) {
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
getList(params);
// dispatch({ type: 'ja', payload: {} })
dispatch({
type: 'homePage/home',
payload: {}
});
}, []);
var getList = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(parameter) {
@ -534,20 +538,15 @@ var Page = function Page(_ref) {
case 0:
setLoading(true);
_context.next = 3;
return (0,classrooms/* getClassroomList */.V8)(objectSpread2_default()(objectSpread2_default()({}, parameter), {}, {
tab_module_type: 'classrooms'
}));
return (0,classrooms/* getClassroomList */.V8)(parameter);
case 3:
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 404) {
_umi_production_exports.history.replace('/404');
}
if (res.status !== -1) {
setList((res === null || res === void 0 ? void 0 : res.courses) || []);
setTotal((res === null || res === void 0 ? void 0 : res.courses_count) || 0);
}
setLoading(false);
case 7:
case 6:
case "end":
return _context.stop();
}
@ -630,7 +629,7 @@ var Page = function Page(_ref) {
click: function click() {
(0,util/* openNewWindow */.xg)('/classroomsoverview');
},
isShow: user === null || user === void 0 || (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.is_show_btn
isShow: homePage === null || homePage === void 0 ? void 0 : homePage.is_show_btn
}].filter(function (item) {
return item.isShow;
});
@ -692,10 +691,12 @@ var Page = function Page(_ref) {
};
/* harmony default export */ var Index = ((0,_umi_production_exports.connect)(function (_ref3) {
var user = _ref3.user,
globalSetting = _ref3.globalSetting;
globalSetting = _ref3.globalSetting,
homePage = _ref3.homePage;
return {
user: user,
globalSetting: globalSetting
globalSetting: globalSetting,
homePage: homePage
};
})(Page));

@ -748,7 +748,7 @@ var ZhujiaoPage = function ZhujiaoPage(_ref) {
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 43418);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 8591);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 71418);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd */ 5112);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd */ 24905);
/* harmony import */ var _service_teacher__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/service/teacher */ 71770);
/* harmony import */ var react_infinite_scroller__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-infinite-scroller */ 26724);
/* harmony import */ var react_infinite_scroller__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react_infinite_scroller__WEBPACK_IMPORTED_MODULE_7__);
@ -837,22 +837,23 @@ var EditAttendance = function EditAttendance(_ref) {
minHeight: 200
},
onOk: /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3___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 _callee2() {
var _formValue$course_mem;
var formValue, selectValue, 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 _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
formValue = form.getFieldValue();
if (!formValue.course_member_id) {
_context2.next = 9;
formValue = form.getFieldsValue();
console.log(formValue);
if (!((formValue === null || formValue === void 0 || (_formValue$course_mem = formValue.course_member_id) === null || _formValue$course_mem === void 0 ? void 0 : _formValue$course_mem.length) > 0)) {
_context2.next = 10;
break;
}
selectValue = formValue.course_member_id.split(",");
_context2.next = 5;
selectValue = formValue.course_member_id;
_context2.next = 6;
return (0,_service_teacher__WEBPACK_IMPORTED_MODULE_6__/* .changeCourseAdmin */ .rM)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), {}, {
user_id: selectValue[1],
course_member_id: selectValue[0]
course_member_id: selectValue
}));
case 5:
case 6:
res = _context2.sent;
if (res.status === 0) {
setData([]);
@ -876,11 +877,11 @@ var EditAttendance = function EditAttendance(_ref) {
payload: {}
});
}
_context2.next = 10;
_context2.next = 11;
break;
case 9:
antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP.error("请选择管理员");
case 10:
antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP.error("请选择管理员");
case 11:
case "end":
return _context2.stop();
}
@ -923,14 +924,17 @@ var EditAttendance = function EditAttendance(_ref) {
style: {
marginBottom: 0
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"].Group */ .ZP.Group, {
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z.Group, {
children: data === null || data === void 0 ? void 0 : data.map(function (item, key) {
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .ZP, {
value: item.course_member_id + "," + item.user_id,
style: {
marginBottom: 6
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
value: item.course_member_id,
children: item.name
})
});
}, key);
})
})
})
@ -952,6 +956,285 @@ var EditAttendance = function EditAttendance(_ref) {
/***/ }),
/***/ 24905:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules ***!
\************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ es_checkbox; }
});
// 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-checkbox@3.1.0@rc-checkbox/es/index.js
var es = __webpack_require__(5630);
// 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 config_provider_context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/DisabledContext.js
var DisabledContext = __webpack_require__(1684);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js
var context = __webpack_require__(32441);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/GroupContext.js
const GroupContext = /*#__PURE__*/_react_17_0_2_react.createContext(null);
/* harmony default export */ var checkbox_GroupContext = (GroupContext);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/style/index.js
var checkbox_style = __webpack_require__(98447);
// 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/_util/wave/interface.js
var wave_interface = __webpack_require__(4572);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/Checkbox.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 InternalCheckbox = (props, ref) => {
var _a;
const {
prefixCls: customizePrefixCls,
className,
rootClassName,
children,
indeterminate = false,
style,
onMouseEnter,
onMouseLeave,
skipGroup = false,
disabled
} = props,
restProps = __rest(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]);
const {
getPrefixCls,
direction,
checkbox
} = _react_17_0_2_react.useContext(config_provider_context/* ConfigContext */.E_);
const checkboxGroup = _react_17_0_2_react.useContext(checkbox_GroupContext);
const {
isFormItemInput
} = _react_17_0_2_react.useContext(context/* FormItemInputContext */.aM);
const contextDisabled = _react_17_0_2_react.useContext(DisabledContext/* default */.Z);
const mergedDisabled = (_a = (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.disabled) || disabled) !== null && _a !== void 0 ? _a : contextDisabled;
const prevValue = _react_17_0_2_react.useRef(restProps.value);
_react_17_0_2_react.useEffect(() => {
checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
false ? 0 : void 0;
}, []);
_react_17_0_2_react.useEffect(() => {
if (skipGroup) {
return;
}
if (restProps.value !== prevValue.current) {
checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(prevValue.current);
checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
prevValue.current = restProps.value;
}
return () => checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(restProps.value);
}, [restProps.value]);
const prefixCls = getPrefixCls('checkbox', customizePrefixCls);
const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls);
const checkboxProps = Object.assign({}, restProps);
if (checkboxGroup && !skipGroup) {
checkboxProps.onChange = function () {
if (restProps.onChange) {
restProps.onChange.apply(restProps, arguments);
}
if (checkboxGroup.toggleOption) {
checkboxGroup.toggleOption({
label: children,
value: restProps.value
});
}
};
checkboxProps.name = checkboxGroup.name;
checkboxProps.checked = checkboxGroup.value.includes(restProps.value);
}
const classString = _classnames_2_5_1_classnames_default()(`${prefixCls}-wrapper`, {
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-wrapper-checked`]: checkboxProps.checked,
[`${prefixCls}-wrapper-disabled`]: mergedDisabled,
[`${prefixCls}-wrapper-in-form-item`]: isFormItemInput
}, checkbox === null || checkbox === void 0 ? void 0 : checkbox.className, className, rootClassName, hashId);
const checkboxClass = _classnames_2_5_1_classnames_default()({
[`${prefixCls}-indeterminate`]: indeterminate
}, wave_interface/* TARGET_CLS */.A, hashId);
const ariaChecked = indeterminate ? 'mixed' : undefined;
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(wave/* default */.Z, {
component: "Checkbox",
disabled: mergedDisabled
}, /*#__PURE__*/_react_17_0_2_react.createElement("label", {
className: classString,
style: Object.assign(Object.assign({}, checkbox === null || checkbox === void 0 ? void 0 : checkbox.style), style),
onMouseEnter: onMouseEnter,
onMouseLeave: onMouseLeave
}, /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, Object.assign({
"aria-checked": ariaChecked
}, checkboxProps, {
prefixCls: prefixCls,
className: checkboxClass,
disabled: mergedDisabled,
ref: ref
})), children !== undefined && /*#__PURE__*/_react_17_0_2_react.createElement("span", null, children))));
};
const Checkbox = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalCheckbox);
if (false) {}
/* harmony default export */ var checkbox_Checkbox = (Checkbox);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
var toConsumableArray = __webpack_require__(61414);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/omit.js
var omit = __webpack_require__(55405);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/Group.js
"use client";
var Group_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 InternalGroup = (props, ref) => {
const {
defaultValue,
children,
options = [],
prefixCls: customizePrefixCls,
className,
rootClassName,
style,
onChange
} = props,
restProps = Group_rest(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]);
const {
getPrefixCls,
direction
} = _react_17_0_2_react.useContext(config_provider_context/* ConfigContext */.E_);
const [value, setValue] = _react_17_0_2_react.useState(restProps.value || defaultValue || []);
const [registeredValues, setRegisteredValues] = _react_17_0_2_react.useState([]);
_react_17_0_2_react.useEffect(() => {
if ('value' in restProps) {
setValue(restProps.value || []);
}
}, [restProps.value]);
const memoOptions = _react_17_0_2_react.useMemo(() => options.map(option => {
if (typeof option === 'string' || typeof option === 'number') {
return {
label: option,
value: option
};
}
return option;
}), [options]);
const cancelValue = val => {
setRegisteredValues(prevValues => prevValues.filter(v => v !== val));
};
const registerValue = val => {
setRegisteredValues(prevValues => [].concat((0,toConsumableArray/* default */.Z)(prevValues), [val]));
};
const toggleOption = option => {
const optionIndex = value.indexOf(option.value);
const newValue = (0,toConsumableArray/* default */.Z)(value);
if (optionIndex === -1) {
newValue.push(option.value);
} else {
newValue.splice(optionIndex, 1);
}
if (!('value' in restProps)) {
setValue(newValue);
}
onChange === null || onChange === void 0 ? void 0 : onChange(newValue.filter(val => registeredValues.includes(val)).sort((a, b) => {
const indexA = memoOptions.findIndex(opt => opt.value === a);
const indexB = memoOptions.findIndex(opt => opt.value === b);
return indexA - indexB;
}));
};
const prefixCls = getPrefixCls('checkbox', customizePrefixCls);
const groupPrefixCls = `${prefixCls}-group`;
const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls);
const domProps = (0,omit/* default */.Z)(restProps, ['value', 'disabled']);
const childrenNode = options.length ? memoOptions.map(option => /*#__PURE__*/_react_17_0_2_react.createElement(checkbox_Checkbox, {
prefixCls: prefixCls,
key: option.value.toString(),
disabled: 'disabled' in option ? option.disabled : restProps.disabled,
value: option.value,
checked: value.includes(option.value),
onChange: option.onChange,
className: `${groupPrefixCls}-item`,
style: option.style,
title: option.title
}, option.label)) : children;
// eslint-disable-next-line react/jsx-no-constructed-context-values
const context = {
toggleOption,
value,
disabled: restProps.disabled,
name: restProps.name,
// https://github.com/ant-design/ant-design/issues/16376
registerValue,
cancelValue
};
const classString = _classnames_2_5_1_classnames_default()(groupPrefixCls, {
[`${groupPrefixCls}-rtl`]: direction === 'rtl'
}, className, rootClassName, hashId);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
className: classString,
style: style
}, domProps, {
ref: ref
}), /*#__PURE__*/_react_17_0_2_react.createElement(checkbox_GroupContext.Provider, {
value: context
}, childrenNode)));
};
const CheckboxGroup = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalGroup);
/* harmony default export */ var Group = (/*#__PURE__*/_react_17_0_2_react.memo(CheckboxGroup));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js
"use client";
const es_checkbox_Checkbox = checkbox_Checkbox;
es_checkbox_Checkbox.Group = Group;
es_checkbox_Checkbox.__ANT_CHECKBOX = true;
if (false) {}
/* harmony default export */ var es_checkbox = (es_checkbox_Checkbox);
/***/ }),
/***/ 8378:
/*!*******************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/collapse.js ***!
@ -1461,6 +1744,109 @@ es_tree_Tree.TreeNode = es/* TreeNode */.O;
/***/ }),
/***/ 5630:
/*!*****************************************************************!*\
!*** ./node_modules/_rc-checkbox@3.1.0@rc-checkbox/es/index.js ***!
\*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony export Checkbox */
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ 33614);
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 81162);
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ 24018);
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ 54099);
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ 63011);
/* 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 */ 71366);
/* 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);
/***/ }),
/***/ 51581:
/*!****************************************************************************************************!*\
!*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/dist/InfiniteScroll.js ***!

@ -825,20 +825,6 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
});
}
}];
// 初始化
var init = function init() {
setTabKey('public');
setIsDelay(0);
setQuery({
page: 0,
page_size: 20,
search: ""
});
setHasMore(true);
groupIdsInitialValues = [];
form.resetFields();
};
function onSubmit(_x) {
return _onSubmit.apply(this, arguments);
}
@ -866,7 +852,7 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
res = _context3.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default */.ZP.success('发布成功');
init();
groupIdsInitialValues = [];
dispatch({
type: 'attachment/setActionTabs',
payload: {}
@ -912,7 +898,6 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
form.submit();
},
onCancel: function onCancel() {
init();
dispatch({
type: 'attachment/setActionTabs',
payload: {}
@ -1175,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 > 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 (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(fileTypes.indexOf(fileType)==-1){
// message.error(`${file.name} 文件无法上传,当前仅限支持pdf、word、excel、ppt、zip文件`)
@ -1213,7 +1198,8 @@ var Upload_SetPublic = function SetPublic(_ref) {
case 2:
value = form.getFieldValue();
value = Object.assign({}, formValue, value);
_context.next = 6;
console.log(value.attachment_ids);
_context.next = 7;
return (0,fetch/* default */.ZP)("/api/files/upload.json", {
method: 'post',
body: {
@ -1229,7 +1215,7 @@ var Upload_SetPublic = function SetPublic(_ref) {
publish_time: value.publish_time
}
});
case 6:
case 7:
res = _context.sent;
if (res.status === 0) {
message/* default */.ZP.success('操作成功');
@ -1251,7 +1237,7 @@ var Upload_SetPublic = function SetPublic(_ref) {
});
}
setFileList([]);
case 9:
case 10:
case "end":
return _context.stop();
}
@ -1285,7 +1271,11 @@ 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);
@ -1316,7 +1306,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)() ? '5G' : '5G', "\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)() ? '1G' : '150M', "\u3002"]
})]
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
@ -1787,8 +1777,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 > 5000) {
message/* default */.ZP.error("".concat(file.name, " \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(5G)"));
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)"));
return Promise.reject();
}
if (fileTypes.indexOf(fileType) == -1) {
@ -1801,6 +1791,7 @@ var Config_SetPublic = function SetPublic(_ref) {
};
function SimpleTable(_ref3) {
var data = _ref3.data;
console.log("data", data);
var columns = [{
title: '资源名称',
key: 'id',
@ -1831,7 +1822,7 @@ var Config_SetPublic = function SetPublic(_ref) {
width: 110,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: dayjs_min_default()(text === null || text === void 0 ? void 0 : text.publish_time).format("YYYY-MM-DD")
children: dayjs_min_default()(text).format("YYYY-MM-DD ")
});
}
}, {
@ -1841,7 +1832,7 @@ var Config_SetPublic = function SetPublic(_ref) {
render: function render(text, item, i) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: function onClick() {
return deleteFlies(item === null || item === void 0 ? void 0 : item.id, i);
return deleteFlies(text === null || text === void 0 ? void 0 : text.id, i);
},
className: "c-red current",
children: "\u5220\u9664"
@ -2999,7 +2990,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!v.link) {
_context.next = 4;
_context.next = 5;
break;
}
_context.next = 3;
@ -3010,11 +3001,23 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
}
});
case 3:
_context.next = 7;
break;
case 5:
_context.next = 7;
return dispatch({
type: 'attachment/attachUpdateVisits',
payload: {
id: v.id,
course_id: params.course_id
}
});
case 7:
dispatch({
type: 'classroomList/getAttachmentList',
payload: objectSpread2_default()({}, params)
});
case 4:
case 8:
case "end":
return _context.stop();
}
@ -3330,10 +3333,6 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
children: [(0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
checked: selectArrs.includes(v.id),
value: v.id,
onClick: function onClick(e) {
e.preventDefault();
e.stopPropagation();
},
className: "mr20",
onChange: function onChange(e) {
var key = selectArrs.indexOf(v.id);
@ -3458,6 +3457,9 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "ml15",
children: [" \u4E0B\u8F7D\u6570\uFF1A", v.downloads_count, " "]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "ml15",
children: [" \u6D4F\u89C8\u6570 ", v.visits, " "]
}), (v === null || v === void 0 ? void 0 : v.publish_time) && currenttime < dayjs_min_default()(v === null || v === void 0 ? void 0 : v.publish_time).toDate() && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "ml15",
children: [" \u5C06\u4E8E ", dayjs_min_default()(v === null || v === void 0 ? void 0 : v.publish_time).format("YYYY-MM-DD HH:mm"), " \u53D1\u5E03 "]

@ -821,14 +821,12 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
});
});
setdatatables(items);
if ((0,authority/* isAssistant */.Rm)()) {
dispatch({
type: 'classroomList/getAssistantPermissions',
payload: {
course_id: params.coursesId
}
});
}
dispatch({
type: 'classroomList/getAssistantPermissions',
payload: {
course_id: params.coursesId
}
});
// console.log('----',items);
@ -1362,7 +1360,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
dataIndex: 'finished_time',
width: 170
}, {
title: '实训耗时',
title: '实训耗时',
dataIndex: 'cost_time',
width: 160
// render: (text: number) => (toTimeFormat(text))

@ -294,6 +294,10 @@ var NewCoursePage = function NewCoursePage(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: studentWorkEditDefaultData.course_name && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "attachment_ids",
rules: [{
required: studentWorkEditDefaultData === null || studentWorkEditDefaultData === void 0 ? void 0 : studentWorkEditDefaultData.is_file,
message: "本次作业老师设置必须上传附件才可提交作品,请按照要求上传作业相关附件"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
})
})]

@ -288,21 +288,37 @@
display: flex;
align-items: center;
flex-wrap: wrap;
padding-top: 20px;
padding: 15px;
background: #F6F7F9;
}
.ratewarp___NGrsd .item___Le8W0 {
display: flex;
align-items: center;
margin: 0 20px 20px;
width: 362px;
}
.ratewarp___NGrsd .item___Le8W0 span:first-child {
display: inline-block;
width: 140px;
font-weight: 500;
color: #333333;
}
.ratewarp___NGrsd .item___Le8W0 span:nth-child(2) {
display: inline-block;
width: 110px;
color: #666666;
}
.ratewarp___NGrsd .item___Le8W0:nth-child(2) {
margin-left: 12px;
}
.ratewarp___NGrsd .item___Le8W0:nth-child(3) {
margin-left: 12px;
}
.ratewarp___NGrsd .item___Le8W0:nth-child(n+4) {
margin-top: 20px;
}
.ratewarp___NGrsd .item___Le8W0:nth-child(5) {
margin-left: 12px;
}
.total___MNh4V {
height: 40px;
background: rgba(48, 97, 208, 0.1);

@ -1720,7 +1720,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
max: item.score,
controls: false,
style: {
width: 135
width: 100
},
size: "large"
// placeholder="请填写分数"

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

Loading…
Cancel
Save