(self["webpackChunk"] = self["webpackChunk"] || []).push([[67878,64802,34668,54512],{ /***/ 15997: /*!*****************************************************************************************************!*\ !*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ icons_EyeOutlined; } }); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(26508); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/EyeOutlined.js // This icon file is generated automatically. var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" }; /* harmony default export */ var asn_EyeOutlined = (EyeOutlined); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules var AntdIcon = __webpack_require__(91851); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js // GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) { return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { ref: ref, icon: asn_EyeOutlined })); }; if (false) {} /* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined)); /***/ }), /***/ 31917: /*!*****************************************!*\ !*** ./src/components/NoData/index.tsx ***! \*****************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801); /* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_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_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301); /* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 4977); /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 3113); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 37712); var noData = function noData(_ref) { var img = _ref.img, _ref$buttonProps = _ref.buttonProps, buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps, _ref$styles = _ref.styles, styles = _ref$styles === void 0 ? {} : _ref$styles, customText = _ref.customText, ButtonText = _ref.ButtonText, ButtonClick = _ref.ButtonClick, Buttonclass = _ref.Buttonclass, ButtonTwo = _ref.ButtonTwo, imgStyles = _ref.imgStyles, _ref$loading = _ref.loading, loading = _ref$loading === void 0 ? false : _ref$loading; return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", { className: "tc animated fadeIn", style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, { color: '#999', margin: '100px auto', visibility: loading ? 'hidden' : 'visible' }), styles), children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", { src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__, style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles) }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", { className: "mt20 font14", children: customText || '暂时还没有相关数据哦!' }), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({ className: Buttonclass, onClick: ButtonClick }, buttonProps), {}, { children: ButtonText })), ButtonTwo && ButtonTwo] }); }; /* harmony default export */ __webpack_exports__.Z = (noData); /***/ }), /***/ 82555: /*!********************************************************************!*\ !*** ./src/pages/Classrooms/Lists/LiveVideo/index.tsx + 6 modules ***! \********************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, { "default": function() { return /* binding */ LiveVideo; } }); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js var objectSpread2 = __webpack_require__(26801); var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js var slicedToArray = __webpack_require__(11006); var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectWithoutProperties.js var objectWithoutProperties = __webpack_require__(27161); var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); // EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules var _umi_production_exports = __webpack_require__(7181); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/menu/index.js + 11 modules var menu = __webpack_require__(20834); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/layout/index.js var layout = __webpack_require__(44000); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js var row = __webpack_require__(95237); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js var col = __webpack_require__(43604); // 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/pagination/index.js + 10 modules var pagination = __webpack_require__(41867); // EXTERNAL MODULE: ./src/utils/authority.ts var authority = __webpack_require__(71633); // EXTERNAL MODULE: ./src/utils/util.tsx var util = __webpack_require__(87885); // EXTERNAL MODULE: ./src/components/NoData/index.tsx var NoData = __webpack_require__(31917); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js var regeneratorRuntime = __webpack_require__(10574); var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js var asyncToGenerator = __webpack_require__(39343); var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules var modal = __webpack_require__(43418); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules var message = __webpack_require__(8591); // EXTERNAL MODULE: ./src/utils/fetch.ts var fetch = __webpack_require__(4781); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js var jsx_runtime = __webpack_require__(37712); ;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/LiveVideo/components/Del.tsx var DelShixun = function DelShixun(_ref) { var classroomList = _ref.classroomList, dispatch = _ref.dispatch; var params = (0,_umi_production_exports.useParams)(); var actionTabs = classroomList.actionTabs; params['id'] = params['coursesId']; return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, { centered: true, title: "\u63D0\u793A", open: classroomList.actionTabs.key === '删除' ? true : false, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88", onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() { var res; return regeneratorRuntime_default()().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: _context.next = 2; return (0,fetch/* default */.ZP)("/api/live_links/".concat(actionTabs.data.id, ".json"), { method: 'delete' }); case 2: res = _context.sent; if (res.status === 0) { message/* default */.ZP.success('删除成功'); dispatch({ type: 'classroomList/setActionTabs', payload: {} }); dispatch({ type: 'classroomList/getLiveVideoList', payload: { id: params.id } }); } case 4: case "end": return _context.stop(); } }, _callee); })), onCancel: function onCancel() { dispatch({ type: 'classroomList/setActionTabs', payload: {} }); }, children: /*#__PURE__*/(0,jsx_runtime.jsx)("p", { children: "\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F" }) }); }; /* harmony default export */ var Del = ((0,_umi_production_exports.connect)(function (_ref3) { var classroomList = _ref3.classroomList; return { classroomList: classroomList }; })(DelShixun)); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/defineProperty.js var defineProperty = __webpack_require__(22060); var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree-select/index.js + 17 modules var tree_select = __webpack_require__(98228); // 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/form/index.js + 19 modules var es_form = __webpack_require__(78241); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules var input = __webpack_require__(1056); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/date-picker/index.js + 66 modules var date_picker = __webpack_require__(52409); // 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); ;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/LiveVideo/components/Addlive.less?modules // extracted by mini-css-extract-plugin /* harmony default export */ var Addlivemodules = ({"form":"form___eXJya"}); ;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/LiveVideo/components/AddLive.tsx var TreeNode = tree_select/* default.TreeNode */.Z.TreeNode; var Option = es_select["default"].Option; var EditAttendance = function EditAttendance(_ref) { var _ref3; var classroomList = _ref.classroomList, loading = _ref.loading, dispatch = _ref.dispatch; var params = (0,_umi_production_exports.useParams)(); params['id'] = params['coursesId']; var detailAttendancesDetail = classroomList.detailAttendancesDetail, actionTabs = classroomList.actionTabs; var _Form$useForm = es_form/* default */.Z.useForm(), _Form$useForm2 = slicedToArray_default()(_Form$useForm, 1), form = _Form$useForm2[0]; var _useState = (0,_react_17_0_2_react.useState)('直播链接'), _useState2 = slicedToArray_default()(_useState, 2), Meeting = _useState2[0], setMeeting = _useState2[1]; var disabledDate = function disabledDate(current) { return current && current < dayjs_min_default()().startOf('day'); }; return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, { centered: true, title: "\u6DFB\u52A0\u76F4\u64AD", open: classroomList.actionTabs.key === '添加直播' ? true : false, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88", bodyStyle: { minHeight: 200 }, onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() { var formValue, res; return regeneratorRuntime_default()().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: _context.t0 = (objectSpread2_default()); _context.t1 = {}; _context.next = 4; return form.validateFields(); case 4: _context.t2 = _context.sent; formValue = (0, _context.t0)(_context.t1, _context.t2); _context.next = 8; return (0,fetch/* default */.ZP)("/api/courses/".concat(params.id, "/live_links.json"), { method: 'post', body: objectSpread2_default()({}, formValue) }); case 8: res = _context.sent; if (res.status === 0) { (0,util/* trackEvent */.L9)(['教学课堂', '直播', '添加直播']); message/* default */.ZP.success('添加成功'); dispatch({ type: 'classroomList/setActionTabs', payload: {} }); dispatch({ type: 'classroomList/getLiveVideoList', payload: { id: params.id } }); } case 10: case "end": return _context.stop(); } }, _callee); })), onCancel: function onCancel() { dispatch({ type: 'classroomList/setActionTabs', payload: {} }); }, children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z // className={styles.form} , { form: form, initialValues: (_ref3 = {}, defineProperty_default()(_ref3, 'platform', '腾讯课堂'), defineProperty_default()(_ref3, 'link', ''), _ref3), children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { label: "\u76F4\u64AD\u8BFE\u7A0B", name: "course_name", rules: [{ required: true, message: '请输入课程名称' }], children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, { placeholder: "\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0", maxLength: 60 }) }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { label: "\u76F4\u64AD\u5E73\u53F0", name: "platform", rules: [{ required: true, message: '请选择直播平台!' }], children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], { showSearch: true, placeholder: "\u8BF7\u9009\u62E9\u5E73\u53F0", defaultValue: "\u817E\u8BAF\u8BFE\u5802", onChange: function onChange(e) { if (e === "威佰通" || e === "zoom") { setMeeting('会议号'); } else { setMeeting('直播链接'); } }, optionFilterProp: "children", children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Option, { value: "\u817E\u8BAF\u8BFE\u5802", children: "\u817E\u8BAF\u8BFE\u5802" }), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, { value: "\u6597\u9C7C\u76F4\u64AD", children: "\u6597\u9C7C\u76F4\u64AD" }), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, { value: "Bilibili", children: "Bilibili" }), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, { value: "\u5A01\u4F70\u901A", children: "\u5A01\u4F70\u901A" }), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, { value: "zoom", children: "zoom" })] }) }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { label: Meeting, name: "url", children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, { placeholder: "\u8BF7\u8F93\u5165\u7B2C\u4E09\u65B9\u76F4\u64AD\u94FE\u63A5 \u5982\uFF1A\u817E\u8BAF\u8BFE\u5802\u64AD\u653E\u94FE\u63A5\u7B49" }) }), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, { justify: "space-between", children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { span: 11, children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { label: "\u5F00\u64AD\u65F6\u95F4", name: "live_time", children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], { disabledDate: disabledDate, format: "YYYY-MM-DD HH:mm", minuteStep: 30, placeholder: "\u5982\uFF1A2020/02/02 12:00", defaultValue: dayjs_min_default()(dayjs_min_default()(new Date((0,util/* DayHalfPastOne */.qd)())).add(7, 'days').format('YYYY-MM-DD HH:mm')), showTime: { format: 'HH:mm', defaultValue: dayjs_min_default()((0,util/* HalfPastOne */.U6)(), 'HH:mm') } }) }) }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { span: 11, className: Addlivemodules.timer, children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, { justify: "center", align: "middle", style: { flexFlow: 'row' }, children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { flex: 8, children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { label: "\u76F4\u64AD\u9884\u8BA1\u65F6\u957F", name: "duration", children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, { placeholder: "\u8BF7\u8F93\u5165\u76F4\u64AD\u65F6\u957F" }) }) }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { flex: '40px', children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { className: "ml5", children: "\u5206\u949F" }) })] }) })] }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { label: "\u76F4\u64AD\u8BF4\u660E", name: "description", children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.TextArea, { placeholder: "\u53EF\u5728\u6B64\u4ECB\u7ECD\u5F00\u64AD\u5177\u4F53\u4E8B\u9879\uFF0C\u5982\u5F00\u64AD\u65F6\u95F4\u5B89\u6392\u7B49\u3002" }) })] }) }); }; /* harmony default export */ var AddLive = ((0,_umi_production_exports.connect)(function (_ref4) { var classroomList = _ref4.classroomList, loading = _ref4.loading; return { classroomList: classroomList, loading: loading }; })(EditAttendance)); // EXTERNAL MODULE: ./node_modules/_react-copy-to-clipboard@5.0.2@react-copy-to-clipboard/lib/index.js var lib = __webpack_require__(56102); ;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/LiveVideo/components/EnterLive.tsx var EnterLive_TreeNode = tree_select/* default.TreeNode */.Z.TreeNode; var EnterLive_Option = es_select["default"].Option; var EnterLive_EditAttendance = function EditAttendance(_ref) { var classroomList = _ref.classroomList, loading = _ref.loading, dispatch = _ref.dispatch; var params = (0,_umi_production_exports.useParams)(); params['id'] = params['coursesId']; var detailAttendancesDetail = classroomList.detailAttendancesDetail, actionTabs = classroomList.actionTabs; var _Form$useForm = es_form/* default */.Z.useForm(), _Form$useForm2 = slicedToArray_default()(_Form$useForm, 1), form = _Form$useForm2[0]; var disabledDate = function disabledDate(current) { return current && current < dayjs_min_default()().startOf('day'); }; return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, { centered: true, title: "\u63D0\u793A", open: classroomList.actionTabs.key === '进入' ? true : false, okText: "\u5B8C\u6210", cancelText: "\u53D6\u6D88", width: 700, bodyStyle: { minHeight: 200 }, onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() { return regeneratorRuntime_default()().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: dispatch({ type: 'classroomList/setActionTabs', payload: {} }); case 1: case "end": return _context.stop(); } }, _callee); })), onCancel: function onCancel() { dispatch({ type: 'classroomList/setActionTabs', payload: {} }); }, children: actionTabs.data && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { style: { margin: '0 80px' }, children: [/*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, { justify: "center", align: "middle", className: "mt40", children: /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, { className: "font16 tc", children: ["\u6253\u5F00", actionTabs.data.platform, "\u5BA2\u6237\u7AEF\uFF0C\u8F93\u5165\u76F4\u64AD\u94FE\u63A5\u5373\u53EF\u8FDB\u5165\u76F4\u64AD"] }) }), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, { className: "mt20", justify: "center", children: /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, { className: "tc", flex: 1, children: ["\u76F4\u64AD\u94FE\u63A5\uFF1A", !actionTabs.data.url || actionTabs.data.url === "" ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", { className: "c-red", children: "\u7B49\u5F85\u5F00\u64AD" }) : actionTabs.data.url, actionTabs.data.url && actionTabs.data.url !== "" && /*#__PURE__*/(0,jsx_runtime.jsx)(lib.CopyToClipboard, { text: actionTabs.data.url, onCopy: function onCopy() { return message/* default */.ZP.success('复制成功'); }, children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { className: "c-blue ml30", children: "\u590D\u5236\u76F4\u64AD\u94FE\u63A5" }) })] }) })] }) }); }; /* harmony default export */ var EnterLive = ((0,_umi_production_exports.connect)(function (_ref3) { var classroomList = _ref3.classroomList, loading = _ref3.loading; return { classroomList: classroomList, loading: loading }; })(EnterLive_EditAttendance)); ;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/LiveVideo/components/Edit.tsx var Edit_TreeNode = tree_select/* default.TreeNode */.Z.TreeNode; var Edit_Option = es_select["default"].Option; var Edit_EditAttendance = function EditAttendance(_ref) { var _ref3; var classroomList = _ref.classroomList, loading = _ref.loading, dispatch = _ref.dispatch; var params = (0,_umi_production_exports.useParams)(); params['id'] = params['coursesId']; var detailAttendancesDetail = classroomList.detailAttendancesDetail, actionTabs = classroomList.actionTabs; var _Form$useForm = es_form/* default */.Z.useForm(), _Form$useForm2 = slicedToArray_default()(_Form$useForm, 1), form = _Form$useForm2[0]; var disabledDate = function disabledDate(current) { return current && current < dayjs_min_default()().startOf('day'); }; (0,_react_17_0_2_react.useEffect)(function () { var _actionTabs$data, _actionTabs$data2, _actionTabs$data3, _actionTabs$data4, _actionTabs$data5, _actionTabs$data6, _actionTabs$data7; form.setFieldsValue({ platform: actionTabs === null || actionTabs === void 0 || (_actionTabs$data = actionTabs.data) === null || _actionTabs$data === void 0 ? void 0 : _actionTabs$data.platform, course_name: actionTabs === null || actionTabs === void 0 || (_actionTabs$data2 = actionTabs.data) === null || _actionTabs$data2 === void 0 ? void 0 : _actionTabs$data2.course_name, live_time: actionTabs !== null && actionTabs !== void 0 && (_actionTabs$data3 = actionTabs.data) !== null && _actionTabs$data3 !== void 0 && _actionTabs$data3.live_time ? dayjs_min_default()(actionTabs === null || actionTabs === void 0 || (_actionTabs$data4 = actionTabs.data) === null || _actionTabs$data4 === void 0 ? void 0 : _actionTabs$data4.live_time) : null, url: actionTabs === null || actionTabs === void 0 || (_actionTabs$data5 = actionTabs.data) === null || _actionTabs$data5 === void 0 ? void 0 : _actionTabs$data5.url, duration: actionTabs === null || actionTabs === void 0 || (_actionTabs$data6 = actionTabs.data) === null || _actionTabs$data6 === void 0 ? void 0 : _actionTabs$data6.duration, description: actionTabs === null || actionTabs === void 0 || (_actionTabs$data7 = actionTabs.data) === null || _actionTabs$data7 === void 0 ? void 0 : _actionTabs$data7.description }); }, [actionTabs]); return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, { centered: true, title: "\u7F16\u8F91\u76F4\u64AD", open: classroomList.actionTabs.key === '编辑' ? true : false, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88", bodyStyle: { minHeight: 200 }, onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() { var formValue, res; return regeneratorRuntime_default()().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: _context.t0 = (objectSpread2_default()); _context.t1 = {}; _context.next = 4; return form.validateFields(); case 4: _context.t2 = _context.sent; formValue = (0, _context.t0)(_context.t1, _context.t2); if (formValue['live_time']) { formValue['live_time'] = dayjs_min_default()(formValue['live_time']).format('YYYY-MM-DD HH:mm'); } _context.next = 9; return (0,fetch/* default */.ZP)("/api/live_links/".concat(actionTabs.data.id, ".json"), { method: 'put', body: objectSpread2_default()({}, formValue) }); case 9: res = _context.sent; if (res.status === 0) { message/* default */.ZP.success('操作成功'); dispatch({ type: 'classroomList/setActionTabs', payload: {} }); dispatch({ type: 'classroomList/getLiveVideoList', payload: { id: params.id } }); } case 11: case "end": return _context.stop(); } }, _callee); })), onCancel: function onCancel() { dispatch({ type: 'classroomList/setActionTabs', payload: {} }); }, children: actionTabs.data && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z // className={styles.form} , { form: form, initialValues: (_ref3 = {}, defineProperty_default()(_ref3, 'platform', actionTabs.data.platform), defineProperty_default()(_ref3, 'course_name', actionTabs.data.course_name), defineProperty_default()(_ref3, 'live_time', actionTabs.data.live_time ? dayjs_min_default()(actionTabs.data.live_time) : null), defineProperty_default()(_ref3, 'url', actionTabs.data.url), defineProperty_default()(_ref3, 'duration', actionTabs.data.duration), defineProperty_default()(_ref3, 'description', actionTabs.data.description), _ref3), children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { label: "\u76F4\u64AD\u8BFE\u7A0B", name: "course_name", rules: [{ required: true, message: '请输入!' }], children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, { maxLength: 60 }) }), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, { label: "\u76F4\u64AD\u5E73\u53F0", name: "platform", rules: [{ required: true, message: '请选择平台!' }], children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], { showSearch: true, style: { width: 200 }, placeholder: "\u8BF7\u9009\u62E9\u5E73\u53F0", defaultValue: "\u817E\u8BAF\u8BFE\u5802", optionFilterProp: "children", children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Edit_Option, { value: "\u817E\u8BAF\u8BFE\u5802", children: "\u817E\u8BAF\u8BFE\u5802" }), /*#__PURE__*/(0,jsx_runtime.jsx)(Edit_Option, { value: "\u6597\u9C7C\u76F4\u64AD", children: "\u6597\u9C7C\u76F4\u64AD" }), /*#__PURE__*/(0,jsx_runtime.jsx)(Edit_Option, { value: "Bilibili", children: "Bilibili" }), /*#__PURE__*/(0,jsx_runtime.jsx)(Edit_Option, { value: "\u5A01\u4F70\u901A", children: "\u5A01\u4F70\u901A" }), /*#__PURE__*/(0,jsx_runtime.jsx)(Edit_Option, { value: "zoom", children: "zoom" })] }), ","] }), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, { justify: "space-between", children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { span: 11, children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { label: "\u5F00\u64AD\u65F6\u95F4", name: "live_time", children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], { disabledDate: disabledDate, format: "YYYY-MM-DD HH:mm", minuteStep: 30, showTime: { format: 'HH:mm', defaultValue: dayjs_min_default()((0,util/* HalfPastOne */.U6)(), 'HH:mm') } }) }) }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { span: 11, className: Addlivemodules.timer, children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, { justify: "center", align: "middle", style: { flexFlow: 'row' }, children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { flex: 8, children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { label: "\u76F4\u64AD\u9884\u8BA1\u65F6\u957F", name: "duration", children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {}) }) }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { flex: '40px', children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { className: "ml5", children: "\u5206\u949F" }) })] }) })] }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { label: "\u4F1A\u8BAE\u53F7", name: "url", rules: [{ required: true, message: '请选择平台!' }], children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {}) }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { label: "\u76F4\u64AD\u8BF4\u660E", name: "description", children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.TextArea, { placeholder: "\u53EF\u5728\u6B64\u4ECB\u7ECD\u5F00\u64AD\u5177\u4F53\u4E8B\u9879\uFF0C\u5982\u5F00\u64AD\u65F6\u95F4\u5B89\u6392\u7B49\u3002" }) })] }) }); }; /* harmony default export */ var Edit = ((0,_umi_production_exports.connect)(function (_ref4) { var classroomList = _ref4.classroomList, loading = _ref4.loading; return { classroomList: classroomList, loading: loading }; })(Edit_EditAttendance)); // EXTERNAL MODULE: ./src/pages/Classrooms/Lists/components/TabMenu/index.tsx + 1 modules var TabMenu = __webpack_require__(79512); ;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/LiveVideo/index.less?modules // extracted by mini-css-extract-plugin /* harmony default export */ var LiveVideomodules = ({"flex_box_center":"flex_box_center___ZOntB","flex_space_between":"flex_space_between___xCjmA","flex_box_vertical_center":"flex_box_vertical_center___gyDc0","flex_box_center_end":"flex_box_center_end___ytAb3","flex_box_column":"flex_box_column___KhTU7","bg":"bg___JLZ_u","menu":"menu___Fc6i8","desc":"desc___gI7VF","otherLink":"otherLink___msxoY","card":"card___qCDxO","supportPlatform":"supportPlatform___gN3jm"}); // EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules var ImagesIcon = __webpack_require__(43553); ;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/LiveVideo/index.tsx var _excluded = ["classroomList", "globalSetting", "loading", "dispatch"]; var SubMenu = menu/* default */.Z.SubMenu; var Content = layout/* default */.Z.Content, Sider = layout/* default */.Z.Sider; var ShixunsListPage = function ShixunsListPage(_ref) { var classroomList = _ref.classroomList, globalSetting = _ref.globalSetting, loading = _ref.loading, dispatch = _ref.dispatch, props = objectWithoutProperties_default()(_ref, _excluded); var _useState = (0,_react_17_0_2_react.useState)(objectSpread2_default()({}, (0,_umi_production_exports.useParams)())), _useState2 = slicedToArray_default()(_useState, 2), params = _useState2[0], setParams = _useState2[1]; var location = (0,_umi_production_exports.useLocation)(); var detailLiveVideoList = classroomList.detailLiveVideoList; var _useState3 = (0,_react_17_0_2_react.useState)({}), _useState4 = slicedToArray_default()(_useState3, 2), selectArrs = _useState4[0], setSelectArrs = _useState4[1]; params['id'] = params['coursesId']; params['limit'] = 15; if (params['categoryId'] != 0) params['category_id'] = params['categoryId']; (0,_react_17_0_2_react.useEffect)(function () { dispatch({ type: 'classroomList/getLiveVideoList', payload: objectSpread2_default()({}, params) }); }, [params['categoryId']]); (0,_react_17_0_2_react.useEffect)(function () { if (classroomList.actionTabs.key === '目录重命名成功') { dispatch({ type: 'classroomList/getLiveVideoList', payload: objectSpread2_default()({}, params) }); } }, [classroomList.actionTabs.key]); var onShowSizeChange = function onShowSizeChange(current, pageSize) { params.page = current; dispatch({ type: 'classroomList/getLiveVideoList', payload: objectSpread2_default()({}, params) }); }; var onMenuSelect = function onMenuSelect(v) { if (v.key == 'all') { _umi_production_exports.history.push("/classrooms/".concat(params.id, "/video")); } else { _umi_production_exports.history.push("/classrooms/".concat(params.id, "/live_video")); } }; var Menus = [{ name: '视频', id: 'all', total: detailLiveVideoList === null || detailLiveVideoList === void 0 ? void 0 : detailLiveVideoList.videos_count }, { name: '直播', id: 1, total: detailLiveVideoList === null || detailLiveVideoList === void 0 ? void 0 : detailLiveVideoList.lives_count }]; return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", { children: [/*#__PURE__*/(0,jsx_runtime.jsx)(TabMenu/* default */.Z, { isLoading: false, tabDataSource: Menus, isAdmin: (0,authority/* isAdmin */.GJ)(), onTabMenuClick: onMenuSelect, defaultSelectedKeys: ['1'], showControlButton: (0,authority/* isAdmin */.GJ)(), buttonText: "\u6DFB\u52A0\u76F4\u64AD", onButtonClick: function onButtonClick() { dispatch({ type: 'classroomList/setActionTabs', payload: { key: '添加直播', params: params } }); } }), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", { className: LiveVideomodules.supportPlatform, children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h1", { children: "EduCoder\u652F\u6301\u6240\u6709\u7B2C\u4E09\u65B9\u76F4\u64AD\u5E73\u53F0\uFF0C\u7279\u522B\u63A8\u8350\uFF1A" }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("dl", { children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("dt", { children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", { src: ImagesIcon/* txLiveIcon */.d6 }), "\u817E\u8BAF\u8BFE\u5802"] }), /*#__PURE__*/(0,jsx_runtime.jsx)("dd", { children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", { href: "/files/tencent_manual.pdf", target: "go-to", children: "(\u7B80\u660E\u624B\u518C)" }) })] }), /*#__PURE__*/(0,jsx_runtime.jsxs)("dl", { children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("dt", { children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", { src: ImagesIcon/* blibliIcon */.AG }), " \u54D4\u54E9\u54D4\u54E9"] }), /*#__PURE__*/(0,jsx_runtime.jsx)("dd", { children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", { href: "https://www.bilibili.com/blackboard/live/broadcast-intro.html#/", target: "go-to", children: "(\u7B80\u660E\u624B\u518C)" }) })] }), /*#__PURE__*/(0,jsx_runtime.jsxs)("dl", { children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("dt", { children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", { src: ImagesIcon/* douyuIcon */.BO }), " \u6597\u9C7C"] }), /*#__PURE__*/(0,jsx_runtime.jsx)("dd", { children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", { href: "https://www.douyu.com/special/guide/anchor", target: "go-to", children: "(\u7B80\u660E\u624B\u518C)" }) })] }), /*#__PURE__*/(0,jsx_runtime.jsxs)("dl", { children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("dt", { children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", { src: ImagesIcon/* weibaitongIcon */.j1 }), "\u5A01\u4F70\u901A"] }), /*#__PURE__*/(0,jsx_runtime.jsx)("dd", { children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", { href: "https://www.educoder.net/forums/3734", target: "go-to", children: "(\u7B80\u660E\u624B\u518C)" }) })] }), /*#__PURE__*/(0,jsx_runtime.jsxs)("dl", { children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("dt", { children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", { src: ImagesIcon/* zoomIcon */.g4 }), " zoom"] }), /*#__PURE__*/(0,jsx_runtime.jsx)("dd", { children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", { href: "https://support.zoom.us/hc/zh-cn/articles/201362033-Windows%E5%92%8CMAC%E5%85%A5%E9%97%A8%E6%8C%87%E5%8D%97", target: "go-to", children: "(\u7B80\u660E\u624B\u518C)" }) })] })] })] }), (detailLiveVideoList === null || detailLiveVideoList === void 0 ? void 0 : detailLiveVideoList.lives_count) === 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: LiveVideomodules.card, children: detailLiveVideoList.lives && detailLiveVideoList.lives.map(function (v, k) { return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, { children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, { span: 24, children: [v.course_name, /*#__PURE__*/(0,jsx_runtime.jsx)(util/* StatusClassroomsTags */.VV, { status: [v.on_status ? '已开播' : '未开播'] })] }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { span: 24, children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, { children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { flex: 1, children: v.description }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, { style: { padding: '0 20px' }, size: 'middle', type: "primary", onClick: function onClick() { dispatch({ type: 'classroomList/setActionTabs', payload: { key: '进入', params: params, data: v } }); }, children: "\u8FDB\u5165" }) })] }) }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { span: 24, children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, { className: "c-light-black", children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, { flex: 1, className: "font12", children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", { children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", { src: "".concat(v.author_img), alt: "", className: "mr20" }), v.author_name] }), v.platform && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", { className: "ml40", children: ["\u76F4\u64AD\u5E73\u53F0\uFF1A", v.platform] }), v.live_time && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", { className: "ml40", children: ["\u5F00\u64AD\u65F6\u95F4\uFF1A", v.live_time] }), v.duration && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", { className: "ml40", children: ["\u76F4\u64AD\u9884\u8BA1\u65F6\u957F\uFF1A", v.duration, "\u5206\u949F"] })] }), (0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, { children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", { style: { cursor: "pointer" }, onClick: function onClick() { dispatch({ type: 'classroomList/setActionTabs', payload: { key: '编辑', params: params, data: v } }); }, children: "\u7F16\u8F91" }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { style: { cursor: "pointer" }, className: "ml25", onClick: function onClick() { dispatch({ type: 'classroomList/setActionTabs', payload: { key: '删除', params: params, data: v } }); }, children: "\u5220\u9664" })] })] }) })] }); }) }), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", { className: "tc mb50 mt30", children: /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, { hideOnSinglePage: true, showSizeChanger: false, onChange: onShowSizeChange, pageSize: 15, current: params.page || 1, defaultCurrent: 1, total: detailLiveVideoList.total_count }) }), /*#__PURE__*/(0,jsx_runtime.jsx)(Del, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(Edit, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(AddLive, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(EnterLive, {})] }); }; /* harmony default export */ var LiveVideo = ((0,_umi_production_exports.connect)(function (_ref2) { var classroomList = _ref2.classroomList, loading = _ref2.loading, globalSetting = _ref2.globalSetting; return { classroomList: classroomList, globalSetting: globalSetting, loading: loading.models.index }; })(ShixunsListPage)); /***/ }), /***/ 79512: /*!*****************************************************************************!*\ !*** ./src/pages/Classrooms/Lists/components/TabMenu/index.tsx + 1 modules ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ components_TabMenu; } }); // 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/menu/index.js + 11 modules var menu = __webpack_require__(20834); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules var dropdown = __webpack_require__(38854); ;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/components/TabMenu/index.less?modules // extracted by mini-css-extract-plugin /* harmony default export */ var TabMenumodules = ({"tabMenuContainer":"tabMenuContainer___uf5IP","control":"control___GheLs","iconH":"iconH___Wzw_r","selectBtn":"selectBtn___mfEnI"}); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js var jsx_runtime = __webpack_require__(37712); ;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/components/TabMenu/index.tsx var TabMenu = function TabMenu(_ref) { var isLoading = _ref.isLoading, addText = _ref.addText, tabDataSource = _ref.tabDataSource, isAdmin = _ref.isAdmin, defaultSelectedKeys = _ref.defaultSelectedKeys, onTabMenuClick = _ref.onTabMenuClick, getDropdownMenu = _ref.getDropdownMenu, showControlButton = _ref.showControlButton, buttonText = _ref.buttonText, _ref$buttonIcon = _ref.buttonIcon, buttonIcon = _ref$buttonIcon === void 0 ? 'icon-tianjiadaohang' : _ref$buttonIcon, extraNode = _ref.extraNode, _ref$onButtonClick = _ref.onButtonClick, onButtonClick = _ref$onButtonClick === void 0 ? function () {} : _ref$onButtonClick; return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: TabMenumodules.tabMenuContainer, children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, { children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { flex: "1", children: /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z, { onSelect: function onSelect(v) { return !isLoading ? onTabMenuClick(v) : {}; }, mode: "horizontal", selectedKeys: defaultSelectedKeys, children: tabDataSource.map(function (item) { return /*#__PURE__*/(0,jsx_runtime.jsxs)(menu/* default */.Z.Item, { children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", { className: "c-grey-666", children: item.name }), item.total !== undefined && isAdmin && /*#__PURE__*/(0,jsx_runtime.jsx)("span", { className: "c-grey-999 ml20", children: item.total || 0 })] }, typeof item.index === 'number' ? item.index : item.id); }) }) }), isAdmin && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { className: "mr20", children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: TabMenumodules.control, children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: TabMenumodules.extra, children: extraNode }), showControlButton && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", { onClick: onButtonClick, style: { cursor: 'pointer' }, className: TabMenumodules.selectBtn, children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", { children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { className: "iconfont ".concat(buttonIcon) }) }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { children: buttonText })] }), !!getDropdownMenu && /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, { className: "ml10", dropdownRender: getDropdownMenu, children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", { className: TabMenumodules.selectBtn, children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", { children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { className: "iconfont icon-tianjiadaohang" }) }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { children: addText ? addText : '创建试卷' })] }) })] }) })] }) }); }; /* harmony default export */ var components_TabMenu = (TabMenu); /***/ }), /***/ 38854: /*!************************************************************************!*\ !*** ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules ***! \************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ es_dropdown; } }); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js var dropdown = __webpack_require__(91857); // EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js var _classnames_2_3_2_classnames = __webpack_require__(12124); var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules var EllipsisOutlined = __webpack_require__(93319); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js var es_button = __webpack_require__(3113); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js var context = __webpack_require__(36355); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules var space = __webpack_require__(81327); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js var Compact = __webpack_require__(33234); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/style/index.js + 1 modules var style = __webpack_require__(47211); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown-button.js "use client"; var __rest = undefined && undefined.__rest || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; const DropdownButton = props => { const { getPopupContainer: getContextPopupContainer, getPrefixCls, direction } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); const { prefixCls: customizePrefixCls, type = 'default', danger, disabled, loading, onClick, htmlType, children, className, menu, arrow, autoFocus, overlay, trigger, align, open, onOpenChange, placement, getPopupContainer, href, icon = /*#__PURE__*/_react_17_0_2_react.createElement(EllipsisOutlined/* default */.Z, null), title, buttonsRender = buttons => buttons, mouseEnterDelay, mouseLeaveDelay, overlayClassName, overlayStyle, destroyPopupOnHide, dropdownRender } = props, restProps = __rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]); const prefixCls = getPrefixCls('dropdown', customizePrefixCls); const buttonPrefixCls = `${prefixCls}-button`; const [wrapSSR, hashId] = (0,style/* default */.Z)(prefixCls); const dropdownProps = { menu, arrow, autoFocus, align, disabled, trigger: disabled ? [] : trigger, onOpenChange, getPopupContainer: getPopupContainer || getContextPopupContainer, mouseEnterDelay, mouseLeaveDelay, overlayClassName, overlayStyle, destroyPopupOnHide, dropdownRender }; const { compactSize, compactItemClassnames } = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction); const classes = _classnames_2_3_2_classnames_default()(buttonPrefixCls, compactItemClassnames, className, hashId); if ('overlay' in props) { dropdownProps.overlay = overlay; } if ('open' in props) { dropdownProps.open = open; } if ('placement' in props) { dropdownProps.placement = placement; } else { dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight'; } const leftButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, { type: type, danger: danger, disabled: disabled, loading: loading, onClick: onClick, htmlType: htmlType, href: href, title: title }, children); const rightButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, { type: type, danger: danger, icon: icon }); const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]); return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(space/* default */.Z.Compact, Object.assign({ className: classes, size: compactSize, block: true }, restProps), leftButtonToRender, /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({}, dropdownProps), rightButtonToRender))); }; DropdownButton.__ANT_BUTTON = true; /* harmony default export */ var dropdown_button = (DropdownButton); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js "use client"; const Dropdown = dropdown/* default */.Z; Dropdown.Button = dropdown_button; /* harmony default export */ var es_dropdown = (Dropdown); /***/ }), /***/ 1056: /*!*********************************************************************!*\ !*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ input; } }); // EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js var _classnames_2_3_2_classnames = __webpack_require__(12124); var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js var context = __webpack_require__(36355); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js var form_context = __webpack_require__(32441); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js var style = __webpack_require__(9937); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js "use client"; const Group = props => { const { getPrefixCls, direction } = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_); const { prefixCls: customizePrefixCls, className } = props; const prefixCls = getPrefixCls('input-group', customizePrefixCls); const inputPrefixCls = getPrefixCls('input'); const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls); const cls = _classnames_2_3_2_classnames_default()(prefixCls, { [`${prefixCls}-lg`]: props.size === 'large', [`${prefixCls}-sm`]: props.size === 'small', [`${prefixCls}-compact`]: props.compact, [`${prefixCls}-rtl`]: direction === 'rtl' }, hashId, className); const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM); const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), { isFormItemInput: false }), [formItemContext]); if (false) {} return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", { className: cls, style: props.style, onMouseEnter: props.onMouseEnter, onMouseLeave: props.onMouseLeave, onFocus: props.onFocus, onBlur: props.onBlur }, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, { value: groupFormItemContext }, props.children))); }; /* harmony default export */ var input_Group = (Group); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules var Input = __webpack_require__(9432); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(26508); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js // This icon file is generated automatically. var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" }; /* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules var AntdIcon = __webpack_require__(91851); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeInvisibleOutlined.js // GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) { return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { ref: ref, icon: asn_EyeInvisibleOutlined })); }; if (false) {} /* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined)); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules var EyeOutlined = __webpack_require__(15997); // EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/omit.js var omit = __webpack_require__(99468); // EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/ref.js var es_ref = __webpack_require__(88831); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js var useRemovePasswordTimeout = __webpack_require__(59412); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.js "use client"; var __rest = undefined && undefined.__rest || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; const defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null); const ActionMap = { click: 'onClick', hover: 'onMouseOver' }; const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { const { visibilityToggle = true } = props; const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined; const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false); const inputRef = (0,_react_17_0_2_react.useRef)(null); _react_17_0_2_react.useEffect(() => { if (visibilityControlled) { setVisible(visibilityToggle.visible); } }, [visibilityControlled, visibilityToggle]); // Remove Password value const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef); const onVisibleChange = () => { const { disabled } = props; if (disabled) { return; } if (visible) { removePasswordTimeout(); } setVisible(prevState => { var _a; const newState = !prevState; if (typeof visibilityToggle === 'object') { (_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState); } return newState; }); }; const getIcon = prefixCls => { const { action = 'click', iconRender = defaultIconRender } = props; const iconTrigger = ActionMap[action] || ''; const icon = iconRender(visible); const iconProps = { [iconTrigger]: onVisibleChange, className: `${prefixCls}-icon`, key: 'passwordIcon', onMouseDown: e => { // Prevent focused state lost // https://github.com/ant-design/ant-design/issues/15173 e.preventDefault(); }, onMouseUp: e => { // Prevent caret position change // https://github.com/ant-design/ant-design/issues/23524 e.preventDefault(); } }; return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps); }; const { className, prefixCls: customizePrefixCls, inputPrefixCls: customizeInputPrefixCls, size } = props, restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]); const { getPrefixCls } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls); const prefixCls = getPrefixCls('input-password', customizePrefixCls); const suffixIcon = visibilityToggle && getIcon(prefixCls); const inputClassName = _classnames_2_3_2_classnames_default()(prefixCls, className, { [`${prefixCls}-${size}`]: !!size }); const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), { type: visible ? 'text' : 'password', className: inputClassName, prefixCls: inputPrefixCls, suffix: suffixIcon }); if (size) { omittedProps.size = size; } return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({ ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef) }, omittedProps)); }); if (false) {} /* harmony default export */ var input_Password = (Password); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules var SearchOutlined = __webpack_require__(46820); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js var reactNode = __webpack_require__(92343); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js var es_button = __webpack_require__(3113); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js var useSize = __webpack_require__(19716); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js var Compact = __webpack_require__(33234); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js "use client"; var Search_rest = undefined && undefined.__rest || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; const Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { const { prefixCls: customizePrefixCls, inputPrefixCls: customizeInputPrefixCls, className, size: customizeSize, suffix, enterButton = false, addonAfter, loading, disabled, onSearch: customOnSearch, onChange: customOnChange, onCompositionStart, onCompositionEnd } = props, restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]); const { getPrefixCls, direction } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); const composedRef = _react_17_0_2_react.useRef(false); const prefixCls = getPrefixCls('input-search', customizePrefixCls); const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls); const { compactSize } = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction); const size = (0,useSize/* default */.Z)(ctx => { var _a; return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx; }); const inputRef = _react_17_0_2_react.useRef(null); const onChange = e => { if (e && e.target && e.type === 'click' && customOnSearch) { customOnSearch(e.target.value, e, { source: 'clear' }); } if (customOnChange) { customOnChange(e); } }; const onMouseDown = e => { var _a; if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) { e.preventDefault(); } }; const onSearch = e => { var _a, _b; if (customOnSearch) { customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, { source: 'input' }); } }; const onPressEnter = e => { if (composedRef.current || loading) { return; } onSearch(e); }; const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null; const btnClassName = `${prefixCls}-button`; let button; const enterButtonAsElement = enterButton || {}; const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true; if (isAntdButton || enterButtonAsElement.type === 'button') { button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({ onMouseDown, onClick: e => { var _a, _b; (_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e); onSearch(e); }, key: 'enterButton' }, isAntdButton ? { className: btnClassName, size } : {})); } else { button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, { className: btnClassName, type: enterButton ? 'primary' : undefined, size: size, disabled: disabled, key: "enterButton", onMouseDown: onMouseDown, onClick: onSearch, loading: loading, icon: searchIcon }, enterButton); } if (addonAfter) { button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, { key: 'addonAfter' })]; } const cls = _classnames_2_3_2_classnames_default()(prefixCls, { [`${prefixCls}-rtl`]: direction === 'rtl', [`${prefixCls}-${size}`]: !!size, [`${prefixCls}-with-button`]: !!enterButton }, className); const handleOnCompositionStart = e => { composedRef.current = true; onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e); }; const handleOnCompositionEnd = e => { composedRef.current = false; onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e); }; return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({ ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref), onPressEnter: onPressEnter }, restProps, { size: size, onCompositionStart: handleOnCompositionStart, onCompositionEnd: handleOnCompositionEnd, prefixCls: inputPrefixCls, addonAfter: button, suffix: suffix, onChange: onChange, className: cls, disabled: disabled })); }); if (false) {} /* harmony default export */ var input_Search = (Search); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js var TextArea = __webpack_require__(1643); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js "use client"; const input_Input = Input/* default */.Z; if (false) {} input_Input.Group = input_Group; input_Input.Search = input_Search; input_Input.TextArea = TextArea/* default */.Z; input_Input.Password = input_Password; /* harmony default export */ var input = (input_Input); /***/ }), /***/ 44000: /*!**********************************************************!*\ !*** ./node_modules/_antd@5.9.0@antd/es/layout/index.js ***! \**********************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 84966); /* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 37534); "use client"; const Layout = _layout__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP; Layout.Header = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Header */ .h4; Layout.Footer = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Footer */ .$_; Layout.Content = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Content */ .VY; Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z; /* harmony default export */ __webpack_exports__.Z = (Layout); /***/ }), /***/ 81327: /*!*********************************************************************!*\ !*** ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ space; } }); // UNUSED EXPORTS: SpaceContext // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); // EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js var _classnames_2_3_2_classnames = __webpack_require__(12124); var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames); // EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/Children/toArray.js var toArray = __webpack_require__(45659); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js var context = __webpack_require__(36355); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js var Compact = __webpack_require__(33234); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/context.js const SpaceContext = /*#__PURE__*/_react_17_0_2_react.createContext({ latestIndex: 0 }); const SpaceContextProvider = SpaceContext.Provider; ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Item.js "use client"; const Item = _ref => { let { className, index, children, split, style } = _ref; const { latestIndex } = _react_17_0_2_react.useContext(SpaceContext); if (children === null || children === undefined) { return null; } return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("div", { className: className, style: style }, children), index < latestIndex && split && /*#__PURE__*/_react_17_0_2_react.createElement("span", { className: `${className}-split` }, split)); }; /* harmony default export */ var space_Item = (Item); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/style/index.js + 1 modules var space_style = __webpack_require__(2856); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/utils.js function isPresetSize(size) { return ['small', 'middle', 'large'].includes(size); } function isValidGapNumber(size) { if (!size) { // The case of size = 0 is deliberately excluded here, because the default value of the gap attribute in CSS is 0, so if the user passes 0 in, we can directly ignore it. return false; } return typeof size === 'number' && !Number.isNaN(size); } ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js "use client"; var __rest = undefined && undefined.__rest || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; const Space = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { var _a, _b; const { getPrefixCls, space, direction: directionConfig } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); const { size = (space === null || space === void 0 ? void 0 : space.size) || 'small', align, className, rootClassName, children, direction = 'horizontal', prefixCls: customizePrefixCls, split, style, wrap = false, classNames: customClassNames, styles } = props, otherProps = __rest(props, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]); const [horizontalSize, verticalSize] = Array.isArray(size) ? size : [size, size]; const isPresetVerticalSize = isPresetSize(verticalSize); const isPresetHorizontalSize = isPresetSize(horizontalSize); const isValidVerticalSize = isValidGapNumber(verticalSize); const isValidHorizontalSize = isValidGapNumber(horizontalSize); const childNodes = (0,toArray/* default */.Z)(children, { keepEmpty: true }); const mergedAlign = align === undefined && direction === 'horizontal' ? 'center' : align; const prefixCls = getPrefixCls('space', customizePrefixCls); const [wrapSSR, hashId] = (0,space_style/* default */.Z)(prefixCls); const cls = _classnames_2_3_2_classnames_default()(prefixCls, space === null || space === void 0 ? void 0 : space.className, hashId, `${prefixCls}-${direction}`, { [`${prefixCls}-rtl`]: directionConfig === 'rtl', [`${prefixCls}-align-${mergedAlign}`]: mergedAlign, [`${prefixCls}-gap-row-${verticalSize}`]: isPresetVerticalSize, [`${prefixCls}-gap-col-${horizontalSize}`]: isPresetHorizontalSize }, className, rootClassName); const itemClassName = _classnames_2_3_2_classnames_default()(`${prefixCls}-item`, (_a = customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.classNames) === null || _b === void 0 ? void 0 : _b.item); // Calculate latest one let latestIndex = 0; const nodes = childNodes.map((child, i) => { var _a, _b; if (child !== null && child !== undefined) { latestIndex = i; } const key = child && child.key || `${itemClassName}-${i}`; return /*#__PURE__*/_react_17_0_2_react.createElement(space_Item, { className: itemClassName, key: key, index: i, split: split, style: (_a = styles === null || styles === void 0 ? void 0 : styles.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.styles) === null || _b === void 0 ? void 0 : _b.item }, child); }); const spaceContext = _react_17_0_2_react.useMemo(() => ({ latestIndex }), [latestIndex]); // =========================== Render =========================== if (childNodes.length === 0) { return null; } const gapStyle = {}; if (wrap) { gapStyle.flexWrap = 'wrap'; } if (!isPresetHorizontalSize && isValidHorizontalSize) { gapStyle.columnGap = horizontalSize; } if (!isPresetVerticalSize && isValidVerticalSize) { gapStyle.rowGap = verticalSize; } return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({ ref: ref, className: cls, style: Object.assign(Object.assign(Object.assign({}, gapStyle), space === null || space === void 0 ? void 0 : space.style), style) }, otherProps), /*#__PURE__*/_react_17_0_2_react.createElement(SpaceContextProvider, { value: spaceContext }, nodes))); }); if (false) {} const CompoundedSpace = Space; CompoundedSpace.Compact = Compact/* default */.ZP; /* harmony default export */ var space = (CompoundedSpace); /***/ }), /***/ 25769: /*!**************************************************************************!*\ !*** ./node_modules/_copy-to-clipboard@3.3.3@copy-to-clipboard/index.js ***! \**************************************************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; var deselectCurrent = __webpack_require__(/*! toggle-selection */ 98040); var clipboardToIE11Formatting = { "text/plain": "Text", "text/html": "Url", "default": "Text" } var defaultMessage = "Copy to clipboard: #{key}, Enter"; function format(message) { var copyKey = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C"; return message.replace(/#{\s*key\s*}/g, copyKey); } function copy(text, options) { var debug, message, reselectPrevious, range, selection, mark, success = false; if (!options) { options = {}; } debug = options.debug || false; try { reselectPrevious = deselectCurrent(); range = document.createRange(); selection = document.getSelection(); mark = document.createElement("span"); mark.textContent = text; // avoid screen readers from reading out loud the text mark.ariaHidden = "true" // reset user styles for span element mark.style.all = "unset"; // prevents scrolling to the end of the page mark.style.position = "fixed"; mark.style.top = 0; mark.style.clip = "rect(0, 0, 0, 0)"; // used to preserve spaces and line breaks mark.style.whiteSpace = "pre"; // do not inherit user-select (it may be `none`) mark.style.webkitUserSelect = "text"; mark.style.MozUserSelect = "text"; mark.style.msUserSelect = "text"; mark.style.userSelect = "text"; mark.addEventListener("copy", function(e) { e.stopPropagation(); if (options.format) { e.preventDefault(); if (typeof e.clipboardData === "undefined") { // IE 11 debug && console.warn("unable to use e.clipboardData"); debug && console.warn("trying IE specific stuff"); window.clipboardData.clearData(); var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting["default"] window.clipboardData.setData(format, text); } else { // all other browsers e.clipboardData.clearData(); e.clipboardData.setData(options.format, text); } } if (options.onCopy) { e.preventDefault(); options.onCopy(e.clipboardData); } }); document.body.appendChild(mark); range.selectNodeContents(mark); selection.addRange(range); var successful = document.execCommand("copy"); if (!successful) { throw new Error("copy command was unsuccessful"); } success = true; } catch (err) { debug && console.error("unable to copy using execCommand: ", err); debug && console.warn("trying IE specific stuff"); try { window.clipboardData.setData(options.format || "text", text); options.onCopy && options.onCopy(window.clipboardData); success = true; } catch (err) { debug && console.error("unable to copy using clipboardData: ", err); debug && console.error("falling back to prompt"); message = format("message" in options ? options.message : defaultMessage); window.prompt(message, text); } } finally { if (selection) { if (typeof selection.removeRange == "function") { selection.removeRange(range); } else { selection.removeAllRanges(); } } if (mark) { document.body.removeChild(mark); } reselectPrevious(); } return success; } module.exports = copy; /***/ }), /***/ 83145: /*!**********************************************************************************************!*\ !*** ./node_modules/_react-copy-to-clipboard@5.0.2@react-copy-to-clipboard/lib/Component.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CopyToClipboard = void 0; var _react = _interopRequireDefault(__webpack_require__(/*! react */ 59301)); var _copyToClipboard = _interopRequireDefault(__webpack_require__(/*! copy-to-clipboard */ 25769)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var CopyToClipboard = /*#__PURE__*/ function (_React$PureComponent) { _inherits(CopyToClipboard, _React$PureComponent); function CopyToClipboard() { var _getPrototypeOf2; var _this; _classCallCheck(this, CopyToClipboard); for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(CopyToClipboard)).call.apply(_getPrototypeOf2, [this].concat(args))); _defineProperty(_assertThisInitialized(_this), "onClick", function (event) { var _this$props = _this.props, text = _this$props.text, onCopy = _this$props.onCopy, children = _this$props.children, options = _this$props.options; var elem = _react["default"].Children.only(children); var result = (0, _copyToClipboard["default"])(text, options); if (onCopy) { onCopy(text, result); } // Bypass onClick if it was present if (elem && elem.props && typeof elem.props.onClick === 'function') { elem.props.onClick(event); } }); return _this; } _createClass(CopyToClipboard, [{ key: "render", value: function render() { var _this$props2 = this.props, _text = _this$props2.text, _onCopy = _this$props2.onCopy, _options = _this$props2.options, children = _this$props2.children, props = _objectWithoutProperties(_this$props2, ["text", "onCopy", "options", "children"]); var elem = _react["default"].Children.only(children); return _react["default"].cloneElement(elem, _objectSpread({}, props, { onClick: this.onClick })); } }]); return CopyToClipboard; }(_react["default"].PureComponent); exports.CopyToClipboard = CopyToClipboard; _defineProperty(CopyToClipboard, "defaultProps", { onCopy: undefined, options: undefined }); /***/ }), /***/ 56102: /*!******************************************************************************************!*\ !*** ./node_modules/_react-copy-to-clipboard@5.0.2@react-copy-to-clipboard/lib/index.js ***! \******************************************************************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; var _require = __webpack_require__(/*! ./Component */ 83145), CopyToClipboard = _require.CopyToClipboard; CopyToClipboard.CopyToClipboard = CopyToClipboard; module.exports = CopyToClipboard; /***/ }), /***/ 98040: /*!************************************************************************!*\ !*** ./node_modules/_toggle-selection@1.0.6@toggle-selection/index.js ***! \************************************************************************/ /***/ (function(module) { module.exports = function () { var selection = document.getSelection(); if (!selection.rangeCount) { return function () {}; } var active = document.activeElement; var ranges = []; for (var i = 0; i < selection.rangeCount; i++) { ranges.push(selection.getRangeAt(i)); } switch (active.tagName.toUpperCase()) { // .toUpperCase handles XHTML case 'INPUT': case 'TEXTAREA': active.blur(); break; default: active = null; break; } selection.removeAllRanges(); return function () { selection.type === 'Caret' && selection.removeAllRanges(); if (!selection.rangeCount) { ranges.forEach(function(range) { selection.addRange(range); }); } active && active.focus(); }; }; /***/ }) }]);