"use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([[40559],{ /***/ 9516: /*!*******************************************************************************************************!*\ !*** ./node_modules/_@ant-design_icons@5.4.0@@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@7.25.6@@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(33614); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/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@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules var AntdIcon = __webpack_require__(1393); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/CheckOutlined.js // GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY var CheckOutlined_CheckOutlined = function CheckOutlined(props, ref) { return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { ref: ref, icon: asn_CheckOutlined })); }; /**![check](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkxMiAxOTBoLTY5LjljLTkuOCAwLTE5LjEgNC41LTI1LjEgMTIuMkw0MDQuNyA3MjQuNSAyMDcgNDc0YTMyIDMyIDAgMDAtMjUuMS0xMi4ySDExMmMtNi43IDAtMTAuNCA3LjctNi4zIDEyLjlsMjczLjkgMzQ3YzEyLjggMTYuMiAzNy40IDE2LjIgNTAuMyAwbDQ4OC40LTYxOC45YzQuMS01LjEuNC0xMi44LTYuMy0xMi44eiIgLz48L3N2Zz4=) */ var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(CheckOutlined_CheckOutlined); if (false) {} /* harmony default export */ var icons_CheckOutlined = (RefIcon); /***/ }), /***/ 3148: /*!*******************************************************************************************************************!*\ !*** ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules ***! \*******************************************************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ icons_ExclamationCircleOutlined; } }); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(33614); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.js // This icon file is generated automatically. var ExclamationCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, "name": "exclamation-circle", "theme": "outlined" }; /* harmony default export */ var asn_ExclamationCircleOutlined = (ExclamationCircleOutlined); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules var AntdIcon = __webpack_require__(1393); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/ExclamationCircleOutlined.js // GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY var ExclamationCircleOutlined_ExclamationCircleOutlined = function ExclamationCircleOutlined(props, ref) { return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { ref: ref, icon: asn_ExclamationCircleOutlined })); }; /**![exclamation-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PHBhdGggZD0iTTQ2NCA2ODhhNDggNDggMCAxMDk2IDAgNDggNDggMCAxMC05NiAwem0yNC0xMTJoNDhjNC40IDAgOC0zLjYgOC04VjI5NmMwLTQuNC0zLjYtOC04LThoLTQ4Yy00LjQgMC04IDMuNi04IDh2MjcyYzAgNC40IDMuNiA4IDggOHoiIC8+PC9zdmc+) */ var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined); if (false) {} /* harmony default export */ var icons_ExclamationCircleOutlined = (RefIcon); /***/ }), /***/ 86413: /*!**************************************************************************************************************!*\ !*** ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/EyeInvisibleOutlined.js + 1 modules ***! \**************************************************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ icons_EyeInvisibleOutlined; } }); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(33614); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js // This icon file is generated automatically. var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" }; /* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules var AntdIcon = __webpack_require__(1393); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/EyeInvisibleOutlined.js // GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) { return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { ref: ref, icon: asn_EyeInvisibleOutlined })); }; /**![eye-invisible](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk0Mi4yIDQ4Ni4yUTg4OS40NyAzNzUuMTEgODE2LjcgMzA1bC01MC44OCA1MC44OEM4MDcuMzEgMzk1LjUzIDg0My40NSA0NDcuNCA4NzQuNyA1MTIgNzkxLjUgNjg0LjIgNjczLjQgNzY2IDUxMiA3NjZxLTcyLjY3IDAtMTMzLjg3LTIyLjM4TDMyMyA3OTguNzVRNDA4IDgzOCA1MTIgODM4cTI4OC4zIDAgNDMwLjItMzAwLjNhNjAuMjkgNjAuMjkgMCAwMDAtNTEuNXptLTYzLjU3LTMyMC42NEw4MzYgMTIyLjg4YTggOCAwIDAwLTExLjMyIDBMNzE1LjMxIDIzMi4yUTYyNC44NiAxODYgNTEyIDE4NnEtMjg4LjMgMC00MzAuMiAzMDAuM2E2MC4zIDYwLjMgMCAwMDAgNTEuNXE1Ni42OSAxMTkuNCAxMzYuNSAxOTEuNDFMMTEyLjQ4IDgzNWE4IDggMCAwMDAgMTEuMzFMMTU1LjE3IDg4OWE4IDggMCAwMDExLjMxIDBsNzEyLjE1LTcxMi4xMmE4IDggMCAwMDAtMTEuMzJ6TTE0OS4zIDUxMkMyMzIuNiAzMzkuOCAzNTAuNyAyNTggNTEyIDI1OGM1NC41NCAwIDEwNC4xMyA5LjM2IDE0OS4xMiAyOC4zOWwtNzAuMyA3MC4zYTE3NiAxNzYgMCAwMC0yMzguMTMgMjM4LjEzbC04My40MiA4My40MkMyMjMuMSA2MzcuNDkgMTgzLjMgNTgyLjI4IDE0OS4zIDUxMnptMjQ2LjcgMGExMTIuMTEgMTEyLjExIDAgMDExNDYuMi0xMDYuNjlMNDAxLjMxIDU0Ni4yQTExMiAxMTIgMCAwMTM5NiA1MTJ6IiAvPjxwYXRoIGQ9Ik01MDggNjI0Yy0zLjQ2IDAtNi44Ny0uMTYtMTAuMjUtLjQ3bC01Mi44MiA1Mi44MmExNzYuMDkgMTc2LjA5IDAgMDAyMjcuNDItMjI3LjQybC01Mi44MiA1Mi44MmMuMzEgMy4zOC40NyA2Ljc5LjQ3IDEwLjI1YTExMS45NCAxMTEuOTQgMCAwMS0xMTIgMTEyeiIgLz48L3N2Zz4=) */ var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined); if (false) {} /* harmony default export */ var icons_EyeInvisibleOutlined = (RefIcon); /***/ }), /***/ 76897: /*!*****************************************************************************************************!*\ !*** ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ icons_EyeOutlined; } }); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(33614); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeOutlined.js // This icon file is generated automatically. var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" }; /* harmony default export */ var asn_EyeOutlined = (EyeOutlined); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules var AntdIcon = __webpack_require__(1393); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/EyeOutlined.js // GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) { return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { ref: ref, icon: asn_EyeOutlined })); }; /**![eye](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk0Mi4yIDQ4Ni4yQzg0Ny40IDI4Ni41IDcwNC4xIDE4NiA1MTIgMTg2Yy0xOTIuMiAwLTMzNS40IDEwMC41LTQzMC4yIDMwMC4zYTYwLjMgNjAuMyAwIDAwMCA1MS41QzE3Ni42IDczNy41IDMxOS45IDgzOCA1MTIgODM4YzE5Mi4yIDAgMzM1LjQtMTAwLjUgNDMwLjItMzAwLjMgNy43LTE2LjIgNy43LTM1IDAtNTEuNXpNNTEyIDc2NmMtMTYxLjMgMC0yNzkuNC04MS44LTM2Mi43LTI1NEMyMzIuNiAzMzkuOCAzNTAuNyAyNTggNTEyIDI1OGMxNjEuMyAwIDI3OS40IDgxLjggMzYyLjcgMjU0Qzc5MS41IDY4NC4yIDY3My40IDc2NiA1MTIgNzY2em0tNC00MzBjLTk3LjIgMC0xNzYgNzguOC0xNzYgMTc2czc4LjggMTc2IDE3NiAxNzYgMTc2LTc4LjggMTc2LTE3Ni03OC44LTE3Ni0xNzYtMTc2em0wIDI4OGMtNjEuOSAwLTExMi01MC4xLTExMi0xMTJzNTAuMS0xMTIgMTEyLTExMiAxMTIgNTAuMSAxMTIgMTEyLTUwLjEgMTEyLTExMiAxMTJ6IiAvPjwvc3ZnPg==) */ var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined); if (false) {} /* harmony default export */ var icons_EyeOutlined = (RefIcon); /***/ }), /***/ 26970: /*!*********************************************************!*\ !*** ./src/layouts/virtualDetail/index.tsx + 9 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 */ virtualDetail; }, listPlanLibrary: function() { return /* binding */ listPlanLibrary; } }); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); // EXTERNAL MODULE: ./src/.umi-production/exports.ts var _umi_production_exports = __webpack_require__(80608); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/layout/index.js var layout = __webpack_require__(44000); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js var row = __webpack_require__(95237); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js var objectSpread2 = __webpack_require__(82242); var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js var regeneratorRuntime = __webpack_require__(7557); var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js var asyncToGenerator = __webpack_require__(41498); var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js var slicedToArray = __webpack_require__(79800); var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js var objectWithoutProperties = __webpack_require__(39647); var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules var skeleton = __webpack_require__(66999); // EXTERNAL MODULE: ./node_modules/_react-beautiful-dnd@13.0.0@react-beautiful-dnd/dist/react-beautiful-dnd.esm.js + 27 modules var react_beautiful_dnd_esm = __webpack_require__(29747); ;// CONCATENATED MODULE: ./src/layouts/virtualDetail/LeftMenus/index.less?modules // extracted by mini-css-extract-plugin /* harmony default export */ var LeftMenusmodules = ({"flex_box_center":"flex_box_center___DQ9X1","flex_space_between":"flex_space_between___FvB3U","flex_box_vertical_center":"flex_box_vertical_center___CjjN6","flex_box_center_end":"flex_box_center_end___kfWYR","flex_box_column":"flex_box_column___P4a8M","leftMenu":"leftMenu___Xh9Tv","menuText":"menuText___r8qUK","list":"list___gc6zr","icon":"icon___BIyI5","name":"name___EvZQx","activeCssOne":"activeCssOne___bjRI_","activeCssTwo":"activeCssTwo___X0Axs"}); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js var jsx_runtime = __webpack_require__(37712); ;// CONCATENATED MODULE: ./src/layouts/virtualDetail/LeftMenus/index.tsx var _excluded = ["virtualSpaces", "globalSetting", "user", "loading", "dispatch", "children"]; var Menus = function Menus(_ref) { var virtualSpaces = _ref.virtualSpaces, globalSetting = _ref.globalSetting, user = _ref.user, loading = _ref.loading, dispatch = _ref.dispatch, _children = _ref.children, props = objectWithoutProperties_default()(_ref, _excluded); var query = (0,_umi_production_exports.useParams)(); var location = (0,_umi_production_exports.useLocation)(); //展开的Key值 var _useState = (0,_react_17_0_2_react.useState)([]), _useState2 = slicedToArray_default()(_useState, 2), openFirstKey = _useState2[0], setOpenFirstKey = _useState2[1]; var menus = virtualSpaces.menus; console.log(menus, 'menus'); (0,_react_17_0_2_react.useEffect)(function () { getMenus(); }, []); var SubmenuIcons = { syllabuses: 'iconfont font18 icon-jiaoxuedagang', courses: 'iconfont font18 icon-kechengziyuan', shixuns: 'iconfont font18 icon-shixunxiangmu', videos: 'iconfont font18 icon-shipinziyuan', attachments: 'iconfont icon-kejianziyuan', members: 'iconfont font18 icon-chengyuanguanli2', notices: 'iconfont font18 icon-tongzhigonggao', graphs: 'iconfont font18 icon-zhishitupu', achievements: 'iconfont font18 icon-jiaoyanchengguo', vresearches: 'iconfont font18 icon-VRyantao', leaderboards: 'iconfont font18 icon-gongxianpaihang', news: 'iconfont font18 icon-tongzhigonggao', collaborates: 'iconfont font18 icon-jiaoxuexietong', educations: 'iconfont font18 icon-kechengziyuan', practices: 'iconfont font18 icon-jiaoyanchengguo', communities: 'iconfont font18 icon-gongxianpaihang', managements: 'iconfont font18 icon-shezhi6' }; var getMenus = /*#__PURE__*/function () { var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() { var res, key, id; return regeneratorRuntime_default()().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: _context.next = 2; return dispatch({ type: 'virtualSpaces/getVirtualSpacesMenus', payload: { id: query.virtual_spacesId } }); case 2: res = _context.sent; key = []; id = ''; res === null || res === void 0 || res.forEach(function (e) { var _e$children; e === null || e === void 0 || (_e$children = e.children) === null || _e$children === void 0 || _e$children.forEach(function (k) { var _location$pathname; if (location !== null && location !== void 0 && (_location$pathname = location.pathname) !== null && _location$pathname !== void 0 && _location$pathname.includes(k.module_url)) { id = k.id; } }); key.push(e.id); }); setOpenFirstKey(key); dispatch({ type: 'virtualSpaces/setActionTabs', payload: { module_id: id } }); case 8: case "end": return _context.stop(); } }, _callee); })); return function getMenus() { return _ref2.apply(this, arguments); }; }(); var onDragEnd = /*#__PURE__*/function () { var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(data) { return regeneratorRuntime_default()().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: case "end": return _context2.stop(); } }, _callee2); })); return function onDragEnd(_x) { return _ref3.apply(this, arguments); }; }(); return /*#__PURE__*/(0,jsx_runtime.jsx)("section", { className: LeftMenusmodules.leftMenu, children: /*#__PURE__*/(0,jsx_runtime.jsx)(skeleton/* default */.Z, { loading: loading.effects['virtualSpaces/getVirtualSpacesMenus'], children: menus === null || menus === void 0 ? void 0 : menus.map(function (v, k) { var _v$children; var bool = v === null || v === void 0 || (_v$children = v.children) === null || _v$children === void 0 ? void 0 : _v$children.some(function (e) { return location.pathname.indexOf(e.module_url) > -1; }); bool = bool || location.pathname === (v === null || v === void 0 ? void 0 : v.module_url); return /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", { children: [/*#__PURE__*/(0,jsx_runtime.jsx)("li", { className: bool && LeftMenusmodules.activeCssOne, onClick: function onClick() { if ((v === null || v === void 0 ? void 0 : v.icon_type) === 'managements') { _umi_production_exports.history.push(v === null || v === void 0 ? void 0 : v.module_url); } // if (openFirstKey?.includes(v.id)) { // setOpenFirstKey(openFirstKey?.filter((e: any) => e !== v.id)) // } else { // setOpenFirstKey([...openFirstKey, v.id]) // } }, children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: LeftMenusmodules.list, style: (v === null || v === void 0 ? void 0 : v.icon_type) === 'managements' ? { cursor: 'pointer' } : {}, children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", { className: LeftMenusmodules.icon, children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", { className: SubmenuIcons === null || SubmenuIcons === void 0 ? void 0 : SubmenuIcons[v.icon_type] }), " "] }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { className: LeftMenusmodules.name, children: v.name })] }) }), (openFirstKey === null || openFirstKey === void 0 ? void 0 : openFirstKey.includes(v.id)) && /*#__PURE__*/(0,jsx_runtime.jsx)(react_beautiful_dnd_esm/* DragDropContext */.Z5, { onDragEnd: onDragEnd, children: /*#__PURE__*/(0,jsx_runtime.jsx)(react_beautiful_dnd_esm/* Droppable */.bK, { droppableId: String(v.id), children: function children(provided, snapshot) { var _v$children2; return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", objectSpread2_default()(objectSpread2_default()({ ref: provided.innerRef }, provided.droppableProps), {}, { children: v === null || v === void 0 || (_v$children2 = v.children) === null || _v$children2 === void 0 ? void 0 : _v$children2.map(function (val, key) { var _val$id; return /*#__PURE__*/(0,jsx_runtime.jsx)(react_beautiful_dnd_esm/* Draggable */._l, { draggableId: "".concat((_val$id = val.id) === null || _val$id === void 0 ? void 0 : _val$id.toString(), "-").concat(k, "-").concat(key), index: key, isDragDisabled: true, children: function children(provided, snapshot) { return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({ ref: provided.innerRef }, provided.draggableProps), provided.dragHandleProps), {}, { children: /*#__PURE__*/(0,jsx_runtime.jsx)("li", { className: location.pathname.indexOf(val.module_url) > -1 && LeftMenusmodules.activeCssTwo, children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { className: LeftMenusmodules.menuText, onClick: function onClick(e) { _umi_production_exports.history.push(val.module_url); dispatch({ type: 'virtualSpaces/setActionTabs', payload: { module_id: v.id } }); }, children: val.name }) }) }), key); } }, val.id); }) })); } }) })] }, k); }) }) }); }; /* harmony default export */ var LeftMenus = ((0,_umi_production_exports.connect)(function (_ref4) { var virtualSpaces = _ref4.virtualSpaces, loading = _ref4.loading, globalSetting = _ref4.globalSetting, user = _ref4.user; return { virtualSpaces: virtualSpaces, globalSetting: globalSetting, user: user, loading: loading }; })(Menus)); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules var modal = __webpack_require__(43418); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules var message = __webpack_require__(8591); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules var tooltip = __webpack_require__(6848); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js var es_button = __webpack_require__(3113); ;// 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__(49105); // EXTERNAL MODULE: ./src/utils/env.ts + 1 modules var env = __webpack_require__(71681); // EXTERNAL MODULE: ./src/pages/virtualSpaces/components/AddOrEdit/index.tsx + 1 modules var AddOrEdit = __webpack_require__(47050); // EXTERNAL MODULE: ./src/utils/authority.ts var authority = __webpack_require__(75916); // EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules var verifyLogin = __webpack_require__(10283); ;// 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_17_0_2_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 */.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 */.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 */.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 */.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 */.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 var TopPlanBanner_TopBanner = function TopBanner(_ref) { var virtualSpaces = _ref.virtualSpaces, user = _ref.user, dispatch = _ref.dispatch; var virtualSpacesDetails = virtualSpaces.virtualSpacesDetails; return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: TopPlanBannermodules.bg, style: { background: "url('".concat(env/* default */.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: TopPlanBannermodules.headName, children: !(virtualSpacesDetails !== null && virtualSpacesDetails !== void 0 && virtualSpacesDetails.is_upload_bg_image) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", { children: [" ", virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.name] }) }) }); }; /* harmony default export */ var TopPlanBanner = ((0,_umi_production_exports.connect)(function (_ref2) { var virtualSpaces = _ref2.virtualSpaces, user = _ref2.user; return { virtualSpaces: virtualSpaces, user: user }; })(TopPlanBanner_TopBanner)); ;// CONCATENATED MODULE: ./src/layouts/virtualDetail/LeftPlanMenus/index.less?modules // extracted by mini-css-extract-plugin /* harmony default export */ var LeftPlanMenusmodules = ({"flex_box_center":"flex_box_center___tyjzz","flex_space_between":"flex_space_between___twMxD","flex_box_vertical_center":"flex_box_vertical_center___rpdJ6","flex_box_center_end":"flex_box_center_end___HPgPu","flex_box_column":"flex_box_column___Xw8TQ","menuWrap":"menuWrap___oMbDo","nav":"nav___tDkKA","active":"active___CEg8Y"}); ;// CONCATENATED MODULE: ./src/layouts/virtualDetail/LeftPlanMenus/index.tsx var LeftPlanMenus_excluded = ["user", "globalSetting", "dispatch", "virtualSpaces"]; var Banner = function Banner(_ref) { var _renderList; var user = _ref.user, globalSetting = _ref.globalSetting, dispatch = _ref.dispatch, virtualSpaces = _ref.virtualSpaces, props = objectWithoutProperties_default()(_ref, LeftPlanMenus_excluded); var location = (0,_umi_production_exports.useLocation)(); var _useState = (0,_react_17_0_2_react.useState)(), _useState2 = slicedToArray_default()(_useState, 2), activeKey = _useState2[0], setActiveKey = _useState2[1]; var params = (0,_umi_production_exports.useParams)(); var virtual_spacesId = params.virtual_spacesId; var _virtualSpaces$menus = virtualSpaces.menus, menus = _virtualSpaces$menus === void 0 ? [] : _virtualSpaces$menus; (0,_react_17_0_2_react.useEffect)(function () { if (menus.length) { var _location$pathname$sp; var active = ((_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[3]) || 'homepage'; setActiveKey(active); // const keys = renderList().map(e => e.icon_type) // if (keys.includes(active)) { // setActiveKey(active); // } else { // setActiveKey(keys[0]); // } } }, [location.pathname, menus]); (0,_react_17_0_2_react.useEffect)(function () { getMenus(); }, []); var getMenus = /*#__PURE__*/function () { var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() { return regeneratorRuntime_default()().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: dispatch({ type: 'virtualSpaces/getVirtualSpacesMenus', payload: { id: virtual_spacesId } }); case 1: case "end": return _context.stop(); } }, _callee); })); return function getMenus() { return _ref2.apply(this, arguments); }; }(); var renderList = function renderList() { var list = menus.map(function (e) { var param = listPlanLibrary.find(function (k) { return k.icon_type === e.icon_type; }); return objectSpread2_default()(objectSpread2_default()({}, e), {}, { icon: param === null || param === void 0 ? void 0 : param.icon }); }); list = list.filter(function (e) { return !e.hidden; }); return list; }; return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: LeftPlanMenusmodules.menuWrap, children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: LeftPlanMenusmodules.nav, children: (_renderList = renderList()) === null || _renderList === void 0 ? void 0 : _renderList.map(function (item) { var icon_type = item.icon_type, icon = item.icon, name = item.name, module_url = item.module_url; return /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, { to: module_url, onClick: function onClick() { return setActiveKey(icon_type); }, className: activeKey === icon_type ? LeftPlanMenusmodules.active : '', children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", { className: icon }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { title: name, children: name })] }, icon_type); }) }) }); }; /* harmony default export */ var LeftPlanMenus = ((0,_umi_production_exports.connect)(function (_ref3) { var user = _ref3.user, VirtualSpacesModelState = _ref3.virtualSpaces, globalSetting = _ref3.globalSetting; return { user: user, globalSetting: globalSetting, virtualSpaces: VirtualSpacesModelState }; })(Banner)); ;// CONCATENATED MODULE: ./src/layouts/virtualDetail/index.less?modules // extracted by mini-css-extract-plugin /* harmony default export */ var virtualDetailmodules = ({"loading":"loading___hM_ZK","wrap":"wrap___o0FSi"}); // EXTERNAL MODULE: ./src/utils/util.tsx var util = __webpack_require__(27876); ;// CONCATENATED MODULE: ./src/layouts/virtualDetail/index.tsx var listPlanLibrary = [{ icon_type: "homepage", name: "101计划-软件工程", icon: 'iconfont icon-a-101jihua' }, { icon_type: "announcement", name: "通知公告", icon: 'iconfont icon-tongzhigonggao1' }, { icon_type: "survey", name: "课程调研", icon: 'iconfont icon-kechengtiaoyan' }, { icon_type: "knowledge", name: "知识体系", icon: 'iconfont icon-zhishitixi' }, { icon_type: "plan", name: "课程教案", icon: 'iconfont icon-kechengjiaoan' }, { icon_type: "material", name: "课程教材", icon: 'iconfont icon-kechengjiaocai' }, { icon_type: "experiment", name: "实验体系", icon: 'iconfont icon-shijianxiangmu' }, { icon_type: "resources", name: "教学资源", icon: 'iconfont icon-jiaoxueziyuan' }, // { // icon_type: "contribute", // name: "社区贡献", // icon: 'iconfont icon-shijianxiangmu', // }, { icon_type: "settings", name: "社区设置", icon: 'iconfont icon-shequshezhi' }]; var Content = layout/* default */.Z.Content; var Page = function Page(_ref) { var globalSetting = _ref.globalSetting, user = _ref.user, dispatch = _ref.dispatch, children = _ref.children, virtualSpaces = _ref.virtualSpaces; var urlParams = (0,_umi_production_exports.useParams)(); var location = (0,_umi_production_exports.useLocation)(); var virtualSpacesDetails = virtualSpaces.virtualSpacesDetails, loading = virtualSpaces.loading; //新版本的虚拟社区 var newPage = util/* vtrsKey */.AS === '101' || util/* vtrsKey */.AS === 'vtrs'; (0,_react_17_0_2_react.useEffect)(function () { dispatch({ type: "globalSetting/setTheme", payload: "vspaces" }); return function () { dispatch({ type: "globalSetting/setTheme", payload: "default" }); }; }, []); (0,_react_17_0_2_react.useEffect)(function () { dispatch({ type: 'virtualSpaces/getVirtualSpacesDetails', payload: { id: urlParams === null || urlParams === void 0 ? void 0 : urlParams.virtual_spacesId } }); }, []); (0,_react_17_0_2_react.useEffect)(function () { if (virtualSpacesDetails !== null && virtualSpacesDetails !== void 0 && virtualSpacesDetails.id && loading) { dispatch({ type: "virtualSpaces/setVirtualSpacesLoading", payload: false }); } }, [virtualSpacesDetails, loading]); if (loading) { return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {}); } return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { children: newPage ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: "pb20", children: [/*#__PURE__*/(0,jsx_runtime.jsx)(TopPlanBanner, {}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, { className: "".concat(virtualDetailmodules.wrap, " bg-white"), wrap: false, children: [/*#__PURE__*/(0,jsx_runtime.jsx)(LeftPlanMenus, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(Content, { style: { flex: 1, overflow: 'hidden', paddingBottom: 20 }, children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {}) })] })] }) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { 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, { className: "ml20", children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {}) })] }) })] }) }); }; /* harmony default export */ var virtualDetail = ((0,_umi_production_exports.connect)(function (_ref2) { var globalSetting = _ref2.globalSetting, user = _ref2.user, virtualSpaces = _ref2.virtualSpaces; return { globalSetting: globalSetting, user: user, virtualSpaces: virtualSpaces }; })(Page)); /***/ }), /***/ 56762: /*!************************************************************************!*\ !*** ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useForceUpdate.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ Z: function() { return /* binding */ useForceUpdate; } /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301); function useForceUpdate() { const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0); return forceUpdate; } /***/ }), /***/ 92832: /*!*********************************************************************!*\ !*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 3 modules ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ input; } }); // EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js var _classnames_2_5_1_classnames = __webpack_require__(92310); var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js var context = __webpack_require__(36355); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js var form_context = __webpack_require__(32441); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js var style = __webpack_require__(9937); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js "use client"; const Group = props => { const { getPrefixCls, direction } = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_); const { prefixCls: customizePrefixCls, className } = props; const prefixCls = getPrefixCls('input-group', customizePrefixCls); const inputPrefixCls = getPrefixCls('input'); const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls); const cls = _classnames_2_5_1_classnames_default()(prefixCls, { [`${prefixCls}-lg`]: props.size === 'large', [`${prefixCls}-sm`]: props.size === 'small', [`${prefixCls}-compact`]: props.compact, [`${prefixCls}-rtl`]: direction === 'rtl' }, hashId, className); const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM); const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), { isFormItemInput: false }), [formItemContext]); if (false) {} return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", { className: cls, style: props.style, onMouseEnter: props.onMouseEnter, onMouseLeave: props.onMouseLeave, onFocus: props.onFocus, onBlur: props.onBlur }, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, { value: groupFormItemContext }, props.children))); }; /* harmony default export */ var input_Group = (Group); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules var Input = __webpack_require__(9432); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/EyeInvisibleOutlined.js + 1 modules var EyeInvisibleOutlined = __webpack_require__(86413); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules var EyeOutlined = __webpack_require__(76897); // EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/omit.js var omit = __webpack_require__(55405); // EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/ref.js var es_ref = __webpack_require__(25629); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js var useRemovePasswordTimeout = __webpack_require__(59412); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.js "use client"; var __rest = undefined && undefined.__rest || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; const defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(EyeInvisibleOutlined/* default */.Z, null); const ActionMap = { click: 'onClick', hover: 'onMouseOver' }; const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { const { visibilityToggle = true } = props; const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined; const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false); const inputRef = (0,_react_17_0_2_react.useRef)(null); _react_17_0_2_react.useEffect(() => { if (visibilityControlled) { setVisible(visibilityToggle.visible); } }, [visibilityControlled, visibilityToggle]); // Remove Password value const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef); const onVisibleChange = () => { const { disabled } = props; if (disabled) { return; } if (visible) { removePasswordTimeout(); } setVisible(prevState => { var _a; const newState = !prevState; if (typeof visibilityToggle === 'object') { (_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState); } return newState; }); }; const getIcon = prefixCls => { const { action = 'click', iconRender = defaultIconRender } = props; const iconTrigger = ActionMap[action] || ''; const icon = iconRender(visible); const iconProps = { [iconTrigger]: onVisibleChange, className: `${prefixCls}-icon`, key: 'passwordIcon', onMouseDown: e => { // Prevent focused state lost // https://github.com/ant-design/ant-design/issues/15173 e.preventDefault(); }, onMouseUp: e => { // Prevent caret position change // https://github.com/ant-design/ant-design/issues/23524 e.preventDefault(); } }; return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps); }; const { className, prefixCls: customizePrefixCls, inputPrefixCls: customizeInputPrefixCls, size } = props, restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]); const { getPrefixCls } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls); const prefixCls = getPrefixCls('input-password', customizePrefixCls); const suffixIcon = visibilityToggle && getIcon(prefixCls); const inputClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, { [`${prefixCls}-${size}`]: !!size }); const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), { type: visible ? 'text' : 'password', className: inputClassName, prefixCls: inputPrefixCls, suffix: suffixIcon }); if (size) { omittedProps.size = size; } return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({ ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef) }, omittedProps)); }); if (false) {} /* harmony default export */ var input_Password = (Password); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules var SearchOutlined = __webpack_require__(78405); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js var reactNode = __webpack_require__(92343); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js var es_button = __webpack_require__(3113); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js var useSize = __webpack_require__(19716); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js var Compact = __webpack_require__(33234); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js "use client"; var Search_rest = undefined && undefined.__rest || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; const Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { const { prefixCls: customizePrefixCls, inputPrefixCls: customizeInputPrefixCls, className, size: customizeSize, suffix, enterButton = false, addonAfter, loading, disabled, onSearch: customOnSearch, onChange: customOnChange, onCompositionStart, onCompositionEnd } = props, restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]); const { getPrefixCls, direction } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); const composedRef = _react_17_0_2_react.useRef(false); const prefixCls = getPrefixCls('input-search', customizePrefixCls); const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls); const { compactSize } = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction); const size = (0,useSize/* default */.Z)(ctx => { var _a; return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx; }); const inputRef = _react_17_0_2_react.useRef(null); const onChange = e => { if (e && e.target && e.type === 'click' && customOnSearch) { customOnSearch(e.target.value, e, { source: 'clear' }); } if (customOnChange) { customOnChange(e); } }; const onMouseDown = e => { var _a; if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) { e.preventDefault(); } }; const onSearch = e => { var _a, _b; if (customOnSearch) { customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, { source: 'input' }); } }; const onPressEnter = e => { if (composedRef.current || loading) { return; } onSearch(e); }; const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null; const btnClassName = `${prefixCls}-button`; let button; const enterButtonAsElement = enterButton || {}; const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true; if (isAntdButton || enterButtonAsElement.type === 'button') { button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({ onMouseDown, onClick: e => { var _a, _b; (_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e); onSearch(e); }, key: 'enterButton' }, isAntdButton ? { className: btnClassName, size } : {})); } else { button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, { className: btnClassName, type: enterButton ? 'primary' : undefined, size: size, disabled: disabled, key: "enterButton", onMouseDown: onMouseDown, onClick: onSearch, loading: loading, icon: searchIcon }, enterButton); } if (addonAfter) { button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, { key: 'addonAfter' })]; } const cls = _classnames_2_5_1_classnames_default()(prefixCls, { [`${prefixCls}-rtl`]: direction === 'rtl', [`${prefixCls}-${size}`]: !!size, [`${prefixCls}-with-button`]: !!enterButton }, className); const handleOnCompositionStart = e => { composedRef.current = true; onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e); }; const handleOnCompositionEnd = e => { composedRef.current = false; onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e); }; return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({ ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref), onPressEnter: onPressEnter }, restProps, { size: size, onCompositionStart: handleOnCompositionStart, onCompositionEnd: handleOnCompositionEnd, prefixCls: inputPrefixCls, addonAfter: button, suffix: suffix, onChange: onChange, className: cls, disabled: disabled })); }); if (false) {} /* harmony default export */ var input_Search = (Search); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js var TextArea = __webpack_require__(1643); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js "use client"; const input_Input = Input/* default */.Z; if (false) {} input_Input.Group = input_Group; input_Input.Search = input_Search; input_Input.TextArea = TextArea/* default */.Z; input_Input.Password = input_Password; /* harmony default export */ var input = (input_Input); /***/ }), /***/ 44000: /*!**********************************************************!*\ !*** ./node_modules/_antd@5.9.0@antd/es/layout/index.js ***! \**********************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 84966); /* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 86737); "use client"; const Layout = _layout__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP; Layout.Header = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Header */ .h4; Layout.Footer = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Footer */ .$_; Layout.Content = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Content */ .VY; Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z; /* harmony default export */ __webpack_exports__.Z = (Layout); /***/ }), /***/ 60028: /*!**********************************************************!*\ !*** ./node_modules/_antd@5.9.0@antd/es/upload/index.js ***! \**********************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { /* harmony import */ var _Dragger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dragger */ 71409); /* harmony import */ var _Upload__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Upload */ 81376); "use client"; const Upload = _Upload__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z; Upload.Dragger = _Dragger__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z; Upload.LIST_IGNORE = _Upload__WEBPACK_IMPORTED_MODULE_0__/* .LIST_IGNORE */ .E; /* harmony default export */ __webpack_exports__.Z = (Upload); /***/ }) }]);