From 0764a0cb163f8c78d348e9638b9629fb25cc4d4e Mon Sep 17 00:00:00 2001 From: autosubmit Date: Fri, 8 Dec 2023 17:20:35 +0800 Subject: [PATCH] Auto Submit --- 15220.async.js | 5 +- 29414.async.js | 5 +- 3471.async.js | 5 +- 41001.async.js | 5 +- 488.async.js | 146 +- 49166.async.js | 5 +- 49845.async.js | 5 +- 50057.async.js | 5 +- 53500.async.js => 57406.async.js | 2130 +++++- 57435.async.js | 5 +- 63240.async.js | 5 +- 63510.async.js | 36 +- 63791.async.js | 5 +- 64738.async.js | 5 +- 68719.async.js | 1515 ++++ 69859.async.js | 5 +- 71244.async.js | 8 + 72422.async.js | 5 +- 74237.async.js | 2986 -------- 76626.async.js | 13 +- 80758.async.js | 1344 ++++ 89200.async.js | 8 + 91375.async.js | 5 +- 19025.async.js => 93982.async.js | 1081 +-- 99131.async.js | 5 +- js/public.js | 48 +- layouts__ShixunDetail__index.async.js | 11 +- layouts__SimpleLayouts.async.js | 41 +- layouts__SimpleLayouts.chunk.css | 2 +- layouts__index.chunk.css | 2 +- layouts__user__index.async.js | 4 +- layouts__user__index.chunk.css | 2 +- p__Administration__College__index.async.js | 5 +- ...ssrooms__Lists__Attachment__index.async.js | 10 +- ...srooms__Lists__Attachment__index.chunk.css | 2 +- ...srooms__Lists__Board__Edit__index.async.js | 13 +- p__Classrooms__Lists__Board__index.async.js | 2 +- ...ts__CommonHomework__Review__index.async.js | 11 +- ...oms__Lists__CommonHomework__index.async.js | 8 + ...__Lists__CourseGroup__List__index.async.js | 27 +- ...s__Lists__Exercise__Answer__index.async.js | 30 +- ...s__Lists__Exercise__Detail__index.async.js | 35 +- ...s__Exercise__ImitateAnswer__index.async.js | 25 +- ...s__Lists__Exercise__Review__index.async.js | 16 +- ...lassrooms__Lists__Exercise__index.async.js | 5 +- ...sts__GroupHomework__Detail__index.async.js | 5 +- ...s__ShixunHomeworks__Detail__index.async.js | 11 +- ...ssrooms__Lists__Statistics__index.async.js | 5 +- ...lassrooms__Lists__Template__index.async.js | 5 +- ...ooms__Lists__Video__Upload__index.async.js | 15 +- p__Classrooms__Lists__Video__index.chunk.css | 6 +- p__Competitions__Edit__index.async.js | 22 +- p__Forums__Index__index.async.js | 4 +- p__Graduations__Lists__Topics__index.async.js | 8 + p__Innovation__Detail__index.async.js | 8 + p__Innovation__Detail__index.chunk.css | 2 +- p__Innovation__Tasks__index.async.js | 8 + p__Innovation__Tasks__index.chunk.css | 2 +- p__Message__index.async.js | 5 +- p__MoopCases__InfoPanel__index.async.js | 5 +- p__Paperlibrary__Random__Edit__index.async.js | 13 +- ...brary__Random__PreviewEdit__index.async.js | 5 +- p__Paperlibrary__See__index.async.js | 5 +- p__Paths__Index__index.async.js | 8 + p__Question__OjProblem__index.chunk.css | 6 +- ...ns__Detail__Collaborators__index.chunk.css | 2 +- p__Shixuns__Detail__Discuss__index.async.js | 5 +- p__Shixuns__Detail__id.async.js | 5 +- p__Shixuns__Edit__index.async.js | 750 +- p__Shixuns__Edit__index.chunk.css | 2 +- p__User__Detail__Videos__index.chunk.css | 6 +- p__Video__Detail__id.chunk.css | 6 +- p__index.async.js | 2387 +++++- p__index.chunk.css | 6778 +++++++++-------- p__tasks__Jupyter__index.async.js | 794 +- p__tasks__index.async.js | 1741 ++++- p__tasks__index.chunk.css | 16 +- ...alSpaces__Lists__Knowledge__index.async.js | 8 + umi.css | 1 - umi.js | 1664 ++-- 80 files changed, 14107 insertions(+), 9847 deletions(-) rename 53500.async.js => 57406.async.js (52%) create mode 100644 68719.async.js delete mode 100644 74237.async.js create mode 100644 80758.async.js rename 19025.async.js => 93982.async.js (70%) diff --git a/15220.async.js b/15220.async.js index f0ca0faec9..c824c1bfa5 100644 --- a/15220.async.js +++ b/15220.async.js @@ -1943,10 +1943,7 @@ if (false) {} /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } -/* harmony export */ }); -/* unused harmony export getOverlay */ +/* unused harmony exports getOverlay, RawPurePanel */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/29414.async.js b/29414.async.js index 405642d8f4..31a56d58c6 100644 --- a/29414.async.js +++ b/29414.async.js @@ -1493,10 +1493,7 @@ if (false) {} /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } -/* harmony export */ }); -/* unused harmony export getOverlay */ +/* unused harmony exports getOverlay, RawPurePanel */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/3471.async.js b/3471.async.js index 2cee08b524..d3a2e42635 100644 --- a/3471.async.js +++ b/3471.async.js @@ -834,10 +834,7 @@ input_Input.Password = input_Password; /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } -/* harmony export */ }); -/* unused harmony export getOverlay */ +/* unused harmony exports getOverlay, RawPurePanel */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/41001.async.js b/41001.async.js index d3d01dcf36..66db96194d 100644 --- a/41001.async.js +++ b/41001.async.js @@ -589,10 +589,7 @@ Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z; \***************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } -/* harmony export */ }); -/* unused harmony export getOverlay */ +/* unused harmony exports getOverlay, RawPurePanel */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/488.async.js b/488.async.js index 862c3acffe..ca45f52a29 100644 --- a/488.async.js +++ b/488.async.js @@ -1445,6 +1445,42 @@ var User = function User(_ref) { })) === null || _find3 === void 0 ? void 0 : _find3.hidden; var isPaperlibraryShow = ((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.admin) || ((_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.business) || ((_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.is_shixun_marker) || ((_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.is_teacher) || ((_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.user_identity) !== '学生'; var isCollegeManageShow = (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.is_school_manage; + var handleLoginOut = /*#__PURE__*/function () { + var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() { + var res; + return regeneratorRuntime_default()().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + (0,util/* clearAllCookies */.m5)(); + _context.prev = 1; + _context.next = 4; + return (0,service_user/* LoginOut */.vR)({}); + case 4: + res = _context.sent; + message/* default */.ZP.success(res === null || res === void 0 ? void 0 : res.message); + _context.next = 10; + break; + case 8: + _context.prev = 8; + _context.t0 = _context["catch"](1); + case 10: + localStorage.removeItem('isfirst'); + localStorage.removeItem('SystemUpdateadvtime'); + localStorage.removeItem('item'); + localStorage.removeItem('iscreate'); + // localStorage.removeItem('CCshow') + _umi_production_exports.history.replace('/'); + window.location.reload(); + case 16: + case "end": + return _context.stop(); + } + }, _callee, null, [[1, 8]]); + })); + return function handleLoginOut() { + return _ref2.apply(this, arguments); + }; + }(); var DropdownMenu = function DropdownMenu() { if ((0,util/* checkIsClientExam */.Ll)()) { return /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z, { @@ -1558,37 +1594,7 @@ var User = function User(_ref) { }), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, { className: Usermodules.exit, children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", { - onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() { - var res; - return regeneratorRuntime_default()().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - (0,util/* clearAllCookies */.m5)(); - _context.prev = 1; - _context.next = 4; - return (0,service_user/* LoginOut */.vR)({}); - case 4: - res = _context.sent; - message/* default */.ZP.success(res === null || res === void 0 ? void 0 : res.message); - _context.next = 10; - break; - case 8: - _context.prev = 8; - _context.t0 = _context["catch"](1); - case 10: - localStorage.removeItem('isfirst'); - localStorage.removeItem('SystemUpdateadvtime'); - localStorage.removeItem('item'); - localStorage.removeItem('iscreate'); - // localStorage.removeItem('CCshow') - _umi_production_exports.history.replace('/'); - window.location.reload(); - case 16: - case "end": - return _context.stop(); - } - }, _callee, null, [[1, 8]]); - })), + onClick: handleLoginOut, children: "\u9000\u51FA" }) })] @@ -1597,38 +1603,52 @@ var User = function User(_ref) { }; if ((0,authority/* isLogin */.bg)()) { var _user$userInfo19, _user$userInfo21; - return /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, { - className: "".concat(Usermodules.height67), - dropdownRender: DropdownMenu, - placement: "bottomRight", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("section", { - children: /*#__PURE__*/(0,jsx_runtime.jsx)("aside", { - children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - className: shixunHomeworks.actionTabs.type === 1 ? Usermodules.classromediv : '', - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", { - className: "".concat(Usermodules.userPic, " current ml15"), - src: "".concat(env/* default */.Z === null || env/* default */.Z === void 0 ? void 0 : env/* default */.Z.IMG_SERVER, "/images/").concat((_user$userInfo19 = user.userInfo) === null || _user$userInfo19 === void 0 ? void 0 : _user$userInfo19.image_url), - alt: "", - onClick: function onClick() { - var _user$userInfo20; - return _umi_production_exports.history.push((0,util/* checkIsClientExam */.Ll)() ? '/account/profile' : "/users/".concat((_user$userInfo20 = user.userInfo) === null || _user$userInfo20 === void 0 ? void 0 : _user$userInfo20.login, "/classrooms")); - } - }), (0,util/* checkIsClientExam */.Ll)() && /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: "ml10 font16", - children: (_user$userInfo21 = user.userInfo) === null || _user$userInfo21 === void 0 ? void 0 : _user$userInfo21.username - }), /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "iconfont icon-zhankai4 ".concat(Usermodules.icon) - })] + return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, { + align: "middle", + children: [/*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z + // className={`${styles.height67}`} + , { + dropdownRender: DropdownMenu, + placement: "bottomRight", + children: /*#__PURE__*/(0,jsx_runtime.jsx)("section", { + children: /*#__PURE__*/(0,jsx_runtime.jsx)("aside", { + children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: shixunHomeworks.actionTabs.type === 1 ? Usermodules.classromediv : '', + children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", { + className: "".concat(Usermodules.userPic, " current ml15"), + alt: "", + src: "".concat(env/* default */.Z === null || env/* default */.Z === void 0 ? void 0 : env/* default */.Z.IMG_SERVER, "/images/").concat((_user$userInfo19 = user.userInfo) === null || _user$userInfo19 === void 0 ? void 0 : _user$userInfo19.image_url), + onClick: function onClick() { + var _user$userInfo20; + return _umi_production_exports.history.push((0,util/* checkIsClientExam */.Ll)() ? '/account/profile' : "/users/".concat((_user$userInfo20 = user.userInfo) === null || _user$userInfo20 === void 0 ? void 0 : _user$userInfo20.login, "/classrooms")); + } + }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { + className: "ml10", + children: (_user$userInfo21 = user.userInfo) === null || _user$userInfo21 === void 0 ? void 0 : _user$userInfo21.username + })] + }) }) }) - }) + }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { + className: "ml30", + children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", { + onClick: handleLoginOut, + style: { + color: "#4CACFF" + }, + children: "\u9000\u51FA" + }) + })] }); } else { var _globalSetting$settin4; return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - className: "font15 ".concat(globalSetting.isIlearning ? Usermodules.login : ""), + className: "".concat(globalSetting.isIlearning ? Usermodules.login : ""), + style: { + color: "#4CACFF" + }, children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: "ml10 mr5 current c-white", + className: "ml10 mr5 current ", onClick: function onClick() { dispatch({ type: 'user/showPopLogin', @@ -1645,7 +1665,10 @@ var User = function User(_ref) { children: "|" }), /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, { to: "/user/register", - className: "ml5 current c-white pr25", + className: "ml5 current pr25", + style: { + color: "#4CACFF" + }, children: "\u6CE8\u518C" })] })] @@ -2141,7 +2164,7 @@ var HeaderComponents = function HeaderComponents(_ref) { return str; }; if (globalSetting.showHeader && globalSetting.showHeaderFooter) { - var _globalSetting$settin5, _user$userInfo, _user$userInfo2, _user$navigationInfo; + var _globalSetting$settin5, _globalSetting$settin6, _globalSetting$settin7, _user$userInfo, _user$userInfo2, _user$navigationInfo; return ( /*#__PURE__*/ //style={{background:`${location.pathname=='/training'?'rgba(0,0,0,0)':''}`}} @@ -2158,10 +2181,7 @@ var HeaderComponents = function HeaderComponents(_ref) { }, children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("section", { className: Headermodules['edu-menu'], - children: [ - /*#__PURE__*/ - // (!!globalSetting.isIlearning || (!globalSetting?.setting?.main_site && !!globalSetting?.setting?.navbar)) && - (0,jsx_runtime.jsx)(_umi_production_exports.Link, { + children: [(!!globalSetting.isIlearning || !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin5 = globalSetting.setting) !== null && _globalSetting$settin5 !== void 0 && _globalSetting$settin5.main_site) && !!(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin6 = globalSetting.setting) !== null && _globalSetting$settin6 !== void 0 && _globalSetting$settin6.navbar)) && /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, { style: { display: 'flex', alignItems: 'center' @@ -2177,7 +2197,7 @@ var HeaderComponents = function HeaderComponents(_ref) { to: "/", children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", { className: Headermodules.logo, - title: (_globalSetting$settin5 = globalSetting.setting) === null || _globalSetting$settin5 === void 0 ? void 0 : _globalSetting$settin5.name, + title: (_globalSetting$settin7 = globalSetting.setting) === null || _globalSetting$settin7 === void 0 ? void 0 : _globalSetting$settin7.name, src: logoUrl || logo }) }), /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", { diff --git a/49166.async.js b/49166.async.js index 076f6a4c74..a7d4ce4e51 100644 --- a/49166.async.js +++ b/49166.async.js @@ -356,10 +356,7 @@ if (false) {} /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } -/* harmony export */ }); -/* unused harmony export getOverlay */ +/* unused harmony exports getOverlay, RawPurePanel */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/49845.async.js b/49845.async.js index cabbabcf3b..5eaa4ce659 100644 --- a/49845.async.js +++ b/49845.async.js @@ -1026,10 +1026,7 @@ if (false) {} /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } -/* harmony export */ }); -/* unused harmony export getOverlay */ +/* unused harmony exports getOverlay, RawPurePanel */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/50057.async.js b/50057.async.js index f3f8d28e3d..5804ba2207 100644 --- a/50057.async.js +++ b/50057.async.js @@ -598,10 +598,7 @@ input_Input.Password = input_Password; /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } -/* harmony export */ }); -/* unused harmony export getOverlay */ +/* unused harmony exports getOverlay, RawPurePanel */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/53500.async.js b/57406.async.js similarity index 52% rename from 53500.async.js rename to 57406.async.js index 641aed6ab3..ad18556ec7 100644 --- a/53500.async.js +++ b/57406.async.js @@ -1,4 +1,4 @@ -(self["webpackChunk"] = self["webpackChunk"] || []).push([[53500,72032,23760],{ +(self["webpackChunk"] = self["webpackChunk"] || []).push([[57406,73755,45413,72032,23760],{ /***/ 47104: /*!*************************************************************************************************************!*\ @@ -984,6 +984,2134 @@ Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z; /***/ }), +/***/ 73755: +/*!********************************************************************!*\ + !*** ./node_modules/_antd@5.9.0@antd/es/list/index.js + 3 modules ***! + \********************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ list; } +}); + +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(40877); +// 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/_util/extendsObject.js +var extendsObject = __webpack_require__(50371); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/responsiveObserver.js +var responsiveObserver = __webpack_require__(69507); +// 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/config-provider/defaultRenderEmpty.js +var defaultRenderEmpty = __webpack_require__(93891); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/grid/row.js +var row = __webpack_require__(27382); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/grid/hooks/useBreakpoint.js +var useBreakpoint = __webpack_require__(8628); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules +var es_pagination = __webpack_require__(41867); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules +var spin = __webpack_require__(71418); +// 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/grid/col.js +var col = __webpack_require__(37028); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/list/context.js + +const ListContext = /*#__PURE__*/_react_17_0_2_react.createContext({}); +const ListConsumer = ListContext.Consumer; +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/list/Item.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 Meta = _a => { + var { + prefixCls: customizePrefixCls, + className, + avatar, + title, + description + } = _a, + others = __rest(_a, ["prefixCls", "className", "avatar", "title", "description"]); + const { + getPrefixCls + } = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_); + const prefixCls = getPrefixCls('list', customizePrefixCls); + const classString = _classnames_2_3_2_classnames_default()(`${prefixCls}-item-meta`, className); + const content = /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-item-meta-content` + }, title && /*#__PURE__*/_react_17_0_2_react.createElement("h4", { + className: `${prefixCls}-item-meta-title` + }, title), description && /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-item-meta-description` + }, description)); + return /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({}, others, { + className: classString + }), avatar && /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-item-meta-avatar` + }, avatar), (title || description) && content); +}; +const InternalItem = (_a, ref) => { + var { + prefixCls: customizePrefixCls, + children, + actions, + extra, + className, + colStyle + } = _a, + others = __rest(_a, ["prefixCls", "children", "actions", "extra", "className", "colStyle"]); + const { + grid, + itemLayout + } = (0,_react_17_0_2_react.useContext)(ListContext); + const { + getPrefixCls + } = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_); + const isItemContainsTextNodeAndNotSingular = () => { + let result; + _react_17_0_2_react.Children.forEach(children, element => { + if (typeof element === 'string') { + result = true; + } + }); + return result && _react_17_0_2_react.Children.count(children) > 1; + }; + const isFlexMode = () => { + if (itemLayout === 'vertical') { + return !!extra; + } + return !isItemContainsTextNodeAndNotSingular(); + }; + const prefixCls = getPrefixCls('list', customizePrefixCls); + const actionsContent = actions && actions.length > 0 && /*#__PURE__*/_react_17_0_2_react.createElement("ul", { + className: `${prefixCls}-item-action`, + key: "actions" + }, actions.map((action, i) => + /*#__PURE__*/ + // eslint-disable-next-line react/no-array-index-key + _react_17_0_2_react.createElement("li", { + key: `${prefixCls}-item-action-${i}` + }, action, i !== actions.length - 1 && /*#__PURE__*/_react_17_0_2_react.createElement("em", { + className: `${prefixCls}-item-action-split` + })))); + const Element = grid ? 'div' : 'li'; + const itemChildren = /*#__PURE__*/_react_17_0_2_react.createElement(Element, Object.assign({}, others, !grid ? { + ref + } : {}, { + className: _classnames_2_3_2_classnames_default()(`${prefixCls}-item`, { + [`${prefixCls}-item-no-flex`]: !isFlexMode() + }, className) + }), itemLayout === 'vertical' && extra ? [/*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-item-main`, + key: "content" + }, children, actionsContent), /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-item-extra`, + key: "extra" + }, extra)] : [children, actionsContent, (0,reactNode/* cloneElement */.Tm)(extra, { + key: 'extra' + })]); + return grid ? /*#__PURE__*/_react_17_0_2_react.createElement(col/* default */.Z, { + ref: ref, + flex: 1, + style: colStyle + }, itemChildren) : itemChildren; +}; +const Item = /*#__PURE__*/(0,_react_17_0_2_react.forwardRef)(InternalItem); +Item.Meta = Meta; +/* harmony default export */ var list_Item = (Item); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js +var style = __webpack_require__(17313); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js +var genComponentStyleHook = __webpack_require__(83116); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js +var statistic = __webpack_require__(37613); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/list/style/index.js + + +const genBorderedStyle = token => { + const { + listBorderedCls, + componentCls, + paddingLG, + margin, + itemPaddingSM, + itemPaddingLG, + marginLG, + borderRadiusLG + } = token; + return { + [`${listBorderedCls}`]: { + border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`, + borderRadius: borderRadiusLG, + [`${componentCls}-header,${componentCls}-footer,${componentCls}-item`]: { + paddingInline: paddingLG + }, + [`${componentCls}-pagination`]: { + margin: `${margin}px ${marginLG}px` + } + }, + [`${listBorderedCls}${componentCls}-sm`]: { + [`${componentCls}-item,${componentCls}-header,${componentCls}-footer`]: { + padding: itemPaddingSM + } + }, + [`${listBorderedCls}${componentCls}-lg`]: { + [`${componentCls}-item,${componentCls}-header,${componentCls}-footer`]: { + padding: itemPaddingLG + } + } + }; +}; +const genResponsiveStyle = token => { + const { + componentCls, + screenSM, + screenMD, + marginLG, + marginSM, + margin + } = token; + return { + [`@media screen and (max-width:${screenMD})`]: { + [`${componentCls}`]: { + [`${componentCls}-item`]: { + [`${componentCls}-item-action`]: { + marginInlineStart: marginLG + } + } + }, + [`${componentCls}-vertical`]: { + [`${componentCls}-item`]: { + [`${componentCls}-item-extra`]: { + marginInlineStart: marginLG + } + } + } + }, + [`@media screen and (max-width: ${screenSM})`]: { + [`${componentCls}`]: { + [`${componentCls}-item`]: { + flexWrap: 'wrap', + [`${componentCls}-action`]: { + marginInlineStart: marginSM + } + } + }, + [`${componentCls}-vertical`]: { + [`${componentCls}-item`]: { + flexWrap: 'wrap-reverse', + [`${componentCls}-item-main`]: { + minWidth: token.contentWidth + }, + [`${componentCls}-item-extra`]: { + margin: `auto auto ${margin}px` + } + } + } + } + }; +}; +// =============================== Base =============================== +const genBaseStyle = token => { + const { + componentCls, + antCls, + controlHeight, + minHeight, + paddingSM, + marginLG, + padding, + itemPadding, + colorPrimary, + itemPaddingSM, + itemPaddingLG, + paddingXS, + margin, + colorText, + colorTextDescription, + motionDurationSlow, + lineWidth, + headerBg, + footerBg, + emptyTextPadding, + metaMarginBottom, + avatarMarginRight, + titleMarginBottom, + descriptionFontSize + } = token; + const alignCls = {}; + ['start', 'center', 'end'].forEach(item => { + alignCls[`&-align-${item}`] = { + textAlign: item + }; + }); + return { + [`${componentCls}`]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), { + position: 'relative', + '*': { + outline: 'none' + }, + [`${componentCls}-header`]: { + background: headerBg + }, + [`${componentCls}-footer`]: { + background: footerBg + }, + [`${componentCls}-header, ${componentCls}-footer`]: { + paddingBlock: paddingSM + }, + [`${componentCls}-pagination`]: Object.assign(Object.assign({ + marginBlockStart: marginLG + }, alignCls), { + // https://github.com/ant-design/ant-design/issues/20037 + [`${antCls}-pagination-options`]: { + textAlign: 'start' + } + }), + [`${componentCls}-spin`]: { + minHeight, + textAlign: 'center' + }, + [`${componentCls}-items`]: { + margin: 0, + padding: 0, + listStyle: 'none' + }, + [`${componentCls}-item`]: { + display: 'flex', + alignItems: 'center', + justifyContent: 'space-between', + padding: itemPadding, + color: colorText, + [`${componentCls}-item-meta`]: { + display: 'flex', + flex: 1, + alignItems: 'flex-start', + maxWidth: '100%', + [`${componentCls}-item-meta-avatar`]: { + marginInlineEnd: avatarMarginRight + }, + [`${componentCls}-item-meta-content`]: { + flex: '1 0', + width: 0, + color: colorText + }, + [`${componentCls}-item-meta-title`]: { + margin: `0 0 ${token.marginXXS}px 0`, + color: colorText, + fontSize: token.fontSize, + lineHeight: token.lineHeight, + '> a': { + color: colorText, + transition: `all ${motionDurationSlow}`, + [`&:hover`]: { + color: colorPrimary + } + } + }, + [`${componentCls}-item-meta-description`]: { + color: colorTextDescription, + fontSize: descriptionFontSize, + lineHeight: token.lineHeight + } + }, + [`${componentCls}-item-action`]: { + flex: '0 0 auto', + marginInlineStart: token.marginXXL, + padding: 0, + fontSize: 0, + listStyle: 'none', + [`& > li`]: { + position: 'relative', + display: 'inline-block', + padding: `0 ${paddingXS}px`, + color: colorTextDescription, + fontSize: token.fontSize, + lineHeight: token.lineHeight, + textAlign: 'center', + [`&:first-child`]: { + paddingInlineStart: 0 + } + }, + [`${componentCls}-item-action-split`]: { + position: 'absolute', + insetBlockStart: '50%', + insetInlineEnd: 0, + width: lineWidth, + height: Math.ceil(token.fontSize * token.lineHeight) - token.marginXXS * 2, + transform: 'translateY(-50%)', + backgroundColor: token.colorSplit + } + } + }, + [`${componentCls}-empty`]: { + padding: `${padding}px 0`, + color: colorTextDescription, + fontSize: token.fontSizeSM, + textAlign: 'center' + }, + [`${componentCls}-empty-text`]: { + padding: emptyTextPadding, + color: token.colorTextDisabled, + fontSize: token.fontSize, + textAlign: 'center' + }, + // ============================ without flex ============================ + [`${componentCls}-item-no-flex`]: { + display: 'block' + } + }), + [`${componentCls}-grid ${antCls}-col > ${componentCls}-item`]: { + display: 'block', + maxWidth: '100%', + marginBlockEnd: margin, + paddingBlock: 0, + borderBlockEnd: 'none' + }, + [`${componentCls}-vertical ${componentCls}-item`]: { + alignItems: 'initial', + [`${componentCls}-item-main`]: { + display: 'block', + flex: 1 + }, + [`${componentCls}-item-extra`]: { + marginInlineStart: marginLG + }, + [`${componentCls}-item-meta`]: { + marginBlockEnd: metaMarginBottom, + [`${componentCls}-item-meta-title`]: { + marginBlockStart: 0, + marginBlockEnd: titleMarginBottom, + color: colorText, + fontSize: token.fontSizeLG, + lineHeight: token.lineHeightLG + } + }, + [`${componentCls}-item-action`]: { + marginBlockStart: padding, + marginInlineStart: 'auto', + '> li': { + padding: `0 ${padding}px`, + [`&:first-child`]: { + paddingInlineStart: 0 + } + } + } + }, + [`${componentCls}-split ${componentCls}-item`]: { + borderBlockEnd: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`, + [`&:last-child`]: { + borderBlockEnd: 'none' + } + }, + [`${componentCls}-split ${componentCls}-header`]: { + borderBlockEnd: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}` + }, + [`${componentCls}-split${componentCls}-empty ${componentCls}-footer`]: { + borderTop: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}` + }, + [`${componentCls}-loading ${componentCls}-spin-nested-loading`]: { + minHeight: controlHeight + }, + [`${componentCls}-split${componentCls}-something-after-last-item ${antCls}-spin-container > ${componentCls}-items > ${componentCls}-item:last-child`]: { + borderBlockEnd: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}` + }, + [`${componentCls}-lg ${componentCls}-item`]: { + padding: itemPaddingLG + }, + [`${componentCls}-sm ${componentCls}-item`]: { + padding: itemPaddingSM + }, + // Horizontal + [`${componentCls}:not(${componentCls}-vertical)`]: { + [`${componentCls}-item-no-flex`]: { + [`${componentCls}-item-action`]: { + float: 'right' + } + } + } + }; +}; +// ============================== Export ============================== +/* harmony default export */ var list_style = ((0,genComponentStyleHook/* default */.Z)('List', token => { + const listToken = (0,statistic/* merge */.TS)(token, { + listBorderedCls: `${token.componentCls}-bordered`, + minHeight: token.controlHeightLG + }); + return [genBaseStyle(listToken), genBorderedStyle(listToken), genResponsiveStyle(listToken)]; +}, token => ({ + contentWidth: 220, + itemPadding: `${token.paddingContentVertical}px 0`, + itemPaddingSM: `${token.paddingContentVerticalSM}px ${token.paddingContentHorizontal}px`, + itemPaddingLG: `${token.paddingContentVerticalLG}px ${token.paddingContentHorizontalLG}px`, + headerBg: 'transparent', + footerBg: 'transparent', + emptyTextPadding: token.padding, + metaMarginBottom: token.padding, + avatarMarginRight: token.padding, + titleMarginBottom: token.paddingSM, + descriptionFontSize: token.fontSize +}))); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js +var useSize = __webpack_require__(19716); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/list/index.js +"use client"; + + +var list_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; +}; + +// eslint-disable-next-line import/no-named-as-default + + + + + + + + + + +// CSSINJS + + + +function List(_a) { + var _b; + var { + pagination = false, + prefixCls: customizePrefixCls, + bordered = false, + split = true, + className, + rootClassName, + style, + children, + itemLayout, + loadMore, + grid, + dataSource = [], + size: customizeSize, + header, + footer, + loading = false, + rowKey, + renderItem, + locale + } = _a, + rest = list_rest(_a, ["pagination", "prefixCls", "bordered", "split", "className", "rootClassName", "style", "children", "itemLayout", "loadMore", "grid", "dataSource", "size", "header", "footer", "loading", "rowKey", "renderItem", "locale"]); + const paginationObj = pagination && typeof pagination === 'object' ? pagination : {}; + const [paginationCurrent, setPaginationCurrent] = _react_17_0_2_react.useState(paginationObj.defaultCurrent || 1); + const [paginationSize, setPaginationSize] = _react_17_0_2_react.useState(paginationObj.defaultPageSize || 10); + const { + getPrefixCls, + renderEmpty, + direction, + list + } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); + const defaultPaginationProps = { + current: 1, + total: 0 + }; + const triggerPaginationEvent = eventName => (page, pageSize) => { + var _a; + setPaginationCurrent(page); + setPaginationSize(pageSize); + if (pagination && pagination[eventName]) { + (_a = pagination === null || pagination === void 0 ? void 0 : pagination[eventName]) === null || _a === void 0 ? void 0 : _a.call(pagination, page, pageSize); + } + }; + const onPaginationChange = triggerPaginationEvent('onChange'); + const onPaginationShowSizeChange = triggerPaginationEvent('onShowSizeChange'); + const renderInnerItem = (item, index) => { + if (!renderItem) return null; + let key; + if (typeof rowKey === 'function') { + key = rowKey(item); + } else if (rowKey) { + key = item[rowKey]; + } else { + key = item.key; + } + if (!key) { + key = `list-item-${index}`; + } + return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, { + key: key + }, renderItem(item, index)); + }; + const isSomethingAfterLastItem = () => !!(loadMore || pagination || footer); + const prefixCls = getPrefixCls('list', customizePrefixCls); + // Style + const [wrapSSR, hashId] = list_style(prefixCls); + let loadingProp = loading; + if (typeof loadingProp === 'boolean') { + loadingProp = { + spinning: loadingProp + }; + } + const isLoading = loadingProp && loadingProp.spinning; + const mergedSize = (0,useSize/* default */.Z)(customizeSize); + // large => lg + // small => sm + let sizeCls = ''; + switch (mergedSize) { + case 'large': + sizeCls = 'lg'; + break; + case 'small': + sizeCls = 'sm'; + break; + default: + break; + } + const classString = _classnames_2_3_2_classnames_default()(prefixCls, { + [`${prefixCls}-vertical`]: itemLayout === 'vertical', + [`${prefixCls}-${sizeCls}`]: sizeCls, + [`${prefixCls}-split`]: split, + [`${prefixCls}-bordered`]: bordered, + [`${prefixCls}-loading`]: isLoading, + [`${prefixCls}-grid`]: !!grid, + [`${prefixCls}-something-after-last-item`]: isSomethingAfterLastItem(), + [`${prefixCls}-rtl`]: direction === 'rtl' + }, list === null || list === void 0 ? void 0 : list.className, className, rootClassName, hashId); + const paginationProps = (0,extendsObject/* default */.Z)(defaultPaginationProps, { + total: dataSource.length, + current: paginationCurrent, + pageSize: paginationSize + }, pagination || {}); + const largestPage = Math.ceil(paginationProps.total / paginationProps.pageSize); + if (paginationProps.current > largestPage) { + paginationProps.current = largestPage; + } + const paginationContent = pagination ? /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: _classnames_2_3_2_classnames_default()(`${prefixCls}-pagination`, `${prefixCls}-pagination-align-${(_b = paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.align) !== null && _b !== void 0 ? _b : 'end'}`) + }, /*#__PURE__*/_react_17_0_2_react.createElement(es_pagination/* default */.Z, Object.assign({}, paginationProps, { + onChange: onPaginationChange, + onShowSizeChange: onPaginationShowSizeChange + }))) : null; + let splitDataSource = (0,toConsumableArray/* default */.Z)(dataSource); + if (pagination) { + if (dataSource.length > (paginationProps.current - 1) * paginationProps.pageSize) { + splitDataSource = (0,toConsumableArray/* default */.Z)(dataSource).splice((paginationProps.current - 1) * paginationProps.pageSize, paginationProps.pageSize); + } + } + const needResponsive = Object.keys(grid || {}).some(key => ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].includes(key)); + const screens = (0,useBreakpoint/* default */.Z)(needResponsive); + const currentBreakpoint = _react_17_0_2_react.useMemo(() => { + for (let i = 0; i < responsiveObserver/* responsiveArray */.c4.length; i += 1) { + const breakpoint = responsiveObserver/* responsiveArray */.c4[i]; + if (screens[breakpoint]) { + return breakpoint; + } + } + return undefined; + }, [screens]); + const colStyle = _react_17_0_2_react.useMemo(() => { + if (!grid) { + return undefined; + } + const columnCount = currentBreakpoint && grid[currentBreakpoint] ? grid[currentBreakpoint] : grid.column; + if (columnCount) { + return { + width: `${100 / columnCount}%`, + maxWidth: `${100 / columnCount}%` + }; + } + }, [grid === null || grid === void 0 ? void 0 : grid.column, currentBreakpoint]); + let childrenContent = isLoading && /*#__PURE__*/_react_17_0_2_react.createElement("div", { + style: { + minHeight: 53 + } + }); + if (splitDataSource.length > 0) { + const items = splitDataSource.map((item, index) => renderInnerItem(item, index)); + childrenContent = grid ? /*#__PURE__*/_react_17_0_2_react.createElement(row/* default */.Z, { + gutter: grid.gutter + }, _react_17_0_2_react.Children.map(items, child => /*#__PURE__*/_react_17_0_2_react.createElement("div", { + key: child === null || child === void 0 ? void 0 : child.key, + style: colStyle + }, child))) : /*#__PURE__*/_react_17_0_2_react.createElement("ul", { + className: `${prefixCls}-items` + }, items); + } else if (!children && !isLoading) { + childrenContent = /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-empty-text` + }, locale && locale.emptyText || (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('List')) || /*#__PURE__*/_react_17_0_2_react.createElement(defaultRenderEmpty/* default */.Z, { + componentName: "List" + })); + } + const paginationPosition = paginationProps.position || 'bottom'; + const contextValue = _react_17_0_2_react.useMemo(() => ({ + grid, + itemLayout + }), [JSON.stringify(grid), itemLayout]); + return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(ListContext.Provider, { + value: contextValue + }, /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({ + style: Object.assign(Object.assign({}, list === null || list === void 0 ? void 0 : list.style), style), + className: classString + }, rest), (paginationPosition === 'top' || paginationPosition === 'both') && paginationContent, header && /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-header` + }, header), /*#__PURE__*/_react_17_0_2_react.createElement(spin/* default */.Z, Object.assign({}, loadingProp), childrenContent, children), footer && /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-footer` + }, footer), loadMore || (paginationPosition === 'bottom' || paginationPosition === 'both') && paginationContent))); +} +if (false) {} +List.Item = list_Item; +/* harmony default export */ var list = (List); + +/***/ }), + +/***/ 45413: +/*!**********************************************************************!*\ + !*** ./node_modules/_antd@5.9.0@antd/es/steps/index.js + 14 modules ***! + \**********************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ steps; } +}); + +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CheckOutlined.js + 1 modules +var CheckOutlined = __webpack_require__(75769); +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CloseOutlined.js + 1 modules +var CloseOutlined = __webpack_require__(99174); +// 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/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(61796); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/objectSpread2.js +var objectSpread2 = __webpack_require__(36439); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(35005); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/objectWithoutProperties.js +var objectWithoutProperties = __webpack_require__(20968); +// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js +var _react_17_0_2_react = __webpack_require__(59301); +// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/KeyCode.js +var KeyCode = __webpack_require__(84821); +;// CONCATENATED MODULE: ./node_modules/_rc-steps@6.0.1@rc-steps/es/Step.js + + + + +var _excluded = ["className", "prefixCls", "style", "active", "status", "iconPrefix", "icon", "wrapperStyle", "stepNumber", "disabled", "description", "title", "subTitle", "progressDot", "stepIcon", "tailContent", "icons", "stepIndex", "onStepClick", "onClick", "render"]; +/* eslint react/prop-types: 0 */ + + + +function isString(str) { + return typeof str === 'string'; +} +function Step(props) { + var _classNames2; + var className = props.className, + prefixCls = props.prefixCls, + style = props.style, + active = props.active, + status = props.status, + iconPrefix = props.iconPrefix, + icon = props.icon, + wrapperStyle = props.wrapperStyle, + stepNumber = props.stepNumber, + disabled = props.disabled, + description = props.description, + title = props.title, + subTitle = props.subTitle, + progressDot = props.progressDot, + stepIcon = props.stepIcon, + tailContent = props.tailContent, + icons = props.icons, + stepIndex = props.stepIndex, + onStepClick = props.onStepClick, + onClick = props.onClick, + render = props.render, + restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded); + + // ========================= Click ========================== + var clickable = !!onStepClick && !disabled; + var accessibilityProps = {}; + if (clickable) { + accessibilityProps.role = 'button'; + accessibilityProps.tabIndex = 0; + accessibilityProps.onClick = function (e) { + onClick === null || onClick === void 0 ? void 0 : onClick(e); + onStepClick(stepIndex); + }; + accessibilityProps.onKeyDown = function (e) { + var which = e.which; + if (which === KeyCode/* default */.Z.ENTER || which === KeyCode/* default */.Z.SPACE) { + onStepClick(stepIndex); + } + }; + } + + // ========================= Render ========================= + var renderIconNode = function renderIconNode() { + var _classNames; + var iconNode; + var iconClassName = _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-icon"), "".concat(iconPrefix, "icon"), (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(iconPrefix, "icon-").concat(icon), icon && isString(icon)), (0,defineProperty/* default */.Z)(_classNames, "".concat(iconPrefix, "icon-check"), !icon && status === 'finish' && (icons && !icons.finish || !icons)), (0,defineProperty/* default */.Z)(_classNames, "".concat(iconPrefix, "icon-cross"), !icon && status === 'error' && (icons && !icons.error || !icons)), _classNames)); + var iconDot = /*#__PURE__*/_react_17_0_2_react.createElement("span", { + className: "".concat(prefixCls, "-icon-dot") + }); + // `progressDot` enjoy the highest priority + if (progressDot) { + if (typeof progressDot === 'function') { + iconNode = /*#__PURE__*/_react_17_0_2_react.createElement("span", { + className: "".concat(prefixCls, "-icon") + }, progressDot(iconDot, { + index: stepNumber - 1, + status: status, + title: title, + description: description + })); + } else { + iconNode = /*#__PURE__*/_react_17_0_2_react.createElement("span", { + className: "".concat(prefixCls, "-icon") + }, iconDot); + } + } else if (icon && !isString(icon)) { + iconNode = /*#__PURE__*/_react_17_0_2_react.createElement("span", { + className: "".concat(prefixCls, "-icon") + }, icon); + } else if (icons && icons.finish && status === 'finish') { + iconNode = /*#__PURE__*/_react_17_0_2_react.createElement("span", { + className: "".concat(prefixCls, "-icon") + }, icons.finish); + } else if (icons && icons.error && status === 'error') { + iconNode = /*#__PURE__*/_react_17_0_2_react.createElement("span", { + className: "".concat(prefixCls, "-icon") + }, icons.error); + } else if (icon || status === 'finish' || status === 'error') { + iconNode = /*#__PURE__*/_react_17_0_2_react.createElement("span", { + className: iconClassName + }); + } else { + iconNode = /*#__PURE__*/_react_17_0_2_react.createElement("span", { + className: "".concat(prefixCls, "-icon") + }, stepNumber); + } + if (stepIcon) { + iconNode = stepIcon({ + index: stepNumber - 1, + status: status, + title: title, + description: description, + node: iconNode + }); + } + return iconNode; + }; + var mergedStatus = status || 'wait'; + var classString = _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-item"), "".concat(prefixCls, "-item-").concat(mergedStatus), className, (_classNames2 = {}, (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-item-custom"), icon), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-item-active"), active), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-item-disabled"), disabled === true), _classNames2)); + var stepItemStyle = (0,objectSpread2/* default */.Z)({}, style); + var stepNode = /*#__PURE__*/_react_17_0_2_react.createElement("div", (0,esm_extends/* default */.Z)({}, restProps, { + className: classString, + style: stepItemStyle + }), /*#__PURE__*/_react_17_0_2_react.createElement("div", (0,esm_extends/* default */.Z)({ + onClick: onClick + }, accessibilityProps, { + className: "".concat(prefixCls, "-item-container") + }), /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: "".concat(prefixCls, "-item-tail") + }, tailContent), /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: "".concat(prefixCls, "-item-icon") + }, renderIconNode()), /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: "".concat(prefixCls, "-item-content") + }, /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: "".concat(prefixCls, "-item-title") + }, title, subTitle && /*#__PURE__*/_react_17_0_2_react.createElement("div", { + title: typeof subTitle === 'string' ? subTitle : undefined, + className: "".concat(prefixCls, "-item-subtitle") + }, subTitle)), description && /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: "".concat(prefixCls, "-item-description") + }, description)))); + if (render) { + stepNode = render(stepNode) || null; + } + return stepNode; +} +/* harmony default export */ var es_Step = (Step); +;// CONCATENATED MODULE: ./node_modules/_rc-steps@6.0.1@rc-steps/es/Steps.js + + + + +var Steps_excluded = ["prefixCls", "style", "className", "children", "direction", "type", "labelPlacement", "iconPrefix", "status", "size", "current", "progressDot", "stepIcon", "initial", "icons", "onChange", "itemRender", "items"]; +/* eslint react/no-did-mount-set-state: 0, react/prop-types: 0 */ + + + +function Steps(props) { + var _classNames; + var _props$prefixCls = props.prefixCls, + prefixCls = _props$prefixCls === void 0 ? 'rc-steps' : _props$prefixCls, + _props$style = props.style, + style = _props$style === void 0 ? {} : _props$style, + className = props.className, + children = props.children, + _props$direction = props.direction, + direction = _props$direction === void 0 ? 'horizontal' : _props$direction, + _props$type = props.type, + type = _props$type === void 0 ? 'default' : _props$type, + _props$labelPlacement = props.labelPlacement, + labelPlacement = _props$labelPlacement === void 0 ? 'horizontal' : _props$labelPlacement, + _props$iconPrefix = props.iconPrefix, + iconPrefix = _props$iconPrefix === void 0 ? 'rc' : _props$iconPrefix, + _props$status = props.status, + status = _props$status === void 0 ? 'process' : _props$status, + size = props.size, + _props$current = props.current, + current = _props$current === void 0 ? 0 : _props$current, + _props$progressDot = props.progressDot, + progressDot = _props$progressDot === void 0 ? false : _props$progressDot, + stepIcon = props.stepIcon, + _props$initial = props.initial, + initial = _props$initial === void 0 ? 0 : _props$initial, + icons = props.icons, + onChange = props.onChange, + itemRender = props.itemRender, + _props$items = props.items, + items = _props$items === void 0 ? [] : _props$items, + restProps = (0,objectWithoutProperties/* default */.Z)(props, Steps_excluded); + var isNav = type === 'navigation'; + var isInline = type === 'inline'; + + // inline type requires fixed progressDot direction size. + var mergedProgressDot = isInline || progressDot; + var mergedDirection = isInline ? 'horizontal' : direction; + var mergedSize = isInline ? undefined : size; + var adjustedLabelPlacement = mergedProgressDot ? 'vertical' : labelPlacement; + var classString = _classnames_2_3_2_classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedDirection), className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-").concat(mergedSize), mergedSize), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-label-").concat(adjustedLabelPlacement), mergedDirection === 'horizontal'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-dot"), !!mergedProgressDot), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-navigation"), isNav), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-inline"), isInline), _classNames)); + var onStepClick = function onStepClick(next) { + if (onChange && current !== next) { + onChange(next); + } + }; + var renderStep = function renderStep(item, index) { + var mergedItem = (0,objectSpread2/* default */.Z)({}, item); + var stepNumber = initial + index; + // fix tail color + if (status === 'error' && index === current - 1) { + mergedItem.className = "".concat(prefixCls, "-next-error"); + } + if (!mergedItem.status) { + if (stepNumber === current) { + mergedItem.status = status; + } else if (stepNumber < current) { + mergedItem.status = 'finish'; + } else { + mergedItem.status = 'wait'; + } + } + if (isInline) { + mergedItem.icon = undefined; + mergedItem.subTitle = undefined; + } + if (!mergedItem.render && itemRender) { + mergedItem.render = function (stepItem) { + return itemRender(mergedItem, stepItem); + }; + } + return /*#__PURE__*/_react_17_0_2_react.createElement(es_Step, (0,esm_extends/* default */.Z)({}, mergedItem, { + active: stepNumber === current, + stepNumber: stepNumber + 1, + stepIndex: stepNumber, + key: stepNumber, + prefixCls: prefixCls, + iconPrefix: iconPrefix, + wrapperStyle: style, + progressDot: mergedProgressDot, + stepIcon: stepIcon, + icons: icons, + onStepClick: onChange && onStepClick + })); + }; + return /*#__PURE__*/_react_17_0_2_react.createElement("div", (0,esm_extends/* default */.Z)({ + className: classString, + style: style + }, restProps), items.filter(function (item) { + return item; + }).map(renderStep)); +} +Steps.Step = es_Step; +/* harmony default export */ var es_Steps = (Steps); +;// CONCATENATED MODULE: ./node_modules/_rc-steps@6.0.1@rc-steps/es/index.js + + + +/* harmony default export */ var es = (es_Steps); +// 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/config-provider/hooks/useSize.js +var useSize = __webpack_require__(19716); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/grid/hooks/useBreakpoint.js +var useBreakpoint = __webpack_require__(8628); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/progress/index.js + 13 modules +var progress = __webpack_require__(93948); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules +var tooltip = __webpack_require__(6848); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js +var style = __webpack_require__(17313); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js +var genComponentStyleHook = __webpack_require__(83116); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js +var statistic = __webpack_require__(37613); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/steps/style/custom-icon.js +const genStepsCustomIconStyle = token => { + const { + componentCls, + customIconTop, + customIconSize, + customIconFontSize + } = token; + return { + [`${componentCls}-item-custom`]: { + [`> ${componentCls}-item-container > ${componentCls}-item-icon`]: { + height: 'auto', + background: 'none', + border: 0, + [`> ${componentCls}-icon`]: { + top: customIconTop, + width: customIconSize, + height: customIconSize, + fontSize: customIconFontSize, + lineHeight: `${customIconFontSize}px` + } + } + }, + // Only adjust horizontal customize icon width + [`&:not(${componentCls}-vertical)`]: { + [`${componentCls}-item-custom`]: { + [`${componentCls}-item-icon`]: { + width: 'auto', + background: 'none' + } + } + } + }; +}; +/* harmony default export */ var custom_icon = (genStepsCustomIconStyle); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/steps/style/inline.js +const genStepsInlineStyle = token => { + const { + componentCls, + inlineDotSize, + inlineTitleColor, + inlineTailColor + } = token; + const containerPaddingTop = token.paddingXS + token.lineWidth; + const titleStyle = { + [`${componentCls}-item-container ${componentCls}-item-content ${componentCls}-item-title`]: { + color: inlineTitleColor + } + }; + return { + [`&${componentCls}-inline`]: { + width: 'auto', + display: 'inline-flex', + [`${componentCls}-item`]: { + flex: 'none', + '&-container': { + padding: `${containerPaddingTop}px ${token.paddingXXS}px 0`, + margin: `0 ${token.marginXXS / 2}px`, + borderRadius: token.borderRadiusSM, + cursor: 'pointer', + transition: `background-color ${token.motionDurationMid}`, + '&:hover': { + background: token.controlItemBgHover + }, + [`&[role='button']:hover`]: { + opacity: 1 + } + }, + '&-icon': { + width: inlineDotSize, + height: inlineDotSize, + marginInlineStart: `calc(50% - ${inlineDotSize / 2}px)`, + [`> ${componentCls}-icon`]: { + top: 0 + }, + [`${componentCls}-icon-dot`]: { + borderRadius: token.fontSizeSM / 4 + } + }, + '&-content': { + width: 'auto', + marginTop: token.marginXS - token.lineWidth + }, + '&-title': { + color: inlineTitleColor, + fontSize: token.fontSizeSM, + lineHeight: token.lineHeightSM, + fontWeight: 'normal', + marginBottom: token.marginXXS / 2 + }, + '&-description': { + display: 'none' + }, + '&-tail': { + marginInlineStart: 0, + top: containerPaddingTop + inlineDotSize / 2, + transform: `translateY(-50%)`, + '&:after': { + width: '100%', + height: token.lineWidth, + borderRadius: 0, + marginInlineStart: 0, + background: inlineTailColor + } + }, + [`&:first-child ${componentCls}-item-tail`]: { + width: '50%', + marginInlineStart: '50%' + }, + [`&:last-child ${componentCls}-item-tail`]: { + display: 'block', + width: '50%' + }, + '&-wait': Object.assign({ + [`${componentCls}-item-icon ${componentCls}-icon ${componentCls}-icon-dot`]: { + backgroundColor: token.colorBorderBg, + border: `${token.lineWidth}px ${token.lineType} ${inlineTailColor}` + } + }, titleStyle), + '&-finish': Object.assign({ + [`${componentCls}-item-tail::after`]: { + backgroundColor: inlineTailColor + }, + [`${componentCls}-item-icon ${componentCls}-icon ${componentCls}-icon-dot`]: { + backgroundColor: inlineTailColor, + border: `${token.lineWidth}px ${token.lineType} ${inlineTailColor}` + } + }, titleStyle), + '&-error': titleStyle, + '&-active, &-process': Object.assign({ + [`${componentCls}-item-icon`]: { + width: inlineDotSize, + height: inlineDotSize, + marginInlineStart: `calc(50% - ${inlineDotSize / 2}px)`, + top: 0 + } + }, titleStyle), + [`&:not(${componentCls}-item-active) > ${componentCls}-item-container[role='button']:hover`]: { + [`${componentCls}-item-title`]: { + color: inlineTitleColor + } + } + } + } + }; +}; +/* harmony default export */ var inline = (genStepsInlineStyle); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/steps/style/label-placement.js +const genStepsLabelPlacementStyle = token => { + const { + componentCls, + iconSize, + lineHeight, + iconSizeSM + } = token; + return { + [`&${componentCls}-label-vertical`]: { + [`${componentCls}-item`]: { + overflow: 'visible', + '&-tail': { + marginInlineStart: iconSize / 2 + token.controlHeightLG, + padding: `${token.paddingXXS}px ${token.paddingLG}px` + }, + '&-content': { + display: 'block', + width: (iconSize / 2 + token.controlHeightLG) * 2, + marginTop: token.marginSM, + textAlign: 'center' + }, + '&-icon': { + display: 'inline-block', + marginInlineStart: token.controlHeightLG + }, + '&-title': { + paddingInlineEnd: 0, + paddingInlineStart: 0, + '&::after': { + display: 'none' + } + }, + '&-subtitle': { + display: 'block', + marginBottom: token.marginXXS, + marginInlineStart: 0, + lineHeight + } + }, + [`&${componentCls}-small:not(${componentCls}-dot)`]: { + [`${componentCls}-item`]: { + '&-icon': { + marginInlineStart: token.controlHeightLG + (iconSize - iconSizeSM) / 2 + } + } + } + } + }; +}; +/* harmony default export */ var label_placement = (genStepsLabelPlacementStyle); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/steps/style/nav.js + +const genStepsNavStyle = token => { + const { + componentCls, + navContentMaxWidth, + navArrowColor, + stepsNavActiveColor, + motionDurationSlow + } = token; + return { + [`&${componentCls}-navigation`]: { + paddingTop: token.paddingSM, + [`&${componentCls}-small`]: { + [`${componentCls}-item`]: { + '&-container': { + marginInlineStart: -token.marginSM + } + } + }, + [`${componentCls}-item`]: { + overflow: 'visible', + textAlign: 'center', + '&-container': { + display: 'inline-block', + height: '100%', + marginInlineStart: -token.margin, + paddingBottom: token.paddingSM, + textAlign: 'start', + transition: `opacity ${motionDurationSlow}`, + [`${componentCls}-item-content`]: { + maxWidth: navContentMaxWidth + }, + [`${componentCls}-item-title`]: Object.assign(Object.assign({ + maxWidth: '100%', + paddingInlineEnd: 0 + }, style/* textEllipsis */.vS), { + '&::after': { + display: 'none' + } + }) + }, + [`&:not(${componentCls}-item-active)`]: { + [`${componentCls}-item-container[role='button']`]: { + cursor: 'pointer', + '&:hover': { + opacity: 0.85 + } + } + }, + '&:last-child': { + flex: 1, + '&::after': { + display: 'none' + } + }, + '&::after': { + position: 'absolute', + top: `calc(50% - ${token.paddingSM / 2}px)`, + insetInlineStart: '100%', + display: 'inline-block', + width: token.fontSizeIcon, + height: token.fontSizeIcon, + borderTop: `${token.lineWidth}px ${token.lineType} ${navArrowColor}`, + borderBottom: 'none', + borderInlineStart: 'none', + borderInlineEnd: `${token.lineWidth}px ${token.lineType} ${navArrowColor}`, + transform: 'translateY(-50%) translateX(-50%) rotate(45deg)', + content: '""' + }, + '&::before': { + position: 'absolute', + bottom: 0, + insetInlineStart: '50%', + display: 'inline-block', + width: 0, + height: token.lineWidthBold, + backgroundColor: stepsNavActiveColor, + transition: `width ${motionDurationSlow}, inset-inline-start ${motionDurationSlow}`, + transitionTimingFunction: 'ease-out', + content: '""' + } + }, + [`${componentCls}-item${componentCls}-item-active::before`]: { + insetInlineStart: 0, + width: '100%' + } + }, + [`&${componentCls}-navigation${componentCls}-vertical`]: { + [`> ${componentCls}-item`]: { + marginInlineEnd: 0, + '&::before': { + display: 'none' + }, + [`&${componentCls}-item-active::before`]: { + top: 0, + insetInlineEnd: 0, + insetInlineStart: 'unset', + display: 'block', + width: token.lineWidth * 3, + height: `calc(100% - ${token.marginLG}px)` + }, + '&::after': { + position: 'relative', + insetInlineStart: '50%', + display: 'block', + width: token.controlHeight * 0.25, + height: token.controlHeight * 0.25, + marginBottom: token.marginXS, + textAlign: 'center', + transform: 'translateY(-50%) translateX(-50%) rotate(135deg)' + }, + '&:last-child': { + '&::after': { + display: 'none' + } + }, + [`> ${componentCls}-item-container > ${componentCls}-item-tail`]: { + visibility: 'hidden' + } + } + }, + [`&${componentCls}-navigation${componentCls}-horizontal`]: { + [`> ${componentCls}-item > ${componentCls}-item-container > ${componentCls}-item-tail`]: { + visibility: 'hidden' + } + } + }; +}; +/* harmony default export */ var nav = (genStepsNavStyle); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/steps/style/progress.js +const genStepsProgressStyle = token => { + const { + antCls, + componentCls + } = token; + return { + [`&${componentCls}-with-progress`]: { + [`${componentCls}-item`]: { + paddingTop: token.paddingXXS, + [`&-process ${componentCls}-item-container ${componentCls}-item-icon ${componentCls}-icon`]: { + color: token.processIconColor + } + }, + [`&${componentCls}-vertical > ${componentCls}-item `]: { + paddingInlineStart: token.paddingXXS, + [`> ${componentCls}-item-container > ${componentCls}-item-tail`]: { + top: token.marginXXS, + insetInlineStart: token.iconSize / 2 - token.lineWidth + token.paddingXXS + } + }, + [`&, &${componentCls}-small`]: { + [`&${componentCls}-horizontal ${componentCls}-item:first-child`]: { + paddingBottom: token.paddingXXS, + paddingInlineStart: token.paddingXXS + } + }, + [`&${componentCls}-small${componentCls}-vertical > ${componentCls}-item > ${componentCls}-item-container > ${componentCls}-item-tail`]: { + insetInlineStart: token.iconSizeSM / 2 - token.lineWidth + token.paddingXXS + }, + [`&${componentCls}-label-vertical`]: { + [`${componentCls}-item ${componentCls}-item-tail`]: { + top: token.margin - 2 * token.lineWidth + } + }, + [`${componentCls}-item-icon`]: { + position: 'relative', + [`${antCls}-progress`]: { + position: 'absolute', + insetBlockStart: (token.iconSize - token.stepsProgressSize - token.lineWidth * 2) / 2, + insetInlineStart: (token.iconSize - token.stepsProgressSize - token.lineWidth * 2) / 2 + } + } + } + }; +}; +/* harmony default export */ var style_progress = (genStepsProgressStyle); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/steps/style/progress-dot.js +const genStepsProgressDotStyle = token => { + const { + componentCls, + descriptionMaxWidth, + lineHeight, + dotCurrentSize, + dotSize, + motionDurationSlow + } = token; + return { + [`&${componentCls}-dot, &${componentCls}-dot${componentCls}-small`]: { + [`${componentCls}-item`]: { + '&-title': { + lineHeight + }, + '&-tail': { + top: Math.floor((token.dotSize - token.lineWidth * 3) / 2), + width: '100%', + marginTop: 0, + marginBottom: 0, + marginInline: `${descriptionMaxWidth / 2}px 0`, + padding: 0, + '&::after': { + width: `calc(100% - ${token.marginSM * 2}px)`, + height: token.lineWidth * 3, + marginInlineStart: token.marginSM + } + }, + '&-icon': { + width: dotSize, + height: dotSize, + marginInlineStart: (token.descriptionMaxWidth - dotSize) / 2, + paddingInlineEnd: 0, + lineHeight: `${dotSize}px`, + background: 'transparent', + border: 0, + [`${componentCls}-icon-dot`]: { + position: 'relative', + float: 'left', + width: '100%', + height: '100%', + borderRadius: 100, + transition: `all ${motionDurationSlow}`, + /* expand hover area */ + '&::after': { + position: 'absolute', + top: -token.marginSM, + insetInlineStart: (dotSize - token.controlHeightLG * 1.5) / 2, + width: token.controlHeightLG * 1.5, + height: token.controlHeight, + background: 'transparent', + content: '""' + } + } + }, + '&-content': { + width: descriptionMaxWidth + }, + [`&-process ${componentCls}-item-icon`]: { + position: 'relative', + top: (dotSize - dotCurrentSize) / 2, + width: dotCurrentSize, + height: dotCurrentSize, + lineHeight: `${dotCurrentSize}px`, + background: 'none', + marginInlineStart: (token.descriptionMaxWidth - dotCurrentSize) / 2 + }, + [`&-process ${componentCls}-icon`]: { + [`&:first-child ${componentCls}-icon-dot`]: { + insetInlineStart: 0 + } + } + } + }, + [`&${componentCls}-vertical${componentCls}-dot`]: { + [`${componentCls}-item-icon`]: { + marginTop: (token.controlHeight - dotSize) / 2, + marginInlineStart: 0, + background: 'none' + }, + [`${componentCls}-item-process ${componentCls}-item-icon`]: { + marginTop: (token.controlHeight - dotCurrentSize) / 2, + top: 0, + insetInlineStart: (dotSize - dotCurrentSize) / 2, + marginInlineStart: 0 + }, + // https://github.com/ant-design/ant-design/issues/18354 + [`${componentCls}-item > ${componentCls}-item-container > ${componentCls}-item-tail`]: { + top: (token.controlHeight - dotSize) / 2, + insetInlineStart: 0, + margin: 0, + padding: `${dotSize + token.paddingXS}px 0 ${token.paddingXS}px`, + '&::after': { + marginInlineStart: (dotSize - token.lineWidth) / 2 + } + }, + [`&${componentCls}-small`]: { + [`${componentCls}-item-icon`]: { + marginTop: (token.controlHeightSM - dotSize) / 2 + }, + [`${componentCls}-item-process ${componentCls}-item-icon`]: { + marginTop: (token.controlHeightSM - dotCurrentSize) / 2 + }, + [`${componentCls}-item > ${componentCls}-item-container > ${componentCls}-item-tail`]: { + top: (token.controlHeightSM - dotSize) / 2 + } + }, + [`${componentCls}-item:first-child ${componentCls}-icon-dot`]: { + insetInlineStart: 0 + }, + [`${componentCls}-item-content`]: { + width: 'inherit' + } + } + }; +}; +/* harmony default export */ var progress_dot = (genStepsProgressDotStyle); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/steps/style/rtl.js +const genStepsRTLStyle = token => { + const { + componentCls + } = token; + return { + [`&${componentCls}-rtl`]: { + direction: 'rtl', + [`${componentCls}-item`]: { + '&-subtitle': { + float: 'left' + } + }, + // nav + [`&${componentCls}-navigation`]: { + [`${componentCls}-item::after`]: { + transform: 'rotate(-45deg)' + } + }, + // vertical + [`&${componentCls}-vertical`]: { + [`> ${componentCls}-item`]: { + '&::after': { + transform: 'rotate(225deg)' + }, + [`${componentCls}-item-icon`]: { + float: 'right' + } + } + }, + // progress-dot + [`&${componentCls}-dot`]: { + [`${componentCls}-item-icon ${componentCls}-icon-dot, &${componentCls}-small ${componentCls}-item-icon ${componentCls}-icon-dot`]: { + float: 'right' + } + } + } + }; +}; +/* harmony default export */ var rtl = (genStepsRTLStyle); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/steps/style/small.js +const genStepsSmallStyle = token => { + const { + componentCls, + iconSizeSM, + // stepsSmallIconMargin, + fontSizeSM, + fontSize, + colorTextDescription + } = token; + return { + [`&${componentCls}-small`]: { + [`&${componentCls}-horizontal:not(${componentCls}-label-vertical) ${componentCls}-item`]: { + paddingInlineStart: token.paddingSM, + '&:first-child': { + paddingInlineStart: 0 + } + }, + [`${componentCls}-item-icon`]: { + width: iconSizeSM, + height: iconSizeSM, + // margin: stepsSmallIconMargin, + marginTop: 0, + marginBottom: 0, + marginInline: `0 ${token.marginXS}px`, + fontSize: fontSizeSM, + lineHeight: `${iconSizeSM}px`, + textAlign: 'center', + borderRadius: iconSizeSM + }, + [`${componentCls}-item-title`]: { + paddingInlineEnd: token.paddingSM, + fontSize, + lineHeight: `${iconSizeSM}px`, + '&::after': { + top: iconSizeSM / 2 + } + }, + [`${componentCls}-item-description`]: { + color: colorTextDescription, + fontSize + }, + [`${componentCls}-item-tail`]: { + top: iconSizeSM / 2 - token.paddingXXS + }, + [`${componentCls}-item-custom ${componentCls}-item-icon`]: { + width: 'inherit', + height: 'inherit', + lineHeight: 'inherit', + background: 'none', + border: 0, + borderRadius: 0, + [`> ${componentCls}-icon`]: { + fontSize: iconSizeSM, + lineHeight: `${iconSizeSM}px`, + transform: 'none' + } + } + } + }; +}; +/* harmony default export */ var small = (genStepsSmallStyle); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/steps/style/vertical.js +const genStepsVerticalStyle = token => { + const { + componentCls, + iconSizeSM, + iconSize + } = token; + return { + [`&${componentCls}-vertical`]: { + display: 'flex', + flexDirection: 'column', + [`> ${componentCls}-item`]: { + display: 'block', + flex: '1 0 auto', + paddingInlineStart: 0, + overflow: 'visible', + [`${componentCls}-item-icon`]: { + float: 'left', + marginInlineEnd: token.margin + }, + [`${componentCls}-item-content`]: { + display: 'block', + minHeight: token.controlHeight * 1.5, + overflow: 'hidden' + }, + [`${componentCls}-item-title`]: { + lineHeight: `${iconSize}px` + }, + [`${componentCls}-item-description`]: { + paddingBottom: token.paddingSM + } + }, + [`> ${componentCls}-item > ${componentCls}-item-container > ${componentCls}-item-tail`]: { + position: 'absolute', + top: 0, + insetInlineStart: iconSize / 2 - token.lineWidth, + width: token.lineWidth, + height: '100%', + padding: `${iconSize + token.marginXXS * 1.5}px 0 ${token.marginXXS * 1.5}px`, + '&::after': { + width: token.lineWidth, + height: '100%' + } + }, + [`> ${componentCls}-item:not(:last-child) > ${componentCls}-item-container > ${componentCls}-item-tail`]: { + display: 'block' + }, + [` > ${componentCls}-item > ${componentCls}-item-container > ${componentCls}-item-content > ${componentCls}-item-title`]: { + '&::after': { + display: 'none' + } + }, + [`&${componentCls}-small ${componentCls}-item-container`]: { + [`${componentCls}-item-tail`]: { + position: 'absolute', + top: 0, + insetInlineStart: iconSizeSM / 2 - token.lineWidth, + padding: `${iconSizeSM + token.marginXXS * 1.5}px 0 ${token.marginXXS * 1.5}px` + }, + [`${componentCls}-item-title`]: { + lineHeight: `${iconSizeSM}px` + } + } + } + }; +}; +/* harmony default export */ var vertical = (genStepsVerticalStyle); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/steps/style/index.js +"use client"; + + + + + + + + + + + + +var StepItemStatusEnum; +(function (StepItemStatusEnum) { + StepItemStatusEnum["wait"] = "wait"; + StepItemStatusEnum["process"] = "process"; + StepItemStatusEnum["finish"] = "finish"; + StepItemStatusEnum["error"] = "error"; +})(StepItemStatusEnum || (StepItemStatusEnum = {})); +const genStepsItemStatusStyle = (status, token) => { + const prefix = `${token.componentCls}-item`; + const iconColorKey = `${status}IconColor`; + const titleColorKey = `${status}TitleColor`; + const descriptionColorKey = `${status}DescriptionColor`; + const tailColorKey = `${status}TailColor`; + const iconBgColorKey = `${status}IconBgColor`; + const iconBorderColorKey = `${status}IconBorderColor`; + const dotColorKey = `${status}DotColor`; + return { + [`${prefix}-${status} ${prefix}-icon`]: { + backgroundColor: token[iconBgColorKey], + borderColor: token[iconBorderColorKey], + [`> ${token.componentCls}-icon`]: { + color: token[iconColorKey], + [`${token.componentCls}-icon-dot`]: { + background: token[dotColorKey] + } + } + }, + [`${prefix}-${status}${prefix}-custom ${prefix}-icon`]: { + [`> ${token.componentCls}-icon`]: { + color: token[dotColorKey] + } + }, + [`${prefix}-${status} > ${prefix}-container > ${prefix}-content > ${prefix}-title`]: { + color: token[titleColorKey], + '&::after': { + backgroundColor: token[tailColorKey] + } + }, + [`${prefix}-${status} > ${prefix}-container > ${prefix}-content > ${prefix}-description`]: { + color: token[descriptionColorKey] + }, + [`${prefix}-${status} > ${prefix}-container > ${prefix}-tail::after`]: { + backgroundColor: token[tailColorKey] + } + }; +}; +const genStepsItemStyle = token => { + const { + componentCls, + motionDurationSlow + } = token; + const stepsItemCls = `${componentCls}-item`; // .ant-steps-item + const stepItemIconCls = `${stepsItemCls}-icon`; + return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ + [stepsItemCls]: { + position: 'relative', + display: 'inline-block', + flex: 1, + overflow: 'hidden', + verticalAlign: 'top', + '&:last-child': { + flex: 'none', + [`> ${stepsItemCls}-container > ${stepsItemCls}-tail, > ${stepsItemCls}-container > ${stepsItemCls}-content > ${stepsItemCls}-title::after`]: { + display: 'none' + } + } + }, + [`${stepsItemCls}-container`]: { + outline: 'none', + [`&:focus-visible`]: { + [stepItemIconCls]: Object.assign({}, (0,style/* genFocusOutline */.oN)(token)) + } + }, + [`${stepItemIconCls}, ${stepsItemCls}-content`]: { + display: 'inline-block', + verticalAlign: 'top' + }, + [stepItemIconCls]: { + width: token.iconSize, + height: token.iconSize, + marginTop: 0, + marginBottom: 0, + marginInlineStart: 0, + marginInlineEnd: token.marginXS, + fontSize: token.iconFontSize, + fontFamily: token.fontFamily, + lineHeight: `${token.iconSize}px`, + textAlign: 'center', + borderRadius: token.iconSize, + border: `${token.lineWidth}px ${token.lineType} transparent`, + transition: `background-color ${motionDurationSlow}, border-color ${motionDurationSlow}`, + [`${componentCls}-icon`]: { + position: 'relative', + top: token.iconTop, + color: token.colorPrimary, + lineHeight: 1 + } + }, + [`${stepsItemCls}-tail`]: { + position: 'absolute', + top: token.iconSize / 2 - token.paddingXXS, + insetInlineStart: 0, + width: '100%', + '&::after': { + display: 'inline-block', + width: '100%', + height: token.lineWidth, + background: token.colorSplit, + borderRadius: token.lineWidth, + transition: `background ${motionDurationSlow}`, + content: '""' + } + }, + [`${stepsItemCls}-title`]: { + position: 'relative', + display: 'inline-block', + paddingInlineEnd: token.padding, + color: token.colorText, + fontSize: token.fontSizeLG, + lineHeight: `${token.titleLineHeight}px`, + '&::after': { + position: 'absolute', + top: token.titleLineHeight / 2, + insetInlineStart: '100%', + display: 'block', + width: 9999, + height: token.lineWidth, + background: token.processTailColor, + content: '""' + } + }, + [`${stepsItemCls}-subtitle`]: { + display: 'inline', + marginInlineStart: token.marginXS, + color: token.colorTextDescription, + fontWeight: 'normal', + fontSize: token.fontSize + }, + [`${stepsItemCls}-description`]: { + color: token.colorTextDescription, + fontSize: token.fontSize + } + }, genStepsItemStatusStyle(StepItemStatusEnum.wait, token)), genStepsItemStatusStyle(StepItemStatusEnum.process, token)), { + [`${stepsItemCls}-process > ${stepsItemCls}-container > ${stepsItemCls}-title`]: { + fontWeight: token.fontWeightStrong + } + }), genStepsItemStatusStyle(StepItemStatusEnum.finish, token)), genStepsItemStatusStyle(StepItemStatusEnum.error, token)), { + [`${stepsItemCls}${componentCls}-next-error > ${componentCls}-item-title::after`]: { + background: token.colorError + }, + [`${stepsItemCls}-disabled`]: { + cursor: 'not-allowed' + } + }); +}; +// ============================= Clickable =========================== +const genStepsClickableStyle = token => { + const { + componentCls, + motionDurationSlow + } = token; + return { + [`& ${componentCls}-item`]: { + [`&:not(${componentCls}-item-active)`]: { + [`& > ${componentCls}-item-container[role='button']`]: { + cursor: 'pointer', + [`${componentCls}-item`]: { + [`&-title, &-subtitle, &-description, &-icon ${componentCls}-icon`]: { + transition: `color ${motionDurationSlow}` + } + }, + '&:hover': { + [`${componentCls}-item`]: { + [`&-title, &-subtitle, &-description`]: { + color: token.colorPrimary + } + } + } + }, + [`&:not(${componentCls}-item-process)`]: { + [`& > ${componentCls}-item-container[role='button']:hover`]: { + [`${componentCls}-item`]: { + '&-icon': { + borderColor: token.colorPrimary, + [`${componentCls}-icon`]: { + color: token.colorPrimary + } + } + } + } + } + } + }, + [`&${componentCls}-horizontal:not(${componentCls}-label-vertical)`]: { + [`${componentCls}-item`]: { + paddingInlineStart: token.padding, + whiteSpace: 'nowrap', + '&:first-child': { + paddingInlineStart: 0 + }, + [`&:last-child ${componentCls}-item-title`]: { + paddingInlineEnd: 0 + }, + '&-tail': { + display: 'none' + }, + '&-description': { + maxWidth: token.descriptionMaxWidth, + whiteSpace: 'normal' + } + } + } + }; +}; +const genStepsStyle = token => { + const { + componentCls + } = token; // .ant-steps + return { + [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), { + display: 'flex', + width: '100%', + fontSize: 0, + textAlign: 'initial' + }), genStepsItemStyle(token)), genStepsClickableStyle(token)), custom_icon(token)), small(token)), vertical(token)), label_placement(token)), progress_dot(token)), nav(token)), rtl(token)), style_progress(token)), inline(token)) + }; +}; +// ============================== Export ============================== +/* harmony default export */ var steps_style = ((0,genComponentStyleHook/* default */.Z)('Steps', token => { + const { + wireframe, + colorTextDisabled, + controlHeightLG, + colorTextLightSolid, + colorText, + colorPrimary, + colorTextLabel, + colorTextDescription, + colorTextQuaternary, + colorFillContent, + controlItemBgActive, + colorError, + colorBgContainer, + colorBorderSecondary, + colorSplit + } = token; + const stepsToken = (0,statistic/* merge */.TS)(token, { + // Steps component less variable + processIconColor: colorTextLightSolid, + processTitleColor: colorText, + processDescriptionColor: colorText, + processIconBgColor: colorPrimary, + processIconBorderColor: colorPrimary, + processDotColor: colorPrimary, + processTailColor: colorSplit, + waitIconColor: wireframe ? colorTextDisabled : colorTextLabel, + waitTitleColor: colorTextDescription, + waitDescriptionColor: colorTextDescription, + waitTailColor: colorSplit, + waitIconBgColor: wireframe ? colorBgContainer : colorFillContent, + waitIconBorderColor: wireframe ? colorTextDisabled : 'transparent', + waitDotColor: colorTextDisabled, + finishIconColor: colorPrimary, + finishTitleColor: colorText, + finishDescriptionColor: colorTextDescription, + finishTailColor: colorPrimary, + finishIconBgColor: wireframe ? colorBgContainer : controlItemBgActive, + finishIconBorderColor: wireframe ? colorPrimary : controlItemBgActive, + finishDotColor: colorPrimary, + errorIconColor: colorTextLightSolid, + errorTitleColor: colorError, + errorDescriptionColor: colorError, + errorTailColor: colorSplit, + errorIconBgColor: colorError, + errorIconBorderColor: colorError, + errorDotColor: colorError, + stepsNavActiveColor: colorPrimary, + stepsProgressSize: controlHeightLG, + // Steps inline variable + inlineDotSize: 6, + inlineTitleColor: colorTextQuaternary, + inlineTailColor: colorBorderSecondary + }); + return [genStepsStyle(stepsToken)]; +}, token => { + const { + colorTextDisabled, + fontSize, + controlHeightSM, + controlHeight, + controlHeightLG, + fontSizeHeading3 + } = token; + return { + titleLineHeight: controlHeight, + customIconSize: controlHeight, + customIconTop: 0, + customIconFontSize: controlHeightSM, + iconSize: controlHeight, + iconTop: -0.5, + iconFontSize: fontSize, + iconSizeSM: fontSizeHeading3, + dotSize: controlHeight / 4, + dotCurrentSize: controlHeightLG / 4, + navArrowColor: colorTextDisabled, + navContentMaxWidth: 'auto', + descriptionMaxWidth: 140 + }; +})); +// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/Children/toArray.js +var toArray = __webpack_require__(45659); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/steps/useLegacyItems.js + + + +function filter(items) { + return items.filter(item => item); +} +function useLegacyItems(items, children) { + if (items) { + return items; + } + false ? 0 : void 0; + const childrenItems = (0,toArray/* default */.Z)(children).map(node => { + if ( /*#__PURE__*/_react_17_0_2_react.isValidElement(node)) { + const { + props + } = node; + const item = Object.assign({}, props); + return item; + } + return null; + }); + return filter(childrenItems); +} +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/steps/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 steps_Steps = props => { + const { + percent, + size: customizeSize, + className, + rootClassName, + direction, + items, + responsive = true, + current = 0, + children, + style + } = props, + restProps = __rest(props, ["percent", "size", "className", "rootClassName", "direction", "items", "responsive", "current", "children", "style"]); + const { + xs + } = (0,useBreakpoint/* default */.Z)(responsive); + const { + getPrefixCls, + direction: rtlDirection, + steps + } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); + const realDirectionValue = _react_17_0_2_react.useMemo(() => responsive && xs ? 'vertical' : direction, [xs, direction]); + const size = (0,useSize/* default */.Z)(customizeSize); + const prefixCls = getPrefixCls('steps', props.prefixCls); + const [wrapSSR, hashId] = steps_style(prefixCls); + const isInline = props.type === 'inline'; + const iconPrefix = getPrefixCls('', props.iconPrefix); + const mergedItems = useLegacyItems(items, children); + const mergedPercent = isInline ? undefined : percent; + const mergedStyle = Object.assign(Object.assign({}, steps === null || steps === void 0 ? void 0 : steps.style), style); + const stepsClassName = _classnames_2_3_2_classnames_default()(steps === null || steps === void 0 ? void 0 : steps.className, { + [`${prefixCls}-rtl`]: rtlDirection === 'rtl', + [`${prefixCls}-with-progress`]: mergedPercent !== undefined + }, className, rootClassName, hashId); + const icons = { + finish: /*#__PURE__*/_react_17_0_2_react.createElement(CheckOutlined/* default */.Z, { + className: `${prefixCls}-finish-icon` + }), + error: /*#__PURE__*/_react_17_0_2_react.createElement(CloseOutlined/* default */.Z, { + className: `${prefixCls}-error-icon` + }) + }; + const stepIconRender = _ref => { + let { + node, + status + } = _ref; + if (status === 'process' && mergedPercent !== undefined) { + // currently it's hard-coded, since we can't easily read the actually width of icon + const progressWidth = size === 'small' ? 32 : 40; + // iconWithProgress + return /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-progress-icon` + }, /*#__PURE__*/_react_17_0_2_react.createElement(progress/* default */.Z, { + type: "circle", + percent: mergedPercent, + size: progressWidth, + strokeWidth: 4, + format: () => null + }), node); + } + return node; + }; + const itemRender = (item, stepItem) => item.description ? /*#__PURE__*/_react_17_0_2_react.createElement(tooltip/* default */.Z, { + title: item.description + }, stepItem) : stepItem; + return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(es, Object.assign({ + icons: icons + }, restProps, { + style: mergedStyle, + current: current, + size: size, + items: mergedItems, + itemRender: isInline ? itemRender : undefined, + stepIcon: stepIconRender, + direction: realDirectionValue, + prefixCls: prefixCls, + iconPrefix: iconPrefix, + className: stepsClassName + }))); +}; +steps_Steps.Step = es.Step; +if (false) {} +/* harmony default export */ var steps = (steps_Steps); + +/***/ }), + /***/ 12563: /*!*******************************************************************!*\ !*** ./node_modules/_antd@5.9.0@antd/es/tag/index.js + 5 modules ***! diff --git a/57435.async.js b/57435.async.js index 0a2551bc72..d9bd9861c8 100644 --- a/57435.async.js +++ b/57435.async.js @@ -1034,10 +1034,7 @@ if (false) {} /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } -/* harmony export */ }); -/* unused harmony export getOverlay */ +/* unused harmony exports getOverlay, RawPurePanel */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/63240.async.js b/63240.async.js index 3c6bdb87c1..e8520035c4 100644 --- a/63240.async.js +++ b/63240.async.js @@ -2895,10 +2895,7 @@ Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z; /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } -/* harmony export */ }); -/* unused harmony export getOverlay */ +/* unused harmony exports getOverlay, RawPurePanel */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/63510.async.js b/63510.async.js index 8175e72988..ed955e927c 100644 --- a/63510.async.js +++ b/63510.async.js @@ -4131,6 +4131,14 @@ var CourseList = function CourseList(_ref) { children: name }) }) + }), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { + title: "\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(school_name), + children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: CourseListmodules.unit, + children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", { + className: "iconfont icon-danwei1 font14 mr3" + }), school_name] + }) }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: CourseListmodules.tags, children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { @@ -6254,29 +6262,29 @@ var SendToClassModal = function SendToClassModal(_ref) { res = _context7.sent; case 6: _context7.t0 = nodeData.item_type; - _context7.next = _context7.t0 === 'Attachment' ? 9 : _context7.t0 === 'VideoItem' ? 11 : _context7.t0 === 'SubjectHomework' ? 13 : _context7.t0 === 'Shixun' ? 15 : 17; + _context7.next = _context7.t0 === 'Attachment' ? 9 : _context7.t0 === 'VideoItem' ? 13 : _context7.t0 === 'SubjectHomework' ? 15 : _context7.t0 === 'Shixun' ? 17 : 19; break; case 9: - // openNewWindow(nodeData.url); - // preview.type = item.file_type - // preview.data = env.API_SERVER + item.url - // setPreview({ ...preview }) - toStudentVideo(item); - return _context7.abrupt("break", 17); - case 11: - toStudentVideo(nodeData); - return _context7.abrupt("break", 17); + // openNewWindow(nodeData.url); + preview.type = item.file_type; + preview.data = env/* default */.Z.API_SERVER + item.url; + setPreview(objectSpread2_default()({}, preview)); + // toStudentVideo(item); + return _context7.abrupt("break", 19); case 13: + toStudentVideo(nodeData); + return _context7.abrupt("break", 19); + case 15: if (nodeData.homework_type == 'group') { toStudentVideo(nodeData); } else if (nodeData.homework_type == 'normal') { toStudentVideo(nodeData); } - return _context7.abrupt("break", 17); - case 15: - handleToShixun(nodeData); - return _context7.abrupt("break", 17); + return _context7.abrupt("break", 19); case 17: + handleToShixun(nodeData); + return _context7.abrupt("break", 19); + case 19: case "end": return _context7.stop(); } diff --git a/63791.async.js b/63791.async.js index 5d2c677050..56fd2d6d62 100644 --- a/63791.async.js +++ b/63791.async.js @@ -920,10 +920,7 @@ input_Input.Password = input_Password; /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } -/* harmony export */ }); -/* unused harmony export getOverlay */ +/* unused harmony exports getOverlay, RawPurePanel */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/64738.async.js b/64738.async.js index a89aeb8aea..6d7d609ff8 100644 --- a/64738.async.js +++ b/64738.async.js @@ -1086,10 +1086,7 @@ input_Input.Password = input_Password; \***************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } -/* harmony export */ }); -/* unused harmony export getOverlay */ +/* unused harmony exports getOverlay, RawPurePanel */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/68719.async.js b/68719.async.js new file mode 100644 index 0000000000..f280c1ed14 --- /dev/null +++ b/68719.async.js @@ -0,0 +1,1515 @@ +(self["webpackChunk"] = self["webpackChunk"] || []).push([[68719],{ + +/***/ 75769: +/*!*******************************************************************************************************!*\ + !*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CheckOutlined.js + 1 modules ***! + \*******************************************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ icons_CheckOutlined; } +}); + +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(61796); +// 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/CheckOutlined.js +// This icon file is generated automatically. +var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" }; +/* harmony default export */ var asn_CheckOutlined = (CheckOutlined); + +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.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/CheckOutlined.js + +// GENERATE BY ./scripts/generate.ts +// DON NOT EDIT IT MANUALLY + + + + +var CheckOutlined_CheckOutlined = function CheckOutlined(props, ref) { + return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { + ref: ref, + icon: asn_CheckOutlined + })); +}; +if (false) {} +/* harmony default export */ var icons_CheckOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(CheckOutlined_CheckOutlined)); + +/***/ }), + +/***/ 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.5@@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(61796); +// 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)); + +/***/ }), + +/***/ 88011: +/*!**********************************************************************************************************!*\ + !*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/FileTextOutlined.js + 1 modules ***! + \**********************************************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ icons_FileTextOutlined; } +}); + +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(61796); +// 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/FileTextOutlined.js +// This icon file is generated automatically. +var FileTextOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z" } }] }, "name": "file-text", "theme": "outlined" }; +/* harmony default export */ var asn_FileTextOutlined = (FileTextOutlined); + +// 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/FileTextOutlined.js + +// GENERATE BY ./scripts/generate.ts +// DON NOT EDIT IT MANUALLY + + + + +var FileTextOutlined_FileTextOutlined = function FileTextOutlined(props, ref) { + return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { + ref: ref, + icon: asn_FileTextOutlined + })); +}; +if (false) {} +/* harmony default export */ var icons_FileTextOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(FileTextOutlined_FileTextOutlined)); + +/***/ }), + +/***/ 56762: +/*!************************************************************************!*\ + !*** ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useForceUpdate.js ***! + \************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ useForceUpdate; } +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301); + +function useForceUpdate() { + const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0); + return forceUpdate; +} + +/***/ }), + +/***/ 24905: +/*!************************************************************************!*\ + !*** ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules ***! + \************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ es_checkbox; } +}); + +// 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-checkbox@3.1.0@rc-checkbox/es/index.js +var es = __webpack_require__(5630); +// 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 config_provider_context = __webpack_require__(36355); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/DisabledContext.js +var DisabledContext = __webpack_require__(1684); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js +var context = __webpack_require__(32441); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/GroupContext.js + +const GroupContext = /*#__PURE__*/_react_17_0_2_react.createContext(null); +/* harmony default export */ var checkbox_GroupContext = (GroupContext); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/style/index.js +var checkbox_style = __webpack_require__(98447); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/index.js + 4 modules +var wave = __webpack_require__(14088); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/interface.js +var wave_interface = __webpack_require__(4572); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/Checkbox.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 InternalCheckbox = (props, ref) => { + var _a; + const { + prefixCls: customizePrefixCls, + className, + rootClassName, + children, + indeterminate = false, + style, + onMouseEnter, + onMouseLeave, + skipGroup = false, + disabled + } = props, + restProps = __rest(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]); + const { + getPrefixCls, + direction, + checkbox + } = _react_17_0_2_react.useContext(config_provider_context/* ConfigContext */.E_); + const checkboxGroup = _react_17_0_2_react.useContext(checkbox_GroupContext); + const { + isFormItemInput + } = _react_17_0_2_react.useContext(context/* FormItemInputContext */.aM); + const contextDisabled = _react_17_0_2_react.useContext(DisabledContext/* default */.Z); + const mergedDisabled = (_a = (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.disabled) || disabled) !== null && _a !== void 0 ? _a : contextDisabled; + const prevValue = _react_17_0_2_react.useRef(restProps.value); + _react_17_0_2_react.useEffect(() => { + checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value); + false ? 0 : void 0; + }, []); + _react_17_0_2_react.useEffect(() => { + if (skipGroup) { + return; + } + if (restProps.value !== prevValue.current) { + checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(prevValue.current); + checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value); + prevValue.current = restProps.value; + } + return () => checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(restProps.value); + }, [restProps.value]); + const prefixCls = getPrefixCls('checkbox', customizePrefixCls); + const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls); + const checkboxProps = Object.assign({}, restProps); + if (checkboxGroup && !skipGroup) { + checkboxProps.onChange = function () { + if (restProps.onChange) { + restProps.onChange.apply(restProps, arguments); + } + if (checkboxGroup.toggleOption) { + checkboxGroup.toggleOption({ + label: children, + value: restProps.value + }); + } + }; + checkboxProps.name = checkboxGroup.name; + checkboxProps.checked = checkboxGroup.value.includes(restProps.value); + } + const classString = _classnames_2_3_2_classnames_default()(`${prefixCls}-wrapper`, { + [`${prefixCls}-rtl`]: direction === 'rtl', + [`${prefixCls}-wrapper-checked`]: checkboxProps.checked, + [`${prefixCls}-wrapper-disabled`]: mergedDisabled, + [`${prefixCls}-wrapper-in-form-item`]: isFormItemInput + }, checkbox === null || checkbox === void 0 ? void 0 : checkbox.className, className, rootClassName, hashId); + const checkboxClass = _classnames_2_3_2_classnames_default()({ + [`${prefixCls}-indeterminate`]: indeterminate + }, wave_interface/* TARGET_CLS */.A, hashId); + const ariaChecked = indeterminate ? 'mixed' : undefined; + return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(wave/* default */.Z, { + component: "Checkbox", + disabled: mergedDisabled + }, /*#__PURE__*/_react_17_0_2_react.createElement("label", { + className: classString, + style: Object.assign(Object.assign({}, checkbox === null || checkbox === void 0 ? void 0 : checkbox.style), style), + onMouseEnter: onMouseEnter, + onMouseLeave: onMouseLeave + }, /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, Object.assign({ + "aria-checked": ariaChecked + }, checkboxProps, { + prefixCls: prefixCls, + className: checkboxClass, + disabled: mergedDisabled, + ref: ref + })), children !== undefined && /*#__PURE__*/_react_17_0_2_react.createElement("span", null, children)))); +}; +const Checkbox = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalCheckbox); +if (false) {} +/* harmony default export */ var checkbox_Checkbox = (Checkbox); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(40877); +// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/omit.js +var omit = __webpack_require__(99468); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/Group.js +"use client"; + + +var Group_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 InternalGroup = (props, ref) => { + const { + defaultValue, + children, + options = [], + prefixCls: customizePrefixCls, + className, + rootClassName, + style, + onChange + } = props, + restProps = Group_rest(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]); + const { + getPrefixCls, + direction + } = _react_17_0_2_react.useContext(config_provider_context/* ConfigContext */.E_); + const [value, setValue] = _react_17_0_2_react.useState(restProps.value || defaultValue || []); + const [registeredValues, setRegisteredValues] = _react_17_0_2_react.useState([]); + _react_17_0_2_react.useEffect(() => { + if ('value' in restProps) { + setValue(restProps.value || []); + } + }, [restProps.value]); + const memoOptions = _react_17_0_2_react.useMemo(() => options.map(option => { + if (typeof option === 'string' || typeof option === 'number') { + return { + label: option, + value: option + }; + } + return option; + }), [options]); + const cancelValue = val => { + setRegisteredValues(prevValues => prevValues.filter(v => v !== val)); + }; + const registerValue = val => { + setRegisteredValues(prevValues => [].concat((0,toConsumableArray/* default */.Z)(prevValues), [val])); + }; + const toggleOption = option => { + const optionIndex = value.indexOf(option.value); + const newValue = (0,toConsumableArray/* default */.Z)(value); + if (optionIndex === -1) { + newValue.push(option.value); + } else { + newValue.splice(optionIndex, 1); + } + if (!('value' in restProps)) { + setValue(newValue); + } + onChange === null || onChange === void 0 ? void 0 : onChange(newValue.filter(val => registeredValues.includes(val)).sort((a, b) => { + const indexA = memoOptions.findIndex(opt => opt.value === a); + const indexB = memoOptions.findIndex(opt => opt.value === b); + return indexA - indexB; + })); + }; + const prefixCls = getPrefixCls('checkbox', customizePrefixCls); + const groupPrefixCls = `${prefixCls}-group`; + const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls); + const domProps = (0,omit/* default */.Z)(restProps, ['value', 'disabled']); + const childrenNode = options.length ? memoOptions.map(option => /*#__PURE__*/_react_17_0_2_react.createElement(checkbox_Checkbox, { + prefixCls: prefixCls, + key: option.value.toString(), + disabled: 'disabled' in option ? option.disabled : restProps.disabled, + value: option.value, + checked: value.includes(option.value), + onChange: option.onChange, + className: `${groupPrefixCls}-item`, + style: option.style, + title: option.title + }, option.label)) : children; + // eslint-disable-next-line react/jsx-no-constructed-context-values + const context = { + toggleOption, + value, + disabled: restProps.disabled, + name: restProps.name, + // https://github.com/ant-design/ant-design/issues/16376 + registerValue, + cancelValue + }; + const classString = _classnames_2_3_2_classnames_default()(groupPrefixCls, { + [`${groupPrefixCls}-rtl`]: direction === 'rtl' + }, className, rootClassName, hashId); + return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({ + className: classString, + style: style + }, domProps, { + ref: ref + }), /*#__PURE__*/_react_17_0_2_react.createElement(checkbox_GroupContext.Provider, { + value: context + }, childrenNode))); +}; + +const CheckboxGroup = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalGroup); +/* harmony default export */ var Group = (/*#__PURE__*/_react_17_0_2_react.memo(CheckboxGroup)); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js +"use client"; + + + +const es_checkbox_Checkbox = checkbox_Checkbox; +es_checkbox_Checkbox.Group = Group; +es_checkbox_Checkbox.__ANT_CHECKBOX = true; +if (false) {} +/* harmony default export */ var es_checkbox = (es_checkbox_Checkbox); + +/***/ }), + +/***/ 98447: +/*!******************************************************************!*\ + !*** ./node_modules/_antd@5.9.0@antd/es/checkbox/style/index.js ***! + \******************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ C2: function() { return /* binding */ getStyle; } +/* harmony export */ }); +/* unused harmony export genCheckboxStyle */ +/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style */ 17313); +/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../theme/internal */ 37613); +/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme/internal */ 83116); + + +// ============================== Styles ============================== +const genCheckboxStyle = token => { + const { + checkboxCls + } = token; + const wrapperCls = `${checkboxCls}-wrapper`; + return [ + // ===================== Basic ===================== + { + // Group + [`${checkboxCls}-group`]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), { + display: 'inline-flex', + flexWrap: 'wrap', + columnGap: token.marginXS, + // Group > Grid + [`> ${token.antCls}-row`]: { + flex: 1 + } + }), + // Wrapper + [wrapperCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), { + display: 'inline-flex', + alignItems: 'baseline', + cursor: 'pointer', + // Fix checkbox & radio in flex align #30260 + '&:after': { + display: 'inline-block', + width: 0, + overflow: 'hidden', + content: "'\\a0'" + }, + // Checkbox near checkbox + [`& + ${wrapperCls}`]: { + marginInlineStart: 0 + }, + [`&${wrapperCls}-in-form-item`]: { + 'input[type="checkbox"]': { + width: 14, + height: 14 // FIXME: magic + } + } + }), + + // Wrapper > Checkbox + [checkboxCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), { + position: 'relative', + whiteSpace: 'nowrap', + lineHeight: 1, + cursor: 'pointer', + borderRadius: token.borderRadiusSM, + // To make alignment right when `controlHeight` is changed + // Ref: https://github.com/ant-design/ant-design/issues/41564 + alignSelf: 'center', + // Wrapper > Checkbox > input + [`${checkboxCls}-input`]: { + position: 'absolute', + // Since baseline align will get additional space offset, + // we need to move input to top to make it align with text. + // Ref: https://github.com/ant-design/ant-design/issues/38926#issuecomment-1486137799 + inset: 0, + zIndex: 1, + cursor: 'pointer', + opacity: 0, + margin: 0, + [`&:focus-visible + ${checkboxCls}-inner`]: Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .genFocusOutline */ .oN)(token)) + }, + // Wrapper > Checkbox > inner + [`${checkboxCls}-inner`]: { + boxSizing: 'border-box', + position: 'relative', + top: 0, + insetInlineStart: 0, + display: 'block', + width: token.checkboxSize, + height: token.checkboxSize, + direction: 'ltr', + backgroundColor: token.colorBgContainer, + border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`, + borderRadius: token.borderRadiusSM, + borderCollapse: 'separate', + transition: `all ${token.motionDurationSlow}`, + '&:after': { + boxSizing: 'border-box', + position: 'absolute', + top: '50%', + insetInlineStart: '21.5%', + display: 'table', + width: token.checkboxSize / 14 * 5, + height: token.checkboxSize / 14 * 8, + border: `${token.lineWidthBold}px solid ${token.colorWhite}`, + borderTop: 0, + borderInlineStart: 0, + transform: 'rotate(45deg) scale(0) translate(-50%,-50%)', + opacity: 0, + content: '""', + transition: `all ${token.motionDurationFast} ${token.motionEaseInBack}, opacity ${token.motionDurationFast}` + } + }, + // Wrapper > Checkbox + Text + '& + span': { + paddingInlineStart: token.paddingXS, + paddingInlineEnd: token.paddingXS + } + }) + }, + // ===================== Hover ===================== + { + // Wrapper & Wrapper > Checkbox + [` + ${wrapperCls}:not(${wrapperCls}-disabled), + ${checkboxCls}:not(${checkboxCls}-disabled) + `]: { + [`&:hover ${checkboxCls}-inner`]: { + borderColor: token.colorPrimary + } + }, + [`${wrapperCls}:not(${wrapperCls}-disabled)`]: { + [`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled) ${checkboxCls}-inner`]: { + backgroundColor: token.colorPrimaryHover, + borderColor: 'transparent' + }, + [`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled):after`]: { + borderColor: token.colorPrimaryHover + } + } + }, + // ==================== Checked ==================== + { + // Wrapper > Checkbox + [`${checkboxCls}-checked`]: { + [`${checkboxCls}-inner`]: { + backgroundColor: token.colorPrimary, + borderColor: token.colorPrimary, + '&:after': { + opacity: 1, + transform: 'rotate(45deg) scale(1) translate(-50%,-50%)', + transition: `all ${token.motionDurationMid} ${token.motionEaseOutBack} ${token.motionDurationFast}` + } + } + }, + [` + ${wrapperCls}-checked:not(${wrapperCls}-disabled), + ${checkboxCls}-checked:not(${checkboxCls}-disabled) + `]: { + [`&:hover ${checkboxCls}-inner`]: { + backgroundColor: token.colorPrimaryHover, + borderColor: 'transparent' + } + } + }, + // ================= Indeterminate ================= + { + [checkboxCls]: { + '&-indeterminate': { + // Wrapper > Checkbox > inner + [`${checkboxCls}-inner`]: { + backgroundColor: token.colorBgContainer, + borderColor: token.colorBorder, + '&:after': { + top: '50%', + insetInlineStart: '50%', + width: token.fontSizeLG / 2, + height: token.fontSizeLG / 2, + backgroundColor: token.colorPrimary, + border: 0, + transform: 'translate(-50%, -50%) scale(1)', + opacity: 1, + content: '""' + } + } + } + } + }, + // ==================== Disable ==================== + { + // Wrapper + [`${wrapperCls}-disabled`]: { + cursor: 'not-allowed' + }, + // Wrapper > Checkbox + [`${checkboxCls}-disabled`]: { + // Wrapper > Checkbox > input + [`&, ${checkboxCls}-input`]: { + cursor: 'not-allowed', + // Disabled for native input to enable Tooltip event handler + // ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901 + pointerEvents: 'none' + }, + // Wrapper > Checkbox > inner + [`${checkboxCls}-inner`]: { + background: token.colorBgContainerDisabled, + borderColor: token.colorBorder, + '&:after': { + borderColor: token.colorTextDisabled + } + }, + '&:after': { + display: 'none' + }, + '& + span': { + color: token.colorTextDisabled + }, + [`&${checkboxCls}-indeterminate ${checkboxCls}-inner::after`]: { + background: token.colorTextDisabled + } + } + }]; +}; +// ============================== Export ============================== +function getStyle(prefixCls, token) { + const checkboxToken = (0,_theme_internal__WEBPACK_IMPORTED_MODULE_1__/* .merge */ .TS)(token, { + checkboxCls: `.${prefixCls}`, + checkboxSize: token.controlInteractiveSize + }); + return [genCheckboxStyle(checkboxToken)]; +} +/* harmony default export */ __webpack_exports__.ZP = ((0,_theme_internal__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)('Checkbox', (token, _ref) => { + let { + prefixCls + } = _ref; + return [getStyle(prefixCls, token)]; +})); + +/***/ }), + +/***/ 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.5@@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(61796); +;// 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); + +/***/ }), + +/***/ 8378: +/*!*******************************************************************!*\ + !*** ./node_modules/_antd@5.9.0@antd/es/style/motion/collapse.js ***! + \*******************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +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); + +/***/ }), + +/***/ 5630: +/*!*****************************************************************!*\ + !*** ./node_modules/_rc-checkbox@3.1.0@rc-checkbox/es/index.js ***! + \*****************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* unused harmony export Checkbox */ +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ 61796); +/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 36439); +/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ 35005); +/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ 61860); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ 20968); +/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); +/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/hooks/useMergedState */ 84381); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301); + + + + + +var _excluded = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"]; + + + + +var Checkbox = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function (props, ref) { + var _classNames; + var _props$prefixCls = props.prefixCls, + prefixCls = _props$prefixCls === void 0 ? 'rc-checkbox' : _props$prefixCls, + className = props.className, + style = props.style, + checked = props.checked, + disabled = props.disabled, + _props$defaultChecked = props.defaultChecked, + defaultChecked = _props$defaultChecked === void 0 ? false : _props$defaultChecked, + _props$type = props.type, + type = _props$type === void 0 ? 'checkbox' : _props$type, + title = props.title, + onChange = props.onChange, + inputProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(props, _excluded); + var inputRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null); + var _useMergedState = (0,rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(defaultChecked, { + value: checked + }), + _useMergedState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(_useMergedState, 2), + rawValue = _useMergedState2[0], + setRawValue = _useMergedState2[1]; + (0,react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle)(ref, function () { + return { + focus: function focus() { + var _inputRef$current; + (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus(); + }, + blur: function blur() { + var _inputRef$current2; + (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.blur(); + }, + input: inputRef.current + }; + }); + var classString = classnames__WEBPACK_IMPORTED_MODULE_0___default()(prefixCls, className, (_classNames = {}, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-checked"), rawValue), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), _classNames)); + var handleChange = function handleChange(e) { + if (disabled) { + return; + } + if (!('checked' in props)) { + setRawValue(e.target.checked); + } + onChange === null || onChange === void 0 ? void 0 : onChange({ + target: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)({}, props), {}, { + type: type, + checked: e.target.checked + }), + stopPropagation: function stopPropagation() { + e.stopPropagation(); + }, + preventDefault: function preventDefault() { + e.preventDefault(); + }, + nativeEvent: e.nativeEvent + }); + }; + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { + className: classString, + title: title, + style: style + }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("input", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)({}, inputProps, { + className: "".concat(prefixCls, "-input"), + ref: inputRef, + onChange: handleChange, + disabled: disabled, + checked: !!rawValue, + type: type + })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { + className: "".concat(prefixCls, "-inner") + })); +}); +/* harmony default export */ __webpack_exports__.Z = (Checkbox); + +/***/ }), + +/***/ 51581: +/*!****************************************************************************************************!*\ + !*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/dist/InfiniteScroll.js ***! + \****************************************************************************************************/ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); + +var _createClass = 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _react = __webpack_require__(/*! react */ 59301); + +var _react2 = _interopRequireDefault(_react); + +var _propTypes = __webpack_require__(/*! prop-types */ 12708); + +var _propTypes2 = _interopRequireDefault(_propTypes); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var InfiniteScroll = function (_Component) { + _inherits(InfiniteScroll, _Component); + + function InfiniteScroll(props) { + _classCallCheck(this, InfiniteScroll); + + var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props)); + + _this.scrollListener = _this.scrollListener.bind(_this); + _this.eventListenerOptions = _this.eventListenerOptions.bind(_this); + _this.mousewheelListener = _this.mousewheelListener.bind(_this); + return _this; + } + + _createClass(InfiniteScroll, [{ + key: 'componentDidMount', + value: function componentDidMount() { + this.pageLoaded = this.props.pageStart; + this.options = this.eventListenerOptions(); + this.attachScrollListener(); + } + }, { + key: 'componentDidUpdate', + value: function componentDidUpdate() { + if (this.props.isReverse && this.loadMore) { + var parentElement = this.getParentElement(this.scrollComponent); + parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop; + this.loadMore = false; + } + this.attachScrollListener(); + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() { + this.detachScrollListener(); + this.detachMousewheelListener(); + } + }, { + key: 'isPassiveSupported', + value: function isPassiveSupported() { + var passive = false; + + var testOptions = { + get passive() { + passive = true; + } + }; + + try { + document.addEventListener('test', null, testOptions); + document.removeEventListener('test', null, testOptions); + } catch (e) { + // ignore + } + return passive; + } + }, { + key: 'eventListenerOptions', + value: function eventListenerOptions() { + var options = this.props.useCapture; + + if (this.isPassiveSupported()) { + options = { + useCapture: this.props.useCapture, + passive: true + }; + } + return options; + } + + // Set a defaut loader for all your `InfiniteScroll` components + + }, { + key: 'setDefaultLoader', + value: function setDefaultLoader(loader) { + this.defaultLoader = loader; + } + }, { + key: 'detachMousewheelListener', + value: function detachMousewheelListener() { + var scrollEl = window; + if (this.props.useWindow === false) { + scrollEl = this.scrollComponent.parentNode; + } + + scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture); + } + }, { + key: 'detachScrollListener', + value: function detachScrollListener() { + var scrollEl = window; + if (this.props.useWindow === false) { + scrollEl = this.getParentElement(this.scrollComponent); + } + + scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture); + scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture); + } + }, { + key: 'getParentElement', + value: function getParentElement(el) { + var scrollParent = this.props.getScrollParent && this.props.getScrollParent(); + if (scrollParent != null) { + return scrollParent; + } + return el && el.parentNode; + } + }, { + key: 'filterProps', + value: function filterProps(props) { + return props; + } + }, { + key: 'attachScrollListener', + value: function attachScrollListener() { + var parentElement = this.getParentElement(this.scrollComponent); + + if (!this.props.hasMore || !parentElement) { + return; + } + + var scrollEl = window; + if (this.props.useWindow === false) { + scrollEl = parentElement; + } + + scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture); + scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture); + scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture); + + if (this.props.initialLoad) { + this.scrollListener(); + } + } + }, { + key: 'mousewheelListener', + value: function mousewheelListener(e) { + // Prevents Chrome hangups + // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257 + if (e.deltaY === 1 && !this.isPassiveSupported()) { + e.preventDefault(); + } + } + }, { + key: 'scrollListener', + value: function scrollListener() { + var el = this.scrollComponent; + var scrollEl = window; + var parentNode = this.getParentElement(el); + + var offset = void 0; + if (this.props.useWindow) { + var doc = document.documentElement || document.body.parentNode || document.body; + var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop; + if (this.props.isReverse) { + offset = scrollTop; + } else { + offset = this.calculateOffset(el, scrollTop); + } + } else if (this.props.isReverse) { + offset = parentNode.scrollTop; + } else { + offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight; + } + + // Here we make sure the element is visible as well as checking the offset + if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) { + this.detachScrollListener(); + this.beforeScrollHeight = parentNode.scrollHeight; + this.beforeScrollTop = parentNode.scrollTop; + // Call loadMore after detachScrollListener to allow for non-async loadMore functions + if (typeof this.props.loadMore === 'function') { + this.props.loadMore(this.pageLoaded += 1); + this.loadMore = true; + } + } + } + }, { + key: 'calculateOffset', + value: function calculateOffset(el, scrollTop) { + if (!el) { + return 0; + } + + return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight); + } + }, { + key: 'calculateTopPosition', + value: function calculateTopPosition(el) { + if (!el) { + return 0; + } + return el.offsetTop + this.calculateTopPosition(el.offsetParent); + } + }, { + key: 'render', + value: function render() { + var _this2 = this; + + var renderProps = this.filterProps(this.props); + + var children = renderProps.children, + element = renderProps.element, + hasMore = renderProps.hasMore, + initialLoad = renderProps.initialLoad, + isReverse = renderProps.isReverse, + loader = renderProps.loader, + loadMore = renderProps.loadMore, + pageStart = renderProps.pageStart, + ref = renderProps.ref, + threshold = renderProps.threshold, + useCapture = renderProps.useCapture, + useWindow = renderProps.useWindow, + getScrollParent = renderProps.getScrollParent, + props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']); + + props.ref = function (node) { + _this2.scrollComponent = node; + if (ref) { + ref(node); + } + }; + + var childrenArray = [children]; + if (hasMore) { + if (loader) { + isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader); + } else if (this.defaultLoader) { + isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader); + } + } + return _react2.default.createElement(element, props, childrenArray); + } + }]); + + return InfiniteScroll; +}(_react.Component); + +InfiniteScroll.propTypes = { + children: _propTypes2.default.node.isRequired, + element: _propTypes2.default.node, + hasMore: _propTypes2.default.bool, + initialLoad: _propTypes2.default.bool, + isReverse: _propTypes2.default.bool, + loader: _propTypes2.default.node, + loadMore: _propTypes2.default.func.isRequired, + pageStart: _propTypes2.default.number, + ref: _propTypes2.default.func, + getScrollParent: _propTypes2.default.func, + threshold: _propTypes2.default.number, + useCapture: _propTypes2.default.bool, + useWindow: _propTypes2.default.bool +}; +InfiniteScroll.defaultProps = { + element: 'div', + hasMore: false, + initialLoad: true, + pageStart: 0, + ref: null, + threshold: 250, + useWindow: true, + isReverse: false, + useCapture: false, + loader: null, + getScrollParent: null +}; +exports["default"] = InfiniteScroll; +module.exports = exports['default']; + + +/***/ }), + +/***/ 26724: +/*!**************************************************************************************!*\ + !*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/index.js ***! + \**************************************************************************************/ +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 51581) + + +/***/ }) + +}]); \ No newline at end of file diff --git a/69859.async.js b/69859.async.js index 65a5924ab4..2fb9609e2d 100644 --- a/69859.async.js +++ b/69859.async.js @@ -459,10 +459,7 @@ if (false) {} /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } -/* harmony export */ }); -/* unused harmony export getOverlay */ +/* unused harmony exports getOverlay, RawPurePanel */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/71244.async.js b/71244.async.js index 6b5098436b..fe8a1ed6ac 100644 --- a/71244.async.js +++ b/71244.async.js @@ -2809,6 +2809,14 @@ var CourseList = function CourseList(_ref) { children: name }) }) + }), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { + title: "\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(school_name), + children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: CourseListmodules.unit, + children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", { + className: "iconfont icon-danwei1 font14 mr3" + }), school_name] + }) }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: CourseListmodules.tags, children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { diff --git a/72422.async.js b/72422.async.js index a518098010..a16871e05d 100644 --- a/72422.async.js +++ b/72422.async.js @@ -1251,10 +1251,7 @@ if (false) {} /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } -/* harmony export */ }); -/* unused harmony export getOverlay */ +/* unused harmony exports getOverlay, RawPurePanel */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/74237.async.js b/74237.async.js deleted file mode 100644 index ce306a3ddc..0000000000 --- a/74237.async.js +++ /dev/null @@ -1,2986 +0,0 @@ -"use strict"; -(self["webpackChunk"] = self["webpackChunk"] || []).push([[74237,40840],{ - -/***/ 12217: -/*!******************************************!*\ - !*** ./src/pages/tasks/service/index.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ JW: function() { return /* binding */ setUnity3dStatus; }, -/* harmony export */ Jd: function() { return /* binding */ rebootEsc; }, -/* harmony export */ Kl: function() { return /* binding */ addVncTime; }, -/* harmony export */ L5: function() { return /* binding */ saveTaskStar; }, -/* harmony export */ MH: function() { return /* binding */ getChooseUnlockAnswer; }, -/* harmony export */ MI: function() { return /* binding */ addMyRepositoryFile; }, -/* harmony export */ Qo: function() { return /* binding */ getCodeGameStatus; }, -/* harmony export */ SO: function() { return /* binding */ fetchPathsTaskList; }, -/* harmony export */ Tf: function() { return /* binding */ resetGitCode; }, -/* harmony export */ XO: function() { return /* binding */ fetchTaskInfo; }, -/* harmony export */ Xy: function() { return /* binding */ codeGameBuild; }, -/* harmony export */ Y0: function() { return /* binding */ plusOrCancelPraise; }, -/* harmony export */ Ye: function() { return /* binding */ setStartPermanent; }, -/* harmony export */ Yv: function() { return /* binding */ stopLogOutput; }, -/* harmony export */ ZH: function() { return /* binding */ commitFiles; }, -/* harmony export */ am: function() { return /* binding */ resetEnvironment; }, -/* harmony export */ bD: function() { return /* binding */ deleteMyGitFile; }, -/* harmony export */ fA: function() { return /* binding */ closeWindowsVnc; }, -/* harmony export */ fY: function() { return /* binding */ getRemainingTime; }, -/* harmony export */ g6: function() { return /* binding */ fetchTaskList; }, -/* harmony export */ g7: function() { return /* binding */ moveMyGitFile; }, -/* harmony export */ gT: function() { return /* binding */ fetchPictures; }, -/* harmony export */ gn: function() { return /* binding */ pullFiles; }, -/* harmony export */ h$: function() { return /* binding */ logOutput; }, -/* harmony export */ hG: function() { return /* binding */ resetPassedCode; }, -/* harmony export */ i8: function() { return /* binding */ getRanking; }, -/* harmony export */ j3: function() { return /* binding */ getUnlockAnswer; }, -/* harmony export */ lH: function() { return /* binding */ getAnswerInfo; }, -/* harmony export */ li: function() { return /* binding */ fetchCode; }, -/* harmony export */ n4: function() { return /* binding */ updateCode; }, -/* harmony export */ pU: function() { return /* binding */ fetchRepos; }, -/* harmony export */ qK: function() { return /* binding */ restoreCode; }, -/* harmony export */ sA: function() { return /* binding */ startInit; }, -/* harmony export */ sP: function() { return /* binding */ getChooseAnswerInfo; }, -/* harmony export */ t$: function() { return /* binding */ unlockTestCase; }, -/* harmony export */ zl: function() { return /* binding */ evalateChooseGame; } -/* harmony export */ }); -/* unused harmony exports getNoticeDetail, closeSSh, getMyFileContent */ -/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js */ 10574); -/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js */ 39343); -/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801); -/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/fetch */ 91506); -/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/util */ 22739); - - - - - - -//判断是否来自教学课堂助教查看实训 -var urlParamsAll = (0,_utils_util__WEBPACK_IMPORTED_MODULE_4__/* .getJsonFromUrl */ .oP)(); -var urlParams = {}; -if (urlParamsAll !== null && urlParamsAll !== void 0 && urlParamsAll.homework_common_id) { - urlParams.homework_common_id = urlParamsAll === null || urlParamsAll === void 0 ? void 0 : urlParamsAll.homework_common_id; -} -if (urlParamsAll !== null && urlParamsAll !== void 0 && urlParamsAll.exercisesId) { - urlParams.exercise_id = urlParamsAll === null || urlParamsAll === void 0 ? void 0 : urlParamsAll.exercisesId; -} -function fetchTaskInfo(id) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, ".json"), urlParams); -} -function fetchTaskList(id) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/challenges.json")); -} -function fetchPathsTaskList(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/subject_challenges.json"), params); -} -function saveTaskStar(id, shixunId, star) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/star.json"), { - shixun_id: shixunId, - star: star - }); -} -function fetchCode(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/rep_content.json"), _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams)); -} -function updateCode(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/update_file.json"), params); -} -function restoreCode(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/reset_original_code.json"), _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams)); -} -function resetGitCode(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/reset_repository.json"), params); -} -function resetPassedCode(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/reset_passed_code.json"), _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams)); -} -function codeGameBuild(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/game_build.json"), _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams)); -} -function getCodeGameStatus(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/game_status.json"), _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams)); -} -function evalateChooseGame(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/choose_build.json"), _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams)); -} - -//获取环境剩余时间 -function getRemainingTime(id) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/get_remaining_time.json")); -} -function fetchPictures(id) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/picture_display.json"), urlParams); -} -function getNoticeDetail(id, params) { - return get("courses/".concat(id, "/inform_detail.json"), params); -} -function plusOrCancelPraise(id) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/plus_or_cancel_praise.json")); -} -function fetchRepos(id) { - var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/repository.json"), params); -} - -//添加新方法 -function startInit(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/start.json"), params || {}); -} -function closeSSh(id) { - return get("myshixuns/".concat(id, "/reset_pod.json")); -} -function resetEnvironment(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/reset_pod.json"), params); -} - -// 重启云主机 -function rebootEsc(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/tasks/".concat(id, "/reboot_esc.json"), { - method: 'post', - body: params - }); -} -function unlockTestCase(id) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/check_test_sets.json")); -} -function getAnswerInfo(id) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/get_answer_info.json")); -} -function getChooseAnswerInfo(id) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/get_choose_answer.json")); -} -function getChooseUnlockAnswer(id) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/unlock_choose_answer.json")); -} -function getUnlockAnswer(id, aid) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/unlock_answer.json"), { - answer_id: aid - }); -} -function setUnity3dStatus(id, result, data) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/set_games_status.json"), { - result: result, - data: data - }); -} - -//保留唯一一个方法 -function addVncTime(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/active_pod.json"), params); -} -function getRanking(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/rank_list.json"), params); -} -function closeWindowsVnc(id, tpi_id) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/close_windows_vnc.json"), { - tpi_id: tpi_id - }); -} -function commitFiles(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/commit_files.json"), params); -} -function pullFiles(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/pull_files.json"), params); -} -function logOutput(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/log_output"), params); -} -function stopLogOutput(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/stop_log_output.json"), params); -} - -// myshixuns start -function addMyRepositoryFile(_x) { - return _addMyRepositoryFile.apply(this, arguments); -} -function _addMyRepositoryFile() { - _addMyRepositoryFile = _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(params) { - return _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - return _context.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/add_file.json"), { - method: 'post', - body: params - })); - case 1: - case "end": - return _context.stop(); - } - }, _callee); - })); - return _addMyRepositoryFile.apply(this, arguments); -} -function deleteMyGitFile(_x2) { - return _deleteMyGitFile.apply(this, arguments); -} -function _deleteMyGitFile() { - _deleteMyGitFile = _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2(params) { - return _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - return _context2.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/delete_git_file.json"), { - method: 'Delete', - body: params - })); - case 1: - case "end": - return _context2.stop(); - } - }, _callee2); - })); - return _deleteMyGitFile.apply(this, arguments); -} -function moveMyGitFile(_x3) { - return _moveMyGitFile.apply(this, arguments); -} -function _moveMyGitFile() { - _moveMyGitFile = _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3(params) { - return _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - return _context3.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/mv_file.json"), { - method: 'post', - body: params - })); - case 1: - case "end": - return _context3.stop(); - } - }, _callee3); - })); - return _moveMyGitFile.apply(this, arguments); -} -function getMyFileContent(_x4) { - return _getMyFileContent.apply(this, arguments); -} -function _getMyFileContent() { - _getMyFileContent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(params) { - return _regeneratorRuntime().wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - return _context4.abrupt("return", Fetch("/api/tasks/".concat(params.id, "/rep_content.json"), { - method: 'get', - params: params - })); - case 1: - case "end": - return _context4.stop(); - } - }, _callee4); - })); - return _getMyFileContent.apply(this, arguments); -} -function setStartPermanent(id, params) { - return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/shixuns/".concat(id, "/set_start_permanent.json"), { - method: 'put', - body: params - }); -} - -/***/ }), - -/***/ 40840: -/*!**********************************************************!*\ - !*** ./src/components/MultiUpload/index.tsx + 3 modules ***! - \**********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - z: function() { return /* binding */ coverToFileList; }, - Z: function() { return /* binding */ MultiUpload; } -}); - -// 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/_@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/toConsumableArray.js -var toConsumableArray = __webpack_require__(93923); -var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray); -// 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/_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/upload/index.js + 24 modules -var upload = __webpack_require__(6557); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules -var es_message = __webpack_require__(8591); -// 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/button/index.js -var es_button = __webpack_require__(3113); -// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules -var env = __webpack_require__(78130); -// EXTERNAL MODULE: ./src/pages/MoopCases/FormPanel/service.ts -var service = __webpack_require__(84568); -// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js -var jsx_runtime = __webpack_require__(37712); -;// CONCATENATED MODULE: ./src/components/SingleUpload/index.tsx - - - - - - - - - - -var uploadNameSizeSeperator = '  '; -function bytesToSize(bytes) { - var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB']; - if (bytes == 0) return '0 Byte'; - var i = parseInt('' + Math.floor(Math.log(bytes) / Math.log(1024)), 10); - return (bytes / Math.pow(1024, i)).toFixed(1) + ' ' + sizes[i]; -} -/* harmony default export */ var SingleUpload = (function (_ref) { - var _ref$value = _ref.value, - value = _ref$value === void 0 ? [] : _ref$value, - action = _ref.action, - _onChange = _ref.onChange, - className = _ref.className, - _ref$maxSize = _ref.maxSize, - maxSize = _ref$maxSize === void 0 ? 150 : _ref$maxSize, - _ref$title = _ref.title, - title = _ref$title === void 0 ? '文件上传' : _ref$title, - _ref$accept = _ref.accept, - accept = _ref$accept === void 0 ? null : _ref$accept; - var uploadProps = { - multiple: false, - fileList: value, - accept: accept, - withCredentials: true, - beforeUpload: function beforeUpload(file) { - var fileSize = file.size / 1024 / 1024; - if (!(fileSize < maxSize)) { - message.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20")); - return Promise.reject(); - } - return true; - }, - action: "".concat(ENV.API_SERVER, "/api/attachments.json"), - // ?debug=student&randomcode=undefined&client_key=6d57f8c3dd186c5ada392546ace9620a - onChange: function onChange(info) { - var _info$file; - var fileList = _toConsumableArray(info.fileList); - fileList = fileList.map(function (file) { - if (file.name.indexOf(uploadNameSizeSeperator) === -1) { - file.name = "".concat(file.name).concat(uploadNameSizeSeperator).concat(bytesToSize(file.size)); - } - return _objectSpread({}, file); - }); - if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 || (_info$file = _info$file.response) === null || _info$file === void 0 ? void 0 : _info$file.status) === -1) { - var _info$file2; - message.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message); - _onChange([]); - return; - } - _onChange(fileList); - }, - onRemove: function () { - var _onRemove = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) { - var fileSize, id, rs; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - fileSize = file.size / 1024 / 1024; - if (!(file.status === 'uploading')) { - _context.next = 3; - break; - } - return _context.abrupt("return", true); - case 3: - if (fileSize < maxSize) { - _context.next = 7; - break; - } - return _context.abrupt("return", true); - case 7: - id = file.response ? file.response.id : file.uid; - if (!id) { - _context.next = 15; - break; - } - _context.next = 11; - return removeAttachment(file.response ? file.response.id : file.id); - case 11: - rs = _context.sent; - return _context.abrupt("return", rs); - case 15: - return _context.abrupt("return", true); - case 16: - case "end": - return _context.stop(); - } - }, _callee); - })); - function onRemove(_x) { - return _onRemove.apply(this, arguments); - } - return onRemove; - }() - }; - function onCancel(e) { - e.preventDefault(); - e.stopPropagation(); - } - return /*#__PURE__*/_jsx("div", { - className: "single-upload ".concat(className ? className : ''), - children: /*#__PURE__*/_jsxs(Upload, _objectSpread(_objectSpread({}, uploadProps), {}, { - children: [/*#__PURE__*/_jsx(Button, { - type: "primary", - title: value.length > 0 ? '每次只能上传一个资源, 删除下面资源可重新上传 ' : '', - disabled: value.length > 0, - ghost: true, - children: title - }), /*#__PURE__*/_jsxs("span", { - onClick: onCancel, - style: { - marginLeft: 10 - }, - children: ["(\u5355\u4E2A\u6587\u4EF6\u6700\u5927", maxSize, "M)", ' '] - })] - })) - }); -}); -// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/InboxOutlined.js + 1 modules -var InboxOutlined = __webpack_require__(60936); -// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js -var lodash = __webpack_require__(89392); -;// CONCATENATED MODULE: ./src/components/MultiUpload/index.less -// extracted by mini-css-extract-plugin - -;// CONCATENATED MODULE: ./src/assets/images/uploadImg.svg -function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = function __defNormalProp(obj, key, value) { - return key in obj ? __defProp(obj, key, { - enumerable: true, - configurable: true, - writable: true, - value: value - }) : obj[key] = value; -}; -var __spreadValues = function __spreadValues(a, b) { - for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) { - var _iterator = _createForOfIteratorHelper(__getOwnPropSymbols(b)), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var prop = _step.value; - if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - } - return a; -}; - -var SvgUploadImg = function SvgUploadImg(props) { - return /* @__PURE__ */React.createElement("svg", __spreadValues({ - width: 14, - height: 14, - xmlns: "http://www.w3.org/2000/svg" - }, props), /* @__PURE__ */React.createElement("title", null, "\u5F62\u72B6"), /* @__PURE__ */React.createElement("path", { - d: "M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z", - fill: "#3061D0", - fillRule: "nonzero" - })); -}; - -/* harmony default export */ var uploadImg = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="); -;// CONCATENATED MODULE: ./src/components/MultiUpload/index.tsx - - - - - - - - - - - - - - - - -var Dragger = upload/* default */.Z.Dragger; -function coverToFileList(data) { - var rs = []; - if (data && data.length > 0) { - rs = data.map(function (item) { - return { - uid: item.id, - id: item.id, - name: item.title + uploadNameSizeSeperator + item.filesize, - url: item.url, - filesize: item.filesize, - status: 'done', - response: { - id: item.id - } - }; - }); - } - return rs; -} -/* harmony default export */ var MultiUpload = (function (_ref) { - var value = _ref.value, - _onChange = _ref.onChange, - action = _ref.action, - data = _ref.data, - className = _ref.className, - _ref$maxSize = _ref.maxSize, - maxSize = _ref$maxSize === void 0 ? 150 : _ref$maxSize, - _ref$title = _ref.title, - title = _ref$title === void 0 ? '上传附件' : _ref$title, - _ref$showRemoveModal = _ref.showRemoveModal, - showRemoveModal = _ref$showRemoveModal === void 0 ? false : _ref$showRemoveModal, - _ref$accept = _ref.accept, - accept = _ref$accept === void 0 ? '' : _ref$accept, - additionalText = _ref.additionalText, - isDragger = _ref.isDragger, - _ref$number = _ref.number, - number = _ref$number === void 0 ? 1000 : _ref$number, - _ref$aloneClear = _ref.aloneClear, - aloneClear = _ref$aloneClear === void 0 ? false : _ref$aloneClear; - var _useState = (0,_react_17_0_2_react.useState)(false), - _useState2 = slicedToArray_default()(_useState, 2), - disabled = _useState2[0], - setDisabled = _useState2[1]; - var _useState3 = (0,_react_17_0_2_react.useState)(value || []), - _useState4 = slicedToArray_default()(_useState3, 2), - fileList = _useState4[0], - setFileList = _useState4[1]; - var _useState5 = (0,_react_17_0_2_react.useState)(1), - _useState6 = slicedToArray_default()(_useState5, 2), - nums = _useState6[0], - setnums = _useState6[1]; - (0,_react_17_0_2_react.useEffect)(function () { - if (value) { - if (nums === 1) { - setFileList(toConsumableArray_default()(value)); - } - setnums(2); - if (number === (value === null || value === void 0 ? void 0 : value.length)) { - setDisabled(true); - } - } - }, [value]); - var clearLastFile = function clearLastFile() { - setTimeout(function () { - fileList.pop(); - setFileList(toConsumableArray_default()(fileList)); - }, 500); - }; - var uploadProps = { - multiple: true, - disabled: disabled, - accept: accept, - withCredentials: true, - fileList: fileList, - // fileList: fileList?.length ? fileList : value, - beforeUpload: function beforeUpload(file, fileArr) { - var fileSize = file.size / 1024 / 1024; - if (fileList.concat(fileArr).length > number) { - fileList.pop(); - setFileList(toConsumableArray_default()(fileList)); - es_message/* default */.ZP.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(number, "\u4E2A\u6587\u4EF6")); - if (aloneClear) { - return Promise.reject(); - } - clearLastFile(); - return false; - } - if (!(fileSize < maxSize)) { - es_message/* default */.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB).")); - if (aloneClear) { - return Promise.reject(); - } - clearLastFile(); - return false; - } - return true; - }, - data: data, - action: action || "".concat(env/* default */.Z.API_SERVER, "/api/attachments.json"), - // ?debug=student&randomcode=undefined&client_key=6d57f8c3dd186c5ada392546ace9620a - onChange: function onChange(info) { - var _info$file; - if (info.file.status === "removed") { - fileList = info.fileList; - } else { - fileList = (0,lodash.uniqBy)([].concat(toConsumableArray_default()(info.fileList), toConsumableArray_default()(fileList)), 'uid'); - } - if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 || (_info$file = _info$file.response) === null || _info$file === void 0 ? void 0 : _info$file.status) === -1) { - var _info$file2; - es_message/* default */.ZP.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message); - return; - } - if (fileList.length >= number) setDisabled(true);else setDisabled(false); - setFileList(toConsumableArray_default()(fileList)); - fileList = fileList.map(function (file) { - var _file$response; - if (file !== null && file !== void 0 && (_file$response = file.response) !== null && _file$response !== void 0 && _file$response.id) { - var _file$response2; - file.url = "/api/attachments/".concat(file === null || file === void 0 || (_file$response2 = file.response) === null || _file$response2 === void 0 ? void 0 : _file$response2.id); - } - if (file.name.indexOf(uploadNameSizeSeperator) === -1) { - file.name = "".concat(file.name).concat(uploadNameSizeSeperator).concat(bytesToSize(file.size)); - } - return objectSpread2_default()({}, file); - }); - console.log('info:', info, fileList); - _onChange(fileList); - }, - onRemove: function () { - var _onRemove = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(file) { - var remove; - return regeneratorRuntime_default()().wrap(function _callee3$(_context3) { - while (1) switch (_context3.prev = _context3.next) { - case 0: - remove = /*#__PURE__*/function () { - var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() { - var id, rs; - return regeneratorRuntime_default()().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - id = file.response ? file.response.id : file.id; - if (!id) { - _context.next = 8; - break; - } - _context.next = 4; - return (0,service/* removeAttachment */.JZ)(file.response ? file.response.id : file.uid); - case 4: - rs = _context.sent; - return _context.abrupt("return", Promise.resolve(rs)); - case 8: - return _context.abrupt("return", true); - case 9: - case "end": - return _context.stop(); - } - }, _callee); - })); - return function remove() { - return _ref2.apply(this, arguments); - }; - }(); - if (!showRemoveModal) { - _context3.next = 5; - break; - } - return _context3.abrupt("return", new Promise(function (resolve, reject) { - modal/* default */.Z.confirm({ - centered: true, - width: 530, - okText: '确定', - cancelText: '取消', - title: '提示', - content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: "tc font16", - children: "\u662F\u5426\u786E\u8BA4\u5220\u9664?" - }), - onOk: function () { - var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() { - var res; - return regeneratorRuntime_default()().wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - _context2.next = 2; - return remove(); - case 2: - res = _context2.sent; - es_message/* default */.ZP.success('删除成功'); - resolve(true); - case 5: - case "end": - return _context2.stop(); - } - }, _callee2); - })); - function onOk() { - return _onOk.apply(this, arguments); - } - return onOk; - }(), - onCancel: function onCancel() { - return resolve(false); - } - }); - })); - case 5: - _context3.next = 7; - return remove(); - case 7: - return _context3.abrupt("return", _context3.sent); - case 8: - case "end": - return _context3.stop(); - } - }, _callee3); - })); - function onRemove(_x) { - return _onRemove.apply(this, arguments); - } - return onRemove; - }() - }; - function onCancel(e) { - e.preventDefault(); - e.stopPropagation(); - } - return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - className: "multi-upload ".concat(className ? className : ''), - children: [isDragger && /*#__PURE__*/(0,jsx_runtime.jsxs)(Dragger, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, { - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", { - className: "ant-upload-drag-icon", - children: /*#__PURE__*/(0,jsx_runtime.jsx)(InboxOutlined/* default */.Z, {}) - }), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", { - className: "ant-upload-text", - children: ["\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A", maxSize, "MB)", ' '] - }), additionalText] - })), !isDragger && /*#__PURE__*/(0,jsx_runtime.jsxs)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, { - children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, { - disabled: disabled, - className: "upload_button", - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", { - className: "aBtn_img", - src: uploadImg - }), title] - }), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", { - onClick: onCancel, - className: "upload_text", - children: ["(\u5355\u4E2A\u6587\u4EF6\u6700\u5927", maxSize, "MB)", ' '] - })] - }))] - }); -}); - -/***/ }), - -/***/ 19480: -/*!*********************************************************!*\ - !*** ./src/components/PreviewAll/index.tsx + 1 modules ***! - \*********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Z: function() { return /* binding */ PreviewAll; } -}); - -// EXTERNAL MODULE: ./node_modules/_@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/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/_@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/_react@17.0.2@react/index.js -var _react_17_0_2_react = __webpack_require__(59301); -;// CONCATENATED MODULE: ./src/components/PreviewAll/index.less?modules -// extracted by mini-css-extract-plugin -/* harmony default export */ var PreviewAllmodules = ({"wrp":"wrp___dq7YK","bgBlack":"bgBlack___ARIUV","monaco":"monaco___VnZC3","darkBlue":"darkBlue___UprA9","close":"close___LKoWu","embed":"embed___hvpEJ"}); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js -var es_button = __webpack_require__(3113); -// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/ArrowDownOutlined.js + 1 modules -var ArrowDownOutlined = __webpack_require__(98915); -// EXTERNAL MODULE: ./src/components/monaco-editor/index.jsx + 3 modules -var monaco_editor = __webpack_require__(76329); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules -var tooltip = __webpack_require__(6848); -// EXTERNAL MODULE: ./src/utils/util.tsx -var util = __webpack_require__(22739); -// EXTERNAL MODULE: ./src/service/exercise.ts -var exercise = __webpack_require__(35367); -// EXTERNAL MODULE: ./src/components/NoData/index.tsx -var NoData = __webpack_require__(73208); -// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules -var env = __webpack_require__(78130); -// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js -var jsx_runtime = __webpack_require__(37712); -;// CONCATENATED MODULE: ./src/components/PreviewAll/index.tsx - - - - - - - - - - - - - - - - - -/* harmony default export */ var PreviewAll = (function (_ref) { - var _data, _data2, _data3, _data4, _data5, _data6, _data7; - var _ref$editOffice = _ref.editOffice, - editOffice = _ref$editOffice === void 0 ? 'view' : _ref$editOffice, - data = _ref.data, - theme = _ref.theme, - type = _ref.type, - filename = _ref.filename, - monacoEditor = _ref.monacoEditor, - className = _ref.className, - style = _ref.style, - close = _ref.close, - onClose = _ref.onClose, - hasMask = _ref.hasMask, - disabledDownload = _ref.disabledDownload, - onImgDimensions = _ref.onImgDimensions, - showNodata = _ref.showNodata; - var _useState = (0,_react_17_0_2_react.useState)('https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt'), - _useState2 = slicedToArray_default()(_useState, 2), - src = _useState2[0], - setSrc = _useState2[1]; - var _useState3 = (0,_react_17_0_2_react.useState)(""), - _useState4 = slicedToArray_default()(_useState3, 2), - token = _useState4[0], - setToken = _useState4[1]; - var _useState5 = (0,_react_17_0_2_react.useState)(), - _useState6 = slicedToArray_default()(_useState5, 2), - officeData = _useState6[0], - setOfficeData = _useState6[1]; - var officePath = window.ENV === "build" ? "/react/build" : ""; - var apiServer = location.host.startsWith("localhost") ? env/* default */.Z.PROXY_SERVER : env/* default */.Z.API_SERVER; - // let size; - console.log("disabledDownload---", disabledDownload); - var unit = 1024 * 1024; - var maxSize = 10 * unit; - var closeRef = (0,_react_17_0_2_react.useRef)(); - if ((_data = data) !== null && _data !== void 0 && _data.startsWith("/api") && type !== "txt") { - data = env/* default */.Z.API_SERVER + data; - } - // if (type === "office") { - // size = parseUrl(data).filesize - // if (size > maxSize) { - // type = "other" - // } - // } - if (filename) monacoEditor.filename = filename; - (0,_react_17_0_2_react.useEffect)(function () { - var _document$cookie; - var cookies = (_document$cookie = document.cookie) === null || _document$cookie === void 0 || (_document$cookie = _document$cookie.replace(/\s/g, "")) === null || _document$cookie === void 0 ? void 0 : _document$cookie.split(";"); - cookies === null || cookies === void 0 || cookies.map(function (item) { - var i = item.split("="); - if (i[0] === '_educoder_session') { - setToken(i[1]); - } - }); - }, []); - (0,_react_17_0_2_react.useEffect)(function () { - if (type === "office") getData(); - }, [type, data]); - var getData = /*#__PURE__*/function () { - var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() { - var _url, _id, res; - return regeneratorRuntime_default()().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - console.log("data:", data); - _url = data; - if (!data.startsWith("http")) { - _url = location.origin + _url; - } - _id = new URL(_url).pathname.split("/").pop(); - _context.next = 6; - return (0,exercise/* setEcsAttachment */.gJ)({ - attachment_id: _id - }); - case 6: - res = _context.sent; - setOfficeData(res); - case 8: - case "end": - return _context.stop(); - } - }, _callee); - })); - return function getData() { - return _ref2.apply(this, arguments); - }; - }(); - var handleClick = function handleClick() { - if (data.startsWith("http") || data.startsWith('blob:')) { - handleDown(); - return; - } - (0,util/* downloadFile */.Sv)(filename || 'educoder', data, filename); - }; - var handleDown = function handleDown() { - (0,util/* downLoadLink */.Nd)(filename || 'educoder', decodeURIComponent(data)); - }; - console.log(data, 'data'); - return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - style: objectSpread2_default()({}, style || {}), - className: "".concat(hasMask && PreviewAllmodules.bgBlack, " ").concat(!!type ? PreviewAllmodules.wrp : "hide"), - children: [close && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - className: PreviewAllmodules.close, - ref: closeRef, - children: [!!onImgDimensions && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { - title: "\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8", - getPopupContainer: function getPopupContainer() { - return closeRef.current; - }, - children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - onClick: function onClick() { - onClose(); - onImgDimensions(); - }, - children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "icon-yulanpizhu" - }) - }) - }), !disabledDownload && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { - title: "\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6", - getPopupContainer: function getPopupContainer() { - return closeRef.current; - }, - children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - onClick: handleDown, - children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "icon-quxiaozhiding" - }) - }) - }), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { - title: "\u5173\u95ED", - getPopupContainer: function getPopupContainer() { - return closeRef.current; - }, - children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: "", - onClick: onClose, - children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "icon-guanbi1" - }) - }) - })] - }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: "".concat(PreviewAllmodules[className], " ").concat(className, " ").concat(PreviewAllmodules.monaco, " ").concat(type === "txt" ? "show" : "hide"), - children: type === "txt" && /*#__PURE__*/(0,jsx_runtime.jsx)(monaco_editor/* default */.ZP, objectSpread2_default()({}, monacoEditor)) - }), type === "audio" && /*#__PURE__*/(0,jsx_runtime.jsx)("audio", { - src: ((_data2 = data) === null || _data2 === void 0 ? void 0 : _data2.indexOf("http")) > -1 || (_data3 = data) !== null && _data3 !== void 0 && _data3.startsWith("/api") ? data : "data:image/png;base64,".concat(data), - autoPlay: true - }), type === "video" && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, { - children: ((_data4 = data) === null || _data4 === void 0 ? void 0 : _data4.indexOf("http")) > -1 || (_data5 = data) !== null && _data5 !== void 0 && _data5.startsWith("/api") ? /*#__PURE__*/(0,jsx_runtime.jsx)("video", { - controls: true, - src: "".concat(data), - autoPlay: true - }) : /*#__PURE__*/(0,jsx_runtime.jsx)("video", { - controls: true, - src: "data:video/mp4;base64,".concat(data), - autoPlay: true - }) - }), type === 'office' && officeData && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", { - src: "".concat(officePath, "/office.html?key=").concat(officeData.key, "&url=").concat(apiServer + officeData.url, "&callbackUrl=").concat(apiServer + officeData.callbackUrl, "&fileType=").concat(officeData.fileType, "&title=").concat(officeData.title, "&model=").concat(editOffice, "&officeServer=").concat(env/* default */.Z.ONLYOFFICE, "&disabledDownload=").concat(!!disabledDownload) - }), type === 'html' && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", { - src: data + '&disposition=inline' - }), type === 'pdf' && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", { - src: "".concat(officePath, "/js/pdfview/index.html?url=").concat(data, "&disabledDownload=").concat(!!disabledDownload) - }) // - , type === "image" && /*#__PURE__*/(0,jsx_runtime.jsx)("img", { - src: ((_data6 = data) === null || _data6 === void 0 ? void 0 : _data6.indexOf("http")) > -1 || (_data7 = data) !== null && _data7 !== void 0 && _data7.startsWith("/api") ? data : "data:image/png;base64,".concat(data) - }), (type === "other" || type === "download") && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, { - children: showNodata ? /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, { - customText: "\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B", - ButtonTwo: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, { - icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "iconfont icon-xiazai4 font14" - }), - type: "primary", - size: 'middle', - onClick: handleClick, - children: "\u4E0B\u8F7D" - }) - }) : /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, { - type: "primary", - size: 'middle', - onClick: handleClick, - children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ArrowDownOutlined/* default */.Z, {}), "\u70B9\u51FB\u4E0B\u8F7D"] - }) - })] - }); -}); - -/***/ }), - -/***/ 11436: -/*!*********************************************************!*\ - !*** ./src/components/RenderHtml/index.tsx + 1 modules ***! - \*********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Z: function() { return /* binding */ RenderHtml; } -}); - -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@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/toConsumableArray.js -var toConsumableArray = __webpack_require__(93923); -var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray); -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/createForOfIteratorHelper.js -var createForOfIteratorHelper = __webpack_require__(98190); -var createForOfIteratorHelper_default = /*#__PURE__*/__webpack_require__.n(createForOfIteratorHelper); -// 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/_react@17.0.2@react/index.js -var _react_17_0_2_react = __webpack_require__(59301); -// EXTERNAL MODULE: ./node_modules/_katex@0.11.1@katex/dist/katex.min.css -var katex_min = __webpack_require__(16622); -// EXTERNAL MODULE: ./node_modules/_marked@2.0.7@marked/lib/marked.js -var marked = __webpack_require__(32834); -var marked_default = /*#__PURE__*/__webpack_require__.n(marked); -// EXTERNAL MODULE: ./node_modules/_marked@2.0.7@marked/src/helpers.js -var helpers = __webpack_require__(11690); -;// CONCATENATED MODULE: ./src/utils/marked.ts - - - -function indentCodeCompensation(raw, text) { - var matchIndentToCode = raw.match(/^(\s+)(?:```)/); - if (matchIndentToCode === null) { - return text; - } - var indentToCode = matchIndentToCode[1]; - return text.split('\n').map(function (node) { - var matchIndentInNode = node.match(/^\s+/); - if (matchIndentInNode === null) { - return node; - } - var _matchIndentInNode = slicedToArray_default()(matchIndentInNode, 1), - indentInNode = _matchIndentInNode[0]; - if (indentInNode.length >= indentToCode.length) { - return node.slice(indentToCode.length); - } - return node; - }).join('\n'); -} -//兼容之前的 ##标题式写法 -var toc = []; -var ctx = ["