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

1088 lines
57 KiB

"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[17482],{
/***/ 25486:
/*!**********************************************!*\
!*** ./src/components/AsyncButton/index.tsx ***!
\**********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Z: function() { return /* binding */ AsyncButton; }
/* harmony export */ });
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js */ 39647);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd */ 3113);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var _excluded = ["children"];
var AsyncButton = function AsyncButton(_ref) {
var children = _ref.children,
props = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4___default()(_ref, _excluded);
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(false),
_useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
btnLoading = _useState2[0],
setBtnLoading = _useState2[1];
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, props), {}, {
loading: btnLoading,
onClick: ( /*#__PURE__*/function () {
var _ref2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee(e) {
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.prev = 0;
setBtnLoading(true);
_context.next = 4;
return props.onClick(e);
case 4:
setBtnLoading(false);
_context.next = 11;
break;
case 7:
_context.prev = 7;
_context.t0 = _context["catch"](0);
console.error(_context.t0);
setBtnLoading(false);
case 11:
case "end":
return _context.stop();
}
}, _callee, null, [[0, 7]]);
}));
return function (_x) {
return _ref2.apply(this, arguments);
};
}()),
children: children
}));
};
/***/ }),
/***/ 54726:
/*!**************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/Notice/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 */ Exercise_Notice; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
var col = __webpack_require__(43604);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
var es_form = __webpack_require__(78241);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(2518);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
var input = __webpack_require__(20008);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
var es_select = __webpack_require__(57809);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input-number/index.js + 14 modules
var input_number = __webpack_require__(96971);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 15 modules
var _umi_production_exports = __webpack_require__(8931);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Notice/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Noticemodules = ({"bg":"bg___YVx48","title":"title___NM3xC","textOverflow":"textOverflow___gz3GM","wrap":"wrap___if0Ln","infoTitle":"infoTitle___dk7YF","infoValue":"infoValue___kBWqL","itemTitle":"itemTitle___WP88A","circle":"circle___Rq79V","warnText":"warnText___cpZS0","greyText":"greyText___erT_A","linkText":"linkText___YWy1z","whiteList":"whiteList___NvpGC","num":"num___Dq7FU","fixBottom":"fixBottom___WHsNA","backBtn":"backBtn___swiNH","enterBtn":"enterBtn___pk16U"});
// EXTERNAL MODULE: ./src/service/exercise.ts
var exercise = __webpack_require__(39935);
// EXTERNAL MODULE: ./src/components/AsyncButton/index.tsx
var AsyncButton = __webpack_require__(25486);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(63834);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.10@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(9498);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(14735);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Notice/index.tsx
var DescriptionItem = function DescriptionItem(_ref) {
var title = _ref.title,
content = _ref.content;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mb20",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
style: {
marginBottom: 12
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "20px",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Noticemodules.circle
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: title
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
className: "pl20",
children: content
})]
});
};
console.log('---', performance.navigation.type);
var Notice = function Notice(_ref2) {
var user = _ref2.user,
dispatch = _ref2.dispatch,
globalSetting = _ref2.globalSetting;
var params = (0,_umi_production_exports.useParams)();
var _useState = (0,_react_17_0_2_react.useState)(),
_useState2 = slicedToArray_default()(_useState, 2),
detail = _useState2[0],
setDetail = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
loading = _useState4[0],
setLoading = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
isshow = _useState6[0],
setisshow = _useState6[1];
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: "globalSetting/headerFooterToggle",
payload: false
});
return function () {
dispatch({
type: "globalSetting/headerFooterToggle",
payload: true
});
};
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
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:
setLoading(true);
_context.next = 3;
return (0,exercise/* getWorkSetting */.Ul)(params);
case 3:
res = _context.sent;
setLoading(false);
if (!res.status) {
setDetail(res);
}
case 6:
case "end":
return _context.stop();
}
}, _callee);
}))();
}, []);
var _ref4 = (detail === null || detail === void 0 ? void 0 : detail.exercise) || {},
exercise_name = _ref4.exercise_name,
time = _ref4.time,
student_id = _ref4.student_id,
screen_open = _ref4.screen_open,
screen_num = _ref4.screen_num,
screen_sec = _ref4.screen_sec,
real_name = _ref4.real_name,
id = _ref4.id,
open_camera = _ref4.open_camera,
inner_ip = _ref4.inner_ip,
public_ip = _ref4.public_ip,
ip_limit = _ref4.ip_limit,
ip_bind = _ref4.ip_bind,
ip_bind_type = _ref4.ip_bind_type,
open_phone_video_recording = _ref4.open_phone_video_recording,
identity_verify = _ref4.identity_verify,
user_permission = _ref4.user_permission,
total_score = _ref4.total_score,
question_type_count = _ref4.question_type_count,
question_count = _ref4.question_count,
screen_shot_open = _ref4.screen_shot_open,
screen_total_num = _ref4.screen_total_num,
screen_used_num = _ref4.screen_used_num,
end_time = _ref4.end_time,
user_end_time = _ref4.user_end_time,
only_on_client = _ref4.only_on_client,
forbid_screen = _ref4.forbid_screen,
use_white_list = _ref4.use_white_list,
_ref4$white_list = _ref4.white_list,
white_list = _ref4$white_list === void 0 ? [] : _ref4$white_list;
console.log('---', end_time);
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Noticemodules.bg,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "edu-container",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "pt30"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Noticemodules.wrap,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(skeleton/* default */.Z, {
loading: loading,
active: true,
className: "mt20",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Noticemodules.title,
children: exercise_name
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
justify: "center",
gutter: 30,
className: "mb20",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.infoTitle,
children: "\u5927\u9898\u6570"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.infoValue,
children: question_type_count
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.infoTitle,
children: "\u5C0F\u9898\u6570"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.infoValue,
children: question_count
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.infoTitle,
children: "\u6EE1\u5206"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Noticemodules.infoValue,
children: [total_score, "\u5206"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.infoTitle,
children: "\u8003\u8BD5\u65F6\u957F"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.infoValue,
children: time === -1 ? '不限时长' : "".concat(time, "\u5206\u949F")
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: "mb20",
align: "middle",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "20px",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-dangqiankaoshengxinxi font14",
style: {
color: '#3061D0'
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Noticemodules.itemTitle,
children: "\u5F53\u524D\u8003\u751F\u4FE1\u606F"
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: "mb30 pl20",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
flex: "190px",
className: "mr20 ".concat(Noticemodules.textOverflow),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.infoTitle,
children: "\u59D3\u540D"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
title: real_name,
children: real_name
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.infoTitle,
children: "\u5B66\u53F7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: student_id || '--'
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: "mb20",
align: "middle",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "20px",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-chengxinkaoshishengming font14",
style: {
color: '#3061D0'
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Noticemodules.itemTitle,
children: "\u8BDA\u4FE1\u8003\u8BD5\u58F0\u660E"
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mb30 pl20",
children: "\u8003\u751F\u5728\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u5E94\u81EA\u89C9\u9075\u5B88\u8003\u8BD5\u7EAA\u5F8B\uFF0C\u8BDA\u4FE1\u5E94\u8003\uFF0C\u62D2\u7EDD\u4F5C\u5F0A\u884C\u4E3A\uFF0C\u4FDD\u6301\u826F\u597D\u8003\u8BD5\u79E9\u5E8F\u3002\u5B9E\u65BD\u4F5C\u5F0A\u884C\u4E3A\u4E00\u7ECF\u53D1\u73B0\uFF0C\u5C06\u6309\u5B66\u6821\u8003\u8BD5\u7BA1\u7406\u529E\u6CD5\u4E25\u8083\u5904\u7406\uFF0C\u56E0\u4F5C\u5F0A\u4EA7\u751F\u7684\u4E00\u5207\u540E\u679C\u81EA\u8D1F\u3002"
}), (open_camera || screen_open || ip_limit !== 'no' || identity_verify) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: "mb20",
align: "middle",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "20px",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-yikaiqifangzuobimoshi font14",
style: {
color: '#3061D0'
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Noticemodules.itemTitle,
children: "\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u6A21\u5F0F"
})
})]
}), identity_verify && /*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionItem, {
title: "\u5DF2\u5F00\u542F\u8003\u8BD5\u524D\u4EBA\u8138\u8EAB\u4EFD\u6838\u9A8C",
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.greyText,
children: "\u8FDB\u5165\u8003\u8BD5\u524D\uFF0C\u8BF7\u5141\u8BB8\u6444\u50CF\u5934\u6388\u6743\uFF0C\u6388\u6743\u540E\u9700\u91C7\u96C6\u7167\u7247\u8BA4\u8BC1\uFF0C\u8BA4\u8BC1\u901A\u8FC7\u5E76\u5F00\u542F\u624B\u673A\u5F55\u5236\u624D\u53EF\u4EE5\u8FDB\u5165\u8003\u8BD5\u3002"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.linkText,
onClick: function onClick() {
return (0,util/* openNewWindow */.xg)('https://www.educoder.net/forums/4459');
},
children: "\u65E0\u6CD5\u8C03\u7528\u6444\u50CF\u5934?"
})]
})
}), identity_verify && /*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionItem, {
title: "\u5DF2\u5F00\u542F\u8003\u8BD5\u4E2D\u624B\u673A\u89C6\u9891\u5F55\u5236",
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.greyText,
children: "\u8FDB\u5165\u8003\u8BD5\u540E\uFF0C\u8BF7\u5141\u8BB8\u6444\u50CF\u5934\u6388\u6743\uFF0C\u6388\u6743\u540E\u6253\u5F00\u6444\u50CF\u5934\u65B9\u53EF\u4F5C\u7B54\uFF01"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.linkText,
onClick: function onClick() {
return (0,util/* openNewWindow */.xg)('https://www.educoder.net/forums/4459');
},
children: "\u65E0\u6CD5\u8C03\u7528\u6444\u50CF\u5934?"
})]
})
}), open_camera && /*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionItem, {
title: "\u5DF2\u5F00\u542F\u8003\u8BD5\u4E2D\u62CD\u7167\u76D1\u63A7",
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.greyText,
children: "\u8FDB\u5165\u8003\u8BD5\u540E\uFF0C\u8BF7\u5141\u8BB8\u6444\u50CF\u5934\u6388\u6743\uFF0C\u6388\u6743\u540E\u6253\u5F00\u6444\u50CF\u5934\u65B9\u53EF\u4F5C\u7B54\uFF01"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.linkText,
onClick: function onClick() {
return (0,util/* openNewWindow */.xg)('https://www.educoder.net/forums/4459');
},
children: "\u65E0\u6CD5\u8C03\u7528\u6444\u50CF\u5934?"
})]
})
}), screen_open && /*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionItem, {
title: "\u5DF2\u5F00\u542F\u5207\u5C4F\u540E\u5F3A\u5236\u4EA4\u5377",
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Noticemodules.greyText,
children: ["\u5207\u5C4F\u8D85\u8FC7", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.num,
children: screen_num
}), "\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377\uFF0C\u5207\u6362\u5230\u5176\u4ED6\u9875\u9762", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.num,
children: screen_sec
}), "\u79D2\u540E\u5373\u5224\u5B9A\u4E3A\u4E00\u6B21\u5207\u5C4F\uFF0C", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.num,
children: screen_sec * 2
}), "\u79D2\u5219\u5224\u5B9A\u4E3A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.num,
children: "2"
}), "\u6B21\u5207\u5C4F\uFF0C\u4EE5\u6B64\u7C7B\u63A8\uFF1B\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u8BF7\u52FF\u5207\u6362\u5230\u5176\u4ED6\u9875\u9762\u6216\u9000\u51FA\u5168\u5C4F\u3002"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.linkText,
onClick: function onClick() {
return (0,util/* openNewWindow */.xg)('https://www.educoder.net/forums/4460');
},
children: "\u6D4F\u89C8\u5668\u65E0\u6CD5\u81EA\u52A8\u5168\u5C4F\uFF1F"
})]
})
}), screen_shot_open && /*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionItem, {
title: "\u5DF2\u5F00\u542F\u9000\u51FA\u5168\u5C4F\u6216\u5207\u6362\u9875\u9762\u540E\u81EA\u52A8\u622A\u5C4F",
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.greyText,
children: "\u8001\u5E08\u5DF2\u5F00\u542F\u9000\u51FA\u5168\u5C4F\u6216\u5207\u6362\u9875\u9762\u540E\u81EA\u52A8\u622A\u5C4F\uFF0C\u8003\u751F\u8FDB\u5165\u8003\u8BD5\u4E4B\u540E\u9700\u8981\u9009\u62E9\u4E3B\u5C4F\u5E55\u8FDB\u884C\u5171\u4EAB\uFF0C\u8003\u8BD5\u4F5C\u7B54\u8FC7\u7A0B\u4E2D\u4E5F\u4E0D\u5141\u8BB8\u5173\u95ED\u5C4F\u5E55\u5171\u4EAB\uFF0C\u5426\u5219\u5C06\u4F1A\u76F4\u63A5\u9000\u51FA\u8003\u8BD5\u3002"
})
})
}), ip_limit !== 'no' && /*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionItem, {
title: "\u5DF2\u5F00\u542FIP\u8303\u56F4\u9650\u5B9A",
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.greyText,
children: "IP\u5730\u5740\u4E0D\u5728\u8303\u56F4\u5185\u4E0D\u53EF\u53C2\u52A0\u8003\u8BD5\u3002"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.warnText,
children: "\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.linkText,
onClick: function onClick() {
return (0,util/* openNewWindow */.xg)('https://www.educoder.net/forums/4478');
},
children: "\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"
})
})]
})
}), ip_bind && /*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionItem, {
title: "\u5DF2\u5F00\u542F\u8003\u8BD5\u671F\u95F4IP\u7ED1\u5B9A",
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.greyText,
children: "\u5F53\u60A8\u5F00\u59CB\u8003\u8BD5\u540E\uFF0C\u5C06\u81EA\u52A8\u7ED1\u5B9AIP\uFF0C\u8003\u8BD5\u671F\u95F4\u53EA\u5141\u8BB8\u4F7F\u7528\u552F\u4E00\u7684IP\u8FDB\u5165\u8003\u8BD5\u3002\u5982\u9047\u7279\u6B8A\u60C5\u51B5\uFF0C\u53EF\u5411\u8001\u5E08\u7533\u8BF7\u89E3\u9664IP\u7ED1\u5B9A\u3002"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.warnText,
children: "\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.linkText,
onClick: function onClick() {
return (0,util/* openNewWindow */.xg)('https://www.educoder.net/forums/4478');
},
children: "\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"
})
})]
})
}), (forbid_screen || use_white_list) && (0,util/* isLocalApp */.WX)() && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: "mb20",
align: "middle",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "20px",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-tishi11 font14",
style: {
color: '#3061D0'
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Noticemodules.itemTitle,
children: "\u6CE8\u610F\u4E8B\u9879"
})
})]
}), forbid_screen && /*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionItem, {
title: "\u672C\u6B21\u8003\u8BD5\u5DF2\u8BBE\u7F6E\u7981\u6B62\u5207\u5C4F",
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.greyText,
children: "\u4E00\u65E6\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\uFF0C\u4E0D\u53EF\u5207\u5C4F\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5982\u9700\u8981\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Noticemodules.linkText,
style: {
cursor: 'default'
},
children: "\u8BF7\u8054\u7CFB\u76D1\u8003\u8001\u5E08/\u8BD5\u5377\u53D1\u5E03\u8005\u586B\u5199\u89E3\u9664\u5207\u5C4F\u7801\u3002"
})]
})
}), use_white_list && /*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionItem, {
title: "\u672C\u6B21\u8003\u8BD5\u5DF2\u7ECF\u8BBE\u7F6E\u6253\u5F00\u767D\u540D\u5355\u7A0B\u5E8F\u9650\u5236",
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Noticemodules.greyText,
children: ["\u8FDB\u5165\u8003\u8BD5\u524D\u8BF7\u5148\u5173\u95ED\u975E\u767D\u540D\u5355\u7A0B\u5E8F\uFF0C\u5426\u5219\u8FDB\u5165\u8003\u8BD5\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u5173\u95ED\u975E", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
cursor: 'default'
},
className: Noticemodules.linkText,
children: "\u767D\u540D\u5355"
}), "\u7A0B\u5E8F\uFF0C\u53EF\u6253\u5F00\u7684\u767D\u540D\u5355\u7A0B\u5E8F\u5982\u4E0B\uFF1A"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Noticemodules.whiteList,
children: white_list === null || white_list === void 0 ? void 0 : white_list.map(function (e) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: e
});
})
})]
})
})]
}), only_on_client && !(0,util/* isLocalApp */.WX)() && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "ml20",
style: {
color: '#E53333'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-tishi11 font14 mr5"
}), "\u672C\u6B21\u8003\u8BD5\u8BBE\u7F6E\u4E3A\u5BA2\u6237\u7AEF\u6A21\u5F0F\uFF0C\u4E0D\u53EF\u5728\u7F51\u9875\u7AEF\u8FDB\u884C\u8003\u8BD5\u7B54\u9898\uFF0C\u8BF7\u8FDB\u5165\u5BA2\u6237\u7AEF\u8FDB\u884C\u8003\u8BD5"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Noticemodules.fixBottom,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: Noticemodules.backBtn,
onClick: function onClick() {
return _umi_production_exports.history.back();
},
children: "\u8FD4\u56DE\u8003\u8BD5\u5217\u8868"
}), (!only_on_client || (0,util/* isLocalApp */.WX)()) && /*#__PURE__*/(0,jsx_runtime.jsxs)(AsyncButton/* AsyncButton */.Z, {
type: "primary",
className: "".concat(Noticemodules.enterBtn, " ml20"),
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var _user$userInfo;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
if (!(screen_used_num > screen_total_num)) {
_context2.next = 3;
break;
}
setisshow(true);
return _context2.abrupt("return");
case 3:
localStorage.removeItem('Refresh');
_context2.next = 6;
return (0,util/* startExercise */.nr)({
inner_ip: inner_ip,
public_ip: public_ip,
open_camera: open_camera,
ip_limit: ip_limit,
ip_bind: ip_bind,
ip_bind_type: ip_bind_type,
exercise_tips: [''],
exerciseId: id,
screen_open: screen_open,
screen_num: screen_num,
screen_sec: screen_sec,
coursesId: params.coursesId,
login: (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login,
history: _umi_production_exports.history,
identity_verify: identity_verify,
open_phone_video_recording: open_phone_video_recording,
current_status: user_permission,
unlockClose: true
});
case 6:
case "end":
return _context2.stop();
}
}, _callee2);
})),
children: [screen_used_num > screen_total_num ? '立即申请继续考试' : '我已阅读,进入考试', " "]
})]
})]
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
title: "\u7533\u8BF7\u7EE7\u7EED\u8003\u8BD5",
open: isshow,
onCancel: function onCancel() {
setisshow(false);
},
onOk: function onOk() {
form.submit();
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
layout: "vertical",
size: "large",
form: form,
onFinish: ( /*#__PURE__*/function () {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(values) {
var res;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
_context4.next = 2;
return (0,fetch/* default */.ZP)("/api/exercises/".concat(params === null || params === void 0 ? void 0 : params.categoryId, "/check_key.json"), {
method: 'post',
body: objectSpread2_default()({}, values)
});
case 2:
res = _context4.sent;
if (!((res === null || res === void 0 ? void 0 : res.status) == -1)) {
_context4.next = 6;
break;
}
form.setFields([{
name: 'unlock_key',
errors: [res === null || res === void 0 ? void 0 : res.message]
}]);
return _context4.abrupt("return");
case 6:
modal/* default */.Z.confirm({
closable: true,
width: 400,
centered: true,
icon: null,
title: '提示',
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var res, _user$userInfo2;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return (0,fetch/* default */.ZP)("/api/exercises/".concat(params === null || params === void 0 ? void 0 : params.categoryId, "/continue_exercise.json"), {
method: 'post',
body: objectSpread2_default()({}, values)
});
case 2:
res = _context3.sent;
if (!((res === null || res === void 0 ? void 0 : res.status) === 0)) {
_context3.next = 7;
break;
}
localStorage.removeItem('Refresh');
_context3.next = 7;
return (0,util/* startExercise */.nr)({
inner_ip: inner_ip,
public_ip: public_ip,
open_camera: open_camera,
ip_limit: ip_limit,
ip_bind: ip_bind,
ip_bind_type: ip_bind_type,
exercise_tips: [''],
exerciseId: id,
screen_open: screen_open,
screen_num: screen_num,
screen_sec: screen_sec,
coursesId: params.coursesId,
login: (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login,
history: _umi_production_exports.history,
identity_verify: identity_verify,
open_phone_video_recording: open_phone_video_recording,
current_status: user_permission,
unlockClose: true
});
case 7:
case "end":
return _context3.stop();
}
}, _callee3);
}));
function onOk() {
return _onOk.apply(this, arguments);
}
return onOk;
}(),
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
color: '#000000',
fontWeight: 400
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
style: {
marginBottom: 20
},
children: "\u8003\u8BD5\u4FE1\u606F\u4FEE\u6539\u786E\u8BA4\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
style: {
marginBottom: 10
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#165DFF'
},
children: "\u201C\u8003\u8BD5\u72B6\u6001\u201D"
}), "\u4FEE\u6539\u4E3A", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#165DFF'
},
children: ["\u201D", (values === null || values === void 0 ? void 0 : values.state) === "1" ? '答题中' : '未答题', "\u201C"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
style: {
marginBottom: 0
},
children: ["\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u5EF6\u957F", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#165DFF'
},
children: values === null || values === void 0 ? void 0 : values.time
}), "\u5206\u949F\u5417\uFF1F"]
})]
})
});
case 7:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return function (_x) {
return _ref6.apply(this, arguments);
};
}()),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
rules: [{
required: true,
message: '请输入考试解锁码'
}],
name: "unlock_key",
label: "\u7EE7\u7EED\u8003\u8BD5\u9700\u8981\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801\uFF08\u76D1\u8003\u8001\u5E08\u63D0\u4F9B\uFF09",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
rules: [{
required: true,
message: '请选择考试状态'
}],
name: "state",
label: "\u8003\u8BD5\u72B6\u6001\u4FEE\u6539\u4E3A",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
placeholder: "\u8BF7\u9009\u62E9\u8003\u8BD5\u72B6\u6001",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: "1",
children: "\u7B54\u9898\u4E2D\uFF08\u4FDD\u7559\u5B66\u751F\u4E4B\u524D\u7684\u7B54\u9898\u6570\u636E\uFF09"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: "2",
children: "\u672A\u7B54\u9898\uFF08\u6E05\u7A7A\u7B54\u9898\u6570\u636E\uFF0C\u91CD\u65B0\u8003\u8BD5\uFF09"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
rules: [{
required: true,
message: '请输入延长时间'
}],
name: "time",
label: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u5EF6\u957F\u65F6\u95F4\uFF08", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#9096A3'
},
children: ["\u5F53\u524D\u8003\u8BD5\u622A\u6B62\u65F6\u95F4", dayjs_min_default()(end_time).format("YYYY-MM-DD HH:mm")]
}), "\uFF09"]
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
min: 1,
precision: 0,
max: 5000,
style: {
width: '100%'
},
placeholder: "\u8BF7\u586B\u5199\u5EF6\u957F\u65F6\u95F4\uFF08\u5206\u949F\uFF09"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
style: {
marginBottom: 0
},
label: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u7EC8\u6B62\u7B54\u9898\u65F6\u95F4\uFF1A", dayjs_min_default()(user_end_time).format("YYYY-MM-DD HH:mm")]
})
})]
})
})]
});
};
/* harmony default export */ var Exercise_Notice = ((0,_umi_production_exports.connect)(function (_ref7) {
var user = _ref7.user,
globalSetting = _ref7.globalSetting;
return {
globalSetting: globalSetting,
user: user
};
})(Notice));
/***/ }),
/***/ 57809:
/*!**********************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/select/index.js ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-select */ 77861);
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/omit */ 41123);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/PurePanel */ 53487);
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/motion */ 62892);
/* harmony import */ var _util_statusUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/statusUtils */ 19080);
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 36355);
/* harmony import */ var _config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/DisabledContext */ 1684);
/* harmony import */ var _config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/defaultRenderEmpty */ 93891);
/* harmony import */ var _config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/hooks/useSize */ 19716);
/* harmony import */ var _form_context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../form/context */ 32441);
/* harmony import */ var _space_Compact__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../space/Compact */ 33234);
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 14154);
/* harmony import */ var _useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./useBuiltinPlacements */ 58582);
/* harmony import */ var _useShowArrow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useShowArrow */ 84443);
/* harmony import */ var _utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/iconUtil */ 66339);
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
// TODO: 4.0 - codemod should help to change `filterOption` to support node props.
const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
const InternalSelect = (_a, ref) => {
var _b;
var {
prefixCls: customizePrefixCls,
bordered = true,
className,
rootClassName,
getPopupContainer,
popupClassName,
dropdownClassName,
listHeight = 256,
placement,
listItemHeight = 24,
size: customizeSize,
disabled: customDisabled,
notFoundContent,
status: customStatus,
builtinPlacements,
dropdownMatchSelectWidth,
popupMatchSelectWidth,
direction: propDirection,
style,
allowClear
} = _a,
props = __rest(_a, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear"]);
const {
getPopupContainer: getContextPopupContainer,
getPrefixCls,
renderEmpty,
direction: contextDirection,
virtual,
popupMatchSelectWidth: contextPopupMatchSelectWidth,
popupOverflow,
select
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* .ConfigContext */ .E_);
const prefixCls = getPrefixCls('select', customizePrefixCls);
const rootPrefixCls = getPrefixCls();
const direction = propDirection !== null && propDirection !== void 0 ? propDirection : contextDirection;
const {
compactSize,
compactItemClassnames
} = (0,_space_Compact__WEBPACK_IMPORTED_MODULE_4__/* .useCompactItemContext */ .ri)(prefixCls, direction);
const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(prefixCls);
const mode = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
const {
mode: m
} = props;
if (m === 'combobox') {
return undefined;
}
if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) {
return 'combobox';
}
return m;
}, [props.mode]);
const isMultiple = mode === 'multiple' || mode === 'tags';
const showSuffixIcon = (0,_useShowArrow__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props.suffixIcon, props.showArrow);
const mergedPopupMatchSelectWidth = (_b = popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth) !== null && _b !== void 0 ? _b : contextPopupMatchSelectWidth;
// ===================== Form Status =====================
const {
status: contextStatus,
hasFeedback,
isFormItemInput,
feedbackIcon
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_form_context__WEBPACK_IMPORTED_MODULE_7__/* .FormItemInputContext */ .aM);
const mergedStatus = (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getMergedStatus */ .F)(contextStatus, customStatus);
// ===================== Empty =====================
let mergedNotFound;
if (notFoundContent !== undefined) {
mergedNotFound = notFoundContent;
} else if (mode === 'combobox') {
mergedNotFound = null;
} else {
mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Select')) || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
componentName: "Select"
});
}
// ===================== Icons =====================
const {
suffixIcon,
itemIcon,
removeIcon,
clearIcon
} = (0,_utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(Object.assign(Object.assign({}, props), {
multiple: isMultiple,
hasFeedback,
feedbackIcon,
showSuffixIcon,
prefixCls,
showArrow: props.showArrow,
componentName: 'Select'
}));
const mergedAllowClear = allowClear === true ? {
clearIcon
} : allowClear;
const selectProps = (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)(props, ['suffixIcon', 'itemIcon']);
const rcSelectRtlDropdownClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()(popupClassName || dropdownClassName, {
[`${prefixCls}-dropdown-${direction}`]: direction === 'rtl'
}, rootClassName, hashId);
const mergedSize = (0,_config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(ctx => {
var _a;
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
});
// ===================== Disabled =====================
const disabled = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z);
const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
const mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
[`${prefixCls}-lg`]: mergedSize === 'large',
[`${prefixCls}-sm`]: mergedSize === 'small',
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-borderless`]: !bordered,
[`${prefixCls}-in-form-item`]: isFormItemInput
}, (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getStatusClassNames */ .Z)(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, select === null || select === void 0 ? void 0 : select.className, className, rootClassName, hashId);
// ===================== Placement =====================
const memoPlacement = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
if (placement !== undefined) {
return placement;
}
return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
}, [placement, direction]);
const mergedBuiltinPlacements = (0,_useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(builtinPlacements, popupOverflow);
// ====================== Warning ======================
if (false) {}
// ====================== Render =======================
return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_select__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP, Object.assign({
ref: ref,
virtual: virtual,
showSearch: select === null || select === void 0 ? void 0 : select.showSearch
}, selectProps, {
style: Object.assign(Object.assign({}, select === null || select === void 0 ? void 0 : select.style), style),
dropdownMatchSelectWidth: mergedPopupMatchSelectWidth,
builtinPlacements: mergedBuiltinPlacements,
transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_15__/* .getTransitionName */ .m)(rootPrefixCls, 'slide-up', props.transitionName),
listHeight: listHeight,
listItemHeight: listItemHeight,
mode: mode,
prefixCls: prefixCls,
placement: memoPlacement,
direction: direction,
suffixIcon: suffixIcon,
menuItemSelectedIcon: itemIcon,
removeIcon: removeIcon,
allowClear: mergedAllowClear,
notFoundContent: mergedNotFound,
className: mergedClassName,
getPopupContainer: getPopupContainer || getContextPopupContainer,
dropdownClassName: rcSelectRtlDropdownClassName,
disabled: mergedDisabled
})));
};
if (false) {}
const Select = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(InternalSelect);
// We don't care debug panel
/* istanbul ignore next */
const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(Select);
Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
Select.Option = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .Option */ .Wx;
Select.OptGroup = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .OptGroup */ .Xo;
Select._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
if (false) {}
/* harmony default export */ __webpack_exports__["default"] = (Select);
/***/ }),
/***/ 8378:
/*!*******************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/collapse.js ***!
\*******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__) {
const genCollapseMotion = token => ({
[token.componentCls]: {
// For common/openAnimation
[`${token.antCls}-motion-collapse-legacy`]: {
overflow: 'hidden',
'&-active': {
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
}
},
[`${token.antCls}-motion-collapse`]: {
overflow: 'hidden',
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
}
}
});
/* harmony default export */ __webpack_exports__.Z = (genCollapseMotion);
/***/ })
}]);