From e48bb6b6153a40dbaa91c389f29f3c6a2cb20583 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Mon, 5 Jun 2023 18:25:59 +0800 Subject: [PATCH] Auto Submit --- 24394.async.js => 13215.async.js | 46 +- 14074.async.js | 2 +- 14964.async.js | 2 +- 16758.async.js | 2 +- 18710.async.js | 2 +- 20549.async.js | 2 +- 21506.async.js | 21 +- 22842.chunk.css | 775 ++ 23234.async.js | 4 +- 23607.async.js | 2 +- 25578.async.js | 2 +- 26057.async.js | 969 ++ 26444.async.js | 2 +- 27078.async.js | 941 ++ 83225.chunk.css => 27078.chunk.css | 1497 +-- 27277.async.js | 2 +- 27703.async.js | 2 +- 32030.async.js | 8822 +++++++++++++++ 32030.chunk.css | 2480 ++++ 32925.async.js | 6 +- 3502.async.js | 2 +- 35449.async.js | 2 +- 29429.async.js => 35574.async.js | 552 +- 83225.async.js => 35631.async.js | 842 +- 59016.chunk.css => 35631.chunk.css | 1954 ++-- 37099.async.js | 2 +- 37110.async.js | 6 +- 38448.async.js | 60 +- 39437.async.js | 1597 +++ 41297.async.js | 2 + 42102.async.js | 2 +- 42241.async.js | 2 +- 1119.async.js => 42735.async.js | 31 +- 1119.chunk.css => 42735.chunk.css | 0 43778.async.js | 2 +- 44851.async.js | 2 +- 46231.async.js | 530 - 47015.async.js | 2 + 47501.async.js | 2 +- 4900.async.js | 2 +- 50976.async.js | 4 +- 52424.async.js | 2 +- 54836.async.js | 6 +- 81793.async.js => 57549.async.js | 84 +- 81793.chunk.css => 57549.chunk.css | 1924 ++-- 62742.async.js => 59289.async.js | 732 +- 62742.chunk.css => 59289.chunk.css | 0 61655.async.js | 2 +- 63909.async.js | 1438 --- 66422.async.js | 2 +- 66582.async.js | 2 +- 67570.async.js | 2 +- 67570.chunk.css | 204 +- 69060.async.js | 6 +- 69269.chunk.css | 958 ++ 59016.async.js => 6968.async.js | 1144 +- 75316.async.js => 75153.async.js | 44 +- 8286.async.js => 78218.async.js | 544 +- 78806.async.js | 1 + 79086.async.js | 112 +- 79256.async.js | 969 ++ 79537.async.js | 2 +- 80807.async.js | 2 +- 8423.async.js | 1 + 85343.async.js | 6 +- 8543.async.js | 692 -- 8691.async.js | 5 +- 87075.async.js | 2 +- 90525.async.js | 2 +- 9442.async.js | 1158 ++ 98007.async.js | 1202 ++ 98007.chunk.css | 764 ++ 49383.async.js => 99196.async.js | 44 +- 99848.async.js | 2 +- color.less | 28 +- layouts__SimpleLayouts.async.js | 20 +- layouts__SimpleLayouts.chunk.css | 9 + monaco-editor.async.js | 4 +- p__Classrooms__ExamList__index.async.js | 6 +- ...rooms__Lists__Announcement__index.async.js | 6 +- ...ssrooms__Lists__Attachment__index.async.js | 8 +- ..._Lists__Attendance__Detail__index.async.js | 6 +- ...ssrooms__Lists__Attendance__index.async.js | 6 +- ...ssrooms__Lists__Board__Add__index.async.js | 2 + ...ooms__Lists__Board__Detail__index.async.js | 2 +- ...srooms__Lists__Board__Edit__index.async.js | 2 + p__Classrooms__Lists__Board__index.async.js | 8 +- ...Lists__CommonHomework__Add__index.async.js | 2 + ...ts__CommonHomework__Detail__index.async.js | 10 +- ...s__CommonHomework__Detail__index.chunk.css | 14 +- ...__CommonHomework__EditWork__index.async.js | 2 + ...ists__CommonHomework__Edit__index.async.js | 2 + ...CommonHomework__SubmitWork__index.async.js | 2 + ...oms__Lists__CommonHomework__index.async.js | 2 +- ...Lists__CourseGroup__Detail__index.async.js | 10 +- ...__Lists__CourseGroup__List__index.async.js | 8 +- ...ists__CourseGroup__NotList__index.async.js | 8 +- ...Lists__Engineering__Detail__index.async.js | 7 +- ...ooms__Lists__Exercise__Add__index.async.js | 9928 ++++++++++++++++- ...oms__Lists__Exercise__Add__index.chunk.css | 3387 ++++-- ...s__Lists__Exercise__Answer__index.async.js | 2 +- ...__Lists__Exercise__Answer__index.chunk.css | 14 +- ...s__Lists__Exercise__Detail__index.async.js | 1602 +-- ...__Lists__Exercise__Detail__index.chunk.css | 61 +- ...oms__Lists__Exercise__Edit__index.async.js | 196 +- ...ms__Lists__Exercise__Edit__index.chunk.css | 96 +- ...s__Lists__Exercise__Export__index.async.js | 6 +- ...__Lists__Exercise__Export__index.chunk.css | 16 +- ...s__Lists__Exercise__Review__index.async.js | 6 +- ...lassrooms__Lists__Exercise__index.async.js | 66 +- ...ts__Graduation__Tasks__Add__index.async.js | 2 + ...s__Graduation__Tasks__Edit__index.async.js | 2 + ...__Lists__Graduation__Tasks__index.async.js | 6 +- ..._Lists__Graduation__Topics__index.async.js | 6 +- ..._Lists__GroupHomework__Add__index.async.js | 2 + ...sts__GroupHomework__Detail__index.async.js | 12 +- ...ts__GroupHomework__Detail__index.chunk.css | 14 +- ...s__GroupHomework__EditWork__index.async.js | 2 + ...Lists__GroupHomework__Edit__index.async.js | 2 + ..._GroupHomework__SubmitWork__index.async.js | 2 + ...ooms__Lists__GroupHomework__index.async.js | 10 +- ...assrooms__Lists__LiveVideo__index.async.js | 6 +- ...oms__Lists__OnlineLearning__index.async.js | 12 +- ...ms__Lists__OnlineLearning__index.chunk.css | 14 +- ...ooms__Lists__Polls__Detail__index.async.js | 6 +- p__Classrooms__Lists__Polls__index.async.js | 10 +- ...amHomework__Detail__answer__index.async.js | 8 +- ...s__ProgramHomework__Detail__index.async.js | 8 +- ...ms__Lists__ProgramHomework__index.async.js | 10 +- ...s__ShixunHomeworks__Detail__index.async.js | 8 +- ...ms__Lists__ShixunHomeworks__index.async.js | 8 +- ..._Statistics__StudentDetail__index.async.js | 4 +- ...tistics__StudentStatistics__index.async.js | 6 +- ...__Statistics__StudentVideo__index.async.js | 6 +- ...tatistics__VideoStatistics__index.async.js | 6 +- ...ssrooms__Lists__Statistics__index.async.js | 8 +- ...lassrooms__Lists__Students__index.async.js | 6 +- ...lassrooms__Lists__Teachers__index.async.js | 8 +- ...lassrooms__Lists__Template__index.async.js | 6 +- p__Colleges__index.async.js | 6 +- p__Competitions__Detail__index.async.js | 2 +- p__Competitions__Detail__index.chunk.css | 14 +- p__Competitions__Index__index.async.js | 35 +- p__Competitions__Index__index.chunk.css | 37 + p__Demo__index.async.js | 5 +- ...ering__Lists__CurseSetting__index.async.js | 6 +- ...ng__Lists__GraduationIndex__index.async.js | 6 +- p__Forums__New__index.async.js | 2 + p__Innovation__Detail__index.async.js | 2 +- p__Innovation__MyProject__index.async.js | 6 +- p__Innovation__PublicProject__index.async.js | 6 +- p__Innovation__Tasks__index.async.js | 2 + p__IntrainCourse__index.async.js | 22 +- p__Messages__Private__index.async.js | 6 +- p__MyProblem__RecordDetail__index.async.js | 4 +- p__MyProblem__index.async.js | 47 +- p__Paperlibrary__Add__index.async.js | 1258 --- p__Paperlibrary__Add__index.chunk.css | 1408 +-- p__Paperlibrary__EditPaper__index.async.js | 2002 ++-- p__Paperlibrary__EditPaper__index.chunk.css | 184 +- ...erlibrary__Random__Detail__index.chunk.css | 79 + ...om__ExchangeFromProblemSet__index.async.js | 1661 ++- ...m__ExchangeFromProblemSet__index.chunk.css | 97 +- p__Paperlibrary__See__index.async.js | 485 +- p__Paperlibrary__See__index.chunk.css | 106 +- p__Paperlibrary__index.async.js | 1738 ++- p__Paperlibrary__index.chunk.css | 82 + p__Paths__Detail__Statistics__index.async.js | 6 +- p__Paths__Detail__id.async.js | 35 +- p__Paths__Detail__id.chunk.css | 14 +- ..._HigherVocationalEducation__index.async.js | 6 +- p__Paths__Index__index.async.js | 105 +- p__Problems__OjForm__NewEdit__index.async.js | 3436 ++++++ p__Problems__OjForm__NewEdit__index.chunk.css | 713 ++ p__Problems__OjForm__index.async.js | 1522 ++- p__Problems__OjForm__index.chunk.css | 855 +- p__Problemset__NewItem__index.async.js | 4601 ++++---- p__Problemset__NewItem__index.chunk.css | 1189 +- p__Problemset__Preview__index.async.js | 4 +- p__Problemset__Preview__index.chunk.css | 2 - p__Problemset__index.async.js | 1657 ++- p__Problemset__index.chunk.css | 97 +- p__Question__AddOrEdit__index.async.js | 46 +- p__Question__AddOrEdit__index.chunk.css | 130 +- ...n__OjProblem__RecordDetail__index.async.js | 4 +- p__Question__OjProblem__index.async.js | 5 +- p__Question__OjProblem__index.chunk.css | 14 +- ...uns__Detail__Collaborators__index.async.js | 2 +- p__Shixuns__Detail__Dataset__index.async.js | 6 +- p__Shixuns__Detail__Merge__index.async.js | 6 +- ...etail__Repository__AddFile__index.async.js | 4 +- ...il__Repository__UploadFile__index.async.js | 4 +- ...hixuns__Detail__Repository__index.async.js | 4 +- p__Shixuns__Detail__Settings__index.async.js | 4 +- p__Shixuns__Detail__Settings__index.chunk.css | 2 +- p__Shixuns__Detail__id.async.js | 2 +- ...lenges__EditPracticeAnswer__index.async.js | 4 +- ...enges__EditPracticeSetting__index.async.js | 6 +- ...nges__EditPracticeSetting__index.chunk.css | 116 +- ...__Challenges__EditQuestion__index.async.js | 4 +- ...l__Challenges__NewPractice__index.async.js | 4 +- ...l__Challenges__NewQuestion__index.async.js | 4 +- ...Challenges__RankingSetting__index.async.js | 4 +- p__Shixuns__Edit__index.async.js | 21 +- p__Shixuns__Edit__index.chunk.css | 14 +- p__Shixuns__New__index.chunk.css | 2 +- p__Terminal__index.async.js | 1 + ...il__Order__pages__orderPay__index.async.js | 15 +- p__User__Detail__Shixuns__index.async.js | 2 +- p__User__Detail__Topicbank__index.async.js | 6 +- p__index.async.js | 193 +- p__index.chunk.css | 86 + p__tasks__Jupyter__index.async.js | 42 - p__tasks__index.async.js | 17 +- p__tasks__index.chunk.css | 14 +- ...rtualSpaces__Lists__Course__index.async.js | 6 +- ...rtualSpaces__Lists__Member__index.async.js | 6 +- ...tualSpaces__Lists__Notices__index.async.js | 6 +- ...tualSpaces__Lists__Shixuns__index.async.js | 6 +- ...sts__Syllabuses__AddOrEdit__index.async.js | 2 + ...lSpaces__Lists__Syllabuses__index.async.js | 6 +- static/iconfont.08194f58.woff | Bin 229948 -> 0 bytes ...ont.3bce3b7d.ttf => iconfont.2fbd5591.ttf} | Bin 378980 -> 379924 bytes static/iconfont.4743e6eb.woff2 | Bin 0 -> 188372 bytes static/iconfont.8e71a96c.svg | 1 - static/iconfont.9709e740.woff | Bin 0 -> 230608 bytes static/iconfont.bdff1a6b.svg | 1 + static/iconfont.fa562ef9.woff2 | Bin 187684 -> 0 bytes umi.css | 34 +- umi.js | 2116 ++-- 230 files changed, 54233 insertions(+), 21280 deletions(-) rename 24394.async.js => 13215.async.js (94%) create mode 100644 22842.chunk.css create mode 100644 26057.async.js create mode 100644 27078.async.js rename 83225.chunk.css => 27078.chunk.css (57%) create mode 100644 32030.async.js create mode 100644 32030.chunk.css rename 29429.async.js => 35574.async.js (75%) rename 83225.async.js => 35631.async.js (67%) rename 59016.chunk.css => 35631.chunk.css (100%) create mode 100644 39437.async.js rename 1119.async.js => 42735.async.js (96%) rename 1119.chunk.css => 42735.chunk.css (100%) delete mode 100644 46231.async.js rename 81793.async.js => 57549.async.js (88%) rename 81793.chunk.css => 57549.chunk.css (100%) rename 62742.async.js => 59289.async.js (71%) rename 62742.chunk.css => 59289.chunk.css (100%) delete mode 100644 63909.async.js create mode 100644 69269.chunk.css rename 59016.async.js => 6968.async.js (54%) rename 75316.async.js => 75153.async.js (94%) rename 8286.async.js => 78218.async.js (97%) create mode 100644 79256.async.js delete mode 100644 8543.async.js create mode 100644 9442.async.js create mode 100644 98007.async.js create mode 100644 98007.chunk.css rename 49383.async.js => 99196.async.js (97%) delete mode 100644 p__Paperlibrary__Add__index.async.js create mode 100644 p__Problems__OjForm__NewEdit__index.async.js create mode 100644 p__Problems__OjForm__NewEdit__index.chunk.css delete mode 100644 static/iconfont.08194f58.woff rename static/{iconfont.3bce3b7d.ttf => iconfont.2fbd5591.ttf} (91%) create mode 100644 static/iconfont.4743e6eb.woff2 delete mode 100644 static/iconfont.8e71a96c.svg create mode 100644 static/iconfont.9709e740.woff create mode 100644 static/iconfont.bdff1a6b.svg delete mode 100644 static/iconfont.fa562ef9.woff2 diff --git a/24394.async.js b/13215.async.js similarity index 94% rename from 24394.async.js rename to 13215.async.js index a6bd65e177..d2a302c34c 100644 --- a/24394.async.js +++ b/13215.async.js @@ -1,4 +1,4 @@ -(self["webpackChunk"] = self["webpackChunk"] || []).push([[24394],{ +(self["webpackChunk"] = self["webpackChunk"] || []).push([[13215],{ /***/ 48820: /*!*******************************************************************!*\ @@ -140,7 +140,7 @@ CopyOutlined.displayName = 'CopyOutlined'; /***/ }), -/***/ 39300: +/***/ 34804: /*!*****************************************************************!*\ !*** ./node_modules/@ant-design/icons/es/icons/DownOutlined.js ***! \*****************************************************************/ @@ -294,6 +294,48 @@ LoadingOutlined.displayName = 'LoadingOutlined'; /***/ }), +/***/ 81088: +/*!*********************************************************************************!*\ + !*** ./node_modules/@ant-design/icons/es/icons/PoweroffOutlined.js + 1 modules ***! + \*********************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + "Z": function() { return /* binding */ icons_PoweroffOutlined; } +}); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js +var objectSpread2 = __webpack_require__(1413); +// EXTERNAL MODULE: ./node_modules/react/index.js +var react = __webpack_require__(67294); +;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/PoweroffOutlined.js +// This icon file is generated automatically. +var PoweroffOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z" } }] }, "name": "poweroff", "theme": "outlined" }; +/* harmony default export */ var asn_PoweroffOutlined = (PoweroffOutlined); + +// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 6 modules +var AntdIcon = __webpack_require__(7918); +;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/PoweroffOutlined.js + +// GENERATE BY ./scripts/generate.ts +// DON NOT EDIT IT MANUALLY + + + +var PoweroffOutlined_PoweroffOutlined = function PoweroffOutlined(props, ref) { + return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, { + ref: ref, + icon: asn_PoweroffOutlined + })); +}; +PoweroffOutlined_PoweroffOutlined.displayName = 'PoweroffOutlined'; +/* harmony default export */ var icons_PoweroffOutlined = (/*#__PURE__*/react.forwardRef(PoweroffOutlined_PoweroffOutlined)); + +/***/ }), + /***/ 33160: /*!*******************************************************************************!*\ !*** ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules ***! diff --git a/14074.async.js b/14074.async.js index 9581aa9b85..0c5468e3c3 100644 --- a/14074.async.js +++ b/14074.async.js @@ -70,7 +70,7 @@ DeliveredProcedureOutlined_DeliveredProcedureOutlined.displayName = 'DeliveredPr /***/ }), -/***/ 39300: +/***/ 34804: /*!*****************************************************************!*\ !*** ./node_modules/@ant-design/icons/es/icons/DownOutlined.js ***! \*****************************************************************/ diff --git a/14964.async.js b/14964.async.js index a0dd707ca0..38ca69d347 100644 --- a/14964.async.js +++ b/14964.async.js @@ -70,7 +70,7 @@ CloseSquareOutlined_CloseSquareOutlined.displayName = 'CloseSquareOutlined'; /***/ }), -/***/ 39300: +/***/ 34804: /*!*****************************************************************!*\ !*** ./node_modules/@ant-design/icons/es/icons/DownOutlined.js ***! \*****************************************************************/ diff --git a/16758.async.js b/16758.async.js index 3fcb56f443..049c5cb040 100644 --- a/16758.async.js +++ b/16758.async.js @@ -1,5 +1,5 @@ "use strict"; -(self["webpackChunk"] = self["webpackChunk"] || []).push([[16758,69771],{ +(self["webpackChunk"] = self["webpackChunk"] || []).push([[16758,22842,69771],{ /***/ 42110: /*!*******************************************************************!*\ diff --git a/18710.async.js b/18710.async.js index 1b6182fdff..5e13cf42b0 100644 --- a/18710.async.js +++ b/18710.async.js @@ -2160,7 +2160,7 @@ var SelectFilePathModal_SelectFilePathModal = function SelectFilePathModal(_ref) // EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js var EllipsisOutlined = __webpack_require__(3471); // EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/DownOutlined.js -var DownOutlined = __webpack_require__(39300); +var DownOutlined = __webpack_require__(34804); // EXTERNAL MODULE: ./src/service/shixuns.ts var shixuns = __webpack_require__(56088); // EXTERNAL MODULE: ./src/utils/util.tsx diff --git a/20549.async.js b/20549.async.js index 6a19a000ce..dc78f1f348 100644 --- a/20549.async.js +++ b/20549.async.js @@ -1,5 +1,5 @@ "use strict"; -(self["webpackChunk"] = self["webpackChunk"] || []).push([[20549],{ +(self["webpackChunk"] = self["webpackChunk"] || []).push([[20549,79256],{ /***/ 47046: /*!*********************************************************************!*\ diff --git a/21506.async.js b/21506.async.js index 24d6d07630..5dffd2960d 100644 --- a/21506.async.js +++ b/21506.async.js @@ -18,7 +18,7 @@ __webpack_require__.d(__webpack_exports__, { "o1": function() { return /* binding */ handleVerifyLogin; } }); -// UNUSED EXPORTS: handleProfleCompletedModal +// UNUSED EXPORTS: handleProfleCompletedModal, handleReload // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js var regeneratorRuntime = __webpack_require__(17061); @@ -92,6 +92,7 @@ var handleVerifyLogin = function handleVerifyLogin(dispatch) { } return true; }; +// 校验是否有完善个人资料的弹窗: var handleProfleCompletedModal = function handleProfleCompletedModal() { var _user$userInfo; var isShixun = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; @@ -106,13 +107,29 @@ var handleProfleCompletedModal = function handleProfleCompletedModal() { okText: "\u7ACB\u5373\u5B8C\u5584", cancelText: "稍后完善", onOk: function onOk() { - _umi_production_exports.history.push('/account/profile/edit'); + // history.push('/account/profile/edit'); + (0,util/* openNewWindow */.xg)('/account/profile/edit'); + handleReload(); } }); return false; } return true; }; +var handleReload = function handleReload() { + modal/* default.success */.Z.success({ + title: '提示', + width: 430, + closable: true, + centered: true, + content: "已完善个人资料?请刷新页面", + okText: "\u7ACB\u5373\u5237\u65B0", + icon: null, + onOk: function onOk() { + location.reload(); + } + }); +}; var handleProfessionalCertificationModal = function handleProfessionalCertificationModal() { var _user$userInfo2; var _getDvaApp$_store$get2 = (0,_umi_production_exports.getDvaApp)()._store.getState(), diff --git a/22842.chunk.css b/22842.chunk.css new file mode 100644 index 0000000000..493be69391 --- /dev/null +++ b/22842.chunk.css @@ -0,0 +1,775 @@ +/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/pagination/style/index.less ***! + \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ +/* stylelint-disable no-duplicate-selectors */ +/* stylelint-disable */ +/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ +.ant-pagination { + box-sizing: border-box; + margin: 0; + padding: 0; + color: rgba(0, 0, 0, 0.85); + font-size: 12px; + font-variant: tabular-nums; + line-height: 1.66667; + list-style: none; + font-feature-settings: tnum, "tnum"; +} +.ant-pagination ul, +.ant-pagination ol { + margin: 0; + padding: 0; + list-style: none; +} +.ant-pagination::after { + display: block; + clear: both; + height: 0; + overflow: hidden; + visibility: hidden; + content: ' '; +} +.ant-pagination-total-text { + display: inline-block; + height: 28px; + margin-right: 8px; + line-height: 26px; + vertical-align: middle; +} +.ant-pagination-item { + display: inline-block; + min-width: 28px; + height: 28px; + margin-right: 8px; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; + line-height: 26px; + text-align: center; + vertical-align: middle; + list-style: none; + background-color: #fff; + border: 1px solid #d9d9d9; + border-radius: 2px; + outline: 0; + cursor: pointer; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} +.ant-pagination-item a { + display: block; + padding: 0 6px; + color: rgba(0, 0, 0, 0.85); + transition: none; +} +.ant-pagination-item a:hover { + text-decoration: none; +} +.ant-pagination-item:hover { + border-color: #1890ff; + transition: all 0.3s; +} +.ant-pagination-item:hover a { + color: #1890ff; +} +.ant-pagination-item:focus-visible { + border-color: #1890ff; + transition: all 0.3s; +} +.ant-pagination-item:focus-visible a { + color: #1890ff; +} +.ant-pagination-item-active { + font-weight: 500; + background: #fff; + border-color: #1890ff; +} +.ant-pagination-item-active a { + color: #1890ff; +} +.ant-pagination-item-active:hover { + border-color: #40a9ff; +} +.ant-pagination-item-active:focus-visible { + border-color: #40a9ff; +} +.ant-pagination-item-active:hover a { + color: #40a9ff; +} +.ant-pagination-item-active:focus-visible a { + color: #40a9ff; +} +.ant-pagination-jump-prev, +.ant-pagination-jump-next { + outline: 0; +} +.ant-pagination-jump-prev .ant-pagination-item-container, +.ant-pagination-jump-next .ant-pagination-item-container { + position: relative; +} +.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon, +.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon { + color: #1890ff; + font-size: 12px; + letter-spacing: -1px; + opacity: 0; + transition: all 0.2s; +} +.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon-svg, +.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon-svg { + top: 0; + right: 0; + bottom: 0; + left: 0; + margin: auto; +} +.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-ellipsis, +.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-ellipsis { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + display: block; + margin: auto; + color: rgba(0, 0, 0, 0.25); + font-family: Arial, Helvetica, sans-serif; + letter-spacing: 2px; + text-align: center; + text-indent: 0.13em; + opacity: 1; + transition: all 0.2s; +} +.ant-pagination-jump-prev:hover .ant-pagination-item-link-icon, +.ant-pagination-jump-next:hover .ant-pagination-item-link-icon { + opacity: 1; +} +.ant-pagination-jump-prev:hover .ant-pagination-item-ellipsis, +.ant-pagination-jump-next:hover .ant-pagination-item-ellipsis { + opacity: 0; +} +.ant-pagination-jump-prev:focus-visible .ant-pagination-item-link-icon, +.ant-pagination-jump-next:focus-visible .ant-pagination-item-link-icon { + opacity: 1; +} +.ant-pagination-jump-prev:focus-visible .ant-pagination-item-ellipsis, +.ant-pagination-jump-next:focus-visible .ant-pagination-item-ellipsis { + opacity: 0; +} +.ant-pagination-prev, +.ant-pagination-jump-prev, +.ant-pagination-jump-next { + margin-right: 8px; +} +.ant-pagination-prev, +.ant-pagination-next, +.ant-pagination-jump-prev, +.ant-pagination-jump-next { + display: inline-block; + min-width: 28px; + height: 28px; + color: rgba(0, 0, 0, 0.85); + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; + line-height: 28px; + text-align: center; + vertical-align: middle; + list-style: none; + border-radius: 2px; + cursor: pointer; + transition: all 0.3s; +} +.ant-pagination-prev, +.ant-pagination-next { + font-family: Arial, Helvetica, sans-serif; + outline: 0; +} +.ant-pagination-prev button, +.ant-pagination-next button { + color: rgba(0, 0, 0, 0.85); + cursor: pointer; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} +.ant-pagination-prev:hover button, +.ant-pagination-next:hover button { + border-color: #40a9ff; +} +.ant-pagination-prev .ant-pagination-item-link, +.ant-pagination-next .ant-pagination-item-link { + display: block; + width: 100%; + height: 100%; + padding: 0; + font-size: 12px; + text-align: center; + background-color: #fff; + border: 1px solid #d9d9d9; + border-radius: 2px; + outline: none; + transition: all 0.3s; +} +.ant-pagination-prev:focus-visible .ant-pagination-item-link, +.ant-pagination-next:focus-visible .ant-pagination-item-link { + color: #1890ff; + border-color: #1890ff; +} +.ant-pagination-prev:hover .ant-pagination-item-link, +.ant-pagination-next:hover .ant-pagination-item-link { + color: #1890ff; + border-color: #1890ff; +} +.ant-pagination-disabled, +.ant-pagination-disabled:hover { + cursor: not-allowed; +} +.ant-pagination-disabled .ant-pagination-item-link, +.ant-pagination-disabled:hover .ant-pagination-item-link { + color: rgba(0, 0, 0, 0.25); + border-color: #d9d9d9; + cursor: not-allowed; +} +.ant-pagination-disabled:focus-visible { + cursor: not-allowed; +} +.ant-pagination-disabled:focus-visible .ant-pagination-item-link { + color: rgba(0, 0, 0, 0.25); + border-color: #d9d9d9; + cursor: not-allowed; +} +.ant-pagination-slash { + margin: 0 10px 0 5px; +} +.ant-pagination-options { + display: inline-block; + margin-left: 16px; + vertical-align: middle; +} +@media all and (-ms-high-contrast: none) { + .ant-pagination-options *::-ms-backdrop, + .ant-pagination-options { + vertical-align: top; + } +} +.ant-pagination-options-size-changer.ant-select { + display: inline-block; + width: auto; +} +.ant-pagination-options-quick-jumper { + display: inline-block; + height: 28px; + margin-left: 4px; + line-height: 28px; + vertical-align: top; +} +.ant-pagination-options-quick-jumper input { + position: relative; + display: inline-block; + width: 100%; + min-width: 0; + padding: 3px 7px; + color: rgba(0, 0, 0, 0.85); + font-size: 12px; + line-height: 1.66667; + background-color: #fff; + background-image: none; + border: 1px solid #d9d9d9; + border-radius: 2px; + transition: all 0.3s; + width: 50px; + height: 28px; + margin: 0 8px; +} +.ant-pagination-options-quick-jumper input::-webkit-input-placeholder { + color: #bfbfbf; + -webkit-user-select: none; + user-select: none; +} +.ant-pagination-options-quick-jumper input:-ms-input-placeholder { + color: #bfbfbf; + -ms-user-select: none; + user-select: none; +} +.ant-pagination-options-quick-jumper input::-ms-input-placeholder { + color: #bfbfbf; + -ms-user-select: none; + user-select: none; +} +.ant-pagination-options-quick-jumper input::placeholder { + color: #bfbfbf; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} +.ant-pagination-options-quick-jumper input:-ms-input-placeholder { + text-overflow: ellipsis; +} +.ant-pagination-options-quick-jumper input:placeholder-shown { + text-overflow: ellipsis; +} +.ant-pagination-options-quick-jumper input:hover { + border-color: #40a9ff; + border-right-width: 1px; +} +.ant-pagination-options-quick-jumper input:focus, +.ant-pagination-options-quick-jumper input-focused { + border-color: #40a9ff; + box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2); + border-right-width: 1px; + outline: 0; +} +.ant-pagination-options-quick-jumper input-disabled { + color: rgba(0, 0, 0, 0.25); + background-color: #f5f5f5; + border-color: #d9d9d9; + box-shadow: none; + cursor: not-allowed; + opacity: 1; +} +.ant-pagination-options-quick-jumper input-disabled:hover { + border-color: #d9d9d9; + border-right-width: 1px; +} +.ant-pagination-options-quick-jumper input[disabled] { + color: rgba(0, 0, 0, 0.25); + background-color: #f5f5f5; + border-color: #d9d9d9; + box-shadow: none; + cursor: not-allowed; + opacity: 1; +} +.ant-pagination-options-quick-jumper input[disabled]:hover { + border-color: #d9d9d9; + border-right-width: 1px; +} +.ant-pagination-options-quick-jumper input-borderless, +.ant-pagination-options-quick-jumper input-borderless:hover, +.ant-pagination-options-quick-jumper input-borderless:focus, +.ant-pagination-options-quick-jumper input-borderless-focused, +.ant-pagination-options-quick-jumper input-borderless-disabled, +.ant-pagination-options-quick-jumper input-borderless[disabled] { + background-color: transparent; + border: none; + box-shadow: none; +} +textarea.ant-pagination-options-quick-jumper input { + max-width: 100%; + height: auto; + min-height: 28px; + line-height: 1.66667; + vertical-align: bottom; + transition: all 0.3s, height 0s; +} +.ant-pagination-options-quick-jumper input-lg { + padding: 3.4px 11px; + font-size: 14px; +} +.ant-pagination-options-quick-jumper input-sm { + padding: 0px 7px; +} +.ant-pagination-simple .ant-pagination-prev, +.ant-pagination-simple .ant-pagination-next { + height: 22px; + line-height: 22px; + vertical-align: top; +} +.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link, +.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link { + height: 22px; + background-color: transparent; + border: 0; +} +.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link::after, +.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link::after { + height: 22px; + line-height: 22px; +} +.ant-pagination-simple .ant-pagination-simple-pager { + display: inline-block; + height: 22px; + margin-right: 8px; +} +.ant-pagination-simple .ant-pagination-simple-pager input { + box-sizing: border-box; + height: 100%; + margin-right: 8px; + padding: 0 6px; + text-align: center; + background-color: #fff; + border: 1px solid #d9d9d9; + border-radius: 2px; + outline: none; + transition: border-color 0.3s; +} +.ant-pagination-simple .ant-pagination-simple-pager input:hover { + border-color: #1890ff; +} +.ant-pagination-simple .ant-pagination-simple-pager input:focus { + border-color: #40a9ff; + box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2); +} +.ant-pagination-simple .ant-pagination-simple-pager input[disabled] { + color: rgba(0, 0, 0, 0.25); + background: #f5f5f5; + border-color: #d9d9d9; + cursor: not-allowed; +} +.ant-pagination.ant-pagination-mini .ant-pagination-total-text, +.ant-pagination.ant-pagination-mini .ant-pagination-simple-pager { + height: 22px; + line-height: 22px; +} +.ant-pagination.ant-pagination-mini .ant-pagination-item { + min-width: 22px; + height: 22px; + margin: 0; + line-height: 20px; +} +.ant-pagination.ant-pagination-mini .ant-pagination-item:not(.ant-pagination-item-active) { + background: transparent; + border-color: transparent; +} +.ant-pagination.ant-pagination-mini .ant-pagination-prev, +.ant-pagination.ant-pagination-mini .ant-pagination-next { + min-width: 22px; + height: 22px; + margin: 0; + line-height: 22px; +} +.ant-pagination.ant-pagination-mini .ant-pagination-prev .ant-pagination-item-link, +.ant-pagination.ant-pagination-mini .ant-pagination-next .ant-pagination-item-link { + background: transparent; + border-color: transparent; +} +.ant-pagination.ant-pagination-mini .ant-pagination-prev .ant-pagination-item-link::after, +.ant-pagination.ant-pagination-mini .ant-pagination-next .ant-pagination-item-link::after { + height: 22px; + line-height: 22px; +} +.ant-pagination.ant-pagination-mini .ant-pagination-jump-prev, +.ant-pagination.ant-pagination-mini .ant-pagination-jump-next { + height: 22px; + margin-right: 0; + line-height: 22px; +} +.ant-pagination.ant-pagination-mini .ant-pagination-options { + margin-left: 2px; +} +.ant-pagination.ant-pagination-mini .ant-pagination-options-size-changer { + top: 1px; +} +.ant-pagination.ant-pagination-mini .ant-pagination-options-quick-jumper { + height: 22px; + line-height: 22px; +} +.ant-pagination.ant-pagination-mini .ant-pagination-options-quick-jumper input { + padding: 0px 7px; + width: 44px; + height: 22px; +} +.ant-pagination.ant-pagination-disabled { + cursor: not-allowed; +} +.ant-pagination.ant-pagination-disabled .ant-pagination-item { + background: #f5f5f5; + border-color: #d9d9d9; + cursor: not-allowed; +} +.ant-pagination.ant-pagination-disabled .ant-pagination-item a { + color: rgba(0, 0, 0, 0.25); + background: transparent; + border: none; + cursor: not-allowed; +} +.ant-pagination.ant-pagination-disabled .ant-pagination-item-active { + background: #e6e6e6; +} +.ant-pagination.ant-pagination-disabled .ant-pagination-item-active a { + color: rgba(0, 0, 0, 0.25); +} +.ant-pagination.ant-pagination-disabled .ant-pagination-item-link { + color: rgba(0, 0, 0, 0.25); + background: #f5f5f5; + border-color: #d9d9d9; + cursor: not-allowed; +} +.ant-pagination-simple.ant-pagination.ant-pagination-disabled .ant-pagination-item-link { + background: transparent; +} +.ant-pagination.ant-pagination-disabled .ant-pagination-item-link-icon { + opacity: 0; +} +.ant-pagination.ant-pagination-disabled .ant-pagination-item-ellipsis { + opacity: 1; +} +.ant-pagination.ant-pagination-disabled .ant-pagination-simple-pager { + color: rgba(0, 0, 0, 0.25); +} +@media only screen and (max-width: 992px) { + .ant-pagination-item-after-jump-prev, + .ant-pagination-item-before-jump-next { + display: none; + } +} +@media only screen and (max-width: 576px) { + .ant-pagination-options { + display: none; + } +} +.ant-pagination-rtl .ant-pagination-total-text { + margin-right: 0; + margin-left: 8px; +} +.ant-pagination-rtl .ant-pagination-item, +.ant-pagination-rtl .ant-pagination-prev, +.ant-pagination-rtl .ant-pagination-jump-prev, +.ant-pagination-rtl .ant-pagination-jump-next { + margin-right: 0; + margin-left: 8px; +} +.ant-pagination-rtl .ant-pagination-slash { + margin: 0 5px 0 10px; +} +.ant-pagination-rtl .ant-pagination-options { + margin-right: 16px; + margin-left: 0; +} +.ant-pagination-rtl .ant-pagination-options .ant-pagination-options-size-changer.ant-select { + margin-right: 0; + margin-left: 8px; +} +.ant-pagination-rtl .ant-pagination-options .ant-pagination-options-quick-jumper { + margin-left: 0; +} +.ant-pagination-rtl.ant-pagination-simple .ant-pagination-simple-pager { + margin-right: 0; + margin-left: 8px; +} +.ant-pagination-rtl.ant-pagination-simple .ant-pagination-simple-pager input { + margin-right: 0; + margin-left: 8px; +} +.ant-pagination-rtl.ant-pagination.mini .ant-pagination-options { + margin-right: 2px; + margin-left: 0; +} +/* stylelint-disable no-duplicate-selectors */ +/* stylelint-disable */ +/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ + +/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/breadcrumb/style/index.less ***! + \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ +/* stylelint-disable no-duplicate-selectors */ +/* stylelint-disable */ +/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ +.ant-breadcrumb { + box-sizing: border-box; + margin: 0; + padding: 0; + color: rgba(0, 0, 0, 0.85); + font-variant: tabular-nums; + line-height: 1.66667; + list-style: none; + font-feature-settings: tnum, "tnum"; + color: rgba(0, 0, 0, 0.45); + font-size: 12px; +} +.ant-breadcrumb .anticon { + font-size: 12px; +} +.ant-breadcrumb ol { + display: flex; + flex-wrap: wrap; + margin: 0; + padding: 0; + list-style: none; +} +.ant-breadcrumb a { + color: rgba(0, 0, 0, 0.45); + transition: color 0.3s; +} +.ant-breadcrumb a:hover { + color: rgba(0, 0, 0, 0.85); +} +.ant-breadcrumb li:last-child { + color: rgba(0, 0, 0, 0.85); +} +.ant-breadcrumb li:last-child a { + color: rgba(0, 0, 0, 0.85); +} +li:last-child > .ant-breadcrumb-separator { + display: none; +} +.ant-breadcrumb-separator { + margin: 0 4px; + color: rgba(0, 0, 0, 0.45); +} +.ant-breadcrumb-link > .anticon + span, +.ant-breadcrumb-link > .anticon + a { + margin-left: 4px; +} +.ant-breadcrumb-overlay-link > .anticon { + margin-left: 4px; +} +.ant-breadcrumb-rtl { + direction: rtl; +} +.ant-breadcrumb-rtl::before { + display: table; + content: ''; +} +.ant-breadcrumb-rtl::after { + display: table; + clear: both; + content: ''; +} +.ant-breadcrumb-rtl > span { + float: right; +} +.ant-breadcrumb-rtl .ant-breadcrumb-link > .anticon + span, +.ant-breadcrumb-rtl .ant-breadcrumb-link > .anticon + a { + margin-right: 4px; + margin-left: 0; +} +.ant-breadcrumb-rtl .ant-breadcrumb-overlay-link > .anticon { + margin-right: 4px; + margin-left: 0; +} +/* stylelint-disable no-duplicate-selectors */ +/* stylelint-disable */ +/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ + +/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/divider/style/index.less ***! + \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ +/* stylelint-disable no-duplicate-selectors */ +/* stylelint-disable */ +/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ +.ant-divider { + box-sizing: border-box; + margin: 0; + padding: 0; + color: rgba(0, 0, 0, 0.85); + font-size: 12px; + font-variant: tabular-nums; + line-height: 1.66667; + list-style: none; + font-feature-settings: tnum, "tnum"; + border-top: 1px solid rgba(0, 0, 0, 0.06); +} +.ant-divider-vertical { + position: relative; + top: -0.06em; + display: inline-block; + height: 0.9em; + margin: 0 8px; + vertical-align: middle; + border-top: 0; + border-left: 1px solid rgba(0, 0, 0, 0.06); +} +.ant-divider-horizontal { + display: flex; + clear: both; + width: 100%; + min-width: 100%; + margin: 24px 0; +} +.ant-divider-horizontal.ant-divider-with-text { + display: flex; + align-items: center; + margin: 16px 0; + color: rgba(0, 0, 0, 0.85); + font-weight: 500; + font-size: 14px; + white-space: nowrap; + text-align: center; + border-top: 0; + border-top-color: rgba(0, 0, 0, 0.06); +} +.ant-divider-horizontal.ant-divider-with-text::before, +.ant-divider-horizontal.ant-divider-with-text::after { + position: relative; + width: 50%; + border-top: 1px solid transparent; + border-top-color: inherit; + border-bottom: 0; + transform: translateY(50%); + content: ''; +} +.ant-divider-horizontal.ant-divider-with-text-left::before { + width: 5%; +} +.ant-divider-horizontal.ant-divider-with-text-left::after { + width: 95%; +} +.ant-divider-horizontal.ant-divider-with-text-right::before { + width: 95%; +} +.ant-divider-horizontal.ant-divider-with-text-right::after { + width: 5%; +} +.ant-divider-inner-text { + display: inline-block; + padding: 0 1em; +} +.ant-divider-dashed { + background: none; + border-color: rgba(0, 0, 0, 0.06); + border-style: dashed; + border-width: 1px 0 0; +} +.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::before, +.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::after { + border-style: dashed none none; +} +.ant-divider-vertical.ant-divider-dashed { + border-width: 0 0 0 1px; +} +.ant-divider-plain.ant-divider-with-text { + color: rgba(0, 0, 0, 0.85); + font-weight: normal; + font-size: 12px; +} +.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-no-default-orientation-margin-left::before { + width: 0; +} +.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-no-default-orientation-margin-left::after { + width: 100%; +} +.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-no-default-orientation-margin-left .ant-divider-inner-text { + padding-left: 0; +} +.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-no-default-orientation-margin-right::before { + width: 100%; +} +.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-no-default-orientation-margin-right::after { + width: 0; +} +.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-no-default-orientation-margin-right .ant-divider-inner-text { + padding-right: 0; +} +.ant-divider-rtl { + direction: rtl; +} +.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-left::before { + width: 95%; +} +.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-left::after { + width: 5%; +} +.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-right::before { + width: 5%; +} +.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-right::after { + width: 95%; +} +/* stylelint-disable no-duplicate-selectors */ +/* stylelint-disable */ +/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ + diff --git a/23234.async.js b/23234.async.js index 49134b04d6..907e185b53 100644 --- a/23234.async.js +++ b/23234.async.js @@ -1,4 +1,4 @@ -(self["webpackChunk"] = self["webpackChunk"] || []).push([[23234,36579,72693,23805,62654,80670],{ +(self["webpackChunk"] = self["webpackChunk"] || []).push([[23234,36579,72693,23805,62654,79256,80670],{ /***/ 7918: /*!******************************************************************************!*\ @@ -544,7 +544,7 @@ CloseSquareOutlined_CloseSquareOutlined.displayName = 'CloseSquareOutlined'; /***/ }), -/***/ 39300: +/***/ 34804: /*!*****************************************************************!*\ !*** ./node_modules/@ant-design/icons/es/icons/DownOutlined.js ***! \*****************************************************************/ diff --git a/23607.async.js b/23607.async.js index e1f5f07ca5..00e2aa8ea6 100644 --- a/23607.async.js +++ b/23607.async.js @@ -502,7 +502,7 @@ Icon.setTwoToneColor = setTwoToneColor; /***/ }), -/***/ 39300: +/***/ 34804: /*!*****************************************************************!*\ !*** ./node_modules/@ant-design/icons/es/icons/DownOutlined.js ***! \*****************************************************************/ diff --git a/25578.async.js b/25578.async.js index 8199209c65..8f62ac3dae 100644 --- a/25578.async.js +++ b/25578.async.js @@ -1,5 +1,5 @@ "use strict"; -(self["webpackChunk"] = self["webpackChunk"] || []).push([[25578,75004,92023],{ +(self["webpackChunk"] = self["webpackChunk"] || []).push([[25578,75004,92023,79256],{ /***/ 32857: /*!********************************************************************!*\ diff --git a/26057.async.js b/26057.async.js new file mode 100644 index 0000000000..3d3e021f24 --- /dev/null +++ b/26057.async.js @@ -0,0 +1,969 @@ +"use strict"; +(self["webpackChunk"] = self["webpackChunk"] || []).push([[26057],{ + +/***/ 34804: +/*!*****************************************************************!*\ + !*** ./node_modules/@ant-design/icons/es/icons/DownOutlined.js ***! + \*****************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294); +/* harmony import */ var _ant_design_icons_svg_es_asn_DownOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/DownOutlined */ 66023); +/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 7918); + +// GENERATE BY ./scripts/generate.ts +// DON NOT EDIT IT MANUALLY + + + +var DownOutlined = function DownOutlined(props, ref) { + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, { + ref: ref, + icon: _ant_design_icons_svg_es_asn_DownOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z + })); +}; +DownOutlined.displayName = 'DownOutlined'; +/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(DownOutlined)); + +/***/ }), + +/***/ 64029: +/*!***************************************************************!*\ + !*** ./node_modules/@ant-design/icons/es/icons/UpOutlined.js ***! + \***************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294); +/* harmony import */ var _ant_design_icons_svg_es_asn_UpOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/UpOutlined */ 92287); +/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 7918); + +// GENERATE BY ./scripts/generate.ts +// DON NOT EDIT IT MANUALLY + + + +var UpOutlined = function UpOutlined(props, ref) { + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, { + ref: ref, + icon: _ant_design_icons_svg_es_asn_UpOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z + })); +}; +UpOutlined.displayName = 'UpOutlined'; +/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(UpOutlined)); + +/***/ }), + +/***/ 48783: +/*!****************************************************************!*\ + !*** ./node_modules/antd/es/_util/throttleByAnimationFrame.js ***! + \****************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "U": function() { return /* binding */ throttleByAnimationFrameDecorator; }, +/* harmony export */ "t": function() { return /* binding */ throttleByAnimationFrame; } +/* harmony export */ }); +/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ 74902); +/* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/raf */ 75164); + + +function throttleByAnimationFrame(fn) { + var requestId; + var later = function later(args) { + return function () { + requestId = null; + fn.apply(void 0, (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(args)); + }; + }; + var throttled = function throttled() { + if (requestId == null) { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + requestId = (0,rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(later(args)); + } + }; + throttled.cancel = function () { + rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__/* ["default"].cancel */ .Z.cancel(requestId); + requestId = null; + }; + return throttled; +} +function throttleByAnimationFrameDecorator() { + return function throttle(target, key, descriptor) { + var fn = descriptor.value; + var definingProperty = false; + return { + configurable: true, + get: function get() { + // In IE11 calling Object.defineProperty has a side-effect of evaluating the + // getter for the property which is being replaced. This causes infinite + // recursion and an "Out of stack space" error. + // eslint-disable-next-line no-prototype-builtins + if (definingProperty || this === target.prototype || this.hasOwnProperty(key)) { + /* istanbul ignore next */ + return fn; + } + var boundFn = throttleByAnimationFrame(fn.bind(this)); + definingProperty = true; + Object.defineProperty(this, key, { + value: boundFn, + configurable: true, + writable: true + }); + definingProperty = false; + return boundFn; + } + }; + }; +} + +/***/ }), + +/***/ 15771: +/*!*********************************************************!*\ + !*** ./node_modules/antd/es/affix/index.js + 1 modules ***! + \*********************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + "Z": function() { return /* binding */ affix; } +}); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(87462); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(4942); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(15671); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(43144); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js +var inherits = __webpack_require__(60136); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 1 modules +var createSuper = __webpack_require__(51630); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js +var esm_typeof = __webpack_require__(71002); +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(94184); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); +// EXTERNAL MODULE: ./node_modules/rc-resize-observer/es/index.js + 4 modules +var es = __webpack_require__(48555); +// EXTERNAL MODULE: ./node_modules/rc-util/es/omit.js +var omit = __webpack_require__(98423); +// EXTERNAL MODULE: ./node_modules/react/index.js +var react = __webpack_require__(67294); +// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js +var context = __webpack_require__(53124); +// EXTERNAL MODULE: ./node_modules/antd/es/_util/throttleByAnimationFrame.js +var throttleByAnimationFrame = __webpack_require__(48783); +// EXTERNAL MODULE: ./node_modules/rc-util/es/Dom/addEventListener.js +var addEventListener = __webpack_require__(64019); +;// CONCATENATED MODULE: ./node_modules/antd/es/affix/utils.js + +function getTargetRect(target) { + return target !== window ? target.getBoundingClientRect() : { + top: 0, + bottom: window.innerHeight + }; +} +function getFixedTop(placeholderReact, targetRect, offsetTop) { + if (offsetTop !== undefined && targetRect.top > placeholderReact.top - offsetTop) { + return offsetTop + targetRect.top; + } + return undefined; +} +function getFixedBottom(placeholderReact, targetRect, offsetBottom) { + if (offsetBottom !== undefined && targetRect.bottom < placeholderReact.bottom + offsetBottom) { + var targetBottomOffset = window.innerHeight - targetRect.bottom; + return offsetBottom + targetBottomOffset; + } + return undefined; +} +// ======================== Observer ======================== +var TRIGGER_EVENTS = ['resize', 'scroll', 'touchstart', 'touchmove', 'touchend', 'pageshow', 'load']; +var observerEntities = []; +function getObserverEntities() { + // Only used in test env. Can be removed if refactor. + return observerEntities; +} +function addObserveTarget(target, affix) { + if (!target) { + return; + } + var entity = observerEntities.find(function (item) { + return item.target === target; + }); + if (entity) { + entity.affixList.push(affix); + } else { + entity = { + target: target, + affixList: [affix], + eventHandlers: {} + }; + observerEntities.push(entity); + // Add listener + TRIGGER_EVENTS.forEach(function (eventName) { + entity.eventHandlers[eventName] = (0,addEventListener/* default */.Z)(target, eventName, function () { + entity.affixList.forEach(function (targetAffix) { + targetAffix.lazyUpdatePosition(); + }); + }); + }); + } +} +function removeObserveTarget(affix) { + var observerEntity = observerEntities.find(function (oriObserverEntity) { + var hasAffix = oriObserverEntity.affixList.some(function (item) { + return item === affix; + }); + if (hasAffix) { + oriObserverEntity.affixList = oriObserverEntity.affixList.filter(function (item) { + return item !== affix; + }); + } + return hasAffix; + }); + if (observerEntity && observerEntity.affixList.length === 0) { + observerEntities = observerEntities.filter(function (item) { + return item !== observerEntity; + }); + // Remove listener + TRIGGER_EVENTS.forEach(function (eventName) { + var handler = observerEntity.eventHandlers[eventName]; + if (handler && handler.remove) { + handler.remove(); + } + }); + } +} +;// CONCATENATED MODULE: ./node_modules/antd/es/affix/index.js + + + + + + + +var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) { + var c = arguments.length, + r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, + d; + if ((typeof Reflect === "undefined" ? "undefined" : (0,esm_typeof/* default */.Z)(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; + + + + + + + +function getDefaultTarget() { + return typeof window !== 'undefined' ? window : null; +} +var AffixStatus; +(function (AffixStatus) { + AffixStatus[AffixStatus["None"] = 0] = "None"; + AffixStatus[AffixStatus["Prepare"] = 1] = "Prepare"; +})(AffixStatus || (AffixStatus = {})); +var Affix = /*#__PURE__*/function (_React$Component) { + (0,inherits/* default */.Z)(Affix, _React$Component); + var _super = (0,createSuper/* default */.Z)(Affix); + function Affix() { + var _this; + (0,classCallCheck/* default */.Z)(this, Affix); + _this = _super.apply(this, arguments); + _this.state = { + status: AffixStatus.None, + lastAffix: false, + prevTarget: null + }; + _this.getOffsetTop = function () { + var _this$props = _this.props, + offsetBottom = _this$props.offsetBottom, + offsetTop = _this$props.offsetTop; + return offsetBottom === undefined && offsetTop === undefined ? 0 : offsetTop; + }; + _this.getOffsetBottom = function () { + return _this.props.offsetBottom; + }; + _this.savePlaceholderNode = function (node) { + _this.placeholderNode = node; + }; + _this.saveFixedNode = function (node) { + _this.fixedNode = node; + }; + // =================== Measure =================== + _this.measure = function () { + var _this$state = _this.state, + status = _this$state.status, + lastAffix = _this$state.lastAffix; + var onChange = _this.props.onChange; + var targetFunc = _this.getTargetFunc(); + if (status !== AffixStatus.Prepare || !_this.fixedNode || !_this.placeholderNode || !targetFunc) { + return; + } + var offsetTop = _this.getOffsetTop(); + var offsetBottom = _this.getOffsetBottom(); + var targetNode = targetFunc(); + if (!targetNode) { + return; + } + var newState = { + status: AffixStatus.None + }; + var targetRect = getTargetRect(targetNode); + var placeholderReact = getTargetRect(_this.placeholderNode); + var fixedTop = getFixedTop(placeholderReact, targetRect, offsetTop); + var fixedBottom = getFixedBottom(placeholderReact, targetRect, offsetBottom); + if (placeholderReact.top === 0 && placeholderReact.left === 0 && placeholderReact.width === 0 && placeholderReact.height === 0) { + return; + } + if (fixedTop !== undefined) { + newState.affixStyle = { + position: 'fixed', + top: fixedTop, + width: placeholderReact.width, + height: placeholderReact.height + }; + newState.placeholderStyle = { + width: placeholderReact.width, + height: placeholderReact.height + }; + } else if (fixedBottom !== undefined) { + newState.affixStyle = { + position: 'fixed', + bottom: fixedBottom, + width: placeholderReact.width, + height: placeholderReact.height + }; + newState.placeholderStyle = { + width: placeholderReact.width, + height: placeholderReact.height + }; + } + newState.lastAffix = !!newState.affixStyle; + if (onChange && lastAffix !== newState.lastAffix) { + onChange(newState.lastAffix); + } + _this.setState(newState); + }; + // @ts-ignore TS6133 + _this.prepareMeasure = function () { + // event param is used before. Keep compatible ts define here. + _this.setState({ + status: AffixStatus.Prepare, + affixStyle: undefined, + placeholderStyle: undefined + }); + // Test if `updatePosition` called + if (false) { var onTestUpdatePosition; } + }; + return _this; + } + (0,createClass/* default */.Z)(Affix, [{ + key: "getTargetFunc", + value: function getTargetFunc() { + var getTargetContainer = this.context.getTargetContainer; + var target = this.props.target; + if (target !== undefined) { + return target; + } + return getTargetContainer !== null && getTargetContainer !== void 0 ? getTargetContainer : getDefaultTarget; + } + // Event handler + }, { + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + var targetFunc = this.getTargetFunc(); + if (targetFunc) { + // [Legacy] Wait for parent component ref has its value. + // We should use target as directly element instead of function which makes element check hard. + this.timeout = setTimeout(function () { + addObserveTarget(targetFunc(), _this2); + // Mock Event object. + _this2.updatePosition(); + }); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var prevTarget = this.state.prevTarget; + var targetFunc = this.getTargetFunc(); + var newTarget = (targetFunc === null || targetFunc === void 0 ? void 0 : targetFunc()) || null; + if (prevTarget !== newTarget) { + removeObserveTarget(this); + if (newTarget) { + addObserveTarget(newTarget, this); + // Mock Event object. + this.updatePosition(); + } + // eslint-disable-next-line react/no-did-update-set-state + this.setState({ + prevTarget: newTarget + }); + } + if (prevProps.offsetTop !== this.props.offsetTop || prevProps.offsetBottom !== this.props.offsetBottom) { + this.updatePosition(); + } + this.measure(); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + clearTimeout(this.timeout); + removeObserveTarget(this); + this.updatePosition.cancel(); + // https://github.com/ant-design/ant-design/issues/22683 + this.lazyUpdatePosition.cancel(); + } + // Handle realign logic + }, { + key: "updatePosition", + value: function updatePosition() { + this.prepareMeasure(); + } + }, { + key: "lazyUpdatePosition", + value: function lazyUpdatePosition() { + var targetFunc = this.getTargetFunc(); + var affixStyle = this.state.affixStyle; + // Check position change before measure to make Safari smooth + if (targetFunc && affixStyle) { + var offsetTop = this.getOffsetTop(); + var offsetBottom = this.getOffsetBottom(); + var targetNode = targetFunc(); + if (targetNode && this.placeholderNode) { + var targetRect = getTargetRect(targetNode); + var placeholderReact = getTargetRect(this.placeholderNode); + var fixedTop = getFixedTop(placeholderReact, targetRect, offsetTop); + var fixedBottom = getFixedBottom(placeholderReact, targetRect, offsetBottom); + if (fixedTop !== undefined && affixStyle.top === fixedTop || fixedBottom !== undefined && affixStyle.bottom === fixedBottom) { + return; + } + } + } + // Directly call prepare measure since it's already throttled. + this.prepareMeasure(); + } + // =================== Render =================== + }, { + key: "render", + value: function render() { + var _this3 = this; + var _this$state2 = this.state, + affixStyle = _this$state2.affixStyle, + placeholderStyle = _this$state2.placeholderStyle; + var _this$props2 = this.props, + affixPrefixCls = _this$props2.affixPrefixCls, + children = _this$props2.children; + var className = classnames_default()((0,defineProperty/* default */.Z)({}, affixPrefixCls, !!affixStyle)); + var props = (0,omit/* default */.Z)(this.props, ['prefixCls', 'offsetTop', 'offsetBottom', 'target', 'onChange', 'affixPrefixCls']); + // Omit this since `onTestUpdatePosition` only works on test. + if (false) {} + return /*#__PURE__*/react.createElement(es/* default */.Z, { + onResize: function onResize() { + _this3.updatePosition(); + } + }, /*#__PURE__*/react.createElement("div", (0,esm_extends/* default */.Z)({}, props, { + ref: this.savePlaceholderNode + }), affixStyle && /*#__PURE__*/react.createElement("div", { + style: placeholderStyle, + "aria-hidden": "true" + }), /*#__PURE__*/react.createElement("div", { + className: className, + ref: this.saveFixedNode, + style: affixStyle + }, /*#__PURE__*/react.createElement(es/* default */.Z, { + onResize: function onResize() { + _this3.updatePosition(); + } + }, children)))); + } + }]); + return Affix; +}(react.Component); +Affix.contextType = context/* ConfigContext */.E_; +__decorate([(0,throttleByAnimationFrame/* throttleByAnimationFrameDecorator */.U)()], Affix.prototype, "updatePosition", null); +__decorate([(0,throttleByAnimationFrame/* throttleByAnimationFrameDecorator */.U)()], Affix.prototype, "lazyUpdatePosition", null); +var AffixFC = /*#__PURE__*/react.forwardRef(function (props, ref) { + var customizePrefixCls = props.prefixCls; + var _React$useContext = react.useContext(context/* ConfigContext */.E_), + getPrefixCls = _React$useContext.getPrefixCls; + var affixPrefixCls = getPrefixCls('affix', customizePrefixCls); + var affixProps = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, props), { + affixPrefixCls: affixPrefixCls + }); + return /*#__PURE__*/react.createElement(Affix, (0,esm_extends/* default */.Z)({}, affixProps, { + ref: ref + })); +}); +if (false) {} +/* harmony default export */ var affix = (AffixFC); + +/***/ }), + +/***/ 48283: +/*!***************************************************************!*\ + !*** ./node_modules/antd/es/affix/style/index.js + 1 modules ***! + \***************************************************************/ +/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) { + + +// EXTERNAL MODULE: ./node_modules/antd/es/style/default.less +var style_default = __webpack_require__(43146); +;// CONCATENATED MODULE: ./node_modules/antd/es/affix/style/index.less +// extracted by mini-css-extract-plugin + +;// CONCATENATED MODULE: ./node_modules/antd/es/affix/style/index.js + + + +/***/ }), + +/***/ 73481: +/*!*************************************************************!*\ + !*** ./node_modules/antd/es/skeleton/index.js + 11 modules ***! + \*************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + "Z": function() { return /* binding */ skeleton; } +}); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(4942); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(87462); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js +var esm_typeof = __webpack_require__(71002); +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(94184); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); +// EXTERNAL MODULE: ./node_modules/react/index.js +var react = __webpack_require__(67294); +// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js +var context = __webpack_require__(53124); +// EXTERNAL MODULE: ./node_modules/rc-util/es/omit.js +var omit = __webpack_require__(98423); +;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Element.js + + + + +var Element = function Element(props) { + var _classNames, _classNames2; + var prefixCls = props.prefixCls, + className = props.className, + style = props.style, + size = props.size, + shape = props.shape; + var sizeCls = classnames_default()((_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-lg"), size === 'large'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-sm"), size === 'small'), _classNames)); + var shapeCls = classnames_default()((_classNames2 = {}, (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-circle"), shape === 'circle'), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-square"), shape === 'square'), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-round"), shape === 'round'), _classNames2)); + var sizeStyle = react.useMemo(function () { + return typeof size === 'number' ? { + width: size, + height: size, + lineHeight: "".concat(size, "px") + } : {}; + }, [size]); + return /*#__PURE__*/react.createElement("span", { + className: classnames_default()(prefixCls, sizeCls, shapeCls, className), + style: (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, sizeStyle), style) + }); +}; +/* harmony default export */ var skeleton_Element = (Element); +;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Avatar.js + + + + + + + +var SkeletonAvatar = function SkeletonAvatar(props) { + var customizePrefixCls = props.prefixCls, + className = props.className, + active = props.active, + _props$shape = props.shape, + shape = _props$shape === void 0 ? 'circle' : _props$shape, + _props$size = props.size, + size = _props$size === void 0 ? 'default' : _props$size; + var _React$useContext = react.useContext(context/* ConfigContext */.E_), + getPrefixCls = _React$useContext.getPrefixCls; + var prefixCls = getPrefixCls('skeleton', customizePrefixCls); + var otherProps = (0,omit/* default */.Z)(props, ['prefixCls', 'className']); + var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-element"), (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-active"), active), className); + return /*#__PURE__*/react.createElement("div", { + className: cls + }, /*#__PURE__*/react.createElement(skeleton_Element, (0,esm_extends/* default */.Z)({ + prefixCls: "".concat(prefixCls, "-avatar"), + shape: shape, + size: size + }, otherProps))); +}; +/* harmony default export */ var Avatar = (SkeletonAvatar); +;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Button.js + + + + + + + +var SkeletonButton = function SkeletonButton(props) { + var _classNames; + var customizePrefixCls = props.prefixCls, + className = props.className, + active = props.active, + _props$block = props.block, + block = _props$block === void 0 ? false : _props$block, + _props$size = props.size, + size = _props$size === void 0 ? 'default' : _props$size; + var _React$useContext = react.useContext(context/* ConfigContext */.E_), + getPrefixCls = _React$useContext.getPrefixCls; + var prefixCls = getPrefixCls('skeleton', customizePrefixCls); + var otherProps = (0,omit/* default */.Z)(props, ['prefixCls']); + var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-element"), (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-active"), active), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-block"), block), _classNames), className); + return /*#__PURE__*/react.createElement("div", { + className: cls + }, /*#__PURE__*/react.createElement(skeleton_Element, (0,esm_extends/* default */.Z)({ + prefixCls: "".concat(prefixCls, "-button"), + size: size + }, otherProps))); +}; +/* harmony default export */ var Button = (SkeletonButton); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js +var objectSpread2 = __webpack_require__(1413); +;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/DotChartOutlined.js +// This icon file is generated automatically. +var DotChartOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, "name": "dot-chart", "theme": "outlined" }; +/* harmony default export */ var asn_DotChartOutlined = (DotChartOutlined); + +// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 3 modules +var AntdIcon = __webpack_require__(93771); +;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/DotChartOutlined.js + +// GENERATE BY ./scripts/generate.ts +// DON NOT EDIT IT MANUALLY + + + +var DotChartOutlined_DotChartOutlined = function DotChartOutlined(props, ref) { + return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, { + ref: ref, + icon: asn_DotChartOutlined + })); +}; +DotChartOutlined_DotChartOutlined.displayName = 'DotChartOutlined'; +/* harmony default export */ var icons_DotChartOutlined = (/*#__PURE__*/react.forwardRef(DotChartOutlined_DotChartOutlined)); +;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Node.js + + + + + +var SkeletonNode = function SkeletonNode(props) { + var customizePrefixCls = props.prefixCls, + className = props.className, + style = props.style, + active = props.active, + children = props.children; + var _React$useContext = react.useContext(context/* ConfigContext */.E_), + getPrefixCls = _React$useContext.getPrefixCls; + var prefixCls = getPrefixCls('skeleton', customizePrefixCls); + var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-element"), (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-active"), active), className); + var content = children !== null && children !== void 0 ? children : /*#__PURE__*/react.createElement(icons_DotChartOutlined, null); + return /*#__PURE__*/react.createElement("div", { + className: cls + }, /*#__PURE__*/react.createElement("div", { + className: classnames_default()("".concat(prefixCls, "-image"), className), + style: style + }, content)); +}; +/* harmony default export */ var Node = (SkeletonNode); +;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Image.js + + + + +var path = 'M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z'; +var SkeletonImage = function SkeletonImage(props) { + var customizePrefixCls = props.prefixCls, + className = props.className, + style = props.style, + active = props.active; + var _React$useContext = react.useContext(context/* ConfigContext */.E_), + getPrefixCls = _React$useContext.getPrefixCls; + var prefixCls = getPrefixCls('skeleton', customizePrefixCls); + var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-element"), (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-active"), active), className); + return /*#__PURE__*/react.createElement("div", { + className: cls + }, /*#__PURE__*/react.createElement("div", { + className: classnames_default()("".concat(prefixCls, "-image"), className), + style: style + }, /*#__PURE__*/react.createElement("svg", { + viewBox: "0 0 1098 1024", + xmlns: "http://www.w3.org/2000/svg", + className: "".concat(prefixCls, "-image-svg") + }, /*#__PURE__*/react.createElement("path", { + d: path, + className: "".concat(prefixCls, "-image-path") + })))); +}; +/* harmony default export */ var Image = (SkeletonImage); +;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Input.js + + + + + + + +var SkeletonInput = function SkeletonInput(props) { + var _classNames; + var customizePrefixCls = props.prefixCls, + className = props.className, + active = props.active, + block = props.block, + _props$size = props.size, + size = _props$size === void 0 ? 'default' : _props$size; + var _React$useContext = react.useContext(context/* ConfigContext */.E_), + getPrefixCls = _React$useContext.getPrefixCls; + var prefixCls = getPrefixCls('skeleton', customizePrefixCls); + var otherProps = (0,omit/* default */.Z)(props, ['prefixCls']); + var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-element"), (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-active"), active), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-block"), block), _classNames), className); + return /*#__PURE__*/react.createElement("div", { + className: cls + }, /*#__PURE__*/react.createElement(skeleton_Element, (0,esm_extends/* default */.Z)({ + prefixCls: "".concat(prefixCls, "-input"), + size: size + }, otherProps))); +}; +/* harmony default export */ var Input = (SkeletonInput); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(74902); +;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Paragraph.js + + + +var Paragraph = function Paragraph(props) { + var getWidth = function getWidth(index) { + var width = props.width, + _props$rows = props.rows, + rows = _props$rows === void 0 ? 2 : _props$rows; + if (Array.isArray(width)) { + return width[index]; + } + // last paragraph + if (rows - 1 === index) { + return width; + } + return undefined; + }; + var prefixCls = props.prefixCls, + className = props.className, + style = props.style, + rows = props.rows; + var rowList = (0,toConsumableArray/* default */.Z)(Array(rows)).map(function (_, index) { + return ( + /*#__PURE__*/ + // eslint-disable-next-line react/no-array-index-key + react.createElement("li", { + key: index, + style: { + width: getWidth(index) + } + }) + ); + }); + return /*#__PURE__*/react.createElement("ul", { + className: classnames_default()(prefixCls, className), + style: style + }, rowList); +}; +/* harmony default export */ var skeleton_Paragraph = (Paragraph); +;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Title.js + +/* eslint-disable jsx-a11y/heading-has-content */ + + +var Title = function Title(_ref) { + var prefixCls = _ref.prefixCls, + className = _ref.className, + width = _ref.width, + style = _ref.style; + return /*#__PURE__*/react.createElement("h3", { + className: classnames_default()(prefixCls, className), + style: (0,esm_extends/* default */.Z)({ + width: width + }, style) + }); +}; +/* harmony default export */ var skeleton_Title = (Title); +;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Skeleton.js + + + + + + + + + + + + + + +function getComponentProps(prop) { + if (prop && (0,esm_typeof/* default */.Z)(prop) === 'object') { + return prop; + } + return {}; +} +function getAvatarBasicProps(hasTitle, hasParagraph) { + if (hasTitle && !hasParagraph) { + // Square avatar + return { + size: 'large', + shape: 'square' + }; + } + return { + size: 'large', + shape: 'circle' + }; +} +function getTitleBasicProps(hasAvatar, hasParagraph) { + if (!hasAvatar && hasParagraph) { + return { + width: '38%' + }; + } + if (hasAvatar && hasParagraph) { + return { + width: '50%' + }; + } + return {}; +} +function getParagraphBasicProps(hasAvatar, hasTitle) { + var basicProps = {}; + // Width + if (!hasAvatar || !hasTitle) { + basicProps.width = '61%'; + } + // Rows + if (!hasAvatar && hasTitle) { + basicProps.rows = 3; + } else { + basicProps.rows = 2; + } + return basicProps; +} +var Skeleton = function Skeleton(props) { + var customizePrefixCls = props.prefixCls, + loading = props.loading, + className = props.className, + style = props.style, + children = props.children, + _props$avatar = props.avatar, + avatar = _props$avatar === void 0 ? false : _props$avatar, + _props$title = props.title, + title = _props$title === void 0 ? true : _props$title, + _props$paragraph = props.paragraph, + paragraph = _props$paragraph === void 0 ? true : _props$paragraph, + active = props.active, + round = props.round; + var _React$useContext = react.useContext(context/* ConfigContext */.E_), + getPrefixCls = _React$useContext.getPrefixCls, + direction = _React$useContext.direction; + var prefixCls = getPrefixCls('skeleton', customizePrefixCls); + if (loading || !('loading' in props)) { + var _classNames; + var hasAvatar = !!avatar; + var hasTitle = !!title; + var hasParagraph = !!paragraph; + // Avatar + var avatarNode; + if (hasAvatar) { + var avatarProps = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({ + prefixCls: "".concat(prefixCls, "-avatar") + }, getAvatarBasicProps(hasTitle, hasParagraph)), getComponentProps(avatar)); + // We direct use SkeletonElement as avatar in skeleton internal. + avatarNode = /*#__PURE__*/react.createElement("div", { + className: "".concat(prefixCls, "-header") + }, /*#__PURE__*/react.createElement(skeleton_Element, (0,esm_extends/* default */.Z)({}, avatarProps))); + } + var contentNode; + if (hasTitle || hasParagraph) { + // Title + var $title; + if (hasTitle) { + var titleProps = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({ + prefixCls: "".concat(prefixCls, "-title") + }, getTitleBasicProps(hasAvatar, hasParagraph)), getComponentProps(title)); + $title = /*#__PURE__*/react.createElement(skeleton_Title, (0,esm_extends/* default */.Z)({}, titleProps)); + } + // Paragraph + var paragraphNode; + if (hasParagraph) { + var paragraphProps = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({ + prefixCls: "".concat(prefixCls, "-paragraph") + }, getParagraphBasicProps(hasAvatar, hasTitle)), getComponentProps(paragraph)); + paragraphNode = /*#__PURE__*/react.createElement(skeleton_Paragraph, (0,esm_extends/* default */.Z)({}, paragraphProps)); + } + contentNode = /*#__PURE__*/react.createElement("div", { + className: "".concat(prefixCls, "-content") + }, $title, paragraphNode); + } + var cls = classnames_default()(prefixCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-with-avatar"), hasAvatar), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-active"), active), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-round"), round), _classNames), className); + return /*#__PURE__*/react.createElement("div", { + className: cls, + style: style + }, avatarNode, contentNode); + } + return typeof children !== 'undefined' ? children : null; +}; +Skeleton.Button = Button; +Skeleton.Avatar = Avatar; +Skeleton.Input = Input; +Skeleton.Image = Image; +Skeleton.Node = Node; +/* harmony default export */ var skeleton_Skeleton = (Skeleton); +;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/index.js + +/* harmony default export */ var skeleton = (skeleton_Skeleton); + +/***/ }), + +/***/ 61099: +/*!******************************************************************!*\ + !*** ./node_modules/antd/es/skeleton/style/index.js + 1 modules ***! + \******************************************************************/ +/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) { + + +// EXTERNAL MODULE: ./node_modules/antd/es/style/default.less +var style_default = __webpack_require__(43146); +;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/style/index.less +// extracted by mini-css-extract-plugin + +;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/style/index.js + + + +/***/ }) + +}]); \ No newline at end of file diff --git a/26444.async.js b/26444.async.js index e32269feae..472b20c8cc 100644 --- a/26444.async.js +++ b/26444.async.js @@ -515,7 +515,7 @@ Icon.setTwoToneColor = setTwoToneColor; /***/ }), -/***/ 39300: +/***/ 34804: /*!*****************************************************************!*\ !*** ./node_modules/@ant-design/icons/es/icons/DownOutlined.js ***! \*****************************************************************/ diff --git a/27078.async.js b/27078.async.js new file mode 100644 index 0000000000..6db011933b --- /dev/null +++ b/27078.async.js @@ -0,0 +1,941 @@ +"use strict"; +(self["webpackChunk"] = self["webpackChunk"] || []).push([[27078],{ + +/***/ 48898: +/*!*************************************************************************!*\ + !*** ./node_modules/@ant-design/icons-svg/es/asn/FolderOpenOutlined.js ***! + \*************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +// This icon file is generated automatically. +var FolderOpenOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z" } }] }, "name": "folder-open", "theme": "outlined" }; +/* harmony default export */ __webpack_exports__["Z"] = (FolderOpenOutlined); + + +/***/ }), + +/***/ 87588: +/*!******************************************************************************!*\ + !*** ./node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.js ***! + \******************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294); +/* harmony import */ var _ant_design_icons_svg_es_asn_ExclamationCircleOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/ExclamationCircleOutlined */ 61144); +/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 7918); + +// GENERATE BY ./scripts/generate.ts +// DON NOT EDIT IT MANUALLY + + + +var ExclamationCircleOutlined = function ExclamationCircleOutlined(props, ref) { + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, { + ref: ref, + icon: _ant_design_icons_svg_es_asn_ExclamationCircleOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z + })); +}; +ExclamationCircleOutlined.displayName = 'ExclamationCircleOutlined'; +/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(ExclamationCircleOutlined)); + +/***/ }), + +/***/ 75008: +/*!*********************************************************!*\ + !*** ./node_modules/antd/es/input/index.js + 5 modules ***! + \*********************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + "Z": function() { return /* binding */ input; } +}); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(87462); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(4942); +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(94184); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); +// EXTERNAL MODULE: ./node_modules/react/index.js +var react = __webpack_require__(67294); +// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js +var context = __webpack_require__(53124); +// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js +var form_context = __webpack_require__(65223); +;// CONCATENATED MODULE: ./node_modules/antd/es/input/Group.js + + + + + + + +var Group = function Group(props) { + var _classNames; + var _useContext = (0,react.useContext)(context/* ConfigContext */.E_), + getPrefixCls = _useContext.getPrefixCls, + direction = _useContext.direction; + var customizePrefixCls = props.prefixCls, + _props$className = props.className, + className = _props$className === void 0 ? '' : _props$className; + var prefixCls = getPrefixCls('input-group', customizePrefixCls); + var cls = classnames_default()(prefixCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-lg"), props.size === 'large'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-sm"), props.size === 'small'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-compact"), props.compact), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className); + var formItemContext = (0,react.useContext)(form_context/* FormItemInputContext */.aM); + var groupFormItemContext = (0,react.useMemo)(function () { + return (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, formItemContext), { + isFormItemInput: false + }); + }, [formItemContext]); + return /*#__PURE__*/react.createElement("span", { + className: cls, + style: props.style, + onMouseEnter: props.onMouseEnter, + onMouseLeave: props.onMouseLeave, + onFocus: props.onFocus, + onBlur: props.onBlur + }, /*#__PURE__*/react.createElement(form_context/* FormItemInputContext.Provider */.aM.Provider, { + value: groupFormItemContext + }, props.children)); +}; +/* harmony default export */ var input_Group = (Group); +// EXTERNAL MODULE: ./node_modules/antd/es/input/Input.js + 1 modules +var Input = __webpack_require__(82586); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules +var slicedToArray = __webpack_require__(97685); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js +var esm_typeof = __webpack_require__(71002); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js +var objectSpread2 = __webpack_require__(1413); +;// CONCATENATED MODULE: ./node_modules/@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/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 3 modules +var AntdIcon = __webpack_require__(93771); +;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EyeInvisibleOutlined.js + +// GENERATE BY ./scripts/generate.ts +// DON NOT EDIT IT MANUALLY + + + +var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) { + return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, { + ref: ref, + icon: asn_EyeInvisibleOutlined + })); +}; +EyeInvisibleOutlined_EyeInvisibleOutlined.displayName = 'EyeInvisibleOutlined'; +/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined)); +// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules +var EyeOutlined = __webpack_require__(7124); +// EXTERNAL MODULE: ./node_modules/rc-util/es/omit.js +var omit = __webpack_require__(98423); +// EXTERNAL MODULE: ./node_modules/rc-util/es/ref.js +var es_ref = __webpack_require__(42550); +// EXTERNAL MODULE: ./node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js +var useRemovePasswordTimeout = __webpack_require__(72922); +;// CONCATENATED MODULE: ./node_modules/antd/es/input/Password.js + + + + +var __rest = undefined && undefined.__rest || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; + } + return t; +}; + + + + + + + + + + +var defaultIconRender = function defaultIconRender(visible) { + return visible ? /*#__PURE__*/react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(icons_EyeInvisibleOutlined, null); +}; +var ActionMap = { + click: 'onClick', + hover: 'onMouseOver' +}; +var Password = /*#__PURE__*/react.forwardRef(function (props, ref) { + var _props$visibilityTogg = props.visibilityToggle, + visibilityToggle = _props$visibilityTogg === void 0 ? true : _props$visibilityTogg; + var visibilityControlled = (0,esm_typeof/* default */.Z)(visibilityToggle) === 'object' && visibilityToggle.visible !== undefined; + var _useState = (0,react.useState)(function () { + return visibilityControlled ? visibilityToggle.visible : false; + }), + _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2), + visible = _useState2[0], + setVisible = _useState2[1]; + var inputRef = (0,react.useRef)(null); + react.useEffect(function () { + if (visibilityControlled) { + setVisible(visibilityToggle.visible); + } + }, [visibilityControlled, visibilityToggle]); + // Remove Password value + var removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef); + var onVisibleChange = function onVisibleChange() { + var disabled = props.disabled; + if (disabled) { + return; + } + if (visible) { + removePasswordTimeout(); + } + setVisible(function (prevState) { + var _a; + var newState = !prevState; + if ((0,esm_typeof/* default */.Z)(visibilityToggle) === 'object') { + (_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState); + } + return newState; + }); + }; + var getIcon = function getIcon(prefixCls) { + var _iconProps; + var _props$action = props.action, + action = _props$action === void 0 ? 'click' : _props$action, + _props$iconRender = props.iconRender, + iconRender = _props$iconRender === void 0 ? defaultIconRender : _props$iconRender; + var iconTrigger = ActionMap[action] || ''; + var icon = iconRender(visible); + var iconProps = (_iconProps = {}, (0,defineProperty/* default */.Z)(_iconProps, iconTrigger, onVisibleChange), (0,defineProperty/* default */.Z)(_iconProps, "className", "".concat(prefixCls, "-icon")), (0,defineProperty/* default */.Z)(_iconProps, "key", 'passwordIcon'), (0,defineProperty/* default */.Z)(_iconProps, "onMouseDown", function onMouseDown(e) { + // Prevent focused state lost + // https://github.com/ant-design/ant-design/issues/15173 + e.preventDefault(); + }), (0,defineProperty/* default */.Z)(_iconProps, "onMouseUp", function onMouseUp(e) { + // Prevent caret position change + // https://github.com/ant-design/ant-design/issues/23524 + e.preventDefault(); + }), _iconProps); + return /*#__PURE__*/react.cloneElement( /*#__PURE__*/react.isValidElement(icon) ? icon : /*#__PURE__*/react.createElement("span", null, icon), iconProps); + }; + var renderPassword = function renderPassword(_ref) { + var getPrefixCls = _ref.getPrefixCls; + var className = props.className, + customizePrefixCls = props.prefixCls, + customizeInputPrefixCls = props.inputPrefixCls, + size = props.size, + restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]); + var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls); + var prefixCls = getPrefixCls('input-password', customizePrefixCls); + var suffixIcon = visibilityToggle && getIcon(prefixCls); + var inputClassName = classnames_default()(prefixCls, className, (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-").concat(size), !!size)); + var omittedProps = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, (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.createElement(Input/* default */.ZP, (0,esm_extends/* default */.Z)({ + ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef) + }, omittedProps)); + }; + return /*#__PURE__*/react.createElement(context/* ConfigConsumer */.C, null, renderPassword); +}); +if (false) {} +/* harmony default export */ var input_Password = (Password); +// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js +var SearchOutlined = __webpack_require__(25783); +// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js +var es_button = __webpack_require__(71577); +// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/SizeContext.js +var SizeContext = __webpack_require__(97647); +// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js +var Compact = __webpack_require__(4173); +// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js +var reactNode = __webpack_require__(96159); +;// CONCATENATED MODULE: ./node_modules/antd/es/input/Search.js + + +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; +}; + + + + + + + + + + +var Search = /*#__PURE__*/react.forwardRef(function (props, ref) { + var _classNames; + var customizePrefixCls = props.prefixCls, + customizeInputPrefixCls = props.inputPrefixCls, + className = props.className, + customizeSize = props.size, + suffix = props.suffix, + _props$enterButton = props.enterButton, + enterButton = _props$enterButton === void 0 ? false : _props$enterButton, + addonAfter = props.addonAfter, + loading = props.loading, + disabled = props.disabled, + customOnSearch = props.onSearch, + customOnChange = props.onChange, + onCompositionStart = props.onCompositionStart, + onCompositionEnd = props.onCompositionEnd, + restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]); + var _React$useContext = react.useContext(context/* ConfigContext */.E_), + getPrefixCls = _React$useContext.getPrefixCls, + direction = _React$useContext.direction; + var contextSize = react.useContext(SizeContext/* default */.Z); + var composedRef = react.useRef(false); + var prefixCls = getPrefixCls('input-search', customizePrefixCls); + var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls); + var _useCompactItemContex = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction), + compactSize = _useCompactItemContex.compactSize; + var size = compactSize || customizeSize || contextSize; + var inputRef = react.useRef(null); + var onChange = function onChange(e) { + if (e && e.target && e.type === 'click' && customOnSearch) { + customOnSearch(e.target.value, e); + } + if (customOnChange) { + customOnChange(e); + } + }; + var onMouseDown = function onMouseDown(e) { + var _a; + if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) { + e.preventDefault(); + } + }; + var onSearch = function 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); + } + }; + var onPressEnter = function onPressEnter(e) { + if (composedRef.current || loading) { + return; + } + onSearch(e); + }; + var searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/react.createElement(SearchOutlined/* default */.Z, null) : null; + var btnClassName = "".concat(prefixCls, "-button"); + var button; + var enterButtonAsElement = enterButton || {}; + var isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true; + if (isAntdButton || enterButtonAsElement.type === 'button') { + button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, (0,esm_extends/* default */.Z)({ + onMouseDown: onMouseDown, + onClick: function 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: size + } : {})); + } else { + button = /*#__PURE__*/react.createElement(es_button/* default */.Z, { + 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' + })]; + } + var cls = classnames_default()(prefixCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-").concat(size), !!size), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-with-button"), !!enterButton), _classNames), className); + var handleOnCompositionStart = function handleOnCompositionStart(e) { + composedRef.current = true; + onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e); + }; + var handleOnCompositionEnd = function handleOnCompositionEnd(e) { + composedRef.current = false; + onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e); + }; + return /*#__PURE__*/react.createElement(Input/* default */.ZP, (0,esm_extends/* default */.Z)({ + 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/es/input/TextArea.js + 1 modules +var TextArea = __webpack_require__(80173); +;// CONCATENATED MODULE: ./node_modules/antd/es/input/index.js + + + + + +var input_Input = Input/* default */.ZP; +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); + +/***/ }), + +/***/ 54205: +/*!********************************************************!*\ + !*** ./node_modules/antd/es/tree/index.js + 9 modules ***! + \********************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + "Z": function() { return /* binding */ tree; } +}); + +// EXTERNAL MODULE: ./node_modules/rc-tree/es/index.js + 6 modules +var es = __webpack_require__(31343); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(4942); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js +var esm_typeof = __webpack_require__(71002); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(87462); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js +var objectSpread2 = __webpack_require__(1413); +// EXTERNAL MODULE: ./node_modules/react/index.js +var react = __webpack_require__(67294); +;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/HolderOutlined.js +// This icon file is generated automatically. +var HolderOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z" } }] }, "name": "holder", "theme": "outlined" }; +/* harmony default export */ var asn_HolderOutlined = (HolderOutlined); + +// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 3 modules +var AntdIcon = __webpack_require__(93771); +;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/HolderOutlined.js + +// GENERATE BY ./scripts/generate.ts +// DON NOT EDIT IT MANUALLY + + + +var HolderOutlined_HolderOutlined = function HolderOutlined(props, ref) { + return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, { + ref: ref, + icon: asn_HolderOutlined + })); +}; +HolderOutlined_HolderOutlined.displayName = 'HolderOutlined'; +/* harmony default export */ var icons_HolderOutlined = (/*#__PURE__*/react.forwardRef(HolderOutlined_HolderOutlined)); +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(94184); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); +// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js +var context = __webpack_require__(53124); +// EXTERNAL MODULE: ./node_modules/antd/es/_util/motion.js +var _util_motion = __webpack_require__(33603); +;// CONCATENATED MODULE: ./node_modules/antd/es/tree/utils/dropIndicator.js + + +var offset = 4; +function dropIndicatorRender(props) { + var _style; + var dropPosition = props.dropPosition, + dropLevelOffset = props.dropLevelOffset, + prefixCls = props.prefixCls, + indent = props.indent, + _props$direction = props.direction, + direction = _props$direction === void 0 ? 'ltr' : _props$direction; + var startPosition = direction === 'ltr' ? 'left' : 'right'; + var endPosition = direction === 'ltr' ? 'right' : 'left'; + var style = (_style = {}, (0,defineProperty/* default */.Z)(_style, startPosition, -dropLevelOffset * indent + offset), (0,defineProperty/* default */.Z)(_style, endPosition, 0), _style); + switch (dropPosition) { + case -1: + style.top = -3; + break; + case 1: + style.bottom = -3; + break; + default: + // dropPosition === 0 + style.bottom = -3; + style[startPosition] = indent + offset; + break; + } + return /*#__PURE__*/react.createElement("div", { + style: style, + className: "".concat(prefixCls, "-drop-indicator") + }); +} +// EXTERNAL MODULE: ./node_modules/antd/es/tree/utils/iconUtil.js + 4 modules +var iconUtil = __webpack_require__(84050); +;// CONCATENATED MODULE: ./node_modules/antd/es/tree/Tree.js + + + + + + + + + + + +var Tree = /*#__PURE__*/react.forwardRef(function (props, ref) { + var _classNames; + var _React$useContext = react.useContext(context/* ConfigContext */.E_), + getPrefixCls = _React$useContext.getPrefixCls, + direction = _React$useContext.direction, + virtual = _React$useContext.virtual; + var customizePrefixCls = props.prefixCls, + className = props.className, + _props$showIcon = props.showIcon, + showIcon = _props$showIcon === void 0 ? false : _props$showIcon, + showLine = props.showLine, + _switcherIcon = props.switcherIcon, + _props$blockNode = props.blockNode, + blockNode = _props$blockNode === void 0 ? false : _props$blockNode, + children = props.children, + _props$checkable = props.checkable, + checkable = _props$checkable === void 0 ? false : _props$checkable, + _props$selectable = props.selectable, + selectable = _props$selectable === void 0 ? true : _props$selectable, + draggable = props.draggable, + _props$motion = props.motion, + motion = _props$motion === void 0 ? (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, _util_motion/* default */.ZP), { + motionAppear: false + }) : _props$motion; + var prefixCls = getPrefixCls('tree', customizePrefixCls); + var newProps = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, props), { + checkable: checkable, + selectable: selectable, + showIcon: showIcon, + motion: motion, + blockNode: blockNode, + showLine: Boolean(showLine), + dropIndicatorRender: dropIndicatorRender + }); + var draggableConfig = react.useMemo(function () { + if (!draggable) { + return false; + } + var mergedDraggable = {}; + switch ((0,esm_typeof/* default */.Z)(draggable)) { + case 'function': + mergedDraggable.nodeDraggable = draggable; + break; + case 'object': + mergedDraggable = (0,esm_extends/* default */.Z)({}, draggable); + break; + default: + break; + // Do nothing + } + + if (mergedDraggable.icon !== false) { + mergedDraggable.icon = mergedDraggable.icon || /*#__PURE__*/react.createElement(icons_HolderOutlined, null); + } + return mergedDraggable; + }, [draggable]); + return /*#__PURE__*/react.createElement(es/* default */.Z, (0,esm_extends/* default */.Z)({ + itemHeight: 20, + ref: ref, + virtual: virtual + }, newProps, { + prefixCls: prefixCls, + className: classnames_default()((_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-icon-hide"), !showIcon), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-block-node"), blockNode), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-unselectable"), !selectable), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className), + direction: direction, + checkable: checkable ? /*#__PURE__*/react.createElement("span", { + className: "".concat(prefixCls, "-checkbox-inner") + }) : checkable, + selectable: selectable, + switcherIcon: function switcherIcon(nodeProps) { + return (0,iconUtil/* default */.Z)(prefixCls, _switcherIcon, showLine, nodeProps); + }, + draggable: draggableConfig + }), children); +}); +/* harmony default export */ var tree_Tree = (Tree); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(74902); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules +var slicedToArray = __webpack_require__(97685); +// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/FileOutlined.js + 1 modules +var FileOutlined = __webpack_require__(5309); +// EXTERNAL MODULE: ./node_modules/@ant-design/icons-svg/es/asn/FolderOpenOutlined.js +var asn_FolderOpenOutlined = __webpack_require__(48898); +;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/FolderOpenOutlined.js + +// GENERATE BY ./scripts/generate.ts +// DON NOT EDIT IT MANUALLY + + + +var FolderOpenOutlined = function FolderOpenOutlined(props, ref) { + return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, { + ref: ref, + icon: asn_FolderOpenOutlined/* default */.Z + })); +}; +FolderOpenOutlined.displayName = 'FolderOpenOutlined'; +/* harmony default export */ var icons_FolderOpenOutlined = (/*#__PURE__*/react.forwardRef(FolderOpenOutlined)); +;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/FolderOutlined.js +// This icon file is generated automatically. +var FolderOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z" } }] }, "name": "folder", "theme": "outlined" }; +/* harmony default export */ var asn_FolderOutlined = (FolderOutlined); + +;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/FolderOutlined.js + +// GENERATE BY ./scripts/generate.ts +// DON NOT EDIT IT MANUALLY + + + +var FolderOutlined_FolderOutlined = function FolderOutlined(props, ref) { + return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, { + ref: ref, + icon: asn_FolderOutlined + })); +}; +FolderOutlined_FolderOutlined.displayName = 'FolderOutlined'; +/* harmony default export */ var icons_FolderOutlined = (/*#__PURE__*/react.forwardRef(FolderOutlined_FolderOutlined)); +// EXTERNAL MODULE: ./node_modules/rc-tree/es/util.js +var util = __webpack_require__(10225); +// EXTERNAL MODULE: ./node_modules/rc-tree/es/utils/treeUtil.js +var treeUtil = __webpack_require__(1089); +;// CONCATENATED MODULE: ./node_modules/antd/es/tree/utils/dictUtil.js + +var Record; +(function (Record) { + Record[Record["None"] = 0] = "None"; + Record[Record["Start"] = 1] = "Start"; + Record[Record["End"] = 2] = "End"; +})(Record || (Record = {})); +function traverseNodesKey(treeData, callback) { + function processNode(dataNode) { + var key = dataNode.key, + children = dataNode.children; + if (callback(key, dataNode) !== false) { + traverseNodesKey(children || [], callback); + } + } + treeData.forEach(processNode); +} +/** 计算选中范围,只考虑expanded情况以优化性能 */ +function calcRangeKeys(_ref) { + var treeData = _ref.treeData, + expandedKeys = _ref.expandedKeys, + startKey = _ref.startKey, + endKey = _ref.endKey; + var keys = []; + var record = Record.None; + if (startKey && startKey === endKey) { + return [startKey]; + } + if (!startKey || !endKey) { + return []; + } + function matchKey(key) { + return key === startKey || key === endKey; + } + traverseNodesKey(treeData, function (key) { + if (record === Record.End) { + return false; + } + if (matchKey(key)) { + // Match test + keys.push(key); + if (record === Record.None) { + record = Record.Start; + } else if (record === Record.Start) { + record = Record.End; + return false; + } + } else if (record === Record.Start) { + // Append selection + keys.push(key); + } + return expandedKeys.includes(key); + }); + return keys; +} +function convertDirectoryKeysToNodes(treeData, keys) { + var restKeys = (0,toConsumableArray/* default */.Z)(keys); + var nodes = []; + traverseNodesKey(treeData, function (key, node) { + var index = restKeys.indexOf(key); + if (index !== -1) { + nodes.push(node); + restKeys.splice(index, 1); + } + return !!restKeys.length; + }); + return nodes; +} +;// CONCATENATED MODULE: ./node_modules/antd/es/tree/DirectoryTree.js + + + + +var __rest = undefined && undefined.__rest || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; + } + return t; +}; + + + + + + + + + + +function getIcon(props) { + var isLeaf = props.isLeaf, + expanded = props.expanded; + if (isLeaf) { + return /*#__PURE__*/react.createElement(FileOutlined/* default */.Z, null); + } + return expanded ? /*#__PURE__*/react.createElement(icons_FolderOpenOutlined, null) : /*#__PURE__*/react.createElement(icons_FolderOutlined, null); +} +function getTreeData(_ref) { + var treeData = _ref.treeData, + children = _ref.children; + return treeData || (0,treeUtil/* convertTreeToData */.zn)(children); +} +var DirectoryTree = function DirectoryTree(_a, ref) { + var defaultExpandAll = _a.defaultExpandAll, + defaultExpandParent = _a.defaultExpandParent, + defaultExpandedKeys = _a.defaultExpandedKeys, + props = __rest(_a, ["defaultExpandAll", "defaultExpandParent", "defaultExpandedKeys"]); + // Shift click usage + var lastSelectedKey = react.useRef(); + var cachedSelectedKeys = react.useRef(); + var getInitExpandedKeys = function getInitExpandedKeys() { + var _convertDataToEntitie = (0,treeUtil/* convertDataToEntities */.I8)(getTreeData(props)), + keyEntities = _convertDataToEntitie.keyEntities; + var initExpandedKeys; + // Expanded keys + if (defaultExpandAll) { + initExpandedKeys = Object.keys(keyEntities); + } else if (defaultExpandParent) { + initExpandedKeys = (0,util/* conductExpandParent */.r7)(props.expandedKeys || defaultExpandedKeys || [], keyEntities); + } else { + initExpandedKeys = props.expandedKeys || defaultExpandedKeys; + } + return initExpandedKeys; + }; + var _React$useState = react.useState(props.selectedKeys || props.defaultSelectedKeys || []), + _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2), + selectedKeys = _React$useState2[0], + setSelectedKeys = _React$useState2[1]; + var _React$useState3 = react.useState(function () { + return getInitExpandedKeys(); + }), + _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2), + expandedKeys = _React$useState4[0], + setExpandedKeys = _React$useState4[1]; + react.useEffect(function () { + if ('selectedKeys' in props) { + setSelectedKeys(props.selectedKeys); + } + }, [props.selectedKeys]); + react.useEffect(function () { + if ('expandedKeys' in props) { + setExpandedKeys(props.expandedKeys); + } + }, [props.expandedKeys]); + var onExpand = function onExpand(keys, info) { + var _a; + if (!('expandedKeys' in props)) { + setExpandedKeys(keys); + } + // Call origin function + return (_a = props.onExpand) === null || _a === void 0 ? void 0 : _a.call(props, keys, info); + }; + var onSelect = function onSelect(keys, event) { + var _a; + var multiple = props.multiple; + var node = event.node, + nativeEvent = event.nativeEvent; + var _node$key = node.key, + key = _node$key === void 0 ? '' : _node$key; + var treeData = getTreeData(props); + // const newState: DirectoryTreeState = {}; + // We need wrap this event since some value is not same + var newEvent = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, event), { + selected: true + }); + // Windows / Mac single pick + var ctrlPick = (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.ctrlKey) || (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.metaKey); + var shiftPick = nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.shiftKey; + // Generate new selected keys + var newSelectedKeys; + if (multiple && ctrlPick) { + // Control click + newSelectedKeys = keys; + lastSelectedKey.current = key; + cachedSelectedKeys.current = newSelectedKeys; + newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys); + } else if (multiple && shiftPick) { + // Shift click + newSelectedKeys = Array.from(new Set([].concat((0,toConsumableArray/* default */.Z)(cachedSelectedKeys.current || []), (0,toConsumableArray/* default */.Z)(calcRangeKeys({ + treeData: treeData, + expandedKeys: expandedKeys, + startKey: key, + endKey: lastSelectedKey.current + }))))); + newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys); + } else { + // Single click + newSelectedKeys = [key]; + lastSelectedKey.current = key; + cachedSelectedKeys.current = newSelectedKeys; + newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys); + } + (_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, newSelectedKeys, newEvent); + if (!('selectedKeys' in props)) { + setSelectedKeys(newSelectedKeys); + } + }; + var _React$useContext = react.useContext(context/* ConfigContext */.E_), + getPrefixCls = _React$useContext.getPrefixCls, + direction = _React$useContext.direction; + var customizePrefixCls = props.prefixCls, + className = props.className, + _props$showIcon = props.showIcon, + showIcon = _props$showIcon === void 0 ? true : _props$showIcon, + _props$expandAction = props.expandAction, + expandAction = _props$expandAction === void 0 ? 'click' : _props$expandAction, + otherProps = __rest(props, ["prefixCls", "className", "showIcon", "expandAction"]); + var prefixCls = getPrefixCls('tree', customizePrefixCls); + var connectClassName = classnames_default()("".concat(prefixCls, "-directory"), (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-directory-rtl"), direction === 'rtl'), className); + return /*#__PURE__*/react.createElement(tree_Tree, (0,esm_extends/* default */.Z)({ + icon: getIcon, + ref: ref, + blockNode: true + }, otherProps, { + showIcon: showIcon, + expandAction: expandAction, + prefixCls: prefixCls, + className: connectClassName, + expandedKeys: expandedKeys, + selectedKeys: selectedKeys, + onSelect: onSelect, + onExpand: onExpand + })); +}; +var ForwardDirectoryTree = /*#__PURE__*/react.forwardRef(DirectoryTree); +if (false) {} +/* harmony default export */ var tree_DirectoryTree = (ForwardDirectoryTree); +;// CONCATENATED MODULE: ./node_modules/antd/es/tree/index.js + + + +var es_tree_Tree = tree_Tree; +es_tree_Tree.DirectoryTree = tree_DirectoryTree; +es_tree_Tree.TreeNode = es/* TreeNode */.O; +/* harmony default export */ var tree = (es_tree_Tree); + +/***/ }), + +/***/ 62216: +/*!**************************************************************!*\ + !*** ./node_modules/antd/es/tree/style/index.js + 1 modules ***! + \**************************************************************/ +/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) { + + +// EXTERNAL MODULE: ./node_modules/antd/es/style/default.less +var style_default = __webpack_require__(43146); +;// CONCATENATED MODULE: ./node_modules/antd/es/tree/style/index.less +// extracted by mini-css-extract-plugin + +;// CONCATENATED MODULE: ./node_modules/antd/es/tree/style/index.js + + + +/***/ }), + +/***/ 7124: +/*!**********************************************************************************************!*\ + !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***! + \**********************************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + "Z": function() { return /* binding */ icons_EyeOutlined; } +}); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js +var objectSpread2 = __webpack_require__(1413); +// EXTERNAL MODULE: ./node_modules/react/index.js +var react = __webpack_require__(67294); +;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/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/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 3 modules +var AntdIcon = __webpack_require__(93771); +;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EyeOutlined.js + +// GENERATE BY ./scripts/generate.ts +// DON NOT EDIT IT MANUALLY + + + +var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) { + return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, { + ref: ref, + icon: asn_EyeOutlined + })); +}; +EyeOutlined_EyeOutlined.displayName = 'EyeOutlined'; +/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined)); + +/***/ }) + +}]); \ No newline at end of file diff --git a/83225.chunk.css b/27078.chunk.css similarity index 57% rename from 83225.chunk.css rename to 27078.chunk.css index 35562e8623..e54d631e5d 100644 --- a/83225.chunk.css +++ b/27078.chunk.css @@ -1,11 +1,11 @@ -/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/pagination/style/index.less ***! - \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/popover/style/index.less ***! + \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable no-duplicate-selectors */ /* stylelint-disable */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.ant-pagination { +.ant-popover { box-sizing: border-box; margin: 0; padding: 0; @@ -15,545 +15,318 @@ line-height: 1.66667; list-style: none; font-feature-settings: tnum, "tnum"; + position: absolute; + top: 0; + left: 0; + z-index: 1030; + font-weight: normal; + white-space: normal; + text-align: left; + cursor: auto; + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; } -.ant-pagination ul, -.ant-pagination ol { - margin: 0; - padding: 0; - list-style: none; -} -.ant-pagination::after { - display: block; - clear: both; - height: 0; - overflow: hidden; - visibility: hidden; - content: ' '; +.ant-popover-content { + position: relative; } -.ant-pagination-total-text { - display: inline-block; - height: 28px; - margin-right: 8px; - line-height: 26px; - vertical-align: middle; +.ant-popover::after { + position: absolute; + background: rgba(255, 255, 255, 0.01); + content: ''; } -.ant-pagination-item { - display: inline-block; - min-width: 28px; - height: 28px; - margin-right: 8px; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; - line-height: 26px; - text-align: center; - vertical-align: middle; - list-style: none; - background-color: #fff; - border: 1px solid #d9d9d9; - border-radius: 2px; - outline: 0; - cursor: pointer; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; +.ant-popover-hidden { + display: none; } -.ant-pagination-item a { - display: block; - padding: 0 6px; - color: rgba(0, 0, 0, 0.85); - transition: none; +.ant-popover-placement-top, +.ant-popover-placement-topLeft, +.ant-popover-placement-topRight { + padding-bottom: 15.3137085px; } -.ant-pagination-item a:hover { - text-decoration: none; +.ant-popover-placement-right, +.ant-popover-placement-rightTop, +.ant-popover-placement-rightBottom { + padding-left: 15.3137085px; } -.ant-pagination-item:hover { - border-color: #1890ff; - transition: all 0.3s; +.ant-popover-placement-bottom, +.ant-popover-placement-bottomLeft, +.ant-popover-placement-bottomRight { + padding-top: 15.3137085px; } -.ant-pagination-item:hover a { - color: #1890ff; +.ant-popover-placement-left, +.ant-popover-placement-leftTop, +.ant-popover-placement-leftBottom { + padding-right: 15.3137085px; } -.ant-pagination-item:focus-visible { - border-color: #1890ff; - transition: all 0.3s; +.ant-popover-inner { + background-color: #fff; + background-clip: padding-box; + border-radius: 2px; + box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05); } -.ant-pagination-item:focus-visible a { - color: #1890ff; +@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { + .ant-popover { + /* IE10+ */ + } + .ant-popover-inner { + box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05); + } } -.ant-pagination-item-active { +.ant-popover-title { + min-width: 177px; + min-height: 28px; + margin: 0; + padding: 5px 12px 4px; + color: rgba(0, 0, 0, 0.85); font-weight: 500; - background: #fff; - border-color: #1890ff; -} -.ant-pagination-item-active a { - color: #1890ff; -} -.ant-pagination-item-active:hover { - border-color: #40a9ff; -} -.ant-pagination-item-active:focus-visible { - border-color: #40a9ff; + border-bottom: 1px solid #f0f0f0; } -.ant-pagination-item-active:hover a { - color: #40a9ff; +.ant-popover-inner-content { + padding: 8px 12px; + color: rgba(0, 0, 0, 0.85); } -.ant-pagination-item-active:focus-visible a { - color: #40a9ff; +.ant-popover-message { + display: flex; + padding: 4px 0 12px; + color: rgba(0, 0, 0, 0.85); + font-size: 12px; } -.ant-pagination-jump-prev, -.ant-pagination-jump-next { - outline: 0; +.ant-popover-message-icon { + display: inline-block; + margin-right: 8px; + color: #faad14; + font-size: 12px; } -.ant-pagination-jump-prev .ant-pagination-item-container, -.ant-pagination-jump-next .ant-pagination-item-container { - position: relative; +.ant-popover-buttons { + margin-bottom: 4px; + text-align: right; } -.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon, -.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon { - color: #1890ff; - font-size: 12px; - letter-spacing: -1px; - opacity: 0; - transition: all 0.2s; +.ant-popover-buttons button:not(:first-child) { + margin-left: 8px; } -.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon-svg, -.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon-svg { - top: 0; - right: 0; - bottom: 0; - left: 0; - margin: auto; +.ant-popover-arrow { + position: absolute; + display: block; + width: 22px; + height: 22px; + overflow: hidden; + background: transparent; + pointer-events: none; } -.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-ellipsis, -.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-ellipsis { +.ant-popover-arrow-content { + --antd-arrow-background-color: #fff; position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; + width: 11.3137085px; + height: 11.3137085px; margin: auto; - color: rgba(0, 0, 0, 0.25); - font-family: Arial, Helvetica, sans-serif; - letter-spacing: 2px; - text-align: center; - text-indent: 0.13em; - opacity: 1; - transition: all 0.2s; -} -.ant-pagination-jump-prev:hover .ant-pagination-item-link-icon, -.ant-pagination-jump-next:hover .ant-pagination-item-link-icon { - opacity: 1; -} -.ant-pagination-jump-prev:hover .ant-pagination-item-ellipsis, -.ant-pagination-jump-next:hover .ant-pagination-item-ellipsis { - opacity: 0; + content: ''; + pointer-events: auto; + border-radius: 0 0 2px; + pointer-events: none; } -.ant-pagination-jump-prev:focus-visible .ant-pagination-item-link-icon, -.ant-pagination-jump-next:focus-visible .ant-pagination-item-link-icon { - opacity: 1; +.ant-popover-arrow-content::before { + position: absolute; + top: -11.3137085px; + left: -11.3137085px; + width: 33.9411255px; + height: 33.9411255px; + background: var(--antd-arrow-background-color); + background-repeat: no-repeat; + background-position: -10px -10px; + content: ''; + -webkit-clip-path: inset(33% 33%); + clip-path: inset(33% 33%); + -webkit-clip-path: path('M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z'); + clip-path: path('M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z'); } -.ant-pagination-jump-prev:focus-visible .ant-pagination-item-ellipsis, -.ant-pagination-jump-next:focus-visible .ant-pagination-item-ellipsis { - opacity: 0; +.ant-popover-placement-top .ant-popover-arrow, +.ant-popover-placement-topLeft .ant-popover-arrow, +.ant-popover-placement-topRight .ant-popover-arrow { + bottom: 0; + transform: translateY(100%); } -.ant-pagination-prev, -.ant-pagination-jump-prev, -.ant-pagination-jump-next { - margin-right: 8px; +.ant-popover-placement-top .ant-popover-arrow-content, +.ant-popover-placement-topLeft .ant-popover-arrow-content, +.ant-popover-placement-topRight .ant-popover-arrow-content { + box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07); + transform: translateY(-11px) rotate(45deg); } -.ant-pagination-prev, -.ant-pagination-next, -.ant-pagination-jump-prev, -.ant-pagination-jump-next { - display: inline-block; - min-width: 28px; - height: 28px; - color: rgba(0, 0, 0, 0.85); - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; - line-height: 28px; - text-align: center; - vertical-align: middle; - list-style: none; - border-radius: 2px; - cursor: pointer; - transition: all 0.3s; +.ant-popover-placement-top .ant-popover-arrow { + left: 50%; + transform: translateY(100%) translateX(-50%); } -.ant-pagination-prev, -.ant-pagination-next { - font-family: Arial, Helvetica, sans-serif; - outline: 0; +.ant-popover-placement-topLeft .ant-popover-arrow { + left: 16px; } -.ant-pagination-prev button, -.ant-pagination-next button { - color: rgba(0, 0, 0, 0.85); - cursor: pointer; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; +.ant-popover-placement-topRight .ant-popover-arrow { + right: 16px; } -.ant-pagination-prev:hover button, -.ant-pagination-next:hover button { - border-color: #40a9ff; +.ant-popover-placement-right .ant-popover-arrow, +.ant-popover-placement-rightTop .ant-popover-arrow, +.ant-popover-placement-rightBottom .ant-popover-arrow { + left: 0; + transform: translateX(-100%); } -.ant-pagination-prev .ant-pagination-item-link, -.ant-pagination-next .ant-pagination-item-link { - display: block; - width: 100%; - height: 100%; - padding: 0; - font-size: 12px; - text-align: center; - background-color: #fff; - border: 1px solid #d9d9d9; - border-radius: 2px; - outline: none; - transition: all 0.3s; +.ant-popover-placement-right .ant-popover-arrow-content, +.ant-popover-placement-rightTop .ant-popover-arrow-content, +.ant-popover-placement-rightBottom .ant-popover-arrow-content { + box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07); + transform: translateX(11px) rotate(135deg); } -.ant-pagination-prev:focus-visible .ant-pagination-item-link, -.ant-pagination-next:focus-visible .ant-pagination-item-link { - color: #1890ff; - border-color: #1890ff; +.ant-popover-placement-right .ant-popover-arrow { + top: 50%; + transform: translateX(-100%) translateY(-50%); } -.ant-pagination-prev:hover .ant-pagination-item-link, -.ant-pagination-next:hover .ant-pagination-item-link { - color: #1890ff; - border-color: #1890ff; +.ant-popover-placement-rightTop .ant-popover-arrow { + top: 12px; } -.ant-pagination-disabled, -.ant-pagination-disabled:hover { - cursor: not-allowed; +.ant-popover-placement-rightBottom .ant-popover-arrow { + bottom: 12px; } -.ant-pagination-disabled .ant-pagination-item-link, -.ant-pagination-disabled:hover .ant-pagination-item-link { - color: rgba(0, 0, 0, 0.25); - border-color: #d9d9d9; - cursor: not-allowed; +.ant-popover-placement-bottom .ant-popover-arrow, +.ant-popover-placement-bottomLeft .ant-popover-arrow, +.ant-popover-placement-bottomRight .ant-popover-arrow { + top: 0; + transform: translateY(-100%); } -.ant-pagination-disabled:focus-visible { - cursor: not-allowed; +.ant-popover-placement-bottom .ant-popover-arrow-content, +.ant-popover-placement-bottomLeft .ant-popover-arrow-content, +.ant-popover-placement-bottomRight .ant-popover-arrow-content { + box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.06); + transform: translateY(11px) rotate(-135deg); } -.ant-pagination-disabled:focus-visible .ant-pagination-item-link { - color: rgba(0, 0, 0, 0.25); - border-color: #d9d9d9; - cursor: not-allowed; +.ant-popover-placement-bottom .ant-popover-arrow { + left: 50%; + transform: translateY(-100%) translateX(-50%); } -.ant-pagination-slash { - margin: 0 10px 0 5px; +.ant-popover-placement-bottomLeft .ant-popover-arrow { + left: 16px; } -.ant-pagination-options { - display: inline-block; - margin-left: 16px; - vertical-align: middle; +.ant-popover-placement-bottomRight .ant-popover-arrow { + right: 16px; } -@media all and (-ms-high-contrast: none) { - .ant-pagination-options *::-ms-backdrop, - .ant-pagination-options { - vertical-align: top; - } -} -.ant-pagination-options-size-changer.ant-select { - display: inline-block; - width: auto; -} -.ant-pagination-options-quick-jumper { - display: inline-block; - height: 28px; - margin-left: 4px; - line-height: 28px; - vertical-align: top; -} -.ant-pagination-options-quick-jumper input { - position: relative; - display: inline-block; - width: 100%; - min-width: 0; - padding: 3px 7px; - color: rgba(0, 0, 0, 0.85); - font-size: 12px; - line-height: 1.66667; - background-color: #fff; - background-image: none; - border: 1px solid #d9d9d9; - border-radius: 2px; - transition: all 0.3s; - width: 50px; - height: 28px; - margin: 0 8px; -} -.ant-pagination-options-quick-jumper input::-webkit-input-placeholder { - color: #bfbfbf; - -webkit-user-select: none; - user-select: none; -} -.ant-pagination-options-quick-jumper input:-ms-input-placeholder { - color: #bfbfbf; - -ms-user-select: none; - user-select: none; -} -.ant-pagination-options-quick-jumper input::-ms-input-placeholder { - color: #bfbfbf; - -ms-user-select: none; - user-select: none; -} -.ant-pagination-options-quick-jumper input::placeholder { - color: #bfbfbf; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} -.ant-pagination-options-quick-jumper input:-ms-input-placeholder { - text-overflow: ellipsis; -} -.ant-pagination-options-quick-jumper input:placeholder-shown { - text-overflow: ellipsis; -} -.ant-pagination-options-quick-jumper input:hover { - border-color: #40a9ff; - border-right-width: 1px; -} -.ant-pagination-options-quick-jumper input:focus, -.ant-pagination-options-quick-jumper input-focused { - border-color: #40a9ff; - box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2); - border-right-width: 1px; - outline: 0; -} -.ant-pagination-options-quick-jumper input-disabled { - color: rgba(0, 0, 0, 0.25); - background-color: #f5f5f5; - border-color: #d9d9d9; - box-shadow: none; - cursor: not-allowed; - opacity: 1; -} -.ant-pagination-options-quick-jumper input-disabled:hover { - border-color: #d9d9d9; - border-right-width: 1px; -} -.ant-pagination-options-quick-jumper input[disabled] { - color: rgba(0, 0, 0, 0.25); - background-color: #f5f5f5; - border-color: #d9d9d9; - box-shadow: none; - cursor: not-allowed; - opacity: 1; -} -.ant-pagination-options-quick-jumper input[disabled]:hover { - border-color: #d9d9d9; - border-right-width: 1px; -} -.ant-pagination-options-quick-jumper input-borderless, -.ant-pagination-options-quick-jumper input-borderless:hover, -.ant-pagination-options-quick-jumper input-borderless:focus, -.ant-pagination-options-quick-jumper input-borderless-focused, -.ant-pagination-options-quick-jumper input-borderless-disabled, -.ant-pagination-options-quick-jumper input-borderless[disabled] { - background-color: transparent; - border: none; - box-shadow: none; -} -textarea.ant-pagination-options-quick-jumper input { - max-width: 100%; - height: auto; - min-height: 28px; - line-height: 1.66667; - vertical-align: bottom; - transition: all 0.3s, height 0s; -} -.ant-pagination-options-quick-jumper input-lg { - padding: 3.4px 11px; - font-size: 14px; -} -.ant-pagination-options-quick-jumper input-sm { - padding: 0px 7px; -} -.ant-pagination-simple .ant-pagination-prev, -.ant-pagination-simple .ant-pagination-next { - height: 22px; - line-height: 22px; - vertical-align: top; -} -.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link, -.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link { - height: 22px; - background-color: transparent; - border: 0; -} -.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link::after, -.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link::after { - height: 22px; - line-height: 22px; -} -.ant-pagination-simple .ant-pagination-simple-pager { - display: inline-block; - height: 22px; - margin-right: 8px; +.ant-popover-placement-left .ant-popover-arrow, +.ant-popover-placement-leftTop .ant-popover-arrow, +.ant-popover-placement-leftBottom .ant-popover-arrow { + right: 0; + transform: translateX(100%); } -.ant-pagination-simple .ant-pagination-simple-pager input { - box-sizing: border-box; - height: 100%; - margin-right: 8px; - padding: 0 6px; - text-align: center; - background-color: #fff; - border: 1px solid #d9d9d9; - border-radius: 2px; - outline: none; - transition: border-color 0.3s; +.ant-popover-placement-left .ant-popover-arrow-content, +.ant-popover-placement-leftTop .ant-popover-arrow-content, +.ant-popover-placement-leftBottom .ant-popover-arrow-content { + box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07); + transform: translateX(-11px) rotate(-45deg); } -.ant-pagination-simple .ant-pagination-simple-pager input:hover { - border-color: #1890ff; +.ant-popover-placement-left .ant-popover-arrow { + top: 50%; + transform: translateX(100%) translateY(-50%); } -.ant-pagination-simple .ant-pagination-simple-pager input:focus { - border-color: #40a9ff; - box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2); +.ant-popover-placement-leftTop .ant-popover-arrow { + top: 12px; } -.ant-pagination-simple .ant-pagination-simple-pager input[disabled] { - color: rgba(0, 0, 0, 0.25); - background: #f5f5f5; - border-color: #d9d9d9; - cursor: not-allowed; +.ant-popover-placement-leftBottom .ant-popover-arrow { + bottom: 12px; } -.ant-pagination.ant-pagination-mini .ant-pagination-total-text, -.ant-pagination.ant-pagination-mini .ant-pagination-simple-pager { - height: 22px; - line-height: 22px; +.ant-popover-pink .ant-popover-inner { + background-color: #eb2f96; } -.ant-pagination.ant-pagination-mini .ant-pagination-item { - min-width: 22px; - height: 22px; - margin: 0; - line-height: 20px; +.ant-popover-pink .ant-popover-arrow-content { + background-color: #eb2f96; } -.ant-pagination.ant-pagination-mini .ant-pagination-item:not(.ant-pagination-item-active) { - background: transparent; - border-color: transparent; +.ant-popover-magenta .ant-popover-inner { + background-color: #eb2f96; } -.ant-pagination.ant-pagination-mini .ant-pagination-prev, -.ant-pagination.ant-pagination-mini .ant-pagination-next { - min-width: 22px; - height: 22px; - margin: 0; - line-height: 22px; +.ant-popover-magenta .ant-popover-arrow-content { + background-color: #eb2f96; } -.ant-pagination.ant-pagination-mini .ant-pagination-prev .ant-pagination-item-link, -.ant-pagination.ant-pagination-mini .ant-pagination-next .ant-pagination-item-link { - background: transparent; - border-color: transparent; +.ant-popover-red .ant-popover-inner { + background-color: #f5222d; } -.ant-pagination.ant-pagination-mini .ant-pagination-prev .ant-pagination-item-link::after, -.ant-pagination.ant-pagination-mini .ant-pagination-next .ant-pagination-item-link::after { - height: 22px; - line-height: 22px; +.ant-popover-red .ant-popover-arrow-content { + background-color: #f5222d; } -.ant-pagination.ant-pagination-mini .ant-pagination-jump-prev, -.ant-pagination.ant-pagination-mini .ant-pagination-jump-next { - height: 22px; - margin-right: 0; - line-height: 22px; +.ant-popover-volcano .ant-popover-inner { + background-color: #fa541c; } -.ant-pagination.ant-pagination-mini .ant-pagination-options { - margin-left: 2px; +.ant-popover-volcano .ant-popover-arrow-content { + background-color: #fa541c; } -.ant-pagination.ant-pagination-mini .ant-pagination-options-size-changer { - top: 1px; +.ant-popover-orange .ant-popover-inner { + background-color: #fa8c16; } -.ant-pagination.ant-pagination-mini .ant-pagination-options-quick-jumper { - height: 22px; - line-height: 22px; +.ant-popover-orange .ant-popover-arrow-content { + background-color: #fa8c16; } -.ant-pagination.ant-pagination-mini .ant-pagination-options-quick-jumper input { - padding: 0px 7px; - width: 44px; - height: 22px; +.ant-popover-yellow .ant-popover-inner { + background-color: #fadb14; } -.ant-pagination.ant-pagination-disabled { - cursor: not-allowed; +.ant-popover-yellow .ant-popover-arrow-content { + background-color: #fadb14; } -.ant-pagination.ant-pagination-disabled .ant-pagination-item { - background: #f5f5f5; - border-color: #d9d9d9; - cursor: not-allowed; +.ant-popover-gold .ant-popover-inner { + background-color: #faad14; } -.ant-pagination.ant-pagination-disabled .ant-pagination-item a { - color: rgba(0, 0, 0, 0.25); - background: transparent; - border: none; - cursor: not-allowed; +.ant-popover-gold .ant-popover-arrow-content { + background-color: #faad14; } -.ant-pagination.ant-pagination-disabled .ant-pagination-item-active { - background: #e6e6e6; +.ant-popover-cyan .ant-popover-inner { + background-color: #13c2c2; } -.ant-pagination.ant-pagination-disabled .ant-pagination-item-active a { - color: rgba(0, 0, 0, 0.25); +.ant-popover-cyan .ant-popover-arrow-content { + background-color: #13c2c2; } -.ant-pagination.ant-pagination-disabled .ant-pagination-item-link { - color: rgba(0, 0, 0, 0.25); - background: #f5f5f5; - border-color: #d9d9d9; - cursor: not-allowed; +.ant-popover-lime .ant-popover-inner { + background-color: #a0d911; } -.ant-pagination-simple.ant-pagination.ant-pagination-disabled .ant-pagination-item-link { - background: transparent; +.ant-popover-lime .ant-popover-arrow-content { + background-color: #a0d911; } -.ant-pagination.ant-pagination-disabled .ant-pagination-item-link-icon { - opacity: 0; +.ant-popover-green .ant-popover-inner { + background-color: #52c41a; } -.ant-pagination.ant-pagination-disabled .ant-pagination-item-ellipsis { - opacity: 1; +.ant-popover-green .ant-popover-arrow-content { + background-color: #52c41a; } -.ant-pagination.ant-pagination-disabled .ant-pagination-simple-pager { - color: rgba(0, 0, 0, 0.25); +.ant-popover-blue .ant-popover-inner { + background-color: #1890ff; } -@media only screen and (max-width: 992px) { - .ant-pagination-item-after-jump-prev, - .ant-pagination-item-before-jump-next { - display: none; - } +.ant-popover-blue .ant-popover-arrow-content { + background-color: #1890ff; } -@media only screen and (max-width: 576px) { - .ant-pagination-options { - display: none; - } +.ant-popover-geekblue .ant-popover-inner { + background-color: #2f54eb; } -.ant-pagination-rtl .ant-pagination-total-text { - margin-right: 0; - margin-left: 8px; +.ant-popover-geekblue .ant-popover-arrow-content { + background-color: #2f54eb; } -.ant-pagination-rtl .ant-pagination-item, -.ant-pagination-rtl .ant-pagination-prev, -.ant-pagination-rtl .ant-pagination-jump-prev, -.ant-pagination-rtl .ant-pagination-jump-next { - margin-right: 0; - margin-left: 8px; +.ant-popover-purple .ant-popover-inner { + background-color: #722ed1; } -.ant-pagination-rtl .ant-pagination-slash { - margin: 0 5px 0 10px; +.ant-popover-purple .ant-popover-arrow-content { + background-color: #722ed1; } -.ant-pagination-rtl .ant-pagination-options { - margin-right: 16px; - margin-left: 0; +.ant-popover-rtl { + direction: rtl; + text-align: right; } -.ant-pagination-rtl .ant-pagination-options .ant-pagination-options-size-changer.ant-select { +.ant-popover-rtl .ant-popover-message-icon { margin-right: 0; margin-left: 8px; } -.ant-pagination-rtl .ant-pagination-options .ant-pagination-options-quick-jumper { - margin-left: 0; -} -.ant-pagination-rtl.ant-pagination-simple .ant-pagination-simple-pager { - margin-right: 0; - margin-left: 8px; +.ant-popover-rtl .ant-popover-message-title { + padding-left: 8px; } -.ant-pagination-rtl.ant-pagination-simple .ant-pagination-simple-pager input { - margin-right: 0; - margin-left: 8px; +.ant-popover-rtl .ant-popover-buttons { + text-align: left; } -.ant-pagination-rtl.ant-pagination.mini .ant-pagination-options { - margin-right: 2px; +.ant-popover-rtl .ant-popover-buttons button { + margin-right: 8px; margin-left: 0; } /* stylelint-disable no-duplicate-selectors */ @@ -940,581 +713,162 @@ textarea.ant-pagination-options-quick-jumper input { .ant-tree-switcher .ant-select-tree-switcher-icon { display: inline-block; font-size: 10px; - vertical-align: baseline; -} -.ant-tree-switcher .ant-tree-switcher-icon svg, -.ant-tree-switcher .ant-select-tree-switcher-icon svg { - transition: transform 0.3s; -} -.ant-tree-switcher-noop { - cursor: default; -} -.ant-tree-switcher_close .ant-tree-switcher-icon svg { - transform: rotate(-90deg); -} -.ant-tree-switcher-loading-icon { - color: #1890ff; -} -.ant-tree-switcher-leaf-line { - position: relative; - z-index: 1; - display: inline-block; - width: 100%; - height: 100%; -} -.ant-tree-switcher-leaf-line::before { - position: absolute; - top: 0; - right: 12px; - bottom: -2px; - margin-left: -1px; - border-right: 1px solid #d9d9d9; - content: ' '; -} -.ant-tree-switcher-leaf-line::after { - position: absolute; - width: 6px; - height: 10px; - border-bottom: 1px solid #d9d9d9; - content: ' '; -} -.ant-tree-checkbox { - top: auto; - top: initial; - margin: 3px 8px 0 0; -} -.ant-tree .ant-tree-node-content-wrapper { - position: relative; - z-index: auto; - min-height: 20px; - margin: 0; - padding: 0 4px; - color: inherit; - line-height: 20px; - background: transparent; - border-radius: 2px; - cursor: pointer; - transition: all 0.3s, border 0s, line-height 0s, box-shadow 0s; -} -.ant-tree .ant-tree-node-content-wrapper:hover { - background-color: #f5f5f5; -} -.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected { - background-color: #bae7ff; -} -.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle { - display: inline-block; - width: 20px; - height: 20px; - line-height: 20px; - text-align: center; - vertical-align: top; -} -.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle:empty { - display: none; -} -.ant-tree-unselectable .ant-tree-node-content-wrapper:hover { - background-color: transparent; -} -.ant-tree-node-content-wrapper { - line-height: 20px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} -.ant-tree-node-content-wrapper .ant-tree-drop-indicator { - position: absolute; - z-index: 1; - height: 2px; - background-color: #1890ff; - border-radius: 1px; - pointer-events: none; -} -.ant-tree-node-content-wrapper .ant-tree-drop-indicator::after { - position: absolute; - top: -3px; - left: -6px; - width: 8px; - height: 8px; - background-color: transparent; - border: 2px solid #1890ff; - border-radius: 50%; - content: ''; -} -.ant-tree .ant-tree-treenode.drop-container > [draggable] { - box-shadow: 0 0 0 2px #1890ff; -} -.ant-tree-show-line .ant-tree-indent-unit { - position: relative; - height: 100%; -} -.ant-tree-show-line .ant-tree-indent-unit::before { - position: absolute; - top: 0; - right: 10px; - bottom: -2px; - border-right: 1px solid #d9d9d9; - content: ''; -} -.ant-tree-show-line .ant-tree-indent-unit-end::before { - display: none; -} -.ant-tree-show-line .ant-tree-switcher { - background: #fff; -} -.ant-tree-show-line .ant-tree-switcher-line-icon { - vertical-align: -0.15em; -} -.ant-tree .ant-tree-treenode-leaf-last .ant-tree-switcher-leaf-line::before { - top: auto !important; - bottom: auto !important; - height: 10px !important; -} -.ant-tree-rtl { - direction: rtl; -} -.ant-tree-rtl .ant-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator::after { - right: -6px; - left: auto; - left: initial; -} -.ant-tree .ant-tree-treenode-rtl { - direction: rtl; -} -.ant-tree-rtl .ant-tree-switcher_close .ant-tree-switcher-icon svg { - transform: rotate(90deg); -} -.ant-tree-rtl.ant-tree-show-line .ant-tree-indent-unit::before { - right: auto; - left: -11px; - border-right: none; - border-left: 1px solid #d9d9d9; -} -.ant-tree-rtl .ant-tree-checkbox { - margin: 3px 0 0 8px; -} -.ant-tree-select-dropdown-rtl .ant-select-tree-checkbox { - margin: 3px 0 0 8px; -} -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ - -/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/breadcrumb/style/index.less ***! - \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.ant-breadcrumb { - box-sizing: border-box; - margin: 0; - padding: 0; - color: rgba(0, 0, 0, 0.85); - font-variant: tabular-nums; - line-height: 1.66667; - list-style: none; - font-feature-settings: tnum, "tnum"; - color: rgba(0, 0, 0, 0.45); - font-size: 12px; -} -.ant-breadcrumb .anticon { - font-size: 12px; -} -.ant-breadcrumb ol { - display: flex; - flex-wrap: wrap; - margin: 0; - padding: 0; - list-style: none; -} -.ant-breadcrumb a { - color: rgba(0, 0, 0, 0.45); - transition: color 0.3s; -} -.ant-breadcrumb a:hover { - color: rgba(0, 0, 0, 0.85); -} -.ant-breadcrumb li:last-child { - color: rgba(0, 0, 0, 0.85); -} -.ant-breadcrumb li:last-child a { - color: rgba(0, 0, 0, 0.85); -} -li:last-child > .ant-breadcrumb-separator { - display: none; -} -.ant-breadcrumb-separator { - margin: 0 4px; - color: rgba(0, 0, 0, 0.45); -} -.ant-breadcrumb-link > .anticon + span, -.ant-breadcrumb-link > .anticon + a { - margin-left: 4px; -} -.ant-breadcrumb-overlay-link > .anticon { - margin-left: 4px; -} -.ant-breadcrumb-rtl { - direction: rtl; -} -.ant-breadcrumb-rtl::before { - display: table; - content: ''; -} -.ant-breadcrumb-rtl::after { - display: table; - clear: both; - content: ''; -} -.ant-breadcrumb-rtl > span { - float: right; -} -.ant-breadcrumb-rtl .ant-breadcrumb-link > .anticon + span, -.ant-breadcrumb-rtl .ant-breadcrumb-link > .anticon + a { - margin-right: 4px; - margin-left: 0; -} -.ant-breadcrumb-rtl .ant-breadcrumb-overlay-link > .anticon { - margin-right: 4px; - margin-left: 0; -} -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ - -/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/popover/style/index.less ***! - \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.ant-popover { - box-sizing: border-box; - margin: 0; - padding: 0; - color: rgba(0, 0, 0, 0.85); - font-size: 12px; - font-variant: tabular-nums; - line-height: 1.66667; - list-style: none; - font-feature-settings: tnum, "tnum"; - position: absolute; - top: 0; - left: 0; - z-index: 1030; - font-weight: normal; - white-space: normal; - text-align: left; - cursor: auto; - -webkit-user-select: text; - -moz-user-select: text; - -ms-user-select: text; - user-select: text; -} -.ant-popover-content { - position: relative; -} -.ant-popover::after { - position: absolute; - background: rgba(255, 255, 255, 0.01); - content: ''; -} -.ant-popover-hidden { - display: none; -} -.ant-popover-placement-top, -.ant-popover-placement-topLeft, -.ant-popover-placement-topRight { - padding-bottom: 15.3137085px; -} -.ant-popover-placement-right, -.ant-popover-placement-rightTop, -.ant-popover-placement-rightBottom { - padding-left: 15.3137085px; -} -.ant-popover-placement-bottom, -.ant-popover-placement-bottomLeft, -.ant-popover-placement-bottomRight { - padding-top: 15.3137085px; -} -.ant-popover-placement-left, -.ant-popover-placement-leftTop, -.ant-popover-placement-leftBottom { - padding-right: 15.3137085px; -} -.ant-popover-inner { - background-color: #fff; - background-clip: padding-box; - border-radius: 2px; - box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05); -} -@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { - .ant-popover { - /* IE10+ */ - } - .ant-popover-inner { - box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05); - } -} -.ant-popover-title { - min-width: 177px; - min-height: 28px; - margin: 0; - padding: 5px 12px 4px; - color: rgba(0, 0, 0, 0.85); - font-weight: 500; - border-bottom: 1px solid #f0f0f0; -} -.ant-popover-inner-content { - padding: 8px 12px; - color: rgba(0, 0, 0, 0.85); -} -.ant-popover-message { - display: flex; - padding: 4px 0 12px; - color: rgba(0, 0, 0, 0.85); - font-size: 12px; -} -.ant-popover-message-icon { - display: inline-block; - margin-right: 8px; - color: #faad14; - font-size: 12px; -} -.ant-popover-buttons { - margin-bottom: 4px; - text-align: right; -} -.ant-popover-buttons button:not(:first-child) { - margin-left: 8px; -} -.ant-popover-arrow { - position: absolute; - display: block; - width: 22px; - height: 22px; - overflow: hidden; - background: transparent; - pointer-events: none; -} -.ant-popover-arrow-content { - --antd-arrow-background-color: #fff; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - display: block; - width: 11.3137085px; - height: 11.3137085px; - margin: auto; - content: ''; - pointer-events: auto; - border-radius: 0 0 2px; - pointer-events: none; -} -.ant-popover-arrow-content::before { - position: absolute; - top: -11.3137085px; - left: -11.3137085px; - width: 33.9411255px; - height: 33.9411255px; - background: var(--antd-arrow-background-color); - background-repeat: no-repeat; - background-position: -10px -10px; - content: ''; - -webkit-clip-path: inset(33% 33%); - clip-path: inset(33% 33%); - -webkit-clip-path: path('M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z'); - clip-path: path('M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z'); -} -.ant-popover-placement-top .ant-popover-arrow, -.ant-popover-placement-topLeft .ant-popover-arrow, -.ant-popover-placement-topRight .ant-popover-arrow { - bottom: 0; - transform: translateY(100%); -} -.ant-popover-placement-top .ant-popover-arrow-content, -.ant-popover-placement-topLeft .ant-popover-arrow-content, -.ant-popover-placement-topRight .ant-popover-arrow-content { - box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07); - transform: translateY(-11px) rotate(45deg); -} -.ant-popover-placement-top .ant-popover-arrow { - left: 50%; - transform: translateY(100%) translateX(-50%); -} -.ant-popover-placement-topLeft .ant-popover-arrow { - left: 16px; -} -.ant-popover-placement-topRight .ant-popover-arrow { - right: 16px; -} -.ant-popover-placement-right .ant-popover-arrow, -.ant-popover-placement-rightTop .ant-popover-arrow, -.ant-popover-placement-rightBottom .ant-popover-arrow { - left: 0; - transform: translateX(-100%); -} -.ant-popover-placement-right .ant-popover-arrow-content, -.ant-popover-placement-rightTop .ant-popover-arrow-content, -.ant-popover-placement-rightBottom .ant-popover-arrow-content { - box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07); - transform: translateX(11px) rotate(135deg); -} -.ant-popover-placement-right .ant-popover-arrow { - top: 50%; - transform: translateX(-100%) translateY(-50%); -} -.ant-popover-placement-rightTop .ant-popover-arrow { - top: 12px; -} -.ant-popover-placement-rightBottom .ant-popover-arrow { - bottom: 12px; -} -.ant-popover-placement-bottom .ant-popover-arrow, -.ant-popover-placement-bottomLeft .ant-popover-arrow, -.ant-popover-placement-bottomRight .ant-popover-arrow { - top: 0; - transform: translateY(-100%); -} -.ant-popover-placement-bottom .ant-popover-arrow-content, -.ant-popover-placement-bottomLeft .ant-popover-arrow-content, -.ant-popover-placement-bottomRight .ant-popover-arrow-content { - box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.06); - transform: translateY(11px) rotate(-135deg); -} -.ant-popover-placement-bottom .ant-popover-arrow { - left: 50%; - transform: translateY(-100%) translateX(-50%); -} -.ant-popover-placement-bottomLeft .ant-popover-arrow { - left: 16px; -} -.ant-popover-placement-bottomRight .ant-popover-arrow { - right: 16px; -} -.ant-popover-placement-left .ant-popover-arrow, -.ant-popover-placement-leftTop .ant-popover-arrow, -.ant-popover-placement-leftBottom .ant-popover-arrow { - right: 0; - transform: translateX(100%); -} -.ant-popover-placement-left .ant-popover-arrow-content, -.ant-popover-placement-leftTop .ant-popover-arrow-content, -.ant-popover-placement-leftBottom .ant-popover-arrow-content { - box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07); - transform: translateX(-11px) rotate(-45deg); -} -.ant-popover-placement-left .ant-popover-arrow { - top: 50%; - transform: translateX(100%) translateY(-50%); -} -.ant-popover-placement-leftTop .ant-popover-arrow { - top: 12px; -} -.ant-popover-placement-leftBottom .ant-popover-arrow { - bottom: 12px; + vertical-align: baseline; } -.ant-popover-pink .ant-popover-inner { - background-color: #eb2f96; +.ant-tree-switcher .ant-tree-switcher-icon svg, +.ant-tree-switcher .ant-select-tree-switcher-icon svg { + transition: transform 0.3s; } -.ant-popover-pink .ant-popover-arrow-content { - background-color: #eb2f96; +.ant-tree-switcher-noop { + cursor: default; } -.ant-popover-magenta .ant-popover-inner { - background-color: #eb2f96; +.ant-tree-switcher_close .ant-tree-switcher-icon svg { + transform: rotate(-90deg); } -.ant-popover-magenta .ant-popover-arrow-content { - background-color: #eb2f96; +.ant-tree-switcher-loading-icon { + color: #1890ff; } -.ant-popover-red .ant-popover-inner { - background-color: #f5222d; +.ant-tree-switcher-leaf-line { + position: relative; + z-index: 1; + display: inline-block; + width: 100%; + height: 100%; } -.ant-popover-red .ant-popover-arrow-content { - background-color: #f5222d; +.ant-tree-switcher-leaf-line::before { + position: absolute; + top: 0; + right: 12px; + bottom: -2px; + margin-left: -1px; + border-right: 1px solid #d9d9d9; + content: ' '; } -.ant-popover-volcano .ant-popover-inner { - background-color: #fa541c; +.ant-tree-switcher-leaf-line::after { + position: absolute; + width: 6px; + height: 10px; + border-bottom: 1px solid #d9d9d9; + content: ' '; } -.ant-popover-volcano .ant-popover-arrow-content { - background-color: #fa541c; +.ant-tree-checkbox { + top: auto; + top: initial; + margin: 3px 8px 0 0; } -.ant-popover-orange .ant-popover-inner { - background-color: #fa8c16; +.ant-tree .ant-tree-node-content-wrapper { + position: relative; + z-index: auto; + min-height: 20px; + margin: 0; + padding: 0 4px; + color: inherit; + line-height: 20px; + background: transparent; + border-radius: 2px; + cursor: pointer; + transition: all 0.3s, border 0s, line-height 0s, box-shadow 0s; } -.ant-popover-orange .ant-popover-arrow-content { - background-color: #fa8c16; +.ant-tree .ant-tree-node-content-wrapper:hover { + background-color: #f5f5f5; } -.ant-popover-yellow .ant-popover-inner { - background-color: #fadb14; +.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected { + background-color: #bae7ff; } -.ant-popover-yellow .ant-popover-arrow-content { - background-color: #fadb14; +.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle { + display: inline-block; + width: 20px; + height: 20px; + line-height: 20px; + text-align: center; + vertical-align: top; } -.ant-popover-gold .ant-popover-inner { - background-color: #faad14; +.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle:empty { + display: none; } -.ant-popover-gold .ant-popover-arrow-content { - background-color: #faad14; +.ant-tree-unselectable .ant-tree-node-content-wrapper:hover { + background-color: transparent; } -.ant-popover-cyan .ant-popover-inner { - background-color: #13c2c2; +.ant-tree-node-content-wrapper { + line-height: 20px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } -.ant-popover-cyan .ant-popover-arrow-content { - background-color: #13c2c2; +.ant-tree-node-content-wrapper .ant-tree-drop-indicator { + position: absolute; + z-index: 1; + height: 2px; + background-color: #1890ff; + border-radius: 1px; + pointer-events: none; } -.ant-popover-lime .ant-popover-inner { - background-color: #a0d911; +.ant-tree-node-content-wrapper .ant-tree-drop-indicator::after { + position: absolute; + top: -3px; + left: -6px; + width: 8px; + height: 8px; + background-color: transparent; + border: 2px solid #1890ff; + border-radius: 50%; + content: ''; } -.ant-popover-lime .ant-popover-arrow-content { - background-color: #a0d911; +.ant-tree .ant-tree-treenode.drop-container > [draggable] { + box-shadow: 0 0 0 2px #1890ff; } -.ant-popover-green .ant-popover-inner { - background-color: #52c41a; +.ant-tree-show-line .ant-tree-indent-unit { + position: relative; + height: 100%; } -.ant-popover-green .ant-popover-arrow-content { - background-color: #52c41a; +.ant-tree-show-line .ant-tree-indent-unit::before { + position: absolute; + top: 0; + right: 10px; + bottom: -2px; + border-right: 1px solid #d9d9d9; + content: ''; } -.ant-popover-blue .ant-popover-inner { - background-color: #1890ff; +.ant-tree-show-line .ant-tree-indent-unit-end::before { + display: none; } -.ant-popover-blue .ant-popover-arrow-content { - background-color: #1890ff; +.ant-tree-show-line .ant-tree-switcher { + background: #fff; } -.ant-popover-geekblue .ant-popover-inner { - background-color: #2f54eb; +.ant-tree-show-line .ant-tree-switcher-line-icon { + vertical-align: -0.15em; } -.ant-popover-geekblue .ant-popover-arrow-content { - background-color: #2f54eb; +.ant-tree .ant-tree-treenode-leaf-last .ant-tree-switcher-leaf-line::before { + top: auto !important; + bottom: auto !important; + height: 10px !important; } -.ant-popover-purple .ant-popover-inner { - background-color: #722ed1; +.ant-tree-rtl { + direction: rtl; } -.ant-popover-purple .ant-popover-arrow-content { - background-color: #722ed1; +.ant-tree-rtl .ant-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator::after { + right: -6px; + left: auto; + left: initial; } -.ant-popover-rtl { +.ant-tree .ant-tree-treenode-rtl { direction: rtl; - text-align: right; } -.ant-popover-rtl .ant-popover-message-icon { - margin-right: 0; - margin-left: 8px; +.ant-tree-rtl .ant-tree-switcher_close .ant-tree-switcher-icon svg { + transform: rotate(90deg); } -.ant-popover-rtl .ant-popover-message-title { - padding-left: 8px; +.ant-tree-rtl.ant-tree-show-line .ant-tree-indent-unit::before { + right: auto; + left: -11px; + border-right: none; + border-left: 1px solid #d9d9d9; } -.ant-popover-rtl .ant-popover-buttons { - text-align: left; +.ant-tree-rtl .ant-tree-checkbox { + margin: 3px 0 0 8px; } -.ant-popover-rtl .ant-popover-buttons button { - margin-right: 8px; - margin-left: 0; +.ant-tree-select-dropdown-rtl .ant-select-tree-checkbox { + margin: 3px 0 0 8px; } /* stylelint-disable no-duplicate-selectors */ /* stylelint-disable */ @@ -1792,132 +1146,3 @@ li:last-child > .ant-breadcrumb-separator { /* stylelint-disable */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/divider/style/index.less ***! - \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.ant-divider { - box-sizing: border-box; - margin: 0; - padding: 0; - color: rgba(0, 0, 0, 0.85); - font-size: 12px; - font-variant: tabular-nums; - line-height: 1.66667; - list-style: none; - font-feature-settings: tnum, "tnum"; - border-top: 1px solid rgba(0, 0, 0, 0.06); -} -.ant-divider-vertical { - position: relative; - top: -0.06em; - display: inline-block; - height: 0.9em; - margin: 0 8px; - vertical-align: middle; - border-top: 0; - border-left: 1px solid rgba(0, 0, 0, 0.06); -} -.ant-divider-horizontal { - display: flex; - clear: both; - width: 100%; - min-width: 100%; - margin: 24px 0; -} -.ant-divider-horizontal.ant-divider-with-text { - display: flex; - align-items: center; - margin: 16px 0; - color: rgba(0, 0, 0, 0.85); - font-weight: 500; - font-size: 14px; - white-space: nowrap; - text-align: center; - border-top: 0; - border-top-color: rgba(0, 0, 0, 0.06); -} -.ant-divider-horizontal.ant-divider-with-text::before, -.ant-divider-horizontal.ant-divider-with-text::after { - position: relative; - width: 50%; - border-top: 1px solid transparent; - border-top-color: inherit; - border-bottom: 0; - transform: translateY(50%); - content: ''; -} -.ant-divider-horizontal.ant-divider-with-text-left::before { - width: 5%; -} -.ant-divider-horizontal.ant-divider-with-text-left::after { - width: 95%; -} -.ant-divider-horizontal.ant-divider-with-text-right::before { - width: 95%; -} -.ant-divider-horizontal.ant-divider-with-text-right::after { - width: 5%; -} -.ant-divider-inner-text { - display: inline-block; - padding: 0 1em; -} -.ant-divider-dashed { - background: none; - border-color: rgba(0, 0, 0, 0.06); - border-style: dashed; - border-width: 1px 0 0; -} -.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::before, -.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::after { - border-style: dashed none none; -} -.ant-divider-vertical.ant-divider-dashed { - border-width: 0 0 0 1px; -} -.ant-divider-plain.ant-divider-with-text { - color: rgba(0, 0, 0, 0.85); - font-weight: normal; - font-size: 12px; -} -.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-no-default-orientation-margin-left::before { - width: 0; -} -.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-no-default-orientation-margin-left::after { - width: 100%; -} -.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-no-default-orientation-margin-left .ant-divider-inner-text { - padding-left: 0; -} -.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-no-default-orientation-margin-right::before { - width: 100%; -} -.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-no-default-orientation-margin-right::after { - width: 0; -} -.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-no-default-orientation-margin-right .ant-divider-inner-text { - padding-right: 0; -} -.ant-divider-rtl { - direction: rtl; -} -.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-left::before { - width: 95%; -} -.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-left::after { - width: 5%; -} -.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-right::before { - width: 5%; -} -.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-right::after { - width: 95%; -} -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ - diff --git a/27277.async.js b/27277.async.js index 8d49ab0885..bf03dd16e0 100644 --- a/27277.async.js +++ b/27277.async.js @@ -1,6 +1,6 @@ (self["webpackChunk"] = self["webpackChunk"] || []).push([[27277],{ -/***/ 39300: +/***/ 34804: /*!*****************************************************************!*\ !*** ./node_modules/@ant-design/icons/es/icons/DownOutlined.js ***! \*****************************************************************/ diff --git a/27703.async.js b/27703.async.js index db7e2aa272..bf4b025328 100644 --- a/27703.async.js +++ b/27703.async.js @@ -1,4 +1,4 @@ -(self["webpackChunk"] = self["webpackChunk"] || []).push([[27703,36579,2282,2082,72693,23805,62654,81425],{ +(self["webpackChunk"] = self["webpackChunk"] || []).push([[27703,36579,2282,2082,72693,23805,62654,79256,81425],{ /***/ 7918: /*!******************************************************************************!*\ diff --git a/32030.async.js b/32030.async.js new file mode 100644 index 0000000000..113a071226 --- /dev/null +++ b/32030.async.js @@ -0,0 +1,8822 @@ +"use strict"; +(self["webpackChunk"] = self["webpackChunk"] || []).push([[32030,12768,67570],{ + +/***/ 96403: +/*!*********************************!*\ + !*** ./src/pages/tasks/util.js ***! + \*********************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "Ax": function() { return /* binding */ processTreeData; }, +/* harmony export */ "Ds": function() { return /* binding */ debounce; }, +/* harmony export */ "KI": function() { return /* binding */ apiPref; }, +/* harmony export */ "SI": function() { return /* binding */ getTreeData; }, +/* harmony export */ "f1": function() { return /* binding */ isCompileOk; } +/* harmony export */ }); +/* unused harmony export isProd */ +/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/utils/env */ 59758); + +function isCompileOk(rs) { + var flag = true; + if (rs.length > 0) { + for (var i = 0; i < rs.length; i++) { + if (rs[i].compile_success == 0 || !rs[i].compile_success) { + flag = false; + break; + } + } + } else { + flag = false; + } + return flag; +} +function getTreeData(data) { + var parentKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + var result = []; + for (var i = 0; i < data.length; i++) { + var item = data[i]; + var key = parentKey ? "".concat(parentKey, "/").concat(item.name) : "".concat(item.name); + result.push({ + title: item.name, + isLeaf: item.type === 'tree' ? false : true, + key: key + }); + } + return result; +} +function processTreeData(repos, key, newData) { + for (var i = 0; i < repos.length; i++) { + var item = repos[i]; + if (item.key === key) { + item.children = newData; + break; + } + if (item.children) { + processTreeData(item.children, key, newData); + } + } + return repos; +} +function debounce(func, wait, immediate) { + var timeout; + return function () { + var context = this, + args = arguments; + var later = function later() { + timeout = null; + if (!immediate) func.apply(context, args); + }; + var callNow = immediate && !timeout; + clearTimeout(timeout); + timeout = setTimeout(later, wait); + if (callNow) func.apply(context, args); + }; +} +var isProd = true; +var apiPref = _utils_env__WEBPACK_IMPORTED_MODULE_0__/* ["default"].API_SERVER */ .Z.API_SERVER; +// export const isProd = +// window.location.href.indexOf('test-') > 0 || +// window.location.href.indexOf('localhost') > 0 +// ? false +// : true; + +// export const apiPref = isProd +// ? 'https://www.educoder.net' +// : 'https://test-newweb.educoder.net'; + +/***/ }), + +/***/ 48559: +/*!**********************************************!*\ + !*** ./src/components/AsyncButton/index.tsx ***! + \**********************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "Z": function() { return /* binding */ AsyncButton; } +/* harmony export */ }); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var antd_es_button_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/button/style */ 29913); +/* harmony import */ var antd_es_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd/es/button */ 71577); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js */ 17061); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/asyncToGenerator.js */ 17156); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js */ 70215); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ 67294); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ 85893); + + + + + + + +var _excluded = ["children"]; + + +var AsyncButton = function AsyncButton(_ref) { + var children = _ref.children, + props = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_5___default()(_ref, _excluded); + var _useState = (0,react__WEBPACK_IMPORTED_MODULE_6__.useState)(false), + _useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_4___default()(_useState, 2), + btnLoading = _useState2[0], + setBtnLoading = _useState2[1]; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(antd_es_button__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, props), {}, { + loading: btnLoading, + onClick: /*#__PURE__*/function () { + var _ref2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().mark(function _callee(e) { + return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + _context.prev = 0; + setBtnLoading(true); + _context.next = 4; + return props.onClick(e); + case 4: + setBtnLoading(false); + _context.next = 10; + break; + case 7: + _context.prev = 7; + _context.t0 = _context["catch"](0); + setBtnLoading(false); + case 10: + case "end": + return _context.stop(); + } + }, _callee, null, [[0, 7]]); + })); + return function (_x) { + return _ref2.apply(this, arguments); + }; + }(), + children: children + })); +}; + +/***/ }), + +/***/ 82982: +/*!*****************************************!*\ + !*** ./src/components/NoData/index.tsx ***! + \*****************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony import */ var antd_es_button_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/button/style */ 29913); +/* harmony import */ var antd_es_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd/es/button */ 71577); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 67294); +/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 4977); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ 85893); + + + + + + + +var noData = function noData(_ref) { + var _ref$buttonProps = _ref.buttonProps, + buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps, + _ref$styles = _ref.styles, + styles = _ref$styles === void 0 ? {} : _ref$styles, + customText = _ref.customText, + ButtonText = _ref.ButtonText, + ButtonClick = _ref.ButtonClick, + Buttonclass = _ref.Buttonclass, + ButtonTwo = _ref.ButtonTwo, + imgStyles = _ref.imgStyles; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("section", { + className: "tc animated fadeIn", + style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, { + color: '#999', + margin: '200px auto' + }), styles), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("img", { + src: _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_3__, + style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, imgStyles) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("p", { + className: "mt20 font14", + children: customText || '暂时还没有相关数据哦!' + }), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(antd_es_button__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({ + className: Buttonclass, + onClick: ButtonClick + }, buttonProps), {}, { + children: ButtonText + })), ButtonTwo && ButtonTwo] + }); +}; +/* harmony default export */ __webpack_exports__["Z"] = (noData); + +/***/ }), + +/***/ 36579: +/*!*********************************************************!*\ + !*** ./src/components/PreviewAll/index.tsx + 1 modules ***! + \*********************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + "Z": function() { return /* binding */ PreviewAll; } +}); + +// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules +var style = __webpack_require__(29913); +// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js +var es_button = __webpack_require__(71577); +// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/style/index.js + 1 modules +var tooltip_style = __webpack_require__(38390); +// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules +var tooltip = __webpack_require__(84908); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js +var objectSpread2 = __webpack_require__(42122); +var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js +var regeneratorRuntime = __webpack_require__(17061); +var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js +var asyncToGenerator = __webpack_require__(17156); +var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js +var slicedToArray = __webpack_require__(27424); +var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray); +// EXTERNAL MODULE: ./node_modules/react/index.js +var react = __webpack_require__(67294); +;// CONCATENATED MODULE: ./src/components/PreviewAll/index.less?modules +// extracted by mini-css-extract-plugin +/* harmony default export */ var PreviewAllmodules = ({"wrp":"wrp___dq7YK","bgBlack":"bgBlack___ARIUV","monaco":"monaco___VnZC3","darkBlue":"darkBlue___UprA9","close":"close___LKoWu","embed":"embed___hvpEJ"}); +// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/ArrowDownOutlined.js + 1 modules +var ArrowDownOutlined = __webpack_require__(77171); +// EXTERNAL MODULE: ./src/components/monaco-editor/index.jsx + 3 modules +var monaco_editor = __webpack_require__(8691); +// EXTERNAL MODULE: ./src/utils/util.tsx +var util = __webpack_require__(29427); +// EXTERNAL MODULE: ./src/service/exercise.ts +var exercise = __webpack_require__(51412); +// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules +var env = __webpack_require__(59758); +// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js +var jsx_runtime = __webpack_require__(85893); +;// CONCATENATED MODULE: ./src/components/PreviewAll/index.tsx + + + + + + + + + + + + + + + + + + + +/* harmony default export */ var PreviewAll = (function (_ref) { + var _data, _data2, _data3, _data4, _data5, _data6; + var _ref$editOffice = _ref.editOffice, + editOffice = _ref$editOffice === void 0 ? 'view' : _ref$editOffice, + data = _ref.data, + theme = _ref.theme, + type = _ref.type, + filename = _ref.filename, + monacoEditor = _ref.monacoEditor, + className = _ref.className, + style = _ref.style, + close = _ref.close, + onClose = _ref.onClose, + hasMask = _ref.hasMask, + disabledDownload = _ref.disabledDownload, + onImgDimensions = _ref.onImgDimensions; + var _useState = (0,react.useState)('https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt'), + _useState2 = slicedToArray_default()(_useState, 2), + src = _useState2[0], + setSrc = _useState2[1]; + var _useState3 = (0,react.useState)(""), + _useState4 = slicedToArray_default()(_useState3, 2), + token = _useState4[0], + setToken = _useState4[1]; + var _useState5 = (0,react.useState)(), + _useState6 = slicedToArray_default()(_useState5, 2), + officeData = _useState6[0], + setOfficeData = _useState6[1]; + var officePath = window.ENV === "build" ? "/react/build" : ""; + var apiServer = location.host.startsWith("localhost") ? env/* default.PROXY_SERVER */.Z.PROXY_SERVER : env/* default.API_SERVER */.Z.API_SERVER; + var size; + var unit = 1024 * 1024; + var maxSize = 10 * unit; + var closeRef = (0,react.useRef)(); + if ((_data = data) !== null && _data !== void 0 && _data.startsWith("/api") && type !== "txt") { + data = env/* default.API_SERVER */.Z.API_SERVER + data; + } + if (type === "office") { + size = (0,util/* parseUrl */.en)(data).filesize; + if (size > maxSize) { + type = "other"; + } + } + if (filename) monacoEditor.filename = filename; + (0,react.useEffect)(function () { + var _document$cookie, _document$cookie$repl; + var cookies = (_document$cookie = document.cookie) === null || _document$cookie === void 0 ? void 0 : (_document$cookie$repl = _document$cookie.replace(/\s/g, "")) === null || _document$cookie$repl === void 0 ? void 0 : _document$cookie$repl.split(";"); + cookies === null || cookies === void 0 ? void 0 : cookies.map(function (item) { + var i = item.split("="); + if (i[0] === '_educoder_session') { + setToken(i[1]); + } + }); + }, []); + (0,react.useEffect)(function () { + if (type === "office") getData(); + }, [type, data]); + var getData = /*#__PURE__*/function () { + var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() { + var _url, _id, res; + return regeneratorRuntime_default()().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + console.log("data:", data); + _url = data; + if (!data.startsWith("http")) { + _url = location.origin + _url; + } + _id = new URL(_url).pathname.split("/").pop(); + _context.next = 6; + return (0,exercise/* setEcsAttachment */.gJ)({ + attachment_id: _id + }); + case 6: + res = _context.sent; + setOfficeData(res); + case 8: + case "end": + return _context.stop(); + } + }, _callee); + })); + return function getData() { + return _ref2.apply(this, arguments); + }; + }(); + var handleClick = function handleClick() { + if (data.startsWith("http") || data.startsWith('blob:')) { + handleDown(); + return; + } + (0,util/* downloadFile */.Sv)(filename || 'educoder', data, filename); + }; + var handleDown = function handleDown() { + (0,util/* downLoadLink */.Nd)(filename || 'educoder', decodeURIComponent(data)); + }; + return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + style: objectSpread2_default()({}, style || {}), + className: "".concat(hasMask && PreviewAllmodules.bgBlack, " ").concat(!!type ? PreviewAllmodules.wrp : "hide"), + children: [close && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: PreviewAllmodules.close, + ref: closeRef, + children: [!!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: "".concat(((_data2 = data) === null || _data2 === void 0 ? void 0 : _data2.indexOf("http://")) > -1 || ((_data3 = data) === null || _data3 === void 0 ? void 0 : _data3.indexOf("https://")) > -1 ? "" : "data:audio/mp3;base64,").concat(data), + autoPlay: true + }), type === "video" && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, { + children: ((_data4 = data) === null || _data4 === void 0 ? void 0 : _data4.indexOf("http")) > -1 ? /*#__PURE__*/(0,jsx_runtime.jsx)("video", { + controls: true, + src: "".concat(data), + autoPlay: true + }) : /*#__PURE__*/(0,jsx_runtime.jsx)("video", { + controls: true, + src: "data:video/mp4;base64,".concat(data), + autoPlay: true + }) + }), type === 'office' && officeData && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", { + src: "".concat(officePath, "/office.html?key=").concat(officeData.key, "&url=").concat(apiServer + officeData.url, "&callbackUrl=").concat(apiServer + officeData.callbackUrl, "&fileType=").concat(officeData.fileType, "&title=").concat(officeData.title, "&model=").concat(editOffice, "&officeServer=").concat(env/* default.ONLYOFFICE */.Z.ONLYOFFICE, "&disabledDownload=").concat(!!disabledDownload) + }), type === 'html' && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", { + src: data + '&disposition=inline' + }), type === 'pdf' && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", { + src: "".concat(officePath, "/js/pdfview/index.html?url=").concat(data, "&disabledDownload=").concat(!!disabledDownload) + }) // + , type === "image" && /*#__PURE__*/(0,jsx_runtime.jsx)("img", { + src: "".concat(((_data5 = data) === null || _data5 === void 0 ? void 0 : _data5.indexOf("http://")) > -1 || ((_data6 = data) === null || _data6 === void 0 ? void 0 : _data6.indexOf("https://")) > -1 ? "" : "data:image/png;base64,").concat(data) + }), type === "other" && /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, { + type: "primary", + size: "large", + onClick: handleClick, + children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ArrowDownOutlined/* default */.Z, {}), "\u70B9\u51FB\u4E0B\u8F7D"] + }) + }), type === "download" && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, { + type: "primary", + size: "large", + onClick: handleClick, + children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ArrowDownOutlined/* default */.Z, {}), "\u70B9\u51FB\u4E0B\u8F7D"] + })] + }); +}); + +/***/ }), + +/***/ 23197: +/*!****************************************************************!*\ + !*** ./src/components/QuestionEditor/ChoiceQuestionEditor.tsx ***! + \****************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "u": function() { return /* binding */ ChoiceQuestionEditor; } +/* harmony export */ }); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js */ 70215); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var antd_es_form_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/form/style */ 75627); +/* harmony import */ var antd_es_form__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! antd/es/form */ 51018); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var antd_es_row_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd/es/row/style */ 13062); +/* harmony import */ var antd_es_row__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd/es/row */ 71230); +/* harmony import */ var antd_es_tooltip_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd/es/tooltip/style */ 38390); +/* harmony import */ var antd_es_tooltip__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd/es/tooltip */ 84908); +/* harmony import */ var antd_es_col_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd/es/col/style */ 89032); +/* harmony import */ var antd_es_col__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd/es/col */ 15746); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/defineProperty.js */ 38416); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ 67294); +/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./index.less?modules */ 52654); +/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ant-design/icons */ 64789); +/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @ant-design/icons */ 3089); +/* harmony import */ var _MdEditorInForm__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./MdEditorInForm */ 95293); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react/jsx-runtime */ 85893); + + + + + + + + + + + + +var _excluded = ["key", "name"]; + + + + + + + +var tagList = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']; +var ChoiceQuestionItem = function ChoiceQuestionItem(_ref) { + var value = _ref.value, + _onChange = _ref.onChange, + choiceTextKey = _ref.choiceTextKey, + answerKey = _ref.answerKey, + index = _ref.index, + isEdit = _ref.isEdit, + setInputActive = _ref.setInputActive, + form = _ref.form, + choiceOptionsPath = _ref.choiceOptionsPath, + allowChangeMode = _ref.allowChangeMode, + showAddIcon = _ref.showAddIcon, + addItem = _ref.addItem, + deleteItem = _ref.deleteItem; + var isActiveAnswer = (value === null || value === void 0 ? void 0 : value[answerKey]) === 1; + var setAllOptionsToFalse = function setAllOptionsToFalse() { + var options = form.getFieldValue(choiceOptionsPath); + form.setFieldValue(choiceOptionsPath, options.map(function (item) { + return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7___default()({}, item), {}, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_6___default()({}, answerKey, 0)); + })); + }; + var setActiveAnswer = function setActiveAnswer() { + if (isActiveAnswer) { + _onChange(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7___default()({}, value), {}, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_6___default()({}, answerKey, 0))); + } else { + if (!allowChangeMode) { + setAllOptionsToFalse(); + } + _onChange(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7___default()({}, value), {}, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_6___default()({}, answerKey, 1))); + } + }; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd_es_row__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"].choiceWrap */ .Z.choiceWrap, + align: "middle", + wrap: false, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd_es_col__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, { + onClick: setActiveAnswer, + className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"].choiceIndex */ .Z.choiceIndex, " ").concat(isActiveAnswer ? _index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"].activeAnswer */ .Z.activeAnswer : ''), + children: tagList[index] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd_es_col__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, { + flex: 1, + className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"].editorWrap */ .Z.editorWrap, " ml15"), + onClick: setInputActive, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_MdEditorInForm__WEBPACK_IMPORTED_MODULE_10__/* .RegularInput */ .x, { + height: 155, + placeholder: "\u8BF7\u60A8\u8F93\u5165\u9009\u9879", + isEdit: isEdit, + value: value === null || value === void 0 ? void 0 : value[choiceTextKey], + onChange: function onChange(v) { + _onChange(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7___default()({}, value), {}, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_6___default()({}, choiceTextKey, v))); + } + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd_es_col__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, { + flex: '0 0 auto', + className: "ml15", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("div", { + onClick: setActiveAnswer, + className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"].setAnswerBtn */ .Z.setAnswerBtn, " ").concat(isActiveAnswer ? _index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"].activeAnswer */ .Z.activeAnswer : ''), + children: isActiveAnswer ? '正确答案' : '设为答案' + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd_es_col__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"].actionWrapper */ .Z.actionWrapper, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd_es_tooltip__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, { + title: "\u65B0\u589E\u53C2\u8003\u7B54\u6848", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"].addIcon */ .Z.addIcon, + onClick: addItem, + style: { + visibility: showAddIcon ? 'visible' : 'hidden' + } + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd_es_tooltip__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, { + title: "\u5220\u9664", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z, { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"].deleteIcon */ .Z.deleteIcon, + onClick: deleteItem, + style: { + visibility: index > 1 ? 'visible' : 'hidden' + } + }) + })] + })] + }); +}; +var ChoiceQuestionEditor = function ChoiceQuestionEditor(_ref2) { + var questionTitlePlaceholder = _ref2.questionTitlePlaceholder, + titleKey = _ref2.titleKey, + choiceKey = _ref2.choiceKey, + analysisKey = _ref2.analysisKey, + choiceTextKey = _ref2.choiceTextKey, + answerKey = _ref2.answerKey, + choiceOptionsPath = _ref2.choiceOptionsPath, + _ref2$allowChangeMode = _ref2.allowChangeMode, + allowChangeMode = _ref2$allowChangeMode === void 0 ? true : _ref2$allowChangeMode, + form = _ref2.form, + _ref2$showAnalysis = _ref2.showAnalysis, + showAnalysis = _ref2$showAnalysis === void 0 ? true : _ref2$showAnalysis; + var _useState = (0,react__WEBPACK_IMPORTED_MODULE_8__.useState)(), + _useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2), + activeEditor = _useState2[0], + setActiveEditor = _useState2[1]; + var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_8__.useState)(false), + _useState4 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState3, 2), + editAnalysis = _useState4[0], + setEditAnalysis = _useState4[1]; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("div", { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"].wrap */ .Z.wrap, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("div", { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"].questionTitleEditorWrap */ .Z.questionTitleEditorWrap, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_17__/* ["default"].Item */ .Z.Item, { + label: "\u9898\u5E72", + name: titleKey, + labelCol: { + span: 24 + }, + rules: [{ + required: true + }], + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_MdEditorInForm__WEBPACK_IMPORTED_MODULE_10__/* .MdEditorInForm */ .h, { + scrollId: Array.isArray(titleKey) ? titleKey.join('_') : "".concat(titleKey), + watch: true, + height: 140, + placeholder: questionTitlePlaceholder + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_17__/* ["default"].Item */ .Z.Item, { + label: "\u7B54\u6848\u9009\u9879", + required: true, + labelCol: { + span: 24 + } + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_17__/* ["default"].List */ .Z.List, { + name: choiceKey, + rules: [{ + validator: function validator(rule, values) { + var hasAnswer = values.some(function (option) { + return option[answerKey] === 1; + }); + var emptyAnswerIndex = values.findIndex(function (option) { + var _option$choiceTextKey; + return ((_option$choiceTextKey = option[choiceTextKey]) === null || _option$choiceTextKey === void 0 ? void 0 : _option$choiceTextKey.length) <= 0; + }); + if (emptyAnswerIndex !== -1) { + return Promise.reject(new Error("\u8BF7\u5148\u8F93\u5165".concat(tagList[emptyAnswerIndex], "\u9009\u9879\u7684\u5185\u5BB9"))); + } + if (!hasAnswer) { + return Promise.reject(new Error('请设置正确答案')); + } + return Promise.resolve(); + } + }], + children: function children(fields, _ref3) { + var add = _ref3.add, + remove = _ref3.remove; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("div", { + id: Array.isArray(choiceOptionsPath) ? choiceOptionsPath.join('_') : "".concat(choiceOptionsPath), + children: [fields.map(function (_ref4, index) { + var key = _ref4.key, + name = _ref4.name, + restField = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_0___default()(_ref4, _excluded); + var isEdit = activeEditor === key; + var setInputActive = function setInputActive() { + setActiveEditor(key); + }; + var showAddIcon = index < 7 && index === fields.length - 1; + var addItem = function addItem() { + var _add; + return add((_add = {}, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_6___default()(_add, choiceTextKey, ''), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_6___default()(_add, answerKey, 0), _add)); + }; + var deleteItem = function deleteItem() { + return remove(name); + }; + return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_8__.createElement)(antd_es_form__WEBPACK_IMPORTED_MODULE_17__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7___default()({}, restField), {}, { + key: key, + name: name, + noStyle: true + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(ChoiceQuestionItem, { + choiceTextKey: choiceTextKey, + answerKey: answerKey, + index: index, + isEdit: isEdit, + setInputActive: setInputActive, + form: form, + choiceOptionsPath: choiceOptionsPath, + allowChangeMode: allowChangeMode, + showAddIcon: showAddIcon, + addItem: addItem, + deleteItem: deleteItem + })); + }), fields.length < 8 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("div", { + className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"].addBtn */ .Z.addBtn, " mb30"), + onClick: function onClick() { + var _add2; + return add((_add2 = {}, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_6___default()(_add2, choiceTextKey, ''), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_6___default()(_add2, answerKey, 0), _add2)); + }, + children: "\u6DFB\u52A0\u9009\u9879" + })] + }); + } + }), showAnalysis && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("div", { + onClick: function onClick() { + return setEditAnalysis(true); + }, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_17__/* ["default"].Item */ .Z.Item, { + name: analysisKey, + label: "\u9898\u76EE\u89E3\u6790", + labelCol: { + span: 24 + }, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_MdEditorInForm__WEBPACK_IMPORTED_MODULE_10__/* .RegularInput */ .x, { + placeholder: "\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09", + isEdit: editAnalysis + }) + }) + })] + }); +}; + + +/***/ }), + +/***/ 6868: +/*!*********************************************************************!*\ + !*** ./src/components/QuestionEditor/CombinationQuestionEditor.tsx ***! + \*********************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "r": function() { return /* binding */ CombinationQuestionEditor; } +/* harmony export */ }); +/* harmony import */ var antd_es_row_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/row/style */ 13062); +/* harmony import */ var antd_es_row__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd/es/row */ 71230); +/* harmony import */ var antd_es_tooltip_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/tooltip/style */ 38390); +/* harmony import */ var antd_es_tooltip__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! antd/es/tooltip */ 84908); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var antd_es_input_number_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd/es/input-number/style */ 25359); +/* harmony import */ var antd_es_input_number__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd/es/input-number */ 87799); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js */ 70215); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var antd_es_form_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd/es/form/style */ 75627); +/* harmony import */ var antd_es_form__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd/es/form */ 51018); +/* harmony import */ var antd_es_collapse_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd/es/collapse/style */ 49263); +/* harmony import */ var antd_es_collapse__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd/es/collapse */ 54907); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ 67294); +/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./index.less?modules */ 52654); +/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @ant-design/icons */ 3089); +/* harmony import */ var _MdEditorInForm__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./MdEditorInForm */ 95293); +/* harmony import */ var _ChoiceQuestionEditor__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ChoiceQuestionEditor */ 23197); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react/jsx-runtime */ 85893); + + + + + + + + + + + + +var _excluded = ["key", "name"]; + + + +// import type { ChoiceQuestionType } from './types' + + + + + +var Panel = antd_es_collapse__WEBPACK_IMPORTED_MODULE_12__/* ["default"].Panel */ .Z.Panel; +var CombinationQuestionEditor = function CombinationQuestionEditor(_ref) { + var questionTitlePlaceholder = _ref.questionTitlePlaceholder, + choiceKey = _ref.choiceKey, + form = _ref.form, + withScore = _ref.withScore; + // const [editAnalysis, setEditAnalysis] = useState(false) + + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("div", { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].wrap */ .Z.wrap, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("div", { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].questionTitleEditorWrap */ .Z.questionTitleEditorWrap, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_13__/* ["default"].Item */ .Z.Item, { + label: "\u9898\u5E72", + name: "name", + labelCol: { + span: 24 + }, + rules: [{ + required: true + }], + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_MdEditorInForm__WEBPACK_IMPORTED_MODULE_9__/* .MdEditorInForm */ .h, { + scrollId: "name", + watch: true, + height: 140, + placeholder: questionTitlePlaceholder + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_13__/* ["default"].Item */ .Z.Item, { + label: "\u5C0F\u9898", + required: true, + labelCol: { + span: 24 + } + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_13__/* ["default"].List */ .Z.List, { + name: "sub_item_banks", + rules: [{ + validator: function validator(rule, values) { + if (!values) { + return Promise.reject(new Error('请添加小题')); + } + return Promise.resolve(); + } + }], + children: function children(fields, _ref2) { + var add = _ref2.add, + remove = _ref2.remove; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd_es_collapse__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, { + className: fields.length > 0 ? _index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].collapseWrapper */ .Z.collapseWrapper : '', + bordered: false, + expandIcon: function expandIcon(_ref3) { + var isActive = _ref3.isActive; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("i", { + className: "iconfont icon-weizhankai ".concat(isActive ? _index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].open */ .Z.open : _index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].close */ .Z.close), + style: { + fontSize: 14, + transition: 'all .2s' + } + }); + }, + children: fields.map(function (_ref4, index) { + var key = _ref4.key, + name = _ref4.name, + restField = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4___default()(_ref4, _excluded); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(Panel, { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].panel */ .Z.panel, + forceRender: true, + header: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("div", { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].panelHeader */ .Z.panelHeader, + children: ["\u7B2C", index + 1, "\u5C0F\u9898", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", { + children: "\uFF08\u5355\u9009\u9898\uFF09" + })] + }), + extra: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd_es_row__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, { + align: "middle", + onClick: function onClick(e) { + return e.stopPropagation(); + }, + children: [withScore && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_13__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, restField), {}, { + rules: [{ + required: true, + message: '请输入小题分值' + }], + label: "\u5206\u503C", + name: [name, 'question_score'], + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].blankInputNumberWrapper */ .Z.blankInputNumberWrapper, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd_es_input_number__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].blankInput */ .Z.blankInput, + placeholder: "\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570", + min: 0.1, + precision: 1, + max: 100, + style: { + width: 150 + } + }) + })), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd_es_tooltip__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z, { + title: "\u5220\u9664", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z, { + className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].deleteIcon */ .Z.deleteIcon, " ml40"), + onClick: function onClick() { + return remove(name); + } + }) + })] + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_13__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, restField), {}, { + name: name, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_ChoiceQuestionEditor__WEBPACK_IMPORTED_MODULE_10__/* .ChoiceQuestionEditor */ .u, { + questionTitlePlaceholder: "\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9", + allowChangeMode: false, + form: form, + choiceKey: [name, 'choices'], + titleKey: [name, 'name'], + analysisKey: [name, 'analysis'], + choiceOptionsPath: ['sub_item_banks', name, 'choices'], + choiceTextKey: "choice_text", + answerKey: "is_answer" + }) + })) + }, key); + }) + }), fields.length < 20 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("div", { + className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].addBtn */ .Z.addBtn), + onClick: function onClick() { + return add({ + name: '', + choices: Array.from({ + length: 4 + }, function () { + return { + choice_text: '', + is_answer: 0 + }; + }), + analysis: '' + }); + }, + children: "\u6DFB\u52A0\u5C0F\u9898" + })] + }); + } + })] + }); +}; + + +/***/ }), + +/***/ 12589: +/*!********************************************************************!*\ + !*** ./src/components/QuestionEditor/CompletionQuestionEditor.tsx ***! + \********************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "u": function() { return /* binding */ CompletionQuestionEditor; } +/* harmony export */ }); +/* harmony import */ var antd_es_input_number_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/input-number/style */ 25359); +/* harmony import */ var antd_es_input_number__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! antd/es/input-number */ 87799); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js */ 70215); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js */ 74704); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var antd_es_form_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd/es/form/style */ 75627); +/* harmony import */ var antd_es_form__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! antd/es/form */ 51018); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var antd_es_switch_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd/es/switch/style */ 5812); +/* harmony import */ var antd_es_switch__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! antd/es/switch */ 94594); +/* harmony import */ var antd_es_row_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd/es/row/style */ 13062); +/* harmony import */ var antd_es_row__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! antd/es/row */ 71230); +/* harmony import */ var antd_es_col_style__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd/es/col/style */ 89032); +/* harmony import */ var antd_es_col__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! antd/es/col */ 15746); +/* harmony import */ var antd_es_tooltip_style__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd/es/tooltip/style */ 38390); +/* harmony import */ var antd_es_tooltip__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! antd/es/tooltip */ 84908); +/* harmony import */ var antd_es_input_style__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd/es/input/style */ 69463); +/* harmony import */ var antd_es_input__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! antd/es/input */ 75008); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/toConsumableArray.js */ 861); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_11__); +/* harmony import */ var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd/es/modal/style */ 35611); +/* harmony import */ var antd_es_modal__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! antd/es/modal */ 85402); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react */ 67294); +/* harmony import */ var _MdEditorInForm__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./MdEditorInForm */ 95293); +/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @ant-design/icons */ 3089); +/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./index.less?modules */ 52654); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! react/jsx-runtime */ 85893); + + + + + + + + + + + + + + + + + + + + + +var _excluded = ["key", "name"]; + + + + + + + +var BlankEditor = function BlankEditor(_ref) { + var value = _ref.value, + onChange = _ref.onChange; + var handleDelete = function handleDelete(index) { + antd_es_modal__WEBPACK_IMPORTED_MODULE_17__/* ["default"].confirm */ .Z.confirm({ + centered: true, + okText: '确定', + cancelText: '取消', + title: '提示', + content: '确认要删除这个参考答案吗?', + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_15__/* ["default"].modal */ .Z.modal, + onOk: function onOk() { + var valueCopy = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_11___default()(value); + valueCopy.splice(index, 1); + onChange(valueCopy); + } + }); + }; + var handleAdd = function handleAdd() { + var valueCopy = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_11___default()(value); + valueCopy.push(''); + onChange(valueCopy); + }; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd_es_row__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, { + align: "middle", + className: "ml20", + gutter: [40, 20], + children: [value === null || value === void 0 ? void 0 : value.map(function (v, index) { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd_es_col__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_15__/* ["default"].blankWrapper */ .Z.blankWrapper, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd_es_input__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_15__/* ["default"].blankInput */ .Z.blankInput, + defaultValue: v, + maxLength: 1000, + onBlur: function onBlur(e) { + var valueCopy = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_11___default()(value); + var inputTrimValue = e.target.value.trim(); + valueCopy[index] = inputTrimValue; + onChange(valueCopy); + } + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd_es_tooltip__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .Z, { + title: "\u5220\u9664", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z, { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_15__/* ["default"].deleteIcon */ .Z.deleteIcon, + style: { + marginLeft: 15, + visibility: index > 0 ? 'visible' : 'hidden' + }, + onClick: function onClick() { + return handleDelete(index); + } + }) + })] + }, "".concat(v, "_").concat(index)); + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd_es_col__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("div", { + className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_15__/* ["default"].addBtn */ .Z.addBtn), + onClick: function onClick() { + handleAdd(); + }, + children: "\u65B0\u589E\u7B54\u6848" + }) + })] + }); +}; +var ReversedSwitch = function ReversedSwitch(_ref2) { + var value = _ref2.value, + _onChange = _ref2.onChange; + //打开为false,关闭为true,即一个特殊的Switch。 + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd_es_switch__WEBPACK_IMPORTED_MODULE_23__/* ["default"] */ .Z, { + checked: !value, + onChange: function onChange(checked) { + _onChange(!checked); + } + }); +}; +var NULL_CH = '▁'; +var CompletionQuestionEditor = function CompletionQuestionEditor(_ref3) { + var questionTitlePlaceholder = _ref3.questionTitlePlaceholder, + form = _ref3.form, + _ref3$scoreByBlank = _ref3.scoreByBlank, + scoreByBlank = _ref3$scoreByBlank === void 0 ? false : _ref3$scoreByBlank; + var _useState = (0,react__WEBPACK_IMPORTED_MODULE_13__.useState)(false), + _useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState, 2), + editAnalysis = _useState2[0], + setEditAnalysis = _useState2[1]; + var getChCountBeforeCursor = function getChCountBeforeCursor(cm, cursor) { + var currentLine = cursor.line; + var placeholderCountBefore = 0; + for (var _line = 0; _line < currentLine; _line++) { + placeholderCountBefore += cm.getLine(_line).split(NULL_CH).length - 1; + } + var currentLineStringBeforeCursor = cm.getLine(currentLine).substring(0, cursor.ch); + placeholderCountBefore += currentLineStringBeforeCursor.split(NULL_CH).length - 1; + return placeholderCountBefore; + }; + var _onCMBeforeChange = function onCMBeforeChange(cm, change, addBlank, removeBlank) { + var rangeText = cm.getRange(change.from, change.to); + var newBlankNum = 0; + change.text.forEach(function (item) { + newBlankNum += item.split(NULL_CH).length - 1; + }); + if (change.origin === 'setValue') { + //setValue为初始化,此时不需要删除也不需要增加填空项 + return; + } + if (rangeText && rangeText.indexOf(NULL_CH) !== -1) { + var placeholderCountInRange = rangeText.split(NULL_CH).length - 1; + var placeholderCountBefore = getChCountBeforeCursor(cm, change.from); + console.log("\u5220\u9664".concat(placeholderCountInRange, "\u4E2A\uFF0C \u524D\u9762\u6709").concat(placeholderCountBefore, "\u4E2A\uFF0C\u65B0\u589E").concat(newBlankNum, "\u4E2A")); + if (placeholderCountInRange > 1) { + var indexArray = Array.from({ + length: placeholderCountInRange + }, function (item, index) { + return placeholderCountBefore + index; + }); + removeBlank(indexArray); + } else { + removeBlank(placeholderCountBefore); + } + } else if (newBlankNum > 0) { + var _placeholderCountBefore = getChCountBeforeCursor(cm, change.from); + console.log("\u65B0\u589E".concat(newBlankNum, "\u4E2A\uFF0C\u4E4B\u524D\u6709").concat(_placeholderCountBefore, "\u4E2A")); + addBlank(newBlankNum, _placeholderCountBefore); + } + }; + + //新增和删除需要重新设置position,position表示填空的位置 + var rewritePosition = function rewritePosition() { + var preAnswerData = form.getFieldValue('standard_answers'); + form.setFieldsValue({ + standard_answers: preAnswerData.map(function (item, index) { + return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4___default()({}, item), {}, { + position: index + 1 + }); + }) + }); + }; + var addFnRef = (0,react__WEBPACK_IMPORTED_MODULE_13__.useRef)(); + var addBlank = function addBlank(addNum, insertIndex) { + for (var i = 0; i < addNum; i++) { + addFnRef.current({ + position: null, + answer_text: [''] + }, insertIndex + i); + } + rewritePosition(); + }; + var removeFnRef = (0,react__WEBPACK_IMPORTED_MODULE_13__.useRef)(); + var removeBlank = function removeBlank(deleteIndex) { + removeFnRef.current(deleteIndex); + rewritePosition(); + }; + var standardAnswersValue = antd_es_form__WEBPACK_IMPORTED_MODULE_24__/* ["default"].useWatch */ .Z.useWatch('standard_answers', form); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("div", { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_15__/* ["default"].wrap */ .Z.wrap, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("div", { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_15__/* ["default"].questionTitleEditorWrap */ .Z.questionTitleEditorWrap, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_24__/* ["default"].Item */ .Z.Item, { + label: "\u9898\u5E72", + name: "name", + labelCol: { + span: 24 + }, + rules: [{ + required: true + }], + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(_MdEditorInForm__WEBPACK_IMPORTED_MODULE_14__/* .MdEditorInForm */ .h, { + scrollId: "name", + watch: true, + height: 140, + placeholder: questionTitlePlaceholder, + showNullButton: true, + onCMBeforeChange: function onCMBeforeChange(cm, change) { + _onCMBeforeChange(cm, change, addBlank, removeBlank); + } + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_24__/* ["default"].List */ .Z.List, { + name: "standard_answers", + rules: [{ + validator: function validator(rule, values) { + if ((values === null || values === void 0 ? void 0 : values.length) === 0) { + return Promise.reject(new Error('答案不能为空')); + } + var _iterator = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2___default()(values), + _step; + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var item = _step.value; + var _ref4 = item || {}, + answer_text = _ref4.answer_text; + if (answer_text !== null && answer_text !== void 0 && answer_text.some(function (text) { + return (text === null || text === void 0 ? void 0 : text.length) === 0; + })) { + return Promise.reject(new Error('填空项答案不能为空')); + } + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + return Promise.resolve(); + } + }], + children: function children(fields, _ref5, _ref6) { + var add = _ref5.add, + remove = _ref5.remove; + var errors = _ref6.errors; + addFnRef.current = add; + removeFnRef.current = remove; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_24__/* ["default"].Item */ .Z.Item, { + label: "\u7B54\u6848\u9009\u9879", + required: true, + labelCol: { + span: 24 + } + }), fields.map(function (_ref7, index) { + var key = _ref7.key, + name = _ref7.name, + restField = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default()(_ref7, _excluded); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd_es_row__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, { + className: "mb20", + align: "middle", + wrap: false, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd_es_col__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, { + flex: '0 0 auto', + className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_15__/* ["default"].blankIndex */ .Z.blankIndex), + children: ["\u586B\u7A7A\u9879", index + 1] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd_es_col__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, { + flex: 1, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd_es_row__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, { + align: "top", + justify: "space-between", + wrap: false, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd_es_col__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_24__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4___default()({}, restField), {}, { + name: [name, 'answer_text'], + noStyle: true, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(BlankEditor, {}) + })) + }), scoreByBlank && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd_es_col__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, { + flex: '224px', + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_24__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4___default()({}, restField), {}, { + name: [name, 'score'], + label: "\u5206\u503C", + rules: [{ + required: true + }], + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_15__/* ["default"].blankInputNumberWrapper */ .Z.blankInputNumberWrapper, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd_es_input_number__WEBPACK_IMPORTED_MODULE_25__/* ["default"] */ .Z, { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_15__/* ["default"].blankInput */ .Z.blankInput, + min: 0.1, + max: 100, + precision: 1, + style: { + width: '100%' + }, + placeholder: "\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C" + }) + })) + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_24__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4___default()({}, restField), {}, { + name: [name, 'position'], + noStyle: true, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd_es_input__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, { + type: "hidden" + }) + }))] + })] + }, key); + })] + }); + } + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd_es_row__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, { + align: "middle", + className: (standardAnswersValue === null || standardAnswersValue === void 0 ? void 0 : standardAnswersValue.length) > 1 ? 'mb30' : "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_15__/* ["default"].hide */ .Z.hide), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_24__/* ["default"].Item */ .Z.Item, { + name: "is_ordered", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(ReversedSwitch, {}) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd_es_col__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, { + className: "ml10", + children: "\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4" + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("div", { + onClick: function onClick() { + return setEditAnalysis(true); + }, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_24__/* ["default"].Item */ .Z.Item, { + name: "analysis", + label: "\u9898\u76EE\u89E3\u6790", + labelCol: { + span: 24 + }, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(_MdEditorInForm__WEBPACK_IMPORTED_MODULE_14__/* .RegularInput */ .x, { + placeholder: "\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09", + isEdit: editAnalysis + }) + }) + })] + }); +}; + + +/***/ }), + +/***/ 60863: +/*!******************************************************************!*\ + !*** ./src/components/QuestionEditor/JudgmentQuestionEditor.tsx ***! + \******************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "Z": function() { return /* binding */ JudgmentQuestionEditor; } +/* harmony export */ }); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js */ 70215); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var antd_es_form_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/form/style */ 75627); +/* harmony import */ var antd_es_form__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd/es/form */ 51018); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var antd_es_row_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd/es/row/style */ 13062); +/* harmony import */ var antd_es_row__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd/es/row */ 71230); +/* harmony import */ var antd_es_col_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd/es/col/style */ 89032); +/* harmony import */ var antd_es_col__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd/es/col */ 15746); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/defineProperty.js */ 38416); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ 67294); +/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./index.less?modules */ 52654); +/* harmony import */ var _MdEditorInForm__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./MdEditorInForm */ 95293); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react/jsx-runtime */ 85893); + + + + + + + + + + +var _excluded = ["key", "name"]; +var _tagMap; + + + + + + +var tagMap = (_tagMap = {}, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_6___default()(_tagMap, '正确', 'T'), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_6___default()(_tagMap, '错误', 'F'), _tagMap); +var JudgmentQuestionItem = function JudgmentQuestionItem(_ref) { + var value = _ref.value, + onChange = _ref.onChange, + form = _ref.form; + var isActiveAnswer = (value === null || value === void 0 ? void 0 : value.is_answer) === 1; + var judgementText = value === null || value === void 0 ? void 0 : value.choice_text; + var setActiveAnswer = function setActiveAnswer() { + var formListValue = form.getFieldsValue().choices.map(function (choice) { + return { + choice_text: choice.choice_text, + is_answer: 0 + }; + }); + form.setFieldsValue({ + choices: formListValue + }); + onChange(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5___default()({}, value), {}, { + is_answer: 1 + })); + }; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(antd_es_row__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].choiceWrap */ .Z.choiceWrap, + align: "middle", + wrap: false, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(antd_es_col__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, { + onClick: setActiveAnswer, + className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].choiceIndex */ .Z.choiceIndex, " ").concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].judgementIndex */ .Z.judgementIndex, " ").concat(isActiveAnswer ? _index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].activeAnswer */ .Z.activeAnswer : ''), + children: tagMap[judgementText] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(antd_es_col__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, { + flex: 1, + className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].editorWrap */ .Z.editorWrap, " ml15"), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", { + className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].inputBorder */ .Z.inputBorder, " ").concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].placeholder */ .Z.placeholder, " ").concat(isActiveAnswer ? _index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].activeJudgementAnswer */ .Z.activeJudgementAnswer : ''), + children: judgementText + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(antd_es_col__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, { + flex: '0 0 auto', + className: "ml15", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", { + onClick: setActiveAnswer, + className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].setAnswerBtn */ .Z.setAnswerBtn, " ").concat(isActiveAnswer ? _index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].activeAnswer */ .Z.activeAnswer : ''), + children: isActiveAnswer ? '正确答案' : '设为答案' + }) + })] + }); +}; +var JudgmentQuestionEditor = function JudgmentQuestionEditor(_ref2) { + var questionTitlePlaceholder = _ref2.questionTitlePlaceholder, + choiceKey = _ref2.choiceKey, + form = _ref2.form; + var _useState = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(false), + _useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2), + editAnalysis = _useState2[0], + setEditAnalysis = _useState2[1]; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)("div", { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].wrap */ .Z.wrap, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_8__/* ["default"].questionTitleEditorWrap */ .Z.questionTitleEditorWrap, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_13__/* ["default"].Item */ .Z.Item, { + label: "\u9898\u5E72", + name: "name", + labelCol: { + span: 24 + }, + rules: [{ + required: true + }], + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_MdEditorInForm__WEBPACK_IMPORTED_MODULE_9__/* .MdEditorInForm */ .h, { + scrollId: "name", + watch: true, + height: 140, + placeholder: questionTitlePlaceholder + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_13__/* ["default"].Item */ .Z.Item, { + label: "\u7B54\u6848\u9009\u9879", + required: true, + labelCol: { + span: 24 + }, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_13__/* ["default"].List */ .Z.List, { + name: "choices", + rules: [{ + validator: function validator(rule, values) { + var hasAnswer = values.some(function (option) { + return (option === null || option === void 0 ? void 0 : option.is_answer) === 1; + }); + if (hasAnswer) { + return Promise.resolve(); + } + return Promise.reject(new Error('请设置正确答案')); + } + }], + children: function children(fields) { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", { + id: "choices", + children: fields.map(function (_ref3) { + var key = _ref3.key, + name = _ref3.name, + restField = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_0___default()(_ref3, _excluded); + return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_7__.createElement)(antd_es_form__WEBPACK_IMPORTED_MODULE_13__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5___default()({}, restField), {}, { + key: key, + name: name, + noStyle: true + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(JudgmentQuestionItem, { + form: form + })); + }) + }); + } + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", { + onClick: function onClick() { + return setEditAnalysis(true); + }, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_13__/* ["default"].Item */ .Z.Item, { + name: "analysis", + label: "\u9898\u76EE\u89E3\u6790", + labelCol: { + span: 24 + }, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_MdEditorInForm__WEBPACK_IMPORTED_MODULE_9__/* .RegularInput */ .x, { + placeholder: "\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09", + isEdit: editAnalysis + }) + }) + })] + }); +}; + + +/***/ }), + +/***/ 95293: +/*!**********************************************************!*\ + !*** ./src/components/QuestionEditor/MdEditorInForm.tsx ***! + \**********************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "h": function() { return /* binding */ MdEditorInForm; }, +/* harmony export */ "x": function() { return /* binding */ RegularInput; } +/* harmony export */ }); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js */ 70215); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components/markdown-editor */ 55373); +/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./index.less?modules */ 52654); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 67294); +/* harmony import */ var _components_RenderHtml__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/components/RenderHtml */ 12768); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ 85893); + + +var _excluded = ["value", "onChange", "scrollId"]; + + + + + +var MdEditorInForm = function MdEditorInForm(_ref) { + var value = _ref.value, + onChange = _ref.onChange, + scrollId = _ref.scrollId, + props = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default()(_ref, _excluded); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", { + id: scrollId || '', + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, props), {}, { + defaultValue: value, + onChange: onChange + })) + }); +}; +var RegularInput = function RegularInput(_ref2) { + var value = _ref2.value, + onChange = _ref2.onChange, + placeholder = _ref2.placeholder, + _ref2$height = _ref2.height, + height = _ref2$height === void 0 ? 140 : _ref2$height, + isEdit = _ref2.isEdit; + return isEdit ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { + watch: true, + isFocus: true, + height: height, + placeholder: placeholder, + defaultValue: value, + onChange: onChange + }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", { + style: { + cursor: 'pointer' + }, + children: value ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_RenderHtml__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"].inputBorder */ .Z.inputBorder, + value: value + }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", { + className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"].inputBorder */ .Z.inputBorder, " ").concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"].placeholder */ .Z.placeholder), + children: placeholder + }) + }); +}; + + +/***/ }), + +/***/ 13355: +/*!********************************************************************!*\ + !*** ./src/components/QuestionEditor/SubjectiveQuestionEditor.tsx ***! + \********************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "W": function() { return /* binding */ SubjectiveQuestionEditor; } +/* harmony export */ }); +/* harmony import */ var antd_es_input_number_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/input-number/style */ 25359); +/* harmony import */ var antd_es_input_number__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! antd/es/input-number */ 87799); +/* harmony import */ var antd_es_input_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/input/style */ 69463); +/* harmony import */ var antd_es_input__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! antd/es/input */ 75008); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js */ 74704); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var antd_es_row_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd/es/row/style */ 13062); +/* harmony import */ var antd_es_row__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! antd/es/row */ 71230); +/* harmony import */ var antd_es_tooltip_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd/es/tooltip/style */ 38390); +/* harmony import */ var antd_es_tooltip__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! antd/es/tooltip */ 84908); +/* harmony import */ var antd_es_col_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd/es/col/style */ 89032); +/* harmony import */ var antd_es_col__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! antd/es/col */ 15746); +/* harmony import */ var antd_es_switch_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd/es/switch/style */ 5812); +/* harmony import */ var antd_es_switch__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! antd/es/switch */ 94594); +/* harmony import */ var antd_es_form_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd/es/form/style */ 75627); +/* harmony import */ var antd_es_form__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! antd/es/form */ 51018); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_8__); +/* harmony import */ var antd_es_tag_style__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd/es/tag/style */ 71114); +/* harmony import */ var antd_es_tag__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! antd/es/tag */ 20550); +/* harmony import */ var antd_es_message_style__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd/es/message/style */ 14934); +/* harmony import */ var antd_es_message__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! antd/es/message */ 12461); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_11__); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js */ 70215); +/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_12__); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react */ 67294); +/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./index.less?modules */ 52654); +/* harmony import */ var _MdEditorInForm__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./MdEditorInForm */ 95293); +/* harmony import */ var _components_markdown_editor__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @/components/markdown-editor */ 55373); +/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @ant-design/icons */ 63783); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! react/jsx-runtime */ 85893); + + + + + + + + + + + + + + + + + + + + + + +var _excluded = ["value", "onChange"], + _excluded2 = ["key", "name"]; + + + + + + + + +var AnswerTextFormItem = function AnswerTextFormItem(_ref) { + var value = _ref.value, + onChange = _ref.onChange, + props = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_12___default()(_ref, _excluded); + var handleChange = function handleChange(v) { + onChange([v]); + }; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_components_markdown_editor__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_11___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_11___default()({}, props), {}, { + defaultValue: value === null || value === void 0 ? void 0 : value[0], + onChange: handleChange + })); +}; +var test = function test(str) { + if (!str) { + return false; + } + var containSpecial = new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~!@#¥……&*()—【】‘;:”“。,、?「」『』_\\+\\-·%《》]|[\\\\/]"); + if (containSpecial.test(str)) { + antd_es_message__WEBPACK_IMPORTED_MODULE_18__/* ["default"].warn */ .ZP.warn("关键词不能含有特殊字符!"); + return false; + } + if (str === '|') { + antd_es_message__WEBPACK_IMPORTED_MODULE_18__/* ["default"].warn */ .ZP.warn("关键词不能只输入一个“|”字符!"); + return false; + } + return true; +}; +var KeywordTag = function KeywordTag(_ref2) { + var _ref2$value = _ref2.value, + value = _ref2$value === void 0 ? [] : _ref2$value, + onClose = _ref2.onClose; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_tag__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, { + closable: true, + onClose: onClose, + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_14__/* ["default"].keywordTag */ .Z.keywordTag, + children: value === null || value === void 0 ? void 0 : value.join(' 或 ') + }); +}; +var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) { + var questionTitlePlaceholder = _ref3.questionTitlePlaceholder, + form = _ref3.form, + showKeywords = _ref3.showKeywords; + var _useState = (0,react__WEBPACK_IMPORTED_MODULE_13__.useState)(false), + _useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_8___default()(_useState, 2), + editAnalysis = _useState2[0], + setEditAnalysis = _useState2[1]; + var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_13__.useState)(''), + _useState4 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_8___default()(_useState3, 2), + keywordsInput = _useState4[0], + setKeywordsInput = _useState4[1]; + var useKeywordsValue = antd_es_form__WEBPACK_IMPORTED_MODULE_20__/* ["default"].useWatch */ .Z.useWatch('use_keywords', form); + var questionScore = antd_es_form__WEBPACK_IMPORTED_MODULE_20__/* ["default"].useWatch */ .Z.useWatch('question_score', form); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)("div", { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_14__/* ["default"].wrap */ .Z.wrap, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)("div", { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_14__/* ["default"].questionTitleEditorWrap */ .Z.questionTitleEditorWrap, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_20__/* ["default"].Item */ .Z.Item, { + label: "\u9898\u5E72", + name: "name", + labelCol: { + span: 24 + }, + rules: [{ + required: true + }], + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_MdEditorInForm__WEBPACK_IMPORTED_MODULE_15__/* .MdEditorInForm */ .h, { + scrollId: "name", + watch: true, + height: 140, + placeholder: questionTitlePlaceholder + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_20__/* ["default"].Item */ .Z.Item, { + label: "\u53C2\u8003\u7B54\u6848", + name: "answer_texts", + labelCol: { + span: 24 + }, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(AnswerTextFormItem, { + watch: true, + height: 140, + placeholder: '请编辑参考答案(非必填)' + }) + }), showKeywords && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(antd_es_row__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .Z, { + align: "middle", + className: "mb30", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_20__/* ["default"].Item */ .Z.Item, { + name: "use_keywords", + valuePropName: "checked", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_switch__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z, {}) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_col__WEBPACK_IMPORTED_MODULE_23__/* ["default"] */ .Z, { + className: "ml10", + children: "\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_col__WEBPACK_IMPORTED_MODULE_23__/* ["default"] */ .Z, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_tooltip__WEBPACK_IMPORTED_MODULE_24__/* ["default"] */ .Z, { + placement: "right", + title: "\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_25__/* ["default"] */ .Z, { + style: { + color: '#3061D0', + marginLeft: 6, + cursor: 'pointer' + } + }) + }) + })] + }), useKeywordsValue && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_20__/* ["default"].List */ .Z.List, { + name: "keywords", + rules: [{ + validator: function validator(rule, values) { + if (!(values !== null && values !== void 0 && values.length)) { + return Promise.reject(new Error('请输入关键词')); + } + var keywordsScoreSum = values === null || values === void 0 ? void 0 : values.reduce(function (pre, cur) { + return pre + cur.score; + }, 0); + if (keywordsScoreSum > parseFloat(questionScore)) { + return Promise.reject(new Error('所有关键词的分值之和必须小于等于该小题的分值')); + } + return Promise.resolve(); + } + }], + children: function children(fields, _ref4) { + var add = _ref4.add, + remove = _ref4.remove; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)("div", { + className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_14__/* ["default"].title */ .Z.title, " mb10"), + children: "\u5173\u952E\u8BCD" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(antd_es_row__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .Z, { + align: "middle", + className: "font14 mb30", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_col__WEBPACK_IMPORTED_MODULE_23__/* ["default"] */ .Z, { + flex: 1, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_input__WEBPACK_IMPORTED_MODULE_26__/* ["default"] */ .Z, { + value: keywordsInput, + onChange: function onChange(e) { + setKeywordsInput(e.target.value); + }, + maxLength: 50, + allowClear: true, + onPressEnter: function onPressEnter(e) { + var _e$target, _v$split, _currentKeywordsValue; + var v = "".concat((_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value).replaceAll(' ', ''); //去除所有的空格,同时空格也不触发非法字符校验了 + var keywordArr = v === null || v === void 0 ? void 0 : (_v$split = v.split('|')) === null || _v$split === void 0 ? void 0 : _v$split.filter(function (k) { + return !!k; + }); + var currentKeywordsValue = form.getFieldValue('keywords'); + var existKeywords = (currentKeywordsValue === null || currentKeywordsValue === void 0 ? void 0 : (_currentKeywordsValue = currentKeywordsValue.map(function (item) { + return item === null || item === void 0 ? void 0 : item.keyword; + })) === null || _currentKeywordsValue === void 0 ? void 0 : _currentKeywordsValue.flat()) || []; + var _iterator = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2___default()(keywordArr), + _step; + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var word = _step.value; + if (existKeywords.includes(word)) { + antd_es_message__WEBPACK_IMPORTED_MODULE_18__/* ["default"].error */ .ZP.error('为避免判分错误,请勿设置相同的关键词'); + return; + } + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + if (test(v)) { + add({ + keyword: keywordArr, + score: 1 + }); + setKeywordsInput(''); + } + }, + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_14__/* ["default"].inputBorder */ .Z.inputBorder, + placeholder: "\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00" + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_col__WEBPACK_IMPORTED_MODULE_23__/* ["default"] */ .Z, { + flex: '148px', + style: { + textAlign: 'right', + color: '#9096A3' + }, + children: "\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD" + })] + }), fields.map(function (_ref5) { + var key = _ref5.key, + name = _ref5.name, + restField = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_12___default()(_ref5, _excluded2); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_row__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .Z, { + className: "mb20", + style: { + marginRight: 148 + }, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_col__WEBPACK_IMPORTED_MODULE_23__/* ["default"] */ .Z, { + flex: 1, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsxs)(antd_es_row__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .Z, { + align: "middle", + justify: "space-between", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_20__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_11___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_11___default()({}, restField), {}, { + name: [name, "keyword"], + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(KeywordTag, { + onClose: function onClose() { + return remove(name); + } + }) + })), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_20__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_11___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_11___default()({}, restField), {}, { + name: [name, "score"], + label: "\u5206\u503C", + rules: [{ + required: true + }], + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_14__/* ["default"].blankInputNumberWrapper */ .Z.blankInputNumberWrapper, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_input_number__WEBPACK_IMPORTED_MODULE_27__/* ["default"] */ .Z, { + className: _index_less_modules__WEBPACK_IMPORTED_MODULE_14__/* ["default"].blankInput */ .Z.blankInput, + min: 0.1, + max: 100, + precision: 1, + style: { + width: '100%' + }, + placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570" + }) + }))] + }) + }) + }, key); + })] + }); + } + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)("div", { + onClick: function onClick() { + return setEditAnalysis(true); + }, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(antd_es_form__WEBPACK_IMPORTED_MODULE_20__/* ["default"].Item */ .Z.Item, { + name: "analysis", + label: "\u9898\u76EE\u89E3\u6790", + labelCol: { + span: 24 + }, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_17__.jsx)(_MdEditorInForm__WEBPACK_IMPORTED_MODULE_15__/* .RegularInput */ .x, { + placeholder: "\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09", + isEdit: editAnalysis + }) + }) + })] + }); +}; + + +/***/ }), + +/***/ 12768: +/*!*********************************************************!*\ + !*** ./src/components/RenderHtml/index.tsx + 1 modules ***! + \*********************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + "Z": function() { return /* binding */ RenderHtml; } +}); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js +var objectSpread2 = __webpack_require__(42122); +var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js +var slicedToArray = __webpack_require__(27424); +var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray); +// EXTERNAL MODULE: ./node_modules/react/index.js +var react = __webpack_require__(67294); +// EXTERNAL MODULE: ./node_modules/katex/dist/katex.min.css +var katex_min = __webpack_require__(81897); +// EXTERNAL MODULE: ./node_modules/marked/lib/marked.js +var marked = __webpack_require__(47084); +var marked_default = /*#__PURE__*/__webpack_require__.n(marked); +// EXTERNAL MODULE: ./node_modules/marked/src/helpers.js +var helpers = __webpack_require__(90621); +;// CONCATENATED MODULE: ./src/utils/marked.ts + + + +function indentCodeCompensation(raw, text) { + var matchIndentToCode = raw.match(/^(\s+)(?:```)/); + if (matchIndentToCode === null) { + return text; + } + var indentToCode = matchIndentToCode[1]; + return text.split('\n').map(function (node) { + var matchIndentInNode = node.match(/^\s+/); + if (matchIndentInNode === null) { + return node; + } + var _matchIndentInNode = slicedToArray_default()(matchIndentInNode, 1), + indentInNode = _matchIndentInNode[0]; + if (indentInNode.length >= indentToCode.length) { + return node.slice(indentToCode.length); + } + return node; + }).join('\n'); +} +//兼容之前的 ##标题式写法 +var toc = []; +var ctx = ["