diff --git a/10240.async.js b/10240.async.js
index 0c20c8de33..b22c15f18c 100644
--- a/10240.async.js
+++ b/10240.async.js
@@ -315,7 +315,6 @@ var jsx_runtime = __webpack_require__(85893);
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;
// let size;
- console.log("disabledDownload---", disabledDownload);
var unit = 1024 * 1024;
var maxSize = 10 * unit;
var closeRef = (0,react.useRef)();
diff --git a/11354.async.js b/11354.async.js
new file mode 100644
index 0000000000..e784c39e99
--- /dev/null
+++ b/11354.async.js
@@ -0,0 +1,3514 @@
+"use strict";
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[11354,12768,66390],{
+
+/***/ 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';
+
+/***/ }),
+
+/***/ 82982:
+/*!*****************************************!*\
+ !*** ./src/components/NoData/index.tsx ***!
+ \*****************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* 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 react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 4977);
+/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 71577);
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
+
+
+
+
+
+
+var noData = function noData(_ref) {
+ var img = _ref.img,
+ _ref$buttonProps = _ref.buttonProps,
+ buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
+ _ref$styles = _ref.styles,
+ styles = _ref$styles === void 0 ? {} : _ref$styles,
+ customText = _ref.customText,
+ ButtonText = _ref.ButtonText,
+ ButtonClick = _ref.ButtonClick,
+ Buttonclass = _ref.Buttonclass,
+ ButtonTwo = _ref.ButtonTwo,
+ imgStyles = _ref.imgStyles,
+ _ref$loading = _ref.loading,
+ loading = _ref$loading === void 0 ? false : _ref$loading;
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", {
+ className: "tc animated fadeIn",
+ style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_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()({}, {
+ color: '#999',
+ margin: '100px auto',
+ visibility: loading ? 'hidden' : 'visible'
+ }), styles),
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", {
+ src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__,
+ style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles)
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", {
+ className: "mt20 font14",
+ children: customText || '暂时还没有相关数据哦!'
+ }), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_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()({
+ 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/@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/antd/es/button/index.js
+var es_button = __webpack_require__(71577);
+// 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: ./node_modules/antd/es/tooltip/index.js + 3 modules
+var tooltip = __webpack_require__(83062);
+// 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/components/NoData/index.tsx
+var NoData = __webpack_require__(82982);
+// 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,
+ showNodata = _ref.showNodata;
+ 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;
+ // let 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 = parseUrl(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" || type === "download") && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
+ children: showNodata ? /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
+ customText: "\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",
+ ButtonTwo: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
+ icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "iconfont icon-xiazai4 font14"
+ }),
+ type: "primary",
+ size: 'middle',
+ onClick: handleClick,
+ children: "\u4E0B\u8F7D"
+ })
+ }) : /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
+ type: "primary",
+ size: 'middle',
+ onClick: handleClick,
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ArrowDownOutlined/* default */.Z, {}), "\u70B9\u51FB\u4E0B\u8F7D"]
+ })
+ })]
+ });
+});
+
+/***/ }),
+
+/***/ 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/toConsumableArray.js
+var toConsumableArray = __webpack_require__(861);
+var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js
+var createForOfIteratorHelper = __webpack_require__(74704);
+var createForOfIteratorHelper_default = /*#__PURE__*/__webpack_require__.n(createForOfIteratorHelper);
+// 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 = ["
"];
+var renderer = new (marked_default()).Renderer();
+var headingRegex = /^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;
+function cleanToc() {
+ toc.length = 0;
+ ctx = [""];
+}
+var lines = {
+ overflow: "hidden",
+ WebkitBoxOrient: "vertical",
+ display: "-webkit-box",
+ WebkitLineClamp: 2
+};
+function buildToc(coll, k, level, ctx) {
+ if (k >= coll.length || coll[k].level <= level) {
+ return k;
+ }
+ var node = coll[k];
+ ctx.push("- " + node.text + "");
+ k++;
+ var childCtx = [];
+ k = buildToc(coll, k, node.level, childCtx);
+ if (childCtx.length > 0) {
+ ctx.push("
");
+ childCtx.forEach(function (idm) {
+ ctx.push(idm);
+ });
+ ctx.push("
");
+ }
+ ctx.push(" ");
+ k = buildToc(coll, k, level, ctx);
+ return k;
+}
+function getTocContent() {
+ buildToc(toc, 0, 0, ctx);
+ ctx.push("
");
+ return ctx.join("");
+}
+var tokenizer = {
+ heading: function heading(src) {
+ var cap = headingRegex.exec(src);
+ if (cap) {
+ return {
+ type: 'heading',
+ raw: cap[0],
+ depth: cap[1].length,
+ text: cap[2]
+ };
+ }
+ },
+ fences: function fences(src) {
+ var cap = this.rules.block.fences.exec(src);
+ if (cap) {
+ var raw = cap[0];
+ var text = indentCodeCompensation(raw, cap[3] || '');
+ var lang = cap[2] ? cap[2].trim() : cap[2];
+ if (['latex', 'katex', 'math'].indexOf(lang) >= 0) {
+ var id = next_id();
+ var expression = text;
+ text = id;
+ math_expressions[id] = {
+ type: 'block',
+ expression: expression
+ };
+ }
+ return {
+ type: 'code',
+ raw: raw,
+ lang: lang,
+ text: text
+ };
+ }
+ }
+};
+var latexRegex = /(?:\${2})([^\n`]+?)(?:\${2})/gi;
+var katex_count = 0;
+var next_id = function next_id() {
+ return "__special_katext_id_".concat(katex_count++, "__");
+};
+var math_expressions = {};
+function getMathExpressions() {
+ return math_expressions;
+}
+function resetMathExpressions() {
+ katex_count = 0;
+ math_expressions = {};
+}
+function replace_math_with_ids(text) {
+ text = text.replace(latexRegex, function (_match, expression) {
+ var id = next_id();
+ math_expressions[id] = {
+ type: 'inline',
+ expression: expression
+ };
+ return id;
+ });
+ return text;
+}
+var original_listitem = renderer.listitem;
+renderer.listitem = function (text) {
+ return original_listitem(replace_math_with_ids(text));
+};
+var original_paragraph = renderer.paragraph;
+renderer.paragraph = function (text) {
+ return original_paragraph(replace_math_with_ids(text));
+};
+var original_tablecell = renderer.tablecell;
+renderer.tablecell = function (content, flags) {
+ return original_tablecell(replace_math_with_ids(content), flags);
+};
+renderer.code = function (code, infostring, escaped) {
+ var lang = (infostring || '').match(/\S*/)[0];
+ if (!lang) {
+ return '
' + (escaped ? code : (0,helpers.escape)(code, true)) + '
';
+ }
+ if (['latex', 'katex', 'math'].indexOf(lang) >= 0) {
+ return "".concat(code, "
");
+ } else {
+ return "").concat(escaped ? code : (0,helpers.escape)(code, true), "
\n");
+ }
+};
+renderer.heading = function (text, level, raw) {
+ var anchor = this.options.headerPrefix + raw.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g, '-');
+ toc.push({
+ anchor: anchor,
+ level: level,
+ text: text
+ });
+ return '' + text + '';
+};
+marked_default().setOptions({
+ silent: true,
+ gfm: true,
+ pedantic: false
+});
+marked_default().use({
+ tokenizer: tokenizer,
+ renderer: renderer
+});
+/* harmony default export */ var utils_marked = ((marked_default()));
+// EXTERNAL MODULE: ./node_modules/code-prettify/src/prettify.js
+var prettify = __webpack_require__(11771);
+// EXTERNAL MODULE: ./node_modules/hls.js/dist/hls.js
+var dist_hls = __webpack_require__(67631);
+var hls_default = /*#__PURE__*/__webpack_require__.n(dist_hls);
+// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
+var env = __webpack_require__(59758);
+// EXTERNAL MODULE: ./node_modules/katex/dist/katex.js
+var katex = __webpack_require__(20527);
+// EXTERNAL MODULE: ./node_modules/uuid/dist/esm-browser/v4.js + 4 modules
+var v4 = __webpack_require__(25934);
+// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 1 modules
+var PreviewAll = __webpack_require__(36579);
+// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
+var jsx_runtime = __webpack_require__(85893);
+;// CONCATENATED MODULE: ./src/components/RenderHtml/index.tsx
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+var ADD_MULTI = '@▁▁@';
+var ADD_SINGLE = '@▁@';
+var preRegex = /]*>/g;
+function _unescape(str) {
+ var div = document.createElement('div');
+ div.innerHTML = str;
+ return div.childNodes.length === 0 ? '' : div.childNodes[0].nodeValue;
+}
+/* harmony default export */ var RenderHtml = (function (_ref) {
+ var _ref$value = _ref.value,
+ value = _ref$value === void 0 ? '' : _ref$value,
+ className = _ref.className,
+ showTextOnly = _ref.showTextOnly,
+ showLines = _ref.showLines,
+ _ref$style = _ref.style,
+ style = _ref$style === void 0 ? {} : _ref$style,
+ _ref$stylesPrev = _ref.stylesPrev,
+ stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev,
+ highlightKeywords = _ref.highlightKeywords,
+ showProgramFill = _ref.showProgramFill,
+ isProgramFill = _ref.isProgramFill,
+ _ref$disabledFill = _ref.disabledFill,
+ disabledFill = _ref$disabledFill === void 0 ? false : _ref$disabledFill,
+ programFillValue = _ref.programFillValue,
+ _ref$onFillChange = _ref.onFillChange,
+ onFillChange = _ref$onFillChange === void 0 ? function (value) {} : _ref$onFillChange,
+ _ref$onFillBlur = _ref.onFillBlur,
+ onFillBlur = _ref$onFillBlur === void 0 ? function () {} : _ref$onFillBlur;
+ var str = String(value);
+ var _useState = (0,react.useState)(""),
+ _useState2 = slicedToArray_default()(_useState, 2),
+ data = _useState2[0],
+ setData = _useState2[1];
+ var _useState3 = (0,react.useState)("office"),
+ _useState4 = slicedToArray_default()(_useState3, 2),
+ type = _useState4[0],
+ setType = _useState4[1];
+ var _useState5 = (0,react.useState)([]),
+ _useState6 = slicedToArray_default()(_useState5, 2),
+ projectValue = _useState6[0],
+ setProjectValue = _useState6[1];
+ var classNamesRef = (0,react.useRef)("a" + (0,v4/* default */.Z)());
+ var formObj = {};
+ var createInput = function createInput(a, num) {
+ // const wrap = document.createElement("span")
+ // wrap.className =
+ var input = document.createElement(a === ADD_SINGLE ? "input" : "textarea");
+ input.style.width = "100%";
+ input.style.height = a === ADD_SINGLE ? "40px" : "151px";
+ input.rows = 5;
+ input.spellcheck = false;
+ input.name = "edu-program-fill";
+ input.placeholder = "请输入";
+ input.dataset.id = num;
+ var key = Object.keys(formObj).length;
+ formObj[key] = input;
+ return "").concat(input.outerHTML, "");
+ };
+ var formatMD = function formatMD(rs) {
+ return rs.replace(/([\s\S]+?)<\/style>/gim, function (_, css) {
+ var _css = css.replace(/(\n|\r)/g, "").split("}");
+ var arr = [];
+ _css.map(function (item) {
+ if (item != '') {
+ arr.push(".".concat(classNamesRef.current, " ").concat(item));
+ }
+ });
+ return "");
+ });
+ };
+ var html = (0,react.useMemo)(function () {
+ try {
+ var reg = /\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g;
+ var reg2 = /\"\/api\/attachments\/|\"\/attachments\/download\//g;
+ var reg3 = /\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;
+ str = str.replace(reg, "(" + env/* default.API_SERVER */.Z.API_SERVER + "/api/attachments/").replace(reg2, '"' + env/* default.API_SERVER */.Z.API_SERVER + "/api/attachments/").replace(reg3, '"' + env/* default.API_SERVER */.Z.API_SERVER + "/files/uploads/").replaceAll("http://video.educoder", "https://video.educoder").replaceAll("http://www.educoder.net/api", "https://data.educoder.net/api").replaceAll("https://www.educoder.net/api", "https://data.educoder.net/api").replace(/\r\n/g, "\n");
+ // str = str.replace(new RegExp("(?".concat(formatMD(str || ""), "");
+ }
+ var rs = utils_marked(str);
+ rs = formatMD(rs);
+ var math_expressions = getMathExpressions();
+ if (str.match(/\[TOC\]/)) {
+ rs = rs.replace('[TOC]
', getTocContent());
+ cleanToc();
+ }
+ rs = rs.replace(/(__special_katext_id_\d+__)/g, function (_match, capture) {
+ var _math_expressions$cap = math_expressions[capture],
+ type = _math_expressions$cap.type,
+ expression = _math_expressions$cap.expression;
+ return (0,katex.renderToString)(_unescape(expression) || '', {
+ displayMode: type === 'block',
+ throwOnError: false,
+ output: 'html'
+ });
+ });
+ rs = rs.replace(/▁/g, '▁▁▁');
+ resetMathExpressions();
+ // return dompurify.sanitize(rs)
+ var dom = document.createElement('div');
+ dom.innerHTML = rs;
+ if (highlightKeywords) {
+ var escapedKeywords = highlightKeywords.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
+ findKeyword(dom, escapedKeywords);
+ return dom.innerHTML;
+ }
+ if (showTextOnly) {
+ return dom.innerText;
+ }
+ setTimeout(function () {
+ return onLoad();
+ }, 500);
+ console.log("dom.innerHTML:", dom.innerHTML);
+ return dom.innerHTML;
+ }, [str, highlightKeywords]);
+ (0,react.useEffect)(function () {
+ if (el.current) {
+ var inputs = el.current.querySelectorAll(["input", "textarea"]);
+ inputs.forEach(function (input) {
+ input.oninput = onInput;
+ input.onblur = onBlur;
+ });
+ }
+ }, [projectValue]);
+ (0,react.useEffect)(function () {
+ if (!!(programFillValue !== null && programFillValue !== void 0 && programFillValue.length)) {
+ var scoreDom = el.current.querySelectorAll(".edu-program-fill-score");
+ var dom = el.current.querySelectorAll('[name="edu-program-fill"]');
+ var _iterator = createForOfIteratorHelper_default()(dom.entries()),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var _programFillValue$k;
+ var _step$value = slicedToArray_default()(_step.value, 2),
+ k = _step$value[0],
+ i = _step$value[1];
+ i.value = (_programFillValue$k = programFillValue[k]) === null || _programFillValue$k === void 0 ? void 0 : _programFillValue$k.value;
+ if (programFillValue[k].type === "warning") {
+ i.className = "program-fill-warning";
+ } else if (programFillValue[k].type === "success") {
+ i.className = "program-fill-success";
+ } else {
+ i.className = "";
+ }
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ var _iterator2 = createForOfIteratorHelper_default()(scoreDom.entries()),
+ _step2;
+ try {
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
+ var _programFillValue$_k, _programFillValue$_k2;
+ var _step2$value = slicedToArray_default()(_step2.value, 2),
+ _k = _step2$value[0],
+ _i = _step2$value[1];
+ _i.innerHTML = (_programFillValue$_k = programFillValue[_k]) !== null && _programFillValue$_k !== void 0 && _programFillValue$_k.score ? "".concat((_programFillValue$_k2 = programFillValue[_k]) === null || _programFillValue$_k2 === void 0 ? void 0 : _programFillValue$_k2.score, "\u5206") : "";
+ }
+ } catch (err) {
+ _iterator2.e(err);
+ } finally {
+ _iterator2.f();
+ }
+ setProjectValue(programFillValue);
+ }
+ }, [programFillValue]);
+ var onInput = function onInput(e) {
+ projectValue[e.target.dataset.id] = projectValue[e.target.dataset.id] || {};
+ projectValue[e.target.dataset.id]["value"] = e.target.value;
+ setProjectValue(toConsumableArray_default()(projectValue));
+ onFillChange(projectValue, e.target.dataset.id);
+ };
+ var onBlur = function onBlur(e) {
+ projectValue[e.target.dataset.id] = projectValue[e.target.dataset.id] || {};
+ projectValue[e.target.dataset.id]["value"] = e.target.value;
+ setProjectValue(toConsumableArray_default()(projectValue));
+ onFillBlur(projectValue, e.target.dataset.id);
+ };
+ function findKeyword(node, keyword) {
+ return node.childNodes.forEach(function (childNode) {
+ if (childNode.childNodes.length > 0) {
+ findKeyword(childNode, keyword);
+ } else if (childNode.nodeName !== "IMG") {
+ if (childNode.innerHTML) {
+ var _childNode$innerHTML;
+ childNode.innerHTML = (_childNode$innerHTML = childNode.innerHTML) === null || _childNode$innerHTML === void 0 ? void 0 : _childNode$innerHTML.replace(new RegExp(keyword, "gi"), '$&');
+ } else {
+ var dom = document.createElement("span");
+ dom.innerHTML = childNode.textContent.replace(new RegExp(keyword, "gi"), '$&');
+ childNode.replaceWith(dom);
+ }
+ }
+ });
+
+ // return dom.childNodes.forEach((node:any) => {
+ // console.log("nodeLen:",node.childNodes.length)
+ // if(node.childNodes.length > 0){
+ // debugger
+ // // findKeyword(dom.childNodes,keyword)
+ // }else{
+ // if(node.nodeName !== "#text"){
+ // node.innerHTML = node.innerHTML.replaceAll(keyword,`${keyword}`)
+ // console.log("node:",node,dom,node.nodeName,node.innerHTML,node.childNodes.length)
+ // debugger
+ // }
+ // }
+
+ // return node
+ // });
+ }
+
+ var el = (0,react.useRef)();
+ lines.WebkitLineClamp = showLines;
+ if (showLines) {
+ style = objectSpread2_default()(objectSpread2_default()({}, style), lines);
+ }
+ function onAncherHandler(e) {
+ var target = e.target;
+ if (target.tagName.toUpperCase() === 'A') {
+ var ancher = target.getAttribute('href');
+ if (ancher.indexOf("office") > -1) {
+ e.preventDefault();
+ setData(ancher);
+ setType("office");
+ } else if (ancher.indexOf("application/pdf") > -1) {
+ e.preventDefault();
+ setData(ancher);
+ setType("pdf");
+ } else if (ancher.indexOf("text/html") > -1) {
+ e.preventDefault();
+ setData(ancher);
+ setType("html");
+ } else if (ancher.startsWith('#')) {
+ e.preventDefault();
+ var viewEl = document.getElementById(ancher.replace('#', ''));
+ if (viewEl) {
+ viewEl.scrollIntoView(true);
+ }
+ }
+ }
+ }
+ var onLoad = function onLoad() {
+ var _el$current;
+ var videoElement = (_el$current = el.current) === null || _el$current === void 0 ? void 0 : _el$current.querySelectorAll('video');
+ videoElement === null || videoElement === void 0 ? void 0 : videoElement.forEach(function (item) {
+ item.oncontextmenu = function () {
+ return false;
+ };
+ if (item.src.indexOf('.m3u8') > -1) {
+ if (item.canPlayType('application/vnd.apple.mpegurl')) {} else if (hls_default().isSupported()) {
+ var hls = new (hls_default())();
+ hls.loadSource(item.src);
+ hls.attachMedia(item);
+ }
+ }
+ });
+ };
+ (0,react.useEffect)(function () {
+ if (el.current && html) {
+ if (html.match(preRegex)) {
+ window.PR.prettyPrint();
+ }
+ }
+ if (el.current) {
+ el.current.addEventListener('click', onAncherHandler);
+ return function () {
+ var _el$current2;
+ (_el$current2 = el.current) === null || _el$current2 === void 0 ? void 0 : _el$current2.removeEventListener('click', onAncherHandler);
+ resetMathExpressions();
+ cleanToc();
+ };
+ }
+ }, [html, el.current, onAncherHandler]);
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
+ children: [showTextOnly && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ ref: el,
+ children: html
+ }), !showTextOnly && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ ref: el,
+ style: objectSpread2_default()({}, style),
+ className: "".concat(className ? className : '', " ").concat(disabledFill ? "disabled-fill" : "", " markdown-body ").concat(classNamesRef.current),
+ dangerouslySetInnerHTML: {
+ __html: html
+ }
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z, {
+ close: true,
+ data: data,
+ type: !!(data !== null && data !== void 0 && data.length) ? type : "",
+ style: objectSpread2_default()({}, stylesPrev),
+ onClose: function onClose() {
+ return setData("");
+ }
+ })]
+ });
+});
+
+/***/ }),
+
+/***/ 97501:
+/*!*************************************************************!*\
+ !*** ./src/components/markdown-editor/code-block/index.tsx ***!
+ \*************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "h": function() { return /* binding */ MyCodeMirror; }
+/* 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_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __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_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd */ 79035);
+/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd */ 25159);
+/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ 71577);
+/* harmony import */ var codemirror__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! codemirror */ 4631);
+/* harmony import */ var codemirror__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(codemirror__WEBPACK_IMPORTED_MODULE_3__);
+/* harmony import */ var codemirror_lib_codemirror_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! codemirror/lib/codemirror.css */ 71749);
+/* harmony import */ var codemirror_theme_blackboard_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! codemirror/theme/blackboard.css */ 30483);
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
+
+
+
+
+
+
+
+
+
+var Option = antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"].Option */ .Z.Option;
+
+//https://github.com/codemirror/CodeMirror/issues/4838
+var formItemLayout = {
+ labelCol: {
+ span: 4
+ },
+ wrapperCol: {
+ span: 20
+ }
+};
+var LanguageDesc = {
+ asp: ['ASP', 'vbscript'],
+ actionscript: ['ActionScript(3.0)/Flash/Flex', 'clike'],
+ bash: ['Bash/Bat', 'shell'],
+ css: ['CSS', 'css'],
+ c: ['C', 'clike'],
+ cpp: ['C++', 'clike'],
+ csharp: ['C#', 'clike'],
+ coffeescript: ['CoffeeScript', 'coffeescript'],
+ d: ['D', 'd'],
+ dart: ['Dart', 'dart'],
+ delphi: ['Delphi/Pascal', 'pascal'],
+ erlang: ['Erlang', 'erlang'],
+ go: ['Golang', 'go'],
+ groovy: ['Groovy', 'groovy'],
+ html: ['HTML', 'text/html'],
+ java: ['Java', 'clike'],
+ json: ['JSON', 'text/json'],
+ javascript: ['Javascript', 'javascript'],
+ lua: ['Lua', 'lua'],
+ less: ['LESS', 'css'],
+ markdown: ['Markdown', 'gfm'],
+ 'objective-c': ['Objective-C', 'clike'],
+ php: ['PHP', 'php'],
+ perl: ['Perl', 'perl'],
+ python: ['Python', 'python'],
+ r: ['R', 'r'],
+ rst: ['reStructedText', 'rst'],
+ ruby: ['Ruby', 'ruby'],
+ sql: ['SQL', 'sql'],
+ sass: ['SASS/SCSS', 'sass'],
+ shell: ['Shell', 'shell'],
+ scala: ['Scala', 'clike'],
+ swift: ['Swift', 'clike'],
+ vb: ['VB/VBScript', 'vb'],
+ xml: ['XML', 'text/xml'],
+ yaml: ['YAML', 'yaml']
+};
+/* harmony default export */ __webpack_exports__["Z"] = (function (_ref) {
+ var callback = _ref.callback,
+ onCancel = _ref.onCancel;
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)('python'),
+ _useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1___default()(_useState, 2),
+ mode = _useState2[0],
+ setMode = _useState2[1];
+ function onSetMode(value) {
+ setMode(LanguageDesc[value][1]);
+ }
+ function onSubmit(values) {
+ callback(values);
+ }
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(antd__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()({}, formItemLayout), {}, {
+ className: "code-block-panel",
+ initialValues: {
+ language: 'python',
+ content: ''
+ },
+ onFinish: onSubmit,
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_8__/* ["default"].Item */ .Z.Item, {
+ label: "\u4EE3\u7801\u8BED\u8A00",
+ name: "language",
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
+ getPopupContainer: function getPopupContainer(trigger) {
+ return trigger.parentNode;
+ },
+ onChange: onSetMode,
+ children: Object.keys(LanguageDesc).map(function (item) {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(Option, {
+ value: item,
+ children: LanguageDesc[item][0]
+ }, item);
+ })
+ })
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_8__/* ["default"].Item */ .Z.Item, {
+ label: "\u4EE3\u7801\u5185\u5BB9",
+ name: "content",
+ rules: [{
+ required: true,
+ message: '请输入代码内容'
+ }],
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(MyCodeMirror, {
+ mode: mode
+ })
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", {
+ className: "flex-container flex-end",
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP, {
+ type: "primary",
+ htmlType: "submit",
+ style: {
+ marginRight: 10
+ },
+ children: "\u786E\u5B9A"
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP, {
+ type: "ghost",
+ onClick: onCancel,
+ children: "\u53D6\u6D88"
+ })]
+ })]
+ }));
+});
+function MyCodeMirror(_ref2) {
+ var value = _ref2.value,
+ onChange = _ref2.onChange,
+ mode = _ref2.mode,
+ _ref2$options = _ref2.options,
+ options = _ref2$options === void 0 ? {} : _ref2$options;
+ var el = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
+ var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(),
+ _useState4 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1___default()(_useState3, 2),
+ cm = _useState4[0],
+ setCm = _useState4[1];
+ (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
+ if (cm) {
+ var onChangeHandler = function onChangeHandler(cm) {
+ var content = cm.getValue();
+ onChange && onChange(content);
+ };
+ cm.on('change', onChangeHandler);
+ return function () {
+ cm.off('change', onChangeHandler);
+ };
+ }
+ }, [cm, onChange]);
+ (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
+ if (cm) {
+ cm.setOption('mode', mode);
+ }
+ }, [cm, mode]);
+ (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
+ if (cm) {
+ if (value !== cm.getValue() || value === '') {
+ setTimeout(function () {
+ cm.setValue(value || '');
+ }, 300);
+ }
+ }
+ }, [cm, value]);
+ (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
+ if (el.current && !cm) {
+ var instance = codemirror__WEBPACK_IMPORTED_MODULE_3___default().fromTextArea(el.current, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
+ mode: mode,
+ lineNumbers: true,
+ lineWrapping: true,
+ autoCloseBrackets: true,
+ tabSize: 4,
+ autofocus: true,
+ autoCloseTags: true,
+ matchBrackets: true,
+ styleActiveLine: true
+ }, options));
+ setCm(instance);
+ }
+ }, [el.current, cm]);
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
+ className: "my-codemirror-container",
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("textarea", {
+ ref: el
+ })
+ });
+}
+
+/***/ }),
+
+/***/ 55373:
+/*!***************************************************************!*\
+ !*** ./src/components/markdown-editor/index.tsx + 10 modules ***!
+ \***************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ markdown_editor; }
+});
+
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js
+var createForOfIteratorHelper = __webpack_require__(74704);
+var createForOfIteratorHelper_default = /*#__PURE__*/__webpack_require__.n(createForOfIteratorHelper);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
+var slicedToArray = __webpack_require__(27424);
+var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js
+var defineProperty = __webpack_require__(38416);
+var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+// EXTERNAL MODULE: ./node_modules/codemirror/lib/codemirror.js
+var codemirror = __webpack_require__(4631);
+var codemirror_default = /*#__PURE__*/__webpack_require__.n(codemirror);
+// EXTERNAL MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
+var ResizeObserver_es = __webpack_require__(91033);
+// EXTERNAL MODULE: ./node_modules/codemirror/lib/codemirror.css
+var lib_codemirror = __webpack_require__(71749);
+// EXTERNAL MODULE: ./node_modules/codemirror/addon/edit/closetag.js
+var closetag = __webpack_require__(57341);
+// EXTERNAL MODULE: ./node_modules/codemirror/addon/edit/closebrackets.js
+var closebrackets = __webpack_require__(82801);
+// EXTERNAL MODULE: ./node_modules/codemirror/addon/display/placeholder.js
+var placeholder = __webpack_require__(88386);
+// EXTERNAL MODULE: ./node_modules/codemirror/mode/markdown/markdown.js
+var markdown = __webpack_require__(49047);
+// EXTERNAL MODULE: ./node_modules/codemirror/mode/stex/stex.js
+var stex = __webpack_require__(80785);
+;// CONCATENATED MODULE: ./src/components/markdown-editor/index.less
+// extracted by mini-css-extract-plugin
+
+// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 1 modules
+var RenderHtml = __webpack_require__(12768);
+// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
+var jsx_runtime = __webpack_require__(85893);
+;// CONCATENATED MODULE: ./src/components/RenderHtml/stex.tsx
+
+// const latexjs = require('latex-l.js/dist/latex.js');
+// import "latex-l.js/dist/css/base.css"
+
+
+/* harmony default export */ var RenderHtml_stex = (function (_ref) {
+ var _ref$value = _ref.value,
+ value = _ref$value === void 0 ? '' : _ref$value,
+ className = _ref.className,
+ showTextOnly = _ref.showTextOnly,
+ showLines = _ref.showLines,
+ _ref$style = _ref.style,
+ style = _ref$style === void 0 ? {} : _ref$style;
+ var html = (0,react.useMemo)(function () {
+ // try {
+ // const latex = value || 'This is some text';
+ // let generator = new latexjs.default.HtmlGenerator({ hyphenate: true })
+ // let doc = latexjs.default.parse(latex, { generator: generator }).htmlDocument()
+ // return doc.body.innerHTML
+ // }catch(e){
+ // console.log("e:",e)
+ // return "错误的latex语法,请检查"
+ // }
+ return "";
+ }, [value]);
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ dangerouslySetInnerHTML: {
+ __html: html
+ }
+ })
+ });
+});
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
+var objectSpread2 = __webpack_require__(42122);
+var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
+;// CONCATENATED MODULE: ./src/components/markdown-editor/toolbar/index.less
+// extracted by mini-css-extract-plugin
+
+;// CONCATENATED MODULE: ./src/components/markdown-editor/css/iconfont.css
+// extracted by mini-css-extract-plugin
+
+;// CONCATENATED MODULE: ./src/components/markdown-editor/toolbar/index.tsx
+
+
+
+
+
+
+
+var DEFAULTICONS = [{
+ title: '粗体',
+ icon: 'icon-bold',
+ actionName: 'bold'
+}, {
+ title: '斜体',
+ icon: 'icon-italic',
+ actionName: 'italic'
+}, '|', {
+ title: '无序列表',
+ icon: 'icon-unorder-list',
+ actionName: 'list-ul'
+}, {
+ title: '有序列表',
+ icon: 'icon-order-list',
+ actionName: 'list-ol'
+}, '|', {
+ title: '行内代码',
+ icon: 'icon-code',
+ actionName: 'code'
+}, {
+ title: '代码块(多语言风格)',
+ icon: 'icon-file-code',
+ actionName: 'code-block'
+}, {
+ title: '链接',
+ icon: 'icon-link',
+ actionName: 'link'
+}, '|', {
+ title: '行内公式',
+ icon: 'icon-sum',
+ actionName: 'inline-latex'
+}, {
+ title: '多行公式',
+ icon: 'icon-formula',
+ actionName: 'latex'
+}, '|', {
+ title: '添加图片',
+ icon: 'icon-picture',
+ actionName: 'upload-image'
+}, {
+ title: '表格',
+ icon: 'icon-table',
+ actionName: 'add-table'
+}, '|', {
+ title: '换行',
+ icon: 'icon-minus',
+ actionName: 'line-break'
+}, {
+ title: '清空',
+ icon: 'icon-eraser',
+ actionName: 'eraser'
+}];
+function AButton(_ref) {
+ var onActionCallback = _ref.onActionCallback,
+ title = _ref.title,
+ icon = _ref.icon,
+ actionName = _ref.actionName,
+ _ref$className = _ref.className,
+ className = _ref$className === void 0 ? '' : _ref$className,
+ children = _ref.children;
+ function onAction() {
+ onActionCallback(actionName);
+ }
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ title: title,
+ className: className,
+ onClick: onAction,
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "md-iconfont ".concat(icon)
+ }), children]
+ });
+}
+/* harmony default export */ var toolbar = (function (_ref2) {
+ var watch = _ref2.watch,
+ showNullButton = _ref2.showNullButton,
+ showNullProgramButton = _ref2.showNullProgramButton,
+ onActionCallback = _ref2.onActionCallback,
+ fullScreen = _ref2.fullScreen,
+ insertTemp = _ref2.insertTemp,
+ hidetoolBar = _ref2.hidetoolBar;
+ var icons = [].concat(DEFAULTICONS, [{
+ title: "".concat(watch ? '关闭实时预览' : '开启实时预览'),
+ icon: "".concat(watch ? 'icon-eye-slash' : 'icon-eye'),
+ actionName: 'trigger-watch'
+ }]);
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
+ className: "markdown-toolbar-container",
+ children: [!hidetoolBar && icons.map(function (item, index) {
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
+ children: item.actionName ? /*#__PURE__*/(0,jsx_runtime.jsx)(AButton, objectSpread2_default()(objectSpread2_default()({}, item), {}, {
+ onActionCallback: onActionCallback
+ })) : /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "v-line"
+ })
+ }, index);
+ }), showNullButton ? /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(AButton, {
+ icon: "icon-edit insert-blank",
+ className: "btn-null",
+ title: "\u589E\u52A0\u586B\u7A7A",
+ actionName: "add-null-ch",
+ onActionCallback: onActionCallback,
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "fill-tip",
+ children: "\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"
+ })
+ })
+ }) : null, showNullProgramButton ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("li", {
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(AButton, {
+ icon: "icon-edit insert-blank",
+ className: "btn-null",
+ title: "\u589E\u52A0\u586B\u7A7A",
+ actionName: "add-signal",
+ onActionCallback: onActionCallback,
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "fill-tip",
+ children: "\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"
+ })
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(AButton, {
+ icon: "icon-uniE900 insert-blank",
+ className: "btn-null",
+ title: "\u589E\u52A0\u586B\u7A7A",
+ actionName: "add-multiple",
+ onActionCallback: onActionCallback,
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "fill-tip",
+ children: "\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879"
+ })
+ })
+ })]
+ }) : null, insertTemp && /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(AButton, {
+ icon: "icon-edit",
+ className: "btn-null",
+ title: "\u63D2\u5165\u6A21\u677F",
+ actionName: "inster-template-".concat(insertTemp),
+ onActionCallback: onActionCallback,
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "fill-tip",
+ children: "\u63D2\u5165\u6A21\u677F"
+ })
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
+ className: "btn-full-screen",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(AButton, {
+ icon: "".concat(fullScreen ? 'icon-shrink' : 'icon-enlarge'),
+ title: fullScreen ? '关闭全屏' : '开启全屏',
+ actionName: "trigger-full-screen",
+ onActionCallback: onActionCallback
+ })
+ })]
+ });
+});
+// EXTERNAL MODULE: ./src/components/modal.tsx
+var modal = __webpack_require__(12264);
+// EXTERNAL MODULE: ./node_modules/antd/es/form/index.js + 17 modules
+var es_form = __webpack_require__(25159);
+// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
+var input = __webpack_require__(79531);
+// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
+var es_button = __webpack_require__(71577);
+;// CONCATENATED MODULE: ./src/components/markdown-editor/link/index.tsx
+
+
+
+
+
+var formItemLayout = {
+ labelCol: {
+ span: 4
+ },
+ wrapperCol: {
+ span: 20
+ }
+};
+/* harmony default export */ var markdown_editor_link = (function (_ref) {
+ var callback = _ref.callback,
+ onCancel = _ref.onCancel;
+ function onSubmit(values) {
+ callback(values);
+ }
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, formItemLayout), {}, {
+ initialValues: {
+ link: 'http://',
+ title: ''
+ },
+ className: "link-panel",
+ onFinish: onSubmit,
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ label: "\u94FE\u63A5\u5730\u5740",
+ name: "link",
+ rules: [{
+ required: true,
+ message: '请输入链接地址'
+ }],
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {})
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ label: "\u94FE\u63A5\u6807\u9898",
+ name: "title",
+ rules: [{
+ required: true,
+ message: '请输入链接标题'
+ }],
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {})
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "flex-container flex-end",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
+ type: "primary",
+ htmlType: "submit",
+ style: {
+ marginRight: 10
+ },
+ children: "\u786E\u5B9A"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
+ type: "ghost",
+ onClick: onCancel,
+ children: "\u53D6\u6D88"
+ })]
+ })]
+ }));
+});
+// EXTERNAL MODULE: ./src/components/markdown-editor/code-block/index.tsx
+var code_block = __webpack_require__(97501);
+// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
+var message = __webpack_require__(2453);
+;// CONCATENATED MODULE: ./src/components/markdown-editor/upload-image/index.less
+// extracted by mini-css-extract-plugin
+
+// EXTERNAL MODULE: ./src/pages/tasks/util.js
+var util = __webpack_require__(96403);
+;// CONCATENATED MODULE: ./src/components/markdown-editor/upload-image/index.tsx
+
+
+
+
+
+
+
+
+var useForm = es_form/* default.useForm */.Z.useForm;
+var style = {
+ width: 280,
+ marginRight: 10
+};
+var upload_image_formItemLayout = {
+ labelCol: {
+ span: 5
+ },
+ wrapperCol: {
+ span: 19
+ }
+};
+/* harmony default export */ var upload_image = (function (_ref) {
+ var callback = _ref.callback,
+ onCancel = _ref.onCancel;
+ var _useForm = useForm(),
+ _useForm2 = slicedToArray_default()(_useForm, 1),
+ form = _useForm2[0];
+ function onSubmit(values) {
+ callback(values);
+ }
+ function onAddUrl(data, file) {
+ if (data.status === -1) {
+ message/* default.error */.ZP.error(data.message);
+ return;
+ }
+ form.setFieldsValue({
+ src: "/api/attachments/".concat(data.id),
+ type: file.type
+ });
+ }
+ function onFileChange(e) {
+ var file = e.target.files[0];
+ uploadImage(file, onAddUrl);
+ }
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, objectSpread2_default()(objectSpread2_default()({
+ form: form
+ }, upload_image_formItemLayout), {}, {
+ className: "upload-image-panel",
+ onFinish: onSubmit,
+ style: {
+ width: 470,
+ overflow: "hidden"
+ },
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ label: "\u56FE\u7247\u5730\u5740",
+ required: true,
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "flex-container",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ noStyle: true,
+ name: "src",
+ rules: [{
+ required: true,
+ message: '请输入图片地址'
+ }],
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
+ style: style
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(UploadButton, {
+ onFileChange: onFileChange
+ })]
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ label: "\u56FE\u7247\u63CF\u8FF0",
+ name: "alt"
+ // rules={[{ required: true, message: '请输入图片描述' }]}
+ ,
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
+ style: {
+ width: 264
+ }
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default.Item */.Z.Item, {
+ style: {
+ textAlign: "right"
+ },
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
+ type: "primary",
+ htmlType: "submit",
+ style: {
+ marginRight: 10
+ },
+ children: "\u786E\u5B9A"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
+ type: "default",
+ onClick: onCancel,
+ children: "\u53D6\u6D88"
+ })]
+ })]
+ }));
+});
+function UploadButton(_ref2) {
+ var onFileChange = _ref2.onFileChange;
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("label", {
+ className: "upload-button",
+ style: {
+ cursor: "pointer"
+ },
+ children: ["\u672C\u5730\u4E0A\u4F20", /*#__PURE__*/(0,jsx_runtime.jsx)("input", {
+ type: "file",
+ onChange: onFileChange
+ })]
+ });
+}
+function uploadImage(file, callback) {
+ if (!file) {
+ throw new String('没有文件');
+ return;
+ }
+ var formData = new FormData();
+ formData.append('editormd-image-file', file);
+ formData.append('file_param_name', 'editormd-image-file');
+ formData.append('byxhr', 'true');
+ var xhr = new window.XMLHttpRequest();
+ xhr.withCredentials = true;
+ xhr.addEventListener('load', function (response) {
+ callback(JSON.parse(response.target.responseText), file);
+ }, false);
+ xhr.addEventListener('error', function (error) {
+ console.error(error);
+ }, false);
+ xhr.open('POST', "".concat(util/* apiPref */.KI, "/api/attachments.json"));
+ xhr.send(formData);
+}
+// EXTERNAL MODULE: ./node_modules/antd/es/radio/index.js + 5 modules
+var es_radio = __webpack_require__(78045);
+// EXTERNAL MODULE: ./node_modules/antd/es/input-number/index.js + 21 modules
+var input_number = __webpack_require__(31795);
+;// CONCATENATED MODULE: ./src/components/markdown-editor/add-table-panel/index.tsx
+
+
+
+
+var RadioGroup = es_radio/* default.Group */.ZP.Group;
+var add_table_panel_style = {
+ margin: '0 8px'
+};
+/* harmony default export */ var add_table_panel = (function (_ref) {
+ var callback = _ref.callback,
+ onCancel = _ref.onCancel;
+ function onSubmit(values) {
+ callback(values);
+ }
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
+ className: "add-table-panel",
+ initialValues: {
+ row: 3,
+ col: 2,
+ align: 'default'
+ },
+ onFinish: onSubmit,
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "flex-container",
+ style: {
+ alignItems: "baseline"
+ },
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ style: add_table_panel_style,
+ children: "\u5355\u5143\u683C\u6570\uFF1A"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ style: add_table_panel_style,
+ children: "\u884C\u6570"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ name: "row",
+ rules: [{
+ required: true,
+ message: '请输入行数'
+ }],
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {})
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ style: add_table_panel_style,
+ children: "\u5217\u6570"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ name: "col",
+ rules: [{
+ required: true,
+ message: '请输入列数'
+ }],
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {})
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "flex-container",
+ style: {
+ marginTop: 12,
+ alignItems: "baseline"
+ },
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ style: add_table_panel_style,
+ children: "\u5BF9\u9F50\u65B9\u5F0F\uFF1A"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ name: "align",
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)(RadioGroup, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
+ value: "default",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "fa fa-align-justify"
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
+ value: "left",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "fa fa-align-left"
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
+ value: "center",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "fa fa-align-center"
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
+ value: "right",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "fa fa-align-right"
+ })
+ })]
+ })
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "flex-container flex-end",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
+ type: "primary",
+ htmlType: "submit",
+ style: {
+ marginRight: 10
+ },
+ children: "\u786E\u5B9A"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
+ type: "ghost",
+ onClick: onCancel,
+ children: "\u53D6\u6D88"
+ })]
+ })]
+ });
+});
+// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
+var env = __webpack_require__(59758);
+// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
+var es_modal = __webpack_require__(72423);
+;// CONCATENATED MODULE: ./src/components/markdown-editor/constant.ts
+var LINK = 'link';
+var UPLOAD_IMAGE = 'upload-image';
+var CODE_BLOCK = 'code-block';
+var ADD_TABLE = 'add-table';
+var HRLINE = '------------';
+var ALIGNSIGN = {
+ "default": HRLINE,
+ left: ":".concat(HRLINE),
+ center: ":".concat(HRLINE, ":"),
+ right: "".concat(HRLINE, ":")
+};
+// EXTERNAL MODULE: ./src/components/useInterval.tsx
+var useInterval = __webpack_require__(61891);
+;// CONCATENATED MODULE: ./src/components/markdown-editor/index.tsx
+
+
+
+var _DEFAULTKEYMAP, _TitleDesc;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+function noop() {}
+var pending = 0;
+var StorageTimeTicket = 10000;
+var NULL_CH = '▁';
+var ADD_MULTI = '@▁▁@';
+var ADD_SINGLE = '@▁@';
+var TEMP1 = '\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作'; //课程须知模板
+function processSize(size) {
+ return !/^\d+$/.test(size) ? size : "".concat(size, "px");
+}
+var isMac = navigator.platform.toUpperCase().indexOf('MAC') >= 0;
+var key = isMac ? 'Cmd' : 'Ctrl';
+var DEFAULTKEYMAP = (_DEFAULTKEYMAP = {}, defineProperty_default()(_DEFAULTKEYMAP, key + '-B', 'bold'), defineProperty_default()(_DEFAULTKEYMAP, key + '-I', 'italic'), _DEFAULTKEYMAP);
+var TitleDesc = (_TitleDesc = {}, defineProperty_default()(_TitleDesc, LINK, '添加链接'), defineProperty_default()(_TitleDesc, CODE_BLOCK, '添加代码块'), defineProperty_default()(_TitleDesc, UPLOAD_IMAGE, '添加图片'), defineProperty_default()(_TitleDesc, ADD_TABLE, '添加表格'), _TitleDesc);
+
+//https://codemirror.net/demo
+//The height can be set through CSS (by giving the .CodeMirror class a height property), or by calling the cm's setSize method.
+/* harmony default export */ var markdown_editor = (function (_ref) {
+ var _ref$defaultValue = _ref.defaultValue,
+ defaultValue = _ref$defaultValue === void 0 ? '' : _ref$defaultValue,
+ onChange = _ref.onChange,
+ _ref$width = _ref.width,
+ width = _ref$width === void 0 ? '100%' : _ref$width,
+ _ref$height = _ref.height,
+ height = _ref$height === void 0 ? 400 : _ref$height,
+ _ref$miniToolbar = _ref.miniToolbar,
+ miniToolbar = _ref$miniToolbar === void 0 ? false : _ref$miniToolbar,
+ _ref$isFocus = _ref.isFocus,
+ isFocus = _ref$isFocus === void 0 ? false : _ref$isFocus,
+ watch = _ref.watch,
+ insertTemp = _ref.insertTemp,
+ _ref$mode = _ref.mode,
+ mode = _ref$mode === void 0 ? "markdown" : _ref$mode,
+ _ref$id = _ref.id,
+ id = _ref$id === void 0 ? 'markdown-editor-id' : _ref$id,
+ _ref$showResizeBar = _ref.showResizeBar,
+ showResizeBar = _ref$showResizeBar === void 0 ? false : _ref$showResizeBar,
+ _ref$noStorage = _ref.noStorage,
+ noStorage = _ref$noStorage === void 0 ? false : _ref$noStorage,
+ _ref$showNullButton = _ref.showNullButton,
+ showNullButton = _ref$showNullButton === void 0 ? false : _ref$showNullButton,
+ _ref$showNullProgramB = _ref.showNullProgramButton,
+ showNullProgramButton = _ref$showNullProgramB === void 0 ? false : _ref$showNullProgramB,
+ _ref$hidetoolBar = _ref.hidetoolBar,
+ hidetoolBar = _ref$hidetoolBar === void 0 ? false : _ref$hidetoolBar,
+ _ref$fullScreen = _ref.fullScreen,
+ fullScreen = _ref$fullScreen === void 0 ? false : _ref$fullScreen,
+ onBlur = _ref.onBlur,
+ onCMBeforeChange = _ref.onCMBeforeChange,
+ onFullScreen = _ref.onFullScreen,
+ _ref$className = _ref.className,
+ className = _ref$className === void 0 ? '' : _ref$className,
+ _ref$disablePaste = _ref.disablePaste,
+ disablePaste = _ref$disablePaste === void 0 ? false : _ref$disablePaste,
+ _ref$disabled = _ref.disabled,
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
+ _ref$disabledFill = _ref.disabledFill,
+ disabledFill = _ref$disabledFill === void 0 ? false : _ref$disabledFill,
+ _ref$placeholder = _ref.placeholder,
+ placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder,
+ _ref$values = _ref.values,
+ values = _ref$values === void 0 ? '' : _ref$values;
+ var _useState = (0,react.useState)(null),
+ _useState2 = slicedToArray_default()(_useState, 2),
+ cm = _useState2[0],
+ setCm = _useState2[1];
+ var _useState3 = (0,react.useState)(defaultValue),
+ _useState4 = slicedToArray_default()(_useState3, 2),
+ value = _useState4[0],
+ setValue = _useState4[1];
+ var _useState5 = (0,react.useState)(watch),
+ _useState6 = slicedToArray_default()(_useState5, 2),
+ preview = _useState6[0],
+ setPreview = _useState6[1];
+ var _useState7 = (0,react.useState)(fullScreen),
+ _useState8 = slicedToArray_default()(_useState7, 2),
+ isFull = _useState8[0],
+ setIsFull = _useState8[1];
+ var _useState9 = (0,react.useState)(''),
+ _useState10 = slicedToArray_default()(_useState9, 2),
+ action = _useState10[0],
+ setAction = _useState10[1];
+ var _useState11 = (0,react.useState)(0),
+ _useState12 = slicedToArray_default()(_useState11, 2),
+ lastedUpdateTime = _useState12[0],
+ setLastedUpdateTime = _useState12[1];
+ var _useState13 = (0,react.useState)(height),
+ _useState14 = slicedToArray_default()(_useState13, 2),
+ h = _useState14[0],
+ setH = _useState14[1];
+ var _useState15 = (0,react.useState)(false),
+ _useState16 = slicedToArray_default()(_useState15, 2),
+ tip = _useState16[0],
+ setTip = _useState16[1];
+ var cmEl = (0,react.useRef)();
+ var containerEl = (0,react.useRef)();
+ var resizeBarEl = (0,react.useRef)();
+ var previewEl = (0,react.useRef)();
+
+ // useEffect(() => {
+ // setValue(defaultValue)
+ // cm?.setValue(defaultValue)
+ // },[])
+ (0,react.useEffect)(function () {
+ var scrollTop = window.scrollY || window.pageYOffset;
+ setValue(values);
+ cm === null || cm === void 0 ? void 0 : cm.setValue(values);
+ window.scrollTo(0, scrollTop);
+ }, [values]);
+ (0,react.useEffect)(function () {
+ onFullScreen === null || onFullScreen === void 0 ? void 0 : onFullScreen(isFull);
+ }, [isFull]);
+ (0,react.useEffect)(function () {
+ if (cmEl.current) {
+ var onPaste = function onPaste(_, e) {
+ if (disablePaste) {
+ e.preventDefault();
+ return;
+ }
+ var clipboardData = e.clipboardData;
+ if (clipboardData) {
+ var types = clipboardData.types.toString();
+ var items = clipboardData.items;
+ var officeSix = ["pptm", "pptx", "ppt", "pot", "pps", "ppa", "potx", "ppsx", "ppam", "pptm", "potm", "ppsm", "doc", "docx", "dot", "dotx", "docm", "dotm", "xls", "xlsx", "csv", "xlt", "xla", "xltx", "xlsm", "xltm", "xlam", "xlsb"];
+ if (types === 'Files' || clipboardData.types.indexOf("Files") > -1) {
+ e.preventDefault();
+ if (mode == "stex") return;
+ try {
+ var _items$;
+ var item = items[1];
+ if (((_items$ = items[0]) === null || _items$ === void 0 ? void 0 : _items$.kind) === 'file') {
+ item = items[0];
+ }
+ var file = item.getAsFile();
+ var fileSix = file.name.split(".").pop();
+ // console.log("item:", item, file, item?.type?.match(/^video\//i))
+ uploadImage(file, function (data) {
+ if (data.id) {
+ var _file$type, _file$type2, _file$type3;
+ if ((file === null || file === void 0 ? void 0 : (_file$type = file.type) === null || _file$type === void 0 ? void 0 : _file$type.indexOf("image")) > -1) {
+ instance.replaceSelection(".concat(data.content_type, ")"));
+ } else if ((file === null || file === void 0 ? void 0 : (_file$type2 = file.type) === null || _file$type2 === void 0 ? void 0 : _file$type2.indexOf("video")) > -1) {
+ instance.replaceSelection(""));
+ } else if ((file === null || file === void 0 ? void 0 : (_file$type3 = file.type) === null || _file$type3 === void 0 ? void 0 : _file$type3.indexOf("pdf")) > -1) {
+ instance.replaceSelection("").concat(file.name, ""));
+ } else if (officeSix.includes(fileSix)) {
+ instance.replaceSelection("").concat(file.name, ""));
+ } else {
+ instance.replaceSelection("[".concat(file.name, "](").concat(env/* default.API_SERVER */.Z.API_SERVER, "/api/attachments/").concat(data.id, "?type=").concat(data.content_type, ")"));
+ }
+ } else {
+ if ((data === null || data === void 0 ? void 0 : data.status) === 401) document.location.href = '/user/login';
+ }
+ });
+ } catch (e) {
+ message/* default.warning */.ZP.warning("请使用chrome浏览器粘贴");
+ }
+ return true;
+ } else {
+ //toMarkdown ?
+ // let html = clipboardData.getData('text/html')
+ return true;
+ }
+ }
+ return true;
+ };
+ var instance = codemirror_default().fromTextArea(cmEl.current, {
+ mode: mode,
+ // inputStyle: 'contenteditable',
+ lineNumbers: miniToolbar ? false : true,
+ lineWrapping: true,
+ value: defaultValue,
+ autoCloseTags: true,
+ autoCloseBrackets: true
+ });
+ instance.on("keyup", function (cm, event) {
+ if (event.keyCode === 8) {
+ if (cm.getValue() == "") {
+ instance.setOption("placeholder", placeholder);
+ } else {
+ instance.setOption("placeholder", null);
+ }
+ }
+ });
+ instance.on("keydown", function (cm, event) {
+ if (event.keyCode === 8) {
+ var pos = deleteAtSymbol(cm);
+ if (pos) {
+ event.preventDefault();
+ }
+ }
+ });
+ isFocus && instance.focus();
+ instance.on('paste', onPaste);
+ if (disabled) {
+ instance.on("beforeChange", function (instances, change) {
+ if (change.origin === "paste" || change.origin === "+input") {
+ change.cancel();
+ }
+ });
+ }
+ setCm(instance);
+ return function () {
+ instance.off('paste', onPaste);
+ };
+ }
+ }, []);
+ var resizeEditorBodyHeight = (0,react.useCallback)(function () {
+ if (containerEl.current) {
+ try {
+ // let toolH = containerEl.current.getElementsByClassName('markdown-toolbar-container')[0].offsetHeight
+ // let mdBody = containerEl.current.getElementsByClassName('markdown-editor-body')[0]
+ // if (!isFull) {
+ // mdBody.style.height = `${h - toolH}px`
+ // } else {
+ // mdBody.style.height = `calc(100vh - ${toolH}px)`
+ // }
+ } catch (error) {
+ console.log(error, '---- to set md editor body height');
+ }
+ }
+ }, [h, containerEl, isFull]);
+ (0,react.useEffect)(function () {
+ function onLayout() {
+ var ro = new ResizeObserver_es/* default */.Z(function (entries) {
+ var _iterator = createForOfIteratorHelper_default()(entries),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var entry = _step.value;
+ if (entry.target.offsetHeight > 0 || entry.target.offsetWidth > 0) {
+ resizeEditorBodyHeight();
+ cm.setSize('100%', '100%');
+ cm.refresh();
+ }
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ });
+ ro.observe(cmEl.current.parentElement);
+ return ro;
+ }
+ if (cm) {
+ var ro = onLayout();
+ return function () {
+ var _cmEl$current, _cmEl$current2;
+ if ((_cmEl$current = cmEl.current) !== null && _cmEl$current !== void 0 && _cmEl$current.parentElement) ro.unobserve((_cmEl$current2 = cmEl.current) === null || _cmEl$current2 === void 0 ? void 0 : _cmEl$current2.parentElement);
+ };
+ }
+ }, [cm, resizeEditorBodyHeight]);
+
+ //keymap
+ (0,react.useEffect)(function () {
+ if (cm) {
+ var keymap = [];
+ var _loop = function _loop() {
+ var _Object$entries$_i = slicedToArray_default()(_Object$entries[_i], 2),
+ k = _Object$entries$_i[0],
+ value = _Object$entries$_i[1];
+ var map = defineProperty_default()({}, k, function () {
+ onActionCallback(value);
+ });
+ keymap.push(map);
+ cm.addKeyMap(map);
+ };
+ for (var _i = 0, _Object$entries = Object.entries(DEFAULTKEYMAP); _i < _Object$entries.length; _i++) {
+ _loop();
+ }
+ return function () {
+ for (var _i2 = 0, _keymap = keymap; _i2 < _keymap.length; _i2++) {
+ var m = _keymap[_i2];
+ cm.removeKeyMap(m);
+ }
+ };
+ }
+ }, [cm]);
+ (0,react.useEffect)(function () {
+ if (fullScreen !== isFull) {
+ setIsFull(fullScreen);
+ }
+ }, [fullScreen]);
+ (0,useInterval/* default */.Z)(function () {
+ if (!noStorage && lastedUpdateTime > 0) {
+ var currentTime = new Date().getTime();
+ var lastedValue = window.sessionStorage.getItem(id);
+ if (currentTime >= lastedUpdateTime + StorageTimeTicket && (!lastedValue || lastedValue !== value)) {
+ window.sessionStorage.setItem(id, value);
+ setTip(true);
+ }
+ }
+ }, StorageTimeTicket);
+ (0,react.useEffect)(function () {
+ setPreview(watch);
+ }, [cm, watch]);
+ (0,react.useEffect)(function () {
+ if (cm) {
+ isFocus && cm.focus();
+ }
+ }, [cm, isFocus]);
+ (0,react.useEffect)(function () {
+ if (preview && cm) {
+ var syncScroll = function syncScroll(e) {
+ var target = e.target;
+ if (previewEl.current) {
+ var ratio = target.scrollTop / target.scrollHeight;
+ previewEl.current.scrollTop = previewEl.current.scrollHeight * ratio;
+ }
+ };
+ var scrollEl = cm.getScrollerElement();
+ scrollEl.addEventListener('scroll', syncScroll);
+ return function () {
+ scrollEl.removeEventListener('scroll', syncScroll);
+ };
+ }
+ }, [cm, preview]);
+ (0,react.useEffect)(function () {
+ if (cm && onCMBeforeChange) {
+ var onChangeHandler = function onChangeHandler(cm, change) {
+ onCMBeforeChange(cm, change);
+ };
+ cm.on('beforeChange', onChangeHandler);
+ return function () {
+ cm.off('beforeChange', onChangeHandler);
+ };
+ }
+ }, [cm, onCMBeforeChange]);
+ (0,react.useEffect)(function () {
+ if (cm && onBlur) {
+ var onBlurHandler = function onBlurHandler() {
+ onBlur(cm.getValue());
+ };
+ cm.on('blur', onBlurHandler);
+ return function () {
+ cm.off('blur', onBlurHandler);
+ };
+ }
+ }, [cm, onBlur]);
+ function deleteAtSymbol(cm, change) {
+ var doc = cm.getDoc();
+ var cursor = doc.getCursor();
+ var line = doc.getLine(cursor.line);
+ var ch = line.charAt(cursor.ch - 1);
+ var p1 = line.lastIndexOf("@▁@", cursor.ch);
+ var p2 = line.lastIndexOf("@▁▁@", cursor.ch);
+ var posStart = p1 > p2 ? p1 : p2;
+ var n = p1 > p2 ? 3 : 4;
+ if (ADD_MULTI.indexOf(ch) === -1) return null;
+ console.log("change1:", change, cm, line, cursor, posStart, p1, p2, ch);
+ if (posStart >= 0 && cursor.ch - posStart < 5) {
+ var posEnd = posStart + n;
+ doc.replaceRange("", {
+ line: cursor.line,
+ ch: posStart
+ }, {
+ line: cursor.line,
+ ch: posEnd
+ });
+ return {
+ line: cursor.line,
+ ch: posEnd
+ };
+ }
+ return null;
+ }
+ (0,react.useEffect)(function () {
+ if (cm) {
+ var onChangeHandler = function onChangeHandler(cm, change) {
+ var content = cm.getValue();
+ setValue(content);
+ setLastedUpdateTime(new Date().getTime());
+ cm.getScrollerElement().dispatchEvent(new CustomEvent('scroll'));
+ if (onChange) {
+ if (showNullProgramButton) {
+ onChange(content, formatProgramFill(content));
+ } else {
+ onChange(content);
+ }
+ }
+ };
+ cm.on('change', onChangeHandler);
+ return function () {
+ cm.off('change', onChangeHandler);
+ };
+ }
+ }, [cm, onChange]);
+ (0,react.useEffect)(function () {
+ if (cm) {
+ // isFocus && cm.focus()
+ if (defaultValue === null || defaultValue === undefined) {
+ cm.setValue('');
+ setValue('');
+ } else {
+ var scrollTop = window.scrollY || window.pageYOffset;
+ if (defaultValue !== cm.getValue()) {
+ cm.setValue(defaultValue);
+ setValue(defaultValue);
+ cm.setCursor(disabled ? 1 : cm.lineCount(), 0);
+ window.scrollTo(0, scrollTop);
+ }
+ }
+ }
+ }, [cm, defaultValue]);
+ var onActionCallback = (0,react.useCallback)(function (actionName) {
+ var cursor = cm.getCursor();
+ var selection = cm.getSelection();
+ var selectionText = selection.split('\n');
+ switch (actionName) {
+ case 'bold':
+ cm.replaceSelection('**' + selection + '**');
+ if (selection === '') {
+ cm.setCursor(cursor.line, cursor.ch + 2);
+ }
+ return cm.focus();
+ case 'italic':
+ cm.replaceSelection('*' + selection + '*');
+ if (selection === '') {
+ cm.setCursor(cursor.line, cursor.ch + 1);
+ }
+ return cm.focus();
+ case 'code':
+ cm.replaceSelection('`' + selection + '`');
+ if (selection === '') {
+ cm.setCursor(cursor.line, cursor.ch + 1);
+ }
+ return cm.focus();
+ case 'inline-latex':
+ cm.replaceSelection('`$$' + selection + '$$`');
+ if (selection === '') {
+ cm.setCursor(cursor.line, cursor.ch + 3);
+ }
+ return cm.focus();
+ case 'latex':
+ cm.replaceSelection("```latex\n" + selection + "\n```");
+ cm.setCursor(cursor.line + 1, selection.length + 1);
+ return cm.focus();
+ case 'line-break':
+ cm.replaceSelection('
\n');
+ return cm.focus();
+ case 'list-ul':
+ if (selection === '') {
+ cm.replaceSelection('- ' + selection);
+ } else {
+ cm.replaceSelection(selectionText.map(function (item) {
+ return item === '' ? '' : "- ".concat(item);
+ }).join('\n'));
+ }
+ return cm.focus();
+ case 'list-ol':
+ if (selection === '') {
+ cm.replaceSelection('1. ' + selection);
+ } else {
+ cm.replaceSelection(selectionText.map(function (item, index) {
+ return item === '' ? '' : "".concat(index + 1, ". ").concat(item);
+ }).join('\n'));
+ }
+ return cm.focus();
+ case 'add-null-ch':
+ if (selection === '') {
+ cm.setCursor(cursor.line, cursor.ch);
+ }
+ cm.replaceSelection(NULL_CH);
+ return cm.focus();
+ case 'add-signal':
+ if (selection === '') {
+ cm.setCursor(cursor.line, cursor.ch);
+ }
+ cm.replaceSelection(ADD_SINGLE);
+ return cm.focus();
+ case 'add-multiple':
+ if (selection === '') {
+ cm.setCursor(cursor.line, cursor.ch);
+ }
+ cm.replaceSelection(ADD_MULTI);
+ return cm.focus();
+ case 'inster-template-1':
+ if (selection === '') {
+ cm.setCursor(cursor.line, cursor.ch);
+ }
+ cm.replaceSelection(TEMP1);
+ return cm.focus();
+ case 'eraser':
+ cm.setValue('');
+ return cm.focus();
+ case 'trigger-watch':
+ setPreview(!preview);
+ return cm.focus();
+ case 'trigger-full-screen':
+ setIsFull(!isFull);
+ return cm.focus();
+ case LINK:
+ setAction(LINK);
+ return;
+ case CODE_BLOCK:
+ setAction(CODE_BLOCK);
+ return;
+ case UPLOAD_IMAGE:
+ setAction(UPLOAD_IMAGE);
+ return;
+ case ADD_TABLE:
+ setAction(ADD_TABLE);
+ return;
+ default:
+ throw new Error();
+ }
+ }, [cm, preview, isFull]);
+ var ExecutePluginAction = (0,react.useCallback)(function (values) {
+ setAction('');
+ switch (action) {
+ case LINK:
+ var title = values.title,
+ link = values.link;
+ cm.replaceSelection("[".concat(title, "](").concat(link, ")"));
+ return cm.focus();
+ case CODE_BLOCK:
+ var language = values.language,
+ content = values.content;
+ cm.replaceSelection(['```' + language, content, '```'].join('\n'));
+ return cm.focus();
+ case UPLOAD_IMAGE:
+ var src = values.src,
+ alt = values.alt;
+ if (alt) {
+ cm.replaceSelection(".concat(src, " \"").concat(alt, "\" )"));
+ } else {
+ cm.replaceSelection(""));
+ }
+ return cm.focus();
+ case ADD_TABLE:
+ var row = values.row,
+ col = values.col,
+ align = values.align;
+ var table = '\n';
+ for (var r = 0; r < row; r++) {
+ var rows = [];
+ var heads = [];
+ for (var c = 0; c < col; c++) {
+ if (r === 1) {
+ heads.push(ALIGNSIGN[align]);
+ }
+ rows.push(' ');
+ }
+ if (r === 1) {
+ table += "| ".concat(heads.join(' | '), " |\n");
+ }
+ table += "| ".concat(rows.join(col === 1 ? '' : ' | '), " |\n");
+ }
+ cm.replaceSelection(table + '\n');
+ return cm.focus();
+ default:
+ throw new Error();
+ }
+ }, [cm, action]);
+ var PluginEl = (0,react.useMemo)(function () {
+ switch (action) {
+ case LINK:
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor_link, {
+ callback: ExecutePluginAction,
+ onCancel: onCancel
+ });
+ case CODE_BLOCK:
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(code_block/* default */.Z, {
+ callback: ExecutePluginAction,
+ onCancel: onCancel
+ });
+ case UPLOAD_IMAGE:
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(upload_image, {
+ callback: ExecutePluginAction,
+ onCancel: onCancel
+ });
+ case ADD_TABLE:
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(add_table_panel, {
+ callback: ExecutePluginAction,
+ onCancel: onCancel
+ });
+ default:
+ return null;
+ }
+ }, [action]);
+ function onCancel() {
+ setAction('');
+ }
+ (0,react.useEffect)(function () {
+ if (resizeBarEl.current) {
+ var onMouseDown = function onMouseDown(e) {
+ dragging = true;
+ startY = e.pageY;
+ };
+ var onMouseUp = function onMouseUp() {
+ dragging = false;
+ };
+ var onMouseMove = function onMouseMove(e) {
+ if (dragging) {
+ var delta = e.pageY - startY;
+ if (delta < 0) {
+ delta = 0;
+ }
+ if (delta > 300) {
+ delta = 300;
+ }
+ var resizeH = height + delta + 'px';
+ setH(resizeH);
+ }
+ };
+ var resizeBar = resizeBarEl.current;
+ var dragging = false;
+ var startY = 0;
+ resizeBar.addEventListener('mousedown', onMouseDown);
+ document.addEventListener('mousemove', onMouseMove);
+ document.addEventListener('mouseup', onMouseUp);
+ return function () {
+ resizeBar.removeEventListener('mousedown', onMouseDown);
+ document.removeEventListener('mousemove', onMouseMove);
+ document.removeEventListener('mouseup', onMouseUp);
+ };
+ }
+ }, [cm, resizeBarEl]);
+ (0,react.useEffect)(function () {
+ setH(height);
+ }, [height]);
+ var fixedWidth = processSize(width);
+ var fixedHeight = processSize(h);
+ var style = {
+ width: fixedWidth,
+ height: fixedHeight
+ };
+ var saveTime = (0,react.useMemo)(function () {
+ if (lastedUpdateTime) {
+ var d = new Date(lastedUpdateTime);
+ var _h = d.getHours();
+ var m = d.getMinutes();
+ var s = d.getSeconds();
+ _h = _h < 10 ? '0' + _h : _h;
+ m = m < 10 ? '0' + m : m;
+ s = s < 10 ? '0' + s : s;
+ return "".concat(_h, ":").concat(m, ":").concat(s);
+ }
+ return 0;
+ }, [lastedUpdateTime]);
+ var formatProgramFill = function formatProgramFill(str) {
+ var arr = [];
+ if (showNullProgramButton) {
+ var num = -1;
+ str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
+ arr.push({
+ multiLine: !(a === ADD_SINGLE)
+ });
+ });
+ }
+ return arr;
+ };
+ function onCancelStorage() {
+ window.sessionStorage.removeItem(id);
+ setTip(false);
+ setLastedUpdateTime(0);
+ }
+ function onReset() {
+ setTip(false);
+ setLastedUpdateTime(0);
+ cm.setValue(window.sessionStorage.getItem(id));
+ }
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)(react.Fragment, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ className: "markdown-editor-wrapper",
+ ref: containerEl,
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "markdown-editor-container ".concat(className, " ").concat(preview ? 'on-preview' : '', " ").concat(miniToolbar ? 'mini' : '', " ").concat(isFull ? 'full-screen' : ''),
+ style: style,
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(toolbar, {
+ insertTemp: insertTemp,
+ watch: preview,
+ fullScreen: isFull,
+ showNullButton: showNullButton,
+ showNullProgramButton: showNullProgramButton,
+ onActionCallback: onActionCallback,
+ hidetoolBar: hidetoolBar
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "markdown-editor-body",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ className: "codemirror-container",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("textarea", {
+ ref: cmEl,
+ placeholder: placeholder
+ })
+ }), preview ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ ref: previewEl,
+ className: "preview-container",
+ children: [mode === "stex" && /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml_stex, {
+ value: value
+ }), mode !== "stex" && /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
+ disabledFill: disabledFill,
+ showProgramFill: showNullProgramButton,
+ value: value
+ })]
+ }) : null]
+ })]
+ })
+ }), showResizeBar ? /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
+ ref: resizeBarEl,
+ className: "editor-resize"
+ }) : null, /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
+ children: TitleDesc[action] ? /*#__PURE__*/(0,jsx_runtime.jsx)(es_modal/* default */.Z, {
+ centered: true,
+ title: TitleDesc[action],
+ open: true,
+ onCancel: onCancel,
+ footer: null,
+ className: "markdown-popup-form",
+ children: PluginEl
+ }) : null
+ })]
+ });
+});
+
+/***/ }),
+
+/***/ 12264:
+/*!**********************************!*\
+ !*** ./src/components/modal.tsx ***!
+ \**********************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "Z": function() { return /* binding */ Dialog; }
+/* harmony export */ });
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/classCallCheck.js */ 56690);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/createClass.js */ 89728);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/inherits.js */ 61655);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/createSuper.js */ 26389);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3__);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-dom */ 73935);
+
+
+
+
+
+
+var Dialog = /*#__PURE__*/function (_React$Component) {
+ _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2___default()(Dialog, _React$Component);
+ var _super = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3___default()(Dialog);
+ function Dialog(props) {
+ var _this;
+ _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0___default()(this, Dialog);
+ _this = _super.call(this, props);
+ var doc = window.document;
+ _this.node = doc.createElement('div');
+ doc.body.appendChild(_this.node);
+ return _this;
+ }
+ _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1___default()(Dialog, [{
+ key: "render",
+ value: function render() {
+ var children = this.props.children;
+ return /*#__PURE__*/(0,react_dom__WEBPACK_IMPORTED_MODULE_5__.createPortal)(children, this.node);
+ }
+ }, {
+ key: "componentWillUnmount",
+ value: function componentWillUnmount() {
+ window.document.body.removeChild(this.node);
+ }
+ }]);
+ return Dialog;
+}(react__WEBPACK_IMPORTED_MODULE_4__.Component);
+
+
+/***/ }),
+
+/***/ 61891:
+/*!****************************************!*\
+ !*** ./src/components/useInterval.tsx ***!
+ \****************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "Z": function() { return /* binding */ useInterval; }
+/* harmony export */ });
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+
+function useInterval(callback, delay) {
+ var savedCallback = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
+
+ // 保存新回调
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
+ savedCallback.current = callback;
+ });
+
+ // 建立 interval
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
+ function tick() {
+ savedCallback.current();
+ }
+ if (delay !== null) {
+ var id = setInterval(tick, delay);
+ return function () {
+ return clearInterval(id);
+ };
+ }
+ }, [delay]);
+}
+
+/***/ }),
+
+/***/ 37537:
+/*!***************************************************************************************************!*\
+ !*** ./src/pages/Classrooms/Lists/Exercise/Review/component/AnswerComments/index.tsx + 1 modules ***!
+ \***************************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ component_AnswerComments; }
+});
+
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Review/component/AnswerComments/index.less?modules
+// extracted by mini-css-extract-plugin
+/* harmony default export */ var AnswerCommentsmodules = ({"flex_box_center":"flex_box_center___hzSR8","flex_space_between":"flex_space_between___Mscip","flex_box_vertical_center":"flex_box_vertical_center___Uckau","flex_box_center_end":"flex_box_center_end___Kw1tf","flex_box_column":"flex_box_column___udgQE","comments":"comments___He0El","line":"line___P3zVB"});
+// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
+var row = __webpack_require__(71230);
+// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
+var env = __webpack_require__(59758);
+// EXTERNAL MODULE: ./node_modules/@umijs/plugins/node_modules/dayjs/dayjs.min.js
+var dayjs_min = __webpack_require__(94699);
+var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
+// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
+var jsx_runtime = __webpack_require__(85893);
+;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Review/component/AnswerComments/index.tsx
+
+
+
+
+
+
+
+var AnswerComments = function AnswerComments(_ref) {
+ var list = _ref.list,
+ _ref$hideScore = _ref.hideScore,
+ hideScore = _ref$hideScore === void 0 ? false : _ref$hideScore,
+ newuserCommentVisible = _ref.newuserCommentVisible;
+ console.log('xxxx', list);
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ children: list === null || list === void 0 ? void 0 : list.map(function (v) {
+ var _v$user, _v$user2, _v$user3, _v$comments;
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "mt20",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
+ align: "middle",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
+ src: env/* default.API_SERVER */.Z.API_SERVER + '/images/' + (v === null || v === void 0 ? void 0 : (_v$user2 = v.user) === null || _v$user2 === void 0 ? void 0 : _v$user2.image_url),
+ width: "40",
+ style: {
+ borderRadius: 40
+ }
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "ml10 font16",
+ children: v === null || v === void 0 ? void 0 : (_v$user3 = v.user) === null || _v$user3 === void 0 ? void 0 : _v$user3.name
+ })]
+ }, v === null || v === void 0 ? void 0 : (_v$user = v.user) === null || _v$user === void 0 ? void 0 : _v$user.user_id), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ className: AnswerCommentsmodules.comments,
+ children: v === null || v === void 0 ? void 0 : (_v$comments = v.comments) === null || _v$comments === void 0 ? void 0 : _v$comments.map(function (e, i) {
+ if (newuserCommentVisible && e.question_type !== 5) {
+ if (i === 0) {
+ var _v$user4, _v$comments2;
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
+ align: "middle",
+ justify: "space-between",
+ children: [!!e.shixun_chanllge_position && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ style: {
+ flexShrink: 0,
+ marginRight: 10
+ },
+ children: ["\u7B2C", e.shixun_chanllge_position, "\u5173"]
+ }), !hideScore && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ style: {
+ flex: 1
+ },
+ children: ["\u539F\u59CB\u5F97\u5206", e === null || e === void 0 ? void 0 : e.origin_score, "\u5206\uFF0C\u4FEE\u6B63\u4E3A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "c-light-primary",
+ children: e === null || e === void 0 ? void 0 : e.score
+ }), "\u5206"]
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ style: {
+ flexShrink: 0
+ },
+ children: dayjs_min_default()(e.updated_at).format('YYYY-MM-DD HH:mm')
+ })]
+ }), !!e.comment && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ children: ["\u8BC4\u8BED\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "c-light-primary",
+ children: e.comment
+ })]
+ }), (v === null || v === void 0 ? void 0 : (_v$comments2 = v.comments) === null || _v$comments2 === void 0 ? void 0 : _v$comments2.length) - 1 > i && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ className: AnswerCommentsmodules.line
+ })]
+ }, (v === null || v === void 0 ? void 0 : (_v$user4 = v.user) === null || _v$user4 === void 0 ? void 0 : _v$user4.user_id) + '-' + i);
+ }
+ } else {
+ var _v$user5, _e$comment, _v$comments3;
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
+ align: "middle",
+ justify: "space-between",
+ children: [!!e.shixun_chanllge_position && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ style: {
+ flexShrink: 0,
+ marginRight: 10
+ },
+ children: ["\u7B2C", e.shixun_chanllge_position, "\u5173"]
+ }), !hideScore && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ style: {
+ flex: 1
+ },
+ children: ["\u539F\u59CB\u5F97\u5206", e === null || e === void 0 ? void 0 : e.origin_score, "\u5206\uFF0C\u4FEE\u6B63\u4E3A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "c-light-primary",
+ children: e === null || e === void 0 ? void 0 : e.score
+ }), "\u5206"]
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ style: {
+ flexShrink: 0
+ },
+ children: dayjs_min_default()(e.updated_at).format('YYYY-MM-DD HH:mm')
+ })]
+ }), !!e.comment && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "flex-wrp",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ children: "\u8BC4\u8BED\uFF1A"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "c-light-primary flex1",
+ dangerouslySetInnerHTML: {
+ __html: ((_e$comment = e.comment) === null || _e$comment === void 0 ? void 0 : _e$comment.replace(/\n/g, "
")) || ""
+ }
+ })]
+ }), (v === null || v === void 0 ? void 0 : (_v$comments3 = v.comments) === null || _v$comments3 === void 0 ? void 0 : _v$comments3.length) - 1 > i && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ className: AnswerCommentsmodules.line
+ })]
+ }, (v === null || v === void 0 ? void 0 : (_v$user5 = v.user) === null || _v$user5 === void 0 ? void 0 : _v$user5.user_id) + '-' + i);
+ }
+ })
+ })]
+ });
+ })
+ });
+};
+/* harmony default export */ var component_AnswerComments = (AnswerComments);
+
+/***/ }),
+
+/***/ 19637:
+/*!***********************************************************************!*\
+ !*** ./src/pages/Classrooms/Lists/Exercise/Review/component/Fill.tsx ***!
+ \***********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* 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_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __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_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _components_RenderHtml__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/components/RenderHtml */ 12768);
+/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd */ 79531);
+/* harmony import */ var _SeeAnswer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SeeAnswer */ 18707);
+/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./index.less?modules */ 1446);
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
+
+
+
+
+
+
+
+
+
+var TextArea = antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"].TextArea */ .Z.TextArea;
+var Fill = function Fill(_ref) {
+ var item = _ref.item,
+ answerData = _ref.answerData,
+ changeScoreData = _ref.changeScoreData,
+ textValue = _ref.textValue,
+ _ref$textOnChange = _ref.textOnChange,
+ textOnChange = _ref$textOnChange === void 0 ? function () {} : _ref$textOnChange,
+ _ref$seeAnswerVisible = _ref.seeAnswerVisible,
+ seeAnswerVisible = _ref$seeAnswerVisible === void 0 ? true : _ref$seeAnswerVisible;
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)([]),
+ _useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1___default()(_useState, 2),
+ userAnswer = _useState2[0],
+ setUserAnswer = _useState2[1];
+ var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(false),
+ _useState4 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1___default()(_useState3, 2),
+ showEdit = _useState4[0],
+ setShowEdit = _useState4[1];
+ (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
+ if (changeScoreData !== null && changeScoreData !== void 0 && changeScoreData[item.q_position]) {
+ !showEdit && setShowEdit(true);
+ } else {
+ showEdit && setShowEdit(false);
+ }
+ }, [changeScoreData === null || changeScoreData === void 0 ? void 0 : changeScoreData[item === null || item === void 0 ? void 0 : item.q_position]]);
+ (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
+ console.log("item=====", item, answerData, changeScoreData, "#37AD83;");
+ var data = [];
+ var _loop = function _loop(i) {
+ var _item$user_answer;
+ var param = (item === null || item === void 0 ? void 0 : (_item$user_answer = item.user_answer) === null || _item$user_answer === void 0 ? void 0 : _item$user_answer.find(function (e) {
+ return e.choice_id === i + 1;
+ })) || {
+ choice_id: i + 1,
+ answer_text: ''
+ };
+ data.push(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, param));
+ };
+ for (var i = 0; i < (item === null || item === void 0 ? void 0 : item.multi_count); i++) {
+ _loop(i);
+ }
+ setUserAnswer(data);
+ }, [item === null || item === void 0 ? void 0 : item.user_answer]);
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", {
+ className: _index_less_modules__WEBPACK_IMPORTED_MODULE_5__/* ["default"].fillBg */ .Z.fillBg,
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("aside", {
+ className: "font14 c-light-primary mb5",
+ children: "\u5B66\u751F\u7B54\u9898"
+ }), userAnswer === null || userAnswer === void 0 ? void 0 : userAnswer.map(function (answer, index) {
+ var _item$standard_answer, _item$standard_answer2, _item$standard_answer3;
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", {
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("span", {
+ children: ["\u7B54\u6848(\u586B\u7A7A", index + 1, "):"]
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
+ children: item.question_type == 3 ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("span", {
+ style: {
+ color: (item === null || item === void 0 ? void 0 : (_item$standard_answer = item.standard_answer) === null || _item$standard_answer === void 0 ? void 0 : (_item$standard_answer2 = _item$standard_answer[index]) === null || _item$standard_answer2 === void 0 ? void 0 : (_item$standard_answer3 = _item$standard_answer2.answer_text) === null || _item$standard_answer3 === void 0 ? void 0 : _item$standard_answer3[0]) == (answer === null || answer === void 0 ? void 0 : answer.answer_text) ? "#37AD83" : "#E30000"
+ },
+ children: answer === null || answer === void 0 ? void 0 : answer.answer_text
+ }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_RenderHtml__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
+ value: answer === null || answer === void 0 ? void 0 : answer.answer_text
+ })
+ })]
+ });
+ }), seeAnswerVisible && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_SeeAnswer__WEBPACK_IMPORTED_MODULE_4__/* .SeeAnswer */ .u, {
+ data: item
+ })]
+ });
+};
+/* harmony default export */ __webpack_exports__["Z"] = (Fill);
+
+/***/ }),
+
+/***/ 8788:
+/*!**************************************************************************!*\
+ !*** ./src/pages/Classrooms/Lists/Exercise/Review/component/Program.tsx ***!
+ \**************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __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_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _components_RenderHtml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components/RenderHtml */ 12768);
+/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ 94699);
+/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__);
+/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd */ 63889);
+/* harmony import */ var _components_monaco_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/components/monaco-editor */ 8691);
+/* harmony import */ var js_base64__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! js-base64 */ 19575);
+/* harmony import */ var js_base64__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(js_base64__WEBPACK_IMPORTED_MODULE_5__);
+/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../index.less?modules */ 37729);
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
+
+
+
+
+
+
+
+
+
+
+
+var Program = function Program(_ref) {
+ var _answerData$exercise, _answerData$exercise2, _answerData$exercise3, _answerData$exercise4, _item$user_answer;
+ var item = _ref.item,
+ answerData = _ref.answerData,
+ autoHeight = _ref.autoHeight;
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)([]),
+ _useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2),
+ data = _useState2[0],
+ setData = _useState2[1];
+ (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
+ var _item$evaluate_codes;
+ if ((item === null || item === void 0 ? void 0 : (_item$evaluate_codes = item.evaluate_codes) === null || _item$evaluate_codes === void 0 ? void 0 : _item$evaluate_codes.length) > 0) {
+ var _item$evaluate_codes2;
+ setData(item === null || item === void 0 ? void 0 : (_item$evaluate_codes2 = item.evaluate_codes) === null || _item$evaluate_codes2 === void 0 ? void 0 : _item$evaluate_codes2.map(function (code, index) {
+ return {
+ key: index + 1,
+ error_msg: code !== null && code !== void 0 && code.error_msg ? js_base64__WEBPACK_IMPORTED_MODULE_5__.Base64.decode(code === null || code === void 0 ? void 0 : code.error_msg) : '',
+ created_at: code.created_at
+ };
+ }));
+ } else {
+ setData([{
+ key: "--",
+ error_msg: "--"
+ }]);
+ }
+ }, [item === null || item === void 0 ? void 0 : item.evaluate_codes]);
+ var columns = [{
+ title: '评测序号',
+ dataIndex: 'key',
+ width: "127px",
+ key: 'key',
+ align: 'center',
+ render: function render(text, record) {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("span", {
+ children: record.key
+ });
+ }
+ }, {
+ title: '评测时间',
+ dataIndex: 'created_at',
+ key: 'created_at',
+ align: 'center',
+ width: 200,
+ render: function render(text, record) {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("span", {
+ children: record.created_at ? moment__WEBPACK_IMPORTED_MODULE_3___default()(record.created_at).format('YYYY-MM-DD HH:mm') : "--"
+ });
+ }
+ }, {
+ title: '评测结果',
+ dataIndex: 'error_msg',
+ key: 'error_msg',
+ align: 'center',
+ render: function render(text, record) {
+ var _record$error_msg;
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("span", {
+ children: record.error_msg ? ((_record$error_msg = record.error_msg) === null || _record$error_msg === void 0 ? void 0 : _record$error_msg.length) > 1000 ? record.error_msg.substring(0, 1000) + "..." : record.error_msg : "--"
+ });
+ }
+ }];
+ var options = {
+ selectOnLineNumbers: true,
+ readOnly: true,
+ minimap: {
+ enabled: false
+ },
+ scrollBeyondLastLine: false
+ };
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.Fragment, {
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
+ className: "mt15 mb15",
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_components_RenderHtml__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
+ value: item === null || item === void 0 ? void 0 : item.description
+ })
+ }), (!!(answerData !== null && answerData !== void 0 && (_answerData$exercise = answerData.exercise) !== null && _answerData$exercise !== void 0 && _answerData$exercise.student_commit_status) && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise2 = answerData.exercise) === null || _answerData$exercise2 === void 0 ? void 0 : _answerData$exercise2.student_commit_status) !== 0 || !!(answerData !== null && answerData !== void 0 && (_answerData$exercise3 = answerData.exercise) !== null && _answerData$exercise3 !== void 0 && _answerData$exercise3.user_exercise_status) && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise4 = answerData.exercise) === null || _answerData$exercise4 === void 0 ? void 0 : _answerData$exercise4.user_exercise_status) !== 0) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(antd__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
+ className: "mt5",
+ bordered: true,
+ dataSource: data,
+ columns: columns,
+ pagination: false
+ }), !!(item !== null && item !== void 0 && (_item$user_answer = item.user_answer) !== null && _item$user_answer !== void 0 && _item$user_answer.length) && (item === null || item === void 0 ? void 0 : item.passed_code) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)("aside", {
+ className: _index_less_modules__WEBPACK_IMPORTED_MODULE_6__/* ["default"].shixunWrp */ .Z.shixunWrp,
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("h3", {
+ children: "\u7B2C\u4E00\u6B21\u8BC4\u6D4B\u901A\u8FC7\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09"
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_components_monaco_editor__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, {
+ style: {
+ border: '1px solid #ccc'
+ },
+ height: 300,
+ language: "python",
+ theme: "vs-light",
+ value: item !== null && item !== void 0 && item.passed_code ? js_base64__WEBPACK_IMPORTED_MODULE_5__.Base64.decode(item === null || item === void 0 ? void 0 : item.passed_code) : "",
+ autoHeight: autoHeight,
+ options: options
+ })]
+ })]
+ });
+};
+/* harmony default export */ __webpack_exports__["Z"] = (Program);
+
+/***/ }),
+
+/***/ 18707:
+/*!****************************************************************************!*\
+ !*** ./src/pages/Classrooms/Lists/Exercise/Review/component/SeeAnswer.tsx ***!
+ \****************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "u": function() { return /* binding */ SeeAnswer; }
+/* harmony export */ });
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __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_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 71230);
+/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd */ 15746);
+/* harmony import */ var _components_RenderHtml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components/RenderHtml */ 12768);
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
+
+
+
+
+
+
+var SeeAnswer = function SeeAnswer(_ref) {
+ var data = _ref.data;
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
+ _useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2),
+ show = _useState2[0],
+ setShow = _useState2[1];
+ var renderDom = function renderDom() {
+ var _data$standard_answer, _data$standard_answer2, _data$standard_answer3;
+ switch (data.question_type) {
+ case 3:
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("aside", {
+ className: "mt20",
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("span", {
+ style: {
+ cursor: "pointer"
+ },
+ className: "font14 c-blue current",
+ onClick: function onClick() {
+ setShow(!show);
+ },
+ children: show ? "隐藏参考答案" : "查看参考答案"
+ }), show && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div", {
+ children: data === null || data === void 0 ? void 0 : (_data$standard_answer = data.standard_answer) === null || _data$standard_answer === void 0 ? void 0 : _data$standard_answer.map(function (item, key) {
+ var _item$answer_text;
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
+ style: {
+ alignItems: 'baseline'
+ },
+ className: "mr20",
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
+ flex: "50px",
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("span", {
+ className: "mt10",
+ children: ["\u586B\u7A7A", item.choice_id, ":"]
+ })
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
+ flex: 1,
+ children: item === null || item === void 0 ? void 0 : (_item$answer_text = item.answer_text) === null || _item$answer_text === void 0 ? void 0 : _item$answer_text.map(function (val, key) {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div", {
+ children: val
+ });
+ })
+ })]
+ });
+ })
+ })]
+ });
+ break;
+ case 8:
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("aside", {
+ className: "mt20",
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("span", {
+ style: {
+ cursor: "pointer"
+ },
+ className: "font14 c-blue current",
+ onClick: function onClick() {
+ setShow(!show);
+ },
+ children: show ? "隐藏参考答案" : "查看参考答案"
+ }), show && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div", {
+ children: data === null || data === void 0 ? void 0 : (_data$standard_answer2 = data.standard_answer) === null || _data$standard_answer2 === void 0 ? void 0 : _data$standard_answer2.map(function (item, key) {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
+ style: {
+ alignItems: 'baseline'
+ },
+ className: "mr20",
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
+ flex: "50px",
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("span", {
+ className: "mt10",
+ children: ["\u586B\u7A7A", item.choice_id, ":"]
+ })
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
+ flex: 1,
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div", {
+ children: item === null || item === void 0 ? void 0 : item.answer_text
+ })
+ })]
+ });
+ })
+ })]
+ });
+ break;
+ case 4:
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("aside", {
+ className: "mt20",
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("span", {
+ style: {
+ cursor: "pointer"
+ },
+ className: "font14 c-blue current",
+ onClick: function onClick() {
+ setShow(!show);
+ },
+ children: show ? "隐藏参考答案" : "查看参考答案"
+ }), show && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div", {
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_components_RenderHtml__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
+ value: data === null || data === void 0 ? void 0 : (_data$standard_answer3 = data.standard_answer) === null || _data$standard_answer3 === void 0 ? void 0 : _data$standard_answer3.join(" ")
+ })
+ })]
+ });
+ break;
+ }
+ };
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("section", {
+ children: renderDom()
+ });
+};
+
+/***/ }),
+
+/***/ 64198:
+/*!*************************************************************************!*\
+ !*** ./src/pages/Classrooms/Lists/Exercise/Review/component/Shixun.tsx ***!
+ \*************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __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_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __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_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
+/* 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 _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _components_RenderHtml__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/components/RenderHtml */ 12768);
+/* harmony import */ var _utils_authority__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/utils/authority */ 7);
+/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 83062);
+/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 31795);
+/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd */ 2453);
+/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd */ 63889);
+/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! moment */ 94699);
+/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_7__);
+/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! umi */ 89214);
+/* harmony import */ var _components_monaco_editor__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/components/monaco-editor */ 8691);
+/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./index.less?modules */ 1446);
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+var Shixun = function Shixun(_ref) {
+ var _answerData$exercise, _answerData$exercise2, _item$shixun;
+ var item = _ref.item,
+ answerData = _ref.answerData,
+ _ref$hasChangeScore = _ref.hasChangeScore,
+ hasChangeScore = _ref$hasChangeScore === void 0 ? true : _ref$hasChangeScore,
+ autoHeight = _ref.autoHeight,
+ _ref$saveChangeScore = _ref.saveChangeScore,
+ saveChangeScore = _ref$saveChangeScore === void 0 ? function () {} : _ref$saveChangeScore;
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)([]),
+ _useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
+ data = _useState2[0],
+ setData = _useState2[1];
+ var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)([]),
+ _useState4 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2),
+ challengeData = _useState4[0],
+ setChallengeData = _useState4[1];
+ (0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
+ var _item$shixun_details;
+ if (!(item !== null && item !== void 0 && (_item$shixun_details = item.shixun_details) !== null && _item$shixun_details !== void 0 && _item$shixun_details.length)) {
+ return;
+ }
+ var shixun = [];
+ var challenge = [];
+ for (var i = 0; i < (item === null || item === void 0 ? void 0 : (_item$shixun_details2 = item.shixun_details) === null || _item$shixun_details2 === void 0 ? void 0 : _item$shixun_details2.length); i++) {
+ var _item$shixun_details2, _item$shixun_details7, _item$shixun_details8;
+ for (var j = 0; j < (item === null || item === void 0 ? void 0 : item.shixun_details[i].stage_list.length); j++) {
+ var _item$shixun_details3, _item$shixun_details4, _item$shixun_details5, _item$shixun_details6, _item$shixun_details$;
+ var shixunItem = item === null || item === void 0 ? void 0 : item.shixun_details[i].stage_list[j];
+ shixun.push(_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()({}, shixunItem), {
+ operation: item === null || item === void 0 ? void 0 : (_item$shixun_details3 = item.shixun_details) === null || _item$shixun_details3 === void 0 ? void 0 : (_item$shixun_details4 = _item$shixun_details3[i]) === null || _item$shixun_details4 === void 0 ? void 0 : (_item$shixun_details5 = _item$shixun_details4.shixun_detail) === null || _item$shixun_details5 === void 0 ? void 0 : (_item$shixun_details6 = _item$shixun_details5[0]) === null || _item$shixun_details6 === void 0 ? void 0 : _item$shixun_details6.game_identifier,
+ shixun_challenge_id: item === null || item === void 0 ? void 0 : (_item$shixun_details$ = item.shixun_details[i]) === null || _item$shixun_details$ === void 0 ? void 0 : _item$shixun_details$.shixun_challenge_id
+ }));
+ }
+ if (item !== null && item !== void 0 && (_item$shixun_details7 = item.shixun_details) !== null && _item$shixun_details7 !== void 0 && (_item$shixun_details8 = _item$shixun_details7[i]) !== null && _item$shixun_details8 !== void 0 && _item$shixun_details8.shixun_detail) {
+ var _item$shixun_details9, _item$shixun_details10, _item$shixun_details11;
+ challenge.push(item === null || item === void 0 ? void 0 : (_item$shixun_details9 = item.shixun_details) === null || _item$shixun_details9 === void 0 ? void 0 : (_item$shixun_details10 = _item$shixun_details9[i]) === null || _item$shixun_details10 === void 0 ? void 0 : (_item$shixun_details11 = _item$shixun_details10.shixun_detail) === null || _item$shixun_details11 === void 0 ? void 0 : _item$shixun_details11[0]);
+ }
+ }
+ setChallengeData(challenge);
+ setData([].concat(shixun));
+ }, [item === null || item === void 0 ? void 0 : item.shixun_details]);
+ var columns = [{
+ title: "关卡",
+ dataIndex: "position",
+ key: "position",
+ align: 'center'
+ }, {
+ title: "任务名称",
+ dataIndex: "name",
+ key: "name",
+ align: 'center',
+ ellipsis: true,
+ width: 260,
+ render: function render(name) {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
+ title: name,
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
+ className: "overflowHidden1",
+ style: {
+ maxWidth: "400px"
+ },
+ title: name && name.length > 25 ? name : "",
+ children: name
+ })
+ });
+ }
+ }, {
+ title: "评测次数",
+ dataIndex: "evaluate_count",
+ key: "evaluate_count",
+ align: 'center',
+ render: function render(testCount, item) {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
+ children: item.evaluate_count ? item.evaluate_count : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
+ className: "color-grey-9",
+ children: "--"
+ })
+ });
+ }
+ }, {
+ title: "完成时间",
+ key: "finished_time",
+ dataIndex: "finished_time",
+ align: 'center',
+ render: function render(endTime, item) {
+ var timeOver = false;
+ if (item.finished_time && answerData !== null && answerData !== void 0 && answerData.exercise && answerData !== null && answerData !== void 0 && answerData.exercise_answer_user) {
+ // issue#29511 exercise.time -1没有设置答题的时间限制,则比较完成时间和试卷截至时间
+ if ((answerData === null || answerData === void 0 ? void 0 : answerData.exercise.time) === -1) {
+ timeOver = moment__WEBPACK_IMPORTED_MODULE_7___default()(answerData === null || answerData === void 0 ? void 0 : answerData.exercise.end_time).isBefore(item.finished_time);
+ } else {
+ timeOver = moment__WEBPACK_IMPORTED_MODULE_7___default()(answerData === null || answerData === void 0 ? void 0 : answerData.exercise_answer_user.start_at).add(answerData === null || answerData === void 0 ? void 0 : answerData.exercise.time, "m").isBefore(item.finished_time);
+ }
+ }
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("span", {
+ children: [item.finished_time || /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
+ className: "c-grey-999",
+ children: "--"
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
+ className: "c-orange-ff9 ",
+ children: timeOver ? "(已超时)" : ""
+ })]
+ });
+ }
+ }, {
+ title: "耗时",
+ dataIndex: "time_consuming",
+ key: "time_consuming",
+ align: 'center',
+ render: function render(time, item) {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
+ children: item.time_consuming || /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
+ className: "color-grey-9",
+ children: "--"
+ })
+ });
+ }
+ }, {
+ title: "查看答案",
+ dataIndex: "view_answer",
+ key: "view_answer",
+ align: 'center',
+ render: function render(exp, item) {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
+ children: item.view_answer ? "已查看" : "未查看"
+ });
+ }
+ },
+ // {
+ // title: "经验值",
+ // dataIndex: "experience",
+ // key: "experience",
+ // align: 'center',
+ // render: (exp: any, item: any) => {
+ // return (
+ //
+ // {item.myself_experience}/
+ // {item.experience}
+ //
+ // );
+ // },
+ // },
+ {
+ title: "得分/满分",
+ dataIndex: "user_score",
+ key: "user_score",
+ align: 'center',
+ render: function render(exp, item) {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("span", {
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
+ className: "c-orange",
+ children: item.user_score
+ }), "/", item.game_score]
+ });
+ }
+ }, hasChangeScore && {
+ title: "调分",
+ dataIndex: "user_score",
+ key: "user_score",
+ align: 'center',
+ render: function render(value, data, index) {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
+ min: 0,
+ max: Number(data.game_score),
+ defaultValue: value,
+ onBlur: /*#__PURE__*/function () {
+ var _ref2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(e) {
+ var res;
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
+ while (1) switch (_context.prev = _context.next) {
+ case 0:
+ if (!(e.target.value != value)) {
+ _context.next = 6;
+ break;
+ }
+ _context.next = 3;
+ return saveChangeScore(_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()({}, item), {
+ shixun_challenge_id: data.shixun_challenge_id,
+ shixunScore: e.target.value
+ }));
+ case 3:
+ res = _context.sent;
+ console.log('res: ', res);
+ if (res !== null && res !== void 0 && res.question_comments) {
+ antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"].success */ .ZP.success("已修改当前评分");
+ }
+ case 6:
+ case "end":
+ return _context.stop();
+ }
+ }, _callee);
+ }));
+ return function (_x) {
+ return _ref2.apply(this, arguments);
+ };
+ }()
+ });
+ }
+ }].filter(function (x) {
+ return !!x;
+ });
+ var outputColumns = [{
+ title: '评测次数',
+ dataIndex: 'key',
+ width: "127px",
+ key: 'key',
+ align: 'center',
+ render: function render(text, record) {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
+ children: record.key
+ });
+ }
+ }, {
+ title: '详细信息',
+ dataIndex: 'error_msg',
+ key: 'error_msg',
+ align: 'center',
+ render: function render(text, record) {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
+ children: record.error_msg ? record.error_msg : "--"
+ });
+ }
+ }, {
+ title: '评测时间',
+ dataIndex: 'updated_at',
+ key: 'updated_at',
+ align: 'center',
+ width: 200,
+ render: function render(text, record) {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
+ children: record.updated_at ? record.updated_at : "--"
+ });
+ }
+ }];
+ var options = {
+ selectOnLineNumbers: true,
+ readOnly: true,
+ minimap: {
+ enabled: false
+ },
+ scrollBeyondLastLine: false
+ };
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.Fragment, {
+ children: [((answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise = answerData.exercise) === null || _answerData$exercise === void 0 ? void 0 : _answerData$exercise.student_commit_status) !== 0 || (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise2 = answerData.exercise) === null || _answerData$exercise2 === void 0 ? void 0 : _answerData$exercise2.user_exercise_status) !== 0) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("div", {
+ className: "mt15",
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("p", {
+ className: "font16 c-grey-666",
+ children: "\u9636\u6BB5\u6210\u7EE9"
+ }), !!(data !== null && data !== void 0 && data.length) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, {
+ columns: columns,
+ dataSource: data,
+ pagination: false
+ })]
+ }), !!(challengeData !== null && challengeData !== void 0 && challengeData.length) && /*#__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)("p", {
+ className: "font16 c-grey-666 mt10",
+ children: "\u5B9E\u8BAD\u8BE6\u60C5"
+ }), challengeData === null || challengeData === void 0 ? void 0 : challengeData.map(function (chanllenge, index) {
+ var _chanllenge$outputs;
+ 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__.jsxs)("div", {
+ className: "mt5",
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("span", {
+ className: "font16 mr15",
+ children: [" \u7B2C", chanllenge.position, "\u5173"]
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(umi__WEBPACK_IMPORTED_MODULE_8__.Link, {
+ className: "current c-black font16",
+ to: "/tasks/".concat(chanllenge.game_identifier),
+ children: chanllenge.name
+ })]
+ }), !!(chanllenge !== null && chanllenge !== void 0 && (_chanllenge$outputs = chanllenge.outputs) !== null && _chanllenge$outputs !== void 0 && _chanllenge$outputs.length) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, {
+ bordered: true,
+ dataSource: chanllenge.outputs.map(function (out) {
+ return {
+ key: out.position,
+ error_msg: out.output_detail,
+ updated_at: out.updated_at
+ };
+ }),
+ columns: outputColumns,
+ pagination: false
+ }), (chanllenge === null || chanllenge === void 0 ? void 0 : chanllenge.st) === 0 && chanllenge.passed_code && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("div", {
+ className: _index_less_modules__WEBPACK_IMPORTED_MODULE_10__/* ["default"].shixunWrp */ .Z.shixunWrp,
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("h2", {
+ children: ["\u6700\u540E\u4E00\u6B21\u901A\u5173\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
+ className: "c-light-black",
+ children: chanllenge.path
+ })]
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_monaco_editor__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP, {
+ height: 300,
+ autoHeight: autoHeight,
+ language: "python",
+ theme: "default",
+ value: chanllenge.passed_code,
+ options: options
+ })]
+ })]
+ });
+ })]
+ }), (0,_utils_authority__WEBPACK_IMPORTED_MODULE_6__/* .isStudent */ .dE)() && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_RenderHtml__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
+ className: "c-grey-999 mt20 mb20",
+ value: item === null || item === void 0 ? void 0 : item.question_title
+ }), item === null || item === void 0 ? void 0 : (_item$shixun = item.shixun) === null || _item$shixun === void 0 ? void 0 : _item$shixun.map(function (shixun, index) {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("p", {
+ className: "font16 c-grey-666 mb5",
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("span", {
+ className: "mr20",
+ children: ["\u7B2C", shixun === null || shixun === void 0 ? void 0 : shixun.challenge_position, "\u5173 ", shixun === null || shixun === void 0 ? void 0 : shixun.challenge_name]
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("span", {
+ children: [shixun === null || shixun === void 0 ? void 0 : shixun.challenge_score, "\u5206"]
+ })]
+ });
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("div", {
+ className: "mb15"
+ })]
+ });
+};
+/* harmony default export */ __webpack_exports__["Z"] = (Shixun);
+
+/***/ }),
+
+/***/ 70960:
+/*!***************************!*\
+ !*** ./src/utils/enum.ts ***!
+ \***************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "c": function() { return /* binding */ QuestionType; }
+/* harmony export */ });
+/* unused harmony export PageType */
+var PageType = /*#__PURE__*/function (PageType) {
+ PageType["FirstPage"] = "firstPage";
+ PageType["PrevPage"] = "prevPage";
+ PageType["NextPage"] = "nextPage";
+ return PageType;
+}({});
+var QuestionType = /*#__PURE__*/function (QuestionType) {
+ QuestionType[QuestionType["Single"] = 0] = "Single";
+ QuestionType[QuestionType["Multiple"] = 1] = "Multiple";
+ QuestionType[QuestionType["Judge"] = 2] = "Judge";
+ QuestionType[QuestionType["Fill"] = 3] = "Fill";
+ QuestionType[QuestionType["Subjective"] = 4] = "Subjective";
+ QuestionType[QuestionType["Shixun"] = 5] = "Shixun";
+ QuestionType[QuestionType["Program"] = 6] = "Program";
+ QuestionType[QuestionType["Combine"] = 7] = "Combine";
+ return QuestionType;
+}({});
+
+/***/ }),
+
+/***/ 24549:
+/*!***********************************************************************!*\
+ !*** ./src/pages/Classrooms/Lists/Exercise/Export/index.less?modules ***!
+ \***********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__) {
+
+// extracted by mini-css-extract-plugin
+/* harmony default export */ __webpack_exports__["Z"] = ({"flex_box_center":"flex_box_center___GW1u0","flex_space_between":"flex_space_between___XhK9z","flex_box_vertical_center":"flex_box_vertical_center___NKIbp","flex_box_center_end":"flex_box_center_end___V3qhT","flex_box_column":"flex_box_column___b4G29","bg":"bg___exMJB","paginationWrapper":"paginationWrapper___ROsRI","totalText":"totalText___PGE6D","num":"num___jLrBF","title":"title___yiXeD","questionIcons":"questionIcons___v75Tz","green":"green___HRGef","orange":"orange___tdW4E","greenTip":"greenTip___f2SpQ","redTip":"redTip___jc8UE","orangeTip":"orangeTip___VMO_s","flexRow":"flexRow___Jshv2","simpleWrap":"simpleWrap___ul6oi","divider":"divider___Of_8z","modal":"modal___oAD7F","programTitle":"programTitle___ybswa","simpleBg":"simpleBg___yLrQy","exportBtn":"exportBtn___x5fcE","export_type_modal":"export_type_modal___hmW4i","export_type_modal_con":"export_type_modal_con___R2S3f","type_item":"type_item___NsmrH","img_warp":"img_warp___LUfHa","img_warp_active":"img_warp_active____uL7y"});
+
+/***/ }),
+
+/***/ 1446:
+/*!*********************************************************************************!*\
+ !*** ./src/pages/Classrooms/Lists/Exercise/Review/component/index.less?modules ***!
+ \*********************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__) {
+
+// extracted by mini-css-extract-plugin
+/* harmony default export */ __webpack_exports__["Z"] = ({"flex_box_center":"flex_box_center___VAUts","flex_space_between":"flex_space_between___gx5ZV","flex_box_vertical_center":"flex_box_vertical_center___HV_tL","flex_box_center_end":"flex_box_center_end___fVsIw","flex_box_column":"flex_box_column___F5DHk","shixunWrp":"shixunWrp___pinaF","s":"s___mtpV4","fillComment":"fillComment___WEgkI","commentContent":"commentContent___v_Ebo","commentText":"commentText___fyDle","simpleWrap":"simpleWrap___uwIie","fillBg":"fillBg___iyMsm","simpleBg":"simpleBg___UqElF","lookCode":"lookCode___xKifS"});
+
+/***/ }),
+
+/***/ 37729:
+/*!***********************************************************************!*\
+ !*** ./src/pages/Classrooms/Lists/Exercise/Review/index.less?modules ***!
+ \***********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__) {
+
+// extracted by mini-css-extract-plugin
+/* harmony default export */ __webpack_exports__["Z"] = ({"flex_box_center":"flex_box_center___D6Qly","flex_space_between":"flex_space_between___ZA98O","flex_box_vertical_center":"flex_box_vertical_center___aST6E","flex_box_center_end":"flex_box_center_end___kJ_eQ","flex_box_column":"flex_box_column___ZOkyZ","bg":"bg___rbSyL","circularBlue":"circularBlue___qvnla","circularRed":"circularRed___jo0FU","circularOrange":"circularOrange___GteY7","circularGreen":"circularGreen___PW_tz","circularGrey":"circularGrey___Nt7Wc","title":"title___Volf5","questionIcons":"questionIcons___MIxzq","grey":"grey___XquYB","green":"green___sjsXt","blue":"blue___Jwa9H","orange":"orange___cGfa7","red":"red___NensB","greenTip":"greenTip___lDmky","redTip":"redTip___Yp9nM","cccTip":"cccTip___Uzudc","orangeTip":"orangeTip___gA104","flexRow":"flexRow___GsOMs","simpleWrap":"simpleWrap___jppmP","userPhoto":"userPhoto___LUsoO","CCCIcons":"CCCIcons___STbxr","buttonFixed":"buttonFixed___aUnd3","progress":"progress___w_inO","typeTitle":"typeTitle___i1hJu","answerResult":"answerResult___kLknn","questionsInfo":"questionsInfo___spnx1","leftBar":"leftBar___AjrjB","greenBg":"greenBg___nlTOV","blueBg":"blueBg___nYACT","redBg":"redBg___WTgtT","orangeBg":"orangeBg___mMAXu","greyBg":"greyBg___eAdgQ","commentText":"commentText___smAVm","full":"full____Rgkm","answerInfo":"answerInfo___iSSvg","listType":"listType___fUHyn","userInfo":"userInfo___sc77e","userImg":"userImg___mL2tk","userInfoTitle":"userInfoTitle___U2d5B","userInfoValue":"userInfoValue___DBOCD","status":"status___yZSrO","result":"result___TOeTF","evaluate":"evaluate___CJGFj","analysis":"analysis___NuY61","userInfoModel":"userInfoModel___jHeA_","width":"width___UtVF4","Title":"Title___BfkeS","Value":"Value___sj9SB","userInfoModelbody":"userInfoModelbody___nQNbP","answerError":"answerError___kJTJu"});
+
+/***/ })
+
+}]);
\ No newline at end of file
diff --git a/p__Classrooms__Lists__Exercise__Export__index.chunk.css b/11354.chunk.css
similarity index 98%
rename from p__Classrooms__Lists__Exercise__Export__index.chunk.css
rename to 11354.chunk.css
index c509fd2473..6caa342af5 100644
--- a/p__Classrooms__Lists__Exercise__Export__index.chunk.css
+++ b/11354.chunk.css
@@ -1,21 +1,21 @@
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/Export/index.less?modules ***!
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/Review/index.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
-.flex_box_center___GW1u0 {
+.flex_box_center___D6Qly {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
-.flex_space_between___XhK9z {
+.flex_space_between___ZA98O {
justify-content: space-between;
-webkit-box-pack: justify;
}
-.flex_box_vertical_center___NKIbp {
+.flex_box_vertical_center___aST6E {
align-items: center;
box-align: center;
}
-.flex_box_center_end___V3qhT {
+.flex_box_center_end___kJ_eQ {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
@@ -25,86 +25,115 @@
box-align: center;
box-pack: end;
}
-.flex_box_column___b4G29 {
+.flex_box_column___ZOkyZ {
flex-direction: column;
box-orient: block-axis;
}
-.bg___exMJB {
+.bg___rbSyL {
background: white;
- min-height: 1000px;
+ border-radius: 6px;
}
-.bg___exMJB > div {
- position: relative;
+.circularBlue___qvnla,
+.circularRed___jo0FU,
+.circularOrange___GteY7,
+.circularGreen___PW_tz,
+.circularGrey___Nt7Wc {
+ display: inline-block;
+ width: 8px;
+ height: 8px;
+ margin-right: 6px;
+ border-radius: 8px;
}
-.bg___exMJB .paginationWrapper___ROsRI {
- padding-right: 30px;
+.circularBlue___qvnla {
+ background: #0152d9;
}
-.bg___exMJB .paginationWrapper___ROsRI li[class~='ant-pagination-total-text'] {
- float: none;
+.circularRed___jo0FU {
+ background: #ee4a1f;
}
-.bg___exMJB .paginationWrapper___ROsRI li[class~='ant-pagination-total-text'] .totalText___PGE6D {
- font-size: 12px;
- color: #464f66;
+.circularOrange___GteY7 {
+ background: #ff6800;
}
-.bg___exMJB .paginationWrapper___ROsRI li[class~='ant-pagination-total-text'] .totalText___PGE6D .num___jLrBF {
- color: #0152d9;
+.circularGreen___PW_tz {
+ background: #028d01;
}
-.title___yiXeD {
+.circularGrey___Nt7Wc {
+ background: #9b9b9b;
+}
+.title___Volf5 {
display: box;
display: flex;
align-items: center;
box-align: center;
}
-.title___yiXeD strong {
+.title___Volf5 strong {
color: #333;
}
-.questionIcons___v75Tz [class~='ant-anchor-link'] {
+.questionIcons___MIxzq [class~='ant-anchor-link'] {
display: inline;
}
-.questionIcons___v75Tz [class~='ant-anchor-wrapper'] {
+.questionIcons___MIxzq [class~='ant-anchor-wrapper'] {
margin: 0;
overflow: hidden;
}
-.questionIcons___v75Tz span,
-.questionIcons___v75Tz a {
- width: 40px;
- height: 40px;
- line-height: 40px;
+.questionIcons___MIxzq span,
+.questionIcons___MIxzq a {
+ width: 30px;
+ height: 30px;
+ line-height: 30px;
text-align: center;
- color: #fff;
- background: #fb3226;
+ color: #0152d9;
+ background: #deefff;
display: inline-block;
- margin-right: 8px;
- margin-bottom: 20px;
- border-radius: 40px;
+ margin-right: 9px;
+ margin-bottom: 6px;
+ border-radius: 4px;
font-weight: bold;
cursor: pointer;
}
-.questionIcons___v75Tz span:hover,
-.questionIcons___v75Tz a:hover {
- background-color: #ec7d72;
+.questionIcons___MIxzq span:hover,
+.questionIcons___MIxzq a:hover {
+ background-color: #cae5ff;
}
-.questionIcons___v75Tz span:nth-child(5n),
-.questionIcons___v75Tz a:nth-child(5n) {
- margin-right: 25px;
+.questionIcons___MIxzq .grey___XquYB {
+ color: #666;
+ background-color: #e4e4e4;
}
-.questionIcons___v75Tz .green___HRGef {
- background-color: #2abd8c;
+.questionIcons___MIxzq .grey___XquYB:hover {
+ background-color: #d6d6d6;
}
-.questionIcons___v75Tz .green___HRGef:hover {
- background-color: #88d19e;
+.questionIcons___MIxzq .green___sjsXt {
+ color: #028d01;
+ background-color: #e0f4e4;
}
-.questionIcons___v75Tz .orange___tdW4E {
- background-color: #fd8001;
+.questionIcons___MIxzq .green___sjsXt:hover {
+ background-color: #c5e9cc;
}
-.questionIcons___v75Tz .orange___tdW4E:hover {
- background-color: #fb9f42;
+.questionIcons___MIxzq .blue___Jwa9H {
+ color: #0152d9;
+ background-color: #deefff;
}
-.greenTip___f2SpQ {
+.questionIcons___MIxzq .blue___Jwa9H:hover {
+ background-color: #cae5ff;
+}
+.questionIcons___MIxzq .orange___cGfa7 {
+ color: #ff6800;
+ background-color: #ffe9c9;
+}
+.questionIcons___MIxzq .orange___cGfa7:hover {
+ background-color: #fddfb1;
+}
+.questionIcons___MIxzq .red___NensB {
+ color: #fb3226;
+ background-color: #ffd5d0;
+}
+.questionIcons___MIxzq .red___NensB:hover {
+ background-color: #ffbdb6;
+}
+.greenTip___lDmky {
color: #2abd8c;
margin-left: 15px;
}
-.greenTip___f2SpQ:before {
+.greenTip___lDmky:before {
content: '';
width: 12px;
height: 12px;
@@ -115,11 +144,11 @@
position: relative;
top: 1px;
}
-.redTip___jc8UE {
+.redTip___Yp9nM {
color: #fb3226;
margin-left: 15px;
}
-.redTip___jc8UE:before {
+.redTip___Yp9nM:before {
content: '';
width: 12px;
height: 12px;
@@ -130,11 +159,26 @@
position: relative;
top: 1px;
}
-.orangeTip___VMO_s {
+.cccTip___Uzudc {
+ color: #cccccc;
+ margin-left: 15px;
+}
+.cccTip___Uzudc:before {
+ content: '';
+ width: 12px;
+ height: 12px;
+ background: #cccccc;
+ border-radius: 12px;
+ display: inline-block;
+ margin-right: 4px;
+ position: relative;
+ top: 1px;
+}
+.orangeTip___gA104 {
color: #fd8001;
margin-left: 15px;
}
-.orangeTip___VMO_s:before {
+.orangeTip___gA104:before {
content: '';
width: 12px;
height: 12px;
@@ -145,231 +189,159 @@
position: relative;
top: 1px;
}
-.flexRow___Jshv2 {
+.flexRow___GsOMs {
display: flex;
}
-.simpleWrap___ul6oi {
+.simpleWrap___jppmP {
background: #ffffff;
border-radius: 2px;
border: 1px solid #f9f9f9;
font-weight: 300;
padding: 12px 12px;
}
-.divider___Of_8z {
- width: auto;
- min-width: auto;
-}
-.modal___oAD7F [class~='ant-btn'] {
- display: none;
+.userPhoto___LUsoO {
+ font-size: 0;
+ vertical-align: top;
+ margin: 20px 0 0 0;
+ padding: 0;
}
-.programTitle___ybswa [class~='markdown-body'] {
- overflow: visible;
- overflow: initial;
+.userPhoto___LUsoO li {
+ width: 100px;
+ margin-right: 10px;
+ display: inline-block;
+ font-size: 12px;
+ color: #999;
+ position: relative;
}
-.simpleBg___yLrQy {
- background: #fafafa;
- padding: 10px 17px;
- margin-top: 5px;
+.userPhoto___LUsoO li [class~='icon-fangda2'] {
+ position: absolute;
+ right: 5px;
+ top: 5px;
+ z-index: 1;
+ cursor: pointer;
}
-.exportBtn___x5fcE {
- width: 108px;
- height: 38px;
- border-radius: 4px;
+.userPhoto___LUsoO li img {
+ width: 100px;
+ height: 70px;
+ margin-bottom: 5px;
}
-
-/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/PreviewAll/index.less?modules ***!
- \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
-.wrp___dq7YK {
- display: flex;
- justify-content: center;
- align-items: center;
- position: fixed;
- width: 100%;
- height: 100%;
- left: 0;
- top: 0;
- z-index: 108;
+.CCCIcons___STbxr [class~='ant-anchor-link'] {
+ display: inline;
}
-.wrp___dq7YK.bgBlack___ARIUV {
- background: rgba(0, 0, 0, 0.5);
+.CCCIcons___STbxr [class~='ant-anchor-wrapper'] {
+ margin: 0;
+ overflow: hidden;
}
-.wrp___dq7YK img,
-.wrp___dq7YK video {
- max-width: 100%;
- max-height: 80%;
+.CCCIcons___STbxr span,
+.CCCIcons___STbxr a {
+ width: 40px;
+ height: 40px;
+ line-height: 40px;
text-align: center;
+ color: #fff;
+ background: #cccccc;
+ display: inline-block;
+ margin-right: 8px;
+ margin-bottom: 20px;
+ border-radius: 40px;
+ font-weight: bold;
+ cursor: pointer;
}
-.wrp___dq7YK iframe {
- width: 100%;
- height: 100%;
- position: absolute;
- left: 0;
- top: 0;
- background: #fff;
- border: none;
+.CCCIcons___STbxr span:hover,
+.CCCIcons___STbxr a:hover {
+ background-color: #dedede;
}
-.monaco___VnZC3 {
- position: absolute;
- height: 100%;
- width: 100%;
+.CCCIcons___STbxr span:nth-child(5n),
+.CCCIcons___STbxr a:nth-child(5n) {
+ margin-right: 25px;
}
-.darkBlue___UprA9 * {
- font-size: 14px;
+.CCCIcons___STbxr .green___sjsXt {
+ background-color: #2abd8c;
}
-.darkBlue___UprA9 [class~='margin'],
-.darkBlue___UprA9 [class~='monaco-editor-background'] {
- background: #0a0e2d !important;
-}
-.darkBlue___UprA9 [class~='line-numbers'] {
- color: white !important;
+.CCCIcons___STbxr .green___sjsXt:hover {
+ background-color: #88d19e;
}
-.close___LKoWu {
- position: absolute;
- right: 40px;
- top: 40px;
- z-index: 10;
- display: flex;
+.CCCIcons___STbxr .orange___cGfa7 {
+ background-color: #fd8001;
}
-.close___LKoWu > span {
- background: #4a4a4a;
- color: #fff;
- width: 40px;
- height: 40px;
- border-radius: 4px;
- display: flex;
- justify-content: center;
- align-items: center;
- cursor: pointer;
- margin-left: 10px;
+.CCCIcons___STbxr .orange___cGfa7:hover {
+ background-color: #fb9f42;
}
-.embed___hvpEJ {
- position: absolute;
+.buttonFixed___aUnd3 {
+ position: fixed;
+ z-index: 1000;
+ bottom: 0;
left: 0;
- top: 0;
width: 100%;
- height: 100%;
+ height: 70px;
+ background: #fff;
+ box-shadow: 0px -2px 8px 0px #F1F1F1;
+ align-items: center;
}
-
-/*!*******************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[4].oneOf[1].use[2]!./src/components/monaco-editor/index.css ***!
- \*******************************************************************************************************************************************************************************************************************************************/
-.my-monaco-editor div,
-.my-diff-editor div {
- font-size: inherit;
+.buttonFixed___aUnd3 [class^="ant-btn"] {
+ border-radius: 2px;
+ height: 40px;
}
-
-.my-error-line-wrp {
- width: calc(100% - 20px) !important;
- background: rgba(245, 0, 0, 0.2) !important;
- height: auto !important;
- color: rgba(245, 0, 0, 1);
+.buttonFixed___aUnd3 .progress___w_inO {
+ padding: 8px 16px;
+ background: #F5F7FD;
+ opacity: 0.9;
+ width: 261px;
+ margin-left: 20px;
}
-
-
-.noCopyPaste .quick-input-widget {
- display: none !important;
+.buttonFixed___aUnd3 .progress___w_inO [class^="ant-progress-bg"] {
+ height: 6px;
}
-
-.breakpoints-select {
-
- background: #FF0000;
- width: 8px !important;
- height: 8px !important;
- left: 7px !important;
- top: 7px;
- border-radius: 4px;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- pointer-events: none;
+.typeTitle___i1hJu {
+ height: 46px;
+ margin: 14px 14px 0 14px;
+ padding-left: 30px;
+ padding-right: 30px;
+ background: #f5f7fd;
}
-
-.breakpoints-fake {
- background: rgba(255, 0, 0, 0.5);
- width: 8px !important;
- height: 8px !important;
- left: 7px !important;
- top: 7px;
+.answerResult___kLknn {
+ background: #fafafa;
border-radius: 4px;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- pointer-events: none;
-}
-
-.highlighted-line {
- background: #4B4B18;
-}
-/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/Review/component/index.less?modules ***!
- \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
-.flex_box_center___VAUts {
- justify-content: center;
- align-items: center;
- -webkit-justify-content: center;
- box-align: center;
-}
-.flex_space_between___gx5ZV {
- justify-content: space-between;
- -webkit-box-pack: justify;
-}
-.flex_box_vertical_center___HV_tL {
- align-items: center;
- box-align: center;
}
-.flex_box_center_end___fVsIw {
- justify-content: flex-end;
- align-items: center;
- -webkit-justify-content: flex-end;
- -webkit-align-items: center;
- -webkit-box-align: center;
- -webkit-box-pack: end;
- box-align: center;
- box-pack: end;
+.questionsInfo___spnx1 {
+ padding-top: 40px;
+ padding-bottom: 10px;
+ line-height: 2;
+ width: 120px;
+ background: #f1f8ff;
+ border-radius: 2px;
+ text-align: center;
}
-.flex_box_column___F5DHk {
- flex-direction: column;
- box-orient: block-axis;
+.questionsInfo___spnx1 img {
+ width: 140px;
+ position: absolute;
+ top: 0;
+ left: -10px;
}
-.shixunWrp___pinaF {
- border: 1px solid #eee;
- margin-top: 20px;
+.leftBar___AjrjB {
+ padding-bottom: 70px;
}
-.shixunWrp___pinaF h2 {
- font-size: 14px;
- font-weight: normal;
- padding: 6px 20px;
- border-bottom: 1px solid #eee;
+.leftBar___AjrjB [class~='ant-affix'] {
+ height: 100% !important;
+ padding-bottom: 80px;
+ overflow: auto;
}
-.shixunWrp___pinaF h2 .s___mtpV4 {
- float: right;
- color: #007aff;
- display: flex;
- align-items: center;
- cursor: pointer;
+.greenBg___nlTOV {
+ background: #ecfff8;
}
-.shixunWrp___pinaF h2 .s___mtpV4 i {
- margin-right: 6px;
+.blueBg___nYACT {
+ background: #f1f8ff;
}
-.fillComment___WEgkI {
- margin-top: 10px;
- display: flex;
- flex-direction: row;
+.redBg___WTgtT {
+ background: #fff5f4;
}
-.fillComment___WEgkI img {
- width: 38px;
- height: 38px;
- border-radius: 50%;
- display: block;
+.orangeBg___mMAXu {
+ background: #fff8f4;
}
-.commentContent___v_Ebo {
- flex: 1 1;
- margin-left: 10px;
+.greyBg___eAdgQ {
+ background: #f5f4f4;
}
-.commentText___fyDle {
+.commentText___smAVm {
font-size: 14px;
background: #fafafa;
font-weight: 500;
@@ -378,619 +350,367 @@
padding: 16px 16px;
color: #666666;
}
-.simpleWrap___uwIie {
- background: #ffffff;
- border-radius: 2px;
- border: 1px solid #f9f9f9;
- font-weight: 300;
- padding: 12px 12px;
-}
-.fillBg___iyMsm {
- background: #fafafa;
- padding: 10px 17px;
- margin-top: 5px;
-}
-.simpleBg___UqElF {
- background: #fafafa;
- padding: 10px 17px;
- margin-top: 5px;
-}
-.lookCode___xKifS [class~='ant-modal-confirm-content'] {
- margin: 10px 0 0 !important;
+.full____Rgkm {
+ height: 36px;
+ border: 1px solid #cccccc;
+ border-bottom-width: 0px;
+ color: #007aff;
+ display: flex;
+ justify-content: flex-end;
+ align-items: center;
}
-
-/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/Review/index.less?modules ***!
- \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
-.flex_box_center___D6Qly {
+.full____Rgkm > span {
+ display: flex;
justify-content: center;
align-items: center;
- -webkit-justify-content: center;
- box-align: center;
+ cursor: pointer;
}
-.flex_space_between___ZA98O {
- justify-content: space-between;
- -webkit-box-pack: justify;
+.full____Rgkm > span span {
+ margin: 0 9px;
}
-.flex_box_vertical_center___aST6E {
- align-items: center;
- box-align: center;
+.answerInfo___iSSvg {
+ background: rgba(230, 247, 255, 0.6);
+ border-radius: 2px;
+ border: 1px solid rgba(145, 213, 255, 0.6);
+ padding: 8px;
+ font-size: 12px;
+ margin-bottom: 17px;
+ margin-top: 12px;
}
-.flex_box_center_end___kJ_eQ {
- justify-content: flex-end;
- align-items: center;
- -webkit-justify-content: flex-end;
- -webkit-align-items: center;
- -webkit-box-align: center;
- -webkit-box-pack: end;
- box-align: center;
- box-pack: end;
+.listType___fUHyn {
+ padding: 3px;
}
-.flex_box_column___ZOkyZ {
- flex-direction: column;
- box-orient: block-axis;
+.listType___fUHyn span {
+ margin: 3px 0 3px 3px;
+ display: inline-block;
}
-.bg___rbSyL {
- background: white;
- border-radius: 6px;
+.userInfo___sc77e {
+ padding: 20px 14px;
+ position: relative;
}
-.circularBlue___qvnla,
-.circularRed___jo0FU,
-.circularOrange___GteY7,
-.circularGreen___PW_tz,
-.circularGrey___Nt7Wc {
- display: inline-block;
- width: 8px;
- height: 8px;
- margin-right: 6px;
- border-radius: 8px;
+.userInfo___sc77e .userImg___mL2tk {
+ width: 60px;
+ height: 60px;
+ border-radius: 50%;
+ overflow: hidden;
}
-.circularBlue___qvnla {
- background: #0152d9;
+.userInfoTitle___U2d5B {
+ color: #6F7378;
+ width: 30px;
}
-.circularRed___jo0FU {
- background: #ee4a1f;
+.userInfoValue___DBOCD {
+ margin-left: 8px;
+ font-weight: 600;
+ color: #171717;
+ word-break: break-all;
+ /* 强制不换行 */
+ white-space: nowrap;
+ /* 文字用省略号代替超出的部分 */
+ text-overflow: ellipsis;
+ /* 匀速溢出内容,隐藏 */
+ overflow: hidden;
+ width: 115px;
}
-.circularOrange___GteY7 {
- background: #ff6800;
+.userInfo___sc77e .status___yZSrO {
+ position: absolute;
+ right: 0;
+ top: 0;
+ width: 76px;
+ height: 76px;
}
-.circularGreen___PW_tz {
- background: #028d01;
+.result___TOeTF {
+ padding: 14px;
}
-.circularGrey___Nt7Wc {
- background: #9b9b9b;
+.result___TOeTF .evaluate___CJGFj {
+ margin-top: 30px;
}
-.title___Volf5 {
- display: box;
- display: flex;
- align-items: center;
- box-align: center;
+.result___TOeTF .evaluate___CJGFj .analysis___NuY61 {
+ margin-top: 10px;
+ padding: 12px;
+ background: #F6F7F9;
+ font-size: 14px;
+ font-weight: 400;
+ color: #A5A9B3;
+ line-height: 22px;
}
-.title___Volf5 strong {
- color: #333;
+.userInfoModel___jHeA_ {
+ font-size: 14px;
+ font-weight: 400;
+ line-height: 14px;
+ display: flex;
+ flex-wrap: wrap;
}
-.questionIcons___MIxzq [class~='ant-anchor-link'] {
- display: inline;
+.userInfoModel___jHeA_ [class^="ant-input"] {
+ padding: 0;
}
-.questionIcons___MIxzq [class~='ant-anchor-wrapper'] {
- margin: 0;
- overflow: hidden;
+.userInfoModel___jHeA_ .width___UtVF4 {
+ width: calc((760px - 16px) / 3);
+ margin-top: 22px;
}
-.questionIcons___MIxzq span,
-.questionIcons___MIxzq a {
- width: 30px;
- height: 30px;
- line-height: 30px;
- text-align: center;
- color: #0152d9;
- background: #deefff;
- display: inline-block;
- margin-right: 9px;
- margin-bottom: 6px;
- border-radius: 4px;
- font-weight: bold;
- cursor: pointer;
+.userInfoModel___jHeA_ .width___UtVF4:nth-child(1),
+.userInfoModel___jHeA_ .width___UtVF4:nth-child(2),
+.userInfoModel___jHeA_ .width___UtVF4:nth-child(3) {
+ margin-top: 0;
}
-.questionIcons___MIxzq span:hover,
-.questionIcons___MIxzq a:hover {
- background-color: #cae5ff;
+.userInfoModel___jHeA_ .width___UtVF4:last-child {
+ margin-right: auto;
}
-.questionIcons___MIxzq .grey___XquYB {
- color: #666;
- background-color: #e4e4e4;
+.userInfoModel___jHeA_ .Title___BfkeS {
+ color: #5F6367;
+ white-space: nowrap;
}
-.questionIcons___MIxzq .grey___XquYB:hover {
- background-color: #d6d6d6;
+.userInfoModel___jHeA_ .Value___sj9SB {
+ margin: 0 16px;
+ color: #000;
+ word-break: break-all;
+ /* 强制不换行 */
+ white-space: nowrap;
+ /* 文字用省略号代替超出的部分 */
+ text-overflow: ellipsis;
+ /* 匀速溢出内容,隐藏 */
+ overflow: hidden;
}
-.questionIcons___MIxzq .green___sjsXt {
- color: #028d01;
- background-color: #e0f4e4;
+.userInfoModelbody___nQNbP [class^="ant-modal-header"] {
+ padding: 25px;
}
-.questionIcons___MIxzq .green___sjsXt:hover {
- background-color: #c5e9cc;
+.userInfoModelbody___nQNbP [class^="ant-modal-body"] {
+ padding: 5px 25px 25px 25px;
}
-.questionIcons___MIxzq .blue___Jwa9H {
- color: #0152d9;
- background-color: #deefff;
+#educoder .answerError___kJTJu [class^="ant-radio-inner"] {
+ border-color: #fb3226;
+ background: #fb3226;
}
-.questionIcons___MIxzq .blue___Jwa9H:hover {
- background-color: #cae5ff;
+#educoder .answerError___kJTJu [class^="ant-radio-inner"]::after {
+ background: #fff;
}
-.questionIcons___MIxzq .orange___cGfa7 {
- color: #ff6800;
- background-color: #ffe9c9;
+#educoder .answerError___kJTJu [class^="ant-checkbox-inner"] {
+ border-color: #fb3226;
+ background: #fb3226;
}
-.questionIcons___MIxzq .orange___cGfa7:hover {
- background-color: #fddfb1;
+#educoder .answerError___kJTJu [class^="ant-checkbox-inner"]::after {
+ background: #fb3226;
}
-.questionIcons___MIxzq .red___NensB {
- color: #fb3226;
- background-color: #ffd5d0;
+
+/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/PreviewAll/index.less?modules ***!
+ \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+.wrp___dq7YK {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ position: fixed;
+ width: 100%;
+ height: 100%;
+ left: 0;
+ top: 0;
+ z-index: 108;
}
-.questionIcons___MIxzq .red___NensB:hover {
- background-color: #ffbdb6;
+.wrp___dq7YK.bgBlack___ARIUV {
+ background: rgba(0, 0, 0, 0.5);
}
-.greenTip___lDmky {
- color: #2abd8c;
- margin-left: 15px;
+.wrp___dq7YK img,
+.wrp___dq7YK video {
+ max-width: 100%;
+ max-height: 80%;
+ text-align: center;
}
-.greenTip___lDmky:before {
- content: '';
- width: 12px;
- height: 12px;
- background: #2abd8c;
- border-radius: 12px;
- display: inline-block;
- margin-right: 4px;
- position: relative;
- top: 1px;
+.wrp___dq7YK iframe {
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ left: 0;
+ top: 0;
+ background: #fff;
+ border: none;
}
-.redTip___Yp9nM {
- color: #fb3226;
- margin-left: 15px;
+.monaco___VnZC3 {
+ position: absolute;
+ height: 100%;
+ width: 100%;
}
-.redTip___Yp9nM:before {
- content: '';
- width: 12px;
- height: 12px;
- background: #fb3226;
- border-radius: 12px;
- display: inline-block;
- margin-right: 4px;
- position: relative;
- top: 1px;
+.darkBlue___UprA9 * {
+ font-size: 14px;
}
-.cccTip___Uzudc {
- color: #cccccc;
- margin-left: 15px;
+.darkBlue___UprA9 [class~='margin'],
+.darkBlue___UprA9 [class~='monaco-editor-background'] {
+ background: #0a0e2d !important;
}
-.cccTip___Uzudc:before {
- content: '';
- width: 12px;
- height: 12px;
- background: #cccccc;
- border-radius: 12px;
- display: inline-block;
- margin-right: 4px;
- position: relative;
- top: 1px;
+.darkBlue___UprA9 [class~='line-numbers'] {
+ color: white !important;
}
-.orangeTip___gA104 {
- color: #fd8001;
- margin-left: 15px;
+.close___LKoWu {
+ position: absolute;
+ right: 40px;
+ top: 40px;
+ z-index: 10;
+ display: flex;
}
-.orangeTip___gA104:before {
- content: '';
- width: 12px;
- height: 12px;
- background: #fd8001;
- border-radius: 12px;
- display: inline-block;
- margin-right: 4px;
- position: relative;
- top: 1px;
-}
-.flexRow___GsOMs {
- display: flex;
-}
-.simpleWrap___jppmP {
- background: #ffffff;
- border-radius: 2px;
- border: 1px solid #f9f9f9;
- font-weight: 300;
- padding: 12px 12px;
-}
-.userPhoto___LUsoO {
- font-size: 0;
- vertical-align: top;
- margin: 20px 0 0 0;
- padding: 0;
-}
-.userPhoto___LUsoO li {
- width: 100px;
- margin-right: 10px;
- display: inline-block;
- font-size: 12px;
- color: #999;
- position: relative;
-}
-.userPhoto___LUsoO li [class~='icon-fangda2'] {
- position: absolute;
- right: 5px;
- top: 5px;
- z-index: 1;
- cursor: pointer;
-}
-.userPhoto___LUsoO li img {
- width: 100px;
- height: 70px;
- margin-bottom: 5px;
-}
-.CCCIcons___STbxr [class~='ant-anchor-link'] {
- display: inline;
-}
-.CCCIcons___STbxr [class~='ant-anchor-wrapper'] {
- margin: 0;
- overflow: hidden;
-}
-.CCCIcons___STbxr span,
-.CCCIcons___STbxr a {
+.close___LKoWu > span {
+ background: #4a4a4a;
+ color: #fff;
width: 40px;
height: 40px;
- line-height: 40px;
- text-align: center;
- color: #fff;
- background: #cccccc;
- display: inline-block;
- margin-right: 8px;
- margin-bottom: 20px;
- border-radius: 40px;
- font-weight: bold;
+ border-radius: 4px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
cursor: pointer;
+ margin-left: 10px;
}
-.CCCIcons___STbxr span:hover,
-.CCCIcons___STbxr a:hover {
- background-color: #dedede;
-}
-.CCCIcons___STbxr span:nth-child(5n),
-.CCCIcons___STbxr a:nth-child(5n) {
- margin-right: 25px;
-}
-.CCCIcons___STbxr .green___sjsXt {
- background-color: #2abd8c;
-}
-.CCCIcons___STbxr .green___sjsXt:hover {
- background-color: #88d19e;
-}
-.CCCIcons___STbxr .orange___cGfa7 {
- background-color: #fd8001;
-}
-.CCCIcons___STbxr .orange___cGfa7:hover {
- background-color: #fb9f42;
-}
-.buttonFixed___aUnd3 {
- position: fixed;
- z-index: 1000;
- bottom: 0;
+.embed___hvpEJ {
+ position: absolute;
left: 0;
+ top: 0;
width: 100%;
- height: 70px;
- background: #fff;
- box-shadow: 0px -2px 8px 0px #F1F1F1;
- align-items: center;
-}
-.buttonFixed___aUnd3 [class^="ant-btn"] {
- border-radius: 2px;
- height: 40px;
+ height: 100%;
}
-.buttonFixed___aUnd3 .progress___w_inO {
- padding: 8px 16px;
- background: #F5F7FD;
- opacity: 0.9;
- width: 261px;
- margin-left: 20px;
+
+/*!*******************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[4].oneOf[1].use[2]!./src/components/monaco-editor/index.css ***!
+ \*******************************************************************************************************************************************************************************************************************************************/
+.my-monaco-editor div,
+.my-diff-editor div {
+ font-size: inherit;
}
-.buttonFixed___aUnd3 .progress___w_inO [class^="ant-progress-bg"] {
- height: 6px;
+
+.my-error-line-wrp {
+ width: calc(100% - 20px) !important;
+ background: rgba(245, 0, 0, 0.2) !important;
+ height: auto !important;
+ color: rgba(245, 0, 0, 1);
}
-.typeTitle___i1hJu {
- height: 46px;
- margin: 14px 14px 0 14px;
- padding-left: 30px;
- padding-right: 30px;
- background: #f5f7fd;
+
+
+.noCopyPaste .quick-input-widget {
+ display: none !important;
}
-.answerResult___kLknn {
- background: #fafafa;
+
+.breakpoints-select {
+
+ background: #FF0000;
+ width: 8px !important;
+ height: 8px !important;
+ left: 7px !important;
+ top: 7px;
border-radius: 4px;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ pointer-events: none;
}
-.questionsInfo___spnx1 {
- padding-top: 40px;
- padding-bottom: 10px;
- line-height: 2;
- width: 120px;
- background: #f1f8ff;
- border-radius: 2px;
- text-align: center;
-}
-.questionsInfo___spnx1 img {
- width: 140px;
- position: absolute;
- top: 0;
- left: -10px;
+
+.breakpoints-fake {
+ background: rgba(255, 0, 0, 0.5);
+ width: 8px !important;
+ height: 8px !important;
+ left: 7px !important;
+ top: 7px;
+ border-radius: 4px;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ pointer-events: none;
}
-.leftBar___AjrjB {
- padding-bottom: 70px;
+
+.highlighted-line {
+ background: #4B4B18;
}
-.leftBar___AjrjB [class~='ant-affix'] {
- height: 100% !important;
- padding-bottom: 80px;
- overflow: auto;
+/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/Review/component/index.less?modules ***!
+ \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+.flex_box_center___VAUts {
+ justify-content: center;
+ align-items: center;
+ -webkit-justify-content: center;
+ box-align: center;
}
-.greenBg___nlTOV {
- background: #ecfff8;
+.flex_space_between___gx5ZV {
+ justify-content: space-between;
+ -webkit-box-pack: justify;
}
-.blueBg___nYACT {
- background: #f1f8ff;
+.flex_box_vertical_center___HV_tL {
+ align-items: center;
+ box-align: center;
}
-.redBg___WTgtT {
- background: #fff5f4;
+.flex_box_center_end___fVsIw {
+ justify-content: flex-end;
+ align-items: center;
+ -webkit-justify-content: flex-end;
+ -webkit-align-items: center;
+ -webkit-box-align: center;
+ -webkit-box-pack: end;
+ box-align: center;
+ box-pack: end;
}
-.orangeBg___mMAXu {
- background: #fff8f4;
+.flex_box_column___F5DHk {
+ flex-direction: column;
+ box-orient: block-axis;
}
-.greyBg___eAdgQ {
- background: #f5f4f4;
+.shixunWrp___pinaF {
+ border: 1px solid #eee;
+ margin-top: 20px;
}
-.commentText___smAVm {
+.shixunWrp___pinaF h2 {
font-size: 14px;
- background: #fafafa;
- font-weight: 500;
- border-radius: 2px;
- width: 100%;
- padding: 16px 16px;
- color: #666666;
+ font-weight: normal;
+ padding: 6px 20px;
+ border-bottom: 1px solid #eee;
}
-.full____Rgkm {
- height: 36px;
- border: 1px solid #cccccc;
- border-bottom-width: 0px;
+.shixunWrp___pinaF h2 .s___mtpV4 {
+ float: right;
color: #007aff;
display: flex;
- justify-content: flex-end;
- align-items: center;
-}
-.full____Rgkm > span {
- display: flex;
- justify-content: center;
align-items: center;
cursor: pointer;
}
-.full____Rgkm > span span {
- margin: 0 9px;
-}
-.answerInfo___iSSvg {
- background: rgba(230, 247, 255, 0.6);
- border-radius: 2px;
- border: 1px solid rgba(145, 213, 255, 0.6);
- padding: 8px;
- font-size: 12px;
- margin-bottom: 17px;
- margin-top: 12px;
-}
-.listType___fUHyn {
- padding: 3px;
-}
-.listType___fUHyn span {
- margin: 3px 0 3px 3px;
- display: inline-block;
-}
-.userInfo___sc77e {
- padding: 20px 14px;
- position: relative;
-}
-.userInfo___sc77e .userImg___mL2tk {
- width: 60px;
- height: 60px;
- border-radius: 50%;
- overflow: hidden;
-}
-.userInfoTitle___U2d5B {
- color: #6F7378;
- width: 30px;
-}
-.userInfoValue___DBOCD {
- margin-left: 8px;
- font-weight: 600;
- color: #171717;
- word-break: break-all;
- /* 强制不换行 */
- white-space: nowrap;
- /* 文字用省略号代替超出的部分 */
- text-overflow: ellipsis;
- /* 匀速溢出内容,隐藏 */
- overflow: hidden;
- width: 115px;
-}
-.userInfo___sc77e .status___yZSrO {
- position: absolute;
- right: 0;
- top: 0;
- width: 76px;
- height: 76px;
-}
-.result___TOeTF {
- padding: 14px;
-}
-.result___TOeTF .evaluate___CJGFj {
- margin-top: 30px;
+.shixunWrp___pinaF h2 .s___mtpV4 i {
+ margin-right: 6px;
}
-.result___TOeTF .evaluate___CJGFj .analysis___NuY61 {
+.fillComment___WEgkI {
margin-top: 10px;
- padding: 12px;
- background: #F6F7F9;
- font-size: 14px;
- font-weight: 400;
- color: #A5A9B3;
- line-height: 22px;
-}
-.userInfoModel___jHeA_ {
- font-size: 14px;
- font-weight: 400;
- line-height: 14px;
display: flex;
- flex-wrap: wrap;
-}
-.userInfoModel___jHeA_ [class^="ant-input"] {
- padding: 0;
-}
-.userInfoModel___jHeA_ .width___UtVF4 {
- width: calc((760px - 16px) / 3);
- margin-top: 22px;
-}
-.userInfoModel___jHeA_ .width___UtVF4:nth-child(1),
-.userInfoModel___jHeA_ .width___UtVF4:nth-child(2),
-.userInfoModel___jHeA_ .width___UtVF4:nth-child(3) {
- margin-top: 0;
-}
-.userInfoModel___jHeA_ .width___UtVF4:last-child {
- margin-right: auto;
-}
-.userInfoModel___jHeA_ .Title___BfkeS {
- color: #5F6367;
- white-space: nowrap;
-}
-.userInfoModel___jHeA_ .Value___sj9SB {
- margin: 0 16px;
- color: #000;
- word-break: break-all;
- /* 强制不换行 */
- white-space: nowrap;
- /* 文字用省略号代替超出的部分 */
- text-overflow: ellipsis;
- /* 匀速溢出内容,隐藏 */
- overflow: hidden;
-}
-.userInfoModelbody___nQNbP [class^="ant-modal-header"] {
- padding: 25px;
-}
-.userInfoModelbody___nQNbP [class^="ant-modal-body"] {
- padding: 5px 25px 25px 25px;
-}
-#educoder .answerError___kJTJu [class^="ant-radio-inner"] {
- border-color: #fb3226;
- background: #fb3226;
-}
-#educoder .answerError___kJTJu [class^="ant-radio-inner"]::after {
- background: #fff;
-}
-#educoder .answerError___kJTJu [class^="ant-checkbox-inner"] {
- border-color: #fb3226;
- background: #fb3226;
-}
-#educoder .answerError___kJTJu [class^="ant-checkbox-inner"]::after {
- background: #fb3226;
-}
-
-/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/Export/components/Head/index.less?modules ***!
- \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
-.wrap___SSpd0 {
- position: relative;
- font-size: 14px;
-}
-.wrap___SSpd0 [class~='ant-table-footer'] {
- background-color: #fff;
- padding: 0px;
-}
-.img___nbd2O {
- position: absolute;
- height: 100px;
- width: 140px;
- top: 2px;
- left: 2px;
-}
-.table___fcP71 a {
- color: rgba(0, 0, 0, 0.85);
-}
-.totalScore___YxSMe {
- margin-right: 142px;
- padding: 12px 8px;
- border-right: 1px solid #f0f0f0;
- border-left: 1px solid #f0f0f0;
-}
-.people___bf9pK {
- padding: 12px 8px;
- border-right: 1px solid #f0f0f0;
-}
-.glassSeal___dYhKO {
- position: absolute;
- font-size: 16px;
- left: -480px;
- top: 520px;
- width: 1000px;
- transform: rotate(-90deg);
- border-bottom: 2px dashed #fb3226;
- display: flex;
-}
-.glassSeal___dYhKO > span {
- padding-right: 20px;
- padding-left: 10px;
-}
-.glassSeal___dYhKO > span:nth-child(1) {
- margin-left: auto;
-}
-.glassSeal___dYhKO > span:last-child {
- margin-right: auto;
-}
-.paperHeader___gYUbq {
- position: relative;
- margin-bottom: 30px;
- font-size: 18px;
- font-weight: 500;
-}
-.paperHeader___gYUbq .exportBtn___nyRYQ {
- position: absolute;
- right: 0;
- top: 100%;
- transform: translateY(-50%);
- height: 34px;
- width: 106px;
-}
-
-/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/Export/components/ExportSetting/index.less?modules ***!
- \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
-.modalWrapper___rWDvO div[class~='ant-modal-body'] {
- padding: 16px 46px;
-}
-.exportSettingWrapper___pCClH {
- font-size: 14px;
- font-weight: 400;
- color: #000000;
-}
-.exportSettingWrapper___pCClH label[class~='ant-checkbox-wrapper'] {
- font-size: 14px;
- font-weight: 400;
- color: #000000;
+ flex-direction: row;
}
-.exportSettingWrapper___pCClH .imgPreviewPart___PCv0Y img {
- height: 338px;
+.fillComment___WEgkI img {
+ width: 38px;
+ height: 38px;
+ border-radius: 50%;
+ display: block;
}
-.exportSettingWrapper___pCClH .tips___EVeBl {
- font-size: 12px;
- font-weight: 400;
- color: #5F6367;
+.commentContent___v_Ebo {
+ flex: 1 1;
margin-left: 10px;
}
-.exportSettingWrapper___pCClH .pottedLine___AaY68 img {
- width: 100px;
-}
-.exportSettingWrapper___pCClH .pottedLine___AaY68 .text___ho3u_ {
+.commentText___fyDle {
font-size: 14px;
- font-weight: 400;
+ background: #fafafa;
+ font-weight: 500;
+ border-radius: 2px;
+ width: 100%;
+ padding: 16px 16px;
color: #666666;
- margin: 0 10px;
+}
+.simpleWrap___uwIie {
+ background: #ffffff;
+ border-radius: 2px;
+ border: 1px solid #f9f9f9;
+ font-weight: 300;
+ padding: 12px 12px;
+}
+.fillBg___iyMsm {
+ background: #fafafa;
+ padding: 10px 17px;
+ margin-top: 5px;
+}
+.simpleBg___UqElF {
+ background: #fafafa;
+ padding: 10px 17px;
+ margin-top: 5px;
+}
+.lookCode___xKifS [class~='ant-modal-confirm-content'] {
+ margin: 10px 0 0 !important;
}
/*!***********************************************************************************************************************************************************************************************************************************************!*\
@@ -1897,266 +1617,480 @@ span.CodeMirror-selectedtext {
left: -7px;
top: 6px;
}
-.markdown-toolbar-container li {
- color: #666;
- padding: 0 1px;
- height: 100%;
+.markdown-toolbar-container li {
+ color: #666;
+ padding: 0 1px;
+ height: 100%;
+ display: flex;
+ height: 38px;
+ flex-flow: column nowrap;
+ justify-content: center;
+}
+.markdown-toolbar-container a,
+.markdown-toolbar-container span {
+ display: block;
+}
+.markdown-toolbar-container a {
+ width: 28px;
+ color: #666;
+ cursor: pointer;
+ text-align: center;
+ font-size: 18px;
+}
+.markdown-toolbar-container .btn-null {
+ width: auto;
+ display: flex;
+ flex-flow: row nowrap;
+ align-items: center;
+}
+.markdown-toolbar-container .insert-blank {
+ color: #E99237;
+ font-size: 18px;
+}
+.markdown-toolbar-container span.v-line {
+ margin: 0 5px;
+ height: 65%;
+ border-right: 1px solid #ccc;
+}
+.mini .markdown-toolbar-container li {
+ height: 28px;
+}
+.editor-resize {
+ display: block;
+ width: 120px;
+ height: 4px;
+ left: 54%;
+ margin-top: 2px;
+ border-top: 1px solid #ccc;
+ border-bottom: 1px solid #ccc;
+ cursor: row-resize;
+ white-space: nowrap;
+ overflow: hidden;
+ text-transform: capitalize;
+ box-sizing: border-box;
+ margin: 0 auto;
+}
+.btn-full-screen {
+ position: absolute;
+ right: 5px;
+}
+
+/*!****************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[4].oneOf[1].use[2]!./src/components/markdown-editor/css/iconfont.css ***!
+ \****************************************************************************************************************************************************************************************************************************************************/
+@font-face {
+ font-family: "md-iconfont";
+ src: url(./static/iconfont.345f94c8.eot);
+ /* IE9 */
+ src: url(./static/iconfont.345f94c8.eot#iefix) format('embedded-opentype'),
+ /* IE6-IE8 */
+ /* url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAArkAAsAAAAAFGQAAAqUAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCFTgqYEJMCATYCJANMCygABCAFhG0HgUwb5hCjooZyUthkf4mpyEh3pV0O3eNzjDeMPcxWAACWBR8hkIIUVSIBAABgBAAACrx/wAkAfPHw39iv+2bmqzZUIt1PJ5FJeCMRibbSgsVNdRP+A23z391RKZiNY99ZzVmNklbCKpCtz0WxCnCVhUtkySLj37772YjcCVNhPk1OHZFC37UprJD/0ozsDfr3lrQ9Ja2fjpzpmcEJypq3QpVe3mEqOf/v+doc8Dx9AQTUAMH8r7l6h4jEycc0pD1SorTNT/f4+MQxO0wsRBKPkEy8VKiUQkiNRAgFe/ZbMVsJqPuMwq6/O48n0DSrO+To+fNnsFBwIlDuxls5WHgSlBjXUJdXFduW9T9hiXp6QK0GftDXx6ftOkkl4yc6PnvSg9sX5F9YZK7lf7DLU+CyExnbQCFelKr/MLbwbSKbKubEL8C8+KkUXjBVS7qLlkVFb9ncJpntxd2Xna/ekiQvSGwMutYjdpgXxBuyGejDtFUlNc1R+S9PV0tPERo6BpxAVHGyfbR8yxuCF0QLoQ9eUCDzArVfFA0EogJBSEd1B1QDFQ2oCSoLUAWUClAdlA5QF5QeUAvUMoTQ49UNKkRJAAUoG6AGqLsIocNbZwgD8P5WaYiTI2ObVWDfIP8FUH4B6GfCk1BkoQkNRVUCH5pC4eygwLuuu+XmIXB2jvFmcAXLmYJqni3c1sPfw8QoEHgwJsKwODyKoOr8CI/D4QnXuLpRnSqZzvUuVSLdXrMmWVlh7pdqFWyeZ6zbaj5Ea9VLbFFqJyuBbiHz/aXdwxv1o+qp6jZLs1AoqRHINuoHKJHgGlMq1FfO6n7nwbByXhAmPX0mB8QGO11d2a6eq73I/Or36dQNtU+OwzR+ZOhIvG9PavecX/p9136p84XxwOvWiBPqlOFByvvvoYHx+0JjX16+64EsGBw0NqsGsL2dB1a3LWieWdtgu+WlDNp1MF9ltnZPtbPEY8rCiCkoSnZWNZgOJAAl+ocR4Jr4TUSwy+pyq13sImw2Fj1QBDqoHIWVps9Oe6/70Jfl40V7rnnTFmeGL+2vXqcfP4VVab9hukZcxUCnDA32Jtjd74Pq5fqv/DUTv8a31K6dFFOXnYveQGKctVFs8p4EALG+V11C2k2eplEv6t7hrB6No5sL92F7AoDl8P79bJMbOAhN9S6f7YaoS6zTe9h2X22CMIMRuZ79KYSPUz0yAEJ8rmdkLSCsDbKUZm/XaCgZ/3VkwnSMp/9a/65inE4Uu2wpyvFCFYvarGxSdRFKJeNT4ujk1MPfe6Bfa1ePW1WWCVy3bmr1ko7JRynl544qLhwru3hEfhUBCxEIWwnsFpJobe+0dMS615o7jFByxzl6MRW7yD3AFsV0zZqSm1WJkK0FPjJifKsACpFsbVi3qVmD1bvqe9PTYcIIhActzTk/QMnRVdY0Pb7j2XG36f9tN8ut1oJNWexSlW9qSnbtoj2Ard40hheK/stt/Ut2NZuOWH0LFR+pyhrW/Vxd1qxBZumxWhaUbCWixxf57PaZp/zogTpeVQvYYzYAIWZjZfY6MnRB4WtX8Aed+pB7/b920mRPncmHsN1D1a0tBKlHMLW3enfGi7YkG8vfl/elLiUsZCidC5YNWzGlcQO4+sZRlCD0gOaxhQuu5niOdslx9TOub171Par2oocFG4Lp6Efmzzdh8x4Fmt4mtuL9IqxYM+Ww9DDlA5vzL9RB+0Cnf5QfkjxvFh0Ku4SFzC9xSN7TGR9dDnc77NLX2BcsxR5+++YIORTi+PXrvnhD6AZxIVtIpBJbJBafL5XKCMLFsbeeYvQwsW3yr18PRB2SDrRQvBH+Gz0sYA7hLhRtkTDn2PMl/Hr3WF2tQ427l4pUI6p77tAqMvhyjeI2X55BNI96ULb6taXwatu97E+KgDtTZr3ZmPRlSMDqgBUpYRjf7nxyxUYLPcLf8/goevBIapk4t6AXcyBfkRW7zEmZM4DBml3Hd+uXLkxnC0og1FvPgqhH9w7Gx2ZVG8NnzHROmMuTfZTxxiU6r9tenVmYoC7PjMYMbn3ciwIq5X7d0luk6eUBmmkpD2OVcT2khWWhUf48X6daKAACJ1QMnKGijbLmjgGJxOJh0etlsihEQZaLWeHhcZ6Qpy0BYgwnlkfHRS83RuUx2vVrddavPzeL2UjMzhXIDzlv4wpngWYETXAQTxzbwZMJtotbI/6nGtXvUt3DfgUhXHdJfxXbgTlYk5iXtCboggWuk4QGQUuap1DGQ/jL3SjM/aGRVn4x+57YwSaYl5hUwYGyXTNRJMgLqHcRVSEtRXJrUenECVrthIm6Jp2hybBzZ2Aqn3sjR1ahzc4WBlZBr5CqspB5g+tCFuVky4pKrUXy50ylRVZ5UbYD6mIPbNY0aXJyIC5QevaqkXue2+Zznuqd5U7qWmd1OOQ8+RUaLa7V4JoKxtQYP37AP8Rq6O/2GaPk0/XjPIKEsI4FkYN50bGZeSPH5cUkxF6MrBzA8OErS+uGfeN0hu/al9DB82E3DBQkDkyExEAkSDxZtF88KSIowojtR4cW2h9YHkRrg4URLh63c1sgZtDws9MLKG2UcSnTz+OlSxDDszwVkDJP0QvX6GjwSWYVeVOG9O6N6FjZWYBGzmKp8rw8KlFR4XTdw8Ko2tvAmLrB6NJ5rIHXVsx509enr2J52LGDiBwKRLrSeRWD721sVqUYVNuXzAvODPp3at2cYY3DJeb8udMPDz4sqDhlkW94SGlunIZ/WOLLCpszsK7GPypJL5XLpfokwCEtvfpI0RGZ7G7RXZJkVY8dOzjgPMvBkh/W9cPNQuGEic+XLYO4jMPr1ik7mxf//sz0Vl+z2QNLwPGr2MaIq/iQZ3iiyFLysoJUx7hBvXVEhWRhQai0ksJtOOvSxyixBtNubwhcuzfC9qpSrsxhzHqYBeeFYRT5EADZ7n9sNLGWuoapWKMrCDaWYcjB6BPgRuweJZFFgSKxcBGMACAn+o0NB8ueN2FS1vKAnbLu5AIskPURO4ahfGPhPAwn/wJKQY+T/5dtjuLHy0DTIUFI9i7LQeme1K11/JRvDPZ/nIy7ezlLKI38Sxry5QADiqsRsC+BVIhB/sre0mOiiPIUaT1TnSEkGd8MBOVpgfzfKyqZI+rKVDg7oSkGsR/RDd2vn56kFu/G6IkDkpoZkNUto8VyG1S07ICqul3QtCV355aRQcaiNLBpAgOhbxtIuv7hWWXZiRdYOkDF1DusCscZNJ3EzT5bVl+uHggkgxb7q/AKs5HJvDLLf4E9RkkH6Wm1P6DiMYuubr8FL5CBytignOyW2QhDmMQzWwdiRNETHkBx7ZDf75rG3DasFabByiECJDYCa0Kja/SeFJSZ6dkq8PlfgHUUSRTT7Cv6H0AKP3chUriIFOgLmVM125aqg51YW0MOCkNo2QQli845KkAUuUgYoF7qACisps+R3dvpceiuNS1Z10+n5U9afC3yrUdT5ChRiWrUoh6Nv2UXakcnutGL/sHh0THarSOfwxzy5D2yhYlCDTPPMno12WPU894rPhJMk8/HskLSQFX0hScxi8EgpWmfvDlm5UFAe56y3EcYl2MawxWWGrMqURY3m3qsoNjS+AhVRfGDAQAAAA==') format('woff2'), */
+ url(./static/iconfont.deef216b.woff) format('woff'),
+ url(./static/iconfont.42606faf.ttf) format('truetype'),
+ /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
+ url(./static/iconfont.504b881c.svg#iconfont) format('svg');
+ /* iOS 4.1- */
+}
+
+.md-iconfont {
+ font-family: "md-iconfont" !important;
+ font-size: 16px;
+ font-style: normal;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+.icon-uniE900:before {
+ content: "\e900";
+ font-size: 14px;
+ margin-left: 5px;
+}
+
+.icon-shrink:before {
+ content: "\e728";
+}
+
+.icon-enlarge:before {
+ content: "\e623";
+}
+
+.icon-code:before {
+ content: "\e602";
+}
+
+.icon-italic:before {
+ content: "\e718";
+}
+
+.icon-bold:before {
+ content: "\e644";
+}
+
+.icon-picture:before {
+ content: "\e606";
+}
+
+.icon-minus:before {
+ content: "\e62c";
+}
+
+.icon-order-list:before {
+ content: "\e655";
+}
+
+.icon-link:before {
+ content: "\e7d4";
+}
+
+.icon-formula:before {
+ content: "\e633";
+}
+
+.icon-unorder-list:before {
+ content: "\e668";
+}
+
+.icon-edit:before {
+ content: "\e603";
+}
+
+.icon-table:before {
+ content: "\e7db";
+}
+
+.icon-sum:before {
+ content: "\e667";
+}
+
+.icon-eye:before {
+ content: "\e69f";
+}
+
+.icon-eye-slash:before {
+ content: "\e601";
+}
+
+.icon-eraser:before {
+ content: "\e8cd";
+}
+
+.icon-file-code:before {
+ content: "\e9ec";
+}
+/*!*************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[4].oneOf[1].use[2]!./node_modules/codemirror/theme/blackboard.css ***!
+ \*************************************************************************************************************************************************************************************************************************************************/
+/* Port of TextMate's Blackboard theme */
+
+.cm-s-blackboard.CodeMirror { background: #0C1021; color: #F8F8F8; }
+.cm-s-blackboard div.CodeMirror-selected { background: #253B76; }
+.cm-s-blackboard .CodeMirror-line::selection, .cm-s-blackboard .CodeMirror-line > span::selection, .cm-s-blackboard .CodeMirror-line > span > span::selection { background: rgba(37, 59, 118, .99); }
+.cm-s-blackboard .CodeMirror-line::-moz-selection, .cm-s-blackboard .CodeMirror-line > span::-moz-selection, .cm-s-blackboard .CodeMirror-line > span > span::-moz-selection { background: rgba(37, 59, 118, .99); }
+.cm-s-blackboard .CodeMirror-gutters { background: #0C1021; border-right: 0; }
+.cm-s-blackboard .CodeMirror-guttermarker { color: #FBDE2D; }
+.cm-s-blackboard .CodeMirror-guttermarker-subtle { color: #888; }
+.cm-s-blackboard .CodeMirror-linenumber { color: #888; }
+.cm-s-blackboard .CodeMirror-cursor { border-left: 1px solid #A7A7A7; }
+
+.cm-s-blackboard .cm-keyword { color: #FBDE2D; }
+.cm-s-blackboard .cm-atom { color: #D8FA3C; }
+.cm-s-blackboard .cm-number { color: #D8FA3C; }
+.cm-s-blackboard .cm-def { color: #8DA6CE; }
+.cm-s-blackboard .cm-variable { color: #FF6400; }
+.cm-s-blackboard .cm-operator { color: #FBDE2D; }
+.cm-s-blackboard .cm-comment { color: #AEAEAE; }
+.cm-s-blackboard .cm-string { color: #61CE3C; }
+.cm-s-blackboard .cm-string-2 { color: #61CE3C; }
+.cm-s-blackboard .cm-meta { color: #D8FA3C; }
+.cm-s-blackboard .cm-builtin { color: #8DA6CE; }
+.cm-s-blackboard .cm-tag { color: #8DA6CE; }
+.cm-s-blackboard .cm-attribute { color: #8DA6CE; }
+.cm-s-blackboard .cm-header { color: #FF6400; }
+.cm-s-blackboard .cm-hr { color: #AEAEAE; }
+.cm-s-blackboard .cm-link { color: #8DA6CE; }
+.cm-s-blackboard .cm-error { background: #9D1E15; color: #F8F8F8; }
+
+.cm-s-blackboard .CodeMirror-activeline-background { background: #3C3636; }
+.cm-s-blackboard .CodeMirror-matchingbracket { outline:1px solid grey;color:white !important; }
+
+/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/components/markdown-editor/upload-image/index.less ***!
+ \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+.upload-button {
+ width: 106px;
+ height: 32px;
+ line-height: 32px;
+ font-size: 12px;
+ display: block;
+ position: relative;
+ color: #0152d9;
+}
+.upload-button input {
+ opacity: 0;
+ width: 160px;
+ height: 32px;
+ position: absolute;
+ top: 0;
+ left: 0;
+ z-index: -1;
+}
+
+/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** 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]!./src/components/image-preview/index.less ***!
+ \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+.image-preview-container {
display: flex;
- height: 38px;
flex-flow: column nowrap;
+ position: fixed;
+ align-items: center;
justify-content: center;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ z-index: 99999;
+ background: rgba(0, 0, 0, 0.8);
}
-.markdown-toolbar-container a,
-.markdown-toolbar-container span {
- display: block;
+.image-preview-container .image-preview {
+ transition: transform 0.4s linear;
+ max-width: 86%;
}
-.markdown-toolbar-container a {
- width: 28px;
- color: #666;
- cursor: pointer;
- text-align: center;
- font-size: 18px;
+.image-preview-container .button-group {
+ display: flex;
+ flex-flow: row nowrap;
+ align-items: center;
+ justify-content: flex-end;
+ position: absolute;
+ z-index: 101;
+ right: 10px;
+ top: 10px;
}
-.markdown-toolbar-container .btn-null {
- width: auto;
+.image-preview-container .button-group a,
+.image-preview-container .button-group button {
+ color: rgba(0, 0, 0, 0.65);
+ margin-right: 10px;
display: flex;
flex-flow: row nowrap;
align-items: center;
}
-.markdown-toolbar-container .insert-blank {
- color: #E99237;
- font-size: 18px;
+.preview-wrp-group {
+ overflow: auto;
+ width: 100%;
+ text-align: center;
}
-.markdown-toolbar-container span.v-line {
- margin: 0 5px;
- height: 65%;
- border-right: 1px solid #ccc;
+
+/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/Export/index.less?modules ***!
+ \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+.flex_box_center___GW1u0 {
+ justify-content: center;
+ align-items: center;
+ -webkit-justify-content: center;
+ box-align: center;
}
-.mini .markdown-toolbar-container li {
- height: 28px;
+.flex_space_between___XhK9z {
+ justify-content: space-between;
+ -webkit-box-pack: justify;
}
-.editor-resize {
- display: block;
- width: 120px;
- height: 4px;
- left: 54%;
- margin-top: 2px;
- border-top: 1px solid #ccc;
- border-bottom: 1px solid #ccc;
- cursor: row-resize;
- white-space: nowrap;
- overflow: hidden;
- text-transform: capitalize;
- box-sizing: border-box;
- margin: 0 auto;
+.flex_box_vertical_center___NKIbp {
+ align-items: center;
+ box-align: center;
}
-.btn-full-screen {
- position: absolute;
- right: 5px;
+.flex_box_center_end___V3qhT {
+ justify-content: flex-end;
+ align-items: center;
+ -webkit-justify-content: flex-end;
+ -webkit-align-items: center;
+ -webkit-box-align: center;
+ -webkit-box-pack: end;
+ box-align: center;
+ box-pack: end;
}
-
-/*!****************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[4].oneOf[1].use[2]!./src/components/markdown-editor/css/iconfont.css ***!
- \****************************************************************************************************************************************************************************************************************************************************/
-@font-face {
- font-family: "md-iconfont";
- src: url(./static/iconfont.345f94c8.eot);
- /* IE9 */
- src: url(./static/iconfont.345f94c8.eot#iefix) format('embedded-opentype'),
- /* IE6-IE8 */
- /* url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAArkAAsAAAAAFGQAAAqUAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCFTgqYEJMCATYCJANMCygABCAFhG0HgUwb5hCjooZyUthkf4mpyEh3pV0O3eNzjDeMPcxWAACWBR8hkIIUVSIBAABgBAAACrx/wAkAfPHw39iv+2bmqzZUIt1PJ5FJeCMRibbSgsVNdRP+A23z391RKZiNY99ZzVmNklbCKpCtz0WxCnCVhUtkySLj37772YjcCVNhPk1OHZFC37UprJD/0ozsDfr3lrQ9Ja2fjpzpmcEJypq3QpVe3mEqOf/v+doc8Dx9AQTUAMH8r7l6h4jEycc0pD1SorTNT/f4+MQxO0wsRBKPkEy8VKiUQkiNRAgFe/ZbMVsJqPuMwq6/O48n0DSrO+To+fNnsFBwIlDuxls5WHgSlBjXUJdXFduW9T9hiXp6QK0GftDXx6ftOkkl4yc6PnvSg9sX5F9YZK7lf7DLU+CyExnbQCFelKr/MLbwbSKbKubEL8C8+KkUXjBVS7qLlkVFb9ncJpntxd2Xna/ekiQvSGwMutYjdpgXxBuyGejDtFUlNc1R+S9PV0tPERo6BpxAVHGyfbR8yxuCF0QLoQ9eUCDzArVfFA0EogJBSEd1B1QDFQ2oCSoLUAWUClAdlA5QF5QeUAvUMoTQ49UNKkRJAAUoG6AGqLsIocNbZwgD8P5WaYiTI2ObVWDfIP8FUH4B6GfCk1BkoQkNRVUCH5pC4eygwLuuu+XmIXB2jvFmcAXLmYJqni3c1sPfw8QoEHgwJsKwODyKoOr8CI/D4QnXuLpRnSqZzvUuVSLdXrMmWVlh7pdqFWyeZ6zbaj5Ea9VLbFFqJyuBbiHz/aXdwxv1o+qp6jZLs1AoqRHINuoHKJHgGlMq1FfO6n7nwbByXhAmPX0mB8QGO11d2a6eq73I/Or36dQNtU+OwzR+ZOhIvG9PavecX/p9136p84XxwOvWiBPqlOFByvvvoYHx+0JjX16+64EsGBw0NqsGsL2dB1a3LWieWdtgu+WlDNp1MF9ltnZPtbPEY8rCiCkoSnZWNZgOJAAl+ocR4Jr4TUSwy+pyq13sImw2Fj1QBDqoHIWVps9Oe6/70Jfl40V7rnnTFmeGL+2vXqcfP4VVab9hukZcxUCnDA32Jtjd74Pq5fqv/DUTv8a31K6dFFOXnYveQGKctVFs8p4EALG+V11C2k2eplEv6t7hrB6No5sL92F7AoDl8P79bJMbOAhN9S6f7YaoS6zTe9h2X22CMIMRuZ79KYSPUz0yAEJ8rmdkLSCsDbKUZm/XaCgZ/3VkwnSMp/9a/65inE4Uu2wpyvFCFYvarGxSdRFKJeNT4ujk1MPfe6Bfa1ePW1WWCVy3bmr1ko7JRynl544qLhwru3hEfhUBCxEIWwnsFpJobe+0dMS615o7jFByxzl6MRW7yD3AFsV0zZqSm1WJkK0FPjJifKsACpFsbVi3qVmD1bvqe9PTYcIIhActzTk/QMnRVdY0Pb7j2XG36f9tN8ut1oJNWexSlW9qSnbtoj2Ard40hheK/stt/Ut2NZuOWH0LFR+pyhrW/Vxd1qxBZumxWhaUbCWixxf57PaZp/zogTpeVQvYYzYAIWZjZfY6MnRB4WtX8Aed+pB7/b920mRPncmHsN1D1a0tBKlHMLW3enfGi7YkG8vfl/elLiUsZCidC5YNWzGlcQO4+sZRlCD0gOaxhQuu5niOdslx9TOub171Par2oocFG4Lp6Efmzzdh8x4Fmt4mtuL9IqxYM+Ww9DDlA5vzL9RB+0Cnf5QfkjxvFh0Ku4SFzC9xSN7TGR9dDnc77NLX2BcsxR5+++YIORTi+PXrvnhD6AZxIVtIpBJbJBafL5XKCMLFsbeeYvQwsW3yr18PRB2SDrRQvBH+Gz0sYA7hLhRtkTDn2PMl/Hr3WF2tQ427l4pUI6p77tAqMvhyjeI2X55BNI96ULb6taXwatu97E+KgDtTZr3ZmPRlSMDqgBUpYRjf7nxyxUYLPcLf8/goevBIapk4t6AXcyBfkRW7zEmZM4DBml3Hd+uXLkxnC0og1FvPgqhH9w7Gx2ZVG8NnzHROmMuTfZTxxiU6r9tenVmYoC7PjMYMbn3ciwIq5X7d0luk6eUBmmkpD2OVcT2khWWhUf48X6daKAACJ1QMnKGijbLmjgGJxOJh0etlsihEQZaLWeHhcZ6Qpy0BYgwnlkfHRS83RuUx2vVrddavPzeL2UjMzhXIDzlv4wpngWYETXAQTxzbwZMJtotbI/6nGtXvUt3DfgUhXHdJfxXbgTlYk5iXtCboggWuk4QGQUuap1DGQ/jL3SjM/aGRVn4x+57YwSaYl5hUwYGyXTNRJMgLqHcRVSEtRXJrUenECVrthIm6Jp2hybBzZ2Aqn3sjR1ahzc4WBlZBr5CqspB5g+tCFuVky4pKrUXy50ylRVZ5UbYD6mIPbNY0aXJyIC5QevaqkXue2+Zznuqd5U7qWmd1OOQ8+RUaLa7V4JoKxtQYP37AP8Rq6O/2GaPk0/XjPIKEsI4FkYN50bGZeSPH5cUkxF6MrBzA8OErS+uGfeN0hu/al9DB82E3DBQkDkyExEAkSDxZtF88KSIowojtR4cW2h9YHkRrg4URLh63c1sgZtDws9MLKG2UcSnTz+OlSxDDszwVkDJP0QvX6GjwSWYVeVOG9O6N6FjZWYBGzmKp8rw8KlFR4XTdw8Ko2tvAmLrB6NJ5rIHXVsx509enr2J52LGDiBwKRLrSeRWD721sVqUYVNuXzAvODPp3at2cYY3DJeb8udMPDz4sqDhlkW94SGlunIZ/WOLLCpszsK7GPypJL5XLpfokwCEtvfpI0RGZ7G7RXZJkVY8dOzjgPMvBkh/W9cPNQuGEic+XLYO4jMPr1ik7mxf//sz0Vl+z2QNLwPGr2MaIq/iQZ3iiyFLysoJUx7hBvXVEhWRhQai0ksJtOOvSxyixBtNubwhcuzfC9qpSrsxhzHqYBeeFYRT5EADZ7n9sNLGWuoapWKMrCDaWYcjB6BPgRuweJZFFgSKxcBGMACAn+o0NB8ueN2FS1vKAnbLu5AIskPURO4ahfGPhPAwn/wJKQY+T/5dtjuLHy0DTIUFI9i7LQeme1K11/JRvDPZ/nIy7ezlLKI38Sxry5QADiqsRsC+BVIhB/sre0mOiiPIUaT1TnSEkGd8MBOVpgfzfKyqZI+rKVDg7oSkGsR/RDd2vn56kFu/G6IkDkpoZkNUto8VyG1S07ICqul3QtCV355aRQcaiNLBpAgOhbxtIuv7hWWXZiRdYOkDF1DusCscZNJ3EzT5bVl+uHggkgxb7q/AKs5HJvDLLf4E9RkkH6Wm1P6DiMYuubr8FL5CBytignOyW2QhDmMQzWwdiRNETHkBx7ZDf75rG3DasFabByiECJDYCa0Kja/SeFJSZ6dkq8PlfgHUUSRTT7Cv6H0AKP3chUriIFOgLmVM125aqg51YW0MOCkNo2QQli845KkAUuUgYoF7qACisps+R3dvpceiuNS1Z10+n5U9afC3yrUdT5ChRiWrUoh6Nv2UXakcnutGL/sHh0THarSOfwxzy5D2yhYlCDTPPMno12WPU894rPhJMk8/HskLSQFX0hScxi8EgpWmfvDlm5UFAe56y3EcYl2MawxWWGrMqURY3m3qsoNjS+AhVRfGDAQAAAA==') format('woff2'), */
- url(./static/iconfont.deef216b.woff) format('woff'),
- url(./static/iconfont.42606faf.ttf) format('truetype'),
- /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
- url(./static/iconfont.504b881c.svg#iconfont) format('svg');
- /* iOS 4.1- */
+.flex_box_column___b4G29 {
+ flex-direction: column;
+ box-orient: block-axis;
}
-
-.md-iconfont {
- font-family: "md-iconfont" !important;
- font-size: 16px;
- font-style: normal;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
+.bg___exMJB {
+ background: white;
+ min-height: 1000px;
}
-
-.icon-uniE900:before {
- content: "\e900";
- font-size: 14px;
- margin-left: 5px;
+.bg___exMJB > div {
+ position: relative;
}
-
-.icon-shrink:before {
- content: "\e728";
+.bg___exMJB .paginationWrapper___ROsRI {
+ padding-right: 30px;
}
-
-.icon-enlarge:before {
- content: "\e623";
+.bg___exMJB .paginationWrapper___ROsRI li[class~='ant-pagination-total-text'] {
+ float: none;
}
-
-.icon-code:before {
- content: "\e602";
+.bg___exMJB .paginationWrapper___ROsRI li[class~='ant-pagination-total-text'] .totalText___PGE6D {
+ font-size: 12px;
+ color: #464f66;
}
-
-.icon-italic:before {
- content: "\e718";
+.bg___exMJB .paginationWrapper___ROsRI li[class~='ant-pagination-total-text'] .totalText___PGE6D .num___jLrBF {
+ color: #0152d9;
}
-
-.icon-bold:before {
- content: "\e644";
+.title___yiXeD {
+ display: box;
+ display: flex;
+ align-items: center;
+ box-align: center;
}
-
-.icon-picture:before {
- content: "\e606";
+.title___yiXeD strong {
+ color: #333;
}
-
-.icon-minus:before {
- content: "\e62c";
+.questionIcons___v75Tz [class~='ant-anchor-link'] {
+ display: inline;
}
-
-.icon-order-list:before {
- content: "\e655";
+.questionIcons___v75Tz [class~='ant-anchor-wrapper'] {
+ margin: 0;
+ overflow: hidden;
}
-
-.icon-link:before {
- content: "\e7d4";
+.questionIcons___v75Tz span,
+.questionIcons___v75Tz a {
+ width: 40px;
+ height: 40px;
+ line-height: 40px;
+ text-align: center;
+ color: #fff;
+ background: #fb3226;
+ display: inline-block;
+ margin-right: 8px;
+ margin-bottom: 20px;
+ border-radius: 40px;
+ font-weight: bold;
+ cursor: pointer;
}
-
-.icon-formula:before {
- content: "\e633";
+.questionIcons___v75Tz span:hover,
+.questionIcons___v75Tz a:hover {
+ background-color: #ec7d72;
}
-
-.icon-unorder-list:before {
- content: "\e668";
+.questionIcons___v75Tz span:nth-child(5n),
+.questionIcons___v75Tz a:nth-child(5n) {
+ margin-right: 25px;
}
-
-.icon-edit:before {
- content: "\e603";
+.questionIcons___v75Tz .green___HRGef {
+ background-color: #2abd8c;
+}
+.questionIcons___v75Tz .green___HRGef:hover {
+ background-color: #88d19e;
+}
+.questionIcons___v75Tz .orange___tdW4E {
+ background-color: #fd8001;
+}
+.questionIcons___v75Tz .orange___tdW4E:hover {
+ background-color: #fb9f42;
+}
+.greenTip___f2SpQ {
+ color: #2abd8c;
+ margin-left: 15px;
+}
+.greenTip___f2SpQ:before {
+ content: '';
+ width: 12px;
+ height: 12px;
+ background: #2abd8c;
+ border-radius: 12px;
+ display: inline-block;
+ margin-right: 4px;
+ position: relative;
+ top: 1px;
+}
+.redTip___jc8UE {
+ color: #fb3226;
+ margin-left: 15px;
+}
+.redTip___jc8UE:before {
+ content: '';
+ width: 12px;
+ height: 12px;
+ background: #fb3226;
+ border-radius: 12px;
+ display: inline-block;
+ margin-right: 4px;
+ position: relative;
+ top: 1px;
+}
+.orangeTip___VMO_s {
+ color: #fd8001;
+ margin-left: 15px;
}
-
-.icon-table:before {
- content: "\e7db";
+.orangeTip___VMO_s:before {
+ content: '';
+ width: 12px;
+ height: 12px;
+ background: #fd8001;
+ border-radius: 12px;
+ display: inline-block;
+ margin-right: 4px;
+ position: relative;
+ top: 1px;
}
-
-.icon-sum:before {
- content: "\e667";
+.flexRow___Jshv2 {
+ display: flex;
}
-
-.icon-eye:before {
- content: "\e69f";
+.simpleWrap___ul6oi {
+ background: #ffffff;
+ border-radius: 2px;
+ border: 1px solid #f9f9f9;
+ font-weight: 300;
+ padding: 12px 12px;
}
-
-.icon-eye-slash:before {
- content: "\e601";
+.divider___Of_8z {
+ width: auto;
+ min-width: auto;
}
-
-.icon-eraser:before {
- content: "\e8cd";
+.modal___oAD7F [class~='ant-btn'] {
+ display: none;
}
-
-.icon-file-code:before {
- content: "\e9ec";
+.programTitle___ybswa [class~='markdown-body'] {
+ overflow: visible;
+ overflow: initial;
}
-/*!*************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[4].oneOf[1].use[2]!./node_modules/codemirror/theme/blackboard.css ***!
- \*************************************************************************************************************************************************************************************************************************************************/
-/* Port of TextMate's Blackboard theme */
-
-.cm-s-blackboard.CodeMirror { background: #0C1021; color: #F8F8F8; }
-.cm-s-blackboard div.CodeMirror-selected { background: #253B76; }
-.cm-s-blackboard .CodeMirror-line::selection, .cm-s-blackboard .CodeMirror-line > span::selection, .cm-s-blackboard .CodeMirror-line > span > span::selection { background: rgba(37, 59, 118, .99); }
-.cm-s-blackboard .CodeMirror-line::-moz-selection, .cm-s-blackboard .CodeMirror-line > span::-moz-selection, .cm-s-blackboard .CodeMirror-line > span > span::-moz-selection { background: rgba(37, 59, 118, .99); }
-.cm-s-blackboard .CodeMirror-gutters { background: #0C1021; border-right: 0; }
-.cm-s-blackboard .CodeMirror-guttermarker { color: #FBDE2D; }
-.cm-s-blackboard .CodeMirror-guttermarker-subtle { color: #888; }
-.cm-s-blackboard .CodeMirror-linenumber { color: #888; }
-.cm-s-blackboard .CodeMirror-cursor { border-left: 1px solid #A7A7A7; }
-
-.cm-s-blackboard .cm-keyword { color: #FBDE2D; }
-.cm-s-blackboard .cm-atom { color: #D8FA3C; }
-.cm-s-blackboard .cm-number { color: #D8FA3C; }
-.cm-s-blackboard .cm-def { color: #8DA6CE; }
-.cm-s-blackboard .cm-variable { color: #FF6400; }
-.cm-s-blackboard .cm-operator { color: #FBDE2D; }
-.cm-s-blackboard .cm-comment { color: #AEAEAE; }
-.cm-s-blackboard .cm-string { color: #61CE3C; }
-.cm-s-blackboard .cm-string-2 { color: #61CE3C; }
-.cm-s-blackboard .cm-meta { color: #D8FA3C; }
-.cm-s-blackboard .cm-builtin { color: #8DA6CE; }
-.cm-s-blackboard .cm-tag { color: #8DA6CE; }
-.cm-s-blackboard .cm-attribute { color: #8DA6CE; }
-.cm-s-blackboard .cm-header { color: #FF6400; }
-.cm-s-blackboard .cm-hr { color: #AEAEAE; }
-.cm-s-blackboard .cm-link { color: #8DA6CE; }
-.cm-s-blackboard .cm-error { background: #9D1E15; color: #F8F8F8; }
-
-.cm-s-blackboard .CodeMirror-activeline-background { background: #3C3636; }
-.cm-s-blackboard .CodeMirror-matchingbracket { outline:1px solid grey;color:white !important; }
-
-/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/components/markdown-editor/upload-image/index.less ***!
- \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
-.upload-button {
- width: 106px;
- height: 32px;
- line-height: 32px;
- font-size: 12px;
- display: block;
- position: relative;
- color: #0152d9;
+.simpleBg___yLrQy {
+ background: #fafafa;
+ padding: 10px 17px;
+ margin-top: 5px;
}
-.upload-button input {
- opacity: 0;
- width: 160px;
- height: 32px;
- position: absolute;
- top: 0;
- left: 0;
- z-index: -1;
+.exportBtn___x5fcE {
+ width: 108px;
+ height: 38px;
+ border-radius: 4px;
}
-
-/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** 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]!./src/components/image-preview/index.less ***!
- \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
-.image-preview-container {
+.export_type_modal___hmW4i {
display: flex;
- flex-flow: column nowrap;
- position: fixed;
- align-items: center;
- justify-content: center;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 99999;
- background: rgba(0, 0, 0, 0.8);
-}
-.image-preview-container .image-preview {
- transition: transform 0.4s linear;
- max-width: 86%;
+ flex-wrap: wrap;
+ justify-content: right;
+ margin-top: 10px;
}
-.image-preview-container .button-group {
+.export_type_modal___hmW4i .export_type_modal_con___R2S3f {
+ width: 100%;
display: flex;
- flex-flow: row nowrap;
- align-items: center;
- justify-content: flex-end;
- position: absolute;
- z-index: 101;
- right: 10px;
- top: 10px;
+ justify-content: center;
}
-.image-preview-container .button-group a,
-.image-preview-container .button-group button {
- color: rgba(0, 0, 0, 0.65);
- margin-right: 10px;
+.export_type_modal___hmW4i .export_type_modal_con___R2S3f .type_item___NsmrH {
+ width: 120px;
+ height: 120px;
+ margin: 0 20px;
display: flex;
- flex-flow: row nowrap;
align-items: center;
+ justify-content: center;
+ flex-wrap: wrap;
}
-.preview-wrp-group {
- overflow: auto;
- width: 100%;
- text-align: center;
+.export_type_modal___hmW4i .export_type_modal_con___R2S3f .img_warp___LUfHa {
+ padding: 15px;
+ border-radius: 8px;
+ border: 1px solid #d9d9d9;
+ cursor: pointer;
+ margin-bottom: 3px;
+ box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
+}
+.export_type_modal___hmW4i .export_type_modal_con___R2S3f .img_warp___LUfHa:hover {
+ background-color: #fafafa;
+}
+.export_type_modal___hmW4i .export_type_modal_con___R2S3f .img_warp_active____uL7y {
+ background-color: #fafafa;
+ border-color: #5784de;
}
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
@@ -2202,3 +2136,104 @@ span.CodeMirror-selectedtext {
margin: 7px 0;
}
+/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/Export/components/ExportSetting/index.less?modules ***!
+ \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+.modalWrapper___rWDvO div[class~='ant-modal-body'] {
+ padding: 16px 46px;
+}
+.exportSettingWrapper___pCClH {
+ font-size: 14px;
+ font-weight: 400;
+ color: #000000;
+}
+.exportSettingWrapper___pCClH label[class~='ant-checkbox-wrapper'] {
+ font-size: 14px;
+ font-weight: 400;
+ color: #000000;
+}
+.exportSettingWrapper___pCClH .imgPreviewPart___PCv0Y img {
+ height: 338px;
+}
+.exportSettingWrapper___pCClH .tips___EVeBl {
+ font-size: 12px;
+ font-weight: 400;
+ color: #5F6367;
+ margin-left: 10px;
+}
+.exportSettingWrapper___pCClH .pottedLine___AaY68 img {
+ width: 100px;
+}
+.exportSettingWrapper___pCClH .pottedLine___AaY68 .text___ho3u_ {
+ font-size: 14px;
+ font-weight: 400;
+ color: #666666;
+ margin: 0 10px;
+}
+
+/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/Export/components/Head/index.less?modules ***!
+ \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+.wrap___SSpd0 {
+ position: relative;
+ font-size: 14px;
+}
+.wrap___SSpd0 [class~='ant-table-footer'] {
+ background-color: #fff;
+ padding: 0px;
+}
+.img___nbd2O {
+ position: absolute;
+ height: 100px;
+ width: 140px;
+ top: 2px;
+ left: 2px;
+}
+.table___fcP71 a {
+ color: rgba(0, 0, 0, 0.85);
+}
+.totalScore___YxSMe {
+ margin-right: 142px;
+ padding: 12px 8px;
+ border-right: 1px solid #f0f0f0;
+ border-left: 1px solid #f0f0f0;
+}
+.people___bf9pK {
+ padding: 12px 8px;
+ border-right: 1px solid #f0f0f0;
+}
+.glassSeal___dYhKO {
+ position: absolute;
+ font-size: 16px;
+ left: -480px;
+ top: 520px;
+ width: 1000px;
+ transform: rotate(-90deg);
+ border-bottom: 2px dashed #fb3226;
+ display: flex;
+}
+.glassSeal___dYhKO > span {
+ padding-right: 20px;
+ padding-left: 10px;
+}
+.glassSeal___dYhKO > span:nth-child(1) {
+ margin-left: auto;
+}
+.glassSeal___dYhKO > span:last-child {
+ margin-right: auto;
+}
+.paperHeader___gYUbq {
+ position: relative;
+ margin-bottom: 30px;
+ font-size: 18px;
+ font-weight: 500;
+}
+.paperHeader___gYUbq .exportBtn___nyRYQ {
+ position: absolute;
+ right: 0;
+ top: 100%;
+ transform: translateY(-50%);
+ height: 34px;
+ width: 106px;
+}
+
diff --git a/11470.async.js b/11470.async.js
index ccbabfa514..0c889679b0 100644
--- a/11470.async.js
+++ b/11470.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[11470,74045,17311,75574,33358,68657,92936,35034,41522,9600,61710],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[11470,74045,17311,75574,33358,68657,92936,35034,41522,9600,61710,54909],{
/***/ 82826:
/*!**********************************************************************************!*\
diff --git a/12034.async.js b/12034.async.js
index 765078c387..6a2b0dd741 100644
--- a/12034.async.js
+++ b/12034.async.js
@@ -13,7 +13,9 @@
/* harmony export */ "IM": function() { return /* binding */ get_ecs_attachment; },
/* harmony export */ "Iy": function() { return /* binding */ ExportCourseWorkListScores; },
/* harmony export */ "Ne": function() { return /* binding */ getec_training_objectives; },
+/* harmony export */ "ON": function() { return /* binding */ exportPaperlibraryPaper; },
/* harmony export */ "VY": function() { return /* binding */ getrank_list; },
+/* harmony export */ "YX": function() { return /* binding */ exportClassroomsPaper; },
/* harmony export */ "Zn": function() { return /* binding */ ExportCourseInfo; },
/* harmony export */ "_g": function() { return /* binding */ exportMoocrecord; },
/* harmony export */ "_k": function() { return /* binding */ getDownFile; },
@@ -794,6 +796,50 @@ var getquestion_rank_list = /*#__PURE__*/function () {
};
}();
+// 试卷库--试卷详情--试卷导出
+var exportPaperlibraryPaper = /*#__PURE__*/function () {
+ var _ref27 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee27(params) {
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee27$(_context27) {
+ while (1) switch (_context27.prev = _context27.next) {
+ case 0:
+ _context27.next = 2;
+ return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
+ url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"].API_SERVER */ .Z.API_SERVER + "/api/examination_banks/".concat(params.id, ".json"),
+ query: params
+ }));
+ case 2:
+ case "end":
+ return _context27.stop();
+ }
+ }, _callee27);
+ }));
+ return function exportPaperlibraryPaper(_x28) {
+ return _ref27.apply(this, arguments);
+ };
+}();
+
+// 教学课堂--试卷详情--试卷导出
+var exportClassroomsPaper = /*#__PURE__*/function () {
+ var _ref28 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee28(params) {
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee28$(_context28) {
+ while (1) switch (_context28.prev = _context28.next) {
+ case 0:
+ _context28.next = 2;
+ return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
+ url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"].API_SERVER */ .Z.API_SERVER + "/api/exercises/".concat(params.categoryId, ".json"),
+ query: params
+ }));
+ case 2:
+ case "end":
+ return _context28.stop();
+ }
+ }, _callee28);
+ }));
+ return function exportClassroomsPaper(_x29) {
+ return _ref28.apply(this, arguments);
+ };
+}();
+
/***/ })
}]);
\ No newline at end of file
diff --git a/12768.async.js b/12768.async.js
index f3d935ce10..c78b3781fa 100644
--- a/12768.async.js
+++ b/12768.async.js
@@ -155,7 +155,6 @@ var jsx_runtime = __webpack_require__(85893);
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;
// let size;
- console.log("disabledDownload---", disabledDownload);
var unit = 1024 * 1024;
var maxSize = 10 * unit;
var closeRef = (0,react.useRef)();
diff --git a/36095.async.js b/13093.async.js
similarity index 90%
rename from 36095.async.js
rename to 13093.async.js
index 58bcfce345..405a439d01 100644
--- a/36095.async.js
+++ b/13093.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[36095,10740,74192,34168,74443,23883,63708,43416,45635],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[13093,10740,74192,34168,74443,23883,63708,43416,45635],{
/***/ 99611:
/*!****************************************************************************!*\
@@ -1051,168 +1051,6 @@ const initMoveMotion = (token, motionName) => {
/***/ }),
-/***/ 67771:
-/*!****************************************************!*\
- !*** ./node_modules/antd/es/style/motion/slide.js ***!
- \****************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
-/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
-/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
-/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
-/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
-/* harmony export */ });
-/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
-/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
-/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
-
-
-const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- }
-});
-const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- }
-});
-const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- }
-});
-const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- }
-});
-const slideMotion = {
- 'slide-up': {
- inKeyframes: slideUpIn,
- outKeyframes: slideUpOut
- },
- 'slide-down': {
- inKeyframes: slideDownIn,
- outKeyframes: slideDownOut
- },
- 'slide-left': {
- inKeyframes: slideLeftIn,
- outKeyframes: slideLeftOut
- },
- 'slide-right': {
- inKeyframes: slideRightIn,
- outKeyframes: slideRightOut
- }
-};
-const initSlideMotion = (token, motionName) => {
- const {
- antCls
- } = token;
- const motionCls = `${antCls}-${motionName}`;
- const {
- inKeyframes,
- outKeyframes
- } = slideMotion[motionName];
- return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
- [`
- ${motionCls}-enter,
- ${motionCls}-appear
- `]: {
- transform: 'scale(0)',
- transformOrigin: '0% 0%',
- opacity: 0,
- animationTimingFunction: token.motionEaseOutQuint,
- [`&-prepare`]: {
- transform: 'scale(1)'
- }
- },
- [`${motionCls}-leave`]: {
- animationTimingFunction: token.motionEaseInQuint
- }
- }];
-};
-
-/***/ }),
-
/***/ 64217:
/*!**********************************************!*\
!*** ./node_modules/rc-util/es/pickAttrs.js ***!
diff --git a/14536.async.js b/14536.async.js
index 54b95df14a..077cc623f8 100644
--- a/14536.async.js
+++ b/14536.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[14536,74045,86068,39000,89194,75574,33358,68657,92936,35034,41522,9600,61710],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[14536,74045,86068,39000,89194,75574,33358,68657,92936,35034,41522,9600,61710,54909],{
/***/ 99611:
/*!****************************************************************************!*\
diff --git a/79266.async.js b/15017.async.js
similarity index 94%
rename from 79266.async.js
rename to 15017.async.js
index b674b3c863..70f4a1f63f 100644
--- a/79266.async.js
+++ b/15017.async.js
@@ -1,4 +1,4 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[79266],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[15017],{
/***/ 77171:
/*!**********************************************************************************!*\
@@ -1523,169 +1523,6 @@ const initMoveMotion = (token, motionName) => {
/***/ }),
-/***/ 67771:
-/*!****************************************************!*\
- !*** ./node_modules/antd/es/style/motion/slide.js ***!
- \****************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
-/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
-/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
-/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
-/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
-/* harmony export */ });
-/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
-/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
-/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
-
-
-const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- }
-});
-const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- }
-});
-const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- }
-});
-const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- }
-});
-const slideMotion = {
- 'slide-up': {
- inKeyframes: slideUpIn,
- outKeyframes: slideUpOut
- },
- 'slide-down': {
- inKeyframes: slideDownIn,
- outKeyframes: slideDownOut
- },
- 'slide-left': {
- inKeyframes: slideLeftIn,
- outKeyframes: slideLeftOut
- },
- 'slide-right': {
- inKeyframes: slideRightIn,
- outKeyframes: slideRightOut
- }
-};
-const initSlideMotion = (token, motionName) => {
- const {
- antCls
- } = token;
- const motionCls = `${antCls}-${motionName}`;
- const {
- inKeyframes,
- outKeyframes
- } = slideMotion[motionName];
- return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
- [`
- ${motionCls}-enter,
- ${motionCls}-appear
- `]: {
- transform: 'scale(0)',
- transformOrigin: '0% 0%',
- opacity: 0,
- animationTimingFunction: token.motionEaseOutQuint,
- [`&-prepare`]: {
- transform: 'scale(1)'
- }
- },
- [`${motionCls}-leave`]: {
- animationTimingFunction: token.motionEaseInQuint
- }
- }];
-};
-
-/***/ }),
-
/***/ 20640:
/*!*************************************************!*\
!*** ./node_modules/copy-to-clipboard/index.js ***!
diff --git a/15804.async.js b/15804.async.js
index b87917da3a..bc5e4f7b36 100644
--- a/15804.async.js
+++ b/15804.async.js
@@ -1577,168 +1577,6 @@ const initMoveMotion = (token, motionName) => {
/***/ }),
-/***/ 67771:
-/*!****************************************************!*\
- !*** ./node_modules/antd/es/style/motion/slide.js ***!
- \****************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
-/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
-/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
-/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
-/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
-/* harmony export */ });
-/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
-/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
-/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
-
-
-const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- }
-});
-const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- }
-});
-const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- }
-});
-const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- }
-});
-const slideMotion = {
- 'slide-up': {
- inKeyframes: slideUpIn,
- outKeyframes: slideUpOut
- },
- 'slide-down': {
- inKeyframes: slideDownIn,
- outKeyframes: slideDownOut
- },
- 'slide-left': {
- inKeyframes: slideLeftIn,
- outKeyframes: slideLeftOut
- },
- 'slide-right': {
- inKeyframes: slideRightIn,
- outKeyframes: slideRightOut
- }
-};
-const initSlideMotion = (token, motionName) => {
- const {
- antCls
- } = token;
- const motionCls = `${antCls}-${motionName}`;
- const {
- inKeyframes,
- outKeyframes
- } = slideMotion[motionName];
- return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
- [`
- ${motionCls}-enter,
- ${motionCls}-appear
- `]: {
- transform: 'scale(0)',
- transformOrigin: '0% 0%',
- opacity: 0,
- animationTimingFunction: token.motionEaseOutQuint,
- [`&-prepare`]: {
- transform: 'scale(1)'
- }
- },
- [`${motionCls}-leave`]: {
- animationTimingFunction: token.motionEaseInQuint
- }
- }];
-};
-
-/***/ }),
-
/***/ 34243:
/*!**********************************************************!*\
!*** ./node_modules/rc-overflow/es/index.js + 4 modules ***!
diff --git a/15980.async.js b/15980.async.js
index f2114bd6c6..de3db718b6 100644
--- a/15980.async.js
+++ b/15980.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[15980,4670,10740,63708,43416,45635],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[15980,4670,10740,63708,43416,45635,54909],{
/***/ 99611:
/*!****************************************************************************!*\
diff --git a/17311.async.js b/17311.async.js
index 1b43886ad6..572f43c484 100644
--- a/17311.async.js
+++ b/17311.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[17311,74045,11470,75574,33358,68657,92936,35034,41522,9600,61710],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[17311,74045,11470,75574,33358,68657,92936,35034,41522,9600,61710,54909],{
/***/ 82826:
/*!**********************************************************************************!*\
diff --git a/97543.async.js b/18860.async.js
similarity index 86%
rename from 97543.async.js
rename to 18860.async.js
index 1ea00d99d5..09b85e45e9 100644
--- a/97543.async.js
+++ b/18860.async.js
@@ -1,47 +1,4 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[97543],{
-
-/***/ 23430:
-/*!*********************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js + 1 modules ***!
- \*********************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_DownloadOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/DownloadOutlined.js
-// This icon file is generated automatically.
-var DownloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, "name": "download", "theme": "outlined" };
-/* harmony default export */ var asn_DownloadOutlined = (DownloadOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var DownloadOutlined_DownloadOutlined = function DownloadOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_DownloadOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_DownloadOutlined = (/*#__PURE__*/react.forwardRef(DownloadOutlined_DownloadOutlined));
-
-/***/ }),
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[18860],{
/***/ 99611:
/*!****************************************************************************!*\
@@ -86,49 +43,6 @@ if (false) {}
/***/ }),
-/***/ 33160:
-/*!*******************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules ***!
- \*******************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_ReloadOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.js
-// This icon file is generated automatically.
-var ReloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, "name": "reload", "theme": "outlined" };
-/* harmony default export */ var asn_ReloadOutlined = (ReloadOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var ReloadOutlined_ReloadOutlined = function ReloadOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_ReloadOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_ReloadOutlined = (/*#__PURE__*/react.forwardRef(ReloadOutlined_ReloadOutlined));
-
-/***/ }),
-
/***/ 79531:
/*!*********************************************************!*\
!*** ./node_modules/antd/es/input/index.js + 5 modules ***!
diff --git a/19774.async.js b/19774.async.js
new file mode 100644
index 0000000000..efc9ce58ab
--- /dev/null
+++ b/19774.async.js
@@ -0,0 +1,617 @@
+"use strict";
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[19774],{
+
+/***/ 6971:
+/*!**********************************************************************************!*\
+ !*** ./src/pages/Account/components/AppplyDepartmentModal/index.tsx + 1 modules ***!
+ \**********************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ components_AppplyDepartmentModal; }
+});
+
+// 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/@babel/runtime/helpers/objectWithoutProperties.js
+var objectWithoutProperties = __webpack_require__(70215);
+var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
+var _umi_production_exports = __webpack_require__(89214);
+// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
+var input = __webpack_require__(79531);
+// EXTERNAL MODULE: ./node_modules/antd/es/form/index.js + 17 modules
+var es_form = __webpack_require__(25159);
+// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
+var message = __webpack_require__(2453);
+// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
+var modal = __webpack_require__(72423);
+// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
+var es_button = __webpack_require__(71577);
+;// CONCATENATED MODULE: ./src/pages/Account/components/AppplyDepartmentModal/index.less?modules
+// extracted by mini-css-extract-plugin
+/* harmony default export */ var AppplyDepartmentModalmodules = ({"flexRow":"flexRow___QJsV8","flexColumn":"flexColumn___Otjag","formWrap":"formWrap___z8635","example":"example___rgoyo","footerWrap":"footerWrap___gNXP9"});
+// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
+var jsx_runtime = __webpack_require__(85893);
+;// CONCATENATED MODULE: ./src/pages/Account/components/AppplyDepartmentModal/index.tsx
+
+
+
+
+var _excluded = ["account", "globalSetting", "loading", "dispatch", "schoolName", "departmentName", "visible", "onClose", "onSuccess"];
+
+
+
+
+
+
+var TextArea = input/* default.TextArea */.Z.TextArea;
+var AppplyDepartmentModal = function AppplyDepartmentModal(_ref) {
+ var account = _ref.account,
+ globalSetting = _ref.globalSetting,
+ loading = _ref.loading,
+ dispatch = _ref.dispatch,
+ schoolName = _ref.schoolName,
+ departmentName = _ref.departmentName,
+ visible = _ref.visible,
+ _ref$onClose = _ref.onClose,
+ onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
+ _ref$onSuccess = _ref.onSuccess,
+ onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess,
+ props = objectWithoutProperties_default()(_ref, _excluded);
+ var _Form$useForm = es_form/* default.useForm */.Z.useForm(),
+ _Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
+ form = _Form$useForm2[0];
+ var schoolId = (0,react.useRef)();
+ (0,react.useEffect)(function () {
+ schoolId.current = props.schoolId;
+ }, [props.schoolId]);
+ (0,react.useEffect)(function () {
+ form.setFieldsValue({
+ department: departmentName
+ });
+ }, [departmentName]);
+ var handleFinish = /*#__PURE__*/function () {
+ var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
+ var _ref3, department, remarks, res;
+ return regeneratorRuntime_default()().wrap(function _callee$(_context) {
+ while (1) switch (_context.prev = _context.next) {
+ case 0:
+ _ref3 = values || {}, department = _ref3.department, remarks = _ref3.remarks;
+ _context.next = 3;
+ return dispatch({
+ type: 'account/appplyDepartment',
+ payload: {
+ school_id: schoolId.current,
+ name: department,
+ remarks: remarks
+ }
+ });
+ case 3:
+ res = _context.sent;
+ onClose();
+ if (res) {
+ message/* default.success */.ZP.success("新增院系/部门成功!");
+ onSuccess(department);
+ }
+ case 6:
+ case "end":
+ return _context.stop();
+ }
+ }, _callee);
+ }));
+ return function handleFinish(_x) {
+ return _ref2.apply(this, arguments);
+ };
+ }();
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
+ centered: true,
+ keyboard: false,
+ closable: false,
+ destroyOnClose: true,
+ open: visible,
+ title: "\u7533\u8BF7\u6DFB\u52A0\u5B50\u5355\u4F4D\u540D\u79F0",
+ width: "600px",
+ footer: null,
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
+ className: AppplyDepartmentModalmodules.formWrap,
+ form: form,
+ labelCol: {
+ span: 4
+ },
+ wrapperCol: {
+ span: 20
+ },
+ onFinish: handleFinish,
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ label: "\u5355\u4F4D\u540D\u79F0\uFF1A",
+ children: schoolName
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ label: "\u90E8\u95E8\u540D\u79F0\uFF1A",
+ name: "department",
+ rules: [{
+ required: true,
+ message: '请输入部门或者学院名称'
+ }],
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
+ placeholder: "\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ label: "\u8BF4\u660E\uFF1A",
+ name: "remarks",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea, {
+ placeholder: "\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ className: AppplyDepartmentModalmodules.footerWrap,
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default.Item */.Z.Item, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
+ className: "mr5",
+ size: 'middle',
+ onClick: function onClick() {
+ onClose();
+ },
+ children: "\u53D6\u6D88"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
+ size: 'middle',
+ type: "primary",
+ htmlType: "submit",
+ loading: loading['account/appplyDepartment'],
+ children: "\u4FDD\u5B58"
+ })]
+ })
+ })]
+ })
+ });
+};
+/* harmony default export */ var components_AppplyDepartmentModal = ((0,_umi_production_exports.connect)(function (_ref4) {
+ var account = _ref4.account,
+ loading = _ref4.loading,
+ globalSetting = _ref4.globalSetting;
+ return {
+ account: account,
+ globalSetting: globalSetting,
+ loading: loading.effects
+ };
+})(AppplyDepartmentModal));
+
+/***/ }),
+
+/***/ 90320:
+/*!******************************************************************************!*\
+ !*** ./src/pages/Account/components/AppplySchoolModal/index.tsx + 1 modules ***!
+ \******************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ components_AppplySchoolModal; }
+});
+
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
+var regeneratorRuntime = __webpack_require__(17061);
+var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
+var objectSpread2 = __webpack_require__(42122);
+var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
+var asyncToGenerator = __webpack_require__(17156);
+var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
+var slicedToArray = __webpack_require__(27424);
+var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js
+var objectWithoutProperties = __webpack_require__(70215);
+var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
+var _umi_production_exports = __webpack_require__(89214);
+// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
+var input = __webpack_require__(79531);
+// EXTERNAL MODULE: ./node_modules/antd/es/form/index.js + 17 modules
+var es_form = __webpack_require__(25159);
+// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
+var es_modal = __webpack_require__(72423);
+// EXTERNAL MODULE: ./node_modules/antd/es/table/index.js + 90 modules
+var table = __webpack_require__(63889);
+// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
+var message = __webpack_require__(2453);
+// EXTERNAL MODULE: ./node_modules/antd/es/cascader/index.js + 63 modules
+var cascader = __webpack_require__(80316);
+// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
+var es_button = __webpack_require__(71577);
+// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CheckCircleFilled.js + 1 modules
+var CheckCircleFilled = __webpack_require__(89739);
+// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules
+var CloseCircleFilled = __webpack_require__(4340);
+// EXTERNAL MODULE: ./src/utils/cityData.ts
+var cityData = __webpack_require__(12325);
+;// CONCATENATED MODULE: ./src/pages/Account/components/AppplySchoolModal/index.less?modules
+// extracted by mini-css-extract-plugin
+/* harmony default export */ var AppplySchoolModalmodules = ({"flexRow":"flexRow___qRWfN","flexColumn":"flexColumn___qUHfF","formWrap":"formWrap___kSgvX","example":"example___D0a_H","footerWrap":"footerWrap___kTeYf"});
+// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
+var jsx_runtime = __webpack_require__(85893);
+;// CONCATENATED MODULE: ./src/pages/Account/components/AppplySchoolModal/index.tsx
+
+
+
+
+
+var _excluded = ["account", "globalSetting", "loading", "dispatch", "schoolName", "visible", "onClose", "onSuccess"];
+
+
+
+
+
+
+
+
+
+var filter = function filter(inputValue, path) {
+ return path.some(function (option) {
+ return option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1;
+ });
+};
+var TextArea = input/* default.TextArea */.Z.TextArea;
+var AppplySchoolModal = function AppplySchoolModal(_ref) {
+ var account = _ref.account,
+ globalSetting = _ref.globalSetting,
+ loading = _ref.loading,
+ dispatch = _ref.dispatch,
+ schoolName = _ref.schoolName,
+ visible = _ref.visible,
+ _ref$onClose = _ref.onClose,
+ onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
+ _ref$onSuccess = _ref.onSuccess,
+ onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess,
+ props = objectWithoutProperties_default()(_ref, _excluded);
+ var _Form$useForm = es_form/* default.useForm */.Z.useForm(),
+ _Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
+ form = _Form$useForm2[0];
+ (0,react.useEffect)(function () {
+ form.setFieldsValue({
+ name: schoolName
+ });
+ }, [schoolName]);
+ var handleFinish = /*#__PURE__*/function () {
+ var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(values) {
+ var _ref3, name, _ref3$city, city, address, remarks, res, modal;
+ return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
+ while (1) switch (_context2.prev = _context2.next) {
+ case 0:
+ _ref3 = values || {}, name = _ref3.name, _ref3$city = _ref3.city, city = _ref3$city === void 0 ? [] : _ref3$city, address = _ref3.address, remarks = _ref3.remarks;
+ _context2.next = 3;
+ return dispatch({
+ type: 'account/appplySchool',
+ payload: {
+ name: name,
+ province: city[0],
+ city: city[1],
+ address: address,
+ remarks: remarks
+ }
+ });
+ case 3:
+ res = _context2.sent;
+ if (!((res === null || res === void 0 ? void 0 : res.status) == 2)) {
+ _context2.next = 7;
+ break;
+ }
+ modal = es_modal/* default.confirm */.Z.confirm({
+ icon: null,
+ width: 600,
+ centered: true,
+ okText: '确定',
+ cancelText: '取消',
+ title: '提示',
+ content: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
+ children: "\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u7533\u8BF7\u65B0\u589E\u7684\u5355\u4F4D\u5DF2\u5B58\u5728\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4E3A\u8BE5\u5355\u4F4D\uFF1F"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
+ columns: [{
+ title: '学校/单位',
+ dataIndex: 'name'
+ }, {
+ title: '用户数',
+ width: 150,
+ dataIndex: 'users_count'
+ }],
+ dataSource: [objectSpread2_default()({}, res)],
+ pagination: false
+ })]
+ }),
+ onOk: function () {
+ var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
+ return regeneratorRuntime_default()().wrap(function _callee$(_context) {
+ while (1) switch (_context.prev = _context.next) {
+ case 0:
+ _context.next = 2;
+ return onSuccess(name);
+ case 2:
+ modal.destroy();
+ onClose();
+ case 4:
+ case "end":
+ return _context.stop();
+ }
+ }, _callee);
+ }));
+ function onOk() {
+ return _onOk.apply(this, arguments);
+ }
+ return onOk;
+ }(),
+ onCancel: function onCancel() {
+ modal.destroy();
+ }
+ });
+ return _context2.abrupt("return");
+ case 7:
+ onClose();
+ if (res.status == 0) {
+ message/* default.success */.ZP.success("新增学校/单位成功!");
+ onSuccess(name);
+ }
+ case 9:
+ case "end":
+ return _context2.stop();
+ }
+ }, _callee2);
+ }));
+ return function handleFinish(_x) {
+ return _ref2.apply(this, arguments);
+ };
+ }();
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(es_modal/* default */.Z, {
+ centered: true,
+ keyboard: false,
+ closable: false,
+ destroyOnClose: true,
+ open: visible,
+ title: "\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",
+ width: "600px",
+ footer: null,
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
+ className: AppplySchoolModalmodules.formWrap,
+ form: form,
+ labelCol: {
+ span: 4
+ },
+ wrapperCol: {
+ span: 20
+ },
+ onFinish: handleFinish,
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ label: "\u5355\u4F4D\u5168\u79F0\uFF1A",
+ name: "name",
+ rules: [{
+ required: true,
+ message: '请输入学校或工作单位'
+ }],
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
+ placeholder: "\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "".concat(AppplySchoolModalmodules.flexRow, " ").concat(AppplySchoolModalmodules.example),
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ children: "\u793A\u4F8B\uFF1A"
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: AppplySchoolModalmodules.flexColumn,
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(CheckCircleFilled/* default */.Z, {
+ style: {
+ color: "rgb(82, 196, 26)"
+ }
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "font14 ml5",
+ children: "\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784"
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleFilled/* default */.Z, {
+ style: {
+ color: "red"
+ }
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "font14 ml5",
+ children: "\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625"
+ })]
+ })]
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ label: "\u5730\u533A\uFF1A",
+ name: "city",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(cascader/* default */.Z, {
+ allowClear: true,
+ size: 'middle',
+ options: cityData/* CityData */.P,
+ placeholder: "\u8BF7\u9009\u62E9\u6240\u5728\u5730",
+ showSearch: {
+ matchInputWidth: true,
+ filter: filter
+ }
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ label: "\u8BE6\u7EC6\u5730\u5740\uFF1A",
+ name: "address",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
+ placeholder: "\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ label: "\u8BF4\u660E\uFF1A",
+ name: "remarks",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea, {
+ placeholder: "\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ className: AppplySchoolModalmodules.footerWrap,
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default.Item */.Z.Item, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
+ className: "mr5",
+ size: 'middle',
+ onClick: function onClick() {
+ onClose();
+ },
+ children: "\u53D6\u6D88"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
+ size: 'middle',
+ type: "primary",
+ htmlType: "submit",
+ loading: loading['account/appplySchool'],
+ children: "\u4FDD\u5B58"
+ })]
+ })
+ })]
+ })
+ });
+};
+/* harmony default export */ var components_AppplySchoolModal = ((0,_umi_production_exports.connect)(function (_ref4) {
+ var account = _ref4.account,
+ loading = _ref4.loading,
+ globalSetting = _ref4.globalSetting;
+ return {
+ account: account,
+ globalSetting: globalSetting,
+ loading: loading.effects
+ };
+})(AppplySchoolModal));
+
+/***/ }),
+
+/***/ 49288:
+/*!*****************************************************!*\
+ !*** ./node_modules/antd/es/auto-complete/index.js ***!
+ \*****************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 94184);
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/Children/toArray */ 37419);
+/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/omit */ 10366);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/PurePanel */ 8745);
+/* harmony import */ var _util_reactNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/reactNode */ 96159);
+/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider */ 53124);
+/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../select */ 79035);
+'use client';
+
+
+
+
+
+
+
+
+
+
+const {
+ Option
+} = _select__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z;
+function isSelectOptionOrSelectOptGroup(child) {
+ return child && child.type && (child.type.isSelectOption || child.type.isSelectOptGroup);
+}
+const AutoComplete = (props, ref) => {
+ const {
+ prefixCls: customizePrefixCls,
+ className,
+ popupClassName,
+ dropdownClassName,
+ children,
+ dataSource
+ } = props;
+ const childNodes = (0,rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(children);
+ // ============================= Input =============================
+ let customizeInput;
+ if (childNodes.length === 1 && (0,_util_reactNode__WEBPACK_IMPORTED_MODULE_4__/* .isValidElement */ .l$)(childNodes[0]) && !isSelectOptionOrSelectOptGroup(childNodes[0])) {
+ [customizeInput] = childNodes;
+ }
+ const getInputElement = customizeInput ? () => customizeInput : undefined;
+ // ============================ Options ============================
+ let optionChildren;
+ // [Legacy] convert `children` or `dataSource` into option children
+ if (childNodes.length && isSelectOptionOrSelectOptGroup(childNodes[0])) {
+ optionChildren = children;
+ } else {
+ optionChildren = dataSource ? dataSource.map(item => {
+ if ((0,_util_reactNode__WEBPACK_IMPORTED_MODULE_4__/* .isValidElement */ .l$)(item)) {
+ return item;
+ }
+ switch (typeof item) {
+ case 'string':
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Option, {
+ key: item,
+ value: item
+ }, item);
+ case 'object':
+ {
+ const {
+ value: optionValue
+ } = item;
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Option, {
+ key: optionValue,
+ value: optionValue
+ }, item.text);
+ }
+ default:
+ false ? 0 : void 0;
+ return undefined;
+ }
+ }) : [];
+ }
+ if (false) {}
+ const {
+ getPrefixCls
+ } = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_5__/* .ConfigContext */ .E_);
+ const prefixCls = getPrefixCls('select', customizePrefixCls);
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_select__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, Object.assign({
+ ref: ref,
+ showArrow: false
+ }, (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props, ['dataSource', 'dropdownClassName']), {
+ prefixCls: prefixCls,
+ popupClassName: popupClassName || dropdownClassName,
+ className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(`${prefixCls}-auto-complete`, className),
+ mode: _select__WEBPACK_IMPORTED_MODULE_3__/* ["default"].SECRET_COMBOBOX_MODE_DO_NOT_USE */ .Z.SECRET_COMBOBOX_MODE_DO_NOT_USE,
+ // Internal api
+ getInputElement
+ }), optionChildren);
+};
+const RefAutoComplete = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(AutoComplete);
+// We don't care debug panel
+/* istanbul ignore next */
+const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(RefAutoComplete);
+RefAutoComplete.Option = Option;
+RefAutoComplete._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
+if (false) {}
+/* harmony default export */ __webpack_exports__["Z"] = (RefAutoComplete);
+
+/***/ }),
+
+/***/ 31131:
+/*!*********************************************!*\
+ !*** ./node_modules/rc-util/es/isMobile.js ***!
+ \*********************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__) {
+
+/* harmony default export */ __webpack_exports__["Z"] = (function () {
+ if (typeof navigator === 'undefined' || typeof window === 'undefined') {
+ return false;
+ }
+ var agent = navigator.userAgent || navigator.vendor || window.opera;
+ return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(agent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(agent === null || agent === void 0 ? void 0 : agent.substr(0, 4));
+});
+
+/***/ })
+
+}]);
\ No newline at end of file
diff --git a/53874.async.js b/20546.async.js
similarity index 93%
rename from 53874.async.js
rename to 20546.async.js
index bcf96d1beb..d169a5045d 100644
--- a/53874.async.js
+++ b/20546.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[53874],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[20546],{
/***/ 99611:
/*!****************************************************************************!*\
@@ -1057,6 +1057,168 @@ input_Input.Password = input_Password;
/***/ }),
+/***/ 67771:
+/*!****************************************************!*\
+ !*** ./node_modules/antd/es/style/motion/slide.js ***!
+ \****************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
+/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
+/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
+/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
+/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
+/* harmony export */ });
+/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
+/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
+/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
+
+
+const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
+ '0%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ }
+});
+const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
+ '0%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ }
+});
+const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
+ '0%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '100% 100%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '100% 100%',
+ opacity: 1
+ }
+});
+const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
+ '0%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '100% 100%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '100% 100%',
+ opacity: 0
+ }
+});
+const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
+ '0%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ }
+});
+const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
+ '0%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ }
+});
+const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
+ '0%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '100% 0%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '100% 0%',
+ opacity: 1
+ }
+});
+const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
+ '0%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '100% 0%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '100% 0%',
+ opacity: 0
+ }
+});
+const slideMotion = {
+ 'slide-up': {
+ inKeyframes: slideUpIn,
+ outKeyframes: slideUpOut
+ },
+ 'slide-down': {
+ inKeyframes: slideDownIn,
+ outKeyframes: slideDownOut
+ },
+ 'slide-left': {
+ inKeyframes: slideLeftIn,
+ outKeyframes: slideLeftOut
+ },
+ 'slide-right': {
+ inKeyframes: slideRightIn,
+ outKeyframes: slideRightOut
+ }
+};
+const initSlideMotion = (token, motionName) => {
+ const {
+ antCls
+ } = token;
+ const motionCls = `${antCls}-${motionName}`;
+ const {
+ inKeyframes,
+ outKeyframes
+ } = slideMotion[motionName];
+ return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
+ [`
+ ${motionCls}-enter,
+ ${motionCls}-appear
+ `]: {
+ transform: 'scale(0)',
+ transformOrigin: '0% 0%',
+ opacity: 0,
+ animationTimingFunction: token.motionEaseOutQuint,
+ [`&-prepare`]: {
+ transform: 'scale(1)'
+ }
+ },
+ [`${motionCls}-leave`]: {
+ animationTimingFunction: token.motionEaseInQuint
+ }
+ }];
+};
+
+/***/ }),
+
/***/ 51904:
/*!*******************************************************!*\
!*** ./node_modules/antd/es/tag/index.js + 3 modules ***!
diff --git a/22424.async.js b/22424.async.js
deleted file mode 100644
index 8a345fb767..0000000000
--- a/22424.async.js
+++ /dev/null
@@ -1,787 +0,0 @@
-"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[22424],{
-
-/***/ 63606:
-/*!******************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/CheckOutlined.js + 1 modules ***!
- \******************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_CheckOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.js
-// This icon file is generated automatically.
-var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" };
-/* harmony default export */ var asn_CheckOutlined = (CheckOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/CheckOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var CheckOutlined_CheckOutlined = function CheckOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_CheckOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_CheckOutlined = (/*#__PURE__*/react.forwardRef(CheckOutlined_CheckOutlined));
-
-/***/ }),
-
-/***/ 77123:
-/*!*****************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/FormOutlined.js + 1 modules ***!
- \*****************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_FormOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/FormOutlined.js
-// This icon file is generated automatically.
-var FormOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z" } }, { "tag": "path", "attrs": { "d": "M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z" } }] }, "name": "form", "theme": "outlined" };
-/* harmony default export */ var asn_FormOutlined = (FormOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/FormOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var FormOutlined_FormOutlined = function FormOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_FormOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_FormOutlined = (/*#__PURE__*/react.forwardRef(FormOutlined_FormOutlined));
-
-/***/ }),
-
-/***/ 33160:
-/*!*******************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules ***!
- \*******************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_ReloadOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.js
-// This icon file is generated automatically.
-var ReloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, "name": "reload", "theme": "outlined" };
-/* harmony default export */ var asn_ReloadOutlined = (ReloadOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var ReloadOutlined_ReloadOutlined = function ReloadOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_ReloadOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_ReloadOutlined = (/*#__PURE__*/react.forwardRef(ReloadOutlined_ReloadOutlined));
-
-/***/ }),
-
-/***/ 8745:
-/*!*************************************************!*\
- !*** ./node_modules/antd/es/_util/PurePanel.js ***!
- \*************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Z": function() { return /* binding */ genPurePanel; }
-/* harmony export */ });
-/* harmony import */ var rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/hooks/useMergedState */ 5663);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider */ 53124);
-/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 1063);
-
-
-
-/* istanbul ignore next */
-function genPurePanel(Component, defaultPrefixCls, getDropdownCls, postProps) {
- return function PurePanel(props) {
- const {
- prefixCls: customizePrefixCls,
- style
- } = props;
- const holderRef = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null);
- const [popupHeight, setPopupHeight] = react__WEBPACK_IMPORTED_MODULE_1__.useState(0);
- const [popupWidth, setPopupWidth] = react__WEBPACK_IMPORTED_MODULE_1__.useState(0);
- const [open, setOpen] = (0,rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(false, {
- value: props.open
- });
- const {
- getPrefixCls
- } = react__WEBPACK_IMPORTED_MODULE_1__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_2__/* .ConfigContext */ .E_);
- const prefixCls = getPrefixCls(defaultPrefixCls || 'select', customizePrefixCls);
- react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => {
- // We do not care about ssr
- setOpen(true);
- if (typeof ResizeObserver !== 'undefined') {
- const resizeObserver = new ResizeObserver(entries => {
- const element = entries[0].target;
- setPopupHeight(element.offsetHeight + 8);
- setPopupWidth(element.offsetWidth);
- });
- const interval = setInterval(() => {
- var _a;
- const dropdownCls = getDropdownCls ? `.${getDropdownCls(prefixCls)}` : `.${prefixCls}-dropdown`;
- const popup = (_a = holderRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(dropdownCls);
- if (popup) {
- clearInterval(interval);
- resizeObserver.observe(popup);
- }
- }, 10);
- return () => {
- clearInterval(interval);
- resizeObserver.disconnect();
- };
- }
- }, []);
- let mergedProps = Object.assign(Object.assign({}, props), {
- style: Object.assign(Object.assign({}, style), {
- margin: 0
- }),
- open,
- visible: open,
- getPopupContainer: () => holderRef.current
- });
- if (postProps) {
- mergedProps = postProps(mergedProps);
- }
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP, {
- theme: {
- token: {
- motion: false
- }
- }
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
- ref: holderRef,
- style: {
- paddingBottom: popupHeight,
- position: 'relative',
- minWidth: popupWidth
- }
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(Component, Object.assign({}, mergedProps))));
- };
-}
-
-/***/ }),
-
-/***/ 57838:
-/*!************************************************************!*\
- !*** ./node_modules/antd/es/_util/hooks/useForceUpdate.js ***!
- \************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Z": function() { return /* binding */ useForceUpdate; }
-/* harmony export */ });
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-
-function useForceUpdate() {
- const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
- return forceUpdate;
-}
-
-/***/ }),
-
-/***/ 96074:
-/*!***********************************************************!*\
- !*** ./node_modules/antd/es/divider/index.js + 1 modules ***!
- \***********************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ divider; }
-});
-
-// 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/style/index.js
-var style = __webpack_require__(14747);
-// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
-var genComponentStyleHook = __webpack_require__(67968);
-// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
-var statistic = __webpack_require__(45503);
-;// CONCATENATED MODULE: ./node_modules/antd/es/divider/style/index.js
-
-
-// ============================== Shared ==============================
-const genSharedDividerStyle = token => {
- const {
- componentCls,
- sizePaddingEdgeHorizontal,
- colorSplit,
- lineWidth
- } = token;
- return {
- [componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
- borderBlockStart: `${lineWidth}px solid ${colorSplit}`,
- // vertical
- '&-vertical': {
- position: 'relative',
- top: '-0.06em',
- display: 'inline-block',
- height: '0.9em',
- margin: `0 ${token.dividerVerticalGutterMargin}px`,
- verticalAlign: 'middle',
- borderTop: 0,
- borderInlineStart: `${lineWidth}px solid ${colorSplit}`
- },
- '&-horizontal': {
- display: 'flex',
- clear: 'both',
- width: '100%',
- minWidth: '100%',
- margin: `${token.dividerHorizontalGutterMargin}px 0`
- },
- [`&-horizontal${componentCls}-with-text`]: {
- display: 'flex',
- alignItems: 'center',
- margin: `${token.dividerHorizontalWithTextGutterMargin}px 0`,
- color: token.colorTextHeading,
- fontWeight: 500,
- fontSize: token.fontSizeLG,
- whiteSpace: 'nowrap',
- textAlign: 'center',
- borderBlockStart: `0 ${colorSplit}`,
- '&::before, &::after': {
- position: 'relative',
- width: '50%',
- borderBlockStart: `${lineWidth}px solid transparent`,
- // Chrome not accept `inherit` in `border-top`
- borderBlockStartColor: 'inherit',
- borderBlockEnd: 0,
- transform: 'translateY(50%)',
- content: "''"
- }
- },
- [`&-horizontal${componentCls}-with-text-left`]: {
- '&::before': {
- width: '5%'
- },
- '&::after': {
- width: '95%'
- }
- },
- [`&-horizontal${componentCls}-with-text-right`]: {
- '&::before': {
- width: '95%'
- },
- '&::after': {
- width: '5%'
- }
- },
- [`${componentCls}-inner-text`]: {
- display: 'inline-block',
- padding: '0 1em'
- },
- '&-dashed': {
- background: 'none',
- borderColor: colorSplit,
- borderStyle: 'dashed',
- borderWidth: `${lineWidth}px 0 0`
- },
- [`&-horizontal${componentCls}-with-text${componentCls}-dashed`]: {
- '&::before, &::after': {
- borderStyle: 'dashed none none'
- }
- },
- [`&-vertical${componentCls}-dashed`]: {
- borderInlineStartWidth: lineWidth,
- borderInlineEnd: 0,
- borderBlockStart: 0,
- borderBlockEnd: 0
- },
- [`&-plain${componentCls}-with-text`]: {
- color: token.colorText,
- fontWeight: 'normal',
- fontSize: token.fontSize
- },
- [`&-horizontal${componentCls}-with-text-left${componentCls}-no-default-orientation-margin-left`]: {
- '&::before': {
- width: 0
- },
- '&::after': {
- width: '100%'
- },
- [`${componentCls}-inner-text`]: {
- paddingInlineStart: sizePaddingEdgeHorizontal
- }
- },
- [`&-horizontal${componentCls}-with-text-right${componentCls}-no-default-orientation-margin-right`]: {
- '&::before': {
- width: '100%'
- },
- '&::after': {
- width: 0
- },
- [`${componentCls}-inner-text`]: {
- paddingInlineEnd: sizePaddingEdgeHorizontal
- }
- }
- })
- };
-};
-// ============================== Export ==============================
-/* harmony default export */ var divider_style = ((0,genComponentStyleHook/* default */.Z)('Divider', token => {
- const dividerToken = (0,statistic/* merge */.TS)(token, {
- dividerVerticalGutterMargin: token.marginXS,
- dividerHorizontalWithTextGutterMargin: token.margin,
- dividerHorizontalGutterMargin: token.marginLG
- });
- return [genSharedDividerStyle(dividerToken)];
-}, {
- sizePaddingEdgeHorizontal: 0
-}));
-;// CONCATENATED MODULE: ./node_modules/antd/es/divider/index.js
-'use client';
-
-var __rest = undefined && undefined.__rest || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
- }
- return t;
-};
-
-
-
-
-
-const Divider = props => {
- const {
- getPrefixCls,
- direction,
- divider
- } = react.useContext(context/* ConfigContext */.E_);
- const {
- prefixCls: customizePrefixCls,
- type = 'horizontal',
- orientation = 'center',
- orientationMargin,
- className,
- rootClassName,
- children,
- dashed,
- plain,
- style
- } = props,
- restProps = __rest(props, ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "plain", "style"]);
- const prefixCls = getPrefixCls('divider', customizePrefixCls);
- const [wrapSSR, hashId] = divider_style(prefixCls);
- const orientationPrefix = orientation.length > 0 ? `-${orientation}` : orientation;
- const hasChildren = !!children;
- const hasCustomMarginLeft = orientation === 'left' && orientationMargin != null;
- const hasCustomMarginRight = orientation === 'right' && orientationMargin != null;
- const classString = classnames_default()(prefixCls, divider === null || divider === void 0 ? void 0 : divider.className, hashId, `${prefixCls}-${type}`, {
- [`${prefixCls}-with-text`]: hasChildren,
- [`${prefixCls}-with-text${orientationPrefix}`]: hasChildren,
- [`${prefixCls}-dashed`]: !!dashed,
- [`${prefixCls}-plain`]: !!plain,
- [`${prefixCls}-rtl`]: direction === 'rtl',
- [`${prefixCls}-no-default-orientation-margin-left`]: hasCustomMarginLeft,
- [`${prefixCls}-no-default-orientation-margin-right`]: hasCustomMarginRight
- }, className, rootClassName);
- const memoizedOrientationMargin = react.useMemo(() => {
- if (typeof orientationMargin === 'number') {
- return orientationMargin;
- }
- if (/^\d+$/.test(orientationMargin)) {
- return Number(orientationMargin);
- }
- return orientationMargin;
- }, [orientationMargin]);
- const innerStyle = Object.assign(Object.assign({}, hasCustomMarginLeft && {
- marginLeft: memoizedOrientationMargin
- }), hasCustomMarginRight && {
- marginRight: memoizedOrientationMargin
- });
- // Warning children not work in vertical mode
- if (false) {}
- return wrapSSR( /*#__PURE__*/react.createElement("div", Object.assign({
- className: classString,
- style: Object.assign(Object.assign({}, divider === null || divider === void 0 ? void 0 : divider.style), style)
- }, restProps, {
- role: "separator"
- }), children && type !== 'vertical' && /*#__PURE__*/react.createElement("span", {
- className: `${prefixCls}-inner-text`,
- style: innerStyle
- }, children)));
-};
-if (false) {}
-/* harmony default export */ var divider = (Divider);
-
-/***/ }),
-
-/***/ 33297:
-/*!***************************************************!*\
- !*** ./node_modules/antd/es/style/motion/move.js ***!
- \***************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Fm": function() { return /* binding */ initMoveMotion; }
-/* harmony export */ });
-/* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */
-/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
-/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
-
-
-const moveDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownIn', {
- '0%': {
- transform: 'translate3d(0, 100%, 0)',
- transformOrigin: '0 0',
- opacity: 0
- },
- '100%': {
- transform: 'translate3d(0, 0, 0)',
- transformOrigin: '0 0',
- opacity: 1
- }
-});
-const moveDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownOut', {
- '0%': {
- transform: 'translate3d(0, 0, 0)',
- transformOrigin: '0 0',
- opacity: 1
- },
- '100%': {
- transform: 'translate3d(0, 100%, 0)',
- transformOrigin: '0 0',
- opacity: 0
- }
-});
-const moveLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftIn', {
- '0%': {
- transform: 'translate3d(-100%, 0, 0)',
- transformOrigin: '0 0',
- opacity: 0
- },
- '100%': {
- transform: 'translate3d(0, 0, 0)',
- transformOrigin: '0 0',
- opacity: 1
- }
-});
-const moveLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftOut', {
- '0%': {
- transform: 'translate3d(0, 0, 0)',
- transformOrigin: '0 0',
- opacity: 1
- },
- '100%': {
- transform: 'translate3d(-100%, 0, 0)',
- transformOrigin: '0 0',
- opacity: 0
- }
-});
-const moveRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightIn', {
- '0%': {
- transform: 'translate3d(100%, 0, 0)',
- transformOrigin: '0 0',
- opacity: 0
- },
- '100%': {
- transform: 'translate3d(0, 0, 0)',
- transformOrigin: '0 0',
- opacity: 1
- }
-});
-const moveRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightOut', {
- '0%': {
- transform: 'translate3d(0, 0, 0)',
- transformOrigin: '0 0',
- opacity: 1
- },
- '100%': {
- transform: 'translate3d(100%, 0, 0)',
- transformOrigin: '0 0',
- opacity: 0
- }
-});
-const moveUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpIn', {
- '0%': {
- transform: 'translate3d(0, -100%, 0)',
- transformOrigin: '0 0',
- opacity: 0
- },
- '100%': {
- transform: 'translate3d(0, 0, 0)',
- transformOrigin: '0 0',
- opacity: 1
- }
-});
-const moveUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpOut', {
- '0%': {
- transform: 'translate3d(0, 0, 0)',
- transformOrigin: '0 0',
- opacity: 1
- },
- '100%': {
- transform: 'translate3d(0, -100%, 0)',
- transformOrigin: '0 0',
- opacity: 0
- }
-});
-const moveMotion = {
- 'move-up': {
- inKeyframes: moveUpIn,
- outKeyframes: moveUpOut
- },
- 'move-down': {
- inKeyframes: moveDownIn,
- outKeyframes: moveDownOut
- },
- 'move-left': {
- inKeyframes: moveLeftIn,
- outKeyframes: moveLeftOut
- },
- 'move-right': {
- inKeyframes: moveRightIn,
- outKeyframes: moveRightOut
- }
-};
-const initMoveMotion = (token, motionName) => {
- const {
- antCls
- } = token;
- const motionCls = `${antCls}-${motionName}`;
- const {
- inKeyframes,
- outKeyframes
- } = moveMotion[motionName];
- return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
- [`
- ${motionCls}-enter,
- ${motionCls}-appear
- `]: {
- opacity: 0,
- animationTimingFunction: token.motionEaseOutCirc
- },
- [`${motionCls}-leave`]: {
- animationTimingFunction: token.motionEaseInOutCirc
- }
- }];
-};
-
-/***/ }),
-
-/***/ 67771:
-/*!****************************************************!*\
- !*** ./node_modules/antd/es/style/motion/slide.js ***!
- \****************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
-/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
-/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
-/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
-/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
-/* harmony export */ });
-/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
-/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
-/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
-
-
-const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- }
-});
-const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- }
-});
-const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- }
-});
-const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- }
-});
-const slideMotion = {
- 'slide-up': {
- inKeyframes: slideUpIn,
- outKeyframes: slideUpOut
- },
- 'slide-down': {
- inKeyframes: slideDownIn,
- outKeyframes: slideDownOut
- },
- 'slide-left': {
- inKeyframes: slideLeftIn,
- outKeyframes: slideLeftOut
- },
- 'slide-right': {
- inKeyframes: slideRightIn,
- outKeyframes: slideRightOut
- }
-};
-const initSlideMotion = (token, motionName) => {
- const {
- antCls
- } = token;
- const motionCls = `${antCls}-${motionName}`;
- const {
- inKeyframes,
- outKeyframes
- } = slideMotion[motionName];
- return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
- [`
- ${motionCls}-enter,
- ${motionCls}-appear
- `]: {
- transform: 'scale(0)',
- transformOrigin: '0% 0%',
- opacity: 0,
- animationTimingFunction: token.motionEaseOutQuint,
- [`&-prepare`]: {
- transform: 'scale(1)'
- }
- },
- [`${motionCls}-leave`]: {
- animationTimingFunction: token.motionEaseInQuint
- }
- }];
-};
-
-/***/ })
-
-}]);
\ No newline at end of file
diff --git a/88964.async.js b/22805.async.js
similarity index 94%
rename from 88964.async.js
rename to 22805.async.js
index 081455caf3..91e0199ff1 100644
--- a/88964.async.js
+++ b/22805.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[88964],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[22805],{
/***/ 99611:
/*!****************************************************************************!*\
@@ -1728,6 +1728,168 @@ if (false) {}
/***/ }),
+/***/ 67771:
+/*!****************************************************!*\
+ !*** ./node_modules/antd/es/style/motion/slide.js ***!
+ \****************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
+/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
+/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
+/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
+/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
+/* harmony export */ });
+/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
+/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
+/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
+
+
+const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
+ '0%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ }
+});
+const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
+ '0%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ }
+});
+const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
+ '0%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '100% 100%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '100% 100%',
+ opacity: 1
+ }
+});
+const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
+ '0%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '100% 100%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '100% 100%',
+ opacity: 0
+ }
+});
+const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
+ '0%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ }
+});
+const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
+ '0%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ }
+});
+const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
+ '0%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '100% 0%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '100% 0%',
+ opacity: 1
+ }
+});
+const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
+ '0%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '100% 0%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '100% 0%',
+ opacity: 0
+ }
+});
+const slideMotion = {
+ 'slide-up': {
+ inKeyframes: slideUpIn,
+ outKeyframes: slideUpOut
+ },
+ 'slide-down': {
+ inKeyframes: slideDownIn,
+ outKeyframes: slideDownOut
+ },
+ 'slide-left': {
+ inKeyframes: slideLeftIn,
+ outKeyframes: slideLeftOut
+ },
+ 'slide-right': {
+ inKeyframes: slideRightIn,
+ outKeyframes: slideRightOut
+ }
+};
+const initSlideMotion = (token, motionName) => {
+ const {
+ antCls
+ } = token;
+ const motionCls = `${antCls}-${motionName}`;
+ const {
+ inKeyframes,
+ outKeyframes
+ } = slideMotion[motionName];
+ return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
+ [`
+ ${motionCls}-enter,
+ ${motionCls}-appear
+ `]: {
+ transform: 'scale(0)',
+ transformOrigin: '0% 0%',
+ opacity: 0,
+ animationTimingFunction: token.motionEaseOutQuint,
+ [`&-prepare`]: {
+ transform: 'scale(1)'
+ }
+ },
+ [`${motionCls}-leave`]: {
+ animationTimingFunction: token.motionEaseInQuint
+ }
+ }];
+};
+
+/***/ }),
+
/***/ 95860:
/*!**********************************************************!*\
!*** ./node_modules/rc-checkbox/es/index.js + 5 modules ***!
diff --git a/22905.async.js b/22905.async.js
new file mode 100644
index 0000000000..aeba345b38
--- /dev/null
+++ b/22905.async.js
@@ -0,0 +1,1886 @@
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[22905,89777],{
+
+/***/ 81643:
+/*!**********************************************************!*\
+ !*** ./node_modules/antd/es/_util/getRenderPropValue.js ***!
+ \**********************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "Z": function() { return /* binding */ getRenderPropValue; }
+/* harmony export */ });
+const getRenderPropValue = propValue => {
+ if (!propValue) {
+ return null;
+ }
+ if (typeof propValue === 'function') {
+ return propValue();
+ }
+ return propValue;
+};
+
+/***/ }),
+
+/***/ 66330:
+/*!***************************************************!*\
+ !*** ./node_modules/antd/es/popover/PurePanel.js ***!
+ \***************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* unused harmony exports getOverlay, RawPurePanel */
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 94184);
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 92419);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider */ 53124);
+/* harmony import */ var _util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/getRenderPropValue */ 81643);
+/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 20136);
+var __rest = undefined && undefined.__rest || function (s, e) {
+ var t = {};
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
+ }
+ return t;
+};
+
+
+
+
+
+
+const getOverlay = (prefixCls, title, content) => {
+ if (!title && !content) return undefined;
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
+ className: `${prefixCls}-title`
+ }, (0,_util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_3__/* .getRenderPropValue */ .Z)(title)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
+ className: `${prefixCls}-inner-content`
+ }, (0,_util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_3__/* .getRenderPropValue */ .Z)(content)));
+};
+const RawPurePanel = props => {
+ const {
+ hashId,
+ prefixCls,
+ className,
+ style,
+ placement = 'top',
+ title,
+ content,
+ children
+ } = props;
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
+ className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(hashId, prefixCls, `${prefixCls}-pure`, `${prefixCls}-placement-${placement}`, className),
+ style: style
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
+ className: `${prefixCls}-arrow`
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_tooltip__WEBPACK_IMPORTED_MODULE_1__/* .Popup */ .G, Object.assign({}, props, {
+ className: hashId,
+ prefixCls: prefixCls
+ }), children || getOverlay(prefixCls, title, content)));
+};
+const PurePanel = props => {
+ const {
+ prefixCls: customizePrefixCls
+ } = props,
+ restProps = __rest(props, ["prefixCls"]);
+ const {
+ getPrefixCls
+ } = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_4__/* .ConfigContext */ .E_);
+ const prefixCls = getPrefixCls('popover', customizePrefixCls);
+ const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(prefixCls);
+ return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(RawPurePanel, Object.assign({}, restProps, {
+ prefixCls: prefixCls,
+ hashId: hashId
+ })));
+};
+/* harmony default export */ __webpack_exports__["ZP"] = (PurePanel);
+
+/***/ }),
+
+/***/ 55241:
+/*!***********************************************!*\
+ !*** ./node_modules/antd/es/popover/index.js ***!
+ \***********************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 94184);
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/getRenderPropValue */ 81643);
+/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/motion */ 33603);
+/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 53124);
+/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tooltip */ 83062);
+/* harmony import */ var _PurePanel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PurePanel */ 66330);
+/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./style */ 20136);
+'use client';
+
+var __rest = undefined && undefined.__rest || function (s, e) {
+ var t = {};
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
+ }
+ return t;
+};
+
+
+
+
+
+
+
+// CSSINJS
+
+const Overlay = _ref => {
+ let {
+ title,
+ content,
+ prefixCls
+ } = _ref;
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
+ className: `${prefixCls}-title`
+ }, (0,_util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_2__/* .getRenderPropValue */ .Z)(title)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
+ className: `${prefixCls}-inner-content`
+ }, (0,_util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_2__/* .getRenderPropValue */ .Z)(content)));
+};
+const Popover = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((props, ref) => {
+ const {
+ prefixCls: customizePrefixCls,
+ title,
+ content,
+ overlayClassName,
+ placement = 'top',
+ trigger = 'hover',
+ mouseEnterDelay = 0.1,
+ mouseLeaveDelay = 0.1,
+ overlayStyle = {}
+ } = props,
+ otherProps = __rest(props, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle"]);
+ const {
+ getPrefixCls
+ } = react__WEBPACK_IMPORTED_MODULE_1__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* .ConfigContext */ .E_);
+ const prefixCls = getPrefixCls('popover', customizePrefixCls);
+ const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(prefixCls);
+ const rootPrefixCls = getPrefixCls();
+ const overlayCls = classnames__WEBPACK_IMPORTED_MODULE_0___default()(overlayClassName, hashId);
+ return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, Object.assign({
+ placement: placement,
+ trigger: trigger,
+ mouseEnterDelay: mouseEnterDelay,
+ mouseLeaveDelay: mouseLeaveDelay,
+ overlayStyle: overlayStyle
+ }, otherProps, {
+ prefixCls: prefixCls,
+ overlayClassName: overlayCls,
+ ref: ref,
+ overlay: title || content ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(Overlay, {
+ prefixCls: prefixCls,
+ title: title,
+ content: content
+ }) : null,
+ transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_6__/* .getTransitionName */ .mL)(rootPrefixCls, 'zoom-big', otherProps.transitionName),
+ "data-popover-inject": true
+ })));
+});
+if (false) {}
+Popover._InternalPanelDoNotUseOrYouWillBeFired = _PurePanel__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP;
+/* harmony default export */ __webpack_exports__["Z"] = (Popover);
+
+/***/ }),
+
+/***/ 20136:
+/*!*****************************************************!*\
+ !*** ./node_modules/antd/es/popover/style/index.js ***!
+ \*****************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style */ 14747);
+/* harmony import */ var _style_motion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../style/motion */ 50438);
+/* harmony import */ var _style_placementArrow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../style/placementArrow */ 97414);
+/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme/internal */ 8796);
+/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../theme/internal */ 67968);
+/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../theme/internal */ 45503);
+
+
+
+
+const genBaseStyle = token => {
+ const {
+ componentCls,
+ popoverColor,
+ minWidth,
+ fontWeightStrong,
+ popoverPadding,
+ boxShadowSecondary,
+ colorTextHeading,
+ borderRadiusLG: borderRadius,
+ zIndexPopup,
+ marginXS,
+ colorBgElevated,
+ popoverBg
+ } = token;
+ return [{
+ [componentCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), {
+ position: 'absolute',
+ top: 0,
+ // use `left` to fix https://github.com/ant-design/ant-design/issues/39195
+ left: {
+ _skip_check_: true,
+ value: 0
+ },
+ zIndex: zIndexPopup,
+ fontWeight: 'normal',
+ whiteSpace: 'normal',
+ textAlign: 'start',
+ cursor: 'auto',
+ userSelect: 'text',
+ transformOrigin: `var(--arrow-x, 50%) var(--arrow-y, 50%)`,
+ '--antd-arrow-background-color': colorBgElevated,
+ '&-rtl': {
+ direction: 'rtl'
+ },
+ '&-hidden': {
+ display: 'none'
+ },
+ [`${componentCls}-content`]: {
+ position: 'relative'
+ },
+ [`${componentCls}-inner`]: {
+ backgroundColor: popoverBg,
+ backgroundClip: 'padding-box',
+ borderRadius,
+ boxShadow: boxShadowSecondary,
+ padding: popoverPadding
+ },
+ [`${componentCls}-title`]: {
+ minWidth,
+ marginBottom: marginXS,
+ color: colorTextHeading,
+ fontWeight: fontWeightStrong
+ },
+ [`${componentCls}-inner-content`]: {
+ color: popoverColor
+ }
+ })
+ },
+ // Arrow Style
+ (0,_style_placementArrow__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP)(token, {
+ colorBg: 'var(--antd-arrow-background-color)'
+ }),
+ // Pure Render
+ {
+ [`${componentCls}-pure`]: {
+ position: 'relative',
+ maxWidth: 'none',
+ margin: token.sizePopupArrow,
+ display: 'inline-block',
+ [`${componentCls}-content`]: {
+ display: 'inline-block'
+ }
+ }
+ }];
+};
+const genColorStyle = token => {
+ const {
+ componentCls
+ } = token;
+ return {
+ [componentCls]: _theme_internal__WEBPACK_IMPORTED_MODULE_2__/* .PresetColors.map */ .i.map(colorKey => {
+ const lightColor = token[`${colorKey}6`];
+ return {
+ [`&${componentCls}-${colorKey}`]: {
+ '--antd-arrow-background-color': lightColor,
+ [`${componentCls}-inner`]: {
+ backgroundColor: lightColor
+ },
+ [`${componentCls}-arrow`]: {
+ background: 'transparent'
+ }
+ }
+ };
+ })
+ };
+};
+const genWireframeStyle = token => {
+ const {
+ componentCls,
+ lineWidth,
+ lineType,
+ colorSplit,
+ paddingSM,
+ controlHeight,
+ fontSize,
+ lineHeight,
+ padding
+ } = token;
+ const titlePaddingBlockDist = controlHeight - Math.round(fontSize * lineHeight);
+ const popoverTitlePaddingBlockTop = titlePaddingBlockDist / 2;
+ const popoverTitlePaddingBlockBottom = titlePaddingBlockDist / 2 - lineWidth;
+ const popoverPaddingHorizontal = padding;
+ return {
+ [componentCls]: {
+ [`${componentCls}-inner`]: {
+ padding: 0
+ },
+ [`${componentCls}-title`]: {
+ margin: 0,
+ padding: `${popoverTitlePaddingBlockTop}px ${popoverPaddingHorizontal}px ${popoverTitlePaddingBlockBottom}px`,
+ borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`
+ },
+ [`${componentCls}-inner-content`]: {
+ padding: `${paddingSM}px ${popoverPaddingHorizontal}px`
+ }
+ }
+ };
+};
+/* harmony default export */ __webpack_exports__["Z"] = ((0,_theme_internal__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)('Popover', token => {
+ const {
+ colorBgElevated,
+ colorText,
+ wireframe
+ } = token;
+ const popoverToken = (0,_theme_internal__WEBPACK_IMPORTED_MODULE_4__/* .merge */ .TS)(token, {
+ popoverPadding: 12,
+ popoverBg: colorBgElevated,
+ popoverColor: colorText
+ });
+ return [genBaseStyle(popoverToken), genColorStyle(popoverToken), wireframe && genWireframeStyle(popoverToken), (0,_style_motion__WEBPACK_IMPORTED_MODULE_5__/* .initZoomMotion */ ._y)(popoverToken, 'zoom-big')];
+}, token => ({
+ width: 177,
+ minWidth: 177,
+ zIndexPopup: token.zIndexPopupBase + 30
+}), {
+ deprecatedTokens: [['width', 'minWidth']]
+}));
+
+/***/ }),
+
+/***/ 89777:
+/*!*************************************************!*\
+ !*** ./node_modules/echarts-wordcloud/index.js ***!
+ \*************************************************/
+/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+
+/* unused reexport */ __webpack_require__(/*! ./src/wordCloud */ 88157);
+
+/***/ }),
+
+/***/ 50024:
+/*!***************************************************************!*\
+ !*** ./node_modules/echarts-wordcloud/src/WordCloudSeries.js ***!
+ \***************************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+var completeDimensions = __webpack_require__(/*! echarts/lib/data/helper/completeDimensions */ 34380);
+var echarts = __webpack_require__(/*! echarts/lib/echarts */ 70492);
+
+echarts.extendSeriesModel({
+
+ type: 'series.wordCloud',
+
+ visualColorAccessPath: 'textStyle.normal.color',
+
+ optionUpdated: function () {
+ var option = this.option;
+ option.gridSize = Math.max(Math.floor(option.gridSize), 4);
+ },
+
+ getInitialData: function (option, ecModel) {
+ var dimensions = completeDimensions(['value'], option.data);
+ var list = new echarts.List(dimensions, this);
+ list.initData(option.data);
+ return list;
+ },
+
+ // Most of options are from https://github.com/timdream/wordcloud2.js/blob/gh-pages/API.md
+ defaultOption: {
+
+ maskImage: null,
+
+ // Shape can be 'circle', 'cardioid', 'diamond', 'triangle-forward', 'triangle', 'pentagon', 'star'
+ shape: 'circle',
+
+ left: 'center',
+
+ top: 'center',
+
+ width: '70%',
+
+ height: '80%',
+
+ sizeRange: [12, 60],
+
+ rotationRange: [-90, 90],
+
+ rotationStep: 45,
+
+ gridSize: 8,
+
+ drawOutOfBound: false,
+
+ textStyle: {
+ normal: {
+ fontWeight: 'normal'
+ }
+ }
+ }
+});
+
+
+/***/ }),
+
+/***/ 40885:
+/*!*************************************************************!*\
+ !*** ./node_modules/echarts-wordcloud/src/WordCloudView.js ***!
+ \*************************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+var echarts = __webpack_require__(/*! echarts/lib/echarts */ 70492);
+
+function getShallow(model, path) {
+ return model && model.getShallow(path);
+}
+
+echarts.extendChartView({
+
+ type: 'wordCloud',
+
+ render: function (seriesModel, ecModel, api) {
+ var group = this.group;
+ group.removeAll();
+
+ var data = seriesModel.getData();
+
+ var gridSize = seriesModel.get('gridSize');
+
+ seriesModel.layoutInstance.ondraw = function (text, size, dataIdx, drawn) {
+ var itemModel = data.getItemModel(dataIdx);
+ var textStyleModel = itemModel.getModel('textStyle.normal');
+ var emphasisTextStyleModel = itemModel.getModel('textStyle.emphasis');
+
+ var textEl = new echarts.graphic.Text({
+ style: echarts.graphic.setTextStyle({}, textStyleModel, {
+ x: drawn.info.fillTextOffsetX,
+ y: drawn.info.fillTextOffsetY + size * 0.5,
+ text: text,
+ textBaseline: 'middle',
+ textFill: data.getItemVisual(dataIdx, 'color'),
+ fontSize: size
+ }),
+ scale: [1 / drawn.info.mu, 1 / drawn.info.mu],
+ position: [
+ (drawn.gx + drawn.info.gw / 2) * gridSize,
+ (drawn.gy + drawn.info.gh / 2) * gridSize
+ ],
+ rotation: drawn.rot
+ });
+
+ group.add(textEl);
+
+ data.setItemGraphicEl(dataIdx, textEl);
+
+ echarts.graphic.setHoverStyle(
+ textEl,
+ echarts.graphic.setTextStyle({}, emphasisTextStyleModel, null, {forMerge: true}, true)
+ );
+ };
+
+ this._model = seriesModel;
+ },
+
+ remove: function () {
+ this.group.removeAll();
+
+ this._model.layoutInstance.dispose();
+ },
+
+ dispose: function () {
+ this._model.layoutInstance.dispose();
+ }
+});
+
+
+/***/ }),
+
+/***/ 62255:
+/*!******************************************************!*\
+ !*** ./node_modules/echarts-wordcloud/src/layout.js ***!
+ \******************************************************/
+/***/ (function(module, exports) {
+
+"use strict";
+var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
+ * wordcloud2.js
+ * http://timdream.org/wordcloud2.js/
+ *
+ * Copyright 2011 - 2013 Tim Chien
+ * Released under the MIT license
+ */
+
+
+
+// setImmediate
+if (!window.setImmediate) {
+ window.setImmediate = (function setupSetImmediate() {
+ return window.msSetImmediate ||
+ window.webkitSetImmediate ||
+ window.mozSetImmediate ||
+ window.oSetImmediate ||
+ (function setupSetZeroTimeout() {
+ if (!window.postMessage || !window.addEventListener) {
+ return null;
+ }
+
+ var callbacks = [undefined];
+ var message = 'zero-timeout-message';
+
+ // Like setTimeout, but only takes a function argument. There's
+ // no time argument (always zero) and no arguments (you have to
+ // use a closure).
+ var setZeroTimeout = function setZeroTimeout(callback) {
+ var id = callbacks.length;
+ callbacks.push(callback);
+ window.postMessage(message + id.toString(36), '*');
+
+ return id;
+ };
+
+ window.addEventListener('message', function setZeroTimeoutMessage(evt) {
+ // Skipping checking event source, retarded IE confused this window
+ // object with another in the presence of iframe
+ if (typeof evt.data !== 'string' ||
+ evt.data.substr(0, message.length) !== message/* ||
+ evt.source !== window */) {
+ return;
+ }
+
+ evt.stopImmediatePropagation();
+
+ var id = parseInt(evt.data.substr(message.length), 36);
+ if (!callbacks[id]) {
+ return;
+ }
+
+ callbacks[id]();
+ callbacks[id] = undefined;
+ }, true);
+
+ /* specify clearImmediate() here since we need the scope */
+ window.clearImmediate = function clearZeroTimeout(id) {
+ if (!callbacks[id]) {
+ return;
+ }
+
+ callbacks[id] = undefined;
+ };
+
+ return setZeroTimeout;
+ })() ||
+ // fallback
+ function setImmediateFallback(fn) {
+ window.setTimeout(fn, 0);
+ };
+ })();
+}
+
+if (!window.clearImmediate) {
+ window.clearImmediate = (function setupClearImmediate() {
+ return window.msClearImmediate ||
+ window.webkitClearImmediate ||
+ window.mozClearImmediate ||
+ window.oClearImmediate ||
+ // "clearZeroTimeout" is implement on the previous block ||
+ // fallback
+ function clearImmediateFallback(timer) {
+ window.clearTimeout(timer);
+ };
+ })();
+}
+
+(function(global) {
+
+ // Check if WordCloud can run on this browser
+ var isSupported = (function isSupported() {
+ var canvas = document.createElement('canvas');
+ if (!canvas || !canvas.getContext) {
+ return false;
+ }
+
+ var ctx = canvas.getContext('2d');
+ if (!ctx.getImageData) {
+ return false;
+ }
+ if (!ctx.fillText) {
+ return false;
+ }
+
+ if (!Array.prototype.some) {
+ return false;
+ }
+ if (!Array.prototype.push) {
+ return false;
+ }
+
+ return true;
+ }());
+
+ // Find out if the browser impose minium font size by
+ // drawing small texts on a canvas and measure it's width.
+ var minFontSize = (function getMinFontSize() {
+ if (!isSupported) {
+ return;
+ }
+
+ var ctx = document.createElement('canvas').getContext('2d');
+
+ // start from 20
+ var size = 20;
+
+ // two sizes to measure
+ var hanWidth, mWidth;
+
+ while (size) {
+ ctx.font = size.toString(10) + 'px sans-serif';
+ if ((ctx.measureText('\uFF37').width === hanWidth) &&
+ (ctx.measureText('m').width) === mWidth) {
+ return (size + 1);
+ }
+
+ hanWidth = ctx.measureText('\uFF37').width;
+ mWidth = ctx.measureText('m').width;
+
+ size--;
+ }
+
+ return 0;
+ })();
+
+ // Based on http://jsfromhell.com/array/shuffle
+ var shuffleArray = function shuffleArray(arr) {
+ for (var j, x, i = arr.length; i;
+ j = Math.floor(Math.random() * i),
+ x = arr[--i], arr[i] = arr[j],
+ arr[j] = x) {}
+ return arr;
+ };
+
+ var WordCloud = function WordCloud(elements, options) {
+ if (!isSupported) {
+ return;
+ }
+
+ if (!Array.isArray(elements)) {
+ elements = [elements];
+ }
+
+ elements.forEach(function(el, i) {
+ if (typeof el === 'string') {
+ elements[i] = document.getElementById(el);
+ if (!elements[i]) {
+ throw 'The element id specified is not found.';
+ }
+ } else if (!el.tagName && !el.appendChild) {
+ throw 'You must pass valid HTML elements, or ID of the element.';
+ }
+ });
+
+ /* Default values to be overwritten by options object */
+ var settings = {
+ list: [],
+ fontFamily: '"Trebuchet MS", "Heiti TC", "微軟正黑體", ' +
+ '"Arial Unicode MS", "Droid Fallback Sans", sans-serif',
+ fontWeight: 'normal',
+ color: 'random-dark',
+ minSize: 0, // 0 to disable
+ weightFactor: 1,
+ clearCanvas: true,
+ backgroundColor: '#fff', // opaque white = rgba(255, 255, 255, 1)
+
+ gridSize: 8,
+ drawOutOfBound: false,
+ origin: null,
+
+ drawMask: false,
+ maskColor: 'rgba(255,0,0,0.3)',
+ maskGapWidth: 0.3,
+
+ wait: 0,
+ abortThreshold: 0, // disabled
+ abort: function noop() {},
+
+ minRotation: - Math.PI / 2,
+ maxRotation: Math.PI / 2,
+ rotationStep: 0.1,
+
+ shuffle: true,
+ rotateRatio: 0.1,
+
+ shape: 'circle',
+ ellipticity: 0.65,
+
+ classes: null,
+
+ hover: null,
+ click: null
+ };
+
+ if (options) {
+ for (var key in options) {
+ if (key in settings) {
+ settings[key] = options[key];
+ }
+ }
+ }
+
+ /* Convert weightFactor into a function */
+ if (typeof settings.weightFactor !== 'function') {
+ var factor = settings.weightFactor;
+ settings.weightFactor = function weightFactor(pt) {
+ return pt * factor; //in px
+ };
+ }
+
+ /* Convert shape into a function */
+ if (typeof settings.shape !== 'function') {
+ switch (settings.shape) {
+ case 'circle':
+ /* falls through */
+ default:
+ // 'circle' is the default and a shortcut in the code loop.
+ settings.shape = 'circle';
+ break;
+
+ case 'cardioid':
+ settings.shape = function shapeCardioid(theta) {
+ return 1 - Math.sin(theta);
+ };
+ break;
+
+ /*
+ To work out an X-gon, one has to calculate "m",
+ where 1/(cos(2*PI/X)+m*sin(2*PI/X)) = 1/(cos(0)+m*sin(0))
+ http://www.wolframalpha.com/input/?i=1%2F%28cos%282*PI%2FX%29%2Bm*sin%28
+ 2*PI%2FX%29%29+%3D+1%2F%28cos%280%29%2Bm*sin%280%29%29
+ Copy the solution into polar equation r = 1/(cos(t') + m*sin(t'))
+ where t' equals to mod(t, 2PI/X);
+ */
+
+ case 'diamond':
+ case 'square':
+ // http://www.wolframalpha.com/input/?i=plot+r+%3D+1%2F%28cos%28mod+
+ // %28t%2C+PI%2F2%29%29%2Bsin%28mod+%28t%2C+PI%2F2%29%29%29%2C+t+%3D
+ // +0+..+2*PI
+ settings.shape = function shapeSquare(theta) {
+ var thetaPrime = theta % (2 * Math.PI / 4);
+ return 1 / (Math.cos(thetaPrime) + Math.sin(thetaPrime));
+ };
+ break;
+
+ case 'triangle-forward':
+ // http://www.wolframalpha.com/input/?i=plot+r+%3D+1%2F%28cos%28mod+
+ // %28t%2C+2*PI%2F3%29%29%2Bsqrt%283%29sin%28mod+%28t%2C+2*PI%2F3%29
+ // %29%29%2C+t+%3D+0+..+2*PI
+ settings.shape = function shapeTriangle(theta) {
+ var thetaPrime = theta % (2 * Math.PI / 3);
+ return 1 / (Math.cos(thetaPrime) +
+ Math.sqrt(3) * Math.sin(thetaPrime));
+ };
+ break;
+
+ case 'triangle':
+ case 'triangle-upright':
+ settings.shape = function shapeTriangle(theta) {
+ var thetaPrime = (theta + Math.PI * 3 / 2) % (2 * Math.PI / 3);
+ return 1 / (Math.cos(thetaPrime) +
+ Math.sqrt(3) * Math.sin(thetaPrime));
+ };
+ break;
+
+ case 'pentagon':
+ settings.shape = function shapePentagon(theta) {
+ var thetaPrime = (theta + 0.955) % (2 * Math.PI / 5);
+ return 1 / (Math.cos(thetaPrime) +
+ 0.726543 * Math.sin(thetaPrime));
+ };
+ break;
+
+ case 'star':
+ settings.shape = function shapeStar(theta) {
+ var thetaPrime = (theta + 0.955) % (2 * Math.PI / 10);
+ if ((theta + 0.955) % (2 * Math.PI / 5) - (2 * Math.PI / 10) >= 0) {
+ return 1 / (Math.cos((2 * Math.PI / 10) - thetaPrime) +
+ 3.07768 * Math.sin((2 * Math.PI / 10) - thetaPrime));
+ } else {
+ return 1 / (Math.cos(thetaPrime) +
+ 3.07768 * Math.sin(thetaPrime));
+ }
+ };
+ break;
+ }
+ }
+
+ /* Make sure gridSize is a whole number and is not smaller than 4px */
+ settings.gridSize = Math.max(Math.floor(settings.gridSize), 4);
+
+ /* shorthand */
+ var g = settings.gridSize;
+ var maskRectWidth = g - settings.maskGapWidth;
+
+ /* normalize rotation settings */
+ var rotationRange = Math.abs(settings.maxRotation - settings.minRotation);
+ var minRotation = Math.min(settings.maxRotation, settings.minRotation);
+ var rotationStep = settings.rotationStep;
+
+ /* information/object available to all functions, set when start() */
+ var grid, // 2d array containing filling information
+ ngx, ngy, // width and height of the grid
+ center, // position of the center of the cloud
+ maxRadius;
+
+ /* timestamp for measuring each putWord() action */
+ var escapeTime;
+
+ /* function for getting the color of the text */
+ var getTextColor;
+ function random_hsl_color(min, max) {
+ return 'hsl(' +
+ (Math.random() * 360).toFixed() + ',' +
+ (Math.random() * 30 + 70).toFixed() + '%,' +
+ (Math.random() * (max - min) + min).toFixed() + '%)';
+ }
+ switch (settings.color) {
+ case 'random-dark':
+ getTextColor = function getRandomDarkColor() {
+ return random_hsl_color(10, 50);
+ };
+ break;
+
+ case 'random-light':
+ getTextColor = function getRandomLightColor() {
+ return random_hsl_color(50, 90);
+ };
+ break;
+
+ default:
+ if (typeof settings.color === 'function') {
+ getTextColor = settings.color;
+ }
+ break;
+ }
+
+ /* function for getting the classes of the text */
+ var getTextClasses = null;
+ if (typeof settings.classes === 'function') {
+ getTextClasses = settings.classes;
+ }
+
+ /* Interactive */
+ var interactive = false;
+ var infoGrid = [];
+ var hovered;
+
+ var getInfoGridFromMouseTouchEvent =
+ function getInfoGridFromMouseTouchEvent(evt) {
+ var canvas = evt.currentTarget;
+ var rect = canvas.getBoundingClientRect();
+ var clientX;
+ var clientY;
+ /** Detect if touches are available */
+ if (evt.touches) {
+ clientX = evt.touches[0].clientX;
+ clientY = evt.touches[0].clientY;
+ } else {
+ clientX = evt.clientX;
+ clientY = evt.clientY;
+ }
+ var eventX = clientX - rect.left;
+ var eventY = clientY - rect.top;
+
+ var x = Math.floor(eventX * ((canvas.width / rect.width) || 1) / g);
+ var y = Math.floor(eventY * ((canvas.height / rect.height) || 1) / g);
+
+ return infoGrid[x][y];
+ };
+
+ var wordcloudhover = function wordcloudhover(evt) {
+ var info = getInfoGridFromMouseTouchEvent(evt);
+
+ if (hovered === info) {
+ return;
+ }
+
+ hovered = info;
+ if (!info) {
+ settings.hover(undefined, undefined, evt);
+
+ return;
+ }
+
+ settings.hover(info.item, info.dimension, evt);
+
+ };
+
+ var wordcloudclick = function wordcloudclick(evt) {
+ var info = getInfoGridFromMouseTouchEvent(evt);
+ if (!info) {
+ return;
+ }
+
+ settings.click(info.item, info.dimension, evt);
+ evt.preventDefault();
+ };
+
+ /* Get points on the grid for a given radius away from the center */
+ var pointsAtRadius = [];
+ var getPointsAtRadius = function getPointsAtRadius(radius) {
+ if (pointsAtRadius[radius]) {
+ return pointsAtRadius[radius];
+ }
+
+ // Look for these number of points on each radius
+ var T = radius * 8;
+
+ // Getting all the points at this radius
+ var t = T;
+ var points = [];
+
+ if (radius === 0) {
+ points.push([center[0], center[1], 0]);
+ }
+
+ while (t--) {
+ // distort the radius to put the cloud in shape
+ var rx = 1;
+ if (settings.shape !== 'circle') {
+ rx = settings.shape(t / T * 2 * Math.PI); // 0 to 1
+ }
+
+ // Push [x, y, t]; t is used solely for getTextColor()
+ points.push([
+ center[0] + radius * rx * Math.cos(-t / T * 2 * Math.PI),
+ center[1] + radius * rx * Math.sin(-t / T * 2 * Math.PI) *
+ settings.ellipticity,
+ t / T * 2 * Math.PI]);
+ }
+
+ pointsAtRadius[radius] = points;
+ return points;
+ };
+
+ /* Return true if we had spent too much time */
+ var exceedTime = function exceedTime() {
+ return ((settings.abortThreshold > 0) &&
+ ((new Date()).getTime() - escapeTime > settings.abortThreshold));
+ };
+
+ /* Get the deg of rotation according to settings, and luck. */
+ var getRotateDeg = function getRotateDeg() {
+ if (settings.rotateRatio === 0) {
+ return 0;
+ }
+
+ if (Math.random() > settings.rotateRatio) {
+ return 0;
+ }
+
+ if (rotationRange === 0) {
+ return minRotation;
+ }
+
+ return minRotation + Math.round(Math.random() * rotationRange / rotationStep) * rotationStep;
+ };
+
+ var getTextInfo = function getTextInfo(word, weight, rotateDeg) {
+ // calculate the acutal font size
+ // fontSize === 0 means weightFactor function wants the text skipped,
+ // and size < minSize means we cannot draw the text.
+ var debug = false;
+ var fontSize = settings.weightFactor(weight);
+ if (fontSize <= settings.minSize) {
+ return false;
+ }
+
+ // Scale factor here is to make sure fillText is not limited by
+ // the minium font size set by browser.
+ // It will always be 1 or 2n.
+ var mu = 1;
+ if (fontSize < minFontSize) {
+ mu = (function calculateScaleFactor() {
+ var mu = 2;
+ while (mu * fontSize < minFontSize) {
+ mu += 2;
+ }
+ return mu;
+ })();
+ }
+
+ var fcanvas = document.createElement('canvas');
+ var fctx = fcanvas.getContext('2d', { willReadFrequently: true });
+
+ fctx.font = settings.fontWeight + ' ' +
+ (fontSize * mu).toString(10) + 'px ' + settings.fontFamily;
+
+ // Estimate the dimension of the text with measureText().
+ var fw = fctx.measureText(word).width / mu;
+ var fh = Math.max(fontSize * mu,
+ fctx.measureText('m').width,
+ fctx.measureText('\uFF37').width) / mu;
+
+ // Create a boundary box that is larger than our estimates,
+ // so text don't get cut of (it sill might)
+ var boxWidth = fw + fh * 2;
+ var boxHeight = fh * 3;
+ var fgw = Math.ceil(boxWidth / g);
+ var fgh = Math.ceil(boxHeight / g);
+ boxWidth = fgw * g;
+ boxHeight = fgh * g;
+
+ // Calculate the proper offsets to make the text centered at
+ // the preferred position.
+
+ // This is simply half of the width.
+ var fillTextOffsetX = - fw / 2;
+ // Instead of moving the box to the exact middle of the preferred
+ // position, for Y-offset we move 0.4 instead, so Latin alphabets look
+ // vertical centered.
+ var fillTextOffsetY = - fh * 0.4;
+
+ // Calculate the actual dimension of the canvas, considering the rotation.
+ var cgh = Math.ceil((boxWidth * Math.abs(Math.sin(rotateDeg)) +
+ boxHeight * Math.abs(Math.cos(rotateDeg))) / g);
+ var cgw = Math.ceil((boxWidth * Math.abs(Math.cos(rotateDeg)) +
+ boxHeight * Math.abs(Math.sin(rotateDeg))) / g);
+ var width = cgw * g;
+ var height = cgh * g;
+
+ fcanvas.setAttribute('width', width);
+ fcanvas.setAttribute('height', height);
+
+ if (debug) {
+ // Attach fcanvas to the DOM
+ document.body.appendChild(fcanvas);
+ // Save it's state so that we could restore and draw the grid correctly.
+ fctx.save();
+ }
+
+ // Scale the canvas with |mu|.
+ fctx.scale(1 / mu, 1 / mu);
+ fctx.translate(width * mu / 2, height * mu / 2);
+ fctx.rotate(- rotateDeg);
+
+ // Once the width/height is set, ctx info will be reset.
+ // Set it again here.
+ fctx.font = settings.fontWeight + ' ' +
+ (fontSize * mu).toString(10) + 'px ' + settings.fontFamily;
+
+ // Fill the text into the fcanvas.
+ // XXX: We cannot because textBaseline = 'top' here because
+ // Firefox and Chrome uses different default line-height for canvas.
+ // Please read https://bugzil.la/737852#c6.
+ // Here, we use textBaseline = 'middle' and draw the text at exactly
+ // 0.5 * fontSize lower.
+ fctx.fillStyle = '#000';
+ fctx.textBaseline = 'middle';
+ fctx.fillText(word, fillTextOffsetX * mu,
+ (fillTextOffsetY + fontSize * 0.5) * mu);
+
+ // Get the pixels of the text
+ var imageData = fctx.getImageData(0, 0, width, height).data;
+
+ if (exceedTime()) {
+ return false;
+ }
+
+ if (debug) {
+ // Draw the box of the original estimation
+ fctx.strokeRect(fillTextOffsetX * mu,
+ fillTextOffsetY, fw * mu, fh * mu);
+ fctx.restore();
+ }
+
+ // Read the pixels and save the information to the occupied array
+ var occupied = [];
+ var gx = cgw, gy, x, y;
+ var bounds = [cgh / 2, cgw / 2, cgh / 2, cgw / 2];
+ while (gx--) {
+ gy = cgh;
+ while (gy--) {
+ y = g;
+ singleGridLoop: {
+ while (y--) {
+ x = g;
+ while (x--) {
+ if (imageData[((gy * g + y) * width +
+ (gx * g + x)) * 4 + 3]) {
+ occupied.push([gx, gy]);
+
+ if (gx < bounds[3]) {
+ bounds[3] = gx;
+ }
+ if (gx > bounds[1]) {
+ bounds[1] = gx;
+ }
+ if (gy < bounds[0]) {
+ bounds[0] = gy;
+ }
+ if (gy > bounds[2]) {
+ bounds[2] = gy;
+ }
+
+ if (debug) {
+ fctx.fillStyle = 'rgba(255, 0, 0, 0.5)';
+ fctx.fillRect(gx * g, gy * g, g - 0.5, g - 0.5);
+ }
+ break singleGridLoop;
+ }
+ }
+ }
+ if (debug) {
+ fctx.fillStyle = 'rgba(0, 0, 255, 0.5)';
+ fctx.fillRect(gx * g, gy * g, g - 0.5, g - 0.5);
+ }
+ }
+ }
+ }
+
+ if (debug) {
+ fctx.fillStyle = 'rgba(0, 255, 0, 0.5)';
+ fctx.fillRect(bounds[3] * g,
+ bounds[0] * g,
+ (bounds[1] - bounds[3] + 1) * g,
+ (bounds[2] - bounds[0] + 1) * g);
+ }
+
+ // Return information needed to create the text on the real canvas
+ return {
+ mu: mu,
+ occupied: occupied,
+ bounds: bounds,
+ gw: cgw,
+ gh: cgh,
+ fillTextOffsetX: fillTextOffsetX,
+ fillTextOffsetY: fillTextOffsetY,
+ fillTextWidth: fw,
+ fillTextHeight: fh,
+ fontSize: fontSize
+ };
+ };
+
+ /* Determine if there is room available in the given dimension */
+ var canFitText = function canFitText(gx, gy, gw, gh, occupied) {
+ // Go through the occupied points,
+ // return false if the space is not available.
+ var i = occupied.length;
+ while (i--) {
+ var px = gx + occupied[i][0];
+ var py = gy + occupied[i][1];
+
+ if (px >= ngx || py >= ngy || px < 0 || py < 0) {
+ if (!settings.drawOutOfBound) {
+ return false;
+ }
+ continue;
+ }
+
+ if (!grid[px][py]) {
+ return false;
+ }
+ }
+ return true;
+ };
+
+ /* Actually draw the text on the grid */
+ var drawText = function drawText(gx, gy, info, word, weight,
+ distance, theta, rotateDeg, attributes) {
+
+ var fontSize = info.fontSize;
+ var color;
+ if (getTextColor) {
+ color = getTextColor(word, weight, fontSize, distance, theta);
+ } else {
+ color = settings.color;
+ }
+
+ var classes;
+ if (getTextClasses) {
+ classes = getTextClasses(word, weight, fontSize, distance, theta);
+ } else {
+ classes = settings.classes;
+ }
+
+ var dimension;
+ var bounds = info.bounds;
+ dimension = {
+ x: (gx + bounds[3]) * g,
+ y: (gy + bounds[0]) * g,
+ w: (bounds[1] - bounds[3] + 1) * g,
+ h: (bounds[2] - bounds[0] + 1) * g
+ };
+
+ elements.forEach(function(el) {
+ if (el.getContext) {
+ var ctx = el.getContext('2d');
+ var mu = info.mu;
+
+ // Save the current state before messing it
+ ctx.save();
+ ctx.scale(1 / mu, 1 / mu);
+
+ ctx.font = settings.fontWeight + ' ' +
+ (fontSize * mu).toString(10) + 'px ' + settings.fontFamily;
+ ctx.fillStyle = color;
+
+ // Translate the canvas position to the origin coordinate of where
+ // the text should be put.
+ ctx.translate((gx + info.gw / 2) * g * mu,
+ (gy + info.gh / 2) * g * mu);
+
+ if (rotateDeg !== 0) {
+ ctx.rotate(- rotateDeg);
+ }
+
+ // Finally, fill the text.
+
+ // XXX: We cannot because textBaseline = 'top' here because
+ // Firefox and Chrome uses different default line-height for canvas.
+ // Please read https://bugzil.la/737852#c6.
+ // Here, we use textBaseline = 'middle' and draw the text at exactly
+ // 0.5 * fontSize lower.
+ ctx.textBaseline = 'middle';
+ ctx.fillText(word, info.fillTextOffsetX * mu,
+ (info.fillTextOffsetY + fontSize * 0.5) * mu);
+
+ // The below box is always matches how s are positioned
+ /* ctx.strokeRect(info.fillTextOffsetX, info.fillTextOffsetY,
+ info.fillTextWidth, info.fillTextHeight); */
+
+ // Restore the state.
+ ctx.restore();
+ } else {
+ // drawText on DIV element
+ var span = document.createElement('span');
+ var transformRule = '';
+ transformRule = 'rotate(' + (- rotateDeg / Math.PI * 180) + 'deg) ';
+ if (info.mu !== 1) {
+ transformRule +=
+ 'translateX(-' + (info.fillTextWidth / 4) + 'px) ' +
+ 'scale(' + (1 / info.mu) + ')';
+ }
+ var styleRules = {
+ 'position': 'absolute',
+ 'display': 'block',
+ 'font': settings.fontWeight + ' ' +
+ (fontSize * info.mu) + 'px ' + settings.fontFamily,
+ 'left': ((gx + info.gw / 2) * g + info.fillTextOffsetX) + 'px',
+ 'top': ((gy + info.gh / 2) * g + info.fillTextOffsetY) + 'px',
+ 'width': info.fillTextWidth + 'px',
+ 'height': info.fillTextHeight + 'px',
+ 'lineHeight': fontSize + 'px',
+ 'whiteSpace': 'nowrap',
+ 'transform': transformRule,
+ 'webkitTransform': transformRule,
+ 'msTransform': transformRule,
+ 'transformOrigin': '50% 40%',
+ 'webkitTransformOrigin': '50% 40%',
+ 'msTransformOrigin': '50% 40%'
+ };
+ if (color) {
+ styleRules.color = color;
+ }
+ span.textContent = word;
+ for (var cssProp in styleRules) {
+ span.style[cssProp] = styleRules[cssProp];
+ }
+ if (attributes) {
+ for (var attribute in attributes) {
+ span.setAttribute(attribute, attributes[attribute]);
+ }
+ }
+ if (classes) {
+ span.className += classes;
+ }
+ el.appendChild(span);
+ }
+ });
+ };
+
+ /* Help function to updateGrid */
+ var fillGridAt = function fillGridAt(x, y, drawMask, dimension, item) {
+ if (x >= ngx || y >= ngy || x < 0 || y < 0) {
+ return;
+ }
+
+ grid[x][y] = false;
+
+ if (drawMask) {
+ var ctx = elements[0].getContext('2d');
+ ctx.fillRect(x * g, y * g, maskRectWidth, maskRectWidth);
+ }
+
+ if (interactive) {
+ infoGrid[x][y] = { item: item, dimension: dimension };
+ }
+ };
+
+ /* Update the filling information of the given space with occupied points.
+ Draw the mask on the canvas if necessary. */
+ var updateGrid = function updateGrid(gx, gy, gw, gh, info, item) {
+ var occupied = info.occupied;
+ var drawMask = settings.drawMask;
+ var ctx;
+ if (drawMask) {
+ ctx = elements[0].getContext('2d');
+ ctx.save();
+ ctx.fillStyle = settings.maskColor;
+ }
+
+ var dimension;
+ if (interactive) {
+ var bounds = info.bounds;
+ dimension = {
+ x: (gx + bounds[3]) * g,
+ y: (gy + bounds[0]) * g,
+ w: (bounds[1] - bounds[3] + 1) * g,
+ h: (bounds[2] - bounds[0] + 1) * g
+ };
+ }
+
+ var i = occupied.length;
+ while (i--) {
+ var px = gx + occupied[i][0];
+ var py = gy + occupied[i][1];
+
+ if (px >= ngx || py >= ngy || px < 0 || py < 0) {
+ continue;
+ }
+
+ fillGridAt(px, py, drawMask, dimension, item);
+ }
+
+ if (drawMask) {
+ ctx.restore();
+ }
+ };
+
+ /* putWord() processes each item on the list,
+ calculate it's size and determine it's position, and actually
+ put it on the canvas. */
+ var putWord = function putWord(item) {
+ var word, weight, attributes;
+ if (Array.isArray(item)) {
+ word = item[0];
+ weight = item[1];
+ } else {
+ word = item.word;
+ weight = item.weight;
+ attributes = item.attributes;
+ }
+ var rotateDeg = getRotateDeg();
+
+ // get info needed to put the text onto the canvas
+ var info = getTextInfo(word, weight, rotateDeg);
+
+ // not getting the info means we shouldn't be drawing this one.
+ if (!info) {
+ return false;
+ }
+
+ if (exceedTime()) {
+ return false;
+ }
+
+ // If drawOutOfBound is set to false,
+ // skip the loop if we have already know the bounding box of
+ // word is larger than the canvas.
+ if (!settings.drawOutOfBound) {
+ var bounds = info.bounds;
+ if ((bounds[1] - bounds[3] + 1) > ngx ||
+ (bounds[2] - bounds[0] + 1) > ngy) {
+ return false;
+ }
+ }
+
+ // Determine the position to put the text by
+ // start looking for the nearest points
+ var r = maxRadius + 1;
+
+ var tryToPutWordAtPoint = function(gxy) {
+ var gx = Math.floor(gxy[0] - info.gw / 2);
+ var gy = Math.floor(gxy[1] - info.gh / 2);
+ var gw = info.gw;
+ var gh = info.gh;
+
+ // If we cannot fit the text at this position, return false
+ // and go to the next position.
+ if (!canFitText(gx, gy, gw, gh, info.occupied)) {
+ return false;
+ }
+
+ // Actually put the text on the canvas
+ drawText(gx, gy, info, word, weight,
+ (maxRadius - r), gxy[2], rotateDeg, attributes);
+
+ // Mark the spaces on the grid as filled
+ updateGrid(gx, gy, gw, gh, info, item);
+
+ return {
+ gx: gx,
+ gy: gy,
+ rot: rotateDeg,
+ info: info
+ };
+ };
+
+ while (r--) {
+ var points = getPointsAtRadius(maxRadius - r);
+
+ if (settings.shuffle) {
+ points = [].concat(points);
+ shuffleArray(points);
+ }
+
+ // Try to fit the words by looking at each point.
+ // array.some() will stop and return true
+ // when putWordAtPoint() returns true.
+ for (var i = 0; i < points.length; i++) {
+ var res = tryToPutWordAtPoint(points[i]);
+ if (res) {
+ return res;
+ }
+ }
+
+ // var drawn = points.some(tryToPutWordAtPoint);
+ // if (drawn) {
+ // // leave putWord() and return true
+ // return true;
+ // }
+ }
+ // we tried all distances but text won't fit, return null
+ return null;
+ };
+
+ /* Send DOM event to all elements. Will stop sending event and return
+ if the previous one is canceled (for cancelable events). */
+ var sendEvent = function sendEvent(type, cancelable, detail) {
+ if (cancelable) {
+ return !elements.some(function(el) {
+ var evt = document.createEvent('CustomEvent');
+ evt.initCustomEvent(type, true, cancelable, detail || {});
+ return !el.dispatchEvent(evt);
+ }, this);
+ } else {
+ elements.forEach(function(el) {
+ var evt = document.createEvent('CustomEvent');
+ evt.initCustomEvent(type, true, cancelable, detail || {});
+ el.dispatchEvent(evt);
+ }, this);
+ }
+ };
+
+ /* Start drawing on a canvas */
+ var start = function start() {
+ // For dimensions, clearCanvas etc.,
+ // we only care about the first element.
+ var canvas = elements[0];
+
+ if (canvas.getContext) {
+ ngx = Math.ceil(canvas.width / g);
+ ngy = Math.ceil(canvas.height / g);
+ } else {
+ var rect = canvas.getBoundingClientRect();
+ ngx = Math.ceil(rect.width / g);
+ ngy = Math.ceil(rect.height / g);
+ }
+
+ // Sending a wordcloudstart event which cause the previous loop to stop.
+ // Do nothing if the event is canceled.
+ if (!sendEvent('wordcloudstart', true)) {
+ return;
+ }
+
+ // Determine the center of the word cloud
+ center = (settings.origin) ?
+ [settings.origin[0]/g, settings.origin[1]/g] :
+ [ngx / 2, ngy / 2];
+
+ // Maxium radius to look for space
+ maxRadius = Math.floor(Math.sqrt(ngx * ngx + ngy * ngy));
+
+ /* Clear the canvas only if the clearCanvas is set,
+ if not, update the grid to the current canvas state */
+ grid = [];
+
+ var gx, gy, i;
+ if (!canvas.getContext || settings.clearCanvas) {
+ elements.forEach(function(el) {
+ if (el.getContext) {
+ var ctx = el.getContext('2d');
+ ctx.fillStyle = settings.backgroundColor;
+ ctx.clearRect(0, 0, ngx * (g + 1), ngy * (g + 1));
+ ctx.fillRect(0, 0, ngx * (g + 1), ngy * (g + 1));
+ } else {
+ el.textContent = '';
+ el.style.backgroundColor = settings.backgroundColor;
+ el.style.position = 'relative';
+ }
+ });
+
+ /* fill the grid with empty state */
+ gx = ngx;
+ while (gx--) {
+ grid[gx] = [];
+ gy = ngy;
+ while (gy--) {
+ grid[gx][gy] = true;
+ }
+ }
+ } else {
+ /* Determine bgPixel by creating
+ another canvas and fill the specified background color. */
+ var bctx = document.createElement('canvas').getContext('2d');
+
+ bctx.fillStyle = settings.backgroundColor;
+ bctx.fillRect(0, 0, 1, 1);
+ var bgPixel = bctx.getImageData(0, 0, 1, 1).data;
+
+ /* Read back the pixels of the canvas we got to tell which part of the
+ canvas is empty.
+ (no clearCanvas only works with a canvas, not divs) */
+ var imageData =
+ canvas.getContext('2d').getImageData(0, 0, ngx * g, ngy * g).data;
+
+ gx = ngx;
+ var x, y;
+ while (gx--) {
+ grid[gx] = [];
+ gy = ngy;
+ while (gy--) {
+ y = g;
+ singleGridLoop: while (y--) {
+ x = g;
+ while (x--) {
+ i = 4;
+ while (i--) {
+ if (imageData[((gy * g + y) * ngx * g +
+ (gx * g + x)) * 4 + i] !== bgPixel[i]) {
+ grid[gx][gy] = false;
+ break singleGridLoop;
+ }
+ }
+ }
+ }
+ if (grid[gx][gy] !== false) {
+ grid[gx][gy] = true;
+ }
+ }
+ }
+
+ imageData = bctx = bgPixel = undefined;
+ }
+
+ // fill the infoGrid with empty state if we need it
+ if (settings.hover || settings.click) {
+
+ interactive = true;
+
+ /* fill the grid with empty state */
+ gx = ngx + 1;
+ while (gx--) {
+ infoGrid[gx] = [];
+ }
+
+ if (settings.hover) {
+ canvas.addEventListener('mousemove', wordcloudhover);
+ }
+
+ if (settings.click) {
+ canvas.addEventListener('click', wordcloudclick);
+ canvas.addEventListener('touchstart', wordcloudclick);
+ canvas.addEventListener('touchend', function (e) {
+ e.preventDefault();
+ });
+ canvas.style.webkitTapHighlightColor = 'rgba(0, 0, 0, 0)';
+ }
+
+ canvas.addEventListener('wordcloudstart', function stopInteraction() {
+ canvas.removeEventListener('wordcloudstart', stopInteraction);
+
+ canvas.removeEventListener('mousemove', wordcloudhover);
+ canvas.removeEventListener('click', wordcloudclick);
+ hovered = undefined;
+ });
+ }
+
+ i = 0;
+ var loopingFunction, stoppingFunction;
+ if (settings.wait !== 0) {
+ loopingFunction = window.setTimeout;
+ stoppingFunction = window.clearTimeout;
+ } else {
+ loopingFunction = window.setImmediate;
+ stoppingFunction = window.clearImmediate;
+ }
+
+ var addEventListener = function addEventListener(type, listener) {
+ elements.forEach(function(el) {
+ el.addEventListener(type, listener);
+ }, this);
+ };
+
+ var removeEventListener = function removeEventListener(type, listener) {
+ elements.forEach(function(el) {
+ el.removeEventListener(type, listener);
+ }, this);
+ };
+
+ var anotherWordCloudStart = function anotherWordCloudStart() {
+ removeEventListener('wordcloudstart', anotherWordCloudStart);
+ stoppingFunction(timer);
+ };
+
+ addEventListener('wordcloudstart', anotherWordCloudStart);
+
+ var timer = loopingFunction(function loop() {
+ if (i >= settings.list.length) {
+ stoppingFunction(timer);
+ sendEvent('wordcloudstop', false);
+ removeEventListener('wordcloudstart', anotherWordCloudStart);
+
+ return;
+ }
+ escapeTime = (new Date()).getTime();
+ var drawn = putWord(settings.list[i]);
+ var canceled = !sendEvent('wordclouddrawn', true, {
+ item: settings.list[i], drawn: drawn });
+ if (exceedTime() || canceled) {
+ stoppingFunction(timer);
+ settings.abort();
+ sendEvent('wordcloudabort', false);
+ sendEvent('wordcloudstop', false);
+ removeEventListener('wordcloudstart', anotherWordCloudStart);
+ return;
+ }
+ i++;
+ timer = loopingFunction(loop, settings.wait);
+ }, settings.wait);
+ };
+
+ // All set, start the drawing
+ start();
+ };
+
+ WordCloud.isSupported = isSupported;
+ WordCloud.minFontSize = minFontSize;
+
+ // Expose the library as an AMD module
+ if (true) {
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function() { return WordCloud; }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
+ } else {}
+
+})(this); //jshint ignore:line
+
+/***/ }),
+
+/***/ 88157:
+/*!*********************************************************!*\
+ !*** ./node_modules/echarts-wordcloud/src/wordCloud.js ***!
+ \*********************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+var echarts = __webpack_require__(/*! echarts/lib/echarts */ 70492);
+var layoutUtil = __webpack_require__(/*! echarts/lib/util/layout */ 76172);
+
+__webpack_require__(/*! ./WordCloudSeries */ 50024);
+__webpack_require__(/*! ./WordCloudView */ 40885);
+
+var wordCloudLayoutHelper = __webpack_require__(/*! ./layout */ 62255);
+
+if (!wordCloudLayoutHelper.isSupported) {
+ throw new Error('Sorry your browser not support wordCloud');
+}
+
+// https://github.com/timdream/wordcloud2.js/blob/c236bee60436e048949f9becc4f0f67bd832dc5c/index.js#L233
+function updateCanvasMask(maskCanvas) {
+ var ctx = maskCanvas.getContext('2d');
+ var imageData = ctx.getImageData(
+ 0, 0, maskCanvas.width, maskCanvas.height);
+ var newImageData = ctx.createImageData(imageData);
+
+ var toneSum = 0;
+ var toneCnt = 0;
+ for (var i = 0; i < imageData.data.length; i += 4) {
+ var alpha = imageData.data[i + 3];
+ if (alpha > 128) {
+ var tone = imageData.data[i]
+ + imageData.data[i + 1]
+ + imageData.data[i + 2];
+ toneSum += tone;
+ ++toneCnt;
+ }
+ }
+ var threshold = toneSum / toneCnt;
+
+ for (var i = 0; i < imageData.data.length; i += 4) {
+ var tone = imageData.data[i]
+ + imageData.data[i + 1]
+ + imageData.data[i + 2];
+ var alpha = imageData.data[i + 3];
+
+ if (alpha < 128 || tone > threshold) {
+ // Area not to draw
+ newImageData.data[i] = 0;
+ newImageData.data[i + 1] = 0;
+ newImageData.data[i + 2] = 0;
+ newImageData.data[i + 3] = 0;
+ }
+ else {
+ // Area to draw
+ // The color must be same with backgroundColor
+ newImageData.data[i] = 255;
+ newImageData.data[i + 1] = 255;
+ newImageData.data[i + 2] = 255;
+ newImageData.data[i + 3] = 255;
+ }
+ }
+
+ ctx.putImageData(newImageData, 0, 0);
+}
+
+echarts.registerLayout(function (ecModel, api) {
+ ecModel.eachSeriesByType('wordCloud', function (seriesModel) {
+ var gridRect = layoutUtil.getLayoutRect(
+ seriesModel.getBoxLayoutParams(), {
+ width: api.getWidth(),
+ height: api.getHeight()
+ }
+ );
+ var data = seriesModel.getData();
+
+ var canvas = document.createElement('canvas');
+ canvas.width = gridRect.width;
+ canvas.height = gridRect.height;
+
+ var ctx = canvas.getContext('2d');
+ var maskImage = seriesModel.get('maskImage');
+ if (maskImage) {
+ try {
+ ctx.drawImage(maskImage, 0, 0, canvas.width, canvas.height);
+ updateCanvasMask(canvas);
+ }
+ catch (e) {
+ console.error('Invalid mask image');
+ console.error(e.toString());
+ }
+ }
+
+ var sizeRange = seriesModel.get('sizeRange');
+ var rotationRange = seriesModel.get('rotationRange');
+ var valueExtent = data.getDataExtent('value');
+
+ var DEGREE_TO_RAD = Math.PI / 180;
+ var gridSize = seriesModel.get('gridSize');
+ wordCloudLayoutHelper(canvas, {
+ list: data.mapArray('value', function (value, idx) {
+ var itemModel = data.getItemModel(idx);
+ return [
+ data.getName(idx),
+ itemModel.get('textStyle.normal.textSize', true)
+ || echarts.number.linearMap(value, valueExtent, sizeRange),
+ idx
+ ];
+ }).sort(function (a, b) {
+ // Sort from large to small in case there is no more room for more words
+ return b[1] - a[1];
+ }),
+ fontFamily: seriesModel.get('textStyle.normal.fontFamily')
+ || seriesModel.get('textStyle.emphasis.fontFamily')
+ || ecModel.get('textStyle.fontFamily'),
+ fontWeight: seriesModel.get('textStyle.normal.fontWeight')
+ || seriesModel.get('textStyle.emphasis.fontWeight')
+ || ecModel.get('textStyle.fontWeight'),
+ gridSize: gridSize,
+
+ ellipticity: gridRect.height / gridRect.width,
+
+ minRotation: rotationRange[0] * DEGREE_TO_RAD,
+ maxRotation: rotationRange[1] * DEGREE_TO_RAD,
+
+ clearCanvas: !maskImage,
+
+ rotateRatio: 1,
+
+ rotationStep: seriesModel.get('rotationStep') * DEGREE_TO_RAD,
+
+ drawOutOfBound: seriesModel.get('drawOutOfBound'),
+
+ shuffle: false,
+
+ shape: seriesModel.get('shape')
+ });
+
+ function onWordCloudDrawn(e) {
+ var item = e.detail.item;
+ if (e.detail.drawn && seriesModel.layoutInstance.ondraw) {
+ e.detail.drawn.gx += gridRect.x / gridSize;
+ e.detail.drawn.gy += gridRect.y / gridSize;
+ seriesModel.layoutInstance.ondraw(
+ item[0], item[1], item[2], e.detail.drawn
+ );
+ }
+ }
+
+ canvas.addEventListener('wordclouddrawn', onWordCloudDrawn);
+
+ if (seriesModel.layoutInstance) {
+ // Dispose previous
+ seriesModel.layoutInstance.dispose();
+ }
+
+ seriesModel.layoutInstance = {
+ ondraw: null,
+
+ dispose: function () {
+ canvas.removeEventListener('wordclouddrawn', onWordCloudDrawn);
+ // Abort
+ canvas.addEventListener('wordclouddrawn', function (e) {
+ // Prevent default to cancle the event and stop the loop
+ e.preventDefault();
+ });
+ }
+ };
+ });
+});
+
+echarts.registerPreprocessor(function (option) {
+ var series = (option || {}).series;
+ !echarts.util.isArray(series) && (series = series ? [series] : []);
+
+ var compats = ['shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY'];
+
+ echarts.util.each(series, function (seriesItem) {
+ if (seriesItem && seriesItem.type === 'wordCloud') {
+ var textStyle = seriesItem.textStyle || {};
+
+ compatTextStyle(textStyle.normal);
+ compatTextStyle(textStyle.emphasis);
+ }
+ });
+
+ function compatTextStyle(textStyle) {
+ textStyle && echarts.util.each(compats, function (key) {
+ if (textStyle.hasOwnProperty(key)) {
+ textStyle['text' + echarts.format.capitalFirst(key)] = textStyle[key];
+ }
+ });
+ }
+});
+
+
+/***/ })
+
+}]);
\ No newline at end of file
diff --git a/55820.async.js b/27686.async.js
similarity index 96%
rename from 55820.async.js
rename to 27686.async.js
index b181387c99..b491ac2e32 100644
--- a/55820.async.js
+++ b/27686.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[55820,15549],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[27686,15549],{
/***/ 11475:
/*!******************************************************************************************!*\
@@ -169,48 +169,6 @@ if (false) {}
/***/ }),
-/***/ 33160:
-/*!*******************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules ***!
- \*******************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_ReloadOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.js
-// This icon file is generated automatically.
-var ReloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, "name": "reload", "theme": "outlined" };
-/* harmony default export */ var asn_ReloadOutlined = (ReloadOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var ReloadOutlined_ReloadOutlined = function ReloadOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_ReloadOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_ReloadOutlined = (/*#__PURE__*/react.forwardRef(ReloadOutlined_ReloadOutlined));
-
-/***/ }),
-
/***/ 88484:
/*!*******************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/UploadOutlined.js + 1 modules ***!
diff --git a/23778.async.js b/28188.async.js
similarity index 87%
rename from 23778.async.js
rename to 28188.async.js
index 34695c1470..49a0e7dfa0 100644
--- a/23778.async.js
+++ b/28188.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[23778],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[28188],{
/***/ 80882:
/*!*****************************************************************************!*\
@@ -786,168 +786,6 @@ const initMoveMotion = (token, motionName) => {
/***/ }),
-/***/ 67771:
-/*!****************************************************!*\
- !*** ./node_modules/antd/es/style/motion/slide.js ***!
- \****************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
-/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
-/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
-/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
-/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
-/* harmony export */ });
-/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
-/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
-/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
-
-
-const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- }
-});
-const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- }
-});
-const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- }
-});
-const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- }
-});
-const slideMotion = {
- 'slide-up': {
- inKeyframes: slideUpIn,
- outKeyframes: slideUpOut
- },
- 'slide-down': {
- inKeyframes: slideDownIn,
- outKeyframes: slideDownOut
- },
- 'slide-left': {
- inKeyframes: slideLeftIn,
- outKeyframes: slideLeftOut
- },
- 'slide-right': {
- inKeyframes: slideRightIn,
- outKeyframes: slideRightOut
- }
-};
-const initSlideMotion = (token, motionName) => {
- const {
- antCls
- } = token;
- const motionCls = `${antCls}-${motionName}`;
- const {
- inKeyframes,
- outKeyframes
- } = slideMotion[motionName];
- return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
- [`
- ${motionCls}-enter,
- ${motionCls}-appear
- `]: {
- transform: 'scale(0)',
- transformOrigin: '0% 0%',
- opacity: 0,
- animationTimingFunction: token.motionEaseOutQuint,
- [`&-prepare`]: {
- transform: 'scale(1)'
- }
- },
- [`${motionCls}-leave`]: {
- animationTimingFunction: token.motionEaseInQuint
- }
- }];
-};
-
-/***/ }),
-
/***/ 64217:
/*!**********************************************!*\
!*** ./node_modules/rc-util/es/pickAttrs.js ***!
diff --git a/3219.async.js b/3219.async.js
index 171b913284..518112d49f 100644
--- a/3219.async.js
+++ b/3219.async.js
@@ -1,4 +1,4 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[3219,83570],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[3219,54909],{
/***/ 63606:
/*!******************************************************************************!*\
diff --git a/26042.async.js b/34172.async.js
similarity index 87%
rename from 26042.async.js
rename to 34172.async.js
index 6da7a45a3d..68157c1f17 100644
--- a/26042.async.js
+++ b/34172.async.js
@@ -1,47 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[26042],{
-
-/***/ 23430:
-/*!*********************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js + 1 modules ***!
- \*********************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_DownloadOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/DownloadOutlined.js
-// This icon file is generated automatically.
-var DownloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, "name": "download", "theme": "outlined" };
-/* harmony default export */ var asn_DownloadOutlined = (DownloadOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var DownloadOutlined_DownloadOutlined = function DownloadOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_DownloadOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_DownloadOutlined = (/*#__PURE__*/react.forwardRef(DownloadOutlined_DownloadOutlined));
-
-/***/ }),
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[34172],{
/***/ 99611:
/*!****************************************************************************!*\
@@ -127,48 +85,6 @@ if (false) {}
/***/ }),
-/***/ 33160:
-/*!*******************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules ***!
- \*******************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_ReloadOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.js
-// This icon file is generated automatically.
-var ReloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, "name": "reload", "theme": "outlined" };
-/* harmony default export */ var asn_ReloadOutlined = (ReloadOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var ReloadOutlined_ReloadOutlined = function ReloadOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_ReloadOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_ReloadOutlined = (/*#__PURE__*/react.forwardRef(ReloadOutlined_ReloadOutlined));
-
-/***/ }),
-
/***/ 18073:
/*!******************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/RightOutlined.js + 1 modules ***!
@@ -859,6 +775,168 @@ const genCollapseMotion = token => ({
});
/* harmony default export */ __webpack_exports__["Z"] = (genCollapseMotion);
+/***/ }),
+
+/***/ 67771:
+/*!****************************************************!*\
+ !*** ./node_modules/antd/es/style/motion/slide.js ***!
+ \****************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
+/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
+/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
+/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
+/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
+/* harmony export */ });
+/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
+/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
+/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
+
+
+const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
+ '0%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ }
+});
+const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
+ '0%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ }
+});
+const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
+ '0%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '100% 100%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '100% 100%',
+ opacity: 1
+ }
+});
+const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
+ '0%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '100% 100%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '100% 100%',
+ opacity: 0
+ }
+});
+const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
+ '0%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ }
+});
+const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
+ '0%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ }
+});
+const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
+ '0%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '100% 0%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '100% 0%',
+ opacity: 1
+ }
+});
+const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
+ '0%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '100% 0%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '100% 0%',
+ opacity: 0
+ }
+});
+const slideMotion = {
+ 'slide-up': {
+ inKeyframes: slideUpIn,
+ outKeyframes: slideUpOut
+ },
+ 'slide-down': {
+ inKeyframes: slideDownIn,
+ outKeyframes: slideDownOut
+ },
+ 'slide-left': {
+ inKeyframes: slideLeftIn,
+ outKeyframes: slideLeftOut
+ },
+ 'slide-right': {
+ inKeyframes: slideRightIn,
+ outKeyframes: slideRightOut
+ }
+};
+const initSlideMotion = (token, motionName) => {
+ const {
+ antCls
+ } = token;
+ const motionCls = `${antCls}-${motionName}`;
+ const {
+ inKeyframes,
+ outKeyframes
+ } = slideMotion[motionName];
+ return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
+ [`
+ ${motionCls}-enter,
+ ${motionCls}-appear
+ `]: {
+ transform: 'scale(0)',
+ transformOrigin: '0% 0%',
+ opacity: 0,
+ animationTimingFunction: token.motionEaseOutQuint,
+ [`&-prepare`]: {
+ transform: 'scale(1)'
+ }
+ },
+ [`${motionCls}-leave`]: {
+ animationTimingFunction: token.motionEaseInQuint
+ }
+ }];
+};
+
/***/ })
}]);
\ No newline at end of file
diff --git a/35574.async.js b/35574.async.js
index c776331ae5..8ecf0fc17c 100644
--- a/35574.async.js
+++ b/35574.async.js
@@ -156,7 +156,6 @@ var jsx_runtime = __webpack_require__(85893);
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;
// let size;
- console.log("disabledDownload---", disabledDownload);
var unit = 1024 * 1024;
var maxSize = 10 * unit;
var closeRef = (0,react.useRef)();
diff --git a/39000.async.js b/39000.async.js
index 9500f63b7f..a16378751f 100644
--- a/39000.async.js
+++ b/39000.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[39000,74045,86068,14536,89194,75574,33358,68657,92936,35034,41522,9600,61710],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[39000,74045,86068,14536,89194,75574,33358,68657,92936,35034,41522,9600,61710,54909],{
/***/ 99611:
/*!****************************************************************************!*\
diff --git a/42167.async.js b/42167.async.js
index 01a1e8d05b..0d9c000510 100644
--- a/42167.async.js
+++ b/42167.async.js
@@ -7103,6 +7103,1070 @@ if (false) {}
/* harmony default export */ var tree_select = (tree_select_TreeSelect);
+/***/ }),
+
+/***/ 73453:
+/*!***************************************************************!*\
+ !*** ./node_modules/rc-virtual-list/es/index.js + 14 modules ***!
+ \***************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ rc_virtual_list_es; }
+});
+
+// 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/objectSpread2.js
+var objectSpread2 = __webpack_require__(1413);
+// 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/objectWithoutProperties.js
+var objectWithoutProperties = __webpack_require__(45987);
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+// 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);
+;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/Filler.js
+
+
+
+
+
+
+/**
+ * Fill component to provided the scroll content real height.
+ */
+var Filler = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
+ var height = _ref.height,
+ offset = _ref.offset,
+ children = _ref.children,
+ prefixCls = _ref.prefixCls,
+ onInnerResize = _ref.onInnerResize,
+ innerProps = _ref.innerProps;
+ var outerStyle = {};
+ var innerStyle = {
+ display: 'flex',
+ flexDirection: 'column'
+ };
+ if (offset !== undefined) {
+ outerStyle = {
+ height: height,
+ position: 'relative',
+ overflow: 'hidden'
+ };
+ innerStyle = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, innerStyle), {}, {
+ transform: "translateY(".concat(offset, "px)"),
+ position: 'absolute',
+ left: 0,
+ right: 0,
+ top: 0
+ });
+ }
+ return /*#__PURE__*/react.createElement("div", {
+ style: outerStyle
+ }, /*#__PURE__*/react.createElement(es/* default */.Z, {
+ onResize: function onResize(_ref2) {
+ var offsetHeight = _ref2.offsetHeight;
+ if (offsetHeight && onInnerResize) {
+ onInnerResize();
+ }
+ }
+ }, /*#__PURE__*/react.createElement("div", (0,esm_extends/* default */.Z)({
+ style: innerStyle,
+ className: classnames_default()((0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
+ ref: ref
+ }, innerProps), children)));
+});
+Filler.displayName = 'Filler';
+/* harmony default export */ var es_Filler = (Filler);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
+var classCallCheck = __webpack_require__(15671);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
+var createClass = __webpack_require__(43144);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
+var inherits = __webpack_require__(60136);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 1 modules
+var createSuper = __webpack_require__(51630);
+// EXTERNAL MODULE: ./node_modules/rc-util/es/raf.js
+var raf = __webpack_require__(75164);
+;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/ScrollBar.js
+
+
+
+
+
+
+
+
+var MIN_SIZE = 20;
+function getPageY(e) {
+ return 'touches' in e ? e.touches[0].pageY : e.pageY;
+}
+var ScrollBar = /*#__PURE__*/function (_React$Component) {
+ (0,inherits/* default */.Z)(ScrollBar, _React$Component);
+ var _super = (0,createSuper/* default */.Z)(ScrollBar);
+ function ScrollBar() {
+ var _this;
+ (0,classCallCheck/* default */.Z)(this, ScrollBar);
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+ _this = _super.call.apply(_super, [this].concat(args));
+ _this.moveRaf = null;
+ _this.scrollbarRef = /*#__PURE__*/react.createRef();
+ _this.thumbRef = /*#__PURE__*/react.createRef();
+ _this.visibleTimeout = null;
+ _this.state = {
+ dragging: false,
+ pageY: null,
+ startTop: null,
+ visible: false
+ };
+ _this.delayHidden = function () {
+ clearTimeout(_this.visibleTimeout);
+ _this.setState({
+ visible: true
+ });
+ _this.visibleTimeout = setTimeout(function () {
+ _this.setState({
+ visible: false
+ });
+ }, 2000);
+ };
+ _this.onScrollbarTouchStart = function (e) {
+ e.preventDefault();
+ };
+ _this.onContainerMouseDown = function (e) {
+ e.stopPropagation();
+ e.preventDefault();
+ };
+ _this.patchEvents = function () {
+ window.addEventListener('mousemove', _this.onMouseMove);
+ window.addEventListener('mouseup', _this.onMouseUp);
+ _this.thumbRef.current.addEventListener('touchmove', _this.onMouseMove);
+ _this.thumbRef.current.addEventListener('touchend', _this.onMouseUp);
+ };
+ _this.removeEvents = function () {
+ var _this$scrollbarRef$cu;
+ window.removeEventListener('mousemove', _this.onMouseMove);
+ window.removeEventListener('mouseup', _this.onMouseUp);
+ (_this$scrollbarRef$cu = _this.scrollbarRef.current) === null || _this$scrollbarRef$cu === void 0 ? void 0 : _this$scrollbarRef$cu.removeEventListener('touchstart', _this.onScrollbarTouchStart);
+ if (_this.thumbRef.current) {
+ _this.thumbRef.current.removeEventListener('touchstart', _this.onMouseDown);
+ _this.thumbRef.current.removeEventListener('touchmove', _this.onMouseMove);
+ _this.thumbRef.current.removeEventListener('touchend', _this.onMouseUp);
+ }
+ raf/* default.cancel */.Z.cancel(_this.moveRaf);
+ };
+ _this.onMouseDown = function (e) {
+ var onStartMove = _this.props.onStartMove;
+ _this.setState({
+ dragging: true,
+ pageY: getPageY(e),
+ startTop: _this.getTop()
+ });
+ onStartMove();
+ _this.patchEvents();
+ e.stopPropagation();
+ e.preventDefault();
+ };
+ _this.onMouseMove = function (e) {
+ var _this$state = _this.state,
+ dragging = _this$state.dragging,
+ pageY = _this$state.pageY,
+ startTop = _this$state.startTop;
+ var onScroll = _this.props.onScroll;
+ raf/* default.cancel */.Z.cancel(_this.moveRaf);
+ if (dragging) {
+ var offsetY = getPageY(e) - pageY;
+ var newTop = startTop + offsetY;
+ var enableScrollRange = _this.getEnableScrollRange();
+ var enableHeightRange = _this.getEnableHeightRange();
+ var ptg = enableHeightRange ? newTop / enableHeightRange : 0;
+ var newScrollTop = Math.ceil(ptg * enableScrollRange);
+ _this.moveRaf = (0,raf/* default */.Z)(function () {
+ onScroll(newScrollTop);
+ });
+ }
+ };
+ _this.onMouseUp = function () {
+ var onStopMove = _this.props.onStopMove;
+ _this.setState({
+ dragging: false
+ });
+ onStopMove();
+ _this.removeEvents();
+ };
+ _this.getSpinHeight = function () {
+ var _this$props = _this.props,
+ height = _this$props.height,
+ count = _this$props.count;
+ var baseHeight = height / count * 10;
+ baseHeight = Math.max(baseHeight, MIN_SIZE);
+ baseHeight = Math.min(baseHeight, height / 2);
+ return Math.floor(baseHeight);
+ };
+ _this.getEnableScrollRange = function () {
+ var _this$props2 = _this.props,
+ scrollHeight = _this$props2.scrollHeight,
+ height = _this$props2.height;
+ return scrollHeight - height || 0;
+ };
+ _this.getEnableHeightRange = function () {
+ var height = _this.props.height;
+ var spinHeight = _this.getSpinHeight();
+ return height - spinHeight || 0;
+ };
+ _this.getTop = function () {
+ var scrollTop = _this.props.scrollTop;
+ var enableScrollRange = _this.getEnableScrollRange();
+ var enableHeightRange = _this.getEnableHeightRange();
+ if (scrollTop === 0 || enableScrollRange === 0) {
+ return 0;
+ }
+ var ptg = scrollTop / enableScrollRange;
+ return ptg * enableHeightRange;
+ };
+ _this.showScroll = function () {
+ var _this$props3 = _this.props,
+ height = _this$props3.height,
+ scrollHeight = _this$props3.scrollHeight;
+ return scrollHeight > height;
+ };
+ return _this;
+ }
+ (0,createClass/* default */.Z)(ScrollBar, [{
+ key: "componentDidMount",
+ value: function componentDidMount() {
+ this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
+ this.thumbRef.current.addEventListener('touchstart', this.onMouseDown);
+ }
+ }, {
+ key: "componentDidUpdate",
+ value: function componentDidUpdate(prevProps) {
+ if (prevProps.scrollTop !== this.props.scrollTop) {
+ this.delayHidden();
+ }
+ }
+ }, {
+ key: "componentWillUnmount",
+ value: function componentWillUnmount() {
+ this.removeEvents();
+ clearTimeout(this.visibleTimeout);
+ }
+ }, {
+ key: "render",
+ value:
+ // ====================== Render =======================
+ function render() {
+ var _this$state2 = this.state,
+ dragging = _this$state2.dragging,
+ visible = _this$state2.visible;
+ var prefixCls = this.props.prefixCls;
+ var spinHeight = this.getSpinHeight();
+ var top = this.getTop();
+ var canScroll = this.showScroll();
+ var mergedVisible = canScroll && visible;
+ return /*#__PURE__*/react.createElement("div", {
+ ref: this.scrollbarRef,
+ className: classnames_default()("".concat(prefixCls, "-scrollbar"), (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
+ style: {
+ width: 8,
+ top: 0,
+ bottom: 0,
+ right: 0,
+ position: 'absolute',
+ display: mergedVisible ? null : 'none'
+ },
+ onMouseDown: this.onContainerMouseDown,
+ onMouseMove: this.delayHidden
+ }, /*#__PURE__*/react.createElement("div", {
+ ref: this.thumbRef,
+ className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
+ style: {
+ width: '100%',
+ height: spinHeight,
+ top: top,
+ left: 0,
+ position: 'absolute',
+ background: 'rgba(0, 0, 0, 0.5)',
+ borderRadius: 99,
+ cursor: 'pointer',
+ userSelect: 'none'
+ },
+ onMouseDown: this.onMouseDown
+ }));
+ }
+ }]);
+ return ScrollBar;
+}(react.Component);
+
+;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/Item.js
+
+function Item(_ref) {
+ var children = _ref.children,
+ setRef = _ref.setRef;
+ var refFunc = react.useCallback(function (node) {
+ setRef(node);
+ }, []);
+ return /*#__PURE__*/react.cloneElement(children, {
+ ref: refFunc
+ });
+}
+;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useChildren.js
+
+
+function useChildren(list, startIndex, endIndex, setNodeRef, renderFunc, _ref) {
+ var getKey = _ref.getKey;
+ return list.slice(startIndex, endIndex + 1).map(function (item, index) {
+ var eleIndex = startIndex + index;
+ var node = renderFunc(item, eleIndex, {
+ // style: status === 'MEASURE_START' ? { visibility: 'hidden' } : {},
+ });
+ var key = getKey(item);
+ return /*#__PURE__*/react.createElement(Item, {
+ key: key,
+ setRef: function setRef(ele) {
+ return setNodeRef(item, ele);
+ }
+ }, node);
+ });
+}
+// EXTERNAL MODULE: ./node_modules/rc-util/es/Dom/findDOMNode.js
+var findDOMNode = __webpack_require__(34203);
+;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/CacheMap.js
+
+
+// Firefox has low performance of map.
+var CacheMap = /*#__PURE__*/function () {
+ function CacheMap() {
+ (0,classCallCheck/* default */.Z)(this, CacheMap);
+ this.maps = void 0;
+ this.maps = Object.create(null);
+ }
+ (0,createClass/* default */.Z)(CacheMap, [{
+ key: "set",
+ value: function set(key, value) {
+ this.maps[key] = value;
+ }
+ }, {
+ key: "get",
+ value: function get(key) {
+ return this.maps[key];
+ }
+ }]);
+ return CacheMap;
+}();
+/* harmony default export */ var utils_CacheMap = (CacheMap);
+;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useHeights.js
+
+
+
+
+
+
+function useHeights(getKey, onItemAdd, onItemRemove) {
+ var _React$useState = react.useState(0),
+ _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
+ updatedMark = _React$useState2[0],
+ setUpdatedMark = _React$useState2[1];
+ var instanceRef = (0,react.useRef)(new Map());
+ var heightsRef = (0,react.useRef)(new utils_CacheMap());
+ var collectRafRef = (0,react.useRef)();
+ function cancelRaf() {
+ raf/* default.cancel */.Z.cancel(collectRafRef.current);
+ }
+ function collectHeight() {
+ cancelRaf();
+ collectRafRef.current = (0,raf/* default */.Z)(function () {
+ instanceRef.current.forEach(function (element, key) {
+ if (element && element.offsetParent) {
+ var htmlElement = (0,findDOMNode/* default */.Z)(element);
+ var offsetHeight = htmlElement.offsetHeight;
+ if (heightsRef.current.get(key) !== offsetHeight) {
+ heightsRef.current.set(key, htmlElement.offsetHeight);
+ }
+ }
+ });
+ // Always trigger update mark to tell parent that should re-calculate heights when resized
+ setUpdatedMark(function (c) {
+ return c + 1;
+ });
+ });
+ }
+ function setInstanceRef(item, instance) {
+ var key = getKey(item);
+ var origin = instanceRef.current.get(key);
+ if (instance) {
+ instanceRef.current.set(key, instance);
+ collectHeight();
+ } else {
+ instanceRef.current.delete(key);
+ }
+ // Instance changed
+ if (!origin !== !instance) {
+ if (instance) {
+ onItemAdd === null || onItemAdd === void 0 ? void 0 : onItemAdd(item);
+ } else {
+ onItemRemove === null || onItemRemove === void 0 ? void 0 : onItemRemove(item);
+ }
+ }
+ }
+ (0,react.useEffect)(function () {
+ return cancelRaf;
+ }, []);
+ return [setInstanceRef, collectHeight, heightsRef.current, updatedMark];
+}
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
+var esm_typeof = __webpack_require__(71002);
+;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useScrollTo.js
+
+/* eslint-disable no-param-reassign */
+
+
+function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHeight, syncScrollTop, triggerFlash) {
+ var scrollRef = react.useRef();
+ return function (arg) {
+ // When not argument provided, we think dev may want to show the scrollbar
+ if (arg === null || arg === undefined) {
+ triggerFlash();
+ return;
+ }
+ // Normal scroll logic
+ raf/* default.cancel */.Z.cancel(scrollRef.current);
+ if (typeof arg === 'number') {
+ syncScrollTop(arg);
+ } else if (arg && (0,esm_typeof/* default */.Z)(arg) === 'object') {
+ var index;
+ var align = arg.align;
+ if ('index' in arg) {
+ index = arg.index;
+ } else {
+ index = data.findIndex(function (item) {
+ return getKey(item) === arg.key;
+ });
+ }
+ var _arg$offset = arg.offset,
+ offset = _arg$offset === void 0 ? 0 : _arg$offset;
+ // We will retry 3 times in case dynamic height shaking
+ var syncScroll = function syncScroll(times, targetAlign) {
+ if (times < 0 || !containerRef.current) return;
+ var height = containerRef.current.clientHeight;
+ var needCollectHeight = false;
+ var newTargetAlign = targetAlign;
+ // Go to next frame if height not exist
+ if (height) {
+ var mergedAlign = targetAlign || align;
+ // Get top & bottom
+ var stackTop = 0;
+ var itemTop = 0;
+ var itemBottom = 0;
+ var maxLen = Math.min(data.length, index);
+ for (var i = 0; i <= maxLen; i += 1) {
+ var key = getKey(data[i]);
+ itemTop = stackTop;
+ var cacheHeight = heights.get(key);
+ itemBottom = itemTop + (cacheHeight === undefined ? itemHeight : cacheHeight);
+ stackTop = itemBottom;
+ if (i === index && cacheHeight === undefined) {
+ needCollectHeight = true;
+ }
+ }
+ // Scroll to
+ var targetTop = null;
+ switch (mergedAlign) {
+ case 'top':
+ targetTop = itemTop - offset;
+ break;
+ case 'bottom':
+ targetTop = itemBottom - height + offset;
+ break;
+ default:
+ {
+ var scrollTop = containerRef.current.scrollTop;
+ var scrollBottom = scrollTop + height;
+ if (itemTop < scrollTop) {
+ newTargetAlign = 'top';
+ } else if (itemBottom > scrollBottom) {
+ newTargetAlign = 'bottom';
+ }
+ }
+ }
+ if (targetTop !== null && targetTop !== containerRef.current.scrollTop) {
+ syncScrollTop(targetTop);
+ }
+ }
+ // We will retry since element may not sync height as it described
+ scrollRef.current = (0,raf/* default */.Z)(function () {
+ if (needCollectHeight) {
+ collectHeight();
+ }
+ syncScroll(times - 1, newTargetAlign);
+ }, 2); // Delay 2 to wait for List collect heights
+ };
+
+ syncScroll(3);
+ }
+ };
+}
+;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/algorithmUtil.js
+/**
+ * Get index with specific start index one by one. e.g.
+ * min: 3, max: 9, start: 6
+ *
+ * Return index is:
+ * [0]: 6
+ * [1]: 7
+ * [2]: 5
+ * [3]: 8
+ * [4]: 4
+ * [5]: 9
+ * [6]: 3
+ */
+function getIndexByStartLoc(min, max, start, index) {
+ var beforeCount = start - min;
+ var afterCount = max - start;
+ var balanceCount = Math.min(beforeCount, afterCount) * 2;
+ // Balance
+ if (index <= balanceCount) {
+ var stepIndex = Math.floor(index / 2);
+ if (index % 2) {
+ return start + stepIndex + 1;
+ }
+ return start - stepIndex;
+ }
+ // One is out of range
+ if (beforeCount > afterCount) {
+ return start - (index - afterCount);
+ }
+ return start + (index - beforeCount);
+}
+/**
+ * We assume that 2 list has only 1 item diff and others keeping the order.
+ * So we can use dichotomy algorithm to find changed one.
+ */
+function findListDiffIndex(originList, targetList, getKey) {
+ var originLen = originList.length;
+ var targetLen = targetList.length;
+ var shortList;
+ var longList;
+ if (originLen === 0 && targetLen === 0) {
+ return null;
+ }
+ if (originLen < targetLen) {
+ shortList = originList;
+ longList = targetList;
+ } else {
+ shortList = targetList;
+ longList = originList;
+ }
+ var notExistKey = {
+ __EMPTY_ITEM__: true
+ };
+ function getItemKey(item) {
+ if (item !== undefined) {
+ return getKey(item);
+ }
+ return notExistKey;
+ }
+ // Loop to find diff one
+ var diffIndex = null;
+ var multiple = Math.abs(originLen - targetLen) !== 1;
+ for (var i = 0; i < longList.length; i += 1) {
+ var shortKey = getItemKey(shortList[i]);
+ var longKey = getItemKey(longList[i]);
+ if (shortKey !== longKey) {
+ diffIndex = i;
+ multiple = multiple || shortKey !== getItemKey(longList[i + 1]);
+ break;
+ }
+ }
+ return diffIndex === null ? null : {
+ index: diffIndex,
+ multiple: multiple
+ };
+}
+;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useDiffItem.js
+
+
+
+function useDiffItem(data, getKey, onDiff) {
+ var _React$useState = react.useState(data),
+ _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
+ prevData = _React$useState2[0],
+ setPrevData = _React$useState2[1];
+ var _React$useState3 = react.useState(null),
+ _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
+ diffItem = _React$useState4[0],
+ setDiffItem = _React$useState4[1];
+ react.useEffect(function () {
+ var diff = findListDiffIndex(prevData || [], data || [], getKey);
+ if ((diff === null || diff === void 0 ? void 0 : diff.index) !== undefined) {
+ onDiff === null || onDiff === void 0 ? void 0 : onDiff(diff.index);
+ setDiffItem(data[diff.index]);
+ }
+ setPrevData(data);
+ }, [data]);
+ return [diffItem];
+}
+;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
+
+var isFF = (typeof navigator === "undefined" ? "undefined" : (0,esm_typeof/* default */.Z)(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
+/* harmony default export */ var isFirefox = (isFF);
+;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
+
+/* harmony default export */ var useOriginScroll = (function (isScrollAtTop, isScrollAtBottom) {
+ // Do lock for a wheel when scrolling
+ var lockRef = (0,react.useRef)(false);
+ var lockTimeoutRef = (0,react.useRef)(null);
+ function lockScroll() {
+ clearTimeout(lockTimeoutRef.current);
+ lockRef.current = true;
+ lockTimeoutRef.current = setTimeout(function () {
+ lockRef.current = false;
+ }, 50);
+ }
+ // Pass to ref since global add is in closure
+ var scrollPingRef = (0,react.useRef)({
+ top: isScrollAtTop,
+ bottom: isScrollAtBottom
+ });
+ scrollPingRef.current.top = isScrollAtTop;
+ scrollPingRef.current.bottom = isScrollAtBottom;
+ return function (deltaY) {
+ var smoothOffset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
+ var originScroll =
+ // Pass origin wheel when on the top
+ deltaY < 0 && scrollPingRef.current.top ||
+ // Pass origin wheel when on the bottom
+ deltaY > 0 && scrollPingRef.current.bottom;
+ if (smoothOffset && originScroll) {
+ // No need lock anymore when it's smooth offset from touchMove interval
+ clearTimeout(lockTimeoutRef.current);
+ lockRef.current = false;
+ } else if (!originScroll || lockRef.current) {
+ lockScroll();
+ }
+ return !lockRef.current && originScroll;
+ };
+});
+;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useFrameWheel.js
+
+
+
+
+function useFrameWheel(inVirtual, isScrollAtTop, isScrollAtBottom, onWheelDelta) {
+ var offsetRef = (0,react.useRef)(0);
+ var nextFrameRef = (0,react.useRef)(null);
+ // Firefox patch
+ var wheelValueRef = (0,react.useRef)(null);
+ var isMouseScrollRef = (0,react.useRef)(false);
+ // Scroll status sync
+ var originScroll = useOriginScroll(isScrollAtTop, isScrollAtBottom);
+ function onWheel(event) {
+ if (!inVirtual) return;
+ raf/* default.cancel */.Z.cancel(nextFrameRef.current);
+ var deltaY = event.deltaY;
+ offsetRef.current += deltaY;
+ wheelValueRef.current = deltaY;
+ // Do nothing when scroll at the edge, Skip check when is in scroll
+ if (originScroll(deltaY)) return;
+ // Proxy of scroll events
+ if (!isFirefox) {
+ event.preventDefault();
+ }
+ nextFrameRef.current = (0,raf/* default */.Z)(function () {
+ // Patch a multiple for Firefox to fix wheel number too small
+ // ref: https://github.com/ant-design/ant-design/issues/26372#issuecomment-679460266
+ var patchMultiple = isMouseScrollRef.current ? 10 : 1;
+ onWheelDelta(offsetRef.current * patchMultiple);
+ offsetRef.current = 0;
+ });
+ }
+ // A patch for firefox
+ function onFireFoxScroll(event) {
+ if (!inVirtual) return;
+ isMouseScrollRef.current = event.detail === wheelValueRef.current;
+ }
+ return [onWheel, onFireFoxScroll];
+}
+// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useLayoutEffect.js
+var useLayoutEffect = __webpack_require__(8410);
+;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useMobileTouchMove.js
+
+
+var SMOOTH_PTG = 14 / 15;
+function useMobileTouchMove(inVirtual, listRef, callback) {
+ var touchedRef = (0,react.useRef)(false);
+ var touchYRef = (0,react.useRef)(0);
+ var elementRef = (0,react.useRef)(null);
+ // Smooth scroll
+ var intervalRef = (0,react.useRef)(null);
+ /* eslint-disable prefer-const */
+ var cleanUpEvents;
+ var onTouchMove = function onTouchMove(e) {
+ if (touchedRef.current) {
+ var currentY = Math.ceil(e.touches[0].pageY);
+ var offsetY = touchYRef.current - currentY;
+ touchYRef.current = currentY;
+ if (callback(offsetY)) {
+ e.preventDefault();
+ }
+ // Smooth interval
+ clearInterval(intervalRef.current);
+ intervalRef.current = setInterval(function () {
+ offsetY *= SMOOTH_PTG;
+ if (!callback(offsetY, true) || Math.abs(offsetY) <= 0.1) {
+ clearInterval(intervalRef.current);
+ }
+ }, 16);
+ }
+ };
+ var onTouchEnd = function onTouchEnd() {
+ touchedRef.current = false;
+ cleanUpEvents();
+ };
+ var onTouchStart = function onTouchStart(e) {
+ cleanUpEvents();
+ if (e.touches.length === 1 && !touchedRef.current) {
+ touchedRef.current = true;
+ touchYRef.current = Math.ceil(e.touches[0].pageY);
+ elementRef.current = e.target;
+ elementRef.current.addEventListener('touchmove', onTouchMove);
+ elementRef.current.addEventListener('touchend', onTouchEnd);
+ }
+ };
+ cleanUpEvents = function cleanUpEvents() {
+ if (elementRef.current) {
+ elementRef.current.removeEventListener('touchmove', onTouchMove);
+ elementRef.current.removeEventListener('touchend', onTouchEnd);
+ }
+ };
+ (0,useLayoutEffect/* default */.Z)(function () {
+ if (inVirtual) {
+ listRef.current.addEventListener('touchstart', onTouchStart);
+ }
+ return function () {
+ var _listRef$current;
+ (_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.removeEventListener('touchstart', onTouchStart);
+ cleanUpEvents();
+ clearInterval(intervalRef.current);
+ };
+ }, [inVirtual]);
+}
+;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/List.js
+
+
+
+
+
+var _excluded = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "component", "onScroll", "onVisibleChange", "innerProps"];
+
+
+
+
+
+
+
+
+
+
+
+
+
+var EMPTY_DATA = [];
+var ScrollStyle = {
+ overflowY: 'auto',
+ overflowAnchor: 'none'
+};
+function RawList(props, ref) {
+ var _props$prefixCls = props.prefixCls,
+ prefixCls = _props$prefixCls === void 0 ? 'rc-virtual-list' : _props$prefixCls,
+ className = props.className,
+ height = props.height,
+ itemHeight = props.itemHeight,
+ _props$fullHeight = props.fullHeight,
+ fullHeight = _props$fullHeight === void 0 ? true : _props$fullHeight,
+ style = props.style,
+ data = props.data,
+ children = props.children,
+ itemKey = props.itemKey,
+ virtual = props.virtual,
+ _props$component = props.component,
+ Component = _props$component === void 0 ? 'div' : _props$component,
+ onScroll = props.onScroll,
+ onVisibleChange = props.onVisibleChange,
+ innerProps = props.innerProps,
+ restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
+ // ================================= MISC =================================
+ var useVirtual = !!(virtual !== false && height && itemHeight);
+ var inVirtual = useVirtual && data && itemHeight * data.length > height;
+ var _useState = (0,react.useState)(0),
+ _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
+ scrollTop = _useState2[0],
+ setScrollTop = _useState2[1];
+ var _useState3 = (0,react.useState)(false),
+ _useState4 = (0,slicedToArray/* default */.Z)(_useState3, 2),
+ scrollMoving = _useState4[0],
+ setScrollMoving = _useState4[1];
+ var mergedClassName = classnames_default()(prefixCls, className);
+ var mergedData = data || EMPTY_DATA;
+ var componentRef = (0,react.useRef)();
+ var fillerInnerRef = (0,react.useRef)();
+ var scrollBarRef = (0,react.useRef)(); // Hack on scrollbar to enable flash call
+ // =============================== Item Key ===============================
+ var getKey = react.useCallback(function (item) {
+ if (typeof itemKey === 'function') {
+ return itemKey(item);
+ }
+ return item === null || item === void 0 ? void 0 : item[itemKey];
+ }, [itemKey]);
+ var sharedConfig = {
+ getKey: getKey
+ };
+ // ================================ Scroll ================================
+ function syncScrollTop(newTop) {
+ setScrollTop(function (origin) {
+ var value;
+ if (typeof newTop === 'function') {
+ value = newTop(origin);
+ } else {
+ value = newTop;
+ }
+ var alignedTop = keepInRange(value);
+ componentRef.current.scrollTop = alignedTop;
+ return alignedTop;
+ });
+ }
+ // ================================ Legacy ================================
+ // Put ref here since the range is generate by follow
+ var rangeRef = (0,react.useRef)({
+ start: 0,
+ end: mergedData.length
+ });
+ var diffItemRef = (0,react.useRef)();
+ var _useDiffItem = useDiffItem(mergedData, getKey),
+ _useDiffItem2 = (0,slicedToArray/* default */.Z)(_useDiffItem, 1),
+ diffItem = _useDiffItem2[0];
+ diffItemRef.current = diffItem;
+ // ================================ Height ================================
+ var _useHeights = useHeights(getKey, null, null),
+ _useHeights2 = (0,slicedToArray/* default */.Z)(_useHeights, 4),
+ setInstanceRef = _useHeights2[0],
+ collectHeight = _useHeights2[1],
+ heights = _useHeights2[2],
+ heightUpdatedMark = _useHeights2[3];
+ // ========================== Visible Calculation =========================
+ var _React$useMemo = react.useMemo(function () {
+ if (!useVirtual) {
+ return {
+ scrollHeight: undefined,
+ start: 0,
+ end: mergedData.length - 1,
+ offset: undefined
+ };
+ }
+ // Always use virtual scroll bar in avoid shaking
+ if (!inVirtual) {
+ var _fillerInnerRef$curre;
+ return {
+ scrollHeight: ((_fillerInnerRef$curre = fillerInnerRef.current) === null || _fillerInnerRef$curre === void 0 ? void 0 : _fillerInnerRef$curre.offsetHeight) || 0,
+ start: 0,
+ end: mergedData.length - 1,
+ offset: undefined
+ };
+ }
+ var itemTop = 0;
+ var startIndex;
+ var startOffset;
+ var endIndex;
+ var dataLen = mergedData.length;
+ for (var i = 0; i < dataLen; i += 1) {
+ var item = mergedData[i];
+ var key = getKey(item);
+ var cacheHeight = heights.get(key);
+ var currentItemBottom = itemTop + (cacheHeight === undefined ? itemHeight : cacheHeight);
+ // Check item top in the range
+ if (currentItemBottom >= scrollTop && startIndex === undefined) {
+ startIndex = i;
+ startOffset = itemTop;
+ }
+ // Check item bottom in the range. We will render additional one item for motion usage
+ if (currentItemBottom > scrollTop + height && endIndex === undefined) {
+ endIndex = i;
+ }
+ itemTop = currentItemBottom;
+ }
+ // When scrollTop at the end but data cut to small count will reach this
+ if (startIndex === undefined) {
+ startIndex = 0;
+ startOffset = 0;
+ endIndex = Math.ceil(height / itemHeight);
+ }
+ if (endIndex === undefined) {
+ endIndex = mergedData.length - 1;
+ }
+ // Give cache to improve scroll experience
+ endIndex = Math.min(endIndex + 1, mergedData.length);
+ return {
+ scrollHeight: itemTop,
+ start: startIndex,
+ end: endIndex,
+ offset: startOffset
+ };
+ }, [inVirtual, useVirtual, scrollTop, mergedData, heightUpdatedMark, height]),
+ scrollHeight = _React$useMemo.scrollHeight,
+ start = _React$useMemo.start,
+ end = _React$useMemo.end,
+ offset = _React$useMemo.offset;
+ rangeRef.current.start = start;
+ rangeRef.current.end = end;
+ // =============================== In Range ===============================
+ var maxScrollHeight = scrollHeight - height;
+ var maxScrollHeightRef = (0,react.useRef)(maxScrollHeight);
+ maxScrollHeightRef.current = maxScrollHeight;
+ function keepInRange(newScrollTop) {
+ var newTop = newScrollTop;
+ if (!Number.isNaN(maxScrollHeightRef.current)) {
+ newTop = Math.min(newTop, maxScrollHeightRef.current);
+ }
+ newTop = Math.max(newTop, 0);
+ return newTop;
+ }
+ var isScrollAtTop = scrollTop <= 0;
+ var isScrollAtBottom = scrollTop >= maxScrollHeight;
+ var originScroll = useOriginScroll(isScrollAtTop, isScrollAtBottom);
+ // ================================ Scroll ================================
+ function onScrollBar(newScrollTop) {
+ var newTop = newScrollTop;
+ syncScrollTop(newTop);
+ }
+ // When data size reduce. It may trigger native scroll event back to fit scroll position
+ function onFallbackScroll(e) {
+ var newScrollTop = e.currentTarget.scrollTop;
+ if (newScrollTop !== scrollTop) {
+ syncScrollTop(newScrollTop);
+ }
+ // Trigger origin onScroll
+ onScroll === null || onScroll === void 0 ? void 0 : onScroll(e);
+ }
+ // Since this added in global,should use ref to keep update
+ var _useFrameWheel = useFrameWheel(useVirtual, isScrollAtTop, isScrollAtBottom, function (offsetY) {
+ syncScrollTop(function (top) {
+ var newTop = top + offsetY;
+ return newTop;
+ });
+ }),
+ _useFrameWheel2 = (0,slicedToArray/* default */.Z)(_useFrameWheel, 2),
+ onRawWheel = _useFrameWheel2[0],
+ onFireFoxScroll = _useFrameWheel2[1];
+ // Mobile touch move
+ useMobileTouchMove(useVirtual, componentRef, function (deltaY, smoothOffset) {
+ if (originScroll(deltaY, smoothOffset)) {
+ return false;
+ }
+ onRawWheel({
+ preventDefault: function preventDefault() {},
+ deltaY: deltaY
+ });
+ return true;
+ });
+ (0,useLayoutEffect/* default */.Z)(function () {
+ // Firefox only
+ function onMozMousePixelScroll(e) {
+ if (useVirtual) {
+ e.preventDefault();
+ }
+ }
+ componentRef.current.addEventListener('wheel', onRawWheel);
+ componentRef.current.addEventListener('DOMMouseScroll', onFireFoxScroll);
+ componentRef.current.addEventListener('MozMousePixelScroll', onMozMousePixelScroll);
+ return function () {
+ if (componentRef.current) {
+ componentRef.current.removeEventListener('wheel', onRawWheel);
+ componentRef.current.removeEventListener('DOMMouseScroll', onFireFoxScroll);
+ componentRef.current.removeEventListener('MozMousePixelScroll', onMozMousePixelScroll);
+ }
+ };
+ }, [useVirtual]);
+ // ================================= Ref ==================================
+ var scrollTo = useScrollTo(componentRef, mergedData, heights, itemHeight, getKey, collectHeight, syncScrollTop, function () {
+ var _scrollBarRef$current;
+ (_scrollBarRef$current = scrollBarRef.current) === null || _scrollBarRef$current === void 0 ? void 0 : _scrollBarRef$current.delayHidden();
+ });
+ react.useImperativeHandle(ref, function () {
+ return {
+ scrollTo: scrollTo
+ };
+ });
+ // ================================ Effect ================================
+ /** We need told outside that some list not rendered */
+ (0,useLayoutEffect/* default */.Z)(function () {
+ if (onVisibleChange) {
+ var renderList = mergedData.slice(start, end + 1);
+ onVisibleChange(renderList, mergedData);
+ }
+ }, [start, end, mergedData]);
+ // ================================ Render ================================
+ var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
+ var componentStyle = null;
+ if (height) {
+ componentStyle = (0,objectSpread2/* default */.Z)((0,defineProperty/* default */.Z)({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
+ if (useVirtual) {
+ componentStyle.overflowY = 'hidden';
+ if (scrollMoving) {
+ componentStyle.pointerEvents = 'none';
+ }
+ }
+ }
+ return /*#__PURE__*/react.createElement("div", (0,esm_extends/* default */.Z)({
+ style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, style), {}, {
+ position: 'relative'
+ }),
+ className: mergedClassName
+ }, restProps), /*#__PURE__*/react.createElement(Component, {
+ className: "".concat(prefixCls, "-holder"),
+ style: componentStyle,
+ ref: componentRef,
+ onScroll: onFallbackScroll
+ }, /*#__PURE__*/react.createElement(es_Filler, {
+ prefixCls: prefixCls,
+ height: scrollHeight,
+ offset: offset,
+ onInnerResize: collectHeight,
+ ref: fillerInnerRef,
+ innerProps: innerProps
+ }, listChildren)), useVirtual && /*#__PURE__*/react.createElement(ScrollBar, {
+ ref: scrollBarRef,
+ prefixCls: prefixCls,
+ scrollTop: scrollTop,
+ height: height,
+ scrollHeight: scrollHeight,
+ count: mergedData.length,
+ onScroll: onScrollBar,
+ onStartMove: function onStartMove() {
+ setScrollMoving(true);
+ },
+ onStopMove: function onStopMove() {
+ setScrollMoving(false);
+ }
+ }));
+}
+var List = /*#__PURE__*/react.forwardRef(RawList);
+List.displayName = 'List';
+/* harmony default export */ var es_List = (List);
+;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/index.js
+
+/* harmony default export */ var rc_virtual_list_es = (es_List);
+
/***/ })
}]);
\ No newline at end of file
diff --git a/98452.async.js b/42187.async.js
similarity index 98%
rename from 98452.async.js
rename to 42187.async.js
index d8aab8e0ac..5a5081cfb5 100644
--- a/98452.async.js
+++ b/42187.async.js
@@ -1,4 +1,4 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[98452,81976,67390,35479,89777],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[42187,81976,67390,35479,89777],{
/***/ 18429:
/*!************************************************************************************!*\
@@ -215,49 +215,6 @@ if (false) {}
/***/ }),
-/***/ 33160:
-/*!*******************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules ***!
- \*******************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_ReloadOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.js
-// This icon file is generated automatically.
-var ReloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, "name": "reload", "theme": "outlined" };
-/* harmony default export */ var asn_ReloadOutlined = (ReloadOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var ReloadOutlined_ReloadOutlined = function ReloadOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_ReloadOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_ReloadOutlined = (/*#__PURE__*/react.forwardRef(ReloadOutlined_ReloadOutlined));
-
-/***/ }),
-
/***/ 88484:
/*!*******************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/UploadOutlined.js + 1 modules ***!
diff --git a/40084.async.js b/43270.async.js
similarity index 91%
rename from 40084.async.js
rename to 43270.async.js
index 27cc713743..2857ede65a 100644
--- a/40084.async.js
+++ b/43270.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[40084,74045,41522,9600,61710,15549],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[43270,74045,41522,9600,61710,15549],{
/***/ 48689:
/*!*******************************************************************************!*\
@@ -43,48 +43,6 @@ if (false) {}
/***/ }),
-/***/ 23430:
-/*!*********************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js + 1 modules ***!
- \*********************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_DownloadOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/DownloadOutlined.js
-// This icon file is generated automatically.
-var DownloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, "name": "download", "theme": "outlined" };
-/* harmony default export */ var asn_DownloadOutlined = (DownloadOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var DownloadOutlined_DownloadOutlined = function DownloadOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_DownloadOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_DownloadOutlined = (/*#__PURE__*/react.forwardRef(DownloadOutlined_DownloadOutlined));
-
-/***/ }),
-
/***/ 11475:
/*!******************************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules ***!
@@ -169,48 +127,6 @@ if (false) {}
/***/ }),
-/***/ 33160:
-/*!*******************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules ***!
- \*******************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_ReloadOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.js
-// This icon file is generated automatically.
-var ReloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, "name": "reload", "theme": "outlined" };
-/* harmony default export */ var asn_ReloadOutlined = (ReloadOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var ReloadOutlined_ReloadOutlined = function ReloadOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_ReloadOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_ReloadOutlined = (/*#__PURE__*/react.forwardRef(ReloadOutlined_ReloadOutlined));
-
-/***/ }),
-
/***/ 85673:
/*!**************************************************************!*\
!*** ./node_modules/antd/es/breadcrumb/index.js + 6 modules ***!
diff --git a/5521.async.js b/44016.async.js
similarity index 89%
rename from 5521.async.js
rename to 44016.async.js
index 5dcbce25eb..e0d35bc501 100644
--- a/5521.async.js
+++ b/44016.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[5521,10740,63708,43416,45635],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[44016,10740,63708,43416,45635],{
/***/ 63606:
/*!******************************************************************************!*\
@@ -1091,168 +1091,6 @@ const initMoveMotion = (token, motionName) => {
}];
};
-/***/ }),
-
-/***/ 67771:
-/*!****************************************************!*\
- !*** ./node_modules/antd/es/style/motion/slide.js ***!
- \****************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
-/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
-/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
-/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
-/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
-/* harmony export */ });
-/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
-/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
-/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
-
-
-const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- }
-});
-const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- }
-});
-const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- }
-});
-const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- }
-});
-const slideMotion = {
- 'slide-up': {
- inKeyframes: slideUpIn,
- outKeyframes: slideUpOut
- },
- 'slide-down': {
- inKeyframes: slideDownIn,
- outKeyframes: slideDownOut
- },
- 'slide-left': {
- inKeyframes: slideLeftIn,
- outKeyframes: slideLeftOut
- },
- 'slide-right': {
- inKeyframes: slideRightIn,
- outKeyframes: slideRightOut
- }
-};
-const initSlideMotion = (token, motionName) => {
- const {
- antCls
- } = token;
- const motionCls = `${antCls}-${motionName}`;
- const {
- inKeyframes,
- outKeyframes
- } = slideMotion[motionName];
- return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
- [`
- ${motionCls}-enter,
- ${motionCls}-appear
- `]: {
- transform: 'scale(0)',
- transformOrigin: '0% 0%',
- opacity: 0,
- animationTimingFunction: token.motionEaseOutQuint,
- [`&-prepare`]: {
- transform: 'scale(1)'
- }
- },
- [`${motionCls}-leave`]: {
- animationTimingFunction: token.motionEaseInQuint
- }
- }];
-};
-
/***/ })
}]);
\ No newline at end of file
diff --git a/44354.async.js b/44354.async.js
index 82f70ba0c9..6f51448313 100644
--- a/44354.async.js
+++ b/44354.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[44354,4670,83570],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[44354,4670,54909],{
/***/ 77171:
/*!**********************************************************************************!*\
diff --git a/44838.async.js b/44838.async.js
index 7d10783ad8..92972e3807 100644
--- a/44838.async.js
+++ b/44838.async.js
@@ -43,48 +43,6 @@ if (false) {}
/***/ }),
-/***/ 33160:
-/*!*******************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules ***!
- \*******************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_ReloadOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.js
-// This icon file is generated automatically.
-var ReloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, "name": "reload", "theme": "outlined" };
-/* harmony default export */ var asn_ReloadOutlined = (ReloadOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var ReloadOutlined_ReloadOutlined = function ReloadOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_ReloadOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_ReloadOutlined = (/*#__PURE__*/react.forwardRef(ReloadOutlined_ReloadOutlined));
-
-/***/ }),
-
/***/ 75490:
/*!************************************************************!*\
!*** ./src/components/image-preview/index.tsx + 1 modules ***!
@@ -107,14 +65,8 @@ var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./src/components/mediator.js
var mediator = __webpack_require__(91562);
-// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
-var es_button = __webpack_require__(71577);
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules
-var ReloadOutlined = __webpack_require__(33160);
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js + 1 modules
-var DownloadOutlined = __webpack_require__(23430);
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js + 1 modules
-var CloseOutlined = __webpack_require__(97937);
+// EXTERNAL MODULE: ./node_modules/antd/es/image/index.js + 49 modules
+var es_image = __webpack_require__(70736);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/components/image-preview/index.tsx
@@ -124,8 +76,6 @@ var jsx_runtime = __webpack_require__(85893);
-
-
/* harmony default export */ var image_preview = (function () {
var _useState = (0,react.useState)(''),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -135,12 +85,21 @@ var jsx_runtime = __webpack_require__(85893);
_useState4 = slicedToArray_default()(_useState3, 2),
deg = _useState4[0],
setDeg = _useState4[1];
+ var _useState5 = (0,react.useState)(),
+ _useState6 = slicedToArray_default()(_useState5, 2),
+ width = _useState6[0],
+ setwidth = _useState6[1];
+ var _useState7 = (0,react.useState)(),
+ _useState8 = slicedToArray_default()(_useState7, 2),
+ height = _useState8[0],
+ setheight = _useState8[1];
var saveUrl = (0,react.useRef)('');
(0,react.useEffect)(function () {
var unSub = mediator/* default.subscribe */.Z.subscribe('preview-image', function (value) {
setUrl(value);
// window.document.body
// document.body.style.height='100%'
+ console.log(imgref.current);
document.body.style.overflow = 'hidden';
});
return unSub;
@@ -164,47 +123,57 @@ var jsx_runtime = __webpack_require__(85893);
function onClose() {
// document.body.style.height='100%'
document.body.style.overflow = 'auto';
+ setwidth(undefined);
+ setheight(undefined);
+ setDeg(0);
setUrl('');
}
function onRotate() {
setDeg(deg + 90);
}
+ function big() {
+ width = imgref.current.width * 1.1;
+ height = imgref.current.height * 1.1;
+ setheight(height);
+ setwidth(width);
+ }
+ function small() {
+ width = imgref.current.width / 1.1;
+ height = imgref.current.height / 1.1;
+ setheight(height);
+ setwidth(width);
+ }
var maskRef = (0,react.useRef)();
var previewWrapperRef = (0,react.useRef)();
+ var imgref = (0,react.useRef)();
var handleMaskClick = function handleMaskClick(e) {
if (e.nativeEvent.target === maskRef.current || e.nativeEvent.target === previewWrapperRef.current) {
onClose();
}
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment, {
- children: !url ? null : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: "image-preview-container",
- ref: maskRef,
- onClick: handleMaskClick,
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: "button-group",
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
- onClick: onRotate,
- children: ["\u65CB\u8F6C", /*#__PURE__*/(0,jsx_runtime.jsx)(ReloadOutlined/* default */.Z, {})]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
- href: url,
- children: ["\u4E0B\u8F7D", /*#__PURE__*/(0,jsx_runtime.jsx)(DownloadOutlined/* default */.Z, {})]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
- onClick: onClose,
- children: ["\u5173\u95ED", /*#__PURE__*/(0,jsx_runtime.jsx)(CloseOutlined/* default */.Z, {})]
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ children: !url ? null : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "preview-wrp-group",
ref: previewWrapperRef,
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_image/* default */.Z, {
className: "image-preview",
src: url,
- alt: "\u9884\u89C8\u5927\u56FE",
style: {
- transform: "rotate(".concat(deg, "deg)")
+ display: 'none'
}
+ // ref={imgref}
+ ,
+ preview: {
+ visible: true,
+ src: url,
+ onVisibleChange: function onVisibleChange(value) {
+ setUrl('');
+ }
+ },
+ alt: "\u9884\u89C8\u5927\u56FE"
})
- })]
+ })
})
});
});
@@ -257,7 +226,7 @@ var es_form = __webpack_require__(25159);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
var message = __webpack_require__(2453);
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
-var modal = __webpack_require__(72423);
+var es_modal = __webpack_require__(72423);
// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
var row = __webpack_require__(71230);
// EXTERNAL MODULE: ./node_modules/antd/es/col/index.js
@@ -320,6 +289,7 @@ var _excluded = ["user", "account", "globalSetting", "shixunHomeworks", "loading
+
var Option = es_select/* default.Option */.Z.Option;
var TextArea = input/* default.TextArea */.Z.TextArea;
var identityMap = {
@@ -484,10 +454,14 @@ var Edit = function Edit(_ref) {
};
if (basicInfo !== null && basicInfo !== void 0 && basicInfo.face_image) {
+ var _basicInfo$face_image, _basicInfo$face_image2;
setFileList([{
uid: '111',
name: '111',
- url: env/* default.API_SERVER */.Z.API_SERVER + basicInfo.face_image
+ url: env/* default.API_SERVER */.Z.API_SERVER + basicInfo.face_image,
+ response: {
+ id: basicInfo === null || basicInfo === void 0 ? void 0 : (_basicInfo$face_image = basicInfo.face_image) === null || _basicInfo$face_image === void 0 ? void 0 : (_basicInfo$face_image2 = _basicInfo$face_image.split('/')) === null || _basicInfo$face_image2 === void 0 ? void 0 : _basicInfo$face_image2[3]
+ }
}]);
}
setRealName(basicInfo.name);
@@ -637,7 +611,7 @@ var Edit = function Edit(_ref) {
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
- modal/* default.confirm */.Z.confirm({
+ es_modal/* default.confirm */.Z.confirm({
centered: true,
okText: '确定',
cancelText: '取消',
@@ -715,7 +689,7 @@ var Edit = function Edit(_ref) {
var handleFinish = /*#__PURE__*/function () {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8(values) {
var _departmentList$find, _schoolList$find2;
- var nickname, gender, identity, studentNo, jobTitle, manager, school, department, edu_background, edu_entry_year, brief_introduction, face_image, staff_id, department_id, school_id, basicInfo, titls, professionalFlags, _account$basicInfo6, _face_image$file2, _face_image$file2$res, res, _account$basicInfo7, _user$userInfo7;
+ var nickname, gender, identity, studentNo, jobTitle, manager, school, department, edu_background, edu_entry_year, brief_introduction, face_image, staff_id, department_id, school_id, basicInfo, titls, professionalFlags, modal, _account$basicInfo6, _fileList$2, _fileList$2$response, res, _account$basicInfo7, _user$userInfo7;
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
@@ -726,7 +700,10 @@ var Edit = function Edit(_ref) {
school_id = (_schoolList$find2 = schoolList.find(function (item) {
return item.name === school;
})) === null || _schoolList$find2 === void 0 ? void 0 : _schoolList$find2.id;
- basicInfo = account.basicInfo; //
+ basicInfo = account.basicInfo;
+ console.log("B", values, basicInfo);
+
+ //
// const [location, location_city] = city;
titls = [];
if (basicInfo.authentication != 'uncertified') {
@@ -766,11 +743,34 @@ var Edit = function Edit(_ref) {
professionalFlags.push('院系/部门');
}
}
- if (!(titls.length > 0 || professionalFlags.length > 0)) {
+ if (school_id) {
_context8.next = 12;
break;
}
- modal/* default.confirm */.Z.confirm({
+ modal = es_modal/* default.confirm */.Z.confirm({
+ icon: null,
+ width: 600,
+ centered: true,
+ okText: '新增',
+ cancelText: '取消',
+ title: '提示',
+ content: /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
+ children: "\u7CFB\u7EDF\u672A\u627E\u5230\u60A8\u586B\u5199\u7684\u5B66\u6821/\u5355\u4F4D\uFF0C\u662F\u5426\u7533\u8BF7\u65B0\u589E\u8BE5\u5355\u4F4D\uFF1F"
+ })
+ }),
+ onOk: handleApplySchool,
+ onCancel: function onCancel() {
+ modal.destroy();
+ }
+ });
+ return _context8.abrupt("return");
+ case 12:
+ if (!(titls.length > 0 || professionalFlags.length > 0)) {
+ _context8.next = 16;
+ break;
+ }
+ es_modal/* default.confirm */.Z.confirm({
centered: true,
icon: null,
okText: '确定',
@@ -781,7 +781,7 @@ var Edit = function Edit(_ref) {
}),
onOk: function () {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
- var _account$basicInfo4, _face_image$file, _face_image$file$resp;
+ var _account$basicInfo4, _fileList$, _fileList$$response;
var _user$userInfo4, _user$userInfo5, res, _account$basicInfo5, _user$userInfo6;
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
@@ -823,7 +823,7 @@ var Edit = function Edit(_ref) {
brief_introduction: brief_introduction,
student_id: identity === 'student' ? studentNo : null,
technical_title: jobTitle || manager,
- face_image: face_image === null || face_image === void 0 ? void 0 : (_face_image$file = face_image.file) === null || _face_image$file === void 0 ? void 0 : (_face_image$file$resp = _face_image$file.response) === null || _face_image$file$resp === void 0 ? void 0 : _face_image$file$resp.id
+ face_image: fileList === null || fileList === void 0 ? void 0 : (_fileList$ = fileList[0]) === null || _fileList$ === void 0 ? void 0 : (_fileList$$response = _fileList$.response) === null || _fileList$$response === void 0 ? void 0 : _fileList$$response.id
}
});
case 8:
@@ -883,10 +883,10 @@ var Edit = function Edit(_ref) {
return onOk;
}()
});
- _context8.next = 26;
+ _context8.next = 30;
break;
- case 12:
- _context8.next = 14;
+ case 16:
+ _context8.next = 18;
return dispatch({
type: 'account/updateAccount',
payload: {
@@ -906,19 +906,19 @@ var Edit = function Edit(_ref) {
brief_introduction: brief_introduction,
student_id: identity === 'student' ? studentNo : null,
technical_title: jobTitle || manager,
- face_image: face_image === null || face_image === void 0 ? void 0 : (_face_image$file2 = face_image.file) === null || _face_image$file2 === void 0 ? void 0 : (_face_image$file2$res = _face_image$file2.response) === null || _face_image$file2$res === void 0 ? void 0 : _face_image$file2$res.id
+ face_image: fileList === null || fileList === void 0 ? void 0 : (_fileList$2 = fileList[0]) === null || _fileList$2 === void 0 ? void 0 : (_fileList$2$response = _fileList$2.response) === null || _fileList$2$response === void 0 ? void 0 : _fileList$2$response.id
}
});
- case 14:
+ case 18:
res = _context8.sent;
if (!((res === null || res === void 0 ? void 0 : res.status) === -1)) {
- _context8.next = 17;
+ _context8.next = 21;
break;
}
return _context8.abrupt("return");
- case 17:
+ case 21:
if (!res) {
- _context8.next = 26;
+ _context8.next = 30;
break;
}
message/* default.info */.ZP.info('保存成功');
@@ -934,12 +934,12 @@ var Edit = function Edit(_ref) {
}
});
if (!(identity !== saveIdentity && identity === 'teacher')) {
- _context8.next = 24;
+ _context8.next = 28;
break;
}
setAssistantVisible(true);
return _context8.abrupt("return");
- case 24:
+ case 28:
if (localStorage.getItem('Noviceguide') === '0') {} else {
dispatch({
type: 'shixunHomeworks/setActionTabs',
@@ -954,7 +954,7 @@ var Edit = function Edit(_ref) {
});
}
_umi_production_exports.history.push('/account/profile');
- case 26:
+ case 30:
case "end":
return _context8.stop();
}
@@ -1560,7 +1560,7 @@ var Edit = function Edit(_ref) {
onSuccess: function onSuccess(departmentName) {
return handleSetDepartment(formValue.school, departmentName);
}
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_modal/* default */.Z, {
centered: true,
destroyOnClose: true,
open: assistantVisible,
@@ -1610,434 +1610,6 @@ var Edit = function Edit(_ref) {
/***/ }),
-/***/ 6971:
-/*!**********************************************************************************!*\
- !*** ./src/pages/Account/components/AppplyDepartmentModal/index.tsx + 1 modules ***!
- \**********************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ components_AppplyDepartmentModal; }
-});
-
-// 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/@babel/runtime/helpers/objectWithoutProperties.js
-var objectWithoutProperties = __webpack_require__(70215);
-var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
-var _umi_production_exports = __webpack_require__(89214);
-// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
-var input = __webpack_require__(79531);
-// EXTERNAL MODULE: ./node_modules/antd/es/form/index.js + 17 modules
-var es_form = __webpack_require__(25159);
-// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
-var message = __webpack_require__(2453);
-// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
-var modal = __webpack_require__(72423);
-// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
-var es_button = __webpack_require__(71577);
-;// CONCATENATED MODULE: ./src/pages/Account/components/AppplyDepartmentModal/index.less?modules
-// extracted by mini-css-extract-plugin
-/* harmony default export */ var AppplyDepartmentModalmodules = ({"flexRow":"flexRow___QJsV8","flexColumn":"flexColumn___Otjag","formWrap":"formWrap___z8635","example":"example___rgoyo","footerWrap":"footerWrap___gNXP9"});
-// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
-var jsx_runtime = __webpack_require__(85893);
-;// CONCATENATED MODULE: ./src/pages/Account/components/AppplyDepartmentModal/index.tsx
-
-
-
-
-var _excluded = ["account", "globalSetting", "loading", "dispatch", "schoolName", "departmentName", "visible", "onClose", "onSuccess"];
-
-
-
-
-
-
-var TextArea = input/* default.TextArea */.Z.TextArea;
-var AppplyDepartmentModal = function AppplyDepartmentModal(_ref) {
- var account = _ref.account,
- globalSetting = _ref.globalSetting,
- loading = _ref.loading,
- dispatch = _ref.dispatch,
- schoolName = _ref.schoolName,
- departmentName = _ref.departmentName,
- visible = _ref.visible,
- _ref$onClose = _ref.onClose,
- onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
- _ref$onSuccess = _ref.onSuccess,
- onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess,
- props = objectWithoutProperties_default()(_ref, _excluded);
- var _Form$useForm = es_form/* default.useForm */.Z.useForm(),
- _Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
- form = _Form$useForm2[0];
- var schoolId = (0,react.useRef)();
- (0,react.useEffect)(function () {
- schoolId.current = props.schoolId;
- }, [props.schoolId]);
- (0,react.useEffect)(function () {
- form.setFieldsValue({
- department: departmentName
- });
- }, [departmentName]);
- var handleFinish = /*#__PURE__*/function () {
- var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
- var _ref3, department, remarks, res;
- return regeneratorRuntime_default()().wrap(function _callee$(_context) {
- while (1) switch (_context.prev = _context.next) {
- case 0:
- _ref3 = values || {}, department = _ref3.department, remarks = _ref3.remarks;
- _context.next = 3;
- return dispatch({
- type: 'account/appplyDepartment',
- payload: {
- school_id: schoolId.current,
- name: department,
- remarks: remarks
- }
- });
- case 3:
- res = _context.sent;
- onClose();
- if (res) {
- message/* default.success */.ZP.success("新增院系/部门成功!");
- onSuccess(department);
- }
- case 6:
- case "end":
- return _context.stop();
- }
- }, _callee);
- }));
- return function handleFinish(_x) {
- return _ref2.apply(this, arguments);
- };
- }();
- return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
- centered: true,
- keyboard: false,
- closable: false,
- destroyOnClose: true,
- open: visible,
- title: "\u7533\u8BF7\u6DFB\u52A0\u5B50\u5355\u4F4D\u540D\u79F0",
- width: "600px",
- footer: null,
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
- className: AppplyDepartmentModalmodules.formWrap,
- form: form,
- labelCol: {
- span: 4
- },
- wrapperCol: {
- span: 20
- },
- onFinish: handleFinish,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
- label: "\u5355\u4F4D\u540D\u79F0\uFF1A",
- children: schoolName
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
- label: "\u90E8\u95E8\u540D\u79F0\uFF1A",
- name: "department",
- rules: [{
- required: true,
- message: '请输入部门或者学院名称'
- }],
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
- placeholder: "\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"
- })
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
- label: "\u8BF4\u660E\uFF1A",
- name: "remarks",
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea, {
- placeholder: "\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"
- })
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- className: AppplyDepartmentModalmodules.footerWrap,
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default.Item */.Z.Item, {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
- className: "mr5",
- size: 'middle',
- onClick: function onClick() {
- onClose();
- },
- children: "\u53D6\u6D88"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
- size: 'middle',
- type: "primary",
- htmlType: "submit",
- loading: loading['account/appplyDepartment'],
- children: "\u4FDD\u5B58"
- })]
- })
- })]
- })
- });
-};
-/* harmony default export */ var components_AppplyDepartmentModal = ((0,_umi_production_exports.connect)(function (_ref4) {
- var account = _ref4.account,
- loading = _ref4.loading,
- globalSetting = _ref4.globalSetting;
- return {
- account: account,
- globalSetting: globalSetting,
- loading: loading.effects
- };
-})(AppplyDepartmentModal));
-
-/***/ }),
-
-/***/ 90320:
-/*!******************************************************************************!*\
- !*** ./src/pages/Account/components/AppplySchoolModal/index.tsx + 1 modules ***!
- \******************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ components_AppplySchoolModal; }
-});
-
-// 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/@babel/runtime/helpers/objectWithoutProperties.js
-var objectWithoutProperties = __webpack_require__(70215);
-var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
-var _umi_production_exports = __webpack_require__(89214);
-// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
-var input = __webpack_require__(79531);
-// EXTERNAL MODULE: ./node_modules/antd/es/form/index.js + 17 modules
-var es_form = __webpack_require__(25159);
-// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
-var message = __webpack_require__(2453);
-// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
-var modal = __webpack_require__(72423);
-// EXTERNAL MODULE: ./node_modules/antd/es/cascader/index.js + 63 modules
-var cascader = __webpack_require__(80316);
-// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
-var es_button = __webpack_require__(71577);
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CheckCircleFilled.js + 1 modules
-var CheckCircleFilled = __webpack_require__(89739);
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules
-var CloseCircleFilled = __webpack_require__(4340);
-// EXTERNAL MODULE: ./src/utils/cityData.ts
-var cityData = __webpack_require__(12325);
-;// CONCATENATED MODULE: ./src/pages/Account/components/AppplySchoolModal/index.less?modules
-// extracted by mini-css-extract-plugin
-/* harmony default export */ var AppplySchoolModalmodules = ({"flexRow":"flexRow___qRWfN","flexColumn":"flexColumn___qUHfF","formWrap":"formWrap___kSgvX","example":"example___D0a_H","footerWrap":"footerWrap___kTeYf"});
-// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
-var jsx_runtime = __webpack_require__(85893);
-;// CONCATENATED MODULE: ./src/pages/Account/components/AppplySchoolModal/index.tsx
-
-
-
-
-var _excluded = ["account", "globalSetting", "loading", "dispatch", "schoolName", "visible", "onClose", "onSuccess"];
-
-
-
-
-
-
-
-
-var filter = function filter(inputValue, path) {
- return path.some(function (option) {
- return option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1;
- });
-};
-var TextArea = input/* default.TextArea */.Z.TextArea;
-var AppplySchoolModal = function AppplySchoolModal(_ref) {
- var account = _ref.account,
- globalSetting = _ref.globalSetting,
- loading = _ref.loading,
- dispatch = _ref.dispatch,
- schoolName = _ref.schoolName,
- visible = _ref.visible,
- _ref$onClose = _ref.onClose,
- onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
- _ref$onSuccess = _ref.onSuccess,
- onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess,
- props = objectWithoutProperties_default()(_ref, _excluded);
- var _Form$useForm = es_form/* default.useForm */.Z.useForm(),
- _Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
- form = _Form$useForm2[0];
- (0,react.useEffect)(function () {
- form.setFieldsValue({
- name: schoolName
- });
- }, [schoolName]);
- var handleFinish = /*#__PURE__*/function () {
- var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
- var _ref3, name, _ref3$city, city, address, remarks, res;
- return regeneratorRuntime_default()().wrap(function _callee$(_context) {
- while (1) switch (_context.prev = _context.next) {
- case 0:
- _ref3 = values || {}, name = _ref3.name, _ref3$city = _ref3.city, city = _ref3$city === void 0 ? [] : _ref3$city, address = _ref3.address, remarks = _ref3.remarks;
- _context.next = 3;
- return dispatch({
- type: 'account/appplySchool',
- payload: {
- name: name,
- province: city[0],
- city: city[1],
- address: address,
- remarks: remarks
- }
- });
- case 3:
- res = _context.sent;
- onClose();
- if (res) {
- message/* default.success */.ZP.success("新增学校/单位成功!");
- onSuccess(name);
- }
- case 6:
- case "end":
- return _context.stop();
- }
- }, _callee);
- }));
- return function handleFinish(_x) {
- return _ref2.apply(this, arguments);
- };
- }();
- return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
- centered: true,
- keyboard: false,
- closable: false,
- destroyOnClose: true,
- open: visible,
- title: "\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",
- width: "600px",
- footer: null,
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
- className: AppplySchoolModalmodules.formWrap,
- form: form,
- labelCol: {
- span: 4
- },
- wrapperCol: {
- span: 20
- },
- onFinish: handleFinish,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
- label: "\u5355\u4F4D\u5168\u79F0\uFF1A",
- name: "name",
- rules: [{
- required: true,
- message: '请输入学校或工作单位'
- }],
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
- placeholder: "\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"
- })
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: "".concat(AppplySchoolModalmodules.flexRow, " ").concat(AppplySchoolModalmodules.example),
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- children: "\u793A\u4F8B\uFF1A"
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: AppplySchoolModalmodules.flexColumn,
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(CheckCircleFilled/* default */.Z, {
- style: {
- color: "rgb(82, 196, 26)"
- }
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
- className: "font14 ml5",
- children: "\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784"
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleFilled/* default */.Z, {
- style: {
- color: "red"
- }
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
- className: "font14 ml5",
- children: "\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625"
- })]
- })]
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
- label: "\u5730\u533A\uFF1A",
- name: "city",
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(cascader/* default */.Z, {
- allowClear: true,
- size: 'middle',
- options: cityData/* CityData */.P,
- placeholder: "\u8BF7\u9009\u62E9\u6240\u5728\u5730",
- showSearch: {
- matchInputWidth: true,
- filter: filter
- }
- })
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
- label: "\u8BE6\u7EC6\u5730\u5740\uFF1A",
- name: "address",
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
- placeholder: "\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"
- })
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
- label: "\u8BF4\u660E\uFF1A",
- name: "remarks",
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea, {
- placeholder: "\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"
- })
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- className: AppplySchoolModalmodules.footerWrap,
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default.Item */.Z.Item, {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
- className: "mr5",
- size: 'middle',
- onClick: function onClick() {
- onClose();
- },
- children: "\u53D6\u6D88"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
- size: 'middle',
- type: "primary",
- htmlType: "submit",
- loading: loading['account/appplySchool'],
- children: "\u4FDD\u5B58"
- })]
- })
- })]
- })
- });
-};
-/* harmony default export */ var components_AppplySchoolModal = ((0,_umi_production_exports.connect)(function (_ref4) {
- var account = _ref4.account,
- loading = _ref4.loading,
- globalSetting = _ref4.globalSetting;
- return {
- account: account,
- globalSetting: globalSetting,
- loading: loading.effects
- };
-})(AppplySchoolModal));
-
-/***/ }),
-
/***/ 32637:
/*!***********************************************!*\
!*** ./src/assets/images/AssistantCode3.jpeg ***!
diff --git a/45117.async.js b/45117.async.js
deleted file mode 100644
index fe27b2fefa..0000000000
--- a/45117.async.js
+++ /dev/null
@@ -1,961 +0,0 @@
-"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[45117],{
-
-/***/ 99611:
-/*!****************************************************************************!*\
- !*** ./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/extends.js
-var esm_extends = __webpack_require__(87462);
-// 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/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./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,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_EyeOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
-
-/***/ }),
-
-/***/ 6171:
-/*!*****************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js + 1 modules ***!
- \*****************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_LeftOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js
-// This icon file is generated automatically.
-var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
-/* harmony default export */ var asn_LeftOutlined = (LeftOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var LeftOutlined_LeftOutlined = function LeftOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_LeftOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_LeftOutlined = (/*#__PURE__*/react.forwardRef(LeftOutlined_LeftOutlined));
-
-/***/ }),
-
-/***/ 18073:
-/*!******************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/RightOutlined.js + 1 modules ***!
- \******************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_RightOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/RightOutlined.js
-// This icon file is generated automatically.
-var RightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, "name": "right", "theme": "outlined" };
-/* harmony default export */ var asn_RightOutlined = (RightOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/RightOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var RightOutlined_RightOutlined = function RightOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_RightOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_RightOutlined = (/*#__PURE__*/react.forwardRef(RightOutlined_RightOutlined));
-
-/***/ }),
-
-/***/ 57838:
-/*!************************************************************!*\
- !*** ./node_modules/antd/es/_util/hooks/useForceUpdate.js ***!
- \************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Z": function() { return /* binding */ useForceUpdate; }
-/* harmony export */ });
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-
-function useForceUpdate() {
- const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
- return forceUpdate;
-}
-
-/***/ }),
-
-/***/ 49288:
-/*!*****************************************************!*\
- !*** ./node_modules/antd/es/auto-complete/index.js ***!
- \*****************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 94184);
-/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
-/* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/Children/toArray */ 37419);
-/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/omit */ 10366);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/PurePanel */ 8745);
-/* harmony import */ var _util_reactNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/reactNode */ 96159);
-/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider */ 53124);
-/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../select */ 79035);
-'use client';
-
-
-
-
-
-
-
-
-
-
-const {
- Option
-} = _select__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z;
-function isSelectOptionOrSelectOptGroup(child) {
- return child && child.type && (child.type.isSelectOption || child.type.isSelectOptGroup);
-}
-const AutoComplete = (props, ref) => {
- const {
- prefixCls: customizePrefixCls,
- className,
- popupClassName,
- dropdownClassName,
- children,
- dataSource
- } = props;
- const childNodes = (0,rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(children);
- // ============================= Input =============================
- let customizeInput;
- if (childNodes.length === 1 && (0,_util_reactNode__WEBPACK_IMPORTED_MODULE_4__/* .isValidElement */ .l$)(childNodes[0]) && !isSelectOptionOrSelectOptGroup(childNodes[0])) {
- [customizeInput] = childNodes;
- }
- const getInputElement = customizeInput ? () => customizeInput : undefined;
- // ============================ Options ============================
- let optionChildren;
- // [Legacy] convert `children` or `dataSource` into option children
- if (childNodes.length && isSelectOptionOrSelectOptGroup(childNodes[0])) {
- optionChildren = children;
- } else {
- optionChildren = dataSource ? dataSource.map(item => {
- if ((0,_util_reactNode__WEBPACK_IMPORTED_MODULE_4__/* .isValidElement */ .l$)(item)) {
- return item;
- }
- switch (typeof item) {
- case 'string':
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Option, {
- key: item,
- value: item
- }, item);
- case 'object':
- {
- const {
- value: optionValue
- } = item;
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Option, {
- key: optionValue,
- value: optionValue
- }, item.text);
- }
- default:
- false ? 0 : void 0;
- return undefined;
- }
- }) : [];
- }
- if (false) {}
- const {
- getPrefixCls
- } = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_5__/* .ConfigContext */ .E_);
- const prefixCls = getPrefixCls('select', customizePrefixCls);
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_select__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, Object.assign({
- ref: ref,
- showArrow: false
- }, (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props, ['dataSource', 'dropdownClassName']), {
- prefixCls: prefixCls,
- popupClassName: popupClassName || dropdownClassName,
- className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(`${prefixCls}-auto-complete`, className),
- mode: _select__WEBPACK_IMPORTED_MODULE_3__/* ["default"].SECRET_COMBOBOX_MODE_DO_NOT_USE */ .Z.SECRET_COMBOBOX_MODE_DO_NOT_USE,
- // Internal api
- getInputElement
- }), optionChildren);
-};
-const RefAutoComplete = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(AutoComplete);
-// We don't care debug panel
-/* istanbul ignore next */
-const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(RefAutoComplete);
-RefAutoComplete.Option = Option;
-RefAutoComplete._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
-if (false) {}
-/* harmony default export */ __webpack_exports__["Z"] = (RefAutoComplete);
-
-/***/ }),
-
-/***/ 63185:
-/*!******************************************************!*\
- !*** ./node_modules/antd/es/checkbox/style/index.js ***!
- \******************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "C2": function() { return /* binding */ getStyle; }
-/* harmony export */ });
-/* unused harmony export genCheckboxStyle */
-/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
-/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../style */ 14747);
-/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme/internal */ 45503);
-/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../theme/internal */ 67968);
-
-
-
-// ============================== Motion ==============================
-const antCheckboxEffect = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antCheckboxEffect', {
- '0%': {
- transform: 'scale(1)',
- opacity: 0.5
- },
- '100%': {
- transform: 'scale(1.6)',
- opacity: 0
- }
-});
-// ============================== Styles ==============================
-const genCheckboxStyle = token => {
- const {
- checkboxCls
- } = token;
- const wrapperCls = `${checkboxCls}-wrapper`;
- return [
- // ===================== Basic =====================
- {
- // Group
- [`${checkboxCls}-group`]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .resetComponent */ .Wf)(token)), {
- display: 'inline-flex',
- flexWrap: 'wrap',
- columnGap: token.marginXS,
- // Group > Grid
- [`> ${token.antCls}-row`]: {
- flex: 1
- }
- }),
- // Wrapper
- [wrapperCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .resetComponent */ .Wf)(token)), {
- display: 'inline-flex',
- alignItems: 'baseline',
- cursor: 'pointer',
- // Fix checkbox & radio in flex align #30260
- '&:after': {
- display: 'inline-block',
- width: 0,
- overflow: 'hidden',
- content: "'\\a0'"
- },
- // Checkbox near checkbox
- [`& + ${wrapperCls}`]: {
- marginInlineStart: 0
- },
- [`&${wrapperCls}-in-form-item`]: {
- 'input[type="checkbox"]': {
- width: 14,
- height: 14 // FIXME: magic
- }
- }
- }),
-
- // Wrapper > Checkbox
- [checkboxCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .resetComponent */ .Wf)(token)), {
- position: 'relative',
- whiteSpace: 'nowrap',
- lineHeight: 1,
- cursor: 'pointer',
- // To make alignment right when `controlHeight` is changed
- // Ref: https://github.com/ant-design/ant-design/issues/41564
- alignSelf: 'center',
- // Wrapper > Checkbox > input
- [`${checkboxCls}-input`]: {
- position: 'absolute',
- // Since baseline align will get additional space offset,
- // we need to move input to top to make it align with text.
- // Ref: https://github.com/ant-design/ant-design/issues/38926#issuecomment-1486137799
- inset: 0,
- zIndex: 1,
- cursor: 'pointer',
- opacity: 0,
- margin: 0,
- [`&:focus-visible + ${checkboxCls}-inner`]: Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .genFocusOutline */ .oN)(token))
- },
- // Wrapper > Checkbox > inner
- [`${checkboxCls}-inner`]: {
- boxSizing: 'border-box',
- position: 'relative',
- top: 0,
- insetInlineStart: 0,
- display: 'block',
- width: token.checkboxSize,
- height: token.checkboxSize,
- direction: 'ltr',
- backgroundColor: token.colorBgContainer,
- border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,
- borderRadius: token.borderRadiusSM,
- borderCollapse: 'separate',
- transition: `all ${token.motionDurationSlow}`,
- '&:after': {
- boxSizing: 'border-box',
- position: 'absolute',
- top: '50%',
- insetInlineStart: '21.5%',
- display: 'table',
- width: token.checkboxSize / 14 * 5,
- height: token.checkboxSize / 14 * 8,
- border: `${token.lineWidthBold}px solid ${token.colorWhite}`,
- borderTop: 0,
- borderInlineStart: 0,
- transform: 'rotate(45deg) scale(0) translate(-50%,-50%)',
- opacity: 0,
- content: '""',
- transition: `all ${token.motionDurationFast} ${token.motionEaseInBack}, opacity ${token.motionDurationFast}`
- }
- },
- // Wrapper > Checkbox + Text
- '& + span': {
- paddingInlineStart: token.paddingXS,
- paddingInlineEnd: token.paddingXS
- }
- })
- },
- // ===================== Hover =====================
- {
- // Wrapper
- [`${wrapperCls}:hover ${checkboxCls}:after`]: {
- visibility: 'visible'
- },
- // Wrapper & Wrapper > Checkbox
- [`
- ${wrapperCls}:not(${wrapperCls}-disabled),
- ${checkboxCls}:not(${checkboxCls}-disabled)
- `]: {
- [`&:hover ${checkboxCls}-inner`]: {
- borderColor: token.colorPrimary
- }
- },
- [`${wrapperCls}:not(${wrapperCls}-disabled)`]: {
- [`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled) ${checkboxCls}-inner`]: {
- backgroundColor: token.colorPrimaryHover,
- borderColor: 'transparent'
- },
- [`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled):after`]: {
- borderColor: token.colorPrimaryHover
- }
- }
- },
- // ==================== Checked ====================
- {
- // Wrapper > Checkbox
- [`${checkboxCls}-checked`]: {
- [`${checkboxCls}-inner`]: {
- backgroundColor: token.colorPrimary,
- borderColor: token.colorPrimary,
- '&:after': {
- opacity: 1,
- transform: 'rotate(45deg) scale(1) translate(-50%,-50%)',
- transition: `all ${token.motionDurationMid} ${token.motionEaseOutBack} ${token.motionDurationFast}`
- }
- },
- // Checked Effect
- '&:after': {
- position: 'absolute',
- top: 0,
- insetInlineStart: 0,
- width: '100%',
- height: '100%',
- borderRadius: token.borderRadiusSM,
- visibility: 'hidden',
- border: `${token.lineWidthBold}px solid ${token.colorPrimary}`,
- animationName: antCheckboxEffect,
- animationDuration: token.motionDurationSlow,
- animationTimingFunction: 'ease-in-out',
- animationFillMode: 'backwards',
- content: '""',
- transition: `all ${token.motionDurationSlow}`
- }
- },
- [`
- ${wrapperCls}-checked:not(${wrapperCls}-disabled),
- ${checkboxCls}-checked:not(${checkboxCls}-disabled)
- `]: {
- [`&:hover ${checkboxCls}-inner`]: {
- backgroundColor: token.colorPrimaryHover,
- borderColor: 'transparent'
- },
- [`&:hover ${checkboxCls}:after`]: {
- borderColor: token.colorPrimaryHover
- }
- }
- },
- // ================= Indeterminate =================
- {
- [checkboxCls]: {
- '&-indeterminate': {
- // Wrapper > Checkbox > inner
- [`${checkboxCls}-inner`]: {
- backgroundColor: token.colorBgContainer,
- borderColor: token.colorBorder,
- '&:after': {
- top: '50%',
- insetInlineStart: '50%',
- width: token.fontSizeLG / 2,
- height: token.fontSizeLG / 2,
- backgroundColor: token.colorPrimary,
- border: 0,
- transform: 'translate(-50%, -50%) scale(1)',
- opacity: 1,
- content: '""'
- }
- }
- }
- }
- },
- // ==================== Disable ====================
- {
- // Wrapper
- [`${wrapperCls}-disabled`]: {
- cursor: 'not-allowed'
- },
- // Wrapper > Checkbox
- [`${checkboxCls}-disabled`]: {
- // Wrapper > Checkbox > input
- [`&, ${checkboxCls}-input`]: {
- cursor: 'not-allowed',
- // Disabled for native input to enable Tooltip event handler
- // ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901
- pointerEvents: 'none'
- },
- // Wrapper > Checkbox > inner
- [`${checkboxCls}-inner`]: {
- background: token.colorBgContainerDisabled,
- borderColor: token.colorBorder,
- '&:after': {
- borderColor: token.colorTextDisabled
- }
- },
- '&:after': {
- display: 'none'
- },
- '& + span': {
- color: token.colorTextDisabled
- },
- [`&${checkboxCls}-indeterminate ${checkboxCls}-inner::after`]: {
- background: token.colorTextDisabled
- }
- }
- }];
-};
-// ============================== Export ==============================
-function getStyle(prefixCls, token) {
- const checkboxToken = (0,_theme_internal__WEBPACK_IMPORTED_MODULE_2__/* .merge */ .TS)(token, {
- checkboxCls: `.${prefixCls}`,
- checkboxSize: token.controlInteractiveSize
- });
- return [genCheckboxStyle(checkboxToken)];
-}
-/* harmony default export */ __webpack_exports__["ZP"] = ((0,_theme_internal__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)('Checkbox', (token, _ref) => {
- let {
- prefixCls
- } = _ref;
- return [getStyle(prefixCls, token)];
-}));
-
-/***/ }),
-
-/***/ 79531:
-/*!*********************************************************!*\
- !*** ./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/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);
-// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js
-var style = __webpack_require__(47673);
-;// CONCATENATED MODULE: ./node_modules/antd/es/input/Group.js
-
-
-
-
-
-
-
-const Group = props => {
- const {
- getPrefixCls,
- direction
- } = (0,react.useContext)(context/* ConfigContext */.E_);
- const {
- prefixCls: customizePrefixCls,
- className
- } = props;
- const prefixCls = getPrefixCls('input-group', customizePrefixCls);
- const inputPrefixCls = getPrefixCls('input');
- const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls);
- const cls = classnames_default()(prefixCls, {
- [`${prefixCls}-lg`]: props.size === 'large',
- [`${prefixCls}-sm`]: props.size === 'small',
- [`${prefixCls}-compact`]: props.compact,
- [`${prefixCls}-rtl`]: direction === 'rtl'
- }, hashId, className);
- const formItemContext = (0,react.useContext)(form_context/* FormItemInputContext */.aM);
- const groupFormItemContext = (0,react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
- isFormItemInput: false
- }), [formItemContext]);
- if (false) {}
- return wrapSSR( /*#__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/extends.js
-var esm_extends = __webpack_require__(87462);
-;// 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/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./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,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_EyeInvisibleOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
-var EyeOutlined = __webpack_require__(99611);
-// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
-var omit = __webpack_require__(10366);
-// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/ref.js
-var es_ref = __webpack_require__(17799);
-// 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;
-};
-
-
-
-
-
-
-
-
-
-
-const defaultIconRender = visible => visible ? /*#__PURE__*/react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(icons_EyeInvisibleOutlined, null);
-const ActionMap = {
- click: 'onClick',
- hover: 'onMouseOver'
-};
-const Password = /*#__PURE__*/react.forwardRef((props, ref) => {
- const {
- visibilityToggle = true
- } = props;
- const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
- const [visible, setVisible] = (0,react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
- const inputRef = (0,react.useRef)(null);
- react.useEffect(() => {
- if (visibilityControlled) {
- setVisible(visibilityToggle.visible);
- }
- }, [visibilityControlled, visibilityToggle]);
- // Remove Password value
- const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
- const onVisibleChange = () => {
- const {
- disabled
- } = props;
- if (disabled) {
- return;
- }
- if (visible) {
- removePasswordTimeout();
- }
- setVisible(prevState => {
- var _a;
- const newState = !prevState;
- if (typeof visibilityToggle === 'object') {
- (_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
- }
- return newState;
- });
- };
- const getIcon = prefixCls => {
- const {
- action = 'click',
- iconRender = defaultIconRender
- } = props;
- const iconTrigger = ActionMap[action] || '';
- const icon = iconRender(visible);
- const iconProps = {
- [iconTrigger]: onVisibleChange,
- className: `${prefixCls}-icon`,
- key: 'passwordIcon',
- onMouseDown: e => {
- // Prevent focused state lost
- // https://github.com/ant-design/ant-design/issues/15173
- e.preventDefault();
- },
- onMouseUp: e => {
- // Prevent caret position change
- // https://github.com/ant-design/ant-design/issues/23524
- e.preventDefault();
- }
- };
- return /*#__PURE__*/react.cloneElement( /*#__PURE__*/react.isValidElement(icon) ? icon : /*#__PURE__*/react.createElement("span", null, icon), iconProps);
- };
- const {
- className,
- prefixCls: customizePrefixCls,
- inputPrefixCls: customizeInputPrefixCls,
- size
- } = props,
- restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
- const {
- getPrefixCls
- } = react.useContext(context/* ConfigContext */.E_);
- const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
- const prefixCls = getPrefixCls('input-password', customizePrefixCls);
- const suffixIcon = visibilityToggle && getIcon(prefixCls);
- const inputClassName = classnames_default()(prefixCls, className, {
- [`${prefixCls}-${size}`]: !!size
- });
- const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
- type: visible ? 'text' : 'password',
- className: inputClassName,
- prefixCls: inputPrefixCls,
- suffix: suffixIcon
- });
- if (size) {
- omittedProps.size = size;
- }
- return /*#__PURE__*/react.createElement(Input/* default */.Z, Object.assign({
- ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
- }, omittedProps));
-});
-if (false) {}
-/* harmony default export */ var input_Password = (Password);
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
-var SearchOutlined = __webpack_require__(68795);
-// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
-var reactNode = __webpack_require__(96159);
-// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
-var es_button = __webpack_require__(71577);
-// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/hooks/useSize.js
-var useSize = __webpack_require__(98675);
-// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
-var Compact = __webpack_require__(4173);
-;// 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;
-};
-
-
-
-
-
-
-
-
-
-
-const Search = /*#__PURE__*/react.forwardRef((props, ref) => {
- const {
- prefixCls: customizePrefixCls,
- inputPrefixCls: customizeInputPrefixCls,
- className,
- size: customizeSize,
- suffix,
- enterButton = false,
- addonAfter,
- loading,
- disabled,
- onSearch: customOnSearch,
- onChange: customOnChange,
- onCompositionStart,
- onCompositionEnd
- } = props,
- restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
- const {
- getPrefixCls,
- direction
- } = react.useContext(context/* ConfigContext */.E_);
- const composedRef = react.useRef(false);
- const prefixCls = getPrefixCls('input-search', customizePrefixCls);
- const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
- const {
- compactSize
- } = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
- const size = (0,useSize/* default */.Z)(ctx => {
- var _a;
- return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
- });
- const inputRef = react.useRef(null);
- const onChange = e => {
- if (e && e.target && e.type === 'click' && customOnSearch) {
- customOnSearch(e.target.value, e);
- }
- if (customOnChange) {
- customOnChange(e);
- }
- };
- const onMouseDown = e => {
- var _a;
- if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
- e.preventDefault();
- }
- };
- const onSearch = e => {
- var _a, _b;
- if (customOnSearch) {
- customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e);
- }
- };
- const onPressEnter = e => {
- if (composedRef.current || loading) {
- return;
- }
- onSearch(e);
- };
- const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/react.createElement(SearchOutlined/* default */.Z, null) : null;
- const btnClassName = `${prefixCls}-button`;
- let button;
- const enterButtonAsElement = enterButton || {};
- const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
- if (isAntdButton || enterButtonAsElement.type === 'button') {
- button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({
- onMouseDown,
- onClick: e => {
- var _a, _b;
- (_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
- onSearch(e);
- },
- key: 'enterButton'
- }, isAntdButton ? {
- className: btnClassName,
- size
- } : {}));
- } else {
- button = /*#__PURE__*/react.createElement(es_button/* default */.ZP, {
- className: btnClassName,
- type: enterButton ? 'primary' : undefined,
- size: size,
- disabled: disabled,
- key: "enterButton",
- onMouseDown: onMouseDown,
- onClick: onSearch,
- loading: loading,
- icon: searchIcon
- }, enterButton);
- }
- if (addonAfter) {
- button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
- key: 'addonAfter'
- })];
- }
- const cls = classnames_default()(prefixCls, {
- [`${prefixCls}-rtl`]: direction === 'rtl',
- [`${prefixCls}-${size}`]: !!size,
- [`${prefixCls}-with-button`]: !!enterButton
- }, className);
- const handleOnCompositionStart = e => {
- composedRef.current = true;
- onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
- };
- const handleOnCompositionEnd = e => {
- composedRef.current = false;
- onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
- };
- return /*#__PURE__*/react.createElement(Input/* default */.Z, Object.assign({
- ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
- onPressEnter: onPressEnter
- }, restProps, {
- size: size,
- onCompositionStart: handleOnCompositionStart,
- onCompositionEnd: handleOnCompositionEnd,
- prefixCls: inputPrefixCls,
- addonAfter: button,
- suffix: suffix,
- onChange: onChange,
- className: cls,
- disabled: disabled
- }));
-});
-if (false) {}
-/* harmony default export */ var input_Search = (Search);
-// EXTERNAL MODULE: ./node_modules/antd/es/input/TextArea.js
-var TextArea = __webpack_require__(96330);
-;// CONCATENATED MODULE: ./node_modules/antd/es/input/index.js
-'use client';
-
-
-
-
-
-
-const input_Input = Input/* default */.Z;
-if (false) {}
-input_Input.Group = input_Group;
-input_Input.Search = input_Search;
-input_Input.TextArea = TextArea/* default */.Z;
-input_Input.Password = input_Password;
-/* harmony default export */ var input = (input_Input);
-
-/***/ }),
-
-/***/ 33507:
-/*!*******************************************************!*\
- !*** ./node_modules/antd/es/style/motion/collapse.js ***!
- \*******************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-const genCollapseMotion = token => ({
- [token.componentCls]: {
- // For common/openAnimation
- [`${token.antCls}-motion-collapse-legacy`]: {
- overflow: 'hidden',
- '&-active': {
- transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
- opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
- }
- },
- [`${token.antCls}-motion-collapse`]: {
- overflow: 'hidden',
- transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
- opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
- }
- }
-});
-/* harmony default export */ __webpack_exports__["Z"] = (genCollapseMotion);
-
-/***/ }),
-
-/***/ 31131:
-/*!*********************************************!*\
- !*** ./node_modules/rc-util/es/isMobile.js ***!
- \*********************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-/* harmony default export */ __webpack_exports__["Z"] = (function () {
- if (typeof navigator === 'undefined' || typeof window === 'undefined') {
- return false;
- }
- var agent = navigator.userAgent || navigator.vendor || window.opera;
- return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(agent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(agent === null || agent === void 0 ? void 0 : agent.substr(0, 4));
-});
-
-/***/ })
-
-}]);
\ No newline at end of file
diff --git a/37098.async.js b/45344.async.js
similarity index 87%
rename from 37098.async.js
rename to 45344.async.js
index 4ee7a71138..ee77b52441 100644
--- a/37098.async.js
+++ b/45344.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[37098],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[45344],{
/***/ 99611:
/*!****************************************************************************!*\
@@ -43,66 +43,6 @@ if (false) {}
/***/ }),
-/***/ 33160:
-/*!*******************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules ***!
- \*******************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_ReloadOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.js
-// This icon file is generated automatically.
-var ReloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, "name": "reload", "theme": "outlined" };
-/* harmony default export */ var asn_ReloadOutlined = (ReloadOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var ReloadOutlined_ReloadOutlined = function ReloadOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_ReloadOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_ReloadOutlined = (/*#__PURE__*/react.forwardRef(ReloadOutlined_ReloadOutlined));
-
-/***/ }),
-
-/***/ 57838:
-/*!************************************************************!*\
- !*** ./node_modules/antd/es/_util/hooks/useForceUpdate.js ***!
- \************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Z": function() { return /* binding */ useForceUpdate; }
-/* harmony export */ });
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-
-function useForceUpdate() {
- const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
- return forceUpdate;
-}
-
-/***/ }),
-
/***/ 84567:
/*!************************************************************!*\
!*** ./node_modules/antd/es/checkbox/index.js + 3 modules ***!
@@ -1031,6 +971,195 @@ input_Input.TextArea = TextArea/* default */.Z;
input_Input.Password = input_Password;
/* harmony default export */ var input = (input_Input);
+/***/ }),
+
+/***/ 33507:
+/*!*******************************************************!*\
+ !*** ./node_modules/antd/es/style/motion/collapse.js ***!
+ \*******************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__) {
+
+const genCollapseMotion = token => ({
+ [token.componentCls]: {
+ // For common/openAnimation
+ [`${token.antCls}-motion-collapse-legacy`]: {
+ overflow: 'hidden',
+ '&-active': {
+ transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
+ opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
+ }
+ },
+ [`${token.antCls}-motion-collapse`]: {
+ overflow: 'hidden',
+ transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
+ opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
+ }
+ }
+});
+/* harmony default export */ __webpack_exports__["Z"] = (genCollapseMotion);
+
+/***/ }),
+
+/***/ 67771:
+/*!****************************************************!*\
+ !*** ./node_modules/antd/es/style/motion/slide.js ***!
+ \****************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
+/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
+/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
+/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
+/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
+/* harmony export */ });
+/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
+/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
+/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
+
+
+const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
+ '0%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ }
+});
+const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
+ '0%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ }
+});
+const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
+ '0%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '100% 100%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '100% 100%',
+ opacity: 1
+ }
+});
+const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
+ '0%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '100% 100%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '100% 100%',
+ opacity: 0
+ }
+});
+const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
+ '0%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ }
+});
+const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
+ '0%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ }
+});
+const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
+ '0%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '100% 0%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '100% 0%',
+ opacity: 1
+ }
+});
+const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
+ '0%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '100% 0%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '100% 0%',
+ opacity: 0
+ }
+});
+const slideMotion = {
+ 'slide-up': {
+ inKeyframes: slideUpIn,
+ outKeyframes: slideUpOut
+ },
+ 'slide-down': {
+ inKeyframes: slideDownIn,
+ outKeyframes: slideDownOut
+ },
+ 'slide-left': {
+ inKeyframes: slideLeftIn,
+ outKeyframes: slideLeftOut
+ },
+ 'slide-right': {
+ inKeyframes: slideRightIn,
+ outKeyframes: slideRightOut
+ }
+};
+const initSlideMotion = (token, motionName) => {
+ const {
+ antCls
+ } = token;
+ const motionCls = `${antCls}-${motionName}`;
+ const {
+ inKeyframes,
+ outKeyframes
+ } = slideMotion[motionName];
+ return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
+ [`
+ ${motionCls}-enter,
+ ${motionCls}-appear
+ `]: {
+ transform: 'scale(0)',
+ transformOrigin: '0% 0%',
+ opacity: 0,
+ animationTimingFunction: token.motionEaseOutQuint,
+ [`&-prepare`]: {
+ transform: 'scale(1)'
+ }
+ },
+ [`${motionCls}-leave`]: {
+ animationTimingFunction: token.motionEaseInQuint
+ }
+ }];
+};
+
/***/ })
}]);
\ No newline at end of file
diff --git a/23792.async.js b/46353.async.js
similarity index 98%
rename from 23792.async.js
rename to 46353.async.js
index 1b9b7f89e4..07dfce4384 100644
--- a/23792.async.js
+++ b/46353.async.js
@@ -1,4 +1,4 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[23792,81976,47897,47221,88511,58014],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[46353,81976,47897,47221,88511,58014],{
/***/ 82826:
/*!**********************************************************************************!*\
@@ -258,49 +258,6 @@ if (false) {}
/***/ }),
-/***/ 33160:
-/*!*******************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules ***!
- \*******************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_ReloadOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.js
-// This icon file is generated automatically.
-var ReloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, "name": "reload", "theme": "outlined" };
-/* harmony default export */ var asn_ReloadOutlined = (ReloadOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var ReloadOutlined_ReloadOutlined = function ReloadOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_ReloadOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_ReloadOutlined = (/*#__PURE__*/react.forwardRef(ReloadOutlined_ReloadOutlined));
-
-/***/ }),
-
/***/ 42952:
/*!********************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/SettingOutlined.js + 1 modules ***!
diff --git a/46463.async.js b/46463.async.js
index 6ab0239cb4..e6a1f7ac41 100644
--- a/46463.async.js
+++ b/46463.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[46463,74045,88511,73105,75574,27750,84358,33358,68657,92936,35034,41522,9600,61710],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[46463,74045,88511,73105,75574,27750,84358,33358,68657,92936,35034,41522,9600,61710,54909],{
/***/ 99611:
/*!****************************************************************************!*\
diff --git a/4670.async.js b/4670.async.js
index 1d80fffabf..d4e3109576 100644
--- a/4670.async.js
+++ b/4670.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[4670],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[4670,54909],{
/***/ 99611:
/*!****************************************************************************!*\
diff --git a/49774.async.js b/48262.async.js
similarity index 90%
rename from 49774.async.js
rename to 48262.async.js
index d6a358cc52..e5c6f0b564 100644
--- a/49774.async.js
+++ b/48262.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[49774,10740,47230,97420,36095,74192,34168,74443,23883,63708,43416,45635],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[48262,10740,63774,5357,13093,74192,34168,74443,23883,63708,43416,45635],{
/***/ 77171:
/*!**********************************************************************************!*\
@@ -1093,168 +1093,6 @@ const initMoveMotion = (token, motionName) => {
/***/ }),
-/***/ 67771:
-/*!****************************************************!*\
- !*** ./node_modules/antd/es/style/motion/slide.js ***!
- \****************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
-/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
-/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
-/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
-/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
-/* harmony export */ });
-/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
-/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
-/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
-
-
-const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- }
-});
-const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- }
-});
-const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- }
-});
-const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- }
-});
-const slideMotion = {
- 'slide-up': {
- inKeyframes: slideUpIn,
- outKeyframes: slideUpOut
- },
- 'slide-down': {
- inKeyframes: slideDownIn,
- outKeyframes: slideDownOut
- },
- 'slide-left': {
- inKeyframes: slideLeftIn,
- outKeyframes: slideLeftOut
- },
- 'slide-right': {
- inKeyframes: slideRightIn,
- outKeyframes: slideRightOut
- }
-};
-const initSlideMotion = (token, motionName) => {
- const {
- antCls
- } = token;
- const motionCls = `${antCls}-${motionName}`;
- const {
- inKeyframes,
- outKeyframes
- } = slideMotion[motionName];
- return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
- [`
- ${motionCls}-enter,
- ${motionCls}-appear
- `]: {
- transform: 'scale(0)',
- transformOrigin: '0% 0%',
- opacity: 0,
- animationTimingFunction: token.motionEaseOutQuint,
- [`&-prepare`]: {
- transform: 'scale(1)'
- }
- },
- [`${motionCls}-leave`]: {
- animationTimingFunction: token.motionEaseInQuint
- }
- }];
-};
-
-/***/ }),
-
/***/ 64217:
/*!**********************************************!*\
!*** ./node_modules/rc-util/es/pickAttrs.js ***!
diff --git a/51821.async.js b/51821.async.js
index 42951f219a..cf9b32265e 100644
--- a/51821.async.js
+++ b/51821.async.js
@@ -553,7 +553,6 @@ var jsx_runtime = __webpack_require__(85893);
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;
// let size;
- console.log("disabledDownload---", disabledDownload);
var unit = 1024 * 1024;
var maxSize = 10 * unit;
var closeRef = (0,react.useRef)();
diff --git a/86484.async.js b/52236.async.js
similarity index 93%
rename from 86484.async.js
rename to 52236.async.js
index c730b37cde..14240f267f 100644
--- a/86484.async.js
+++ b/52236.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[86484,4670,10740,36095,74192,34168,74443,23883,63708,43416,45635],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[52236,4670,10740,13093,74192,34168,74443,23883,63708,43416,45635,54909],{
/***/ 99611:
/*!****************************************************************************!*\
@@ -1606,168 +1606,6 @@ const initMoveMotion = (token, motionName) => {
/***/ }),
-/***/ 67771:
-/*!****************************************************!*\
- !*** ./node_modules/antd/es/style/motion/slide.js ***!
- \****************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
-/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
-/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
-/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
-/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
-/* harmony export */ });
-/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
-/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
-/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
-
-
-const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- }
-});
-const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- }
-});
-const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- }
-});
-const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- }
-});
-const slideMotion = {
- 'slide-up': {
- inKeyframes: slideUpIn,
- outKeyframes: slideUpOut
- },
- 'slide-down': {
- inKeyframes: slideDownIn,
- outKeyframes: slideDownOut
- },
- 'slide-left': {
- inKeyframes: slideLeftIn,
- outKeyframes: slideLeftOut
- },
- 'slide-right': {
- inKeyframes: slideRightIn,
- outKeyframes: slideRightOut
- }
-};
-const initSlideMotion = (token, motionName) => {
- const {
- antCls
- } = token;
- const motionCls = `${antCls}-${motionName}`;
- const {
- inKeyframes,
- outKeyframes
- } = slideMotion[motionName];
- return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
- [`
- ${motionCls}-enter,
- ${motionCls}-appear
- `]: {
- transform: 'scale(0)',
- transformOrigin: '0% 0%',
- opacity: 0,
- animationTimingFunction: token.motionEaseOutQuint,
- [`&-prepare`]: {
- transform: 'scale(1)'
- }
- },
- [`${motionCls}-leave`]: {
- animationTimingFunction: token.motionEaseInQuint
- }
- }];
-};
-
-/***/ }),
-
/***/ 95860:
/*!**********************************************************!*\
!*** ./node_modules/rc-checkbox/es/index.js + 5 modules ***!
diff --git a/21273.async.js b/52552.async.js
similarity index 78%
rename from 21273.async.js
rename to 52552.async.js
index 7a564b112e..1d9b5b6493 100644
--- a/21273.async.js
+++ b/52552.async.js
@@ -1,4 +1,4 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[21273],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[52552],{
/***/ 57132:
/*!*****************************************************************************!*\
@@ -43,49 +43,6 @@ if (false) {}
/***/ }),
-/***/ 23430:
-/*!*********************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js + 1 modules ***!
- \*********************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_DownloadOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/DownloadOutlined.js
-// This icon file is generated automatically.
-var DownloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, "name": "download", "theme": "outlined" };
-/* harmony default export */ var asn_DownloadOutlined = (DownloadOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var DownloadOutlined_DownloadOutlined = function DownloadOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_DownloadOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_DownloadOutlined = (/*#__PURE__*/react.forwardRef(DownloadOutlined_DownloadOutlined));
-
-/***/ }),
-
/***/ 11475:
/*!******************************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules ***!
@@ -215,49 +172,6 @@ if (false) {}
/***/ }),
-/***/ 33160:
-/*!*******************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules ***!
- \*******************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_ReloadOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.js
-// This icon file is generated automatically.
-var ReloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, "name": "reload", "theme": "outlined" };
-/* harmony default export */ var asn_ReloadOutlined = (ReloadOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var ReloadOutlined_ReloadOutlined = function ReloadOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_ReloadOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_ReloadOutlined = (/*#__PURE__*/react.forwardRef(ReloadOutlined_ReloadOutlined));
-
-/***/ }),
-
/***/ 55054:
/*!*************************************************************!*\
!*** ./node_modules/antd/es/statistic/index.js + 5 modules ***!
@@ -890,6 +804,372 @@ if (false) {}
Tag.CheckableTag = tag_CheckableTag;
/* harmony default export */ var tag = (Tag);
+/***/ }),
+
+/***/ 20640:
+/*!*************************************************!*\
+ !*** ./node_modules/copy-to-clipboard/index.js ***!
+ \*************************************************/
+/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+var deselectCurrent = __webpack_require__(/*! toggle-selection */ 11742);
+
+var clipboardToIE11Formatting = {
+ "text/plain": "Text",
+ "text/html": "Url",
+ "default": "Text"
+}
+
+var defaultMessage = "Copy to clipboard: #{key}, Enter";
+
+function format(message) {
+ var copyKey = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
+ return message.replace(/#{\s*key\s*}/g, copyKey);
+}
+
+function copy(text, options) {
+ var debug,
+ message,
+ reselectPrevious,
+ range,
+ selection,
+ mark,
+ success = false;
+ if (!options) {
+ options = {};
+ }
+ debug = options.debug || false;
+ try {
+ reselectPrevious = deselectCurrent();
+
+ range = document.createRange();
+ selection = document.getSelection();
+
+ mark = document.createElement("span");
+ mark.textContent = text;
+ // avoid screen readers from reading out loud the text
+ mark.ariaHidden = "true"
+ // reset user styles for span element
+ mark.style.all = "unset";
+ // prevents scrolling to the end of the page
+ mark.style.position = "fixed";
+ mark.style.top = 0;
+ mark.style.clip = "rect(0, 0, 0, 0)";
+ // used to preserve spaces and line breaks
+ mark.style.whiteSpace = "pre";
+ // do not inherit user-select (it may be `none`)
+ mark.style.webkitUserSelect = "text";
+ mark.style.MozUserSelect = "text";
+ mark.style.msUserSelect = "text";
+ mark.style.userSelect = "text";
+ mark.addEventListener("copy", function(e) {
+ e.stopPropagation();
+ if (options.format) {
+ e.preventDefault();
+ if (typeof e.clipboardData === "undefined") { // IE 11
+ debug && console.warn("unable to use e.clipboardData");
+ debug && console.warn("trying IE specific stuff");
+ window.clipboardData.clearData();
+ var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting["default"]
+ window.clipboardData.setData(format, text);
+ } else { // all other browsers
+ e.clipboardData.clearData();
+ e.clipboardData.setData(options.format, text);
+ }
+ }
+ if (options.onCopy) {
+ e.preventDefault();
+ options.onCopy(e.clipboardData);
+ }
+ });
+
+ document.body.appendChild(mark);
+
+ range.selectNodeContents(mark);
+ selection.addRange(range);
+
+ var successful = document.execCommand("copy");
+ if (!successful) {
+ throw new Error("copy command was unsuccessful");
+ }
+ success = true;
+ } catch (err) {
+ debug && console.error("unable to copy using execCommand: ", err);
+ debug && console.warn("trying IE specific stuff");
+ try {
+ window.clipboardData.setData(options.format || "text", text);
+ options.onCopy && options.onCopy(window.clipboardData);
+ success = true;
+ } catch (err) {
+ debug && console.error("unable to copy using clipboardData: ", err);
+ debug && console.error("falling back to prompt");
+ message = format("message" in options ? options.message : defaultMessage);
+ window.prompt(message, text);
+ }
+ } finally {
+ if (selection) {
+ if (typeof selection.removeRange == "function") {
+ selection.removeRange(range);
+ } else {
+ selection.removeAllRanges();
+ }
+ }
+
+ if (mark) {
+ document.body.removeChild(mark);
+ }
+ reselectPrevious();
+ }
+
+ return success;
+}
+
+module.exports = copy;
+
+
+/***/ }),
+
+/***/ 19575:
+/*!******************************************!*\
+ !*** ./node_modules/js-base64/base64.js ***!
+ \******************************************/
+/***/ (function(module, exports, __webpack_require__) {
+
+var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
+ * base64.js
+ *
+ * Licensed under the BSD 3-Clause License.
+ * http://opensource.org/licenses/BSD-3-Clause
+ *
+ * References:
+ * http://en.wikipedia.org/wiki/Base64
+ */
+;(function (global, factory) {
+ true
+ ? module.exports = factory(global)
+ : 0
+}((
+ typeof self !== 'undefined' ? self
+ : typeof window !== 'undefined' ? window
+ : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g
+: this
+), function(global) {
+ 'use strict';
+ // existing version for noConflict()
+ global = global || {};
+ var _Base64 = global.Base64;
+ var version = "2.6.4";
+ // constants
+ var b64chars
+ = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
+ var b64tab = function(bin) {
+ var t = {};
+ for (var i = 0, l = bin.length; i < l; i++) t[bin.charAt(i)] = i;
+ return t;
+ }(b64chars);
+ var fromCharCode = String.fromCharCode;
+ // encoder stuff
+ var cb_utob = function(c) {
+ if (c.length < 2) {
+ var cc = c.charCodeAt(0);
+ return cc < 0x80 ? c
+ : cc < 0x800 ? (fromCharCode(0xc0 | (cc >>> 6))
+ + fromCharCode(0x80 | (cc & 0x3f)))
+ : (fromCharCode(0xe0 | ((cc >>> 12) & 0x0f))
+ + fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
+ + fromCharCode(0x80 | ( cc & 0x3f)));
+ } else {
+ var cc = 0x10000
+ + (c.charCodeAt(0) - 0xD800) * 0x400
+ + (c.charCodeAt(1) - 0xDC00);
+ return (fromCharCode(0xf0 | ((cc >>> 18) & 0x07))
+ + fromCharCode(0x80 | ((cc >>> 12) & 0x3f))
+ + fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
+ + fromCharCode(0x80 | ( cc & 0x3f)));
+ }
+ };
+ var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
+ var utob = function(u) {
+ return u.replace(re_utob, cb_utob);
+ };
+ var cb_encode = function(ccc) {
+ var padlen = [0, 2, 1][ccc.length % 3],
+ ord = ccc.charCodeAt(0) << 16
+ | ((ccc.length > 1 ? ccc.charCodeAt(1) : 0) << 8)
+ | ((ccc.length > 2 ? ccc.charCodeAt(2) : 0)),
+ chars = [
+ b64chars.charAt( ord >>> 18),
+ b64chars.charAt((ord >>> 12) & 63),
+ padlen >= 2 ? '=' : b64chars.charAt((ord >>> 6) & 63),
+ padlen >= 1 ? '=' : b64chars.charAt(ord & 63)
+ ];
+ return chars.join('');
+ };
+ var btoa = global.btoa && typeof global.btoa == 'function'
+ ? function(b){ return global.btoa(b) } : function(b) {
+ if (b.match(/[^\x00-\xFF]/)) throw new RangeError(
+ 'The string contains invalid characters.'
+ );
+ return b.replace(/[\s\S]{1,3}/g, cb_encode);
+ };
+ var _encode = function(u) {
+ return btoa(utob(String(u)));
+ };
+ var mkUriSafe = function (b64) {
+ return b64.replace(/[+\/]/g, function(m0) {
+ return m0 == '+' ? '-' : '_';
+ }).replace(/=/g, '');
+ };
+ var encode = function(u, urisafe) {
+ return urisafe ? mkUriSafe(_encode(u)) : _encode(u);
+ };
+ var encodeURI = function(u) { return encode(u, true) };
+ var fromUint8Array;
+ if (global.Uint8Array) fromUint8Array = function(a, urisafe) {
+ // return btoa(fromCharCode.apply(null, a));
+ var b64 = '';
+ for (var i = 0, l = a.length; i < l; i += 3) {
+ var a0 = a[i], a1 = a[i+1], a2 = a[i+2];
+ var ord = a0 << 16 | a1 << 8 | a2;
+ b64 += b64chars.charAt( ord >>> 18)
+ + b64chars.charAt((ord >>> 12) & 63)
+ + ( typeof a1 != 'undefined'
+ ? b64chars.charAt((ord >>> 6) & 63) : '=')
+ + ( typeof a2 != 'undefined'
+ ? b64chars.charAt( ord & 63) : '=');
+ }
+ return urisafe ? mkUriSafe(b64) : b64;
+ };
+ // decoder stuff
+ var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
+ var cb_btou = function(cccc) {
+ switch(cccc.length) {
+ case 4:
+ var cp = ((0x07 & cccc.charCodeAt(0)) << 18)
+ | ((0x3f & cccc.charCodeAt(1)) << 12)
+ | ((0x3f & cccc.charCodeAt(2)) << 6)
+ | (0x3f & cccc.charCodeAt(3)),
+ offset = cp - 0x10000;
+ return (fromCharCode((offset >>> 10) + 0xD800)
+ + fromCharCode((offset & 0x3FF) + 0xDC00));
+ case 3:
+ return fromCharCode(
+ ((0x0f & cccc.charCodeAt(0)) << 12)
+ | ((0x3f & cccc.charCodeAt(1)) << 6)
+ | (0x3f & cccc.charCodeAt(2))
+ );
+ default:
+ return fromCharCode(
+ ((0x1f & cccc.charCodeAt(0)) << 6)
+ | (0x3f & cccc.charCodeAt(1))
+ );
+ }
+ };
+ var btou = function(b) {
+ return b.replace(re_btou, cb_btou);
+ };
+ var cb_decode = function(cccc) {
+ var len = cccc.length,
+ padlen = len % 4,
+ n = (len > 0 ? b64tab[cccc.charAt(0)] << 18 : 0)
+ | (len > 1 ? b64tab[cccc.charAt(1)] << 12 : 0)
+ | (len > 2 ? b64tab[cccc.charAt(2)] << 6 : 0)
+ | (len > 3 ? b64tab[cccc.charAt(3)] : 0),
+ chars = [
+ fromCharCode( n >>> 16),
+ fromCharCode((n >>> 8) & 0xff),
+ fromCharCode( n & 0xff)
+ ];
+ chars.length -= [0, 0, 2, 1][padlen];
+ return chars.join('');
+ };
+ var _atob = global.atob && typeof global.atob == 'function'
+ ? function(a){ return global.atob(a) } : function(a){
+ return a.replace(/\S{1,4}/g, cb_decode);
+ };
+ var atob = function(a) {
+ return _atob(String(a).replace(/[^A-Za-z0-9\+\/]/g, ''));
+ };
+ var _decode = function(a) { return btou(_atob(a)) };
+ var _fromURI = function(a) {
+ return String(a).replace(/[-_]/g, function(m0) {
+ return m0 == '-' ? '+' : '/'
+ }).replace(/[^A-Za-z0-9\+\/]/g, '');
+ };
+ var decode = function(a){
+ return _decode(_fromURI(a));
+ };
+ var toUint8Array;
+ if (global.Uint8Array) toUint8Array = function(a) {
+ return Uint8Array.from(atob(_fromURI(a)), function(c) {
+ return c.charCodeAt(0);
+ });
+ };
+ var noConflict = function() {
+ var Base64 = global.Base64;
+ global.Base64 = _Base64;
+ return Base64;
+ };
+ // export Base64
+ global.Base64 = {
+ VERSION: version,
+ atob: atob,
+ btoa: btoa,
+ fromBase64: decode,
+ toBase64: encode,
+ utob: utob,
+ encode: encode,
+ encodeURI: encodeURI,
+ btou: btou,
+ decode: decode,
+ noConflict: noConflict,
+ fromUint8Array: fromUint8Array,
+ toUint8Array: toUint8Array
+ };
+ // if ES5 is available, make Base64.extendString() available
+ if (typeof Object.defineProperty === 'function') {
+ var noEnum = function(v){
+ return {value:v,enumerable:false,writable:true,configurable:true};
+ };
+ global.Base64.extendString = function () {
+ Object.defineProperty(
+ String.prototype, 'fromBase64', noEnum(function () {
+ return decode(this)
+ }));
+ Object.defineProperty(
+ String.prototype, 'toBase64', noEnum(function (urisafe) {
+ return encode(this, urisafe)
+ }));
+ Object.defineProperty(
+ String.prototype, 'toBase64URI', noEnum(function () {
+ return encode(this, true)
+ }));
+ };
+ }
+ //
+ // export Base64 to the namespace
+ //
+ if (global['Meteor']) { // Meteor.js
+ Base64 = global.Base64;
+ }
+ // module.exports and AMD are mutually exclusive.
+ // module.exports has precedence.
+ if ( true && module.exports) {
+ module.exports.Base64 = global.Base64;
+ }
+ else if (true) {
+ // AMD. Register as an anonymous module.
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function(){ return global.Base64 }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
+ }
+ // that's it!
+ return {Base64: global.Base64}
+}));
+
+
/***/ }),
/***/ 64217:
@@ -952,6 +1232,143 @@ function pickAttrs(props) {
/***/ }),
+/***/ 74300:
+/*!***************************************************************!*\
+ !*** ./node_modules/react-copy-to-clipboard/lib/Component.js ***!
+ \***************************************************************/
+/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.CopyToClipboard = void 0;
+
+var _react = _interopRequireDefault(__webpack_require__(/*! react */ 67294));
+
+var _copyToClipboard = _interopRequireDefault(__webpack_require__(/*! copy-to-clipboard */ 20640));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
+
+function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
+
+function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
+
+function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
+
+function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
+
+function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
+
+function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
+
+function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
+
+function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
+
+function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
+
+function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
+
+var CopyToClipboard =
+/*#__PURE__*/
+function (_React$PureComponent) {
+ _inherits(CopyToClipboard, _React$PureComponent);
+
+ function CopyToClipboard() {
+ var _getPrototypeOf2;
+
+ var _this;
+
+ _classCallCheck(this, CopyToClipboard);
+
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(CopyToClipboard)).call.apply(_getPrototypeOf2, [this].concat(args)));
+
+ _defineProperty(_assertThisInitialized(_this), "onClick", function (event) {
+ var _this$props = _this.props,
+ text = _this$props.text,
+ onCopy = _this$props.onCopy,
+ children = _this$props.children,
+ options = _this$props.options;
+
+ var elem = _react["default"].Children.only(children);
+
+ var result = (0, _copyToClipboard["default"])(text, options);
+
+ if (onCopy) {
+ onCopy(text, result);
+ } // Bypass onClick if it was present
+
+
+ if (elem && elem.props && typeof elem.props.onClick === 'function') {
+ elem.props.onClick(event);
+ }
+ });
+
+ return _this;
+ }
+
+ _createClass(CopyToClipboard, [{
+ key: "render",
+ value: function render() {
+ var _this$props2 = this.props,
+ _text = _this$props2.text,
+ _onCopy = _this$props2.onCopy,
+ _options = _this$props2.options,
+ children = _this$props2.children,
+ props = _objectWithoutProperties(_this$props2, ["text", "onCopy", "options", "children"]);
+
+ var elem = _react["default"].Children.only(children);
+
+ return _react["default"].cloneElement(elem, _objectSpread({}, props, {
+ onClick: this.onClick
+ }));
+ }
+ }]);
+
+ return CopyToClipboard;
+}(_react["default"].PureComponent);
+
+exports.CopyToClipboard = CopyToClipboard;
+
+_defineProperty(CopyToClipboard, "defaultProps", {
+ onCopy: undefined,
+ options: undefined
+});
+
+/***/ }),
+
+/***/ 74855:
+/*!***********************************************************!*\
+ !*** ./node_modules/react-copy-to-clipboard/lib/index.js ***!
+ \***********************************************************/
+/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+var _require = __webpack_require__(/*! ./Component */ 74300),
+ CopyToClipboard = _require.CopyToClipboard;
+
+CopyToClipboard.CopyToClipboard = CopyToClipboard;
+module.exports = CopyToClipboard;
+
+/***/ }),
+
/***/ 58971:
/*!*************************************************!*\
!*** ./node_modules/store/dist/store.legacy.js ***!
@@ -2298,6 +2715,55 @@ function clearAll() {
}
+/***/ }),
+
+/***/ 11742:
+/*!************************************************!*\
+ !*** ./node_modules/toggle-selection/index.js ***!
+ \************************************************/
+/***/ (function(module) {
+
+
+module.exports = function () {
+ var selection = document.getSelection();
+ if (!selection.rangeCount) {
+ return function () {};
+ }
+ var active = document.activeElement;
+
+ var ranges = [];
+ for (var i = 0; i < selection.rangeCount; i++) {
+ ranges.push(selection.getRangeAt(i));
+ }
+
+ switch (active.tagName.toUpperCase()) { // .toUpperCase handles XHTML
+ case 'INPUT':
+ case 'TEXTAREA':
+ active.blur();
+ break;
+
+ default:
+ active = null;
+ break;
+ }
+
+ selection.removeAllRanges();
+ return function () {
+ selection.type === 'Caret' &&
+ selection.removeAllRanges();
+
+ if (!selection.rangeCount) {
+ ranges.forEach(function(range) {
+ selection.addRange(range);
+ });
+ }
+
+ active &&
+ active.focus();
+ };
+};
+
+
/***/ })
}]);
\ No newline at end of file
diff --git a/53405.async.js b/53405.async.js
index 5dfa1a83a4..ae6a0a1b6e 100644
--- a/53405.async.js
+++ b/53405.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[53405,83570],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[53405],{
/***/ 99611:
/*!****************************************************************************!*\
diff --git a/97420.async.js b/5357.async.js
similarity index 90%
rename from 97420.async.js
rename to 5357.async.js
index 921a6f2984..a52bba3d3a 100644
--- a/97420.async.js
+++ b/5357.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[97420,10740,49774,47230,36095,74192,34168,74443,23883,63708,43416,45635],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[5357,10740,63774,48262,13093,74192,34168,74443,23883,63708,43416,45635],{
/***/ 77171:
/*!**********************************************************************************!*\
@@ -1093,168 +1093,6 @@ const initMoveMotion = (token, motionName) => {
/***/ }),
-/***/ 67771:
-/*!****************************************************!*\
- !*** ./node_modules/antd/es/style/motion/slide.js ***!
- \****************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
-/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
-/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
-/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
-/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
-/* harmony export */ });
-/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
-/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
-/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
-
-
-const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- }
-});
-const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- }
-});
-const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- }
-});
-const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- }
-});
-const slideMotion = {
- 'slide-up': {
- inKeyframes: slideUpIn,
- outKeyframes: slideUpOut
- },
- 'slide-down': {
- inKeyframes: slideDownIn,
- outKeyframes: slideDownOut
- },
- 'slide-left': {
- inKeyframes: slideLeftIn,
- outKeyframes: slideLeftOut
- },
- 'slide-right': {
- inKeyframes: slideRightIn,
- outKeyframes: slideRightOut
- }
-};
-const initSlideMotion = (token, motionName) => {
- const {
- antCls
- } = token;
- const motionCls = `${antCls}-${motionName}`;
- const {
- inKeyframes,
- outKeyframes
- } = slideMotion[motionName];
- return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
- [`
- ${motionCls}-enter,
- ${motionCls}-appear
- `]: {
- transform: 'scale(0)',
- transformOrigin: '0% 0%',
- opacity: 0,
- animationTimingFunction: token.motionEaseOutQuint,
- [`&-prepare`]: {
- transform: 'scale(1)'
- }
- },
- [`${motionCls}-leave`]: {
- animationTimingFunction: token.motionEaseInQuint
- }
- }];
-};
-
-/***/ }),
-
/***/ 64217:
/*!**********************************************!*\
!*** ./node_modules/rc-util/es/pickAttrs.js ***!
diff --git a/78254.async.js b/54335.async.js
similarity index 95%
rename from 78254.async.js
rename to 54335.async.js
index 930b32917c..1b27ed18a3 100644
--- a/78254.async.js
+++ b/54335.async.js
@@ -1,4 +1,4 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[78254,4670,10740,55254,36095,74192,34168,74443,23883,63708,43416,45635],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[54335,4670,10740,90966,13093,74192,34168,74443,23883,63708,43416,45635,54909],{
/***/ 99611:
/*!****************************************************************************!*\
@@ -1887,169 +1887,6 @@ const initMoveMotion = (token, motionName) => {
/***/ }),
-/***/ 67771:
-/*!****************************************************!*\
- !*** ./node_modules/antd/es/style/motion/slide.js ***!
- \****************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
-/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
-/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
-/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
-/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
-/* harmony export */ });
-/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
-/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
-/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
-
-
-const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- }
-});
-const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- }
-});
-const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- }
-});
-const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- }
-});
-const slideMotion = {
- 'slide-up': {
- inKeyframes: slideUpIn,
- outKeyframes: slideUpOut
- },
- 'slide-down': {
- inKeyframes: slideDownIn,
- outKeyframes: slideDownOut
- },
- 'slide-left': {
- inKeyframes: slideLeftIn,
- outKeyframes: slideLeftOut
- },
- 'slide-right': {
- inKeyframes: slideRightIn,
- outKeyframes: slideRightOut
- }
-};
-const initSlideMotion = (token, motionName) => {
- const {
- antCls
- } = token;
- const motionCls = `${antCls}-${motionName}`;
- const {
- inKeyframes,
- outKeyframes
- } = slideMotion[motionName];
- return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
- [`
- ${motionCls}-enter,
- ${motionCls}-appear
- `]: {
- transform: 'scale(0)',
- transformOrigin: '0% 0%',
- opacity: 0,
- animationTimingFunction: token.motionEaseOutQuint,
- [`&-prepare`]: {
- transform: 'scale(1)'
- }
- },
- [`${motionCls}-leave`]: {
- animationTimingFunction: token.motionEaseInQuint
- }
- }];
-};
-
-/***/ }),
-
/***/ 19575:
/*!******************************************!*\
!*** ./node_modules/js-base64/base64.js ***!
diff --git a/83570.async.js b/54909.async.js
similarity index 97%
rename from 83570.async.js
rename to 54909.async.js
index 27f2ad1918..912be70099 100644
--- a/83570.async.js
+++ b/54909.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[83570],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[54909],{
/***/ 99611:
/*!****************************************************************************!*\
@@ -43,6 +43,24 @@ if (false) {}
/***/ }),
+/***/ 57838:
+/*!************************************************************!*\
+ !*** ./node_modules/antd/es/_util/hooks/useForceUpdate.js ***!
+ \************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "Z": function() { return /* binding */ useForceUpdate; }
+/* harmony export */ });
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+
+function useForceUpdate() {
+ const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
+ return forceUpdate;
+}
+
+/***/ }),
+
/***/ 84567:
/*!************************************************************!*\
!*** ./node_modules/antd/es/checkbox/index.js + 3 modules ***!
@@ -971,33 +989,6 @@ input_Input.TextArea = TextArea/* default */.Z;
input_Input.Password = input_Password;
/* harmony default export */ var input = (input_Input);
-/***/ }),
-
-/***/ 33507:
-/*!*******************************************************!*\
- !*** ./node_modules/antd/es/style/motion/collapse.js ***!
- \*******************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-const genCollapseMotion = token => ({
- [token.componentCls]: {
- // For common/openAnimation
- [`${token.antCls}-motion-collapse-legacy`]: {
- overflow: 'hidden',
- '&-active': {
- transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
- opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
- }
- },
- [`${token.antCls}-motion-collapse`]: {
- overflow: 'hidden',
- transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
- opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
- }
- }
-});
-/* harmony default export */ __webpack_exports__["Z"] = (genCollapseMotion);
-
/***/ })
}]);
\ No newline at end of file
diff --git a/98855.async.js b/58412.async.js
similarity index 94%
rename from 98855.async.js
rename to 58412.async.js
index 9fd98a9ee7..050394570a 100644
--- a/98855.async.js
+++ b/58412.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[98855,74045,41522,9600,61710],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[58412,74045,41522,9600,61710],{
/***/ 82826:
/*!**********************************************************************************!*\
@@ -1908,168 +1908,6 @@ const initMoveMotion = (token, motionName) => {
/***/ }),
-/***/ 67771:
-/*!****************************************************!*\
- !*** ./node_modules/antd/es/style/motion/slide.js ***!
- \****************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
-/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
-/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
-/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
-/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
-/* harmony export */ });
-/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
-/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
-/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
-
-
-const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- }
-});
-const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- }
-});
-const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- }
-});
-const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- }
-});
-const slideMotion = {
- 'slide-up': {
- inKeyframes: slideUpIn,
- outKeyframes: slideUpOut
- },
- 'slide-down': {
- inKeyframes: slideDownIn,
- outKeyframes: slideDownOut
- },
- 'slide-left': {
- inKeyframes: slideLeftIn,
- outKeyframes: slideLeftOut
- },
- 'slide-right': {
- inKeyframes: slideRightIn,
- outKeyframes: slideRightOut
- }
-};
-const initSlideMotion = (token, motionName) => {
- const {
- antCls
- } = token;
- const motionCls = `${antCls}-${motionName}`;
- const {
- inKeyframes,
- outKeyframes
- } = slideMotion[motionName];
- return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
- [`
- ${motionCls}-enter,
- ${motionCls}-appear
- `]: {
- transform: 'scale(0)',
- transformOrigin: '0% 0%',
- opacity: 0,
- animationTimingFunction: token.motionEaseOutQuint,
- [`&-prepare`]: {
- transform: 'scale(1)'
- }
- },
- [`${motionCls}-leave`]: {
- animationTimingFunction: token.motionEaseInQuint
- }
- }];
-};
-
-/***/ }),
-
/***/ 17423:
/*!***************************************************************************!*\
!*** ./node_modules/scroll-into-view-if-needed/dist/index.js + 1 modules ***!
diff --git a/59627.async.js b/59627.async.js
index 3ed84cd023..bfaf17fb8e 100644
--- a/59627.async.js
+++ b/59627.async.js
@@ -184,7 +184,6 @@ var jsx_runtime = __webpack_require__(85893);
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;
// let size;
- console.log("disabledDownload---", disabledDownload);
var unit = 1024 * 1024;
var maxSize = 10 * unit;
var closeRef = (0,react.useRef)();
diff --git a/59337.async.js b/6039.async.js
similarity index 93%
rename from 59337.async.js
rename to 6039.async.js
index 38cbe2db10..885fd1087d 100644
--- a/59337.async.js
+++ b/6039.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[59337,4670,10740,36095,42850,74119,45824,74192,34168,15549,74443,23883,63708,43416,45635],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[6039,4670,10740,13093,42850,74119,45824,74192,34168,15549,74443,23883,63708,43416,45635,54909],{
/***/ 11475:
/*!******************************************************************************************!*\
@@ -1637,168 +1637,6 @@ const initMoveMotion = (token, motionName) => {
/***/ }),
-/***/ 67771:
-/*!****************************************************!*\
- !*** ./node_modules/antd/es/style/motion/slide.js ***!
- \****************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
-/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
-/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
-/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
-/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
-/* harmony export */ });
-/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
-/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
-/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
-
-
-const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- }
-});
-const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- }
-});
-const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- }
-});
-const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- }
-});
-const slideMotion = {
- 'slide-up': {
- inKeyframes: slideUpIn,
- outKeyframes: slideUpOut
- },
- 'slide-down': {
- inKeyframes: slideDownIn,
- outKeyframes: slideDownOut
- },
- 'slide-left': {
- inKeyframes: slideLeftIn,
- outKeyframes: slideLeftOut
- },
- 'slide-right': {
- inKeyframes: slideRightIn,
- outKeyframes: slideRightOut
- }
-};
-const initSlideMotion = (token, motionName) => {
- const {
- antCls
- } = token;
- const motionCls = `${antCls}-${motionName}`;
- const {
- inKeyframes,
- outKeyframes
- } = slideMotion[motionName];
- return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
- [`
- ${motionCls}-enter,
- ${motionCls}-appear
- `]: {
- transform: 'scale(0)',
- transformOrigin: '0% 0%',
- opacity: 0,
- animationTimingFunction: token.motionEaseOutQuint,
- [`&-prepare`]: {
- transform: 'scale(1)'
- }
- },
- [`${motionCls}-leave`]: {
- animationTimingFunction: token.motionEaseInQuint
- }
- }];
-};
-
-/***/ }),
-
/***/ 64217:
/*!**********************************************!*\
!*** ./node_modules/rc-util/es/pickAttrs.js ***!
diff --git a/47230.async.js b/63774.async.js
similarity index 90%
rename from 47230.async.js
rename to 63774.async.js
index cd90bb936f..6eef779c9d 100644
--- a/47230.async.js
+++ b/63774.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[47230,10740,49774,97420,36095,74192,34168,74443,23883,63708,43416,45635],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[63774,10740,48262,5357,13093,74192,34168,74443,23883,63708,43416,45635],{
/***/ 77171:
/*!**********************************************************************************!*\
@@ -1093,168 +1093,6 @@ const initMoveMotion = (token, motionName) => {
/***/ }),
-/***/ 67771:
-/*!****************************************************!*\
- !*** ./node_modules/antd/es/style/motion/slide.js ***!
- \****************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
-/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
-/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
-/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
-/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
-/* harmony export */ });
-/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
-/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
-/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
-
-
-const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- }
-});
-const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- }
-});
-const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- }
-});
-const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- }
-});
-const slideMotion = {
- 'slide-up': {
- inKeyframes: slideUpIn,
- outKeyframes: slideUpOut
- },
- 'slide-down': {
- inKeyframes: slideDownIn,
- outKeyframes: slideDownOut
- },
- 'slide-left': {
- inKeyframes: slideLeftIn,
- outKeyframes: slideLeftOut
- },
- 'slide-right': {
- inKeyframes: slideRightIn,
- outKeyframes: slideRightOut
- }
-};
-const initSlideMotion = (token, motionName) => {
- const {
- antCls
- } = token;
- const motionCls = `${antCls}-${motionName}`;
- const {
- inKeyframes,
- outKeyframes
- } = slideMotion[motionName];
- return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
- [`
- ${motionCls}-enter,
- ${motionCls}-appear
- `]: {
- transform: 'scale(0)',
- transformOrigin: '0% 0%',
- opacity: 0,
- animationTimingFunction: token.motionEaseOutQuint,
- [`&-prepare`]: {
- transform: 'scale(1)'
- }
- },
- [`${motionCls}-leave`]: {
- animationTimingFunction: token.motionEaseInQuint
- }
- }];
-};
-
-/***/ }),
-
/***/ 64217:
/*!**********************************************!*\
!*** ./node_modules/rc-util/es/pickAttrs.js ***!
diff --git a/64490.async.js b/64490.async.js
deleted file mode 100644
index cdd6f871d0..0000000000
--- a/64490.async.js
+++ /dev/null
@@ -1,953 +0,0 @@
-"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[64490],{
-
-/***/ 99611:
-/*!****************************************************************************!*\
- !*** ./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/extends.js
-var esm_extends = __webpack_require__(87462);
-// 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/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./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,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_EyeOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
-
-/***/ }),
-
-/***/ 6171:
-/*!*****************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js + 1 modules ***!
- \*****************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_LeftOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js
-// This icon file is generated automatically.
-var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
-/* harmony default export */ var asn_LeftOutlined = (LeftOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var LeftOutlined_LeftOutlined = function LeftOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_LeftOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_LeftOutlined = (/*#__PURE__*/react.forwardRef(LeftOutlined_LeftOutlined));
-
-/***/ }),
-
-/***/ 18073:
-/*!******************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/RightOutlined.js + 1 modules ***!
- \******************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_RightOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/RightOutlined.js
-// This icon file is generated automatically.
-var RightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, "name": "right", "theme": "outlined" };
-/* harmony default export */ var asn_RightOutlined = (RightOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/RightOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var RightOutlined_RightOutlined = function RightOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_RightOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_RightOutlined = (/*#__PURE__*/react.forwardRef(RightOutlined_RightOutlined));
-
-/***/ }),
-
-/***/ 57838:
-/*!************************************************************!*\
- !*** ./node_modules/antd/es/_util/hooks/useForceUpdate.js ***!
- \************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Z": function() { return /* binding */ useForceUpdate; }
-/* harmony export */ });
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-
-function useForceUpdate() {
- const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
- return forceUpdate;
-}
-
-/***/ }),
-
-/***/ 49288:
-/*!*****************************************************!*\
- !*** ./node_modules/antd/es/auto-complete/index.js ***!
- \*****************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 94184);
-/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
-/* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/Children/toArray */ 37419);
-/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/omit */ 10366);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/PurePanel */ 8745);
-/* harmony import */ var _util_reactNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/reactNode */ 96159);
-/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider */ 53124);
-/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../select */ 79035);
-'use client';
-
-
-
-
-
-
-
-
-
-
-const {
- Option
-} = _select__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z;
-function isSelectOptionOrSelectOptGroup(child) {
- return child && child.type && (child.type.isSelectOption || child.type.isSelectOptGroup);
-}
-const AutoComplete = (props, ref) => {
- const {
- prefixCls: customizePrefixCls,
- className,
- popupClassName,
- dropdownClassName,
- children,
- dataSource
- } = props;
- const childNodes = (0,rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(children);
- // ============================= Input =============================
- let customizeInput;
- if (childNodes.length === 1 && (0,_util_reactNode__WEBPACK_IMPORTED_MODULE_4__/* .isValidElement */ .l$)(childNodes[0]) && !isSelectOptionOrSelectOptGroup(childNodes[0])) {
- [customizeInput] = childNodes;
- }
- const getInputElement = customizeInput ? () => customizeInput : undefined;
- // ============================ Options ============================
- let optionChildren;
- // [Legacy] convert `children` or `dataSource` into option children
- if (childNodes.length && isSelectOptionOrSelectOptGroup(childNodes[0])) {
- optionChildren = children;
- } else {
- optionChildren = dataSource ? dataSource.map(item => {
- if ((0,_util_reactNode__WEBPACK_IMPORTED_MODULE_4__/* .isValidElement */ .l$)(item)) {
- return item;
- }
- switch (typeof item) {
- case 'string':
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Option, {
- key: item,
- value: item
- }, item);
- case 'object':
- {
- const {
- value: optionValue
- } = item;
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Option, {
- key: optionValue,
- value: optionValue
- }, item.text);
- }
- default:
- false ? 0 : void 0;
- return undefined;
- }
- }) : [];
- }
- if (false) {}
- const {
- getPrefixCls
- } = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_5__/* .ConfigContext */ .E_);
- const prefixCls = getPrefixCls('select', customizePrefixCls);
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_select__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, Object.assign({
- ref: ref,
- showArrow: false
- }, (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props, ['dataSource', 'dropdownClassName']), {
- prefixCls: prefixCls,
- popupClassName: popupClassName || dropdownClassName,
- className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(`${prefixCls}-auto-complete`, className),
- mode: _select__WEBPACK_IMPORTED_MODULE_3__/* ["default"].SECRET_COMBOBOX_MODE_DO_NOT_USE */ .Z.SECRET_COMBOBOX_MODE_DO_NOT_USE,
- // Internal api
- getInputElement
- }), optionChildren);
-};
-const RefAutoComplete = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(AutoComplete);
-// We don't care debug panel
-/* istanbul ignore next */
-const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(RefAutoComplete);
-RefAutoComplete.Option = Option;
-RefAutoComplete._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
-if (false) {}
-/* harmony default export */ __webpack_exports__["Z"] = (RefAutoComplete);
-
-/***/ }),
-
-/***/ 84567:
-/*!************************************************************!*\
- !*** ./node_modules/antd/es/checkbox/index.js + 3 modules ***!
- \************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ es_checkbox; }
-});
-
-// 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-checkbox/es/index.js + 5 modules
-var es = __webpack_require__(95860);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
-var config_provider_context = __webpack_require__(53124);
-// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/DisabledContext.js
-var DisabledContext = __webpack_require__(98866);
-// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
-var context = __webpack_require__(65223);
-;// CONCATENATED MODULE: ./node_modules/antd/es/checkbox/GroupContext.js
-
-const GroupContext = /*#__PURE__*/react.createContext(null);
-/* harmony default export */ var checkbox_GroupContext = (GroupContext);
-// EXTERNAL MODULE: ./node_modules/antd/es/checkbox/style/index.js
-var checkbox_style = __webpack_require__(63185);
-;// CONCATENATED MODULE: ./node_modules/antd/es/checkbox/Checkbox.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;
-};
-
-
-
-
-
-
-
-
-
-const InternalCheckbox = (props, ref) => {
- var _a;
- const {
- prefixCls: customizePrefixCls,
- className,
- rootClassName,
- children,
- indeterminate = false,
- style,
- onMouseEnter,
- onMouseLeave,
- skipGroup = false,
- disabled
- } = props,
- restProps = __rest(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]);
- const {
- getPrefixCls,
- direction,
- checkbox
- } = react.useContext(config_provider_context/* ConfigContext */.E_);
- const checkboxGroup = react.useContext(checkbox_GroupContext);
- const {
- isFormItemInput
- } = react.useContext(context/* FormItemInputContext */.aM);
- const contextDisabled = react.useContext(DisabledContext/* default */.Z);
- const mergedDisabled = (_a = (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.disabled) || disabled) !== null && _a !== void 0 ? _a : contextDisabled;
- const prevValue = react.useRef(restProps.value);
- react.useEffect(() => {
- checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
- false ? 0 : void 0;
- }, []);
- react.useEffect(() => {
- if (skipGroup) {
- return;
- }
- if (restProps.value !== prevValue.current) {
- checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(prevValue.current);
- checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
- prevValue.current = restProps.value;
- }
- return () => checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(restProps.value);
- }, [restProps.value]);
- const prefixCls = getPrefixCls('checkbox', customizePrefixCls);
- const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls);
- const checkboxProps = Object.assign({}, restProps);
- if (checkboxGroup && !skipGroup) {
- checkboxProps.onChange = function () {
- if (restProps.onChange) {
- restProps.onChange.apply(restProps, arguments);
- }
- if (checkboxGroup.toggleOption) {
- checkboxGroup.toggleOption({
- label: children,
- value: restProps.value
- });
- }
- };
- checkboxProps.name = checkboxGroup.name;
- checkboxProps.checked = checkboxGroup.value.includes(restProps.value);
- }
- const classString = classnames_default()(`${prefixCls}-wrapper`, {
- [`${prefixCls}-rtl`]: direction === 'rtl',
- [`${prefixCls}-wrapper-checked`]: checkboxProps.checked,
- [`${prefixCls}-wrapper-disabled`]: mergedDisabled,
- [`${prefixCls}-wrapper-in-form-item`]: isFormItemInput
- }, checkbox === null || checkbox === void 0 ? void 0 : checkbox.className, className, rootClassName, hashId);
- const checkboxClass = classnames_default()({
- [`${prefixCls}-indeterminate`]: indeterminate
- }, hashId);
- const ariaChecked = indeterminate ? 'mixed' : undefined;
- return wrapSSR(
- /*#__PURE__*/
- // eslint-disable-next-line jsx-a11y/label-has-associated-control
- react.createElement("label", {
- className: classString,
- style: Object.assign(Object.assign({}, checkbox === null || checkbox === void 0 ? void 0 : checkbox.style), style),
- onMouseEnter: onMouseEnter,
- onMouseLeave: onMouseLeave
- }, /*#__PURE__*/react.createElement(es/* default */.Z, Object.assign({
- "aria-checked": ariaChecked
- }, checkboxProps, {
- prefixCls: prefixCls,
- className: checkboxClass,
- disabled: mergedDisabled,
- ref: ref
- })), children !== undefined && /*#__PURE__*/react.createElement("span", null, children)));
-};
-const Checkbox = /*#__PURE__*/react.forwardRef(InternalCheckbox);
-if (false) {}
-/* harmony default export */ var checkbox_Checkbox = (Checkbox);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
-var toConsumableArray = __webpack_require__(74902);
-// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
-var omit = __webpack_require__(10366);
-;// CONCATENATED MODULE: ./node_modules/antd/es/checkbox/Group.js
-
-var Group_rest = undefined && undefined.__rest || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
- }
- return t;
-};
-
-
-
-
-
-
-
-const InternalGroup = (props, ref) => {
- const {
- defaultValue,
- children,
- options = [],
- prefixCls: customizePrefixCls,
- className,
- rootClassName,
- style,
- onChange
- } = props,
- restProps = Group_rest(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]);
- const {
- getPrefixCls,
- direction
- } = react.useContext(config_provider_context/* ConfigContext */.E_);
- const [value, setValue] = react.useState(restProps.value || defaultValue || []);
- const [registeredValues, setRegisteredValues] = react.useState([]);
- react.useEffect(() => {
- if ('value' in restProps) {
- setValue(restProps.value || []);
- }
- }, [restProps.value]);
- const memoOptions = react.useMemo(() => options.map(option => {
- if (typeof option === 'string' || typeof option === 'number') {
- return {
- label: option,
- value: option
- };
- }
- return option;
- }), [options]);
- const cancelValue = val => {
- setRegisteredValues(prevValues => prevValues.filter(v => v !== val));
- };
- const registerValue = val => {
- setRegisteredValues(prevValues => [].concat((0,toConsumableArray/* default */.Z)(prevValues), [val]));
- };
- const toggleOption = option => {
- const optionIndex = value.indexOf(option.value);
- const newValue = (0,toConsumableArray/* default */.Z)(value);
- if (optionIndex === -1) {
- newValue.push(option.value);
- } else {
- newValue.splice(optionIndex, 1);
- }
- if (!('value' in restProps)) {
- setValue(newValue);
- }
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue.filter(val => registeredValues.includes(val)).sort((a, b) => {
- const indexA = memoOptions.findIndex(opt => opt.value === a);
- const indexB = memoOptions.findIndex(opt => opt.value === b);
- return indexA - indexB;
- }));
- };
- const prefixCls = getPrefixCls('checkbox', customizePrefixCls);
- const groupPrefixCls = `${prefixCls}-group`;
- const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls);
- const domProps = (0,omit/* default */.Z)(restProps, ['value', 'disabled']);
- const childrenNode = options.length ? memoOptions.map(option => /*#__PURE__*/react.createElement(checkbox_Checkbox, {
- prefixCls: prefixCls,
- key: option.value.toString(),
- disabled: 'disabled' in option ? option.disabled : restProps.disabled,
- value: option.value,
- checked: value.includes(option.value),
- onChange: option.onChange,
- className: `${groupPrefixCls}-item`,
- style: option.style,
- title: option.title
- }, option.label)) : children;
- // eslint-disable-next-line react/jsx-no-constructed-context-values
- const context = {
- toggleOption,
- value,
- disabled: restProps.disabled,
- name: restProps.name,
- // https://github.com/ant-design/ant-design/issues/16376
- registerValue,
- cancelValue
- };
- const classString = classnames_default()(groupPrefixCls, {
- [`${groupPrefixCls}-rtl`]: direction === 'rtl'
- }, className, rootClassName, hashId);
- return wrapSSR( /*#__PURE__*/react.createElement("div", Object.assign({
- className: classString,
- style: style
- }, domProps, {
- ref: ref
- }), /*#__PURE__*/react.createElement(checkbox_GroupContext.Provider, {
- value: context
- }, childrenNode)));
-};
-
-const CheckboxGroup = /*#__PURE__*/react.forwardRef(InternalGroup);
-/* harmony default export */ var Group = (/*#__PURE__*/react.memo(CheckboxGroup));
-;// CONCATENATED MODULE: ./node_modules/antd/es/checkbox/index.js
-'use client';
-
-
-
-const es_checkbox_Checkbox = checkbox_Checkbox;
-es_checkbox_Checkbox.Group = Group;
-es_checkbox_Checkbox.__ANT_CHECKBOX = true;
-if (false) {}
-/* harmony default export */ var es_checkbox = (es_checkbox_Checkbox);
-
-/***/ }),
-
-/***/ 79531:
-/*!*********************************************************!*\
- !*** ./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/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);
-// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js
-var style = __webpack_require__(47673);
-;// CONCATENATED MODULE: ./node_modules/antd/es/input/Group.js
-
-
-
-
-
-
-
-const Group = props => {
- const {
- getPrefixCls,
- direction
- } = (0,react.useContext)(context/* ConfigContext */.E_);
- const {
- prefixCls: customizePrefixCls,
- className
- } = props;
- const prefixCls = getPrefixCls('input-group', customizePrefixCls);
- const inputPrefixCls = getPrefixCls('input');
- const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls);
- const cls = classnames_default()(prefixCls, {
- [`${prefixCls}-lg`]: props.size === 'large',
- [`${prefixCls}-sm`]: props.size === 'small',
- [`${prefixCls}-compact`]: props.compact,
- [`${prefixCls}-rtl`]: direction === 'rtl'
- }, hashId, className);
- const formItemContext = (0,react.useContext)(form_context/* FormItemInputContext */.aM);
- const groupFormItemContext = (0,react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
- isFormItemInput: false
- }), [formItemContext]);
- if (false) {}
- return wrapSSR( /*#__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/extends.js
-var esm_extends = __webpack_require__(87462);
-;// 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/@ant-design/icons/es/components/AntdIcon.js + 8 modules
-var AntdIcon = __webpack_require__(74643);
-;// CONCATENATED MODULE: ./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,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_EyeInvisibleOutlined
- }));
-};
-if (false) {}
-/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
-var EyeOutlined = __webpack_require__(99611);
-// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
-var omit = __webpack_require__(10366);
-// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/ref.js
-var es_ref = __webpack_require__(17799);
-// 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;
-};
-
-
-
-
-
-
-
-
-
-
-const defaultIconRender = visible => visible ? /*#__PURE__*/react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(icons_EyeInvisibleOutlined, null);
-const ActionMap = {
- click: 'onClick',
- hover: 'onMouseOver'
-};
-const Password = /*#__PURE__*/react.forwardRef((props, ref) => {
- const {
- visibilityToggle = true
- } = props;
- const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
- const [visible, setVisible] = (0,react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
- const inputRef = (0,react.useRef)(null);
- react.useEffect(() => {
- if (visibilityControlled) {
- setVisible(visibilityToggle.visible);
- }
- }, [visibilityControlled, visibilityToggle]);
- // Remove Password value
- const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
- const onVisibleChange = () => {
- const {
- disabled
- } = props;
- if (disabled) {
- return;
- }
- if (visible) {
- removePasswordTimeout();
- }
- setVisible(prevState => {
- var _a;
- const newState = !prevState;
- if (typeof visibilityToggle === 'object') {
- (_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
- }
- return newState;
- });
- };
- const getIcon = prefixCls => {
- const {
- action = 'click',
- iconRender = defaultIconRender
- } = props;
- const iconTrigger = ActionMap[action] || '';
- const icon = iconRender(visible);
- const iconProps = {
- [iconTrigger]: onVisibleChange,
- className: `${prefixCls}-icon`,
- key: 'passwordIcon',
- onMouseDown: e => {
- // Prevent focused state lost
- // https://github.com/ant-design/ant-design/issues/15173
- e.preventDefault();
- },
- onMouseUp: e => {
- // Prevent caret position change
- // https://github.com/ant-design/ant-design/issues/23524
- e.preventDefault();
- }
- };
- return /*#__PURE__*/react.cloneElement( /*#__PURE__*/react.isValidElement(icon) ? icon : /*#__PURE__*/react.createElement("span", null, icon), iconProps);
- };
- const {
- className,
- prefixCls: customizePrefixCls,
- inputPrefixCls: customizeInputPrefixCls,
- size
- } = props,
- restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
- const {
- getPrefixCls
- } = react.useContext(context/* ConfigContext */.E_);
- const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
- const prefixCls = getPrefixCls('input-password', customizePrefixCls);
- const suffixIcon = visibilityToggle && getIcon(prefixCls);
- const inputClassName = classnames_default()(prefixCls, className, {
- [`${prefixCls}-${size}`]: !!size
- });
- const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
- type: visible ? 'text' : 'password',
- className: inputClassName,
- prefixCls: inputPrefixCls,
- suffix: suffixIcon
- });
- if (size) {
- omittedProps.size = size;
- }
- return /*#__PURE__*/react.createElement(Input/* default */.Z, Object.assign({
- ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
- }, omittedProps));
-});
-if (false) {}
-/* harmony default export */ var input_Password = (Password);
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
-var SearchOutlined = __webpack_require__(68795);
-// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
-var reactNode = __webpack_require__(96159);
-// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
-var es_button = __webpack_require__(71577);
-// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/hooks/useSize.js
-var useSize = __webpack_require__(98675);
-// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
-var Compact = __webpack_require__(4173);
-;// 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;
-};
-
-
-
-
-
-
-
-
-
-
-const Search = /*#__PURE__*/react.forwardRef((props, ref) => {
- const {
- prefixCls: customizePrefixCls,
- inputPrefixCls: customizeInputPrefixCls,
- className,
- size: customizeSize,
- suffix,
- enterButton = false,
- addonAfter,
- loading,
- disabled,
- onSearch: customOnSearch,
- onChange: customOnChange,
- onCompositionStart,
- onCompositionEnd
- } = props,
- restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
- const {
- getPrefixCls,
- direction
- } = react.useContext(context/* ConfigContext */.E_);
- const composedRef = react.useRef(false);
- const prefixCls = getPrefixCls('input-search', customizePrefixCls);
- const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
- const {
- compactSize
- } = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
- const size = (0,useSize/* default */.Z)(ctx => {
- var _a;
- return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
- });
- const inputRef = react.useRef(null);
- const onChange = e => {
- if (e && e.target && e.type === 'click' && customOnSearch) {
- customOnSearch(e.target.value, e);
- }
- if (customOnChange) {
- customOnChange(e);
- }
- };
- const onMouseDown = e => {
- var _a;
- if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
- e.preventDefault();
- }
- };
- const onSearch = e => {
- var _a, _b;
- if (customOnSearch) {
- customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e);
- }
- };
- const onPressEnter = e => {
- if (composedRef.current || loading) {
- return;
- }
- onSearch(e);
- };
- const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/react.createElement(SearchOutlined/* default */.Z, null) : null;
- const btnClassName = `${prefixCls}-button`;
- let button;
- const enterButtonAsElement = enterButton || {};
- const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
- if (isAntdButton || enterButtonAsElement.type === 'button') {
- button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({
- onMouseDown,
- onClick: e => {
- var _a, _b;
- (_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
- onSearch(e);
- },
- key: 'enterButton'
- }, isAntdButton ? {
- className: btnClassName,
- size
- } : {}));
- } else {
- button = /*#__PURE__*/react.createElement(es_button/* default */.ZP, {
- className: btnClassName,
- type: enterButton ? 'primary' : undefined,
- size: size,
- disabled: disabled,
- key: "enterButton",
- onMouseDown: onMouseDown,
- onClick: onSearch,
- loading: loading,
- icon: searchIcon
- }, enterButton);
- }
- if (addonAfter) {
- button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
- key: 'addonAfter'
- })];
- }
- const cls = classnames_default()(prefixCls, {
- [`${prefixCls}-rtl`]: direction === 'rtl',
- [`${prefixCls}-${size}`]: !!size,
- [`${prefixCls}-with-button`]: !!enterButton
- }, className);
- const handleOnCompositionStart = e => {
- composedRef.current = true;
- onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
- };
- const handleOnCompositionEnd = e => {
- composedRef.current = false;
- onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
- };
- return /*#__PURE__*/react.createElement(Input/* default */.Z, Object.assign({
- ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
- onPressEnter: onPressEnter
- }, restProps, {
- size: size,
- onCompositionStart: handleOnCompositionStart,
- onCompositionEnd: handleOnCompositionEnd,
- prefixCls: inputPrefixCls,
- addonAfter: button,
- suffix: suffix,
- onChange: onChange,
- className: cls,
- disabled: disabled
- }));
-});
-if (false) {}
-/* harmony default export */ var input_Search = (Search);
-// EXTERNAL MODULE: ./node_modules/antd/es/input/TextArea.js
-var TextArea = __webpack_require__(96330);
-;// CONCATENATED MODULE: ./node_modules/antd/es/input/index.js
-'use client';
-
-
-
-
-
-
-const input_Input = Input/* default */.Z;
-if (false) {}
-input_Input.Group = input_Group;
-input_Input.Search = input_Search;
-input_Input.TextArea = TextArea/* default */.Z;
-input_Input.Password = input_Password;
-/* harmony default export */ var input = (input_Input);
-
-/***/ }),
-
-/***/ 33507:
-/*!*******************************************************!*\
- !*** ./node_modules/antd/es/style/motion/collapse.js ***!
- \*******************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-const genCollapseMotion = token => ({
- [token.componentCls]: {
- // For common/openAnimation
- [`${token.antCls}-motion-collapse-legacy`]: {
- overflow: 'hidden',
- '&-active': {
- transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
- opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
- }
- },
- [`${token.antCls}-motion-collapse`]: {
- overflow: 'hidden',
- transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
- opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
- }
- }
-});
-/* harmony default export */ __webpack_exports__["Z"] = (genCollapseMotion);
-
-/***/ }),
-
-/***/ 31131:
-/*!*********************************************!*\
- !*** ./node_modules/rc-util/es/isMobile.js ***!
- \*********************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-/* harmony default export */ __webpack_exports__["Z"] = (function () {
- if (typeof navigator === 'undefined' || typeof window === 'undefined') {
- return false;
- }
- var agent = navigator.userAgent || navigator.vendor || window.opera;
- return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(agent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(agent === null || agent === void 0 ? void 0 : agent.substr(0, 4));
-});
-
-/***/ })
-
-}]);
\ No newline at end of file
diff --git a/73453.async.js b/66357.async.js
similarity index 56%
rename from 73453.async.js
rename to 66357.async.js
index 6bf6d00601..37b24a7ca4 100644
--- a/73453.async.js
+++ b/66357.async.js
@@ -1,5 +1,406 @@
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[66357],{
+
+/***/ 25035:
+/*!***************************************************************************************!*\
+ !*** ./node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js + 1 modules ***!
+ \***************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ icons_QuestionCircleOutlined; }
+});
+
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
+var esm_extends = __webpack_require__(87462);
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/QuestionCircleOutlined.js
+// This icon file is generated automatically.
+var QuestionCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, "name": "question-circle", "theme": "outlined" };
+/* harmony default export */ var asn_QuestionCircleOutlined = (QuestionCircleOutlined);
+
+// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
+var AntdIcon = __webpack_require__(74643);
+;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+
+var QuestionCircleOutlined_QuestionCircleOutlined = function QuestionCircleOutlined(props, ref) {
+ return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
+ ref: ref,
+ icon: asn_QuestionCircleOutlined
+ }));
+};
+if (false) {}
+/* harmony default export */ var icons_QuestionCircleOutlined = (/*#__PURE__*/react.forwardRef(QuestionCircleOutlined_QuestionCircleOutlined));
+
+/***/ }),
+
+/***/ 81643:
+/*!**********************************************************!*\
+ !*** ./node_modules/antd/es/_util/getRenderPropValue.js ***!
+ \**********************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[73453],{
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "Z": function() { return /* binding */ getRenderPropValue; }
+/* harmony export */ });
+const getRenderPropValue = propValue => {
+ if (!propValue) {
+ return null;
+ }
+ if (typeof propValue === 'function') {
+ return propValue();
+ }
+ return propValue;
+};
+
+/***/ }),
+
+/***/ 66330:
+/*!***************************************************!*\
+ !*** ./node_modules/antd/es/popover/PurePanel.js ***!
+ \***************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* unused harmony exports getOverlay, RawPurePanel */
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 94184);
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 92419);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider */ 53124);
+/* harmony import */ var _util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/getRenderPropValue */ 81643);
+/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 20136);
+var __rest = undefined && undefined.__rest || function (s, e) {
+ var t = {};
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
+ }
+ return t;
+};
+
+
+
+
+
+
+const getOverlay = (prefixCls, title, content) => {
+ if (!title && !content) return undefined;
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
+ className: `${prefixCls}-title`
+ }, (0,_util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_3__/* .getRenderPropValue */ .Z)(title)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
+ className: `${prefixCls}-inner-content`
+ }, (0,_util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_3__/* .getRenderPropValue */ .Z)(content)));
+};
+const RawPurePanel = props => {
+ const {
+ hashId,
+ prefixCls,
+ className,
+ style,
+ placement = 'top',
+ title,
+ content,
+ children
+ } = props;
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
+ className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(hashId, prefixCls, `${prefixCls}-pure`, `${prefixCls}-placement-${placement}`, className),
+ style: style
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
+ className: `${prefixCls}-arrow`
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_tooltip__WEBPACK_IMPORTED_MODULE_1__/* .Popup */ .G, Object.assign({}, props, {
+ className: hashId,
+ prefixCls: prefixCls
+ }), children || getOverlay(prefixCls, title, content)));
+};
+const PurePanel = props => {
+ const {
+ prefixCls: customizePrefixCls
+ } = props,
+ restProps = __rest(props, ["prefixCls"]);
+ const {
+ getPrefixCls
+ } = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_4__/* .ConfigContext */ .E_);
+ const prefixCls = getPrefixCls('popover', customizePrefixCls);
+ const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(prefixCls);
+ return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(RawPurePanel, Object.assign({}, restProps, {
+ prefixCls: prefixCls,
+ hashId: hashId
+ })));
+};
+/* harmony default export */ __webpack_exports__["ZP"] = (PurePanel);
+
+/***/ }),
+
+/***/ 55241:
+/*!***********************************************!*\
+ !*** ./node_modules/antd/es/popover/index.js ***!
+ \***********************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 94184);
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/getRenderPropValue */ 81643);
+/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/motion */ 33603);
+/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 53124);
+/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tooltip */ 83062);
+/* harmony import */ var _PurePanel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PurePanel */ 66330);
+/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./style */ 20136);
+'use client';
+
+var __rest = undefined && undefined.__rest || function (s, e) {
+ var t = {};
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
+ }
+ return t;
+};
+
+
+
+
+
+
+
+// CSSINJS
+
+const Overlay = _ref => {
+ let {
+ title,
+ content,
+ prefixCls
+ } = _ref;
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
+ className: `${prefixCls}-title`
+ }, (0,_util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_2__/* .getRenderPropValue */ .Z)(title)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
+ className: `${prefixCls}-inner-content`
+ }, (0,_util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_2__/* .getRenderPropValue */ .Z)(content)));
+};
+const Popover = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((props, ref) => {
+ const {
+ prefixCls: customizePrefixCls,
+ title,
+ content,
+ overlayClassName,
+ placement = 'top',
+ trigger = 'hover',
+ mouseEnterDelay = 0.1,
+ mouseLeaveDelay = 0.1,
+ overlayStyle = {}
+ } = props,
+ otherProps = __rest(props, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle"]);
+ const {
+ getPrefixCls
+ } = react__WEBPACK_IMPORTED_MODULE_1__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* .ConfigContext */ .E_);
+ const prefixCls = getPrefixCls('popover', customizePrefixCls);
+ const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(prefixCls);
+ const rootPrefixCls = getPrefixCls();
+ const overlayCls = classnames__WEBPACK_IMPORTED_MODULE_0___default()(overlayClassName, hashId);
+ return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, Object.assign({
+ placement: placement,
+ trigger: trigger,
+ mouseEnterDelay: mouseEnterDelay,
+ mouseLeaveDelay: mouseLeaveDelay,
+ overlayStyle: overlayStyle
+ }, otherProps, {
+ prefixCls: prefixCls,
+ overlayClassName: overlayCls,
+ ref: ref,
+ overlay: title || content ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(Overlay, {
+ prefixCls: prefixCls,
+ title: title,
+ content: content
+ }) : null,
+ transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_6__/* .getTransitionName */ .mL)(rootPrefixCls, 'zoom-big', otherProps.transitionName),
+ "data-popover-inject": true
+ })));
+});
+if (false) {}
+Popover._InternalPanelDoNotUseOrYouWillBeFired = _PurePanel__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP;
+/* harmony default export */ __webpack_exports__["Z"] = (Popover);
+
+/***/ }),
+
+/***/ 20136:
+/*!*****************************************************!*\
+ !*** ./node_modules/antd/es/popover/style/index.js ***!
+ \*****************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style */ 14747);
+/* harmony import */ var _style_motion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../style/motion */ 50438);
+/* harmony import */ var _style_placementArrow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../style/placementArrow */ 97414);
+/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme/internal */ 8796);
+/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../theme/internal */ 67968);
+/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../theme/internal */ 45503);
+
+
+
+
+const genBaseStyle = token => {
+ const {
+ componentCls,
+ popoverColor,
+ minWidth,
+ fontWeightStrong,
+ popoverPadding,
+ boxShadowSecondary,
+ colorTextHeading,
+ borderRadiusLG: borderRadius,
+ zIndexPopup,
+ marginXS,
+ colorBgElevated,
+ popoverBg
+ } = token;
+ return [{
+ [componentCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), {
+ position: 'absolute',
+ top: 0,
+ // use `left` to fix https://github.com/ant-design/ant-design/issues/39195
+ left: {
+ _skip_check_: true,
+ value: 0
+ },
+ zIndex: zIndexPopup,
+ fontWeight: 'normal',
+ whiteSpace: 'normal',
+ textAlign: 'start',
+ cursor: 'auto',
+ userSelect: 'text',
+ transformOrigin: `var(--arrow-x, 50%) var(--arrow-y, 50%)`,
+ '--antd-arrow-background-color': colorBgElevated,
+ '&-rtl': {
+ direction: 'rtl'
+ },
+ '&-hidden': {
+ display: 'none'
+ },
+ [`${componentCls}-content`]: {
+ position: 'relative'
+ },
+ [`${componentCls}-inner`]: {
+ backgroundColor: popoverBg,
+ backgroundClip: 'padding-box',
+ borderRadius,
+ boxShadow: boxShadowSecondary,
+ padding: popoverPadding
+ },
+ [`${componentCls}-title`]: {
+ minWidth,
+ marginBottom: marginXS,
+ color: colorTextHeading,
+ fontWeight: fontWeightStrong
+ },
+ [`${componentCls}-inner-content`]: {
+ color: popoverColor
+ }
+ })
+ },
+ // Arrow Style
+ (0,_style_placementArrow__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP)(token, {
+ colorBg: 'var(--antd-arrow-background-color)'
+ }),
+ // Pure Render
+ {
+ [`${componentCls}-pure`]: {
+ position: 'relative',
+ maxWidth: 'none',
+ margin: token.sizePopupArrow,
+ display: 'inline-block',
+ [`${componentCls}-content`]: {
+ display: 'inline-block'
+ }
+ }
+ }];
+};
+const genColorStyle = token => {
+ const {
+ componentCls
+ } = token;
+ return {
+ [componentCls]: _theme_internal__WEBPACK_IMPORTED_MODULE_2__/* .PresetColors.map */ .i.map(colorKey => {
+ const lightColor = token[`${colorKey}6`];
+ return {
+ [`&${componentCls}-${colorKey}`]: {
+ '--antd-arrow-background-color': lightColor,
+ [`${componentCls}-inner`]: {
+ backgroundColor: lightColor
+ },
+ [`${componentCls}-arrow`]: {
+ background: 'transparent'
+ }
+ }
+ };
+ })
+ };
+};
+const genWireframeStyle = token => {
+ const {
+ componentCls,
+ lineWidth,
+ lineType,
+ colorSplit,
+ paddingSM,
+ controlHeight,
+ fontSize,
+ lineHeight,
+ padding
+ } = token;
+ const titlePaddingBlockDist = controlHeight - Math.round(fontSize * lineHeight);
+ const popoverTitlePaddingBlockTop = titlePaddingBlockDist / 2;
+ const popoverTitlePaddingBlockBottom = titlePaddingBlockDist / 2 - lineWidth;
+ const popoverPaddingHorizontal = padding;
+ return {
+ [componentCls]: {
+ [`${componentCls}-inner`]: {
+ padding: 0
+ },
+ [`${componentCls}-title`]: {
+ margin: 0,
+ padding: `${popoverTitlePaddingBlockTop}px ${popoverPaddingHorizontal}px ${popoverTitlePaddingBlockBottom}px`,
+ borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`
+ },
+ [`${componentCls}-inner-content`]: {
+ padding: `${paddingSM}px ${popoverPaddingHorizontal}px`
+ }
+ }
+ };
+};
+/* harmony default export */ __webpack_exports__["Z"] = ((0,_theme_internal__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)('Popover', token => {
+ const {
+ colorBgElevated,
+ colorText,
+ wireframe
+ } = token;
+ const popoverToken = (0,_theme_internal__WEBPACK_IMPORTED_MODULE_4__/* .merge */ .TS)(token, {
+ popoverPadding: 12,
+ popoverBg: colorBgElevated,
+ popoverColor: colorText
+ });
+ return [genBaseStyle(popoverToken), genColorStyle(popoverToken), wireframe && genWireframeStyle(popoverToken), (0,_style_motion__WEBPACK_IMPORTED_MODULE_5__/* .initZoomMotion */ ._y)(popoverToken, 'zoom-big')];
+}, token => ({
+ width: 177,
+ minWidth: 177,
+ zIndexPopup: token.zIndexPopupBase + 30
+}), {
+ deprecatedTokens: [['width', 'minWidth']]
+}));
+
+/***/ }),
/***/ 73453:
/*!***************************************************************!*\
@@ -7,6 +408,7 @@
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@@ -1063,6 +1465,322 @@ List.displayName = 'List';
/* harmony default export */ var rc_virtual_list_es = (es_List);
+/***/ }),
+
+/***/ 57761:
+/*!*********************************************************************!*\
+ !*** ./node_modules/react-infinite-scroller/dist/InfiniteScroll.js ***!
+ \*********************************************************************/
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _react = __webpack_require__(/*! react */ 67294);
+
+var _react2 = _interopRequireDefault(_react);
+
+var _propTypes = __webpack_require__(/*! prop-types */ 45697);
+
+var _propTypes2 = _interopRequireDefault(_propTypes);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var InfiniteScroll = function (_Component) {
+ _inherits(InfiniteScroll, _Component);
+
+ function InfiniteScroll(props) {
+ _classCallCheck(this, InfiniteScroll);
+
+ var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));
+
+ _this.scrollListener = _this.scrollListener.bind(_this);
+ _this.eventListenerOptions = _this.eventListenerOptions.bind(_this);
+ _this.mousewheelListener = _this.mousewheelListener.bind(_this);
+ return _this;
+ }
+
+ _createClass(InfiniteScroll, [{
+ key: 'componentDidMount',
+ value: function componentDidMount() {
+ this.pageLoaded = this.props.pageStart;
+ this.options = this.eventListenerOptions();
+ this.attachScrollListener();
+ }
+ }, {
+ key: 'componentDidUpdate',
+ value: function componentDidUpdate() {
+ if (this.props.isReverse && this.loadMore) {
+ var parentElement = this.getParentElement(this.scrollComponent);
+ parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;
+ this.loadMore = false;
+ }
+ this.attachScrollListener();
+ }
+ }, {
+ key: 'componentWillUnmount',
+ value: function componentWillUnmount() {
+ this.detachScrollListener();
+ this.detachMousewheelListener();
+ }
+ }, {
+ key: 'isPassiveSupported',
+ value: function isPassiveSupported() {
+ var passive = false;
+
+ var testOptions = {
+ get passive() {
+ passive = true;
+ }
+ };
+
+ try {
+ document.addEventListener('test', null, testOptions);
+ document.removeEventListener('test', null, testOptions);
+ } catch (e) {
+ // ignore
+ }
+ return passive;
+ }
+ }, {
+ key: 'eventListenerOptions',
+ value: function eventListenerOptions() {
+ var options = this.props.useCapture;
+
+ if (this.isPassiveSupported()) {
+ options = {
+ useCapture: this.props.useCapture,
+ passive: true
+ };
+ }
+ return options;
+ }
+
+ // Set a defaut loader for all your `InfiniteScroll` components
+
+ }, {
+ key: 'setDefaultLoader',
+ value: function setDefaultLoader(loader) {
+ this.defaultLoader = loader;
+ }
+ }, {
+ key: 'detachMousewheelListener',
+ value: function detachMousewheelListener() {
+ var scrollEl = window;
+ if (this.props.useWindow === false) {
+ scrollEl = this.scrollComponent.parentNode;
+ }
+
+ scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
+ }
+ }, {
+ key: 'detachScrollListener',
+ value: function detachScrollListener() {
+ var scrollEl = window;
+ if (this.props.useWindow === false) {
+ scrollEl = this.getParentElement(this.scrollComponent);
+ }
+
+ scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
+ scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
+ }
+ }, {
+ key: 'getParentElement',
+ value: function getParentElement(el) {
+ var scrollParent = this.props.getScrollParent && this.props.getScrollParent();
+ if (scrollParent != null) {
+ return scrollParent;
+ }
+ return el && el.parentNode;
+ }
+ }, {
+ key: 'filterProps',
+ value: function filterProps(props) {
+ return props;
+ }
+ }, {
+ key: 'attachScrollListener',
+ value: function attachScrollListener() {
+ var parentElement = this.getParentElement(this.scrollComponent);
+
+ if (!this.props.hasMore || !parentElement) {
+ return;
+ }
+
+ var scrollEl = window;
+ if (this.props.useWindow === false) {
+ scrollEl = parentElement;
+ }
+
+ scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
+ scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
+ scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
+
+ if (this.props.initialLoad) {
+ this.scrollListener();
+ }
+ }
+ }, {
+ key: 'mousewheelListener',
+ value: function mousewheelListener(e) {
+ // Prevents Chrome hangups
+ // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257
+ if (e.deltaY === 1 && !this.isPassiveSupported()) {
+ e.preventDefault();
+ }
+ }
+ }, {
+ key: 'scrollListener',
+ value: function scrollListener() {
+ var el = this.scrollComponent;
+ var scrollEl = window;
+ var parentNode = this.getParentElement(el);
+
+ var offset = void 0;
+ if (this.props.useWindow) {
+ var doc = document.documentElement || document.body.parentNode || document.body;
+ var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;
+ if (this.props.isReverse) {
+ offset = scrollTop;
+ } else {
+ offset = this.calculateOffset(el, scrollTop);
+ }
+ } else if (this.props.isReverse) {
+ offset = parentNode.scrollTop;
+ } else {
+ offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;
+ }
+
+ // Here we make sure the element is visible as well as checking the offset
+ if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {
+ this.detachScrollListener();
+ this.beforeScrollHeight = parentNode.scrollHeight;
+ this.beforeScrollTop = parentNode.scrollTop;
+ // Call loadMore after detachScrollListener to allow for non-async loadMore functions
+ if (typeof this.props.loadMore === 'function') {
+ this.props.loadMore(this.pageLoaded += 1);
+ this.loadMore = true;
+ }
+ }
+ }
+ }, {
+ key: 'calculateOffset',
+ value: function calculateOffset(el, scrollTop) {
+ if (!el) {
+ return 0;
+ }
+
+ return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);
+ }
+ }, {
+ key: 'calculateTopPosition',
+ value: function calculateTopPosition(el) {
+ if (!el) {
+ return 0;
+ }
+ return el.offsetTop + this.calculateTopPosition(el.offsetParent);
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ var _this2 = this;
+
+ var renderProps = this.filterProps(this.props);
+
+ var children = renderProps.children,
+ element = renderProps.element,
+ hasMore = renderProps.hasMore,
+ initialLoad = renderProps.initialLoad,
+ isReverse = renderProps.isReverse,
+ loader = renderProps.loader,
+ loadMore = renderProps.loadMore,
+ pageStart = renderProps.pageStart,
+ ref = renderProps.ref,
+ threshold = renderProps.threshold,
+ useCapture = renderProps.useCapture,
+ useWindow = renderProps.useWindow,
+ getScrollParent = renderProps.getScrollParent,
+ props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);
+
+ props.ref = function (node) {
+ _this2.scrollComponent = node;
+ if (ref) {
+ ref(node);
+ }
+ };
+
+ var childrenArray = [children];
+ if (hasMore) {
+ if (loader) {
+ isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);
+ } else if (this.defaultLoader) {
+ isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);
+ }
+ }
+ return _react2.default.createElement(element, props, childrenArray);
+ }
+ }]);
+
+ return InfiniteScroll;
+}(_react.Component);
+
+InfiniteScroll.propTypes = {
+ children: _propTypes2.default.node.isRequired,
+ element: _propTypes2.default.node,
+ hasMore: _propTypes2.default.bool,
+ initialLoad: _propTypes2.default.bool,
+ isReverse: _propTypes2.default.bool,
+ loader: _propTypes2.default.node,
+ loadMore: _propTypes2.default.func.isRequired,
+ pageStart: _propTypes2.default.number,
+ ref: _propTypes2.default.func,
+ getScrollParent: _propTypes2.default.func,
+ threshold: _propTypes2.default.number,
+ useCapture: _propTypes2.default.bool,
+ useWindow: _propTypes2.default.bool
+};
+InfiniteScroll.defaultProps = {
+ element: 'div',
+ hasMore: false,
+ initialLoad: true,
+ pageStart: 0,
+ ref: null,
+ threshold: 250,
+ useWindow: true,
+ isReverse: false,
+ useCapture: false,
+ loader: null,
+ getScrollParent: null
+};
+exports["default"] = InfiniteScroll;
+module.exports = exports['default'];
+
+
+/***/ }),
+
+/***/ 246:
+/*!*******************************************************!*\
+ !*** ./node_modules/react-infinite-scroller/index.js ***!
+ \*******************************************************/
+/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+
+module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 57761)
+
+
/***/ })
}]);
\ No newline at end of file
diff --git a/66431.async.js b/66431.async.js
index 59b429aca0..225f6b97f9 100644
--- a/66431.async.js
+++ b/66431.async.js
@@ -23,14 +23,8 @@ var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./src/components/mediator.js
var mediator = __webpack_require__(91562);
-// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
-var es_button = __webpack_require__(71577);
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules
-var ReloadOutlined = __webpack_require__(33160);
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js + 1 modules
-var DownloadOutlined = __webpack_require__(23430);
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js + 1 modules
-var CloseOutlined = __webpack_require__(97937);
+// EXTERNAL MODULE: ./node_modules/antd/es/image/index.js + 49 modules
+var es_image = __webpack_require__(70736);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/components/image-preview/index.tsx
@@ -40,8 +34,6 @@ var jsx_runtime = __webpack_require__(85893);
-
-
/* harmony default export */ var image_preview = (function () {
var _useState = (0,react.useState)(''),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -51,12 +43,21 @@ var jsx_runtime = __webpack_require__(85893);
_useState4 = slicedToArray_default()(_useState3, 2),
deg = _useState4[0],
setDeg = _useState4[1];
+ var _useState5 = (0,react.useState)(),
+ _useState6 = slicedToArray_default()(_useState5, 2),
+ width = _useState6[0],
+ setwidth = _useState6[1];
+ var _useState7 = (0,react.useState)(),
+ _useState8 = slicedToArray_default()(_useState7, 2),
+ height = _useState8[0],
+ setheight = _useState8[1];
var saveUrl = (0,react.useRef)('');
(0,react.useEffect)(function () {
var unSub = mediator/* default.subscribe */.Z.subscribe('preview-image', function (value) {
setUrl(value);
// window.document.body
// document.body.style.height='100%'
+ console.log(imgref.current);
document.body.style.overflow = 'hidden';
});
return unSub;
@@ -80,47 +81,57 @@ var jsx_runtime = __webpack_require__(85893);
function onClose() {
// document.body.style.height='100%'
document.body.style.overflow = 'auto';
+ setwidth(undefined);
+ setheight(undefined);
+ setDeg(0);
setUrl('');
}
function onRotate() {
setDeg(deg + 90);
}
+ function big() {
+ width = imgref.current.width * 1.1;
+ height = imgref.current.height * 1.1;
+ setheight(height);
+ setwidth(width);
+ }
+ function small() {
+ width = imgref.current.width / 1.1;
+ height = imgref.current.height / 1.1;
+ setheight(height);
+ setwidth(width);
+ }
var maskRef = (0,react.useRef)();
var previewWrapperRef = (0,react.useRef)();
+ var imgref = (0,react.useRef)();
var handleMaskClick = function handleMaskClick(e) {
if (e.nativeEvent.target === maskRef.current || e.nativeEvent.target === previewWrapperRef.current) {
onClose();
}
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment, {
- children: !url ? null : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: "image-preview-container",
- ref: maskRef,
- onClick: handleMaskClick,
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: "button-group",
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
- onClick: onRotate,
- children: ["\u65CB\u8F6C", /*#__PURE__*/(0,jsx_runtime.jsx)(ReloadOutlined/* default */.Z, {})]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
- href: url,
- children: ["\u4E0B\u8F7D", /*#__PURE__*/(0,jsx_runtime.jsx)(DownloadOutlined/* default */.Z, {})]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
- onClick: onClose,
- children: ["\u5173\u95ED", /*#__PURE__*/(0,jsx_runtime.jsx)(CloseOutlined/* default */.Z, {})]
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ children: !url ? null : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "preview-wrp-group",
ref: previewWrapperRef,
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_image/* default */.Z, {
className: "image-preview",
src: url,
- alt: "\u9884\u89C8\u5927\u56FE",
style: {
- transform: "rotate(".concat(deg, "deg)")
+ display: 'none'
}
+ // ref={imgref}
+ ,
+ preview: {
+ visible: true,
+ src: url,
+ onVisibleChange: function onVisibleChange(value) {
+ setUrl('');
+ }
+ },
+ alt: "\u9884\u89C8\u5927\u56FE"
})
- })]
+ })
})
});
});
diff --git a/4094.async.js b/67408.async.js
similarity index 93%
rename from 4094.async.js
rename to 67408.async.js
index 9b1c88d27c..423038999f 100644
--- a/4094.async.js
+++ b/67408.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[4094,74045,88511,41522,9600,61710],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[67408,74045,88511,41522,9600,61710],{
/***/ 82826:
/*!**********************************************************************************!*\
@@ -1580,168 +1580,6 @@ const initMoveMotion = (token, motionName) => {
/***/ }),
-/***/ 67771:
-/*!****************************************************!*\
- !*** ./node_modules/antd/es/style/motion/slide.js ***!
- \****************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
-/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
-/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
-/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
-/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
-/* harmony export */ });
-/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
-/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
-/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
-
-
-const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
- '0%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- }
-});
-const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
- '0%': {
- transform: 'scaleY(1)',
- transformOrigin: '100% 100%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleY(0.8)',
- transformOrigin: '100% 100%',
- opacity: 0
- }
-});
-const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- }
-});
-const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '0% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '0% 0%',
- opacity: 0
- }
-});
-const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
- '0%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- },
- '100%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- }
-});
-const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
- '0%': {
- transform: 'scaleX(1)',
- transformOrigin: '100% 0%',
- opacity: 1
- },
- '100%': {
- transform: 'scaleX(0.8)',
- transformOrigin: '100% 0%',
- opacity: 0
- }
-});
-const slideMotion = {
- 'slide-up': {
- inKeyframes: slideUpIn,
- outKeyframes: slideUpOut
- },
- 'slide-down': {
- inKeyframes: slideDownIn,
- outKeyframes: slideDownOut
- },
- 'slide-left': {
- inKeyframes: slideLeftIn,
- outKeyframes: slideLeftOut
- },
- 'slide-right': {
- inKeyframes: slideRightIn,
- outKeyframes: slideRightOut
- }
-};
-const initSlideMotion = (token, motionName) => {
- const {
- antCls
- } = token;
- const motionCls = `${antCls}-${motionName}`;
- const {
- inKeyframes,
- outKeyframes
- } = slideMotion[motionName];
- return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
- [`
- ${motionCls}-enter,
- ${motionCls}-appear
- `]: {
- transform: 'scale(0)',
- transformOrigin: '0% 0%',
- opacity: 0,
- animationTimingFunction: token.motionEaseOutQuint,
- [`&-prepare`]: {
- transform: 'scale(1)'
- }
- },
- [`${motionCls}-leave`]: {
- animationTimingFunction: token.motionEaseInQuint
- }
- }];
-};
-
-/***/ }),
-
/***/ 17423:
/*!***************************************************************************!*\
!*** ./node_modules/scroll-into-view-if-needed/dist/index.js + 1 modules ***!
diff --git a/86291.async.js b/69998.async.js
similarity index 90%
rename from 86291.async.js
rename to 69998.async.js
index 1d6b467555..e30e805be0 100644
--- a/86291.async.js
+++ b/69998.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[86291,83570],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[69998,45344,54909],{
/***/ 99611:
/*!****************************************************************************!*\
@@ -1058,6 +1058,168 @@ const genCollapseMotion = token => ({
});
/* harmony default export */ __webpack_exports__["Z"] = (genCollapseMotion);
+/***/ }),
+
+/***/ 67771:
+/*!****************************************************!*\
+ !*** ./node_modules/antd/es/style/motion/slide.js ***!
+ \****************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
+/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
+/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
+/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
+/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
+/* harmony export */ });
+/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
+/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 68024);
+/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
+
+
+const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
+ '0%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ }
+});
+const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
+ '0%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ }
+});
+const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
+ '0%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '100% 100%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '100% 100%',
+ opacity: 1
+ }
+});
+const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
+ '0%': {
+ transform: 'scaleY(1)',
+ transformOrigin: '100% 100%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleY(0.8)',
+ transformOrigin: '100% 100%',
+ opacity: 0
+ }
+});
+const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
+ '0%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ }
+});
+const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
+ '0%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '0% 0%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '0% 0%',
+ opacity: 0
+ }
+});
+const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
+ '0%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '100% 0%',
+ opacity: 0
+ },
+ '100%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '100% 0%',
+ opacity: 1
+ }
+});
+const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
+ '0%': {
+ transform: 'scaleX(1)',
+ transformOrigin: '100% 0%',
+ opacity: 1
+ },
+ '100%': {
+ transform: 'scaleX(0.8)',
+ transformOrigin: '100% 0%',
+ opacity: 0
+ }
+});
+const slideMotion = {
+ 'slide-up': {
+ inKeyframes: slideUpIn,
+ outKeyframes: slideUpOut
+ },
+ 'slide-down': {
+ inKeyframes: slideDownIn,
+ outKeyframes: slideDownOut
+ },
+ 'slide-left': {
+ inKeyframes: slideLeftIn,
+ outKeyframes: slideLeftOut
+ },
+ 'slide-right': {
+ inKeyframes: slideRightIn,
+ outKeyframes: slideRightOut
+ }
+};
+const initSlideMotion = (token, motionName) => {
+ const {
+ antCls
+ } = token;
+ const motionCls = `${antCls}-${motionName}`;
+ const {
+ inKeyframes,
+ outKeyframes
+ } = slideMotion[motionName];
+ return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
+ [`
+ ${motionCls}-enter,
+ ${motionCls}-appear
+ `]: {
+ transform: 'scale(0)',
+ transformOrigin: '0% 0%',
+ opacity: 0,
+ animationTimingFunction: token.motionEaseOutQuint,
+ [`&-prepare`]: {
+ transform: 'scale(1)'
+ }
+ },
+ [`${motionCls}-leave`]: {
+ animationTimingFunction: token.motionEaseInQuint
+ }
+ }];
+};
+
/***/ })
}]);
\ No newline at end of file
diff --git a/70736.async.js b/70736.async.js
new file mode 100644
index 0000000000..ec27707e2c
--- /dev/null
+++ b/70736.async.js
@@ -0,0 +1,3860 @@
+"use strict";
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[70736],{
+
+/***/ 70736:
+/*!**********************************************************!*\
+ !*** ./node_modules/antd/es/image/index.js + 49 modules ***!
+ \**********************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ es_image; }
+});
+
+// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
+var EyeOutlined = __webpack_require__(99611);
+// EXTERNAL MODULE: ./node_modules/classnames/index.js
+var classnames = __webpack_require__(94184);
+var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
+// 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/@babel/runtime/helpers/esm/defineProperty.js
+var defineProperty = __webpack_require__(4942);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
+var slicedToArray = __webpack_require__(97685);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
+var esm_typeof = __webpack_require__(71002);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
+var objectWithoutProperties = __webpack_require__(45987);
+;// CONCATENATED MODULE: ./node_modules/rc-image/node_modules/rc-util/es/Dom/css.js
+/* eslint-disable no-nested-ternary */
+var PIXEL_PATTERN = /margin|padding|width|height|max|min|offset/;
+var removePixel = {
+ left: true,
+ top: true
+};
+var floatMap = {
+ cssFloat: 1,
+ styleFloat: 1,
+ float: 1
+};
+function getComputedStyle(node) {
+ return node.nodeType === 1 ? node.ownerDocument.defaultView.getComputedStyle(node, null) : {};
+}
+function getStyleValue(node, type, value) {
+ type = type.toLowerCase();
+ if (value === 'auto') {
+ if (type === 'height') {
+ return node.offsetHeight;
+ }
+ if (type === 'width') {
+ return node.offsetWidth;
+ }
+ }
+ if (!(type in removePixel)) {
+ removePixel[type] = PIXEL_PATTERN.test(type);
+ }
+ return removePixel[type] ? parseFloat(value) || 0 : value;
+}
+function get(node, name) {
+ var length = arguments.length;
+ var style = getComputedStyle(node);
+ name = floatMap[name] ? 'cssFloat' in node.style ? 'cssFloat' : 'styleFloat' : name;
+ return length === 1 ? style : getStyleValue(node, name, style[name] || node.style[name]);
+}
+function set(node, name, value) {
+ var length = arguments.length;
+ name = floatMap[name] ? 'cssFloat' in node.style ? 'cssFloat' : 'styleFloat' : name;
+ if (length === 3) {
+ if (typeof value === 'number' && PIXEL_PATTERN.test(name)) {
+ value = "".concat(value, "px");
+ }
+ node.style[name] = value; // Number
+ return value;
+ }
+ for (var x in name) {
+ if (name.hasOwnProperty(x)) {
+ set(node, x, name[x]);
+ }
+ }
+ return getComputedStyle(node);
+}
+function getOuterWidth(el) {
+ if (el === document.body) {
+ return document.documentElement.clientWidth;
+ }
+ return el.offsetWidth;
+}
+function getOuterHeight(el) {
+ if (el === document.body) {
+ return window.innerHeight || document.documentElement.clientHeight;
+ }
+ return el.offsetHeight;
+}
+function getDocSize() {
+ var width = Math.max(document.documentElement.scrollWidth, document.body.scrollWidth);
+ var height = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight);
+ return {
+ width: width,
+ height: height
+ };
+}
+function getClientSize() {
+ var width = document.documentElement.clientWidth;
+ var height = window.innerHeight || document.documentElement.clientHeight;
+ return {
+ width: width,
+ height: height
+ };
+}
+function getScroll() {
+ return {
+ scrollLeft: Math.max(document.documentElement.scrollLeft, document.body.scrollLeft),
+ scrollTop: Math.max(document.documentElement.scrollTop, document.body.scrollTop)
+ };
+}
+function getOffset(node) {
+ var box = node.getBoundingClientRect();
+ var docElem = document.documentElement;
+
+ // < ie8 不支持 win.pageXOffset, 则使用 docElem.scrollLeft
+ return {
+ left: box.left + (window.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || document.body.clientLeft || 0),
+ top: box.top + (window.pageYOffset || docElem.scrollTop) - (docElem.clientTop || document.body.clientTop || 0)
+ };
+}
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+var react_namespaceObject = /*#__PURE__*/__webpack_require__.t(react, 2);
+;// CONCATENATED MODULE: ./node_modules/rc-image/node_modules/rc-util/es/hooks/useEvent.js
+
+function useEvent(callback) {
+ var fnRef = react.useRef();
+ fnRef.current = callback;
+ var memoFn = react.useCallback(function () {
+ var _fnRef$current;
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+ return (_fnRef$current = fnRef.current) === null || _fnRef$current === void 0 ? void 0 : _fnRef$current.call.apply(_fnRef$current, [fnRef].concat(args));
+ }, []);
+ return memoFn;
+}
+;// CONCATENATED MODULE: ./node_modules/rc-image/node_modules/rc-util/es/Dom/canUseDom.js
+function canUseDom() {
+ return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
+}
+;// CONCATENATED MODULE: ./node_modules/rc-image/node_modules/rc-util/es/hooks/useLayoutEffect.js
+
+
+
+/**
+ * Wrap `React.useLayoutEffect` which will not throw warning message in test env
+ */
+var useInternalLayoutEffect = true && canUseDom() ? react.useLayoutEffect : react.useEffect;
+var useLayoutEffect = function useLayoutEffect(callback, deps) {
+ var firstMountRef = react.useRef(true);
+ useInternalLayoutEffect(function () {
+ return callback(firstMountRef.current);
+ }, deps);
+
+ // We tell react that first mount has passed
+ useInternalLayoutEffect(function () {
+ firstMountRef.current = false;
+ return function () {
+ firstMountRef.current = true;
+ };
+ }, []);
+};
+var useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
+ useLayoutEffect(function (firstMount) {
+ if (!firstMount) {
+ return callback();
+ }
+ }, deps);
+};
+/* harmony default export */ var hooks_useLayoutEffect = ((/* unused pure expression or super */ null && (useLayoutEffect)));
+;// CONCATENATED MODULE: ./node_modules/rc-image/node_modules/rc-util/es/hooks/useState.js
+
+
+/**
+ * Same as React.useState but `setState` accept `ignoreDestroy` param to not to setState after destroyed.
+ * We do not make this auto is to avoid real memory leak.
+ * Developer should confirm it's safe to ignore themselves.
+ */
+function useSafeState(defaultValue) {
+ var destroyRef = react.useRef(false);
+ var _React$useState = react.useState(defaultValue),
+ _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
+ value = _React$useState2[0],
+ setValue = _React$useState2[1];
+ react.useEffect(function () {
+ destroyRef.current = false;
+ return function () {
+ destroyRef.current = true;
+ };
+ }, []);
+ function safeSetState(updater, ignoreDestroy) {
+ if (ignoreDestroy && destroyRef.current) {
+ return;
+ }
+ setValue(updater);
+ }
+ return [value, safeSetState];
+}
+;// CONCATENATED MODULE: ./node_modules/rc-image/node_modules/rc-util/es/hooks/useMergedState.js
+
+
+
+
+/** We only think `undefined` is empty */
+function hasValue(value) {
+ return value !== undefined;
+}
+
+/**
+ * Similar to `useState` but will use props value if provided.
+ * Note that internal use rc-util `useState` hook.
+ */
+function useMergedState(defaultStateValue, option) {
+ var _ref = option || {},
+ defaultValue = _ref.defaultValue,
+ value = _ref.value,
+ onChange = _ref.onChange,
+ postState = _ref.postState;
+
+ // ======================= Init =======================
+ var _useState = useSafeState(function () {
+ if (hasValue(value)) {
+ return value;
+ } else if (hasValue(defaultValue)) {
+ return typeof defaultValue === 'function' ? defaultValue() : defaultValue;
+ } else {
+ return typeof defaultStateValue === 'function' ? defaultStateValue() : defaultStateValue;
+ }
+ }),
+ _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
+ innerValue = _useState2[0],
+ setInnerValue = _useState2[1];
+ var mergedValue = value !== undefined ? value : innerValue;
+ var postMergedValue = postState ? postState(mergedValue) : mergedValue;
+
+ // ====================== Change ======================
+ var onChangeFn = useEvent(onChange);
+ var _useState3 = useSafeState([mergedValue]),
+ _useState4 = (0,slicedToArray/* default */.Z)(_useState3, 2),
+ prevValue = _useState4[0],
+ setPrevValue = _useState4[1];
+ useLayoutUpdateEffect(function () {
+ var prev = prevValue[0];
+ if (innerValue !== prev) {
+ onChangeFn(innerValue, prev);
+ }
+ }, [prevValue]);
+
+ // Sync value back to `undefined` when it from control to un-control
+ useLayoutUpdateEffect(function () {
+ if (!hasValue(value)) {
+ setInnerValue(value);
+ }
+ }, [value]);
+
+ // ====================== Update ======================
+ var triggerChange = useEvent(function (updater, ignoreDestroy) {
+ setInnerValue(updater, ignoreDestroy);
+ setPrevValue([mergedValue], ignoreDestroy);
+ });
+ return [postMergedValue, triggerChange];
+}
+;// CONCATENATED MODULE: ./node_modules/rc-image/es/common.js
+var COMMON_PROPS = ['crossOrigin', 'decoding', 'draggable', 'loading', 'referrerPolicy', 'sizes', 'srcSet', 'useMap', 'alt'];
+;// CONCATENATED MODULE: ./node_modules/rc-image/es/context.js
+
+var PreviewGroupContext = /*#__PURE__*/react.createContext(null);
+;// CONCATENATED MODULE: ./node_modules/rc-image/es/hooks/useRegisterImage.js
+
+
+
+var uid = 0;
+function useRegisterImage(canPreview, data) {
+ var _React$useState = react.useState(function () {
+ uid += 1;
+ return String(uid);
+ }),
+ _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 1),
+ id = _React$useState2[0];
+ var groupContext = react.useContext(PreviewGroupContext);
+ var registerData = {
+ data: data,
+ canPreview: canPreview
+ };
+
+ // Keep order start
+ // Resolve https://github.com/ant-design/ant-design/issues/28881
+ // Only need unRegister when component unMount
+ react.useEffect(function () {
+ if (groupContext) {
+ return groupContext.register(id, registerData);
+ }
+ }, []);
+ react.useEffect(function () {
+ if (groupContext) {
+ groupContext.register(id, registerData);
+ }
+ }, [canPreview, data]);
+ return id;
+}
+;// CONCATENATED MODULE: ./node_modules/rc-image/es/util.js
+function isImageValid(src) {
+ return new Promise(function (resolve) {
+ var img = document.createElement('img');
+ img.onerror = function () {
+ return resolve(false);
+ };
+ img.onload = function () {
+ return resolve(true);
+ };
+ img.src = src;
+ });
+}
+;// CONCATENATED MODULE: ./node_modules/rc-image/es/hooks/useStatus.js
+
+
+
+function useStatus(_ref) {
+ var src = _ref.src,
+ isCustomPlaceholder = _ref.isCustomPlaceholder,
+ fallback = _ref.fallback;
+ var _useState = (0,react.useState)(isCustomPlaceholder ? 'loading' : 'normal'),
+ _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
+ status = _useState2[0],
+ setStatus = _useState2[1];
+ var isLoaded = (0,react.useRef)(false);
+ var isError = status === 'error';
+
+ // https://github.com/react-component/image/pull/187
+ (0,react.useEffect)(function () {
+ isImageValid(src).then(function (isValid) {
+ if (!isValid) {
+ setStatus('error');
+ }
+ });
+ }, [src]);
+ (0,react.useEffect)(function () {
+ if (isCustomPlaceholder && !isLoaded.current) {
+ setStatus('loading');
+ } else if (isError) {
+ setStatus('normal');
+ }
+ }, [src]);
+ var onLoad = function onLoad() {
+ setStatus('normal');
+ };
+ var getImgRef = function getImgRef(img) {
+ isLoaded.current = false;
+ if (status !== 'loading') {
+ return;
+ }
+ if (img !== null && img !== void 0 && img.complete && (img.naturalWidth || img.naturalHeight)) {
+ isLoaded.current = true;
+ onLoad();
+ }
+ };
+ var srcAndOnload = isError && fallback ? {
+ src: fallback
+ } : {
+ onLoad: onLoad,
+ src: src
+ };
+ return [getImgRef, srcAndOnload, status];
+}
+// EXTERNAL MODULE: ./node_modules/@rc-component/portal/es/index.js + 6 modules
+var es = __webpack_require__(2788);
+;// CONCATENATED MODULE: ./node_modules/rc-image/node_modules/rc-dialog/node_modules/rc-util/es/Dom/contains.js
+function contains(root, n) {
+ if (!root) {
+ return false;
+ }
+
+ // Use native if support
+ if (root.contains) {
+ return root.contains(n);
+ }
+
+ // `document.contains` not support with IE11
+ var node = n;
+ while (node) {
+ if (node === root) {
+ return true;
+ }
+ node = node.parentNode;
+ }
+ return false;
+}
+;// CONCATENATED MODULE: ./node_modules/rc-image/node_modules/rc-dialog/node_modules/rc-util/es/hooks/useId.js
+
+
+
+function getUseId() {
+ // We need fully clone React function here to avoid webpack warning React 17 do not export `useId`
+ var fullClone = (0,objectSpread2/* default */.Z)({}, react_namespaceObject);
+ return fullClone.useId;
+}
+var uuid = 0;
+
+/** @private Note only worked in develop env. Not work in production. */
+function resetUuid() {
+ if (false) {}
+}
+function useId(id) {
+ // Inner id for accessibility usage. Only work in client side
+ var _React$useState = react.useState('ssr-id'),
+ _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
+ innerId = _React$useState2[0],
+ setInnerId = _React$useState2[1];
+ var useOriginId = getUseId();
+ var reactNativeId = useOriginId === null || useOriginId === void 0 ? void 0 : useOriginId();
+ react.useEffect(function () {
+ if (!useOriginId) {
+ var nextId = uuid;
+ uuid += 1;
+ setInnerId("rc_unique_".concat(nextId));
+ }
+ }, []);
+
+ // Developer passed id is single source of truth
+ if (id) {
+ return id;
+ }
+
+ // Test env always return mock id
+ if (false) {}
+
+ // Return react native id or inner id
+ return reactNativeId || innerId;
+}
+;// CONCATENATED MODULE: ./node_modules/rc-image/node_modules/rc-dialog/node_modules/rc-util/es/KeyCode.js
+/**
+ * @ignore
+ * some key-codes definition and utils from closure-library
+ * @author yiminghe@gmail.com
+ */
+
+var KeyCode = {
+ /**
+ * MAC_ENTER
+ */
+ MAC_ENTER: 3,
+ /**
+ * BACKSPACE
+ */
+ BACKSPACE: 8,
+ /**
+ * TAB
+ */
+ TAB: 9,
+ /**
+ * NUMLOCK on FF/Safari Mac
+ */
+ NUM_CENTER: 12,
+ // NUMLOCK on FF/Safari Mac
+ /**
+ * ENTER
+ */
+ ENTER: 13,
+ /**
+ * SHIFT
+ */
+ SHIFT: 16,
+ /**
+ * CTRL
+ */
+ CTRL: 17,
+ /**
+ * ALT
+ */
+ ALT: 18,
+ /**
+ * PAUSE
+ */
+ PAUSE: 19,
+ /**
+ * CAPS_LOCK
+ */
+ CAPS_LOCK: 20,
+ /**
+ * ESC
+ */
+ ESC: 27,
+ /**
+ * SPACE
+ */
+ SPACE: 32,
+ /**
+ * PAGE_UP
+ */
+ PAGE_UP: 33,
+ // also NUM_NORTH_EAST
+ /**
+ * PAGE_DOWN
+ */
+ PAGE_DOWN: 34,
+ // also NUM_SOUTH_EAST
+ /**
+ * END
+ */
+ END: 35,
+ // also NUM_SOUTH_WEST
+ /**
+ * HOME
+ */
+ HOME: 36,
+ // also NUM_NORTH_WEST
+ /**
+ * LEFT
+ */
+ LEFT: 37,
+ // also NUM_WEST
+ /**
+ * UP
+ */
+ UP: 38,
+ // also NUM_NORTH
+ /**
+ * RIGHT
+ */
+ RIGHT: 39,
+ // also NUM_EAST
+ /**
+ * DOWN
+ */
+ DOWN: 40,
+ // also NUM_SOUTH
+ /**
+ * PRINT_SCREEN
+ */
+ PRINT_SCREEN: 44,
+ /**
+ * INSERT
+ */
+ INSERT: 45,
+ // also NUM_INSERT
+ /**
+ * DELETE
+ */
+ DELETE: 46,
+ // also NUM_DELETE
+ /**
+ * ZERO
+ */
+ ZERO: 48,
+ /**
+ * ONE
+ */
+ ONE: 49,
+ /**
+ * TWO
+ */
+ TWO: 50,
+ /**
+ * THREE
+ */
+ THREE: 51,
+ /**
+ * FOUR
+ */
+ FOUR: 52,
+ /**
+ * FIVE
+ */
+ FIVE: 53,
+ /**
+ * SIX
+ */
+ SIX: 54,
+ /**
+ * SEVEN
+ */
+ SEVEN: 55,
+ /**
+ * EIGHT
+ */
+ EIGHT: 56,
+ /**
+ * NINE
+ */
+ NINE: 57,
+ /**
+ * QUESTION_MARK
+ */
+ QUESTION_MARK: 63,
+ // needs localization
+ /**
+ * A
+ */
+ A: 65,
+ /**
+ * B
+ */
+ B: 66,
+ /**
+ * C
+ */
+ C: 67,
+ /**
+ * D
+ */
+ D: 68,
+ /**
+ * E
+ */
+ E: 69,
+ /**
+ * F
+ */
+ F: 70,
+ /**
+ * G
+ */
+ G: 71,
+ /**
+ * H
+ */
+ H: 72,
+ /**
+ * I
+ */
+ I: 73,
+ /**
+ * J
+ */
+ J: 74,
+ /**
+ * K
+ */
+ K: 75,
+ /**
+ * L
+ */
+ L: 76,
+ /**
+ * M
+ */
+ M: 77,
+ /**
+ * N
+ */
+ N: 78,
+ /**
+ * O
+ */
+ O: 79,
+ /**
+ * P
+ */
+ P: 80,
+ /**
+ * Q
+ */
+ Q: 81,
+ /**
+ * R
+ */
+ R: 82,
+ /**
+ * S
+ */
+ S: 83,
+ /**
+ * T
+ */
+ T: 84,
+ /**
+ * U
+ */
+ U: 85,
+ /**
+ * V
+ */
+ V: 86,
+ /**
+ * W
+ */
+ W: 87,
+ /**
+ * X
+ */
+ X: 88,
+ /**
+ * Y
+ */
+ Y: 89,
+ /**
+ * Z
+ */
+ Z: 90,
+ /**
+ * META
+ */
+ META: 91,
+ // WIN_KEY_LEFT
+ /**
+ * WIN_KEY_RIGHT
+ */
+ WIN_KEY_RIGHT: 92,
+ /**
+ * CONTEXT_MENU
+ */
+ CONTEXT_MENU: 93,
+ /**
+ * NUM_ZERO
+ */
+ NUM_ZERO: 96,
+ /**
+ * NUM_ONE
+ */
+ NUM_ONE: 97,
+ /**
+ * NUM_TWO
+ */
+ NUM_TWO: 98,
+ /**
+ * NUM_THREE
+ */
+ NUM_THREE: 99,
+ /**
+ * NUM_FOUR
+ */
+ NUM_FOUR: 100,
+ /**
+ * NUM_FIVE
+ */
+ NUM_FIVE: 101,
+ /**
+ * NUM_SIX
+ */
+ NUM_SIX: 102,
+ /**
+ * NUM_SEVEN
+ */
+ NUM_SEVEN: 103,
+ /**
+ * NUM_EIGHT
+ */
+ NUM_EIGHT: 104,
+ /**
+ * NUM_NINE
+ */
+ NUM_NINE: 105,
+ /**
+ * NUM_MULTIPLY
+ */
+ NUM_MULTIPLY: 106,
+ /**
+ * NUM_PLUS
+ */
+ NUM_PLUS: 107,
+ /**
+ * NUM_MINUS
+ */
+ NUM_MINUS: 109,
+ /**
+ * NUM_PERIOD
+ */
+ NUM_PERIOD: 110,
+ /**
+ * NUM_DIVISION
+ */
+ NUM_DIVISION: 111,
+ /**
+ * F1
+ */
+ F1: 112,
+ /**
+ * F2
+ */
+ F2: 113,
+ /**
+ * F3
+ */
+ F3: 114,
+ /**
+ * F4
+ */
+ F4: 115,
+ /**
+ * F5
+ */
+ F5: 116,
+ /**
+ * F6
+ */
+ F6: 117,
+ /**
+ * F7
+ */
+ F7: 118,
+ /**
+ * F8
+ */
+ F8: 119,
+ /**
+ * F9
+ */
+ F9: 120,
+ /**
+ * F10
+ */
+ F10: 121,
+ /**
+ * F11
+ */
+ F11: 122,
+ /**
+ * F12
+ */
+ F12: 123,
+ /**
+ * NUMLOCK
+ */
+ NUMLOCK: 144,
+ /**
+ * SEMICOLON
+ */
+ SEMICOLON: 186,
+ // needs localization
+ /**
+ * DASH
+ */
+ DASH: 189,
+ // needs localization
+ /**
+ * EQUALS
+ */
+ EQUALS: 187,
+ // needs localization
+ /**
+ * COMMA
+ */
+ COMMA: 188,
+ // needs localization
+ /**
+ * PERIOD
+ */
+ PERIOD: 190,
+ // needs localization
+ /**
+ * SLASH
+ */
+ SLASH: 191,
+ // needs localization
+ /**
+ * APOSTROPHE
+ */
+ APOSTROPHE: 192,
+ // needs localization
+ /**
+ * SINGLE_QUOTE
+ */
+ SINGLE_QUOTE: 222,
+ // needs localization
+ /**
+ * OPEN_SQUARE_BRACKET
+ */
+ OPEN_SQUARE_BRACKET: 219,
+ // needs localization
+ /**
+ * BACKSLASH
+ */
+ BACKSLASH: 220,
+ // needs localization
+ /**
+ * CLOSE_SQUARE_BRACKET
+ */
+ CLOSE_SQUARE_BRACKET: 221,
+ // needs localization
+ /**
+ * WIN_KEY
+ */
+ WIN_KEY: 224,
+ /**
+ * MAC_FF_META
+ */
+ MAC_FF_META: 224,
+ // Firefox (Gecko) fires this for the meta key instead of 91
+ /**
+ * WIN_IME
+ */
+ WIN_IME: 229,
+ // ======================== Function ========================
+ /**
+ * whether text and modified key is entered at the same time.
+ */
+ isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) {
+ var keyCode = e.keyCode;
+ if (e.altKey && !e.ctrlKey || e.metaKey ||
+ // Function keys don't generate text
+ keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {
+ return false;
+ }
+
+ // The following keys are quite harmless, even in combination with
+ // CTRL, ALT or SHIFT.
+ switch (keyCode) {
+ case KeyCode.ALT:
+ case KeyCode.CAPS_LOCK:
+ case KeyCode.CONTEXT_MENU:
+ case KeyCode.CTRL:
+ case KeyCode.DOWN:
+ case KeyCode.END:
+ case KeyCode.ESC:
+ case KeyCode.HOME:
+ case KeyCode.INSERT:
+ case KeyCode.LEFT:
+ case KeyCode.MAC_FF_META:
+ case KeyCode.META:
+ case KeyCode.NUMLOCK:
+ case KeyCode.NUM_CENTER:
+ case KeyCode.PAGE_DOWN:
+ case KeyCode.PAGE_UP:
+ case KeyCode.PAUSE:
+ case KeyCode.PRINT_SCREEN:
+ case KeyCode.RIGHT:
+ case KeyCode.SHIFT:
+ case KeyCode.UP:
+ case KeyCode.WIN_KEY:
+ case KeyCode.WIN_KEY_RIGHT:
+ return false;
+ default:
+ return true;
+ }
+ },
+ /**
+ * whether character is entered.
+ */
+ isCharacterKey: function isCharacterKey(keyCode) {
+ if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {
+ return true;
+ }
+ if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {
+ return true;
+ }
+ if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {
+ return true;
+ }
+
+ // Safari sends zero key code for non-latin characters.
+ if (window.navigator.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {
+ return true;
+ }
+ switch (keyCode) {
+ case KeyCode.SPACE:
+ case KeyCode.QUESTION_MARK:
+ case KeyCode.NUM_PLUS:
+ case KeyCode.NUM_MINUS:
+ case KeyCode.NUM_PERIOD:
+ case KeyCode.NUM_DIVISION:
+ case KeyCode.SEMICOLON:
+ case KeyCode.DASH:
+ case KeyCode.EQUALS:
+ case KeyCode.COMMA:
+ case KeyCode.PERIOD:
+ case KeyCode.SLASH:
+ case KeyCode.APOSTROPHE:
+ case KeyCode.SINGLE_QUOTE:
+ case KeyCode.OPEN_SQUARE_BRACKET:
+ case KeyCode.BACKSLASH:
+ case KeyCode.CLOSE_SQUARE_BRACKET:
+ return true;
+ default:
+ return false;
+ }
+ }
+};
+/* harmony default export */ var es_KeyCode = (KeyCode);
+;// CONCATENATED MODULE: ./node_modules/rc-image/node_modules/rc-dialog/node_modules/rc-util/es/pickAttrs.js
+
+var attributes = "accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap";
+var eventsName = "onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError";
+var propList = "".concat(attributes, " ").concat(eventsName).split(/[\s\n]+/);
+
+/* eslint-enable max-len */
+var ariaPrefix = 'aria-';
+var dataPrefix = 'data-';
+function match(key, prefix) {
+ return key.indexOf(prefix) === 0;
+}
+/**
+ * Picker props from exist props with filter
+ * @param props Passed props
+ * @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config
+ */
+function pickAttrs(props) {
+ var ariaOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
+ var mergedConfig;
+ if (ariaOnly === false) {
+ mergedConfig = {
+ aria: true,
+ data: true,
+ attr: true
+ };
+ } else if (ariaOnly === true) {
+ mergedConfig = {
+ aria: true
+ };
+ } else {
+ mergedConfig = (0,objectSpread2/* default */.Z)({}, ariaOnly);
+ }
+ var attrs = {};
+ Object.keys(props).forEach(function (key) {
+ if (
+ // Aria
+ mergedConfig.aria && (key === 'role' || match(key, ariaPrefix)) ||
+ // Data
+ mergedConfig.data && match(key, dataPrefix) ||
+ // Attr
+ mergedConfig.attr && propList.includes(key)) {
+ attrs[key] = props[key];
+ }
+ });
+ return attrs;
+}
+;// CONCATENATED MODULE: ./node_modules/rc-image/node_modules/rc-dialog/es/util.js
+// =============================== Motion ===============================
+function getMotionName(prefixCls, transitionName, animationName) {
+ var motionName = transitionName;
+ if (!motionName && animationName) {
+ motionName = "".concat(prefixCls, "-").concat(animationName);
+ }
+ return motionName;
+}
+
+// =============================== Offset ===============================
+function util_getScroll(w, top) {
+ var ret = w["page".concat(top ? 'Y' : 'X', "Offset")];
+ var method = "scroll".concat(top ? 'Top' : 'Left');
+ if (typeof ret !== 'number') {
+ var d = w.document;
+ ret = d.documentElement[method];
+ if (typeof ret !== 'number') {
+ ret = d.body[method];
+ }
+ }
+ return ret;
+}
+function offset(el) {
+ var rect = el.getBoundingClientRect();
+ var pos = {
+ left: rect.left,
+ top: rect.top
+ };
+ var doc = el.ownerDocument;
+ var w = doc.defaultView || doc.parentWindow;
+ pos.left += util_getScroll(w);
+ pos.top += util_getScroll(w, true);
+ return pos;
+}
+// EXTERNAL MODULE: ./node_modules/rc-motion/es/index.js + 11 modules
+var rc_motion_es = __webpack_require__(62874);
+;// CONCATENATED MODULE: ./node_modules/rc-image/node_modules/rc-dialog/es/Dialog/Content/MemoChildren.js
+
+/* harmony default export */ var MemoChildren = (/*#__PURE__*/react.memo(function (_ref) {
+ var children = _ref.children;
+ return children;
+}, function (_, _ref2) {
+ var shouldUpdate = _ref2.shouldUpdate;
+ return !shouldUpdate;
+}));
+;// CONCATENATED MODULE: ./node_modules/rc-image/node_modules/rc-dialog/es/Dialog/Content/Panel.js
+
+
+
+
+
+var sentinelStyle = {
+ width: 0,
+ height: 0,
+ overflow: 'hidden',
+ outline: 'none'
+};
+var Panel = /*#__PURE__*/react.forwardRef(function (props, ref) {
+ var prefixCls = props.prefixCls,
+ className = props.className,
+ style = props.style,
+ title = props.title,
+ ariaId = props.ariaId,
+ footer = props.footer,
+ closable = props.closable,
+ closeIcon = props.closeIcon,
+ onClose = props.onClose,
+ children = props.children,
+ bodyStyle = props.bodyStyle,
+ bodyProps = props.bodyProps,
+ modalRender = props.modalRender,
+ onMouseDown = props.onMouseDown,
+ onMouseUp = props.onMouseUp,
+ holderRef = props.holderRef,
+ visible = props.visible,
+ forceRender = props.forceRender,
+ width = props.width,
+ height = props.height;
+
+ // ================================= Refs =================================
+ var sentinelStartRef = (0,react.useRef)();
+ var sentinelEndRef = (0,react.useRef)();
+ react.useImperativeHandle(ref, function () {
+ return {
+ focus: function focus() {
+ var _sentinelStartRef$cur;
+ (_sentinelStartRef$cur = sentinelStartRef.current) === null || _sentinelStartRef$cur === void 0 ? void 0 : _sentinelStartRef$cur.focus();
+ },
+ changeActive: function changeActive(next) {
+ var _document = document,
+ activeElement = _document.activeElement;
+ if (next && activeElement === sentinelEndRef.current) {
+ sentinelStartRef.current.focus();
+ } else if (!next && activeElement === sentinelStartRef.current) {
+ sentinelEndRef.current.focus();
+ }
+ }
+ };
+ });
+
+ // ================================ Style =================================
+ var contentStyle = {};
+ if (width !== undefined) {
+ contentStyle.width = width;
+ }
+ if (height !== undefined) {
+ contentStyle.height = height;
+ }
+ // ================================ Render ================================
+ var footerNode;
+ if (footer) {
+ footerNode = /*#__PURE__*/react.createElement("div", {
+ className: "".concat(prefixCls, "-footer")
+ }, footer);
+ }
+ var headerNode;
+ if (title) {
+ headerNode = /*#__PURE__*/react.createElement("div", {
+ className: "".concat(prefixCls, "-header")
+ }, /*#__PURE__*/react.createElement("div", {
+ className: "".concat(prefixCls, "-title"),
+ id: ariaId
+ }, title));
+ }
+ var closer;
+ if (closable) {
+ closer = /*#__PURE__*/react.createElement("button", {
+ type: "button",
+ onClick: onClose,
+ "aria-label": "Close",
+ className: "".concat(prefixCls, "-close")
+ }, closeIcon || /*#__PURE__*/react.createElement("span", {
+ className: "".concat(prefixCls, "-close-x")
+ }));
+ }
+ var content = /*#__PURE__*/react.createElement("div", {
+ className: "".concat(prefixCls, "-content")
+ }, closer, headerNode, /*#__PURE__*/react.createElement("div", (0,esm_extends/* default */.Z)({
+ className: "".concat(prefixCls, "-body"),
+ style: bodyStyle
+ }, bodyProps), children), footerNode);
+ return /*#__PURE__*/react.createElement("div", {
+ key: "dialog-element",
+ role: "dialog",
+ "aria-labelledby": title ? ariaId : null,
+ "aria-modal": "true",
+ ref: holderRef,
+ style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, style), contentStyle),
+ className: classnames_default()(prefixCls, className),
+ onMouseDown: onMouseDown,
+ onMouseUp: onMouseUp
+ }, /*#__PURE__*/react.createElement("div", {
+ tabIndex: 0,
+ ref: sentinelStartRef,
+ style: sentinelStyle,
+ "aria-hidden": "true"
+ }), /*#__PURE__*/react.createElement(MemoChildren, {
+ shouldUpdate: visible || forceRender
+ }, modalRender ? modalRender(content) : content), /*#__PURE__*/react.createElement("div", {
+ tabIndex: 0,
+ ref: sentinelEndRef,
+ style: sentinelStyle,
+ "aria-hidden": "true"
+ }));
+});
+if (false) {}
+/* harmony default export */ var Content_Panel = (Panel);
+;// CONCATENATED MODULE: ./node_modules/rc-image/node_modules/rc-dialog/es/Dialog/Content/index.js
+
+
+
+
+
+
+
+
+
+var Content = /*#__PURE__*/react.forwardRef(function (props, ref) {
+ var prefixCls = props.prefixCls,
+ title = props.title,
+ style = props.style,
+ className = props.className,
+ visible = props.visible,
+ forceRender = props.forceRender,
+ destroyOnClose = props.destroyOnClose,
+ motionName = props.motionName,
+ ariaId = props.ariaId,
+ onVisibleChanged = props.onVisibleChanged,
+ mousePosition = props.mousePosition;
+ var dialogRef = (0,react.useRef)();
+
+ // ============================= Style ==============================
+ var _React$useState = react.useState(),
+ _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
+ transformOrigin = _React$useState2[0],
+ setTransformOrigin = _React$useState2[1];
+ var contentStyle = {};
+ if (transformOrigin) {
+ contentStyle.transformOrigin = transformOrigin;
+ }
+ function onPrepare() {
+ var elementOffset = offset(dialogRef.current);
+ setTransformOrigin(mousePosition ? "".concat(mousePosition.x - elementOffset.left, "px ").concat(mousePosition.y - elementOffset.top, "px") : '');
+ }
+
+ // ============================= Render =============================
+ return /*#__PURE__*/react.createElement(rc_motion_es/* default */.Z, {
+ visible: visible,
+ onVisibleChanged: onVisibleChanged,
+ onAppearPrepare: onPrepare,
+ onEnterPrepare: onPrepare,
+ forceRender: forceRender,
+ motionName: motionName,
+ removeOnLeave: destroyOnClose,
+ ref: dialogRef
+ }, function (_ref, motionRef) {
+ var motionClassName = _ref.className,
+ motionStyle = _ref.style;
+ return /*#__PURE__*/react.createElement(Content_Panel, (0,esm_extends/* default */.Z)({}, props, {
+ ref: ref,
+ title: title,
+ ariaId: ariaId,
+ prefixCls: prefixCls,
+ holderRef: motionRef,
+ style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, motionStyle), style), contentStyle),
+ className: classnames_default()(className, motionClassName)
+ }));
+ });
+});
+Content.displayName = 'Content';
+/* harmony default export */ var Dialog_Content = (Content);
+;// CONCATENATED MODULE: ./node_modules/rc-image/node_modules/rc-dialog/es/Dialog/Mask.js
+
+
+
+
+
+function Mask(props) {
+ var prefixCls = props.prefixCls,
+ style = props.style,
+ visible = props.visible,
+ maskProps = props.maskProps,
+ motionName = props.motionName;
+ return /*#__PURE__*/react.createElement(rc_motion_es/* default */.Z, {
+ key: "mask",
+ visible: visible,
+ motionName: motionName,
+ leavedClassName: "".concat(prefixCls, "-mask-hidden")
+ }, function (_ref, ref) {
+ var motionClassName = _ref.className,
+ motionStyle = _ref.style;
+ return /*#__PURE__*/react.createElement("div", (0,esm_extends/* default */.Z)({
+ ref: ref,
+ style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, motionStyle), style),
+ className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
+ }, maskProps));
+ });
+}
+;// CONCATENATED MODULE: ./node_modules/rc-image/node_modules/rc-dialog/es/Dialog/index.js
+
+
+
+
+
+
+
+
+
+
+
+
+
+function Dialog(props) {
+ var _props$prefixCls = props.prefixCls,
+ prefixCls = _props$prefixCls === void 0 ? 'rc-dialog' : _props$prefixCls,
+ zIndex = props.zIndex,
+ _props$visible = props.visible,
+ visible = _props$visible === void 0 ? false : _props$visible,
+ _props$keyboard = props.keyboard,
+ keyboard = _props$keyboard === void 0 ? true : _props$keyboard,
+ _props$focusTriggerAf = props.focusTriggerAfterClose,
+ focusTriggerAfterClose = _props$focusTriggerAf === void 0 ? true : _props$focusTriggerAf,
+ wrapStyle = props.wrapStyle,
+ wrapClassName = props.wrapClassName,
+ wrapProps = props.wrapProps,
+ onClose = props.onClose,
+ afterOpenChange = props.afterOpenChange,
+ afterClose = props.afterClose,
+ transitionName = props.transitionName,
+ animation = props.animation,
+ _props$closable = props.closable,
+ closable = _props$closable === void 0 ? true : _props$closable,
+ _props$mask = props.mask,
+ mask = _props$mask === void 0 ? true : _props$mask,
+ maskTransitionName = props.maskTransitionName,
+ maskAnimation = props.maskAnimation,
+ _props$maskClosable = props.maskClosable,
+ maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable,
+ maskStyle = props.maskStyle,
+ maskProps = props.maskProps,
+ rootClassName = props.rootClassName;
+ var lastOutSideActiveElementRef = (0,react.useRef)();
+ var wrapperRef = (0,react.useRef)();
+ var contentRef = (0,react.useRef)();
+ var _React$useState = react.useState(visible),
+ _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
+ animatedVisible = _React$useState2[0],
+ setAnimatedVisible = _React$useState2[1];
+
+ // ========================== Init ==========================
+ var ariaId = useId();
+ function saveLastOutSideActiveElementRef() {
+ if (!contains(wrapperRef.current, document.activeElement)) {
+ lastOutSideActiveElementRef.current = document.activeElement;
+ }
+ }
+ function focusDialogContent() {
+ if (!contains(wrapperRef.current, document.activeElement)) {
+ var _contentRef$current;
+ (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 ? void 0 : _contentRef$current.focus();
+ }
+ }
+
+ // ========================= Events =========================
+ function onDialogVisibleChanged(newVisible) {
+ // Try to focus
+ if (newVisible) {
+ focusDialogContent();
+ } else {
+ // Clean up scroll bar & focus back
+ setAnimatedVisible(false);
+ if (mask && lastOutSideActiveElementRef.current && focusTriggerAfterClose) {
+ try {
+ lastOutSideActiveElementRef.current.focus({
+ preventScroll: true
+ });
+ } catch (e) {
+ // Do nothing
+ }
+ lastOutSideActiveElementRef.current = null;
+ }
+
+ // Trigger afterClose only when change visible from true to false
+ if (animatedVisible) {
+ afterClose === null || afterClose === void 0 ? void 0 : afterClose();
+ }
+ }
+ afterOpenChange === null || afterOpenChange === void 0 ? void 0 : afterOpenChange(newVisible);
+ }
+ function onInternalClose(e) {
+ onClose === null || onClose === void 0 ? void 0 : onClose(e);
+ }
+
+ // >>> Content
+ var contentClickRef = (0,react.useRef)(false);
+ var contentTimeoutRef = (0,react.useRef)();
+
+ // We need record content click incase content popup out of dialog
+ var onContentMouseDown = function onContentMouseDown() {
+ clearTimeout(contentTimeoutRef.current);
+ contentClickRef.current = true;
+ };
+ var onContentMouseUp = function onContentMouseUp() {
+ contentTimeoutRef.current = setTimeout(function () {
+ contentClickRef.current = false;
+ });
+ };
+
+ // >>> Wrapper
+ // Close only when element not on dialog
+ var onWrapperClick = null;
+ if (maskClosable) {
+ onWrapperClick = function onWrapperClick(e) {
+ if (contentClickRef.current) {
+ contentClickRef.current = false;
+ } else if (wrapperRef.current === e.target) {
+ onInternalClose(e);
+ }
+ };
+ }
+ function onWrapperKeyDown(e) {
+ if (keyboard && e.keyCode === es_KeyCode.ESC) {
+ e.stopPropagation();
+ onInternalClose(e);
+ return;
+ }
+
+ // keep focus inside dialog
+ if (visible) {
+ if (e.keyCode === es_KeyCode.TAB) {
+ contentRef.current.changeActive(!e.shiftKey);
+ }
+ }
+ }
+
+ // ========================= Effect =========================
+ (0,react.useEffect)(function () {
+ if (visible) {
+ setAnimatedVisible(true);
+ saveLastOutSideActiveElementRef();
+ }
+ }, [visible]);
+
+ // Remove direct should also check the scroll bar update
+ (0,react.useEffect)(function () {
+ return function () {
+ clearTimeout(contentTimeoutRef.current);
+ };
+ }, []);
+
+ // ========================= Render =========================
+ return /*#__PURE__*/react.createElement("div", (0,esm_extends/* default */.Z)({
+ className: classnames_default()("".concat(prefixCls, "-root"), rootClassName)
+ }, pickAttrs(props, {
+ data: true
+ })), /*#__PURE__*/react.createElement(Mask, {
+ prefixCls: prefixCls,
+ visible: mask && visible,
+ motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
+ style: (0,objectSpread2/* default */.Z)({
+ zIndex: zIndex
+ }, maskStyle),
+ maskProps: maskProps
+ }), /*#__PURE__*/react.createElement("div", (0,esm_extends/* default */.Z)({
+ tabIndex: -1,
+ onKeyDown: onWrapperKeyDown,
+ className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
+ ref: wrapperRef,
+ onClick: onWrapperClick,
+ style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
+ zIndex: zIndex
+ }, wrapStyle), {}, {
+ display: !animatedVisible ? 'none' : null
+ })
+ }, wrapProps), /*#__PURE__*/react.createElement(Dialog_Content, (0,esm_extends/* default */.Z)({}, props, {
+ onMouseDown: onContentMouseDown,
+ onMouseUp: onContentMouseUp,
+ ref: contentRef,
+ closable: closable,
+ ariaId: ariaId,
+ prefixCls: prefixCls,
+ visible: visible && animatedVisible,
+ onClose: onInternalClose,
+ onVisibleChanged: onDialogVisibleChanged,
+ motionName: getMotionName(prefixCls, transitionName, animation)
+ }))));
+}
+;// CONCATENATED MODULE: ./node_modules/rc-image/node_modules/rc-dialog/es/DialogWrap.js
+
+
+
+
+
+// fix issue #10656
+/*
+ * getContainer remarks
+ * Custom container should not be return, because in the Portal component, it will remove the
+ * return container element here, if the custom container is the only child of it's component,
+ * like issue #10656, It will has a conflict with removeChild method in react-dom.
+ * So here should add a child (div element) to custom container.
+ * */
+
+var DialogWrap = function DialogWrap(props) {
+ var visible = props.visible,
+ getContainer = props.getContainer,
+ forceRender = props.forceRender,
+ _props$destroyOnClose = props.destroyOnClose,
+ destroyOnClose = _props$destroyOnClose === void 0 ? false : _props$destroyOnClose,
+ _afterClose = props.afterClose;
+ var _React$useState = react.useState(visible),
+ _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
+ animatedVisible = _React$useState2[0],
+ setAnimatedVisible = _React$useState2[1];
+ react.useEffect(function () {
+ if (visible) {
+ setAnimatedVisible(true);
+ }
+ }, [visible]);
+
+ // // 渲染在当前 dom 里;
+ // if (getContainer === false) {
+ // return (
+ //