Auto Submit

pull/1/head
autosubmit 3 years ago
parent f76db3fbaf
commit 92263a9de2

@ -1,5 +1,47 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[97642],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16943],{
/***/ 11475:
/*!******************************************************************************************!*\
!*** ./node_modules/@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/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_ExclamationCircleOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_ExclamationCircleOutlined = (/*#__PURE__*/react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined));
/***/ }),
/***/ 97642:
/*!****************************************************************************!*\
@ -10,10 +52,11 @@
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"I": function() { return /* binding */ Edit; },
"Z": function() { return /* binding */ components_AddOrEdit; }
});
// UNUSED EXPORTS: Edit
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(17061);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
@ -28,7 +71,7 @@ var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/antd/es/form/index.js + 17 modules
var es_form = __webpack_require__(25159);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
var message = __webpack_require__(2453);
var es_message = __webpack_require__(2453);
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
var modal = __webpack_require__(72423);
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
@ -37,8 +80,6 @@ var input = __webpack_require__(79531);
var es_radio = __webpack_require__(78045);
// EXTERNAL MODULE: ./node_modules/antd/es/upload/index.js + 24 modules
var upload = __webpack_require__(31365);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/components/AddOrEdit/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var AddOrEditmodules = ({"flex_box_center":"flex_box_center___ze4wf","flex_space_between":"flex_space_between___JpH0B","flex_box_vertical_center":"flex_box_vertical_center___NbRyF","flex_box_center_end":"flex_box_center_end___fUFoB","flex_box_column":"flex_box_column___i2BZL","form":"form____yVeV","btn":"btn___X16NC","img":"img___sQnKq"});
@ -47,7 +88,7 @@ var resetmodules = __webpack_require__(39132);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(59758);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules
var CloseCircleFilled = __webpack_require__(4340);
var icons_CloseCircleFilled = __webpack_require__(4340);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/components/AddOrEdit/index.tsx
@ -175,17 +216,17 @@ var AddOrEdit = function AddOrEdit(_ref) {
var handleFileBeforeUpload = function handleFileBeforeUpload(file, type) {
var isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png';
if (!isJpgOrPng) {
message/* default.warning */.ZP.warning('请上传jpg或png的图片!');
es_message/* default.warning */.ZP.warning('请上传jpg或png的图片!');
return false;
}
var is200K = file.size / 1024 > 200;
var is1M = file.size / 1024 / 1024 > 1;
if (is200K && type === 1) {
message/* default.warning */.ZP.warning('文件大小必须小于200KB');
es_message/* default.warning */.ZP.warning('文件大小必须小于200KB');
return false;
}
if (is1M && type === 2) {
message/* default.warning */.ZP.warning('文件大小必须小于1MB');
es_message/* default.warning */.ZP.warning('文件大小必须小于1MB');
return false;
}
if (type === 1) {
@ -206,7 +247,7 @@ var AddOrEdit = function AddOrEdit(_ref) {
width: '100%'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleFilled/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(icons_CloseCircleFilled/* default */.Z, {
onClick: function onClick() {
if (type === 1) {
setFileList([]);
@ -381,26 +422,26 @@ var Edit = function Edit(_ref3) {
var _fileList$6, _fileList$6$response, _fileOtherList$6, _fileOtherList$6$resp;
var data = _ref3.data,
onOk = _ref3.onOk;
var _Form$useForm3 = es_form/* default.useForm */.Z.useForm(),
_Form$useForm4 = slicedToArray_default()(_Form$useForm3, 1),
var _Form$useForm3 = Form.useForm(),
_Form$useForm4 = _slicedToArray(_Form$useForm3, 1),
form = _Form$useForm4[0];
var _useState9 = (0,react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
var _useState9 = useState(false),
_useState10 = _slicedToArray(_useState9, 2),
btnLoading = _useState10[0],
setBtnLoading = _useState10[1];
var _useState11 = (0,react.useState)([]),
_useState12 = slicedToArray_default()(_useState11, 2),
var _useState11 = useState([]),
_useState12 = _slicedToArray(_useState11, 2),
fileList = _useState12[0],
setFileList = _useState12[1];
var _useState13 = (0,react.useState)([]),
_useState14 = slicedToArray_default()(_useState13, 2),
var _useState13 = useState([]),
_useState14 = _slicedToArray(_useState13, 2),
fileOtherList = _useState14[0],
setFileOtherList = _useState14[1];
var _useState15 = (0,react.useState)(false),
_useState16 = slicedToArray_default()(_useState15, 2),
var _useState15 = useState(false),
_useState16 = _slicedToArray(_useState15, 2),
imgLoading = _useState16[0],
setImgLoading = _useState16[1];
(0,react.useEffect)(function () {
useEffect(function () {
if (data !== null && data !== void 0 && data.name) {
var _data$cover_url, _data$cover_url2, _data$backbground_ima, _data$backbground_ima2;
form.setFieldsValue({
@ -424,10 +465,10 @@ var Edit = function Edit(_ref3) {
form.submit();
};
var addSubmit = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(values) {
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(values) {
var _fileList$4, _fileList$4$response, _fileOtherList$4, _fileOtherList$4$resp;
var param;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
setBtnLoading(true);
@ -475,12 +516,12 @@ var Edit = function Edit(_ref3) {
var handleFileBeforeUpload = function handleFileBeforeUpload(file, type) {
var isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png';
if (!isJpgOrPng) {
message/* default.error */.ZP.error('请上传jpg或png的图片!');
message.error('请上传jpg或png的图片!');
return false;
}
var is150M = file.size / 1024 / 1024 > 2;
if (is150M) {
message/* default.info */.ZP.info('文件大小必须小于2MB');
message.info('文件大小必须小于2MB');
return false;
}
if (type === 1) {
@ -492,16 +533,16 @@ var Edit = function Edit(_ref3) {
};
var renderImg = function renderImg(type) {
var _fileList$5, _fileList$5$response, _fileOtherList$5, _fileOtherList$5$resp;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: AddOrEditmodules.img,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: env/* default.API_SERVER */.Z.API_SERVER + "/api/attachments/" + (type === 1 ? fileList === null || fileList === void 0 ? void 0 : (_fileList$5 = fileList[0]) === null || _fileList$5 === void 0 ? void 0 : (_fileList$5$response = _fileList$5.response) === null || _fileList$5$response === void 0 ? void 0 : _fileList$5$response.id : fileOtherList === null || fileOtherList === void 0 ? void 0 : (_fileOtherList$5 = fileOtherList[0]) === null || _fileOtherList$5 === void 0 ? void 0 : (_fileOtherList$5$resp = _fileOtherList$5.response) === null || _fileOtherList$5$resp === void 0 ? void 0 : _fileOtherList$5$resp.id),
return /*#__PURE__*/_jsxs("div", {
className: styles.img,
children: [/*#__PURE__*/_jsx("img", {
src: ENV.API_SERVER + "/api/attachments/" + (type === 1 ? fileList === null || fileList === void 0 ? void 0 : (_fileList$5 = fileList[0]) === null || _fileList$5 === void 0 ? void 0 : (_fileList$5$response = _fileList$5.response) === null || _fileList$5$response === void 0 ? void 0 : _fileList$5$response.id : fileOtherList === null || fileOtherList === void 0 ? void 0 : (_fileOtherList$5 = fileOtherList[0]) === null || _fileOtherList$5 === void 0 ? void 0 : (_fileOtherList$5$resp = _fileOtherList$5.response) === null || _fileOtherList$5$resp === void 0 ? void 0 : _fileOtherList$5$resp.id),
alt: "avatar",
style: {
width: '100%'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleFilled/* default */.Z, {
}), /*#__PURE__*/_jsx("div", {
children: /*#__PURE__*/_jsx(CloseCircleFilled, {
onClick: function onClick() {
if (type === 1) {
setFileList([]);
@ -517,7 +558,7 @@ var Edit = function Edit(_ref3) {
})]
});
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
return /*#__PURE__*/_jsxs(Form, {
form: form,
colon: false,
onFinish: addSubmit,
@ -527,8 +568,8 @@ var Edit = function Edit(_ref3) {
wrapperCol: {
span: 19
},
className: AddOrEditmodules.form,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
className: styles.form,
children: [/*#__PURE__*/_jsx(Form.Item, {
label: "\u793E\u533A\u540D\u79F0",
name: "name",
rules: [{
@ -541,19 +582,19 @@ var Edit = function Edit(_ref3) {
max: 60,
message: '只能输入60个字符'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
children: /*#__PURE__*/_jsx(Input, {
maxLength: 60,
placeholder: "\u8BF7\u8F93\u5165\u793E\u533A\u540D\u79F0"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
}), /*#__PURE__*/_jsx(Form.Item, {
name: "cover_id",
label: "\u5C01\u9762\u56FE",
valuePropName: "fileList",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: AddOrEditmodules.upload,
children: [fileList !== null && fileList !== void 0 && (_fileList$6 = fileList[0]) !== null && _fileList$6 !== void 0 && (_fileList$6$response = _fileList$6.response) !== null && _fileList$6$response !== void 0 && _fileList$6$response.id ? renderImg(1) : /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, {
children: /*#__PURE__*/_jsxs("div", {
className: styles.upload,
children: [fileList !== null && fileList !== void 0 && (_fileList$6 = fileList[0]) !== null && _fileList$6 !== void 0 && (_fileList$6$response = _fileList$6.response) !== null && _fileList$6$response !== void 0 && _fileList$6$response.id ? renderImg(1) : /*#__PURE__*/_jsx(Upload, {
fileList: fileList,
action: "".concat(env/* default.API_SERVER */.Z.API_SERVER, "/api/attachments.json"),
action: "".concat(ENV.API_SERVER, "/api/attachments.json"),
onChange: function onChange(e) {
return handleFileChange(e, 1);
},
@ -565,24 +606,24 @@ var Edit = function Edit(_ref3) {
},
withCredentials: true,
accept: "image/*",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
children: /*#__PURE__*/_jsxs(Button, {
children: [/*#__PURE__*/_jsx("i", {
className: "iconfont icon-shangchuantupian2 mr10"
}), "\u4E0A\u4F20\u56FE\u7247"]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
}), /*#__PURE__*/_jsx("aside", {
children: "\u4EC5\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528278*225\u50CF\u7D20\uFF1B\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
}), /*#__PURE__*/_jsx(Form.Item, {
name: "backbground_image_id",
label: "\u8BE6\u60C5\u9876\u90E8\u80CC\u666F",
valuePropName: "fileList",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: AddOrEditmodules.upload,
children: [fileOtherList !== null && fileOtherList !== void 0 && (_fileOtherList$6 = fileOtherList[0]) !== null && _fileOtherList$6 !== void 0 && (_fileOtherList$6$resp = _fileOtherList$6.response) !== null && _fileOtherList$6$resp !== void 0 && _fileOtherList$6$resp.id ? renderImg(2) : /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, {
children: /*#__PURE__*/_jsxs("div", {
className: styles.upload,
children: [fileOtherList !== null && fileOtherList !== void 0 && (_fileOtherList$6 = fileOtherList[0]) !== null && _fileOtherList$6 !== void 0 && (_fileOtherList$6$resp = _fileOtherList$6.response) !== null && _fileOtherList$6$resp !== void 0 && _fileOtherList$6$resp.id ? renderImg(2) : /*#__PURE__*/_jsx(Upload, {
fileList: fileOtherList,
action: "".concat(env/* default.API_SERVER */.Z.API_SERVER, "/api/attachments.json"),
action: "".concat(ENV.API_SERVER, "/api/attachments.json"),
onChange: function onChange(e) {
return handleFileChange(e, 2);
},
@ -594,16 +635,16 @@ var Edit = function Edit(_ref3) {
},
withCredentials: true,
accept: "image/*",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
children: /*#__PURE__*/_jsxs(Button, {
children: [/*#__PURE__*/_jsx("i", {
className: "iconfont icon-shangchuantupian2 mr10"
}), "\u4E0A\u4F20\u56FE\u7247"]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
}), /*#__PURE__*/_jsx("aside", {
children: "\u4EC5\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u75281920*220\u50CF\u7D20\uFF1B\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
}), /*#__PURE__*/_jsx(Button, {
disabled: imgLoading,
loading: btnLoading,
type: "primary",

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[26042,65367],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[26042],{
/***/ 23430:
/*!*********************************************************************************!*\

@ -1,797 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27829],{
/***/ 11475:
/*!******************************************************************************************!*\
!*** ./node_modules/@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/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_ExclamationCircleOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_ExclamationCircleOutlined = (/*#__PURE__*/react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined));
/***/ }),
/***/ 99611:
/*!****************************************************************************!*\
!*** ./node_modules/@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/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
/***/ }),
/***/ 49620:
/*!*******************************************************************!*\
!*** ./src/layouts/virtualDetail/TopBanner/index.tsx + 1 modules ***!
\*******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ virtualDetail_TopBanner; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(42122);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(17061);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(17156);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
var modal = __webpack_require__(72423);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
var message = __webpack_require__(2453);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(83062);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
;// CONCATENATED MODULE: ./src/layouts/virtualDetail/TopBanner/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var TopBannermodules = ({"bg":"bg___vd7LL","headName":"headName___sPZlC","name":"name___MBElV","member":"member___StkKn"});
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(84519);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(59758);
// EXTERNAL MODULE: ./src/pages/virtualSpaces/components/AddOrEdit/index.tsx + 1 modules
var AddOrEdit = __webpack_require__(97642);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(7);
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
var verifyLogin = __webpack_require__(7303);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
var _umi_production_exports = __webpack_require__(89214);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/layouts/virtualDetail/TopBanner/index.tsx
var TopBanner = function TopBanner(_ref) {
var virtualSpaces = _ref.virtualSpaces,
user = _ref.user,
dispatch = _ref.dispatch;
var _useState = (0,react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
visible = _useState2[0],
setVisible = _useState2[1];
var urlParams = (0,_umi_production_exports.useParams)();
var virtualSpacesDetails = virtualSpaces.virtualSpacesDetails;
var getDetails = function getDetails() {
dispatch({
type: 'virtualSpaces/getVirtualSpacesDetails',
payload: {
id: urlParams === null || urlParams === void 0 ? void 0 : urlParams.virtual_spacesId
}
});
};
var handleJoin = function handleJoin() {
if (!(0,verifyLogin/* handleVerifyLogin */.o1)(dispatch)) {
return;
}
modal/* default.confirm */.Z.confirm({
centered: true,
width: 424,
okText: '确定',
cancelText: '取消',
title: '确认申请加入',
icon: null,
className: 'custom-modal-divider',
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "font14",
children: "\u786E\u8BA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u52A0\u5165\u8BE5\u865A\u62DF\u793E\u533A\u5417\uFF1F"
}),
onOk: function () {
var _onOk = 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 (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(urlParams === null || urlParams === void 0 ? void 0 : urlParams.virtual_spacesId, "/apply_become_member.json"), {
method: 'post'
});
case 2:
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) !== -1) {
message/* default.success */.ZP.success(res === null || res === void 0 ? void 0 : res.message);
getDetails();
}
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
function onOk() {
return _onOk.apply(this, arguments);
}
return onOk;
}()
});
};
var handlePublic = function handlePublic() {
modal/* default.confirm */.Z.confirm({
centered: true,
width: 424,
okText: '确定',
cancelText: '取消',
title: '确认申请公开',
icon: null,
className: 'custom-modal-divider',
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "font14",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "\u786E\u8BA4\u5411\u5E73\u53F0\u7533\u8BF7\u516C\u5F00\u865A\u62DF\u793E\u533A\u5417\uFF1F"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "\u516C\u5F00\u865A\u62DF\u793E\u533A\u9700\u7ECF\u8FC7\u5E73\u53F0\u6807\u51C6\u5316\u5BA1\u6838\uFF0C\u5BA1\u6838\u5468\u671F\u4E3A1-2\u5929\uFF0C"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u516C\u5F00\u7684\u865A\u62DF\u793E\u533A\u5C06\u5BF9\u5E73\u53F0\u6240\u6709\u4EBA\u53EF\u89C1\u3002"
})]
}),
onOk: function () {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(urlParams === null || urlParams === void 0 ? void 0 : urlParams.virtual_spacesId, "/apply_public.json"), {
method: 'post'
});
case 2:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) !== -1) {
message/* default.success */.ZP.success(res === null || res === void 0 ? void 0 : res.message);
getDetails();
}
case 4:
case "end":
return _context2.stop();
}
}, _callee2);
}));
function onOk() {
return _onOk2.apply(this, arguments);
}
return onOk;
}()
});
};
var handleOk = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(values) {
var res;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(urlParams === null || urlParams === void 0 ? void 0 : urlParams.virtual_spacesId, ".json"), {
method: 'put',
body: values
});
case 2:
res = _context3.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
getDetails();
setVisible(false);
}
case 4:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return function handleOk(_x) {
return _ref2.apply(this, arguments);
};
}();
var handleEdit = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(values) {
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
setVisible(objectSpread2_default()({}, virtualSpacesDetails));
case 1:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return function handleEdit(_x2) {
return _ref3.apply(this, arguments);
};
}();
var permission = (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_member) || (0,authority/* isSuperAdmins */.Ny)();
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: TopBannermodules.bg,
style: {
background: "url('".concat(env/* default.IMG_SERVER */.Z.IMG_SERVER + (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.backbground_image_url), "') no-repeat center center")
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: TopBannermodules.headName,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [" ", virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.name]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: TopBannermodules.member,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: '成员总数',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
color: '#FF8B58',
fontSize: 24
},
className: "iconfont icon-a-chengyuan1"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: '成员总数',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.members_count
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: '资源总数',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
color: '#07C160',
marginLeft: 100
},
className: "iconfont icon-a-ziyuanku1"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: '资源总数',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.resources_count
})
})]
})]
}), permission && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
disabled: (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.status) !== 2,
onClick: handlePublic,
type: "primary",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-sheweigongkai2 mr5 font14"
}), (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.status) === 2 ? '申请公开' : (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.status) === 0 ? '申请中' : '已公开']
}), !permission && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
onClick: handleJoin,
type: "primary",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shenqingjiaru2 mr5 font14"
}), "\u7533\u8BF7\u52A0\u5165"]
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AddOrEdit/* default */.Z, {
visible: visible,
title: '编辑虚拟社区',
onCancel: function onCancel() {
return setVisible(false);
},
onOk: handleOk
})]
});
};
/* harmony default export */ var virtualDetail_TopBanner = ((0,_umi_production_exports.connect)(function (_ref4) {
var virtualSpaces = _ref4.virtualSpaces,
user = _ref4.user;
return {
virtualSpaces: virtualSpaces,
user: user
};
})(TopBanner));
/***/ }),
/***/ 57838:
/*!************************************************************!*\
!*** ./node_modules/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 */ 67294);
function useForceUpdate() {
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
return forceUpdate;
}
/***/ }),
/***/ 79531:
/*!*********************************************************!*\
!*** ./node_modules/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/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
var context = __webpack_require__(53124);
// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
var form_context = __webpack_require__(65223);
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js
var style = __webpack_require__(47673);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Group.js
const Group = props => {
const {
getPrefixCls,
direction
} = (0,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_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.useContext)(form_context/* FormItemInputContext */.aM);
const groupFormItemContext = (0,react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
isFormItemInput: false
}), [formItemContext]);
if (false) {}
return wrapSSR( /*#__PURE__*/react.createElement("span", {
className: cls,
style: props.style,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave,
onFocus: props.onFocus,
onBlur: props.onBlur
}, /*#__PURE__*/react.createElement(form_context/* FormItemInputContext.Provider */.aM.Provider, {
value: groupFormItemContext
}, props.children)));
};
/* harmony default export */ var input_Group = (Group);
// EXTERNAL MODULE: ./node_modules/antd/es/input/Input.js + 1 modules
var Input = __webpack_require__(82586);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeInvisibleOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
var EyeOutlined = __webpack_require__(99611);
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
var omit = __webpack_require__(10366);
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/ref.js
var es_ref = __webpack_require__(17799);
// EXTERNAL MODULE: ./node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js
var useRemovePasswordTimeout = __webpack_require__(72922);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Password.js
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.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(icons_EyeInvisibleOutlined, null);
const ActionMap = {
click: 'onClick',
hover: 'onMouseOver'
};
const Password = /*#__PURE__*/react.forwardRef((props, ref) => {
const {
visibilityToggle = true
} = props;
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
const [visible, setVisible] = (0,react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
const inputRef = (0,react.useRef)(null);
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.cloneElement( /*#__PURE__*/react.isValidElement(icon) ? icon : /*#__PURE__*/react.createElement("span", null, icon), iconProps);
};
const {
className,
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
size
} = props,
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
const {
getPrefixCls
} = react.useContext(context/* ConfigContext */.E_);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
const suffixIcon = visibilityToggle && getIcon(prefixCls);
const inputClassName = 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.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/es/icons/SearchOutlined.js + 1 modules
var SearchOutlined = __webpack_require__(68795);
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
var reactNode = __webpack_require__(96159);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/hooks/useSize.js
var useSize = __webpack_require__(98675);
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
var Compact = __webpack_require__(4173);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Search.js
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.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.useContext(context/* ConfigContext */.E_);
const composedRef = 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.useRef(null);
const onChange = e => {
if (e && e.target && e.type === 'click' && customOnSearch) {
customOnSearch(e.target.value, e);
}
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);
}
};
const onPressEnter = e => {
if (composedRef.current || loading) {
return;
}
onSearch(e);
};
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/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.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_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.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/es/input/TextArea.js
var TextArea = __webpack_require__(96330);
;// CONCATENATED MODULE: ./node_modules/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);
/***/ })
}]);

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[9170],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34367],{
/***/ 11475:
/*!******************************************************************************************!*\
@ -824,6 +824,163 @@ if (false) {}
/***/ }),
/***/ 85418:
/*!************************************************************!*\
!*** ./node_modules/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/es/dropdown/dropdown.js + 9 modules
var dropdown = __webpack_require__(35874);
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
var EllipsisOutlined = __webpack_require__(89705);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
var context = __webpack_require__(53124);
// EXTERNAL MODULE: ./node_modules/antd/es/space/index.js + 2 modules
var space = __webpack_require__(42075);
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
var Compact = __webpack_require__(4173);
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/style/index.js + 1 modules
var style = __webpack_require__(66748);
;// CONCATENATED MODULE: ./node_modules/antd/es/dropdown/dropdown-button.js
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.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.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_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.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.createElement(es_button/* default */.ZP, {
type: type,
danger: danger,
icon: icon
});
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
return wrapSSR( /*#__PURE__*/react.createElement(space/* default.Compact */.Z.Compact, Object.assign({
className: classes,
size: compactSize,
block: true
}, restProps), leftButtonToRender, /*#__PURE__*/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/es/dropdown/index.js
'use client';
const Dropdown = dropdown/* default */.Z;
Dropdown.Button = dropdown_button;
/* harmony default export */ var es_dropdown = (Dropdown);
/***/ }),
/***/ 64217:
/*!**********************************************!*\
!*** ./node_modules/rc-util/es/pickAttrs.js ***!

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,892 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[5486],{
/***/ 63606:
/*!******************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/CheckOutlined.js + 1 modules ***!
\******************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_CheckOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.js
// This icon file is generated automatically.
var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" };
/* harmony default export */ var asn_CheckOutlined = (CheckOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/CheckOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var CheckOutlined_CheckOutlined = function CheckOutlined(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_CheckOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_CheckOutlined = (/*#__PURE__*/react.forwardRef(CheckOutlined_CheckOutlined));
/***/ }),
/***/ 99611:
/*!****************************************************************************!*\
!*** ./node_modules/@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/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
/***/ }),
/***/ 6171:
/*!*****************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js + 1 modules ***!
\*****************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_LeftOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js
// This icon file is generated automatically.
var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
/* harmony default export */ var asn_LeftOutlined = (LeftOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var LeftOutlined_LeftOutlined = function LeftOutlined(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_LeftOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_LeftOutlined = (/*#__PURE__*/react.forwardRef(LeftOutlined_LeftOutlined));
/***/ }),
/***/ 88484:
/*!*******************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/UploadOutlined.js + 1 modules ***!
\*******************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_UploadOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/UploadOutlined.js
// This icon file is generated automatically.
var UploadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, "name": "upload", "theme": "outlined" };
/* harmony default export */ var asn_UploadOutlined = (UploadOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/UploadOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var UploadOutlined_UploadOutlined = function UploadOutlined(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_UploadOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_UploadOutlined = (/*#__PURE__*/react.forwardRef(UploadOutlined_UploadOutlined));
/***/ }),
/***/ 93899:
/*!**********************************************************!*\
!*** ./src/components/CoverUpload/index.tsx + 1 modules ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ components_CoverUpload; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
var message = __webpack_require__(2453);
// EXTERNAL MODULE: ./node_modules/antd/es/upload/index.js + 24 modules
var upload = __webpack_require__(31365);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/UploadOutlined.js + 1 modules
var UploadOutlined = __webpack_require__(88484);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules
var CloseCircleFilled = __webpack_require__(4340);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(59758);
;// CONCATENATED MODULE: ./src/components/CoverUpload/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var CoverUploadmodules = ({"img":"img___BgL9D"});
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/components/CoverUpload/index.tsx
var CoverUpload = function CoverUpload(_ref) {
var value = _ref.value,
onChange = _ref.onChange,
getFileProgress = _ref.getFileProgress;
var _useState = (0,react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
imgLoading = _useState2[0],
setImgLoading = _useState2[1];
var uploadButton = /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
loading: imgLoading,
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(UploadOutlined/* default */.Z, {}),
children: "\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"
});
var renderImg = function renderImg() {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CoverUploadmodules.img,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: env/* default.API_SERVER */.Z.API_SERVER + "/api/attachments/" + value,
alt: "avatar",
style: {
width: 288
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleFilled/* default */.Z, {
onClick: function onClick() {
return onChange('');
},
style: {
fontSize: '16px',
color: 'red'
}
})
})]
});
};
var handleChange = function handleChange(info) {
if (getFileProgress) {
getFileProgress(info);
}
if (info.file.status === 'uploading') {
setImgLoading(true);
return;
}
if (info.file.status === 'done') {
var _info$file, _info$file$response, _info$file3, _info$file3$response;
setImgLoading(false);
if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 ? void 0 : (_info$file$response = _info$file.response) === null || _info$file$response === void 0 ? void 0 : _info$file$response.status) === -1) {
var _info$file2, _info$file2$response;
message/* default.error */.ZP.error((_info$file2 = info.file) === null || _info$file2 === void 0 ? void 0 : (_info$file2$response = _info$file2.response) === null || _info$file2$response === void 0 ? void 0 : _info$file2$response.message);
// onChange()
return;
}
onChange(info === null || info === void 0 ? void 0 : (_info$file3 = info.file) === null || _info$file3 === void 0 ? void 0 : (_info$file3$response = _info$file3.response) === null || _info$file3$response === void 0 ? void 0 : _info$file3$response.id);
}
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment, {
children: value ? renderImg() : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, {
withCredentials: true,
name: "file",
showUploadList: false,
action: "".concat(env/* default.API_SERVER */.Z.API_SERVER, "/api/attachments.json"),
onChange: handleChange,
accept: "image/*",
children: uploadButton
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt20 c-light-black",
children: "\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "c-light-black",
children: "\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"
})]
})
});
};
/* harmony default export */ var components_CoverUpload = (CoverUpload);
/***/ }),
/***/ 77320:
/*!***********************************!*\
!*** ./src/utils/aliyunUpload.ts ***!
\***********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "o": function() { return /* binding */ getUploader; }
/* harmony export */ });
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/utils/fetch */ 84519);
/* harmony import */ var aliyun_vod_upload_ll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! aliyun-vod-upload-ll */ 69548);
/* harmony import */ var aliyun_vod_upload_ll__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(aliyun_vod_upload_ll__WEBPACK_IMPORTED_MODULE_1__);
var login = '';
var uploader;
var virtual_classroom_id = '';
function createUploader(options) {
doCreateUploader(options);
}
function doCreateUploader(options) {
uploader = new (aliyun_vod_upload_ll__WEBPACK_IMPORTED_MODULE_1___default().Vod)({
timeout: 60000,
partSize: 1048576,
parallel: 5,
retryCount: 3,
retryDuration: 2,
region: 'ap-southeast-1',
userId: 1829848226361863,
enableUploadProgress: false,
addFileSuccess: function addFileSuccess(uploadInfo) {
console.log("addFileSuccess: " + uploadInfo.file.name);
options.addFileSuccess && options.addFileSuccess(uploadInfo);
uploader.startUpload();
},
// 开始上传
onUploadstarted: function onUploadstarted(uploadInfo) {
var fileName = uploadInfo.file.name;
if (!uploadInfo.videoId) {
var createUrl = "/api/users/".concat(login, "/video_auths.json");
var _random = ''; // Math.random().toString().substring(3, 6)+'-'
(0,_utils_fetch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)(createUrl, {
method: 'Post',
body: {
title: _random + fileName,
file_name: _random + fileName,
virtual_classroom_id: virtual_classroom_id
}
}).then(function (response) {
if (response) {
var data = response.data;
var uploadAuth = data.UploadAuth;
var uploadAddress = data.UploadAddress;
var videoId = data.VideoId;
uploader.setUploadAuthAndAddress(uploadInfo, uploadAuth, uploadAddress, videoId);
}
})["catch"](function (error) {
uploader.deleteFile(uploader._curIndex);
uploader.nextUpload();
console.log(error);
});
console.log('文件开始上传...');
} else {
// 如果videoId有值根据videoId刷新上传凭证
var refreshUrl = "/api/users/".concat(login, "/video_auths.json");
(0,_utils_fetch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)(refreshUrl, {
method: 'put',
body: {
video_id: uploadInfo.videoId,
title: fileName,
file_name: fileName,
virtual_classroom_id: virtual_classroom_id
}
}).then(function (response) {
if (response.status == -1) {
options.onUploadError && options.onUploadError(uploadInfo);
return;
}
var data = response.data;
var uploadAuth = data.UploadAuth;
var uploadAddress = data.UploadAddress;
var videoId = data.VideoId;
uploader.setUploadAuthAndAddress(uploadInfo, uploadAuth, uploadAddress);
})["catch"](function (error) {
uploader.deleteFile(uploader._curIndex);
uploader.nextUpload();
console.log(error);
});
}
},
// 文件上传成功
onUploadSucceed: function onUploadSucceed(uploadInfo) {
options.onUploadSucceed && options.onUploadSucceed(uploadInfo);
console.log('文件上传成功!');
},
// 文件上传失败
onUploadFailed: function onUploadFailed(uploadInfo, code, message) {
options.onUploadFailed && options.onUploadFailed(uploadInfo);
console.log('文件上传失败!');
},
// 取消文件上传
onUploadCanceled: function onUploadCanceled(uploadInfo, code, message) {
console.log('文件上传已暂停!');
},
// 文件上传进度,单位:字节, 可以在这个函数中拿到上传进度并显示在页面上
onUploadProgress: function onUploadProgress(uploadInfo, totalSize, progress) {
options.onUploadProgress && options.onUploadProgress(uploadInfo, totalSize, progress);
var progressPercent = Math.ceil(progress * 100);
console.log('文件上传中...');
},
// 上传凭证超时
onUploadTokenExpired: function onUploadTokenExpired(uploadInfo) {
console.log('文件上传超时!');
var refreshUrl = "/api/users/".concat(login, "/video_auths.json");
(0,_utils_fetch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)(refreshUrl, {
method: 'put',
body: {
video_id: uploadInfo.videoId
}
}).then(function (response) {
var data = response.data;
var uploadAuth = data.UploadAuth;
uploader.resumeUploadWithAuth(uploadAuth);
})["catch"](function (error) {
console.log(error);
});
},
// 全部文件上传结束
onUploadEnd: function onUploadEnd(uploadInfo) {
options.onUploadEnd && options.onUploadEnd(uploadInfo);
console.log("onUploadEnd: uploaded all the files");
}
});
if (options.gotUploader) {
options.gotUploader(uploader);
}
}
function getUploader(_login, _virtual_classroom_id, options) {
_login && (login = _login);
_virtual_classroom_id && (virtual_classroom_id = _virtual_classroom_id);
// if (!uploader || options.create == true) {
createUploader(options);
// }
}
/***/ }),
/***/ 57838:
/*!************************************************************!*\
!*** ./node_modules/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 */ 67294);
function useForceUpdate() {
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
return forceUpdate;
}
/***/ }),
/***/ 79531:
/*!*********************************************************!*\
!*** ./node_modules/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/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
var context = __webpack_require__(53124);
// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
var form_context = __webpack_require__(65223);
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js
var style = __webpack_require__(47673);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Group.js
const Group = props => {
const {
getPrefixCls,
direction
} = (0,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_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.useContext)(form_context/* FormItemInputContext */.aM);
const groupFormItemContext = (0,react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
isFormItemInput: false
}), [formItemContext]);
if (false) {}
return wrapSSR( /*#__PURE__*/react.createElement("span", {
className: cls,
style: props.style,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave,
onFocus: props.onFocus,
onBlur: props.onBlur
}, /*#__PURE__*/react.createElement(form_context/* FormItemInputContext.Provider */.aM.Provider, {
value: groupFormItemContext
}, props.children)));
};
/* harmony default export */ var input_Group = (Group);
// EXTERNAL MODULE: ./node_modules/antd/es/input/Input.js + 1 modules
var Input = __webpack_require__(82586);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeInvisibleOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
var EyeOutlined = __webpack_require__(99611);
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
var omit = __webpack_require__(10366);
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/ref.js
var es_ref = __webpack_require__(17799);
// EXTERNAL MODULE: ./node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js
var useRemovePasswordTimeout = __webpack_require__(72922);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Password.js
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.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(icons_EyeInvisibleOutlined, null);
const ActionMap = {
click: 'onClick',
hover: 'onMouseOver'
};
const Password = /*#__PURE__*/react.forwardRef((props, ref) => {
const {
visibilityToggle = true
} = props;
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
const [visible, setVisible] = (0,react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
const inputRef = (0,react.useRef)(null);
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.cloneElement( /*#__PURE__*/react.isValidElement(icon) ? icon : /*#__PURE__*/react.createElement("span", null, icon), iconProps);
};
const {
className,
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
size
} = props,
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
const {
getPrefixCls
} = react.useContext(context/* ConfigContext */.E_);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
const suffixIcon = visibilityToggle && getIcon(prefixCls);
const inputClassName = 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.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/es/icons/SearchOutlined.js + 1 modules
var SearchOutlined = __webpack_require__(68795);
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
var reactNode = __webpack_require__(96159);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/hooks/useSize.js
var useSize = __webpack_require__(98675);
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
var Compact = __webpack_require__(4173);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Search.js
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.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.useContext(context/* ConfigContext */.E_);
const composedRef = 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.useRef(null);
const onChange = e => {
if (e && e.target && e.type === 'click' && customOnSearch) {
customOnSearch(e.target.value, e);
}
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);
}
};
const onPressEnter = e => {
if (composedRef.current || loading) {
return;
}
onSearch(e);
};
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/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.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_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.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/es/input/TextArea.js
var TextArea = __webpack_require__(96330);
;// CONCATENATED MODULE: ./node_modules/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);
/***/ }),
/***/ 33507:
/*!*******************************************************!*\
!*** ./node_modules/antd/es/style/motion/collapse.js ***!
\*******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__) {
const genCollapseMotion = token => ({
[token.componentCls]: {
// For common/openAnimation
[`${token.antCls}-motion-collapse-legacy`]: {
overflow: 'hidden',
'&-active': {
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
}
},
[`${token.antCls}-motion-collapse`]: {
overflow: 'hidden',
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
}
}
});
/* harmony default export */ __webpack_exports__["Z"] = (genCollapseMotion);
/***/ }),
/***/ 59215:
/*!********************************************!*\
!*** ./src/assets/images/video/upload.png ***!
\********************************************/
/***/ (function(module) {
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwBAMAAABTZWEsAAAAIVBMVEVHcExMrf9Qr/9TuP9Mrf9Nrf9Mrf9MrP9Nrv9Orv9MrP98EuefAAAACnRSTlMA3CULV5jA84JH4j3LZgAAANVJREFUOMvl1a0OwjAUBeCb/QgcGckSphqeAASBoKaR4KpwJDwAYhaHQuGbLNtynpKWmTWs92rg2n45orc7I9qeEZzrjSgqwIxRtAI7M7rzoKMLjhScNRqqsAyDGC0BxIw9/UYQKQEUHQ9SoGSBBmoOpG4/JQO0A3UYpP2KyyDQaGG8CB/YgDnMfhjhAw2zgEmGER6wAVkEQzbiMQp29g07YCOmo2CDjBywEadRkOSqB5NcBa/6Dbhd/AmIq0Z41c/DL3y8n0AsMbEGxSIVq1gsc+l38AI000Nd23IRqQAAAABJRU5ErkJggg==";
/***/ }),
/***/ 19213:
/*!**************************************************!*\
!*** ./src/assets/images/video/upload_hover.png ***!
\**************************************************/
/***/ (function(module) {
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABgBAMAAAAnVGd6AAAAJFBMVEVHcExMrf9Orf9Nrf90uv9MrP////95wP/M5//z+v+x2/9cs//eVCejAAAABXRSTlMA10ycBa32wqwAAAFsSURBVFjD7dk/TsMwFMfxJ8QNIHsHOABDduAGJXoyUnZTsmcoByg3KANz/0i9AHA6YruBIjXPr/6hLrWlLlXy0dcZrPSViOj+puCENb64Ir/Okm73xMjdf15y8qpuO+COgXXZASUCVN0TYGiNsB24PVxjwAP2CNxDKDBgjAMMrgxkIANHAr5aDPiwtoWAubVPCPBobSxBBmYOeEsHfIB9bpMBHxBJoGhAJIHiAXICxQPkBFIEiAmkCBATSBMgJZAmQEogMWDiPnMxgcSAlQOmYgJJAY1xgBETSApYeIDFBJICOABiAkkBW0BM2A8sQ0APhIR3PVBvA3ogJDR6wPTX94BPmBwILHYAn3AA4A7jhncBM3g87wemIeAX+PlGCdTrFf8FeP2acqybwa1nIAMZODWgHjyMtW+qM/BNlT+HjkItUL9s8i+WDGTgSECB3f8Ps7QSAyp8IAmPROGhLDwWxgfT8GgcHs6Dfw98A1V0Ca+XaA0MAAAAAElFTkSuQmCC";
/***/ })
}]);

@ -1,656 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[59267],{
/***/ 82982:
/*!*****************************************!*\
!*** ./src/components/NoData/index.tsx ***!
\*****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 4977);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 71577);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
var noData = function noData(_ref) {
var img = _ref.img,
_ref$buttonProps = _ref.buttonProps,
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
_ref$styles = _ref.styles,
styles = _ref$styles === void 0 ? {} : _ref$styles,
customText = _ref.customText,
ButtonText = _ref.ButtonText,
ButtonClick = _ref.ButtonClick,
Buttonclass = _ref.Buttonclass,
ButtonTwo = _ref.ButtonTwo,
imgStyles = _ref.imgStyles,
_ref$loading = _ref.loading,
loading = _ref$loading === void 0 ? false : _ref$loading;
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", {
className: "tc animated fadeIn",
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, {
color: '#999',
margin: '100px auto',
visibility: loading ? 'hidden' : 'visible'
}), styles),
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", {
src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__,
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles)
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", {
className: "mt20 font14",
children: customText || '暂时还没有相关数据哦!'
}), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
className: Buttonclass,
onClick: ButtonClick
}, buttonProps), {}, {
children: ButtonText
})), ButtonTwo && ButtonTwo]
});
};
/* harmony default export */ __webpack_exports__["Z"] = (noData);
/***/ }),
/***/ 59267:
/*!**********************************************************************************************!*\
!*** ./src/pages/virtualSpaces/Lists/Shixuns/components/SelectShixuns/index.tsx + 1 modules ***!
\**********************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ SelectShixuns; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/typeof.js
var helpers_typeof = __webpack_require__(18698);
var typeof_default = /*#__PURE__*/__webpack_require__.n(helpers_typeof);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(17061);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(17156);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(42122);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
var input = __webpack_require__(79531);
// EXTERNAL MODULE: ./node_modules/antd/es/form/index.js + 17 modules
var es_form = __webpack_require__(25159);
// EXTERNAL MODULE: ./node_modules/antd/es/drawer/index.js + 16 modules
var drawer = __webpack_require__(35479);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
var message = __webpack_require__(2453);
// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
var row = __webpack_require__(71230);
// EXTERNAL MODULE: ./node_modules/antd/es/col/index.js
var col = __webpack_require__(15746);
// EXTERNAL MODULE: ./node_modules/antd/es/checkbox/index.js + 3 modules
var es_checkbox = __webpack_require__(84567);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(83062);
// EXTERNAL MODULE: ./node_modules/antd/es/divider/index.js + 1 modules
var divider = __webpack_require__(96074);
// EXTERNAL MODULE: ./node_modules/antd/es/pagination/index.js + 11 modules
var pagination = __webpack_require__(83338);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
var _umi_production_exports = __webpack_require__(89214);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Shixuns/components/SelectShixuns/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var SelectShixunsmodules = ({"flex_box_center":"flex_box_center___aqHcx","flex_space_between":"flex_space_between___CONGd","flex_box_vertical_center":"flex_box_vertical_center___lVyEh","flex_box_center_end":"flex_box_center_end___sI_Vv","flex_box_column":"flex_box_column___kaVXu","wrp":"wrp___rtMqf","drawer":"drawer___A_PEI","menu":"menu___K7LJA","actived":"actived___jzUGM","actived2":"actived2___UNcoI","subTag":"subTag___E54g9","directionName":"directionName___EyQuv","menuDirection":"menuDirection___qmHXv","listItem":"listItem___ZO5AA","info":"info___raEGy","title":"title___TE8wt","titleLeft":"titleLeft___cyNcR","titleRight":"titleRight___N91L3","search":"search___SLT83","description":"description___xhaap","menuCourse":"menuCourse___jXQvt","paginationWrap":"paginationWrap___lwYL6"});
// EXTERNAL MODULE: ./src/service/shixuns.ts
var shixuns = __webpack_require__(56088);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(82982);
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
var verifyLogin = __webpack_require__(7303);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(7);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Shixuns/components/SelectShixuns/index.tsx
var Search = input/* default.Search */.Z.Search;
var typeFilter = {
id: "type",
name: "来源",
children: [{
name: "全部",
id: "all",
type: "type"
}, {
name: "我的",
id: "mine",
type: "type"
}]
};
var diffFilter = {
id: "diff",
name: "难度",
children: [{
name: "全部",
id: "",
type: "diff"
}, {
name: "初级",
id: 1,
type: "diff"
}, {
name: "中级",
id: 2,
type: "diff"
}, {
name: "中高级",
id: 3,
type: "diff"
}, {
name: "高级",
id: 4,
type: "diff"
}]
};
var PublishShixun = function PublishShixun(_ref) {
var _typeFilter$children, _diffFilter$children, _shixunLists$shixun_l3, _shixunLists$shixun_l4;
var classroomList = _ref.classroomList,
loading = _ref.loading,
dispatch = _ref.dispatch,
cb = _ref.cb,
_ref$shixunIds = _ref.shixunIds,
shixunIds = _ref$shixunIds === void 0 ? [] : _ref$shixunIds;
var params = (0,_umi_production_exports.useParams)();
var location = (0,_umi_production_exports.useLocation)();
var actionTabs = classroomList.actionTabs;
var _Form$useForm = es_form/* default.useForm */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
var shixunLists = classroomList.shixunLists;
var _useState = (0,react.useState)([]),
_useState2 = slicedToArray_default()(_useState, 2),
selectArrs = _useState2[0],
setSelectArrs = _useState2[1];
var _useState3 = (0,react.useState)([]),
_useState4 = slicedToArray_default()(_useState3, 2),
directionData = _useState4[0],
setDirectionData = _useState4[1];
var _useState5 = (0,react.useState)({
page: 1,
type: "all",
diff: 0,
status: "published",
order: "desc",
limit: 10,
sort: "myshixuns_count",
tag_level: null,
sub_discipline_id: null,
discipline_id: null
}),
_useState6 = slicedToArray_default()(_useState5, 2),
query = _useState6[0],
setQuery = _useState6[1];
(0,react.useEffect)(function () {
if (classroomList.actionTabs.key === '选用实践项目') {
// query.page = 1;
dispatch({
type: 'classroomList/getShixunLists',
payload: objectSpread2_default()({}, query)
});
}
}, [classroomList.actionTabs.key, query]);
(0,react.useEffect)(function () {
getData();
}, [params]);
var getData = /*#__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 (0,shixuns/* getShixunsMenus */.I_)({});
case 2:
res = _context.sent;
//
setDirectionData((res === null || res === void 0 ? void 0 : res.disciplines) || []);
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData() {
return _ref2.apply(this, arguments);
};
}();
var menuChange = function menuChange(tag_level, sub_discipline_id, discipline_id) {
query.tag_level = tag_level;
query.sub_discipline_id = sub_discipline_id;
query.discipline_id = discipline_id;
setQuery(objectSpread2_default()({}, query));
dispatch({
type: 'classroomList/getShixunLists',
payload: objectSpread2_default()({}, query)
});
};
var handleCancel = function handleCancel() {
dispatch({
type: 'classroomList/setActionTabs',
payload: {}
});
setQuery({
page: 1,
type: "all",
diff: 0,
status: "all",
order: "desc",
limit: 10,
sort: "myshixuns_count",
tag_level: null,
sub_discipline_id: null,
discipline_id: null
});
};
if (classroomList.actionTabs.key !== '选用实践项目') return null;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(drawer/* default */.Z, {
placement: "bottom",
height: "100%",
closable: true,
onClose: handleCancel,
open: classroomList.actionTabs.key === '选用实践项目' ? true : false,
rootClassName: SelectShixunsmodules.drawer,
footer: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "tc",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
size: 'middle',
onClick: function onClick() {
handleCancel();
setSelectArrs([]);
},
style: {
marginRight: 8
},
children: "\u53D6\u6D88"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
size: 'middle',
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var _loop, i, _ret;
return regeneratorRuntime_default()().wrap(function _callee2$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_loop = /*#__PURE__*/regeneratorRuntime_default()().mark(function _loop() {
var selectItem, _shixunLists$shixun_l, _shixunLists$shixun_l2;
return regeneratorRuntime_default()().wrap(function _loop$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
selectItem = selectArrs[i];
if (!shixunIds.includes(selectItem)) {
_context2.next = 4;
break;
}
message/* default.info */.ZP.info("\u8BF7\u52FF\u91CD\u590D\u9009\u62E9\uFF1A".concat(shixunLists === null || shixunLists === void 0 ? void 0 : (_shixunLists$shixun_l = shixunLists.shixun_list) === null || _shixunLists$shixun_l === void 0 ? void 0 : (_shixunLists$shixun_l2 = _shixunLists$shixun_l.find(function (item) {
return item.id === selectItem;
})) === null || _shixunLists$shixun_l2 === void 0 ? void 0 : _shixunLists$shixun_l2.title));
return _context2.abrupt("return", {
v: void 0
});
case 4:
case "end":
return _context2.stop();
}
}, _loop);
});
i = 0;
case 2:
if (!(i < (selectArrs === null || selectArrs === void 0 ? void 0 : selectArrs.length))) {
_context3.next = 10;
break;
}
return _context3.delegateYield(_loop(), "t0", 4);
case 4:
_ret = _context3.t0;
if (!(typeof_default()(_ret) === "object")) {
_context3.next = 7;
break;
}
return _context3.abrupt("return", _ret.v);
case 7:
i++;
_context3.next = 2;
break;
case 10:
handleCancel();
cb(selectArrs);
setSelectArrs([]);
case 13:
case "end":
return _context3.stop();
}
}, _callee2);
})),
type: "primary",
children: "\u786E\u5B9A"
})]
}),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: "tc",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Search, {
placeholder: "\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",
enterButton: "\u641C\u7D22",
size: 'middle',
className: SelectShixunsmodules.search,
onSearch: function onSearch(value) {
query.keyword = value;
query.page = 1;
dispatch({
type: 'classroomList/getShixunLists',
payload: objectSpread2_default()({}, query)
});
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "edu-container",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
className: SelectShixunsmodules.menu,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("li", {
children: typeFilter.name
}), typeFilter === null || typeFilter === void 0 ? void 0 : (_typeFilter$children = typeFilter.children) === null || _typeFilter$children === void 0 ? void 0 : _typeFilter$children.map(function (val, key) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: query[typeFilter.id] == val.id ? SelectShixunsmodules.actived : '',
onClick: function onClick() {
query[typeFilter.id] = val.id;
setQuery(objectSpread2_default()({}, query));
dispatch({
type: 'classroomList/getShixunLists',
payload: objectSpread2_default()({}, query)
});
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
children: val.name
})
});
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
className: SelectShixunsmodules.menuDirection,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: SelectShixunsmodules.directionName,
children: "\u65B9\u5411"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: !query.discipline_id ? SelectShixunsmodules.actived : '',
onClick: function onClick() {
menuChange(null, null, null);
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
children: "\u5168\u90E8"
})
}), directionData === null || directionData === void 0 ? void 0 : directionData.map(function (v, k) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
className: query.discipline_id == v.id ? SelectShixunsmodules.actived : '',
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
onClick: function onClick() {
menuChange(1, null, v.id);
},
children: v.name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: v.sub_disciplines.map(function (val, key) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt5",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: query.sub_discipline_id == val.id ? "".concat(SelectShixunsmodules.actived2, " ").concat(SelectShixunsmodules.subTag) : SelectShixunsmodules.subTag,
onClick: function onClick() {
menuChange(2, val.id, v.id);
},
children: val.name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
className: "mt5",
children: val.tags && val.tags.map(function (value, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: query.sub_discipline_id == value.id && query.tag_level === 3 ? SelectShixunsmodules.actived2 : '',
onClick: function onClick() {
menuChange(3, value.id, v.id);
},
children: value.name
}, index);
})
})]
}, key);
})
})]
}, k);
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
className: SelectShixunsmodules.menu,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("li", {
children: diffFilter.name
}), diffFilter === null || diffFilter === void 0 ? void 0 : (_diffFilter$children = diffFilter.children) === null || _diffFilter$children === void 0 ? void 0 : _diffFilter$children.map(function (val, key) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: query[diffFilter.id] == val.id ? SelectShixunsmodules.actived : '',
onClick: function onClick() {
query[diffFilter.id] = val.id;
setQuery(objectSpread2_default()({}, query));
dispatch({
type: 'classroomList/getShixunLists',
payload: objectSpread2_default()({}, query)
});
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
children: val.name
})
});
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "1",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: SelectShixunsmodules.menuCourse,
style: {
margin: '0px 15px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
children: ["\u5DF2\u9009", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-blue",
children: selectArrs.length
}), "\u4E2A\u5B9E\u8BAD"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-blue",
children: shixunLists.shixuns_count
}), "\u4E2A\u8BFE\u7A0B"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
className: "current",
onClick: function onClick() {
query.order = query.order === 'asc' ? "desc" : "asc";
setQuery(objectSpread2_default()({}, query));
},
children: ["\u5B66\u4E60\u4EBA\u6570", /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: "edu-sorter current ".concat(query.order),
children: query.order === 'asc' ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-sanjiaoxing-up"
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-sanjiaoxing-down"
})
})]
})]
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "c-grey-999",
children: "\u4EC5\u5DF2\u53D1\u5E03\u7684\u5B9E\u8BAD\u8FDB\u5165\u672C\u5217\u8868\u5907\u9009"
})]
}), shixunLists === null || shixunLists === void 0 ? void 0 : (_shixunLists$shixun_l3 = shixunLists.shixun_list) === null || _shixunLists$shixun_l3 === void 0 ? void 0 : _shixunLists$shixun_l3.map(function (v, k) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SelectShixunsmodules.listItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
checked: selectArrs.includes(v.id),
value: v.id,
disabled: v === null || v === void 0 ? void 0 : v.need_authorize,
onChange: function onChange(e) {
var key = selectArrs.indexOf(v.id);
if (selectArrs.indexOf(v.id) > -1) {
setSelectArrs(selectArrs.filter(function (val) {
return val !== v.id;
}));
} else {
setSelectArrs(selectArrs.concat(v.id));
}
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SelectShixunsmodules.info,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: SelectShixunsmodules.title,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SelectShixunsmodules.titleLeft,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
className: "c-black",
href: "/shixuns/".concat(v === null || v === void 0 ? void 0 : v.identifier, "/challenges"),
target: "_blank",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
className: "font16",
dangerouslySetInnerHTML: {
__html: v.title
}
})
}), (v === null || v === void 0 ? void 0 : v.need_authorize) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: function onClick() {
(0,verifyLogin/* AuthorizeModel */.rX)(false);
},
style: {
marginRight: 'auto'
},
className: "tag-style bg-pink current ml10",
children: "\u9700\u6388\u6743"
}), (0,authority/* isSuperAdmins */.Ny)() && (v === null || v === void 0 ? void 0 : v.mark_status) === 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: v === null || v === void 0 ? void 0 : v.mark_content,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
marginRight: 'auto',
background: '#2FA34F'
},
className: "tag-style current ml10",
children: "\u6B63\u5E38"
})
}), (0,authority/* isSuperAdmins */.Ny)() && (v === null || v === void 0 ? void 0 : v.mark_status) === 2 && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: v === null || v === void 0 ? void 0 : v.mark_content,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
marginRight: 'auto',
background: '#FF8C29'
},
className: "tag-style current ml10",
children: "\u9700\u5B8C\u5584"
})
}), (0,authority/* isSuperAdmins */.Ny)() && (v === null || v === void 0 ? void 0 : v.mark_status) === 3 && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: v === null || v === void 0 ? void 0 : v.mark_content,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
marginRight: 'auto',
background: '#E53333'
},
className: "tag-style current ml10",
children: "\u65E0\u6CD5\u4F7F\u7528"
})
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "flex-wrp mt10 font14 c-light-black",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: SelectShixunsmodules.description,
dangerouslySetInnerHTML: {
__html: v.description
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: " mt15",
children: v.challenge_names.map(function (val, key) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr30 font12",
children: ["\u7B2C", key + 1, "\u5173 ", val, " "]
}, key);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {
dashed: true
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "c-light-black mt20 font12",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.author_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.author_school_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u96BE\u5EA6\u7CFB\u6570 ", v.level]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5B66\u4E60\u4EBA\u6570 "
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.study_count
})]
})]
})]
}, k);
}), (shixunLists === null || shixunLists === void 0 ? void 0 : (_shixunLists$shixun_l4 = shixunLists.shixun_list) === null || _shixunLists$shixun_l4 === void 0 ? void 0 : _shixunLists$shixun_l4.length) === 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "tc mt20",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
defaultCurrent: 1,
hideOnSinglePage: true,
defaultPageSize: 20,
showSizeChanger: false,
current: query.page || 1,
showQuickJumper: true,
total: shixunLists === null || shixunLists === void 0 ? void 0 : shixunLists.shixuns_count,
onChange: function onChange(page) {
query.page = page;
setQuery(objectSpread2_default()({}, query));
}
})
})]
}, "bottom");
};
/* harmony default export */ var SelectShixuns = ((0,_umi_production_exports.connect)(function (_ref4) {
var classroomList = _ref4.classroomList,
loading = _ref4.loading;
return {
classroomList: classroomList,
loading: loading
};
})(PublishShixun));
/***/ })
}]);

@ -1,864 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[65367,26042],{
/***/ 23430:
/*!*********************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js + 1 modules ***!
\*********************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_DownloadOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/DownloadOutlined.js
// This icon file is generated automatically.
var DownloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, "name": "download", "theme": "outlined" };
/* harmony default export */ var asn_DownloadOutlined = (DownloadOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var DownloadOutlined_DownloadOutlined = function DownloadOutlined(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_DownloadOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_DownloadOutlined = (/*#__PURE__*/react.forwardRef(DownloadOutlined_DownloadOutlined));
/***/ }),
/***/ 99611:
/*!****************************************************************************!*\
!*** ./node_modules/@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/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
/***/ }),
/***/ 6171:
/*!*****************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js + 1 modules ***!
\*****************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_LeftOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js
// This icon file is generated automatically.
var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
/* harmony default export */ var asn_LeftOutlined = (LeftOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var LeftOutlined_LeftOutlined = function LeftOutlined(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_LeftOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_LeftOutlined = (/*#__PURE__*/react.forwardRef(LeftOutlined_LeftOutlined));
/***/ }),
/***/ 33160:
/*!*******************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules ***!
\*******************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_ReloadOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.js
// This icon file is generated automatically.
var ReloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, "name": "reload", "theme": "outlined" };
/* harmony default export */ var asn_ReloadOutlined = (ReloadOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var ReloadOutlined_ReloadOutlined = function ReloadOutlined(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_ReloadOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_ReloadOutlined = (/*#__PURE__*/react.forwardRef(ReloadOutlined_ReloadOutlined));
/***/ }),
/***/ 18073:
/*!******************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/RightOutlined.js + 1 modules ***!
\******************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_RightOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_RightOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_RightOutlined = (/*#__PURE__*/react.forwardRef(RightOutlined_RightOutlined));
/***/ }),
/***/ 96074:
/*!***********************************************************!*\
!*** ./node_modules/antd/es/divider/index.js + 1 modules ***!
\***********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ divider; }
});
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
var context = __webpack_require__(53124);
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.js
var style = __webpack_require__(14747);
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
var genComponentStyleHook = __webpack_require__(67968);
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
var statistic = __webpack_require__(45503);
;// CONCATENATED MODULE: ./node_modules/antd/es/divider/style/index.js
// ============================== Shared ==============================
const genSharedDividerStyle = token => {
const {
componentCls,
sizePaddingEdgeHorizontal,
colorSplit,
lineWidth
} = token;
return {
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
borderBlockStart: `${lineWidth}px solid ${colorSplit}`,
// vertical
'&-vertical': {
position: 'relative',
top: '-0.06em',
display: 'inline-block',
height: '0.9em',
margin: `0 ${token.dividerVerticalGutterMargin}px`,
verticalAlign: 'middle',
borderTop: 0,
borderInlineStart: `${lineWidth}px solid ${colorSplit}`
},
'&-horizontal': {
display: 'flex',
clear: 'both',
width: '100%',
minWidth: '100%',
margin: `${token.dividerHorizontalGutterMargin}px 0`
},
[`&-horizontal${componentCls}-with-text`]: {
display: 'flex',
alignItems: 'center',
margin: `${token.dividerHorizontalWithTextGutterMargin}px 0`,
color: token.colorTextHeading,
fontWeight: 500,
fontSize: token.fontSizeLG,
whiteSpace: 'nowrap',
textAlign: 'center',
borderBlockStart: `0 ${colorSplit}`,
'&::before, &::after': {
position: 'relative',
width: '50%',
borderBlockStart: `${lineWidth}px solid transparent`,
// Chrome not accept `inherit` in `border-top`
borderBlockStartColor: 'inherit',
borderBlockEnd: 0,
transform: 'translateY(50%)',
content: "''"
}
},
[`&-horizontal${componentCls}-with-text-left`]: {
'&::before': {
width: '5%'
},
'&::after': {
width: '95%'
}
},
[`&-horizontal${componentCls}-with-text-right`]: {
'&::before': {
width: '95%'
},
'&::after': {
width: '5%'
}
},
[`${componentCls}-inner-text`]: {
display: 'inline-block',
padding: '0 1em'
},
'&-dashed': {
background: 'none',
borderColor: colorSplit,
borderStyle: 'dashed',
borderWidth: `${lineWidth}px 0 0`
},
[`&-horizontal${componentCls}-with-text${componentCls}-dashed`]: {
'&::before, &::after': {
borderStyle: 'dashed none none'
}
},
[`&-vertical${componentCls}-dashed`]: {
borderInlineStartWidth: lineWidth,
borderInlineEnd: 0,
borderBlockStart: 0,
borderBlockEnd: 0
},
[`&-plain${componentCls}-with-text`]: {
color: token.colorText,
fontWeight: 'normal',
fontSize: token.fontSize
},
[`&-horizontal${componentCls}-with-text-left${componentCls}-no-default-orientation-margin-left`]: {
'&::before': {
width: 0
},
'&::after': {
width: '100%'
},
[`${componentCls}-inner-text`]: {
paddingInlineStart: sizePaddingEdgeHorizontal
}
},
[`&-horizontal${componentCls}-with-text-right${componentCls}-no-default-orientation-margin-right`]: {
'&::before': {
width: '100%'
},
'&::after': {
width: 0
},
[`${componentCls}-inner-text`]: {
paddingInlineEnd: sizePaddingEdgeHorizontal
}
}
})
};
};
// ============================== Export ==============================
/* harmony default export */ var divider_style = ((0,genComponentStyleHook/* default */.Z)('Divider', token => {
const dividerToken = (0,statistic/* merge */.TS)(token, {
dividerVerticalGutterMargin: token.marginXS,
dividerHorizontalWithTextGutterMargin: token.margin,
dividerHorizontalGutterMargin: token.marginLG
});
return [genSharedDividerStyle(dividerToken)];
}, {
sizePaddingEdgeHorizontal: 0
}));
;// CONCATENATED MODULE: ./node_modules/antd/es/divider/index.js
'use client';
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const Divider = props => {
const {
getPrefixCls,
direction,
divider
} = react.useContext(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
type = 'horizontal',
orientation = 'center',
orientationMargin,
className,
rootClassName,
children,
dashed,
plain,
style
} = props,
restProps = __rest(props, ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "plain", "style"]);
const prefixCls = getPrefixCls('divider', customizePrefixCls);
const [wrapSSR, hashId] = divider_style(prefixCls);
const orientationPrefix = orientation.length > 0 ? `-${orientation}` : orientation;
const hasChildren = !!children;
const hasCustomMarginLeft = orientation === 'left' && orientationMargin != null;
const hasCustomMarginRight = orientation === 'right' && orientationMargin != null;
const classString = classnames_default()(prefixCls, divider === null || divider === void 0 ? void 0 : divider.className, hashId, `${prefixCls}-${type}`, {
[`${prefixCls}-with-text`]: hasChildren,
[`${prefixCls}-with-text${orientationPrefix}`]: hasChildren,
[`${prefixCls}-dashed`]: !!dashed,
[`${prefixCls}-plain`]: !!plain,
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-no-default-orientation-margin-left`]: hasCustomMarginLeft,
[`${prefixCls}-no-default-orientation-margin-right`]: hasCustomMarginRight
}, className, rootClassName);
const memoizedOrientationMargin = react.useMemo(() => {
if (typeof orientationMargin === 'number') {
return orientationMargin;
}
if (/^\d+$/.test(orientationMargin)) {
return Number(orientationMargin);
}
return orientationMargin;
}, [orientationMargin]);
const innerStyle = Object.assign(Object.assign({}, hasCustomMarginLeft && {
marginLeft: memoizedOrientationMargin
}), hasCustomMarginRight && {
marginRight: memoizedOrientationMargin
});
// Warning children not work in vertical mode
if (false) {}
return wrapSSR( /*#__PURE__*/react.createElement("div", Object.assign({
className: classString,
style: Object.assign(Object.assign({}, divider === null || divider === void 0 ? void 0 : divider.style), style)
}, restProps, {
role: "separator"
}), children && type !== 'vertical' && /*#__PURE__*/react.createElement("span", {
className: `${prefixCls}-inner-text`,
style: innerStyle
}, children)));
};
if (false) {}
/* harmony default export */ var divider = (Divider);
/***/ }),
/***/ 79531:
/*!*********************************************************!*\
!*** ./node_modules/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/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
var context = __webpack_require__(53124);
// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
var form_context = __webpack_require__(65223);
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js
var style = __webpack_require__(47673);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Group.js
const Group = props => {
const {
getPrefixCls,
direction
} = (0,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_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.useContext)(form_context/* FormItemInputContext */.aM);
const groupFormItemContext = (0,react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
isFormItemInput: false
}), [formItemContext]);
if (false) {}
return wrapSSR( /*#__PURE__*/react.createElement("span", {
className: cls,
style: props.style,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave,
onFocus: props.onFocus,
onBlur: props.onBlur
}, /*#__PURE__*/react.createElement(form_context/* FormItemInputContext.Provider */.aM.Provider, {
value: groupFormItemContext
}, props.children)));
};
/* harmony default export */ var input_Group = (Group);
// EXTERNAL MODULE: ./node_modules/antd/es/input/Input.js + 1 modules
var Input = __webpack_require__(82586);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeInvisibleOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
var EyeOutlined = __webpack_require__(99611);
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
var omit = __webpack_require__(10366);
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/ref.js
var es_ref = __webpack_require__(17799);
// EXTERNAL MODULE: ./node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js
var useRemovePasswordTimeout = __webpack_require__(72922);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Password.js
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.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(icons_EyeInvisibleOutlined, null);
const ActionMap = {
click: 'onClick',
hover: 'onMouseOver'
};
const Password = /*#__PURE__*/react.forwardRef((props, ref) => {
const {
visibilityToggle = true
} = props;
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
const [visible, setVisible] = (0,react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
const inputRef = (0,react.useRef)(null);
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.cloneElement( /*#__PURE__*/react.isValidElement(icon) ? icon : /*#__PURE__*/react.createElement("span", null, icon), iconProps);
};
const {
className,
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
size
} = props,
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
const {
getPrefixCls
} = react.useContext(context/* ConfigContext */.E_);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
const suffixIcon = visibilityToggle && getIcon(prefixCls);
const inputClassName = 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.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/es/icons/SearchOutlined.js + 1 modules
var SearchOutlined = __webpack_require__(68795);
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
var reactNode = __webpack_require__(96159);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/hooks/useSize.js
var useSize = __webpack_require__(98675);
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
var Compact = __webpack_require__(4173);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Search.js
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.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.useContext(context/* ConfigContext */.E_);
const composedRef = 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.useRef(null);
const onChange = e => {
if (e && e.target && e.type === 'click' && customOnSearch) {
customOnSearch(e.target.value, e);
}
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);
}
};
const onPressEnter = e => {
if (composedRef.current || loading) {
return;
}
onSearch(e);
};
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/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.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_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.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/es/input/TextArea.js
var TextArea = __webpack_require__(96330);
;// CONCATENATED MODULE: ./node_modules/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);
/***/ }),
/***/ 33507:
/*!*******************************************************!*\
!*** ./node_modules/antd/es/style/motion/collapse.js ***!
\*******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__) {
const genCollapseMotion = token => ({
[token.componentCls]: {
// For common/openAnimation
[`${token.antCls}-motion-collapse-legacy`]: {
overflow: 'hidden',
'&-active': {
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
}
},
[`${token.antCls}-motion-collapse`]: {
overflow: 'hidden',
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
}
}
});
/* harmony default export */ __webpack_exports__["Z"] = (genCollapseMotion);
/***/ })
}]);

File diff suppressed because it is too large Load Diff

@ -43,9 +43,51 @@ if (false) {}
/***/ }),
/***/ 17954:
/***/ 99611:
/*!****************************************************************************!*\
!*** ./node_modules/@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/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
/***/ }),
/***/ 16398:
/*!*********************************************************!*\
!*** ./src/layouts/virtualDetail/index.tsx + 7 modules ***!
!*** ./src/layouts/virtualDetail/index.tsx + 9 modules ***!
\*********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -299,13 +341,281 @@ var Menus = function Menus(_ref) {
loading: loading
};
})(Menus));
// EXTERNAL MODULE: ./src/layouts/virtualDetail/TopBanner/index.tsx + 1 modules
var TopBanner = __webpack_require__(49620);
;// CONCATENATED MODULE: ./src/layouts/virtualDetail/TopPlanBanner/index.less?modules
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
var modal = __webpack_require__(72423);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
var message = __webpack_require__(2453);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(83062);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
;// CONCATENATED MODULE: ./src/layouts/virtualDetail/TopBanner/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var TopPlanBannermodules = ({"bg":"bg___kZNV_","headName":"headName___ZMo2u"});
/* harmony default export */ var TopBannermodules = ({"bg":"bg___vd7LL","headName":"headName___sPZlC","name":"name___MBElV","member":"member___StkKn"});
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(84519);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(59758);
// EXTERNAL MODULE: ./src/pages/virtualSpaces/components/AddOrEdit/index.tsx + 1 modules
var AddOrEdit = __webpack_require__(97642);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(7);
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
var verifyLogin = __webpack_require__(7303);
;// CONCATENATED MODULE: ./src/layouts/virtualDetail/TopBanner/index.tsx
var TopBanner = function TopBanner(_ref) {
var virtualSpaces = _ref.virtualSpaces,
user = _ref.user,
dispatch = _ref.dispatch;
var _useState = (0,react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
visible = _useState2[0],
setVisible = _useState2[1];
var urlParams = (0,_umi_production_exports.useParams)();
var virtualSpacesDetails = virtualSpaces.virtualSpacesDetails;
var getDetails = function getDetails() {
dispatch({
type: 'virtualSpaces/getVirtualSpacesDetails',
payload: {
id: urlParams === null || urlParams === void 0 ? void 0 : urlParams.virtual_spacesId
}
});
};
var handleJoin = function handleJoin() {
if (!(0,verifyLogin/* handleVerifyLogin */.o1)(dispatch)) {
return;
}
modal/* default.confirm */.Z.confirm({
centered: true,
width: 424,
okText: '确定',
cancelText: '取消',
title: '确认申请加入',
icon: null,
className: 'custom-modal-divider',
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "font14",
children: "\u786E\u8BA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u52A0\u5165\u8BE5\u865A\u62DF\u793E\u533A\u5417\uFF1F"
}),
onOk: function () {
var _onOk = 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 (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(urlParams === null || urlParams === void 0 ? void 0 : urlParams.virtual_spacesId, "/apply_become_member.json"), {
method: 'post'
});
case 2:
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) !== -1) {
message/* default.success */.ZP.success(res === null || res === void 0 ? void 0 : res.message);
getDetails();
}
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
function onOk() {
return _onOk.apply(this, arguments);
}
return onOk;
}()
});
};
var handlePublic = function handlePublic() {
modal/* default.confirm */.Z.confirm({
centered: true,
width: 424,
okText: '确定',
cancelText: '取消',
title: '确认申请公开',
icon: null,
className: 'custom-modal-divider',
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "font14",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "\u786E\u8BA4\u5411\u5E73\u53F0\u7533\u8BF7\u516C\u5F00\u865A\u62DF\u793E\u533A\u5417\uFF1F"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "\u516C\u5F00\u865A\u62DF\u793E\u533A\u9700\u7ECF\u8FC7\u5E73\u53F0\u6807\u51C6\u5316\u5BA1\u6838\uFF0C\u5BA1\u6838\u5468\u671F\u4E3A1-2\u5929\uFF0C"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u516C\u5F00\u7684\u865A\u62DF\u793E\u533A\u5C06\u5BF9\u5E73\u53F0\u6240\u6709\u4EBA\u53EF\u89C1\u3002"
})]
}),
onOk: function () {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(urlParams === null || urlParams === void 0 ? void 0 : urlParams.virtual_spacesId, "/apply_public.json"), {
method: 'post'
});
case 2:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) !== -1) {
message/* default.success */.ZP.success(res === null || res === void 0 ? void 0 : res.message);
getDetails();
}
case 4:
case "end":
return _context2.stop();
}
}, _callee2);
}));
function onOk() {
return _onOk2.apply(this, arguments);
}
return onOk;
}()
});
};
var handleOk = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(values) {
var res;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(urlParams === null || urlParams === void 0 ? void 0 : urlParams.virtual_spacesId, ".json"), {
method: 'put',
body: values
});
case 2:
res = _context3.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
getDetails();
setVisible(false);
}
case 4:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return function handleOk(_x) {
return _ref2.apply(this, arguments);
};
}();
var handleEdit = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(values) {
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
setVisible(objectSpread2_default()({}, virtualSpacesDetails));
case 1:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return function handleEdit(_x2) {
return _ref3.apply(this, arguments);
};
}();
var permission = (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_member) || (0,authority/* isSuperAdmins */.Ny)();
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: TopBannermodules.bg,
style: {
background: "url('".concat(env/* default.IMG_SERVER */.Z.IMG_SERVER + (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.backbground_image_url), "') no-repeat center center")
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: TopBannermodules.headName,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [" ", virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.name]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: TopBannermodules.member,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: '成员总数',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
color: '#FF8B58',
fontSize: 24
},
className: "iconfont icon-a-chengyuan1"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: '成员总数',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.members_count
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: '资源总数',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
color: '#07C160',
marginLeft: 100
},
className: "iconfont icon-a-ziyuanku1"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: '资源总数',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.resources_count
})
})]
})]
}), permission && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
disabled: (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.status) !== 2,
onClick: handlePublic,
type: "primary",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-sheweigongkai2 mr5 font14"
}), (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.status) === 2 ? '申请公开' : (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.status) === 0 ? '申请中' : '已公开']
}), !permission && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
onClick: handleJoin,
type: "primary",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shenqingjiaru2 mr5 font14"
}), "\u7533\u8BF7\u52A0\u5165"]
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AddOrEdit/* default */.Z, {
visible: visible,
title: '编辑虚拟社区',
onCancel: function onCancel() {
return setVisible(false);
},
onOk: handleOk
})]
});
};
/* harmony default export */ var virtualDetail_TopBanner = ((0,_umi_production_exports.connect)(function (_ref4) {
var virtualSpaces = _ref4.virtualSpaces,
user = _ref4.user;
return {
virtualSpaces: virtualSpaces,
user: user
};
})(TopBanner));
;// CONCATENATED MODULE: ./src/layouts/virtualDetail/TopPlanBanner/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var TopPlanBannermodules = ({"bg":"bg___kZNV_","headName":"headName___ZMo2u"});
;// CONCATENATED MODULE: ./src/layouts/virtualDetail/TopPlanBanner/index.tsx
@ -580,7 +890,7 @@ var Page = function Page(_ref) {
})]
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(TopBanner/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(virtualDetail_TopBanner, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "edu-container mb20",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(LeftMenus, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(Content, {
@ -605,6 +915,410 @@ var Page = function Page(_ref) {
/***/ }),
/***/ 57838:
/*!************************************************************!*\
!*** ./node_modules/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 */ 67294);
function useForceUpdate() {
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
return forceUpdate;
}
/***/ }),
/***/ 79531:
/*!*********************************************************!*\
!*** ./node_modules/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/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
var context = __webpack_require__(53124);
// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
var form_context = __webpack_require__(65223);
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js
var style = __webpack_require__(47673);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Group.js
const Group = props => {
const {
getPrefixCls,
direction
} = (0,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_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.useContext)(form_context/* FormItemInputContext */.aM);
const groupFormItemContext = (0,react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
isFormItemInput: false
}), [formItemContext]);
if (false) {}
return wrapSSR( /*#__PURE__*/react.createElement("span", {
className: cls,
style: props.style,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave,
onFocus: props.onFocus,
onBlur: props.onBlur
}, /*#__PURE__*/react.createElement(form_context/* FormItemInputContext.Provider */.aM.Provider, {
value: groupFormItemContext
}, props.children)));
};
/* harmony default export */ var input_Group = (Group);
// EXTERNAL MODULE: ./node_modules/antd/es/input/Input.js + 1 modules
var Input = __webpack_require__(82586);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeInvisibleOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
var EyeOutlined = __webpack_require__(99611);
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
var omit = __webpack_require__(10366);
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/ref.js
var es_ref = __webpack_require__(17799);
// EXTERNAL MODULE: ./node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js
var useRemovePasswordTimeout = __webpack_require__(72922);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Password.js
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.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(icons_EyeInvisibleOutlined, null);
const ActionMap = {
click: 'onClick',
hover: 'onMouseOver'
};
const Password = /*#__PURE__*/react.forwardRef((props, ref) => {
const {
visibilityToggle = true
} = props;
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
const [visible, setVisible] = (0,react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
const inputRef = (0,react.useRef)(null);
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.cloneElement( /*#__PURE__*/react.isValidElement(icon) ? icon : /*#__PURE__*/react.createElement("span", null, icon), iconProps);
};
const {
className,
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
size
} = props,
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
const {
getPrefixCls
} = react.useContext(context/* ConfigContext */.E_);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
const suffixIcon = visibilityToggle && getIcon(prefixCls);
const inputClassName = 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.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/es/icons/SearchOutlined.js + 1 modules
var SearchOutlined = __webpack_require__(68795);
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
var reactNode = __webpack_require__(96159);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/hooks/useSize.js
var useSize = __webpack_require__(98675);
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
var Compact = __webpack_require__(4173);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Search.js
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.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.useContext(context/* ConfigContext */.E_);
const composedRef = 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.useRef(null);
const onChange = e => {
if (e && e.target && e.type === 'click' && customOnSearch) {
customOnSearch(e.target.value, e);
}
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);
}
};
const onPressEnter = e => {
if (composedRef.current || loading) {
return;
}
onSearch(e);
};
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/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.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_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.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/es/input/TextArea.js
var TextArea = __webpack_require__(96330);
;// CONCATENATED MODULE: ./node_modules/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);
/***/ }),
/***/ 97183:
/*!**********************************************!*\
!*** ./node_modules/antd/es/layout/index.js ***!

@ -3174,7 +3174,7 @@ var Simple = function Simple(_ref) {
var countDown = function countDown() {
clearInterval(timeRef.current);
timeRef.current = setInterval(function () {
if (isFocus) _onBlur(value.current);
if (isFocus) _onBlur(value.current, true);
}, 10 * 1000);
};
var onBeforeunload = function onBeforeunload(e) {
@ -5577,13 +5577,13 @@ var Answer = function Answer(_ref) {
};
}();
var handleSave = /*#__PURE__*/function () {
var _ref14 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee17(questionId, exercise_choice_id, answer_text, callBack, kp_content, kp_clazz) {
var _ref14 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee17(questionId, exercise_choice_id, answer_text, callBack, kp_content, kp_clazz, hideLoading) {
var _res$alert;
var ip, saveParams, res, _res$alert2;
return regeneratorRuntime_default()().wrap(function _callee17$(_context17) {
while (1) switch (_context17.prev = _context17.next) {
case 0:
setIsSpin(true);
if (!hideLoading) setIsSpin(true);
saveParams = {
questionId: questionId,
exercise_choice_id: exercise_choice_id,
@ -5669,7 +5669,7 @@ var Answer = function Answer(_ref) {
}
}, _callee17);
}));
return function handleSave(_x7, _x8, _x9, _x10, _x11, _x12) {
return function handleSave(_x7, _x8, _x9, _x10, _x11, _x12, _x13) {
return _ref14.apply(this, arguments);
};
}();
@ -5817,7 +5817,7 @@ var Answer = function Answer(_ref) {
}
}, _callee20);
}));
return function handleVerifySave(_x13) {
return function handleVerifySave(_x14) {
return _ref15.apply(this, arguments);
};
}();
@ -5994,7 +5994,7 @@ var Answer = function Answer(_ref) {
}
}, _callee22);
}));
return function handleChangeSingle(_x14, _x15, _x16, _x17) {
return function handleChangeSingle(_x15, _x16, _x17, _x18) {
return _ref17.apply(this, arguments);
};
}();
@ -6023,7 +6023,7 @@ var Answer = function Answer(_ref) {
}
}, _callee23);
}));
return function handleChangeSingles(_x18, _x19, _x20, _x21, _x22) {
return function handleChangeSingles(_x19, _x20, _x21, _x22, _x23) {
return _ref18.apply(this, arguments);
};
}();
@ -6088,11 +6088,11 @@ var Answer = function Answer(_ref) {
}
}, _callee24);
}));
return function handleBlurFill(_x23, _x24, _x25, _x26, _x27) {
return function handleBlurFill(_x24, _x25, _x26, _x27, _x28) {
return _ref19.apply(this, arguments);
};
}();
var handleBlurSimple = function handleBlurSimple(value, id, item) {
var handleBlurSimple = function handleBlurSimple(value, id, item, hideLoading) {
if (!value.replaceAll(' ', '')) {
signConfigFuc();
return;
@ -6104,7 +6104,7 @@ var Answer = function Answer(_ref) {
item.user_answer = [];
item.user_answer.push(value);
setAnswerData(objectSpread2_default()({}, answerData));
});
}, undefined, undefined, hideLoading);
};
var renderSingle = function renderSingle(item, key) {
var _answerData$exercise9, _item$user_answer2, _item$user_answer3, _item$question_choice2, _answerData$exercise10, _answerData$exercise11;
@ -6471,7 +6471,7 @@ var Answer = function Answer(_ref) {
}
}, _callee25);
}));
return function (_x28, _x29, _x30) {
return function (_x29, _x30, _x31) {
return _ref20.apply(this, arguments);
};
}()
@ -6493,8 +6493,8 @@ var Answer = function Answer(_ref) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(components_Simple, {
item: item,
answerData: answerData,
onBlur: function onBlur(value) {
return handleBlurSimple(value, item === null || item === void 0 ? void 0 : item.question_id, item);
onBlur: function onBlur(value, hideLoading) {
return handleBlurSimple(value, item === null || item === void 0 ? void 0 : item.question_id, item, hideLoading);
},
isEducation: isEducation,
sign: sign

@ -1,9 +1,299 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[73220],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[73220,83570],{
/***/ 13321:
/***/ 63606:
/*!******************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/CheckOutlined.js + 1 modules ***!
\******************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_CheckOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.js
// This icon file is generated automatically.
var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" };
/* harmony default export */ var asn_CheckOutlined = (CheckOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/CheckOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var CheckOutlined_CheckOutlined = function CheckOutlined(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_CheckOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_CheckOutlined = (/*#__PURE__*/react.forwardRef(CheckOutlined_CheckOutlined));
/***/ }),
/***/ 99611:
/*!****************************************************************************!*\
!*** ./node_modules/@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/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
/***/ }),
/***/ 6171:
/*!*****************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js + 1 modules ***!
\*****************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_LeftOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js
// This icon file is generated automatically.
var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
/* harmony default export */ var asn_LeftOutlined = (LeftOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var LeftOutlined_LeftOutlined = function LeftOutlined(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_LeftOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_LeftOutlined = (/*#__PURE__*/react.forwardRef(LeftOutlined_LeftOutlined));
/***/ }),
/***/ 88484:
/*!*******************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/UploadOutlined.js + 1 modules ***!
\*******************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_UploadOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/UploadOutlined.js
// This icon file is generated automatically.
var UploadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, "name": "upload", "theme": "outlined" };
/* harmony default export */ var asn_UploadOutlined = (UploadOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/UploadOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var UploadOutlined_UploadOutlined = function UploadOutlined(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_UploadOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_UploadOutlined = (/*#__PURE__*/react.forwardRef(UploadOutlined_UploadOutlined));
/***/ }),
/***/ 93899:
/*!**********************************************************!*\
!*** ./src/components/CoverUpload/index.tsx + 1 modules ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ components_CoverUpload; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
var message = __webpack_require__(2453);
// EXTERNAL MODULE: ./node_modules/antd/es/upload/index.js + 24 modules
var upload = __webpack_require__(31365);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/UploadOutlined.js + 1 modules
var UploadOutlined = __webpack_require__(88484);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules
var CloseCircleFilled = __webpack_require__(4340);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(59758);
;// CONCATENATED MODULE: ./src/components/CoverUpload/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var CoverUploadmodules = ({"img":"img___BgL9D"});
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/components/CoverUpload/index.tsx
var CoverUpload = function CoverUpload(_ref) {
var value = _ref.value,
onChange = _ref.onChange,
getFileProgress = _ref.getFileProgress;
var _useState = (0,react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
imgLoading = _useState2[0],
setImgLoading = _useState2[1];
var uploadButton = /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
loading: imgLoading,
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(UploadOutlined/* default */.Z, {}),
children: "\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"
});
var renderImg = function renderImg() {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CoverUploadmodules.img,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: env/* default.API_SERVER */.Z.API_SERVER + "/api/attachments/" + value,
alt: "avatar",
style: {
width: 288
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleFilled/* default */.Z, {
onClick: function onClick() {
return onChange('');
},
style: {
fontSize: '16px',
color: 'red'
}
})
})]
});
};
var handleChange = function handleChange(info) {
if (getFileProgress) {
getFileProgress(info);
}
if (info.file.status === 'uploading') {
setImgLoading(true);
return;
}
if (info.file.status === 'done') {
var _info$file, _info$file$response, _info$file3, _info$file3$response;
setImgLoading(false);
if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 ? void 0 : (_info$file$response = _info$file.response) === null || _info$file$response === void 0 ? void 0 : _info$file$response.status) === -1) {
var _info$file2, _info$file2$response;
message/* default.error */.ZP.error((_info$file2 = info.file) === null || _info$file2 === void 0 ? void 0 : (_info$file2$response = _info$file2.response) === null || _info$file2$response === void 0 ? void 0 : _info$file2$response.message);
// onChange()
return;
}
onChange(info === null || info === void 0 ? void 0 : (_info$file3 = info.file) === null || _info$file3 === void 0 ? void 0 : (_info$file3$response = _info$file3.response) === null || _info$file3$response === void 0 ? void 0 : _info$file3$response.id);
}
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment, {
children: value ? renderImg() : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, {
withCredentials: true,
name: "file",
showUploadList: false,
action: "".concat(env/* default.API_SERVER */.Z.API_SERVER, "/api/attachments.json"),
onChange: handleChange,
accept: "image/*",
children: uploadButton
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt20 c-light-black",
children: "\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "c-light-black",
children: "\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"
})]
})
});
};
/* harmony default export */ var components_CoverUpload = (CoverUpload);
/***/ }),
/***/ 14851:
/*!***********************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Video/Upload/index.tsx + 1 modules ***!
!*** ./src/pages/Classrooms/Lists/Video/Upload/index.tsx + 3 modules ***!
\***********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -55,10 +345,10 @@ var input = __webpack_require__(79531);
var row = __webpack_require__(71230);
// EXTERNAL MODULE: ./node_modules/antd/es/checkbox/index.js + 3 modules
var es_checkbox = __webpack_require__(84567);
// EXTERNAL MODULE: ./src/assets/images/video/upload.png
var upload = __webpack_require__(59215);
// EXTERNAL MODULE: ./src/assets/images/video/upload_hover.png
var upload_hover = __webpack_require__(19213);
;// CONCATENATED MODULE: ./src/assets/images/video/upload.png
var upload_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwBAMAAABTZWEsAAAAIVBMVEVHcExMrf9Qr/9TuP9Mrf9Nrf9Mrf9MrP9Nrv9Orv9MrP98EuefAAAACnRSTlMA3CULV5jA84JH4j3LZgAAANVJREFUOMvl1a0OwjAUBeCb/QgcGckSphqeAASBoKaR4KpwJDwAYhaHQuGbLNtynpKWmTWs92rg2n45orc7I9qeEZzrjSgqwIxRtAI7M7rzoKMLjhScNRqqsAyDGC0BxIw9/UYQKQEUHQ9SoGSBBmoOpG4/JQO0A3UYpP2KyyDQaGG8CB/YgDnMfhjhAw2zgEmGER6wAVkEQzbiMQp29g07YCOmo2CDjBywEadRkOSqB5NcBa/6Dbhd/AmIq0Z41c/DL3y8n0AsMbEGxSIVq1gsc+l38AI000Nd23IRqQAAAABJRU5ErkJggg==";
;// CONCATENATED MODULE: ./src/assets/images/video/upload_hover.png
var upload_hover_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABgBAMAAAAnVGd6AAAAJFBMVEVHcExMrf9Orf9Nrf90uv9MrP////95wP/M5//z+v+x2/9cs//eVCejAAAABXRSTlMA10ycBa32wqwAAAFsSURBVFjD7dk/TsMwFMfxJ8QNIHsHOABDduAGJXoyUnZTsmcoByg3KANz/0i9AHA6YruBIjXPr/6hLrWlLlXy0dcZrPSViOj+puCENb64Ir/Okm73xMjdf15y8qpuO+COgXXZASUCVN0TYGiNsB24PVxjwAP2CNxDKDBgjAMMrgxkIANHAr5aDPiwtoWAubVPCPBobSxBBmYOeEsHfIB9bpMBHxBJoGhAJIHiAXICxQPkBFIEiAmkCBATSBMgJZAmQEogMWDiPnMxgcSAlQOmYgJJAY1xgBETSApYeIDFBJICOABiAkkBW0BM2A8sQ0APhIR3PVBvA3ogJDR6wPTX94BPmBwILHYAn3AA4A7jhncBM3g87wemIeAX+PlGCdTrFf8FeP2acqybwa1nIAMZODWgHjyMtW+qM/BNlT+HjkItUL9s8i+WDGTgSECB3f8Ps7QSAyp8IAmPROGhLDwWxgfT8GgcHs6Dfw98A1V0Ca+XaA0MAAAAAElFTkSuQmCC";
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Video/Upload/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Uploadmodules = ({"bg":"bg___A_od2","main":"main___f6Wx0","uploadTop":"uploadTop___Yx2Un","imgWrap":"imgWrap___S6ChW","defaultImg":"defaultImg___qUJQT","hoverImg":"hoverImg___pZT3G","uploadTitle":"uploadTitle___FLy1b","colorBlue":"colorBlue___HfgxM","uploadDescription":"uploadDescription___Cn5KA","description":"description___qbCxZ","colorOrange":"colorOrange___ZuvEg","fileMain":"fileMain___asNqA","fileWrap":"fileWrap___gPP0_","fileProgress":"fileProgress___xmdZ4","fileCancel":"fileCancel___ikgzZ","fileInputWrap":"fileInputWrap___mvunl","fileImgWrap":"fileImgWrap___zdrgz","fileInput":"fileInput___Tw2dZ","flexRowCenter":"flexRowCenter___pGglA","continueAdd":"continueAdd___SV9wg"});
@ -397,10 +687,10 @@ var Upload = function Upload(_ref) {
className: Uploadmodules.imgWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: Uploadmodules.defaultImg,
src: upload
src: upload_namespaceObject
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: Uploadmodules.hoverImg,
src: upload_hover
src: upload_hover_namespaceObject
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Uploadmodules.uploadTitle,
@ -605,6 +895,171 @@ var Upload = function Upload(_ref) {
/***/ }),
/***/ 77320:
/*!***********************************!*\
!*** ./src/utils/aliyunUpload.ts ***!
\***********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "o": function() { return /* binding */ getUploader; }
/* harmony export */ });
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/utils/fetch */ 84519);
/* harmony import */ var aliyun_vod_upload_ll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! aliyun-vod-upload-ll */ 69548);
/* harmony import */ var aliyun_vod_upload_ll__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(aliyun_vod_upload_ll__WEBPACK_IMPORTED_MODULE_1__);
var login = '';
var uploader;
var virtual_classroom_id = '';
function createUploader(options) {
doCreateUploader(options);
}
function doCreateUploader(options) {
uploader = new (aliyun_vod_upload_ll__WEBPACK_IMPORTED_MODULE_1___default().Vod)({
timeout: 60000,
partSize: 1048576,
parallel: 5,
retryCount: 3,
retryDuration: 2,
region: 'ap-southeast-1',
userId: 1829848226361863,
enableUploadProgress: false,
addFileSuccess: function addFileSuccess(uploadInfo) {
console.log("addFileSuccess: " + uploadInfo.file.name);
options.addFileSuccess && options.addFileSuccess(uploadInfo);
uploader.startUpload();
},
// 开始上传
onUploadstarted: function onUploadstarted(uploadInfo) {
var fileName = uploadInfo.file.name;
if (!uploadInfo.videoId) {
var createUrl = "/api/users/".concat(login, "/video_auths.json");
var _random = ''; // Math.random().toString().substring(3, 6)+'-'
(0,_utils_fetch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)(createUrl, {
method: 'Post',
body: {
title: _random + fileName,
file_name: _random + fileName,
virtual_classroom_id: virtual_classroom_id
}
}).then(function (response) {
if (response) {
var data = response.data;
var uploadAuth = data.UploadAuth;
var uploadAddress = data.UploadAddress;
var videoId = data.VideoId;
uploader.setUploadAuthAndAddress(uploadInfo, uploadAuth, uploadAddress, videoId);
}
})["catch"](function (error) {
uploader.deleteFile(uploader._curIndex);
uploader.nextUpload();
console.log(error);
});
console.log('文件开始上传...');
} else {
// 如果videoId有值根据videoId刷新上传凭证
var refreshUrl = "/api/users/".concat(login, "/video_auths.json");
(0,_utils_fetch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)(refreshUrl, {
method: 'put',
body: {
video_id: uploadInfo.videoId,
title: fileName,
file_name: fileName,
virtual_classroom_id: virtual_classroom_id
}
}).then(function (response) {
if (response.status == -1) {
options.onUploadError && options.onUploadError(uploadInfo);
return;
}
var data = response.data;
var uploadAuth = data.UploadAuth;
var uploadAddress = data.UploadAddress;
var videoId = data.VideoId;
uploader.setUploadAuthAndAddress(uploadInfo, uploadAuth, uploadAddress);
})["catch"](function (error) {
uploader.deleteFile(uploader._curIndex);
uploader.nextUpload();
console.log(error);
});
}
},
// 文件上传成功
onUploadSucceed: function onUploadSucceed(uploadInfo) {
options.onUploadSucceed && options.onUploadSucceed(uploadInfo);
console.log('文件上传成功!');
},
// 文件上传失败
onUploadFailed: function onUploadFailed(uploadInfo, code, message) {
options.onUploadFailed && options.onUploadFailed(uploadInfo);
console.log('文件上传失败!');
},
// 取消文件上传
onUploadCanceled: function onUploadCanceled(uploadInfo, code, message) {
console.log('文件上传已暂停!');
},
// 文件上传进度,单位:字节, 可以在这个函数中拿到上传进度并显示在页面上
onUploadProgress: function onUploadProgress(uploadInfo, totalSize, progress) {
options.onUploadProgress && options.onUploadProgress(uploadInfo, totalSize, progress);
var progressPercent = Math.ceil(progress * 100);
console.log('文件上传中...');
},
// 上传凭证超时
onUploadTokenExpired: function onUploadTokenExpired(uploadInfo) {
console.log('文件上传超时!');
var refreshUrl = "/api/users/".concat(login, "/video_auths.json");
(0,_utils_fetch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)(refreshUrl, {
method: 'put',
body: {
video_id: uploadInfo.videoId
}
}).then(function (response) {
var data = response.data;
var uploadAuth = data.UploadAuth;
uploader.resumeUploadWithAuth(uploadAuth);
})["catch"](function (error) {
console.log(error);
});
},
// 全部文件上传结束
onUploadEnd: function onUploadEnd(uploadInfo) {
options.onUploadEnd && options.onUploadEnd(uploadInfo);
console.log("onUploadEnd: uploaded all the files");
}
});
if (options.gotUploader) {
options.gotUploader(uploader);
}
}
function getUploader(_login, _virtual_classroom_id, options) {
_login && (login = _login);
_virtual_classroom_id && (virtual_classroom_id = _virtual_classroom_id);
// if (!uploader || options.create == true) {
createUploader(options);
// }
}
/***/ }),
/***/ 57838:
/*!************************************************************!*\
!*** ./node_modules/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 */ 67294);
function useForceUpdate() {
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
return forceUpdate;
}
/***/ }),
/***/ 84567:
/*!************************************************************!*\
!*** ./node_modules/antd/es/checkbox/index.js + 3 modules ***!
@ -1149,6 +1604,419 @@ function getStyle(prefixCls, token) {
/***/ }),
/***/ 79531:
/*!*********************************************************!*\
!*** ./node_modules/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/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
var context = __webpack_require__(53124);
// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
var form_context = __webpack_require__(65223);
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js
var style = __webpack_require__(47673);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Group.js
const Group = props => {
const {
getPrefixCls,
direction
} = (0,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_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.useContext)(form_context/* FormItemInputContext */.aM);
const groupFormItemContext = (0,react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
isFormItemInput: false
}), [formItemContext]);
if (false) {}
return wrapSSR( /*#__PURE__*/react.createElement("span", {
className: cls,
style: props.style,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave,
onFocus: props.onFocus,
onBlur: props.onBlur
}, /*#__PURE__*/react.createElement(form_context/* FormItemInputContext.Provider */.aM.Provider, {
value: groupFormItemContext
}, props.children)));
};
/* harmony default export */ var input_Group = (Group);
// EXTERNAL MODULE: ./node_modules/antd/es/input/Input.js + 1 modules
var Input = __webpack_require__(82586);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeInvisibleOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
var EyeOutlined = __webpack_require__(99611);
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
var omit = __webpack_require__(10366);
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/ref.js
var es_ref = __webpack_require__(17799);
// EXTERNAL MODULE: ./node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js
var useRemovePasswordTimeout = __webpack_require__(72922);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Password.js
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.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(icons_EyeInvisibleOutlined, null);
const ActionMap = {
click: 'onClick',
hover: 'onMouseOver'
};
const Password = /*#__PURE__*/react.forwardRef((props, ref) => {
const {
visibilityToggle = true
} = props;
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
const [visible, setVisible] = (0,react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
const inputRef = (0,react.useRef)(null);
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.cloneElement( /*#__PURE__*/react.isValidElement(icon) ? icon : /*#__PURE__*/react.createElement("span", null, icon), iconProps);
};
const {
className,
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
size
} = props,
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
const {
getPrefixCls
} = react.useContext(context/* ConfigContext */.E_);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
const suffixIcon = visibilityToggle && getIcon(prefixCls);
const inputClassName = 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.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/es/icons/SearchOutlined.js + 1 modules
var SearchOutlined = __webpack_require__(68795);
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
var reactNode = __webpack_require__(96159);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/hooks/useSize.js
var useSize = __webpack_require__(98675);
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
var Compact = __webpack_require__(4173);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Search.js
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.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.useContext(context/* ConfigContext */.E_);
const composedRef = 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.useRef(null);
const onChange = e => {
if (e && e.target && e.type === 'click' && customOnSearch) {
customOnSearch(e.target.value, e);
}
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);
}
};
const onPressEnter = e => {
if (composedRef.current || loading) {
return;
}
onSearch(e);
};
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/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.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_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.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/es/input/TextArea.js
var TextArea = __webpack_require__(96330);
;// CONCATENATED MODULE: ./node_modules/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);
/***/ }),
/***/ 33507:
/*!*******************************************************!*\
!*** ./node_modules/antd/es/style/motion/collapse.js ***!
\*******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__) {
const genCollapseMotion = token => ({
[token.componentCls]: {
// For common/openAnimation
[`${token.antCls}-motion-collapse-legacy`]: {
overflow: 'hidden',
'&-active': {
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
}
},
[`${token.antCls}-motion-collapse`]: {
overflow: 'hidden',
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
}
}
});
/* harmony default export */ __webpack_exports__["Z"] = (genCollapseMotion);
/***/ }),
/***/ 95860:
/*!**********************************************************!*\
!*** ./node_modules/rc-checkbox/es/index.js + 5 modules ***!

File diff suppressed because one or more lines are too long

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[56277,4977,72377,66390,36723],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[56277,4977,72377,66390],{
/***/ 96403:
/*!*********************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[97008,72377,66390,36723],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[97008,72377,66390],{
/***/ 96403:
/*!*********************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[63157,66390,36723],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[63157,66390],{
/***/ 96403:
/*!*********************************!*\

File diff suppressed because one or more lines are too long

@ -1,924 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34608],{
/***/ 11475:
/*!******************************************************************************************!*\
!*** ./node_modules/@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/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_ExclamationCircleOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_ExclamationCircleOutlined = (/*#__PURE__*/react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined));
/***/ }),
/***/ 99611:
/*!****************************************************************************!*\
!*** ./node_modules/@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/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
/***/ }),
/***/ 6171:
/*!*****************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js + 1 modules ***!
\*****************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_LeftOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js
// This icon file is generated automatically.
var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
/* harmony default export */ var asn_LeftOutlined = (LeftOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var LeftOutlined_LeftOutlined = function LeftOutlined(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_LeftOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_LeftOutlined = (/*#__PURE__*/react.forwardRef(LeftOutlined_LeftOutlined));
/***/ }),
/***/ 18073:
/*!******************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/RightOutlined.js + 1 modules ***!
\******************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_RightOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_RightOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_RightOutlined = (/*#__PURE__*/react.forwardRef(RightOutlined_RightOutlined));
/***/ }),
/***/ 23468:
/*!*************************************************************!*\
!*** ./src/pages/virtualSpaces/Index/index.tsx + 3 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 */ Index; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(42122);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(17061);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(17156);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(70215);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
var _umi_production_exports = __webpack_require__(89214);
// EXTERNAL MODULE: ./node_modules/antd/es/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(21687);
// EXTERNAL MODULE: ./node_modules/antd/es/pagination/index.js + 11 modules
var pagination = __webpack_require__(83338);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(84519);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Index/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Indexmodules = ({"flex_box_center":"flex_box_center___bSzqF","flex_space_between":"flex_space_between___rzT0J","flex_box_vertical_center":"flex_box_vertical_center___I2nyJ","flex_box_center_end":"flex_box_center_end___e1eVm","flex_box_column":"flex_box_column___lTfWx","wrap":"wrap___l0fVF","bg":"bg___Se80U","btnWrap":"btnWrap___y5Sbn","text":"text___GZ8wW","btn":"btn___Zofjz","content":"content___Z6jqX","title":"title___TvrEr"});
// EXTERNAL MODULE: ./src/pages/virtualSpaces/components/AddOrEdit/index.tsx + 1 modules
var AddOrEdit = __webpack_require__(97642);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/components/List/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Listmodules = ({"flex_box_center":"flex_box_center___pNV6d","flex_space_between":"flex_space_between___nyQ9q","flex_box_vertical_center":"flex_box_vertical_center___ZFMvU","flex_box_center_end":"flex_box_center_end___JY_Pv","flex_box_column":"flex_box_column___BabD3","listWarp":"listWarp___rGiI0","li":"li___TsbaU","img":"img___BDclC","name":"name___Wtbc9","e":"e___vFTKL"});
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(83062);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(59758);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/components/List/index.tsx
var List = function List(_ref) {
var data = _ref.data,
_ref$marginLeft = _ref.marginLeft,
marginLeft = _ref$marginLeft === void 0 ? 29 : _ref$marginLeft,
_ref$listWarpStyle = _ref.listWarpStyle,
listWarpStyle = _ref$listWarpStyle === void 0 ? {} : _ref$listWarpStyle,
_ref$width = _ref.width,
width = _ref$width === void 0 ? 278 : _ref$width,
_ref$height = _ref.height,
height = _ref$height === void 0 ? 275 : _ref$height;
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
className: Listmodules.listWarp,
style: listWarpStyle,
children: data.map(function (item, index) {
var name = item.name,
id = item.id,
backbground_image_url = item.backbground_image_url,
cover_url = item.cover_url,
category_url = item.category_url;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
target: "_blank",
href: category_url,
className: Listmodules.li,
style: {
marginLeft: marginLeft,
width: width,
height: height
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Listmodules.img,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: env/* default.IMG_SERVER */.Z.IMG_SERVER + cover_url,
alt: "\u5C01\u9762\u56FE"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Listmodules.name,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: name,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Listmodules.e,
children: name
})
})
})]
}, index);
})
});
};
/* harmony default export */ var components_List = (List);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(7);
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
var verifyLogin = __webpack_require__(7303);
// EXTERNAL MODULE: ./src/assets/images/noEnvData.png
var noEnvData = __webpack_require__(36723);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Index/index.tsx
var _excluded = ["globalSetting", "user", "dispatch"];
var QuestionPage = function QuestionPage(_ref) {
var _user$userInfo;
var globalSetting = _ref.globalSetting,
user = _ref.user,
dispatch = _ref.dispatch,
props = objectWithoutProperties_default()(_ref, _excluded);
var location = (0,_umi_production_exports.useLocation)();
var _useState = (0,react.useState)({
page: 1,
limit: 16
}),
_useState2 = slicedToArray_default()(_useState, 2),
params = _useState2[0],
setParams = _useState2[1];
var _useState3 = (0,react.useState)([]),
_useState4 = slicedToArray_default()(_useState3, 2),
list = _useState4[0],
setList = _useState4[1];
var _useState5 = (0,react.useState)(0),
_useState6 = slicedToArray_default()(_useState5, 2),
total = _useState6[0],
setTotal = _useState6[1];
var _useState7 = (0,react.useState)(true),
_useState8 = slicedToArray_default()(_useState7, 2),
loading = _useState8[0],
setLoading = _useState8[1];
var _useState9 = (0,react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
visible = _useState10[0],
setVisible = _useState10[1];
(0,react.useEffect)(function () {
getData(params);
}, []);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(record) {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setLoading(true);
_context.next = 3;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms.json", {
method: 'get',
params: record
});
case 3:
res = _context.sent;
setLoading(false);
setTotal(res === null || res === void 0 ? void 0 : res.total_count);
setList(res === null || res === void 0 ? void 0 : res.virtual_classrooms);
case 7:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData(_x) {
return _ref2.apply(this, arguments);
};
}();
var handleChangePage = function handleChangePage(page, limit) {
params.page = page;
params.limit = limit;
setParams(objectSpread2_default()({}, params));
getData(params);
};
var handleOk = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(values, cb) {
var res;
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/virtual_classrooms.json", {
method: 'post',
body: values
});
case 2:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
getData({
page: 1,
limit: 16
});
setVisible(false);
setTimeout(function () {
(0,util/* openNewWindow */.xg)(res === null || res === void 0 ? void 0 : res.category_url);
}, 300);
dispatch({
type: 'shixunHomeworks/setActionTabs',
payload: {
key: '提示',
type: 99
}
});
}
cb(res);
case 5:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function handleOk(_x2, _x3) {
return _ref3.apply(this, arguments);
};
}();
var add = function add() {
if ((0,authority/* isSuperAdmins */.Ny)() || (0,verifyLogin/* handleProfessionalCertificationModal */.O5)()) {
setVisible(true);
}
};
var renderEmpty = function renderEmpty() {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
flexDirection: 'column',
margin: '100px 0 20px 0'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: noEnvData,
width: 204,
alt: ""
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#6A6A6A'
},
children: ["\u5F53\u524D\u6682\u65E0", params.is_public === '1' ? '未公开' : params.is_public === '2' ? '已公开' : '', "\u9879\u76EE\u2026\u2026"]
})]
});
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: Indexmodules.wrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Indexmodules.bg,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Indexmodules.btnWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Indexmodules.text,
children: "\u9762\u5411\u865A\u62DF\u6559\u7814\u5BA4\u8BD5\u70B9\u3001\u65B0\u5F62\u6001\u6559\u6750\u5EFA\u8BBE\u3001\u5B9E\u8DF5\u6848\u4F8B\u7814\u53D1\u7684\u521B\u65B0\u4E0E\u670D\u52A1\u73AF\u5883"
}), (0,authority/* isLogin */.bg)() && (((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.identity) === 'teacher' || (0,authority/* isSuperAdmins */.Ny)()) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: add,
className: Indexmodules.btn,
children: "\u65B0\u5EFA\u865A\u62DF\u793E\u533A"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Indexmodules.content,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Indexmodules.title,
children: "\u6559\u7814\u5BA4\u5C55\u793A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(skeleton/* default */.Z, {
loading: loading,
active: true,
paragraph: {
rows: 5
},
children: !!list.length ? /*#__PURE__*/(0,jsx_runtime.jsx)(components_List, {
data: list || []
}) : renderEmpty()
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
showTotal: function showTotal(total) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr10",
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-orange",
children: total
}), "\u6761\u6570\u636E"]
});
},
showSizeChanger: false,
showQuickJumper: true,
hideOnSinglePage: true,
onChange: handleChangePage,
pageSize: params === null || params === void 0 ? void 0 : params.limit,
current: params.page,
total: total,
className: "tc pb30"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AddOrEdit/* default */.Z, {
visible: visible,
title: '新建虚拟社区',
onCancel: function onCancel() {
return setVisible(false);
},
onOk: handleOk
})]
});
};
/* harmony default export */ var Index = ((0,_umi_production_exports.connect)(function (_ref4) {
var user = _ref4.user,
globalSetting = _ref4.globalSetting;
return {
user: user,
globalSetting: globalSetting
};
})(QuestionPage));
/***/ }),
/***/ 79531:
/*!*********************************************************!*\
!*** ./node_modules/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/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
var context = __webpack_require__(53124);
// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
var form_context = __webpack_require__(65223);
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js
var style = __webpack_require__(47673);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Group.js
const Group = props => {
const {
getPrefixCls,
direction
} = (0,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_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.useContext)(form_context/* FormItemInputContext */.aM);
const groupFormItemContext = (0,react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
isFormItemInput: false
}), [formItemContext]);
if (false) {}
return wrapSSR( /*#__PURE__*/react.createElement("span", {
className: cls,
style: props.style,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave,
onFocus: props.onFocus,
onBlur: props.onBlur
}, /*#__PURE__*/react.createElement(form_context/* FormItemInputContext.Provider */.aM.Provider, {
value: groupFormItemContext
}, props.children)));
};
/* harmony default export */ var input_Group = (Group);
// EXTERNAL MODULE: ./node_modules/antd/es/input/Input.js + 1 modules
var Input = __webpack_require__(82586);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeInvisibleOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
var EyeOutlined = __webpack_require__(99611);
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
var omit = __webpack_require__(10366);
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/ref.js
var es_ref = __webpack_require__(17799);
// EXTERNAL MODULE: ./node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js
var useRemovePasswordTimeout = __webpack_require__(72922);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Password.js
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.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(icons_EyeInvisibleOutlined, null);
const ActionMap = {
click: 'onClick',
hover: 'onMouseOver'
};
const Password = /*#__PURE__*/react.forwardRef((props, ref) => {
const {
visibilityToggle = true
} = props;
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
const [visible, setVisible] = (0,react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
const inputRef = (0,react.useRef)(null);
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.cloneElement( /*#__PURE__*/react.isValidElement(icon) ? icon : /*#__PURE__*/react.createElement("span", null, icon), iconProps);
};
const {
className,
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
size
} = props,
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
const {
getPrefixCls
} = react.useContext(context/* ConfigContext */.E_);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
const suffixIcon = visibilityToggle && getIcon(prefixCls);
const inputClassName = 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.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/es/icons/SearchOutlined.js + 1 modules
var SearchOutlined = __webpack_require__(68795);
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
var reactNode = __webpack_require__(96159);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/hooks/useSize.js
var useSize = __webpack_require__(98675);
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
var Compact = __webpack_require__(4173);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Search.js
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.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.useContext(context/* ConfigContext */.E_);
const composedRef = 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.useRef(null);
const onChange = e => {
if (e && e.target && e.type === 'click' && customOnSearch) {
customOnSearch(e.target.value, e);
}
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);
}
};
const onPressEnter = e => {
if (composedRef.current || loading) {
return;
}
onSearch(e);
};
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/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.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_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.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/es/input/TextArea.js
var TextArea = __webpack_require__(96330);
;// CONCATENATED MODULE: ./node_modules/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);
/***/ }),
/***/ 33507:
/*!*******************************************************!*\
!*** ./node_modules/antd/es/style/motion/collapse.js ***!
\*******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__) {
const genCollapseMotion = token => ({
[token.componentCls]: {
// For common/openAnimation
[`${token.antCls}-motion-collapse-legacy`]: {
overflow: 'hidden',
'&-active': {
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
}
},
[`${token.antCls}-motion-collapse`]: {
overflow: 'hidden',
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
}
}
});
/* harmony default export */ __webpack_exports__["Z"] = (genCollapseMotion);
/***/ })
}]);

@ -1,317 +0,0 @@
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Index/index.less?modules ***!
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___bSzqF {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___rzT0J {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___I2nyJ {
align-items: center;
box-align: center;
}
.flex_box_center_end___e1eVm {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___lTfWx {
flex-direction: column;
box-orient: block-axis;
}
.wrap___l0fVF .bg___Se80U {
width: 100%;
height: 300px;
background: url('https://ali-cdn.educoder.net/api/attachments/3024027') no-repeat center center;
background-size: cover;
}
.wrap___l0fVF .bg___Se80U .btnWrap___y5Sbn {
height: 100%;
width: 1200px;
margin: 0 auto;
padding-top: 70px;
}
.wrap___l0fVF .bg___Se80U .text___GZ8wW {
width: 1200px;
height: 100px;
text-align: center;
line-height: 100px;
background: linear-gradient(270deg, rgba(28, 60, 160, 0) 0%, #1c3ca0 51%, rgba(28, 60, 160, 0) 100%);
font-size: 26px;
font-weight: bold;
color: #ffffff;
letter-spacing: 6px;
text-shadow: 0px 2px 4px rgba(2, 4, 68, 0.5);
}
.wrap___l0fVF .bg___Se80U .btn___Zofjz {
cursor: pointer;
width: 140px;
height: 44px;
text-align: center;
line-height: 44px;
background: linear-gradient(135deg, #00a8ff 0%, #014ba9 100%);
border-radius: 2px;
font-size: 16px;
font-weight: 500;
color: #ffffff;
margin: 38px auto 0 auto;
}
.wrap___l0fVF .content___Z6jqX {
margin: 0 auto;
width: 1200px;
display: flex;
flex-direction: column;
}
.wrap___l0fVF .content___Z6jqX .title___TvrEr {
font-size: 18px;
font-weight: 600;
color: #111319;
margin-top: 50px;
padding-bottom: 38px;
text-align: center;
position: relative;
}
.wrap___l0fVF .content___Z6jqX .title___TvrEr::after {
content: '';
width: 60px;
height: 2px;
background-color: #727b95;
position: absolute;
bottom: 22px;
left: 50%;
transform: translateX(-50%);
}
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/components/AddOrEdit/index.less?modules ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___ze4wf {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___JpH0B {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___NbRyF {
align-items: center;
box-align: center;
}
.flex_box_center_end___fUFoB {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___i2BZL {
flex-direction: column;
box-orient: block-axis;
}
.form____yVeV > aside {
font-size: 12px;
color: #5f6367;
margin-top: 20px;
}
.form____yVeV input {
border-radius: 2px;
border: 1px solid #e1e1e1;
margin-left: 4px;
}
.form____yVeV label {
height: 32px;
color: #000000 !important;
line-height: 32px !important;
}
.form____yVeV label::before {
margin-top: 2px;
}
.form____yVeV .btn___X16NC {
padding: 0 16px;
background: #f6f7f9 linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
box-shadow: 0px 2px 4px 0px #e0dfe1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 2px;
border: 1px solid #bacffe;
height: 32px;
line-height: 30px;
color: #165dff;
cursor: pointer;
}
.form____yVeV .btn___X16NC i {
margin-right: 3px;
font-size: 14px;
}
.form____yVeV .img___sQnKq {
position: relative;
width: 200px;
height: auto;
background-color: #f4f3f4;
display: flex;
align-items: center;
justify-content: center;
}
.form____yVeV .img___sQnKq > div {
position: absolute;
right: -6px;
top: -6px;
cursor: pointer;
background-color: #fff;
width: 16px;
height: 16px;
border-radius: 50%;
}
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/ui-customization/reset.less?modules ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___vG4eV {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___qVVxe {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___P8Z8s {
align-items: center;
box-align: center;
}
.flex_box_center_end___VMme3 {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___VMHwm {
flex-direction: column;
box-orient: block-axis;
}
.dropdownmenus___oVzoj {
width: 104px;
}
.dropdownmenus___oVzoj [class~='ant-dropdown-menu-item'] {
text-align: center;
}
.dropdownmenus___oVzoj [class~='ant-dropdown-menu-item']:hover {
color: #165dff !important;
background: #fff;
}
.dropdownmenus___oVzoj [class~='ant-dropdown-menu'] {
padding: 10px 0 !important;
}
.popupClassNames___OcZq7 {
background: yellow;
}
.selectdown___mmcA8 [class~='ant-select-item-option-selected'] {
font-weight: 400 !important;
background-color: #edf2ff !important;
}
.selectdown___mmcA8 [class~='ant-select-item-option-active'] {
color: #165dff !important;
background-color: #fff !important;
}
.selectdown___mmcA8 [class~='ant-select-item-option'] {
padding: 10px 24px;
}
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/components/List/index.less?modules ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___pNV6d {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___nyQ9q {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___ZFMvU {
align-items: center;
box-align: center;
}
.flex_box_center_end___JY_Pv {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___BabD3 {
flex-direction: column;
box-orient: block-axis;
}
.listWarp___rGiI0 {
display: flex;
justify-content: flex-start;
align-items: center;
flex-wrap: wrap;
padding: 0;
}
.listWarp___rGiI0 .li___TsbaU {
width: 278px;
height: 275px;
background: #ffffff;
box-shadow: 0px 4px 12px 0px rgba(204, 218, 238, 0.5), 0px 2px 8px 0px #dfe0e2;
border-radius: 4px;
margin-bottom: 30px;
}
.listWarp___rGiI0 .li___TsbaU:hover img {
transform: scale(1.1);
}
.listWarp___rGiI0 .li___TsbaU .img___BDclC {
overflow: hidden;
height: calc(100% - 50px);
border-radius: 4px 4px 0 0;
}
.listWarp___rGiI0 .li___TsbaU .img___BDclC img {
width: 100%;
transition: all 0.5s;
}
.listWarp___rGiI0 .li___TsbaU .name___Wtbc9 {
height: 50px;
font-size: 16px;
font-weight: 600;
color: #404250;
padding: 0 10px;
width: 100%;
display: flex;
align-items: center;
}
.listWarp___rGiI0 .li___TsbaU .name___Wtbc9 .e___vFTKL {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 100%;
}
.listWarp___rGiI0 .li___TsbaU:nth-child(4n + 1),
.listWarp___rGiI0 .li___TsbaU:first-child {
margin-left: 0 !important;
}

@ -1,803 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[35588],{
/***/ 82982:
/*!*****************************************!*\
!*** ./src/components/NoData/index.tsx ***!
\*****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 4977);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 71577);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
var noData = function noData(_ref) {
var img = _ref.img,
_ref$buttonProps = _ref.buttonProps,
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
_ref$styles = _ref.styles,
styles = _ref$styles === void 0 ? {} : _ref$styles,
customText = _ref.customText,
ButtonText = _ref.ButtonText,
ButtonClick = _ref.ButtonClick,
Buttonclass = _ref.Buttonclass,
ButtonTwo = _ref.ButtonTwo,
imgStyles = _ref.imgStyles,
_ref$loading = _ref.loading,
loading = _ref$loading === void 0 ? false : _ref$loading;
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", {
className: "tc animated fadeIn",
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, {
color: '#999',
margin: '100px auto',
visibility: loading ? 'hidden' : 'visible'
}), styles),
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", {
src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__,
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles)
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", {
className: "mt20 font14",
children: customText || '暂时还没有相关数据哦!'
}), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
className: Buttonclass,
onClick: ButtonClick
}, buttonProps), {}, {
children: ButtonText
})), ButtonTwo && ButtonTwo]
});
};
/* harmony default export */ __webpack_exports__["Z"] = (noData);
/***/ }),
/***/ 78342:
/*!********************************************************************!*\
!*** ./src/pages/virtualSpaces/Lists/Course/index.tsx + 3 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 */ Course; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(17061);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(17156);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(70215);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
var _umi_production_exports = __webpack_require__(89214);
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
var input = __webpack_require__(79531);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
var row = __webpack_require__(71230);
// EXTERNAL MODULE: ./node_modules/antd/es/col/index.js
var col = __webpack_require__(15746);
// EXTERNAL MODULE: ./node_modules/antd/es/card/index.js + 4 modules
var card = __webpack_require__(4393);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(83062);
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
var modal = __webpack_require__(72423);
// EXTERNAL MODULE: ./node_modules/antd/es/pagination/index.js + 11 modules
var pagination = __webpack_require__(83338);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(82982);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(7);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Course/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Coursemodules = ({"flex_box_center":"flex_box_center___bj1UV","flex_space_between":"flex_space_between___cAW2l","flex_box_vertical_center":"flex_box_vertical_center___RHsjV","flex_box_center_end":"flex_box_center_end___nycHN","flex_box_column":"flex_box_column___l1rrz","warp":"warp___XqOLW","title":"title___tJlFM","Inputstyle":"Inputstyle___f_0iy","buttonstyle":"buttonstyle___GZVUo","Content":"Content___mBwQr","imgstyle":"imgstyle___aOVBR","cardstyle":"cardstyle___rZCyZ","paddingcard":"paddingcard___fJhto","titlefont":"titlefont___X17l5","flexEnd":"flexEnd___u0kdb"});
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(84519);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(42122);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/antd/es/form/index.js + 17 modules
var es_form = __webpack_require__(25159);
// EXTERNAL MODULE: ./node_modules/antd/es/drawer/index.js + 16 modules
var drawer = __webpack_require__(35479);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
var message = __webpack_require__(2453);
// EXTERNAL MODULE: ./node_modules/antd/es/spin/index.js + 1 modules
var spin = __webpack_require__(57953);
// EXTERNAL MODULE: ./node_modules/antd/es/checkbox/index.js + 3 modules
var es_checkbox = __webpack_require__(84567);
// EXTERNAL MODULE: ./node_modules/antd/es/divider/index.js + 1 modules
var divider = __webpack_require__(96074);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Course/components/SelectShixun.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var SelectShixunmodules = ({"flex_box_center":"flex_box_center___zvp4n","flex_space_between":"flex_space_between___p_qUf","flex_box_vertical_center":"flex_box_vertical_center___QC6IC","flex_box_center_end":"flex_box_center_end___OyxlJ","flex_box_column":"flex_box_column___JZnhw","wrp":"wrp___xnyPm","drawer":"drawer____RLhT","menu":"menu___LZknv","actived":"actived___Vjyks","actived2":"actived2___quoPx","subTag":"subTag___GkUHy","listItem":"listItem___eqhTZ","listItem2":"listItem2___inSlY","info":"info___DEbg1","title":"title___Lb3kv","titleLeft":"titleLeft___pAteJ","titleRight":"titleRight___Os9e6","search":"search___Ha0ig","filter":"filter___YkZQb","description":"description___ZLiRJ","menuCourse":"menuCourse___XopyK"});
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
var verifyLogin = __webpack_require__(7303);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Course/components/SelectCourses.tsx
var Search = input/* default.Search */.Z.Search;
var PublishShixun = function PublishShixun(_ref) {
var _coursesLists$subject, _coursesLists$subject2;
var classroomList = _ref.classroomList,
loading = _ref.loading,
virtualSpaces = _ref.virtualSpaces,
dispatch = _ref.dispatch;
var _useState = (0,react.useState)(objectSpread2_default()({}, (0,_umi_production_exports.useParams)())),
_useState2 = slicedToArray_default()(_useState, 2),
params = _useState2[0],
setParams = _useState2[1];
var location = (0,_umi_production_exports.useLocation)();
var actionTabs = classroomList.actionTabs;
var _Form$useForm = es_form/* default.useForm */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
var coursesLists = classroomList.coursesLists;
var _useState3 = (0,react.useState)([]),
_useState4 = slicedToArray_default()(_useState3, 2),
selectArrs = _useState4[0],
setSelectArrs = _useState4[1];
var _useState5 = (0,react.useState)({
page: 1,
type: "all",
order: "desc",
limit: 20,
sort: "myshixuns_count"
}),
_useState6 = slicedToArray_default()(_useState5, 2),
query = _useState6[0],
setQuery = _useState6[1];
(0,react.useEffect)(function () {
if (classroomList.actionTabs.key === '选用实践课程') {
dispatch({
type: 'classroomList/getCoursesLists',
payload: objectSpread2_default()({}, query)
});
setSelectArrs([]);
}
}, [classroomList.actionTabs.key, params.categoryId, query]);
if (classroomList.actionTabs.key !== '选用实践课程') return null;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(drawer/* default */.Z
// title="选用实践课程"
, {
placement: "bottom",
height: "100%",
style: {
zIndex: 1000
},
closable: true,
onClose: function onClose() {
dispatch({
type: 'classroomList/setActionTabs',
payload: {
key: ''
}
});
}
// onClose={this.onClose}
,
open: classroomList.actionTabs.key === '选用实践课程' ? true : false,
rootClassName: SelectShixunmodules.drawer,
footer: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "tc",
style: {
height: '64px',
display: 'flex',
alignItems: 'center',
justifyContent: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
size: 'middle',
onClick: function onClick() {
dispatch({
type: 'classroomList/setActionTabs',
payload: {
key: ''
}
});
},
style: {
marginRight: 8,
width: '120px',
height: '40px',
fontSize: '16px',
borderRadius: '4px'
},
children: "\u53D6\u6D88"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
style: {
width: '120px',
height: '40px',
fontSize: '16px',
borderRadius: '4px'
},
size: 'middle',
loading: loading['classroomList/createCoursesHomework'],
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!(selectArrs == '')) {
_context.next = 3;
break;
}
message/* default.error */.ZP.error('请选择一个实践课程');
return _context.abrupt("return", false);
case 3:
console.log('-----', classroomList.actionTabs.params);
_context.next = 6;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(params.virtual_spacesId, "/subjects.json"), {
method: 'post',
body: {
subject_ids: selectArrs,
module_id: virtualSpaces.actionTabs.module_id
}
});
case 6:
res = _context.sent;
if (!res.status) {
message/* default.success */.ZP.success('操作成功');
dispatch({
type: 'classroomList/setActionTabs',
payload: {
key: '刷新数据'
}
});
}
case 8:
case "end":
return _context.stop();
}
}, _callee);
})),
type: "primary",
children: "\u786E\u5B9A"
})]
}),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: "tc",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Search, {
placeholder: "\u8BFE\u7A0B\u540D\u79F0/\u521B\u5EFA\u8005",
enterButton: "\u641C\u7D22",
size: 'middle',
className: SelectShixunmodules.search,
onSearch: function onSearch(value) {
query.keyword = value;
setQuery(objectSpread2_default()({}, query));
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: "edu-container",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
spinning: loading['classroomList/getCoursesLists'],
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: SelectShixunmodules.menuCourse,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
children: ["\u5DF2\u9009", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-blue",
children: selectArrs.length
}), "\u8BFE\u7A0B"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-blue",
children: coursesLists.subjects_count
}), "\u4E2A\u8BFE\u7A0B"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
className: "current",
onClick: function onClick() {
query.order = query.order === 'asc' ? "desc" : "asc";
query.sort = "shixuns_count";
setQuery(objectSpread2_default()({}, query));
},
children: ["\u5B9E\u8BAD\u6570", /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: "edu-sorter current ".concat(query.sort === 'shixuns_count' && query.order),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-sanjiaoxing-up"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-sanjiaoxing-down"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
className: "current",
onClick: function onClick() {
query.order = query.order === 'asc' ? "desc" : "asc";
query.sort = "myshixuns_count";
setQuery(objectSpread2_default()({}, query));
},
children: ["\u5B66\u4E60\u4EBA\u6570", /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: "edu-sorter current ".concat(query.sort === 'myshixuns_count' && query.order),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-sanjiaoxing-up"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-sanjiaoxing-down"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(query.type === 'all' && 'c-blue', " current"),
onClick: function onClick() {
query.type = 'all';
setQuery(objectSpread2_default()({}, query));
},
children: "\u5168\u90E8\u8BFE\u7A0B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: "".concat(query.type === 'mine' && 'c-blue', " current"),
onClick: function onClick() {
query.type = 'mine';
setQuery(objectSpread2_default()({}, query));
},
children: "\u6211\u7684\u8BFE\u7A0B"
})]
})
}), (coursesLists === null || coursesLists === void 0 ? void 0 : (_coursesLists$subject = coursesLists.subject_list) === null || _coursesLists$subject === void 0 ? void 0 : _coursesLists$subject.length) === 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {}), coursesLists === null || coursesLists === void 0 ? void 0 : (_coursesLists$subject2 = coursesLists.subject_list) === null || _coursesLists$subject2 === void 0 ? void 0 : _coursesLists$subject2.map(function (v, k) {
var _v$content, _v$content2, _v$content2$author_na;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SelectShixunmodules.listItem,
style: {
cursor: 'auto'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
checked: selectArrs.includes(v.id),
value: v.id
// size="small"
,
style: {
marginTop: '1px'
},
disabled: v === null || v === void 0 ? void 0 : v.need_authorize,
onChange: function onChange(e) {
// setSelectArrs([...[v.id]])
var key = selectArrs.indexOf(v.id);
if (selectArrs.indexOf(v.id) > -1) {
setSelectArrs(selectArrs.filter(function (val) {
return val !== v.id;
}));
} else {
setSelectArrs(selectArrs.concat(v.id));
}
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SelectShixunmodules.info,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: SelectShixunmodules.title,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SelectShixunmodules.titleLeft,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/paths/".concat(v.id),
target: "_blank",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
className: "font16",
dangerouslySetInnerHTML: {
__html: v.title
}
})
}), (v === null || v === void 0 ? void 0 : v.need_authorize) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: function onClick() {
(0,verifyLogin/* AuthorizeModel */.rX)(false, '该课程中包含实训需授权后才可使用。 您可以在QQ服务群向管理员申请获得继续操作的权限。');
},
style: {
marginRight: 'auto'
},
className: "tag-style bg-pink current ml10",
children: "\u9700\u6388\u6743"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
ghost: true,
href: "/paths/".concat(v.id),
type: "primary",
target: "_blank",
style: {
borderRadius: '50px'
},
children: "\u4F53\u9A8C\u8BFE\u7A0B"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "flex-wrp mt10 font14 c-light-black",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: SelectShixunmodules.description,
dangerouslySetInnerHTML: {
__html: v.description
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {
dashed: true
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "c-light-black mt20",
children: [v !== null && v !== void 0 && (_v$content = v.content) !== null && _v$content !== void 0 && _v$content.author_name ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
dangerouslySetInnerHTML: {
__html: v === null || v === void 0 ? void 0 : (_v$content2 = v.content) === null || _v$content2 === void 0 ? void 0 : (_v$content2$author_na = _v$content2.author_name) === null || _v$content2$author_na === void 0 ? void 0 : _v$content2$author_na[0]
}
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.author_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
}), v.author_school_name && /*#__PURE__*/(0,jsx_runtime.jsxs)(react.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.author_school_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5B66\u4E60\u4EBA\u6570:"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.myshixuns_count
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u7AE0\u8282:", v.stage_count]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u5B9E\u8BAD:", v.shixuns_count]
})]
})]
})]
}, k);
})]
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "tc mt20",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
defaultCurrent: 1,
hideOnSinglePage: true,
defaultPageSize: 20,
current: query.page || 1,
showQuickJumper: true,
total: coursesLists === null || coursesLists === void 0 ? void 0 : coursesLists.subjects_count,
onChange: function onChange(page) {
query.page = page;
dispatch({
type: 'classroomList/getCoursesLists',
payload: objectSpread2_default()({}, query)
});
}
})
})]
}, "bottom");
};
/* harmony default export */ var SelectCourses = ((0,_umi_production_exports.connect)(function (_ref3) {
var classroomList = _ref3.classroomList,
loading = _ref3.loading,
virtualSpaces = _ref3.virtualSpaces;
return {
classroomList: classroomList,
loading: loading.effects,
virtualSpaces: virtualSpaces
};
})(PublishShixun));
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(59758);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Course/index.tsx
var _excluded = ["classroomList", "globalSetting", "virtualSpaces", "loading", "dispatch"];
var ShixunsListPage = function ShixunsListPage(_ref) {
var _cousesList$subjects;
var classroomList = _ref.classroomList,
globalSetting = _ref.globalSetting,
virtualSpaces = _ref.virtualSpaces,
loading = _ref.loading,
dispatch = _ref.dispatch,
props = objectWithoutProperties_default()(_ref, _excluded);
var _useState = (0,react.useState)([]),
_useState2 = slicedToArray_default()(_useState, 2),
cousesList = _useState2[0],
setcousesList = _useState2[1];
var virtualSpacesDetails = virtualSpaces.virtualSpacesDetails;
var query = (0,_umi_production_exports.useParams)();
var _useState3 = (0,react.useState)({
page: 1,
limit: 6,
search: '',
virtual_classroom_id: query.virtual_spacesId,
module_id: virtualSpaces.actionTabs.module_id
}),
_useState4 = slicedToArray_default()(_useState3, 2),
params = _useState4[0],
setparams = _useState4[1];
function getDataSets() {
return _getDataSets.apply(this, arguments);
}
function _getDataSets() {
_getDataSets = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/subjects.json"), {
method: 'get',
params: params
});
case 2:
res = _context2.sent;
setcousesList(res);
case 4:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return _getDataSets.apply(this, arguments);
}
(0,react.useEffect)(function () {
getDataSets();
}, []);
(0,react.useEffect)(function () {
if (classroomList.actionTabs.key === '刷新数据') {
getDataSets();
dispatch({
type: 'virtualSpaces/getVirtualSpacesDetails',
payload: {
id: query.virtual_spacesId
}
});
}
}, [classroomList.actionTabs.key]);
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Coursemodules.warp,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Coursemodules.title,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(input/* default.Search */.Z.Search, {
onSearch: function onSearch(e) {
params.search = e, getDataSets();
},
placeholder: "\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0\u641C\u7D22",
className: Coursemodules.Inputstyle
}), (virtualSpacesDetails.is_member || (0,authority/* isSuperAdmins */.Ny)()) && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
ghost: true,
type: "primary",
onClick: function onClick() {
console.log('-----', params);
dispatch({
type: 'classroomList/setActionTabs',
payload: {
key: '选用实践课程',
params: params
}
});
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
fontSize: '14px',
marginRight: '8px'
},
className: "iconfont icon-tianjia1 mr3 "
}), " \u6DFB\u52A0\u8BFE\u7A0B"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Coursemodules.Content,
children: [(cousesList === null || cousesList === void 0 ? void 0 : cousesList.total_count) <= 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
buttonProps: {
ghost: true,
type: 'primary'
},
ButtonClick: function ButtonClick() {
dispatch({
type: 'classroomList/setActionTabs',
payload: {
key: '选用实践课程',
params: params
}
});
},
ButtonText: virtualSpacesDetails.is_member ? /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
fontSize: '10px'
},
className: "iconfont icon-tianjia1 mr3 "
}), " \u6DFB\u52A0\u8BFE\u7A0B"]
}) : '',
customText: virtualSpacesDetails.is_member ? "课程资源还没有内容,可点击添加课程按钮添加" : '当前暂无课程资源,敬请期待,谢谢'
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
gutter: [16, 16],
children: cousesList === null || cousesList === void 0 ? void 0 : (_cousesList$subjects = cousesList.subjects) === null || _cousesList$subjects === void 0 ? void 0 : _cousesList$subjects.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 8,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(card/* default */.Z, {
hoverable: true,
onClick: function onClick() {
window.open("/paths/".concat(item === null || item === void 0 ? void 0 : item.identifier));
},
className: Coursemodules.cardstyle,
cover: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Coursemodules.imgstyle,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
alt: "example",
src: env/* default.IMG_SERVER */.Z.IMG_SERVER + '/' + item.image_url
})
}),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Coursemodules.paddingcard,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Coursemodules.titlefont,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: item.name,
children: item.name
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
justifyContent: "space-between",
marginTop: '12px',
height: '17px',
alignItems: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Coursemodules.flexEnd,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottom",
title: "\u7AE0\u8282\u6570",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
color: '#7D8592'
},
className: "iconfont icon-zhangjie1 mr3 font16"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: item.stages_count
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottom",
title: "\u5B66\u4E60\u4EBA\u6570",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
color: '#7D8592'
},
className: "iconfont icon-chengyuan mr3 font18 ml10"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: item.members_count
})]
})
})]
}), item.can_remove && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottom",
title: "\u79FB\u51FA\u8BFE\u7A0B",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
cursor: 'pointer',
color: '#7D8592'
},
onClick: function onClick(e) {
e.stopPropagation();
e.preventDefault();
modal/* default.confirm */.Z.confirm({
title: '移出课程资源',
content: "\u786E\u8BA4\u5C06\u8BFE\u7A0B\u8D44\u6E90\u300A".concat(item.name, "\u300B\u79FB\u51FA\u865A\u62DF\u793E\u533A\u5417\uFF1F"),
okText: '确认',
cancelText: '取消',
onOk: function () {
var _onOk = 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 (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/subjects/").concat(item.id, ".json"), {
method: 'Delete'
});
case 2:
res = _context.sent;
if (res.status === 0) {
getDataSets();
dispatch({
type: 'virtualSpaces/getVirtualSpacesDetails',
payload: {
id: query.virtual_spacesId
}
});
}
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
function onOk() {
return _onOk.apply(this, arguments);
}
return onOk;
}()
});
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
fontSize: '10px'
},
className: "iconfont icon-piliangshanchubeifen mr3 "
})
})
})]
})]
})
})
});
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
current: params.page,
total: cousesList === null || cousesList === void 0 ? void 0 : cousesList.total_count,
style: {
textAlign: 'end',
marginTop: '20px'
},
pageSize: params.limit,
hideOnSinglePage: true,
onChange: function onChange(e) {
params.page = e, getDataSets();
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(SelectCourses, {})]
});
};
/* harmony default export */ var Course = ((0,_umi_production_exports.connect)(function (_ref2) {
var classroomList = _ref2.classroomList,
loading = _ref2.loading,
globalSetting = _ref2.globalSetting,
virtualSpaces = _ref2.virtualSpaces;
return {
classroomList: classroomList,
globalSetting: globalSetting,
loading: loading.effects,
virtualSpaces: virtualSpaces
};
})(ShixunsListPage));
/***/ })
}]);

@ -1,331 +0,0 @@
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Course/index.less?modules ***!
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___bj1UV {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___cAW2l {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___RHsjV {
align-items: center;
box-align: center;
}
.flex_box_center_end___nycHN {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___l1rrz {
flex-direction: column;
box-orient: block-axis;
}
.warp___XqOLW {
width: 965px;
background: #fff;
box-shadow: 0px 2px 4px 0px rgba(232, 232, 233, 0.5);
border-radius: 4px;
padding: 20px 25px;
min-height: 672px;
}
.warp___XqOLW .title___tJlFM {
display: flex;
justify-content: space-between;
align-items: center;
}
.warp___XqOLW .Inputstyle___f_0iy {
width: 329px;
height: 38px;
}
.warp___XqOLW .buttonstyle___GZVUo {
width: 90px;
background: #196efd;
height: 30px;
color: #fff;
font-size: 12px;
}
.warp___XqOLW .Content___mBwQr {
margin-top: 20px;
}
.warp___XqOLW .imgstyle___aOVBR {
height: 177px;
width: 291px;
border-radius: 4px 4px 0px 0px;
overflow: hidden;
}
.warp___XqOLW .imgstyle___aOVBR img {
width: 100%;
transition: all 0.5s;
}
.warp___XqOLW .cardstyle___rZCyZ {
width: 291px;
height: 277px;
box-shadow: 0px 2px 4px 0px #d6dae1;
border-radius: 4px;
}
.warp___XqOLW .cardstyle___rZCyZ [class~='ant-card-body'] {
height: 100px;
padding: 32px 11px 21px 10px !important;
}
.warp___XqOLW .paddingcard___fJhto .titlefont___X17l5 {
font-size: 16px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #000000;
height: 22px;
-webkit-box-orient: vertical;
display: -webkit-box;
-webkit-line-clamp: 1;
overflow: hidden;
}
.warp___XqOLW .flexEnd___u0kdb {
display: flex;
flex-direction: row;
align-items: flex-end;
}
.warp___XqOLW .flexEnd___u0kdb > span {
display: flex;
align-items: center;
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Course/components/SelectShixun.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___zvp4n {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___p_qUf {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___QC6IC {
align-items: center;
box-align: center;
}
.flex_box_center_end___OyxlJ {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___JZnhw {
flex-direction: column;
box-orient: block-axis;
}
.wrp___xnyPm {
background: #fff;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.04);
padding-top: 10px;
}
.drawer____RLhT [class='ant-drawer-content'] {
background: #f5f5f5 !important;
}
.drawer____RLhT [class='ant-drawer-footer'] {
background: #fff;
box-shadow: 0 -4px 4px 0 rgba(0, 0, 0, 0.05);
position: relative;
border: 0;
}
.menu___LZknv {
padding: 0;
margin: 12px 0;
position: relative;
z-index: 2;
}
.menu___LZknv:hover {
z-index: 3;
}
.menu___LZknv > li {
display: inline-block;
position: relative;
margin-right: 20px;
border-radius: 32px;
line-height: 32px;
}
.menu___LZknv > li a {
color: #4b4b4b;
}
.menu___LZknv > li strong {
padding: 6px 15px;
border-radius: 32px;
cursor: pointer;
font-weight: normal;
}
.menu___LZknv > li:hover > a > strong,
.menu___LZknv > li:hover > strong {
color: #fff;
background: #196efd;
}
.menu___LZknv > li:hover div {
display: block;
}
.menu___LZknv > li > div {
display: none;
position: absolute;
left: 0;
top: 30px;
width: 400px;
padding: 10px;
background: #fff;
color: #333;
max-height: 400px;
overflow: auto;
z-index: 8;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.menu___LZknv > li > div h2 {
cursor: pointer;
margin: 10px 0;
}
.menu___LZknv > li > div h2:hover {
color: #196efd;
}
.menu___LZknv > li > div ul {
padding-left: 0;
}
.menu___LZknv > li > div ul li {
cursor: pointer;
display: inline-block;
height: 30px;
line-height: 30px;
margin-right: 20px;
color: #999;
}
.menu___LZknv > li > div ul li:hover {
color: #196efd;
}
.actived___Vjyks {
background: #0152d9;
color: #fff;
}
.actived2___quoPx {
color: #0152d9 !important;
}
.subTag___GkUHy {
cursor: pointer;
}
.subTag___GkUHy:hover {
color: #0152d9;
}
.listItem___eqhTZ {
padding: 25px 30px 25px 30px;
display: box;
display: flex;
background: white;
margin-top: 20px;
cursor: pointer;
}
.listItem___eqhTZ > div {
flex: 1 1;
}
.listItem___eqhTZ:hover {
box-shadow: 0 0 10px #ccc;
}
.listItem2___inSlY {
padding: 0 10px;
display: box;
display: flex;
background: white;
cursor: pointer;
}
.listItem2___inSlY > div {
flex: 1 1;
}
.listItem2___inSlY [class~='ant-divider-horizontal'] {
margin: 17px 0;
}
.info___DEbg1 {
margin-left: 20px;
}
.info___DEbg1 p {
margin-top: 18px;
}
.title___Lb3kv {
display: box;
display: flex;
align-items: center;
box-align: center;
}
.title___Lb3kv strong {
color: #333;
}
.titleLeft___pAteJ {
display: flex;
justify-content: space-between;
flex: 1 1;
}
.titleRight___Os9e6 {
margin-top: 18px;
}
.titleRight___Os9e6 a {
margin-right: 20px;
font-weight: bold;
}
.search___Ha0ig {
width: 600px !important;
margin: 30px 0 30px 0;
}
.search___Ha0ig input,
.search___Ha0ig [class='ant-input-group-addon'] button {
height: 50px;
line-height: 50px;
padding: 0 30px;
font-size: 16px;
}
.filter___YkZQb button {
border-radius: 40px;
box-shadow: none;
}
.filter___YkZQb [class~='ant-btn-default'] {
background: #eee;
border-color: #eee;
color: #999;
}
.filter___YkZQb [class~='ant-btn-primary'] {
background-color: #196efd;
border-color: #196efd;
}
.filter___YkZQb [class~='ant-input'] {
border-radius: 4px;
}
.filter___YkZQb [class~='ant-input-search-button'] {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
.description___ZLiRJ {
-webkit-box-orient: vertical;
display: -webkit-box;
-webkit-line-clamp: 2;
overflow: hidden;
}
.menuCourse___XopyK {
color: #999;
margin-top: 10px;
}
.menuCourse___XopyK ul,
.menuCourse___XopyK li {
margin: 0;
padding: 0;
list-style: none;
}
.menuCourse___XopyK li {
display: inline-block;
margin-right: 30px;
}

@ -1,9 +1,66 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[71783],{
/***/ 45335:
/***/ 82982:
/*!*****************************************!*\
!*** ./src/components/NoData/index.tsx ***!
\*****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 4977);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 71577);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
var noData = function noData(_ref) {
var img = _ref.img,
_ref$buttonProps = _ref.buttonProps,
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
_ref$styles = _ref.styles,
styles = _ref$styles === void 0 ? {} : _ref$styles,
customText = _ref.customText,
ButtonText = _ref.ButtonText,
ButtonClick = _ref.ButtonClick,
Buttonclass = _ref.Buttonclass,
ButtonTwo = _ref.ButtonTwo,
imgStyles = _ref.imgStyles,
_ref$loading = _ref.loading,
loading = _ref$loading === void 0 ? false : _ref$loading;
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", {
className: "tc animated fadeIn",
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, {
color: '#999',
margin: '100px auto',
visibility: loading ? 'hidden' : 'visible'
}), styles),
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", {
src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__,
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles)
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", {
className: "mt20 font14",
children: customText || '暂时还没有相关数据哦!'
}), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
className: Buttonclass,
onClick: ButtonClick
}, buttonProps), {}, {
children: ButtonText
})), ButtonTwo && ButtonTwo]
});
};
/* harmony default export */ __webpack_exports__["Z"] = (noData);
/***/ }),
/***/ 48090:
/*!************************************************************************!*\
!*** ./src/pages/virtualSpaces/Lists/Experiment/index.tsx + 7 modules ***!
!*** ./src/pages/virtualSpaces/Lists/Experiment/index.tsx + 9 modules ***!
\************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -47,32 +104,45 @@ var spin = __webpack_require__(57953);
var pagination = __webpack_require__(83338);
// EXTERNAL MODULE: ./src/service/virtualSpaces.ts
var service_virtualSpaces = __webpack_require__(51207);
// EXTERNAL MODULE: ./src/pages/virtualSpaces/Lists/Shixuns/components/SelectShixuns/index.tsx + 1 modules
var SelectShixuns = __webpack_require__(59267);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/typeof.js
var helpers_typeof = __webpack_require__(18698);
var typeof_default = /*#__PURE__*/__webpack_require__.n(helpers_typeof);
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
var input = __webpack_require__(79531);
// EXTERNAL MODULE: ./node_modules/antd/es/form/index.js + 17 modules
var es_form = __webpack_require__(25159);
// EXTERNAL MODULE: ./node_modules/antd/es/drawer/index.js + 16 modules
var drawer = __webpack_require__(35479);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
var message = __webpack_require__(2453);
// EXTERNAL MODULE: ./node_modules/antd/es/radio/index.js + 5 modules
var es_radio = __webpack_require__(78045);
// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
var row = __webpack_require__(71230);
// EXTERNAL MODULE: ./node_modules/antd/es/col/index.js
var col = __webpack_require__(15746);
// EXTERNAL MODULE: ./node_modules/antd/es/checkbox/index.js + 3 modules
var es_checkbox = __webpack_require__(84567);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(83062);
// EXTERNAL MODULE: ./node_modules/antd/es/divider/index.js + 1 modules
var divider = __webpack_require__(96074);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Shixuns/components/SelectShixuns/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var SelectShixunsmodules = ({"flex_box_center":"flex_box_center___aqHcx","flex_space_between":"flex_space_between___CONGd","flex_box_vertical_center":"flex_box_vertical_center___lVyEh","flex_box_center_end":"flex_box_center_end___sI_Vv","flex_box_column":"flex_box_column___kaVXu","wrp":"wrp___rtMqf","drawer":"drawer___A_PEI","menu":"menu___K7LJA","actived":"actived___jzUGM","actived2":"actived2___UNcoI","subTag":"subTag___E54g9","directionName":"directionName___EyQuv","menuDirection":"menuDirection___qmHXv","listItem":"listItem___ZO5AA","info":"info___raEGy","title":"title___TE8wt","titleLeft":"titleLeft___cyNcR","titleRight":"titleRight___N91L3","search":"search___SLT83","description":"description___xhaap","menuCourse":"menuCourse___jXQvt","paginationWrap":"paginationWrap___lwYL6"});
// EXTERNAL MODULE: ./src/service/shixuns.ts
var shixuns = __webpack_require__(56088);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(82982);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Experiment/components/SelectCourses/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var SelectCoursesmodules = ({"flex_box_center":"flex_box_center___TJ6ml","flex_space_between":"flex_space_between___KILKX","flex_box_vertical_center":"flex_box_vertical_center___RppSx","flex_box_center_end":"flex_box_center_end___LPGnq","flex_box_column":"flex_box_column___jU2Jl","wrp":"wrp___zKb7p","drawer":"drawer___TIdMd","menu":"menu___auLdF","actived":"actived___zYS5Q","actived2":"actived2___OGoZn","subTag":"subTag___b2h92","listItem":"listItem___xctQk","listItem2":"listItem2___s8hCO","info":"info___TVoda","title":"title___tbgwQ","titleLeft":"titleLeft___itHF1","titleRight":"titleRight___iEOIZ","search":"search___p3840","filter":"filter___M4Wxe","description":"description___QUPVu","menuCourse":"menuCourse___SpFbG"});
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
var verifyLogin = __webpack_require__(7303);
// EXTERNAL MODULE: ./src/service/global.ts
var global = __webpack_require__(98706);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(7);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Experiment/components/SelectCourses/index.tsx
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Shixuns/components/SelectShixuns/index.tsx
@ -87,7 +157,538 @@ var jsx_runtime = __webpack_require__(85893);
var Search = input/* default.Search */.Z.Search;
var typeFilter = {
id: "type",
name: "来源",
children: [{
name: "全部",
id: "all",
type: "type"
}, {
name: "我的",
id: "mine",
type: "type"
}]
};
var diffFilter = {
id: "diff",
name: "难度",
children: [{
name: "全部",
id: "",
type: "diff"
}, {
name: "初级",
id: 1,
type: "diff"
}, {
name: "中级",
id: 2,
type: "diff"
}, {
name: "中高级",
id: 3,
type: "diff"
}, {
name: "高级",
id: 4,
type: "diff"
}]
};
var PublishShixun = function PublishShixun(_ref) {
var _typeFilter$children, _diffFilter$children, _shixunLists$shixun_l3, _shixunLists$shixun_l4;
var classroomList = _ref.classroomList,
loading = _ref.loading,
dispatch = _ref.dispatch,
cb = _ref.cb,
_ref$shixunIds = _ref.shixunIds,
shixunIds = _ref$shixunIds === void 0 ? [] : _ref$shixunIds;
var params = (0,_umi_production_exports.useParams)();
var location = (0,_umi_production_exports.useLocation)();
var actionTabs = classroomList.actionTabs;
var _Form$useForm = es_form/* default.useForm */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
var shixunLists = classroomList.shixunLists;
var _useState = (0,react.useState)([]),
_useState2 = slicedToArray_default()(_useState, 2),
selectArrs = _useState2[0],
setSelectArrs = _useState2[1];
var _useState3 = (0,react.useState)([]),
_useState4 = slicedToArray_default()(_useState3, 2),
directionData = _useState4[0],
setDirectionData = _useState4[1];
var _useState5 = (0,react.useState)({
page: 1,
type: "all",
diff: 0,
status: "published",
order: "desc",
limit: 10,
sort: "myshixuns_count",
tag_level: null,
sub_discipline_id: null,
discipline_id: null
}),
_useState6 = slicedToArray_default()(_useState5, 2),
query = _useState6[0],
setQuery = _useState6[1];
(0,react.useEffect)(function () {
if (classroomList.actionTabs.key === '选用实践项目') {
// query.page = 1;
dispatch({
type: 'classroomList/getShixunLists',
payload: objectSpread2_default()({}, query)
});
}
}, [classroomList.actionTabs.key, query]);
(0,react.useEffect)(function () {
getData();
}, [params]);
var getData = /*#__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 (0,shixuns/* getShixunsMenus */.I_)({});
case 2:
res = _context.sent;
//
setDirectionData((res === null || res === void 0 ? void 0 : res.disciplines) || []);
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData() {
return _ref2.apply(this, arguments);
};
}();
var menuChange = function menuChange(tag_level, sub_discipline_id, discipline_id) {
query.tag_level = tag_level;
query.sub_discipline_id = sub_discipline_id;
query.discipline_id = discipline_id;
setQuery(objectSpread2_default()({}, query));
dispatch({
type: 'classroomList/getShixunLists',
payload: objectSpread2_default()({}, query)
});
};
var handleCancel = function handleCancel() {
dispatch({
type: 'classroomList/setActionTabs',
payload: {}
});
setQuery({
page: 1,
type: "all",
diff: 0,
status: "all",
order: "desc",
limit: 10,
sort: "myshixuns_count",
tag_level: null,
sub_discipline_id: null,
discipline_id: null
});
};
if (classroomList.actionTabs.key !== '选用实践项目') return null;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(drawer/* default */.Z, {
placement: "bottom",
height: "100%",
closable: true,
onClose: handleCancel,
open: classroomList.actionTabs.key === '选用实践项目' ? true : false,
rootClassName: SelectShixunsmodules.drawer,
footer: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "tc",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
size: 'middle',
onClick: function onClick() {
handleCancel();
setSelectArrs([]);
},
style: {
marginRight: 8
},
children: "\u53D6\u6D88"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
size: 'middle',
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var _loop, i, _ret;
return regeneratorRuntime_default()().wrap(function _callee2$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_loop = /*#__PURE__*/regeneratorRuntime_default()().mark(function _loop() {
var selectItem, _shixunLists$shixun_l, _shixunLists$shixun_l2;
return regeneratorRuntime_default()().wrap(function _loop$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
selectItem = selectArrs[i];
if (!shixunIds.includes(selectItem)) {
_context2.next = 4;
break;
}
message/* default.info */.ZP.info("\u8BF7\u52FF\u91CD\u590D\u9009\u62E9\uFF1A".concat(shixunLists === null || shixunLists === void 0 ? void 0 : (_shixunLists$shixun_l = shixunLists.shixun_list) === null || _shixunLists$shixun_l === void 0 ? void 0 : (_shixunLists$shixun_l2 = _shixunLists$shixun_l.find(function (item) {
return item.id === selectItem;
})) === null || _shixunLists$shixun_l2 === void 0 ? void 0 : _shixunLists$shixun_l2.title));
return _context2.abrupt("return", {
v: void 0
});
case 4:
case "end":
return _context2.stop();
}
}, _loop);
});
i = 0;
case 2:
if (!(i < (selectArrs === null || selectArrs === void 0 ? void 0 : selectArrs.length))) {
_context3.next = 10;
break;
}
return _context3.delegateYield(_loop(), "t0", 4);
case 4:
_ret = _context3.t0;
if (!(typeof_default()(_ret) === "object")) {
_context3.next = 7;
break;
}
return _context3.abrupt("return", _ret.v);
case 7:
i++;
_context3.next = 2;
break;
case 10:
handleCancel();
cb(selectArrs);
setSelectArrs([]);
case 13:
case "end":
return _context3.stop();
}
}, _callee2);
})),
type: "primary",
children: "\u786E\u5B9A"
})]
}),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: "tc",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Search, {
placeholder: "\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",
enterButton: "\u641C\u7D22",
size: 'middle',
className: SelectShixunsmodules.search,
onSearch: function onSearch(value) {
query.keyword = value;
query.page = 1;
dispatch({
type: 'classroomList/getShixunLists',
payload: objectSpread2_default()({}, query)
});
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "edu-container",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
className: SelectShixunsmodules.menu,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("li", {
children: typeFilter.name
}), typeFilter === null || typeFilter === void 0 ? void 0 : (_typeFilter$children = typeFilter.children) === null || _typeFilter$children === void 0 ? void 0 : _typeFilter$children.map(function (val, key) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: query[typeFilter.id] == val.id ? SelectShixunsmodules.actived : '',
onClick: function onClick() {
query[typeFilter.id] = val.id;
setQuery(objectSpread2_default()({}, query));
dispatch({
type: 'classroomList/getShixunLists',
payload: objectSpread2_default()({}, query)
});
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
children: val.name
})
});
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
className: SelectShixunsmodules.menuDirection,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: SelectShixunsmodules.directionName,
children: "\u65B9\u5411"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: !query.discipline_id ? SelectShixunsmodules.actived : '',
onClick: function onClick() {
menuChange(null, null, null);
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
children: "\u5168\u90E8"
})
}), directionData === null || directionData === void 0 ? void 0 : directionData.map(function (v, k) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
className: query.discipline_id == v.id ? SelectShixunsmodules.actived : '',
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
onClick: function onClick() {
menuChange(1, null, v.id);
},
children: v.name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: v.sub_disciplines.map(function (val, key) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt5",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: query.sub_discipline_id == val.id ? "".concat(SelectShixunsmodules.actived2, " ").concat(SelectShixunsmodules.subTag) : SelectShixunsmodules.subTag,
onClick: function onClick() {
menuChange(2, val.id, v.id);
},
children: val.name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
className: "mt5",
children: val.tags && val.tags.map(function (value, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: query.sub_discipline_id == value.id && query.tag_level === 3 ? SelectShixunsmodules.actived2 : '',
onClick: function onClick() {
menuChange(3, value.id, v.id);
},
children: value.name
}, index);
})
})]
}, key);
})
})]
}, k);
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
className: SelectShixunsmodules.menu,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("li", {
children: diffFilter.name
}), diffFilter === null || diffFilter === void 0 ? void 0 : (_diffFilter$children = diffFilter.children) === null || _diffFilter$children === void 0 ? void 0 : _diffFilter$children.map(function (val, key) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: query[diffFilter.id] == val.id ? SelectShixunsmodules.actived : '',
onClick: function onClick() {
query[diffFilter.id] = val.id;
setQuery(objectSpread2_default()({}, query));
dispatch({
type: 'classroomList/getShixunLists',
payload: objectSpread2_default()({}, query)
});
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
children: val.name
})
});
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "1",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: SelectShixunsmodules.menuCourse,
style: {
margin: '0px 15px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
children: ["\u5DF2\u9009", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-blue",
children: selectArrs.length
}), "\u4E2A\u5B9E\u8BAD"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-blue",
children: shixunLists.shixuns_count
}), "\u4E2A\u8BFE\u7A0B"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
className: "current",
onClick: function onClick() {
query.order = query.order === 'asc' ? "desc" : "asc";
setQuery(objectSpread2_default()({}, query));
},
children: ["\u5B66\u4E60\u4EBA\u6570", /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: "edu-sorter current ".concat(query.order),
children: query.order === 'asc' ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-sanjiaoxing-up"
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-sanjiaoxing-down"
})
})]
})]
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "c-grey-999",
children: "\u4EC5\u5DF2\u53D1\u5E03\u7684\u5B9E\u8BAD\u8FDB\u5165\u672C\u5217\u8868\u5907\u9009"
})]
}), shixunLists === null || shixunLists === void 0 ? void 0 : (_shixunLists$shixun_l3 = shixunLists.shixun_list) === null || _shixunLists$shixun_l3 === void 0 ? void 0 : _shixunLists$shixun_l3.map(function (v, k) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SelectShixunsmodules.listItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
checked: selectArrs.includes(v.id),
value: v.id,
disabled: v === null || v === void 0 ? void 0 : v.need_authorize,
onChange: function onChange(e) {
var key = selectArrs.indexOf(v.id);
if (selectArrs.indexOf(v.id) > -1) {
setSelectArrs(selectArrs.filter(function (val) {
return val !== v.id;
}));
} else {
setSelectArrs(selectArrs.concat(v.id));
}
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SelectShixunsmodules.info,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: SelectShixunsmodules.title,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SelectShixunsmodules.titleLeft,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
className: "c-black",
href: "/shixuns/".concat(v === null || v === void 0 ? void 0 : v.identifier, "/challenges"),
target: "_blank",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
className: "font16",
dangerouslySetInnerHTML: {
__html: v.title
}
})
}), (v === null || v === void 0 ? void 0 : v.need_authorize) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: function onClick() {
(0,verifyLogin/* AuthorizeModel */.rX)(false);
},
style: {
marginRight: 'auto'
},
className: "tag-style bg-pink current ml10",
children: "\u9700\u6388\u6743"
}), (0,authority/* isSuperAdmins */.Ny)() && (v === null || v === void 0 ? void 0 : v.mark_status) === 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: v === null || v === void 0 ? void 0 : v.mark_content,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
marginRight: 'auto',
background: '#2FA34F'
},
className: "tag-style current ml10",
children: "\u6B63\u5E38"
})
}), (0,authority/* isSuperAdmins */.Ny)() && (v === null || v === void 0 ? void 0 : v.mark_status) === 2 && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: v === null || v === void 0 ? void 0 : v.mark_content,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
marginRight: 'auto',
background: '#FF8C29'
},
className: "tag-style current ml10",
children: "\u9700\u5B8C\u5584"
})
}), (0,authority/* isSuperAdmins */.Ny)() && (v === null || v === void 0 ? void 0 : v.mark_status) === 3 && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: v === null || v === void 0 ? void 0 : v.mark_content,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
marginRight: 'auto',
background: '#E53333'
},
className: "tag-style current ml10",
children: "\u65E0\u6CD5\u4F7F\u7528"
})
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "flex-wrp mt10 font14 c-light-black",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: SelectShixunsmodules.description,
dangerouslySetInnerHTML: {
__html: v.description
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: " mt15",
children: v.challenge_names.map(function (val, key) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr30 font12",
children: ["\u7B2C", key + 1, "\u5173 ", val, " "]
}, key);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {
dashed: true
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "c-light-black mt20 font12",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.author_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.author_school_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u96BE\u5EA6\u7CFB\u6570 ", v.level]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5B66\u4E60\u4EBA\u6570 "
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.study_count
})]
})]
})]
}, k);
}), (shixunLists === null || shixunLists === void 0 ? void 0 : (_shixunLists$shixun_l4 = shixunLists.shixun_list) === null || _shixunLists$shixun_l4 === void 0 ? void 0 : _shixunLists$shixun_l4.length) === 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "tc mt20",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
defaultCurrent: 1,
hideOnSinglePage: true,
defaultPageSize: 20,
showSizeChanger: false,
current: query.page || 1,
showQuickJumper: true,
total: shixunLists === null || shixunLists === void 0 ? void 0 : shixunLists.shixuns_count,
onChange: function onChange(page) {
query.page = page;
setQuery(objectSpread2_default()({}, query));
}
})
})]
}, "bottom");
};
/* harmony default export */ var SelectShixuns = ((0,_umi_production_exports.connect)(function (_ref4) {
var classroomList = _ref4.classroomList,
loading = _ref4.loading;
return {
classroomList: classroomList,
loading: loading
};
})(PublishShixun));
// EXTERNAL MODULE: ./node_modules/antd/es/radio/index.js + 5 modules
var es_radio = __webpack_require__(78045);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Experiment/components/SelectCourses/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var SelectCoursesmodules = ({"flex_box_center":"flex_box_center___TJ6ml","flex_space_between":"flex_space_between___KILKX","flex_box_vertical_center":"flex_box_vertical_center___RppSx","flex_box_center_end":"flex_box_center_end___LPGnq","flex_box_column":"flex_box_column___jU2Jl","wrp":"wrp___zKb7p","drawer":"drawer___TIdMd","menu":"menu___auLdF","actived":"actived___zYS5Q","actived2":"actived2___OGoZn","subTag":"subTag___b2h92","listItem":"listItem___xctQk","listItem2":"listItem2___s8hCO","info":"info___TVoda","title":"title___tbgwQ","titleLeft":"titleLeft___itHF1","titleRight":"titleRight___iEOIZ","search":"search___p3840","filter":"filter___M4Wxe","description":"description___QUPVu","menuCourse":"menuCourse___SpFbG"});
// EXTERNAL MODULE: ./src/service/global.ts
var global = __webpack_require__(98706);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Experiment/components/SelectCourses/index.tsx
var SelectCourses_Search = input/* default.Search */.Z.Search;
var SelectCourses_PublishShixun = function PublishShixun(_ref) {
var _coursesLists$subject, _coursesLists$subject2;
var classroomList = _ref.classroomList,
loading = _ref.loading,
@ -202,7 +803,7 @@ var PublishShixun = function PublishShixun(_ref) {
}),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: "tc",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Search, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(SelectCourses_Search, {
placeholder: "\u8BFE\u7A0B\u540D\u79F0/\u521B\u5EFA\u8005",
enterButton: "\u641C\u7D22",
size: 'middle',
@ -418,15 +1019,9 @@ var PublishShixun = function PublishShixun(_ref) {
classroomList: classroomList,
loading: loading.effects
};
})(PublishShixun));
})(SelectCourses_PublishShixun));
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
var modal = __webpack_require__(72423);
// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
var row = __webpack_require__(71230);
// EXTERNAL MODULE: ./node_modules/antd/es/col/index.js
var col = __webpack_require__(15746);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(83062);
// EXTERNAL MODULE: ./node_modules/antd/es/rate/index.js + 8 modules
var rate = __webpack_require__(59606);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
@ -436,8 +1031,6 @@ var env = __webpack_require__(59758);
/* harmony default export */ var ShixunItemmodules = ({"itemWrapper":"itemWrapper___FDtjf","imgWrapper":"imgWrapper___kuAby","infoWrapper":"infoWrapper___kPiaa","name":"name___s6_8x","info":"info___f4ohA","smallText":"smallText___NUbDW","rate":"rate___uCfIz","btnWrapper":"btnWrapper___oEyAe","removeBtn":"removeBtn____Ucrs","textEllipsis":"textEllipsis___dla3G","mr6":"mr6___BYwoU","modalWrapper":"modalWrapper___Xvqvn","okBtn":"okBtn___XoB2t","cancelBtn":"cancelBtn___QjfJN"});
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(7);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Experiment/components/ShixunItem/index.tsx
@ -1190,7 +1783,7 @@ var ExperimentPage = function ExperimentPage(_ref) {
})]
})]
})]
}), classroomList.actionTabs.key === '选用实践项目' && /*#__PURE__*/(0,jsx_runtime.jsx)(SelectShixuns/* default */.Z, {
}), classroomList.actionTabs.key === '选用实践项目' && /*#__PURE__*/(0,jsx_runtime.jsx)(SelectShixuns, {
shixunIds: [],
cb: /*#__PURE__*/function () {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(ids) {
@ -1280,163 +1873,6 @@ var ExperimentPage = function ExperimentPage(_ref) {
};
})(ExperimentPage));
/***/ }),
/***/ 85418:
/*!************************************************************!*\
!*** ./node_modules/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/es/dropdown/dropdown.js + 9 modules
var dropdown = __webpack_require__(35874);
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
var EllipsisOutlined = __webpack_require__(89705);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
var context = __webpack_require__(53124);
// EXTERNAL MODULE: ./node_modules/antd/es/space/index.js + 2 modules
var space = __webpack_require__(42075);
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
var Compact = __webpack_require__(4173);
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/style/index.js + 1 modules
var style = __webpack_require__(66748);
;// CONCATENATED MODULE: ./node_modules/antd/es/dropdown/dropdown-button.js
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.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.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_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.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.createElement(es_button/* default */.ZP, {
type: type,
danger: danger,
icon: icon
});
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
return wrapSSR( /*#__PURE__*/react.createElement(space/* default.Compact */.Z.Compact, Object.assign({
className: classes,
size: compactSize,
block: true
}, restProps), leftButtonToRender, /*#__PURE__*/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/es/dropdown/index.js
'use client';
const Dropdown = dropdown/* default */.Z;
Dropdown.Button = dropdown_button;
/* harmony default export */ var es_dropdown = (Dropdown);
/***/ })
}]);

@ -1,100 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[29080],{
/***/ 98776:
/*!********************************************************************!*\
!*** ./src/pages/virtualSpaces/Lists/Graphs/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 */ Lists_Graphs; }
});
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
var _umi_production_exports = __webpack_require__(89214);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Graphs/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Graphsmodules = ({"flex_box_center":"flex_box_center___RklXo","flex_space_between":"flex_space_between___Xzr63","flex_box_vertical_center":"flex_box_vertical_center___xX81Y","flex_box_center_end":"flex_box_center_end___mtSyF","flex_box_column":"flex_box_column___wDlGV","warp":"warp___jx1Yb"});
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(59758);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
var message = __webpack_require__(2453);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(7);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Graphs/index.tsx
var Graphs = function Graphs(_ref) {
var _virtualSpaces$virtua3, _virtualSpaces$virtua4;
var virtualSpaces = _ref.virtualSpaces;
var iframeRef = (0,react.useRef)();
var _useParams = (0,_umi_production_exports.useParams)(),
virtual_spacesId = _useParams.virtual_spacesId;
function receiveMessage(e) {
if (e.data === 'iframeLoaded') {
var _iframeRef$current$co, _virtualSpaces$virtua, _virtualSpaces$virtua2;
if (!iframeRef.current) {
return;
}
(_iframeRef$current$co = iframeRef.current.contentWindow) === null || _iframeRef$current$co === void 0 ? void 0 : _iframeRef$current$co.postMessage({
id: virtual_spacesId,
API_SERVER: env/* default.API_SERVER */.Z.API_SERVER,
is_creator: (_virtualSpaces$virtua = virtualSpaces.virtualSpacesDetails) === null || _virtualSpaces$virtua === void 0 ? void 0 : _virtualSpaces$virtua.is_creator,
is_member: (_virtualSpaces$virtua2 = virtualSpaces.virtualSpacesDetails) === null || _virtualSpaces$virtua2 === void 0 ? void 0 : _virtualSpaces$virtua2.is_member,
isSuperAdmins: (0,authority/* isSuperAdmins */.Ny)()
}, '*');
}
if (e.data === 'invalidUrl') {
message/* default.error */.ZP.error('url错误');
}
if (e.data === 'emptyTitle') {
message/* default.error */.ZP.error('标题不能为空');
}
if (e.data === 'longTitle') {
message/* default.error */.ZP.error('标题不能超过60字');
}
}
(0,react.useEffect)(function () {
window.addEventListener('message', receiveMessage, false);
return function () {
return window.removeEventListener('message', receiveMessage, false);
};
}, []);
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Graphsmodules.warp,
children: ((_virtualSpaces$virtua3 = virtualSpaces.virtualSpacesDetails) === null || _virtualSpaces$virtua3 === void 0 ? void 0 : (_virtualSpaces$virtua4 = _virtualSpaces$virtua3.name) === null || _virtualSpaces$virtua4 === void 0 ? void 0 : _virtualSpaces$virtua4.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", {
src: "/knowledgegraph/graph.html",
style: {
width: '100%',
height: 780,
border: 'none',
outline: 'none'
},
ref: iframeRef
})
});
};
/* harmony default export */ var Lists_Graphs = ((0,_umi_production_exports.connect)(function (_ref2) {
var virtualSpaces = _ref2.virtualSpaces;
return {
virtualSpaces: virtualSpaces
};
})(Graphs));
/***/ })
}]);

@ -1,39 +0,0 @@
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Graphs/index.less?modules ***!
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___RklXo {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___Xzr63 {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___xX81Y {
align-items: center;
box-align: center;
}
.flex_box_center_end___mtSyF {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___wDlGV {
flex-direction: column;
box-orient: block-axis;
}
.warp___jx1Yb {
width: 965px;
background: #fff;
box-shadow: 0px 2px 4px 0px rgba(232, 232, 233, 0.5);
border-radius: 4px;
min-height: 800px;
}

File diff suppressed because it is too large Load Diff

@ -1,210 +0,0 @@
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Managements/index.less?modules ***!
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___k8H9A {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___twxOo {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___zYVn4 {
align-items: center;
box-align: center;
}
.flex_box_center_end___S0UtE {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___Rjvt3 {
flex-direction: column;
box-orient: block-axis;
}
.warp___jE5jA {
width: 965px;
background: #fff;
box-shadow: 0px 2px 4px 0px rgba(232, 232, 233, 0.5);
border-radius: 4px;
min-height: 672px;
}
.warp___jE5jA .title___otzGv {
height: 60px;
line-height: 60px;
font-size: 14px;
font-weight: 600;
color: #464f66;
padding-left: 25px;
}
.warp___jE5jA .title___otzGv span {
font-size: 12px;
font-weight: 400;
color: #a2a8b2;
margin-left: 15px;
}
.warp___jE5jA .line___JpqQX {
height: 1px;
background: #f5f5f5;
margin-top: 40px;
}
.warp___jE5jA .tree___vLoFt {
padding: 0px 25px;
font-size: 14px;
}
.warp___jE5jA .tree___vLoFt .lineOne___In0jI {
display: flex;
flex-direction: column;
padding-top: 12px;
}
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/components/AddOrEdit/index.less?modules ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___ze4wf {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___JpH0B {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___NbRyF {
align-items: center;
box-align: center;
}
.flex_box_center_end___fUFoB {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___i2BZL {
flex-direction: column;
box-orient: block-axis;
}
.form____yVeV > aside {
font-size: 12px;
color: #5f6367;
margin-top: 20px;
}
.form____yVeV input {
border-radius: 2px;
border: 1px solid #e1e1e1;
margin-left: 4px;
}
.form____yVeV label {
height: 32px;
color: #000000 !important;
line-height: 32px !important;
}
.form____yVeV label::before {
margin-top: 2px;
}
.form____yVeV .btn___X16NC {
padding: 0 16px;
background: #f6f7f9 linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
box-shadow: 0px 2px 4px 0px #e0dfe1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 2px;
border: 1px solid #bacffe;
height: 32px;
line-height: 30px;
color: #165dff;
cursor: pointer;
}
.form____yVeV .btn___X16NC i {
margin-right: 3px;
font-size: 14px;
}
.form____yVeV .img___sQnKq {
position: relative;
width: 200px;
height: auto;
background-color: #f4f3f4;
display: flex;
align-items: center;
justify-content: center;
}
.form____yVeV .img___sQnKq > div {
position: absolute;
right: -6px;
top: -6px;
cursor: pointer;
background-color: #fff;
width: 16px;
height: 16px;
border-radius: 50%;
}
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/ui-customization/reset.less?modules ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___vG4eV {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___qVVxe {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___P8Z8s {
align-items: center;
box-align: center;
}
.flex_box_center_end___VMme3 {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___VMHwm {
flex-direction: column;
box-orient: block-axis;
}
.dropdownmenus___oVzoj {
width: 104px;
}
.dropdownmenus___oVzoj [class~='ant-dropdown-menu-item'] {
text-align: center;
}
.dropdownmenus___oVzoj [class~='ant-dropdown-menu-item']:hover {
color: #165dff !important;
background: #fff;
}
.dropdownmenus___oVzoj [class~='ant-dropdown-menu'] {
padding: 10px 0 !important;
}
.popupClassNames___OcZq7 {
background: yellow;
}
.selectdown___mmcA8 [class~='ant-select-item-option-selected'] {
font-weight: 400 !important;
background-color: #edf2ff !important;
}
.selectdown___mmcA8 [class~='ant-select-item-option-active'] {
color: #165dff !important;
background-color: #fff !important;
}
.selectdown___mmcA8 [class~='ant-select-item-option'] {
padding: 10px 24px;
}

File diff suppressed because it is too large Load Diff

@ -1,146 +0,0 @@
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Member/index.less?modules ***!
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___WU37G {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___J204w {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___lDtce {
align-items: center;
box-align: center;
}
.flex_box_center_end___NpkUT {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___EAzy_ {
flex-direction: column;
box-orient: block-axis;
}
.warp___PZTtH {
width: 965px;
background: #fff;
box-shadow: 0px 2px 4px 0px rgba(232, 232, 233, 0.5);
border-radius: 4px;
padding: 20px 25px;
min-height: 672px;
}
.warp___PZTtH .title___dXPCC {
display: flex;
justify-content: space-between;
align-items: center;
}
.warp___PZTtH .Inputstyle___rcf3G {
width: 329px;
height: 38px;
}
.warp___PZTtH .buttonstyle___M_KMl {
width: 90px;
background: #196efd;
height: 30px;
color: #fff;
font-size: 12px;
}
.warp___PZTtH .Content___Rn74i {
margin-top: 10px;
}
.warp___PZTtH .imgstyle___CXbCN {
height: 177px;
width: 291px;
border-radius: 4px 4px 0px 0px;
overflow: hidden;
}
.warp___PZTtH .imgstyle___CXbCN img {
width: 100%;
transition: all 0.5s;
}
.warp___PZTtH .cardstyle___SNS7C {
width: 291px;
height: 277px;
box-shadow: 0px 2px 4px 0px #d6dae1;
border-radius: 4px;
}
.warp___PZTtH .paddingcard___GcUcD .titlefont___s3wwA {
font-size: 16px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #000000;
}
.warp___PZTtH .flexEnd___aqG5g {
display: flex;
flex-direction: row;
align-items: flex-end;
}
.warp___PZTtH .flexEnd___aqG5g > span {
display: flex;
align-items: center;
}
.warp___PZTtH .modalinput___sgKjb {
width: 342px;
height: 38px;
margin-left: 10px;
}
.warp___PZTtH .items___Xp5GB {
width: 100%;
height: 90px;
background: #ffffff;
border-radius: 4px;
border: 1px solid #ebf1fc;
display: flex;
padding: 20px;
justify-content: space-between;
}
.warp___PZTtH .items___Xp5GB img {
width: 50px;
height: 50px;
border-radius: 50%;
margin-right: 10px;
}
.warp___PZTtH .adminsstyle___QVwdG {
width: 56px;
height: 22px;
background: #fa6400;
border-radius: 2px;
margin-left: 10px;
text-align: center;
color: #fff;
font-size: 12px;
line-height: 22px;
}
.warp___PZTtH .upadmin___AuQU8 {
height: 20px;
font-size: 14px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #196efd;
line-height: 20px;
cursor: pointer;
}
.warp___PZTtH .yes___FZCFO {
font-size: 14px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #196efd;
line-height: 20px;
}
.warp___PZTtH .no___lt73Q {
font-size: 14px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #e30000;
line-height: 20px;
margin-left: 30px;
}

@ -1,796 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[54472],{
/***/ 75490:
/*!************************************************************!*\
!*** ./src/components/image-preview/index.tsx + 1 modules ***!
\************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ image_preview; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./src/components/image-preview/index.less
// extracted by mini-css-extract-plugin
// EXTERNAL MODULE: ./src/components/mediator.js
var mediator = __webpack_require__(91562);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules
var ReloadOutlined = __webpack_require__(33160);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js + 1 modules
var DownloadOutlined = __webpack_require__(23430);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js + 1 modules
var CloseOutlined = __webpack_require__(97937);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/components/image-preview/index.tsx
/* harmony default export */ var image_preview = (function () {
var _useState = (0,react.useState)(''),
_useState2 = slicedToArray_default()(_useState, 2),
url = _useState2[0],
setUrl = _useState2[1];
var _useState3 = (0,react.useState)(0),
_useState4 = slicedToArray_default()(_useState3, 2),
deg = _useState4[0],
setDeg = _useState4[1];
var saveUrl = (0,react.useRef)('');
(0,react.useEffect)(function () {
var unSub = mediator/* default.subscribe */.Z.subscribe('preview-image', function (value) {
setUrl(value);
// window.document.body
// document.body.style.height='100%'
document.body.style.overflow = 'hidden';
});
return unSub;
}, []);
(0,react.useEffect)(function () {
document.addEventListener('keydown', onViewEscClose);
return function () {
document.removeEventListener('keydown', onViewEscClose);
};
}, []);
(0,react.useEffect)(function () {
saveUrl.current = url;
}, [url]);
function onViewEscClose(e) {
if (e.keyCode == 27 && saveUrl.current) {
onClose();
}
}
// https://data.educoder.net/api/attachments/1571649
function onClose() {
// document.body.style.height='100%'
document.body.style.overflow = 'auto';
setUrl('');
}
function onRotate() {
setDeg(deg + 90);
}
var maskRef = (0,react.useRef)();
var previewWrapperRef = (0,react.useRef)();
var handleMaskClick = function handleMaskClick(e) {
if (e.nativeEvent.target === maskRef.current || e.nativeEvent.target === previewWrapperRef.current) {
onClose();
}
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment, {
children: !url ? null : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "image-preview-container",
ref: maskRef,
onClick: handleMaskClick,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "button-group",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
onClick: onRotate,
children: ["\u65CB\u8F6C", /*#__PURE__*/(0,jsx_runtime.jsx)(ReloadOutlined/* default */.Z, {})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
href: url,
children: ["\u4E0B\u8F7D", /*#__PURE__*/(0,jsx_runtime.jsx)(DownloadOutlined/* default */.Z, {})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
onClick: onClose,
children: ["\u5173\u95ED", /*#__PURE__*/(0,jsx_runtime.jsx)(CloseOutlined/* default */.Z, {})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "preview-wrp-group",
ref: previewWrapperRef,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: "image-preview",
src: url,
alt: "\u9884\u89C8\u5927\u56FE",
style: {
transform: "rotate(".concat(deg, "deg)")
}
})
})]
})
});
});
/***/ }),
/***/ 3968:
/*!*********************************************************************!*\
!*** ./src/pages/virtualSpaces/Lists/Notices/index.tsx + 2 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 */ Notices; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(42122);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(17061);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(17156);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
var _umi_production_exports = __webpack_require__(89214);
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
var modal = __webpack_require__(72423);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
var message = __webpack_require__(2453);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(83062);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
var input = __webpack_require__(79531);
// EXTERNAL MODULE: ./node_modules/antd/es/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(21687);
// EXTERNAL MODULE: ./node_modules/antd/es/divider/index.js + 1 modules
var divider = __webpack_require__(96074);
// EXTERNAL MODULE: ./node_modules/antd/es/pagination/index.js + 11 modules
var pagination = __webpack_require__(83338);
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
var markdown_editor = __webpack_require__(55373);
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 1 modules
var RenderHtml = __webpack_require__(12768);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(84519);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Notices/components/DelComponents.tsx
var DelShixun = function DelShixun(_ref) {
var classroomList = _ref.classroomList,
dispatch = _ref.dispatch;
var params = (0,_umi_production_exports.useParams)();
params['id'] = params['coursesId'];
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
title: "\u63D0\u793A",
open: classroomList.actionTabs.key === '删除' ? true : false,
okText: "\u786E\u5B9A",
cancelText: "\u53D6\u6D88",
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return (0,fetch/* default */.ZP)("/api/courses/".concat(params.id, "/delete_informs.json"), {
method: 'delete',
body: {
inform_id: classroomList.actionTabs.selectArrs
}
});
case 2:
res = _context.sent;
if (res.status === 0) {
message/* default.success */.ZP.success('删除成功');
dispatch({
type: 'classroomList/setActionTabs',
payload: {}
});
dispatch({
type: 'classroomList/getAnnouncementList',
payload: objectSpread2_default()({}, params)
});
dispatch({
type: 'classroomList/getClassroomLeftMenus',
payload: {
id: params.coursesId
}
});
}
case 4:
case "end":
return _context.stop();
}
}, _callee);
})),
onCancel: function onCancel() {
dispatch({
type: 'classroomList/setActionTabs',
payload: {}
});
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"
})
});
};
/* harmony default export */ var DelComponents = ((0,_umi_production_exports.connect)(function (_ref3) {
var classroomList = _ref3.classroomList;
return {
classroomList: classroomList
};
})(DelShixun));
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(82982);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(7);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Notices/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Noticesmodules = ({"flex_box_center":"flex_box_center___RVc_o","flex_space_between":"flex_space_between___Wc98J","flex_box_vertical_center":"flex_box_vertical_center___PKQSU","flex_box_center_end":"flex_box_center_end___h8gM4","flex_box_column":"flex_box_column___sZGhe","bg":"bg___lb8ve","containerTitle":"containerTitle___wFaPr","titleRightMenu":"titleRightMenu___HOMNe","containerDesc":"containerDesc___DmXjp","listItem":"listItem___y_IpW","listItemTitle":"listItemTitle___ZBWoc","info":"info___L2AoE","actionButton":"actionButton___ShG4d"});
// EXTERNAL MODULE: ./src/components/image-preview/index.tsx + 1 modules
var image_preview = __webpack_require__(75490);
// EXTERNAL MODULE: ./src/components/mediator.js
var mediator = __webpack_require__(91562);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Notices/index.tsx
// import MdEditor from '@/components/markdown-editor';
var Page = function Page(_ref) {
var classroomList = _ref.classroomList,
globalSetting = _ref.globalSetting,
dispatch = _ref.dispatch,
virtualSpaces = _ref.virtualSpaces;
var _useState = (0,react.useState)(-1),
_useState2 = slicedToArray_default()(_useState, 2),
editKey = _useState2[0],
setEditKey = _useState2[1];
var _useState3 = (0,react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
showAdd = _useState4[0],
setShowAdd = _useState4[1];
var _useState5 = (0,react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
sendIsLoading = _useState6[0],
setSendIsLoading = _useState6[1];
var _useState7 = (0,react.useState)({
name: "",
description: ""
}),
_useState8 = slicedToArray_default()(_useState7, 2),
editInfo = _useState8[0],
setEditInfo = _useState8[1];
var _useState9 = (0,react.useState)([]),
_useState10 = slicedToArray_default()(_useState9, 2),
list = _useState10[0],
setList = _useState10[1];
var _useState11 = (0,react.useState)(0),
_useState12 = slicedToArray_default()(_useState11, 2),
total = _useState12[0],
setTotal = _useState12[1];
var _useState13 = (0,react.useState)(true),
_useState14 = slicedToArray_default()(_useState13, 2),
loading = _useState14[0],
setLoading = _useState14[1];
var virtualSpacesDetails = virtualSpaces.virtualSpacesDetails;
var query = (0,_umi_production_exports.useParams)();
var _useState15 = (0,react.useState)({
page: 1,
limit: 100,
virtual_classroom_id: query.virtual_spacesId
}),
_useState16 = slicedToArray_default()(_useState15, 2),
params = _useState16[0],
setParams = _useState16[1];
(0,react.useEffect)(function () {
getData(params);
}, []);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(record) {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setLoading(true);
_context.next = 3;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/informs.json"), {
method: 'get',
params: record
});
case 3:
res = _context.sent;
if (res !== null && res !== void 0 && res.informs) {
setList((res === null || res === void 0 ? void 0 : res.informs) || []);
setTotal(res === null || res === void 0 ? void 0 : res.total_count);
}
setLoading(false);
case 6:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData(_x) {
return _ref2.apply(this, arguments);
};
}();
var handleChange = function handleChange(page) {
document.body.scrollIntoView();
params.page = page;
setParams(objectSpread2_default()({}, params));
getData(params);
};
var handleDelete = function handleDelete(e, id) {
modal/* default.confirm */.Z.confirm({
centered: true,
width: 424,
okText: '确定',
cancelText: '取消',
title: '提示',
icon: null,
className: 'custom-modal-divider',
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "font14",
children: "\u786E\u8BA4\u5220\u9664\u5417\uFF1F"
}),
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res, page;
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/virtual_classrooms/".concat(query.virtual_spacesId, "/informs/").concat(id, ".json"), {
method: 'delete',
body: {}
});
case 2:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
page = 1 === list.length && params.page > 1 ? params.page - 1 : params.page;
params.page = page;
setParams(objectSpread2_default()({}, params));
getData(params);
message/* default.success */.ZP.success('删除成功');
}
case 4:
case "end":
return _context2.stop();
}
}, _callee2);
}));
function onOk() {
return _onOk.apply(this, arguments);
}
return onOk;
}()
});
};
var actionClick = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(v, k) {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_context3.t0 = k;
_context3.next = _context3.t0 === "up" ? 3 : _context3.t0 === "down" ? 6 : _context3.t0 === "del" ? 9 : _context3.t0 === "edit" ? 11 : 18;
break;
case 3:
_context3.next = 5;
return dispatch({
type: 'announcement/informUp',
payload: objectSpread2_default()({
inform_id: v.id
}, params)
});
case 5:
return _context3.abrupt("break", 18);
case 6:
_context3.next = 8;
return dispatch({
type: 'announcement/informDown',
payload: objectSpread2_default()({
inform_id: v.id
}, params)
});
case 8:
return _context3.abrupt("break", 18);
case 9:
handleDelete(v, v.id);
return _context3.abrupt("break", 18);
case 11:
if (!showAdd) {
_context3.next = 14;
break;
}
message/* default.warning */.ZP.warning('当前有正在新建的通知公告,请先取消或者保存!');
return _context3.abrupt("return");
case 14:
editInfo.name = v.name;
editInfo.description = v.description;
setEditKey(v.key);
return _context3.abrupt("break", 18);
case 18:
if (k === 'down' || k === 'up') dispatch({
type: 'classroomList/getAnnouncementList',
payload: objectSpread2_default()({}, params)
});
case 19:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return function actionClick(_x2, _x3) {
return _ref3.apply(this, arguments);
};
}();
var renderAction = function renderAction(v, k) {
v.key = k;
return /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
children: (v === null || v === void 0 ? void 0 : v.can_remove) && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottom",
title: '删除',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont c-blue current ml30 icon-shanchu",
onClick: function onClick() {
actionClick(v, 'del');
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottom",
title: '编辑',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont c-blue current ml30 icon-bianjishijuan3x",
onClick: function onClick() {
actionClick(v, 'edit');
}
})
})]
})
});
};
var handleAdd = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
var res;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
if (!(editInfo.name === '')) {
_context4.next = 4;
break;
}
message/* default.error */.ZP.error('请输入标题');
_context4.next = 14;
break;
case 4:
if (!(editInfo.description === '')) {
_context4.next = 8;
break;
}
message/* default.error */.ZP.error('请输入内容');
_context4.next = 14;
break;
case 8:
setSendIsLoading(true);
_context4.next = 11;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/informs.json"), {
method: 'post',
body: objectSpread2_default()({}, editInfo)
});
case 11:
res = _context4.sent;
if (res.status === 0) {
message/* default.success */.ZP.success("发布成功");
getData(params);
setShowAdd(false);
setEditInfo({
name: "",
description: ""
});
}
setSendIsLoading(false);
case 14:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return function handleAdd() {
return _ref4.apply(this, arguments);
};
}();
var handleSave = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(v) {
var res;
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
if (!(editInfo.name === '')) {
_context5.next = 4;
break;
}
message/* default.error */.ZP.error('请输入标题');
_context5.next = 12;
break;
case 4:
if (!(editInfo.description === '')) {
_context5.next = 8;
break;
}
message/* default.error */.ZP.error('请输入内容');
_context5.next = 12;
break;
case 8:
_context5.next = 10;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/informs/").concat(v.id, ".json"), {
method: 'put',
body: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, params), editInfo), {}, {
inform_id: v.id
})
});
case 10:
res = _context5.sent;
if (res.status === 0) {
message/* default.success */.ZP.success("更新成功");
setEditKey(-1);
getData(params);
}
case 12:
case "end":
return _context5.stop();
}
}, _callee5);
}));
return function handleSave(_x4) {
return _ref5.apply(this, arguments);
};
}();
var handleClick = function handleClick(e) {
var _e$target = e.target,
nodeName = _e$target.nodeName,
src = _e$target.src;
if (nodeName === 'IMG') {
mediator/* default.publish */.Z.publish('preview-image', src);
console.log('src:', src);
}
};
var permission = (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_member) || (0,authority/* isSuperAdmins */.Ny)();
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
style: {
width: 965
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: Noticesmodules.bg,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Noticesmodules.containerTitle,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "font16",
children: '通知公告'
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Noticesmodules.titleRightMenu,
children: permission && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
onClick: function onClick() {
if (editKey !== -1) {
message/* default.warning */.ZP.warning('当前有正在修改的通知公告,请先取消或者保存!');
return;
}
setShowAdd(true);
},
style: {
marginLeft: 'auto'
},
ghost: true,
type: "primary",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-tianjia1 font14 mr5"
}), "\u65B0\u589E\u901A\u77E5\u516C\u544A"]
})
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
className: "bg-white pl30 pr30 pt30 pb20",
children: [showAdd && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "pb30",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
maxLength: 60,
onChange: function onChange(e) {
editInfo.name = e.target.value;
setEditInfo(objectSpread2_default()({}, editInfo));
},
suffix: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [editInfo.name.length, "/60"]
}),
size: 'middle',
placeholder: "\u8BF7\u5728\u6B64\u8F93\u5165\u6807\u9898\uFF0C\u6700\u591A60\u4E2A\u5B57\u7B26"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt15",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
watch: true,
onChange: function onChange(value) {
editInfo.description = value;
},
placeholder: "\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26"
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Noticesmodules.actionButton,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: "mr10",
type: "primary",
onClick: function onClick() {
setEditInfo({
name: "",
description: ""
});
setShowAdd(false);
},
ghost: true,
children: "\u53D6\u6D88"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
loading: sendIsLoading,
type: "primary",
onClick: function onClick() {
return handleAdd();
},
children: "\u63D0\u4EA4"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(skeleton/* default */.Z, {
loading: loading,
active: true,
paragraph: {
rows: 5
},
className: "mt30",
children: [total === 0 && !showAdd && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "pb30",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {})
}), list && list.map(function (v, k) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Noticesmodules.listItem,
children: [editKey === k && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
max: 60,
onChange: function onChange(e) {
editInfo.name = e.target.value;
setEditInfo(objectSpread2_default()({}, editInfo));
},
suffix: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [editInfo.name.length, "/60"]
}),
defaultValue: v.name,
size: 'middle',
placeholder: "\u8BF7\u5728\u6B64\u8F93\u5165\u6807\u9898\uFF0C\u6700\u591A60\u4E2A\u5B57\u7B26"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt15",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
watch: true,
onChange: function onChange(value) {
editInfo.description = value;
},
placeholder: "\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26",
defaultValue: v.description
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Noticesmodules.actionButton,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: "mr10",
type: "primary",
onClick: function onClick() {
return setEditKey(-1);
},
ghost: true,
children: "\u53D6\u6D88"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: function onClick() {
return handleSave(v);
},
children: "\u63D0\u4EA4"
})]
})]
}), editKey !== k && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Noticesmodules.listItemTitle,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "font20 c-black bold",
children: v.name
}), !showAdd && renderAction(v, k)]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: handleClick,
className: Noticesmodules.info,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: v.description
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {})]
}, k);
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
hideOnSinglePage: true,
onChange: function onChange(page) {
return handleChange(page);
},
current: params.page,
pageSize: params.limit,
total: total,
showQuickJumper: true,
showSizeChanger: false,
showTotal: function showTotal(total) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr10",
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-orange",
children: total
}), "\u6761\u6570\u636E"]
});
},
className: "tr pb20"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(DelComponents, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(image_preview/* default */.Z, {})]
});
};
/* harmony default export */ var Notices = ((0,_umi_production_exports.connect)(function (_ref6) {
var classroomList = _ref6.classroomList,
virtualSpaces = _ref6.virtualSpaces,
globalSetting = _ref6.globalSetting;
return {
classroomList: classroomList,
globalSetting: globalSetting,
virtualSpaces: virtualSpaces
};
})(Page));
/***/ })
}]);

@ -1,130 +0,0 @@
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Notices/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___RVc_o {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___Wc98J {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___PKQSU {
align-items: center;
box-align: center;
}
.flex_box_center_end___h8gM4 {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___sZGhe {
flex-direction: column;
box-orient: block-axis;
}
.bg___lb8ve {
background: white;
}
.containerTitle___wFaPr {
height: 88px;
line-height: 88px;
font-size: 18px;
padding: 0 30px;
color: #333;
border-bottom: 1px solid #eee;
display: box;
display: flex;
align-items: center;
box-align: center;
}
.containerTitle___wFaPr div:nth-child(1) {
flex: 1 1;
}
.titleRightMenu___HOMNe {
font-size: 16px;
}
.containerDesc___DmXjp {
height: 80px;
line-height: 80px;
padding: 0 30px;
display: box;
display: flex;
}
.containerDesc___DmXjp p:nth-child(1) {
flex: 1 1;
}
.listItem___y_IpW {
background: white;
}
.listItemTitle___ZBWoc {
display: box;
display: flex;
align-items: center;
box-align: center;
}
.listItemTitle___ZBWoc div:nth-child(1) {
flex: 1 1;
}
.info___L2AoE {
margin-top: 20px;
width: 855px;
}
.info___L2AoE p {
margin-top: 18px;
}
.actionButton___ShG4d {
text-align: right;
margin-top: 28px;
}
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/components/image-preview/index.less ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.image-preview-container {
display: flex;
flex-flow: column nowrap;
position: fixed;
align-items: center;
justify-content: center;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 99999;
background: rgba(0, 0, 0, 0.8);
}
.image-preview-container .image-preview {
transition: transform 0.4s linear;
max-width: 86%;
}
.image-preview-container .button-group {
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: flex-end;
position: absolute;
z-index: 101;
right: 10px;
top: 10px;
}
.image-preview-container .button-group a,
.image-preview-container .button-group button {
color: rgba(0, 0, 0, 0.65);
margin-right: 10px;
display: flex;
flex-flow: row nowrap;
align-items: center;
}
.preview-wrp-group {
overflow: auto;
width: 100%;
text-align: center;
}

File diff suppressed because it is too large Load Diff

@ -1,377 +0,0 @@
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Shixuns/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___apwA_ {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___ChrCI {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___qKmlK {
align-items: center;
box-align: center;
}
.flex_box_center_end___FL6K2 {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___K5JWe {
flex-direction: column;
box-orient: block-axis;
}
.warp___IFhum {
width: 965px;
background: #fff;
box-shadow: 0px 2px 4px 0px rgba(232, 232, 233, 0.5);
border-radius: 4px;
padding: 20px 25px;
min-height: 672px;
}
.warp___IFhum .title___Jpu5M {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.warp___IFhum .title___Jpu5M .ant-input-search {
width: 329px;
height: 38px;
}
.warp___IFhum .title___Jpu5M .ant-input-search-icon::before {
border: 0;
}
.warp___IFhum .buttonstyle___bTsQH {
background: #196efd;
height: 30px;
color: #fff;
}
.warp___IFhum .listWarp___V71V0 {
display: flex;
justify-content: flex-start;
align-items: center;
flex-wrap: wrap;
padding: 0;
}
.warp___IFhum .listWarp___V71V0 .li___A6rGI {
width: 291px;
height: 277px;
background: #ffffff;
box-shadow: 0px 4px 12px 0px rgba(204, 218, 238, 0.5), 0px 2px 8px 0px #dfe0e2;
border-radius: 4px;
margin-bottom: 21px;
margin-left: 21px;
}
.warp___IFhum .listWarp___V71V0 .li___A6rGI:hover img {
transform: scale(1.1);
}
.warp___IFhum .listWarp___V71V0 .li___A6rGI .img___fSdZC {
overflow: hidden;
height: calc(100% - 100px);
border-radius: 4px 4px 0 0;
}
.warp___IFhum .listWarp___V71V0 .li___A6rGI .img___fSdZC img {
width: 100%;
transition: all 0.5s;
}
.warp___IFhum .listWarp___V71V0 .li___A6rGI .name___Snabz {
height: 55px;
font-size: 16px;
font-weight: 600;
color: #000000;
padding: 0 10px;
width: 100%;
display: flex;
align-items: center;
padding-top: 35px;
}
.warp___IFhum .listWarp___V71V0 .li___A6rGI .name___Snabz .e___Ip6x_ {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 100%;
}
.warp___IFhum .listWarp___V71V0 .li___A6rGI .tags___zyHvf {
height: 45px;
display: flex;
align-items: center;
color: #000f37;
padding: 0 10px;
}
.warp___IFhum .listWarp___V71V0 .li___A6rGI .tags___zyHvf i {
color: #7d8592;
}
.warp___IFhum .listWarp___V71V0 .li___A6rGI .tags___zyHvf > span {
margin-right: 15px;
font-size: 12px;
}
.warp___IFhum .listWarp___V71V0 .li___A6rGI:nth-child(3n + 1),
.warp___IFhum .listWarp___V71V0 .li___A6rGI:first-child {
margin-left: 0 !important;
}
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Shixuns/components/SelectShixuns/index.less?modules ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___aqHcx {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___CONGd {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___lVyEh {
align-items: center;
box-align: center;
}
.flex_box_center_end___sI_Vv {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___kaVXu {
flex-direction: column;
box-orient: block-axis;
}
.wrp___rtMqf {
background: #fff;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.04);
padding-top: 10px;
}
.drawer___A_PEI [class='ant-drawer-content'] {
background: #f5f5f5 !important;
}
.drawer___A_PEI [class='ant-drawer-footer'] {
background: #fff;
box-shadow: 0 -4px 4px 0 rgba(0, 0, 0, 0.05);
position: relative;
border: 0;
}
.menu___K7LJA {
padding: 0;
margin: 15px 0;
position: relative;
z-index: 2;
}
.menu___K7LJA:hover {
z-index: 3;
}
.menu___K7LJA > li {
display: inline-block;
position: relative;
margin-right: 10px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
height: 32px;
line-height: 32px;
border-radius: 32px;
padding: 0 18px;
}
.menu___K7LJA > li a {
color: #4b4b4b;
}
.menu___K7LJA > li strong {
cursor: pointer;
font-size: 14px;
}
.menu___K7LJA > li:hover {
color: #fff;
background: #0152d9;
}
.actived___jzUGM {
background: #0152d9;
color: #fff;
}
.actived2___UNcoI {
color: #0152d9 !important;
}
.subTag___E54g9 {
color: #05101a;
cursor: pointer;
}
.directionName___EyQuv {
display: inline-block;
position: relative;
margin-right: 10px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
height: 32px;
line-height: 32px;
border-radius: 32px;
padding: 0 18px;
}
.menuDirection___qmHXv {
padding: 0;
margin: 15px 0;
display: inline-block;
position: relative;
z-index: 2;
}
.menuDirection___qmHXv:hover {
z-index: 3;
}
.menuDirection___qmHXv > li {
display: inline-block;
position: relative;
margin-right: 10px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
height: 32px;
line-height: 32px;
border-radius: 32px;
padding: 0 18px;
}
.menuDirection___qmHXv > li a {
color: #4b4b4b;
}
.menuDirection___qmHXv > li strong {
cursor: pointer;
font-size: 14px;
}
.menuDirection___qmHXv > li:hover {
color: #fff;
background: #196efd;
}
.menuDirection___qmHXv > li:hover > a > strong,
.menuDirection___qmHXv > li:hover > strong {
color: #fff;
background: #196efd;
}
.menuDirection___qmHXv > li:hover div {
display: block;
}
.menuDirection___qmHXv > li > div {
display: none;
position: absolute;
left: 0;
top: 30px;
width: 400px;
padding: 10px;
background: #fff;
max-height: 400px;
overflow: auto;
z-index: 8;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.menuDirection___qmHXv > li > div h2 {
cursor: pointer;
margin: 10px 0;
}
.menuDirection___qmHXv > li > div h2:hover {
color: #196efd;
}
.menuDirection___qmHXv > li > div ul {
padding-left: 0;
}
.menuDirection___qmHXv > li > div ul li {
cursor: pointer;
display: inline-block;
height: 30px;
line-height: 30px;
margin-right: 20px;
color: #999;
}
.menuDirection___qmHXv > li > div ul li:hover {
color: #196efd;
}
.listItem___ZO5AA {
padding: 25px 30px 25px 30px;
display: box;
display: flex;
background: white;
margin-top: 20px;
cursor: pointer;
}
.listItem___ZO5AA > div {
flex: 1 1;
}
.listItem___ZO5AA:hover {
box-shadow: 0 0 10px #ccc;
}
.info___raEGy {
margin-left: 20px;
}
.info___raEGy p {
margin-top: 18px;
}
.title___TE8wt {
display: box;
display: flex;
align-items: center;
box-align: center;
}
.title___TE8wt strong {
color: #333;
}
.titleLeft___cyNcR {
flex: 1 1;
}
.titleRight___N91L3 {
margin-top: 18px;
}
.titleRight___N91L3 a {
margin-right: 20px;
font-weight: bold;
}
.search___SLT83 {
width: 600px !important;
margin: 30px 0 30px 0;
}
.search___SLT83 input,
.search___SLT83 [class='ant-input-group-addon'] button {
height: 50px;
line-height: 50px;
padding: 0 30px;
font-size: 16px;
}
.description___xhaap {
-webkit-box-orient: vertical;
display: -webkit-box;
-webkit-line-clamp: 2;
overflow: hidden;
}
.menuCourse___jXQvt {
color: #999;
}
.menuCourse___jXQvt ul,
.menuCourse___jXQvt li {
margin: 0;
padding: 0;
list-style: none;
}
.menuCourse___jXQvt li {
display: inline-block;
margin-right: 30px;
}
.paginationWrap___lwYL6 {
margin: 0 auto;
display: box;
display: flex;
align-items: center;
width: 1200px;
}
.paginationWrap___lwYL6 button {
height: 32px;
}

@ -1,350 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[44510],{
/***/ 64082:
/*!******************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/InboxOutlined.js + 1 modules ***!
\******************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_InboxOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/InboxOutlined.js
// This icon file is generated automatically.
var InboxOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z" } }] }, "name": "inbox", "theme": "outlined" };
/* harmony default export */ var asn_InboxOutlined = (InboxOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/InboxOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var InboxOutlined_InboxOutlined = function InboxOutlined(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_InboxOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_InboxOutlined = (/*#__PURE__*/react.forwardRef(InboxOutlined_InboxOutlined));
/***/ }),
/***/ 78816:
/*!**********************************************************************************!*\
!*** ./src/pages/virtualSpaces/Lists/Syllabuses/AddOrEdit/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 */ Syllabuses_AddOrEdit; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(17061);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(42122);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(17156);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js
var objectDestructuringEmpty = __webpack_require__(13012);
var objectDestructuringEmpty_default = /*#__PURE__*/__webpack_require__.n(objectDestructuringEmpty);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/antd/es/form/index.js + 17 modules
var es_form = __webpack_require__(25159);
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
var input = __webpack_require__(79531);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./src/layouts/virtualDetail/TopBanner/index.tsx + 1 modules
var TopBanner = __webpack_require__(49620);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Syllabuses/AddOrEdit/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var AddOrEditmodules = ({"flex_box_center":"flex_box_center___dGBWW","flex_space_between":"flex_space_between___OO1WJ","flex_box_vertical_center":"flex_box_vertical_center___peOPn","flex_box_center_end":"flex_box_center_end___a1YW0","flex_box_column":"flex_box_column___Xrrkp","wrap":"wrap___V9rvh","form":"form___QKGo_","title":"title___s_AD0","file":"file___QeEs6"});
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
var markdown_editor = __webpack_require__(55373);
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(64768);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(84519);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
var _umi_production_exports = __webpack_require__(89214);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Syllabuses/AddOrEdit/index.tsx
var AddOrEdit = function AddOrEdit(_ref) {
var _formValue$title;
objectDestructuringEmpty_default()(_ref);
var _useState = (0,react.useState)({}),
_useState2 = slicedToArray_default()(_useState, 2),
formValue = _useState2[0],
setFormValue = _useState2[1];
var _Form$useForm = es_form/* default.useForm */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
var _useState3 = (0,react.useState)(true),
_useState4 = slicedToArray_default()(_useState3, 2),
loading = _useState4[0],
setLoading = _useState4[1];
var _useState5 = (0,react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
btnLoading = _useState6[0],
setBtnLoading = _useState6[1];
var _useState7 = (0,react.useState)(false),
_useState8 = slicedToArray_default()(_useState7, 2),
isShow = _useState8[0],
setIsShow = _useState8[1];
var ur = (0,_umi_production_exports.useParams)();
var virtual_id = ur === null || ur === void 0 ? void 0 : ur.virtual_spacesId;
(0,react.useEffect)(function () {
if (ur !== null && ur !== void 0 && ur.id) {
getEditData();
} else {
setIsShow(true);
}
}, []);
var getEditData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res, formData;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(virtual_id, "/syllabuses/").concat(ur === null || ur === void 0 ? void 0 : ur.id, "/edit.json"), {
method: "get"
});
case 2:
res = _context.sent;
if (res) {
formData = {
title: res.title,
description: res.description,
attachment_ids: (0,MultiUpload/* coverToFileList */.z)(res.attachments)
};
console.log(formData, 'formData');
form.setFieldsValue(objectSpread2_default()({}, formData));
setFormValue(objectSpread2_default()({}, formData));
setIsShow(true);
}
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getEditData() {
return _ref2.apply(this, arguments);
};
}();
var handleFinish = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(values) {
var _res;
var bodyData, _bodyData$attachment_, res, _res2;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
bodyData = objectSpread2_default()({}, formValue);
if (bodyData.attachment_ids) {
bodyData.attachment_ids = bodyData === null || bodyData === void 0 ? void 0 : (_bodyData$attachment_ = bodyData.attachment_ids) === null || _bodyData$attachment_ === void 0 ? void 0 : _bodyData$attachment_.map(function (v) {
return v.response.id;
});
}
setBtnLoading(true);
if (!(ur !== null && ur !== void 0 && ur.id)) {
_context2.next = 9;
break;
}
_context2.next = 6;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(virtual_id, "/syllabuses/").concat(ur === null || ur === void 0 ? void 0 : ur.id, ".json"), {
method: "put",
body: objectSpread2_default()({}, bodyData)
});
case 6:
res = _context2.sent;
_context2.next = 12;
break;
case 9:
_context2.next = 11;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(virtual_id, "/syllabuses.json"), {
method: "post",
body: objectSpread2_default()({}, bodyData)
});
case 11:
res = _context2.sent;
case 12:
if ((_res = res) !== null && _res !== void 0 && _res.virtual_classroom_id) {
_umi_production_exports.history.push("/vspaces/".concat(virtual_id, "/syllabuses/").concat((_res2 = res) === null || _res2 === void 0 ? void 0 : _res2.id, "/detail"));
}
setBtnLoading(false);
case 14:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function handleFinish(_x) {
return _ref3.apply(this, arguments);
};
}();
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: AddOrEditmodules.wrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(TopBanner/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: AddOrEditmodules.form,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: AddOrEditmodules.title,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
onClick: function onClick() {
return _umi_production_exports.history.push("/vspaces/".concat(virtual_id, "/syllabuses"));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-zuoshangjiaofanhui"
}), "\u8FD4\u56DE"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u65B0\u5EFA\u6559\u5B66\u5927\u7EB2"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
colon: false,
form: form,
scrollToFirstError: true,
onValuesChange: function onValuesChange() {
setFormValue(objectSpread2_default()({}, form.getFieldsValue()));
},
onFinish: handleFinish,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
name: "title",
label: "\u5927\u7EB2\u6807\u9898",
rules: [{
required: true,
message: "请输入大纲标题"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
maxLength: 60,
suffix: "".concat(((_formValue$title = formValue.title) === null || _formValue$title === void 0 ? void 0 : _formValue$title.length) || 0, "/60"),
placeholder: "\u8BF7\u8F93\u5165\u5927\u7EB2\u6807\u9898"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
margin: '20px 0 12px 10px'
},
children: "\u5927\u7EB2\u5185\u5BB9"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
className: "ml10",
name: "description"
// label="大纲内容"
,
rules: [
// { required: true, message: "请输入大纲内容" },
{
max: 50000,
message: '作业简介最大限制50000个字符'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
watch: true,
defaultValue: formValue.description
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
className: "ml10",
name: "attachment_ids",
label: "\u9644\u4EF6",
children: isShow && /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {
className: AddOrEditmodules.file,
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shangchuan1 font14 mr5"
}), "\u4E0A\u4F20\u9644\u4EF6"]
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
textAlign: 'right'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default.Item */.Z.Item, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: function onClick() {
return _umi_production_exports.history.push("/vspaces/".concat(virtual_id, "/syllabuses"));
},
className: "mr10",
children: "\u53D6\u6D88"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
htmlType: "submit",
loading: btnLoading,
children: "\u786E\u8BA4"
})]
})
})]
})]
})]
});
};
/* harmony default export */ var Syllabuses_AddOrEdit = (AddOrEdit);
/***/ }),
/***/ 33507:
/*!*******************************************************!*\
!*** ./node_modules/antd/es/style/motion/collapse.js ***!
\*******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__) {
const genCollapseMotion = token => ({
[token.componentCls]: {
// For common/openAnimation
[`${token.antCls}-motion-collapse-legacy`]: {
overflow: 'hidden',
'&-active': {
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
}
},
[`${token.antCls}-motion-collapse`]: {
overflow: 'hidden',
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
}
}
});
/* harmony default export */ __webpack_exports__["Z"] = (genCollapseMotion);
/***/ })
}]);

@ -1,354 +0,0 @@
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/layouts/virtualDetail/TopBanner/index.less?modules ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.bg___vd7LL {
height: 220px;
width: 100%;
position: relative;
margin-bottom: 90px;
background-size: cover !important;
}
.bg___vd7LL .headName___sPZlC {
position: absolute;
z-index: 11;
left: 50%;
top: 0;
height: 170px;
width: 1200px;
transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: center;
}
.bg___vd7LL .headName___sPZlC span {
font-size: 40px;
font-weight: bold;
color: #ffffff;
line-height: 50px;
letter-spacing: 8px;
text-shadow: 0px 2px 4px rgba(2, 4, 68, 0.5);
background: linear-gradient(270deg, rgba(28, 60, 160, 0) 0%, #1c3ca0 51%, rgba(28, 60, 160, 0) 100%);
padding: 10px 70px;
}
.bg___vd7LL > aside {
width: 1200px;
height: 130px;
background: rgba(255, 255, 255, 0);
box-shadow: 0px 6px 8px 0px #edf0f880;
border-radius: 4px;
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
display: flex;
align-items: center;
justify-content: center;
position: absolute;
z-index: 10;
bottom: -64px;
left: 50%;
transform: translateX(-50%);
}
.bg___vd7LL > aside > div {
width: 1160px;
height: 90px;
background: #ffffff;
border-radius: 4px;
display: flex;
align-items: center;
padding: 0 20px;
}
.bg___vd7LL > aside > div .name___MBElV {
font-size: 20px;
color: #111319;
flex: 1 1;
padding-right: 225px;
}
.bg___vd7LL > aside > div .member___StkKn {
flex: 1 1;
margin-left: 10px;
}
.bg___vd7LL > aside > div .member___StkKn > div {
display: inline-block;
}
.bg___vd7LL > aside > div .member___StkKn > div > i {
margin-right: 16px;
font-size: 20px;
}
.bg___vd7LL > aside > div .member___StkKn > div > span {
font-size: 20px;
font-weight: bold;
color: #464f66;
}
.bg___vd7LL > aside > div button {
flex-shrink: 0;
margin-left: 15px;
}
.bg___vd7LL > aside > div button > span {
font-size: 12px;
}
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/components/AddOrEdit/index.less?modules ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___ze4wf {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___JpH0B {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___NbRyF {
align-items: center;
box-align: center;
}
.flex_box_center_end___fUFoB {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___i2BZL {
flex-direction: column;
box-orient: block-axis;
}
.form____yVeV > aside {
font-size: 12px;
color: #5f6367;
margin-top: 20px;
}
.form____yVeV input {
border-radius: 2px;
border: 1px solid #e1e1e1;
margin-left: 4px;
}
.form____yVeV label {
height: 32px;
color: #000000 !important;
line-height: 32px !important;
}
.form____yVeV label::before {
margin-top: 2px;
}
.form____yVeV .btn___X16NC {
padding: 0 16px;
background: #f6f7f9 linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
box-shadow: 0px 2px 4px 0px #e0dfe1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 2px;
border: 1px solid #bacffe;
height: 32px;
line-height: 30px;
color: #165dff;
cursor: pointer;
}
.form____yVeV .btn___X16NC i {
margin-right: 3px;
font-size: 14px;
}
.form____yVeV .img___sQnKq {
position: relative;
width: 200px;
height: auto;
background-color: #f4f3f4;
display: flex;
align-items: center;
justify-content: center;
}
.form____yVeV .img___sQnKq > div {
position: absolute;
right: -6px;
top: -6px;
cursor: pointer;
background-color: #fff;
width: 16px;
height: 16px;
border-radius: 50%;
}
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/ui-customization/reset.less?modules ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___vG4eV {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___qVVxe {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___P8Z8s {
align-items: center;
box-align: center;
}
.flex_box_center_end___VMme3 {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___VMHwm {
flex-direction: column;
box-orient: block-axis;
}
.dropdownmenus___oVzoj {
width: 104px;
}
.dropdownmenus___oVzoj [class~='ant-dropdown-menu-item'] {
text-align: center;
}
.dropdownmenus___oVzoj [class~='ant-dropdown-menu-item']:hover {
color: #165dff !important;
background: #fff;
}
.dropdownmenus___oVzoj [class~='ant-dropdown-menu'] {
padding: 10px 0 !important;
}
.popupClassNames___OcZq7 {
background: yellow;
}
.selectdown___mmcA8 [class~='ant-select-item-option-selected'] {
font-weight: 400 !important;
background-color: #edf2ff !important;
}
.selectdown___mmcA8 [class~='ant-select-item-option-active'] {
color: #165dff !important;
background-color: #fff !important;
}
.selectdown___mmcA8 [class~='ant-select-item-option'] {
padding: 10px 24px;
}
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Syllabuses/AddOrEdit/index.less?modules ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___dGBWW {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___OO1WJ {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___peOPn {
align-items: center;
box-align: center;
}
.flex_box_center_end___a1YW0 {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___Xrrkp {
flex-direction: column;
box-orient: block-axis;
}
.wrap___V9rvh {
margin-bottom: 20px;
}
.wrap___V9rvh .form___QKGo_ {
padding: 20px;
width: 1200px;
margin: 0 auto;
background: #ffffff;
box-shadow: 0px 2px 4px 0px rgba(232, 232, 233, 0.5);
border-radius: 4px;
}
.wrap___V9rvh .form___QKGo_ .title___s_AD0 {
display: flex;
align-items: center;
font-size: 14px;
height: 26px;
margin-bottom: 30px;
}
.wrap___V9rvh .form___QKGo_ .title___s_AD0 span:first-child {
color: #333;
cursor: pointer;
}
.wrap___V9rvh .form___QKGo_ .title___s_AD0 span:last-child {
font-size: 14px;
font-weight: 500;
color: #464f66;
margin-left: 20px;
}
.wrap___V9rvh .file___QeEs6 div[class~='ant-upload-select'] {
margin-bottom: 8px;
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/components/MultiUpload/index.less ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.upload_button {
width: 108px;
height: 32px;
background: #F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 2px;
border: 1px solid #BACFFE;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #3061D0;
display: inline-block;
text-align: center;
align-items: center;
align-content: center;
}
.upload_button .aBtn_img {
width: 14px;
height: 14px;
margin-top: -3px;
margin-right: 8px;
}
.upload_button:hover {
width: 108px;
height: 32px;
background: #F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 2px;
border: 1px solid #BACFFE;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #3061D0;
}
.upload_button:active {
width: 108px;
height: 32px;
background: #F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 2px;
border: 1px solid #BACFFE;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #3061D0;
}
.upload_text {
width: 129px;
height: 20px;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #5F6367;
line-height: 20px;
margin-left: 16px;
}

@ -1,175 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[25896],{
/***/ 30769:
/*!*******************************************************************************!*\
!*** ./src/pages/virtualSpaces/Lists/Syllabuses/Detail/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 */ Detail; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(17061);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(17156);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js
var objectDestructuringEmpty = __webpack_require__(13012);
var objectDestructuringEmpty_default = /*#__PURE__*/__webpack_require__.n(objectDestructuringEmpty);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Syllabuses/Detail/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Detailmodules = ({"flex_box_center":"flex_box_center___xJr3u","flex_space_between":"flex_space_between___L5A89","flex_box_vertical_center":"flex_box_vertical_center___bTigv","flex_box_center_end":"flex_box_center_end___CxrI8","flex_box_column":"flex_box_column___o7q6C","wrap":"wrap___lgXkf","form":"form___xSAt4","title":"title___tt86_","name":"name___VuMcH","files":"files___aa4i9","list":"list___cbSOA"});
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(84519);
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 1 modules
var RenderHtml = __webpack_require__(12768);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(59758);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
var _umi_production_exports = __webpack_require__(89214);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Syllabuses/Detail/index.tsx
var AddOrEdit = function AddOrEdit(_ref) {
var _data$attachments, _data$attachments2;
objectDestructuringEmpty_default()(_ref);
var _useState = (0,react.useState)(true),
_useState2 = slicedToArray_default()(_useState, 2),
loading = _useState2[0],
setLoading = _useState2[1];
var _useState3 = (0,react.useState)({}),
_useState4 = slicedToArray_default()(_useState3, 2),
data = _useState4[0],
setData = _useState4[1];
var ur = (0,_umi_production_exports.useParams)();
var virtual_id = ur === null || ur === void 0 ? void 0 : ur.virtual_spacesId;
(0,react.useEffect)(function () {
getData();
}, []);
var getData = /*#__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 (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(virtual_id, "/syllabuses/").concat(ur === null || ur === void 0 ? void 0 : ur.id, ".json"), {
method: "get"
});
case 2:
res = _context.sent;
setData(res || []);
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData() {
return _ref2.apply(this, arguments);
};
}();
var handleEdit = function handleEdit() {
_umi_production_exports.history.push("/vspaces/".concat(virtual_id, "/syllabuses/").concat(ur === null || ur === void 0 ? void 0 : ur.id, "/edit"));
};
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Detailmodules.wrap,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.form,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.title,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
onClick: function onClick() {
return _umi_production_exports.history.push("/vspaces/".concat(virtual_id, "/syllabuses"));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-zuoshangjiaofanhui"
}), "\u8FD4\u56DE"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml20",
children: "\u67E5\u770B\u6559\u5B66\u5927\u7EB2\u8BE6\u60C5"
}), (data === null || data === void 0 ? void 0 : data.can_remove) && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
style: {
marginLeft: 'auto'
},
onClick: handleEdit,
type: "primary",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-bianji7 mr5 font14"
}), "\u7F16\u8F91\u5927\u7EB2"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.name,
children: [" ", data === null || data === void 0 ? void 0 : data.title]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: (data === null || data === void 0 ? void 0 : data.description) || ''
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
className: Detailmodules.files,
children: [!!(data !== null && data !== void 0 && (_data$attachments = data.attachments) !== null && _data$attachments !== void 0 && _data$attachments.length) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u9644\u4EF6"
}), data === null || data === void 0 ? void 0 : (_data$attachments2 = data.attachments) === null || _data$attachments2 === void 0 ? void 0 : _data$attachments2.map(function (e) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.list,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fujian2"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
fontSize: 14,
fontWeight: 600,
color: '#464F66',
marginLeft: 10
},
children: e === null || e === void 0 ? void 0 : e.title
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#7D8592',
marginLeft: 20,
marginRight: 50
},
children: e === null || e === void 0 ? void 0 : e.filesize
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
href: env/* default.API_SERVER */.Z.API_SERVER + e.url,
className: "c-spaces-primary current",
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiazai2 mr10"
}), "\u4E0B\u8F7D"]
})]
});
})]
})]
})
});
};
/* harmony default export */ var Detail = (AddOrEdit);
/***/ })
}]);

@ -1,206 +0,0 @@
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Syllabuses/Detail/index.less?modules ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___xJr3u {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___L5A89 {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___bTigv {
align-items: center;
box-align: center;
}
.flex_box_center_end___CxrI8 {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___o7q6C {
flex-direction: column;
box-orient: block-axis;
}
.wrap___lgXkf {
margin-bottom: 20px;
}
.wrap___lgXkf .form___xSAt4 {
padding: 20px;
width: 965px;
background: #ffffff;
border-radius: 4px;
}
.wrap___lgXkf .form___xSAt4 .title___tt86_ {
display: flex;
align-items: center;
font-size: 14px;
height: 26px;
margin-bottom: 20px;
}
.wrap___lgXkf .form___xSAt4 .title___tt86_ > span:first-child {
color: #333;
cursor: pointer;
}
.wrap___lgXkf .form___xSAt4 .title___tt86_ > span:last-child {
font-size: 14px;
font-weight: 500;
color: #464f66;
}
.wrap___lgXkf .form___xSAt4 .name___VuMcH {
font-size: 18px;
font-weight: 600;
color: #464f66;
line-height: 18px;
margin-bottom: 13px;
margin-top: 23px;
}
.wrap___lgXkf .form___xSAt4 .files___aa4i9 > div:first-child {
font-size: 16px;
font-weight: 600;
color: #464f66;
margin-top: 30px;
margin-bottom: 20px;
}
.wrap___lgXkf .form___xSAt4 .files___aa4i9 .list___cbSOA {
display: flex;
align-items: center;
margin-bottom: 7px;
}
.wrap___lgXkf .form___xSAt4 .files___aa4i9 .list___cbSOA:hover > * {
color: #0152d9 !important;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/PreviewAll/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.wrp___dq7YK {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
width: 100%;
height: 100%;
left: 0;
top: 0;
z-index: 108;
}
.wrp___dq7YK.bgBlack___ARIUV {
background: rgba(0, 0, 0, 0.5);
}
.wrp___dq7YK img,
.wrp___dq7YK video {
max-width: 100%;
max-height: 80%;
text-align: center;
}
.wrp___dq7YK iframe {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
background: #fff;
border: none;
}
.monaco___VnZC3 {
position: absolute;
height: 100%;
width: 100%;
}
.darkBlue___UprA9 * {
font-size: 14px;
}
.darkBlue___UprA9 [class~='margin'],
.darkBlue___UprA9 [class~='monaco-editor-background'] {
background: #0a0e2d !important;
}
.darkBlue___UprA9 [class~='line-numbers'] {
color: white !important;
}
.close___LKoWu {
position: absolute;
right: 40px;
top: 40px;
z-index: 10;
display: flex;
}
.close___LKoWu > span {
background: #4a4a4a;
color: #fff;
width: 40px;
height: 40px;
border-radius: 4px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
margin-left: 10px;
}
.embed___hvpEJ {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
/*!*******************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[4].oneOf[1].use[2]!./src/components/monaco-editor/index.css ***!
\*******************************************************************************************************************************************************************************************************************************************/
.my-monaco-editor div,
.my-diff-editor div {
font-size: inherit;
}
.my-error-line-wrp {
width: calc(100% - 20px) !important;
background: rgba(245, 0, 0, 0.2) !important;
height: auto !important;
color: rgba(245, 0, 0, 1);
}
.noCopyPaste .quick-input-widget {
display: none !important;
}
.breakpoints-select {
background: #FF0000;
width: 8px !important;
height: 8px !important;
left: 7px !important;
top: 7px;
border-radius: 4px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
pointer-events: none;
}
.breakpoints-fake {
background: rgba(255, 0, 0, 0.5);
width: 8px !important;
height: 8px !important;
left: 7px !important;
top: 7px;
border-radius: 4px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
pointer-events: none;
}
.highlighted-line {
background: #4B4B18;
}

@ -1,963 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[71218],{
/***/ 99611:
/*!****************************************************************************!*\
!*** ./node_modules/@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/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
/***/ }),
/***/ 6171:
/*!*****************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js + 1 modules ***!
\*****************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_LeftOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js
// This icon file is generated automatically.
var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
/* harmony default export */ var asn_LeftOutlined = (LeftOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var LeftOutlined_LeftOutlined = function LeftOutlined(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_LeftOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_LeftOutlined = (/*#__PURE__*/react.forwardRef(LeftOutlined_LeftOutlined));
/***/ }),
/***/ 18073:
/*!******************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/RightOutlined.js + 1 modules ***!
\******************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ icons_RightOutlined; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_RightOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_RightOutlined = (/*#__PURE__*/react.forwardRef(RightOutlined_RightOutlined));
/***/ }),
/***/ 82982:
/*!*****************************************!*\
!*** ./src/components/NoData/index.tsx ***!
\*****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 4977);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 71577);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
var noData = function noData(_ref) {
var img = _ref.img,
_ref$buttonProps = _ref.buttonProps,
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
_ref$styles = _ref.styles,
styles = _ref$styles === void 0 ? {} : _ref$styles,
customText = _ref.customText,
ButtonText = _ref.ButtonText,
ButtonClick = _ref.ButtonClick,
Buttonclass = _ref.Buttonclass,
ButtonTwo = _ref.ButtonTwo,
imgStyles = _ref.imgStyles,
_ref$loading = _ref.loading,
loading = _ref$loading === void 0 ? false : _ref$loading;
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", {
className: "tc animated fadeIn",
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, {
color: '#999',
margin: '100px auto',
visibility: loading ? 'hidden' : 'visible'
}), styles),
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", {
src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__,
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles)
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", {
className: "mt20 font14",
children: customText || '暂时还没有相关数据哦!'
}), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
className: Buttonclass,
onClick: ButtonClick
}, buttonProps), {}, {
children: ButtonText
})), ButtonTwo && ButtonTwo]
});
};
/* harmony default export */ __webpack_exports__["Z"] = (noData);
/***/ }),
/***/ 95307:
/*!************************************************************************!*\
!*** ./src/pages/virtualSpaces/Lists/Syllabuses/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 */ Syllabuses; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(42122);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(17061);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(17156);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(70215);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
var _umi_production_exports = __webpack_require__(89214);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Syllabuses/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Syllabusesmodules = ({"flex_box_center":"flex_box_center___bG6f2","flex_space_between":"flex_space_between___0Pixx","flex_box_vertical_center":"flex_box_vertical_center___v3mUl","flex_box_center_end":"flex_box_center_end___QIbtC","flex_box_column":"flex_box_column___INC4y","wrap":"wrap___n74tH","btnBg":"btnBg___A3ub8","control":"control___xllDL","label":"label___t4wLa","list":"list___GJns6","left":"left___M4hex","tags":"tags___nn2E8","right":"right___TedWb"});
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(83062);
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
var modal = __webpack_require__(72423);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
var message = __webpack_require__(2453);
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
var input = __webpack_require__(79531);
// EXTERNAL MODULE: ./node_modules/antd/es/select/index.js + 42 modules
var es_select = __webpack_require__(79035);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(21687);
// EXTERNAL MODULE: ./node_modules/antd/es/pagination/index.js + 11 modules
var pagination = __webpack_require__(83338);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(84519);
// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
var lodash = __webpack_require__(96486);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(82982);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(7);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Syllabuses/index.tsx
var _excluded = ["virtualSpaces", "dispatch", "user"];
var Page = function Page(_ref) {
var _user$userInfo2;
var virtualSpaces = _ref.virtualSpaces,
dispatch = _ref.dispatch,
user = _ref.user,
props = objectWithoutProperties_default()(_ref, _excluded);
var initParams = {
page: 1,
limit: 20,
search: '',
save_search: '',
school_id: null,
save_school_id: null
};
var _useState = (0,react.useState)(initParams),
_useState2 = slicedToArray_default()(_useState, 2),
params = _useState2[0],
setParams = _useState2[1];
var _useState3 = (0,react.useState)(true),
_useState4 = slicedToArray_default()(_useState3, 2),
loading = _useState4[0],
setLoading = _useState4[1];
var _useState5 = (0,react.useState)([]),
_useState6 = slicedToArray_default()(_useState5, 2),
majorData = _useState6[0],
setMajorData = _useState6[1];
var _useState7 = (0,react.useState)([]),
_useState8 = slicedToArray_default()(_useState7, 2),
list = _useState8[0],
setList = _useState8[1];
var _useState9 = (0,react.useState)(0),
_useState10 = slicedToArray_default()(_useState9, 2),
total = _useState10[0],
setTotal = _useState10[1];
var ur = (0,_umi_production_exports.useParams)();
var virtual_id = ur === null || ur === void 0 ? void 0 : ur.virtual_spacesId;
var virtualSpacesDetails = virtualSpaces.virtualSpacesDetails;
(0,react.useEffect)(function () {
getData(params);
}, []);
(0,react.useEffect)(function () {
var _user$userInfo;
if (user !== null && user !== void 0 && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.login) {
getMajorData();
}
}, [user === null || user === void 0 ? void 0 : (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login]);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(record) {
var sendData, res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
sendData = (0,lodash.cloneDeep)(record);
setLoading(true);
_context.next = 4;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(virtual_id, "/syllabuses.json"), {
method: "get",
params: sendData
});
case 4:
res = _context.sent;
if (res !== null && res !== void 0 && res.syllabuses) {
setTotal(res === null || res === void 0 ? void 0 : res.total_count);
setList((res === null || res === void 0 ? void 0 : res.syllabuses) || []);
}
setLoading(false);
case 7:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData(_x) {
return _ref2.apply(this, arguments);
};
}();
var getMajorData = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(virtual_id, "/schools.json"), {
method: "get"
});
case 2:
res = _context2.sent;
setMajorData((0,lodash.isArray)(res) ? res : []);
case 4:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function getMajorData() {
return _ref3.apply(this, arguments);
};
}();
var handleChangePage = function handleChangePage(page, limit) {
params.page = page;
params.limit = limit;
setParams(objectSpread2_default()({}, params));
getData(params);
};
var handleSelect = function handleSelect(v) {
params.save_school_id = v || null;
setParams(objectSpread2_default()({}, params));
};
var handleSearch = function handleSearch(v) {
params.save_search = v;
setParams(objectSpread2_default()({}, params));
};
var refer = function refer() {
params.search = params.save_search;
params.school_id = params.save_school_id;
setParams(objectSpread2_default()({}, params));
getData(params);
};
var renderList = function renderList() {
return list === null || list === void 0 ? void 0 : list.map(function (e) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
onClick: function onClick() {
return (0,util/* openNewWindow */.xg)("/vspaces/".concat(virtual_id, "/syllabuses/").concat(e.id, "/detail"));
},
className: Syllabusesmodules.list,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Syllabusesmodules.left,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: e === null || e === void 0 ? void 0 : e.title
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Syllabusesmodules.tags,
children: [!!e.school_name && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: e.school_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: e.user_name
}), !!(e !== null && e !== void 0 && e.attachments_count) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u9644\u4EF6\uFF1A", e.attachments_count]
})]
})]
}), (e === null || e === void 0 ? void 0 : e.can_remove) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Syllabusesmodules.right,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottom",
title: "\u5220\u9664\u5927\u7EB2",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: function onClick(k) {
return handleDelete(k, e);
},
className: "iconfont icon-piliangshanchubeifen c-spaces-primary current"
})
})
})]
}, e.id);
});
};
var handleDelete = function handleDelete(e, item) {
e.stopPropagation();
e.preventDefault();
modal/* default.confirm */.Z.confirm({
centered: true,
width: 424,
okText: '确定',
cancelText: '取消',
title: '提示',
icon: null,
className: 'custom-modal-divider',
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "font14",
children: ["\u786E\u8BA4\u5C06\u6559\u5B66\u5927\u7EB2\u300A", item === null || item === void 0 ? void 0 : item.title, "\u300B\u5220\u9664\u5417\uFF1F"]
}),
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var res, page;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(virtual_id, "/syllabuses/").concat(item === null || item === void 0 ? void 0 : item.id, ".json"), {
method: 'delete',
body: {}
});
case 2:
res = _context3.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
page = 1 === list.length && params.page > 1 ? params.page - 1 : params.page;
params.page = page;
setParams(objectSpread2_default()({}, params));
getData(params);
dispatch({
type: 'virtualSpaces/getVirtualSpacesDetails',
payload: {
id: virtual_id
}
});
message/* default.success */.ZP.success('删除成功');
}
case 4:
case "end":
return _context3.stop();
}
}, _callee3);
}));
function onOk() {
return _onOk.apply(this, arguments);
}
return onOk;
}()
});
};
var permission = (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_member) || (0,authority/* isSuperAdmins */.Ny)();
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Syllabusesmodules.wrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Syllabusesmodules.control,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u6807\u9898\u641C\u7D22",
value: params === null || params === void 0 ? void 0 : params.save_search,
onChange: function onChange(e) {
return handleSearch(e.target.value);
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Syllabusesmodules.label,
children: "\u9662\u6821\u5355\u4F4D"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select/* default */.Z, {
placeholder: "\u8BF7\u9009\u62E9",
allowClear: true,
value: params === null || params === void 0 ? void 0 : params.save_school_id,
onChange: function onChange(v) {
return handleSelect(v);
},
children: majorData === null || majorData === void 0 ? void 0 : majorData.map(function (e) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select/* default.Option */.Z.Option, {
value: e.school_id,
children: e.school_name
}, e.school_id);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: Syllabusesmodules.btnBg,
ghost: true,
type: "primary",
onClick: refer,
children: "\u67E5\u8BE2"
}), permission && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
onClick: function onClick() {
return _umi_production_exports.history.push("/vspaces/".concat(virtual_id, "/syllabuses/add"));
},
style: {
marginLeft: 'auto'
},
ghost: true,
type: "primary",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-tianjia1 font14 mr5"
}), "\u65B0\u589E\u6559\u5B66\u5927\u7EB2"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(skeleton/* default */.Z, {
loading: loading,
active: true,
paragraph: {
rows: 5
},
children: !!list.length ? renderList() : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
buttonProps: {
ghost: true,
type: 'primary'
},
ButtonClick: function ButtonClick() {
_umi_production_exports.history.push("/vspaces/".concat(virtual_id, "/syllabuses/add"));
},
ButtonText: permission ? /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-tianjia1 font14 mr5"
}), "\u65B0\u589E\u6559\u5B66\u5927\u7EB2"]
}) : '',
customText: "\u6559\u5B66\u5927\u7EB2\u8FD8\u6CA1\u6709\u5185\u5BB9\uFF0C".concat(permission ? "\u53EF\u70B9\u51FB\"\u65B0\u589E\u6559\u5B66\u5927\u7EB2\"\u6309\u94AE\u6DFB\u52A0" : '敬请期待,谢谢')
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
showTotal: function showTotal(total) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr10",
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-orange",
children: total
}), "\u6761\u6570\u636E"]
});
},
showQuickJumper: true,
hideOnSinglePage: true,
onChange: handleChangePage,
pageSize: params === null || params === void 0 ? void 0 : params.limit,
current: params.page,
total: total,
className: "tc mt20"
})]
});
};
/* harmony default export */ var Syllabuses = ((0,_umi_production_exports.connect)(function (_ref4) {
var virtualSpaces = _ref4.virtualSpaces,
user = _ref4.user;
return {
virtualSpaces: virtualSpaces,
user: user
};
})(Page));
/***/ }),
/***/ 79531:
/*!*********************************************************!*\
!*** ./node_modules/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/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
var context = __webpack_require__(53124);
// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
var form_context = __webpack_require__(65223);
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js
var style = __webpack_require__(47673);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Group.js
const Group = props => {
const {
getPrefixCls,
direction
} = (0,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_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.useContext)(form_context/* FormItemInputContext */.aM);
const groupFormItemContext = (0,react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
isFormItemInput: false
}), [formItemContext]);
if (false) {}
return wrapSSR( /*#__PURE__*/react.createElement("span", {
className: cls,
style: props.style,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave,
onFocus: props.onFocus,
onBlur: props.onBlur
}, /*#__PURE__*/react.createElement(form_context/* FormItemInputContext.Provider */.aM.Provider, {
value: groupFormItemContext
}, props.children)));
};
/* harmony default export */ var input_Group = (Group);
// EXTERNAL MODULE: ./node_modules/antd/es/input/Input.js + 1 modules
var Input = __webpack_require__(82586);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
var AntdIcon = __webpack_require__(74643);
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeInvisibleOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
var EyeOutlined = __webpack_require__(99611);
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
var omit = __webpack_require__(10366);
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/ref.js
var es_ref = __webpack_require__(17799);
// EXTERNAL MODULE: ./node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js
var useRemovePasswordTimeout = __webpack_require__(72922);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Password.js
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.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(icons_EyeInvisibleOutlined, null);
const ActionMap = {
click: 'onClick',
hover: 'onMouseOver'
};
const Password = /*#__PURE__*/react.forwardRef((props, ref) => {
const {
visibilityToggle = true
} = props;
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
const [visible, setVisible] = (0,react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
const inputRef = (0,react.useRef)(null);
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.cloneElement( /*#__PURE__*/react.isValidElement(icon) ? icon : /*#__PURE__*/react.createElement("span", null, icon), iconProps);
};
const {
className,
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
size
} = props,
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
const {
getPrefixCls
} = react.useContext(context/* ConfigContext */.E_);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
const suffixIcon = visibilityToggle && getIcon(prefixCls);
const inputClassName = 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.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/es/icons/SearchOutlined.js + 1 modules
var SearchOutlined = __webpack_require__(68795);
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
var reactNode = __webpack_require__(96159);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/hooks/useSize.js
var useSize = __webpack_require__(98675);
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
var Compact = __webpack_require__(4173);
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Search.js
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.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.useContext(context/* ConfigContext */.E_);
const composedRef = 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.useRef(null);
const onChange = e => {
if (e && e.target && e.type === 'click' && customOnSearch) {
customOnSearch(e.target.value, e);
}
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);
}
};
const onPressEnter = e => {
if (composedRef.current || loading) {
return;
}
onSearch(e);
};
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/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.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_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.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/es/input/TextArea.js
var TextArea = __webpack_require__(96330);
;// CONCATENATED MODULE: ./node_modules/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);
/***/ })
}]);

@ -1,116 +0,0 @@
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Syllabuses/index.less?modules ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___bG6f2 {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___0Pixx {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___v3mUl {
align-items: center;
box-align: center;
}
.flex_box_center_end___QIbtC {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___INC4y {
flex-direction: column;
box-orient: block-axis;
}
.wrap___n74tH {
width: 965px;
background: #fff;
box-shadow: 0px 2px 4px 0px rgba(232, 232, 233, 0.5);
border-radius: 4px;
padding: 20px 25px;
min-height: 672px;
}
.wrap___n74tH .btnBg___A3ub8 {
background-color: #f4f8ff !important;
}
.wrap___n74tH .control___xllDL {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.wrap___n74tH .control___xllDL .label___t4wLa {
width: 82px;
height: 38px;
background: #f5f5f5;
border-radius: 2px 0px 0px 2px;
border: 1px solid #dddddd;
line-height: 38px;
text-align: center;
font-size: 14px;
margin-right: -1px;
}
.wrap___n74tH .control___xllDL .ant-select {
width: 138px;
margin-right: 10px;
}
.wrap___n74tH .control___xllDL .ant-select .ant-select-selector {
height: 38px !important;
padding: 0 10px;
}
.wrap___n74tH .control___xllDL .ant-select .ant-select-selection-item,
.wrap___n74tH .control___xllDL .ant-select .ant-select-selection-placeholder {
line-height: 38px !important;
}
.wrap___n74tH .control___xllDL .ant-input {
width: 329px;
height: 38px;
margin-right: 20px;
}
.wrap___n74tH .control___xllDL .ant-input input {
color: #333;
}
.wrap___n74tH .list___GJns6 {
width: 100%;
padding: 20px 0;
background: #ffffff;
border-radius: 4px;
border: 1px solid #ebf1fc;
margin-top: 15px;
display: flex;
align-items: center;
cursor: pointer;
}
.wrap___n74tH .list___GJns6 .left___M4hex {
flex: 1 1;
padding-left: 20px;
}
.wrap___n74tH .list___GJns6 .left___M4hex > div:first-child {
width: 100%;
font-size: 16px;
font-weight: 600;
color: #000000;
margin-bottom: 10px;
}
.wrap___n74tH .list___GJns6 .left___M4hex .tags___nn2E8 > span {
display: inline-block;
padding: 2px 5px;
border: 1px solid #e4e4e4;
font-size: 12px;
color: #7d8592;
margin-right: 15px;
}
.wrap___n74tH .list___GJns6 .right___TedWb {
width: 60px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}

@ -1,569 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[5348],{
/***/ 97257:
/*!**************************************************************************!*\
!*** ./src/pages/virtualSpaces/Lists/Video/Upload/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 */ Video_Upload; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(17061);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(17156);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(70215);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(42122);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__(861);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
var _umi_production_exports = __webpack_require__(89214);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js + 1 modules
var LeftOutlined = __webpack_require__(6171);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
var message = __webpack_require__(2453);
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
var modal = __webpack_require__(72423);
// EXTERNAL MODULE: ./node_modules/antd/es/spin/index.js + 1 modules
var spin = __webpack_require__(57953);
// EXTERNAL MODULE: ./node_modules/antd/es/progress/index.js + 11 modules
var progress = __webpack_require__(69814);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
var input = __webpack_require__(79531);
// EXTERNAL MODULE: ./src/assets/images/video/upload.png
var upload = __webpack_require__(59215);
// EXTERNAL MODULE: ./src/assets/images/video/upload_hover.png
var upload_hover = __webpack_require__(19213);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Video/Upload/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Uploadmodules = ({"bg":"bg___A7pt2","main":"main___A_F3d","uploadTop":"uploadTop___dn9vb","imgWrap":"imgWrap___WxyGy","defaultImg":"defaultImg___vvmEM","hoverImg":"hoverImg___fMyWE","uploadTitle":"uploadTitle___hHP3m","colorBlue":"colorBlue___nJz02","uploadDescription":"uploadDescription___xx9sF","description":"description___xR0tF","colorOrange":"colorOrange___Pv7RB","fileMain":"fileMain___igOkv","fileWrap":"fileWrap___X4c43","fileProgress":"fileProgress___wrob1","fileCancel":"fileCancel___PAA0m","fileInputWrap":"fileInputWrap____q6EX","fileImgWrap":"fileImgWrap___qKYhv","fileInput":"fileInput___Nupiq","flexRowCenter":"flexRowCenter___ooOly","continueAdd":"continueAdd___jq7fk"});
// EXTERNAL MODULE: ./src/utils/aliyunUpload.ts
var aliyunUpload = __webpack_require__(77320);
// EXTERNAL MODULE: ./src/components/CoverUpload/index.tsx + 1 modules
var CoverUpload = __webpack_require__(93899);
// EXTERNAL MODULE: ./src/service/virtualSpaces.ts
var service_virtualSpaces = __webpack_require__(51207);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Video/Upload/index.tsx
var _excluded = ["user", "userDetail", "globalSetting", "loading", "dispatch", "virtualSpaces"];
var MAX_LENGTH = 30;
var MAX_FILE_SIZE = 1024;
var videoReducer = function videoReducer(state, action) {
var _state$videoList, _state$videoList2;
var uploadInfo = action.payload.uploadInfo;
switch (action.type) {
case 'addVideo':
// console.log(uploadInfo,{
// videoList: [...state.videoList, {
// videoId: uploadInfo.videoId,
// name: uploadInfo.file.name,
// size: uploadInfo.file.size,
// type: uploadInfo.file.type,
// fileHash: uploadInfo.fileHash,
// state: uploadInfo.state,
// loaded: 0,
// title: ''
// }]
// });
console.log("videoList: ", uploadInfo, uploadInfo.videoId, [].concat(toConsumableArray_default()(state.videoList), [{
name: uploadInfo.file.name,
size: uploadInfo.file.size,
type: uploadInfo.file.type,
fileHash: uploadInfo.fileHash,
state: uploadInfo.state,
videoId: uploadInfo.videoId,
attachment_id: '',
loaded: 0,
title: ''
}]));
return {
videoList: [].concat(toConsumableArray_default()(state.videoList), [{
name: uploadInfo.file.name,
size: uploadInfo.file.size,
type: uploadInfo.file.type,
fileHash: uploadInfo.fileHash,
state: uploadInfo.state,
videoId: uploadInfo.videoId,
attachment_id: '',
loaded: 0,
title: ''
}])
};
case 'removeVideo':
return {
videoList: state.videoList.filter(function (item) {
return item.name !== action.payload.name;
})
};
case 'removeAll':
return [];
case 'updateProgress':
return {
videoList: state.videoList.map(function (item) {
if (item.name === action.payload.uploadInfo.file.name) {
return objectSpread2_default()(objectSpread2_default()({}, item), {
loaded: action.payload.progressPercent,
videoId: uploadInfo.videoId,
fileHash: uploadInfo.fileHash
});
}
return item;
})
};
case 'updateTitle':
return {
videoList: (_state$videoList = state.videoList) === null || _state$videoList === void 0 ? void 0 : _state$videoList.map(function (video) {
if (video.name === action.payload.item.name) {
return objectSpread2_default()(objectSpread2_default()({}, video), {
title: action.payload.title
});
}
return video;
})
};
case 'updateImg':
return {
videoList: (_state$videoList2 = state.videoList) === null || _state$videoList2 === void 0 ? void 0 : _state$videoList2.map(function (video) {
if (video.name === action.payload.item.name) {
return objectSpread2_default()(objectSpread2_default()({}, video), {
attachment_id: action.payload.attachment_id
});
}
return video;
})
};
default:
return [];
}
};
var Upload = function Upload(_ref) {
var _state$videoList5;
var user = _ref.user,
userDetail = _ref.userDetail,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
virtualSpaces = _ref.virtualSpaces,
props = objectWithoutProperties_default()(_ref, _excluded);
var params = (0,_umi_production_exports.useParams)();
var Location = (0,_umi_production_exports.useLocation)();
var _useState = (0,react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
isLoading = _useState2[0],
setIsLoading = _useState2[1];
var _useReducer = (0,react.useReducer)(videoReducer, {
videoList: []
}),
_useReducer2 = slicedToArray_default()(_useReducer, 2),
state = _useReducer2[0],
stateDispatch = _useReducer2[1];
var _useState3 = (0,react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
isclick = _useState4[0],
setisclick = _useState4[1];
var uploader = (0,react.useRef)();
var files = (0,react.useRef)();
(0,react.useEffect)(function () {
window.addEventListener('beforeunload', handleBeforeunload);
return function () {
window.removeEventListener('beforeunload', handleBeforeunload);
};
}, []);
var handleBeforeunload = function handleBeforeunload(event) {
event.preventDefault();
event.returnValue = '';
};
var clearInput = function clearInput() {
var input = document.getElementById('fileUpload');
input.value = '';
};
var handleChangeUpload = function handleChangeUpload(e) {
var _user$userInfo, _user$userInfo2, _state$videoList3;
var file = e.target.files[0];
if (!file) {
clearInput();
return;
}
var name = file.name.toLowerCase();
if (name && name.indexOf('.avi') == -1 && name.indexOf('.flv') == -1 && name.indexOf('.f4v') == -1 && name.indexOf('.m4v') == -1 && name.indexOf('.mov') == -1 && name.indexOf('.mp4') == -1 && name.indexOf('.rmvb') == -1 && name.indexOf('.swf') == -1 && name.indexOf('.webm') == -1 && name.indexOf('.wmv') == -1) {
message/* default.info */.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F");
clearInput();
return;
}
if (!((_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.admin || (_user$userInfo2 = user.userInfo) !== null && _user$userInfo2 !== void 0 && _user$userInfo2.business) && file.size > MAX_FILE_SIZE * 1024 * 1024) {
message/* default.info */.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(MAX_FILE_SIZE, "M"));
clearInput();
return;
}
if ((_state$videoList3 = state.videoList) !== null && _state$videoList3 !== void 0 && _state$videoList3.find(function (item) {
return item.name === file.name;
})) {
message/* default.info */.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002");
clearInput();
return;
}
handleUpload(file);
};
var handleRemove = function handleRemove(name, isSuccess) {
modal/* default.confirm */.Z.confirm({
title: '提示',
centered: true,
okText: '确定',
cancelText: '取消',
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "tc",
children: ["\u60A8\u786E\u8BA4\u8981", isSuccess ? '删除' : '取消上传', "\u8BE5\u89C6\u9891\u5417\uFF1F"]
}),
onOk: function onOk() {
clearInput();
stateDispatch({
type: 'removeVideo',
payload: {
name: name
}
});
}
});
};
var handleUpload = function handleUpload(file) {
var userData = '{"Vod":{}}';
setIsLoading(true);
if (uploader.current) {
uploader.current.addFile(file, null, null, null, userData);
return;
}
(0,aliyunUpload/* getUploader */.o)(params === null || params === void 0 ? void 0 : params.username, params.virtual_spacesId, {
create: !uploader,
addFileSuccess: function addFileSuccess(uploadInfo) {
stateDispatch({
type: 'addVideo',
payload: {
uploadInfo: uploadInfo
}
});
},
onUploadProgress: function onUploadProgress(uploadInfo, totalSize, progress) {
var progressPercent = Math.ceil(progress * 100);
stateDispatch({
type: 'updateProgress',
payload: {
uploadInfo: uploadInfo,
progressPercent: progressPercent
}
});
clearInput();
},
onUploadFailed: function onUploadFailed(uploadInfo) {
message/* default.info */.ZP.info('视频云服务出现异常,请重新上传。');
},
onUploadEnd: function onUploadEnd(uploadInfo) {
setIsLoading(false);
},
onUploadSucceed: function onUploadSucceed(uploadInfo) {
setIsLoading(false);
console.log("files.current", files.current);
// files.current
},
onUploadError: function onUploadError(uploadInfo) {
setIsLoading(false);
},
gotUploader: function gotUploader(_uploader) {
_uploader.addFile(file, null, null, null, userData);
uploader.current = _uploader;
}
});
};
var handlePublish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _state$videoList4;
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if ((_state$videoList4 = state.videoList) !== null && _state$videoList4 !== void 0 && _state$videoList4.length) {
_context.next = 3;
break;
}
message/* default.info */.ZP.info('请先上传视频');
return _context.abrupt("return");
case 3:
setisclick(true);
_context.next = 6;
return (0,service_virtualSpaces/* upvideos */._6)({
id: params.virtual_spacesId,
videos: state.videoList.map(function (item) {
return {
video_id: item.videoId,
title: item.title,
attachment_id: item.attachment_id,
virtual_classroom_id: params.virtual_spacesId,
module_id: virtualSpaces.actionTabs.module_id
};
})
});
case 6:
res = _context.sent;
setisclick(false);
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
_umi_production_exports.history.back();
dispatch({
type: 'classroomList/setActionTabs',
payload: {
key: '刷新数据'
}
});
}
case 9:
case "end":
return _context.stop();
}
}, _callee);
}));
return function handlePublish() {
return _ref2.apply(this, arguments);
};
}();
var hasFile = (_state$videoList5 = state.videoList) === null || _state$videoList5 === void 0 ? void 0 : _state$videoList5.length;
var renderUpload = function renderUpload() {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Uploadmodules.main,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Uploadmodules.uploadTop,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("label", {
htmlFor: "fileUpload",
className: Uploadmodules.imgWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: Uploadmodules.defaultImg,
src: upload
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: Uploadmodules.hoverImg,
src: upload_hover
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Uploadmodules.uploadTitle,
children: "\u9009\u62E9\u60A8\u8981\u4E0A\u4F20\u7684\u89C6\u9891"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F", /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/users/".concat(params === null || params === void 0 ? void 0 : params.username, "/videos/protocol"),
className: Uploadmodules.colorBlue,
children: "\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"
}), "\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Uploadmodules.uploadDescription,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Uploadmodules.description,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u4E0A\u4F20\u8BF4\u660E\uFF1A\u76EE\u524D\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u89C6\u9891\u6587\u4EF6\u6700\u5927\u9650\u52361G\uFF0C\u5355\u6B21\u6700\u591A\u652F\u63013\u4E2A\u89C6\u9891\u6587\u4EF6\u4E0A\u4F20 "
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u89C6\u9891\u89C4\u683C\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv "
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u6E29\u99A8\u63D0\u793A\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Uploadmodules.colorOrange,
children: "\u4E3A\u4E86\u66F4\u597D\u7684\u64AD\u653E\u4F53\u9A8C\uFF0C\u5EFA\u8BAE\u60A8\u4F18\u5148\u4E0A\u4F20MP4\u683C\u5F0F\u3002\u5982\u679C\u60A8\u662F\u81EA\u5DF1\u5F55\u5236\u89C6\u9891\uFF0C\u5EFA\u8BAE\u60A8\u4FDD\u5B58\u7684\u65F6\u5019\u5C06\u89C6\u9891\u7F16\u7801\u8BBE\u7F6E\u4E3AAVC(H264)"
})]
})]
})
})]
});
};
var renderFile = function renderFile() {
var _state$videoList6, _state$videoList7;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Uploadmodules.fileMain,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
spinning: isLoading,
children: (_state$videoList6 = state.videoList) === null || _state$videoList6 === void 0 ? void 0 : _state$videoList6.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Uploadmodules.fileWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [index + 1, ". ", item.name]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Uploadmodules.fileProgress,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(progress/* default */.Z, {
percent: item.loaded,
status: item.loaded == 100 ? "normal" : 'active'
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Uploadmodules.fileCancel,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: function onClick() {
return handleRemove(item.name, item.loaded == 100);
},
children: item.loaded === 100 ? '删除' : '取消上传'
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Uploadmodules.fileInputWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "mr5",
children: "\u6807\u9898:"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
value: item.title,
onChange: function onChange(e) {
stateDispatch({
type: 'updateTitle',
payload: {
title: e.target.value,
item: item
}
});
},
className: Uploadmodules.fileInput,
placeholder: "\u6807\u9898\u652F\u6301\u6700\u591A".concat(MAX_LENGTH, "\u4E2A\u5B57\u7B26"),
maxLength: MAX_LENGTH,
addonAfter: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "c-light-black font12",
children: [String(item.title.length), "/", MAX_LENGTH]
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Uploadmodules.fileImgWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "mr5",
children: "\u4E0A\u4F20\u5C01\u9762\u56FE:"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(CoverUpload/* default */.Z, {
value: item === null || item === void 0 ? void 0 : item.attachment_id,
onChange: function onChange(e) {
stateDispatch({
type: 'updateImg',
payload: {
attachment_id: e,
item: item
}
});
}
})]
})]
});
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt10",
children: ((_state$videoList7 = state.videoList) === null || _state$videoList7 === void 0 ? void 0 : _state$videoList7.length) <= 2 ? /*#__PURE__*/(0,jsx_runtime.jsx)("label", {
htmlFor: "fileUpload",
className: "".concat(Uploadmodules.continueAdd, " current"),
children: "\u7EE7\u7EED\u6DFB\u52A0"
}) : '提示单次最多支持3个视频文件上传'
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Uploadmodules.description,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u4E0A\u4F20\u8BF4\u660E\uFF1A\u76EE\u524D\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u89C6\u9891\u6587\u4EF6\u6700\u5927\u9650\u52361G\uFF0C\u5355\u6B21\u6700\u591A\u652F\u63013\u4E2A\u89C6\u9891\u6587\u4EF6\u4E0A\u4F20 "
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u89C6\u9891\u89C4\u683C\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv "
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u6E29\u99A8\u63D0\u793A\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Uploadmodules.colorOrange,
children: "\u4E3A\u4E86\u66F4\u597D\u7684\u64AD\u653E\u4F53\u9A8C\uFF0C\u5EFA\u8BAE\u60A8\u4F18\u5148\u4E0A\u4F20MP4\u683C\u5F0F\u3002\u5982\u679C\u60A8\u662F\u81EA\u5DF1\u5F55\u5236\u89C6\u9891\uFF0C\u5EFA\u8BAE\u60A8\u4FDD\u5B58\u7684\u65F6\u5019\u5C06\u89C6\u9891\u7F16\u7801\u8BBE\u7F6E\u4E3AAVC(H264)"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Uploadmodules.flexRowCenter,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
loading: isclick,
onClick: handlePublish,
children: "\u7ACB\u5373\u53D1\u5E03"
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "".concat(Uploadmodules.flexRowCenter, " mt10"),
children: ["\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F", /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/users/".concat(params === null || params === void 0 ? void 0 : params.username, "/videos/protocol"),
className: Uploadmodules.colorBlue,
children: "\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"
}), "\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1"]
})]
});
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: Uploadmodules.bg,
style: {
width: '100%'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt5",
style: {
display: 'flex'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(LeftOutlined/* default */.Z, {
style: {
marginTop: '8px'
},
className: "current mr10 font16",
onClick: function onClick() {
_umi_production_exports.history.back();
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("h2", {
children: "\u4E0A\u4F20\u89C6\u9891"
})]
}), hasFile ? renderFile() : renderUpload(), /*#__PURE__*/(0,jsx_runtime.jsx)("input", {
ref: files,
type: "file",
id: "fileUpload",
style: {
display: 'none'
},
onChange: handleChangeUpload,
accept: ".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"
})]
});
};
/* harmony default export */ var Video_Upload = ((0,_umi_production_exports.connect)(function (_ref3) {
var user = _ref3.user,
userDetail = _ref3.userDetail,
loading = _ref3.loading,
globalSetting = _ref3.globalSetting,
virtualSpaces = _ref3.virtualSpaces;
return {
user: user,
userDetail: userDetail,
globalSetting: globalSetting,
loading: loading.models.index,
virtualSpaces: virtualSpaces
};
})(Upload));
/***/ })
}]);

@ -1,146 +0,0 @@
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Video/Upload/index.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.bg___A7pt2 {
margin: 0 auto;
padding-bottom: 140px;
width: 1200px;
font-size: 14px;
}
.bg___A7pt2 a[class='ant-breadcrumb-link'] {
font-size: 14px;
color: #999999;
}
.bg___A7pt2 span[class='ant-breadcrumb-link'] {
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
}
.main___A_F3d {
background: #fff;
padding: 16px 20px;
padding-top: 0px;
padding-bottom: 36px;
}
.uploadTop___dn9vb {
padding-top: 70px;
text-align: center;
}
.imgWrap___WxyGy {
width: 72px;
height: 54px;
margin: 0 auto;
cursor: pointer;
}
.imgWrap___WxyGy:hover img[class^='defaultImg'] {
display: none;
}
.imgWrap___WxyGy:hover img[class^='hoverImg'] {
display: inline-block;
}
.defaultImg___vvmEM {
width: 64px;
height: 48px;
}
.hoverImg___fMyWE {
display: none;
width: 64px;
height: 48px;
}
.uploadTitle___hHP3m {
color: #000000;
font-size: 18px;
font-weight: bold;
margin-bottom: 20px;
}
.colorBlue___nJz02 {
color: #4cacff;
}
.uploadDescription___xx9sF {
padding-top: 10px;
margin-top: 20px;
margin-bottom: 30px;
color: #777;
text-align: center;
}
.description___xR0tF {
padding-top: 10px;
margin-top: 20px;
margin-bottom: 30px;
color: #777;
}
.colorOrange___Pv7RB {
color: #ff954c;
}
.fileMain___igOkv {
background: #fff;
padding: 16px 20px;
padding-top: 0px;
padding-bottom: 36px;
}
.fileWrap___X4c43 {
padding: 26px 0;
border-bottom: 1px dashed #dcdcdc;
}
.fileProgress___wrob1 {
display: flex;
flex-direction: row;
}
.fileCancel___PAA0m {
flex: 0 0 200px;
margin-left: 10px;
}
.fileInputWrap____q6EX {
display: flex;
align-items: center;
margin-top: 15px;
}
.fileImgWrap___qKYhv {
display: flex;
align-items: flex-start;
margin-top: 15px;
}
.fileImgWrap___qKYhv aside {
padding-top: 3px;
}
.fileInput___Nupiq {
width: 480px;
}
.flexRowCenter___ooOly {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.continueAdd___jq7fk {
height: 28px;
padding: 3px 11px;
font-size: 14px;
color: #fff;
background: #196efd;
border-color: #196efd;
text-align: center;
}
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/CoverUpload/index.less?modules ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.img___BgL9D {
position: relative;
width: 400px;
height: auto;
background-color: #f4f3f4;
display: flex;
align-items: center;
justify-content: center;
}
.img___BgL9D > div {
position: absolute;
right: -6px;
top: -6px;
cursor: pointer;
background-color: #fff;
width: 16px;
height: 16px;
border-radius: 50%;
}

@ -1,804 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[4639],{
/***/ 57418:
/*!*******************************************************************!*\
!*** ./src/pages/virtualSpaces/Lists/Video/index.tsx + 3 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 */ Video; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(42122);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(17061);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(17156);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(70215);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
var _umi_production_exports = __webpack_require__(89214);
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
var input = __webpack_require__(79531);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
var row = __webpack_require__(71230);
// EXTERNAL MODULE: ./node_modules/antd/es/col/index.js
var col = __webpack_require__(15746);
// EXTERNAL MODULE: ./node_modules/antd/es/card/index.js + 4 modules
var card = __webpack_require__(4393);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(83062);
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
var modal = __webpack_require__(72423);
// EXTERNAL MODULE: ./node_modules/antd/es/pagination/index.js + 11 modules
var pagination = __webpack_require__(83338);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(82982);
// EXTERNAL MODULE: ./src/assets/images/video/default.png
var video_default = __webpack_require__(55988);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(7);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Video/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Videomodules = ({"flex_box_center":"flex_box_center____ICdO","flex_space_between":"flex_space_between___Fizsy","flex_box_vertical_center":"flex_box_vertical_center___ovw_y","flex_box_center_end":"flex_box_center_end___YvhJ8","flex_box_column":"flex_box_column___NRvXy","warp":"warp___SiWVd","title":"title___ZMdcv","Inputstyle":"Inputstyle____IEho","buttonstyle":"buttonstyle___Nv_nA","Content":"Content___iyi1N","imgstyle":"imgstyle___K_hQW","cardstyle":"cardstyle___hk4N8","linkstyle":"linkstyle___y6rxz","paddingcard":"paddingcard___K56IC","titlefont":"titlefont___B_PBh","flexEnd":"flexEnd___SZPvY"});
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(84519);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(59758);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js
var defineProperty = __webpack_require__(38416);
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
// EXTERNAL MODULE: ./node_modules/antd/es/tree-select/index.js + 67 modules
var tree_select = __webpack_require__(42167);
// EXTERNAL MODULE: ./node_modules/antd/es/form/index.js + 17 modules
var es_form = __webpack_require__(25159);
// EXTERNAL MODULE: ./node_modules/antd/es/upload/index.js + 24 modules
var upload = __webpack_require__(31365);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/UploadOutlined.js + 1 modules
var UploadOutlined = __webpack_require__(88484);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules
var CloseCircleFilled = __webpack_require__(4340);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Video/components/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var componentsmodules = ({"flex_box_center":"flex_box_center___inwoE","flex_space_between":"flex_space_between___pg0PF","flex_box_vertical_center":"flex_box_vertical_center___JNzAj","flex_box_center_end":"flex_box_center_end___ORNt1","flex_box_column":"flex_box_column___GLfwj","bg":"bg___JkHJF","menu":"menu___L0YRG","desc":"desc___nrOMJ","otherLink":"otherLink___d3Pk0","card":"card___8aBp5","img":"img___eURkh"});
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Video/components/AddLink.tsx
var TreeNode = tree_select/* default.TreeNode */.Z.TreeNode;
var EditAttendance = function EditAttendance(_ref) {
var _classroomList$action9, _classroomList$action10, _ref3;
var classroomList = _ref.classroomList,
loading = _ref.loading,
user = _ref.user,
dispatch = _ref.dispatch,
virtualSpaces = _ref.virtualSpaces;
var params = (0,_umi_production_exports.useParams)();
params['id'] = params['coursesId'];
var detailAttendancesDetail = classroomList.detailAttendancesDetail,
actionTabs = classroomList.actionTabs;
var _Form$useForm = es_form/* default.useForm */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
var _useState = (0,react.useState)(''),
_useState2 = slicedToArray_default()(_useState, 2),
attachment_id = _useState2[0],
setImageUrl = _useState2[1];
var _useState3 = (0,react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
imgLoading = _useState4[0],
setImgLoading = _useState4[1];
(0,react.useEffect)(function () {
var _classroomList$action, _classroomList$action2;
if (((_classroomList$action = classroomList.actionTabs) === null || _classroomList$action === void 0 ? void 0 : _classroomList$action.key) === '增加外链' && (_classroomList$action2 = classroomList.actionTabs) !== null && _classroomList$action2 !== void 0 && _classroomList$action2.data) {
var _classroomList$action3, _classroomList$action4, _classroomList$action5, _classroomList$action6, _classroomList$action7, _classroomList$action8;
form.setFieldsValue({
name: (_classroomList$action3 = classroomList.actionTabs) === null || _classroomList$action3 === void 0 ? void 0 : (_classroomList$action4 = _classroomList$action3.data) === null || _classroomList$action4 === void 0 ? void 0 : _classroomList$action4.title,
link: (_classroomList$action5 = classroomList.actionTabs) === null || _classroomList$action5 === void 0 ? void 0 : (_classroomList$action6 = _classroomList$action5.data) === null || _classroomList$action6 === void 0 ? void 0 : _classroomList$action6.link
});
setImageUrl((_classroomList$action7 = classroomList.actionTabs) === null || _classroomList$action7 === void 0 ? void 0 : (_classroomList$action8 = _classroomList$action7.data) === null || _classroomList$action8 === void 0 ? void 0 : _classroomList$action8.attachment_id);
}
}, [(_classroomList$action9 = classroomList.actionTabs) === null || _classroomList$action9 === void 0 ? void 0 : _classroomList$action9.key]);
var uploadButton = /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
loading: imgLoading,
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(UploadOutlined/* default */.Z, {}),
children: "\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"
});
var renderImg = function renderImg() {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: componentsmodules.img,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: env/* default.API_SERVER */.Z.API_SERVER + "/api/attachments/" + attachment_id,
alt: "avatar",
style: {
width: 288
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleFilled/* default */.Z, {
onClick: function onClick() {
return setImageUrl('');
},
style: {
fontSize: '16px',
color: 'red'
}
})
})]
});
};
var handleChange = function handleChange(info) {
if (info.file.status === 'uploading') {
setImgLoading(true);
return;
}
if (info.file.status === 'done') {
var _info$file, _info$file$response;
setImgLoading(false);
setImageUrl(info === null || info === void 0 ? void 0 : (_info$file = info.file) === null || _info$file === void 0 ? void 0 : (_info$file$response = _info$file.response) === null || _info$file$response === void 0 ? void 0 : _info$file$response.id);
}
};
var cancel = function cancel() {
form.resetFields();
dispatch({
type: 'classroomList/setActionTabs',
payload: {}
});
setImageUrl('');
setImgLoading(false);
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
title: (_classroomList$action10 = classroomList.actionTabs) !== null && _classroomList$action10 !== void 0 && _classroomList$action10.data ? '编辑外链视频' : "增加外链",
open: classroomList.actionTabs.key === '增加外链' ? true : false,
okText: "\u786E\u5B9A",
cancelText: "\u53D6\u6D88",
width: 640,
okButtonProps: {
loading: imgLoading
},
bodyStyle: {
minHeight: 200
},
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var formValue, res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.t0 = (objectSpread2_default());
_context.t1 = {};
_context.next = 4;
return form.validateFields();
case 4:
_context.t2 = _context.sent;
formValue = (0, _context.t0)(_context.t1, _context.t2);
setImgLoading(true);
_context.next = 9;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(classroomList.actionTabs.params.virtual_classroom_id, "/videos"), {
method: 'POST',
body: objectSpread2_default()(objectSpread2_default()({}, formValue), {}, {
attachment_id: attachment_id,
module_id: virtualSpaces.actionTabs.module_id
})
});
case 9:
res = _context.sent;
setImgLoading(false);
if (res.status === 0) {
dispatch({
type: 'classroomList/setActionTabs',
payload: {
key: '刷新数据'
}
});
form.resetFields();
setImageUrl('');
}
case 12:
case "end":
return _context.stop();
}
}, _callee);
})),
onCancel: function onCancel() {
cancel();
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
form: form,
initialValues: (_ref3 = {}, defineProperty_default()(_ref3, 'name', ''), defineProperty_default()(_ref3, 'external_link', ''), _ref3),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
label: "\u89C6\u9891\u6807\u9898",
name: "name",
rules: [{
required: true,
message: '请输入!'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
maxLength: 30
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
label: "\u89C6\u9891\u94FE\u63A5",
name: "external_link",
rules: [{
required: true,
message: '请输入!'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
// name="file"
label: "\u4E0A\u4F20\u5C01\u9762\u56FE:",
children: attachment_id ? renderImg() : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, {
withCredentials: true,
name: "file",
showUploadList: false,
action: "".concat(env/* default.API_SERVER */.Z.API_SERVER, "/api/attachments.json"),
onChange: handleChange,
accept: "image/*",
children: uploadButton
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt20 c-light-black",
children: "\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "c-light-black",
children: "\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"
})]
})
})]
})
});
};
/* harmony default export */ var AddLink = ((0,_umi_production_exports.connect)(function (_ref4) {
var classroomList = _ref4.classroomList,
user = _ref4.user,
loading = _ref4.loading,
virtualSpaces = _ref4.virtualSpaces;
return {
classroomList: classroomList,
user: user,
loading: loading,
virtualSpaces: virtualSpaces
};
})(EditAttendance));
// EXTERNAL MODULE: ./src/components/Video/Modal/index.tsx + 1 modules
var Modal = __webpack_require__(41262);
// EXTERNAL MODULE: ./node_modules/js-base64/base64.js
var base64 = __webpack_require__(19575);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Video/index.tsx
var _excluded = ["classroomList", "globalSetting", "virtualSpaces", "loading", "dispatch", "user"];
var DEFAULT_VIDEO_WIDTH_IN_MD = "90%"; // 400
var DEFAULT_VIDEO_HEIGHT_IN_MD = "55%"; // 400
var ShixunsListPage = function ShixunsListPage(_ref) {
var _cousesList$videos;
var classroomList = _ref.classroomList,
globalSetting = _ref.globalSetting,
virtualSpaces = _ref.virtualSpaces,
loading = _ref.loading,
dispatch = _ref.dispatch,
user = _ref.user,
props = objectWithoutProperties_default()(_ref, _excluded);
var _useState = (0,react.useState)([]),
_useState2 = slicedToArray_default()(_useState, 2),
cousesList = _useState2[0],
setcousesList = _useState2[1];
var virtualSpacesDetails = virtualSpaces.virtualSpacesDetails;
var _useState3 = (0,react.useState)(),
_useState4 = slicedToArray_default()(_useState3, 2),
visible = _useState4[0],
setVisible = _useState4[1];
var _useState5 = (0,react.useState)({}),
_useState6 = slicedToArray_default()(_useState5, 2),
currentVideo = _useState6[0],
setCurrentVideo = _useState6[1];
var query = (0,_umi_production_exports.useParams)();
var _useState7 = (0,react.useState)({
page: 1,
limit: 6,
search: '',
virtual_classroom_id: query.virtual_spacesId,
module_id: virtualSpaces.actionTabs.module_id
}),
_useState8 = slicedToArray_default()(_useState7, 2),
params = _useState8[0],
setparams = _useState8[1];
function getDataSets() {
return _getDataSets.apply(this, arguments);
}
function _getDataSets() {
_getDataSets = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/videos.json"), {
method: 'get',
params: params
});
case 2:
res = _context2.sent;
setcousesList(res);
case 4:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return _getDataSets.apply(this, arguments);
}
(0,react.useEffect)(function () {
getDataSets();
}, []);
var handleLogWatchHistory = function handleLogWatchHistory(query) {
return dispatch({
type: 'userDetail/logWatchHistory',
payload: query
});
};
(0,react.useEffect)(function () {
if (classroomList.actionTabs.key === '刷新数据') {
getDataSets();
dispatch({
type: 'virtualSpaces/getVirtualSpacesDetails',
payload: {
id: query.virtual_spacesId
}
});
}
}, [classroomList.actionTabs.key]);
var getCopyText = function getCopyText(file_url, cover_url) {
var url = base64.Base64.decode(file_url);
if (file_url) {
return "<video src=\"".concat(url, "\" controls=\"true\" controlslist=\"nodownload\" width=\"").concat(DEFAULT_VIDEO_WIDTH_IN_MD, "\" height=\"").concat(DEFAULT_VIDEO_HEIGHT_IN_MD, "\" poster=\"").concat(cover_url, "\">\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 video \u6807\u7B7E\u3002</video>");
}
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Videomodules.warp,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Videomodules.title,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(input/* default.Search */.Z.Search, {
onSearch: function onSearch(e) {
params.search = e, getDataSets();
},
placeholder: "\u8BF7\u8F93\u5165\u89C6\u9891\u540D\u79F0\u641C\u7D22",
className: Videomodules.Inputstyle
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [(virtualSpacesDetails.is_member || (0,authority/* isSuperAdmins */.Ny)()) && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
type: "primary",
ghost: true,
onClick: function onClick() {
_umi_production_exports.history.push("/vspaces/".concat(query.virtual_spacesId, "/videos/").concat(user.userInfo.login, "/upload"));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
fontSize: '14px',
marginRight: '8px'
},
className: "iconfont icon-shangchuan3 "
}), " \u4E0A\u4F20\u89C6\u9891"]
}), (virtualSpacesDetails.is_member || (0,authority/* isSuperAdmins */.Ny)()) && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
className: "ml10",
type: "primary",
ghost: true,
onClick: function onClick() {
dispatch({
type: 'classroomList/setActionTabs',
payload: {
key: '增加外链',
params: params
}
});
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
fontSize: '14px',
marginRight: '8px'
},
className: "iconfont icon-tianjia1 "
}), " \u6DFB\u52A0\u5916\u94FE"]
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Videomodules.Content,
children: [(cousesList === null || cousesList === void 0 ? void 0 : cousesList.total_count) <= 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
buttonProps: {
ghost: true,
type: 'primary'
},
ButtonClick: function ButtonClick() {
_umi_production_exports.history.push("/vspaces/".concat(query.virtual_spacesId, "/videos/").concat(user.userInfo.login, "/upload"));
},
ButtonTwo: (virtualSpacesDetails.is_member || (0,authority/* isSuperAdmins */.Ny)()) && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
className: "ml20",
type: "primary",
ghost: true,
onClick: function onClick() {
dispatch({
type: 'classroomList/setActionTabs',
payload: {
key: '增加外链',
params: params
}
});
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
fontSize: '14px',
marginRight: '8px'
},
className: "iconfont icon-tianjia1 "
}), " \u6DFB\u52A0\u5916\u94FE"]
}),
ButtonText: virtualSpacesDetails.is_member || (0,authority/* isSuperAdmins */.Ny)() ? /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
fontSize: '14px',
marginRight: '8px'
},
className: "iconfont icon-shangchuan3 "
}), " \u4E0A\u4F20\u89C6\u9891"]
}) : '',
customText: virtualSpacesDetails.is_member ? "视频资源还没有内容,可点击上传视频按钮添加" : '当前暂无视频资源,敬请期待,谢谢'
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
gutter: [16, 16],
children: cousesList === null || cousesList === void 0 ? void 0 : (_cousesList$videos = cousesList.videos) === null || _cousesList$videos === void 0 ? void 0 : _cousesList$videos.map(function (item, index) {
var _item$cover_url;
var imgUrl = item !== null && item !== void 0 && item.cover_url ? item !== null && item !== void 0 && (_item$cover_url = item.cover_url) !== null && _item$cover_url !== void 0 && _item$cover_url.includes('https') ? item.cover_url : env/* default.API_SERVER */.Z.API_SERVER + item.cover_url : video_default;
return /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 8,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(card/* default */.Z, {
hoverable: true,
className: Videomodules.cardstyle,
onClick: function onClick() {
if (item.external_link) {
window.open(item.external_link);
return;
}
setVisible(true);
setCurrentVideo({
videoId: item.id,
course_id: params['coursesId'],
file_url: item.play_url || item.file_url,
copyUrl: getCopyText(item.play_url || item.file_url, item.cover_url),
logWatchHistory: handleLogWatchHistory
});
},
cover: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Videomodules.imgstyle,
children: [item.external_link && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Videomodules.linkstyle,
children: "\u5916\u94FE"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
alt: "example",
src: imgUrl
})]
}),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Videomodules.paddingcard,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Videomodules.titlefont,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: item.name || item.title,
children: item.name || item.title
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
justifyContent: "space-between",
marginTop: '12px',
height: '17px',
alignItems: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Videomodules.flexEnd
}), (item === null || item === void 0 ? void 0 : item.can_remove) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "bottom",
title: "\u5220\u9664\u89C6\u9891",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
cursor: 'pointer',
color: '#7D8592'
},
onClick: function onClick(e) {
e.stopPropagation();
e.preventDefault();
modal/* default.confirm */.Z.confirm({
title: '删除视频',
content: "\u786E\u8BA4\u5C06\u89C6\u9891\u300A".concat(item.name || item.title, "\u300B\u5220\u9664\u5417\uFF1F"),
okText: '确认',
cancelText: '取消',
onOk: function () {
var _onOk = 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 (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(query.virtual_spacesId, "/videos/").concat(item.id, ".json"), {
method: 'Delete'
});
case 2:
res = _context.sent;
if (res.status === 0) {
getDataSets();
dispatch({
type: 'virtualSpaces/getVirtualSpacesDetails',
payload: {
id: query.virtual_spacesId
}
});
}
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
function onOk() {
return _onOk.apply(this, arguments);
}
return onOk;
}()
});
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
fontSize: '10px'
},
className: "iconfont icon-piliangshanchubeifen mr3 "
})
})
})]
})]
})
})
});
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
current: params.page,
total: cousesList === null || cousesList === void 0 ? void 0 : cousesList.total_count,
style: {
textAlign: 'end',
marginTop: '20px'
},
pageSize: params.limit,
hideOnSinglePage: true,
onChange: function onChange(e) {
params.page = e, getDataSets();
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AddLink, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(Modal/* VideoModal */.K, objectSpread2_default()(objectSpread2_default()({}, currentVideo), {}, {
visible: visible,
width: 800,
onClose: function onClose() {
setVisible(false);
setCurrentVideo({});
}
}))]
});
};
/* harmony default export */ var Video = ((0,_umi_production_exports.connect)(function (_ref2) {
var classroomList = _ref2.classroomList,
loading = _ref2.loading,
globalSetting = _ref2.globalSetting,
virtualSpaces = _ref2.virtualSpaces,
user = _ref2.user;
return {
classroomList: classroomList,
globalSetting: globalSetting,
loading: loading.effects,
virtualSpaces: virtualSpaces,
user: user
};
})(ShixunsListPage));
/***/ }),
/***/ 85418:
/*!************************************************************!*\
!*** ./node_modules/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/es/dropdown/dropdown.js + 9 modules
var dropdown = __webpack_require__(35874);
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
var EllipsisOutlined = __webpack_require__(89705);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
var context = __webpack_require__(53124);
// EXTERNAL MODULE: ./node_modules/antd/es/space/index.js + 2 modules
var space = __webpack_require__(42075);
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
var Compact = __webpack_require__(4173);
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/style/index.js + 1 modules
var style = __webpack_require__(66748);
;// CONCATENATED MODULE: ./node_modules/antd/es/dropdown/dropdown-button.js
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.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.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_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.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.createElement(es_button/* default */.ZP, {
type: type,
danger: danger,
icon: icon
});
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
return wrapSSR( /*#__PURE__*/react.createElement(space/* default.Compact */.Z.Compact, Object.assign({
className: classes,
size: compactSize,
block: true
}, restProps), leftButtonToRender, /*#__PURE__*/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/es/dropdown/index.js
'use client';
const Dropdown = dropdown/* default */.Z;
Dropdown.Button = dropdown_button;
/* harmony default export */ var es_dropdown = (Dropdown);
/***/ })
}]);

@ -1,599 +0,0 @@
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Video/index.less?modules ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center____ICdO {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___Fizsy {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___ovw_y {
align-items: center;
box-align: center;
}
.flex_box_center_end___YvhJ8 {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___NRvXy {
flex-direction: column;
box-orient: block-axis;
}
.warp___SiWVd {
width: 965px;
background: #fff;
box-shadow: 0px 2px 4px 0px rgba(232, 232, 233, 0.5);
border-radius: 4px;
padding: 20px 25px;
min-height: 672px;
}
.warp___SiWVd .title___ZMdcv {
display: flex;
justify-content: space-between;
align-items: center;
}
.warp___SiWVd .Inputstyle____IEho {
width: 329px;
height: 38px;
}
.warp___SiWVd .buttonstyle___Nv_nA {
width: 90px;
background: #196efd;
height: 30px;
color: #fff;
font-size: 12px;
margin-right: 20px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 2px;
}
.warp___SiWVd .Content___iyi1N {
margin-top: 20px;
}
.warp___SiWVd .imgstyle___K_hQW {
height: 177px;
width: 291px;
border-radius: 4px 4px 0px 0px;
overflow: hidden;
}
.warp___SiWVd .imgstyle___K_hQW img {
width: 100%;
height: 100%;
transition: all 0.5s;
}
.warp___SiWVd .cardstyle___hk4N8 {
width: 291px;
height: 277px;
box-shadow: 0px 2px 4px 0px #d6dae1;
border-radius: 4px;
}
.warp___SiWVd .cardstyle___hk4N8 [class~='ant-card-body'] {
height: 100px;
padding: 32px 11px 21px 10px !important;
}
.warp___SiWVd .linkstyle___y6rxz {
width: 60px;
height: 28px;
background: #fa6400;
border-radius: 4px 0px 20px 0px;
position: absolute;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
}
.warp___SiWVd .paddingcard___K56IC .titlefont___B_PBh {
font-size: 16px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #000000;
height: 22px;
-webkit-box-orient: vertical;
display: -webkit-box;
-webkit-line-clamp: 1;
overflow: hidden;
}
.warp___SiWVd .flexEnd___SZPvY {
display: flex;
flex-direction: row;
align-items: flex-end;
}
.warp___SiWVd .flexEnd___SZPvY > span {
display: flex;
align-items: center;
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Video/components/index.less?modules ***!
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___inwoE {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___pg0PF {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___JNzAj {
align-items: center;
box-align: center;
}
.flex_box_center_end___ORNt1 {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___GLfwj {
flex-direction: column;
box-orient: block-axis;
}
.bg___JkHJF {
background: white;
}
.menu___L0YRG {
position: relative;
display: box;
display: flex;
align-items: center;
box-align: center;
}
.menu___L0YRG ul {
flex: 1 1;
}
.menu___L0YRG ul li {
height: 74px;
line-height: 74px;
margin: 0 15px;
}
.menu___L0YRG > div span {
margin-right: 35px;
color: #0152d9;
}
.desc___nrOMJ {
padding: 20px 0;
font-size: 16px;
font-weight: bold;
color: #999;
}
.otherLink___d3Pk0 {
position: absolute;
left: 0;
top: 30px;
border-radius: 0px 100px 100px 0px;
background: #f9751a;
height: 30px;
line-height: 30px;
padding: 0 18px;
text-align: center;
color: #fff;
}
.card___8aBp5 > div {
width: 31.3%;
margin-right: 3%;
display: inline-block;
margin-bottom: 30px;
border-radius: 15px;
overflow: hidden;
}
.card___8aBp5 > div:nth-child(3n) {
margin-right: 0;
}
.card___8aBp5 > div img {
width: 100%;
}
.card___8aBp5 [class='ant-card-actions'] {
text-align: right;
background: none;
border: 0;
}
.card___8aBp5 [class='ant-card-actions'] li {
width: auto !important;
margin-left: 6px;
border: 0;
float: none;
display: inline-block;
}
.img___eURkh {
position: relative;
width: 400px;
height: auto;
background-color: #f4f3f4;
display: flex;
align-items: center;
justify-content: center;
}
.img___eURkh > div {
position: absolute;
right: -6px;
top: -6px;
cursor: pointer;
background-color: #fff;
width: 16px;
height: 16px;
border-radius: 50%;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Video/Play/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.watermark___hNYlv {
position: absolute;
left: 0;
bottom: 100px;
font-size: 18px;
text-shadow: 0px 0px 5px #b6b6b6;
color: #ffffff;
z-index: 1;
}
.videovideo___ovOkV::-webkit-media-controls-fullscreen-button {
display: none !important;
}
@keyframes upDown___SlgHv {
0% {
left: 0;
bottom: 100px;
}
40% {
opacity: 1;
bottom: 80%;
left: calc(50% - 130px);
}
41% {
opacity: 0;
bottom: 80%;
left: calc(50% - 130px);
}
79% {
opacity: 0;
bottom: 80%;
left: calc(50% - 130px);
}
80% {
opacity: 1;
opacity: 100%;
bottom: 100px;
left: calc(100% - 270px);
}
100% {
opacity: 1;
bottom: 100px;
left: calc(100% - 270px);
}
}
.animate__loop___mvL6s {
animation-name: upDown___SlgHv;
}
:root {
--youtube-red: #fe0900;
}
.container___g1WYG {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.video-container___XPkWR {
width: 100%;
height: 100%;
margin: 0 auto;
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
}
.video-container___XPkWR video {
width: 100%;
height: 100%;
max-height: auto;
object-fit: cover;
}
.video-controls___to0Zq {
right: 0;
left: 0;
padding: 10px;
position: absolute;
bottom: 0;
transition: all 0.2s ease;
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.84));
}
.video-controls___to0Zq.hide___NA3DV {
opacity: 0;
pointer-events: none;
}
.video-progress___gqHsd {
position: relative;
height: 4px;
margin-bottom: 10px;
margin-top: 5px;
padding: 0 6px;
}
progress {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border-radius: 2px;
width: 100%;
height: 4px;
pointer-events: none;
position: absolute;
top: 0;
}
progress::-webkit-progress-bar {
background-color: #787878;
border-radius: 2px;
}
progress::-webkit-progress-value {
background: #fff;
border-radius: 2px;
}
progress::-moz-progress-bar {
background: #fff;
}
.seek___iZHBm {
position: absolute;
top: 0;
width: 100%;
cursor: pointer;
margin: 0;
}
.seek___iZHBm:hover + .seek-tooltip___uWyXx {
display: block;
}
.seek-tooltip___uWyXx {
white-space: nowrap;
display: none;
position: absolute;
top: -50px;
margin-left: -20px;
font-size: 12px;
padding: 3px;
content: attr(data-title);
font-weight: bold;
color: #fff;
background-color: rgba(0, 0, 0, 0.6);
}
.bottom-controls___uoIBm {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 14px;
}
.bottom-controls___uoIBm button {
display: inline-flex;
align-items: center;
}
.left-controls___mBEx4 {
display: flex;
align-items: center;
color: #fff;
font-size: 10px;
}
.right-controls___e9L6r {
display: flex;
}
.right-controls___e9L6r .rateOverlay___HHBWe {
background-color: #000;
}
.right-controls___e9L6r .controlText___M_BWR {
font-size: 12px;
color: #fff;
}
.volume-controls___fa3mE {
display: inline-flex;
align-items: center;
}
.volume-controls___fa3mE input {
width: 100px;
opacity: 1;
transition: all 0.4s ease;
}
.volume-controls___fa3mE:hover input,
.volume-controls___fa3mE input:focus {
width: 100px;
opacity: 1;
}
.container___g1WYG button {
cursor: pointer;
position: relative;
margin-right: 7px;
font-size: 12px;
padding: 3px;
border: none;
outline: none;
background-color: transparent;
}
.container___g1WYG button * {
pointer-events: none;
}
.container___g1WYG button::before {
content: attr(data-title);
position: absolute;
display: none;
left: 0;
top: -27px;
background-color: rgba(0, 0, 0, 0.6);
color: #fff;
font-weight: bold;
padding: 4px 6px;
word-break: keep-all;
white-space: pre;
}
.container___g1WYG button:last-child::before {
right: 0;
left: inherit;
}
.container___g1WYG button:hover::before {
display: inline-block;
}
.fullscreen-button___ur0es {
margin-right: 0;
}
.fullscreen-button1___rfaXm {
margin-top: -10px;
}
.pip-button___GFO8W svg {
width: 26px;
height: 26px;
}
.playback-animation___ndURq {
pointer-events: none;
position: absolute;
top: 50%;
left: 50%;
margin-left: -40px;
margin-top: -40px;
width: 80px;
height: 80px;
border-radius: 80px;
background-color: rgba(0, 0, 0, 0.6);
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
}
input[type='range'] {
-webkit-appearance: none;
-moz-appearance: none;
height: 4px;
background: transparent;
cursor: pointer;
}
input[type='range']:focus {
outline: none;
}
input[type='range']::-webkit-slider-runnable-track {
width: 100%;
cursor: pointer;
border-radius: 1.3px;
-webkit-appearance: none;
-webkit-transition: all 0.4s ease;
transition: all 0.4s ease;
}
input[type='range']::-webkit-slider-thumb {
height: 16px;
width: 16px;
border-radius: 16px;
background: #fe0900;
background: var(--youtube-red);
cursor: pointer;
-webkit-appearance: none;
margin-left: -1px;
opacity: 0;
}
input[type='range']:focus::-webkit-slider-runnable-track {
background: transparent;
}
input[type='range'].volume___OTmpP {
height: 5px;
background-color: #fff;
}
input[type='range'].volume___OTmpP::-webkit-slider-runnable-track {
background-color: transparent;
}
input[type='range'].volume___OTmpP::-webkit-slider-thumb {
margin-left: 0;
height: 14px;
width: 14px;
background: #fff;
}
input[type='range']::-moz-range-track {
width: 100%;
height: 8.4px;
cursor: pointer;
border: 1px solid transparent;
background: transparent;
border-radius: 1.3px;
}
input[type='range']::-moz-range-thumb {
height: 14px;
width: 14px;
border-radius: 50px;
border: 1px solid #fe0900;
border: 1px solid var(--youtube-red);
background: #fe0900;
background: var(--youtube-red);
cursor: pointer;
margin-top: 5px;
}
input[type='range']:focus::-moz-range-track {
outline: none;
}
input[type='range'].volume___OTmpP::-moz-range-thumb {
border: 1px solid #fff;
background: #fff;
}
.hidden___o7GkT {
display: none;
}
.container___g1WYG svg {
width: 20px;
height: 20px;
fill: #fff;
stroke: #fff;
cursor: pointer;
}
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Video/Modal/index.less?modules ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
[id="educoder"] .modal___LGwws {
position: relative;
}
[id="educoder"] .modal___LGwws video {
width: 800px;
height: 450px;
}
[id="educoder"] .modal___LGwws div[class~='ant-modal-body'] {
padding: 0px !important;
font-size: 0 !important;
vertical-align: top;
}
[id="educoder"] .closeIcon___vsUXI {
position: absolute;
color: #fff;
top: -10px;
right: -36px;
font-size: 24px !important;
width: 14px;
height: 8px;
margin-right: 0px;
z-index: 9;
cursor: pointer;
}
[id="educoder"] .closeIcon___vsUXI:before {
left: -4px;
position: absolute;
top: -16px;
}
[id="educoder"] .wrap___tDzbl {
display: flex;
justify-content: space-between;
padding: 9px;
background: #000000;
}
[id="educoder"] .input___aikQk {
color: #707070;
background-color: #000;
border-color: #707070;
margin-right: 12px;
}

1501
umi.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save