diff --git a/p__Message__index.9eacd414.async.js b/58078.1b641677.async.js
similarity index 55%
rename from p__Message__index.9eacd414.async.js
rename to 58078.1b641677.async.js
index e9fdbdd0fe..7fa7b7b530 100644
--- a/p__Message__index.9eacd414.async.js
+++ b/58078.1b641677.async.js
@@ -1,5 +1,4 @@
-"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[30067],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[58078,11947,79503,50546,28042,33553,1911,37637,80182,79635,25209],{
/***/ 76897:
/*!*****************************************************************************************************!*\
@@ -7,6 +6,7 @@
\*****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@@ -46,789 +46,204 @@ if (false) {}
/***/ }),
-/***/ 59852:
-/*!*************************************************!*\
- !*** ./src/pages/Message/index.tsx + 2 modules ***!
- \*************************************************/
+/***/ 77578:
+/*!**********************************************************************!*\
+ !*** ./node_modules/_antd@5.9.0@antd/es/_util/getRenderPropValue.js ***!
+ \**********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-// ESM COMPAT FLAG
-__webpack_require__.r(__webpack_exports__);
+"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;
+};
+
+/***/ }),
+
+/***/ 56762:
+/*!************************************************************************!*\
+ !*** ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useForceUpdate.js ***!
+ \************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ Z: function() { return /* binding */ useForceUpdate; }
+/* harmony export */ });
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
+
+function useForceUpdate() {
+ const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
+ return forceUpdate;
+}
+
+/***/ }),
+
+/***/ 38854:
+/*!************************************************************************!*\
+ !*** ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules ***!
+ \************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
- "default": function() { return /* binding */ pages_Message; }
+ Z: function() { return /* binding */ es_dropdown; }
});
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
-var objectSpread2 = __webpack_require__(82242);
-var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
-var toConsumableArray = __webpack_require__(37205);
-var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
-var regeneratorRuntime = __webpack_require__(7557);
-var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
-var asyncToGenerator = __webpack_require__(41498);
-var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
-var slicedToArray = __webpack_require__(79800);
-var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectDestructuringEmpty.js
-var objectDestructuringEmpty = __webpack_require__(70236);
-var objectDestructuringEmpty_default = /*#__PURE__*/__webpack_require__.n(objectDestructuringEmpty);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
+var dropdown = __webpack_require__(91857);
+// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
+var _classnames_2_5_1_classnames = __webpack_require__(92310);
+var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
-var message = __webpack_require__(8591);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
-var spin = __webpack_require__(71418);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/popover/index.js
-var popover = __webpack_require__(60324);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
-var input = __webpack_require__(24650);
+// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
+var EllipsisOutlined = __webpack_require__(78892);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
-var modal = __webpack_require__(43418);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js + 5 modules
-var es_radio = __webpack_require__(5112);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
+var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules
var space = __webpack_require__(81327);
-;// CONCATENATED MODULE: ./src/pages/Message/index.less?modules
-// extracted by mini-css-extract-plugin
-/* harmony default export */ var Messagemodules = ({"flex_box_center":"flex_box_center___Ja97S","flex_space_between":"flex_space_between___RJu4E","flex_box_vertical_center":"flex_box_vertical_center___jhPTF","flex_box_center_end":"flex_box_center_end___ZtezU","flex_box_column":"flex_box_column___MqeI4","wrap":"wrap___k3OOZ","head":"head___h6t3O","empty":"empty___S6QaM","content":"content___sMZPl","left":"left___J41Si","title":"title___GUZvZ","leftBar":"leftBar___u_UUF","li":"li___Hnrra","active":"active___N4MxL","right":"right___eLWWO","rightBar":"rightBar___fMTLo","center":"center____NDzP","tabs":"tabs___jdS5u","cut":"cut___w1Pz_","action":"action___QkQ0f","actActive":"actActive___ESHzD","answers":"answers___dVktP","btn":"btn___BnDvU","disableBtn":"disableBtn___WYJSQ","unsolved":"unsolved___z4SON","box":"box____EpoE","hot":"hot___oUwVX","animation":"animation___YQjk7","text":"text___Si2da"});
-// EXTERNAL MODULE: ./src/utils/fetch.ts
-var fetch = __webpack_require__(85750);
-// EXTERNAL MODULE: ./src/.umi-production/exports.ts
-var _umi_production_exports = __webpack_require__(75936);
-// EXTERNAL MODULE: ./src/utils/util.tsx
-var util = __webpack_require__(66621);
-// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
-var env = __webpack_require__(20817);
-// EXTERNAL MODULE: ./src/components/ui-customization/reset.less?modules
-var resetmodules = __webpack_require__(93611);
-// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.13@dayjs/dayjs.min.js
-var dayjs_min = __webpack_require__(61186);
-var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
-;// CONCATENATED MODULE: ./src/pages/Message/img/pt0.png
-var pt0_namespaceObject = __webpack_require__.p + "static/pt0.03c22983.png";
-// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
-var jsx_runtime = __webpack_require__(37712);
-;// CONCATENATED MODULE: ./src/pages/Message/index.tsx
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-var Message = function Message(_ref) {
- var _rightData$data$, _rightData$data, _rightData$data2;
- objectDestructuringEmpty_default()(_ref);
- var _getJsonFromUrl = (0,util/* getJsonFromUrl */.oP)(),
- id = _getJsonFromUrl.id,
- position = _getJsonFromUrl.position;
- var _useState = (0,_react_17_0_2_react.useState)(true),
- _useState2 = slicedToArray_default()(_useState, 2),
- loading = _useState2[0],
- setLoading = _useState2[1];
- var _useState3 = (0,_react_17_0_2_react.useState)(false),
- _useState4 = slicedToArray_default()(_useState3, 2),
- btnDisable = _useState4[0],
- setBtnDisable = _useState4[1];
- var placementRef = (0,_react_17_0_2_react.useRef)("bottomRight");
- var mouseOutRef = (0,_react_17_0_2_react.useRef)();
- var _useState5 = (0,_react_17_0_2_react.useState)({}),
- _useState6 = slicedToArray_default()(_useState5, 2),
- openPop = _useState6[0],
- setOpenPop = _useState6[1];
- var _useState7 = (0,_react_17_0_2_react.useState)(Number(id)),
- _useState8 = slicedToArray_default()(_useState7, 2),
- active = _useState8[0],
- setActive = _useState8[1];
- var _useState9 = (0,_react_17_0_2_react.useState)([]),
- _useState10 = slicedToArray_default()(_useState9, 2),
- leftList = _useState10[0],
- setLeftList = _useState10[1];
- var _useState11 = (0,_react_17_0_2_react.useState)(1),
- _useState12 = slicedToArray_default()(_useState11, 2),
- barBottomIndex = _useState12[0],
- setBarBottomIndex = _useState12[1];
- var _useState13 = (0,_react_17_0_2_react.useState)(Number(position)),
- _useState14 = slicedToArray_default()(_useState13, 2),
- challengeId = _useState14[0],
- setChallengeId = _useState14[1];
- var saveChallengeId = (0,_react_17_0_2_react.useRef)(Number(position));
- var _useState15 = (0,_react_17_0_2_react.useState)([]),
- _useState16 = slicedToArray_default()(_useState15, 2),
- challengeList = _useState16[0],
- setChallengeList = _useState16[1];
- var _useState17 = (0,_react_17_0_2_react.useState)(false),
- _useState18 = slicedToArray_default()(_useState17, 2),
- load = _useState18[0],
- setLoad = _useState18[1];
- var rightBar = (0,_react_17_0_2_react.useRef)(null);
- var loadData = (0,_react_17_0_2_react.useRef)(1);
- var _useState19 = (0,_react_17_0_2_react.useState)({}),
- _useState20 = slicedToArray_default()(_useState19, 2),
- rightData = _useState20[0],
- setRightData = _useState20[1];
- var _useState21 = (0,_react_17_0_2_react.useState)(''),
- _useState22 = slicedToArray_default()(_useState21, 2),
- value = _useState22[0],
- setValue = _useState22[1];
- var _useState23 = (0,_react_17_0_2_react.useState)(false),
- _useState24 = slicedToArray_default()(_useState23, 2),
- visible = _useState24[0],
- setVisible = _useState24[1];
- var _useState25 = (0,_react_17_0_2_react.useState)(false),
- _useState26 = slicedToArray_default()(_useState25, 2),
- isLoading = _useState26[0],
- setisLoading = _useState26[1];
-
- // const [disSubmit, setdisSubmit] = useState(false)
- // const items = challengeList?.map((item: any) => {
- // return {
- // label:
- // {
- // setChallengeId(k.target.value)
- // getRightData(active, k.target.value)
- // }}>
- // {item.id === 0 ? item.subject : `${item.subject} 实训---第${item?.position}关`}
- //
- // ,
- // key: item.id
- // }
- // })
- (0,_react_17_0_2_react.useEffect)(function () {
- (0,_umi_production_exports.getDvaApp)()._store.dispatch({
- type: 'globalSetting/footerToggle',
- payload: false
- });
- return function () {
- (0,_umi_production_exports.getDvaApp)()._store.dispatch({
- type: 'globalSetting/footerToggle',
- payload: true
- });
- };
- }, []);
- (0,_react_17_0_2_react.useEffect)(function () {
- getData();
- }, []);
- (0,_react_17_0_2_react.useEffect)(function () {
- rightBar.current.scrollTop = rightBar.current.scrollHeight;
- }, [barBottomIndex]);
- (0,_react_17_0_2_react.useEffect)(function () {
- var dom = document.getElementById('wechat_QR_code_ids');
- dom.classList.add('hide');
- return function () {
- dom.classList.remove('hide');
- };
- }, []);
- var getData = /*#__PURE__*/function () {
- var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
- var res, result, _result$data, findId;
- return regeneratorRuntime_default()().wrap(function _callee$(_context) {
- while (1) switch (_context.prev = _context.next) {
- case 0:
- _context.next = 2;
- return (0,fetch/* default */.ZP)("/api/chats.json", {
- method: 'post',
- body: {
- to_user_id: id
- }
- });
- case 2:
- res = _context.sent;
- if (!((res === null || res === void 0 ? void 0 : res.status) === 0)) {
- _context.next = 8;
- break;
- }
- _context.next = 6;
- return (0,fetch/* default */.ZP)("/api/chats.json", {
- method: 'get',
- params: {
- to_user_id: id,
- challenge_id: Number(position) || ''
- }
- });
- case 6:
- result = _context.sent;
- if (result !== null && result !== void 0 && result.data) {
- setLeftList((result === null || result === void 0 ? void 0 : result.data) || []);
- findId = result === null || result === void 0 || (_result$data = result.data) === null || _result$data === void 0 || (_result$data = _result$data.find(function (e) {
- return e.to_user_id === Number(id);
- })) === null || _result$data === void 0 ? void 0 : _result$data.id;
- setActive(findId);
- getChallengeData(findId);
- getRightData(findId, position);
- }
- case 8:
- case "end":
- return _context.stop();
- }
- }, _callee);
- }));
- return function getData() {
- return _ref2.apply(this, arguments);
- };
- }();
- var getChallengeData = /*#__PURE__*/function () {
- var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(itemId) {
- var res;
- return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
- while (1) switch (_context2.prev = _context2.next) {
- case 0:
- _context2.next = 2;
- return (0,fetch/* default */.ZP)("/api/chats/challenge_list.json", {
- method: 'get',
- params: {
- id: itemId,
- challenge_id: challengeId || ''
- }
- });
- case 2:
- res = _context2.sent;
- if (res !== null && res !== void 0 && res.challenges) {
- setChallengeList([{
- id: 0,
- subject: "全部"
- }].concat(toConsumableArray_default()(res.challenges)) || []);
- }
- case 4:
- case "end":
- return _context2.stop();
- }
- }, _callee2);
- }));
- return function getChallengeData(_x) {
- return _ref3.apply(this, arguments);
- };
- }();
- var getLeftData = /*#__PURE__*/function () {
- var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(itemId, challenge_id) {
- var res;
- return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
- while (1) switch (_context3.prev = _context3.next) {
- case 0:
- _context3.next = 2;
- return (0,fetch/* default */.ZP)("/api/chats.json", {
- method: 'get',
- params: {
- to_user_id: itemId,
- challenge_id: challenge_id || ''
- }
- });
- case 2:
- res = _context3.sent;
- if (res !== null && res !== void 0 && res.data) {
- setLeftList((res === null || res === void 0 ? void 0 : res.data) || []);
- }
- case 4:
- case "end":
- return _context3.stop();
- }
- }, _callee3);
- }));
- return function getLeftData(_x2, _x3) {
- return _ref4.apply(this, arguments);
- };
- }();
- var getRightData = /*#__PURE__*/function () {
- var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(itemId, challenge_id, isBottom) {
- var res, _leftList$find, findId;
- return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
- while (1) switch (_context4.prev = _context4.next) {
- case 0:
- setLoading(true);
- _context4.next = 3;
- return (0,fetch/* default */.ZP)("/api/chats/".concat(itemId, ".json"), {
- method: 'get',
- params: {
- challenge_id: Number(challenge_id) || ''
- }
- });
- case 3:
- res = _context4.sent;
- if (res !== null && res !== void 0 && res.data) {
- setRightData(objectSpread2_default()({}, res) || {});
- setLoad(true);
- findId = leftList === null || leftList === void 0 || (_leftList$find = leftList.find(function (e) {
- return e.id === itemId;
- })) === null || _leftList$find === void 0 ? void 0 : _leftList$find.to_user_id; //在这里改变传参:
- if (window.location.host === "gpt.educoder.net") {
- _umi_production_exports.history.replace("/chatgpt?id=0&position=0");
- } else {
- _umi_production_exports.history.replace("/chatgpt?id=".concat(findId || id, "&position=").concat(challenge_id));
- }
- if (isBottom) {
- setBarBottomIndex(Math.random());
- getLeftData(findId, challenge_id);
- }
- }
- setLoading(false);
- case 6:
- case "end":
- return _context4.stop();
- }
- }, _callee4);
- }));
- return function getRightData(_x4, _x5, _x6) {
- return _ref5.apply(this, arguments);
- };
- }();
- var handleChange = function handleChange(e) {
- setValue(e.target.value);
- // 判断是否为纯空格
- if (e.target.value.trim().length === 0) {
- return;
- }
- };
- var handleLeftChange = function handleLeftChange(itemId) {
- loadData.current = loadData.current + 1;
- setActive(itemId);
- setChallengeId(0);
- setValue('');
- setBtnDisable(false);
- getRightData(itemId, 0);
- getChallengeData(itemId);
- };
- // 点击发送触发
- var handleSummit = /*#__PURE__*/function () {
- var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
- var _newRightData$data;
- var now, newRightData, index, res;
- return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
- while (1) switch (_context5.prev = _context5.next) {
- case 0:
- if (!(value.trim().length === 0)) {
- _context5.next = 3;
- break;
- }
- message/* default */.ZP.error("不能输入纯空格");
- return _context5.abrupt("return");
- case 3:
- if (!btnDisable) {
- _context5.next = 5;
- break;
- }
- return _context5.abrupt("return");
- case 5:
- if (value) {
- _context5.next = 8;
- break;
- }
- message/* default */.ZP.warning('请输入你要问的问题');
- return _context5.abrupt("return");
- case 8:
- // setBtnDisable(true);
- now = dayjs_min_default()().format('YYYY-MM-DDTHH:mm:ss.SSSZ');
- newRightData = JSON.parse(JSON.stringify(rightData));
- newRightData === null || newRightData === void 0 || (_newRightData$data = newRightData.data) === null || _newRightData$data === void 0 || _newRightData$data.push({
- id: 0,
- updated_at: now,
- question: value,
- answer: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- className: Messagemodules.animation,
- children: "\u8001\u5E08\u6B63\u5728\u56DE\u7B54\u4E2D\uFF0C\u8BF7\u7A0D\u540E"
- })
- });
- setRightData(newRightData);
- setBarBottomIndex(barBottomIndex + 1);
- setValue('');
- loadData.current = loadData.current + 1;
- index = loadData.current; // getRightData(active, challengeId, true)
- // // 判断是否为纯空格
- // if (value.trim().length === 0) {
- // message.error("不能输入纯空格")
- // return
- // }
- setisLoading(true);
- _context5.next = 19;
- return (0,fetch/* default */.ZP)("/api/chats/get_answer", {
- method: 'post',
- body: {
- chat_id: active,
- to_user_id: id,
- question: value,
- challenge_id: challengeId || '',
- time: now
- }
- });
- case 19:
- res = _context5.sent;
- if (!(index !== loadData.current)) {
- _context5.next = 22;
- break;
- }
- return _context5.abrupt("return");
- case 22:
- if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
- setisLoading(false);
- // setdisSubmit(false)
- getRightData(active, challengeId, true);
- } else {
- // setdisSubmit(false)
- setisLoading(false);
- }
- // setBtnDisable(false)
- case 23:
- case "end":
- return _context5.stop();
- }
- }, _callee5);
- }));
- return function handleSummit() {
- return _ref6.apply(this, arguments);
- };
- }();
- var handleOk = function handleOk() {
- getRightData(active, challengeId);
- getLeftData(id, challengeId);
- setVisible(false);
- };
- var handleAction = /*#__PURE__*/function () {
- var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6(itemId, satisfied) {
- var content,
- res,
- _args6 = arguments;
- return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
- while (1) switch (_context6.prev = _context6.next) {
- case 0:
- content = _args6.length > 2 && _args6[2] !== undefined ? _args6[2] : '';
- setLoading(true);
- _context6.next = 4;
- return (0,fetch/* default */.ZP)("/api/chats/praise.json", {
- method: 'post',
- body: {
- id: itemId,
- satisfied: satisfied,
- content: content
- }
- });
- case 4:
- res = _context6.sent;
- if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
- getRightData(active, challengeId);
- }
- case 6:
- case "end":
- return _context6.stop();
- }
- }, _callee6);
- }));
- return function handleAction(_x7, _x8) {
- return _ref7.apply(this, arguments);
- };
- }();
- var handleKeyDown = function handleKeyDown(event) {
- if (event.shiftKey && event.keyCode === 13) {
- // 判断是否同时按下了Shift和Enter键
- return;
- }
- if (event.keyCode === 13) {
- event.preventDefault(); // 禁止换行操作
- handleSummit();
- }
- };
- var magList = ["\u8BF7".concat(rightData === null || rightData === void 0 ? void 0 : rightData.user_name, "\u8001\u5E08\u5C1D\u8BD5\u518D\u56DE\u7B54\u4E00\u6B21"), '可能启用了机器人,请老师亲自回答'];
- return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: Messagemodules.wrap,
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: Messagemodules.head,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
- children: "\u5B9E\u8BAD >"
- }), "\u6559\u5B66\u8F85\u5BFC\uFF08beta\u7248\u672C\uFF09"]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: Messagemodules.content,
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: Messagemodules.left,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- className: Messagemodules.title,
- children: "\u95EE\u7B54\u5217\u8868"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- className: Messagemodules.leftBar,
- children: leftList.map(function (e) {
- return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- onClick: function onClick() {
- return handleLeftChange(e.id);
- },
- className: "".concat(Messagemodules.li, " ").concat(e.id === active ? Messagemodules.active : ''),
- children: [e !== null && e !== void 0 && e.avatar ? /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
- src: "".concat(env/* default */.Z.IMG_SERVER, "/images/").concat(e === null || e === void 0 ? void 0 : e.avatar)
- }) : /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
- src: pt0_namespaceObject
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
- title: e.user_name,
- children: e.user_name
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
- children: e.time
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- children: e.last_message
- })]
- })]
- }, e.id);
- })
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: Messagemodules.right,
- children: [load && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- className: Messagemodules.title,
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
- className: Messagemodules.center,
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
- children: ["\u4E0E", rightData === null || rightData === void 0 ? void 0 : rightData.user_name, "\u8001\u5E08\u6C9F\u901A\u4E2D\u2026"]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: Messagemodules.tabs,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-lianjie3"
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
- children: ["\u5F53\u524D\u5BF9\u8BDD\u5173\u8054\uFF1A", rightData !== null && rightData !== void 0 && rightData.challenge_name ? "".concat(rightData === null || rightData === void 0 || (_rightData$data$ = rightData.data[0]) === null || _rightData$data$ === void 0 || (_rightData$data$ = _rightData$data$.shixun) === null || _rightData$data$ === void 0 ? void 0 : _rightData$data$.name, " \u5B9E\u8BAD---\u7B2C").concat(rightData === null || rightData === void 0 ? void 0 : rightData.challenge_position, "\u5173") : '全部']
- }), !btnDisable && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
- onClick: function onClick() {
- saveChallengeId.current = challengeId;
- setVisible(true);
- },
- className: Messagemodules.cut,
- children: "\u5207\u6362"
- })]
- })]
- })
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- className: Messagemodules.rightBar,
- ref: rightBar,
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)(spin/* default */.Z, {
- spinning: loading,
- children: [!(rightData !== null && rightData !== void 0 && (_rightData$data = rightData.data) !== null && _rightData$data !== void 0 && _rightData$data.length) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- className: Messagemodules.empty
- }), rightData === null || rightData === void 0 || (_rightData$data2 = rightData.data) === null || _rightData$data2 === void 0 ? void 0 : _rightData$data2.map(function (e, i) {
- var _e$shixun, _e$shixun2, _e$challenge;
- return /*#__PURE__*/(0,jsx_runtime.jsxs)(_react_17_0_2_react.Fragment, {
- children: [!!e.question && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: Messagemodules.li,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
- src: "".concat(env/* default */.Z.IMG_SERVER, "/images/").concat(rightData === null || rightData === void 0 ? void 0 : rightData.my_avatar)
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
- children: rightData.my_user_name
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
- children: dayjs_min_default()(e.updated_at).format("YYYY-MM-DD HH:mm")
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("pre", {
- children: e.question
- })]
- })]
- }), !!e.answer && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- style: i === 0 ? {
- borderTop: 0
- } : {},
- className: "".concat(Messagemodules.li, " ").concat(Messagemodules.active),
- children: [rightData !== null && rightData !== void 0 && rightData.avatar ? /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
- src: "".concat(env/* default */.Z.IMG_SERVER, "/images/").concat(rightData === null || rightData === void 0 ? void 0 : rightData.avatar)
- }) : /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
- src: pt0_namespaceObject
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- style: {
- display: "flex"
- },
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
- style: {
- marginRight: "20px"
- },
- children: rightData.user_name
- }), (_e$shixun = e.shixun) !== null && _e$shixun !== void 0 && _e$shixun.name ? /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
- style: {
- display: "flex",
- alignItems: "center"
- },
- children: ["\u5F53\u524D\u5BF9\u8BDD\u5173\u8054\uFF1A", (_e$shixun2 = e.shixun) === null || _e$shixun2 === void 0 ? void 0 : _e$shixun2.name, " \u5B9E\u8BAD---\u7B2C", (_e$challenge = e.challenge) === null || _e$challenge === void 0 ? void 0 : _e$challenge.position, "\u5173"]
- }) : /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
- style: {
- display: "flex",
- alignItems: "center"
- },
- children: "\u5F53\u524D\u5BF9\u8BDD\u5173\u8054\uFF1A\u5168\u90E8"
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
- children: dayjs_min_default()(e.updated_at).format("YYYY-MM-DD HH:mm")
- })]
- }), typeof e.answer === "string" ? /*#__PURE__*/(0,jsx_runtime.jsx)("pre", {
- children: e.answer
- }) : e.answer, !!e.question && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: Messagemodules.action,
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
- onClick: function onClick() {
- handleAction(e.id, e.satisfied === 1 ? -1 : 1);
- },
- className: "mr30 ".concat(e.satisfied === 1 ? Messagemodules.actActive : ''),
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-yijiejue"
- }), "\u5DF2\u89E3\u51B3"]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(popover/* default */.Z, {
- autoAdjustOverflow: false,
- destroyTooltipOnHide: true,
- open: openPop[i],
- getPopupContainer: function getPopupContainer(trigger) {
- return trigger;
- },
- placement: placementRef.current,
- content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: Messagemodules.box,
- onMouseLeave: function onMouseLeave(e) {
- clearTimeout(mouseOutRef.current);
- openPop[i] = false;
- setOpenPop(objectSpread2_default()({}, openPop));
- },
- onMouseOver: function onMouseOver() {
- clearTimeout(mouseOutRef.current);
- },
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
- children: "\u62B1\u6B49\u8BA9\u4F60\u5931\u671B\u4E86\uFF0C\u8BF7\u7EE7\u7EED\u5C1D\u8BD5\uFF1A"
- }), magList.map(function (p, n) {
- var isTrue = p === e.content;
- return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- // style={n === 0 ? { width: p.length * 17 } : {}}
- onClick: function onClick() {
- handleAction(e.id, isTrue ? -1 : 0, isTrue ? '' : p);
- },
- className: isTrue ? Messagemodules.hot : '',
- children: p
- }, p);
- })]
- }),
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
- onMouseOver: function onMouseOver(e) {
- clearTimeout(mouseOutRef.current);
- if (window.innerHeight - e.target.getBoundingClientRect().top < 350) {
- placementRef.current = "topRight";
- } else {
- placementRef.current = "bottomRight";
- }
- openPop = {};
- openPop[i] = true;
- setOpenPop(objectSpread2_default()({}, openPop));
- },
- onMouseOut: function onMouseOut(e) {
- mouseOutRef.current = setTimeout(function () {
- clearTimeout(mouseOutRef.current);
- openPop[i] = false;
- setOpenPop(objectSpread2_default()({}, openPop));
- }, 800);
- },
- className: "".concat(Messagemodules.unsolved, " ").concat(e.satisfied === 0 ? Messagemodules.actActive : ''),
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-weijiejuezhengchang"
- }), "\u672A\u89E3\u51B3"]
- })
- })]
- })]
- })]
- })]
- }, e.id);
- })]
- })
- }), load && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: Messagemodules.answers,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.TextArea, {
- // onKeyDown={handleKeyDown}
- value: value,
- onChange: handleChange
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
- loading: isLoading,
- onClick: handleSummit,
- className: Messagemodules.btn,
- children: "\u53D1\u9001"
- })]
- })]
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
- centered: true,
- keyboard: false,
- closable: false,
- destroyOnClose: true,
- onCancel: function onCancel() {
- setChallengeId(saveChallengeId.current);
- setVisible(false);
- },
- onOk: handleOk,
- open: visible,
- wrapClassName: resetmodules/* default */.Z.CustomCss,
- title: "\u66F4\u6362\u5173\u8054",
- width: "666px",
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default.Group */.ZP.Group, {
- value: challengeId,
- onChange: function onChange(k) {
- return setChallengeId(k.target.value);
- },
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(space/* default */.Z, {
- direction: "vertical",
- children: challengeList === null || challengeList === void 0 ? void 0 : challengeList.map(function (e) {
- var _e$shixun3;
- return /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
- value: e.id,
- children: e.id === 0 ? e.subject : "".concat((_e$shixun3 = e.shixun) === null || _e$shixun3 === void 0 ? void 0 : _e$shixun3.name, " \u5B9E\u8BAD---\u7B2C").concat(e === null || e === void 0 ? void 0 : e.challenge_position, "\u5173")
- }, e.id);
- })
- })
- })
- })
- })]
- });
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
+var Compact = __webpack_require__(33234);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/style/index.js + 1 modules
+var style = __webpack_require__(47211);
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown-button.js
+"use client";
+
+var __rest = undefined && undefined.__rest || function (s, e) {
+ var t = {};
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
+ }
+ return t;
};
-/* harmony default export */ var pages_Message = (Message);
-/***/ }),
-/***/ 93611:
-/*!************************************************************!*\
- !*** ./src/components/ui-customization/reset.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___vG4eV","flex_space_between":"flex_space_between___qVVxe","flex_box_vertical_center":"flex_box_vertical_center___P8Z8s","flex_box_center_end":"flex_box_center_end___VMme3","flex_box_column":"flex_box_column___VMHwm","dropdownmenus":"dropdownmenus___oVzoj","popupClassNames":"popupClassNames___OcZq7","selectdown":"selectdown___mmcA8"});
-/***/ }),
-/***/ 77578:
-/*!**********************************************************************!*\
- !*** ./node_modules/_antd@5.9.0@antd/es/_util/getRenderPropValue.js ***!
- \**********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ Z: function() { return /* binding */ getRenderPropValue; }
-/* harmony export */ });
-const getRenderPropValue = propValue => {
- if (!propValue) {
- return null;
+
+
+
+const DropdownButton = props => {
+ const {
+ getPopupContainer: getContextPopupContainer,
+ getPrefixCls,
+ direction
+ } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
+ const {
+ prefixCls: customizePrefixCls,
+ type = 'default',
+ danger,
+ disabled,
+ loading,
+ onClick,
+ htmlType,
+ children,
+ className,
+ menu,
+ arrow,
+ autoFocus,
+ overlay,
+ trigger,
+ align,
+ open,
+ onOpenChange,
+ placement,
+ getPopupContainer,
+ href,
+ icon = /*#__PURE__*/_react_17_0_2_react.createElement(EllipsisOutlined/* default */.Z, null),
+ title,
+ buttonsRender = buttons => buttons,
+ mouseEnterDelay,
+ mouseLeaveDelay,
+ overlayClassName,
+ overlayStyle,
+ destroyPopupOnHide,
+ dropdownRender
+ } = props,
+ restProps = __rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]);
+ const prefixCls = getPrefixCls('dropdown', customizePrefixCls);
+ const buttonPrefixCls = `${prefixCls}-button`;
+ const [wrapSSR, hashId] = (0,style/* default */.Z)(prefixCls);
+ const dropdownProps = {
+ menu,
+ arrow,
+ autoFocus,
+ align,
+ disabled,
+ trigger: disabled ? [] : trigger,
+ onOpenChange,
+ getPopupContainer: getPopupContainer || getContextPopupContainer,
+ mouseEnterDelay,
+ mouseLeaveDelay,
+ overlayClassName,
+ overlayStyle,
+ destroyPopupOnHide,
+ dropdownRender
+ };
+ const {
+ compactSize,
+ compactItemClassnames
+ } = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
+ const classes = _classnames_2_5_1_classnames_default()(buttonPrefixCls, compactItemClassnames, className, hashId);
+ if ('overlay' in props) {
+ dropdownProps.overlay = overlay;
}
- if (typeof propValue === 'function') {
- return propValue();
+ if ('open' in props) {
+ dropdownProps.open = open;
}
- return propValue;
+ if ('placement' in props) {
+ dropdownProps.placement = placement;
+ } else {
+ dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight';
+ }
+ const leftButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
+ type: type,
+ danger: danger,
+ disabled: disabled,
+ loading: loading,
+ onClick: onClick,
+ htmlType: htmlType,
+ href: href,
+ title: title
+ }, children);
+ const rightButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
+ type: type,
+ danger: danger,
+ icon: icon
+ });
+ const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
+ return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(space/* default */.Z.Compact, Object.assign({
+ className: classes,
+ size: compactSize,
+ block: true
+ }, restProps), leftButtonToRender, /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({}, dropdownProps), rightButtonToRender)));
};
+DropdownButton.__ANT_BUTTON = true;
+/* harmony default export */ var dropdown_button = (DropdownButton);
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js
+"use client";
+
+
+
+const Dropdown = dropdown/* default */.Z;
+Dropdown.Button = dropdown_button;
+/* harmony default export */ var es_dropdown = (Dropdown);
/***/ }),
@@ -838,6 +253,7 @@ const getRenderPropValue = propValue => {
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@@ -1237,6 +653,7 @@ input_Input.Password = input_Password;
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
@@ -1318,6 +735,7 @@ const PurePanel = props => {
\***********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+"use strict";
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
@@ -1409,6 +827,7 @@ Popover._InternalPanelDoNotUseOrYouWillBeFired = _PurePanel__WEBPACK_IMPORTED_MO
\*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+"use strict";
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style */ 17313);
/* harmony import */ var _style_motion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../style/motion */ 29878);
/* harmony import */ var _style_placementArrow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../style/placementArrow */ 19447);
@@ -1573,12 +992,232 @@ const genWireframeStyle = token => {
/***/ }),
+/***/ 57809:
+/*!**********************************************************!*\
+ !*** ./node_modules/_antd@5.9.0@antd/es/select/index.js ***!
+ \**********************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var rc_select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-select */ 77861);
+/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/omit */ 55405);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
+/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/PurePanel */ 53487);
+/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/motion */ 62892);
+/* harmony import */ var _util_statusUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/statusUtils */ 19080);
+/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 36355);
+/* harmony import */ var _config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/DisabledContext */ 1684);
+/* harmony import */ var _config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/defaultRenderEmpty */ 93891);
+/* harmony import */ var _config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/hooks/useSize */ 19716);
+/* harmony import */ var _form_context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../form/context */ 32441);
+/* harmony import */ var _space_Compact__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../space/Compact */ 33234);
+/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 14154);
+/* harmony import */ var _useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./useBuiltinPlacements */ 58582);
+/* harmony import */ var _useShowArrow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useShowArrow */ 84443);
+/* harmony import */ var _utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/iconUtil */ 66339);
+"use client";
+
+var __rest = undefined && undefined.__rest || function (s, e) {
+ var t = {};
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
+ }
+ return t;
+};
+// TODO: 4.0 - codemod should help to change `filterOption` to support node props.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
+const InternalSelect = (_a, ref) => {
+ var _b;
+ var {
+ prefixCls: customizePrefixCls,
+ bordered = true,
+ className,
+ rootClassName,
+ getPopupContainer,
+ popupClassName,
+ dropdownClassName,
+ listHeight = 256,
+ placement,
+ listItemHeight = 24,
+ size: customizeSize,
+ disabled: customDisabled,
+ notFoundContent,
+ status: customStatus,
+ builtinPlacements,
+ dropdownMatchSelectWidth,
+ popupMatchSelectWidth,
+ direction: propDirection,
+ style,
+ allowClear
+ } = _a,
+ props = __rest(_a, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear"]);
+ const {
+ getPopupContainer: getContextPopupContainer,
+ getPrefixCls,
+ renderEmpty,
+ direction: contextDirection,
+ virtual,
+ popupMatchSelectWidth: contextPopupMatchSelectWidth,
+ popupOverflow,
+ select
+ } = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* .ConfigContext */ .E_);
+ const prefixCls = getPrefixCls('select', customizePrefixCls);
+ const rootPrefixCls = getPrefixCls();
+ const direction = propDirection !== null && propDirection !== void 0 ? propDirection : contextDirection;
+ const {
+ compactSize,
+ compactItemClassnames
+ } = (0,_space_Compact__WEBPACK_IMPORTED_MODULE_4__/* .useCompactItemContext */ .ri)(prefixCls, direction);
+ const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(prefixCls);
+ const mode = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
+ const {
+ mode: m
+ } = props;
+ if (m === 'combobox') {
+ return undefined;
+ }
+ if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) {
+ return 'combobox';
+ }
+ return m;
+ }, [props.mode]);
+ const isMultiple = mode === 'multiple' || mode === 'tags';
+ const showSuffixIcon = (0,_useShowArrow__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props.suffixIcon, props.showArrow);
+ const mergedPopupMatchSelectWidth = (_b = popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth) !== null && _b !== void 0 ? _b : contextPopupMatchSelectWidth;
+ // ===================== Form Status =====================
+ const {
+ status: contextStatus,
+ hasFeedback,
+ isFormItemInput,
+ feedbackIcon
+ } = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_form_context__WEBPACK_IMPORTED_MODULE_7__/* .FormItemInputContext */ .aM);
+ const mergedStatus = (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getMergedStatus */ .F)(contextStatus, customStatus);
+ // ===================== Empty =====================
+ let mergedNotFound;
+ if (notFoundContent !== undefined) {
+ mergedNotFound = notFoundContent;
+ } else if (mode === 'combobox') {
+ mergedNotFound = null;
+ } else {
+ mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Select')) || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
+ componentName: "Select"
+ });
+ }
+ // ===================== Icons =====================
+ const {
+ suffixIcon,
+ itemIcon,
+ removeIcon,
+ clearIcon
+ } = (0,_utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(Object.assign(Object.assign({}, props), {
+ multiple: isMultiple,
+ hasFeedback,
+ feedbackIcon,
+ showSuffixIcon,
+ prefixCls,
+ showArrow: props.showArrow,
+ componentName: 'Select'
+ }));
+ const mergedAllowClear = allowClear === true ? {
+ clearIcon
+ } : allowClear;
+ const selectProps = (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)(props, ['suffixIcon', 'itemIcon']);
+ const rcSelectRtlDropdownClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()(popupClassName || dropdownClassName, {
+ [`${prefixCls}-dropdown-${direction}`]: direction === 'rtl'
+ }, rootClassName, hashId);
+ const mergedSize = (0,_config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(ctx => {
+ var _a;
+ return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
+ });
+ // ===================== Disabled =====================
+ const disabled = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z);
+ const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
+ const mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
+ [`${prefixCls}-lg`]: mergedSize === 'large',
+ [`${prefixCls}-sm`]: mergedSize === 'small',
+ [`${prefixCls}-rtl`]: direction === 'rtl',
+ [`${prefixCls}-borderless`]: !bordered,
+ [`${prefixCls}-in-form-item`]: isFormItemInput
+ }, (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getStatusClassNames */ .Z)(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, select === null || select === void 0 ? void 0 : select.className, className, rootClassName, hashId);
+ // ===================== Placement =====================
+ const memoPlacement = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
+ if (placement !== undefined) {
+ return placement;
+ }
+ return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
+ }, [placement, direction]);
+ const mergedBuiltinPlacements = (0,_useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(builtinPlacements, popupOverflow);
+ // ====================== Warning ======================
+ if (false) {}
+ // ====================== Render =======================
+ return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_select__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP, Object.assign({
+ ref: ref,
+ virtual: virtual,
+ showSearch: select === null || select === void 0 ? void 0 : select.showSearch
+ }, selectProps, {
+ style: Object.assign(Object.assign({}, select === null || select === void 0 ? void 0 : select.style), style),
+ dropdownMatchSelectWidth: mergedPopupMatchSelectWidth,
+ builtinPlacements: mergedBuiltinPlacements,
+ transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_15__/* .getTransitionName */ .m)(rootPrefixCls, 'slide-up', props.transitionName),
+ listHeight: listHeight,
+ listItemHeight: listItemHeight,
+ mode: mode,
+ prefixCls: prefixCls,
+ placement: memoPlacement,
+ direction: direction,
+ suffixIcon: suffixIcon,
+ menuItemSelectedIcon: itemIcon,
+ removeIcon: removeIcon,
+ allowClear: mergedAllowClear,
+ notFoundContent: mergedNotFound,
+ className: mergedClassName,
+ getPopupContainer: getPopupContainer || getContextPopupContainer,
+ dropdownClassName: rcSelectRtlDropdownClassName,
+ disabled: mergedDisabled
+ })));
+};
+if (false) {}
+const Select = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(InternalSelect);
+// We don't care debug panel
+/* istanbul ignore next */
+const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(Select);
+Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
+Select.Option = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .Option */ .Wx;
+Select.OptGroup = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .OptGroup */ .Xo;
+Select._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
+if (false) {}
+/* harmony default export */ __webpack_exports__["default"] = (Select);
+
+/***/ }),
+
/***/ 81327:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@@ -1751,6 +1390,318 @@ const CompoundedSpace = Space;
CompoundedSpace.Compact = Compact/* default */.ZP;
/* harmony default export */ var space = (CompoundedSpace);
+/***/ }),
+
+/***/ 25769:
+/*!**************************************************************************!*\
+ !*** ./node_modules/_copy-to-clipboard@3.3.3@copy-to-clipboard/index.js ***!
+ \**************************************************************************/
+/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+var deselectCurrent = __webpack_require__(/*! toggle-selection */ 98040);
+
+var clipboardToIE11Formatting = {
+ "text/plain": "Text",
+ "text/html": "Url",
+ "default": "Text"
+}
+
+var defaultMessage = "Copy to clipboard: #{key}, Enter";
+
+function format(message) {
+ var copyKey = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
+ return message.replace(/#{\s*key\s*}/g, copyKey);
+}
+
+function copy(text, options) {
+ var debug,
+ message,
+ reselectPrevious,
+ range,
+ selection,
+ mark,
+ success = false;
+ if (!options) {
+ options = {};
+ }
+ debug = options.debug || false;
+ try {
+ reselectPrevious = deselectCurrent();
+
+ range = document.createRange();
+ selection = document.getSelection();
+
+ mark = document.createElement("span");
+ mark.textContent = text;
+ // avoid screen readers from reading out loud the text
+ mark.ariaHidden = "true"
+ // reset user styles for span element
+ mark.style.all = "unset";
+ // prevents scrolling to the end of the page
+ mark.style.position = "fixed";
+ mark.style.top = 0;
+ mark.style.clip = "rect(0, 0, 0, 0)";
+ // used to preserve spaces and line breaks
+ mark.style.whiteSpace = "pre";
+ // do not inherit user-select (it may be `none`)
+ mark.style.webkitUserSelect = "text";
+ mark.style.MozUserSelect = "text";
+ mark.style.msUserSelect = "text";
+ mark.style.userSelect = "text";
+ mark.addEventListener("copy", function(e) {
+ e.stopPropagation();
+ if (options.format) {
+ e.preventDefault();
+ if (typeof e.clipboardData === "undefined") { // IE 11
+ debug && console.warn("unable to use e.clipboardData");
+ debug && console.warn("trying IE specific stuff");
+ window.clipboardData.clearData();
+ var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting["default"]
+ window.clipboardData.setData(format, text);
+ } else { // all other browsers
+ e.clipboardData.clearData();
+ e.clipboardData.setData(options.format, text);
+ }
+ }
+ if (options.onCopy) {
+ e.preventDefault();
+ options.onCopy(e.clipboardData);
+ }
+ });
+
+ document.body.appendChild(mark);
+
+ range.selectNodeContents(mark);
+ selection.addRange(range);
+
+ var successful = document.execCommand("copy");
+ if (!successful) {
+ throw new Error("copy command was unsuccessful");
+ }
+ success = true;
+ } catch (err) {
+ debug && console.error("unable to copy using execCommand: ", err);
+ debug && console.warn("trying IE specific stuff");
+ try {
+ window.clipboardData.setData(options.format || "text", text);
+ options.onCopy && options.onCopy(window.clipboardData);
+ success = true;
+ } catch (err) {
+ debug && console.error("unable to copy using clipboardData: ", err);
+ debug && console.error("falling back to prompt");
+ message = format("message" in options ? options.message : defaultMessage);
+ window.prompt(message, text);
+ }
+ } finally {
+ if (selection) {
+ if (typeof selection.removeRange == "function") {
+ selection.removeRange(range);
+ } else {
+ selection.removeAllRanges();
+ }
+ }
+
+ if (mark) {
+ document.body.removeChild(mark);
+ }
+ reselectPrevious();
+ }
+
+ return success;
+}
+
+module.exports = copy;
+
+
+/***/ }),
+
+/***/ 83145:
+/*!**********************************************************************************************!*\
+ !*** ./node_modules/_react-copy-to-clipboard@5.0.2@react-copy-to-clipboard/lib/Component.js ***!
+ \**********************************************************************************************/
+/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.CopyToClipboard = void 0;
+
+var _react = _interopRequireDefault(__webpack_require__(/*! react */ 59301));
+
+var _copyToClipboard = _interopRequireDefault(__webpack_require__(/*! copy-to-clipboard */ 25769));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
+
+function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
+
+function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
+
+function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
+
+function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
+
+function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
+
+function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
+
+function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
+
+function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
+
+function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
+
+function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
+
+var CopyToClipboard =
+/*#__PURE__*/
+function (_React$PureComponent) {
+ _inherits(CopyToClipboard, _React$PureComponent);
+
+ function CopyToClipboard() {
+ var _getPrototypeOf2;
+
+ var _this;
+
+ _classCallCheck(this, CopyToClipboard);
+
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(CopyToClipboard)).call.apply(_getPrototypeOf2, [this].concat(args)));
+
+ _defineProperty(_assertThisInitialized(_this), "onClick", function (event) {
+ var _this$props = _this.props,
+ text = _this$props.text,
+ onCopy = _this$props.onCopy,
+ children = _this$props.children,
+ options = _this$props.options;
+
+ var elem = _react["default"].Children.only(children);
+
+ var result = (0, _copyToClipboard["default"])(text, options);
+
+ if (onCopy) {
+ onCopy(text, result);
+ } // Bypass onClick if it was present
+
+
+ if (elem && elem.props && typeof elem.props.onClick === 'function') {
+ elem.props.onClick(event);
+ }
+ });
+
+ return _this;
+ }
+
+ _createClass(CopyToClipboard, [{
+ key: "render",
+ value: function render() {
+ var _this$props2 = this.props,
+ _text = _this$props2.text,
+ _onCopy = _this$props2.onCopy,
+ _options = _this$props2.options,
+ children = _this$props2.children,
+ props = _objectWithoutProperties(_this$props2, ["text", "onCopy", "options", "children"]);
+
+ var elem = _react["default"].Children.only(children);
+
+ return _react["default"].cloneElement(elem, _objectSpread({}, props, {
+ onClick: this.onClick
+ }));
+ }
+ }]);
+
+ return CopyToClipboard;
+}(_react["default"].PureComponent);
+
+exports.CopyToClipboard = CopyToClipboard;
+
+_defineProperty(CopyToClipboard, "defaultProps", {
+ onCopy: undefined,
+ options: undefined
+});
+
+/***/ }),
+
+/***/ 56102:
+/*!******************************************************************************************!*\
+ !*** ./node_modules/_react-copy-to-clipboard@5.0.2@react-copy-to-clipboard/lib/index.js ***!
+ \******************************************************************************************/
+/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+var _require = __webpack_require__(/*! ./Component */ 83145),
+ CopyToClipboard = _require.CopyToClipboard;
+
+CopyToClipboard.CopyToClipboard = CopyToClipboard;
+module.exports = CopyToClipboard;
+
+/***/ }),
+
+/***/ 98040:
+/*!************************************************************************!*\
+ !*** ./node_modules/_toggle-selection@1.0.6@toggle-selection/index.js ***!
+ \************************************************************************/
+/***/ (function(module) {
+
+
+module.exports = function () {
+ var selection = document.getSelection();
+ if (!selection.rangeCount) {
+ return function () {};
+ }
+ var active = document.activeElement;
+
+ var ranges = [];
+ for (var i = 0; i < selection.rangeCount; i++) {
+ ranges.push(selection.getRangeAt(i));
+ }
+
+ switch (active.tagName.toUpperCase()) { // .toUpperCase handles XHTML
+ case 'INPUT':
+ case 'TEXTAREA':
+ active.blur();
+ break;
+
+ default:
+ active = null;
+ break;
+ }
+
+ selection.removeAllRanges();
+ return function () {
+ selection.type === 'Caret' &&
+ selection.removeAllRanges();
+
+ if (!selection.rangeCount) {
+ ranges.forEach(function(range) {
+ selection.addRange(range);
+ });
+ }
+
+ active &&
+ active.focus();
+ };
+};
+
+
/***/ })
}]);
\ No newline at end of file
diff --git a/index.html b/index.html
index 0be47fea13..2640495b77 100644
--- a/index.html
+++ b/index.html
@@ -11,7 +11,7 @@
-
+
@@ -26,7 +26,7 @@
display: block !important;
}
-
+