You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Classrooms__Lists__Exerc...

1262 lines
45 KiB

"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[76737],{
/***/ 46952:
/*!******************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/DownOutlined.js + 1 modules ***!
\******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_DownOutlined; }
});
// 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/DownOutlined.js
// This icon file is generated automatically.
var DownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, "name": "down", "theme": "outlined" };
/* harmony default export */ var asn_DownOutlined = (DownOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(1393);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/DownOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var DownOutlined_DownOutlined = function DownOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_DownOutlined
}));
};
/**![down](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4NCAyNTZoLTc1Yy01LjEgMC05LjkgMi41LTEyLjkgNi42TDUxMiA2NTQuMiAyMjcuOSAyNjIuNmMtMy00LjEtNy44LTYuNi0xMi45LTYuNmgtNzVjLTYuNSAwLTEwLjMgNy40LTYuNSAxMi43bDM1Mi42IDQ4Ni4xYzEyLjggMTcuNiAzOSAxNy42IDUxLjcgMGwzNTIuNi00ODYuMWMzLjktNS4zLjEtMTIuNy02LjQtMTIuN3oiIC8+PC9zdmc+) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(DownOutlined_DownOutlined);
if (false) {}
/* harmony default export */ var icons_DownOutlined = (RefIcon);
/***/ }),
/***/ 70505:
/*!************************************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/MisCollection/CollectionList/index.tsx + 1 modules ***!
\************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ CollectionList; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(39647);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(75936);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules
var breadcrumb = __webpack_require__(66104);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
var spin = __webpack_require__(71418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/MisCollection/CollectionList/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var CollectionListmodules = ({"contentListWrap":"contentListWrap___i61gD","li":"li___gxMyq","bottom":"bottom___Dd6Ho","actionLeftItem":"actionLeftItem___fPOL6","questionTypeName":"questionTypeName___PLOrd","more":"more___cxQWQ","textBtn":"textBtn___RJoUd","line":"line___cIykK","b1":"b1___Ia8NJ","b2":"b2___auPd6","btn":"btn___zsCi9"});
// EXTERNAL MODULE: ./src/pages/Problemset/components/Topic/index.tsx + 1 modules
var Topic = __webpack_require__(16028);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(50883);
// 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/MisCollection/CollectionList/index.tsx
var _excluded = ["exercise", "globalSetting", "loading", "dispatch", "classroomList", "user", "match"];
var Collection = function Collection(_ref) {
var _user$userInfo;
var exercise = _ref.exercise,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
classroomList = _ref.classroomList,
user = _ref.user,
match = _ref.match,
props = objectWithoutProperties_default()(_ref, _excluded);
var params = (0,_umi_production_exports.useParams)();
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
cancleCollectVis = _useState2[0],
setCancleCollectVis = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
btnLoading = _useState4[0],
setBtnLoading = _useState4[1];
var childRefs = (0,_react_17_0_2_react.useRef)({});
var _useState5 = (0,_react_17_0_2_react.useState)(''),
_useState6 = slicedToArray_default()(_useState5, 2),
cancleId = _useState6[0],
setCancleId = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(20),
_useState8 = slicedToArray_default()(_useState7, 2),
problemsetCount = _useState8[0],
setProblemsetCount = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)([{
"id": 3555,
"name": "组合题干",
"item_type": "COMBINATION",
"difficulty": 2,
"public": false,
"quotes": 0,
"group_topic_id": 0,
"analysis": null,
"choices": [],
"updated_at": "2024-09-10 11:33",
"created_at": "2024-09-10 11:33",
"choosed": false,
"apply": false,
"is_collected": false,
"author": {
"login": "educoder",
"name": "指导老师"
},
"tag_discipline": "--",
"tag_discipline_ids": [1850],
"sub_discipline_id": 272,
"edit_role": true,
"check_answer_role": true,
"is_share": false,
"is_group": false,
"sub_item_banks": [{
"id": 3556,
"name": "第一小题干",
"item_type": "SINGLE",
"difficulty": 2,
"public": false,
"quotes": 0,
"group_topic_id": 3555,
"basket_id": 0,
"score": 0,
"analysis": "",
"choices": [{
"choice_text": "1",
"is_answer": false
}, {
"choice_text": "2",
"is_answer": true
}, {
"choice_text": "3",
"is_answer": false
}, {
"choice_text": "4",
"is_answer": false
}]
}, {
"id": 3557,
"name": "第二小题干",
"item_type": "SINGLE",
"difficulty": 2,
"public": false,
"quotes": 0,
"group_topic_id": 3555,
"basket_id": 0,
"score": 0,
"analysis": "",
"choices": [{
"choice_text": "1",
"is_answer": false
}, {
"choice_text": "2",
"is_answer": false
}, {
"choice_text": "3",
"is_answer": true
}, {
"choice_text": "4",
"is_answer": false
}]
}],
"added": false
}, {
"id": 3554,
"name": "简单题干",
"item_type": "SUBJECTIVE",
"difficulty": 2,
"public": false,
"quotes": 0,
"group_topic_id": 0,
"analysis": null,
"choices": [],
"answer_texts": ["1 2"],
"updated_at": "2024-09-10 11:32",
"created_at": "2024-09-10 11:32",
"choosed": false,
"apply": false,
"is_collected": false,
"author": {
"login": "educoder",
"name": "指导老师"
},
"tag_discipline": "--",
"tag_discipline_ids": [1850],
"sub_discipline_id": 272,
"edit_role": true,
"check_answer_role": true,
"is_share": false,
"is_group": false,
"added": false
}, {
"id": 3553,
"name": "填空按题给分▁▁",
"item_type": "COMPLETION",
"difficulty": 2,
"public": false,
"quotes": 0,
"group_topic_id": 0,
"analysis": null,
"choices": [],
"multi_count": 2,
"standard_answer": [{
"position": 1,
"answer_text": ["1"]
}, {
"position": 2,
"answer_text": ["2"]
}],
"is_ordered": true,
"no_space": true,
"downcase": true,
"updated_at": "2024-09-10 11:31",
"created_at": "2024-09-10 11:31",
"choosed": false,
"apply": false,
"is_collected": false,
"author": {
"login": "educoder",
"name": "指导老师"
},
"tag_discipline": "--",
"tag_discipline_ids": [1850],
"sub_discipline_id": 272,
"edit_role": true,
"check_answer_role": true,
"is_share": false,
"is_group": false,
"added": false
}, {
"id": 3552,
"name": "填空按空给分▁",
"item_type": "COMPLETION",
"difficulty": 2,
"public": false,
"quotes": 0,
"group_topic_id": 0,
"analysis": null,
"choices": [],
"multi_count": 1,
"standard_answer": [{
"position": 1,
"answer_text": ["1"]
}],
"is_ordered": true,
"no_space": true,
"downcase": true,
"updated_at": "2024-09-10 11:31",
"created_at": "2024-09-10 11:31",
"choosed": false,
"apply": false,
"is_collected": false,
"author": {
"login": "educoder",
"name": "指导老师"
},
"tag_discipline": "--",
"tag_discipline_ids": [1850],
"sub_discipline_id": 272,
"edit_role": true,
"check_answer_role": true,
"is_share": false,
"is_group": false,
"added": false
}, {
"id": 3551,
"name": "判断题干",
"item_type": "JUDGMENT",
"difficulty": 2,
"public": false,
"quotes": 0,
"group_topic_id": 0,
"analysis": "判断解析",
"choices": [{
"choice_text": "正确",
"is_answer": true
}, {
"choice_text": "错误",
"is_answer": false
}],
"updated_at": "2024-09-10 11:31",
"created_at": "2024-09-10 11:31",
"choosed": false,
"apply": false,
"is_collected": false,
"author": {
"login": "educoder",
"name": "指导老师"
},
"tag_discipline": "--",
"tag_discipline_ids": [1850],
"sub_discipline_id": 272,
"edit_role": true,
"check_answer_role": true,
"is_share": false,
"is_group": false,
"added": false
}, {
"id": 3550,
"name": "多选体感",
"item_type": "MULTIPLE",
"difficulty": 2,
"public": false,
"quotes": 0,
"group_topic_id": 0,
"analysis": "多选解析",
"choices": [{
"choice_text": "1",
"is_answer": true
}, {
"choice_text": "3",
"is_answer": false
}, {
"choice_text": "2",
"is_answer": false
}, {
"choice_text": "4",
"is_answer": true
}],
"updated_at": "2024-09-10 11:30",
"created_at": "2024-09-10 11:30",
"choosed": false,
"apply": false,
"is_collected": false,
"author": {
"login": "educoder",
"name": "指导老师"
},
"tag_discipline": "--",
"tag_discipline_ids": [1850],
"sub_discipline_id": 272,
"edit_role": true,
"check_answer_role": true,
"is_share": false,
"is_group": false,
"added": false
}, {
"id": 3549,
"name": "单选题干",
"item_type": "SINGLE",
"difficulty": 2,
"public": false,
"quotes": 0,
"group_topic_id": 0,
"analysis": "单选解析哈哈哈电话",
"choices": [{
"choice_text": "1",
"is_answer": true
}, {
"choice_text": "2",
"is_answer": false
}, {
"choice_text": "3",
"is_answer": false
}, {
"choice_text": "4",
"is_answer": false
}],
"updated_at": "2024-09-10 11:30",
"created_at": "2024-09-10 11:30",
"choosed": false,
"apply": false,
"is_collected": false,
"author": {
"login": "educoder",
"name": "指导老师"
},
"tag_discipline": "--",
"tag_discipline_ids": [1850],
"sub_discipline_id": 272,
"edit_role": true,
"check_answer_role": true,
"is_share": false,
"is_group": false,
"added": false
}]),
_useState10 = slicedToArray_default()(_useState9, 2),
problemsetList = _useState10[0],
setProblemsetList = _useState10[1];
var questionType = [{
type: 'SINGLE',
name: '单选题'
}, {
type: 'MULTIPLE',
name: '多选题'
}, {
type: 'JUDGMENT',
name: '判断题'
}, {
type: 'PROGRAM',
name: '编程题'
}, {
type: 'SUBJECTIVE',
name: '简答题'
}, {
type: 'COMPLETION',
name: '填空题'
}, {
type: 'COMBINATION',
name: '组合题'
}, {
type: 'BPROGRAM',
name: '程序填空题'
}];
var difficultyMapping = {
1: "简单",
2: "适中",
3: "困难"
};
var handleDetailClick = function handleDetailClick(id) {
if (childRefs.current[id]) {
childRefs.current[id].expandDetail();
}
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: CollectionListmodules.bg,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "edu-container",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: "animated fadeIn",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "mt10",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
separator: ">",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
href: "/classrooms/".concat(params.coursesId, "/exercise"),
children: user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 || (_user$userInfo = _user$userInfo.course) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.course_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
href: "/classrooms/".concat(params.coursesId, "/exercise"),
children: "\u5728\u7EBF\u8003\u8BD5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
href: "/classrooms/".concat(params.coursesId, "/misCollection"),
children: "\u9519\u9898\u96C6"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: "\u9519\u9898\u5217\u8868"
})]
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt30 mb30",
style: {
display: 'flex',
justifyContent: 'space-between'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-font icon-fanhui-bishe font12 current",
onClick: function onClick() {
_umi_production_exports.history.back();
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
fontSize: '16px',
color: '#333333',
marginLeft: '10px'
},
children: "\u9519\u9898\u5217\u8868"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CollectionListmodules.btn,
children: "\u5F00\u59CB\u7EC3\u4E60"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CollectionListmodules.contentListWrap,
children: problemsetCount !== 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
size: 'middle',
spinning: false,
children: problemsetList.map(function (v, index) {
var _questionType$find, _v$author, _v$author2, _v$author3, _v$author4;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CollectionListmodules.li,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CollectionListmodules.top,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Topic/* default */.Z, {
data: v,
selectIds: [],
onSelectCheckBox: function onSelectCheckBox() {},
showCheckbox: false,
ref: function ref(el) {
return childRefs.current[v.id] = el;
}
}, v.id)
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CollectionListmodules.bottom,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: "".concat(CollectionListmodules.actionLeftItem, " ").concat(CollectionListmodules.questionTypeName),
children: ["No.", v === null || v === void 0 ? void 0 : v.id]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: "".concat(CollectionListmodules.actionLeftItem, " ").concat(CollectionListmodules.questionTypeName),
children: (_questionType$find = questionType.find(function (item) {
return item.type === v.item_type;
})) === null || _questionType$find === void 0 ? void 0 : _questionType$find.name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: CollectionListmodules.actionLeftItem,
children: difficultyMapping[v.difficulty]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: CollectionListmodules.actionLeftItem,
children: ["\u521B\u5EFA\u8005", /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: v === null || v === void 0 || (_v$author = v.author) === null || _v$author === void 0 ? void 0 : _v$author.name,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-grey-333",
children: (v === null || v === void 0 || (_v$author2 = v.author) === null || _v$author2 === void 0 || (_v$author2 = _v$author2.name) === null || _v$author2 === void 0 ? void 0 : _v$author2.length) > 6 ? (v === null || v === void 0 || (_v$author3 = v.author) === null || _v$author3 === void 0 || (_v$author3 = _v$author3.name) === null || _v$author3 === void 0 ? void 0 : _v$author3.substr(0, 5)) + '...' : v === null || v === void 0 || (_v$author4 = v.author) === null || _v$author4 === void 0 ? void 0 : _v$author4.name
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: CollectionListmodules.actionLeftItem,
children: ["\u66F4\u65B0", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-grey-333",
children: v === null || v === void 0 ? void 0 : v.updated_at
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: CollectionListmodules.actionLeftItem,
children: ["\u4F7F\u7528\u6B21\u6570", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-grey-333",
children: v === null || v === void 0 ? void 0 : v.quotes
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CollectionListmodules.more,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: CollectionListmodules.textBtn,
style: {
cursor: 'pointer'
},
onClick: function onClick() {
setCancleCollectVis(true);
setCancleId(v.id);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CollectionListmodules.line,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: CollectionListmodules.b1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: CollectionListmodules.b2
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#E53333'
},
children: "\u79FB\u9664"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CollectionListmodules.line,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: CollectionListmodules.b1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: CollectionListmodules.b2
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: CollectionListmodules.textBtn,
style: {
cursor: 'pointer'
},
onClick: function onClick() {
handleDetailClick(v.id);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-chengxinkaoshishengming font14 mr5",
style: {
color: '#3061D0'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#3061D0'
},
children: "\u8BE6\u60C5"
})]
})]
})]
})]
}, index);
})
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
size: 'middle',
spinning: loading['problemset/getItemBanks'],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
title: "\u63D0\u793A",
open: cancleCollectVis,
maskClosable: false,
confirmLoading: btnLoading,
okText: "\u786E\u5B9A",
cancelText: "\u53D6\u6D88",
destroyOnClose: true,
onCancel: function onCancel() {
setCancleCollectVis(false);
},
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setBtnLoading(true);
// const updatedRefs = { ...childRefs.current };
// delete updatedRefs[cancleId]; // 清除已删除项的引用
// childRefs.current = updatedRefs; // 更新引用对象
// const res = await Fetch(`/api/user_mirrors/${routeParams?.experid}/revoke_apply.json`, {
// method: 'post'
// },
// );
// if (res.status === 0) {
// message.success('撤销成功');
// getDetail()
// }
setBtnLoading(false);
setCancleCollectVis(false);
case 3:
case "end":
return _context.stop();
}
}, _callee);
})),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u786E\u8BA4\u8981\u5C06\u8BE5\u8BD5\u9898\u53D6\u6D88\u6536\u85CF\u5417\uFF1F"
})
})]
});
};
/* harmony default export */ var CollectionList = ((0,_umi_production_exports.connect)(function (_ref3) {
var exercise = _ref3.exercise,
loading = _ref3.loading,
user = _ref3.user,
globalSetting = _ref3.globalSetting,
classroomList = _ref3.classroomList;
return {
classroomList: classroomList,
exercise: exercise,
globalSetting: globalSetting,
user: user,
loading: loading.effects
};
})(Collection));
/***/ }),
/***/ 98447:
/*!******************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/checkbox/style/index.js ***!
\******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ C2: function() { return /* binding */ getStyle; }
/* harmony export */ });
/* unused harmony export genCheckboxStyle */
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style */ 17313);
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../theme/internal */ 37613);
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme/internal */ 83116);
// ============================== Styles ==============================
const genCheckboxStyle = token => {
const {
checkboxCls
} = token;
const wrapperCls = `${checkboxCls}-wrapper`;
return [
// ===================== Basic =====================
{
// Group
[`${checkboxCls}-group`]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), {
display: 'inline-flex',
flexWrap: 'wrap',
columnGap: token.marginXS,
// Group > Grid
[`> ${token.antCls}-row`]: {
flex: 1
}
}),
// Wrapper
[wrapperCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), {
display: 'inline-flex',
alignItems: 'baseline',
cursor: 'pointer',
// Fix checkbox & radio in flex align #30260
'&:after': {
display: 'inline-block',
width: 0,
overflow: 'hidden',
content: "'\\a0'"
},
// Checkbox near checkbox
[`& + ${wrapperCls}`]: {
marginInlineStart: 0
},
[`&${wrapperCls}-in-form-item`]: {
'input[type="checkbox"]': {
width: 14,
height: 14 // FIXME: magic
}
}
}),
// Wrapper > Checkbox
[checkboxCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), {
position: 'relative',
whiteSpace: 'nowrap',
lineHeight: 1,
cursor: 'pointer',
borderRadius: token.borderRadiusSM,
// To make alignment right when `controlHeight` is changed
// Ref: https://github.com/ant-design/ant-design/issues/41564
alignSelf: 'center',
// Wrapper > Checkbox > input
[`${checkboxCls}-input`]: {
position: 'absolute',
// Since baseline align will get additional space offset,
// we need to move input to top to make it align with text.
// Ref: https://github.com/ant-design/ant-design/issues/38926#issuecomment-1486137799
inset: 0,
zIndex: 1,
cursor: 'pointer',
opacity: 0,
margin: 0,
[`&:focus-visible + ${checkboxCls}-inner`]: Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .genFocusOutline */ .oN)(token))
},
// Wrapper > Checkbox > inner
[`${checkboxCls}-inner`]: {
boxSizing: 'border-box',
position: 'relative',
top: 0,
insetInlineStart: 0,
display: 'block',
width: token.checkboxSize,
height: token.checkboxSize,
direction: 'ltr',
backgroundColor: token.colorBgContainer,
border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,
borderRadius: token.borderRadiusSM,
borderCollapse: 'separate',
transition: `all ${token.motionDurationSlow}`,
'&:after': {
boxSizing: 'border-box',
position: 'absolute',
top: '50%',
insetInlineStart: '21.5%',
display: 'table',
width: token.checkboxSize / 14 * 5,
height: token.checkboxSize / 14 * 8,
border: `${token.lineWidthBold}px solid ${token.colorWhite}`,
borderTop: 0,
borderInlineStart: 0,
transform: 'rotate(45deg) scale(0) translate(-50%,-50%)',
opacity: 0,
content: '""',
transition: `all ${token.motionDurationFast} ${token.motionEaseInBack}, opacity ${token.motionDurationFast}`
}
},
// Wrapper > Checkbox + Text
'& + span': {
paddingInlineStart: token.paddingXS,
paddingInlineEnd: token.paddingXS
}
})
},
// ===================== Hover =====================
{
// Wrapper & Wrapper > Checkbox
[`
${wrapperCls}:not(${wrapperCls}-disabled),
${checkboxCls}:not(${checkboxCls}-disabled)
`]: {
[`&:hover ${checkboxCls}-inner`]: {
borderColor: token.colorPrimary
}
},
[`${wrapperCls}:not(${wrapperCls}-disabled)`]: {
[`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled) ${checkboxCls}-inner`]: {
backgroundColor: token.colorPrimaryHover,
borderColor: 'transparent'
},
[`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled):after`]: {
borderColor: token.colorPrimaryHover
}
}
},
// ==================== Checked ====================
{
// Wrapper > Checkbox
[`${checkboxCls}-checked`]: {
[`${checkboxCls}-inner`]: {
backgroundColor: token.colorPrimary,
borderColor: token.colorPrimary,
'&:after': {
opacity: 1,
transform: 'rotate(45deg) scale(1) translate(-50%,-50%)',
transition: `all ${token.motionDurationMid} ${token.motionEaseOutBack} ${token.motionDurationFast}`
}
}
},
[`
${wrapperCls}-checked:not(${wrapperCls}-disabled),
${checkboxCls}-checked:not(${checkboxCls}-disabled)
`]: {
[`&:hover ${checkboxCls}-inner`]: {
backgroundColor: token.colorPrimaryHover,
borderColor: 'transparent'
}
}
},
// ================= Indeterminate =================
{
[checkboxCls]: {
'&-indeterminate': {
// Wrapper > Checkbox > inner
[`${checkboxCls}-inner`]: {
backgroundColor: token.colorBgContainer,
borderColor: token.colorBorder,
'&:after': {
top: '50%',
insetInlineStart: '50%',
width: token.fontSizeLG / 2,
height: token.fontSizeLG / 2,
backgroundColor: token.colorPrimary,
border: 0,
transform: 'translate(-50%, -50%) scale(1)',
opacity: 1,
content: '""'
}
}
}
}
},
// ==================== Disable ====================
{
// Wrapper
[`${wrapperCls}-disabled`]: {
cursor: 'not-allowed'
},
// Wrapper > Checkbox
[`${checkboxCls}-disabled`]: {
// Wrapper > Checkbox > input
[`&, ${checkboxCls}-input`]: {
cursor: 'not-allowed',
// Disabled for native input to enable Tooltip event handler
// ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901
pointerEvents: 'none'
},
// Wrapper > Checkbox > inner
[`${checkboxCls}-inner`]: {
background: token.colorBgContainerDisabled,
borderColor: token.colorBorder,
'&:after': {
borderColor: token.colorTextDisabled
}
},
'&:after': {
display: 'none'
},
'& + span': {
color: token.colorTextDisabled
},
[`&${checkboxCls}-indeterminate ${checkboxCls}-inner::after`]: {
background: token.colorTextDisabled
}
}
}];
};
// ============================== Export ==============================
function getStyle(prefixCls, token) {
const checkboxToken = (0,_theme_internal__WEBPACK_IMPORTED_MODULE_1__/* .merge */ .TS)(token, {
checkboxCls: `.${prefixCls}`,
checkboxSize: token.controlInteractiveSize
});
return [genCheckboxStyle(checkboxToken)];
}
/* harmony default export */ __webpack_exports__.ZP = ((0,_theme_internal__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)('Checkbox', (token, _ref) => {
let {
prefixCls
} = _ref;
return [getStyle(prefixCls, token)];
}));
/***/ }),
/***/ 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);
/***/ }),
/***/ 92899:
/*!***************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/move.js ***!
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Fm: function() { return /* binding */ initMoveMotion; }
/* harmony export */ });
/* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */
/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 7102);
/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406);
const moveDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownIn', {
'0%': {
transform: 'translate3d(0, 100%, 0)',
transformOrigin: '0 0',
opacity: 0
},
'100%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
}
});
const moveDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownOut', {
'0%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
},
'100%': {
transform: 'translate3d(0, 100%, 0)',
transformOrigin: '0 0',
opacity: 0
}
});
const moveLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftIn', {
'0%': {
transform: 'translate3d(-100%, 0, 0)',
transformOrigin: '0 0',
opacity: 0
},
'100%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
}
});
const moveLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftOut', {
'0%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
},
'100%': {
transform: 'translate3d(-100%, 0, 0)',
transformOrigin: '0 0',
opacity: 0
}
});
const moveRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightIn', {
'0%': {
transform: 'translate3d(100%, 0, 0)',
transformOrigin: '0 0',
opacity: 0
},
'100%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
}
});
const moveRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightOut', {
'0%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
},
'100%': {
transform: 'translate3d(100%, 0, 0)',
transformOrigin: '0 0',
opacity: 0
}
});
const moveUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpIn', {
'0%': {
transform: 'translate3d(0, -100%, 0)',
transformOrigin: '0 0',
opacity: 0
},
'100%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
}
});
const moveUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpOut', {
'0%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
},
'100%': {
transform: 'translate3d(0, -100%, 0)',
transformOrigin: '0 0',
opacity: 0
}
});
const moveMotion = {
'move-up': {
inKeyframes: moveUpIn,
outKeyframes: moveUpOut
},
'move-down': {
inKeyframes: moveDownIn,
outKeyframes: moveDownOut
},
'move-left': {
inKeyframes: moveLeftIn,
outKeyframes: moveLeftOut
},
'move-right': {
inKeyframes: moveRightIn,
outKeyframes: moveRightOut
}
};
const initMoveMotion = (token, motionName) => {
const {
antCls
} = token;
const motionCls = `${antCls}-${motionName}`;
const {
inKeyframes,
outKeyframes
} = moveMotion[motionName];
return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
[`
${motionCls}-enter,
${motionCls}-appear
`]: {
opacity: 0,
animationTimingFunction: token.motionEaseOutCirc
},
[`${motionCls}-leave`]: {
animationTimingFunction: token.motionEaseInOutCirc
}
}];
};
/***/ })
}]);