Auto Submit

dev_local_v9_poll
autosubmit 2 years ago
parent f58a962139
commit 1ce99c2e35

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[13395,32311,67497,96495,25209],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[13395,32311,96495,91090,25209],{
/***/ 76897:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[23418,88299,8976,32311,67497,96495,25209],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[23418,88299,8976,32311,96495,91090,25209],{
/***/ 76897:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[32311,67497,96495,25209],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[32311,96495,91090,25209],{
/***/ 76897:
/*!*****************************************************************************************************!*\

@ -1616,7 +1616,7 @@ if (false) {}
/***/ }),
/***/ 77220:
/***/ 65615:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/tour/index.js + 12 modules ***!
\*********************************************************************/

@ -1,677 +0,0 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[63739],{
/***/ 79920:
/*!**********************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/FileTextOutlined.js + 1 modules ***!
\**********************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_FileTextOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.4@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(74932);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/FileTextOutlined.js
// This icon file is generated automatically.
var FileTextOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z" } }] }, "name": "file-text", "theme": "outlined" };
/* harmony default export */ var asn_FileTextOutlined = (FileTextOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(1393);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/FileTextOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var FileTextOutlined_FileTextOutlined = function FileTextOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_FileTextOutlined
}));
};
/**![file-text](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1NC42IDI4OC42TDYzOS40IDczLjRjLTYtNi0xNC4xLTkuNC0yMi42LTkuNEgxOTJjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjgzMmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg2NDBjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzExLjNjMC04LjUtMy40LTE2LjctOS40LTIyLjd6TTc5MC4yIDMyNkg2MDJWMTM3LjhMNzkwLjIgMzI2em0xLjggNTYySDIzMlYxMzZoMzAydjIxNmE0MiA0MiAwIDAwNDIgNDJoMjE2djQ5NHpNNTA0IDYxOEgzMjBjLTQuNCAwLTggMy42LTggOHY0OGMwIDQuNCAzLjYgOCA4IDhoMTg0YzQuNCAwIDgtMy42IDgtOHYtNDhjMC00LjQtMy42LTgtOC04ek0zMTIgNDkwdjQ4YzAgNC40IDMuNiA4IDggOGgzODRjNC40IDAgOC0zLjYgOC04di00OGMwLTQuNC0zLjYtOC04LThIMzIwYy00LjQgMC04IDMuNi04IDh6IiAvPjwvc3ZnPg==) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(FileTextOutlined_FileTextOutlined);
if (false) {}
/* harmony default export */ var icons_FileTextOutlined = (RefIcon);
/***/ }),
/***/ 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;
/***/ }),
/***/ 51581:
/*!****************************************************************************************************!*\
!*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/dist/InfiniteScroll.js ***!
\****************************************************************************************************/
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__(/*! react */ 59301);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(/*! prop-types */ 12708);
var _propTypes2 = _interopRequireDefault(_propTypes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var InfiniteScroll = function (_Component) {
_inherits(InfiniteScroll, _Component);
function InfiniteScroll(props) {
_classCallCheck(this, InfiniteScroll);
var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));
_this.scrollListener = _this.scrollListener.bind(_this);
_this.eventListenerOptions = _this.eventListenerOptions.bind(_this);
_this.mousewheelListener = _this.mousewheelListener.bind(_this);
return _this;
}
_createClass(InfiniteScroll, [{
key: 'componentDidMount',
value: function componentDidMount() {
this.pageLoaded = this.props.pageStart;
this.options = this.eventListenerOptions();
this.attachScrollListener();
}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate() {
if (this.props.isReverse && this.loadMore) {
var parentElement = this.getParentElement(this.scrollComponent);
parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;
this.loadMore = false;
}
this.attachScrollListener();
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
this.detachScrollListener();
this.detachMousewheelListener();
}
}, {
key: 'isPassiveSupported',
value: function isPassiveSupported() {
var passive = false;
var testOptions = {
get passive() {
passive = true;
}
};
try {
document.addEventListener('test', null, testOptions);
document.removeEventListener('test', null, testOptions);
} catch (e) {
// ignore
}
return passive;
}
}, {
key: 'eventListenerOptions',
value: function eventListenerOptions() {
var options = this.props.useCapture;
if (this.isPassiveSupported()) {
options = {
useCapture: this.props.useCapture,
passive: true
};
}
return options;
}
// Set a defaut loader for all your `InfiniteScroll` components
}, {
key: 'setDefaultLoader',
value: function setDefaultLoader(loader) {
this.defaultLoader = loader;
}
}, {
key: 'detachMousewheelListener',
value: function detachMousewheelListener() {
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = this.scrollComponent.parentNode;
}
scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
}
}, {
key: 'detachScrollListener',
value: function detachScrollListener() {
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = this.getParentElement(this.scrollComponent);
}
scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
}
}, {
key: 'getParentElement',
value: function getParentElement(el) {
var scrollParent = this.props.getScrollParent && this.props.getScrollParent();
if (scrollParent != null) {
return scrollParent;
}
return el && el.parentNode;
}
}, {
key: 'filterProps',
value: function filterProps(props) {
return props;
}
}, {
key: 'attachScrollListener',
value: function attachScrollListener() {
var parentElement = this.getParentElement(this.scrollComponent);
if (!this.props.hasMore || !parentElement) {
return;
}
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = parentElement;
}
scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
if (this.props.initialLoad) {
this.scrollListener();
}
}
}, {
key: 'mousewheelListener',
value: function mousewheelListener(e) {
// Prevents Chrome hangups
// See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257
if (e.deltaY === 1 && !this.isPassiveSupported()) {
e.preventDefault();
}
}
}, {
key: 'scrollListener',
value: function scrollListener() {
var el = this.scrollComponent;
var scrollEl = window;
var parentNode = this.getParentElement(el);
var offset = void 0;
if (this.props.useWindow) {
var doc = document.documentElement || document.body.parentNode || document.body;
var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;
if (this.props.isReverse) {
offset = scrollTop;
} else {
offset = this.calculateOffset(el, scrollTop);
}
} else if (this.props.isReverse) {
offset = parentNode.scrollTop;
} else {
offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;
}
// Here we make sure the element is visible as well as checking the offset
if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {
this.detachScrollListener();
this.beforeScrollHeight = parentNode.scrollHeight;
this.beforeScrollTop = parentNode.scrollTop;
// Call loadMore after detachScrollListener to allow for non-async loadMore functions
if (typeof this.props.loadMore === 'function') {
this.props.loadMore(this.pageLoaded += 1);
this.loadMore = true;
}
}
}
}, {
key: 'calculateOffset',
value: function calculateOffset(el, scrollTop) {
if (!el) {
return 0;
}
return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);
}
}, {
key: 'calculateTopPosition',
value: function calculateTopPosition(el) {
if (!el) {
return 0;
}
return el.offsetTop + this.calculateTopPosition(el.offsetParent);
}
}, {
key: 'render',
value: function render() {
var _this2 = this;
var renderProps = this.filterProps(this.props);
var children = renderProps.children,
element = renderProps.element,
hasMore = renderProps.hasMore,
initialLoad = renderProps.initialLoad,
isReverse = renderProps.isReverse,
loader = renderProps.loader,
loadMore = renderProps.loadMore,
pageStart = renderProps.pageStart,
ref = renderProps.ref,
threshold = renderProps.threshold,
useCapture = renderProps.useCapture,
useWindow = renderProps.useWindow,
getScrollParent = renderProps.getScrollParent,
props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);
props.ref = function (node) {
_this2.scrollComponent = node;
if (ref) {
ref(node);
}
};
var childrenArray = [children];
if (hasMore) {
if (loader) {
isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);
} else if (this.defaultLoader) {
isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);
}
}
return _react2.default.createElement(element, props, childrenArray);
}
}]);
return InfiniteScroll;
}(_react.Component);
InfiniteScroll.propTypes = {
children: _propTypes2.default.node.isRequired,
element: _propTypes2.default.node,
hasMore: _propTypes2.default.bool,
initialLoad: _propTypes2.default.bool,
isReverse: _propTypes2.default.bool,
loader: _propTypes2.default.node,
loadMore: _propTypes2.default.func.isRequired,
pageStart: _propTypes2.default.number,
ref: _propTypes2.default.func,
getScrollParent: _propTypes2.default.func,
threshold: _propTypes2.default.number,
useCapture: _propTypes2.default.bool,
useWindow: _propTypes2.default.bool
};
InfiniteScroll.defaultProps = {
element: 'div',
hasMore: false,
initialLoad: true,
pageStart: 0,
ref: null,
threshold: 250,
useWindow: true,
isReverse: false,
useCapture: false,
loader: null,
getScrollParent: null
};
exports["default"] = InfiniteScroll;
module.exports = exports['default'];
/***/ }),
/***/ 26724:
/*!**************************************************************************************!*\
!*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/index.js ***!
\**************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 51581)
/***/ }),
/***/ 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();
};
};
/***/ })
}]);

File diff suppressed because one or more lines are too long

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[78565,8976,32311,67497,96495,25209],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[78565,8976,32311,96495,91090,25209],{
/***/ 76897:
/*!*****************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[66522],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[80807],{
/***/ 3148:
/*!*******************************************************************************************************************!*\
@ -453,6 +453,132 @@ const Countdown = props => {
statistic_Statistic.Countdown = statistic_Countdown;
/* harmony default export */ var es_statistic = (statistic_Statistic);
/***/ }),
/***/ 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;
/***/ }),
/***/ 79818:
@ -2680,6 +2806,192 @@ module.exports.DIFF_DELETE = DIFF_DELETE;
module.exports.DIFF_INSERT = DIFF_INSERT;
module.exports.DIFF_EQUAL = DIFF_EQUAL;
/***/ }),
/***/ 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();
};
};
/***/ })
}]);

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[57937,88299,8976,32311,67497,96495,25209],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[84314,88299,8976,96495,91090,25209],{
/***/ 76897:
/*!*****************************************************************************************************!*\
@ -46,24 +46,6 @@ if (false) {}
/***/ }),
/***/ 56762:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@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 */ 59301);
function useForceUpdate() {
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
return forceUpdate;
}
/***/ }),
/***/ 24905:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules ***!

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[88148,13395,20511,32311,67497,96495,25209],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[88148,13395,20511,32311,96495,91090,25209],{
/***/ 76897:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[88299,96495,25209],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[88299,96495,91090,25209],{
/***/ 76897:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[8976,96495,25209],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[8976,96495,91090,25209],{
/***/ 76897:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[67497,32311,96495,25209],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[91090,96495,25209],{
/***/ 76897:
/*!*****************************************************************************************************!*\
@ -46,24 +46,6 @@ if (false) {}
/***/ }),
/***/ 56762:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@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 */ 59301);
function useForceUpdate() {
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
return forceUpdate;
}
/***/ }),
/***/ 24650:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!

@ -1,952 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[93172],{
/***/ 93172:
/*!******************************************************!*\
!*** ./src/components/ChatBox/index.tsx + 7 modules ***!
\******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ ChatBox; }
});
// 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/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/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/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/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var es_message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js + 24 modules
var upload = __webpack_require__(53326);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/drawer/index.js + 9 modules
var drawer = __webpack_require__(43428);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
var input = __webpack_require__(24650);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(63350);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(39647);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/_react-markdown@9.0.1@react-markdown/lib/index.js + 129 modules
var lib = __webpack_require__(67050);
// EXTERNAL MODULE: ./node_modules/_react-syntax-highlighter@15.5.0@react-syntax-highlighter/dist/esm/prism.js + 5 modules
var prism = __webpack_require__(50457);
// EXTERNAL MODULE: ./node_modules/_react-syntax-highlighter@15.5.0@react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus.js
var vsc_dark_plus = __webpack_require__(59455);
// EXTERNAL MODULE: ./node_modules/_react-copy-to-clipboard@5.0.2@react-copy-to-clipboard/lib/index.js
var _react_copy_to_clipboard_5_0_2_react_copy_to_clipboard_lib = __webpack_require__(56102);
;// CONCATENATED MODULE: ./src/components/ChatBox/components/answer.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var answermodules = ({"wrp":"wrp___H70W8","file-list":"file-list___S5XYJ","ExtraEdit":"ExtraEdit___K6Xf2","btn":"btn___Yiu8q"});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
var col = __webpack_require__(43604);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/FileWordOutlined.js + 1 modules
var FileWordOutlined = __webpack_require__(63217);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/ChatBox/components/answer.tsx
var _excluded = ["node", "inline", "className", "children"];
var TypingCodeComponent = function TypingCodeComponent(_ref) {
var onCallback = _ref.onCallback,
scrollBox = _ref.scrollBox,
Data = _ref.Data,
extraEdit = _ref.extraEdit;
var _Data$allowCopy = Data.allowCopy,
allowCopy = _Data$allowCopy === void 0 ? false : _Data$allowCopy,
fileList = Data.fileList,
_Data$hideTextEffect = Data.hideTextEffect,
hideTextEffect = _Data$hideTextEffect === void 0 ? false : _Data$hideTextEffect,
_Data$text = Data.text,
text = _Data$text === void 0 ? "" : _Data$text;
var _useState = (0,_react_17_0_2_react.useState)(''),
_useState2 = slicedToArray_default()(_useState, 2),
content = _useState2[0],
setContent = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(true),
_useState4 = slicedToArray_default()(_useState3, 2),
isTyping = _useState4[0],
setIsTyping = _useState4[1];
(0,_react_17_0_2_react.useEffect)(function () {
if (!text) return;
setIsTyping(true);
var typeContent = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var i;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
i = 0;
case 1:
if (!(i < text.length)) {
_context.next = 8;
break;
}
setContent(text.substring(0, i + 1) + (text.length - 1 > i ? ' __' : ""));
_context.next = 5;
return new Promise(function (resolve) {
return setTimeout(resolve, 30);
});
case 5:
i++;
_context.next = 1;
break;
case 8:
setIsTyping(false);
onCallback === null || onCallback === void 0 || onCallback(Data);
case 10:
case "end":
return _context.stop();
}
}, _callee);
}));
return function typeContent() {
return _ref2.apply(this, arguments);
};
}();
if (hideTextEffect) {
setContent(text);
} else {
typeContent();
}
return function () {
return setContent('');
};
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
if (scrollBox.current) {
scrollBox.current.scrollTo({
top: scrollBox.current.scrollHeight,
behavior: "smooth"
});
}
}, [content]);
var bytesToSize = function bytesToSize(bytes) {
if (bytes === 0) return '0 B';
var k = 1024;
var sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
var i = Math.floor(Math.log(bytes) / Math.log(k));
return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "".concat(answermodules.wrp, " fadeIn animated"),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(lib/* Markdown */.U, {
components: {
code: function code(_ref3) {
var node = _ref3.node,
inline = _ref3.inline,
className = _ref3.className,
children = _ref3.children,
props = objectWithoutProperties_default()(_ref3, _excluded);
var match = /language-(\w+)/.exec(className || '');
return !inline && match ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
position: 'relative'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(_react_copy_to_clipboard_5_0_2_react_copy_to_clipboard_lib.CopyToClipboard, {
text: String(children).replace(/\n$/, ''),
onCopy: function onCopy() {
return es_message/* default */.ZP.success({
content: '复制成功',
key: "copy"
});
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("button", {
style: {
position: 'absolute',
top: 0,
right: 0,
padding: '4px 8px',
borderRadius: '0 0 0 5px',
border: 'none',
backgroundColor: '#007bff',
color: '#fff',
cursor: 'pointer',
fontSize: "12px"
},
children: "\u590D\u5236"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(prism/* default */.Z, objectSpread2_default()(objectSpread2_default()({
style: vsc_dark_plus/* default */.Z,
language: match[1],
PreTag: "div",
showLineNumbers: true,
lineNumberStyle: {
minWidth: '40px'
}
}, props), {}, {
children: String(children || "").replace(/\n$/, '')
}))]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("code", objectSpread2_default()(objectSpread2_default()({
className: className
}, props), {}, {
children: children
}));
}
},
children: content
}), fileList && !isTyping && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: "".concat(answermodules["file-list"], " animated fadeIn"),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(FileWordOutlined/* default */.Z, {
className: "font20 mr10"
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [fileList === null || fileList === void 0 ? void 0 : fileList.name, /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), bytesToSize(fileList === null || fileList === void 0 ? void 0 : fileList.size)]
})]
}), !isTyping && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: answermodules.ExtraEdit,
children: [extraEdit === null || extraEdit === void 0 ? void 0 : extraEdit(Data), allowCopy && /*#__PURE__*/(0,jsx_runtime.jsx)(_react_copy_to_clipboard_5_0_2_react_copy_to_clipboard_lib.CopyToClipboard, {
text: String(content).replace(/\n$/, ''),
onCopy: function onCopy() {
return es_message/* default */.ZP.success({
content: '复制成功',
key: "copy"
});
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: answermodules.btn,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fuzhi3 mr5"
}), "\u590D\u5236"]
})
})]
})]
});
};
/* harmony default export */ var answer = (TypingCodeComponent);
;// CONCATENATED MODULE: ./src/components/ChatBox/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var ChatBoxmodules = ({"flex_box_center":"flex_box_center___GmElr","flex_space_between":"flex_space_between____pbWi","flex_box_vertical_center":"flex_box_vertical_center___COMWd","flex_box_center_end":"flex_box_center_end___lmAQf","flex_box_column":"flex_box_column___OJb7M","ai-wrp":"ai-wrp___AEGoS","loading-wanx":"loading-wanx___GtiUv","dot-flashing":"dot-flashing___xJNVn","dot-fade":"dot-fade___KWn1a","footer-container":"footer-container___HTy33","input-container":"input-container___M88BT","upload-btn":"upload-btn___fKRCG","send-btn":"send-btn___yOKG5","chat-container":"chat-container___pNTrU","chat-message":"chat-message___isXl8","title":"title___hXSVA","answerWrp":"answerWrp___COjAb","li":"li___PjMV3","img":"img___wZqEA","content":"content___OlYYG","user":"user___rbSU1","container":"container___hZAxN","item":"item___Z9j46"});
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(57964);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(80348);
;// CONCATENATED MODULE: ./src/components/ChatBox/components/icon.tsx
var DraggableImage = function DraggableImage(_ref) {
var src = _ref.src,
onClick = _ref.onClick;
var imgRef = (0,_react_17_0_2_react.useRef)(null);
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
isDragging = _useState2[0],
setIsDragging = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)({
x: 20,
y: window.innerHeight * 0.62
}),
_useState4 = slicedToArray_default()(_useState3, 2),
position = _useState4[0],
setPosition = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)({
x: 20,
y: window.innerHeight * 0.62
}),
_useState6 = slicedToArray_default()(_useState5, 2),
startPosition = _useState6[0],
setStartPosition = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)({
x: 20,
y: window.innerHeight * 0.62
}),
_useState8 = slicedToArray_default()(_useState7, 2),
mouseStart = _useState8[0],
setMouseStart = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
hasDragged = _useState10[0],
setHasDragged = _useState10[1];
(0,_react_17_0_2_react.useEffect)(function () {
var handleMouseMove = function handleMouseMove(e) {
if (isDragging) {
var _imgRef$current;
var deltaY = e.clientY - mouseStart.y;
var newY = startPosition.y + deltaY;
var maxY = window.innerHeight - (((_imgRef$current = imgRef.current) === null || _imgRef$current === void 0 ? void 0 : _imgRef$current.offsetHeight) || 0) - 50;
var minY = 50;
if (newY < minY) newY = minY;
if (newY > maxY) newY = maxY;
requestAnimationFrame(function () {
setPosition({
x: 20,
y: newY
});
});
setHasDragged(true);
}
};
var handleMouseUp = function handleMouseUp() {
setIsDragging(false);
};
document.addEventListener('mousemove', handleMouseMove);
document.addEventListener('mouseup', handleMouseUp);
return function () {
document.removeEventListener('mousemove', handleMouseMove);
document.removeEventListener('mouseup', handleMouseUp);
};
}, [isDragging, mouseStart, startPosition]);
var handleMouseDown = function handleMouseDown(e) {
setIsDragging(true);
setMouseStart({
x: e.clientX,
y: e.clientY
});
setStartPosition(position);
setHasDragged(false);
};
var handleMouseUp = function handleMouseUp(e) {
setIsDragging(false);
if (!hasDragged && onClick) {
onClick(e);
}
};
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
position: 'fixed',
top: position.y,
right: position.x,
zIndex: 2,
cursor: isDragging ? 'grabbing' : 'grab'
},
onMouseDown: handleMouseDown,
onMouseUp: handleMouseUp,
ref: imgRef,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: src || "/images/ai_teacher.png",
width: 60,
draggable: "false"
})
});
};
/* harmony default export */ var icon = (DraggableImage);
;// CONCATENATED MODULE: ./src/components/ChatBox/imgs/a.png
var a_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAYCAYAAAD+vg1LAAAAAXNSR0IArs4c6QAAA1FJREFUSEuVlctvVVUYxX/f7UNCkYdMHDA0caCJMcaQXB4VLX2IRJCgRtGg+EpMHJOIiQ8mxqF/AQOdmKJNqy0EJVrkWLWi8piYQIxNHAAhaINy4XxLzzl737t7uTV4Jvve7HPWXt/61re2vXJaHwi24ZgAORSrq1pVrKr+F48X++XGwv3wTi7x9uh6e89ePq2rcnrjhxEoXctDAnA8JIJ7JBMOQhwf3WDr7KVTasjpaTKKIAnTWEnJONmPv2NlZRVGdnC91e3Fk2pI9DTLDWUvYJ5I0qmiVDIg+3ij1e2Fn9XwAFxK6PyKKkmb+obfBaNS44J6YC7R5+L25oGQjfVb3fb8pIZ7xVjGJwfute1Vm27u2Tqupd0ruVT0KfQhG3vA6vbcjy0pwqkXSymjJJF5YHqDFLBEzq0p4/FNBfCJwLhdxwSwo2PCftnAwhqt77OJh6xuu39oafxfjalET1wRHBK1TiyZfVoAPztbSRE/7OSG1GILfJzYL5VicsDq9sz3bcBwXoUrFpu8fEHZBeE+d5YlA5RNbra67fqu1Txg4sO1tvXm/FC9NXJUayznt+YQGdlUAfz0t4nGhYpizhPGiV8X5kj0MSyXsyqpMDs8ZHV7qgCOPo7lL26t5tAs1mhEdnjY6vbkN4mPU8t1Am+3pHFJOUfcmMNZ7WIQce7ISAC+gXFrXFuRmTQzjPy7XSvZf+Es6lvFHbpGfmWec0uX0//5sE3ZE1nQOOSsxHwzwFo6opxewS3Blq9Nbrb3Bw9pL7BXYkWZIcYZOc8f3WIztvN4KzYNJkY3dHbF0JRu6+rmgmB6csD6Bw9pH+KdZnRWWTMv53dyHradX1fNC2Obu/ilzO54S8RKKPNgDcauv7oY621w3p0l0Q2IP2rG0HXnVYm/bcexinG8jtKxTaapOc44d8tY7c6XgnGJR1zM18SwGyOes0/ipD023Zq8jhZqm8A85y7VWGbOjBvDOHdizEoMeM6boYJjtn1aV71oTIfLsUNEYsaeFZc5cLGPuaJpVmNHfp37Jd6Kl4PVeN0e/Uof4WxzqOHhNk7s1uG2PvPFDPc8uJYt7hyU6G4LrhM9DTba/8mF9nc3faZ1+TXe+Ffr+wR/mhi90mD/7ON2+R9W5V2x0b6OvQAAAABJRU5ErkJggg==";
;// CONCATENATED MODULE: ./src/components/ChatBox/imgs/b.png
var b_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAYAAAD6S912AAAAAXNSR0IArs4c6QAAA6VJREFUSEuVlVtoXGUUhdc6SbQmRFPb2pDLdCaN0D6oIFpSiAgqUkWhbxbEWiQ+iA8iFCWQUoo22mCxL4JUYkJBSalWEHshXqLRqSYiSkHQJp2ZtEKrpMVC0Gb+y9IzZ850TpwUHJiHc/k/1t5r7X2I6/zeaNPqunrsdcBWKzU58lTRY2DPb5xe7hiXezC8Ws0LjZg20gZHwABwACy4aIEHXzvHbK2zywLfTKnfSYMhzJZA5T8BD07tm2PP/wLu79QJS22JQSV1FTh1mWgcLfDqUmhJ4W4o2AP66of7Un7SAvdFZVbDouuAXHmgwD/jMzGDI2mtKDp95MmvnjvH1+MXBlP61FK95b7BQgmwCdh6MMcr4fvb2tSpG3Vc4k6+s04Z4/G1gdo9OPDiee59ZZ02SrjXEs3lki8UgYIHNofmeMIZIteZx2e5LnQYrwlLdHlqqFTyWx3qXiQmLNVhwW8d0GMhxj1zYLZIHAtNCu/FbTDADw681UIZT+0/mq/bWXF5qFPrHXHKQLct7VsINCEQGqx2PE6AI4eO5vhyKK4CFMRXU7hsoZZrbkYG1AJWu+48H/h4jhMJ4GC7Vi3Waf5amVXZC5g1ihTWct2JzxwvcCQJ7Naav4z+SIS4HBkXMGuJY9aXS64KezkFfeN5DieA/d1aoypgtRLHSKEt93Dp9Diw7/MYuDullywQeKLJQANRz5JhjoGOocs876BZI7RacIOl6MW+L2PgQMpbS9RVIDWmwpPZIjAi4vcPcvwkDv9DXbrDAu/+C387GwP7U3rMABTQUqQO1TIlVHg4z94QtGW9tjn5hx2DBUOM+jrMWIO7pnL8JtHDFzJaa7wuJiJTCTGzH+bZ+2jGjTngCUuWRtGB1pLPfneWo7HqSg5D4N/SxaUuRwaUSj7goSPRpIRzHUEtuRA0MD39Cy8lFG5v16r6Bs3X3C5k1gI/OfjnK6DEfgweOX2WJxPA8OLptL9ggdbqsssTkXXiF4baFVUQbZ44Pl7Bpp9z/D6pMKNNDhq3wi3/yRmZdcKThjht4G9OLtvSrnx/ZjbYDjA8CuxIq8dAJx3R7KD3DLjVory6ImOyE7mgd3O37rdeI5bIRKYEJxy01kB3uwBjczPBU9yRVhjOKSs2OaDvSIGjj7ep0d+EjYsOzbY+/IbgyuQsf4ycVHBnBrdfbcClM2c4n0ppJW7QuIXuccAww9X9awYHBUwezvPQ9T6ryz1rSatlRb3GTMBd/wBBRVUxXeSVgwAAAABJRU5ErkJggg==";
;// CONCATENATED MODULE: ./src/components/ChatBox/imgs/c.png
var c_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAYCAYAAAARfGZ1AAAAAXNSR0IArs4c6QAABD9JREFUSEvNlG1MU2cUx/+3hVJKoZQCKTIGTBw6ZB1CNmg/MHkNoqAJe9fhDMvWkhZcjG4fMdnMkm2Ei4Diy8IyEUPUGCNDjSxx2XgHCxN0sooI0spLQ2lpe1vuXe5d1oFNVkj8sPPlSe4553fOc87/PgTWYIcPnwl2OJzfi8WiXJvN0cvjMaXV1eopX6mErwDWr9PVf5Wfr/xcpVIQIyMGpqXlxgWSVL/nK3eN8LpWtfrtkqiocNjtThw7drafJDVpzwVeUVH3Tmxs9HmlUkEMDT1g7t4d+6KmRvP1c4H/PZoTOwC6EcBRktSwp0/zGsvBg98Fut3BMn9/ysvncuESn4+PeTzMrSS7XALG6aTnGxs/WVr53QM4cuSkxG5frpdIxG+Fh4f4E2vaxr+omRmLy2KxXuLxHJrq6s/mWY8HodM13NyzR5mdmZlMUJQbLpfb57WfDbh16w7T0aH/hSTVmR54ZeXJbQkJ8v7y8iKYzVZYrXaYTGZYLEuIiAhFaGiQVyHWx8aIxYGQy8PA3pTNu3q1C1NTsyqSLP+N61yna3g3NzflfE5OCqan59HW1oPxBQoCaQgo0yxSN2+ASpXkKdDbex+d+kcQyCPgtlgRFQDs2pUOilpGZ+cIo9cbPiJJTRMH12obPigoSP1RqXwF16714J6DhzBVKnh+fqCdFIxtHcjbFodNm6IxMfEUV26PImpnDvgiIRj3Msx9Q4ilFpGevgXd3aPMwIChrLZWfdYL/s23FxG+twQZchGmKWCSAmwPHyPoziCKijJw/Xo/ZuMToEhJgJsBJpzgGpg81Yz9+7J9wyPL3kdYgB8cDEAzwMKkEcLuHhQXZ6C9vQ/mLUmIS3yR85ndwDLD4HH9D9i/N2s1vLKy7jWGIXbk56d9yY6FXYhBGAqZMpWbMZ9NvHIDb74cgc2JMRgfN6Gt7yGiSwpB8HkIIABT/++QmyahVCZx8MHBsaM0TV8kKirqW2ga8QUFaa+z8Lm5Ra6AkfFDQIQM9okpJMdIkZn5qmehXV2j6PvDiMDYF0CZFyCjbCguVsLlWkZXFwfvJwhi2GvmrMRYe/JkDgsLS4iMlEAmC/GSIitZo9GM4GAhoqPDQRAErFbHf8/8H/i6/yCwOv8/wfX6P5GYGAOhUICBgTFs3RoHgcCPnS2n65W27s5bW28jLy8VEkkQmpt/xu7dGRCJhDh9+ieUlRWsgrMj7e29/+xPdKIkKyu5dft2BfeerLTLl39FdnYKQkJEYAsVFr4BkSgATU03UVqa6wmlaRqzsxb2dszw8KN9tbXqc5xaDh06FS+Vih8cOJDHdzpdKx/LNeyV4SS4uLjEne3tffTMjDnp+HHtPc+Tq9XW1WzcuEGrULxEBAUJ1wBdHWKzOTA0ZGAMBmNjTY3601XvOduuTlevAfAhQRByVrfrMZqmTQBzTip9WltVVUWzuX8BL+8z38bSCP4AAAAASUVORK5CYII=";
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(88499);
;// CONCATENATED MODULE: ./src/components/ChatBox/index.tsx
var ChatBox_TypingCodeComponent = function TypingCodeComponent(_ref) {
var _taskData$challenge, _taskData$challenge2, _taskData$challenge3, _fileList$2, _fileList$3, _fileList$4;
var title = _ref.title,
description = _ref.description,
placeholder = _ref.placeholder,
hideUpload = _ref.hideUpload,
hideInputBox = _ref.hideInputBox,
aiIcon = _ref.aiIcon,
userIcon = _ref.userIcon,
children = _ref.children,
taskData = _ref.taskData,
name = _ref.name,
code = _ref.code,
globalSetting = _ref.globalSetting,
authority = _ref.authority,
_ref$isShowComponent = _ref.isShowComponent,
isShowComponent = _ref$isShowComponent === void 0 ? true : _ref$isShowComponent,
_ref$DrawerProps = _ref.DrawerProps,
DrawerProps = _ref$DrawerProps === void 0 ? {} : _ref$DrawerProps,
_ref$FetchUrl = _ref.FetchUrl,
FetchUrl = _ref$FetchUrl === void 0 ? 'https://ai-data.educoder.net/v1/chat-messages' : _ref$FetchUrl,
_ref$FetchData = _ref.FetchData,
FetchData = _ref$FetchData === void 0 ? {} : _ref$FetchData,
_ref$defaultGetData = _ref.defaultGetData,
defaultGetData = _ref$defaultGetData === void 0 ? false : _ref$defaultGetData,
_ref$extraEdit = _ref.extraEdit,
extraEdit = _ref$extraEdit === void 0 ? function () {
return null;
} : _ref$extraEdit,
_ref$isShowDefuatTips = _ref.isShowDefuatTips,
isShowDefuatTips = _ref$isShowDefuatTips === void 0 ? true : _ref$isShowDefuatTips,
isReview = _ref.isReview,
onOpen = _ref.onOpen,
loadingOption = _ref.loadingOption;
var _useState = (0,_react_17_0_2_react.useState)(['daiao', 'pu428f3pz', 'wangwei10061', 'pucmnw7fs', 'mlty7uhjf', 'pyf8v9u3c', "a411763600"]),
_useState2 = slicedToArray_default()(_useState, 2),
lookAiUser = _useState2[0],
setLookAiUser = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(null),
_useState4 = slicedToArray_default()(_useState3, 2),
student_work_id = _useState4[0],
setStudent_work_id = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
open = _useState6[0],
setOpen = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)([]),
_useState8 = slicedToArray_default()(_useState7, 2),
fileList = _useState8[0],
setFileList = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
loading = _useState10[0],
setIsLoading = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)([]),
_useState12 = slicedToArray_default()(_useState11, 2),
chatData = _useState12[0],
setChatData = _useState12[1];
var chatDataRef = (0,_react_17_0_2_react.useRef)(chatData);
var conversationIdRef = (0,_react_17_0_2_react.useRef)();
var scrollBox = (0,_react_17_0_2_react.useRef)();
var _useState13 = (0,_react_17_0_2_react.useState)(''),
_useState14 = slicedToArray_default()(_useState13, 2),
message = _useState14[0],
setMessage = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)(["".concat(taskData === null || taskData === void 0 || (_taskData$challenge = taskData.challenge) === null || _taskData$challenge === void 0 ? void 0 : _taskData$challenge.task_pass, "\uFF0C\u8BF7\u7ED9\u51FA\u7B54\u9898\u601D\u8003\u65B9\u5411\u3002\\n\\n\u4E0D\u8981\u7ED9\u51FA\u5B66\u751F\u6B63\u786E\u7B54\u6848\uFF0C\u4E0D\u8981\u7ED9\u51FA\u4EFB\u4F55\u4EE3\u7801")]),
_useState16 = slicedToArray_default()(_useState15, 2),
queryData = _useState16[0],
setQueryData = _useState16[1];
// const Authorization = ["Bearer app-Z8HFAfducmnrr3zO9961jqgB", `Bearer app-Z8HFAfducmnrr3zO9961jqgB`, `Bearer app-Z8HFAfducmnrr3zO9961jqgB`];
// const names = ["智能审题", `代码诊断`, `AI辅导`];
// const [inputs, setInputs] = useState<any>(["", taskData?.challenge?.task_pass, taskData?.challenge?.task_pass])
var isTpiAi = !!taskData;
var fastBtnItem = [{
img: a_namespaceObject,
name: '智能审题',
des: '快速智能拆解任务,提供解题思路',
Authorization: "Bearer app-Z8HFAfducmnrr3zO9961jqgB",
inputs: ""
}, {
img: b_namespaceObject,
name: '代码诊断',
des: '系统智能代码分析,提供修正建议',
Authorization: "Bearer app-Z8HFAfducmnrr3zO9961jqgB",
inputs: taskData === null || taskData === void 0 || (_taskData$challenge2 = taskData.challenge) === null || _taskData$challenge2 === void 0 ? void 0 : _taskData$challenge2.task_pass
}, {
img: c_namespaceObject,
name: 'AI辅导',
des: "为学生提供个性化智能学习辅导",
// des: '为学生提供个性化、智能化的学习辅导体验',
Authorization: "Bearer app-Z8HFAfducmnrr3zO9961jqgB",
inputs: taskData === null || taskData === void 0 || (_taskData$challenge3 = taskData.challenge) === null || _taskData$challenge3 === void 0 ? void 0 : _taskData$challenge3.task_pass
}];
var handleChange = function handleChange(_ref2) {
var newFileList = _ref2.fileList;
console.log(":newFileList:", newFileList);
setFileList(newFileList);
};
var UploadPorops = {
action: "https://ai-data.educoder.net/v1/datasets/dc9e6c03-a629-4e9e-bd81-06fb93c29aa1/document/create_by_file",
fileList: toConsumableArray_default()(fileList),
maxCount: 1,
onChange: handleChange,
showUploadList: false,
accept: ".doc,.docx,.xml,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",
beforeUpload: function beforeUpload(file) {
var allowedTypes = ['application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
// Word
'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
// Excel
'application/vnd.ms-powerpoint', 'application/vnd.openxmlformats-officedocument.presentationml.presentation']; // PowerPoint
var isOfficeFile = allowedTypes.includes(file.type);
if (!isOfficeFile) {
message.error('只能上传Office文档');
return Promise.reject();
}
return isOfficeFile;
},
headers: {
'Authorization': 'Bearer dataset-xBnNgFqcMjLGAXz7pFgXzGwY'
},
data: {
'data': JSON.stringify({
"indexing_technique": "high_quality",
"process_rule": {
"rules": {
"pre_processing_rules": [{
"id": "remove_extra_spaces",
"enabled": true
}, {
"id": "remove_urls_emails",
"enabled": true
}],
"segmentation": {
"separator": "###",
"max_tokens": 500
}
},
"mode": "custom"
}
})
}
};
var UploadReview = {
maxCount: 1,
showUploadList: false,
accept: ".doc,.docx,.md,.txt,.pdf",
beforeUpload: function beforeUpload(file) {
var _file$name;
var fileType = file === null || file === void 0 || (_file$name = file.name) === null || _file$name === void 0 || (_file$name = _file$name.split(".")) === null || _file$name === void 0 || (_file$name = _file$name.slice(-1)) === null || _file$name === void 0 || (_file$name = _file$name[0]) === null || _file$name === void 0 ? void 0 : _file$name.toLowerCase();
var allowedTypes = ["doc", "docx", "md", "pdf", "txt"];
var allowFile = allowedTypes.includes(fileType);
if (file.size == 0) {
es_message/* default */.ZP.warning('文件内容不能为空');
return upload/* default */.Z.LIST_IGNORE;
}
if (!allowFile) {
es_message/* default */.ZP.warning('目前支持txt、md、doc、docx、pdf文件');
return upload/* default */.Z.LIST_IGNORE;
}
return allowFile;
},
onChange: function onChange(_ref3) {
var newFileList = _ref3.fileList;
setFileList((newFileList === null || newFileList === void 0 ? void 0 : newFileList.filter(function (item) {
return (item === null || item === void 0 ? void 0 : item.status) === "done";
})) || []);
},
action: "".concat(env/* default */.Z === null || env/* default */.Z === void 0 ? void 0 : env/* default */.Z.API_SERVER, "/api/attachments.json")
};
(0,_react_17_0_2_react.useEffect)(function () {
chatDataRef.current = chatData;
}, [chatData]);
(0,_react_17_0_2_react.useEffect)(function () {
if (globalSetting !== null && globalSetting !== void 0 && globalSetting.setting) {
var _globalSetting$settin;
setLookAiUser([].concat(toConsumableArray_default()(lookAiUser), toConsumableArray_default()((globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.big_model_users) || [])));
}
}, [globalSetting === null || globalSetting === void 0 ? void 0 : globalSetting.setting]);
(0,_react_17_0_2_react.useEffect)(function () {
var _taskData$challenge4;
setQueryData(["".concat(taskData === null || taskData === void 0 || (_taskData$challenge4 = taskData.challenge) === null || _taskData$challenge4 === void 0 ? void 0 : _taskData$challenge4.task_pass), "".concat(code), "".concat(code)]);
}, [code]);
(0,_react_17_0_2_react.useEffect)(function () {
if (!(defaultGetData && (DrawerProps !== null && DrawerProps !== void 0 && DrawerProps.open || open) && FetchData !== null && FetchData !== void 0 && FetchData.student_work_id)) {
return;
}
if (student_work_id !== (FetchData === null || FetchData === void 0 ? void 0 : FetchData.student_work_id)) {
setChatData([{
text: '',
done: false,
loading: true,
key: Date.now(),
sender: "AI",
allowCopy: true
}]);
} else {
if (!!chatData.length) {
return;
}
setChatData([].concat(toConsumableArray_default()(chatData), [{
text: '',
done: false,
loading: true,
key: Date.now(),
sender: "AI",
allowCopy: true
}]));
}
getData();
setStudent_work_id(FetchData === null || FetchData === void 0 ? void 0 : FetchData.student_work_id);
}, [defaultGetData, open, chatData, DrawerProps === null || DrawerProps === void 0 ? void 0 : DrawerProps.open, FetchData === null || FetchData === void 0 ? void 0 : FetchData.student_work_id]);
var showDrawer = function showDrawer() {
setOpen(true);
};
var onClose = function onClose() {
setOpen(false);
};
var getData = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _fileList$filter;
var mes,
response,
_args = arguments;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
mes = _args.length > 0 && _args[0] !== undefined ? _args[0] : "";
_context.next = 3;
return (0,fetch/* default */.ZP)(FetchUrl, {
method: "post",
body: objectSpread2_default()({
"inputs": {
description: "",
name: name
},
query: mes,
"response_mode": "blocking",
"conversation_id": conversationIdRef.current || "",
"user": "abc",
"files": (fileList === null || fileList === void 0 || (_fileList$filter = fileList.filter(function (item) {
return (item === null || item === void 0 ? void 0 : item.status) == "done";
})) === null || _fileList$filter === void 0 ? void 0 : _fileList$filter.map(function (item) {
var _item$response;
return item === null || item === void 0 || (_item$response = item.response) === null || _item$response === void 0 ? void 0 : _item$response.id;
})) || []
}, FetchData),
mode: "cors",
headers: {
'Content-Type': 'application/json',
'Authorization': "Bearer app-Z8HFAfducmnrr3zO9961jqgB"
}
});
case 3:
response = _context.sent;
setIsLoading(false);
chatDataRef.current[chatDataRef.current.length - 1].text = response === null || response === void 0 ? void 0 : response.answer;
chatDataRef.current[chatDataRef.current.length - 1].loading = false;
chatDataRef.current[chatDataRef.current.length - 1].response = response;
conversationIdRef.current = response === null || response === void 0 ? void 0 : response.conversation_id;
setChatData(toConsumableArray_default()(chatDataRef.current));
case 10:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData() {
return _ref4.apply(this, arguments);
};
}();
var getTpiAiData = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(Data, num) {
var response;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
if (!loading) {
_context2.next = 2;
break;
}
return _context2.abrupt("return");
case 2:
setIsLoading(true);
setChatData([].concat(toConsumableArray_default()(chatData), [{
text: message,
done: false,
loading: true,
key: Date.now(),
sender: "AI",
allowCopy: true,
name: Data === null || Data === void 0 ? void 0 : Data.name
}]));
setTimeout(function () {
scrollBox.current.scrollTo({
top: scrollBox.current.scrollHeight,
behavior: "smooth"
});
});
_context2.next = 7;
return (0,fetch/* default */.ZP)(FetchUrl, {
method: "post",
body: {
"inputs": {
description: Data === null || Data === void 0 ? void 0 : Data.inputs,
name: Data === null || Data === void 0 ? void 0 : Data.name
// type: num
},
query: queryData[num],
// "query": `${taskData?.challenge?.task_pass}请根据这个描述内容,给出解题思路,请勿提供任何代码`,
"response_mode": "blocking",
// "conversation_id": conversationIdRef.current,
"user": "abc",
"files": []
},
mode: "cors",
headers: {
'Content-Type': 'application/json',
'Authorization': Data === null || Data === void 0 ? void 0 : Data.Authorization
}
});
case 7:
response = _context2.sent;
if (response !== null && response !== void 0 && response.answer) {
setIsLoading(false);
chatDataRef.current[chatDataRef.current.length - 1].text = response === null || response === void 0 ? void 0 : response.answer;
chatDataRef.current[chatDataRef.current.length - 1].loading = false;
chatDataRef.current[chatDataRef.current.length - 1].response = response;
conversationIdRef.current = response === null || response === void 0 ? void 0 : response.conversation_id;
setChatData(toConsumableArray_default()(chatDataRef.current));
}
case 9:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function getTpiAiData(_x, _x2) {
return _ref5.apply(this, arguments);
};
}();
var handleMessageChange = function handleMessageChange(e) {
setMessage(e.target.value);
};
var handleSendMessage = function handleSendMessage() {
if (message.trim() !== '') {
setMessage('');
setFileList([]);
setChatData([].concat(toConsumableArray_default()(chatData), [{
text: message,
done: false,
key: Date.now(),
sender: "user",
fileList: fileList[0]
}, {
text: message,
done: false,
loading: true,
key: Date.now(),
sender: "AI",
allowCopy: true
}]));
setIsLoading(true);
setTimeout(function () {
return getData(message);
}, 300);
}
};
var handleKeyPress = function handleKeyPress(e) {
if (e.key === 'Enter') {
var _fileList$;
e.preventDefault();
if (!!(fileList !== null && fileList !== void 0 && fileList.length) && (fileList === null || fileList === void 0 || (_fileList$ = fileList[0]) === null || _fileList$ === void 0 ? void 0 : _fileList$.status) !== "done" || loading) return;
handleSendMessage();
}
};
// // 用户都没有权限了,这块可以直接隐藏掉,就可以不需要做下面的任何事情了
// if (!isShowComponent || !(authority || lookAiUser.includes(userInfo()?.login))) { return <></> }
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [children ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
onClick: onOpen || showDrawer,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {}), children]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(icon, {
onClick: onOpen || showDrawer
}), /*#__PURE__*/(0,jsx_runtime.jsx)(drawer/* default */.Z, {
className: "".concat(DrawerProps !== null && DrawerProps !== void 0 && DrawerProps.open || open ? "body-overflow-hidden" : "", " ").concat(ChatBoxmodules.answerWrp),
width: (DrawerProps === null || DrawerProps === void 0 ? void 0 : DrawerProps.width) || 860,
title: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: ChatBoxmodules.title,
children: title || "头歌AI"
}),
onClose: (DrawerProps === null || DrawerProps === void 0 ? void 0 : DrawerProps.onClose) || onClose,
open: (DrawerProps === null || DrawerProps === void 0 ? void 0 : DrawerProps.open) || open,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ChatBoxmodules["ai-wrp"],
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
ref: scrollBox,
className: ChatBoxmodules["chat-container"],
children: [isShowDefuatTips && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ChatBoxmodules.li,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: ChatBoxmodules.img,
src: aiIcon || "/images/ai_icon.png"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ChatBoxmodules.content,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "c-grey-333 font22",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "mr5",
children: "\uD83D\uDC4B"
}), "\u55E8\uFF0C\u6211\u662F\u5934\u6B4C", isTpiAi ? title : '智能助教', "\uFF0C\u60A8\u7684\u6559\u5B66\u597D\u5E2E\u624B\u3002"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "font16 mt20",
style: {
color: '#434D6C'
},
children: description || '我可以阅读您上传的教案,书籍等教学资料,并根据您的要求为您自动生成任务要求。'
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "font16 mt20",
style: {
color: '#434D6C'
},
children: "\u5FEB\u6765\u8BD5\u4E00\u4E0B\u5427\uFF5E"
}), isTpiAi && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ChatBoxmodules.container,
children: fastBtnItem.map(function (e, i) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
onClick: function onClick() {
return getTpiAiData(e, i);
},
className: ChatBoxmodules.item,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: "mr10",
src: e.img
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#232B40',
fontSize: 16,
fontWeight: 600
},
children: e.name
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt10",
style: {
color: "#434D6C"
},
children: e.des
})]
}, i);
})
})]
})]
}), chatData === null || chatData === void 0 ? void 0 : chatData.map(function (item, i) {
var _chatData;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ChatBoxmodules.li,
style: item.sender === 'AI' && ((_chatData = chatData[i + 1]) === null || _chatData === void 0 ? void 0 : _chatData.sender) !== 'user' ? {
marginBottom: 50
} : {},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: ChatBoxmodules.img,
src: item.sender === "AI" ? aiIcon || "/images/ai_icon.png" : userIcon || "/images/ai_user.png"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "".concat(ChatBoxmodules.content, " ").concat(item.sender === "AI" ? '' : ChatBoxmodules.user),
children: item.loading ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ChatBoxmodules["loading-wanx"],
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ChatBoxmodules["dot-flashing"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ChatBoxmodules["dot-flashing"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ChatBoxmodules["dot-flashing"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
marginTop: 10,
color: '#9096A3'
},
children: (loadingOption === null || loadingOption === void 0 ? void 0 : loadingOption.text) || "请耐心等待,目前高峰期体验人数过多,我们已记录下您的需求,稍后将自动为您生成答案。"
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [!!item.name && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mb10 font18",
style: {
color: '#232B40',
fontWeight: 600
},
children: item === null || item === void 0 ? void 0 : item.name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(answer, {
scrollBox: scrollBox,
Data: item,
extraEdit: extraEdit
})]
})
})]
}, i);
})]
}), !hideInputBox && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "".concat(ChatBoxmodules['footer-container'], " ").concat(fileList.length >= 1 && ChatBoxmodules['has-file']),
children: [!!fileList.length && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "pb5 pt5",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
title: fileList === null || fileList === void 0 || (_fileList$2 = fileList[0]) === null || _fileList$2 === void 0 ? void 0 : _fileList$2.name,
className: "mr10",
children: (0,util/* cutFileName */.tP)(fileList === null || fileList === void 0 || (_fileList$3 = fileList[0]) === null || _fileList$3 === void 0 ? void 0 : _fileList$3.name, 40)
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
onClick: function onClick() {
return setFileList([]);
},
className: "iconfont current icon-shanchu15 delete-hover c-red-ee4 font14"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: fileList.length ? {
paddingLeft: 0
} : {},
className: ChatBoxmodules['input-container'],
children: [!hideUpload && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ChatBoxmodules['footer-container-upload'],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, isReview ? UploadReview : UploadPorops), {}, {
children: !!(fileList !== null && fileList !== void 0 && fileList.length) ? null : /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: ChatBoxmodules['upload-btn'],
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shangchuan4 c-white"
})
})
}))
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.TextArea, {
rows: 1,
placeholder: placeholder || "在这里输入你问题吧~",
value: message,
bordered: false,
onChange: handleMessageChange,
onKeyPress: handleKeyPress
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: ChatBoxmodules['send-btn'],
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fasong2 c-white"
}),
disabled: !!(fileList !== null && fileList !== void 0 && fileList.length) && (fileList === null || fileList === void 0 || (_fileList$4 = fileList[0]) === null || _fileList$4 === void 0 ? void 0 : _fileList$4.status) !== "done" || loading,
onClick: handleSendMessage
})]
})]
})]
})
})]
});
};
/* harmony default export */ var ChatBox = ((0,_umi_production_exports.connect)(function (_ref6) {
var globalSetting = _ref6.globalSetting;
return {
globalSetting: globalSetting
};
})(ChatBox_TypingCodeComponent));
/***/ })
}]);

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[96495,25209],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[96495,91090,25209],{
/***/ 76897:
/*!*****************************************************************************************************!*\

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

@ -11,7 +11,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
<meta http-equiv="Cache-Control" content="no-transform">
<link rel="stylesheet" href="/react/build/umi.67cb102a.css">
<link rel="stylesheet" href="/react/build/umi.7290ab8c.css">
<script src="/react/build/js/polyfill.min.js"></script>
</head>
<body>
@ -26,7 +26,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.bd56e484.js"></script>
<script src="/react/build/umi.f017b396.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -32907,7 +32907,7 @@ class DynamicViewOverlay extends ViewEventHandler {
}
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/view/editorColorRegistry.js
var editorColorRegistry = __webpack_require__(30297);
var editorColorRegistry = __webpack_require__(95769);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/platform/theme/common/themeService.js
var themeService = __webpack_require__(49055);
;// CONCATENATED MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js
@ -48653,7 +48653,7 @@ var core_lineTokens = __webpack_require__(35521);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/core/position.js
var position = __webpack_require__(72146);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/view/editorColorRegistry.js
var editorColorRegistry = __webpack_require__(30297);
var editorColorRegistry = __webpack_require__(95769);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/viewLayout/viewLineRenderer.js
var viewLineRenderer = __webpack_require__(28750);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/viewModel/viewModel.js
@ -66934,7 +66934,7 @@ function collectBracketPairs(node, nodeOffset, nodeOffsetEnd, startOffset, endOf
}
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/view/editorColorRegistry.js
var editorColorRegistry = __webpack_require__(30297);
var editorColorRegistry = __webpack_require__(95769);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/platform/theme/common/themeService.js
var themeService = __webpack_require__(49055);
;// CONCATENATED MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/model/bracketPairs/colorizedBracketPairsDecorationProvider.js
@ -76385,7 +76385,7 @@ var SimpleServicesNLS;
/***/ }),
/***/ 30297:
/***/ 95769:
/*!***********************************************************************************************************!*\
!*** ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/view/editorColorRegistry.js ***!
\***********************************************************************************************************/
@ -78345,7 +78345,7 @@ var model = __webpack_require__(51682);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/model/textModel.js + 19 modules
var textModel = __webpack_require__(31276);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/view/editorColorRegistry.js
var editorColorRegistry = __webpack_require__(30297);
var editorColorRegistry = __webpack_require__(95769);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/nls.js
var nls = __webpack_require__(13268);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/platform/actions/common/actions.js
@ -81163,7 +81163,7 @@ var iconLabels = __webpack_require__(67069);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/model/textModel.js + 19 modules
var textModel = __webpack_require__(31276);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/view/editorColorRegistry.js
var editorColorRegistry = __webpack_require__(30297);
var editorColorRegistry = __webpack_require__(95769);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/platform/theme/common/colorRegistry.js
var colorRegistry = __webpack_require__(44350);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/platform/theme/common/themeService.js
@ -98088,7 +98088,7 @@ var textModel = __webpack_require__(31276);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/services/editorWorkerService.js
var editorWorkerService = __webpack_require__(52645);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/view/editorColorRegistry.js
var editorColorRegistry = __webpack_require__(30297);
var editorColorRegistry = __webpack_require__(95769);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/nls.js
var nls = __webpack_require__(13268);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/platform/theme/common/themeService.js
@ -99698,7 +99698,7 @@ var stringBuilder = __webpack_require__(48772);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/services/modeService.js
var modeService = __webpack_require__(64992);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/view/editorColorRegistry.js
var editorColorRegistry = __webpack_require__(30297);
var editorColorRegistry = __webpack_require__(95769);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/viewLayout/lineDecorations.js
var lineDecorations = __webpack_require__(81112);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/viewLayout/viewLineRenderer.js
@ -105481,7 +105481,7 @@ const peekViewEditorMatchHighlightBorder = (0,colorRegistry/* registerColor */.P
/* harmony import */ var _base_common_types_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../base/common/types.js */ 72999);
/* harmony import */ var _browser_editorBrowser_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../browser/editorBrowser.js */ 44525);
/* harmony import */ var _common_model_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/model.js */ 51682);
/* harmony import */ var _common_view_editorColorRegistry_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/view/editorColorRegistry.js */ 30297);
/* harmony import */ var _common_view_editorColorRegistry_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/view/editorColorRegistry.js */ 95769);
/* harmony import */ var _platform_theme_common_themeService_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../platform/theme/common/themeService.js */ 49055);
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
@ -123095,7 +123095,7 @@ function generateTokensCSSForColorMap(colorMap) {
}
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/common/view/editorColorRegistry.js
var editorColorRegistry = __webpack_require__(30297);
var editorColorRegistry = __webpack_require__(95769);
// EXTERNAL MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/platform/theme/common/colorRegistry.js
var colorRegistry = __webpack_require__(44350);
;// CONCATENATED MODULE: ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/editor/standalone/common/themes.js

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[45179,96495,25209],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[45179,96495,91090,25209],{
/***/ 76897:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[73183,32311,67497,38007,96495,25209],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[73183,32311,38007,96495,91090,25209],{
/***/ 3148:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[68665,32311,67497,38007,96495,25209],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[68665,32311,38007,96495,91090,25209],{
/***/ 3148:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[25022,96495,25209],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[25022,96495,91090,25209],{
/***/ 76897:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[97046,96495,25209],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[97046,96495,91090,25209],{
/***/ 76897:
/*!*****************************************************************************************************!*\

@ -1,242 +1,3 @@
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.15@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.15@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/ChatBox/components/answer.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.wrp___H70W8 {
font-size: 14px;
color: #434D6C;
transition: all 0.2s;
position: relative;
}
.wrp___H70W8 ol li {
list-style: auto;
}
.wrp___H70W8 hr {
border: none;
border-bottom: 1px solid #ccc;
}
.file-list___S5XYJ {
background: #FFF;
border: 1px solid #ccc;
border-radius: 4px;
padding: 8px 15px;
display: inline-flex;
align-items: center;
line-height: 1.1;
}
.ExtraEdit___K6Xf2 {
display: flex;
align-items: center;
position: absolute;
right: 0;
bottom: -67px;
}
.btn___Yiu8q {
display: flex;
align-items: center;
font-size: 16px;
color: #145DFF;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.btn___Yiu8q i {
color: #b7b7c2;
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.15@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.15@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/ChatBox/index.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___GmElr {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between____pbWi {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___COMWd {
align-items: center;
box-align: center;
}
.flex_box_center_end___lmAQf {
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;
}
.flex_box_column___OJb7M {
flex-direction: column;
box-orient: block-axis;
}
.ai-wrp___AEGoS {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
.loading-wanx___GtiUv {
display: flex;
}
.loading-wanx___GtiUv .dot-flashing___xJNVn {
width: 10px;
height: 10px;
border-radius: 50%;
margin-right: 8px;
background: #145DFF;
opacity: 0.5;
animation: dot-fade___KWn1a 1s infinite;
}
.loading-wanx___GtiUv .dot-flashing___xJNVn:nth-child(2) {
animation-delay: 0.3s;
}
.loading-wanx___GtiUv .dot-flashing___xJNVn:nth-child(3) {
animation-delay: 0.7s;
}
@keyframes dot-fade___KWn1a {
0%,
40% {
opacity: 0.5;
}
50% {
opacity: 8;
}
90%,
100% {
opacity: 0.5;
}
}
.footer-container___HTy33 {
padding-left: 50px;
padding-right: 21px;
flex-shrink: 0;
}
.footer-container___HTy33 .input-container___M88BT {
display: flex;
align-items: center;
height: 54px;
background: #FFFFFF;
box-shadow: 0px 0px 10px 0px rgba(226, 226, 226, 0.5);
border-radius: 8px;
border: 1px solid #145DFF;
padding: 0 20px;
}
.footer-container___HTy33 .input-container___M88BT .upload-btn___fKRCG {
width: 40px;
height: 40px;
background: linear-gradient(139deg, #5C64FF 0%, #6988F8 100%);
border-radius: 20px;
flex-shrink: 0;
}
.footer-container___HTy33 .input-container___M88BT .send-btn___yOKG5 {
width: 50px;
height: 34px;
background: linear-gradient(139deg, #5C64FF 0%, #6988F8 100%);
border-radius: 17px;
}
.footer-container___HTy33 .input-container___M88BT .send-btn___yOKG5:disabled {
background: #d2d2d2;
}
.footer-container___HTy33 .input-container___M88BT textarea {
margin: 0 9px;
resize: none;
}
.footer-container___HTy33 .input-container___M88BT textarea::-webkit-input-placeholder {
color: #C1C1D9;
}
.footer-container___HTy33 .input-container___M88BT textarea:-ms-input-placeholder {
color: #C1C1D9;
}
.footer-container___HTy33 .input-container___M88BT textarea::-ms-input-placeholder {
color: #C1C1D9;
}
.footer-container___HTy33 .input-container___M88BT textarea::placeholder {
color: #C1C1D9;
}
.chat-container___pNTrU {
flex: 1 1;
width: 100%;
overflow: auto;
}
.chat-message___isXl8 {
padding: 10px;
}
.title___hXSVA {
font-size: 16px;
color: #333;
font-weight: normal;
}
#educoder .answerWrp___COjAb .anticon-close {
font-size: 16px;
color: #464F66;
}
#educoder .answerWrp___COjAb .ant-drawer-body {
padding: 20px 13px 23px 20px;
}
#educoder .answerWrp___COjAb .ant-drawer-header {
padding-left: 15px;
}
#educoder .answerWrp___COjAb .ant-list-item-meta-content {
flex: initial;
width: 1082px;
}
.li___PjMV3 {
display: flex;
margin-bottom: 20px;
}
.li___PjMV3 .img___wZqEA {
width: 40px;
height: 40px;
border-radius: 5px;
margin-right: 10px;
}
.li___PjMV3 .content___OlYYG {
width: 1082px;
background: #FFFFFF;
box-shadow: 0px 0px 10px 0px rgba(226, 226, 226, 0.5);
border-radius: 8px;
border: 1px solid rgba(20, 93, 255, 0.2);
padding: 16px;
}
.li___PjMV3 .content___OlYYG.user___rbSU1 {
border: none;
box-shadow: none;
padding: 9px 20px 0px 20px;
}
.li___PjMV3 .content___OlYYG.user___rbSU1 p {
margin: 0;
color: #145DFF;
}
.li___PjMV3 .content___OlYYG .container___hZAxN {
display: flex;
justify-content: space-between;
width: 100%;
margin-top: 10px;
}
.li___PjMV3 .content___OlYYG .container___hZAxN .item___Z9j46 {
flex: 1 1;
margin-right: 10px;
padding: 12px 14px;
height: 86px;
background: rgba(149, 189, 255, 0.1);
border: 1px solid rgba(149, 189, 255, 0.1);
border-radius: 8px;
cursor: pointer;
}
.li___PjMV3 .content___OlYYG .container___hZAxN .item___Z9j46:hover {
border: 1px solid #145DFF;
}
.li___PjMV3 .content___OlYYG .container___hZAxN .item___Z9j46:last-child {
margin-right: 0;
}
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.15@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.15@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Shixuns/Edit/body/Level/Challenges/EditQuestion/components/AddQuestion/index.less?modules ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/

@ -420,18 +420,16 @@ var modal = __webpack_require__(43418);
var es_radio = __webpack_require__(5112);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
var input = __webpack_require__(24650);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
var col = __webpack_require__(43604);
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
var markdown_editor = __webpack_require__(25598);
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 2 modules
var RenderHtml = __webpack_require__(25720);
// EXTERNAL MODULE: ./src/components/ChatBox/index.tsx + 7 modules
var ChatBox = __webpack_require__(93172);
// EXTERNAL MODULE: ./src/service/shixuns.ts
var shixuns = __webpack_require__(18548);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
var col = __webpack_require__(43604);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
var es_select = __webpack_require__(57809);
// EXTERNAL MODULE: ./src/utils/util.tsx
@ -1424,10 +1422,9 @@ var authority = __webpack_require__(66332);
var TabPane = tabs/* default */.Z.TabPane;
var NewCoursePage = function NewCoursePage(_ref) {
var _formValue$subject, _shixunsDetail$detail, _formValue$unity_3d_r;
var _formValue$subject, _formValue$unity_3d_r;
var shixunsDetail = _ref.shixunsDetail,
practiceSetting = _ref.practiceSetting,
dispatch = _ref.dispatch;
@ -1965,21 +1962,7 @@ var NewCoursePage = function NewCoursePage(_ref) {
className: EditQuestionmodules.mdWrap,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "task_pass",
label: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "mr10 font16",
children: "\u4EFB\u52A1\u8981\u6C42:"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$detail = shixunsDetail.detail) === null || _shixunsDetail$detail === void 0 ? void 0 : _shixunsDetail$detail.id) && /*#__PURE__*/(0,jsx_runtime.jsx)(ChatBox/* default */.Z, {
title: "AI\u751F\u6210",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
children: "AI\u751F\u6210"
})
})
})]
}),
label: "\u4EFB\u52A1\u8981\u6C42:",
rules: [{
required: true,
message: "请输入作业的简介"

@ -119,14 +119,12 @@ var message = __webpack_require__(8591);
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
var input = __webpack_require__(24650);
// 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/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
var col = __webpack_require__(43604);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js + 5 modules
var es_radio = __webpack_require__(5112);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
var es_select = __webpack_require__(57809);
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
@ -154,6 +152,8 @@ var objectWithoutProperties = __webpack_require__(39647);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/badge/index.js + 5 modules
var badge = __webpack_require__(49127);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/Form/AddTags/index.tsx
@ -219,8 +219,6 @@ var AddTags = function AddTags(_ref) {
});
};
/* harmony default export */ var Form_AddTags = (AddTags);
// EXTERNAL MODULE: ./src/components/ChatBox/index.tsx + 7 modules
var ChatBox = __webpack_require__(93172);
;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Level/Challenges/NewPractice/index.tsx
@ -240,14 +238,13 @@ var ChatBox = __webpack_require__(93172);
var mappingDifficulty = {
1: [100, 200],
2: [300, 400, 500, 600],
3: [700, 800, 900, 1000]
};
var NewPractice = function NewPractice(_ref) {
var _formValue$subject, _shixunsDetail$detail2, _shixunsDetail$detail3, _shixunsDetail$detail4, _shixunsDetail$detail5, _shixunsDetail$detail6;
var _formValue$subject, _shixunsDetail$detail2, _shixunsDetail$detail3, _shixunsDetail$detail4, _shixunsDetail$detail5;
var shixunsDetail = _ref.shixunsDetail,
dispatch = _ref.dispatch,
practiceSetting = _ref.practiceSetting;
@ -579,24 +576,7 @@ var NewPractice = function NewPractice(_ref) {
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "task_pass",
label: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "mr10",
children: "\u4EFB\u52A1\u8981\u6C42:"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$detail2 = shixunsDetail.detail) === null || _shixunsDetail$detail2 === void 0 ? void 0 : _shixunsDetail$detail2.id) && /*#__PURE__*/(0,jsx_runtime.jsx)(ChatBox/* default */.Z, {
title: "AI\u751F\u6210",
name: "AI\u751F\u6210"
// defaultData={[{ sender: "AI", hideTextEffect:true, text: `嗨,我是头歌智能助教,您的教学好帮手。我可以阅读您上传的教案,书籍等教学资料,并根据您的要求为您自动生成任务要求。` }]}
,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
children: "AI\u751F\u6210"
})
})
})]
}),
label: "\u4EFB\u52A1\u8981\u6C42:",
rules: [{
required: true,
message: "请输入作业的简介"
@ -636,7 +616,7 @@ var NewPractice = function NewPractice(_ref) {
children: "50%"
})]
})
}), formValue.unity_3d && ((_shixunsDetail$detail3 = shixunsDetail.detail) === null || _shixunsDetail$detail3 === void 0 ? void 0 : _shixunsDetail$detail3.identity) < 3 && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
}), formValue.unity_3d && ((_shixunsDetail$detail2 = shixunsDetail.detail) === null || _shixunsDetail$detail2 === void 0 ? void 0 : _shixunsDetail$detail2.identity) < 3 && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "unity_3d_routes",
label: "\u8DEF\u5F84:",
rules: [{
@ -645,7 +625,7 @@ var NewPractice = function NewPractice(_ref) {
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
bordered: false,
disabled: ((_shixunsDetail$detail4 = shixunsDetail.detail) === null || _shixunsDetail$detail4 === void 0 ? void 0 : _shixunsDetail$detail4.shixun_status) === 2,
disabled: ((_shixunsDetail$detail3 = shixunsDetail.detail) === null || _shixunsDetail$detail3 === void 0 ? void 0 : _shixunsDetail$detail3.shixun_status) === 2,
placeholder: "\u8BF7\u9009\u62E9\u7248\u672C\u5E93\u4E2D\u7684\u4EE3\u7801\u6587\u4EF6\u3002\u4F8B\uFF1A src/step1/HelloWorld.java"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
@ -657,7 +637,7 @@ var NewPractice = function NewPractice(_ref) {
message: "请选择难度系数"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
disabled: ((_shixunsDetail$detail5 = shixunsDetail.detail) === null || _shixunsDetail$detail5 === void 0 ? void 0 : _shixunsDetail$detail5.shixun_status) === 2,
disabled: ((_shixunsDetail$detail4 = shixunsDetail.detail) === null || _shixunsDetail$detail4 === void 0 ? void 0 : _shixunsDetail$detail4.shixun_status) === 2,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: 1,
children: "\u7B80\u5355"
@ -709,7 +689,7 @@ var NewPractice = function NewPractice(_ref) {
message: "请选择奖励经验值"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
disabled: ((_shixunsDetail$detail6 = shixunsDetail.detail) === null || _shixunsDetail$detail6 === void 0 ? void 0 : _shixunsDetail$detail6.shixun_status) === 2,
disabled: ((_shixunsDetail$detail5 = shixunsDetail.detail) === null || _shixunsDetail$detail5 === void 0 ? void 0 : _shixunsDetail$detail5.shixun_status) === 2,
bordered: false,
getPopupContainer: function getPopupContainer(trigger) {
return trigger.parentNode;

@ -145,242 +145,3 @@
bottom: 0px;
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.15@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.15@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/ChatBox/components/answer.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.wrp___H70W8 {
font-size: 14px;
color: #434D6C;
transition: all 0.2s;
position: relative;
}
.wrp___H70W8 ol li {
list-style: auto;
}
.wrp___H70W8 hr {
border: none;
border-bottom: 1px solid #ccc;
}
.file-list___S5XYJ {
background: #FFF;
border: 1px solid #ccc;
border-radius: 4px;
padding: 8px 15px;
display: inline-flex;
align-items: center;
line-height: 1.1;
}
.ExtraEdit___K6Xf2 {
display: flex;
align-items: center;
position: absolute;
right: 0;
bottom: -67px;
}
.btn___Yiu8q {
display: flex;
align-items: center;
font-size: 16px;
color: #145DFF;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.btn___Yiu8q i {
color: #b7b7c2;
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.15@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.15@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/ChatBox/index.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___GmElr {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between____pbWi {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___COMWd {
align-items: center;
box-align: center;
}
.flex_box_center_end___lmAQf {
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;
}
.flex_box_column___OJb7M {
flex-direction: column;
box-orient: block-axis;
}
.ai-wrp___AEGoS {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
.loading-wanx___GtiUv {
display: flex;
}
.loading-wanx___GtiUv .dot-flashing___xJNVn {
width: 10px;
height: 10px;
border-radius: 50%;
margin-right: 8px;
background: #145DFF;
opacity: 0.5;
animation: dot-fade___KWn1a 1s infinite;
}
.loading-wanx___GtiUv .dot-flashing___xJNVn:nth-child(2) {
animation-delay: 0.3s;
}
.loading-wanx___GtiUv .dot-flashing___xJNVn:nth-child(3) {
animation-delay: 0.7s;
}
@keyframes dot-fade___KWn1a {
0%,
40% {
opacity: 0.5;
}
50% {
opacity: 8;
}
90%,
100% {
opacity: 0.5;
}
}
.footer-container___HTy33 {
padding-left: 50px;
padding-right: 21px;
flex-shrink: 0;
}
.footer-container___HTy33 .input-container___M88BT {
display: flex;
align-items: center;
height: 54px;
background: #FFFFFF;
box-shadow: 0px 0px 10px 0px rgba(226, 226, 226, 0.5);
border-radius: 8px;
border: 1px solid #145DFF;
padding: 0 20px;
}
.footer-container___HTy33 .input-container___M88BT .upload-btn___fKRCG {
width: 40px;
height: 40px;
background: linear-gradient(139deg, #5C64FF 0%, #6988F8 100%);
border-radius: 20px;
flex-shrink: 0;
}
.footer-container___HTy33 .input-container___M88BT .send-btn___yOKG5 {
width: 50px;
height: 34px;
background: linear-gradient(139deg, #5C64FF 0%, #6988F8 100%);
border-radius: 17px;
}
.footer-container___HTy33 .input-container___M88BT .send-btn___yOKG5:disabled {
background: #d2d2d2;
}
.footer-container___HTy33 .input-container___M88BT textarea {
margin: 0 9px;
resize: none;
}
.footer-container___HTy33 .input-container___M88BT textarea::-webkit-input-placeholder {
color: #C1C1D9;
}
.footer-container___HTy33 .input-container___M88BT textarea:-ms-input-placeholder {
color: #C1C1D9;
}
.footer-container___HTy33 .input-container___M88BT textarea::-ms-input-placeholder {
color: #C1C1D9;
}
.footer-container___HTy33 .input-container___M88BT textarea::placeholder {
color: #C1C1D9;
}
.chat-container___pNTrU {
flex: 1 1;
width: 100%;
overflow: auto;
}
.chat-message___isXl8 {
padding: 10px;
}
.title___hXSVA {
font-size: 16px;
color: #333;
font-weight: normal;
}
#educoder .answerWrp___COjAb .anticon-close {
font-size: 16px;
color: #464F66;
}
#educoder .answerWrp___COjAb .ant-drawer-body {
padding: 20px 13px 23px 20px;
}
#educoder .answerWrp___COjAb .ant-drawer-header {
padding-left: 15px;
}
#educoder .answerWrp___COjAb .ant-list-item-meta-content {
flex: initial;
width: 1082px;
}
.li___PjMV3 {
display: flex;
margin-bottom: 20px;
}
.li___PjMV3 .img___wZqEA {
width: 40px;
height: 40px;
border-radius: 5px;
margin-right: 10px;
}
.li___PjMV3 .content___OlYYG {
width: 1082px;
background: #FFFFFF;
box-shadow: 0px 0px 10px 0px rgba(226, 226, 226, 0.5);
border-radius: 8px;
border: 1px solid rgba(20, 93, 255, 0.2);
padding: 16px;
}
.li___PjMV3 .content___OlYYG.user___rbSU1 {
border: none;
box-shadow: none;
padding: 9px 20px 0px 20px;
}
.li___PjMV3 .content___OlYYG.user___rbSU1 p {
margin: 0;
color: #145DFF;
}
.li___PjMV3 .content___OlYYG .container___hZAxN {
display: flex;
justify-content: space-between;
width: 100%;
margin-top: 10px;
}
.li___PjMV3 .content___OlYYG .container___hZAxN .item___Z9j46 {
flex: 1 1;
margin-right: 10px;
padding: 12px 14px;
height: 86px;
background: rgba(149, 189, 255, 0.1);
border: 1px solid rgba(149, 189, 255, 0.1);
border-radius: 8px;
cursor: pointer;
}
.li___PjMV3 .content___OlYYG .container___hZAxN .item___Z9j46:hover {
border: 1px solid #145DFF;
}
.li___PjMV3 .content___OlYYG .container___hZAxN .item___Z9j46:last-child {
margin-right: 0;
}

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[65549,32311,67497,96495,25209],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[65549,32311,96495,91090,25209],{
/***/ 76897:
/*!*****************************************************************************************************!*\

@ -1,4 +1,3 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[20700],{
/***/ 48217:
@ -7,6 +6,7 @@
\**********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Z: function() { return /* binding */ AsyncButton; }
/* harmony export */ });
@ -75,12 +75,13 @@ var AsyncButton = function AsyncButton(_ref) {
/***/ }),
/***/ 92411:
/***/ 7378:
/*!********************************************************!*\
!*** ./src/pages/tasks/Jupyter/index.tsx + 15 modules ***!
!*** ./src/pages/tasks/Jupyter/index.tsx + 17 modules ***!
\********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
@ -278,8 +279,34 @@ var DataSet = function DataSet(_ref2) {
var service = __webpack_require__(71217);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/CloseOutlined.js + 1 modules
var CloseOutlined = __webpack_require__(53043);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/FileTextOutlined.js + 1 modules
var FileTextOutlined = __webpack_require__(79920);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.4@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(74932);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/FileTextOutlined.js
// This icon file is generated automatically.
var FileTextOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z" } }] }, "name": "file-text", "theme": "outlined" };
/* harmony default export */ var asn_FileTextOutlined = (FileTextOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(1393);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/FileTextOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var FileTextOutlined_FileTextOutlined = function FileTextOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_FileTextOutlined
}));
};
/**![file-text](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1NC42IDI4OC42TDYzOS40IDczLjRjLTYtNi0xNC4xLTkuNC0yMi42LTkuNEgxOTJjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjgzMmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg2NDBjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzExLjNjMC04LjUtMy40LTE2LjctOS40LTIyLjd6TTc5MC4yIDMyNkg2MDJWMTM3LjhMNzkwLjIgMzI2em0xLjggNTYySDIzMlYxMzZoMzAydjIxNmE0MiA0MiAwIDAwNDIgNDJoMjE2djQ5NHpNNTA0IDYxOEgzMjBjLTQuNCAwLTggMy42LTggOHY0OGMwIDQuNCAzLjYgOCA4IDhoMTg0YzQuNCAwIDgtMy42IDgtOHYtNDhjMC00LjQtMy42LTgtOC04ek0zMTIgNDkwdjQ4YzAgNC40IDMuNiA4IDggOGgzODRjNC40IDAgOC0zLjYgOC04di00OGMwLTQuNC0zLjYtOC04LThIMzIwYy00LjQgMC04IDMuNi04IDh6IiAvPjwvc3ZnPg==) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(FileTextOutlined_FileTextOutlined);
if (false) {}
/* harmony default export */ var icons_FileTextOutlined = (RefIcon);
// EXTERNAL MODULE: ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/index.js
var _react_infinite_scroller_1_2_4_react_infinite_scroller = __webpack_require__(26724);
var _react_infinite_scroller_1_2_4_react_infinite_scroller_default = /*#__PURE__*/__webpack_require__.n(_react_infinite_scroller_1_2_4_react_infinite_scroller);
@ -427,7 +454,7 @@ var DataSet_DataSet = function DataSet(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: DataSetmodules.itemText,
title: item.title,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(FileTextOutlined/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(icons_FileTextOutlined, {
style: {
color: '#28b887',
fontSize: 25
@ -2405,6 +2432,7 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
\*****************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Jd: function() { return /* binding */ rebootEsc; },
/* harmony export */ a$: function() { return /* binding */ getDataSets; },
@ -2642,6 +2670,7 @@ function _getLatexFileTree() {
\*********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ BU: function() { return /* binding */ exitFull; },
/* harmony export */ Dj: function() { return /* binding */ requestFullScreen; },
@ -2738,6 +2767,322 @@ function IsFull() {
// }
// });
/***/ }),
/***/ 51581:
/*!****************************************************************************************************!*\
!*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/dist/InfiniteScroll.js ***!
\****************************************************************************************************/
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__(/*! react */ 59301);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(/*! prop-types */ 12708);
var _propTypes2 = _interopRequireDefault(_propTypes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var InfiniteScroll = function (_Component) {
_inherits(InfiniteScroll, _Component);
function InfiniteScroll(props) {
_classCallCheck(this, InfiniteScroll);
var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));
_this.scrollListener = _this.scrollListener.bind(_this);
_this.eventListenerOptions = _this.eventListenerOptions.bind(_this);
_this.mousewheelListener = _this.mousewheelListener.bind(_this);
return _this;
}
_createClass(InfiniteScroll, [{
key: 'componentDidMount',
value: function componentDidMount() {
this.pageLoaded = this.props.pageStart;
this.options = this.eventListenerOptions();
this.attachScrollListener();
}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate() {
if (this.props.isReverse && this.loadMore) {
var parentElement = this.getParentElement(this.scrollComponent);
parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;
this.loadMore = false;
}
this.attachScrollListener();
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
this.detachScrollListener();
this.detachMousewheelListener();
}
}, {
key: 'isPassiveSupported',
value: function isPassiveSupported() {
var passive = false;
var testOptions = {
get passive() {
passive = true;
}
};
try {
document.addEventListener('test', null, testOptions);
document.removeEventListener('test', null, testOptions);
} catch (e) {
// ignore
}
return passive;
}
}, {
key: 'eventListenerOptions',
value: function eventListenerOptions() {
var options = this.props.useCapture;
if (this.isPassiveSupported()) {
options = {
useCapture: this.props.useCapture,
passive: true
};
}
return options;
}
// Set a defaut loader for all your `InfiniteScroll` components
}, {
key: 'setDefaultLoader',
value: function setDefaultLoader(loader) {
this.defaultLoader = loader;
}
}, {
key: 'detachMousewheelListener',
value: function detachMousewheelListener() {
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = this.scrollComponent.parentNode;
}
scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
}
}, {
key: 'detachScrollListener',
value: function detachScrollListener() {
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = this.getParentElement(this.scrollComponent);
}
scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
}
}, {
key: 'getParentElement',
value: function getParentElement(el) {
var scrollParent = this.props.getScrollParent && this.props.getScrollParent();
if (scrollParent != null) {
return scrollParent;
}
return el && el.parentNode;
}
}, {
key: 'filterProps',
value: function filterProps(props) {
return props;
}
}, {
key: 'attachScrollListener',
value: function attachScrollListener() {
var parentElement = this.getParentElement(this.scrollComponent);
if (!this.props.hasMore || !parentElement) {
return;
}
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = parentElement;
}
scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
if (this.props.initialLoad) {
this.scrollListener();
}
}
}, {
key: 'mousewheelListener',
value: function mousewheelListener(e) {
// Prevents Chrome hangups
// See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257
if (e.deltaY === 1 && !this.isPassiveSupported()) {
e.preventDefault();
}
}
}, {
key: 'scrollListener',
value: function scrollListener() {
var el = this.scrollComponent;
var scrollEl = window;
var parentNode = this.getParentElement(el);
var offset = void 0;
if (this.props.useWindow) {
var doc = document.documentElement || document.body.parentNode || document.body;
var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;
if (this.props.isReverse) {
offset = scrollTop;
} else {
offset = this.calculateOffset(el, scrollTop);
}
} else if (this.props.isReverse) {
offset = parentNode.scrollTop;
} else {
offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;
}
// Here we make sure the element is visible as well as checking the offset
if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {
this.detachScrollListener();
this.beforeScrollHeight = parentNode.scrollHeight;
this.beforeScrollTop = parentNode.scrollTop;
// Call loadMore after detachScrollListener to allow for non-async loadMore functions
if (typeof this.props.loadMore === 'function') {
this.props.loadMore(this.pageLoaded += 1);
this.loadMore = true;
}
}
}
}, {
key: 'calculateOffset',
value: function calculateOffset(el, scrollTop) {
if (!el) {
return 0;
}
return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);
}
}, {
key: 'calculateTopPosition',
value: function calculateTopPosition(el) {
if (!el) {
return 0;
}
return el.offsetTop + this.calculateTopPosition(el.offsetParent);
}
}, {
key: 'render',
value: function render() {
var _this2 = this;
var renderProps = this.filterProps(this.props);
var children = renderProps.children,
element = renderProps.element,
hasMore = renderProps.hasMore,
initialLoad = renderProps.initialLoad,
isReverse = renderProps.isReverse,
loader = renderProps.loader,
loadMore = renderProps.loadMore,
pageStart = renderProps.pageStart,
ref = renderProps.ref,
threshold = renderProps.threshold,
useCapture = renderProps.useCapture,
useWindow = renderProps.useWindow,
getScrollParent = renderProps.getScrollParent,
props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);
props.ref = function (node) {
_this2.scrollComponent = node;
if (ref) {
ref(node);
}
};
var childrenArray = [children];
if (hasMore) {
if (loader) {
isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);
} else if (this.defaultLoader) {
isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);
}
}
return _react2.default.createElement(element, props, childrenArray);
}
}]);
return InfiniteScroll;
}(_react.Component);
InfiniteScroll.propTypes = {
children: _propTypes2.default.node.isRequired,
element: _propTypes2.default.node,
hasMore: _propTypes2.default.bool,
initialLoad: _propTypes2.default.bool,
isReverse: _propTypes2.default.bool,
loader: _propTypes2.default.node,
loadMore: _propTypes2.default.func.isRequired,
pageStart: _propTypes2.default.number,
ref: _propTypes2.default.func,
getScrollParent: _propTypes2.default.func,
threshold: _propTypes2.default.number,
useCapture: _propTypes2.default.bool,
useWindow: _propTypes2.default.bool
};
InfiniteScroll.defaultProps = {
element: 'div',
hasMore: false,
initialLoad: true,
pageStart: 0,
ref: null,
threshold: 250,
useWindow: true,
isReverse: false,
useCapture: false,
loader: null,
getScrollParent: null
};
exports["default"] = InfiniteScroll;
module.exports = exports['default'];
/***/ }),
/***/ 26724:
/*!**************************************************************************************!*\
!*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/index.js ***!
\**************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 51581)
/***/ })
}]);

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[93665,11084,21363,93172],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[93665,11084,21363],{
/***/ 15646:
/*!*********************************!*\
@ -87,955 +87,6 @@ var apiPref = _utils_env__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.API_SE
/***/ }),
/***/ 93172:
/*!******************************************************!*\
!*** ./src/components/ChatBox/index.tsx + 7 modules ***!
\******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ ChatBox; }
});
// 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/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/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/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/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var es_message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js + 24 modules
var upload = __webpack_require__(53326);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/drawer/index.js + 9 modules
var drawer = __webpack_require__(43428);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
var input = __webpack_require__(24650);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(63350);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(39647);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/_react-markdown@9.0.1@react-markdown/lib/index.js + 129 modules
var lib = __webpack_require__(67050);
// EXTERNAL MODULE: ./node_modules/_react-syntax-highlighter@15.5.0@react-syntax-highlighter/dist/esm/prism.js + 5 modules
var prism = __webpack_require__(50457);
// EXTERNAL MODULE: ./node_modules/_react-syntax-highlighter@15.5.0@react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus.js
var vsc_dark_plus = __webpack_require__(59455);
// EXTERNAL MODULE: ./node_modules/_react-copy-to-clipboard@5.0.2@react-copy-to-clipboard/lib/index.js
var _react_copy_to_clipboard_5_0_2_react_copy_to_clipboard_lib = __webpack_require__(56102);
;// CONCATENATED MODULE: ./src/components/ChatBox/components/answer.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var answermodules = ({"wrp":"wrp___H70W8","file-list":"file-list___S5XYJ","ExtraEdit":"ExtraEdit___K6Xf2","btn":"btn___Yiu8q"});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
var col = __webpack_require__(43604);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/FileWordOutlined.js + 1 modules
var FileWordOutlined = __webpack_require__(63217);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/ChatBox/components/answer.tsx
var _excluded = ["node", "inline", "className", "children"];
var TypingCodeComponent = function TypingCodeComponent(_ref) {
var onCallback = _ref.onCallback,
scrollBox = _ref.scrollBox,
Data = _ref.Data,
extraEdit = _ref.extraEdit;
var _Data$allowCopy = Data.allowCopy,
allowCopy = _Data$allowCopy === void 0 ? false : _Data$allowCopy,
fileList = Data.fileList,
_Data$hideTextEffect = Data.hideTextEffect,
hideTextEffect = _Data$hideTextEffect === void 0 ? false : _Data$hideTextEffect,
_Data$text = Data.text,
text = _Data$text === void 0 ? "" : _Data$text;
var _useState = (0,_react_17_0_2_react.useState)(''),
_useState2 = slicedToArray_default()(_useState, 2),
content = _useState2[0],
setContent = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(true),
_useState4 = slicedToArray_default()(_useState3, 2),
isTyping = _useState4[0],
setIsTyping = _useState4[1];
(0,_react_17_0_2_react.useEffect)(function () {
if (!text) return;
setIsTyping(true);
var typeContent = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var i;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
i = 0;
case 1:
if (!(i < text.length)) {
_context.next = 8;
break;
}
setContent(text.substring(0, i + 1) + (text.length - 1 > i ? ' __' : ""));
_context.next = 5;
return new Promise(function (resolve) {
return setTimeout(resolve, 30);
});
case 5:
i++;
_context.next = 1;
break;
case 8:
setIsTyping(false);
onCallback === null || onCallback === void 0 || onCallback(Data);
case 10:
case "end":
return _context.stop();
}
}, _callee);
}));
return function typeContent() {
return _ref2.apply(this, arguments);
};
}();
if (hideTextEffect) {
setContent(text);
} else {
typeContent();
}
return function () {
return setContent('');
};
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
if (scrollBox.current) {
scrollBox.current.scrollTo({
top: scrollBox.current.scrollHeight,
behavior: "smooth"
});
}
}, [content]);
var bytesToSize = function bytesToSize(bytes) {
if (bytes === 0) return '0 B';
var k = 1024;
var sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
var i = Math.floor(Math.log(bytes) / Math.log(k));
return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "".concat(answermodules.wrp, " fadeIn animated"),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(lib/* Markdown */.U, {
components: {
code: function code(_ref3) {
var node = _ref3.node,
inline = _ref3.inline,
className = _ref3.className,
children = _ref3.children,
props = objectWithoutProperties_default()(_ref3, _excluded);
var match = /language-(\w+)/.exec(className || '');
return !inline && match ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
position: 'relative'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(_react_copy_to_clipboard_5_0_2_react_copy_to_clipboard_lib.CopyToClipboard, {
text: String(children).replace(/\n$/, ''),
onCopy: function onCopy() {
return es_message/* default */.ZP.success({
content: '复制成功',
key: "copy"
});
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("button", {
style: {
position: 'absolute',
top: 0,
right: 0,
padding: '4px 8px',
borderRadius: '0 0 0 5px',
border: 'none',
backgroundColor: '#007bff',
color: '#fff',
cursor: 'pointer',
fontSize: "12px"
},
children: "\u590D\u5236"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(prism/* default */.Z, objectSpread2_default()(objectSpread2_default()({
style: vsc_dark_plus/* default */.Z,
language: match[1],
PreTag: "div",
showLineNumbers: true,
lineNumberStyle: {
minWidth: '40px'
}
}, props), {}, {
children: String(children || "").replace(/\n$/, '')
}))]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("code", objectSpread2_default()(objectSpread2_default()({
className: className
}, props), {}, {
children: children
}));
}
},
children: content
}), fileList && !isTyping && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: "".concat(answermodules["file-list"], " animated fadeIn"),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(FileWordOutlined/* default */.Z, {
className: "font20 mr10"
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [fileList === null || fileList === void 0 ? void 0 : fileList.name, /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), bytesToSize(fileList === null || fileList === void 0 ? void 0 : fileList.size)]
})]
}), !isTyping && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: answermodules.ExtraEdit,
children: [extraEdit === null || extraEdit === void 0 ? void 0 : extraEdit(Data), allowCopy && /*#__PURE__*/(0,jsx_runtime.jsx)(_react_copy_to_clipboard_5_0_2_react_copy_to_clipboard_lib.CopyToClipboard, {
text: String(content).replace(/\n$/, ''),
onCopy: function onCopy() {
return es_message/* default */.ZP.success({
content: '复制成功',
key: "copy"
});
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: answermodules.btn,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fuzhi3 mr5"
}), "\u590D\u5236"]
})
})]
})]
});
};
/* harmony default export */ var answer = (TypingCodeComponent);
;// CONCATENATED MODULE: ./src/components/ChatBox/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var ChatBoxmodules = ({"flex_box_center":"flex_box_center___GmElr","flex_space_between":"flex_space_between____pbWi","flex_box_vertical_center":"flex_box_vertical_center___COMWd","flex_box_center_end":"flex_box_center_end___lmAQf","flex_box_column":"flex_box_column___OJb7M","ai-wrp":"ai-wrp___AEGoS","loading-wanx":"loading-wanx___GtiUv","dot-flashing":"dot-flashing___xJNVn","dot-fade":"dot-fade___KWn1a","footer-container":"footer-container___HTy33","input-container":"input-container___M88BT","upload-btn":"upload-btn___fKRCG","send-btn":"send-btn___yOKG5","chat-container":"chat-container___pNTrU","chat-message":"chat-message___isXl8","title":"title___hXSVA","answerWrp":"answerWrp___COjAb","li":"li___PjMV3","img":"img___wZqEA","content":"content___OlYYG","user":"user___rbSU1","container":"container___hZAxN","item":"item___Z9j46"});
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(57964);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(80348);
;// CONCATENATED MODULE: ./src/components/ChatBox/components/icon.tsx
var DraggableImage = function DraggableImage(_ref) {
var src = _ref.src,
onClick = _ref.onClick;
var imgRef = (0,_react_17_0_2_react.useRef)(null);
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
isDragging = _useState2[0],
setIsDragging = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)({
x: 20,
y: window.innerHeight * 0.62
}),
_useState4 = slicedToArray_default()(_useState3, 2),
position = _useState4[0],
setPosition = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)({
x: 20,
y: window.innerHeight * 0.62
}),
_useState6 = slicedToArray_default()(_useState5, 2),
startPosition = _useState6[0],
setStartPosition = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)({
x: 20,
y: window.innerHeight * 0.62
}),
_useState8 = slicedToArray_default()(_useState7, 2),
mouseStart = _useState8[0],
setMouseStart = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
hasDragged = _useState10[0],
setHasDragged = _useState10[1];
(0,_react_17_0_2_react.useEffect)(function () {
var handleMouseMove = function handleMouseMove(e) {
if (isDragging) {
var _imgRef$current;
var deltaY = e.clientY - mouseStart.y;
var newY = startPosition.y + deltaY;
var maxY = window.innerHeight - (((_imgRef$current = imgRef.current) === null || _imgRef$current === void 0 ? void 0 : _imgRef$current.offsetHeight) || 0) - 50;
var minY = 50;
if (newY < minY) newY = minY;
if (newY > maxY) newY = maxY;
requestAnimationFrame(function () {
setPosition({
x: 20,
y: newY
});
});
setHasDragged(true);
}
};
var handleMouseUp = function handleMouseUp() {
setIsDragging(false);
};
document.addEventListener('mousemove', handleMouseMove);
document.addEventListener('mouseup', handleMouseUp);
return function () {
document.removeEventListener('mousemove', handleMouseMove);
document.removeEventListener('mouseup', handleMouseUp);
};
}, [isDragging, mouseStart, startPosition]);
var handleMouseDown = function handleMouseDown(e) {
setIsDragging(true);
setMouseStart({
x: e.clientX,
y: e.clientY
});
setStartPosition(position);
setHasDragged(false);
};
var handleMouseUp = function handleMouseUp(e) {
setIsDragging(false);
if (!hasDragged && onClick) {
onClick(e);
}
};
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
position: 'fixed',
top: position.y,
right: position.x,
zIndex: 2,
cursor: isDragging ? 'grabbing' : 'grab'
},
onMouseDown: handleMouseDown,
onMouseUp: handleMouseUp,
ref: imgRef,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: src || "/images/ai_teacher.png",
width: 60,
draggable: "false"
})
});
};
/* harmony default export */ var icon = (DraggableImage);
;// CONCATENATED MODULE: ./src/components/ChatBox/imgs/a.png
var a_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAYCAYAAAD+vg1LAAAAAXNSR0IArs4c6QAAA1FJREFUSEuVlctvVVUYxX/f7UNCkYdMHDA0caCJMcaQXB4VLX2IRJCgRtGg+EpMHJOIiQ8mxqF/AQOdmKJNqy0EJVrkWLWi8piYQIxNHAAhaINy4XxLzzl737t7uTV4Jvve7HPWXt/61re2vXJaHwi24ZgAORSrq1pVrKr+F48X++XGwv3wTi7x9uh6e89ePq2rcnrjhxEoXctDAnA8JIJ7JBMOQhwf3WDr7KVTasjpaTKKIAnTWEnJONmPv2NlZRVGdnC91e3Fk2pI9DTLDWUvYJ5I0qmiVDIg+3ij1e2Fn9XwAFxK6PyKKkmb+obfBaNS44J6YC7R5+L25oGQjfVb3fb8pIZ7xVjGJwfute1Vm27u2Tqupd0ruVT0KfQhG3vA6vbcjy0pwqkXSymjJJF5YHqDFLBEzq0p4/FNBfCJwLhdxwSwo2PCftnAwhqt77OJh6xuu39oafxfjalET1wRHBK1TiyZfVoAPztbSRE/7OSG1GILfJzYL5VicsDq9sz3bcBwXoUrFpu8fEHZBeE+d5YlA5RNbra67fqu1Txg4sO1tvXm/FC9NXJUayznt+YQGdlUAfz0t4nGhYpizhPGiV8X5kj0MSyXsyqpMDs8ZHV7qgCOPo7lL26t5tAs1mhEdnjY6vbkN4mPU8t1Am+3pHFJOUfcmMNZ7WIQce7ISAC+gXFrXFuRmTQzjPy7XSvZf+Es6lvFHbpGfmWec0uX0//5sE3ZE1nQOOSsxHwzwFo6opxewS3Blq9Nbrb3Bw9pL7BXYkWZIcYZOc8f3WIztvN4KzYNJkY3dHbF0JRu6+rmgmB6csD6Bw9pH+KdZnRWWTMv53dyHradX1fNC2Obu/ilzO54S8RKKPNgDcauv7oY621w3p0l0Q2IP2rG0HXnVYm/bcexinG8jtKxTaapOc44d8tY7c6XgnGJR1zM18SwGyOes0/ipD023Zq8jhZqm8A85y7VWGbOjBvDOHdizEoMeM6boYJjtn1aV71oTIfLsUNEYsaeFZc5cLGPuaJpVmNHfp37Jd6Kl4PVeN0e/Uof4WxzqOHhNk7s1uG2PvPFDPc8uJYt7hyU6G4LrhM9DTba/8mF9nc3faZ1+TXe+Ffr+wR/mhi90mD/7ON2+R9W5V2x0b6OvQAAAABJRU5ErkJggg==";
;// CONCATENATED MODULE: ./src/components/ChatBox/imgs/b.png
var b_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAYAAAD6S912AAAAAXNSR0IArs4c6QAAA6VJREFUSEuVlVtoXGUUhdc6SbQmRFPb2pDLdCaN0D6oIFpSiAgqUkWhbxbEWiQ+iA8iFCWQUoo22mCxL4JUYkJBSalWEHshXqLRqSYiSkHQJp2ZtEKrpMVC0Gb+y9IzZ850TpwUHJiHc/k/1t5r7X2I6/zeaNPqunrsdcBWKzU58lTRY2DPb5xe7hiXezC8Ws0LjZg20gZHwABwACy4aIEHXzvHbK2zywLfTKnfSYMhzJZA5T8BD07tm2PP/wLu79QJS22JQSV1FTh1mWgcLfDqUmhJ4W4o2AP66of7Un7SAvdFZVbDouuAXHmgwD/jMzGDI2mtKDp95MmvnjvH1+MXBlP61FK95b7BQgmwCdh6MMcr4fvb2tSpG3Vc4k6+s04Z4/G1gdo9OPDiee59ZZ02SrjXEs3lki8UgYIHNofmeMIZIteZx2e5LnQYrwlLdHlqqFTyWx3qXiQmLNVhwW8d0GMhxj1zYLZIHAtNCu/FbTDADw681UIZT+0/mq/bWXF5qFPrHXHKQLct7VsINCEQGqx2PE6AI4eO5vhyKK4CFMRXU7hsoZZrbkYG1AJWu+48H/h4jhMJ4GC7Vi3Waf5amVXZC5g1ihTWct2JzxwvcCQJ7Naav4z+SIS4HBkXMGuJY9aXS64KezkFfeN5DieA/d1aoypgtRLHSKEt93Dp9Diw7/MYuDullywQeKLJQANRz5JhjoGOocs876BZI7RacIOl6MW+L2PgQMpbS9RVIDWmwpPZIjAi4vcPcvwkDv9DXbrDAu/+C387GwP7U3rMABTQUqQO1TIlVHg4z94QtGW9tjn5hx2DBUOM+jrMWIO7pnL8JtHDFzJaa7wuJiJTCTGzH+bZ+2jGjTngCUuWRtGB1pLPfneWo7HqSg5D4N/SxaUuRwaUSj7goSPRpIRzHUEtuRA0MD39Cy8lFG5v16r6Bs3X3C5k1gI/OfjnK6DEfgweOX2WJxPA8OLptL9ggdbqsssTkXXiF4baFVUQbZ44Pl7Bpp9z/D6pMKNNDhq3wi3/yRmZdcKThjht4G9OLtvSrnx/ZjbYDjA8CuxIq8dAJx3R7KD3DLjVory6ImOyE7mgd3O37rdeI5bIRKYEJxy01kB3uwBjczPBU9yRVhjOKSs2OaDvSIGjj7ep0d+EjYsOzbY+/IbgyuQsf4ycVHBnBrdfbcClM2c4n0ppJW7QuIXuccAww9X9awYHBUwezvPQ9T6ryz1rSatlRb3GTMBd/wBBRVUxXeSVgwAAAABJRU5ErkJggg==";
;// CONCATENATED MODULE: ./src/components/ChatBox/imgs/c.png
var c_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAYCAYAAAARfGZ1AAAAAXNSR0IArs4c6QAABD9JREFUSEvNlG1MU2cUx/+3hVJKoZQCKTIGTBw6ZB1CNmg/MHkNoqAJe9fhDMvWkhZcjG4fMdnMkm2Ei4Diy8IyEUPUGCNDjSxx2XgHCxN0sooI0spLQ2lpe1vuXe5d1oFNVkj8sPPlSe4553fOc87/PgTWYIcPnwl2OJzfi8WiXJvN0cvjMaXV1eopX6mErwDWr9PVf5Wfr/xcpVIQIyMGpqXlxgWSVL/nK3eN8LpWtfrtkqiocNjtThw7drafJDVpzwVeUVH3Tmxs9HmlUkEMDT1g7t4d+6KmRvP1c4H/PZoTOwC6EcBRktSwp0/zGsvBg98Fut3BMn9/ysvncuESn4+PeTzMrSS7XALG6aTnGxs/WVr53QM4cuSkxG5frpdIxG+Fh4f4E2vaxr+omRmLy2KxXuLxHJrq6s/mWY8HodM13NyzR5mdmZlMUJQbLpfb57WfDbh16w7T0aH/hSTVmR54ZeXJbQkJ8v7y8iKYzVZYrXaYTGZYLEuIiAhFaGiQVyHWx8aIxYGQy8PA3pTNu3q1C1NTsyqSLP+N61yna3g3NzflfE5OCqan59HW1oPxBQoCaQgo0yxSN2+ASpXkKdDbex+d+kcQyCPgtlgRFQDs2pUOilpGZ+cIo9cbPiJJTRMH12obPigoSP1RqXwF16714J6DhzBVKnh+fqCdFIxtHcjbFodNm6IxMfEUV26PImpnDvgiIRj3Msx9Q4ilFpGevgXd3aPMwIChrLZWfdYL/s23FxG+twQZchGmKWCSAmwPHyPoziCKijJw/Xo/ZuMToEhJgJsBJpzgGpg81Yz9+7J9wyPL3kdYgB8cDEAzwMKkEcLuHhQXZ6C9vQ/mLUmIS3yR85ndwDLD4HH9D9i/N2s1vLKy7jWGIXbk56d9yY6FXYhBGAqZMpWbMZ9NvHIDb74cgc2JMRgfN6Gt7yGiSwpB8HkIIABT/++QmyahVCZx8MHBsaM0TV8kKirqW2ga8QUFaa+z8Lm5Ra6AkfFDQIQM9okpJMdIkZn5qmehXV2j6PvDiMDYF0CZFyCjbCguVsLlWkZXFwfvJwhi2GvmrMRYe/JkDgsLS4iMlEAmC/GSIitZo9GM4GAhoqPDQRAErFbHf8/8H/i6/yCwOv8/wfX6P5GYGAOhUICBgTFs3RoHgcCPnS2n65W27s5bW28jLy8VEkkQmpt/xu7dGRCJhDh9+ieUlRWsgrMj7e29/+xPdKIkKyu5dft2BfeerLTLl39FdnYKQkJEYAsVFr4BkSgATU03UVqa6wmlaRqzsxb2dszw8KN9tbXqc5xaDh06FS+Vih8cOJDHdzpdKx/LNeyV4SS4uLjEne3tffTMjDnp+HHtPc+Tq9XW1WzcuEGrULxEBAUJ1wBdHWKzOTA0ZGAMBmNjTY3601XvOduuTlevAfAhQRByVrfrMZqmTQBzTip9WltVVUWzuX8BL+8z38bSCP4AAAAASUVORK5CYII=";
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(88499);
;// CONCATENATED MODULE: ./src/components/ChatBox/index.tsx
var ChatBox_TypingCodeComponent = function TypingCodeComponent(_ref) {
var _taskData$challenge, _taskData$challenge2, _taskData$challenge3, _fileList$2, _fileList$3, _fileList$4;
var title = _ref.title,
description = _ref.description,
placeholder = _ref.placeholder,
hideUpload = _ref.hideUpload,
hideInputBox = _ref.hideInputBox,
aiIcon = _ref.aiIcon,
userIcon = _ref.userIcon,
children = _ref.children,
taskData = _ref.taskData,
name = _ref.name,
code = _ref.code,
globalSetting = _ref.globalSetting,
authority = _ref.authority,
_ref$isShowComponent = _ref.isShowComponent,
isShowComponent = _ref$isShowComponent === void 0 ? true : _ref$isShowComponent,
_ref$DrawerProps = _ref.DrawerProps,
DrawerProps = _ref$DrawerProps === void 0 ? {} : _ref$DrawerProps,
_ref$FetchUrl = _ref.FetchUrl,
FetchUrl = _ref$FetchUrl === void 0 ? 'https://ai-data.educoder.net/v1/chat-messages' : _ref$FetchUrl,
_ref$FetchData = _ref.FetchData,
FetchData = _ref$FetchData === void 0 ? {} : _ref$FetchData,
_ref$defaultGetData = _ref.defaultGetData,
defaultGetData = _ref$defaultGetData === void 0 ? false : _ref$defaultGetData,
_ref$extraEdit = _ref.extraEdit,
extraEdit = _ref$extraEdit === void 0 ? function () {
return null;
} : _ref$extraEdit,
_ref$isShowDefuatTips = _ref.isShowDefuatTips,
isShowDefuatTips = _ref$isShowDefuatTips === void 0 ? true : _ref$isShowDefuatTips,
isReview = _ref.isReview,
onOpen = _ref.onOpen,
loadingOption = _ref.loadingOption;
var _useState = (0,_react_17_0_2_react.useState)(['daiao', 'pu428f3pz', 'wangwei10061', 'pucmnw7fs', 'mlty7uhjf', 'pyf8v9u3c', "a411763600"]),
_useState2 = slicedToArray_default()(_useState, 2),
lookAiUser = _useState2[0],
setLookAiUser = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(null),
_useState4 = slicedToArray_default()(_useState3, 2),
student_work_id = _useState4[0],
setStudent_work_id = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
open = _useState6[0],
setOpen = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)([]),
_useState8 = slicedToArray_default()(_useState7, 2),
fileList = _useState8[0],
setFileList = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
loading = _useState10[0],
setIsLoading = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)([]),
_useState12 = slicedToArray_default()(_useState11, 2),
chatData = _useState12[0],
setChatData = _useState12[1];
var chatDataRef = (0,_react_17_0_2_react.useRef)(chatData);
var conversationIdRef = (0,_react_17_0_2_react.useRef)();
var scrollBox = (0,_react_17_0_2_react.useRef)();
var _useState13 = (0,_react_17_0_2_react.useState)(''),
_useState14 = slicedToArray_default()(_useState13, 2),
message = _useState14[0],
setMessage = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)(["".concat(taskData === null || taskData === void 0 || (_taskData$challenge = taskData.challenge) === null || _taskData$challenge === void 0 ? void 0 : _taskData$challenge.task_pass, "\uFF0C\u8BF7\u7ED9\u51FA\u7B54\u9898\u601D\u8003\u65B9\u5411\u3002\\n\\n\u4E0D\u8981\u7ED9\u51FA\u5B66\u751F\u6B63\u786E\u7B54\u6848\uFF0C\u4E0D\u8981\u7ED9\u51FA\u4EFB\u4F55\u4EE3\u7801")]),
_useState16 = slicedToArray_default()(_useState15, 2),
queryData = _useState16[0],
setQueryData = _useState16[1];
// const Authorization = ["Bearer app-Z8HFAfducmnrr3zO9961jqgB", `Bearer app-Z8HFAfducmnrr3zO9961jqgB`, `Bearer app-Z8HFAfducmnrr3zO9961jqgB`];
// const names = ["智能审题", `代码诊断`, `AI辅导`];
// const [inputs, setInputs] = useState<any>(["", taskData?.challenge?.task_pass, taskData?.challenge?.task_pass])
var isTpiAi = !!taskData;
var fastBtnItem = [{
img: a_namespaceObject,
name: '智能审题',
des: '快速智能拆解任务,提供解题思路',
Authorization: "Bearer app-Z8HFAfducmnrr3zO9961jqgB",
inputs: ""
}, {
img: b_namespaceObject,
name: '代码诊断',
des: '系统智能代码分析,提供修正建议',
Authorization: "Bearer app-Z8HFAfducmnrr3zO9961jqgB",
inputs: taskData === null || taskData === void 0 || (_taskData$challenge2 = taskData.challenge) === null || _taskData$challenge2 === void 0 ? void 0 : _taskData$challenge2.task_pass
}, {
img: c_namespaceObject,
name: 'AI辅导',
des: "为学生提供个性化智能学习辅导",
// des: '为学生提供个性化、智能化的学习辅导体验',
Authorization: "Bearer app-Z8HFAfducmnrr3zO9961jqgB",
inputs: taskData === null || taskData === void 0 || (_taskData$challenge3 = taskData.challenge) === null || _taskData$challenge3 === void 0 ? void 0 : _taskData$challenge3.task_pass
}];
var handleChange = function handleChange(_ref2) {
var newFileList = _ref2.fileList;
console.log(":newFileList:", newFileList);
setFileList(newFileList);
};
var UploadPorops = {
action: "https://ai-data.educoder.net/v1/datasets/dc9e6c03-a629-4e9e-bd81-06fb93c29aa1/document/create_by_file",
fileList: toConsumableArray_default()(fileList),
maxCount: 1,
onChange: handleChange,
showUploadList: false,
accept: ".doc,.docx,.xml,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",
beforeUpload: function beforeUpload(file) {
var allowedTypes = ['application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
// Word
'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
// Excel
'application/vnd.ms-powerpoint', 'application/vnd.openxmlformats-officedocument.presentationml.presentation']; // PowerPoint
var isOfficeFile = allowedTypes.includes(file.type);
if (!isOfficeFile) {
message.error('只能上传Office文档');
return Promise.reject();
}
return isOfficeFile;
},
headers: {
'Authorization': 'Bearer dataset-xBnNgFqcMjLGAXz7pFgXzGwY'
},
data: {
'data': JSON.stringify({
"indexing_technique": "high_quality",
"process_rule": {
"rules": {
"pre_processing_rules": [{
"id": "remove_extra_spaces",
"enabled": true
}, {
"id": "remove_urls_emails",
"enabled": true
}],
"segmentation": {
"separator": "###",
"max_tokens": 500
}
},
"mode": "custom"
}
})
}
};
var UploadReview = {
maxCount: 1,
showUploadList: false,
accept: ".doc,.docx,.md,.txt,.pdf",
beforeUpload: function beforeUpload(file) {
var _file$name;
var fileType = file === null || file === void 0 || (_file$name = file.name) === null || _file$name === void 0 || (_file$name = _file$name.split(".")) === null || _file$name === void 0 || (_file$name = _file$name.slice(-1)) === null || _file$name === void 0 || (_file$name = _file$name[0]) === null || _file$name === void 0 ? void 0 : _file$name.toLowerCase();
var allowedTypes = ["doc", "docx", "md", "pdf", "txt"];
var allowFile = allowedTypes.includes(fileType);
if (file.size == 0) {
es_message/* default */.ZP.warning('文件内容不能为空');
return upload/* default */.Z.LIST_IGNORE;
}
if (!allowFile) {
es_message/* default */.ZP.warning('目前支持txt、md、doc、docx、pdf文件');
return upload/* default */.Z.LIST_IGNORE;
}
return allowFile;
},
onChange: function onChange(_ref3) {
var newFileList = _ref3.fileList;
setFileList((newFileList === null || newFileList === void 0 ? void 0 : newFileList.filter(function (item) {
return (item === null || item === void 0 ? void 0 : item.status) === "done";
})) || []);
},
action: "".concat(env/* default */.Z === null || env/* default */.Z === void 0 ? void 0 : env/* default */.Z.API_SERVER, "/api/attachments.json")
};
(0,_react_17_0_2_react.useEffect)(function () {
chatDataRef.current = chatData;
}, [chatData]);
(0,_react_17_0_2_react.useEffect)(function () {
if (globalSetting !== null && globalSetting !== void 0 && globalSetting.setting) {
var _globalSetting$settin;
setLookAiUser([].concat(toConsumableArray_default()(lookAiUser), toConsumableArray_default()((globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.big_model_users) || [])));
}
}, [globalSetting === null || globalSetting === void 0 ? void 0 : globalSetting.setting]);
(0,_react_17_0_2_react.useEffect)(function () {
var _taskData$challenge4;
setQueryData(["".concat(taskData === null || taskData === void 0 || (_taskData$challenge4 = taskData.challenge) === null || _taskData$challenge4 === void 0 ? void 0 : _taskData$challenge4.task_pass), "".concat(code), "".concat(code)]);
}, [code]);
(0,_react_17_0_2_react.useEffect)(function () {
if (!(defaultGetData && (DrawerProps !== null && DrawerProps !== void 0 && DrawerProps.open || open) && FetchData !== null && FetchData !== void 0 && FetchData.student_work_id)) {
return;
}
if (student_work_id !== (FetchData === null || FetchData === void 0 ? void 0 : FetchData.student_work_id)) {
setChatData([{
text: '',
done: false,
loading: true,
key: Date.now(),
sender: "AI",
allowCopy: true
}]);
} else {
if (!!chatData.length) {
return;
}
setChatData([].concat(toConsumableArray_default()(chatData), [{
text: '',
done: false,
loading: true,
key: Date.now(),
sender: "AI",
allowCopy: true
}]));
}
getData();
setStudent_work_id(FetchData === null || FetchData === void 0 ? void 0 : FetchData.student_work_id);
}, [defaultGetData, open, chatData, DrawerProps === null || DrawerProps === void 0 ? void 0 : DrawerProps.open, FetchData === null || FetchData === void 0 ? void 0 : FetchData.student_work_id]);
var showDrawer = function showDrawer() {
setOpen(true);
};
var onClose = function onClose() {
setOpen(false);
};
var getData = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _fileList$filter;
var mes,
response,
_args = arguments;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
mes = _args.length > 0 && _args[0] !== undefined ? _args[0] : "";
_context.next = 3;
return (0,fetch/* default */.ZP)(FetchUrl, {
method: "post",
body: objectSpread2_default()({
"inputs": {
description: "",
name: name
},
query: mes,
"response_mode": "blocking",
"conversation_id": conversationIdRef.current || "",
"user": "abc",
"files": (fileList === null || fileList === void 0 || (_fileList$filter = fileList.filter(function (item) {
return (item === null || item === void 0 ? void 0 : item.status) == "done";
})) === null || _fileList$filter === void 0 ? void 0 : _fileList$filter.map(function (item) {
var _item$response;
return item === null || item === void 0 || (_item$response = item.response) === null || _item$response === void 0 ? void 0 : _item$response.id;
})) || []
}, FetchData),
mode: "cors",
headers: {
'Content-Type': 'application/json',
'Authorization': "Bearer app-Z8HFAfducmnrr3zO9961jqgB"
}
});
case 3:
response = _context.sent;
setIsLoading(false);
chatDataRef.current[chatDataRef.current.length - 1].text = response === null || response === void 0 ? void 0 : response.answer;
chatDataRef.current[chatDataRef.current.length - 1].loading = false;
chatDataRef.current[chatDataRef.current.length - 1].response = response;
conversationIdRef.current = response === null || response === void 0 ? void 0 : response.conversation_id;
setChatData(toConsumableArray_default()(chatDataRef.current));
case 10:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData() {
return _ref4.apply(this, arguments);
};
}();
var getTpiAiData = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(Data, num) {
var response;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
if (!loading) {
_context2.next = 2;
break;
}
return _context2.abrupt("return");
case 2:
setIsLoading(true);
setChatData([].concat(toConsumableArray_default()(chatData), [{
text: message,
done: false,
loading: true,
key: Date.now(),
sender: "AI",
allowCopy: true,
name: Data === null || Data === void 0 ? void 0 : Data.name
}]));
setTimeout(function () {
scrollBox.current.scrollTo({
top: scrollBox.current.scrollHeight,
behavior: "smooth"
});
});
_context2.next = 7;
return (0,fetch/* default */.ZP)(FetchUrl, {
method: "post",
body: {
"inputs": {
description: Data === null || Data === void 0 ? void 0 : Data.inputs,
name: Data === null || Data === void 0 ? void 0 : Data.name
// type: num
},
query: queryData[num],
// "query": `${taskData?.challenge?.task_pass}请根据这个描述内容,给出解题思路,请勿提供任何代码`,
"response_mode": "blocking",
// "conversation_id": conversationIdRef.current,
"user": "abc",
"files": []
},
mode: "cors",
headers: {
'Content-Type': 'application/json',
'Authorization': Data === null || Data === void 0 ? void 0 : Data.Authorization
}
});
case 7:
response = _context2.sent;
if (response !== null && response !== void 0 && response.answer) {
setIsLoading(false);
chatDataRef.current[chatDataRef.current.length - 1].text = response === null || response === void 0 ? void 0 : response.answer;
chatDataRef.current[chatDataRef.current.length - 1].loading = false;
chatDataRef.current[chatDataRef.current.length - 1].response = response;
conversationIdRef.current = response === null || response === void 0 ? void 0 : response.conversation_id;
setChatData(toConsumableArray_default()(chatDataRef.current));
}
case 9:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function getTpiAiData(_x, _x2) {
return _ref5.apply(this, arguments);
};
}();
var handleMessageChange = function handleMessageChange(e) {
setMessage(e.target.value);
};
var handleSendMessage = function handleSendMessage() {
if (message.trim() !== '') {
setMessage('');
setFileList([]);
setChatData([].concat(toConsumableArray_default()(chatData), [{
text: message,
done: false,
key: Date.now(),
sender: "user",
fileList: fileList[0]
}, {
text: message,
done: false,
loading: true,
key: Date.now(),
sender: "AI",
allowCopy: true
}]));
setIsLoading(true);
setTimeout(function () {
return getData(message);
}, 300);
}
};
var handleKeyPress = function handleKeyPress(e) {
if (e.key === 'Enter') {
var _fileList$;
e.preventDefault();
if (!!(fileList !== null && fileList !== void 0 && fileList.length) && (fileList === null || fileList === void 0 || (_fileList$ = fileList[0]) === null || _fileList$ === void 0 ? void 0 : _fileList$.status) !== "done" || loading) return;
handleSendMessage();
}
};
// // 用户都没有权限了,这块可以直接隐藏掉,就可以不需要做下面的任何事情了
// if (!isShowComponent || !(authority || lookAiUser.includes(userInfo()?.login))) { return <></> }
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [children ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
onClick: onOpen || showDrawer,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {}), children]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(icon, {
onClick: onOpen || showDrawer
}), /*#__PURE__*/(0,jsx_runtime.jsx)(drawer/* default */.Z, {
className: "".concat(DrawerProps !== null && DrawerProps !== void 0 && DrawerProps.open || open ? "body-overflow-hidden" : "", " ").concat(ChatBoxmodules.answerWrp),
width: (DrawerProps === null || DrawerProps === void 0 ? void 0 : DrawerProps.width) || 860,
title: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: ChatBoxmodules.title,
children: title || "头歌AI"
}),
onClose: (DrawerProps === null || DrawerProps === void 0 ? void 0 : DrawerProps.onClose) || onClose,
open: (DrawerProps === null || DrawerProps === void 0 ? void 0 : DrawerProps.open) || open,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ChatBoxmodules["ai-wrp"],
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
ref: scrollBox,
className: ChatBoxmodules["chat-container"],
children: [isShowDefuatTips && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ChatBoxmodules.li,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: ChatBoxmodules.img,
src: aiIcon || "/images/ai_icon.png"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ChatBoxmodules.content,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "c-grey-333 font22",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "mr5",
children: "\uD83D\uDC4B"
}), "\u55E8\uFF0C\u6211\u662F\u5934\u6B4C", isTpiAi ? title : '智能助教', "\uFF0C\u60A8\u7684\u6559\u5B66\u597D\u5E2E\u624B\u3002"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "font16 mt20",
style: {
color: '#434D6C'
},
children: description || '我可以阅读您上传的教案,书籍等教学资料,并根据您的要求为您自动生成任务要求。'
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "font16 mt20",
style: {
color: '#434D6C'
},
children: "\u5FEB\u6765\u8BD5\u4E00\u4E0B\u5427\uFF5E"
}), isTpiAi && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ChatBoxmodules.container,
children: fastBtnItem.map(function (e, i) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
onClick: function onClick() {
return getTpiAiData(e, i);
},
className: ChatBoxmodules.item,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: "mr10",
src: e.img
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#232B40',
fontSize: 16,
fontWeight: 600
},
children: e.name
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt10",
style: {
color: "#434D6C"
},
children: e.des
})]
}, i);
})
})]
})]
}), chatData === null || chatData === void 0 ? void 0 : chatData.map(function (item, i) {
var _chatData;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ChatBoxmodules.li,
style: item.sender === 'AI' && ((_chatData = chatData[i + 1]) === null || _chatData === void 0 ? void 0 : _chatData.sender) !== 'user' ? {
marginBottom: 50
} : {},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: ChatBoxmodules.img,
src: item.sender === "AI" ? aiIcon || "/images/ai_icon.png" : userIcon || "/images/ai_user.png"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "".concat(ChatBoxmodules.content, " ").concat(item.sender === "AI" ? '' : ChatBoxmodules.user),
children: item.loading ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ChatBoxmodules["loading-wanx"],
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ChatBoxmodules["dot-flashing"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ChatBoxmodules["dot-flashing"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ChatBoxmodules["dot-flashing"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
marginTop: 10,
color: '#9096A3'
},
children: (loadingOption === null || loadingOption === void 0 ? void 0 : loadingOption.text) || "请耐心等待,目前高峰期体验人数过多,我们已记录下您的需求,稍后将自动为您生成答案。"
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [!!item.name && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mb10 font18",
style: {
color: '#232B40',
fontWeight: 600
},
children: item === null || item === void 0 ? void 0 : item.name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(answer, {
scrollBox: scrollBox,
Data: item,
extraEdit: extraEdit
})]
})
})]
}, i);
})]
}), !hideInputBox && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "".concat(ChatBoxmodules['footer-container'], " ").concat(fileList.length >= 1 && ChatBoxmodules['has-file']),
children: [!!fileList.length && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "pb5 pt5",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
title: fileList === null || fileList === void 0 || (_fileList$2 = fileList[0]) === null || _fileList$2 === void 0 ? void 0 : _fileList$2.name,
className: "mr10",
children: (0,util/* cutFileName */.tP)(fileList === null || fileList === void 0 || (_fileList$3 = fileList[0]) === null || _fileList$3 === void 0 ? void 0 : _fileList$3.name, 40)
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
onClick: function onClick() {
return setFileList([]);
},
className: "iconfont current icon-shanchu15 delete-hover c-red-ee4 font14"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: fileList.length ? {
paddingLeft: 0
} : {},
className: ChatBoxmodules['input-container'],
children: [!hideUpload && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ChatBoxmodules['footer-container-upload'],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, isReview ? UploadReview : UploadPorops), {}, {
children: !!(fileList !== null && fileList !== void 0 && fileList.length) ? null : /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: ChatBoxmodules['upload-btn'],
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shangchuan4 c-white"
})
})
}))
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.TextArea, {
rows: 1,
placeholder: placeholder || "在这里输入你问题吧~",
value: message,
bordered: false,
onChange: handleMessageChange,
onKeyPress: handleKeyPress
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: ChatBoxmodules['send-btn'],
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fasong2 c-white"
}),
disabled: !!(fileList !== null && fileList !== void 0 && fileList.length) && (fileList === null || fileList === void 0 || (_fileList$4 = fileList[0]) === null || _fileList$4 === void 0 ? void 0 : _fileList$4.status) !== "done" || loading,
onClick: handleSendMessage
})]
})]
})]
})
})]
});
};
/* harmony default export */ var ChatBox = ((0,_umi_production_exports.connect)(function (_ref6) {
var globalSetting = _ref6.globalSetting;
return {
globalSetting: globalSetting
};
})(ChatBox_TypingCodeComponent));
/***/ }),
/***/ 69971:
/*!****************************************!*\
!*** ./src/components/Hooks/index.tsx ***!
@ -9393,7 +8444,7 @@ var statistic = __webpack_require__(31797);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tour/index.js + 12 modules
var tour = __webpack_require__(77220);
var tour = __webpack_require__(65615);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./src/components/useInterval.tsx
@ -12899,8 +11950,6 @@ var spin = __webpack_require__(71418);
})
});
});
// EXTERNAL MODULE: ./src/components/ChatBox/index.tsx + 7 modules
var ChatBox = __webpack_require__(93172);
;// CONCATENATED MODULE: ./src/pages/tasks/choose-repository/test-cast-list/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var test_cast_listmodules = ({"choose-game-item":"choose-game-item___RYHdh","output-title-container":"output-title-container___P2NjC","output-title":"output-title___ZQJkv","test-case-list":"test-case-list___CYyHP","test-header":"test-header___fSQRn","active":"active___bY0Dq","active-debug":"active-debug___oeXMX","test-result":"test-result___DQXYd","markdown-body":"markdown-body____rqU_","success":"success___iuAG3","failer":"failer___axTtk","count":"count___B_kHY","test-case-item":"test-case-item___E3CU9","case-header":"case-header___xppld","iconfont":"iconfont___LO1VN","description":"description___j4efR","item-desc":"item-desc___ivltA","show":"show___ntNdM","item-tip":"item-tip___ETPck","arrow-down":"arrow-down___oQMCK","test-title":"test-title___mf3Df","arrow-right":"arrow-right___C6f8W","case-info":"case-info___yX5kK","test-case-run-header":"test-case-run-header___iHZR5","test-case-run-wrp":"test-case-run-wrp___qVT1y","diff-panel-container":"diff-panel-container___OEdXu","line-break":"line-break___Ww59n","empty":"empty___izbJX","alert":"alert___jv5_R"});
@ -14882,7 +13931,6 @@ var code_repository_excluded = ["taskData", "moveY", "isHtml", "isNotice", "onRe
var code_repository_initialState = {
@ -15553,11 +14601,6 @@ function code_repository_reducer(state, action) {
setShowCaseList(true);
}
}))
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ChatBox/* default */.Z, {
title: "\u667A\u80FD\u5BFC\u5E08",
taskData: taskData,
code: content,
description: "\u6211\u53EF\u4EE5\u8FD0\u7528\u667A\u80FD\u5BA1\u9898\u7684\u529F\u80FD\uFF0C\u5E2E\u52A9\u60A8\u8F7B\u677E\u7406\u89E3\u5E76\u62C6\u89E3\u5B9E\u8DF5\u4EFB\u52A1\uFF0C\u63D0\u4F9B\u6E05\u6670\u660E\u4E86\u7684\u89E3\u9898\u601D\u8DEF\u3002\u5F53\u60A8\u5728\u7F16\u5199\u4EE3\u7801\u8FC7\u7A0B\u4E2D\u9047\u5230\u95EE\u9898\u65F6\uFF0C\u6211\u53EF\u4EE5\u63D0\u4F9B\u4EE3\u7801\u8BCA\u65AD\u670D\u52A1\uFF0C\u5206\u6790\u60A8\u7684\u4EE3\u7801\u5E76\u7ED9\u51FA\u5177\u4F53\u7684\u4FEE\u6B63\u5EFA\u8BAE\u3002\u5982\u679C\u60A8\u9700\u8981\u8FDB\u4E00\u6B65\u7684\u5E2E\u52A9\uFF0C\u6211\u8FD8\u53EF\u4EE5\u63D0\u4F9B\u8BE6\u7EC6\u7684AI\u6307\u5BFC\uFF0C\u4E3A\u60A8\u91CF\u8EAB\u5B9A\u5236\u53C2\u8003\u7684\u89E3\u51B3\u65B9\u6848\u3002\u671F\u5F85\u4E0E\u60A8\u643A\u624B\u5171\u8FDB\uFF0C\u9AD8\u6548\u3001\u4F18\u8D28\u5730\u5B8C\u6210\u6BCF\u4E00\u9879\u5B9E\u8DF5\u4EFB\u52A1\uFF01"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(drawer/* default */.Z, {
rootClassName: choose_repositorymodules['setting-drawer'],

@ -4603,245 +4603,6 @@ ul.menu___sjQxY [class~='ant-dropdown-menu-item-active'] {
border: none;
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.15@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.15@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/ChatBox/components/answer.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.wrp___H70W8 {
font-size: 14px;
color: #434D6C;
transition: all 0.2s;
position: relative;
}
.wrp___H70W8 ol li {
list-style: auto;
}
.wrp___H70W8 hr {
border: none;
border-bottom: 1px solid #ccc;
}
.file-list___S5XYJ {
background: #FFF;
border: 1px solid #ccc;
border-radius: 4px;
padding: 8px 15px;
display: inline-flex;
align-items: center;
line-height: 1.1;
}
.ExtraEdit___K6Xf2 {
display: flex;
align-items: center;
position: absolute;
right: 0;
bottom: -67px;
}
.btn___Yiu8q {
display: flex;
align-items: center;
font-size: 16px;
color: #145DFF;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.btn___Yiu8q i {
color: #b7b7c2;
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.15@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.15@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/ChatBox/index.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___GmElr {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between____pbWi {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___COMWd {
align-items: center;
box-align: center;
}
.flex_box_center_end___lmAQf {
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;
}
.flex_box_column___OJb7M {
flex-direction: column;
box-orient: block-axis;
}
.ai-wrp___AEGoS {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
.loading-wanx___GtiUv {
display: flex;
}
.loading-wanx___GtiUv .dot-flashing___xJNVn {
width: 10px;
height: 10px;
border-radius: 50%;
margin-right: 8px;
background: #145DFF;
opacity: 0.5;
animation: dot-fade___KWn1a 1s infinite;
}
.loading-wanx___GtiUv .dot-flashing___xJNVn:nth-child(2) {
animation-delay: 0.3s;
}
.loading-wanx___GtiUv .dot-flashing___xJNVn:nth-child(3) {
animation-delay: 0.7s;
}
@keyframes dot-fade___KWn1a {
0%,
40% {
opacity: 0.5;
}
50% {
opacity: 8;
}
90%,
100% {
opacity: 0.5;
}
}
.footer-container___HTy33 {
padding-left: 50px;
padding-right: 21px;
flex-shrink: 0;
}
.footer-container___HTy33 .input-container___M88BT {
display: flex;
align-items: center;
height: 54px;
background: #FFFFFF;
box-shadow: 0px 0px 10px 0px rgba(226, 226, 226, 0.5);
border-radius: 8px;
border: 1px solid #145DFF;
padding: 0 20px;
}
.footer-container___HTy33 .input-container___M88BT .upload-btn___fKRCG {
width: 40px;
height: 40px;
background: linear-gradient(139deg, #5C64FF 0%, #6988F8 100%);
border-radius: 20px;
flex-shrink: 0;
}
.footer-container___HTy33 .input-container___M88BT .send-btn___yOKG5 {
width: 50px;
height: 34px;
background: linear-gradient(139deg, #5C64FF 0%, #6988F8 100%);
border-radius: 17px;
}
.footer-container___HTy33 .input-container___M88BT .send-btn___yOKG5:disabled {
background: #d2d2d2;
}
.footer-container___HTy33 .input-container___M88BT textarea {
margin: 0 9px;
resize: none;
}
.footer-container___HTy33 .input-container___M88BT textarea::-webkit-input-placeholder {
color: #C1C1D9;
}
.footer-container___HTy33 .input-container___M88BT textarea:-ms-input-placeholder {
color: #C1C1D9;
}
.footer-container___HTy33 .input-container___M88BT textarea::-ms-input-placeholder {
color: #C1C1D9;
}
.footer-container___HTy33 .input-container___M88BT textarea::placeholder {
color: #C1C1D9;
}
.chat-container___pNTrU {
flex: 1 1;
width: 100%;
overflow: auto;
}
.chat-message___isXl8 {
padding: 10px;
}
.title___hXSVA {
font-size: 16px;
color: #333;
font-weight: normal;
}
#educoder .answerWrp___COjAb .anticon-close {
font-size: 16px;
color: #464F66;
}
#educoder .answerWrp___COjAb .ant-drawer-body {
padding: 20px 13px 23px 20px;
}
#educoder .answerWrp___COjAb .ant-drawer-header {
padding-left: 15px;
}
#educoder .answerWrp___COjAb .ant-list-item-meta-content {
flex: initial;
width: 1082px;
}
.li___PjMV3 {
display: flex;
margin-bottom: 20px;
}
.li___PjMV3 .img___wZqEA {
width: 40px;
height: 40px;
border-radius: 5px;
margin-right: 10px;
}
.li___PjMV3 .content___OlYYG {
width: 1082px;
background: #FFFFFF;
box-shadow: 0px 0px 10px 0px rgba(226, 226, 226, 0.5);
border-radius: 8px;
border: 1px solid rgba(20, 93, 255, 0.2);
padding: 16px;
}
.li___PjMV3 .content___OlYYG.user___rbSU1 {
border: none;
box-shadow: none;
padding: 9px 20px 0px 20px;
}
.li___PjMV3 .content___OlYYG.user___rbSU1 p {
margin: 0;
color: #145DFF;
}
.li___PjMV3 .content___OlYYG .container___hZAxN {
display: flex;
justify-content: space-between;
width: 100%;
margin-top: 10px;
}
.li___PjMV3 .content___OlYYG .container___hZAxN .item___Z9j46 {
flex: 1 1;
margin-right: 10px;
padding: 12px 14px;
height: 86px;
background: rgba(149, 189, 255, 0.1);
border: 1px solid rgba(149, 189, 255, 0.1);
border-radius: 8px;
cursor: pointer;
}
.li___PjMV3 .content___OlYYG .container___hZAxN .item___Z9j46:hover {
border: 1px solid #145DFF;
}
.li___PjMV3 .content___OlYYG .container___hZAxN .item___Z9j46:last-child {
margin-right: 0;
}
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.15@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.15@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/tasks/choose-repository/test-cast-list/index.less?modules ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.5 MiB

@ -292,10 +292,10 @@ mark {
\**************************************************************************************************************************************************************************************************************************************************************************************/
@font-face {
font-family: "iconfont"; /* Project id 653600 */
src: url(./static/iconfont.7f3ea64c.woff2) format('woff2'),
url(./static/iconfont.3445529b.woff) format('woff'),
url(./static/iconfont.8c77d1ae.ttf) format('truetype'),
url(./static/iconfont.bbdd4342.svg#iconfont) format('svg');
src: url(./static/iconfont.6e0520b6.woff2) format('woff2'),
url(./static/iconfont.dda059a7.woff) format('woff'),
url(./static/iconfont.f7a0167c.ttf) format('truetype'),
url(./static/iconfont.fe7ed808.svg#iconfont) format('svg');
}
.iconfont {
@ -306,602 +306,6 @@ mark {
-moz-osx-font-smoothing: grayscale;
}
.icon-yijianyingyong:before {
content: "\ecbf";
}
.icon-changyongpingyu:before {
content: "\ecbe";
}
.icon-kaishi:before {
content: "\ecbd";
}
.icon-renwuzhinan:before {
content: "\ecb9";
}
.icon-fanhui5:before {
content: "\ecbc";
}
.icon-chexiao2:before {
content: "\ecba";
}
.icon-bianzu3:before {
content: "\ecbb";
}
.icon-shanchu16:before {
content: "\ecb6";
}
.icon-shangyige:before {
content: "\ecb7";
}
.icon-qingkong:before {
content: "\ecb8";
}
.icon-xiayige:before {
content: "\ecb5";
}
.icon-shouye1:before {
content: "\ecb3";
}
.icon-zanting:before {
content: "\ecb4";
}
.icon-yincangtiaojianshezhi:before {
content: "\ecb2";
}
.icon-shoucang4:before {
content: "\ecb1";
}
.icon-yinyong:before {
content: "\ecad";
}
.icon-piliangcaozuo3:before {
content: "\ecac";
}
.icon-xunifangzhenti1:before {
content: "\ecae";
}
.icon-rongheti1:before {
content: "\ecaf";
}
.icon-xuanzeti4:before {
content: "\ecb0";
}
.icon-jupyter:before {
content: "\ecab";
}
.icon-caozuoshouce:before {
content: "\ecaa";
}
.icon-dianzibanpai:before {
content: "\eca9";
}
.icon-zhihuikaiguan:before {
content: "\eca8";
}
.icon-quxiaofabu1:before {
content: "\eca6";
}
.icon-fuhe-gaizhang:before {
content: "\eca7";
}
.icon-fasong2:before {
content: "\eca5";
}
.icon-icon-weixin:before {
content: "\eca4";
}
.icon-a-fenxiang2:before {
content: "\eca3";
}
.icon-qiyehezuo:before {
content: "\eca1";
}
.icon-zhaopinxinxi:before {
content: "\eca2";
}
.icon-dianzanhou:before {
content: "\eca0";
}
.icon-zhankai7:before {
content: "\ec9e";
}
.icon-shouqi7:before {
content: "\ec9f";
}
.icon-xueshi:before {
content: "\ec9c";
}
.icon-zhishidian:before {
content: "\ec9d";
}
.icon-piliangkaiji:before {
content: "\ec9a";
}
.icon-piliangguanji:before {
content: "\ec9b";
}
.icon-wulianwangshebei:before {
content: "\ec99";
}
.icon-dingweitubiao:before {
content: "\ec98";
}
.icon-zhongzhijilu:before {
content: "\ec97";
}
.icon-yunhang:before {
content: "\ec95";
}
.icon-tingzhiyunhang:before {
content: "\ec96";
}
.icon-chakanyuanti:before {
content: "\ec94";
}
.icon-jiarushitiku:before {
content: "\ec93";
}
.icon-jiazai:before {
content: "\ec92";
}
.icon-pizhuwenjian:before {
content: "\ec91";
}
.icon-wenjian8:before {
content: "\ec90";
}
.icon-xinjianwenjian:before {
content: "\ec8f";
}
.icon-shebeiyunhangjiankong:before {
content: "\ec8d";
}
.icon-shebeibaofei-2:before {
content: "\ec8e";
}
.icon-xinxi:before {
content: "\ec8a";
}
.icon-shebeiweixiujilu:before {
content: "\ec8b";
}
.icon-shebeixinxiguanli:before {
content: "\ec8c";
}
.icon-buchongchengji:before {
content: "\ec89";
}
.icon-zhuanyeguanli:before {
content: "\ec88";
}
.icon-tuichu2:before {
content: "\ec87";
}
.icon-lianxi1:before {
content: "\ec86";
}
.icon-shangwulianxi:before {
content: "\ec83";
}
.icon-ziyuanxianzhikehu:before {
content: "\ec84";
}
.icon-ziyuanbaozhangkehu:before {
content: "\ec85";
}
.icon-Ukoukaijibang:before {
content: "\ec82";
}
.icon-lianxianguize:before {
content: "\ec81";
}
.icon-shuru:before {
content: "\ec80";
}
.icon-USBkou:before {
content: "\ec7e";
}
.icon-a-4zuwangkou:before {
content: "\ec7f";
}
.icon-zhishideng:before {
content: "\ec79";
}
.icon-baocun:before {
content: "\ec7a";
}
.icon-wangkou:before {
content: "\ec7b";
}
.icon-shangyibu:before {
content: "\ec7c";
}
.icon-shangchuan5:before {
content: "\ec7d";
}
.icon-xiayibu:before {
content: "\ec77";
}
.icon-xiazai7:before {
content: "\ec78";
}
.icon-liulan2:before {
content: "\ec76";
}
.icon-dianzan6:before {
content: "\ec6a";
}
.icon-pinglun3:before {
content: "\ec6c";
}
.icon-wenjianjiadaka:before {
content: "\ec67";
}
.icon-wenjianjiaweidakai:before {
content: "\ec68";
}
.icon-jiemianshouqi:before {
content: "\ec75";
}
.icon-tianjiatixing:before {
content: "\ec6e";
}
.icon-danceng-guanbijichushezhidanceng:before {
content: "\ec6f";
}
.icon-danceng-gaojishezhi:before {
content: "\ec70";
}
.icon-tianjiahezuozhe:before {
content: "\ec71";
}
.icon-duoxuan-weigouxuan:before {
content: "\ec72";
}
.icon-jiemianzhankai:before {
content: "\ec73";
}
.icon-duoxuan-gouxuan:before {
content: "\ec74";
}
.icon-genghuanguanliyuan1:before {
content: "\ec69";
}
.icon-tianjiachengyuan1:before {
content: "\ec6b";
}
.icon-timu1:before {
content: "\ec66";
}
.icon-gengduo6:before {
content: "\ec65";
}
.icon-zuoce-jinengbiaoqianshanchu:before {
content: "\ec64";
}
.icon-dingbu-bianji:before {
content: "\ec63";
}
.icon-shezhi8:before {
content: "\ec62";
}
.icon-tishi12:before {
content: "\ec61";
}
.icon-danceng-shangchuanwenjian:before {
content: "\ec5f";
}
.icon-danceng-daimawenjian:before {
content: "\ec60";
}
.icon-danceng-xinjianwenjian:before {
content: "\ec59";
}
.icon-danceng-xinzeng:before {
content: "\ec5a";
}
.icon-daimabianjiqi2:before {
content: "\ec5b";
}
.icon-danceng-shiyanhuanjing:before {
content: "\ec5c";
}
.icon-danceng-xinjianwenjianjia:before {
content: "\ec5d";
}
.icon-danceng-guankaxiaoyan:before {
content: "\ec5e";
}
.icon-dingbu-qiehuanbanben:before {
content: "\ec53";
}
.icon-dingbu-tuichu:before {
content: "\ec54";
}
.icon-dingbu-yulan:before {
content: "\ec55";
}
.icon-dingbu-fabu:before {
content: "\ec56";
}
.icon-dingbu-shiyanhuanjingdaojishi:before {
content: "\ec57";
}
.icon-danceng-shujuji:before {
content: "\ec58";
}
.icon-zuoce-bianzu:before {
content: "\ec4d";
}
.icon-shouqi6:before {
content: "\ec4e";
}
.icon-minglinghang1:before {
content: "\ec4f";
}
.icon-tuxinghuazhuomian1:before {
content: "\ec50";
}
.icon-fujian3:before {
content: "\ec51";
}
.icon-fuzhilujing:before {
content: "\ec52";
}
.icon-zuoce-guanka:before {
content: "\ec48";
}
.icon-shanjian1:before {
content: "\ec49";
}
.icon-webyingyongfuwu:before {
content: "\ec4a";
}
.icon-zengjia1:before {
content: "\ec4b";
}
.icon-zhankai6:before {
content: "\ec4c";
}
.icon-suoxiao5:before {
content: "\ec42";
}
.icon-pingcewenjian:before {
content: "\ec43";
}
.icon-wenjiangeshi:before {
content: "\ec44";
}
.icon-shangchuanwenjian2:before {
content: "\ec45";
}
.icon-shanchu15:before {
content: "\ec46";
}
.icon-renwuwenjian:before {
content: "\ec47";
}
.icon-fangda5:before {
content: "\ec41";
}
.icon-tuodong2:before {
content: "\ec40";
}
.icon-quxiaofabu:before {
content: "\ec3f";
}
.icon-wuzi:before {
content: "\ec3d";
}
.icon-wodecaigoushenqing:before {
content: "\ec3e";
}
.icon-wodelingyongshenqing:before {
content: "\ec3c";
}
.icon-zidingyiceshiyongli:before {
content: "\ec3b";
}
.icon-daimazhihangjieguo:before {
content: "\ec3a";
}
.icon-bianchengzuoye1:before {
content: "\ec39";
}
.icon-xiazaicishu:before {
content: "\ec36";
}
.icon-shiyonggaiziyuankechengshu:before {
content: "\ec37";
}
.icon-fangwencishu:before {
content: "\ec38";
}
.icon-chakanrenshu:before {
content: "\ec35";
}
.icon-fasongzhiketang1:before {
content: "\ec34";
}
.icon-renyuanguanli:before {
content: "\ec31";
}
.icon-a-bianzu21:before {
content: "\ec32";
}
.icon-a-bianzu111:before {
content: "\ec33";
}
.icon-fuzhizhong:before {
content: "\ec30";
}
.icon-suoxiao4:before {
content: "\ec2a";
}
.icon-wodeyuyue:before {
content: "\ec2d";
}
.icon-shiyanshiyuyue:before {
content: "\ec2e";
}
.icon-fangda4:before {
content: "\ec2f";
}
.icon-shuxuetuxiang2:before {
content: "\ec2c";
}
.icon-jisuan1:before {
content: "\ec2b";
}
.icon-piliangchexiaogongkai:before {
content: "\ec27";
}

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save