Auto Submit

dev_aliyun_xibeigongye
autosubmit 3 years ago
parent c1bd9a8a3c
commit 850e99abf4

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27044,71514,36579,23805,62654,5506,97073,88201,95112],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27044,71514,36579,23805,62654,5506,97073,88201,32415,95112],{
/***/ 7918:
/*!******************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27084,34180,25619,794,47638,7303,79779,47391,80670],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27084,34180,25619,794,48896,47638,3446,7303,79779,47391,80670],{
/***/ 38900:
/*!**********************************************************************!*\

@ -0,0 +1,770 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[30707],{
/***/ 8213:
/*!******************************************************!*\
!*** ./src/components/AuthenticationModel/index.tsx ***!
\******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/modal/style */ 35611);
/* harmony import */ var antd_es_modal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd/es/modal */ 85402);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js */ 70215);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! umi */ 89214);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
var _excluded = ["shixunsDetail", "globalSetting", "loading", "dispatch"];
var AuthModal = function AuthModal(_ref) {
var shixunsDetail = _ref.shixunsDetail,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
props = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default()(_ref, _excluded);
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(antd_es_modal__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
centered: true,
keyboard: false,
closable: false,
zIndex: 6666,
title: "\u63D0\u793A",
open: shixunsDetail.actionTabs.key === 'Banner-Auth',
okText: "\u786E\u5B9A",
cancelText: "\u53D6\u6D88",
onOk: function onOk() {
dispatch({
type: 'shixunsDetail/setActionTabs',
payload: {}
});
window.location.href = '/account/certification';
},
onCancel: function onCancel() {
dispatch({
type: 'shixunsDetail/setActionTabs',
payload: {}
});
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("p", {
className: "tc font16",
children: ["\u5F53\u524D\u7ADE\u8D5B\u9700\u8981\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u8BF7\u5148\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1\u540E\u518D\u62A5\u540D\u53C2\u8D5B", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("br", {}), "\u8BF7\u95EE\u662F\u5426\u524D\u5F80\u8FDB\u884C\u8BA4\u8BC1\uFF1F"]
})
});
};
/* harmony default export */ __webpack_exports__["Z"] = ((0,umi__WEBPACK_IMPORTED_MODULE_3__.connect)(function (_ref2) {
var shixunsDetail = _ref2.shixunsDetail,
loading = _ref2.loading,
globalSetting = _ref2.globalSetting;
return {
shixunsDetail: shixunsDetail,
globalSetting: globalSetting,
loading: loading.models.index
};
})(AuthModal));
/***/ }),
/***/ 6237:
/*!******************************************************************!*\
!*** ./src/pages/Competitions/Entered/Enteredmodel/Addteams.tsx ***!
\******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/modal/style */ 35611);
/* harmony import */ var antd_es_modal__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd/es/modal */ 85402);
/* harmony import */ var antd_es_input_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/input/style */ 69463);
/* harmony import */ var antd_es_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd/es/input */ 75008);
/* harmony import */ var antd_es_message_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd/es/message/style */ 14934);
/* harmony import */ var antd_es_message__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd/es/message */ 12461);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ant-design/icons */ 28508);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
//创建战队弹窗
function Addteans(_ref) {
var isAddmodle = _ref.isAddmodle,
setIsAdd = _ref.setIsAdd,
createTeam = _ref.createTeam;
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(""),
_useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
personname = _useState2[0],
setpersonname = _useState2[1];
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(antd_es_modal__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
centered: true,
title: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
style: {
alignItems: 'center',
display: 'flex'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", {
style: {
textAlign: 'left',
flex: '1'
},
children: "\u521B\u5EFA\u6218\u961F"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
onClick: function onClick() {
return setIsAdd(false);
},
style: {
cursor: 'porint'
}
})]
}),
open: isAddmodle,
closable: false,
destroyOnClose: true,
onOk: function onOk() {
if (!personname) {
antd_es_message__WEBPACK_IMPORTED_MODULE_8__/* ["default"].info */ .ZP.info('战队名不能为空');
return;
}
createTeam(personname);
},
onCancel: function onCancel() {
return setIsAdd(false);
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("span", {
style: {
fontSize: '14px',
color: '#F73737'
},
children: "*"
}), "\u961F\u540D\uFF1A", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("p", {
style: {
marginTop: '15px',
marginLeft: '15px'
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(antd_es_input__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
placeholder: "请输入队名",
value: personname,
maxLength: 60,
addonAfter: String(personname && personname.length || 0) + "/60",
onChange: function onChange(e) {
return setpersonname(e.target.value);
}
})
})]
})
});
}
/* harmony default export */ __webpack_exports__["Z"] = (Addteans);
/***/ }),
/***/ 74195:
/*!*******************************************************************!*\
!*** ./src/pages/Competitions/Entered/Enteredmodel/JoinModel.tsx ***!
\*******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/modal/style */ 35611);
/* harmony import */ var antd_es_modal__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd/es/modal */ 85402);
/* harmony import */ var antd_es_input_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/input/style */ 69463);
/* harmony import */ var antd_es_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd/es/input */ 75008);
/* harmony import */ var antd_es_message_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd/es/message/style */ 14934);
/* harmony import */ var antd_es_message__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd/es/message */ 12461);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ant-design/icons */ 28508);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
//通过邀请码加入战队
function Jointeam(_ref) {
var isjoin = _ref.isjoin,
setJoin = _ref.setJoin,
JoinTeams = _ref.JoinTeams;
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(""),
_useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
code = _useState2[0],
setCode = _useState2[1];
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(antd_es_modal__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
centered: true,
title: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
style: {
alignItems: 'center',
display: 'flex'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", {
style: {
textAlign: 'left',
flex: '1'
},
children: "\u52A0\u5165\u6218\u961F"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
onClick: function onClick() {
return setJoin(false);
},
style: {
cursor: 'porint'
}
})]
}),
open: isjoin,
closable: false,
destroyOnClose: true,
onOk: function onOk() {
if (!code) {
antd_es_message__WEBPACK_IMPORTED_MODULE_8__/* ["default"].info */ .ZP.info('邀请码不能为空');
return;
}
JoinTeams(code);
},
onCancel: function onCancel() {
return setJoin(false);
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", {
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("p", {
style: {
marginTop: '15px',
marginLeft: '15px',
display: 'flex',
alignItems: 'center'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("span", {
style: {
flex: 'none'
},
children: "\u9080\u8BF7\u7801\uFF1A"
}), " ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(antd_es_input__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
placeholder: "请输入邀请码",
value: code,
maxLength: 60,
addonAfter: String(code && code.length || 0) + "/60",
onChange: function onChange(e) {
return setCode(e.target.value);
}
})]
})
})
});
}
/* harmony default export */ __webpack_exports__["Z"] = (Jointeam);
/***/ }),
/***/ 74009:
/*!**********************************************************!*\
!*** ./src/pages/Competitions/components/PhoneModal.tsx ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/modal/style */ 35611);
/* harmony import */ var antd_es_modal__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd/es/modal */ 85402);
/* harmony import */ var antd_es_button_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/button/style */ 29913);
/* harmony import */ var antd_es_button__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! antd/es/button */ 71577);
/* harmony import */ var antd_es_input_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd/es/input/style */ 69463);
/* harmony import */ var antd_es_input__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd/es/input */ 75008);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js */ 17061);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var antd_es_message_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd/es/message/style */ 14934);
/* harmony import */ var antd_es_message__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd/es/message */ 12461);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/asyncToGenerator.js */ 17156);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/utils/fetch */ 84519);
/* harmony import */ var _utils_hooks_useInterval__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils/hooks/useInterval */ 1971);
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/utils/util */ 29427);
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/utils/env */ 59758);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
var phoneReg = /^1\d{10}$/;
function Addmodal(_ref) {
var isShowPhone = _ref.isShowPhone,
setIsShowPhone = _ref.setIsShowPhone,
user = _ref.user,
dispatch = _ref.dispatch,
onOK = _ref.onOK,
isopen = _ref.isopen,
setisopen = _ref.setisopen,
datas = _ref.datas;
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(''),
_useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6___default()(_useState, 2),
phone = _useState2[0],
setphone = _useState2[1];
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(''),
_useState4 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6___default()(_useState3, 2),
PhoneValue = _useState4[0],
setPhoneValue = _useState4[1];
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(60),
_useState6 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6___default()(_useState5, 2),
countdown = _useState6[0],
setCountdown = _useState6[1];
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(),
_useState8 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6___default()(_useState7, 2),
countdownFlag = _useState8[0],
setCountdownFlag = _useState8[1];
var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(false),
_useState10 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6___default()(_useState9, 2),
isShowPoint = _useState10[0],
setIsShowPoint = _useState10[1];
var _useState11 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(false),
_useState12 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6___default()(_useState11, 2),
isShowUntie = _useState12[0],
setIsShowUntie = _useState12[1];
var _useState13 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(''),
_useState14 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6___default()(_useState13, 2),
UntieValue = _useState14[0],
setUntieValue = _useState14[1];
var intervalId = (0,react__WEBPACK_IMPORTED_MODULE_7__.useRef)();
(0,react__WEBPACK_IMPORTED_MODULE_7__.useEffect)(function () {
return function () {
intervalId.current && clearInterval(intervalId.current);
};
}, []);
(0,_utils_hooks_useInterval__WEBPACK_IMPORTED_MODULE_9__/* .useInterval */ .Y)(function () {
if (!countdownFlag) {
return;
} else {
setCountdown(60);
}
if (countdown > 0) {
setCountdown(countdown - 1);
} else {
setCountdown(60);
setCountdownFlag(false);
intervalId.current && clearInterval(intervalId.current);
}
}, 1000);
var handleGetCode = /*#__PURE__*/function () {
var _ref2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee() {
var _user$userInfo;
var data, smscode, res;
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .ZP)("/api/users/accounts/".concat((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login, "/valid_phone.json"), {
method: 'get',
params: {
phone: phone
}
});
case 2:
data = _context.sent;
if (!((data === null || data === void 0 ? void 0 : data.status) === -1)) {
_context.next = 5;
break;
}
return _context.abrupt("return");
case 5:
if (!(data !== null && data !== void 0 && data.is_exists)) {
_context.next = 8;
break;
}
setIsShowPoint(true);
return _context.abrupt("return");
case 8:
smscode = (0,_utils_util__WEBPACK_IMPORTED_MODULE_10__/* .setmiyah */ .M)(phone);
_context.next = 11;
return dispatch({
type: 'account/getCode',
payload: {
login: phone,
type: 3,
smscode: smscode
}
});
case 11:
res = _context.sent;
if (res.status === 1) {
antd_es_message__WEBPACK_IMPORTED_MODULE_13__/* ["default"].info */ .ZP.info('验证码已发送,请注意查收');
setCountdownFlag(true);
}
case 13:
case "end":
return _context.stop();
}
}, _callee);
}));
return function handleGetCode() {
return _ref2.apply(this, arguments);
};
}();
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd_es_modal__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
title: "\u5F3A\u5236\u89E3\u7ED1",
open: isShowUntie,
onCancel: function onCancel() {
return setIsShowUntie(false);
},
onOk: /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee2() {
var _user$userInfo2;
var data;
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
if (UntieValue) {
_context2.next = 3;
break;
}
antd_es_message__WEBPACK_IMPORTED_MODULE_13__/* ["default"].info */ .ZP.info('验证码不能为空');
return _context2.abrupt("return");
case 3:
_context2.next = 5;
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .ZP)("/api/users/accounts/".concat(user === null || user === void 0 ? void 0 : (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login, "/phone_force_unbind.json"), {
method: 'POST',
body: {
code: UntieValue,
phone: phone
}
});
case 5:
data = _context2.sent;
if ((data === null || data === void 0 ? void 0 : data.status) === 0) {
antd_es_message__WEBPACK_IMPORTED_MODULE_13__/* ["default"].info */ .ZP.info('解绑成功');
setCountdownFlag(false);
setIsShowUntie(false);
onOK();
setIsShowPhone(false);
setUntieValue('');
}
case 7:
case "end":
return _context2.stop();
}
}, _callee2);
})),
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
style: {
padding: '8px 24px'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("p", {
children: "\u82E5\u539F\u8D26\u53F7\u53EA\u6709\u7ED1\u5B9A\u4E86\u624B\u673A\u53F7\u4E00\u79CD\u767B\u5F55\u65B9\u5F0F\uFF0C\u5F3A\u5236\u89E3\u7ED1\u540E\u4F1A\u5BFC\u81F4\u539F\u8D26\u53F7\u65E0\u6CD5\u767B\u5F55\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u5F3A\u5236\u89E3\u7ED1"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("p", {
children: ["\u4F60\u7684\u624B\u673A\u53F7\uFF1A", phone]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("p", {
children: ["\u624B\u673A\u9A8C\u8BC1\u7801\uFF1A", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd_es_input__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, {
value: UntieValue,
size: "large",
onChange: function onChange(e) {
return setUntieValue(e.target.value);
},
style: {
width: '240px'
}
}), " ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd_es_button__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z, {
disabled: countdownFlag,
type: "primary",
size: "large",
onClick: /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee3() {
var smscode, res;
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
smscode = (0,_utils_util__WEBPACK_IMPORTED_MODULE_10__/* .setmiyah */ .M)(phone);
_context3.next = 3;
return dispatch({
type: 'account/getCode',
payload: {
login: phone,
type: 10,
smscode: smscode
}
});
case 3:
res = _context3.sent;
if (res.status === 1) {
antd_es_message__WEBPACK_IMPORTED_MODULE_13__/* ["default"].info */ .ZP.info('验证码已发送,请注意查收');
setCountdownFlag(true);
}
case 5:
case "end":
return _context3.stop();
}
}, _callee3);
})),
children: countdownFlag ? "\u91CD\u65B0\u53D1\u9001".concat(countdown, "s") : '获取验证码'
})]
})]
})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd_es_modal__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
title: "\u63D0\u793A",
open: isShowPoint,
onCancel: function onCancel() {
setIsShowPoint(false);
},
okText: "\u8FDB\u884C\u5F3A\u5236\u89E3\u7ED1",
okButtonProps: {
type: "primary",
ghost: true,
style: {
width: "124px"
}
},
onOk: function onOk() {
setIsShowUntie(true);
setIsShowPoint(false);
}
// footer={<div>
// <Button style={{textAlign:'end'}} type="primary" onClick={()=>setIsShowModal(false)}>确 定</Button>
// </div>}
,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
style: {
padding: '7px 24px'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span", {
children: "\u8BE5\u624B\u673A\u53F7\u5DF2\u7ECF\u88AB\u7ED1\u5B9A\u8D26\u53F7\uFF0C\u5982\u679C\u9700\u8981\u5C06\u8BE5\u624B\u673A\u53F7\u7ED1\u5B9A\u5728\u5F53\u524D\u8D26\u53F7\u4E0A\uFF0C\u4F60\u53EF\u4EE5\u8FDB\u884C\u4E0B\u65B9\u4EFB\u610F\u4E00\u79CD\u89E3\u7ED1\u64CD\u4F5C\uFF1A"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("br", {}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("p", {
style: {
marginTop: '1em',
display: 'flex'
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span", {
style: {
flex: '1'
},
children: "1\u3001\u4F7F\u7528\u8BE5\u624B\u673A\u53F7\u767B\u5F55\u5E73\u53F0\u8FDB\u884C\u89E3\u7ED1\uFF0C\u518D\u5C06\u624B\u673A\u53F7\u7ED1\u5B9A\u5F53\u524D\u8D26\u53F7\u4E0A\u3002"
})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("p", {
style: {
marginTop: '1em',
display: 'flex'
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span", {
style: {
flex: '1'
},
children: "2\u3001\u5F3A\u5236\u89E3\u7ED1\uFF08\u5F3A\u5236\u89E3\u7ED1\u53EF\u80FD\u4F1A\u5BFC\u81F4\u89E3\u7ED1\u8D26\u53F7\u65E0\u6CD5\u767B\u5F55\uFF09"
})
})]
})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd_es_modal__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
title: "\u7ED1\u5B9A\u624B\u673A\u53F7",
open: isShowPhone,
onCancel: function onCancel() {
return setIsShowPhone(false);
},
onOk: /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee4() {
var _ref6, login, res;
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
if (phoneReg.test(phone)) {
_context4.next = 3;
break;
}
antd_es_message__WEBPACK_IMPORTED_MODULE_13__/* ["default"].info */ .ZP.info("请输入有效的11位手机号码");
return _context4.abrupt("return");
case 3:
if (PhoneValue) {
_context4.next = 6;
break;
}
antd_es_message__WEBPACK_IMPORTED_MODULE_13__/* ["default"].info */ .ZP.info("请输入验证码");
return _context4.abrupt("return");
case 6:
_ref6 = user.userInfo || {}, login = _ref6.login;
_context4.next = 9;
return dispatch({
type: 'account/bindPhone',
payload: {
login: login,
phone: phone,
code: PhoneValue
}
});
case 9:
res = _context4.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setIsShowPhone(false);
onOK();
}
case 11:
case "end":
return _context4.stop();
}
}, _callee4);
})),
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
style: {
padding: '8px 24px'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("p", {
children: "\u5E73\u53F0\u5DF2\u68C0\u6D4B\u5230\u60A8\u672A\u7ED1\u5B9A\u624B\u673A\u53F7\uFF0C\u4E3A\u4E86\u4E0D\u5F71\u54CD\u4F7F\u7528\u62A5\u540D\u529F\u80FD\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("p", {
children: ["\u4F60\u7684\u624B\u673A\u53F7\uFF1A", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd_es_input__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, {
size: "large",
value: phone,
onChange: function onChange(e) {
return setphone(e.target.value);
},
style: {
width: '240px'
}
})]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("p", {
children: ["\u624B\u673A\u9A8C\u8BC1\u7801\uFF1A", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd_es_input__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, {
size: "large",
value: PhoneValue,
onChange: function onChange(e) {
return setPhoneValue(e.target.value);
},
style: {
width: '240px'
}
}), " ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd_es_button__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z, {
disabled: countdownFlag,
type: "primary",
size: "large",
onClick: /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee5() {
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
if (phoneReg.test(phone)) {
_context5.next = 3;
break;
}
antd_es_message__WEBPACK_IMPORTED_MODULE_13__/* ["default"].info */ .ZP.info("请输入有效的11位手机号码");
return _context5.abrupt("return");
case 3:
handleGetCode();
case 4:
case "end":
return _context5.stop();
}
}, _callee5);
})),
children: countdownFlag ? "\u91CD\u65B0\u53D1\u9001".concat(countdown, "s") : '获取验证码'
})]
})]
})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd_es_modal__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
open: isopen,
footer: false,
onCancel: function onCancel() {
return setisopen(false);
},
centered: true,
width: 460,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
style: {
marginTop: 50,
fontSize: 26,
color: '#3d3d3d',
textAlign: 'center',
marginBottom: 20
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("i", {
style: {
fontSize: 26,
color: '#52C41A'
},
className: "iconfont icon-tongguo"
}), " \u62A5\u540D\u6210\u529F"]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
style: {
alignItems: 'center',
textAlign: 'center'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("img", {
style: {
width: 180,
border: '1px solid #eeeeef',
padding: 10,
marginBottom: 20
},
src: _utils_env__WEBPACK_IMPORTED_MODULE_11__/* ["default"].IMG_SERVER */ .Z.IMG_SERVER + (datas === null || datas === void 0 ? void 0 : datas.QR_code)
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("p", {
style: {
color: '#AAAAAA'
},
children: "\u53C2\u8D5B\u8005\u53EF\u626B\u7801\u52A0\u5165\u5927\u8D5B\u5B98\u65B9\u4EA4\u6D41\u7FA4\uFF0C\u83B7\u53D6\u6700\u65B0\u7ADE\u8D5B\u901A\u77E5"
})]
})]
})
})]
});
}
/* harmony default export */ __webpack_exports__["Z"] = (Addmodal);
/***/ }),
/***/ 1971:
/*!*****************************************!*\
!*** ./src/utils/hooks/useInterval.tsx ***!
\*****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "Y": function() { return /* binding */ useInterval; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
function useInterval(callback, delay) {
var savedCallback = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
var savedId = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
// 保存新回调
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
savedCallback.current = callback;
});
// 建立 interval
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
function tick() {
savedCallback.current();
}
if (delay !== null) {
var id = setInterval(tick, delay);
savedId.current = id;
return function () {
return clearInterval(id);
};
}
}, [delay]);
}
/***/ })
}]);

File diff suppressed because it is too large Load Diff

@ -0,0 +1,947 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[3446,47638],{
/***/ 5467:
/*!**********************************************************!*\
!*** ./node_modules/antd/es/_util/getDataOrAriaProps.js ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "Z": function() { return /* binding */ getDataOrAriaProps; }
/* harmony export */ });
function getDataOrAriaProps(props) {
return Object.keys(props).reduce(function (prev, key) {
if ((key.startsWith('data-') || key.startsWith('aria-') || key === 'role') && !key.startsWith('data-__')) {
prev[key] = props[key];
}
return prev;
}, {});
}
/***/ }),
/***/ 29924:
/*!*********************************************************!*\
!*** ./node_modules/antd/es/radio/index.js + 4 modules ***!
\*********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"ZP": function() { return /* binding */ es_radio; }
});
// UNUSED EXPORTS: Button, Group
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(4942);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(97685);
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useMergedState.js
var useMergedState = __webpack_require__(21770);
// 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/config-provider/SizeContext.js
var SizeContext = __webpack_require__(97647);
// EXTERNAL MODULE: ./node_modules/antd/es/_util/getDataOrAriaProps.js
var getDataOrAriaProps = __webpack_require__(5467);
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/context.js
var RadioGroupContext = /*#__PURE__*/react.createContext(null);
var RadioGroupContextProvider = RadioGroupContext.Provider;
/* harmony default export */ var radio_context = (RadioGroupContext);
var RadioOptionTypeContext = /*#__PURE__*/react.createContext(null);
var RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;
// EXTERNAL MODULE: ./node_modules/rc-checkbox/es/index.js
var es = __webpack_require__(50132);
// EXTERNAL MODULE: ./node_modules/rc-util/es/ref.js
var es_ref = __webpack_require__(42550);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/DisabledContext.js
var DisabledContext = __webpack_require__(98866);
// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
var form_context = __webpack_require__(65223);
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/radio.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;
};
var InternalRadio = function InternalRadio(props, ref) {
var _classNames;
var groupContext = react.useContext(radio_context);
var radioOptionTypeContext = react.useContext(RadioOptionTypeContext);
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
getPrefixCls = _React$useContext.getPrefixCls,
direction = _React$useContext.direction;
var innerRef = react.useRef();
var mergedRef = (0,es_ref/* composeRef */.sQ)(ref, innerRef);
var _useContext = (0,react.useContext)(form_context/* FormItemInputContext */.aM),
isFormItemInput = _useContext.isFormItemInput;
false ? 0 : void 0;
var onChange = function onChange(e) {
var _a, _b;
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, e);
(_b = groupContext === null || groupContext === void 0 ? void 0 : groupContext.onChange) === null || _b === void 0 ? void 0 : _b.call(groupContext, e);
};
var customizePrefixCls = props.prefixCls,
className = props.className,
children = props.children,
style = props.style,
customDisabled = props.disabled,
restProps = __rest(props, ["prefixCls", "className", "children", "style", "disabled"]);
var radioPrefixCls = getPrefixCls('radio', customizePrefixCls);
var prefixCls = ((groupContext === null || groupContext === void 0 ? void 0 : groupContext.optionType) || radioOptionTypeContext) === 'button' ? "".concat(radioPrefixCls, "-button") : radioPrefixCls;
var radioProps = (0,esm_extends/* default */.Z)({}, restProps);
// ===================== Disabled =====================
var disabled = react.useContext(DisabledContext/* default */.Z);
radioProps.disabled = customDisabled || disabled;
if (groupContext) {
radioProps.name = groupContext.name;
radioProps.onChange = onChange;
radioProps.checked = props.value === groupContext.value;
radioProps.disabled = radioProps.disabled || groupContext.disabled;
}
var wrapperClassString = classnames_default()("".concat(prefixCls, "-wrapper"), (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-checked"), radioProps.checked), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-disabled"), radioProps.disabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-in-form-item"), isFormItemInput), _classNames), className);
return (
/*#__PURE__*/
// eslint-disable-next-line jsx-a11y/label-has-associated-control
react.createElement("label", {
className: wrapperClassString,
style: style,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave
}, /*#__PURE__*/react.createElement(es/* default */.Z, (0,esm_extends/* default */.Z)({}, radioProps, {
type: "radio",
prefixCls: prefixCls,
ref: mergedRef
})), children !== undefined ? /*#__PURE__*/react.createElement("span", null, children) : null)
);
};
var Radio = /*#__PURE__*/react.forwardRef(InternalRadio);
if (false) {}
/* harmony default export */ var radio_radio = (Radio);
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/group.js
var RadioGroup = /*#__PURE__*/react.forwardRef(function (props, ref) {
var _classNames;
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
getPrefixCls = _React$useContext.getPrefixCls,
direction = _React$useContext.direction;
var size = react.useContext(SizeContext/* default */.Z);
var _useMergedState = (0,useMergedState/* default */.Z)(props.defaultValue, {
value: props.value
}),
_useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
value = _useMergedState2[0],
setValue = _useMergedState2[1];
var onRadioChange = function onRadioChange(ev) {
var lastValue = value;
var val = ev.target.value;
if (!('value' in props)) {
setValue(val);
}
var onChange = props.onChange;
if (onChange && val !== lastValue) {
onChange(ev);
}
};
var customizePrefixCls = props.prefixCls,
_props$className = props.className,
className = _props$className === void 0 ? '' : _props$className,
options = props.options,
_props$buttonStyle = props.buttonStyle,
buttonStyle = _props$buttonStyle === void 0 ? 'outline' : _props$buttonStyle,
disabled = props.disabled,
children = props.children,
customizeSize = props.size,
style = props.style,
id = props.id,
onMouseEnter = props.onMouseEnter,
onMouseLeave = props.onMouseLeave,
onFocus = props.onFocus,
onBlur = props.onBlur;
var prefixCls = getPrefixCls('radio', customizePrefixCls);
var groupPrefixCls = "".concat(prefixCls, "-group");
var childrenToRender = children;
// 如果存在 options, 优先使用
if (options && options.length > 0) {
childrenToRender = options.map(function (option) {
if (typeof option === 'string' || typeof option === 'number') {
// 此处类型自动推导为 string
return /*#__PURE__*/react.createElement(radio_radio, {
key: option.toString(),
prefixCls: prefixCls,
disabled: disabled,
value: option,
checked: value === option
}, option);
}
// 此处类型自动推导为 { label: string value: string }
return /*#__PURE__*/react.createElement(radio_radio, {
key: "radio-group-value-options-".concat(option.value),
prefixCls: prefixCls,
disabled: option.disabled || disabled,
value: option.value,
checked: value === option.value,
style: option.style
}, option.label);
});
}
var mergedSize = customizeSize || size;
var classString = classnames_default()(groupPrefixCls, "".concat(groupPrefixCls, "-").concat(buttonStyle), (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(groupPrefixCls, "-").concat(mergedSize), mergedSize), (0,defineProperty/* default */.Z)(_classNames, "".concat(groupPrefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
return /*#__PURE__*/react.createElement("div", (0,esm_extends/* default */.Z)({}, (0,getDataOrAriaProps/* default */.Z)(props), {
className: classString,
style: style,
onMouseEnter: onMouseEnter,
onMouseLeave: onMouseLeave,
onFocus: onFocus,
onBlur: onBlur,
id: id,
ref: ref
}), /*#__PURE__*/react.createElement(RadioGroupContextProvider, {
value: {
onChange: onRadioChange,
value: value,
disabled: props.disabled,
name: props.name,
optionType: props.optionType
}
}, childrenToRender));
});
/* harmony default export */ var group = (/*#__PURE__*/react.memo(RadioGroup));
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/radioButton.js
var radioButton_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;
};
var RadioButton = function RadioButton(props, ref) {
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
getPrefixCls = _React$useContext.getPrefixCls;
var customizePrefixCls = props.prefixCls,
radioProps = radioButton_rest(props, ["prefixCls"]);
var prefixCls = getPrefixCls('radio', customizePrefixCls);
return /*#__PURE__*/react.createElement(RadioOptionTypeContextProvider, {
value: "button"
}, /*#__PURE__*/react.createElement(radio_radio, (0,esm_extends/* default */.Z)({
prefixCls: prefixCls
}, radioProps, {
type: "radio",
ref: ref
})));
};
/* harmony default export */ var radioButton = (/*#__PURE__*/react.forwardRef(RadioButton));
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/index.js
var radio_Radio = radio_radio;
radio_Radio.Button = radioButton;
radio_Radio.Group = group;
radio_Radio.__ANT_RADIO = true;
/* harmony default export */ var es_radio = (radio_Radio);
/***/ }),
/***/ 83822:
/*!***************************************************************!*\
!*** ./node_modules/antd/es/radio/style/index.js + 1 modules ***!
\***************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
// EXTERNAL MODULE: ./node_modules/antd/es/style/default.less
var style_default = __webpack_require__(43146);
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/style/index.less
// extracted by mini-css-extract-plugin
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/style/index.js
// deps-lint-skip: form
/***/ }),
/***/ 61460:
/*!********************************************************!*\
!*** ./node_modules/antd/es/rate/index.js + 6 modules ***!
\********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ rate; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(1413);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/StarFilled.js
// This icon file is generated automatically.
var StarFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" } }] }, "name": "star", "theme": "filled" };
/* harmony default export */ var asn_StarFilled = (StarFilled);
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(93771);
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/StarFilled.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var StarFilled_StarFilled = function StarFilled(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
ref: ref,
icon: asn_StarFilled
}));
};
StarFilled_StarFilled.displayName = 'StarFilled';
/* harmony default export */ var icons_StarFilled = (/*#__PURE__*/react.forwardRef(StarFilled_StarFilled));
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(4942);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
var classCallCheck = __webpack_require__(15671);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
var createClass = __webpack_require__(43144);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
var inherits = __webpack_require__(60136);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 1 modules
var createSuper = __webpack_require__(51630);
// EXTERNAL MODULE: ./node_modules/rc-util/es/Dom/findDOMNode.js
var findDOMNode = __webpack_require__(34203);
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: ./node_modules/rc-util/es/KeyCode.js
var KeyCode = __webpack_require__(15105);
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/util.js
function getScroll(w) {
var ret = w.pageXOffset;
var method = 'scrollLeft';
if (typeof ret !== 'number') {
var d = w.document; // ie6,7,8 standard mode
ret = d.documentElement[method];
if (typeof ret !== 'number') {
// quirks mode
ret = d.body[method];
}
}
return ret;
}
function getClientPosition(elem) {
var x;
var y;
var doc = elem.ownerDocument;
var body = doc.body;
var docElem = doc && doc.documentElement;
var box = elem.getBoundingClientRect();
x = box.left;
y = box.top;
x -= docElem.clientLeft || body.clientLeft || 0;
y -= docElem.clientTop || body.clientTop || 0;
return {
left: x,
top: y
};
}
function getOffsetLeft(el) {
var pos = getClientPosition(el);
var doc = el.ownerDocument; // Only IE use `parentWindow`
var w = doc.defaultView || doc.parentWindow;
pos.left += getScroll(w);
return pos.left;
}
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Star.js
var Star = /*#__PURE__*/function (_React$Component) {
(0,inherits/* default */.Z)(Star, _React$Component);
var _super = (0,createSuper/* default */.Z)(Star);
function Star() {
var _this;
(0,classCallCheck/* default */.Z)(this, Star);
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
_this = _super.call.apply(_super, [this].concat(args));
_this.onHover = function (e) {
var _this$props = _this.props,
onHover = _this$props.onHover,
index = _this$props.index;
onHover(e, index);
};
_this.onClick = function (e) {
var _this$props2 = _this.props,
onClick = _this$props2.onClick,
index = _this$props2.index;
onClick(e, index);
};
_this.onKeyDown = function (e) {
var _this$props3 = _this.props,
onClick = _this$props3.onClick,
index = _this$props3.index;
if (e.keyCode === 13) {
onClick(e, index);
}
};
return _this;
}
(0,createClass/* default */.Z)(Star, [{
key: "getClassName",
value: function getClassName() {
var _this$props4 = this.props,
prefixCls = _this$props4.prefixCls,
index = _this$props4.index,
value = _this$props4.value,
allowHalf = _this$props4.allowHalf,
focused = _this$props4.focused;
var starValue = index + 1;
var className = prefixCls;
if (value === 0 && index === 0 && focused) {
className += " ".concat(prefixCls, "-focused");
} else if (allowHalf && value + 0.5 >= starValue && value < starValue) {
className += " ".concat(prefixCls, "-half ").concat(prefixCls, "-active");
if (focused) {
className += " ".concat(prefixCls, "-focused");
}
} else {
className += starValue <= value ? " ".concat(prefixCls, "-full") : " ".concat(prefixCls, "-zero");
if (starValue === value && focused) {
className += " ".concat(prefixCls, "-focused");
}
}
return className;
}
}, {
key: "render",
value: function render() {
var onHover = this.onHover,
onClick = this.onClick,
onKeyDown = this.onKeyDown;
var _this$props5 = this.props,
disabled = _this$props5.disabled,
prefixCls = _this$props5.prefixCls,
character = _this$props5.character,
characterRender = _this$props5.characterRender,
index = _this$props5.index,
count = _this$props5.count,
value = _this$props5.value;
var characterNode = typeof character === 'function' ? character(this.props) : character;
var start = /*#__PURE__*/react.createElement("li", {
className: this.getClassName()
}, /*#__PURE__*/react.createElement("div", {
onClick: disabled ? null : onClick,
onKeyDown: disabled ? null : onKeyDown,
onMouseMove: disabled ? null : onHover,
role: "radio",
"aria-checked": value > index ? 'true' : 'false',
"aria-posinset": index + 1,
"aria-setsize": count,
tabIndex: disabled ? -1 : 0
}, /*#__PURE__*/react.createElement("div", {
className: "".concat(prefixCls, "-first")
}, characterNode), /*#__PURE__*/react.createElement("div", {
className: "".concat(prefixCls, "-second")
}, characterNode)));
if (characterRender) {
start = characterRender(start, this.props);
}
return start;
}
}]);
return Star;
}(react.Component);
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Rate.js
function noop() {}
var Rate = /*#__PURE__*/function (_React$Component) {
(0,inherits/* default */.Z)(Rate, _React$Component);
var _super = (0,createSuper/* default */.Z)(Rate);
function Rate(props) {
var _this;
(0,classCallCheck/* default */.Z)(this, Rate);
_this = _super.call(this, props);
_this.stars = void 0;
_this.rate = void 0;
_this.onHover = function (event, index) {
var onHoverChange = _this.props.onHoverChange;
var hoverValue = _this.getStarValue(index, event.pageX);
var cleanedValue = _this.state.cleanedValue;
if (hoverValue !== cleanedValue) {
_this.setState({
hoverValue: hoverValue,
cleanedValue: null
});
}
onHoverChange(hoverValue);
};
_this.onMouseLeave = function () {
var onHoverChange = _this.props.onHoverChange;
_this.setState({
hoverValue: undefined,
cleanedValue: null
});
onHoverChange(undefined);
};
_this.onClick = function (event, index) {
var allowClear = _this.props.allowClear;
var value = _this.state.value;
var newValue = _this.getStarValue(index, event.pageX);
var isReset = false;
if (allowClear) {
isReset = newValue === value;
}
_this.onMouseLeave();
_this.changeValue(isReset ? 0 : newValue);
_this.setState({
cleanedValue: isReset ? newValue : null
});
};
_this.onFocus = function () {
var onFocus = _this.props.onFocus;
_this.setState({
focused: true
});
if (onFocus) {
onFocus();
}
};
_this.onBlur = function () {
var onBlur = _this.props.onBlur;
_this.setState({
focused: false
});
if (onBlur) {
onBlur();
}
};
_this.onKeyDown = function (event) {
var keyCode = event.keyCode;
var _this$props = _this.props,
count = _this$props.count,
allowHalf = _this$props.allowHalf,
onKeyDown = _this$props.onKeyDown,
direction = _this$props.direction;
var reverse = direction === 'rtl';
var value = _this.state.value;
if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && value < count && !reverse) {
if (allowHalf) {
value += 0.5;
} else {
value += 1;
}
_this.changeValue(value);
event.preventDefault();
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && value > 0 && !reverse) {
if (allowHalf) {
value -= 0.5;
} else {
value -= 1;
}
_this.changeValue(value);
event.preventDefault();
} else if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && value > 0 && reverse) {
if (allowHalf) {
value -= 0.5;
} else {
value -= 1;
}
_this.changeValue(value);
event.preventDefault();
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && value < count && reverse) {
if (allowHalf) {
value += 0.5;
} else {
value += 1;
}
_this.changeValue(value);
event.preventDefault();
}
if (onKeyDown) {
onKeyDown(event);
}
};
_this.saveRef = function (index) {
return function (node) {
_this.stars[index] = node;
};
};
_this.saveRate = function (node) {
_this.rate = node;
};
var _value = props.value;
if (_value === undefined) {
_value = props.defaultValue;
}
_this.stars = {};
_this.state = {
value: _value,
focused: false,
cleanedValue: null
};
return _this;
}
(0,createClass/* default */.Z)(Rate, [{
key: "componentDidMount",
value: function componentDidMount() {
var _this$props2 = this.props,
autoFocus = _this$props2.autoFocus,
disabled = _this$props2.disabled;
if (autoFocus && !disabled) {
this.focus();
}
}
}, {
key: "getStarDOM",
value: function getStarDOM(index) {
return (0,findDOMNode/* default */.Z)(this.stars[index]);
}
}, {
key: "getStarValue",
value: function getStarValue(index, x) {
var _this$props3 = this.props,
allowHalf = _this$props3.allowHalf,
direction = _this$props3.direction;
var reverse = direction === 'rtl';
var value = index + 1;
if (allowHalf) {
var starEle = this.getStarDOM(index);
var leftDis = getOffsetLeft(starEle);
var width = starEle.clientWidth;
if (reverse && x - leftDis > width / 2) {
value -= 0.5;
} else if (!reverse && x - leftDis < width / 2) {
value -= 0.5;
}
}
return value;
}
}, {
key: "focus",
value: function focus() {
var disabled = this.props.disabled;
if (!disabled) {
this.rate.focus();
}
}
}, {
key: "blur",
value: function blur() {
var disabled = this.props.disabled;
if (!disabled) {
this.rate.blur();
}
}
}, {
key: "changeValue",
value: function changeValue(value) {
var onChange = this.props.onChange;
if (!('value' in this.props)) {
this.setState({
value: value
});
}
onChange(value);
}
}, {
key: "render",
value: function render() {
var _this$props4 = this.props,
count = _this$props4.count,
allowHalf = _this$props4.allowHalf,
style = _this$props4.style,
prefixCls = _this$props4.prefixCls,
disabled = _this$props4.disabled,
className = _this$props4.className,
character = _this$props4.character,
characterRender = _this$props4.characterRender,
tabIndex = _this$props4.tabIndex,
direction = _this$props4.direction;
var _this$state = this.state,
value = _this$state.value,
hoverValue = _this$state.hoverValue,
focused = _this$state.focused;
var stars = [];
var disabledClass = disabled ? "".concat(prefixCls, "-disabled") : '';
for (var index = 0; index < count; index += 1) {
stars.push( /*#__PURE__*/react.createElement(Star, {
ref: this.saveRef(index),
index: index,
count: count,
disabled: disabled,
prefixCls: "".concat(prefixCls, "-star"),
allowHalf: allowHalf,
value: hoverValue === undefined ? value : hoverValue,
onClick: this.onClick,
onHover: this.onHover,
key: index,
character: character,
characterRender: characterRender,
focused: focused
}));
}
var rateClassName = classnames_default()(prefixCls, disabledClass, className, (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-rtl"), direction === 'rtl'));
return /*#__PURE__*/react.createElement("ul", {
className: rateClassName,
style: style,
onMouseLeave: disabled ? null : this.onMouseLeave,
tabIndex: disabled ? -1 : tabIndex,
onFocus: disabled ? null : this.onFocus,
onBlur: disabled ? null : this.onBlur,
onKeyDown: disabled ? null : this.onKeyDown,
ref: this.saveRate,
role: "radiogroup"
}, stars);
}
}], [{
key: "getDerivedStateFromProps",
value: function getDerivedStateFromProps(nextProps, state) {
if ('value' in nextProps && nextProps.value !== undefined) {
return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, state), {}, {
value: nextProps.value
});
}
return state;
}
}]);
return Rate;
}(react.Component);
Rate.defaultProps = {
defaultValue: 0,
count: 5,
allowHalf: false,
allowClear: true,
style: {},
prefixCls: 'rc-rate',
onChange: noop,
character: '★',
onHoverChange: noop,
tabIndex: 0,
direction: 'ltr'
};
/* harmony default export */ var es_Rate = (Rate);
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/index.js
/* harmony default export */ var es = (es_Rate);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
var context = __webpack_require__(53124);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(84908);
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/index.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;
};
var rate_Rate = /*#__PURE__*/react.forwardRef(function (props, ref) {
var prefixCls = props.prefixCls,
tooltips = props.tooltips,
_props$character = props.character,
character = _props$character === void 0 ? /*#__PURE__*/react.createElement(icons_StarFilled, null) : _props$character,
rest = __rest(props, ["prefixCls", "tooltips", "character"]);
var characterRender = function characterRender(node, _ref) {
var index = _ref.index;
if (!tooltips) {
return node;
}
return /*#__PURE__*/react.createElement(tooltip/* default */.Z, {
title: tooltips[index]
}, node);
};
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
getPrefixCls = _React$useContext.getPrefixCls,
direction = _React$useContext.direction;
var ratePrefixCls = getPrefixCls('rate', prefixCls);
return /*#__PURE__*/react.createElement(es, (0,esm_extends/* default */.Z)({
ref: ref,
character: character,
characterRender: characterRender
}, rest, {
prefixCls: ratePrefixCls,
direction: direction
}));
});
if (false) {}
/* harmony default export */ var rate = (rate_Rate);
/***/ }),
/***/ 50936:
/*!**************************************************************!*\
!*** ./node_modules/antd/es/rate/style/index.js + 1 modules ***!
\**************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
// EXTERNAL MODULE: ./node_modules/antd/es/style/default.less
var style_default = __webpack_require__(43146);
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/style/index.less
// extracted by mini-css-extract-plugin
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/style/index.js + 1 modules
var style = __webpack_require__(38390);
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/style/index.js
// style dependencies
/***/ })
}]);

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

@ -906,7 +906,7 @@ var RadioGroup = es_radio/* default.Group */.ZP.Group;
/* harmony import */ var react_infinite_scroller__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(react_infinite_scroller__WEBPACK_IMPORTED_MODULE_18__);
/* harmony import */ var _assets_images_icons_search_png__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @/assets/images/icons/search.png */ 58143);
/* harmony import */ var _service_classrooms__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @/service/classrooms */ 73290);
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @/components/ui-customization */ 76204);
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @/components/ui-customization */ 85343);
/* harmony import */ var _components_ui_customization_reset_less_modules__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @/components/ui-customization/reset.less?modules */ 39132);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! react/jsx-runtime */ 85893);

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[40018,47638],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[40018,47638,3446],{
/***/ 5467:
/*!**********************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[42241,71514,36579,72693,23805,62654,66582,34131,98991,5506,97073,88201,794,47638,95112],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[42241,71514,36579,72693,23805,62654,66582,34131,98991,5506,97073,88201,89626,794,48896,32415,47638,3446,95112],{
/***/ 509:
/*!*********************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[43778,47638],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[43778,47638,3446],{
/***/ 7918:
/*!******************************************************************************!*\

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

@ -0,0 +1,947 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[48896,794,47638,3446],{
/***/ 5467:
/*!**********************************************************!*\
!*** ./node_modules/antd/es/_util/getDataOrAriaProps.js ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "Z": function() { return /* binding */ getDataOrAriaProps; }
/* harmony export */ });
function getDataOrAriaProps(props) {
return Object.keys(props).reduce(function (prev, key) {
if ((key.startsWith('data-') || key.startsWith('aria-') || key === 'role') && !key.startsWith('data-__')) {
prev[key] = props[key];
}
return prev;
}, {});
}
/***/ }),
/***/ 29924:
/*!*********************************************************!*\
!*** ./node_modules/antd/es/radio/index.js + 4 modules ***!
\*********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"ZP": function() { return /* binding */ es_radio; }
});
// UNUSED EXPORTS: Button, Group
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(4942);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(97685);
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useMergedState.js
var useMergedState = __webpack_require__(21770);
// 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/config-provider/SizeContext.js
var SizeContext = __webpack_require__(97647);
// EXTERNAL MODULE: ./node_modules/antd/es/_util/getDataOrAriaProps.js
var getDataOrAriaProps = __webpack_require__(5467);
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/context.js
var RadioGroupContext = /*#__PURE__*/react.createContext(null);
var RadioGroupContextProvider = RadioGroupContext.Provider;
/* harmony default export */ var radio_context = (RadioGroupContext);
var RadioOptionTypeContext = /*#__PURE__*/react.createContext(null);
var RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;
// EXTERNAL MODULE: ./node_modules/rc-checkbox/es/index.js
var es = __webpack_require__(50132);
// EXTERNAL MODULE: ./node_modules/rc-util/es/ref.js
var es_ref = __webpack_require__(42550);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/DisabledContext.js
var DisabledContext = __webpack_require__(98866);
// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
var form_context = __webpack_require__(65223);
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/radio.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;
};
var InternalRadio = function InternalRadio(props, ref) {
var _classNames;
var groupContext = react.useContext(radio_context);
var radioOptionTypeContext = react.useContext(RadioOptionTypeContext);
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
getPrefixCls = _React$useContext.getPrefixCls,
direction = _React$useContext.direction;
var innerRef = react.useRef();
var mergedRef = (0,es_ref/* composeRef */.sQ)(ref, innerRef);
var _useContext = (0,react.useContext)(form_context/* FormItemInputContext */.aM),
isFormItemInput = _useContext.isFormItemInput;
false ? 0 : void 0;
var onChange = function onChange(e) {
var _a, _b;
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, e);
(_b = groupContext === null || groupContext === void 0 ? void 0 : groupContext.onChange) === null || _b === void 0 ? void 0 : _b.call(groupContext, e);
};
var customizePrefixCls = props.prefixCls,
className = props.className,
children = props.children,
style = props.style,
customDisabled = props.disabled,
restProps = __rest(props, ["prefixCls", "className", "children", "style", "disabled"]);
var radioPrefixCls = getPrefixCls('radio', customizePrefixCls);
var prefixCls = ((groupContext === null || groupContext === void 0 ? void 0 : groupContext.optionType) || radioOptionTypeContext) === 'button' ? "".concat(radioPrefixCls, "-button") : radioPrefixCls;
var radioProps = (0,esm_extends/* default */.Z)({}, restProps);
// ===================== Disabled =====================
var disabled = react.useContext(DisabledContext/* default */.Z);
radioProps.disabled = customDisabled || disabled;
if (groupContext) {
radioProps.name = groupContext.name;
radioProps.onChange = onChange;
radioProps.checked = props.value === groupContext.value;
radioProps.disabled = radioProps.disabled || groupContext.disabled;
}
var wrapperClassString = classnames_default()("".concat(prefixCls, "-wrapper"), (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-checked"), radioProps.checked), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-disabled"), radioProps.disabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-in-form-item"), isFormItemInput), _classNames), className);
return (
/*#__PURE__*/
// eslint-disable-next-line jsx-a11y/label-has-associated-control
react.createElement("label", {
className: wrapperClassString,
style: style,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave
}, /*#__PURE__*/react.createElement(es/* default */.Z, (0,esm_extends/* default */.Z)({}, radioProps, {
type: "radio",
prefixCls: prefixCls,
ref: mergedRef
})), children !== undefined ? /*#__PURE__*/react.createElement("span", null, children) : null)
);
};
var Radio = /*#__PURE__*/react.forwardRef(InternalRadio);
if (false) {}
/* harmony default export */ var radio_radio = (Radio);
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/group.js
var RadioGroup = /*#__PURE__*/react.forwardRef(function (props, ref) {
var _classNames;
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
getPrefixCls = _React$useContext.getPrefixCls,
direction = _React$useContext.direction;
var size = react.useContext(SizeContext/* default */.Z);
var _useMergedState = (0,useMergedState/* default */.Z)(props.defaultValue, {
value: props.value
}),
_useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
value = _useMergedState2[0],
setValue = _useMergedState2[1];
var onRadioChange = function onRadioChange(ev) {
var lastValue = value;
var val = ev.target.value;
if (!('value' in props)) {
setValue(val);
}
var onChange = props.onChange;
if (onChange && val !== lastValue) {
onChange(ev);
}
};
var customizePrefixCls = props.prefixCls,
_props$className = props.className,
className = _props$className === void 0 ? '' : _props$className,
options = props.options,
_props$buttonStyle = props.buttonStyle,
buttonStyle = _props$buttonStyle === void 0 ? 'outline' : _props$buttonStyle,
disabled = props.disabled,
children = props.children,
customizeSize = props.size,
style = props.style,
id = props.id,
onMouseEnter = props.onMouseEnter,
onMouseLeave = props.onMouseLeave,
onFocus = props.onFocus,
onBlur = props.onBlur;
var prefixCls = getPrefixCls('radio', customizePrefixCls);
var groupPrefixCls = "".concat(prefixCls, "-group");
var childrenToRender = children;
// 如果存在 options, 优先使用
if (options && options.length > 0) {
childrenToRender = options.map(function (option) {
if (typeof option === 'string' || typeof option === 'number') {
// 此处类型自动推导为 string
return /*#__PURE__*/react.createElement(radio_radio, {
key: option.toString(),
prefixCls: prefixCls,
disabled: disabled,
value: option,
checked: value === option
}, option);
}
// 此处类型自动推导为 { label: string value: string }
return /*#__PURE__*/react.createElement(radio_radio, {
key: "radio-group-value-options-".concat(option.value),
prefixCls: prefixCls,
disabled: option.disabled || disabled,
value: option.value,
checked: value === option.value,
style: option.style
}, option.label);
});
}
var mergedSize = customizeSize || size;
var classString = classnames_default()(groupPrefixCls, "".concat(groupPrefixCls, "-").concat(buttonStyle), (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(groupPrefixCls, "-").concat(mergedSize), mergedSize), (0,defineProperty/* default */.Z)(_classNames, "".concat(groupPrefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
return /*#__PURE__*/react.createElement("div", (0,esm_extends/* default */.Z)({}, (0,getDataOrAriaProps/* default */.Z)(props), {
className: classString,
style: style,
onMouseEnter: onMouseEnter,
onMouseLeave: onMouseLeave,
onFocus: onFocus,
onBlur: onBlur,
id: id,
ref: ref
}), /*#__PURE__*/react.createElement(RadioGroupContextProvider, {
value: {
onChange: onRadioChange,
value: value,
disabled: props.disabled,
name: props.name,
optionType: props.optionType
}
}, childrenToRender));
});
/* harmony default export */ var group = (/*#__PURE__*/react.memo(RadioGroup));
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/radioButton.js
var radioButton_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;
};
var RadioButton = function RadioButton(props, ref) {
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
getPrefixCls = _React$useContext.getPrefixCls;
var customizePrefixCls = props.prefixCls,
radioProps = radioButton_rest(props, ["prefixCls"]);
var prefixCls = getPrefixCls('radio', customizePrefixCls);
return /*#__PURE__*/react.createElement(RadioOptionTypeContextProvider, {
value: "button"
}, /*#__PURE__*/react.createElement(radio_radio, (0,esm_extends/* default */.Z)({
prefixCls: prefixCls
}, radioProps, {
type: "radio",
ref: ref
})));
};
/* harmony default export */ var radioButton = (/*#__PURE__*/react.forwardRef(RadioButton));
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/index.js
var radio_Radio = radio_radio;
radio_Radio.Button = radioButton;
radio_Radio.Group = group;
radio_Radio.__ANT_RADIO = true;
/* harmony default export */ var es_radio = (radio_Radio);
/***/ }),
/***/ 83822:
/*!***************************************************************!*\
!*** ./node_modules/antd/es/radio/style/index.js + 1 modules ***!
\***************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
// EXTERNAL MODULE: ./node_modules/antd/es/style/default.less
var style_default = __webpack_require__(43146);
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/style/index.less
// extracted by mini-css-extract-plugin
;// CONCATENATED MODULE: ./node_modules/antd/es/radio/style/index.js
// deps-lint-skip: form
/***/ }),
/***/ 61460:
/*!********************************************************!*\
!*** ./node_modules/antd/es/rate/index.js + 6 modules ***!
\********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ rate; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(87462);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(1413);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/StarFilled.js
// This icon file is generated automatically.
var StarFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" } }] }, "name": "star", "theme": "filled" };
/* harmony default export */ var asn_StarFilled = (StarFilled);
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(93771);
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/StarFilled.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var StarFilled_StarFilled = function StarFilled(props, ref) {
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
ref: ref,
icon: asn_StarFilled
}));
};
StarFilled_StarFilled.displayName = 'StarFilled';
/* harmony default export */ var icons_StarFilled = (/*#__PURE__*/react.forwardRef(StarFilled_StarFilled));
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(4942);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
var classCallCheck = __webpack_require__(15671);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
var createClass = __webpack_require__(43144);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
var inherits = __webpack_require__(60136);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 1 modules
var createSuper = __webpack_require__(51630);
// EXTERNAL MODULE: ./node_modules/rc-util/es/Dom/findDOMNode.js
var findDOMNode = __webpack_require__(34203);
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: ./node_modules/rc-util/es/KeyCode.js
var KeyCode = __webpack_require__(15105);
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/util.js
function getScroll(w) {
var ret = w.pageXOffset;
var method = 'scrollLeft';
if (typeof ret !== 'number') {
var d = w.document; // ie6,7,8 standard mode
ret = d.documentElement[method];
if (typeof ret !== 'number') {
// quirks mode
ret = d.body[method];
}
}
return ret;
}
function getClientPosition(elem) {
var x;
var y;
var doc = elem.ownerDocument;
var body = doc.body;
var docElem = doc && doc.documentElement;
var box = elem.getBoundingClientRect();
x = box.left;
y = box.top;
x -= docElem.clientLeft || body.clientLeft || 0;
y -= docElem.clientTop || body.clientTop || 0;
return {
left: x,
top: y
};
}
function getOffsetLeft(el) {
var pos = getClientPosition(el);
var doc = el.ownerDocument; // Only IE use `parentWindow`
var w = doc.defaultView || doc.parentWindow;
pos.left += getScroll(w);
return pos.left;
}
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Star.js
var Star = /*#__PURE__*/function (_React$Component) {
(0,inherits/* default */.Z)(Star, _React$Component);
var _super = (0,createSuper/* default */.Z)(Star);
function Star() {
var _this;
(0,classCallCheck/* default */.Z)(this, Star);
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
_this = _super.call.apply(_super, [this].concat(args));
_this.onHover = function (e) {
var _this$props = _this.props,
onHover = _this$props.onHover,
index = _this$props.index;
onHover(e, index);
};
_this.onClick = function (e) {
var _this$props2 = _this.props,
onClick = _this$props2.onClick,
index = _this$props2.index;
onClick(e, index);
};
_this.onKeyDown = function (e) {
var _this$props3 = _this.props,
onClick = _this$props3.onClick,
index = _this$props3.index;
if (e.keyCode === 13) {
onClick(e, index);
}
};
return _this;
}
(0,createClass/* default */.Z)(Star, [{
key: "getClassName",
value: function getClassName() {
var _this$props4 = this.props,
prefixCls = _this$props4.prefixCls,
index = _this$props4.index,
value = _this$props4.value,
allowHalf = _this$props4.allowHalf,
focused = _this$props4.focused;
var starValue = index + 1;
var className = prefixCls;
if (value === 0 && index === 0 && focused) {
className += " ".concat(prefixCls, "-focused");
} else if (allowHalf && value + 0.5 >= starValue && value < starValue) {
className += " ".concat(prefixCls, "-half ").concat(prefixCls, "-active");
if (focused) {
className += " ".concat(prefixCls, "-focused");
}
} else {
className += starValue <= value ? " ".concat(prefixCls, "-full") : " ".concat(prefixCls, "-zero");
if (starValue === value && focused) {
className += " ".concat(prefixCls, "-focused");
}
}
return className;
}
}, {
key: "render",
value: function render() {
var onHover = this.onHover,
onClick = this.onClick,
onKeyDown = this.onKeyDown;
var _this$props5 = this.props,
disabled = _this$props5.disabled,
prefixCls = _this$props5.prefixCls,
character = _this$props5.character,
characterRender = _this$props5.characterRender,
index = _this$props5.index,
count = _this$props5.count,
value = _this$props5.value;
var characterNode = typeof character === 'function' ? character(this.props) : character;
var start = /*#__PURE__*/react.createElement("li", {
className: this.getClassName()
}, /*#__PURE__*/react.createElement("div", {
onClick: disabled ? null : onClick,
onKeyDown: disabled ? null : onKeyDown,
onMouseMove: disabled ? null : onHover,
role: "radio",
"aria-checked": value > index ? 'true' : 'false',
"aria-posinset": index + 1,
"aria-setsize": count,
tabIndex: disabled ? -1 : 0
}, /*#__PURE__*/react.createElement("div", {
className: "".concat(prefixCls, "-first")
}, characterNode), /*#__PURE__*/react.createElement("div", {
className: "".concat(prefixCls, "-second")
}, characterNode)));
if (characterRender) {
start = characterRender(start, this.props);
}
return start;
}
}]);
return Star;
}(react.Component);
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Rate.js
function noop() {}
var Rate = /*#__PURE__*/function (_React$Component) {
(0,inherits/* default */.Z)(Rate, _React$Component);
var _super = (0,createSuper/* default */.Z)(Rate);
function Rate(props) {
var _this;
(0,classCallCheck/* default */.Z)(this, Rate);
_this = _super.call(this, props);
_this.stars = void 0;
_this.rate = void 0;
_this.onHover = function (event, index) {
var onHoverChange = _this.props.onHoverChange;
var hoverValue = _this.getStarValue(index, event.pageX);
var cleanedValue = _this.state.cleanedValue;
if (hoverValue !== cleanedValue) {
_this.setState({
hoverValue: hoverValue,
cleanedValue: null
});
}
onHoverChange(hoverValue);
};
_this.onMouseLeave = function () {
var onHoverChange = _this.props.onHoverChange;
_this.setState({
hoverValue: undefined,
cleanedValue: null
});
onHoverChange(undefined);
};
_this.onClick = function (event, index) {
var allowClear = _this.props.allowClear;
var value = _this.state.value;
var newValue = _this.getStarValue(index, event.pageX);
var isReset = false;
if (allowClear) {
isReset = newValue === value;
}
_this.onMouseLeave();
_this.changeValue(isReset ? 0 : newValue);
_this.setState({
cleanedValue: isReset ? newValue : null
});
};
_this.onFocus = function () {
var onFocus = _this.props.onFocus;
_this.setState({
focused: true
});
if (onFocus) {
onFocus();
}
};
_this.onBlur = function () {
var onBlur = _this.props.onBlur;
_this.setState({
focused: false
});
if (onBlur) {
onBlur();
}
};
_this.onKeyDown = function (event) {
var keyCode = event.keyCode;
var _this$props = _this.props,
count = _this$props.count,
allowHalf = _this$props.allowHalf,
onKeyDown = _this$props.onKeyDown,
direction = _this$props.direction;
var reverse = direction === 'rtl';
var value = _this.state.value;
if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && value < count && !reverse) {
if (allowHalf) {
value += 0.5;
} else {
value += 1;
}
_this.changeValue(value);
event.preventDefault();
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && value > 0 && !reverse) {
if (allowHalf) {
value -= 0.5;
} else {
value -= 1;
}
_this.changeValue(value);
event.preventDefault();
} else if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && value > 0 && reverse) {
if (allowHalf) {
value -= 0.5;
} else {
value -= 1;
}
_this.changeValue(value);
event.preventDefault();
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && value < count && reverse) {
if (allowHalf) {
value += 0.5;
} else {
value += 1;
}
_this.changeValue(value);
event.preventDefault();
}
if (onKeyDown) {
onKeyDown(event);
}
};
_this.saveRef = function (index) {
return function (node) {
_this.stars[index] = node;
};
};
_this.saveRate = function (node) {
_this.rate = node;
};
var _value = props.value;
if (_value === undefined) {
_value = props.defaultValue;
}
_this.stars = {};
_this.state = {
value: _value,
focused: false,
cleanedValue: null
};
return _this;
}
(0,createClass/* default */.Z)(Rate, [{
key: "componentDidMount",
value: function componentDidMount() {
var _this$props2 = this.props,
autoFocus = _this$props2.autoFocus,
disabled = _this$props2.disabled;
if (autoFocus && !disabled) {
this.focus();
}
}
}, {
key: "getStarDOM",
value: function getStarDOM(index) {
return (0,findDOMNode/* default */.Z)(this.stars[index]);
}
}, {
key: "getStarValue",
value: function getStarValue(index, x) {
var _this$props3 = this.props,
allowHalf = _this$props3.allowHalf,
direction = _this$props3.direction;
var reverse = direction === 'rtl';
var value = index + 1;
if (allowHalf) {
var starEle = this.getStarDOM(index);
var leftDis = getOffsetLeft(starEle);
var width = starEle.clientWidth;
if (reverse && x - leftDis > width / 2) {
value -= 0.5;
} else if (!reverse && x - leftDis < width / 2) {
value -= 0.5;
}
}
return value;
}
}, {
key: "focus",
value: function focus() {
var disabled = this.props.disabled;
if (!disabled) {
this.rate.focus();
}
}
}, {
key: "blur",
value: function blur() {
var disabled = this.props.disabled;
if (!disabled) {
this.rate.blur();
}
}
}, {
key: "changeValue",
value: function changeValue(value) {
var onChange = this.props.onChange;
if (!('value' in this.props)) {
this.setState({
value: value
});
}
onChange(value);
}
}, {
key: "render",
value: function render() {
var _this$props4 = this.props,
count = _this$props4.count,
allowHalf = _this$props4.allowHalf,
style = _this$props4.style,
prefixCls = _this$props4.prefixCls,
disabled = _this$props4.disabled,
className = _this$props4.className,
character = _this$props4.character,
characterRender = _this$props4.characterRender,
tabIndex = _this$props4.tabIndex,
direction = _this$props4.direction;
var _this$state = this.state,
value = _this$state.value,
hoverValue = _this$state.hoverValue,
focused = _this$state.focused;
var stars = [];
var disabledClass = disabled ? "".concat(prefixCls, "-disabled") : '';
for (var index = 0; index < count; index += 1) {
stars.push( /*#__PURE__*/react.createElement(Star, {
ref: this.saveRef(index),
index: index,
count: count,
disabled: disabled,
prefixCls: "".concat(prefixCls, "-star"),
allowHalf: allowHalf,
value: hoverValue === undefined ? value : hoverValue,
onClick: this.onClick,
onHover: this.onHover,
key: index,
character: character,
characterRender: characterRender,
focused: focused
}));
}
var rateClassName = classnames_default()(prefixCls, disabledClass, className, (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-rtl"), direction === 'rtl'));
return /*#__PURE__*/react.createElement("ul", {
className: rateClassName,
style: style,
onMouseLeave: disabled ? null : this.onMouseLeave,
tabIndex: disabled ? -1 : tabIndex,
onFocus: disabled ? null : this.onFocus,
onBlur: disabled ? null : this.onBlur,
onKeyDown: disabled ? null : this.onKeyDown,
ref: this.saveRate,
role: "radiogroup"
}, stars);
}
}], [{
key: "getDerivedStateFromProps",
value: function getDerivedStateFromProps(nextProps, state) {
if ('value' in nextProps && nextProps.value !== undefined) {
return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, state), {}, {
value: nextProps.value
});
}
return state;
}
}]);
return Rate;
}(react.Component);
Rate.defaultProps = {
defaultValue: 0,
count: 5,
allowHalf: false,
allowClear: true,
style: {},
prefixCls: 'rc-rate',
onChange: noop,
character: '★',
onHoverChange: noop,
tabIndex: 0,
direction: 'ltr'
};
/* harmony default export */ var es_Rate = (Rate);
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/index.js
/* harmony default export */ var es = (es_Rate);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
var context = __webpack_require__(53124);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(84908);
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/index.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;
};
var rate_Rate = /*#__PURE__*/react.forwardRef(function (props, ref) {
var prefixCls = props.prefixCls,
tooltips = props.tooltips,
_props$character = props.character,
character = _props$character === void 0 ? /*#__PURE__*/react.createElement(icons_StarFilled, null) : _props$character,
rest = __rest(props, ["prefixCls", "tooltips", "character"]);
var characterRender = function characterRender(node, _ref) {
var index = _ref.index;
if (!tooltips) {
return node;
}
return /*#__PURE__*/react.createElement(tooltip/* default */.Z, {
title: tooltips[index]
}, node);
};
var _React$useContext = react.useContext(context/* ConfigContext */.E_),
getPrefixCls = _React$useContext.getPrefixCls,
direction = _React$useContext.direction;
var ratePrefixCls = getPrefixCls('rate', prefixCls);
return /*#__PURE__*/react.createElement(es, (0,esm_extends/* default */.Z)({
ref: ref,
character: character,
characterRender: characterRender
}, rest, {
prefixCls: ratePrefixCls,
direction: direction
}));
});
if (false) {}
/* harmony default export */ var rate = (rate_Rate);
/***/ }),
/***/ 50936:
/*!**************************************************************!*\
!*** ./node_modules/antd/es/rate/style/index.js + 1 modules ***!
\**************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
// EXTERNAL MODULE: ./node_modules/antd/es/style/default.less
var style_default = __webpack_require__(43146);
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/style/index.less
// extracted by mini-css-extract-plugin
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/style/index.js + 1 modules
var style = __webpack_require__(38390);
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/style/index.js
// style dependencies
/***/ })
}]);

File diff suppressed because it is too large Load Diff

@ -0,0 +1,979 @@
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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]!./node_modules/antd/es/skeleton/style/index.less ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.ant-skeleton {
display: table;
width: 100%;
}
.ant-skeleton-header {
display: table-cell;
padding-right: 8px;
vertical-align: top;
}
.ant-skeleton-header .ant-skeleton-avatar {
display: inline-block;
vertical-align: top;
background: rgba(190, 190, 190, 0.2);
width: 28px;
height: 28px;
line-height: 28px;
}
.ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle {
border-radius: 50%;
}
.ant-skeleton-header .ant-skeleton-avatar-lg {
width: 32px;
height: 32px;
line-height: 32px;
}
.ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle {
border-radius: 50%;
}
.ant-skeleton-header .ant-skeleton-avatar-sm {
width: 22px;
height: 22px;
line-height: 22px;
}
.ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle {
border-radius: 50%;
}
.ant-skeleton-content {
display: table-cell;
width: 100%;
vertical-align: top;
}
.ant-skeleton-content .ant-skeleton-title {
width: 100%;
height: 14px;
background: rgba(190, 190, 190, 0.2);
border-radius: 2px;
}
.ant-skeleton-content .ant-skeleton-title + .ant-skeleton-paragraph {
margin-top: 20px;
}
.ant-skeleton-content .ant-skeleton-paragraph {
padding: 0;
}
.ant-skeleton-content .ant-skeleton-paragraph > li {
width: 100%;
height: 14px;
list-style: none;
background: rgba(190, 190, 190, 0.2);
border-radius: 2px;
}
.ant-skeleton-content .ant-skeleton-paragraph > li:last-child:not(:first-child):not(:nth-child(2)) {
width: 61%;
}
.ant-skeleton-content .ant-skeleton-paragraph > li + li {
margin-top: 12px;
}
.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title {
margin-top: 8px;
}
.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title + .ant-skeleton-paragraph {
margin-top: 20px;
}
.ant-skeleton-round .ant-skeleton-content .ant-skeleton-title,
.ant-skeleton-round .ant-skeleton-content .ant-skeleton-paragraph > li {
border-radius: 100px;
}
.ant-skeleton-active .ant-skeleton-title,
.ant-skeleton-active .ant-skeleton-paragraph > li,
.ant-skeleton-active .ant-skeleton-avatar,
.ant-skeleton-active .ant-skeleton-button,
.ant-skeleton-active .ant-skeleton-input,
.ant-skeleton-active .ant-skeleton-image {
position: relative;
/* stylelint-disable-next-line property-no-vendor-prefix,value-no-vendor-prefix */
z-index: 0;
overflow: hidden;
background: transparent;
}
.ant-skeleton-active .ant-skeleton-title::after,
.ant-skeleton-active .ant-skeleton-paragraph > li::after,
.ant-skeleton-active .ant-skeleton-avatar::after,
.ant-skeleton-active .ant-skeleton-button::after,
.ant-skeleton-active .ant-skeleton-input::after,
.ant-skeleton-active .ant-skeleton-image::after {
position: absolute;
top: 0;
right: -150%;
bottom: 0;
left: -150%;
background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, rgba(129, 129, 129, 0.24) 37%, rgba(190, 190, 190, 0.2) 63%);
animation: ant-skeleton-loading 1.4s ease infinite;
content: '';
}
.ant-skeleton.ant-skeleton-block {
width: 100%;
}
.ant-skeleton.ant-skeleton-block .ant-skeleton-button {
width: 100%;
}
.ant-skeleton.ant-skeleton-block .ant-skeleton-input {
width: 100%;
}
.ant-skeleton-element {
display: inline-block;
width: auto;
}
.ant-skeleton-element .ant-skeleton-button {
display: inline-block;
vertical-align: top;
background: rgba(190, 190, 190, 0.2);
border-radius: 2px;
width: 56px;
min-width: 56px;
height: 28px;
line-height: 28px;
}
.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-square {
width: 28px;
min-width: 28px;
}
.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-circle {
width: 28px;
min-width: 28px;
border-radius: 50%;
}
.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-round {
border-radius: 28px;
}
.ant-skeleton-element .ant-skeleton-button-lg {
width: 64px;
min-width: 64px;
height: 32px;
line-height: 32px;
}
.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-square {
width: 32px;
min-width: 32px;
}
.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-circle {
width: 32px;
min-width: 32px;
border-radius: 50%;
}
.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-round {
border-radius: 32px;
}
.ant-skeleton-element .ant-skeleton-button-sm {
width: 44px;
min-width: 44px;
height: 22px;
line-height: 22px;
}
.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-square {
width: 22px;
min-width: 22px;
}
.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-circle {
width: 22px;
min-width: 22px;
border-radius: 50%;
}
.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-round {
border-radius: 22px;
}
.ant-skeleton-element .ant-skeleton-avatar {
display: inline-block;
vertical-align: top;
background: rgba(190, 190, 190, 0.2);
width: 28px;
height: 28px;
line-height: 28px;
}
.ant-skeleton-element .ant-skeleton-avatar.ant-skeleton-avatar-circle {
border-radius: 50%;
}
.ant-skeleton-element .ant-skeleton-avatar-lg {
width: 32px;
height: 32px;
line-height: 32px;
}
.ant-skeleton-element .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle {
border-radius: 50%;
}
.ant-skeleton-element .ant-skeleton-avatar-sm {
width: 22px;
height: 22px;
line-height: 22px;
}
.ant-skeleton-element .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle {
border-radius: 50%;
}
.ant-skeleton-element .ant-skeleton-input {
display: inline-block;
vertical-align: top;
background: rgba(190, 190, 190, 0.2);
width: 140px;
min-width: 140px;
height: 28px;
line-height: 28px;
}
.ant-skeleton-element .ant-skeleton-input-lg {
width: 160px;
min-width: 160px;
height: 32px;
line-height: 32px;
}
.ant-skeleton-element .ant-skeleton-input-sm {
width: 110px;
min-width: 110px;
height: 22px;
line-height: 22px;
}
.ant-skeleton-element .ant-skeleton-image {
display: flex;
align-items: center;
justify-content: center;
vertical-align: top;
background: rgba(190, 190, 190, 0.2);
width: 96px;
height: 96px;
line-height: 96px;
}
.ant-skeleton-element .ant-skeleton-image.ant-skeleton-image-circle {
border-radius: 50%;
}
.ant-skeleton-element .ant-skeleton-image-path {
fill: #bfbfbf;
}
.ant-skeleton-element .ant-skeleton-image-svg {
width: 48px;
height: 48px;
line-height: 48px;
max-width: 192px;
max-height: 192px;
}
.ant-skeleton-element .ant-skeleton-image-svg.ant-skeleton-image-circle {
border-radius: 50%;
}
@keyframes ant-skeleton-loading {
0% {
transform: translateX(-37.5%);
}
100% {
transform: translateX(37.5%);
}
}
.ant-skeleton-rtl {
direction: rtl;
}
.ant-skeleton-rtl .ant-skeleton-header {
padding-right: 0;
padding-left: 16px;
}
.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title,
.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph > li {
animation-name: ant-skeleton-loading-rtl;
}
.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar {
animation-name: ant-skeleton-loading-rtl;
}
@keyframes ant-skeleton-loading-rtl {
0% {
background-position: 0% 50%;
}
100% {
background-position: 100% 50%;
}
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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]!./node_modules/antd/es/rate/style/index.less ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.ant-rate {
box-sizing: border-box;
color: rgba(0, 0, 0, 0.85);
font-size: 12px;
font-variant: tabular-nums;
line-height: 1.66667;
font-feature-settings: tnum, "tnum";
display: inline-block;
margin: 0;
padding: 0;
color: #fadb14;
font-size: 16px;
line-height: inherit;
list-style: none;
outline: none;
}
.ant-rate-disabled .ant-rate-star {
cursor: default;
}
.ant-rate-disabled .ant-rate-star > div:hover {
transform: scale(1);
}
.ant-rate-star {
position: relative;
display: inline-block;
color: inherit;
cursor: pointer;
}
.ant-rate-star:not(:last-child) {
margin-right: 8px;
}
.ant-rate-star > div {
transition: all 0.3s, outline 0s;
}
.ant-rate-star > div:hover {
transform: scale(1.1);
}
.ant-rate-star > div:focus {
outline: 0;
}
.ant-rate-star > div:focus-visible {
outline: 1px dashed #fadb14;
transform: scale(1.1);
}
.ant-rate-star-first,
.ant-rate-star-second {
color: #f0f0f0;
transition: all 0.3s;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.ant-rate-star-first .anticon,
.ant-rate-star-second .anticon {
vertical-align: middle;
}
.ant-rate-star-first {
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 100%;
overflow: hidden;
opacity: 0;
}
.ant-rate-star-half .ant-rate-star-first,
.ant-rate-star-half .ant-rate-star-second {
opacity: 1;
}
.ant-rate-star-half .ant-rate-star-first,
.ant-rate-star-full .ant-rate-star-second {
color: inherit;
}
.ant-rate-text {
display: inline-block;
margin: 0 8px;
font-size: 12px;
}
.ant-rate-rtl {
direction: rtl;
}
.ant-rate-rtl .ant-rate-star:not(:last-child) {
margin-right: 0;
margin-left: 8px;
}
.ant-rate-rtl .ant-rate-star-first {
right: 0;
left: auto;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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]!./node_modules/antd/es/form/style/index.less ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.ant-form-item .ant-input-number + .ant-form-text {
margin-left: 8px;
}
.ant-form-inline {
display: flex;
flex-wrap: wrap;
}
.ant-form-inline .ant-form-item {
flex: none;
flex-wrap: nowrap;
margin-right: 16px;
margin-bottom: 0;
}
.ant-form-inline .ant-form-item-with-help {
margin-bottom: 16px;
}
.ant-form-inline .ant-form-item > .ant-form-item-label,
.ant-form-inline .ant-form-item > .ant-form-item-control {
display: inline-block;
vertical-align: top;
}
.ant-form-inline .ant-form-item > .ant-form-item-label {
flex: none;
}
.ant-form-inline .ant-form-item .ant-form-text {
display: inline-block;
}
.ant-form-inline .ant-form-item .ant-form-item-has-feedback {
display: inline-block;
}
.ant-form-horizontal .ant-form-item-label {
flex-grow: 0;
}
.ant-form-horizontal .ant-form-item-control {
flex: 1 1;
min-width: 0;
}
.ant-form-horizontal .ant-form-item-label[class$='-24'] + .ant-form-item-control,
.ant-form-horizontal .ant-form-item-label[class*='-24 '] + .ant-form-item-control {
min-width: 0;
min-width: initial;
}
.ant-form-vertical .ant-form-item-row {
flex-direction: column;
}
.ant-form-vertical .ant-form-item-label > label {
height: auto;
}
.ant-form-vertical .ant-form-item .ant-form-item-control {
width: 100%;
}
.ant-form-vertical .ant-form-item-label,
.ant-col-24.ant-form-item-label,
.ant-col-xl-24.ant-form-item-label {
padding: 0 0 4px;
line-height: 1.66667;
white-space: normal;
white-space: initial;
text-align: left;
}
.ant-form-vertical .ant-form-item-label > label,
.ant-col-24.ant-form-item-label > label,
.ant-col-xl-24.ant-form-item-label > label {
margin: 0;
}
.ant-form-vertical .ant-form-item-label > label::after,
.ant-col-24.ant-form-item-label > label::after,
.ant-col-xl-24.ant-form-item-label > label::after {
display: none;
}
.ant-form-rtl.ant-form-vertical .ant-form-item-label,
.ant-form-rtl.ant-col-24.ant-form-item-label,
.ant-form-rtl.ant-col-xl-24.ant-form-item-label {
text-align: right;
}
@media (max-width: 575px) {
.ant-form-item .ant-form-item-label {
padding: 0 0 4px;
line-height: 1.66667;
white-space: normal;
white-space: initial;
text-align: left;
}
.ant-form-item .ant-form-item-label > label {
margin: 0;
}
.ant-form-item .ant-form-item-label > label::after {
display: none;
}
.ant-form-rtl.ant-form-item .ant-form-item-label {
text-align: right;
}
.ant-form .ant-form-item {
flex-wrap: wrap;
}
.ant-form .ant-form-item .ant-form-item-label,
.ant-form .ant-form-item .ant-form-item-control {
flex: 0 0 100%;
max-width: 100%;
}
.ant-col-xs-24.ant-form-item-label {
padding: 0 0 4px;
line-height: 1.66667;
white-space: normal;
white-space: initial;
text-align: left;
}
.ant-col-xs-24.ant-form-item-label > label {
margin: 0;
}
.ant-col-xs-24.ant-form-item-label > label::after {
display: none;
}
.ant-form-rtl.ant-col-xs-24.ant-form-item-label {
text-align: right;
}
}
@media (max-width: 767px) {
.ant-col-sm-24.ant-form-item-label {
padding: 0 0 4px;
line-height: 1.66667;
white-space: normal;
white-space: initial;
text-align: left;
}
.ant-col-sm-24.ant-form-item-label > label {
margin: 0;
}
.ant-col-sm-24.ant-form-item-label > label::after {
display: none;
}
.ant-form-rtl.ant-col-sm-24.ant-form-item-label {
text-align: right;
}
}
@media (max-width: 991px) {
.ant-col-md-24.ant-form-item-label {
padding: 0 0 4px;
line-height: 1.66667;
white-space: normal;
white-space: initial;
text-align: left;
}
.ant-col-md-24.ant-form-item-label > label {
margin: 0;
}
.ant-col-md-24.ant-form-item-label > label::after {
display: none;
}
.ant-form-rtl.ant-col-md-24.ant-form-item-label {
text-align: right;
}
}
@media (max-width: 1199px) {
.ant-col-lg-24.ant-form-item-label {
padding: 0 0 4px;
line-height: 1.66667;
white-space: normal;
white-space: initial;
text-align: left;
}
.ant-col-lg-24.ant-form-item-label > label {
margin: 0;
}
.ant-col-lg-24.ant-form-item-label > label::after {
display: none;
}
.ant-form-rtl.ant-col-lg-24.ant-form-item-label {
text-align: right;
}
}
@media (max-width: 1599px) {
.ant-col-xl-24.ant-form-item-label {
padding: 0 0 4px;
line-height: 1.66667;
white-space: normal;
white-space: initial;
text-align: left;
}
.ant-col-xl-24.ant-form-item-label > label {
margin: 0;
}
.ant-col-xl-24.ant-form-item-label > label::after {
display: none;
}
.ant-form-rtl.ant-col-xl-24.ant-form-item-label {
text-align: right;
}
}
.ant-form-item {
/* Some non-status related component style is in `components.less` */
/* To support leave along ErrorList. We add additional className to handle explain style */
}
.ant-form-item-explain-error {
color: #ff4d4f;
}
.ant-form-item-explain-warning {
color: #faad14;
}
.ant-form-item-has-feedback .ant-switch {
margin: 2px 0 4px;
}
.ant-form-item-has-warning .ant-form-item-split {
color: #faad14;
}
.ant-form-item-has-error .ant-form-item-split {
color: #ff4d4f;
}
.ant-form {
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.85);
font-size: 12px;
font-variant: tabular-nums;
line-height: 1.66667;
list-style: none;
font-feature-settings: tnum, "tnum";
}
.ant-form legend {
display: block;
width: 100%;
margin-bottom: 20px;
padding: 0;
color: rgba(0, 0, 0, 0.45);
font-size: 14px;
line-height: inherit;
border: 0;
border-bottom: 1px solid #d9d9d9;
}
.ant-form label {
font-size: 12px;
}
.ant-form input[type='search'] {
box-sizing: border-box;
}
.ant-form input[type='radio'],
.ant-form input[type='checkbox'] {
line-height: normal;
}
.ant-form input[type='file'] {
display: block;
}
.ant-form input[type='range'] {
display: block;
width: 100%;
}
.ant-form select[multiple],
.ant-form select[size] {
height: auto;
}
.ant-form input[type='file']:focus,
.ant-form input[type='radio']:focus,
.ant-form input[type='checkbox']:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
.ant-form output {
display: block;
padding-top: 15px;
color: rgba(0, 0, 0, 0.85);
font-size: 12px;
line-height: 1.66667;
}
.ant-form .ant-form-text {
display: inline-block;
padding-right: 8px;
}
.ant-form-small .ant-form-item-label > label {
height: 22px;
}
.ant-form-small .ant-form-item-control-input {
min-height: 22px;
}
.ant-form-large .ant-form-item-label > label {
height: 32px;
}
.ant-form-large .ant-form-item-control-input {
min-height: 32px;
}
.ant-form-item {
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.85);
font-size: 12px;
font-variant: tabular-nums;
line-height: 1.66667;
list-style: none;
font-feature-settings: tnum, "tnum";
margin-bottom: 16px;
vertical-align: top;
}
.ant-form-item-with-help {
transition: none;
}
.ant-form-item-hidden,
.ant-form-item-hidden.ant-row {
display: none;
}
.ant-form-item-label {
display: inline-block;
flex-grow: 0;
overflow: hidden;
white-space: nowrap;
text-align: right;
vertical-align: middle;
}
.ant-form-item-label-left {
text-align: left;
}
.ant-form-item-label-wrap {
overflow: visible;
overflow: initial;
line-height: 1.41667em;
white-space: inherit;
}
.ant-form-item-label > label {
position: relative;
display: inline-flex;
align-items: center;
max-width: 100%;
height: 28px;
color: rgba(0, 0, 0, 0.85);
font-size: 12px;
}
.ant-form-item-label > label > .anticon {
font-size: 12px;
vertical-align: top;
}
.ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {
display: inline-block;
margin-right: 4px;
color: #ff4d4f;
font-size: 12px;
font-family: SimSun, sans-serif;
line-height: 1;
content: '*';
}
.ant-form-hide-required-mark .ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {
display: none;
}
.ant-form-item-label > label .ant-form-item-optional {
display: inline-block;
margin-left: 0px;
color: rgba(0, 0, 0, 0.45);
}
.ant-form-hide-required-mark .ant-form-item-label > label .ant-form-item-optional {
display: none;
}
.ant-form-item-label > label .ant-form-item-tooltip {
color: rgba(0, 0, 0, 0.45);
cursor: help;
-webkit-writing-mode: horizontal-tb;
-ms-writing-mode: lr-tb;
writing-mode: horizontal-tb;
-webkit-margin-start: 0px;
margin-inline-start: 0px;
}
.ant-form-item-label > label::after {
content: ':';
position: relative;
top: -0.5px;
margin: 0 8px 0 2px;
}
.ant-form-item-label > label.ant-form-item-no-colon::after {
content: ' ';
}
.ant-form-item-control {
display: flex;
flex-direction: column;
flex-grow: 1;
}
.ant-form-item-control:first-child:not([class^='ant-col-']):not([class*=' ant-col-']) {
width: 100%;
}
.ant-form-item-control-input {
position: relative;
display: flex;
align-items: center;
min-height: 28px;
}
.ant-form-item-control-input-content {
flex: auto;
max-width: 100%;
}
.ant-form-item-explain,
.ant-form-item-extra {
clear: both;
color: rgba(0, 0, 0, 0.45);
font-size: 12px;
line-height: 1.66667;
transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.ant-form-item-explain-connected {
width: 100%;
}
.ant-form-item-extra {
min-height: 16px;
}
.ant-form-item-with-help .ant-form-item-explain {
height: auto;
opacity: 1;
}
.ant-form-item-feedback-icon {
font-size: 12px;
text-align: center;
visibility: visible;
animation: zoomIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46);
pointer-events: none;
}
.ant-form-item-feedback-icon-success {
color: #52c41a;
}
.ant-form-item-feedback-icon-error {
color: #ff4d4f;
}
.ant-form-item-feedback-icon-warning {
color: #faad14;
}
.ant-form-item-feedback-icon-validating {
color: #1890ff;
}
.ant-show-help {
transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.ant-show-help-appear,
.ant-show-help-enter {
opacity: 0;
}
.ant-show-help-appear-active,
.ant-show-help-enter-active {
opacity: 1;
}
.ant-show-help-leave {
opacity: 1;
}
.ant-show-help-leave-active {
opacity: 0;
}
.ant-show-help-item {
overflow: hidden;
transition: height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
}
.ant-show-help-item-appear,
.ant-show-help-item-enter {
transform: translateY(-5px);
opacity: 0;
}
.ant-show-help-item-appear-active,
.ant-show-help-item-enter-active {
transform: translateY(0);
opacity: 1;
}
.ant-show-help-item-leave {
transition: height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
}
.ant-show-help-item-leave-active {
transform: translateY(-5px);
}
@keyframes diffZoomIn1 {
0% {
transform: scale(0);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}
@keyframes diffZoomIn2 {
0% {
transform: scale(0);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}
@keyframes diffZoomIn3 {
0% {
transform: scale(0);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}
.ant-form-rtl {
direction: rtl;
}
.ant-form-rtl .ant-form-item-label {
text-align: left;
}
.ant-form-rtl .ant-form-item-label > label.ant-form-item-required::before {
margin-right: 0;
margin-left: 4px;
}
.ant-form-rtl .ant-form-item-label > label::after {
margin: 0 2px 0 8px;
}
.ant-form-rtl .ant-form-item-label > label .ant-form-item-optional {
margin-right: 0px;
margin-left: 0;
}
.ant-col-rtl .ant-form-item-control:first-child {
width: 100%;
}
.ant-form-rtl .ant-form-item-has-feedback .ant-input {
padding-right: 7px;
padding-left: 24px;
}
.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input-suffix {
padding-right: 7px;
padding-left: 18px;
}
.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input {
padding: 0;
}
.ant-form-rtl .ant-form-item-has-feedback .ant-input-number-affix-wrapper .ant-input-number {
padding: 0;
}
.ant-form-rtl .ant-form-item-has-feedback .ant-input-search:not(.ant-input-search-enter-button) .ant-input-suffix {
right: auto;
left: 28px;
}
.ant-form-rtl .ant-form-item-has-feedback .ant-input-number {
padding-left: 18px;
}
.ant-form-rtl .ant-form-item-has-feedback > .ant-select .ant-select-arrow,
.ant-form-rtl .ant-form-item-has-feedback > .ant-select .ant-select-clear,
.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-arrow,
.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-clear,
.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon) > .ant-select .ant-select-arrow,
.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon) > .ant-select .ant-select-clear {
right: auto;
left: 32px;
}
.ant-form-rtl .ant-form-item-has-feedback > .ant-select .ant-select-selection-selected-value,
.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-selection-selected-value,
.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon) > .ant-select .ant-select-selection-selected-value {
padding-right: 0;
padding-left: 42px;
}
.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-arrow {
margin-right: 0;
margin-left: 19px;
}
.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-clear {
right: auto;
left: 32px;
}
.ant-form-rtl .ant-form-item-has-feedback .ant-picker {
padding-right: 7px;
padding-left: 22.6px;
}
.ant-form-rtl .ant-form-item-has-feedback .ant-picker-large {
padding-right: 11px;
padding-left: 26.6px;
}
.ant-form-rtl .ant-form-item-has-feedback .ant-picker-small {
padding-right: 7px;
padding-left: 22.6px;
}
.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-success .ant-form-item-children-icon,
.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-warning .ant-form-item-children-icon,
.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-error .ant-form-item-children-icon,
.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-is-validating .ant-form-item-children-icon {
right: auto;
left: 0;
}
.ant-form-rtl.ant-form-inline .ant-form-item {
margin-right: 0;
margin-left: 16px;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[53440,71514,5506,97073,88201,95112],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[53440,71514,5506,97073,88201,32415,95112],{
/***/ 7918:
/*!******************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[5506,71514,97073,88201,95112],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[5506,71514,97073,88201,32415,95112],{
/***/ 7918:
/*!******************************************************************************!*\

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[63543,40018,47638],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[63543,40018,47638,3446],{
/***/ 7918:
/*!******************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[66582,98991,47638],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[66582,98991,47638,3446],{
/***/ 7918:
/*!******************************************************************************!*\

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

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[794,47638],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[794,48896,47638,3446],{
/***/ 5467:
/*!**********************************************************!*\

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -156,21 +156,32 @@
font-size: 12px;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC {
max-height: 240px;
max-height: 245px;
overflow: hidden;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .name___Hk1Ip span {
display: inline-block;
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft > span {
display: inline-flex;
align-items: center;
margin-left: 8px;
margin-bottom: 17px;
font-size: 14px;
cursor: pointer;
padding: 4px 12px;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .name___Hk1Ip span:hover {
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft > span .name___Hk1Ip {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: 600px;
display: inline-block;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft > span .num___xQpcH {
margin-left: 3px;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft > span:hover {
color: #165dff !important;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .name___Hk1Ip .active___XryTX {
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft .active___XryTX {
color: #165dff !important;
border-radius: 2px;
background: #f6f7f9;
@ -949,22 +960,27 @@
align-items: center;
height: 100%;
}
.tabs___alpa7 .tabsWrap___aCQjw > div {
.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 {
display: flex;
align-items: center;
margin-right: 40px;
height: 100%;
}
.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 > div {
position: relative;
font-size: 14px;
font-weight: 400;
color: #5f6368;
margin-right: 40px;
display: flex;
align-items: center;
height: 100%;
cursor: pointer;
height: 100%;
}
.tabs___alpa7 .tabsWrap___aCQjw .active___nl_4v {
.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 .active___nl_4v {
font-weight: 500;
color: #202124;
}
.tabs___alpa7 .tabsWrap___aCQjw .active___nl_4v:after {
.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 .active___nl_4v:after {
position: absolute;
content: '';
width: 100%;
@ -1028,6 +1044,9 @@
color: #5f6368;
font-weight: 400;
}
.table___zOWN7 .ant-table-thead > tr > th::before {
display: none;
}
.table___zOWN7 .ant-table-column-sorter-full {
margin-top: -0.4em;
}
@ -1176,3 +1195,120 @@
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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/HeadBack/index.less?modules ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___TB7bQ {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___oBlTb {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___b5XbB {
align-items: center;
box-align: center;
}
.flex_box_center_end___CNhe7 {
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___yHXKW {
flex-direction: column;
box-orient: block-axis;
}
.head___ghH72 {
height: 54px;
border-bottom: 1px solid #DBDCE0;
display: flex;
align-items: center;
}
.head___ghH72 > span {
color: #999999;
font-size: 12px;
cursor: pointer;
flex-shrink: 0;
}
.head___ghH72 > b {
font-weight: 500;
color: #232B40;
margin-left: 30px;
font-size: 14px;
flex: 1 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.head___ghH72 .node___mjPEy {
margin-left: auto;
flex-shrink: 0;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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/ConfirmAndCancel/index.less?modules ***!
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___AlHuF {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___vN2LW {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___Ac7D2 {
align-items: center;
box-align: center;
}
.flex_box_center_end___y38I7 {
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___iQE6P {
flex-direction: column;
box-orient: block-axis;
}
.btns___sNgTb {
display: flex;
align-items: center;
}
.btns___sNgTb .confirm___Ozirl {
height: 38px;
background: #3061D0;
border-radius: 2px;
color: #FFFFFF;
padding: 0 34px;
}
.btns___sNgTb .cancel___aiq1I {
height: 38px;
background: #F8F9FC;
border-radius: 2px;
opacity: 0.5;
border: 1px solid #C3CFE0;
font-size: 14px;
color: #464F66;
margin-left: 20px;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[76204],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[85343],{
/***/ 82982:
/*!*****************************************!*\
@ -54,9 +54,9 @@ var noData = function noData(_ref) {
/***/ }),
/***/ 76204:
/***/ 85343:
/*!****************************************************************!*\
!*** ./src/components/ui-customization/index.tsx + 29 modules ***!
!*** ./src/components/ui-customization/index.tsx + 33 modules ***!
\****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -65,12 +65,14 @@ var noData = function noData(_ref) {
__webpack_require__.d(__webpack_exports__, {
"jL": function() { return /* reexport */ ui_customization_Banner; },
"w9": function() { return /* reexport */ Cards_ClassroomList; },
"QD": function() { return /* reexport */ ui_customization_ConfirmAndCancel; },
"cQ": function() { return /* reexport */ Cards_CourseList; },
"op": function() { return /* reexport */ ui_customization_CustomButton; },
"t7": function() { return /* reexport */ ui_customization_CustomInput; },
"Gi": function() { return /* reexport */ ui_customization_CustomTable; },
"YG": function() { return /* reexport */ ui_customization_CustomTabs; },
"qp": function() { return /* reexport */ ui_customization_CustomTags; },
"qE": function() { return /* reexport */ HeadBack; },
"Je": function() { return /* reexport */ QuickPager; },
"wb": function() { return /* reexport */ Cards_ShixunList; },
"cq": function() { return /* reexport */ ui_customization_SuperiorSort; },
@ -141,7 +143,7 @@ var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
;// CONCATENATED MODULE: ./src/components/ui-customization/CustomTags/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var CustomTagsmodules = ({"flex_box_center":"flex_box_center___hG6RI","flex_space_between":"flex_space_between___ss3Fh","flex_box_vertical_center":"flex_box_vertical_center___K80p9","flex_box_center_end":"flex_box_center_end___qmXX3","flex_box_column":"flex_box_column___GFV8F","row":"row___aXJjm","title":"title___HUKL0","tagsWrap":"tagsWrap___XB2W3","action":"action___VdHb1","bar":"bar___t1kKC","name":"name___Hk1Ip","active":"active___XryTX","tagsBorderWrap":"tagsBorderWrap___OMxjs"});
/* harmony default export */ var CustomTagsmodules = ({"flex_box_center":"flex_box_center___hG6RI","flex_space_between":"flex_space_between___ss3Fh","flex_box_vertical_center":"flex_box_vertical_center___K80p9","flex_box_center_end":"flex_box_center_end___qmXX3","flex_box_column":"flex_box_column___GFV8F","row":"row___aXJjm","title":"title___HUKL0","tagsWrap":"tagsWrap___XB2W3","action":"action___VdHb1","bar":"bar___t1kKC","tag":"tag___V7Eft","name":"name___Hk1Ip","num":"num___xQpcH","active":"active___XryTX","tagsBorderWrap":"tagsBorderWrap___OMxjs"});
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
@ -164,7 +166,8 @@ var CustomTags = function CustomTags(_ref) {
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$fontColor = _ref.fontColor,
fontColor = _ref$fontColor === void 0 ? '#6A7283' : _ref$fontColor;
fontColor = _ref$fontColor === void 0 ? '#6A7283' : _ref$fontColor,
showCount = _ref.showCount;
var _useState = (0,react.useState)(0),
_useState2 = slicedToArray_default()(_useState, 2),
show = _useState2[0],
@ -174,10 +177,11 @@ var CustomTags = function CustomTags(_ref) {
showBorder = _useState4[0],
setShowBorder = _useState4[1];
var tagsRef = (0,react.useRef)(null);
var scrollRef = (0,react.useRef)(null);
(0,react.useEffect)(function () {
if (dataSource.length !== 0) {
var _tagsRef$current;
if ((tagsRef === null || tagsRef === void 0 ? void 0 : (_tagsRef$current = tagsRef.current) === null || _tagsRef$current === void 0 ? void 0 : _tagsRef$current.clientHeight) > 92) {
if ((tagsRef === null || tagsRef === void 0 ? void 0 : (_tagsRef$current = tagsRef.current) === null || _tagsRef$current === void 0 ? void 0 : _tagsRef$current.clientHeight) > 97) {
setShow(1);
} else {
setShow(0);
@ -202,27 +206,34 @@ var CustomTags = function CustomTags(_ref) {
className: showBorder ? "".concat(CustomTagsmodules.tagsWrap, " ").concat(CustomTagsmodules.tagsBorderWrap) : CustomTagsmodules.tagsWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CustomTagsmodules.bar,
ref: scrollRef,
style: show > 0 ? {
height: show === 1 ? 92 : 'auto',
height: show === 1 ? 97 : 'auto',
overflow: show === 1 ? 'hidden' : 'auto',
paddingRight: 55
} : {
paddingRight: 0
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CustomTagsmodules.name,
className: CustomTagsmodules.tag,
ref: tagsRef,
children: dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (e) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
onClick: function onClick() {
return onChange(e.id);
},
title: e.name,
style: {
color: fontColor
},
className: value === e.id ? CustomTagsmodules.active : '',
children: e.name
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
title: e.name,
className: CustomTagsmodules.name,
children: e.name
}), !!showCount && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: CustomTagsmodules.num,
children: e.count
})]
}, e.id);
})
})
@ -231,7 +242,7 @@ var CustomTags = function CustomTags(_ref) {
onClick: function onClick() {
var _tagsRef$current2;
setShow(2);
if ((tagsRef === null || tagsRef === void 0 ? void 0 : (_tagsRef$current2 = tagsRef.current) === null || _tagsRef$current2 === void 0 ? void 0 : _tagsRef$current2.clientHeight) > 205) {
if ((tagsRef === null || tagsRef === void 0 ? void 0 : (_tagsRef$current2 = tagsRef.current) === null || _tagsRef$current2 === void 0 ? void 0 : _tagsRef$current2.clientHeight) > 245) {
setShowBorder(true);
} else {
setShowBorder(false);
@ -246,6 +257,7 @@ var CustomTags = function CustomTags(_ref) {
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
onClick: function onClick() {
scrollRef.current.scrollTop = 0;
setShow(1);
setShowBorder(false);
},
@ -885,7 +897,7 @@ var ClassroomList = function ClassroomList(_ref) {
/* harmony default export */ var Cards_ClassroomList = (ClassroomList);
;// CONCATENATED MODULE: ./src/components/ui-customization/CustomTabs/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var CustomTabsmodules = ({"flex_box_center":"flex_box_center___d27mZ","flex_space_between":"flex_space_between___qfRU9","flex_box_vertical_center":"flex_box_vertical_center___fCRld","flex_box_center_end":"flex_box_center_end___ORMV8","flex_box_column":"flex_box_column___PNKtZ","tabs":"tabs___alpa7","tabsWrap":"tabsWrap___aCQjw","active":"active___nl_4v"});
/* harmony default export */ var CustomTabsmodules = ({"flex_box_center":"flex_box_center___d27mZ","flex_space_between":"flex_space_between___qfRU9","flex_box_vertical_center":"flex_box_vertical_center___fCRld","flex_box_center_end":"flex_box_center_end___ORMV8","flex_box_column":"flex_box_column___PNKtZ","tabs":"tabs___alpa7","tabsWrap":"tabsWrap___aCQjw","tab":"tab___MKLr4","active":"active___nl_4v"});
;// CONCATENATED MODULE: ./src/components/ui-customization/CustomTabs/index.tsx
@ -907,12 +919,17 @@ var CustomTabs = function CustomTabs(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CustomTabsmodules.tabsWrap,
children: dataSource.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
return onChange(item.id);
},
className: value === item.id ? CustomTabsmodules.active : '',
children: item.name
return /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
className: CustomTabsmodules.tab,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
return onChange(item.id);
},
className: value === item.id ? CustomTabsmodules.active : '',
children: item.name
}), (item === null || item === void 0 ? void 0 : item.total) !== undefined && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\uFF08", item === null || item === void 0 ? void 0 : item.total, "\uFF09"]
})]
}, index);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@ -1047,6 +1064,85 @@ var CustomButton = function CustomButton(_ref) {
});
};
/* harmony default export */ var ui_customization_CustomButton = (CustomButton);
;// CONCATENATED MODULE: ./src/components/ui-customization/HeadBack/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var HeadBackmodules = ({"flex_box_center":"flex_box_center___TB7bQ","flex_space_between":"flex_space_between___oBlTb","flex_box_vertical_center":"flex_box_vertical_center___b5XbB","flex_box_center_end":"flex_box_center_end___CNhe7","flex_box_column":"flex_box_column___yHXKW","head":"head___ghH72","node":"node___mjPEy"});
;// CONCATENATED MODULE: ./src/components/ui-customization/HeadBack/index.tsx
var HeadBack_CustomButton = function CustomButton(_ref) {
var className = _ref.className,
style = _ref.style,
_ref$children = _ref.children,
children = _ref$children === void 0 ? null : _ref$children,
onClick = _ref.onClick,
title = _ref.title;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: classnames_default()(HeadBackmodules.head, className),
style: style,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
onClick: onClick,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fanhui2 font12"
}), "\u8FD4\u56DE"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
title: title,
children: title
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: HeadBackmodules.node,
children: children
})]
});
};
/* harmony default export */ var HeadBack = (HeadBack_CustomButton);
// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
var button_style = __webpack_require__(29913);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
;// CONCATENATED MODULE: ./src/components/ui-customization/ConfirmAndCancel/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var ConfirmAndCancelmodules = ({"flex_box_center":"flex_box_center___AlHuF","flex_space_between":"flex_space_between___vN2LW","flex_box_vertical_center":"flex_box_vertical_center___Ac7D2","flex_box_center_end":"flex_box_center_end___y38I7","flex_box_column":"flex_box_column___iQE6P","btns":"btns___sNgTb","confirm":"confirm___Ozirl","cancel":"cancel___aiq1I"});
;// CONCATENATED MODULE: ./src/components/ui-customization/ConfirmAndCancel/index.tsx
var ConfirmAndCancel = function ConfirmAndCancel(_ref) {
var _ref$confirmShow = _ref.confirmShow,
confirmShow = _ref$confirmShow === void 0 ? true : _ref$confirmShow,
confirmTitle = _ref.confirmTitle,
confirmClick = _ref.confirmClick,
_ref$cancelShow = _ref.cancelShow,
cancelShow = _ref$cancelShow === void 0 ? true : _ref$cancelShow,
cancelTitle = _ref.cancelTitle,
cancelClick = _ref.cancelClick,
className = _ref.className,
style = _ref.style,
_ref$confirmLoading = _ref.confirmLoading,
confirmLoading = _ref$confirmLoading === void 0 ? false : _ref$confirmLoading;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: classnames_default()(ConfirmAndCancelmodules.btns, className),
style: style,
children: [confirmShow && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
loading: confirmLoading,
onClick: confirmClick,
type: "primary",
className: ConfirmAndCancelmodules.confirm,
children: confirmTitle
}), cancelShow && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
onClick: cancelClick,
className: ConfirmAndCancelmodules.cancel,
children: cancelTitle
})]
});
};
/* harmony default export */ var ui_customization_ConfirmAndCancel = (ConfirmAndCancel);
;// CONCATENATED MODULE: ./src/components/ui-customization/index.tsx
@ -1062,6 +1158,8 @@ var CustomButton = function CustomButton(_ref) {
/***/ }),
/***/ 96908:

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[88201,71514,5506,97073,95112],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[88201,71514,5506,97073,32415,95112],{
/***/ 7918:
/*!******************************************************************************!*\

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[97073,71514,5506,88201,95112],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[97073,71514,5506,88201,32415,95112],{
/***/ 7918:
/*!******************************************************************************!*\

@ -186,12 +186,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.error */.ZP.error('请上传jpg或png的图片!');
message/* default.warn */.ZP.warn('请上传jpg或png的图片!');
return false;
}
var is150M = file.size / 1024 / 1024 > 2;
if (is150M) {
message/* default.info */.ZP.info('文件大小必须小于2MB');
var is200K = file.size / 1024 > 200;
var is1M = file.size / 1024 / 1024 > 1;
if (is200K && type === 1) {
message/* default.warn */.ZP.warn('文件大小必须小于200KB');
return false;
}
if (is1M && type === 2) {
message/* default.warn */.ZP.warn('文件大小必须小于1MB');
return false;
}
if (type === 1) {
@ -238,7 +243,7 @@ var AddOrEdit = function AddOrEdit(_ref) {
okButtonProps: {
disabled: imgLoading
},
width: 686,
width: 694,
afterClose: function afterClose() {
setBtnLoading(false);
setFileList([]);
@ -303,7 +308,7 @@ var AddOrEdit = function AddOrEdit(_ref) {
})
})
}), /*#__PURE__*/(0,jsx_runtime.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"
children: "\u4EC5\u652F\u6301\u4E0A\u4F20jpg/png\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7200KB\uFF0C\u5EFA\u8BAE\u4F7F\u7528282*228\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, {
name: "backbground_image_id",
label: "\u8BE6\u60C5\u9876\u90E8\u80CC\u666F",
@ -334,7 +339,7 @@ var AddOrEdit = function AddOrEdit(_ref) {
})
})
}), /*#__PURE__*/(0,jsx_runtime.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"
children: "\u4EC5\u652F\u6301\u4E0A\u4F20jpg/png\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC71MB\uFF0C\u5EFA\u8BAE\u4F7F\u75283840*148\u50CF\u7D20\uFF1B\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"
})]
})
});

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[98991,47638],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[98991,47638,3446],{
/***/ 5467:
/*!**********************************************************!*\

File diff suppressed because it is too large Load Diff

@ -563,10 +563,10 @@ a.ant-btn-disabled:active > a:only-child::after {background: transparent;}
.ant-comment-actions > li > span {color: @text-color-secondary;}
.ant-comment-actions > li > span:hover {color: #595959;}
.ant-picker-status-error.ant-picker, .ant-picker-status-error.ant-picker:not([disabled]):hover {background-color: #fff;border-color: @error-color;}
.ant-picker-status-error.ant-picker-focused, .ant-picker-status-error.ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(14, 92, 180, 0.2);border-right-width: 1px;}
.ant-picker-status-error.ant-picker-focused, .ant-picker-status-error.ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(59, 135, 34, 0.2);border-right-width: 1px;}
.ant-picker-status-error.ant-picker .ant-picker-active-bar {background: color(~`colorPalette("@{error-color}", 5)`);}
.ant-picker-status-warning.ant-picker, .ant-picker-status-warning.ant-picker:not([disabled]):hover {background-color: #fff;border-color: @warning-color;}
.ant-picker-status-warning.ant-picker-focused, .ant-picker-status-warning.ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(19, 21, 193, 0.2);border-right-width: 1px;}
.ant-picker-status-warning.ant-picker-focused, .ant-picker-status-warning.ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(193, 95, 235, 0.2);border-right-width: 1px;}
.ant-picker-status-warning.ant-picker .ant-picker-active-bar {background: color(~`colorPalette("@{warning-color}", 5)`);}
.ant-picker {color: @text-color;background: #fff;border: 1px solid @border-color-base;border-radius: 2px;}
.ant-picker:hover, .ant-picker-focused {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px;}
@ -788,16 +788,16 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.anticon.ant-input-clear-icon:hover, .ant-input-clear-icon:hover {color: @text-color-secondary;}
.anticon.ant-input-clear-icon:active, .ant-input-clear-icon:active {color: @text-color;}
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input, .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {background: #fff;border-color: @error-color;}
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(14, 92, 180, 0.2);border-right-width: 1px;}
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(59, 135, 34, 0.2);border-right-width: 1px;}
.ant-input-status-error .ant-input-prefix {color: @error-color;}
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input, .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {background: #fff;border-color: @warning-color;}
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(19, 21, 193, 0.2);border-right-width: 1px;}
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(193, 95, 235, 0.2);border-right-width: 1px;}
.ant-input-status-warning .ant-input-prefix {color: @warning-color;}
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper, .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {background: #fff;border-color: @error-color;}
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(14, 92, 180, 0.2);border-right-width: 1px;}
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(59, 135, 34, 0.2);border-right-width: 1px;}
.ant-input-affix-wrapper-status-error .ant-input-prefix {color: @error-color;}
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper, .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {background: #fff;border-color: @warning-color;}
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(19, 21, 193, 0.2);border-right-width: 1px;}
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(193, 95, 235, 0.2);border-right-width: 1px;}
.ant-input-affix-wrapper-status-warning .ant-input-prefix {color: @warning-color;}
.ant-input-group-wrapper-status-error .ant-input-group-addon {color: @error-color;border-color: @error-color;}
.ant-input-group-wrapper-status-warning .ant-input-group-addon {color: @warning-color;border-color: @warning-color;}
@ -894,16 +894,16 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-input-number-affix-wrapper > div.ant-input-number {border: none;}
.ant-input-number-affix-wrapper > div.ant-input-number.ant-input-number-focused {box-shadow: none !important;}
.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number, .ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:hover {background: #fff;border-color: @error-color;}
.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus, .ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(14, 92, 180, 0.2);border-right-width: 1px;}
.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus, .ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(59, 135, 34, 0.2);border-right-width: 1px;}
.ant-input-number-status-error .ant-input-number-prefix {color: @error-color;}
.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number, .ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:hover {background: #fff;border-color: @warning-color;}
.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus, .ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(19, 21, 193, 0.2);border-right-width: 1px;}
.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus, .ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(193, 95, 235, 0.2);border-right-width: 1px;}
.ant-input-number-status-warning .ant-input-number-prefix {color: @warning-color;}
.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper, .ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:hover {background: #fff;border-color: @error-color;}
.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus, .ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(14, 92, 180, 0.2);border-right-width: 1px;}
.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus, .ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(59, 135, 34, 0.2);border-right-width: 1px;}
.ant-input-number-affix-wrapper-status-error .ant-input-number-prefix {color: @error-color;}
.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper, .ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:hover {background: #fff;border-color: @warning-color;}
.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus, .ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(19, 21, 193, 0.2);border-right-width: 1px;}
.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus, .ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(193, 95, 235, 0.2);border-right-width: 1px;}
.ant-input-number-affix-wrapper-status-warning .ant-input-number-prefix {color: @warning-color;}
.ant-input-number-group-wrapper-status-error .ant-input-number-group-addon {color: @error-color;border-color: @error-color;}
.ant-input-number-group-wrapper-status-warning .ant-input-number-group-addon {color: @warning-color;border-color: @warning-color;}
@ -1024,10 +1024,10 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-list-grid .ant-col > .ant-list-item {border-bottom: none;}
.ant-list-bordered {border: 1px solid @border-color-base;border-radius: 2px;}
.ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions, .ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:hover {background: #fff;border-color: @error-color;}
.ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus, .ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(14, 92, 180, 0.2);border-right-width: 1px;}
.ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus, .ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(59, 135, 34, 0.2);border-right-width: 1px;}
.ant-mentions-status-error .ant-input-prefix {color: @error-color;}
.ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions, .ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:hover {background: #fff;border-color: @warning-color;}
.ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus, .ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(19, 21, 193, 0.2);border-right-width: 1px;}
.ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus, .ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(193, 95, 235, 0.2);border-right-width: 1px;}
.ant-mentions-status-warning .ant-input-prefix {color: @warning-color;}
.ant-mentions {color: @text-color;background-color: #fff;background-image: none;border: 1px solid @border-color-base;border-radius: 2px;}
.ant-mentions::placeholder {color: #bfbfbf;}
@ -1360,9 +1360,9 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-select-multiple .ant-select-selection-item-remove {color: inherit;color: @text-color-secondary;}
.ant-select-multiple .ant-select-selection-item-remove:hover {color: rgba(0, 0, 0, 0.75);}
.ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer) .ant-select-selector {background-color: #fff;border-color: @error-color !important;}
.ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector, .ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(14, 92, 180, 0.2);border-right-width: 1px;}
.ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector, .ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(59, 135, 34, 0.2);border-right-width: 1px;}
.ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer) .ant-select-selector {background-color: #fff;border-color: @warning-color !important;}
.ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector, .ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(19, 21, 193, 0.2);border-right-width: 1px;}
.ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector, .ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(193, 95, 235, 0.2);border-right-width: 1px;}
.ant-select {color: @text-color;}
.ant-select:not(.ant-select-customize-input) .ant-select-selector {background-color: #fff;border: 1px solid @border-color-base;border-radius: 2px;}
.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {border-color: color(~`colorPalette("@{primary-color}", 5)`);box-shadow: 0 0 0 2px fade(@primary-color, 20%);border-right-width: 1px;}

@ -10,12 +10,12 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
<meta http-equiv="Cache-Control" content="no-transform">
<title>头歌实践教学平台</title>
<link rel="stylesheet" href="https://www-cdn.educoder.net/umi.08187610.css">
<link rel="stylesheet" href="https://www-cdn.educoder.net/umi.b5b12ea7.css">
<script src="/js/polyfill.min.js"></script>
</head>
<body>
<div id="root"></div><link rel="stylesheet/less" type="text/css" href="https://www-cdn.educoder.net/color.less"><script>window.ENV = 'newBuild'</script><script src="https://www-cdn.educoder.net/js/less.min.js"></script><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="https://www-cdn.educoder.net/umi.6296553d.js"></script>
<script src="https://www-cdn.educoder.net/umi.d35e8a8f.js"></script>
<script src="https://www-cdn.educoder.net/js/officeapi.js"></script>
<script src="https://www-cdn.educoder.net/js/public.js"></script>

File diff suppressed because one or more lines are too long

@ -1258,6 +1258,7 @@
height: 32px;
line-height: 30px;
color: #165dff;
cursor: pointer;
}
.form____yVeV .btn___X16NC i {
margin-right: 3px;
@ -1341,6 +1342,7 @@
height: 32px;
line-height: 30px;
color: #464f66;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-footer button:last-child {
padding: 0 16px;
@ -1351,6 +1353,7 @@
height: 32px;
line-height: 30px;
color: #165dff;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-close {
top: 22px;
@ -1433,3 +1436,126 @@
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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/TopPlanBanner/index.less?modules ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.bg___kZNV_ {
height: 148px;
width: 100%;
position: relative;
background-size: cover !important;
}
.bg___kZNV_ .headName___ZMo2u {
position: absolute;
z-index: 11;
left: 50%;
top: 0;
height: 100%;
width: 1200px;
transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: center;
}
.bg___kZNV_ .headName___ZMo2u 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;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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/LeftPlanMenus/index.less?modules ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___tyjzz {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___twMxD {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___rpdJ6 {
align-items: center;
box-align: center;
}
.flex_box_center_end___HPgPu {
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___Xw8TQ {
flex-direction: column;
box-orient: block-axis;
}
.menuWrap___oMbDo {
width: 260px;
border-right: 1px solid #dbdce0;
background-color: #fff;
min-height: 80vh;
}
.menuWrap___oMbDo .nav___tDkKA {
width: 100%;
}
.menuWrap___oMbDo .nav___tDkKA a {
height: 44px;
position: relative;
display: flex;
align-items: center;
padding: 0 12px 0 30px;
font-size: 14px;
font-weight: 400;
color: #5f6367;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 100%;
}
.menuWrap___oMbDo .nav___tDkKA a i {
margin-right: 10px;
font-size: 14px;
}
.menuWrap___oMbDo .nav___tDkKA a span {
flex: 1 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.menuWrap___oMbDo .nav___tDkKA a:hover {
color: #232b40;
background: #f8f9fa;
}
.menuWrap___oMbDo .nav___tDkKA .active___CEg8Y {
color: #232b40;
background: #f8f9fa;
}
.menuWrap___oMbDo .nav___tDkKA .active___CEg8Y::after {
content: '';
position: absolute;
z-index: 2;
right: 0;
top: 0;
width: 3px;
height: 100%;
background: #232b40;
border-radius: 3px 0px 0px 3px;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */

@ -324,9 +324,9 @@ var TopBanner = function TopBanner(_ref) {
/***/ }),
/***/ 79930:
/***/ 96073:
/*!*********************************************************!*\
!*** ./src/layouts/virtualDetail/index.tsx + 2 modules ***!
!*** ./src/layouts/virtualDetail/index.tsx + 6 modules ***!
\*********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -335,7 +335,8 @@ __webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ virtualDetail; }
"default": function() { return /* binding */ virtualDetail; },
"listPlanLibrary": function() { return /* binding */ listPlanLibrary; }
});
// EXTERNAL MODULE: ./node_modules/antd/es/row/style/index.js
@ -588,6 +589,169 @@ var Menus = function Menus(_ref) {
})(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
// extracted by mini-css-extract-plugin
/* harmony default export */ var TopPlanBannermodules = ({"bg":"bg___kZNV_","headName":"headName___ZMo2u"});
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(59758);
;// 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 urlParams = (0,_umi_production_exports.useParams)();
var virtualSpacesDetails = virtualSpaces.virtualSpacesDetails;
(0,react.useEffect)(function () {
getDetails();
}, []);
var getDetails = function getDetails() {
dispatch({
type: 'virtualSpaces/getVirtualSpacesDetails',
payload: {
id: urlParams === null || urlParams === void 0 ? void 0 : urlParams.virtual_spacesId
}
});
};
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: TopPlanBannermodules.bg,
style: {
background: "url('".concat(env/* default.API_SERVER */.Z.API_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: /*#__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", "loading", "dispatch", "virtualSpaces"];
var Banner = function Banner(_ref) {
var _renderList;
var user = _ref.user,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
virtualSpaces = _ref.virtualSpaces,
props = objectWithoutProperties_default()(_ref, LeftPlanMenus_excluded);
var location = (0,_umi_production_exports.useLocation)();
var _useState = (0,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.useEffect)(function () {
var _location$pathname$sp;
var active = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[3];
setActiveKey(active);
}, [location.pathname]);
(0,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.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;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
to: "/vspaces/".concat(virtual_spacesId, "/").concat(icon_type),
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,
loading = _ref3.loading,
VirtualSpacesModelState = _ref3.virtualSpaces,
globalSetting = _ref3.globalSetting;
return {
user: user,
globalSetting: globalSetting,
virtualSpaces: VirtualSpacesModelState,
loading: loading.models.index
};
})(Banner));
;// CONCATENATED MODULE: ./src/layouts/virtualDetail/index.tsx
@ -599,12 +763,61 @@ var TopBanner = __webpack_require__(49620);
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.Content */.Z.Content;
var Page = function Page(_ref) {
var _listPlanLibrary$map, _location$pathname, _location$pathname$sp;
var globalSetting = _ref.globalSetting,
user = _ref.user,
dispatch = _ref.dispatch,
children = _ref.children;
var location = (0,_umi_production_exports.useLocation)();
(0,react.useEffect)(function () {
dispatch({
type: "globalSetting/setTheme",
@ -617,6 +830,24 @@ var Page = function Page(_ref) {
});
};
}, []);
//新版本的虚拟社区
if (listPlanLibrary !== null && listPlanLibrary !== void 0 && (_listPlanLibrary$map = listPlanLibrary.map(function (e) {
return e.icon_type;
})) !== null && _listPlanLibrary$map !== void 0 && _listPlanLibrary$map.includes(location === null || location === void 0 ? void 0 : (_location$pathname = location.pathname) === null || _location$pathname === void 0 ? void 0 : (_location$pathname$sp = _location$pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[3])) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(react.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(TopPlanBanner, {}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: "bg-white",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(LeftPlanMenus, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(Content, {
style: {
flex: 1,
overflow: 'hidden'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {})
})]
})]
});
}
return /*#__PURE__*/(0,jsx_runtime.jsxs)(react.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(TopBanner/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "edu-container mb20",

@ -14,9 +14,9 @@ var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896
/***/ }),
/***/ 15583:
/***/ 29051:
/*!********************************************************!*\
!*** ./src/pages/Account/Secure/index.tsx + 2 modules ***!
!*** ./src/pages/Account/Secure/index.tsx + 1 modules ***!
\********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -74,31 +74,8 @@ var _umi_production_exports = __webpack_require__(89214);
;// CONCATENATED MODULE: ./src/pages/Account/Secure/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Securemodules = ({"wrap":"wrap___vEhcs","content":"content___ebZIP","hint":"hint___b1gVO","titleWrap":"titleWrap___iGFyX","title":"title___O7ajd","formWrap":"formWrap___hsI9d","row":"row___xYJES","rowBorder":"rowBorder___YP4Tf","name":"name___kvtHq","status":"status___Z3SQA","description":"description___iGcNP","active":"active___DoK2i","color999":"color999___MWFZD","colorCDCDCD":"colorCDCDCD___miC4g","colorRed":"colorRed___YHbHP","submitButton":"submitButton___iLv6C","buttonWrap":"buttonWrap___gaJuB"});
;// CONCATENATED MODULE: ./src/utils/hooks/useInterval.tsx
function useInterval(callback, delay) {
var savedCallback = (0,react.useRef)();
var savedId = (0,react.useRef)();
// 保存新回调
(0,react.useEffect)(function () {
savedCallback.current = callback;
});
// 建立 interval
(0,react.useEffect)(function () {
function tick() {
savedCallback.current();
}
if (delay !== null) {
var id = setInterval(tick, delay);
savedId.current = id;
return function () {
return clearInterval(id);
};
}
}, [delay]);
}
// EXTERNAL MODULE: ./src/utils/hooks/useInterval.tsx
var useInterval = __webpack_require__(1971);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./src/utils/fetch.ts
@ -239,7 +216,7 @@ var Secure = function Secure(_ref) {
(0,react.useEffect)(function () {
setActive(parseInt(searchParams.get("active")));
}, [location]);
useInterval(function () {
(0,useInterval/* useInterval */.Y)(function () {
if (!countdownFlag) {
return;
} else {
@ -1170,6 +1147,43 @@ var Secure = function Secure(_ref) {
/***/ }),
/***/ 1971:
/*!*****************************************!*\
!*** ./src/utils/hooks/useInterval.tsx ***!
\*****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "Y": function() { return /* binding */ useInterval; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
function useInterval(callback, delay) {
var savedCallback = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
var savedId = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
// 保存新回调
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
savedCallback.current = callback;
});
// 建立 interval
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
function tick() {
savedCallback.current();
}
if (delay !== null) {
var id = setInterval(tick, delay);
savedId.current = id;
return function () {
return clearInterval(id);
};
}
}, [delay]);
}
/***/ }),
/***/ 98787:
/*!**********************************************!*\
!*** ./node_modules/antd/es/_util/colors.js ***!

@ -1673,16 +1673,20 @@ var Attendance_ShixunsListPage = function ShixunsListPage(_ref) {
};
var Menus = [{
name: '全部签到',
id: 'all'
id: 'all',
total: detailAttendancesList === null || detailAttendancesList === void 0 ? void 0 : detailAttendancesList.attendances_count
}, {
name: '正在签到',
id: 'ongoing'
id: 'ongoing',
total: detailAttendancesList === null || detailAttendancesList === void 0 ? void 0 : detailAttendancesList.attendances_ongoing_count
}, {
name: '历史签到',
id: 'history'
id: 'history',
total: detailAttendancesList === null || detailAttendancesList === void 0 ? void 0 : detailAttendancesList.attendances_history_count
}, {
name: '暂未开始',
id: 'not_start'
id: 'not_start',
total: detailAttendancesList === null || detailAttendancesList === void 0 ? void 0 : detailAttendancesList.attendances_not_start_count
}, {
name: '签到统计',
id: 'signInStatistics'
@ -1726,7 +1730,7 @@ var Attendance_ShixunsListPage = function ShixunsListPage(_ref) {
children: [currentKey == 'history' && (0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
background: '#fff',
padding: '15px 20px 10px 20px',
padding: '15px 20px',
color: '#999',
display: 'flex',
alignItems: "center",

@ -1437,8 +1437,8 @@ var shixuns = __webpack_require__(56088);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/components/JupyterList/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var JupyterListmodules = ({"shixunItemWrapper":"shixunItemWrapper___cgnhs","checkboxWrapper":"checkboxWrapper___Z7zZt","contentWrapper":"contentWrapper___TO4hm","title":"title___P8Su0","desc":"desc___j_4ZZ","info":"info___rg8e4","scrollWrap":"scrollWrap___EjY1R","loading":"loading___iNP0r"});
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 29 modules
var ui_customization = __webpack_require__(76204);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/components/JupyterList/index.tsx

@ -1129,10 +1129,12 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
};
var Menus = [{
name: '分班列表',
id: '0'
id: '0',
total: detailCourseGroupsList === null || detailCourseGroupsList === void 0 ? void 0 : detailCourseGroupsList.group_count
}, {
name: '未分班',
id: '1'
id: '1',
total: detailCourseGroupsList === null || detailCourseGroupsList === void 0 ? void 0 : detailCourseGroupsList.none_group_member_count
}];
var exportMenuArr = [{
name: '课堂信息',
@ -1505,12 +1507,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Listmodules.containerDesc,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-orange",
children: detailCourseGroupsList.group_count
}), "\u4E2A\u5206\u73ED"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: "mt25",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default.Search */.Z.Search, {
allowClear: true,

@ -971,12 +971,19 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/not_course_group"));
}
};
// const Menus = [
// { name: '分班列表', id: '0'},
// { name: '未分班', id: '1' },
// ]
var Menus = [{
name: '分班列表',
id: '0'
id: '0',
total: detailCourseGroupsList === null || detailCourseGroupsList === void 0 ? void 0 : detailCourseGroupsList.group_count
}, {
name: '未分班',
id: '1'
id: '1',
total: detailCourseGroupsList === null || detailCourseGroupsList === void 0 ? void 0 : detailCourseGroupsList.none_group_member_count
}];
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(TabMenu/* default */.Z, {
@ -1001,12 +1008,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: NotListmodules.containerDesc,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-orange",
children: detailCoursStudentsList.students_count
}), "\u4E2A\u5B66\u751F"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: "mt25",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default.Search */.Z.Search, {
allowClear: true,

@ -4271,7 +4271,7 @@ var scoreStatusMapping = {
};
var mapping = (/* unused pure expression or super */ null && (["单选题", "多选题", "判断题", "填空题", "简答题", "实训题", "编程题"]));
var Answer = function Answer(_ref) {
var _answerData$exercise9, _answerData$exercise27, _user$userInfo3, _user$userInfo4, _user$userInfo4$cours, _user$userInfo5, _answerData$exercise28, _answerData$exercise29, _answerData$exercise30, _answerData$exercise31, _answerData$exercise32, _answerData$exercise33, _answerData$exercise34, _answerData$exercise35, _answerData$exercise36, _answerData$exercise37, _answerData$exercise38, _answerData$exercise39, _answerData$exercise40, _answerData$exercise41, _answerData$exercise42, _answerData$exercise43, _answerData$exercise44, _answerData$exercise45, _answerData$exercise46, _answerData$exercise47, _answerData$exercise48, _answerData$exercise49, _answerData$exercise50, _answerData$exercise51, _answerData$question_4, _answerData$question_5, _answerData$exercise_19, _answerData$question_6, _answerData$question_7, _answerData$exercise_20, _answerData$exercise_21, _answerData$exercise_22, _answerData$exercise_23, _answerData$exercise_24, _answerData$exercise_25, _answerData$exercise_26, _answerData$exercise_27, _answerData$exercise_32, _answerData$exercise_33, _answerData$exercise_34, _answerData$exercise_35;
var _answerData$exercise6, _answerData$exercise10, _answerData$exercise28, _user$userInfo3, _user$userInfo4, _user$userInfo4$cours, _user$userInfo5, _answerData$exercise29, _answerData$exercise30, _answerData$exercise31, _answerData$exercise32, _answerData$exercise33, _answerData$exercise34, _answerData$exercise35, _answerData$exercise36, _answerData$exercise37, _answerData$exercise38, _answerData$exercise39, _answerData$exercise40, _answerData$exercise41, _answerData$exercise42, _answerData$exercise43, _answerData$exercise44, _answerData$exercise45, _answerData$exercise46, _answerData$exercise47, _answerData$exercise48, _answerData$exercise49, _answerData$exercise50, _answerData$exercise51, _answerData$exercise52, _answerData$question_4, _answerData$question_5, _answerData$exercise_19, _answerData$question_6, _answerData$question_7, _answerData$exercise_20, _answerData$exercise_21, _answerData$exercise_22, _answerData$exercise_23, _answerData$exercise_24, _answerData$exercise_25, _answerData$exercise_26, _answerData$exercise_27, _answerData$exercise_32, _answerData$exercise_33, _answerData$exercise_34, _answerData$exercise_35;
var globalSetting = _ref.globalSetting,
loading = _ref.loading,
user = _ref.user,
@ -4457,7 +4457,7 @@ var Answer = function Answer(_ref) {
}, ((answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise5 = answerData.exercise) === null || _answerData$exercise5 === void 0 ? void 0 : _answerData$exercise5.left_time) - 900) * 1000);
}
}
}, [answerData]);
}, [answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise6 = answerData.exercise) === null || _answerData$exercise6 === void 0 ? void 0 : _answerData$exercise6.left_time]);
var sendBeacon = function sendBeacon() {
var _exercise$exerciseUse;
if ((_exercise$exerciseUse = exercise.exerciseUserInfo) !== null && _exercise$exerciseUse !== void 0 && _exercise$exerciseUse.screen_open) window.navigator.sendBeacon("".concat(env/* default.API_SERVER */.Z.API_SERVER, "/api/exercises/").concat(params.categoryId, "/commit_screen_at.json"), {});
@ -4777,15 +4777,15 @@ var Answer = function Answer(_ref) {
return items;
};
(0,react.useEffect)(function () {
var _answerData$exercise6, _answerData$exercise7, _answerData$exercise8;
if (((_answerData$exercise6 = answerData.exercise) === null || _answerData$exercise6 === void 0 ? void 0 : _answerData$exercise6.left_time) === 0) {
var _answerData$exercise7, _answerData$exercise8, _answerData$exercise9;
if (((_answerData$exercise7 = answerData.exercise) === null || _answerData$exercise7 === void 0 ? void 0 : _answerData$exercise7.left_time) === 0) {
handleSubmitAnswer();
} //自动任务失败进入后时间为0自动提交试卷
((_answerData$exercise7 = answerData.exercise) === null || _answerData$exercise7 === void 0 ? void 0 : _answerData$exercise7.left_time) && setTime(Date.now() + (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise8 = answerData.exercise) === null || _answerData$exercise8 === void 0 ? void 0 : _answerData$exercise8.left_time) * 1000);
}, [(_answerData$exercise9 = answerData.exercise) === null || _answerData$exercise9 === void 0 ? void 0 : _answerData$exercise9.left_time]);
((_answerData$exercise8 = answerData.exercise) === null || _answerData$exercise8 === void 0 ? void 0 : _answerData$exercise8.left_time) && setTime(Date.now() + (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise9 = answerData.exercise) === null || _answerData$exercise9 === void 0 ? void 0 : _answerData$exercise9.left_time) * 1000);
}, [(_answerData$exercise10 = answerData.exercise) === null || _answerData$exercise10 === void 0 ? void 0 : _answerData$exercise10.left_time]);
var handleBackToRedo = function handleBackToRedo() {
var _answerData$exercise10;
if ((answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise10 = answerData.exercise) === null || _answerData$exercise10 === void 0 ? void 0 : _answerData$exercise10.exercise_status) === 3) {
var _answerData$exercise11;
if ((answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise11 = answerData.exercise) === null || _answerData$exercise11 === void 0 ? void 0 : _answerData$exercise11.exercise_status) === 3) {
es_modal/* default.confirm */.Z.confirm({
width: 530,
title: '提示',
@ -5583,12 +5583,12 @@ var Answer = function Answer(_ref) {
});
};
var renderSingle = function renderSingle(item, key) {
var _answerData$exercise11, _item$user_answer2, _item$question_choice, _answerData$exercise12, _answerData$exercise13, _answerData$exercise14, _item$question_choice2;
var _answerData$exercise12, _item$user_answer2, _item$question_choice, _answerData$exercise13, _answerData$exercise14, _answerData$exercise15, _item$question_choice2;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
spinning: qesLoading,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default.Group */.ZP.Group, {
disabled: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise11 = answerData.exercise) === null || _answerData$exercise11 === void 0 ? void 0 : _answerData$exercise11.user_exercise_status) === 1,
disabled: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise12 = answerData.exercise) === null || _answerData$exercise12 === void 0 ? void 0 : _answerData$exercise12.user_exercise_status) === 1,
defaultValue: item === null || item === void 0 ? void 0 : (_item$user_answer2 = item.user_answer) === null || _item$user_answer2 === void 0 ? void 0 : _item$user_answer2[0],
onChange: function onChange(e) {
return handleChangeSingle(e.target.value, item === null || item === void 0 ? void 0 : item.question_id, key, item);
@ -5617,7 +5617,7 @@ var Answer = function Answer(_ref) {
}, index);
})
})
}), (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise12 = answerData.exercise) === null || _answerData$exercise12 === void 0 ? void 0 : _answerData$exercise12.answer_open) && ((answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise13 = answerData.exercise) === null || _answerData$exercise13 === void 0 ? void 0 : _answerData$exercise13.exercise_status) == 3 || (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise14 = answerData.exercise) === null || _answerData$exercise14 === void 0 ? void 0 : _answerData$exercise14.user_exercise_status) == 1) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}), (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise13 = answerData.exercise) === null || _answerData$exercise13 === void 0 ? void 0 : _answerData$exercise13.answer_open) && ((answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise14 = answerData.exercise) === null || _answerData$exercise14 === void 0 ? void 0 : _answerData$exercise14.exercise_status) == 3 || (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise15 = answerData.exercise) === null || _answerData$exercise15 === void 0 ? void 0 : _answerData$exercise15.user_exercise_status) == 1) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u53C2\u8003\u7B54\u6848\uFF1A", item === null || item === void 0 ? void 0 : (_item$question_choice2 = item.question_choices) === null || _item$question_choice2 === void 0 ? void 0 : _item$question_choice2.map(function (k, i) {
if (k.standard_boolean) {
return tagList[i];
@ -5631,7 +5631,7 @@ var Answer = function Answer(_ref) {
var _items$sub_exercise_q4;
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: items === null || items === void 0 ? void 0 : (_items$sub_exercise_q4 = items.sub_exercise_questions) === null || _items$sub_exercise_q4 === void 0 ? void 0 : _items$sub_exercise_q4.map(function (item, key) {
var _answerData$exercise15, _item$user_answer4, _item$question_choice3, _answerData$exercise16, _answerData$exercise17, _answerData$exercise18, _item$standard_answer;
var _answerData$exercise16, _item$user_answer4, _item$question_choice3, _answerData$exercise17, _answerData$exercise18, _answerData$exercise19, _item$standard_answer;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
@ -5653,7 +5653,7 @@ var Answer = function Answer(_ref) {
value: item === null || item === void 0 ? void 0 : item.question_title
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default.Group */.ZP.Group, {
disabled: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise15 = answerData.exercise) === null || _answerData$exercise15 === void 0 ? void 0 : _answerData$exercise15.user_exercise_status) === 1,
disabled: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise16 = answerData.exercise) === null || _answerData$exercise16 === void 0 ? void 0 : _answerData$exercise16.user_exercise_status) === 1,
style: {
marginLeft: 27
},
@ -5684,7 +5684,7 @@ var Answer = function Answer(_ref) {
})
}, index);
})
}), (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise16 = answerData.exercise) === null || _answerData$exercise16 === void 0 ? void 0 : _answerData$exercise16.answer_open) && ((answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise17 = answerData.exercise) === null || _answerData$exercise17 === void 0 ? void 0 : _answerData$exercise17.exercise_status) == 3 || (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise18 = answerData.exercise) === null || _answerData$exercise18 === void 0 ? void 0 : _answerData$exercise18.user_exercise_status) == 1) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}), (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise17 = answerData.exercise) === null || _answerData$exercise17 === void 0 ? void 0 : _answerData$exercise17.answer_open) && ((answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise18 = answerData.exercise) === null || _answerData$exercise18 === void 0 ? void 0 : _answerData$exercise18.exercise_status) == 3 || (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise19 = answerData.exercise) === null || _answerData$exercise19 === void 0 ? void 0 : _answerData$exercise19.user_exercise_status) == 1) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u53C2\u8003\u7B54\u6848\uFF1A", item === null || item === void 0 ? void 0 : (_item$standard_answer = item.standard_answer) === null || _item$standard_answer === void 0 ? void 0 : _item$standard_answer.map(function (answer, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: tagList[Number(answer) - 1]
@ -5696,12 +5696,12 @@ var Answer = function Answer(_ref) {
});
};
var renderMultiple = function renderMultiple(item, key) {
var _answerData$exercise19, _item$question_choice4, _answerData$exercise20, _answerData$exercise21, _item$question_choice5;
var _answerData$exercise20, _item$question_choice4, _answerData$exercise21, _answerData$exercise22, _item$question_choice5;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
spinning: qesLoading,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default.Group */.Z.Group, {
disabled: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise19 = answerData.exercise) === null || _answerData$exercise19 === void 0 ? void 0 : _answerData$exercise19.user_exercise_status) === 1
disabled: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise20 = answerData.exercise) === null || _answerData$exercise20 === void 0 ? void 0 : _answerData$exercise20.user_exercise_status) === 1
// defaultValue={item?.question_choices?.filter((ite:any)=>ite.user_answer_boolean).map(items=>items.choice_id)}
,
defaultValue: item === null || item === void 0 ? void 0 : item.user_answer,
@ -5728,7 +5728,7 @@ var Answer = function Answer(_ref) {
});
})
})
}), (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise20 = answerData.exercise) === null || _answerData$exercise20 === void 0 ? void 0 : _answerData$exercise20.answer_open) && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise21 = answerData.exercise) === null || _answerData$exercise21 === void 0 ? void 0 : _answerData$exercise21.exercise_status) == 3 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}), (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise21 = answerData.exercise) === null || _answerData$exercise21 === void 0 ? void 0 : _answerData$exercise21.answer_open) && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise22 = answerData.exercise) === null || _answerData$exercise22 === void 0 ? void 0 : _answerData$exercise22.exercise_status) == 3 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u53C2\u8003\u7B54\u6848\uFF1A", item === null || item === void 0 ? void 0 : (_item$question_choice5 = item.question_choices) === null || _item$question_choice5 === void 0 ? void 0 : _item$question_choice5.map(function (k, i) {
if (k.standard_boolean) {
return tagList[i];
@ -5807,8 +5807,8 @@ var Answer = function Answer(_ref) {
var _answerData$question_2, _answerData$question_3;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
onClick: function onClick() {
var _answerData$exercise22;
if (!ischecked && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise22 = answerData.exercise) === null || _answerData$exercise22 === void 0 ? void 0 : _answerData$exercise22.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
var _answerData$exercise23;
if (!ischecked && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise23 = answerData.exercise) === null || _answerData$exercise23 === void 0 ? void 0 : _answerData$exercise23.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
var _answerData$exercise_3, _answerData$exercise_4, _answerData$exercise_5, _answerData$exercise_6;
if (!((_answerData$exercise_3 = answerData.exercise_question_types) !== null && _answerData$exercise_3 !== void 0 && (_answerData$exercise_4 = _answerData$exercise_3[oneindex]) !== null && _answerData$exercise_4 !== void 0 && (_answerData$exercise_5 = _answerData$exercise_4.items) !== null && _answerData$exercise_5 !== void 0 && (_answerData$exercise_6 = _answerData$exercise_5[twoindex]) !== null && _answerData$exercise_6 !== void 0 && _answerData$exercise_6.repeat_answer)) {
setisshowmodal(true);
@ -5856,7 +5856,7 @@ var Answer = function Answer(_ref) {
});
};
var renderQuestion = function renderQuestion(item, i) {
var _item$sub_exercise_qu, _item$schools, _answerData$exercise23, _answerData$exercise24, _answerData$exercise25, _answerData$exercise26, _item$standard_answer2;
var _item$sub_exercise_qu, _item$schools, _answerData$exercise24, _answerData$exercise25, _answerData$exercise26, _answerData$exercise27, _item$standard_answer2;
var title = (item === null || item === void 0 ? void 0 : item.question_type) == 5 ? item === null || item === void 0 ? void 0 : item.shixun_name : item === null || item === void 0 ? void 0 : item.question_title;
var answerText = '';
var answerBool = (item === null || item === void 0 ? void 0 : item.question_type) === 0 || (item === null || item === void 0 ? void 0 : item.question_type) === 1;
@ -5935,7 +5935,7 @@ var Answer = function Answer(_ref) {
children: [(item === null || item === void 0 ? void 0 : item.question_type) < 3 && (item === null || item === void 0 ? void 0 : item.standard_answer_show) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "font16 ml20",
children: ["\u6B63\u786E\u7B54\u6848\uFF1A", answerBool ? answerText : item === null || item === void 0 ? void 0 : item.standard_answer_show]
}), ((0,authority/* isAdmin */.GJ)() || (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise23 = answerData.exercise) === null || _answerData$exercise23 === void 0 ? void 0 : _answerData$exercise23.user_exercise_status) > 0 && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise24 = answerData.exercise) === null || _answerData$exercise24 === void 0 ? void 0 : _answerData$exercise24.open_score)) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
}), ((0,authority/* isAdmin */.GJ)() || (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise24 = answerData.exercise) === null || _answerData$exercise24 === void 0 ? void 0 : _answerData$exercise24.user_exercise_status) > 0 && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise25 = answerData.exercise) === null || _answerData$exercise25 === void 0 ? void 0 : _answerData$exercise25.open_score)) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "font16 ml20",
children: [(item === null || item === void 0 ? void 0 : item.user_score) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
@ -5948,7 +5948,7 @@ var Answer = function Answer(_ref) {
})]
}),
// 实训题 ,答题
(item === null || item === void 0 ? void 0 : item.question_type) == 5 && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise25 = answerData.exercise) === null || _answerData$exercise25 === void 0 ? void 0 : _answerData$exercise25.user_exercise_status) === 0 && (item === null || item === void 0 ? void 0 : item.answer_status) != 3 && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
(item === null || item === void 0 ? void 0 : item.question_type) == 5 && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise26 = answerData.exercise) === null || _answerData$exercise26 === void 0 ? void 0 : _answerData$exercise26.user_exercise_status) === 0 && (item === null || item === void 0 ? void 0 : item.answer_status) != 3 && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
type: "primary",
className: "font14 ml20",
onClick: function onClick() {
@ -5957,7 +5957,7 @@ var Answer = function Answer(_ref) {
children: "\u8FDB\u5165\u7B54\u9898"
}),
// 编程题 ,答题
(0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise26 = answerData.exercise) === null || _answerData$exercise26 === void 0 ? void 0 : _answerData$exercise26.user_exercise_status) === 0 && (item === null || item === void 0 ? void 0 : item.question_type) == 6 && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
(0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise27 = answerData.exercise) === null || _answerData$exercise27 === void 0 ? void 0 : _answerData$exercise27.user_exercise_status) === 0 && (item === null || item === void 0 ? void 0 : item.question_type) == 6 && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
type: "primary",
className: "font14 ml20",
onClick: function onClick() {
@ -6030,7 +6030,7 @@ var Answer = function Answer(_ref) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(spin/* default */.Z, {
size: "large",
spinning: isSpin,
children: [openFullScreen && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise27 = answerData.exercise) === null || _answerData$exercise27 === void 0 ? void 0 : _answerData$exercise27.user_exercise_status) === 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(recordScreen/* default */.Z, {
children: [openFullScreen && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise28 = answerData.exercise) === null || _answerData$exercise28 === void 0 ? void 0 : _answerData$exercise28.user_exercise_status) === 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(recordScreen/* default */.Z, {
exerciseUserInfo: exercise.exerciseUserInfo,
iframe: iframe,
socket: socket
@ -6099,9 +6099,9 @@ var Answer = function Answer(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ArrowLeftOutlined/* default */.Z, {
className: "font16 c-black"
})
}), (0,util/* exerciseTips */.vB)(answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise28 = answerData.exercise) === null || _answerData$exercise28 === void 0 ? void 0 : _answerData$exercise28.exercise_status), /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
}), (0,util/* exerciseTips */.vB)(answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise29 = answerData.exercise) === null || _answerData$exercise29 === void 0 ? void 0 : _answerData$exercise29.exercise_status), /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
className: "font24 ml5",
children: answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise29 = answerData.exercise) === null || _answerData$exercise29 === void 0 ? void 0 : _answerData$exercise29.exercise_name
children: answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise30 = answerData.exercise) === null || _answerData$exercise30 === void 0 ? void 0 : _answerData$exercise30.exercise_name
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
@ -6113,7 +6113,7 @@ var Answer = function Answer(_ref) {
onClick: handleBackToRedo,
children: "\u6253\u56DE\u91CD\u505A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: ((answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise30 = answerData.exercise) === null || _answerData$exercise30 === void 0 ? void 0 : _answerData$exercise30.commit_status) == 2 || (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise31 = answerData.exercise) === null || _answerData$exercise31 === void 0 ? void 0 : _answerData$exercise31.commit_status) == 1) && (0,authority/* isAdmin */.GJ)() && !(0,util/* checkIsClientExam */.Ll)() && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, {
children: ((answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise31 = answerData.exercise) === null || _answerData$exercise31 === void 0 ? void 0 : _answerData$exercise31.commit_status) == 2 || (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise32 = answerData.exercise) === null || _answerData$exercise32 === void 0 ? void 0 : _answerData$exercise32.commit_status) == 1) && (0,authority/* isAdmin */.GJ)() && !(0,util/* checkIsClientExam */.Ll)() && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, {
className: "ml10",
type: "primary",
onClick: function onClick() {
@ -6121,7 +6121,7 @@ var Answer = function Answer(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(DeliveredProcedureOutlined/* default */.Z, {}), "\u5BFC\u51FA"]
})
}), !((0,authority/* isAdmin */.GJ)() || (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise32 = answerData.exercise) === null || _answerData$exercise32 === void 0 ? void 0 : _answerData$exercise32.user_exercise_status) == 1) && !!(answerData !== null && answerData !== void 0 && (_answerData$exercise33 = answerData.exercise) !== null && _answerData$exercise33 !== void 0 && _answerData$exercise33.left_time) && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
}), !((0,authority/* isAdmin */.GJ)() || (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise33 = answerData.exercise) === null || _answerData$exercise33 === void 0 ? void 0 : _answerData$exercise33.user_exercise_status) == 1) && !!(answerData !== null && answerData !== void 0 && (_answerData$exercise34 = answerData.exercise) !== null && _answerData$exercise34 !== void 0 && _answerData$exercise34.left_time) && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
className: "".concat(Answermodules.countDown, " ").concat(countDownColor),
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u5269\u4F59\u65F6\u95F4:", /*#__PURE__*/(0,jsx_runtime.jsx)(Countdown, {
@ -6137,7 +6137,7 @@ var Answer = function Answer(_ref) {
className: "iconfont icon-shuaxin2 mr5"
}), "\u5237\u65B0"]
})]
}), (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise34 = answerData.exercise) === null || _answerData$exercise34 === void 0 ? void 0 : _answerData$exercise34.user_exercise_status) === 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
}), (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise35 = answerData.exercise) === null || _answerData$exercise35 === void 0 ? void 0 : _answerData$exercise35.user_exercise_status) === 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: isEducation ? Answermodules.eduSubmit : "",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
style: {
@ -6167,10 +6167,10 @@ var Answer = function Answer(_ref) {
zIndex: 1
},
children: [!isEducation && showCamera && /*#__PURE__*/(0,jsx_runtime.jsx)(CaptureVideo/* default */.Z, {
number: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise35 = answerData.exercise) === null || _answerData$exercise35 === void 0 ? void 0 : _answerData$exercise35.photo_count) - (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise36 = answerData.exercise) === null || _answerData$exercise36 === void 0 ? void 0 : _answerData$exercise36.take_photo),
take_photo: answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise37 = answerData.exercise) === null || _answerData$exercise37 === void 0 ? void 0 : _answerData$exercise37.take_photo,
number: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise36 = answerData.exercise) === null || _answerData$exercise36 === void 0 ? void 0 : _answerData$exercise36.photo_count) - (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise37 = answerData.exercise) === null || _answerData$exercise37 === void 0 ? void 0 : _answerData$exercise37.take_photo),
take_photo: answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise38 = answerData.exercise) === null || _answerData$exercise38 === void 0 ? void 0 : _answerData$exercise38.take_photo,
ref: captureRef,
time: (_answerData$exercise38 = answerData.exercise) === null || _answerData$exercise38 === void 0 ? void 0 : _answerData$exercise38.left_time,
time: (_answerData$exercise39 = answerData.exercise) === null || _answerData$exercise39 === void 0 ? void 0 : _answerData$exercise39.left_time,
update: initData,
supportCamera: function supportCamera(type) {
if (type === 2) {
@ -6197,10 +6197,10 @@ var Answer = function Answer(_ref) {
children: [showCamera && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Answermodules.eduVideo,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(CaptureVideo/* default */.Z, {
number: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise39 = answerData.exercise) === null || _answerData$exercise39 === void 0 ? void 0 : _answerData$exercise39.photo_count) - (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise40 = answerData.exercise) === null || _answerData$exercise40 === void 0 ? void 0 : _answerData$exercise40.take_photo),
take_photo: answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise41 = answerData.exercise) === null || _answerData$exercise41 === void 0 ? void 0 : _answerData$exercise41.take_photo,
number: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise40 = answerData.exercise) === null || _answerData$exercise40 === void 0 ? void 0 : _answerData$exercise40.photo_count) - (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise41 = answerData.exercise) === null || _answerData$exercise41 === void 0 ? void 0 : _answerData$exercise41.take_photo),
take_photo: answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise42 = answerData.exercise) === null || _answerData$exercise42 === void 0 ? void 0 : _answerData$exercise42.take_photo,
ref: captureRef,
time: (_answerData$exercise42 = answerData.exercise) === null || _answerData$exercise42 === void 0 ? void 0 : _answerData$exercise42.left_time,
time: (_answerData$exercise43 = answerData.exercise) === null || _answerData$exercise43 === void 0 ? void 0 : _answerData$exercise43.left_time,
update: initData,
supportCamera: function supportCamera(type) {
if (type === 2) {
@ -6221,7 +6221,7 @@ var Answer = function Answer(_ref) {
padding: '16px 20px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: ["\u59D3\u540D\uFF1A", (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise43 = answerData.exercise) === null || _answerData$exercise43 === void 0 ? void 0 : _answerData$exercise43.user_name) || '- -']
children: ["\u59D3\u540D\uFF1A", (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise44 = answerData.exercise) === null || _answerData$exercise44 === void 0 ? void 0 : _answerData$exercise44.user_name) || '- -']
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {
style: {
@ -6230,7 +6230,7 @@ var Answer = function Answer(_ref) {
type: "vertical"
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: ["\u5B66\u53F7\uFF1A", (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise44 = answerData.exercise) === null || _answerData$exercise44 === void 0 ? void 0 : _answerData$exercise44.student_id) || '- -']
children: ["\u5B66\u53F7\uFF1A", (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise45 = answerData.exercise) === null || _answerData$exercise45 === void 0 ? void 0 : _answerData$exercise45.student_id) || '- -']
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Answermodules.eduTip,
@ -6272,11 +6272,11 @@ var Answer = function Answer(_ref) {
padding: '16px 20px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
children: ["\u59D3\u540D\uFF1A", (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise45 = answerData.exercise) === null || _answerData$exercise45 === void 0 ? void 0 : _answerData$exercise45.user_name) || '- -']
children: ["\u59D3\u540D\uFF1A", (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise46 = answerData.exercise) === null || _answerData$exercise46 === void 0 ? void 0 : _answerData$exercise46.user_name) || '- -']
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
children: ["\u5B66\u53F7\uFF1A", (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise46 = answerData.exercise) === null || _answerData$exercise46 === void 0 ? void 0 : _answerData$exercise46.student_id) || '- -']
children: ["\u5B66\u53F7\uFF1A", (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise47 = answerData.exercise) === null || _answerData$exercise47 === void 0 ? void 0 : _answerData$exercise47.student_id) || '- -']
})]
}), (0,authority/* isStudent */.dE)() && ((_answerData$exercise47 = answerData.exercise) === null || _answerData$exercise47 === void 0 ? void 0 : _answerData$exercise47.user_exercise_status) === 0 && ((_answerData$exercise48 = answerData.exercise) === null || _answerData$exercise48 === void 0 ? void 0 : _answerData$exercise48.open_phone_video_recording) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
}), (0,authority/* isStudent */.dE)() && ((_answerData$exercise48 = answerData.exercise) === null || _answerData$exercise48 === void 0 ? void 0 : _answerData$exercise48.user_exercise_status) === 0 && ((_answerData$exercise49 = answerData.exercise) === null || _answerData$exercise49 === void 0 ? void 0 : _answerData$exercise49.open_phone_video_recording) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: Answermodules.eduQrcode,
style: {
marginTop: 10
@ -6290,7 +6290,7 @@ var Answer = function Answer(_ref) {
className: "ml15",
children: ["\u6253\u5F00\u5FAE\u4FE1\u626B\u4E00\u626B", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u5F00\u542F\u624B\u673A\u89C6\u9891\u5F55\u5236"]
})]
}), (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise49 = answerData.exercise) === null || _answerData$exercise49 === void 0 ? void 0 : (_answerData$exercise50 = _answerData$exercise49.exercise_description) === null || _answerData$exercise50 === void 0 ? void 0 : _answerData$exercise50.length) > 0 && showAnswerCard && /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
}), (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise50 = answerData.exercise) === null || _answerData$exercise50 === void 0 ? void 0 : (_answerData$exercise51 = _answerData$exercise50.exercise_description) === null || _answerData$exercise51 === void 0 ? void 0 : _answerData$exercise51.length) > 0 && showAnswerCard && /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
flex: "1",
style: {
background: '#fff',
@ -6303,7 +6303,7 @@ var Answer = function Answer(_ref) {
},
children: "\u8003\u8BD5\u987B\u77E5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise51 = answerData.exercise) === null || _answerData$exercise51 === void 0 ? void 0 : _answerData$exercise51.exercise_description
children: answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise52 = answerData.exercise) === null || _answerData$exercise52 === void 0 ? void 0 : _answerData$exercise52.exercise_description
})]
}), showAnswerCard && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
className: "bg-white p16 mt10",
@ -6435,9 +6435,9 @@ var Answer = function Answer(_ref) {
className: "".concat(Answermodules.submitButton, " mr10"),
type: "default",
onClick: function onClick() {
var _answerData$exercise52;
var _answerData$exercise53;
window.blur();
if (!ischecked && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise52 = answerData.exercise) === null || _answerData$exercise52 === void 0 ? void 0 : _answerData$exercise52.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
if (!ischecked && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise53 = answerData.exercise) === null || _answerData$exercise53 === void 0 ? void 0 : _answerData$exercise53.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
var _answerData$exercise_28, _answerData$exercise_29, _answerData$exercise_30, _answerData$exercise_31;
if (!((_answerData$exercise_28 = answerData.exercise_question_types) !== null && _answerData$exercise_28 !== void 0 && (_answerData$exercise_29 = _answerData$exercise_28[oneindex]) !== null && _answerData$exercise_29 !== void 0 && (_answerData$exercise_30 = _answerData$exercise_29.items) !== null && _answerData$exercise_30 !== void 0 && (_answerData$exercise_31 = _answerData$exercise_30[twoindex]) !== null && _answerData$exercise_31 !== void 0 && _answerData$exercise_31.repeat_answer)) {
setisshowmodal(true);
@ -6462,9 +6462,9 @@ var Answer = function Answer(_ref) {
className: Answermodules.submitButton,
type: "primary",
onClick: function onClick() {
var _answerData$exercise53;
var _answerData$exercise54;
window.blur();
if (!ischecked && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise53 = answerData.exercise) === null || _answerData$exercise53 === void 0 ? void 0 : _answerData$exercise53.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
if (!ischecked && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise54 = answerData.exercise) === null || _answerData$exercise54 === void 0 ? void 0 : _answerData$exercise54.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
var _answerData$exercise_36, _answerData$exercise_37, _answerData$exercise_38, _answerData$exercise_39;
if (!((_answerData$exercise_36 = answerData.exercise_question_types) !== null && _answerData$exercise_36 !== void 0 && (_answerData$exercise_37 = _answerData$exercise_36[oneindex]) !== null && _answerData$exercise_37 !== void 0 && (_answerData$exercise_38 = _answerData$exercise_37.items) !== null && _answerData$exercise_38 !== void 0 && (_answerData$exercise_39 = _answerData$exercise_38[twoindex]) !== null && _answerData$exercise_39 !== void 0 && _answerData$exercise_39.repeat_answer)) {
setisshowmodal(true);

@ -5041,7 +5041,7 @@ var WorkList_excluded = ["exercise", "loading", "dispatch", "globalSetting", "ch
var WorkList = function WorkList(_ref) {
var _exerciseList$exercis4, _exerciseList$exercis5, _exerciseList$exercis6, _exerciseList$exercis7, _exerciseList$exercis8, _exerciseList$exercis9, _exerciseList$exercis10, _exerciseList$exercis11, _exerciseList$exercis12, _globalSetting$settin, _globalSetting$settin2, _exerciseList$exercis24, _exerciseList$exercis25, _exerciseList$exercis26, _exerciseList$exercis27, _exerciseList$exercis28, _exerciseList$exercis29, _exerciseList$exercis30, _exerciseList$exercis31, _exerciseList$exercis32, _ref8, _filterSelect$course_, _filterSelect$commit_, _filterSelect$review, _exerciseList$exercis35, _filterSelect$is_make, _exerciseList$exercis37, _exerciseList$exercis38, _exerciseList$exercis39, _params, _exerciseList$exercis40, _exerciseList$exercis41, _exerciseList$total_e, _exerciseList$total_e2;
var _exerciseList$exercis4, _exerciseList$exercis5, _exerciseList$exercis6, _exerciseList$exercis7, _exerciseList$exercis8, _exerciseList$exercis9, _exerciseList$exercis10, _exerciseList$exercis11, _exerciseList$exercis12, _globalSetting$settin, _globalSetting$settin2, _exerciseList$exercis21, _exerciseList$exercis22, _exerciseList$exercis23, _exerciseList$exercis24, _exerciseList$exercis25, _exerciseList$exercis26, _exerciseList$exercis27, _exerciseList$exercis28, _exerciseList$exercis29, _ref8, _filterSelect$course_, _filterSelect$commit_, _filterSelect$review, _exerciseList$exercis32, _filterSelect$is_make, _exerciseList$exercis34, _exerciseList$exercis35, _exerciseList$exercis36, _params, _exerciseList$exercis37, _exerciseList$exercis38, _exerciseList$total_e, _exerciseList$total_e2;
var exercise = _ref.exercise,
loading = _ref.loading,
dispatch = _ref.dispatch,
@ -5282,6 +5282,10 @@ var WorkList = function WorkList(_ref) {
align: 'left',
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
alignItems: 'center'
},
onClick: function onClick() {
var _classroomList$Assist;
if ((0,authority/* isAssistant */.Rm)() && !((_classroomList$Assist = classroomList.AssistantObject.exercise) !== null && _classroomList$Assist !== void 0 && _classroomList$Assist.can_view)) {
@ -5744,12 +5748,9 @@ var WorkList = function WorkList(_ref) {
dataIndex: 'has_comment',
align: 'center',
render: function render(text, record) {
var _exerciseList$exercis13, _exerciseList$exercis14, _exerciseList$exercis15, _exerciseList$exercis16, _exerciseList$exercis17, _exerciseList$exercis18;
console.log(exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis13 = exerciseList.exercise_types) === null || _exerciseList$exercis13 === void 0 ? void 0 : _exerciseList$exercis13.appraise_setting, "appraise_setting是否为true");
console.log(exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis14 = exerciseList.exercise_types) === null || _exerciseList$exercis14 === void 0 ? void 0 : _exerciseList$exercis14.sealed_review, "sealed_review是否为true");
console.log(new Date(exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis15 = exerciseList.exercise_types) === null || _exerciseList$exercis15 === void 0 ? void 0 : _exerciseList$exercis15.appraise_end_time).getTime() > date, "当前时间是否小于截止时间");
var _exerciseList$exercis13, _exerciseList$exercis14, _exerciseList$exercis15;
// console.log(date);
if (exerciseList !== null && exerciseList !== void 0 && (_exerciseList$exercis16 = exerciseList.exercise_types) !== null && _exerciseList$exercis16 !== void 0 && _exerciseList$exercis16.appraise_setting && exerciseList !== null && exerciseList !== void 0 && (_exerciseList$exercis17 = exerciseList.exercise_types) !== null && _exerciseList$exercis17 !== void 0 && _exerciseList$exercis17.sealed_review && new Date(exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis18 = exerciseList.exercise_types) === null || _exerciseList$exercis18 === void 0 ? void 0 : _exerciseList$exercis18.appraise_end_time).getTime() > date) {
if (exerciseList !== null && exerciseList !== void 0 && (_exerciseList$exercis13 = exerciseList.exercise_types) !== null && _exerciseList$exercis13 !== void 0 && _exerciseList$exercis13.appraise_setting && exerciseList !== null && exerciseList !== void 0 && (_exerciseList$exercis14 = exerciseList.exercise_types) !== null && _exerciseList$exercis14 !== void 0 && _exerciseList$exercis14.sealed_review && new Date(exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis15 = exerciseList.exercise_types) === null || _exerciseList$exercis15 === void 0 ? void 0 : _exerciseList$exercis15.appraise_end_time).getTime() > date) {
return "--";
}
if (!text && record.review_status) {
@ -5770,7 +5771,7 @@ var WorkList = function WorkList(_ref) {
// width:"8%",
// width: 236,
render: function render(text, record) {
var _exerciseList$exercis19, _exerciseList$exercis20, _exerciseList$exercis21;
var _exerciseList$exercis16, _exerciseList$exercis17, _exerciseList$exercis18;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [(0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
ghost: true,
@ -5837,7 +5838,7 @@ var WorkList = function WorkList(_ref) {
return _ref5.apply(this, arguments);
};
}(),
children: exerciseList !== null && exerciseList !== void 0 && (_exerciseList$exercis19 = exerciseList.exercise_types) !== null && _exerciseList$exercis19 !== void 0 && _exerciseList$exercis19.appraise_setting && exerciseList !== null && exerciseList !== void 0 && (_exerciseList$exercis20 = exerciseList.exercise_types) !== null && _exerciseList$exercis20 !== void 0 && _exerciseList$exercis20.sealed_review && new Date(exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis21 = exerciseList.exercise_types) === null || _exerciseList$exercis21 === void 0 ? void 0 : _exerciseList$exercis21.appraise_end_time).getTime() > date ? '评阅' : record.has_comment ? '更改评阅' : !record.has_comment && '评阅'
children: exerciseList !== null && exerciseList !== void 0 && (_exerciseList$exercis16 = exerciseList.exercise_types) !== null && _exerciseList$exercis16 !== void 0 && _exerciseList$exercis16.appraise_setting && exerciseList !== null && exerciseList !== void 0 && (_exerciseList$exercis17 = exerciseList.exercise_types) !== null && _exerciseList$exercis17 !== void 0 && _exerciseList$exercis17.sealed_review && new Date(exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis18 = exerciseList.exercise_types) === null || _exerciseList$exercis18 === void 0 ? void 0 : _exerciseList$exercis18.appraise_end_time).getTime() > date ? '评阅' : record.has_comment ? '更改评阅' : !record.has_comment && '评阅'
})
}), !(0,authority/* isStudent */.dE)() && ['考试中'].includes(util/* ExerciseStatus */.ju[commonHeader.exercise_status]) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
ghost: true,
@ -5913,11 +5914,11 @@ var WorkList = function WorkList(_ref) {
cursor: 'pointer'
},
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
var _exerciseList$exercis22;
var _exerciseList$exercis19;
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
if (exerciseList !== null && exerciseList !== void 0 && (_exerciseList$exercis22 = exerciseList.exercise_types) !== null && _exerciseList$exercis22 !== void 0 && _exerciseList$exercis22.answered_open) {
if (exerciseList !== null && exerciseList !== void 0 && (_exerciseList$exercis19 = exerciseList.exercise_types) !== null && _exerciseList$exercis19 !== void 0 && _exerciseList$exercis19.answered_open) {
_context8.next = 3;
break;
}
@ -6011,12 +6012,12 @@ var WorkList = function WorkList(_ref) {
cursor: 'pointer'
},
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
var _exerciseList$exercis23, _exerciseList$current2, _exerciseList$current3;
var _exerciseList$exercis20, _exerciseList$current2, _exerciseList$current3;
var url;
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
case 0:
if (exerciseList !== null && exerciseList !== void 0 && (_exerciseList$exercis23 = exerciseList.exercise_types) !== null && _exerciseList$exercis23 !== void 0 && _exerciseList$exercis23.answered_open) {
if (exerciseList !== null && exerciseList !== void 0 && (_exerciseList$exercis20 = exerciseList.exercise_types) !== null && _exerciseList$exercis20 !== void 0 && _exerciseList$exercis20.answered_open) {
_context9.next = 3;
break;
}
@ -6051,7 +6052,7 @@ var WorkList = function WorkList(_ref) {
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "minH500 bg-white mb50 inline-block w100",
children: [(exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis24 = exerciseList.exercise_types) === null || _exerciseList$exercis24 === void 0 ? void 0 : _exerciseList$exercis24.score_open) && (0,authority/* isStudent */.dE)() && /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
children: [(exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis21 = exerciseList.exercise_types) === null || _exerciseList$exercis21 === void 0 ? void 0 : _exerciseList$exercis21.score_open) && (0,authority/* isStudent */.dE)() && /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
hideOnSinglePage: true,
pagination: false,
showHeader: false,
@ -6062,26 +6063,26 @@ var WorkList = function WorkList(_ref) {
}
}), !(0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "bg-white pt10 pl25 mt15",
children: [!!(exerciseList !== null && exerciseList !== void 0 && (_exerciseList$exercis25 = exerciseList.exercise_types) !== null && _exerciseList$exercis25 !== void 0 && _exerciseList$exercis25.answer_users) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [!!(exerciseList !== null && exerciseList !== void 0 && (_exerciseList$exercis22 = exerciseList.exercise_types) !== null && _exerciseList$exercis22 !== void 0 && _exerciseList$exercis22.answer_users) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr10",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#FF954C'
},
children: [exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis26 = exerciseList.exercise_types) === null || _exerciseList$exercis26 === void 0 ? void 0 : _exerciseList$exercis26.answer_users, ' ']
children: [exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis23 = exerciseList.exercise_types) === null || _exerciseList$exercis23 === void 0 ? void 0 : _exerciseList$exercis23.answer_users, ' ']
}), "\u5DF2\u4EA4"]
}), !!(exerciseList !== null && exerciseList !== void 0 && (_exerciseList$exercis27 = exerciseList.exercise_types) !== null && _exerciseList$exercis27 !== void 0 && _exerciseList$exercis27.unanswer_users) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
}), !!(exerciseList !== null && exerciseList !== void 0 && (_exerciseList$exercis24 = exerciseList.exercise_types) !== null && _exerciseList$exercis24 !== void 0 && _exerciseList$exercis24.unanswer_users) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr10",
children: [exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis28 = exerciseList.exercise_types) === null || _exerciseList$exercis28 === void 0 ? void 0 : _exerciseList$exercis28.unanswer_users, "\u672A\u4EA4"]
}), (exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis29 = exerciseList.exercise_types) === null || _exerciseList$exercis29 === void 0 ? void 0 : _exerciseList$exercis29.exercise_end_time) !== '--' && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis25 = exerciseList.exercise_types) === null || _exerciseList$exercis25 === void 0 ? void 0 : _exerciseList$exercis25.unanswer_users, "\u672A\u4EA4"]
}), (exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis26 = exerciseList.exercise_types) === null || _exerciseList$exercis26 === void 0 ? void 0 : _exerciseList$exercis26.exercise_end_time) !== '--' && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u5269\u4F59\u63D0\u4EA4\u65F6\u95F4\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#FF954C'
},
children: exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis30 = exerciseList.exercise_types) === null || _exerciseList$exercis30 === void 0 ? void 0 : _exerciseList$exercis30.exercise_end_time
children: exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis27 = exerciseList.exercise_types) === null || _exerciseList$exercis27 === void 0 ? void 0 : _exerciseList$exercis27.exercise_end_time
})]
})]
}), !((_exerciseList$exercis31 = exerciseList.exercise_types) !== null && _exerciseList$exercis31 !== void 0 && _exerciseList$exercis31.exercise_all_users) && !(0,authority/* isStudent */.dE)() && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {}), (!!((_exerciseList$exercis32 = exerciseList.exercise_types) !== null && _exerciseList$exercis32 !== void 0 && _exerciseList$exercis32.exercise_all_users) || (0,authority/* isStudent */.dE)()) && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
}), !((_exerciseList$exercis28 = exerciseList.exercise_types) !== null && _exerciseList$exercis28 !== void 0 && _exerciseList$exercis28.exercise_all_users) && !(0,authority/* isStudent */.dE)() && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {}), (!!((_exerciseList$exercis29 = exerciseList.exercise_types) !== null && _exerciseList$exercis29 !== void 0 && _exerciseList$exercis29.exercise_all_users) || (0,authority/* isStudent */.dE)()) && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: [(0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "pt20",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
@ -6138,11 +6139,11 @@ var WorkList = function WorkList(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: '1',
children: CommitStatusData.map(function (v, k) {
var _exerciseList$exercis33;
var _exerciseList$exercis30;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_checkbox/* default */.Z, {
name: "commit_status",
value: v.id,
children: [v.name, "(", exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis33 = exerciseList.exercise_types) === null || _exerciseList$exercis33 === void 0 ? void 0 : _exerciseList$exercis33[v.type], ")"]
children: [v.name, "(", exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis30 = exerciseList.exercise_types) === null || _exerciseList$exercis30 === void 0 ? void 0 : _exerciseList$exercis30[v.type], ")"]
}, v.id);
})
})]
@ -6168,16 +6169,16 @@ var WorkList = function WorkList(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: '1',
children: ReviewData === null || ReviewData === void 0 ? void 0 : ReviewData.map(function (v, k) {
var _exerciseList$exercis34;
var _exerciseList$exercis31;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_checkbox/* default */.Z, {
value: v.id,
children: [v.name, "(", exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis34 = exerciseList.exercise_types) === null || _exerciseList$exercis34 === void 0 ? void 0 : _exerciseList$exercis34[v.type], ")"]
children: [v.name, "(", exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis31 = exerciseList.exercise_types) === null || _exerciseList$exercis31 === void 0 ? void 0 : _exerciseList$exercis31[v.type], ")"]
}, k);
})
})]
})
})
}), (exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis35 = exerciseList.exercise_types) === null || _exerciseList$exercis35 === void 0 ? void 0 : _exerciseList$exercis35.open_make_up) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
}), (exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis32 = exerciseList.exercise_types) === null || _exerciseList$exercis32 === void 0 ? void 0 : _exerciseList$exercis32.open_make_up) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
name: "is_make_up",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default.Group */.Z.Group, {
value: [],
@ -6198,11 +6199,11 @@ var WorkList = function WorkList(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: '1',
children: MakeupStatusData.map(function (v, k) {
var _exerciseList$exercis36;
var _exerciseList$exercis33;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_checkbox/* default */.Z, {
name: "is_make_up",
value: v.id,
children: [v.name, "(", exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis36 = exerciseList.exercise_types) === null || _exerciseList$exercis36 === void 0 ? void 0 : _exerciseList$exercis36[v.type], ")"]
children: [v.name, "(", exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis33 = exerciseList.exercise_types) === null || _exerciseList$exercis33 === void 0 ? void 0 : _exerciseList$exercis33[v.type], ")"]
});
})
})]
@ -6235,13 +6236,13 @@ var WorkList = function WorkList(_ref) {
})
}), !(commonHeader !== null && commonHeader !== void 0 && commonHeader.is_random) && /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
className: ['tr', WorkListmodules.rightFilter].join(' '),
children: [((_exerciseList$exercis37 = exerciseList.exercise_types) === null || _exerciseList$exercis37 === void 0 ? void 0 : _exerciseList$exercis37.objective) === 1 && ((_exerciseList$exercis38 = exerciseList.exercise_types) === null || _exerciseList$exercis38 === void 0 ? void 0 : _exerciseList$exercis38.subjective) === 1 && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [((_exerciseList$exercis34 = exerciseList.exercise_types) === null || _exerciseList$exercis34 === void 0 ? void 0 : _exerciseList$exercis34.objective) === 1 && ((_exerciseList$exercis35 = exerciseList.exercise_types) === null || _exerciseList$exercis35 === void 0 ? void 0 : _exerciseList$exercis35.subjective) === 1 && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: ["\u6309\u5BA2\u89C2\u9898\u5F97\u5206\u5206\u7EC4", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
name: "objective_score_gte",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
min: 0,
max: exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis39 = exerciseList.exercise_types) === null || _exerciseList$exercis39 === void 0 ? void 0 : _exerciseList$exercis39.objective_score,
max: exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis36 = exerciseList.exercise_types) === null || _exerciseList$exercis36 === void 0 ? void 0 : _exerciseList$exercis36.objective_score,
placeholder: "\u6700\u4F4E"
})
})
@ -6250,12 +6251,12 @@ var WorkList = function WorkList(_ref) {
name: "objective_score_lte",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
min: ((_params = params) === null || _params === void 0 ? void 0 : _params.objective_score_gte) || 0,
max: exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis40 = exerciseList.exercise_types) === null || _exerciseList$exercis40 === void 0 ? void 0 : _exerciseList$exercis40.objective_score,
max: exerciseList === null || exerciseList === void 0 ? void 0 : (_exerciseList$exercis37 = exerciseList.exercise_types) === null || _exerciseList$exercis37 === void 0 ? void 0 : _exerciseList$exercis37.objective_score,
placeholder: "\u6700\u9AD8"
})
})
})]
}), ((_exerciseList$exercis41 = exerciseList.exercise_types) === null || _exerciseList$exercis41 === void 0 ? void 0 : _exerciseList$exercis41.subjective) === 1 && checkDomainAuthority && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
}), ((_exerciseList$exercis38 = exerciseList.exercise_types) === null || _exerciseList$exercis38 === void 0 ? void 0 : _exerciseList$exercis38.subjective) === 1 && checkDomainAuthority && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
style: {
marginBottom: 15

@ -629,7 +629,9 @@ var ExeriseReview = function ExeriseReview(_ref) {
_context8.next = 3;
return dispatch({
type: 'shixunHomeworks/getAllStudentWorks',
payload: objectSpread2_default()(objectSpread2_default()({}, params), paylaod)
payload: objectSpread2_default()(objectSpread2_default()({}, params), {}, {
categoryId: params.commonHomeworkId
}, paylaod)
});
case 3:
res = _context8.sent;
@ -855,6 +857,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
return _ref3.apply(this, arguments);
};
}();
console.log(studentWorkCommon, 'studentWorkCommon');
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "edu-container",
ref: boxWrap,

@ -1,74 +1,6 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[26883],{
/***/ 8213:
/*!******************************************************!*\
!*** ./src/components/AuthenticationModel/index.tsx ***!
\******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/modal/style */ 35611);
/* harmony import */ var antd_es_modal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd/es/modal */ 85402);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js */ 70215);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! umi */ 89214);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
var _excluded = ["shixunsDetail", "globalSetting", "loading", "dispatch"];
var AuthModal = function AuthModal(_ref) {
var shixunsDetail = _ref.shixunsDetail,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
props = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default()(_ref, _excluded);
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(antd_es_modal__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
centered: true,
keyboard: false,
closable: false,
zIndex: 6666,
title: "\u63D0\u793A",
open: shixunsDetail.actionTabs.key === 'Banner-Auth',
okText: "\u786E\u5B9A",
cancelText: "\u53D6\u6D88",
onOk: function onOk() {
dispatch({
type: 'shixunsDetail/setActionTabs',
payload: {}
});
window.location.href = '/account/certification';
},
onCancel: function onCancel() {
dispatch({
type: 'shixunsDetail/setActionTabs',
payload: {}
});
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("p", {
className: "tc font16",
children: ["\u5F53\u524D\u7ADE\u8D5B\u9700\u8981\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u8BF7\u5148\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1\u540E\u518D\u62A5\u540D\u53C2\u8D5B", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("br", {}), "\u8BF7\u95EE\u662F\u5426\u524D\u5F80\u8FDB\u884C\u8BA4\u8BC1\uFF1F"]
})
});
};
/* harmony default export */ __webpack_exports__["Z"] = ((0,umi__WEBPACK_IMPORTED_MODULE_3__.connect)(function (_ref2) {
var shixunsDetail = _ref2.shixunsDetail,
loading = _ref2.loading,
globalSetting = _ref2.globalSetting;
return {
shixunsDetail: shixunsDetail,
globalSetting: globalSetting,
loading: loading.models.index
};
})(AuthModal));
/***/ }),
/***/ 62824:
/*!****************************************************************!*\
!*** ./src/components/HomeModal/Advertisement.tsx + 1 modules ***!
@ -250,209 +182,6 @@ function Advertisement(_ref) {
/***/ }),
/***/ 6237:
/*!******************************************************************!*\
!*** ./src/pages/Competitions/Entered/Enteredmodel/Addteams.tsx ***!
\******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/modal/style */ 35611);
/* harmony import */ var antd_es_modal__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd/es/modal */ 85402);
/* harmony import */ var antd_es_input_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/input/style */ 69463);
/* harmony import */ var antd_es_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd/es/input */ 75008);
/* harmony import */ var antd_es_message_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd/es/message/style */ 14934);
/* harmony import */ var antd_es_message__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd/es/message */ 12461);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ant-design/icons */ 28508);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
//创建战队弹窗
function Addteans(_ref) {
var isAddmodle = _ref.isAddmodle,
setIsAdd = _ref.setIsAdd,
createTeam = _ref.createTeam;
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(""),
_useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
personname = _useState2[0],
setpersonname = _useState2[1];
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(antd_es_modal__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
centered: true,
title: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
style: {
alignItems: 'center',
display: 'flex'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", {
style: {
textAlign: 'left',
flex: '1'
},
children: "\u521B\u5EFA\u6218\u961F"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
onClick: function onClick() {
return setIsAdd(false);
},
style: {
cursor: 'porint'
}
})]
}),
open: isAddmodle,
closable: false,
destroyOnClose: true,
onOk: function onOk() {
if (!personname) {
antd_es_message__WEBPACK_IMPORTED_MODULE_8__/* ["default"].info */ .ZP.info('战队名不能为空');
return;
}
createTeam(personname);
},
onCancel: function onCancel() {
return setIsAdd(false);
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("span", {
style: {
fontSize: '14px',
color: '#F73737'
},
children: "*"
}), "\u961F\u540D\uFF1A", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("p", {
style: {
marginTop: '15px',
marginLeft: '15px'
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(antd_es_input__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
placeholder: "请输入队名",
value: personname,
maxLength: 60,
addonAfter: String(personname && personname.length || 0) + "/60",
onChange: function onChange(e) {
return setpersonname(e.target.value);
}
})
})]
})
});
}
/* harmony default export */ __webpack_exports__["Z"] = (Addteans);
/***/ }),
/***/ 74195:
/*!*******************************************************************!*\
!*** ./src/pages/Competitions/Entered/Enteredmodel/JoinModel.tsx ***!
\*******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/modal/style */ 35611);
/* harmony import */ var antd_es_modal__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd/es/modal */ 85402);
/* harmony import */ var antd_es_input_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/input/style */ 69463);
/* harmony import */ var antd_es_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd/es/input */ 75008);
/* harmony import */ var antd_es_message_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd/es/message/style */ 14934);
/* harmony import */ var antd_es_message__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd/es/message */ 12461);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ant-design/icons */ 28508);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
//通过邀请码加入战队
function Jointeam(_ref) {
var isjoin = _ref.isjoin,
setJoin = _ref.setJoin,
JoinTeams = _ref.JoinTeams;
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(""),
_useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
code = _useState2[0],
setCode = _useState2[1];
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(antd_es_modal__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
centered: true,
title: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
style: {
alignItems: 'center',
display: 'flex'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", {
style: {
textAlign: 'left',
flex: '1'
},
children: "\u52A0\u5165\u6218\u961F"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
onClick: function onClick() {
return setJoin(false);
},
style: {
cursor: 'porint'
}
})]
}),
open: isjoin,
closable: false,
destroyOnClose: true,
onOk: function onOk() {
if (!code) {
antd_es_message__WEBPACK_IMPORTED_MODULE_8__/* ["default"].info */ .ZP.info('邀请码不能为空');
return;
}
JoinTeams(code);
},
onCancel: function onCancel() {
return setJoin(false);
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", {
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("p", {
style: {
marginTop: '15px',
marginLeft: '15px',
display: 'flex',
alignItems: 'center'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("span", {
style: {
flex: 'none'
},
children: "\u9080\u8BF7\u7801\uFF1A"
}), " ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(antd_es_input__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
placeholder: "请输入邀请码",
value: code,
maxLength: 60,
addonAfter: String(code && code.length || 0) + "/60",
onChange: function onChange(e) {
return setCode(e.target.value);
}
})]
})
})
});
}
/* harmony default export */ __webpack_exports__["Z"] = (Jointeam);
/***/ }),
/***/ 92272:
/*!************************************************************!*\
!*** ./src/pages/Competitions/Index/index.tsx + 7 modules ***!
@ -1141,8 +870,8 @@ var competitionsPage = function competitionsPage(_ref) {
user: user
};
})(competitionsPage));
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 29 modules
var ui_customization = __webpack_require__(76204);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
;// CONCATENATED MODULE: ./src/pages/Competitions/Index/Statistics/index.tsx
@ -1267,6 +996,8 @@ var competition_banner_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAAN
var JoinModel = __webpack_require__(74195);
// EXTERNAL MODULE: ./src/pages/Competitions/Entered/Enteredmodel/Addteams.tsx
var Addteams = __webpack_require__(6237);
// EXTERNAL MODULE: ./src/pages/Competitions/components/PhoneModal.tsx
var PhoneModal = __webpack_require__(74009);
// EXTERNAL MODULE: ./src/service/global.ts
var global = __webpack_require__(98706);
;// CONCATENATED MODULE: ./src/pages/Competitions/Index/index.tsx
@ -1311,6 +1042,7 @@ var Index_excluded = ["competitions", "globalSetting", "loading", "dispatch", "u
var Index_TabPane = tabs/* default.TabPane */.Z.TabPane;
var Index_competitionsPage = function competitionsPage(_ref) {
@ -1352,6 +1084,18 @@ var Index_competitionsPage = function competitionsPage(_ref) {
_useState14 = slicedToArray_default()(_useState13, 2),
items = _useState14[0],
setitems = _useState14[1];
var _useState15 = (0,react.useState)(false),
_useState16 = slicedToArray_default()(_useState15, 2),
showphone = _useState16[0],
setshowphone = _useState16[1];
var _useState17 = (0,react.useState)(false),
_useState18 = slicedToArray_default()(_useState17, 2),
isopen = _useState18[0],
setisopen = _useState18[1];
var _useState19 = (0,react.useState)(),
_useState20 = slicedToArray_default()(_useState19, 2),
datas = _useState20[0],
setdatas = _useState20[1];
//出现页面右侧悬浮按钮
(0,react.useEffect)(function () {
@ -1562,7 +1306,8 @@ var Index_competitionsPage = function competitionsPage(_ref) {
case 7:
data = _context3.sent;
if (data && data.status === 0) {
message/* default.info */.ZP.info("\u521B\u5EFA\u6218\u961F\u6210\u529F");
setisopen(true);
setdatas(data);
dispatch({
type: 'competitions/getList',
payload: objectSpread2_default()({}, competitions.listParams)
@ -1659,7 +1404,8 @@ var Index_competitionsPage = function competitionsPage(_ref) {
case 7:
data = _context4.sent;
if (data && data.status === 0) {
message/* default.info */.ZP.info("\u52A0\u5165\u6218\u961F\u6210\u529F");
setisopen(true);
setdatas(data);
dispatch({
type: 'competitions/getList',
payload: objectSpread2_default()({}, competitions.listParams)
@ -1688,6 +1434,11 @@ var Index_competitionsPage = function competitionsPage(_ref) {
* 列表报名点击事件
*/
var onLickSignUpClick = function onLickSignUpClick(event, item) {
if (item.teacher_need_phone || item.member_need_phone) {
event.stopPropagation();
setshowphone(true);
return;
}
if (item.external_url) {
event.stopPropagation();
tourl(item.external_url);
@ -1695,10 +1446,10 @@ var Index_competitionsPage = function competitionsPage(_ref) {
gotocourse(event, item, item.mode === 2 ? 'ismodel' : item.personal ? 'personal' : "/competitions/index/".concat(item.identifier, "/enroll"));
}
};
var _useState15 = (0,react.useState)(''),
_useState16 = slicedToArray_default()(_useState15, 2),
keyword = _useState16[0],
setKeyword = _useState16[1];
var _useState21 = (0,react.useState)(''),
_useState22 = slicedToArray_default()(_useState21, 2),
keyword = _useState22[0],
setKeyword = _useState22[1];
var handleSearch = function handleSearch(keyword) {
competitions.listParams.keyword = encodeURIComponent(keyword);
competitions.listParams.page = 1;
@ -1971,7 +1722,21 @@ var Index_competitionsPage = function competitionsPage(_ref) {
isAddmodle: isAddmodel,
setIsAdd: setIsAddmodel,
createTeam: addTeams
}) : null]
}) : null, /*#__PURE__*/(0,jsx_runtime.jsx)(PhoneModal/* default */.Z, {
datas: datas,
isopen: isopen,
setisopen: setisopen,
isShowPhone: showphone,
setIsShowPhone: setshowphone,
user: user,
dispatch: dispatch,
onOK: function onOK() {
dispatch({
type: 'competitions/getList',
payload: objectSpread2_default()({}, competitions.listParams)
});
}
})]
});
};
/* harmony default export */ var Index = ((0,_umi_production_exports.connect)(function (_ref2) {

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[83141,76204],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[83141,85343],{
/***/ 82982:
/*!*****************************************!*\
@ -335,7 +335,7 @@ var jsx_runtime = __webpack_require__(85893);
/* harmony import */ var react_infinite_scroller__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(react_infinite_scroller__WEBPACK_IMPORTED_MODULE_18__);
/* harmony import */ var _assets_images_icons_search_png__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @/assets/images/icons/search.png */ 58143);
/* harmony import */ var _service_classrooms__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @/service/classrooms */ 73290);
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @/components/ui-customization */ 76204);
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @/components/ui-customization */ 85343);
/* harmony import */ var _components_ui_customization_reset_less_modules__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @/components/ui-customization/reset.less?modules */ 39132);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
@ -1111,9 +1111,9 @@ function MyCodeMirror(_ref2) {
/***/ }),
/***/ 76204:
/***/ 85343:
/*!****************************************************************!*\
!*** ./src/components/ui-customization/index.tsx + 29 modules ***!
!*** ./src/components/ui-customization/index.tsx + 33 modules ***!
\****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -1122,12 +1122,14 @@ function MyCodeMirror(_ref2) {
__webpack_require__.d(__webpack_exports__, {
"jL": function() { return /* reexport */ ui_customization_Banner; },
"w9": function() { return /* reexport */ Cards_ClassroomList; },
"QD": function() { return /* reexport */ ui_customization_ConfirmAndCancel; },
"cQ": function() { return /* reexport */ Cards_CourseList; },
"op": function() { return /* reexport */ ui_customization_CustomButton; },
"t7": function() { return /* reexport */ ui_customization_CustomInput; },
"Gi": function() { return /* reexport */ ui_customization_CustomTable; },
"YG": function() { return /* reexport */ ui_customization_CustomTabs; },
"qp": function() { return /* reexport */ ui_customization_CustomTags; },
"qE": function() { return /* reexport */ HeadBack; },
"Je": function() { return /* reexport */ QuickPager; },
"wb": function() { return /* reexport */ Cards_ShixunList; },
"cq": function() { return /* reexport */ ui_customization_SuperiorSort; },
@ -1198,7 +1200,7 @@ var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
;// CONCATENATED MODULE: ./src/components/ui-customization/CustomTags/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var CustomTagsmodules = ({"flex_box_center":"flex_box_center___hG6RI","flex_space_between":"flex_space_between___ss3Fh","flex_box_vertical_center":"flex_box_vertical_center___K80p9","flex_box_center_end":"flex_box_center_end___qmXX3","flex_box_column":"flex_box_column___GFV8F","row":"row___aXJjm","title":"title___HUKL0","tagsWrap":"tagsWrap___XB2W3","action":"action___VdHb1","bar":"bar___t1kKC","name":"name___Hk1Ip","active":"active___XryTX","tagsBorderWrap":"tagsBorderWrap___OMxjs"});
/* harmony default export */ var CustomTagsmodules = ({"flex_box_center":"flex_box_center___hG6RI","flex_space_between":"flex_space_between___ss3Fh","flex_box_vertical_center":"flex_box_vertical_center___K80p9","flex_box_center_end":"flex_box_center_end___qmXX3","flex_box_column":"flex_box_column___GFV8F","row":"row___aXJjm","title":"title___HUKL0","tagsWrap":"tagsWrap___XB2W3","action":"action___VdHb1","bar":"bar___t1kKC","tag":"tag___V7Eft","name":"name___Hk1Ip","num":"num___xQpcH","active":"active___XryTX","tagsBorderWrap":"tagsBorderWrap___OMxjs"});
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
@ -1221,7 +1223,8 @@ var CustomTags = function CustomTags(_ref) {
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$fontColor = _ref.fontColor,
fontColor = _ref$fontColor === void 0 ? '#6A7283' : _ref$fontColor;
fontColor = _ref$fontColor === void 0 ? '#6A7283' : _ref$fontColor,
showCount = _ref.showCount;
var _useState = (0,react.useState)(0),
_useState2 = slicedToArray_default()(_useState, 2),
show = _useState2[0],
@ -1231,10 +1234,11 @@ var CustomTags = function CustomTags(_ref) {
showBorder = _useState4[0],
setShowBorder = _useState4[1];
var tagsRef = (0,react.useRef)(null);
var scrollRef = (0,react.useRef)(null);
(0,react.useEffect)(function () {
if (dataSource.length !== 0) {
var _tagsRef$current;
if ((tagsRef === null || tagsRef === void 0 ? void 0 : (_tagsRef$current = tagsRef.current) === null || _tagsRef$current === void 0 ? void 0 : _tagsRef$current.clientHeight) > 92) {
if ((tagsRef === null || tagsRef === void 0 ? void 0 : (_tagsRef$current = tagsRef.current) === null || _tagsRef$current === void 0 ? void 0 : _tagsRef$current.clientHeight) > 97) {
setShow(1);
} else {
setShow(0);
@ -1259,27 +1263,34 @@ var CustomTags = function CustomTags(_ref) {
className: showBorder ? "".concat(CustomTagsmodules.tagsWrap, " ").concat(CustomTagsmodules.tagsBorderWrap) : CustomTagsmodules.tagsWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CustomTagsmodules.bar,
ref: scrollRef,
style: show > 0 ? {
height: show === 1 ? 92 : 'auto',
height: show === 1 ? 97 : 'auto',
overflow: show === 1 ? 'hidden' : 'auto',
paddingRight: 55
} : {
paddingRight: 0
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CustomTagsmodules.name,
className: CustomTagsmodules.tag,
ref: tagsRef,
children: dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (e) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
onClick: function onClick() {
return onChange(e.id);
},
title: e.name,
style: {
color: fontColor
},
className: value === e.id ? CustomTagsmodules.active : '',
children: e.name
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
title: e.name,
className: CustomTagsmodules.name,
children: e.name
}), !!showCount && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: CustomTagsmodules.num,
children: e.count
})]
}, e.id);
})
})
@ -1288,7 +1299,7 @@ var CustomTags = function CustomTags(_ref) {
onClick: function onClick() {
var _tagsRef$current2;
setShow(2);
if ((tagsRef === null || tagsRef === void 0 ? void 0 : (_tagsRef$current2 = tagsRef.current) === null || _tagsRef$current2 === void 0 ? void 0 : _tagsRef$current2.clientHeight) > 205) {
if ((tagsRef === null || tagsRef === void 0 ? void 0 : (_tagsRef$current2 = tagsRef.current) === null || _tagsRef$current2 === void 0 ? void 0 : _tagsRef$current2.clientHeight) > 245) {
setShowBorder(true);
} else {
setShowBorder(false);
@ -1303,6 +1314,7 @@ var CustomTags = function CustomTags(_ref) {
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
onClick: function onClick() {
scrollRef.current.scrollTop = 0;
setShow(1);
setShowBorder(false);
},
@ -1942,7 +1954,7 @@ var ClassroomList = function ClassroomList(_ref) {
/* harmony default export */ var Cards_ClassroomList = (ClassroomList);
;// CONCATENATED MODULE: ./src/components/ui-customization/CustomTabs/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var CustomTabsmodules = ({"flex_box_center":"flex_box_center___d27mZ","flex_space_between":"flex_space_between___qfRU9","flex_box_vertical_center":"flex_box_vertical_center___fCRld","flex_box_center_end":"flex_box_center_end___ORMV8","flex_box_column":"flex_box_column___PNKtZ","tabs":"tabs___alpa7","tabsWrap":"tabsWrap___aCQjw","active":"active___nl_4v"});
/* harmony default export */ var CustomTabsmodules = ({"flex_box_center":"flex_box_center___d27mZ","flex_space_between":"flex_space_between___qfRU9","flex_box_vertical_center":"flex_box_vertical_center___fCRld","flex_box_center_end":"flex_box_center_end___ORMV8","flex_box_column":"flex_box_column___PNKtZ","tabs":"tabs___alpa7","tabsWrap":"tabsWrap___aCQjw","tab":"tab___MKLr4","active":"active___nl_4v"});
;// CONCATENATED MODULE: ./src/components/ui-customization/CustomTabs/index.tsx
@ -1964,12 +1976,17 @@ var CustomTabs = function CustomTabs(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CustomTabsmodules.tabsWrap,
children: dataSource.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
return onChange(item.id);
},
className: value === item.id ? CustomTabsmodules.active : '',
children: item.name
return /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
className: CustomTabsmodules.tab,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
return onChange(item.id);
},
className: value === item.id ? CustomTabsmodules.active : '',
children: item.name
}), (item === null || item === void 0 ? void 0 : item.total) !== undefined && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\uFF08", item === null || item === void 0 ? void 0 : item.total, "\uFF09"]
})]
}, index);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@ -2104,6 +2121,85 @@ var CustomButton = function CustomButton(_ref) {
});
};
/* harmony default export */ var ui_customization_CustomButton = (CustomButton);
;// CONCATENATED MODULE: ./src/components/ui-customization/HeadBack/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var HeadBackmodules = ({"flex_box_center":"flex_box_center___TB7bQ","flex_space_between":"flex_space_between___oBlTb","flex_box_vertical_center":"flex_box_vertical_center___b5XbB","flex_box_center_end":"flex_box_center_end___CNhe7","flex_box_column":"flex_box_column___yHXKW","head":"head___ghH72","node":"node___mjPEy"});
;// CONCATENATED MODULE: ./src/components/ui-customization/HeadBack/index.tsx
var HeadBack_CustomButton = function CustomButton(_ref) {
var className = _ref.className,
style = _ref.style,
_ref$children = _ref.children,
children = _ref$children === void 0 ? null : _ref$children,
onClick = _ref.onClick,
title = _ref.title;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: classnames_default()(HeadBackmodules.head, className),
style: style,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
onClick: onClick,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fanhui2 font12"
}), "\u8FD4\u56DE"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
title: title,
children: title
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: HeadBackmodules.node,
children: children
})]
});
};
/* harmony default export */ var HeadBack = (HeadBack_CustomButton);
// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
var button_style = __webpack_require__(29913);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
;// CONCATENATED MODULE: ./src/components/ui-customization/ConfirmAndCancel/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var ConfirmAndCancelmodules = ({"flex_box_center":"flex_box_center___AlHuF","flex_space_between":"flex_space_between___vN2LW","flex_box_vertical_center":"flex_box_vertical_center___Ac7D2","flex_box_center_end":"flex_box_center_end___y38I7","flex_box_column":"flex_box_column___iQE6P","btns":"btns___sNgTb","confirm":"confirm___Ozirl","cancel":"cancel___aiq1I"});
;// CONCATENATED MODULE: ./src/components/ui-customization/ConfirmAndCancel/index.tsx
var ConfirmAndCancel = function ConfirmAndCancel(_ref) {
var _ref$confirmShow = _ref.confirmShow,
confirmShow = _ref$confirmShow === void 0 ? true : _ref$confirmShow,
confirmTitle = _ref.confirmTitle,
confirmClick = _ref.confirmClick,
_ref$cancelShow = _ref.cancelShow,
cancelShow = _ref$cancelShow === void 0 ? true : _ref$cancelShow,
cancelTitle = _ref.cancelTitle,
cancelClick = _ref.cancelClick,
className = _ref.className,
style = _ref.style,
_ref$confirmLoading = _ref.confirmLoading,
confirmLoading = _ref$confirmLoading === void 0 ? false : _ref$confirmLoading;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: classnames_default()(ConfirmAndCancelmodules.btns, className),
style: style,
children: [confirmShow && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
loading: confirmLoading,
onClick: confirmClick,
type: "primary",
className: ConfirmAndCancelmodules.confirm,
children: confirmTitle
}), cancelShow && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
onClick: cancelClick,
className: ConfirmAndCancelmodules.cancel,
children: cancelTitle
})]
});
};
/* harmony default export */ var ui_customization_ConfirmAndCancel = (ConfirmAndCancel);
;// CONCATENATED MODULE: ./src/components/ui-customization/index.tsx
@ -2119,6 +2215,8 @@ var CustomButton = function CustomButton(_ref) {
/***/ }),
/***/ 1310:

@ -987,21 +987,32 @@ ul.menu___UMSQf [class~='ant-dropdown-menu-item-active'] {
font-size: 12px;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC {
max-height: 240px;
max-height: 245px;
overflow: hidden;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .name___Hk1Ip span {
display: inline-block;
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft > span {
display: inline-flex;
align-items: center;
margin-left: 8px;
margin-bottom: 17px;
font-size: 14px;
cursor: pointer;
padding: 4px 12px;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .name___Hk1Ip span:hover {
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft > span .name___Hk1Ip {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: 600px;
display: inline-block;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft > span .num___xQpcH {
margin-left: 3px;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft > span:hover {
color: #165dff !important;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .name___Hk1Ip .active___XryTX {
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft .active___XryTX {
color: #165dff !important;
border-radius: 2px;
background: #f6f7f9;
@ -1780,22 +1791,27 @@ ul.menu___UMSQf [class~='ant-dropdown-menu-item-active'] {
align-items: center;
height: 100%;
}
.tabs___alpa7 .tabsWrap___aCQjw > div {
.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 {
display: flex;
align-items: center;
margin-right: 40px;
height: 100%;
}
.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 > div {
position: relative;
font-size: 14px;
font-weight: 400;
color: #5f6368;
margin-right: 40px;
display: flex;
align-items: center;
height: 100%;
cursor: pointer;
height: 100%;
}
.tabs___alpa7 .tabsWrap___aCQjw .active___nl_4v {
.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 .active___nl_4v {
font-weight: 500;
color: #202124;
}
.tabs___alpa7 .tabsWrap___aCQjw .active___nl_4v:after {
.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 .active___nl_4v:after {
position: absolute;
content: '';
width: 100%;
@ -1859,6 +1875,9 @@ ul.menu___UMSQf [class~='ant-dropdown-menu-item-active'] {
color: #5f6368;
font-weight: 400;
}
.table___zOWN7 .ant-table-thead > tr > th::before {
display: none;
}
.table___zOWN7 .ant-table-column-sorter-full {
margin-top: -0.4em;
}
@ -2007,6 +2026,123 @@ ul.menu___UMSQf [class~='ant-dropdown-menu-item-active'] {
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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/HeadBack/index.less?modules ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___TB7bQ {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___oBlTb {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___b5XbB {
align-items: center;
box-align: center;
}
.flex_box_center_end___CNhe7 {
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___yHXKW {
flex-direction: column;
box-orient: block-axis;
}
.head___ghH72 {
height: 54px;
border-bottom: 1px solid #DBDCE0;
display: flex;
align-items: center;
}
.head___ghH72 > span {
color: #999999;
font-size: 12px;
cursor: pointer;
flex-shrink: 0;
}
.head___ghH72 > b {
font-weight: 500;
color: #232B40;
margin-left: 30px;
font-size: 14px;
flex: 1 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.head___ghH72 .node___mjPEy {
margin-left: auto;
flex-shrink: 0;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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/ConfirmAndCancel/index.less?modules ***!
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___AlHuF {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___vN2LW {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___Ac7D2 {
align-items: center;
box-align: center;
}
.flex_box_center_end___y38I7 {
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___iQE6P {
flex-direction: column;
box-orient: block-axis;
}
.btns___sNgTb {
display: flex;
align-items: center;
}
.btns___sNgTb .confirm___Ozirl {
height: 38px;
background: #3061D0;
border-radius: 2px;
color: #FFFFFF;
padding: 0 34px;
}
.btns___sNgTb .cancel___aiq1I {
height: 38px;
background: #F8F9FC;
border-radius: 2px;
opacity: 0.5;
border: 1px solid #C3CFE0;
font-size: 14px;
color: #464F66;
margin-left: 20px;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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 ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@ -2062,6 +2198,7 @@ ul.menu___UMSQf [class~='ant-dropdown-menu-item-active'] {
height: 32px;
line-height: 30px;
color: #464f66;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-footer button:last-child {
padding: 0 16px;
@ -2072,6 +2209,7 @@ ul.menu___UMSQf [class~='ant-dropdown-menu-item-active'] {
height: 32px;
line-height: 30px;
color: #165dff;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-close {
top: 22px;

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[86634,76204],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[86634,85343],{
/***/ 46178:
/*!**********************************************!*\
@ -407,7 +407,7 @@ var noData = function noData(_ref) {
/* harmony import */ var react_infinite_scroller__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(react_infinite_scroller__WEBPACK_IMPORTED_MODULE_18__);
/* harmony import */ var _assets_images_icons_search_png__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @/assets/images/icons/search.png */ 58143);
/* harmony import */ var _service_classrooms__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @/service/classrooms */ 73290);
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @/components/ui-customization */ 76204);
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @/components/ui-customization */ 85343);
/* harmony import */ var _components_ui_customization_reset_less_modules__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @/components/ui-customization/reset.less?modules */ 39132);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
@ -1235,9 +1235,9 @@ var Dialog = /*#__PURE__*/function (_React$Component) {
/***/ }),
/***/ 76204:
/***/ 85343:
/*!****************************************************************!*\
!*** ./src/components/ui-customization/index.tsx + 29 modules ***!
!*** ./src/components/ui-customization/index.tsx + 33 modules ***!
\****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -1246,12 +1246,14 @@ var Dialog = /*#__PURE__*/function (_React$Component) {
__webpack_require__.d(__webpack_exports__, {
"jL": function() { return /* reexport */ ui_customization_Banner; },
"w9": function() { return /* reexport */ Cards_ClassroomList; },
"QD": function() { return /* reexport */ ui_customization_ConfirmAndCancel; },
"cQ": function() { return /* reexport */ Cards_CourseList; },
"op": function() { return /* reexport */ ui_customization_CustomButton; },
"t7": function() { return /* reexport */ ui_customization_CustomInput; },
"Gi": function() { return /* reexport */ ui_customization_CustomTable; },
"YG": function() { return /* reexport */ ui_customization_CustomTabs; },
"qp": function() { return /* reexport */ ui_customization_CustomTags; },
"qE": function() { return /* reexport */ HeadBack; },
"Je": function() { return /* reexport */ QuickPager; },
"wb": function() { return /* reexport */ Cards_ShixunList; },
"cq": function() { return /* reexport */ ui_customization_SuperiorSort; },
@ -1322,7 +1324,7 @@ var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
;// CONCATENATED MODULE: ./src/components/ui-customization/CustomTags/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var CustomTagsmodules = ({"flex_box_center":"flex_box_center___hG6RI","flex_space_between":"flex_space_between___ss3Fh","flex_box_vertical_center":"flex_box_vertical_center___K80p9","flex_box_center_end":"flex_box_center_end___qmXX3","flex_box_column":"flex_box_column___GFV8F","row":"row___aXJjm","title":"title___HUKL0","tagsWrap":"tagsWrap___XB2W3","action":"action___VdHb1","bar":"bar___t1kKC","name":"name___Hk1Ip","active":"active___XryTX","tagsBorderWrap":"tagsBorderWrap___OMxjs"});
/* harmony default export */ var CustomTagsmodules = ({"flex_box_center":"flex_box_center___hG6RI","flex_space_between":"flex_space_between___ss3Fh","flex_box_vertical_center":"flex_box_vertical_center___K80p9","flex_box_center_end":"flex_box_center_end___qmXX3","flex_box_column":"flex_box_column___GFV8F","row":"row___aXJjm","title":"title___HUKL0","tagsWrap":"tagsWrap___XB2W3","action":"action___VdHb1","bar":"bar___t1kKC","tag":"tag___V7Eft","name":"name___Hk1Ip","num":"num___xQpcH","active":"active___XryTX","tagsBorderWrap":"tagsBorderWrap___OMxjs"});
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
@ -1345,7 +1347,8 @@ var CustomTags = function CustomTags(_ref) {
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$fontColor = _ref.fontColor,
fontColor = _ref$fontColor === void 0 ? '#6A7283' : _ref$fontColor;
fontColor = _ref$fontColor === void 0 ? '#6A7283' : _ref$fontColor,
showCount = _ref.showCount;
var _useState = (0,react.useState)(0),
_useState2 = slicedToArray_default()(_useState, 2),
show = _useState2[0],
@ -1355,10 +1358,11 @@ var CustomTags = function CustomTags(_ref) {
showBorder = _useState4[0],
setShowBorder = _useState4[1];
var tagsRef = (0,react.useRef)(null);
var scrollRef = (0,react.useRef)(null);
(0,react.useEffect)(function () {
if (dataSource.length !== 0) {
var _tagsRef$current;
if ((tagsRef === null || tagsRef === void 0 ? void 0 : (_tagsRef$current = tagsRef.current) === null || _tagsRef$current === void 0 ? void 0 : _tagsRef$current.clientHeight) > 92) {
if ((tagsRef === null || tagsRef === void 0 ? void 0 : (_tagsRef$current = tagsRef.current) === null || _tagsRef$current === void 0 ? void 0 : _tagsRef$current.clientHeight) > 97) {
setShow(1);
} else {
setShow(0);
@ -1383,27 +1387,34 @@ var CustomTags = function CustomTags(_ref) {
className: showBorder ? "".concat(CustomTagsmodules.tagsWrap, " ").concat(CustomTagsmodules.tagsBorderWrap) : CustomTagsmodules.tagsWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CustomTagsmodules.bar,
ref: scrollRef,
style: show > 0 ? {
height: show === 1 ? 92 : 'auto',
height: show === 1 ? 97 : 'auto',
overflow: show === 1 ? 'hidden' : 'auto',
paddingRight: 55
} : {
paddingRight: 0
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CustomTagsmodules.name,
className: CustomTagsmodules.tag,
ref: tagsRef,
children: dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (e) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
onClick: function onClick() {
return onChange(e.id);
},
title: e.name,
style: {
color: fontColor
},
className: value === e.id ? CustomTagsmodules.active : '',
children: e.name
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
title: e.name,
className: CustomTagsmodules.name,
children: e.name
}), !!showCount && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: CustomTagsmodules.num,
children: e.count
})]
}, e.id);
})
})
@ -1412,7 +1423,7 @@ var CustomTags = function CustomTags(_ref) {
onClick: function onClick() {
var _tagsRef$current2;
setShow(2);
if ((tagsRef === null || tagsRef === void 0 ? void 0 : (_tagsRef$current2 = tagsRef.current) === null || _tagsRef$current2 === void 0 ? void 0 : _tagsRef$current2.clientHeight) > 205) {
if ((tagsRef === null || tagsRef === void 0 ? void 0 : (_tagsRef$current2 = tagsRef.current) === null || _tagsRef$current2 === void 0 ? void 0 : _tagsRef$current2.clientHeight) > 245) {
setShowBorder(true);
} else {
setShowBorder(false);
@ -1427,6 +1438,7 @@ var CustomTags = function CustomTags(_ref) {
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
onClick: function onClick() {
scrollRef.current.scrollTop = 0;
setShow(1);
setShowBorder(false);
},
@ -2066,7 +2078,7 @@ var ClassroomList = function ClassroomList(_ref) {
/* harmony default export */ var Cards_ClassroomList = (ClassroomList);
;// CONCATENATED MODULE: ./src/components/ui-customization/CustomTabs/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var CustomTabsmodules = ({"flex_box_center":"flex_box_center___d27mZ","flex_space_between":"flex_space_between___qfRU9","flex_box_vertical_center":"flex_box_vertical_center___fCRld","flex_box_center_end":"flex_box_center_end___ORMV8","flex_box_column":"flex_box_column___PNKtZ","tabs":"tabs___alpa7","tabsWrap":"tabsWrap___aCQjw","active":"active___nl_4v"});
/* harmony default export */ var CustomTabsmodules = ({"flex_box_center":"flex_box_center___d27mZ","flex_space_between":"flex_space_between___qfRU9","flex_box_vertical_center":"flex_box_vertical_center___fCRld","flex_box_center_end":"flex_box_center_end___ORMV8","flex_box_column":"flex_box_column___PNKtZ","tabs":"tabs___alpa7","tabsWrap":"tabsWrap___aCQjw","tab":"tab___MKLr4","active":"active___nl_4v"});
;// CONCATENATED MODULE: ./src/components/ui-customization/CustomTabs/index.tsx
@ -2088,12 +2100,17 @@ var CustomTabs = function CustomTabs(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CustomTabsmodules.tabsWrap,
children: dataSource.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
return onChange(item.id);
},
className: value === item.id ? CustomTabsmodules.active : '',
children: item.name
return /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
className: CustomTabsmodules.tab,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
return onChange(item.id);
},
className: value === item.id ? CustomTabsmodules.active : '',
children: item.name
}), (item === null || item === void 0 ? void 0 : item.total) !== undefined && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\uFF08", item === null || item === void 0 ? void 0 : item.total, "\uFF09"]
})]
}, index);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@ -2228,6 +2245,85 @@ var CustomButton = function CustomButton(_ref) {
});
};
/* harmony default export */ var ui_customization_CustomButton = (CustomButton);
;// CONCATENATED MODULE: ./src/components/ui-customization/HeadBack/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var HeadBackmodules = ({"flex_box_center":"flex_box_center___TB7bQ","flex_space_between":"flex_space_between___oBlTb","flex_box_vertical_center":"flex_box_vertical_center___b5XbB","flex_box_center_end":"flex_box_center_end___CNhe7","flex_box_column":"flex_box_column___yHXKW","head":"head___ghH72","node":"node___mjPEy"});
;// CONCATENATED MODULE: ./src/components/ui-customization/HeadBack/index.tsx
var HeadBack_CustomButton = function CustomButton(_ref) {
var className = _ref.className,
style = _ref.style,
_ref$children = _ref.children,
children = _ref$children === void 0 ? null : _ref$children,
onClick = _ref.onClick,
title = _ref.title;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: classnames_default()(HeadBackmodules.head, className),
style: style,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
onClick: onClick,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fanhui2 font12"
}), "\u8FD4\u56DE"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
title: title,
children: title
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: HeadBackmodules.node,
children: children
})]
});
};
/* harmony default export */ var HeadBack = (HeadBack_CustomButton);
// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
var button_style = __webpack_require__(29913);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
;// CONCATENATED MODULE: ./src/components/ui-customization/ConfirmAndCancel/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var ConfirmAndCancelmodules = ({"flex_box_center":"flex_box_center___AlHuF","flex_space_between":"flex_space_between___vN2LW","flex_box_vertical_center":"flex_box_vertical_center___Ac7D2","flex_box_center_end":"flex_box_center_end___y38I7","flex_box_column":"flex_box_column___iQE6P","btns":"btns___sNgTb","confirm":"confirm___Ozirl","cancel":"cancel___aiq1I"});
;// CONCATENATED MODULE: ./src/components/ui-customization/ConfirmAndCancel/index.tsx
var ConfirmAndCancel = function ConfirmAndCancel(_ref) {
var _ref$confirmShow = _ref.confirmShow,
confirmShow = _ref$confirmShow === void 0 ? true : _ref$confirmShow,
confirmTitle = _ref.confirmTitle,
confirmClick = _ref.confirmClick,
_ref$cancelShow = _ref.cancelShow,
cancelShow = _ref$cancelShow === void 0 ? true : _ref$cancelShow,
cancelTitle = _ref.cancelTitle,
cancelClick = _ref.cancelClick,
className = _ref.className,
style = _ref.style,
_ref$confirmLoading = _ref.confirmLoading,
confirmLoading = _ref$confirmLoading === void 0 ? false : _ref$confirmLoading;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: classnames_default()(ConfirmAndCancelmodules.btns, className),
style: style,
children: [confirmShow && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
loading: confirmLoading,
onClick: confirmClick,
type: "primary",
className: ConfirmAndCancelmodules.confirm,
children: confirmTitle
}), cancelShow && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
onClick: cancelClick,
className: ConfirmAndCancelmodules.cancel,
children: cancelTitle
})]
});
};
/* harmony default export */ var ui_customization_ConfirmAndCancel = (ConfirmAndCancel);
;// CONCATENATED MODULE: ./src/components/ui-customization/index.tsx
@ -2243,6 +2339,8 @@ var CustomButton = function CustomButton(_ref) {
/***/ }),
/***/ 61891:
@ -3358,6 +3456,9 @@ var ScreenRecord = /*#__PURE__*/(0,react.forwardRef)(function (_ref, ref) {
@ -3391,6 +3492,10 @@ var difficultyDesc = {
_useState4 = slicedToArray_default()(_useState3, 2),
isLoading = _useState4[0],
setIsLoading = _useState4[1];
var _useState5 = (0,react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
isLoading2 = _useState6[0],
setIsLoading2 = _useState6[1];
var recordRef = (0,react.useRef)();
var uploadWorkspace = window_vnc_url ? "C:\/Windows\/AppReadiness\/userfiles" : "/data/workspace/userfiles";
var downloadWorkspace = window_vnc_url ? "C:\/Windows\/AppReadiness\/downloadfiles" : "/data/workspace/downloadfiles";
@ -3458,6 +3563,38 @@ var difficultyDesc = {
})
});
};
var serverPreview = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var _res$data;
var res, _res$data2;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
setIsLoading2(true);
_context2.next = 3;
return (0,fetch/* default */.ZP)("/api/sci/projects/".concat(params.taskId, "/port_proxy.json"), {
method: "post",
body: {
port: portValue,
position: 1
}
});
case 3:
res = _context2.sent;
if (res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && _res$data.url) {
(0,util/* openNewWindow */.xg)(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.url);
}
setIsLoading2(false);
case 6:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function serverPreview() {
return _ref2.apply(this, arguments);
};
}();
var downloadFile = function downloadFile() {
modal/* default.confirm */.Z.confirm({
title: "下载代码",
@ -3465,11 +3602,11 @@ var difficultyDesc = {
width: 600,
content: "\u4EE3\u7801\u4E0B\u8F7D\u529F\u80FD\uFF1A\u5C06\u201C".concat(downloadWorkspace, "\u201D\u76EE\u5F55\u8FDB\u884C\u6253\u5305\u5E76\u4E0B\u8F7D"),
onOk: function () {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_context2.next = 2;
_context3.next = 2;
return (0,fetch/* default */.ZP)("/api/sci/projects/".concat(params.taskId, "/download_file.json?debug=admin"), {
method: 'post',
body: {
@ -3481,12 +3618,12 @@ var difficultyDesc = {
}
});
case 2:
return _context2.abrupt("return", true);
return _context3.abrupt("return", true);
case 3:
case "end":
return _context2.stop();
return _context3.stop();
}
}, _callee2);
}, _callee3);
}));
function onOk() {
return _onOk2.apply(this, arguments);
@ -3608,7 +3745,7 @@ var difficultyDesc = {
className: "file-item action w100",
title: "ssh\u76F4\u8FDE",
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-suanfasheji"
className: "iconfont icon-wodegongzuotai"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
align: "middle",
className: "w100",
@ -3628,6 +3765,45 @@ var difficultyDesc = {
})
})
})]
}), (vnc_url || taskData.mirror_type === "webssh") && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
className: "file-item action w100",
title: "\u670D\u52A1\u9884\u89C8",
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-suanfasheji"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "w100",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "1",
onClick: serverPreview,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
type: "text",
loading: isLoading2,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#ddd",
marginLeft: -11
},
children: "\u670D\u52A1\u9884\u89C8"
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
href: "javascript:;",
onClick: serverPreview,
className: "c-blue",
children: "\u7AEF\u53E3\u53F7"
}), " ", /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
onChange: function onChange(e) {
return setPortValue(e.target.value);
},
style: {
width: 50
},
value: portValue
})]
})]
})]
}), window_vnc_url && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
id: "reset-task",
onClick: restartVac,

@ -1266,21 +1266,32 @@
font-size: 12px;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC {
max-height: 240px;
max-height: 245px;
overflow: hidden;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .name___Hk1Ip span {
display: inline-block;
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft > span {
display: inline-flex;
align-items: center;
margin-left: 8px;
margin-bottom: 17px;
font-size: 14px;
cursor: pointer;
padding: 4px 12px;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .name___Hk1Ip span:hover {
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft > span .name___Hk1Ip {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: 600px;
display: inline-block;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft > span .num___xQpcH {
margin-left: 3px;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft > span:hover {
color: #165dff !important;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .name___Hk1Ip .active___XryTX {
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft .active___XryTX {
color: #165dff !important;
border-radius: 2px;
background: #f6f7f9;
@ -2059,22 +2070,27 @@
align-items: center;
height: 100%;
}
.tabs___alpa7 .tabsWrap___aCQjw > div {
.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 {
display: flex;
align-items: center;
margin-right: 40px;
height: 100%;
}
.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 > div {
position: relative;
font-size: 14px;
font-weight: 400;
color: #5f6368;
margin-right: 40px;
display: flex;
align-items: center;
height: 100%;
cursor: pointer;
height: 100%;
}
.tabs___alpa7 .tabsWrap___aCQjw .active___nl_4v {
.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 .active___nl_4v {
font-weight: 500;
color: #202124;
}
.tabs___alpa7 .tabsWrap___aCQjw .active___nl_4v:after {
.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 .active___nl_4v:after {
position: absolute;
content: '';
width: 100%;
@ -2138,6 +2154,9 @@
color: #5f6368;
font-weight: 400;
}
.table___zOWN7 .ant-table-thead > tr > th::before {
display: none;
}
.table___zOWN7 .ant-table-column-sorter-full {
margin-top: -0.4em;
}
@ -2286,6 +2305,123 @@
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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/HeadBack/index.less?modules ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___TB7bQ {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___oBlTb {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___b5XbB {
align-items: center;
box-align: center;
}
.flex_box_center_end___CNhe7 {
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___yHXKW {
flex-direction: column;
box-orient: block-axis;
}
.head___ghH72 {
height: 54px;
border-bottom: 1px solid #DBDCE0;
display: flex;
align-items: center;
}
.head___ghH72 > span {
color: #999999;
font-size: 12px;
cursor: pointer;
flex-shrink: 0;
}
.head___ghH72 > b {
font-weight: 500;
color: #232B40;
margin-left: 30px;
font-size: 14px;
flex: 1 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.head___ghH72 .node___mjPEy {
margin-left: auto;
flex-shrink: 0;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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/ConfirmAndCancel/index.less?modules ***!
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___AlHuF {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___vN2LW {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___Ac7D2 {
align-items: center;
box-align: center;
}
.flex_box_center_end___y38I7 {
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___iQE6P {
flex-direction: column;
box-orient: block-axis;
}
.btns___sNgTb {
display: flex;
align-items: center;
}
.btns___sNgTb .confirm___Ozirl {
height: 38px;
background: #3061D0;
border-radius: 2px;
color: #FFFFFF;
padding: 0 34px;
}
.btns___sNgTb .cancel___aiq1I {
height: 38px;
background: #F8F9FC;
border-radius: 2px;
opacity: 0.5;
border: 1px solid #C3CFE0;
font-size: 14px;
color: #464F66;
margin-left: 20px;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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 ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@ -2341,6 +2477,7 @@
height: 32px;
line-height: 30px;
color: #464f66;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-footer button:last-child {
padding: 0 16px;
@ -2351,6 +2488,7 @@
height: 32px;
line-height: 30px;
color: #165dff;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-close {
top: 22px;

@ -9618,7 +9618,8 @@ var Right = function Right(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
fontSize: '12px'
fontSize: '16px',
marginRight: '4px'
},
children: "\xA5"
}), (_pathsDetail$detail56 = pathsDetail.detail) !== null && _pathsDetail$detail56 !== void 0 && _pathsDetail$detail56.is_discount ? (_pathsDetail$detail57 = pathsDetail.detail) === null || _pathsDetail$detail57 === void 0 ? void 0 : _pathsDetail$detail57.price : (_pathsDetail$detail58 = pathsDetail.detail) === null || _pathsDetail$detail58 === void 0 ? void 0 : _pathsDetail$detail58.origin_price]
@ -9628,9 +9629,9 @@ var Right = function Right(_ref) {
background: '#f9d1d1',
color: '#dd4046',
borderRadius: '3px',
padding: '2px 5px 0',
padding: '0 5px',
marginLeft: '3px',
height: '20px'
lineHeight: '20px'
},
children: (_pathsDetail$detail60 = pathsDetail.detail) !== null && _pathsDetail$detail60 !== void 0 && _pathsDetail$detail60.countdown ? "\u5012\u8BA1\u65F6:".concat((_pathsDetail$detail61 = pathsDetail.detail) === null || _pathsDetail$detail61 === void 0 ? void 0 : _pathsDetail$detail61.countdown) : '限时优惠'
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {})]

File diff suppressed because one or more lines are too long

@ -254,6 +254,7 @@
height: 32px;
line-height: 30px;
color: #464f66;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-footer button:last-child {
padding: 0 16px;
@ -264,6 +265,7 @@
height: 32px;
line-height: 30px;
color: #165dff;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-close {
top: 22px;

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[56277,8691,4977,76204,36723],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[56277,8691,4977,85343,36723],{
/***/ 96403:
/*!*********************************!*\
@ -3817,9 +3817,9 @@ function DiffEditor(_ref2) {
/***/ }),
/***/ 76204:
/***/ 85343:
/*!****************************************************************!*\
!*** ./src/components/ui-customization/index.tsx + 29 modules ***!
!*** ./src/components/ui-customization/index.tsx + 33 modules ***!
\****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -3829,12 +3829,14 @@ function DiffEditor(_ref2) {
__webpack_require__.d(__webpack_exports__, {
"jL": function() { return /* reexport */ ui_customization_Banner; },
"w9": function() { return /* reexport */ Cards_ClassroomList; },
"QD": function() { return /* reexport */ ui_customization_ConfirmAndCancel; },
"cQ": function() { return /* reexport */ Cards_CourseList; },
"op": function() { return /* reexport */ ui_customization_CustomButton; },
"t7": function() { return /* reexport */ ui_customization_CustomInput; },
"Gi": function() { return /* reexport */ ui_customization_CustomTable; },
"YG": function() { return /* reexport */ ui_customization_CustomTabs; },
"qp": function() { return /* reexport */ ui_customization_CustomTags; },
"qE": function() { return /* reexport */ HeadBack; },
"Je": function() { return /* reexport */ QuickPager; },
"wb": function() { return /* reexport */ Cards_ShixunList; },
"cq": function() { return /* reexport */ ui_customization_SuperiorSort; },
@ -3905,7 +3907,7 @@ var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
;// CONCATENATED MODULE: ./src/components/ui-customization/CustomTags/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var CustomTagsmodules = ({"flex_box_center":"flex_box_center___hG6RI","flex_space_between":"flex_space_between___ss3Fh","flex_box_vertical_center":"flex_box_vertical_center___K80p9","flex_box_center_end":"flex_box_center_end___qmXX3","flex_box_column":"flex_box_column___GFV8F","row":"row___aXJjm","title":"title___HUKL0","tagsWrap":"tagsWrap___XB2W3","action":"action___VdHb1","bar":"bar___t1kKC","name":"name___Hk1Ip","active":"active___XryTX","tagsBorderWrap":"tagsBorderWrap___OMxjs"});
/* harmony default export */ var CustomTagsmodules = ({"flex_box_center":"flex_box_center___hG6RI","flex_space_between":"flex_space_between___ss3Fh","flex_box_vertical_center":"flex_box_vertical_center___K80p9","flex_box_center_end":"flex_box_center_end___qmXX3","flex_box_column":"flex_box_column___GFV8F","row":"row___aXJjm","title":"title___HUKL0","tagsWrap":"tagsWrap___XB2W3","action":"action___VdHb1","bar":"bar___t1kKC","tag":"tag___V7Eft","name":"name___Hk1Ip","num":"num___xQpcH","active":"active___XryTX","tagsBorderWrap":"tagsBorderWrap___OMxjs"});
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__(94184);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
@ -3928,7 +3930,8 @@ var CustomTags = function CustomTags(_ref) {
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$fontColor = _ref.fontColor,
fontColor = _ref$fontColor === void 0 ? '#6A7283' : _ref$fontColor;
fontColor = _ref$fontColor === void 0 ? '#6A7283' : _ref$fontColor,
showCount = _ref.showCount;
var _useState = (0,react.useState)(0),
_useState2 = slicedToArray_default()(_useState, 2),
show = _useState2[0],
@ -3938,10 +3941,11 @@ var CustomTags = function CustomTags(_ref) {
showBorder = _useState4[0],
setShowBorder = _useState4[1];
var tagsRef = (0,react.useRef)(null);
var scrollRef = (0,react.useRef)(null);
(0,react.useEffect)(function () {
if (dataSource.length !== 0) {
var _tagsRef$current;
if ((tagsRef === null || tagsRef === void 0 ? void 0 : (_tagsRef$current = tagsRef.current) === null || _tagsRef$current === void 0 ? void 0 : _tagsRef$current.clientHeight) > 92) {
if ((tagsRef === null || tagsRef === void 0 ? void 0 : (_tagsRef$current = tagsRef.current) === null || _tagsRef$current === void 0 ? void 0 : _tagsRef$current.clientHeight) > 97) {
setShow(1);
} else {
setShow(0);
@ -3966,27 +3970,34 @@ var CustomTags = function CustomTags(_ref) {
className: showBorder ? "".concat(CustomTagsmodules.tagsWrap, " ").concat(CustomTagsmodules.tagsBorderWrap) : CustomTagsmodules.tagsWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CustomTagsmodules.bar,
ref: scrollRef,
style: show > 0 ? {
height: show === 1 ? 92 : 'auto',
height: show === 1 ? 97 : 'auto',
overflow: show === 1 ? 'hidden' : 'auto',
paddingRight: 55
} : {
paddingRight: 0
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CustomTagsmodules.name,
className: CustomTagsmodules.tag,
ref: tagsRef,
children: dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (e) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
onClick: function onClick() {
return onChange(e.id);
},
title: e.name,
style: {
color: fontColor
},
className: value === e.id ? CustomTagsmodules.active : '',
children: e.name
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
title: e.name,
className: CustomTagsmodules.name,
children: e.name
}), !!showCount && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: CustomTagsmodules.num,
children: e.count
})]
}, e.id);
})
})
@ -3995,7 +4006,7 @@ var CustomTags = function CustomTags(_ref) {
onClick: function onClick() {
var _tagsRef$current2;
setShow(2);
if ((tagsRef === null || tagsRef === void 0 ? void 0 : (_tagsRef$current2 = tagsRef.current) === null || _tagsRef$current2 === void 0 ? void 0 : _tagsRef$current2.clientHeight) > 205) {
if ((tagsRef === null || tagsRef === void 0 ? void 0 : (_tagsRef$current2 = tagsRef.current) === null || _tagsRef$current2 === void 0 ? void 0 : _tagsRef$current2.clientHeight) > 245) {
setShowBorder(true);
} else {
setShowBorder(false);
@ -4010,6 +4021,7 @@ var CustomTags = function CustomTags(_ref) {
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
onClick: function onClick() {
scrollRef.current.scrollTop = 0;
setShow(1);
setShowBorder(false);
},
@ -4649,7 +4661,7 @@ var ClassroomList = function ClassroomList(_ref) {
/* harmony default export */ var Cards_ClassroomList = (ClassroomList);
;// CONCATENATED MODULE: ./src/components/ui-customization/CustomTabs/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var CustomTabsmodules = ({"flex_box_center":"flex_box_center___d27mZ","flex_space_between":"flex_space_between___qfRU9","flex_box_vertical_center":"flex_box_vertical_center___fCRld","flex_box_center_end":"flex_box_center_end___ORMV8","flex_box_column":"flex_box_column___PNKtZ","tabs":"tabs___alpa7","tabsWrap":"tabsWrap___aCQjw","active":"active___nl_4v"});
/* harmony default export */ var CustomTabsmodules = ({"flex_box_center":"flex_box_center___d27mZ","flex_space_between":"flex_space_between___qfRU9","flex_box_vertical_center":"flex_box_vertical_center___fCRld","flex_box_center_end":"flex_box_center_end___ORMV8","flex_box_column":"flex_box_column___PNKtZ","tabs":"tabs___alpa7","tabsWrap":"tabsWrap___aCQjw","tab":"tab___MKLr4","active":"active___nl_4v"});
;// CONCATENATED MODULE: ./src/components/ui-customization/CustomTabs/index.tsx
@ -4671,12 +4683,17 @@ var CustomTabs = function CustomTabs(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CustomTabsmodules.tabsWrap,
children: dataSource.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
return onChange(item.id);
},
className: value === item.id ? CustomTabsmodules.active : '',
children: item.name
return /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
className: CustomTabsmodules.tab,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
return onChange(item.id);
},
className: value === item.id ? CustomTabsmodules.active : '',
children: item.name
}), (item === null || item === void 0 ? void 0 : item.total) !== undefined && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\uFF08", item === null || item === void 0 ? void 0 : item.total, "\uFF09"]
})]
}, index);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@ -4811,6 +4828,85 @@ var CustomButton = function CustomButton(_ref) {
});
};
/* harmony default export */ var ui_customization_CustomButton = (CustomButton);
;// CONCATENATED MODULE: ./src/components/ui-customization/HeadBack/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var HeadBackmodules = ({"flex_box_center":"flex_box_center___TB7bQ","flex_space_between":"flex_space_between___oBlTb","flex_box_vertical_center":"flex_box_vertical_center___b5XbB","flex_box_center_end":"flex_box_center_end___CNhe7","flex_box_column":"flex_box_column___yHXKW","head":"head___ghH72","node":"node___mjPEy"});
;// CONCATENATED MODULE: ./src/components/ui-customization/HeadBack/index.tsx
var HeadBack_CustomButton = function CustomButton(_ref) {
var className = _ref.className,
style = _ref.style,
_ref$children = _ref.children,
children = _ref$children === void 0 ? null : _ref$children,
onClick = _ref.onClick,
title = _ref.title;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: classnames_default()(HeadBackmodules.head, className),
style: style,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
onClick: onClick,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fanhui2 font12"
}), "\u8FD4\u56DE"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
title: title,
children: title
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: HeadBackmodules.node,
children: children
})]
});
};
/* harmony default export */ var HeadBack = (HeadBack_CustomButton);
// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
var button_style = __webpack_require__(29913);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
;// CONCATENATED MODULE: ./src/components/ui-customization/ConfirmAndCancel/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var ConfirmAndCancelmodules = ({"flex_box_center":"flex_box_center___AlHuF","flex_space_between":"flex_space_between___vN2LW","flex_box_vertical_center":"flex_box_vertical_center___Ac7D2","flex_box_center_end":"flex_box_center_end___y38I7","flex_box_column":"flex_box_column___iQE6P","btns":"btns___sNgTb","confirm":"confirm___Ozirl","cancel":"cancel___aiq1I"});
;// CONCATENATED MODULE: ./src/components/ui-customization/ConfirmAndCancel/index.tsx
var ConfirmAndCancel = function ConfirmAndCancel(_ref) {
var _ref$confirmShow = _ref.confirmShow,
confirmShow = _ref$confirmShow === void 0 ? true : _ref$confirmShow,
confirmTitle = _ref.confirmTitle,
confirmClick = _ref.confirmClick,
_ref$cancelShow = _ref.cancelShow,
cancelShow = _ref$cancelShow === void 0 ? true : _ref$cancelShow,
cancelTitle = _ref.cancelTitle,
cancelClick = _ref.cancelClick,
className = _ref.className,
style = _ref.style,
_ref$confirmLoading = _ref.confirmLoading,
confirmLoading = _ref$confirmLoading === void 0 ? false : _ref$confirmLoading;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: classnames_default()(ConfirmAndCancelmodules.btns, className),
style: style,
children: [confirmShow && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
loading: confirmLoading,
onClick: confirmClick,
type: "primary",
className: ConfirmAndCancelmodules.confirm,
children: confirmTitle
}), cancelShow && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
onClick: cancelClick,
className: ConfirmAndCancelmodules.cancel,
children: cancelTitle
})]
});
};
/* harmony default export */ var ui_customization_ConfirmAndCancel = (ConfirmAndCancel);
;// CONCATENATED MODULE: ./src/components/ui-customization/index.tsx
@ -4826,6 +4922,8 @@ var CustomButton = function CustomButton(_ref) {
/***/ }),
/***/ 61891:

@ -2348,21 +2348,32 @@ ul.menu___E01hA [class~='ant-dropdown-menu-item-active'] {
font-size: 12px;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC {
max-height: 240px;
max-height: 245px;
overflow: hidden;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .name___Hk1Ip span {
display: inline-block;
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft > span {
display: inline-flex;
align-items: center;
margin-left: 8px;
margin-bottom: 17px;
font-size: 14px;
cursor: pointer;
padding: 4px 12px;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .name___Hk1Ip span:hover {
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft > span .name___Hk1Ip {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: 600px;
display: inline-block;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft > span .num___xQpcH {
margin-left: 3px;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft > span:hover {
color: #165dff !important;
}
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .name___Hk1Ip .active___XryTX {
.row___aXJjm .tagsWrap___XB2W3 .bar___t1kKC .tag___V7Eft .active___XryTX {
color: #165dff !important;
border-radius: 2px;
background: #f6f7f9;
@ -3141,22 +3152,27 @@ ul.menu___E01hA [class~='ant-dropdown-menu-item-active'] {
align-items: center;
height: 100%;
}
.tabs___alpa7 .tabsWrap___aCQjw > div {
.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 {
display: flex;
align-items: center;
margin-right: 40px;
height: 100%;
}
.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 > div {
position: relative;
font-size: 14px;
font-weight: 400;
color: #5f6368;
margin-right: 40px;
display: flex;
align-items: center;
height: 100%;
cursor: pointer;
height: 100%;
}
.tabs___alpa7 .tabsWrap___aCQjw .active___nl_4v {
.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 .active___nl_4v {
font-weight: 500;
color: #202124;
}
.tabs___alpa7 .tabsWrap___aCQjw .active___nl_4v:after {
.tabs___alpa7 .tabsWrap___aCQjw .tab___MKLr4 .active___nl_4v:after {
position: absolute;
content: '';
width: 100%;
@ -3220,6 +3236,9 @@ ul.menu___E01hA [class~='ant-dropdown-menu-item-active'] {
color: #5f6368;
font-weight: 400;
}
.table___zOWN7 .ant-table-thead > tr > th::before {
display: none;
}
.table___zOWN7 .ant-table-column-sorter-full {
margin-top: -0.4em;
}
@ -3368,6 +3387,123 @@ ul.menu___E01hA [class~='ant-dropdown-menu-item-active'] {
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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/HeadBack/index.less?modules ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___TB7bQ {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___oBlTb {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___b5XbB {
align-items: center;
box-align: center;
}
.flex_box_center_end___CNhe7 {
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___yHXKW {
flex-direction: column;
box-orient: block-axis;
}
.head___ghH72 {
height: 54px;
border-bottom: 1px solid #DBDCE0;
display: flex;
align-items: center;
}
.head___ghH72 > span {
color: #999999;
font-size: 12px;
cursor: pointer;
flex-shrink: 0;
}
.head___ghH72 > b {
font-weight: 500;
color: #232B40;
margin-left: 30px;
font-size: 14px;
flex: 1 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.head___ghH72 .node___mjPEy {
margin-left: auto;
flex-shrink: 0;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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/ConfirmAndCancel/index.less?modules ***!
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___AlHuF {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___vN2LW {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___Ac7D2 {
align-items: center;
box-align: center;
}
.flex_box_center_end___y38I7 {
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___iQE6P {
flex-direction: column;
box-orient: block-axis;
}
.btns___sNgTb {
display: flex;
align-items: center;
}
.btns___sNgTb .confirm___Ozirl {
height: 38px;
background: #3061D0;
border-radius: 2px;
color: #FFFFFF;
padding: 0 34px;
}
.btns___sNgTb .cancel___aiq1I {
height: 38px;
background: #F8F9FC;
border-radius: 2px;
opacity: 0.5;
border: 1px solid #C3CFE0;
font-size: 14px;
color: #464F66;
margin-left: 20px;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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 ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@ -3423,6 +3559,7 @@ ul.menu___E01hA [class~='ant-dropdown-menu-item-active'] {
height: 32px;
line-height: 30px;
color: #464f66;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-footer button:last-child {
padding: 0 16px;
@ -3433,6 +3570,7 @@ ul.menu___E01hA [class~='ant-dropdown-menu-item-active'] {
height: 32px;
line-height: 30px;
color: #165dff;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-close {
top: 22px;

@ -167,6 +167,7 @@
height: 32px;
line-height: 30px;
color: #464f66;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-footer button:last-child {
padding: 0 16px;
@ -177,6 +178,7 @@
height: 32px;
line-height: 30px;
color: #165dff;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-close {
top: 22px;

@ -33,7 +33,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var html2pdf_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(html2pdf_js__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/utils/util */ 29427);
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/utils/fetch */ 84519);
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @/components/ui-customization */ 76204);
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @/components/ui-customization */ 85343);
/* harmony import */ var _components_ui_customization_reset_less_modules__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @/components/ui-customization/reset.less?modules */ 39132);
/* harmony import */ var _components_CertificateModal__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @/components/CertificateModal */ 24830);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! moment */ 30381);

@ -450,8 +450,8 @@ var moment = __webpack_require__(30381);
var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 29 modules
var ui_customization = __webpack_require__(76204);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/User/Detail/Classrooms/components/Items/table.tsx

@ -731,8 +731,8 @@ var fetch = __webpack_require__(84519);
;// CONCATENATED MODULE: ./src/pages/User/Detail/ExperImentImg/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var ExperImentImgmodules = ({"flex_box_center":"flex_box_center___cRRGk","flex_space_between":"flex_space_between___DckQs","flex_box_vertical_center":"flex_box_vertical_center___IJP6X","flex_box_center_end":"flex_box_center_end___vCftz","flex_box_column":"flex_box_column___ML5vq","wrap":"wrap____U8oZ","searchBar":"searchBar___wGcIz","active":"active____hkkT","searchBarBorder":"searchBarBorder___ZCEnB","firstLi":"firstLi___iKJpS","otherLi":"otherLi___TUZTQ"});
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 29 modules
var ui_customization = __webpack_require__(76204);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
;// CONCATENATED MODULE: ./src/pages/User/Detail/ExperImentImg/index.tsx

@ -62,8 +62,8 @@ var fetch = __webpack_require__(84519);
// EXTERNAL MODULE: ./node_modules/moment/moment.js
var moment = __webpack_require__(30381);
var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 29 modules
var ui_customization = __webpack_require__(76204);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
// EXTERNAL MODULE: ./src/components/ui-customization/reset.less?modules
var resetmodules = __webpack_require__(39132);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js

@ -158,6 +158,7 @@
height: 32px;
line-height: 30px;
color: #464f66;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-footer button:last-child {
padding: 0 16px;
@ -168,6 +169,7 @@
height: 32px;
line-height: 30px;
color: #165dff;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-close {
top: 22px;

@ -58,8 +58,8 @@ var moment = __webpack_require__(30381);
var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 29 modules
var ui_customization = __webpack_require__(76204);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/User/Detail/Paths/components/Items/table.tsx

@ -210,8 +210,8 @@ var Items = function Items(_ref) {
});
};
/* harmony default export */ var components_Items = (Items);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 29 modules
var ui_customization = __webpack_require__(76204);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
;// CONCATENATED MODULE: ./src/pages/User/Detail/Projects/index.tsx

@ -520,6 +520,7 @@
height: 32px;
line-height: 30px;
color: #464f66;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-footer button:last-child {
padding: 0 16px;
@ -530,6 +531,7 @@
height: 32px;
line-height: 30px;
color: #165dff;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-close {
top: 22px;

@ -283,8 +283,8 @@ var moment = __webpack_require__(30381);
var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/DownOutlined.js
var DownOutlined = __webpack_require__(39300);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 29 modules
var ui_customization = __webpack_require__(76204);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
;// CONCATENATED MODULE: ./src/pages/User/Detail/Shixuns/components/Items/table.tsx

@ -125,6 +125,7 @@
height: 32px;
line-height: 30px;
color: #464f66;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-footer button:last-child {
padding: 0 16px;
@ -135,6 +136,7 @@
height: 32px;
line-height: 30px;
color: #165dff;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-close {
top: 22px;

@ -1011,6 +1011,7 @@ span.ant-radio + * {
height: 32px;
line-height: 30px;
color: #464f66;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-footer button:last-child {
padding: 0 16px;
@ -1021,6 +1022,7 @@ span.ant-radio + * {
height: 32px;
line-height: 30px;
color: #165dff;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-close {
top: 22px;

@ -1036,8 +1036,8 @@ var _umi_production_exports = __webpack_require__(89214);
/* harmony default export */ var SendToClassModalmodules = ({"title":"title___XAxiE","radioWrap":"radioWrap___k0pOB","radio":"radio___x9kMt","colorFF0000":"colorFF0000___IMgd0","pagination":"pagination___ou2ht"});
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 29 modules
var ui_customization = __webpack_require__(76204);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
// EXTERNAL MODULE: ./src/components/ui-customization/reset.less?modules
var resetmodules = __webpack_require__(39132);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js

@ -3491,8 +3491,8 @@ var _umi_production_exports = __webpack_require__(89214);
/* harmony default export */ var SendToClassModalmodules = ({"title":"title___XAxiE","radioWrap":"radioWrap___k0pOB","radio":"radio___x9kMt","colorFF0000":"colorFF0000___IMgd0","pagination":"pagination___ou2ht"});
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 29 modules
var ui_customization = __webpack_require__(76204);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
// EXTERNAL MODULE: ./src/components/ui-customization/reset.less?modules
var resetmodules = __webpack_require__(39132);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js

@ -1123,6 +1123,7 @@ li:last-child > .ant-breadcrumb-separator {
height: 32px;
line-height: 30px;
color: #464f66;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-footer button:last-child {
padding: 0 16px;
@ -1133,6 +1134,7 @@ li:last-child > .ant-breadcrumb-separator {
height: 32px;
line-height: 30px;
color: #165dff;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-close {
top: 22px;

@ -2529,8 +2529,8 @@ var _umi_production_exports = __webpack_require__(89214);
/* harmony default export */ var SendToClassModalmodules = ({"title":"title___XAxiE","radioWrap":"radioWrap___k0pOB","radio":"radio___x9kMt","colorFF0000":"colorFF0000___IMgd0","pagination":"pagination___ou2ht"});
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 29 modules
var ui_customization = __webpack_require__(76204);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
// EXTERNAL MODULE: ./src/components/ui-customization/reset.less?modules
var resetmodules = __webpack_require__(39132);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js

@ -480,6 +480,7 @@
height: 32px;
line-height: 30px;
color: #464f66;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-footer button:last-child {
padding: 0 16px;
@ -490,6 +491,7 @@
height: 32px;
line-height: 30px;
color: #165dff;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-close {
top: 22px;

@ -489,6 +489,7 @@
height: 32px;
line-height: 30px;
color: #464f66;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-footer button:last-child {
padding: 0 16px;
@ -499,6 +500,7 @@
height: 32px;
line-height: 30px;
color: #165dff;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-close {
top: 22px;

@ -53,8 +53,8 @@ var _umi_production_exports = __webpack_require__(89214);
/* harmony default export */ var SendToClassModalmodules = ({"title":"title___XAxiE","radioWrap":"radioWrap___k0pOB","radio":"radio___x9kMt","colorFF0000":"colorFF0000___IMgd0","pagination":"pagination___ou2ht"});
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 29 modules
var ui_customization = __webpack_require__(76204);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
// EXTERNAL MODULE: ./src/components/ui-customization/reset.less?modules
var resetmodules = __webpack_require__(39132);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
@ -428,8 +428,8 @@ var Items = function Items(_ref) {
var SendToClassModal = __webpack_require__(61627);
// EXTERNAL MODULE: ./src/assets/images/topics/permission.png
var permission = __webpack_require__(35092);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 29 modules
var ui_customization = __webpack_require__(76204);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
// EXTERNAL MODULE: ./src/components/ui-customization/reset.less?modules
var resetmodules = __webpack_require__(39132);
// EXTERNAL MODULE: ./src/utils/util.tsx

@ -672,8 +672,8 @@ var Items = function Items(_ref) {
var verifyLogin = __webpack_require__(72551);
// EXTERNAL MODULE: ./src/components/mediator.js
var mediator = __webpack_require__(91562);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 29 modules
var ui_customization = __webpack_require__(76204);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
;// CONCATENATED MODULE: ./src/pages/User/Detail/Videos/index.tsx

@ -129,8 +129,8 @@ var AddOrEdit = __webpack_require__(97642);
var verifyLogin = __webpack_require__(72551);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(7);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 29 modules
var ui_customization = __webpack_require__(76204);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
;// CONCATENATED MODULE: ./src/pages/User/Detail/virtualSpaces/index.tsx

@ -287,6 +287,7 @@
height: 32px;
line-height: 30px;
color: #165dff;
cursor: pointer;
}
.form____yVeV .btn___X16NC i {
margin-right: 3px;
@ -370,6 +371,7 @@
height: 32px;
line-height: 30px;
color: #464f66;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-footer button:last-child {
padding: 0 16px;
@ -380,6 +382,7 @@
height: 32px;
line-height: 30px;
color: #165dff;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-close {
top: 22px;

@ -1592,6 +1592,7 @@ textarea.ant-pagination-options-quick-jumper input {
height: 32px;
line-height: 30px;
color: #165dff;
cursor: pointer;
}
.form____yVeV .btn___X16NC i {
margin-right: 3px;
@ -1675,6 +1676,7 @@ textarea.ant-pagination-options-quick-jumper input {
height: 32px;
line-height: 30px;
color: #464f66;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-footer button:last-child {
padding: 0 16px;
@ -1685,6 +1687,7 @@ textarea.ant-pagination-options-quick-jumper input {
height: 32px;
line-height: 30px;
color: #165dff;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-close {
top: 22px;

@ -0,0 +1,177 @@
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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/Announcement/AddAndEdit/index.less?modules ***!
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___D20iG {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___RQ9jJ {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___BkOZq {
align-items: center;
box-align: center;
}
.flex_box_center_end___QQYvD {
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___Gh184 {
flex-direction: column;
box-orient: block-axis;
}
.wrap___e1xGn {
padding: 0 45px;
}
.wrap___e1xGn .btns___Byhhs {
display: flex;
align-items: center;
}
.wrap___e1xGn .btns___Byhhs .confirm___nBLNr {
width: 128px;
height: 38px;
background: #3061D0;
box-shadow: 0px 2px 4px 0px #E0DFE1;
border-radius: 2px;
line-height: 38px;
font-size: 14px;
color: #FFFFFF;
text-align: center;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: pointer;
}
.wrap___e1xGn .btns___Byhhs .cancel___rDLNy {
width: 60px;
height: 38px;
background: #F8F9FC;
border-radius: 2px;
opacity: 0.5;
border: 1px solid #C3CFE0;
line-height: 36px;
font-size: 14px;
color: #464F66;
text-align: center;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: pointer;
margin-left: 20px;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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]!./node_modules/antd/es/rate/style/index.less ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.ant-rate {
box-sizing: border-box;
color: rgba(0, 0, 0, 0.85);
font-size: 12px;
font-variant: tabular-nums;
line-height: 1.66667;
font-feature-settings: tnum, "tnum";
display: inline-block;
margin: 0;
padding: 0;
color: #fadb14;
font-size: 16px;
line-height: inherit;
list-style: none;
outline: none;
}
.ant-rate-disabled .ant-rate-star {
cursor: default;
}
.ant-rate-disabled .ant-rate-star > div:hover {
transform: scale(1);
}
.ant-rate-star {
position: relative;
display: inline-block;
color: inherit;
cursor: pointer;
}
.ant-rate-star:not(:last-child) {
margin-right: 8px;
}
.ant-rate-star > div {
transition: all 0.3s, outline 0s;
}
.ant-rate-star > div:hover {
transform: scale(1.1);
}
.ant-rate-star > div:focus {
outline: 0;
}
.ant-rate-star > div:focus-visible {
outline: 1px dashed #fadb14;
transform: scale(1.1);
}
.ant-rate-star-first,
.ant-rate-star-second {
color: #f0f0f0;
transition: all 0.3s;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.ant-rate-star-first .anticon,
.ant-rate-star-second .anticon {
vertical-align: middle;
}
.ant-rate-star-first {
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 100%;
overflow: hidden;
opacity: 0;
}
.ant-rate-star-half .ant-rate-star-first,
.ant-rate-star-half .ant-rate-star-second {
opacity: 1;
}
.ant-rate-star-half .ant-rate-star-first,
.ant-rate-star-full .ant-rate-star-second {
color: inherit;
}
.ant-rate-text {
display: inline-block;
margin: 0 8px;
font-size: 12px;
}
.ant-rate-rtl {
direction: rtl;
}
.ant-rate-rtl .ant-rate-star:not(:last-child) {
margin-right: 0;
margin-left: 8px;
}
.ant-rate-rtl .ant-rate-star-first {
right: 0;
left: auto;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */

@ -0,0 +1,249 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[89677],{
/***/ 31853:
/*!*************************************************************************************!*\
!*** ./src/pages/virtualSpaces/Lists/Announcement/AddAndEdit/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 */ Announcement_AddAndEdit; }
});
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js + 1 modules
var style = __webpack_require__(69463);
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
var input = __webpack_require__(75008);
// EXTERNAL MODULE: ./node_modules/antd/es/message/style/index.js + 1 modules
var message_style = __webpack_require__(14934);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 1 modules
var message = __webpack_require__(12461);
// 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/antd/es/form/style/index.js + 1 modules
var form_style = __webpack_require__(75627);
// EXTERNAL MODULE: ./node_modules/antd/es/form/index.js + 17 modules
var es_form = __webpack_require__(51018);
// 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: ./src/utils/fetch.ts
var fetch = __webpack_require__(84519);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Announcement/AddAndEdit/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var AddAndEditmodules = ({"flex_box_center":"flex_box_center___D20iG","flex_space_between":"flex_space_between___RQ9jJ","flex_box_vertical_center":"flex_box_vertical_center___BkOZq","flex_box_center_end":"flex_box_center_end___QQYvD","flex_box_column":"flex_box_column___Gh184","wrap":"wrap___e1xGn","btns":"btns___Byhhs","confirm":"confirm___nBLNr","cancel":"cancel___rDLNy"});
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
var markdown_editor = __webpack_require__(55373);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
// 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/Announcement/AddAndEdit/index.tsx
var AddAndEdit = function AddAndEdit(_ref) {
objectDestructuringEmpty_default()(_ref);
var _useState = (0,react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
btnLoading = _useState2[0],
setBtnLoading = _useState2[1];
var _useState3 = (0,react.useState)({}),
_useState4 = slicedToArray_default()(_useState3, 2),
data = _useState4[0],
setData = _useState4[1];
var _Form$useForm = es_form/* default.useForm */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
var query = (0,_umi_production_exports.useParams)();
var id = query.id,
virtual_spacesId = query.virtual_spacesId;
var _useState5 = (0,react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
status = _useState6[0],
setStatus = _useState6[1];
(0,react.useEffect)(function () {
if (id) {
getData();
} else {
getStatus();
}
}, [id]);
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(query.virtual_spacesId, "/informs/").concat(id, "/edit.json"), {
method: 'get'
});
case 2:
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) !== -1) {
form.setFieldsValue(objectSpread2_default()({}, res));
setData(objectSpread2_default()({}, res));
}
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData() {
return _ref2.apply(this, arguments);
};
}();
var getStatus = /*#__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_spacesId, "/settings_auth.json"), {
method: 'get'
});
case 2:
res = _context2.sent;
if (res.status === 0) {
setStatus(true);
}
case 4:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function getStatus() {
return _ref3.apply(this, arguments);
};
}();
var handleFinish = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(values) {
var url, res;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
setBtnLoading(true);
url = "/api/virtual_classrooms/".concat(query.virtual_spacesId, "}/informs.json");
if (id) {
url = "/api/virtual_classrooms/".concat(query.virtual_spacesId, "/informs/").concat(id, ".json");
}
_context3.next = 5;
return (0,fetch/* default */.ZP)(url, {
method: id ? 'put' : 'post',
body: objectSpread2_default()({}, values)
});
case 5:
res = _context3.sent;
if ((res === null || res === void 0 ? void 0 : res.status) !== -1 || (res === null || res === void 0 ? void 0 : res.status) !== 403) {
message/* default.success */.ZP.success('操作成功');
_umi_production_exports.history.push("/vspaces/".concat(virtual_spacesId, "/announcement"));
}
setBtnLoading(false);
case 8:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return function handleFinish(_x) {
return _ref4.apply(this, arguments);
};
}();
if (!status) return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {});
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: AddAndEditmodules.wrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* HeadBack */.qE, {
title: id ? '编辑公告' : '发布新公告',
onClick: function onClick() {
return _umi_production_exports.history.push("/vspaces/".concat(virtual_spacesId, "/announcement"));
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
className: "mt20",
form: form,
layout: "vertical",
onFinish: handleFinish,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
label: "\u516C\u544A\u6807\u9898",
name: "name",
rules: [{
required: true,
message: '请输入公告标题'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u53EF\u8F93\u5165\u516C\u544A\u6807\u9898\uFF0C\u6700\u591A60\u4E2A\u5B57",
maxLength: 60
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
label: "\u516C\u544A\u5185\u5BB9",
name: "description",
rules: [{
required: true,
message: '请输入公告内容'
}, {
max: 65000,
message: '作业简介最大限制65000个字符'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
placeholder: "\u53EF\u8F93\u5165\u516C\u544A\u5185\u5BB9\uFF0C\u6700\u591A65000\u4E2A\u5B57\u7B26",
defaultValue: data.description || ''
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* ConfirmAndCancel */.QD, {
confirmTitle: id ? '保存' : '确认发布',
confirmLoading: btnLoading,
confirmClick: function confirmClick() {
return form.submit();
},
cancelClick: function cancelClick() {
_umi_production_exports.history.push("/vspaces/".concat(virtual_spacesId, "/announcement"));
},
cancelTitle: "\u53D6\u6D88",
className: "mb25"
})]
});
};
/* harmony default export */ var Announcement_AddAndEdit = (AddAndEdit);
/***/ })
}]);

@ -0,0 +1,843 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[46796],{
/***/ 36579:
/*!*********************************************************!*\
!*** ./src/components/PreviewAll/index.tsx + 1 modules ***!
\*********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ PreviewAll; }
});
// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
var style = __webpack_require__(29913);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/style/index.js + 1 modules
var tooltip_style = __webpack_require__(38390);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(84908);
// 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);
;// CONCATENATED MODULE: ./src/components/PreviewAll/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var PreviewAllmodules = ({"wrp":"wrp___dq7YK","bgBlack":"bgBlack___ARIUV","monaco":"monaco___VnZC3","darkBlue":"darkBlue___UprA9","close":"close___LKoWu","embed":"embed___hvpEJ"});
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/ArrowDownOutlined.js + 1 modules
var ArrowDownOutlined = __webpack_require__(77171);
// EXTERNAL MODULE: ./src/components/monaco-editor/index.jsx + 3 modules
var monaco_editor = __webpack_require__(8691);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./src/service/exercise.ts
var exercise = __webpack_require__(51412);
// 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/components/PreviewAll/index.tsx
/* harmony default export */ var PreviewAll = (function (_ref) {
var _data, _data2, _data3, _data4, _data5, _data6;
var _ref$editOffice = _ref.editOffice,
editOffice = _ref$editOffice === void 0 ? 'view' : _ref$editOffice,
data = _ref.data,
theme = _ref.theme,
type = _ref.type,
filename = _ref.filename,
monacoEditor = _ref.monacoEditor,
className = _ref.className,
style = _ref.style,
close = _ref.close,
onClose = _ref.onClose,
hasMask = _ref.hasMask,
disabledDownload = _ref.disabledDownload;
var _useState = (0,react.useState)('https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt'),
_useState2 = slicedToArray_default()(_useState, 2),
src = _useState2[0],
setSrc = _useState2[1];
var _useState3 = (0,react.useState)(""),
_useState4 = slicedToArray_default()(_useState3, 2),
token = _useState4[0],
setToken = _useState4[1];
var _useState5 = (0,react.useState)(),
_useState6 = slicedToArray_default()(_useState5, 2),
officeData = _useState6[0],
setOfficeData = _useState6[1];
var officePath = window.ENV === "build" ? "/react/build" : "";
var apiServer = location.host.startsWith("localhost") ? env/* default.PROXY_SERVER */.Z.PROXY_SERVER : env/* default.API_SERVER */.Z.API_SERVER;
var size;
var unit = 1024 * 1024;
var maxSize = 10 * unit;
var closeRef = (0,react.useRef)();
if ((_data = data) !== null && _data !== void 0 && _data.startsWith("/api") && type !== "txt") {
data = env/* default.API_SERVER */.Z.API_SERVER + data;
}
if (type === "office") {
size = (0,util/* parseUrl */.en)(data).filesize;
if (size > maxSize) {
type = "other";
}
}
if (filename) monacoEditor.filename = filename;
(0,react.useEffect)(function () {
var _document$cookie, _document$cookie$repl;
var cookies = (_document$cookie = document.cookie) === null || _document$cookie === void 0 ? void 0 : (_document$cookie$repl = _document$cookie.replace(/\s/g, "")) === null || _document$cookie$repl === void 0 ? void 0 : _document$cookie$repl.split(";");
cookies === null || cookies === void 0 ? void 0 : cookies.map(function (item) {
var i = item.split("=");
if (i[0] === '_educoder_session') {
setToken(i[1]);
}
});
}, []);
(0,react.useEffect)(function () {
if (type === "office") getData();
}, [type, data]);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _url, _id, res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
console.log("data:", data);
_url = data;
if (!data.startsWith("http")) {
_url = location.origin + _url;
}
_id = new URL(_url).pathname.split("/").pop();
_context.next = 6;
return (0,exercise/* setEcsAttachment */.gJ)({
attachment_id: _id
});
case 6:
res = _context.sent;
setOfficeData(res);
case 8:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData() {
return _ref2.apply(this, arguments);
};
}();
var handleClick = function handleClick() {
if (data.startsWith("http") || data.startsWith('blob:')) {
handleDown();
return;
}
(0,util/* downloadFile */.Sv)(filename || 'educoder', data, filename);
};
var handleDown = function handleDown() {
(0,util/* downLoadLink */.Nd)(filename || 'educoder', decodeURIComponent(data));
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: objectSpread2_default()({}, style || {}),
className: "".concat(hasMask && PreviewAllmodules.bgBlack, " ").concat(!!type ? PreviewAllmodules.wrp : "hide"),
children: [close && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: PreviewAllmodules.close,
ref: closeRef,
children: [!disabledDownload && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",
getPopupContainer: function getPopupContainer() {
return closeRef.current;
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: handleDown,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-quxiaozhiding"
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u5173\u95ED",
getPopupContainer: function getPopupContainer() {
return closeRef.current;
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "",
onClick: onClose,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-guanbi1"
})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "".concat(PreviewAllmodules[className], " ").concat(className, " ").concat(PreviewAllmodules.monaco, " ").concat(type === "txt" ? "show" : "hide"),
children: type === "txt" && /*#__PURE__*/(0,jsx_runtime.jsx)(monaco_editor/* default */.ZP, objectSpread2_default()({}, monacoEditor))
}), type === "audio" && /*#__PURE__*/(0,jsx_runtime.jsx)("audio", {
src: "".concat(((_data2 = data) === null || _data2 === void 0 ? void 0 : _data2.indexOf("http://")) > -1 || ((_data3 = data) === null || _data3 === void 0 ? void 0 : _data3.indexOf("https://")) > -1 ? "" : "data:audio/mp3;base64,").concat(data),
autoPlay: true
}), type === "video" && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: ((_data4 = data) === null || _data4 === void 0 ? void 0 : _data4.indexOf("http")) > -1 ? /*#__PURE__*/(0,jsx_runtime.jsx)("video", {
controls: true,
src: "".concat(data),
autoPlay: true
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("video", {
controls: true,
src: "data:video/mp4;base64,".concat(data),
autoPlay: true
})
}), type === 'office' && officeData && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", {
src: "".concat(officePath, "/office.html?key=").concat(officeData.key, "&url=").concat(apiServer + officeData.url, "&callbackUrl=").concat(apiServer + officeData.callbackUrl, "&fileType=").concat(officeData.fileType, "&title=").concat(officeData.title, "&model=").concat(editOffice, "&officeServer=").concat(env/* default.ONLYOFFICE */.Z.ONLYOFFICE, "&disabledDownload=").concat(!!disabledDownload)
}), type === 'html' && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", {
src: data + '&disposition=inline'
}), type === 'pdf' && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", {
src: "".concat(officePath, "/js/pdfview/index.html?url=").concat(data, "&disabledDownload=").concat(!!disabledDownload)
}) //<embed className={styles.embed + "#toolbar=0"} src={data} />
, type === "image" && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: "".concat(((_data5 = data) === null || _data5 === void 0 ? void 0 : _data5.indexOf("http://")) > -1 || ((_data6 = data) === null || _data6 === void 0 ? void 0 : _data6.indexOf("https://")) > -1 ? "" : "data:image/png;base64,").concat(data)
}), type === "other" && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, {
type: "primary",
size: "large",
onClick: handleClick,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ArrowDownOutlined/* default */.Z, {}), "\u70B9\u51FB\u4E0B\u8F7D"]
})
}), type === "download" && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, {
type: "primary",
size: "large",
onClick: handleClick,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ArrowDownOutlined/* default */.Z, {}), "\u70B9\u51FB\u4E0B\u8F7D"]
})]
});
});
/***/ }),
/***/ 12768:
/*!*********************************************************!*\
!*** ./src/components/RenderHtml/index.tsx + 1 modules ***!
\*********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ RenderHtml; }
});
// 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/katex/dist/katex.min.css
var katex_min = __webpack_require__(81897);
// EXTERNAL MODULE: ./node_modules/marked/lib/marked.js
var marked = __webpack_require__(47084);
var marked_default = /*#__PURE__*/__webpack_require__.n(marked);
// EXTERNAL MODULE: ./node_modules/marked/src/helpers.js
var helpers = __webpack_require__(90621);
;// CONCATENATED MODULE: ./src/utils/marked.ts
function indentCodeCompensation(raw, text) {
var matchIndentToCode = raw.match(/^(\s+)(?:```)/);
if (matchIndentToCode === null) {
return text;
}
var indentToCode = matchIndentToCode[1];
return text.split('\n').map(function (node) {
var matchIndentInNode = node.match(/^\s+/);
if (matchIndentInNode === null) {
return node;
}
var _matchIndentInNode = slicedToArray_default()(matchIndentInNode, 1),
indentInNode = _matchIndentInNode[0];
if (indentInNode.length >= indentToCode.length) {
return node.slice(indentToCode.length);
}
return node;
}).join('\n');
}
//兼容之前的 ##标题式写法
var toc = [];
var ctx = ["<ul>"];
var renderer = new (marked_default()).Renderer();
var headingRegex = /^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;
function cleanToc() {
toc.length = 0;
ctx = ["<ul>"];
}
var lines = {
overflow: "hidden",
WebkitBoxOrient: "vertical",
display: "-webkit-box",
WebkitLineClamp: 2
};
function buildToc(coll, k, level, ctx) {
if (k >= coll.length || coll[k].level <= level) {
return k;
}
var node = coll[k];
ctx.push("<li><a href='#" + node.anchor + "'>" + node.text + "</a>");
k++;
var childCtx = [];
k = buildToc(coll, k, node.level, childCtx);
if (childCtx.length > 0) {
ctx.push("<ul>");
childCtx.forEach(function (idm) {
ctx.push(idm);
});
ctx.push("</ul>");
}
ctx.push("</li>");
k = buildToc(coll, k, level, ctx);
return k;
}
function getTocContent() {
buildToc(toc, 0, 0, ctx);
ctx.push("</ul>");
return ctx.join("");
}
var tokenizer = {
heading: function heading(src) {
var cap = headingRegex.exec(src);
if (cap) {
return {
type: 'heading',
raw: cap[0],
depth: cap[1].length,
text: cap[2]
};
}
},
fences: function fences(src) {
var cap = this.rules.block.fences.exec(src);
if (cap) {
var raw = cap[0];
var text = indentCodeCompensation(raw, cap[3] || '');
var lang = cap[2] ? cap[2].trim() : cap[2];
if (['latex', 'katex', 'math'].indexOf(lang) >= 0) {
var id = next_id();
var expression = text;
text = id;
math_expressions[id] = {
type: 'block',
expression: expression
};
}
return {
type: 'code',
raw: raw,
lang: lang,
text: text
};
}
}
};
var latexRegex = /(?:\${2})([^\n`]+?)(?:\${2})/gi;
var katex_count = 0;
var next_id = function next_id() {
return "__special_katext_id_".concat(katex_count++, "__");
};
var math_expressions = {};
function getMathExpressions() {
return math_expressions;
}
function resetMathExpressions() {
katex_count = 0;
math_expressions = {};
}
function replace_math_with_ids(text) {
text = text.replace(latexRegex, function (_match, expression) {
var id = next_id();
math_expressions[id] = {
type: 'inline',
expression: expression
};
return id;
});
return text;
}
var original_listitem = renderer.listitem;
renderer.listitem = function (text) {
return original_listitem(replace_math_with_ids(text));
};
var original_paragraph = renderer.paragraph;
renderer.paragraph = function (text) {
return original_paragraph(replace_math_with_ids(text));
};
var original_tablecell = renderer.tablecell;
renderer.tablecell = function (content, flags) {
return original_tablecell(replace_math_with_ids(content), flags);
};
renderer.code = function (code, infostring, escaped) {
var lang = (infostring || '').match(/\S*/)[0];
if (!lang) {
return '<pre class="prettyprint linenums"><code>' + (escaped ? code : (0,helpers.escape)(code, true)) + '</code></pre>';
}
if (['latex', 'katex', 'math'].indexOf(lang) >= 0) {
return "<p class='editormd-tex'>".concat(code, "</p>");
} else {
return "<pre class=\"prettyprint linenums\"><code class=\"language-".concat(infostring, "\">").concat(escaped ? code : (0,helpers.escape)(code, true), "</code></pre>\n");
}
};
renderer.heading = function (text, level, raw) {
var anchor = this.options.headerPrefix + raw.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g, '-');
toc.push({
anchor: anchor,
level: level,
text: text
});
return '<h' + level + ' id="' + anchor + '">' + text + '</h' + level + '>';
};
marked_default().setOptions({
silent: true,
gfm: true,
pedantic: false
});
marked_default().use({
tokenizer: tokenizer,
renderer: renderer
});
/* harmony default export */ var utils_marked = ((marked_default()));
// EXTERNAL MODULE: ./node_modules/code-prettify/src/prettify.js
var prettify = __webpack_require__(11771);
// EXTERNAL MODULE: ./node_modules/hls.js/dist/hls.js
var dist_hls = __webpack_require__(67631);
var hls_default = /*#__PURE__*/__webpack_require__.n(dist_hls);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(59758);
// EXTERNAL MODULE: ./node_modules/katex/dist/katex.js
var katex = __webpack_require__(20527);
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 1 modules
var PreviewAll = __webpack_require__(36579);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/components/RenderHtml/index.tsx
var preRegex = /<pre[^>]*>/g;
function _unescape(str) {
var div = document.createElement('div');
div.innerHTML = str;
return div.childNodes.length === 0 ? '' : div.childNodes[0].nodeValue;
}
/* harmony default export */ var RenderHtml = (function (_ref) {
var _ref$value = _ref.value,
value = _ref$value === void 0 ? '' : _ref$value,
className = _ref.className,
showTextOnly = _ref.showTextOnly,
showLines = _ref.showLines,
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$stylesPrev = _ref.stylesPrev,
stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev;
var str = String(value);
var _useState = (0,react.useState)(""),
_useState2 = slicedToArray_default()(_useState, 2),
data = _useState2[0],
setData = _useState2[1];
var _useState3 = (0,react.useState)("office"),
_useState4 = slicedToArray_default()(_useState3, 2),
type = _useState4[0],
setType = _useState4[1];
var html = (0,react.useMemo)(function () {
try {
var reg = /\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g;
var reg2 = /\"\/api\/attachments\/|\"\/attachments\/download\//g;
var reg3 = /\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;
str = str.replace(reg, "(" + env/* default.API_SERVER */.Z.API_SERVER + "/api/attachments/").replace(reg2, '"' + env/* default.API_SERVER */.Z.API_SERVER + "/api/attachments/").replace(reg3, '"' + env/* default.API_SERVER */.Z.API_SERVER + "/files/uploads/").replaceAll("http://video.educoder", "https://video.educoder").replaceAll("http://www.educoder.net/api", "https://data.educoder.net/api").replaceAll("https://www.educoder.net/api", "https://data.educoder.net/api").replace(/\r\n/g, "\n");
// str = str.replace(new RegExp("(?<!\\n)\\n(?!\\n)", "g"), " \n")
} catch (e) {}
;
var rs = utils_marked(str);
var math_expressions = getMathExpressions();
if (str.match(/\[TOC\]/)) {
rs = rs.replace('<p>[TOC]</p>', getTocContent());
cleanToc();
}
rs = rs.replace(/(__special_katext_id_\d+__)/g, function (_match, capture) {
var _math_expressions$cap = math_expressions[capture],
type = _math_expressions$cap.type,
expression = _math_expressions$cap.expression;
return (0,katex.renderToString)(_unescape(expression) || '', {
displayMode: type === 'block',
throwOnError: false,
output: 'html'
});
});
rs = rs.replace(/▁/g, '▁▁▁');
resetMathExpressions();
// return dompurify.sanitize(rs)
if (showTextOnly) {
var dom = document.createElement('div');
dom.innerHTML = rs;
return dom.innerText;
}
setTimeout(function () {
return onLoad();
}, 500);
return rs;
}, [str]);
var el = (0,react.useRef)();
lines.WebkitLineClamp = showLines;
if (showLines) {
style = objectSpread2_default()(objectSpread2_default()({}, style), lines);
}
function onAncherHandler(e) {
var target = e.target;
if (target.tagName.toUpperCase() === 'A') {
var ancher = target.getAttribute('href');
if (ancher.indexOf("office") > -1) {
e.preventDefault();
setData(ancher);
setType("office");
} else if (ancher.indexOf("application/pdf") > -1) {
e.preventDefault();
setData(ancher);
setType("pdf");
} else if (ancher.indexOf("text/html") > -1) {
e.preventDefault();
setData(ancher);
setType("html");
} else if (ancher.startsWith('#')) {
e.preventDefault();
var viewEl = document.getElementById(ancher.replace('#', ''));
if (viewEl) {
viewEl.scrollIntoView(true);
}
}
}
}
var onLoad = function onLoad() {
var _el$current;
var videoElement = (_el$current = el.current) === null || _el$current === void 0 ? void 0 : _el$current.querySelectorAll('video');
videoElement === null || videoElement === void 0 ? void 0 : videoElement.forEach(function (item) {
item.oncontextmenu = function () {
return false;
};
if (item.src.indexOf('.m3u8') > -1) {
if (item.canPlayType('application/vnd.apple.mpegurl')) {} else if (hls_default().isSupported()) {
var hls = new (hls_default())();
hls.loadSource(item.src);
hls.attachMedia(item);
}
}
});
};
(0,react.useEffect)(function () {
if (el.current && html) {
if (html.match(preRegex)) {
window.PR.prettyPrint();
}
}
if (el.current) {
el.current.addEventListener('click', onAncherHandler);
return function () {
var _el$current2;
(_el$current2 = el.current) === null || _el$current2 === void 0 ? void 0 : _el$current2.removeEventListener('click', onAncherHandler);
resetMathExpressions();
cleanToc();
};
}
}, [html, el.current, onAncherHandler]);
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
ref: el,
style: objectSpread2_default()({}, style),
className: "".concat(className ? className : '', " markdown-body "),
dangerouslySetInnerHTML: {
__html: html
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z, {
close: true,
data: data,
type: !!(data !== null && data !== void 0 && data.length) ? type : "",
style: objectSpread2_default()({}, stylesPrev),
onClose: function onClose() {
return setData("");
}
})]
});
});
/***/ }),
/***/ 22619:
/*!*********************************************************************************!*\
!*** ./src/pages/virtualSpaces/Lists/Announcement/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 */ Announcement_Detail; }
});
// EXTERNAL MODULE: ./node_modules/antd/es/message/style/index.js + 1 modules
var style = __webpack_require__(14934);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 1 modules
var message = __webpack_require__(12461);
// EXTERNAL MODULE: ./node_modules/antd/es/modal/style/index.js + 1 modules
var modal_style = __webpack_require__(35611);
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 7 modules
var modal = __webpack_require__(85402);
// 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: ./src/utils/fetch.ts
var fetch = __webpack_require__(84519);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Announcement/Detail/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Detailmodules = ({"flex_box_center":"flex_box_center___sz3L3","flex_space_between":"flex_space_between___Gzqm4","flex_box_vertical_center":"flex_box_vertical_center___T9Asu","flex_box_center_end":"flex_box_center_end___nPRQR","flex_box_column":"flex_box_column___pzMiy","wrap":"wrap___LIi1Y","title":"title___IiWcv","tags":"tags___yQzMA","tag":"tag___u9yxK","btns":"btns___ioKIs"});
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 1 modules
var RenderHtml = __webpack_require__(12768);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
// EXTERNAL MODULE: ./src/components/ui-customization/reset.less?modules
var resetmodules = __webpack_require__(39132);
// EXTERNAL MODULE: ./node_modules/moment/moment.js
var moment = __webpack_require__(30381);
var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
// 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/Announcement/Detail/index.tsx
var Detail = function Detail(_ref) {
objectDestructuringEmpty_default()(_ref);
var _useState = (0,react.useState)({}),
_useState2 = slicedToArray_default()(_useState, 2),
data = _useState2[0],
setData = _useState2[1];
var query = (0,_umi_production_exports.useParams)();
var id = query.id,
virtual_spacesId = query.virtual_spacesId;
(0,react.useEffect)(function () {
if (id) {
getData();
}
}, [id]);
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(query.virtual_spacesId, "/informs/").concat(id, ".json"), {
method: 'get'
});
case 2:
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) !== -1) {
setData(objectSpread2_default()({}, res));
}
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData() {
return _ref2.apply(this, arguments);
};
}();
var handleDelete = function handleDelete() {
modal/* default.confirm */.Z.confirm({
title: '提示',
okText: '确定',
icon: false,
className: resetmodules/* default.CustomTipsModalCss */.Z.CustomTipsModalCss,
cancelText: '取消',
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u786E\u8BA4\u5220\u9664\u300A", data.name, "\u300B\u5417\uFF1F"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt10",
children: "\u5220\u9664\u540E\uFF0C\u5C06\u65E0\u6CD5\u6062\u590D\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C"
})]
}),
onOk: function () {
var _onOk = 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, "/informs/").concat(id, ".json"), {
method: 'delete'
});
case 2:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default.success */.ZP.success('删除成功');
_umi_production_exports.history.push("/vspaces/".concat(virtual_spacesId, "/announcement"));
}
case 4:
case "end":
return _context2.stop();
}
}, _callee2);
}));
function onOk() {
return _onOk.apply(this, arguments);
}
return onOk;
}()
});
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.wrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* HeadBack */.qE, {
title: "\u901A\u77E5\u516C\u544A\u8BE6\u60C5",
onClick: function onClick() {
return _umi_production_exports.history.push("/vspaces/".concat(virtual_spacesId, "/announcement"));
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.btns,
children: [(data === null || data === void 0 ? void 0 : data.can_edit) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
return _umi_production_exports.history.push("/vspaces/".concat(virtual_spacesId, "/announcement/").concat(id, "/edit"));
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-bianji7 font14 mr5"
}), "\u7F16\u8F91"]
})
}), (data === null || data === void 0 ? void 0 : data.can_remove) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
return handleDelete();
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-piliangshanchubeifen font14 mr5"
}), "\u5220\u9664"]
})
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Detailmodules.title,
children: data === null || data === void 0 ? void 0 : data.name
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Detailmodules.tags,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Detailmodules.tag,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u53D1\u5E03\u4EBA"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
children: data.author_name
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Detailmodules.tag,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u6240\u5C5E\u5355\u4F4D"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
children: data.author_department
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Detailmodules.tag,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u65E5\u671F"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
children: moment_default()(data.publish_time).format('YYYY-MM-DD HH:mm')
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: data.description || ''
})]
});
};
/* harmony default export */ var Announcement_Detail = (Detail);
/***/ }),
/***/ 39132:
/*!************************************************************!*\
!*** ./src/components/ui-customization/reset.less?modules ***!
\************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__) {
// extracted by mini-css-extract-plugin
/* harmony default export */ __webpack_exports__["Z"] = ({"flex_box_center":"flex_box_center___vG4eV","flex_space_between":"flex_space_between___qVVxe","flex_box_vertical_center":"flex_box_vertical_center___P8Z8s","flex_box_center_end":"flex_box_center_end___VMme3","flex_box_column":"flex_box_column___VMHwm","CustomCss":"CustomCss___fWNtn","CustomTipsModalCss":"CustomTipsModalCss___MmFkT","dropdownmenus":"dropdownmenus___oVzoj","popupClassNames":"popupClassNames___OcZq7","selectdown":"selectdown___mmcA8"});
/***/ })
}]);

@ -0,0 +1,428 @@
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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/Announcement/Detail/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___sz3L3 {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___Gzqm4 {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___T9Asu {
align-items: center;
box-align: center;
}
.flex_box_center_end___nPRQR {
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___pzMiy {
flex-direction: column;
box-orient: block-axis;
}
.wrap___LIi1Y {
padding: 0 45px;
}
.wrap___LIi1Y .title___IiWcv {
font-size: 16px;
font-weight: 600;
color: #000000;
margin-top: 25px;
text-align: center;
}
.wrap___LIi1Y .tags___yQzMA {
height: 42px;
display: flex;
align-items: center;
padding-left: 30px;
padding-right: 20px;
justify-content: center;
}
.wrap___LIi1Y .tags___yQzMA .tag___u9yxK {
margin-right: 30px;
}
.wrap___LIi1Y .tags___yQzMA .tag___u9yxK span {
font-size: 14px;
color: #5F6368;
margin-right: 10px;
}
.wrap___LIi1Y .tags___yQzMA .tag___u9yxK b {
font-size: 14px;
font-weight: 400;
color: #000000;
}
.wrap___LIi1Y .btns___ioKIs {
margin-left: auto;
display: flex;
align-items: center;
}
.wrap___LIi1Y .btns___ioKIs > div {
display: flex;
align-items: center;
margin-left: 30px;
}
.wrap___LIi1Y .btns___ioKIs > div span {
cursor: pointer;
font-weight: 400;
color: #5F6368;
display: flex;
align-items: center;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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%;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!*******************************************************************************************************************************************************************************************************************************************!*\
!*** 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;
}
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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]!./node_modules/antd/es/rate/style/index.less ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.ant-rate {
box-sizing: border-box;
color: rgba(0, 0, 0, 0.85);
font-size: 12px;
font-variant: tabular-nums;
line-height: 1.66667;
font-feature-settings: tnum, "tnum";
display: inline-block;
margin: 0;
padding: 0;
color: #fadb14;
font-size: 16px;
line-height: inherit;
list-style: none;
outline: none;
}
.ant-rate-disabled .ant-rate-star {
cursor: default;
}
.ant-rate-disabled .ant-rate-star > div:hover {
transform: scale(1);
}
.ant-rate-star {
position: relative;
display: inline-block;
color: inherit;
cursor: pointer;
}
.ant-rate-star:not(:last-child) {
margin-right: 8px;
}
.ant-rate-star > div {
transition: all 0.3s, outline 0s;
}
.ant-rate-star > div:hover {
transform: scale(1.1);
}
.ant-rate-star > div:focus {
outline: 0;
}
.ant-rate-star > div:focus-visible {
outline: 1px dashed #fadb14;
transform: scale(1.1);
}
.ant-rate-star-first,
.ant-rate-star-second {
color: #f0f0f0;
transition: all 0.3s;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.ant-rate-star-first .anticon,
.ant-rate-star-second .anticon {
vertical-align: middle;
}
.ant-rate-star-first {
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 100%;
overflow: hidden;
opacity: 0;
}
.ant-rate-star-half .ant-rate-star-first,
.ant-rate-star-half .ant-rate-star-second {
opacity: 1;
}
.ant-rate-star-half .ant-rate-star-first,
.ant-rate-star-full .ant-rate-star-second {
color: inherit;
}
.ant-rate-text {
display: inline-block;
margin: 0 8px;
font-size: 12px;
}
.ant-rate-rtl {
direction: rtl;
}
.ant-rate-rtl .ant-rate-star:not(:last-child) {
margin-right: 0;
margin-left: 8px;
}
.ant-rate-rtl .ant-rate-star-first {
right: 0;
left: auto;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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;
}
.CustomCss___fWNtn .ant-modal-header {
height: 82px;
font-size: 16px;
font-weight: 500;
color: #000000;
padding: 30px 40px;
border: 0;
}
.CustomCss___fWNtn .ant-modal-body {
padding: 0 40px;
}
.CustomCss___fWNtn .ant-modal-footer {
padding: 30px 40px;
border: 0;
}
.CustomCss___fWNtn .ant-modal-footer button:first-child {
padding: 0 16px;
border-radius: 2px;
border: 1px solid rgba(195, 207, 224, 0.5);
background-color: rgba(248, 249, 252, 0.5);
margin-right: 20px;
height: 32px;
line-height: 30px;
color: #464f66;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-footer button:last-child {
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;
text-shadow: none;
}
.CustomCss___fWNtn .ant-modal-close {
top: 22px;
right: 29px;
}
.CustomCss___fWNtn .ant-modal-close .ant-modal-close-icon {
color: #979797;
font-size: 26px;
}
.CustomTipsModalCss___MmFkT .ant-modal-body {
padding: 0;
}
.CustomTipsModalCss___MmFkT .ant-modal-confirm-title {
height: 82px;
font-size: 16px;
font-weight: 500;
color: #000000;
padding: 30px 40px;
border: 0;
}
.CustomTipsModalCss___MmFkT .ant-modal-confirm-body .ant-modal-confirm-content {
padding: 0 40px;
color: #000000;
font-size: 14px;
margin: 0;
}
.CustomTipsModalCss___MmFkT .ant-modal-confirm-btns {
padding: 30px 40px;
border: 0;
margin: 0;
}
.CustomTipsModalCss___MmFkT .ant-modal-confirm-btns button:first-child {
padding: 0 16px;
border-radius: 2px;
border: 1px solid rgba(195, 207, 224, 0.5);
background-color: rgba(248, 249, 252, 0.5);
margin-right: 20px;
height: 32px;
line-height: 30px;
color: #464f66;
}
.CustomTipsModalCss___MmFkT .ant-modal-confirm-btns button:last-child {
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;
}
.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;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */

@ -0,0 +1,958 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[65816],{
/***/ 36579:
/*!*********************************************************!*\
!*** ./src/components/PreviewAll/index.tsx + 1 modules ***!
\*********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ PreviewAll; }
});
// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
var style = __webpack_require__(29913);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/style/index.js + 1 modules
var tooltip_style = __webpack_require__(38390);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(84908);
// 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);
;// CONCATENATED MODULE: ./src/components/PreviewAll/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var PreviewAllmodules = ({"wrp":"wrp___dq7YK","bgBlack":"bgBlack___ARIUV","monaco":"monaco___VnZC3","darkBlue":"darkBlue___UprA9","close":"close___LKoWu","embed":"embed___hvpEJ"});
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/ArrowDownOutlined.js + 1 modules
var ArrowDownOutlined = __webpack_require__(77171);
// EXTERNAL MODULE: ./src/components/monaco-editor/index.jsx + 3 modules
var monaco_editor = __webpack_require__(8691);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./src/service/exercise.ts
var exercise = __webpack_require__(51412);
// 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/components/PreviewAll/index.tsx
/* harmony default export */ var PreviewAll = (function (_ref) {
var _data, _data2, _data3, _data4, _data5, _data6;
var _ref$editOffice = _ref.editOffice,
editOffice = _ref$editOffice === void 0 ? 'view' : _ref$editOffice,
data = _ref.data,
theme = _ref.theme,
type = _ref.type,
filename = _ref.filename,
monacoEditor = _ref.monacoEditor,
className = _ref.className,
style = _ref.style,
close = _ref.close,
onClose = _ref.onClose,
hasMask = _ref.hasMask,
disabledDownload = _ref.disabledDownload;
var _useState = (0,react.useState)('https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt'),
_useState2 = slicedToArray_default()(_useState, 2),
src = _useState2[0],
setSrc = _useState2[1];
var _useState3 = (0,react.useState)(""),
_useState4 = slicedToArray_default()(_useState3, 2),
token = _useState4[0],
setToken = _useState4[1];
var _useState5 = (0,react.useState)(),
_useState6 = slicedToArray_default()(_useState5, 2),
officeData = _useState6[0],
setOfficeData = _useState6[1];
var officePath = window.ENV === "build" ? "/react/build" : "";
var apiServer = location.host.startsWith("localhost") ? env/* default.PROXY_SERVER */.Z.PROXY_SERVER : env/* default.API_SERVER */.Z.API_SERVER;
var size;
var unit = 1024 * 1024;
var maxSize = 10 * unit;
var closeRef = (0,react.useRef)();
if ((_data = data) !== null && _data !== void 0 && _data.startsWith("/api") && type !== "txt") {
data = env/* default.API_SERVER */.Z.API_SERVER + data;
}
if (type === "office") {
size = (0,util/* parseUrl */.en)(data).filesize;
if (size > maxSize) {
type = "other";
}
}
if (filename) monacoEditor.filename = filename;
(0,react.useEffect)(function () {
var _document$cookie, _document$cookie$repl;
var cookies = (_document$cookie = document.cookie) === null || _document$cookie === void 0 ? void 0 : (_document$cookie$repl = _document$cookie.replace(/\s/g, "")) === null || _document$cookie$repl === void 0 ? void 0 : _document$cookie$repl.split(";");
cookies === null || cookies === void 0 ? void 0 : cookies.map(function (item) {
var i = item.split("=");
if (i[0] === '_educoder_session') {
setToken(i[1]);
}
});
}, []);
(0,react.useEffect)(function () {
if (type === "office") getData();
}, [type, data]);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _url, _id, res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
console.log("data:", data);
_url = data;
if (!data.startsWith("http")) {
_url = location.origin + _url;
}
_id = new URL(_url).pathname.split("/").pop();
_context.next = 6;
return (0,exercise/* setEcsAttachment */.gJ)({
attachment_id: _id
});
case 6:
res = _context.sent;
setOfficeData(res);
case 8:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData() {
return _ref2.apply(this, arguments);
};
}();
var handleClick = function handleClick() {
if (data.startsWith("http") || data.startsWith('blob:')) {
handleDown();
return;
}
(0,util/* downloadFile */.Sv)(filename || 'educoder', data, filename);
};
var handleDown = function handleDown() {
(0,util/* downLoadLink */.Nd)(filename || 'educoder', decodeURIComponent(data));
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: objectSpread2_default()({}, style || {}),
className: "".concat(hasMask && PreviewAllmodules.bgBlack, " ").concat(!!type ? PreviewAllmodules.wrp : "hide"),
children: [close && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: PreviewAllmodules.close,
ref: closeRef,
children: [!disabledDownload && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",
getPopupContainer: function getPopupContainer() {
return closeRef.current;
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: handleDown,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-quxiaozhiding"
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u5173\u95ED",
getPopupContainer: function getPopupContainer() {
return closeRef.current;
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "",
onClick: onClose,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-guanbi1"
})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "".concat(PreviewAllmodules[className], " ").concat(className, " ").concat(PreviewAllmodules.monaco, " ").concat(type === "txt" ? "show" : "hide"),
children: type === "txt" && /*#__PURE__*/(0,jsx_runtime.jsx)(monaco_editor/* default */.ZP, objectSpread2_default()({}, monacoEditor))
}), type === "audio" && /*#__PURE__*/(0,jsx_runtime.jsx)("audio", {
src: "".concat(((_data2 = data) === null || _data2 === void 0 ? void 0 : _data2.indexOf("http://")) > -1 || ((_data3 = data) === null || _data3 === void 0 ? void 0 : _data3.indexOf("https://")) > -1 ? "" : "data:audio/mp3;base64,").concat(data),
autoPlay: true
}), type === "video" && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: ((_data4 = data) === null || _data4 === void 0 ? void 0 : _data4.indexOf("http")) > -1 ? /*#__PURE__*/(0,jsx_runtime.jsx)("video", {
controls: true,
src: "".concat(data),
autoPlay: true
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("video", {
controls: true,
src: "data:video/mp4;base64,".concat(data),
autoPlay: true
})
}), type === 'office' && officeData && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", {
src: "".concat(officePath, "/office.html?key=").concat(officeData.key, "&url=").concat(apiServer + officeData.url, "&callbackUrl=").concat(apiServer + officeData.callbackUrl, "&fileType=").concat(officeData.fileType, "&title=").concat(officeData.title, "&model=").concat(editOffice, "&officeServer=").concat(env/* default.ONLYOFFICE */.Z.ONLYOFFICE, "&disabledDownload=").concat(!!disabledDownload)
}), type === 'html' && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", {
src: data + '&disposition=inline'
}), type === 'pdf' && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", {
src: "".concat(officePath, "/js/pdfview/index.html?url=").concat(data, "&disabledDownload=").concat(!!disabledDownload)
}) //<embed className={styles.embed + "#toolbar=0"} src={data} />
, type === "image" && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: "".concat(((_data5 = data) === null || _data5 === void 0 ? void 0 : _data5.indexOf("http://")) > -1 || ((_data6 = data) === null || _data6 === void 0 ? void 0 : _data6.indexOf("https://")) > -1 ? "" : "data:image/png;base64,").concat(data)
}), type === "other" && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, {
type: "primary",
size: "large",
onClick: handleClick,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ArrowDownOutlined/* default */.Z, {}), "\u70B9\u51FB\u4E0B\u8F7D"]
})
}), type === "download" && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, {
type: "primary",
size: "large",
onClick: handleClick,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ArrowDownOutlined/* default */.Z, {}), "\u70B9\u51FB\u4E0B\u8F7D"]
})]
});
});
/***/ }),
/***/ 12768:
/*!*********************************************************!*\
!*** ./src/components/RenderHtml/index.tsx + 1 modules ***!
\*********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ RenderHtml; }
});
// 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/katex/dist/katex.min.css
var katex_min = __webpack_require__(81897);
// EXTERNAL MODULE: ./node_modules/marked/lib/marked.js
var marked = __webpack_require__(47084);
var marked_default = /*#__PURE__*/__webpack_require__.n(marked);
// EXTERNAL MODULE: ./node_modules/marked/src/helpers.js
var helpers = __webpack_require__(90621);
;// CONCATENATED MODULE: ./src/utils/marked.ts
function indentCodeCompensation(raw, text) {
var matchIndentToCode = raw.match(/^(\s+)(?:```)/);
if (matchIndentToCode === null) {
return text;
}
var indentToCode = matchIndentToCode[1];
return text.split('\n').map(function (node) {
var matchIndentInNode = node.match(/^\s+/);
if (matchIndentInNode === null) {
return node;
}
var _matchIndentInNode = slicedToArray_default()(matchIndentInNode, 1),
indentInNode = _matchIndentInNode[0];
if (indentInNode.length >= indentToCode.length) {
return node.slice(indentToCode.length);
}
return node;
}).join('\n');
}
//兼容之前的 ##标题式写法
var toc = [];
var ctx = ["<ul>"];
var renderer = new (marked_default()).Renderer();
var headingRegex = /^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;
function cleanToc() {
toc.length = 0;
ctx = ["<ul>"];
}
var lines = {
overflow: "hidden",
WebkitBoxOrient: "vertical",
display: "-webkit-box",
WebkitLineClamp: 2
};
function buildToc(coll, k, level, ctx) {
if (k >= coll.length || coll[k].level <= level) {
return k;
}
var node = coll[k];
ctx.push("<li><a href='#" + node.anchor + "'>" + node.text + "</a>");
k++;
var childCtx = [];
k = buildToc(coll, k, node.level, childCtx);
if (childCtx.length > 0) {
ctx.push("<ul>");
childCtx.forEach(function (idm) {
ctx.push(idm);
});
ctx.push("</ul>");
}
ctx.push("</li>");
k = buildToc(coll, k, level, ctx);
return k;
}
function getTocContent() {
buildToc(toc, 0, 0, ctx);
ctx.push("</ul>");
return ctx.join("");
}
var tokenizer = {
heading: function heading(src) {
var cap = headingRegex.exec(src);
if (cap) {
return {
type: 'heading',
raw: cap[0],
depth: cap[1].length,
text: cap[2]
};
}
},
fences: function fences(src) {
var cap = this.rules.block.fences.exec(src);
if (cap) {
var raw = cap[0];
var text = indentCodeCompensation(raw, cap[3] || '');
var lang = cap[2] ? cap[2].trim() : cap[2];
if (['latex', 'katex', 'math'].indexOf(lang) >= 0) {
var id = next_id();
var expression = text;
text = id;
math_expressions[id] = {
type: 'block',
expression: expression
};
}
return {
type: 'code',
raw: raw,
lang: lang,
text: text
};
}
}
};
var latexRegex = /(?:\${2})([^\n`]+?)(?:\${2})/gi;
var katex_count = 0;
var next_id = function next_id() {
return "__special_katext_id_".concat(katex_count++, "__");
};
var math_expressions = {};
function getMathExpressions() {
return math_expressions;
}
function resetMathExpressions() {
katex_count = 0;
math_expressions = {};
}
function replace_math_with_ids(text) {
text = text.replace(latexRegex, function (_match, expression) {
var id = next_id();
math_expressions[id] = {
type: 'inline',
expression: expression
};
return id;
});
return text;
}
var original_listitem = renderer.listitem;
renderer.listitem = function (text) {
return original_listitem(replace_math_with_ids(text));
};
var original_paragraph = renderer.paragraph;
renderer.paragraph = function (text) {
return original_paragraph(replace_math_with_ids(text));
};
var original_tablecell = renderer.tablecell;
renderer.tablecell = function (content, flags) {
return original_tablecell(replace_math_with_ids(content), flags);
};
renderer.code = function (code, infostring, escaped) {
var lang = (infostring || '').match(/\S*/)[0];
if (!lang) {
return '<pre class="prettyprint linenums"><code>' + (escaped ? code : (0,helpers.escape)(code, true)) + '</code></pre>';
}
if (['latex', 'katex', 'math'].indexOf(lang) >= 0) {
return "<p class='editormd-tex'>".concat(code, "</p>");
} else {
return "<pre class=\"prettyprint linenums\"><code class=\"language-".concat(infostring, "\">").concat(escaped ? code : (0,helpers.escape)(code, true), "</code></pre>\n");
}
};
renderer.heading = function (text, level, raw) {
var anchor = this.options.headerPrefix + raw.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g, '-');
toc.push({
anchor: anchor,
level: level,
text: text
});
return '<h' + level + ' id="' + anchor + '">' + text + '</h' + level + '>';
};
marked_default().setOptions({
silent: true,
gfm: true,
pedantic: false
});
marked_default().use({
tokenizer: tokenizer,
renderer: renderer
});
/* harmony default export */ var utils_marked = ((marked_default()));
// EXTERNAL MODULE: ./node_modules/code-prettify/src/prettify.js
var prettify = __webpack_require__(11771);
// EXTERNAL MODULE: ./node_modules/hls.js/dist/hls.js
var dist_hls = __webpack_require__(67631);
var hls_default = /*#__PURE__*/__webpack_require__.n(dist_hls);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(59758);
// EXTERNAL MODULE: ./node_modules/katex/dist/katex.js
var katex = __webpack_require__(20527);
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 1 modules
var PreviewAll = __webpack_require__(36579);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/components/RenderHtml/index.tsx
var preRegex = /<pre[^>]*>/g;
function _unescape(str) {
var div = document.createElement('div');
div.innerHTML = str;
return div.childNodes.length === 0 ? '' : div.childNodes[0].nodeValue;
}
/* harmony default export */ var RenderHtml = (function (_ref) {
var _ref$value = _ref.value,
value = _ref$value === void 0 ? '' : _ref$value,
className = _ref.className,
showTextOnly = _ref.showTextOnly,
showLines = _ref.showLines,
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$stylesPrev = _ref.stylesPrev,
stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev;
var str = String(value);
var _useState = (0,react.useState)(""),
_useState2 = slicedToArray_default()(_useState, 2),
data = _useState2[0],
setData = _useState2[1];
var _useState3 = (0,react.useState)("office"),
_useState4 = slicedToArray_default()(_useState3, 2),
type = _useState4[0],
setType = _useState4[1];
var html = (0,react.useMemo)(function () {
try {
var reg = /\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g;
var reg2 = /\"\/api\/attachments\/|\"\/attachments\/download\//g;
var reg3 = /\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;
str = str.replace(reg, "(" + env/* default.API_SERVER */.Z.API_SERVER + "/api/attachments/").replace(reg2, '"' + env/* default.API_SERVER */.Z.API_SERVER + "/api/attachments/").replace(reg3, '"' + env/* default.API_SERVER */.Z.API_SERVER + "/files/uploads/").replaceAll("http://video.educoder", "https://video.educoder").replaceAll("http://www.educoder.net/api", "https://data.educoder.net/api").replaceAll("https://www.educoder.net/api", "https://data.educoder.net/api").replace(/\r\n/g, "\n");
// str = str.replace(new RegExp("(?<!\\n)\\n(?!\\n)", "g"), " \n")
} catch (e) {}
;
var rs = utils_marked(str);
var math_expressions = getMathExpressions();
if (str.match(/\[TOC\]/)) {
rs = rs.replace('<p>[TOC]</p>', getTocContent());
cleanToc();
}
rs = rs.replace(/(__special_katext_id_\d+__)/g, function (_match, capture) {
var _math_expressions$cap = math_expressions[capture],
type = _math_expressions$cap.type,
expression = _math_expressions$cap.expression;
return (0,katex.renderToString)(_unescape(expression) || '', {
displayMode: type === 'block',
throwOnError: false,
output: 'html'
});
});
rs = rs.replace(/▁/g, '▁▁▁');
resetMathExpressions();
// return dompurify.sanitize(rs)
if (showTextOnly) {
var dom = document.createElement('div');
dom.innerHTML = rs;
return dom.innerText;
}
setTimeout(function () {
return onLoad();
}, 500);
return rs;
}, [str]);
var el = (0,react.useRef)();
lines.WebkitLineClamp = showLines;
if (showLines) {
style = objectSpread2_default()(objectSpread2_default()({}, style), lines);
}
function onAncherHandler(e) {
var target = e.target;
if (target.tagName.toUpperCase() === 'A') {
var ancher = target.getAttribute('href');
if (ancher.indexOf("office") > -1) {
e.preventDefault();
setData(ancher);
setType("office");
} else if (ancher.indexOf("application/pdf") > -1) {
e.preventDefault();
setData(ancher);
setType("pdf");
} else if (ancher.indexOf("text/html") > -1) {
e.preventDefault();
setData(ancher);
setType("html");
} else if (ancher.startsWith('#')) {
e.preventDefault();
var viewEl = document.getElementById(ancher.replace('#', ''));
if (viewEl) {
viewEl.scrollIntoView(true);
}
}
}
}
var onLoad = function onLoad() {
var _el$current;
var videoElement = (_el$current = el.current) === null || _el$current === void 0 ? void 0 : _el$current.querySelectorAll('video');
videoElement === null || videoElement === void 0 ? void 0 : videoElement.forEach(function (item) {
item.oncontextmenu = function () {
return false;
};
if (item.src.indexOf('.m3u8') > -1) {
if (item.canPlayType('application/vnd.apple.mpegurl')) {} else if (hls_default().isSupported()) {
var hls = new (hls_default())();
hls.loadSource(item.src);
hls.attachMedia(item);
}
}
});
};
(0,react.useEffect)(function () {
if (el.current && html) {
if (html.match(preRegex)) {
window.PR.prettyPrint();
}
}
if (el.current) {
el.current.addEventListener('click', onAncherHandler);
return function () {
var _el$current2;
(_el$current2 = el.current) === null || _el$current2 === void 0 ? void 0 : _el$current2.removeEventListener('click', onAncherHandler);
resetMathExpressions();
cleanToc();
};
}
}, [html, el.current, onAncherHandler]);
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
ref: el,
style: objectSpread2_default()({}, style),
className: "".concat(className ? className : '', " markdown-body "),
dangerouslySetInnerHTML: {
__html: html
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z, {
close: true,
data: data,
type: !!(data !== null && data !== void 0 && data.length) ? type : "",
style: objectSpread2_default()({}, stylesPrev),
onClose: function onClose() {
return setData("");
}
})]
});
});
/***/ }),
/***/ 5563:
/*!**************************************************************************!*\
!*** ./src/pages/virtualSpaces/Lists/Announcement/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 */ Announcement; }
});
// EXTERNAL MODULE: ./node_modules/antd/es/pagination/style/index.js + 1 modules
var style = __webpack_require__(14182);
// EXTERNAL MODULE: ./node_modules/antd/es/pagination/index.js + 10 modules
var pagination = __webpack_require__(260);
// EXTERNAL MODULE: ./node_modules/antd/es/spin/style/index.js + 1 modules
var spin_style = __webpack_require__(22536);
// EXTERNAL MODULE: ./node_modules/antd/es/spin/index.js
var spin = __webpack_require__(11382);
// EXTERNAL MODULE: ./node_modules/antd/es/message/style/index.js + 1 modules
var message_style = __webpack_require__(14934);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 1 modules
var message = __webpack_require__(12461);
// EXTERNAL MODULE: ./node_modules/antd/es/modal/style/index.js + 1 modules
var modal_style = __webpack_require__(35611);
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 7 modules
var modal = __webpack_require__(85402);
// 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: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(82982);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Announcement/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Announcementmodules = ({"flex_box_center":"flex_box_center___uWmAu","flex_space_between":"flex_space_between___BrEbQ","flex_box_vertical_center":"flex_box_vertical_center___DkRSF","flex_box_center_end":"flex_box_center_end___Exn1w","flex_box_column":"flex_box_column___TBrGv","wrap":"wrap___fcPQI","list":"list___DJifR","title":"title___tvX3h","des":"des___NKWF6","footer":"footer___Nj_Tl","tag":"tag___SySVL","btns":"btns___WdmJv","line":"line___c1Gmr","b1":"b1___T3_ck","b2":"b2___cxZqr"});
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Announcement/imgs/add.png
var add_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACjVJREFUWEfNlwtwE3Uex7/7SrZNmqRJ06ZPCKWt2FJeFdGTp1d5CMxJFRkV0ONGxDc+0FNP9JzTU1FwRofjnPMUxMdUlJED5byZKr55FEoFWsA+k9Am6ea5yWazu/+bTVtlnDsPBrhxZ/75/zf5Z7+f/++1/z+FX9hF/cJ48H8B2rSJcKqw0VxaMzm1YEFd4ueMcMGBvjlxwrLnlYcWGzXhShDG56yc+uoNdz3R9t+gLjAQof/2p3tWRXt3P+fKjmR3dCehWqs+q19036rL5i859p+gLhzQdYRZd/Fjl0m9OzZfOp52s4qCpq/7wNJxjB5T8+ncWz+/Obcoq/unUBcEqGlXU8mON59Z4e06uOyKyXnu6b/KpcK+MFqOB0DRKRQXsEphxZxnply/9Y8ApZwOdV6BOpua+Pc+fufajkOf3CmKgfEWR7Zx1tQy1I7hEPQICMVC8Aoq8mwSykqKW621W+eX19T1nHegXbt2GU9+vmNKd8fBu8P+9jk2G5ftKHTA7sjCRSN5uEcAQq8ARRPgESiEoyJqK4yarWTO0oc3vvluYyOlDkOdk4X27yfcl9vXjAx4D6/w97as4o1JS9lIF1zFdtgsBmTzGiwWCvl5aUS9IUipIAIpGh1dMi5yJVFSNe1tVLxxd1VVUfCcgbZs2lTY/u2H82JC5yol6ZtUXJaLEe4CuPKyYLdwsFk5wEgQT8rI4RMQTwkQwgEEZQZdHhU2JYoJE6q81hHTG9yzXt4LUESHOmsLtfQR0wdPLL40HDy5Ki32z7fnqvyoiiKMLLbCaTfCYTcgJy8LxjwTYqoGX1sQvCYg5Q+jx9OPfpmBL0jABWOYVs0hd+zCe59u3rrp9Scp6ayAZqwl7DVY8+vj+/9xG0NHphc4WdtItwPuklwUubJgL+CRVWACa8sBeDNUOguxUAKeg+2AGAATi6O1xYMeERhIUOCEJOrzE8i/fM4u85Rbl5WMWTRwxkDb395euu/jjb8L+1t/m5dHl5SPykW524HSIhPsrmxkuXJAW60AlwNQPAhYaBqDeCSCruZDSIUGYFGT2PdVD7wigczwoBMyJksBFNfV+oy19fUV8144+j+ACLX5+XXZXu/RG33ff7Ey2xitrqnON1aMdqC0xAx7cQ6M+VZQZivAWAAYAdCZ2CTQMr0ohtH+dTNifREU8AqOHgrCrxhATCYoogTXkTa4inNI9rSlNzzHvdTYuJhS/0MMEerFF9fzir9tquBpuUdLdF5VUWFja6oLUV6VC1uhBVyeHeBtAGUCYBhKED1z9SYDJAWiphALBdH6xXGEgypG2gm6O2X0iCw0joMkSaAPHIUpmYC74ZZnC++4//EaqkbOADV90GSLBr8yFl/9SOyTdauqksKJFenkyaXuEtoysa4M7ionrIVWMHn5AGsFwANgAKQB6IVWAlFEKLIIORJDxB9ByB+FrzuMYCgBo8mO8gIa/T1JNHsIGCMLWSPguo7D2BNB2ex5O8svm3n9uNkPitQ3u7aV+E82PtXn6bV39pvbWOJZUOyIj5l4STEqastgK3ICVgdA5wxZQ7dCEtASUKQYJDEKMRBG0BdG8FQMQb+IaCiFVFJDOqWBy6HhLC1EqZODIsTR9J0M8BwUUHCmejEi4Idx1MR247SGmdPmPHqK2tP46LNM8N01h1oEaKwZ0+tHwT3ODXNB0aBbMi7RIRLQEgOIR8KIBMIIeAX0e6MI9sUREiSIcQ2KAtAUBZqmQdMMVJUgLqcwurIAF1U5YFdj+NdeETGKg0xouAwBzOA90IyFojLhwfrauau/pg5sX7yfTuyfFJbzMGHmRFhLSzOZkomFVBTRYBCCPwC/L4TeDgH+vjiCQgrxWBopGdBUgBAKKqGgEQqKSqAoBFJaQypNIElpVIzIwVVXujHJDRz4dgBdcRYJsMiio5hl74bdwCNU+eBN1fPWbqWad847qUXay62VtRg9aTKkUB8GfAGc6u1Hb+cAPN4o/P0JhCMy4nECWQE0DRlxVe81QNVIZqz3mXI7dOm1VyUaeIZgxpQi3PgbF/rbB3DMqyHGGJGSE6gydmF0lgq5cvXvqxY+/2dqz3uLWtRQc60ICzSDGR1tffD64hgQZMREfZWAqg4CEI3KJDT5QZWAgu4igKJ0dw01/Z4eHOtZI8sKRhTyuOPmctiJjLa2BCJsFgakNIzJLriRRPaY5S+Nu+Hv91I73rhlBx1pmv/pl0E0f6+BUHRGeLim0LokrQsjIzzcGF2cBpih7/SeoQfhMk2H0XsGSEkEDEtwzex8TKvKQdfReMZCAYVCWOiBLRZDyfglmy+9+a3l1Lt/fegpLr7tsWNHBOz8UkJ2DgeOAVgGyIgOj4fEGWYYisrA/Hg/OHcwqAfn6ED6HFkmSEoaxlfzmFvnQMiTRlykETYY0OE7BU6IoHL8wm0zb3//Wuqt19bPindt/MhpCht2fpoEWBa8YejhNDUIpVvo9NWfboEhS+niP7hJt45u0qHf9MAKhTQUl9C4YmwO6LgBgjeNJG/Edz0DUIUYai+Z/f7cez9soHZv3m0Kh195vdD4z2u7PFZ0eFPgmNTgypnhFNbdxoBh2cFwzQjqHyQjPOzOzHio9g8DDcdWNKqBMQDjqg2wwIRghwohpuBYXwJqNIHJMxq2LFi9dRkFEGrPh49PSwe3vSP5O117W00wWIoO8bxRUuR4HiGyTVNSFk2TDBRUsCwNllHAIAWaoYfAGWi0AbRuRWY4wPVFDMMDqkIQi2uoGcvCmW2C0EvjyLE4OvuTyIKCKXOXvbDwzr88MPjqIIRNvXnrosCJfXfHpPw2g7NuQyIeC5NEZxZlyMoFxVmA9ITQwOGH0/GgneccJ822ohY5GXbRRHGoimgT5aiDpsDp0CAyGHbQ7Zk4Y+lMExNAcQmD6koTEgEeBw6KONwegdPKoX7J/StmL3/8tR9ermvXErpIWpxTNKo6vWDlEz85XRK6tdXv3LN90UdqtGuCgS7Zy1imLJTltBg7dZzJH1NeryYPvZyOnipQFVtbmqp6WyWSQ07G8jUllq8okl2VE7lpOWUlkPhxtRqXZzIzfR4WLd/1wWgp9V2x6LaZVy+5//gZ7xjvuosYR1nnbTKQ7uVmdYCAH/9KTye9AdkcO6Xe+ogc71kq9X1PFYxquO+T1g0vPfkkiF6vGhsbuex02hSL+q2aLDlSaTlPSx2YS8cPLY/645ZIDInSCQ1P19avXFdXV5c+YyDdtdu3bLn88LcbXi3MjVzMJuKIxOw+i9PMllXQ+QFfLwxc2b7S2psaJs++o/fnzu9NnYTvfu++hT1Hmqbnusa2Vl5cv2X2smXiGe8Yf3w4odavfaBhwPvxH1xOrSbfmqZzLDTEVEpNJfgD7rEr16zfsvqL0481Pwd23o7S69euHakq30wtcJKxZjMhLEk3FxTd/tnkqxf3nS3A+TtKX0eY3Y+BNwigZs5EAqAG963neJ1VDJ2j1hn9/RcH9G/18YRhbfi9pgAAAABJRU5ErkJggg==";
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(84519);
// EXTERNAL MODULE: ./node_modules/moment/moment.js
var moment = __webpack_require__(30381);
var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 33 modules
var ui_customization = __webpack_require__(85343);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(7);
// EXTERNAL MODULE: ./src/components/ui-customization/reset.less?modules
var resetmodules = __webpack_require__(39132);
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 1 modules
var RenderHtml = __webpack_require__(12768);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Announcement/index.tsx
var Page = function Page(_ref) {
var globalSetting = _ref.globalSetting,
dispatch = _ref.dispatch,
virtualSpaces = _ref.virtualSpaces;
var _useState = (0,react.useState)([]),
_useState2 = slicedToArray_default()(_useState, 2),
list = _useState2[0],
setList = _useState2[1];
var _useState3 = (0,react.useState)(0),
_useState4 = slicedToArray_default()(_useState3, 2),
total = _useState4[0],
setTotal = _useState4[1];
var _useState5 = (0,react.useState)(true),
_useState6 = slicedToArray_default()(_useState5, 2),
loading = _useState6[0],
setLoading = _useState6[1];
var virtualSpacesDetails = virtualSpaces.virtualSpacesDetails;
var query = (0,_umi_production_exports.useParams)();
var _useState7 = (0,react.useState)({
page: 1,
limit: 20
}),
_useState8 = slicedToArray_default()(_useState7, 2),
params = _useState8[0],
setParams = _useState8[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) {
params.page = page;
setParams(objectSpread2_default()({}, params));
getData(params);
};
var handleDelete = function handleDelete(item) {
modal/* default.confirm */.Z.confirm({
title: '提示',
okText: '确定',
icon: false,
className: resetmodules/* default.CustomTipsModalCss */.Z.CustomTipsModalCss,
cancelText: '取消',
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u786E\u8BA4\u5220\u9664\u300A", item.name, "\u300B\u5417\uFF1F"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt10",
children: "\u5220\u9664\u540E\uFF0C\u5C06\u65E0\u6CD5\u6062\u590D\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C"
})]
}),
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(item.id, ".json"), {
method: 'delete'
});
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 permission = (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.is_member) || (0,authority/* isSuperAdmins */.Ny)();
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: Announcementmodules.wrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomTabs */.YG, {
value: 'all',
onChange: function onChange() {},
tabBarExtraContent: permission && /*#__PURE__*/(0,jsx_runtime.jsxs)(ui_customization/* CustomButton */.op, {
onClick: function onClick() {
return _umi_production_exports.history.push("/vspaces/".concat(query.virtual_spacesId, "/announcement/add"));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
width: 18,
src: add_namespaceObject,
style: {
margin: '-2px 4px 0 0'
}
}), "\u53D1\u5E03\u65B0\u516C\u544A"]
}),
dataSource: [{
id: 'all',
name: '通知公告',
total: total
}]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(spin/* default */.Z, {
spinning: loading,
children: [!list.length && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {}), list === null || list === void 0 ? void 0 : list.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Announcementmodules.list,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
onClick: function onClick() {
return _umi_production_exports.history.push("/vspaces/".concat(query.virtual_spacesId, "/announcement/").concat(item.id, "/detail"));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Announcementmodules.title,
children: item.name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
showLines: 1,
showTextOnly: true,
className: Announcementmodules.des,
value: item.description
}, 1)]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Announcementmodules.footer,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Announcementmodules.tag,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u53D1\u5E03\u4EBA"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
children: item.author_name
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Announcementmodules.tag,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u6240\u5C5E\u5355\u4F4D"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
children: item.author_department
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Announcementmodules.tag,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u65E5\u671F"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
children: moment_default()(item.publish_time).format('YYYY-MM-DD HH:mm')
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Announcementmodules.btns,
children: [item.can_edit && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
onClick: function onClick() {
return _umi_production_exports.history.push("/vspaces/".concat(query.virtual_spacesId, "/announcement/").concat(item.id, "/edit"));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Announcementmodules.line,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Announcementmodules.b1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Announcementmodules.b2
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-bianji7 font14 mr5"
}), "\u7F16\u8F91"]
})]
}), item.can_remove && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
onClick: function onClick() {
return handleDelete(item);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Announcementmodules.line,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Announcementmodules.b1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Announcementmodules.b2
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-piliangshanchubeifen font14 mr5"
}), "\u5220\u9664"]
})]
})]
})]
})]
});
})]
}), /*#__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: "pb20 mt20"
})]
});
};
/* harmony default export */ var Announcement = ((0,_umi_production_exports.connect)(function (_ref3) {
var virtualSpaces = _ref3.virtualSpaces,
globalSetting = _ref3.globalSetting;
return {
globalSetting: globalSetting,
virtualSpaces: virtualSpaces
};
})(Page));
/***/ }),
/***/ 39132:
/*!************************************************************!*\
!*** ./src/components/ui-customization/reset.less?modules ***!
\************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__) {
// extracted by mini-css-extract-plugin
/* harmony default export */ __webpack_exports__["Z"] = ({"flex_box_center":"flex_box_center___vG4eV","flex_space_between":"flex_space_between___qVVxe","flex_box_vertical_center":"flex_box_vertical_center___P8Z8s","flex_box_center_end":"flex_box_center_end___VMme3","flex_box_column":"flex_box_column___VMHwm","CustomCss":"CustomCss___fWNtn","CustomTipsModalCss":"CustomTipsModalCss___MmFkT","dropdownmenus":"dropdownmenus___oVzoj","popupClassNames":"popupClassNames___OcZq7","selectdown":"selectdown___mmcA8"});
/***/ })
}]);

@ -0,0 +1,191 @@
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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/Homepage/index.less?modules ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___mN1SM {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between____sOaR {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___EVXyH {
align-items: center;
box-align: center;
}
.flex_box_center_end___nkeyi {
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___Sx9kn {
flex-direction: column;
box-orient: block-axis;
}
.wrap___PN7w0 {
padding: 0 45px;
}
.wrap___PN7w0 .head___oRcox {
height: 78px;
display: flex;
justify-content: space-between;
align-items: center;
}
.wrap___PN7w0 .head___oRcox b {
font-size: 17px;
color: #333333;
}
.wrap___PN7w0 .head___oRcox span {
cursor: pointer;
color: #3061D0;
}
.btns___gs5ce {
display: flex;
align-items: center;
}
.btns___gs5ce .confirm___a86Xk {
width: 128px;
height: 38px;
background: #3061D0;
box-shadow: 0px 2px 4px 0px #E0DFE1;
border-radius: 2px;
line-height: 38px;
font-size: 14px;
color: #FFFFFF;
text-align: center;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: pointer;
}
.btns___gs5ce .cancel___DXA9D {
width: 60px;
height: 38px;
background: #F8F9FC;
border-radius: 2px;
opacity: 0.5;
border: 1px solid #C3CFE0;
line-height: 36px;
font-size: 14px;
color: #464F66;
text-align: center;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: pointer;
margin-left: 20px;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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]!./node_modules/antd/es/rate/style/index.less ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.ant-rate {
box-sizing: border-box;
color: rgba(0, 0, 0, 0.85);
font-size: 12px;
font-variant: tabular-nums;
line-height: 1.66667;
font-feature-settings: tnum, "tnum";
display: inline-block;
margin: 0;
padding: 0;
color: #fadb14;
font-size: 16px;
line-height: inherit;
list-style: none;
outline: none;
}
.ant-rate-disabled .ant-rate-star {
cursor: default;
}
.ant-rate-disabled .ant-rate-star > div:hover {
transform: scale(1);
}
.ant-rate-star {
position: relative;
display: inline-block;
color: inherit;
cursor: pointer;
}
.ant-rate-star:not(:last-child) {
margin-right: 8px;
}
.ant-rate-star > div {
transition: all 0.3s, outline 0s;
}
.ant-rate-star > div:hover {
transform: scale(1.1);
}
.ant-rate-star > div:focus {
outline: 0;
}
.ant-rate-star > div:focus-visible {
outline: 1px dashed #fadb14;
transform: scale(1.1);
}
.ant-rate-star-first,
.ant-rate-star-second {
color: #f0f0f0;
transition: all 0.3s;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.ant-rate-star-first .anticon,
.ant-rate-star-second .anticon {
vertical-align: middle;
}
.ant-rate-star-first {
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 100%;
overflow: hidden;
opacity: 0;
}
.ant-rate-star-half .ant-rate-star-first,
.ant-rate-star-half .ant-rate-star-second {
opacity: 1;
}
.ant-rate-star-half .ant-rate-star-first,
.ant-rate-star-full .ant-rate-star-second {
color: inherit;
}
.ant-rate-text {
display: inline-block;
margin: 0 8px;
font-size: 12px;
}
.ant-rate-rtl {
direction: rtl;
}
.ant-rate-rtl .ant-rate-star:not(:last-child) {
margin-right: 0;
margin-left: 8px;
}
.ant-rate-rtl .ant-rate-star-first {
right: 0;
left: auto;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */

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

Loading…
Cancel
Save