bhd-components 0.10.10 → 0.10.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.esm.es5.development.css +0 -766
- package/dist/index.esm.es5.development.js +162 -3086
- package/dist/index.esm.es5.production.css +1 -1
- package/dist/index.esm.es5.production.js +1 -1
- package/dist/vendor.esm.es5.development.js +1100 -2515
- package/dist/vendor.esm.es5.production.js +136 -136
- package/es2017/customerService/index.js +3 -1
- package/es2017/index.d.ts +0 -1
- package/es2017/index.js +0 -1
- package/es2017/utils/Date.d.ts +1 -2
- package/es2017/utils/Date.js +1 -2
- package/es2017/utils/dom.d.ts +1 -4
- package/es2017/utils/dom.js +1 -44
- package/esm/customerService/index.js +3 -1
- package/esm/index.d.ts +0 -1
- package/esm/index.js +0 -1
- package/esm/utils/Date.d.ts +1 -2
- package/esm/utils/Date.js +1 -2
- package/esm/utils/dom.d.ts +1 -4
- package/esm/utils/dom.js +1 -45
- package/package.json +1 -2
- package/es2017/AIMessageList/components/content/index.d.ts +0 -4
- package/es2017/AIMessageList/components/content/index.js +0 -29
- package/es2017/AIMessageList/components/content/index.module.less +0 -8
- package/es2017/AIMessageList/components/copyIcon/index.d.ts +0 -7
- package/es2017/AIMessageList/components/copyIcon/index.js +0 -73
- package/es2017/AIMessageList/components/copyIcon/index.module.less +0 -22
- package/es2017/AIMessageList/components/errorCallback/index.d.ts +0 -3
- package/es2017/AIMessageList/components/errorCallback/index.js +0 -6
- package/es2017/AIMessageList/components/fileList/fileIcon.d.ts +0 -3
- package/es2017/AIMessageList/components/fileList/fileIcon.js +0 -970
- package/es2017/AIMessageList/components/fileList/index.d.ts +0 -4
- package/es2017/AIMessageList/components/fileList/index.js +0 -315
- package/es2017/AIMessageList/components/fileList/index.module.less +0 -95
- package/es2017/AIMessageList/components/footer/index.d.ts +0 -10
- package/es2017/AIMessageList/components/footer/index.js +0 -358
- package/es2017/AIMessageList/components/footer/index.module.less +0 -51
- package/es2017/AIMessageList/components/header/index.d.ts +0 -9
- package/es2017/AIMessageList/components/header/index.js +0 -94
- package/es2017/AIMessageList/components/header/index.module.less +0 -31
- package/es2017/AIMessageList/components/referencesIcon/index.d.ts +0 -9
- package/es2017/AIMessageList/components/referencesIcon/index.js +0 -63
- package/es2017/AIMessageList/components/referencesIcon/index.module.less +0 -13
- package/es2017/AIMessageList/components/refreshBtn/index.d.ts +0 -4
- package/es2017/AIMessageList/components/refreshBtn/index.js +0 -29
- package/es2017/AIMessageList/components/refreshBtn/index.module.less +0 -12
- package/es2017/AIMessageList/components/remarkBtn/index.d.ts +0 -4
- package/es2017/AIMessageList/components/remarkBtn/index.js +0 -51
- package/es2017/AIMessageList/components/remarkBtn/index.module.less +0 -13
- package/es2017/AIMessageList/components/renderReferrnce/index.d.ts +0 -10
- package/es2017/AIMessageList/components/renderReferrnce/index.js +0 -68
- package/es2017/AIMessageList/components/renderReferrnce/index.module.less +0 -64
- package/es2017/AIMessageList/components/sendBtn/index.d.ts +0 -4
- package/es2017/AIMessageList/components/sendBtn/index.js +0 -51
- package/es2017/AIMessageList/components/sendBtn/index.module.less +0 -25
- package/es2017/AIMessageList/components/uplodaFileBtn/index.d.ts +0 -4
- package/es2017/AIMessageList/components/uplodaFileBtn/index.js +0 -33
- package/es2017/AIMessageList/components/uplodaFileBtn/index.module.less +0 -5
- package/es2017/AIMessageList/components/virtuosoList/index.d.ts +0 -5
- package/es2017/AIMessageList/components/virtuosoList/index.js +0 -694
- package/es2017/AIMessageList/components/virtuosoList/index.module.less +0 -467
- package/es2017/AIMessageList/index.d.ts +0 -4
- package/es2017/AIMessageList/index.js +0 -58
- package/es2017/AIMessageList/index.module.less +0 -20
- package/es2017/AIMessageList/type.d.ts +0 -306
- package/es2017/images/loading2.js +0 -2
- package/es2017/utils/number.d.ts +0 -1
- package/es2017/utils/number.js +0 -9
- package/esm/AIMessageList/components/content/index.d.ts +0 -4
- package/esm/AIMessageList/components/content/index.js +0 -29
- package/esm/AIMessageList/components/content/index.module.less +0 -8
- package/esm/AIMessageList/components/copyIcon/index.d.ts +0 -7
- package/esm/AIMessageList/components/copyIcon/index.js +0 -76
- package/esm/AIMessageList/components/copyIcon/index.module.less +0 -22
- package/esm/AIMessageList/components/errorCallback/index.d.ts +0 -3
- package/esm/AIMessageList/components/errorCallback/index.js +0 -6
- package/esm/AIMessageList/components/fileList/fileIcon.d.ts +0 -3
- package/esm/AIMessageList/components/fileList/fileIcon.js +0 -970
- package/esm/AIMessageList/components/fileList/index.d.ts +0 -4
- package/esm/AIMessageList/components/fileList/index.js +0 -337
- package/esm/AIMessageList/components/fileList/index.module.less +0 -95
- package/esm/AIMessageList/components/footer/index.d.ts +0 -10
- package/esm/AIMessageList/components/footer/index.js +0 -372
- package/esm/AIMessageList/components/footer/index.module.less +0 -51
- package/esm/AIMessageList/components/header/index.d.ts +0 -9
- package/esm/AIMessageList/components/header/index.js +0 -96
- package/esm/AIMessageList/components/header/index.module.less +0 -31
- package/esm/AIMessageList/components/referencesIcon/index.d.ts +0 -9
- package/esm/AIMessageList/components/referencesIcon/index.js +0 -65
- package/esm/AIMessageList/components/referencesIcon/index.module.less +0 -13
- package/esm/AIMessageList/components/refreshBtn/index.d.ts +0 -4
- package/esm/AIMessageList/components/refreshBtn/index.js +0 -31
- package/esm/AIMessageList/components/refreshBtn/index.module.less +0 -12
- package/esm/AIMessageList/components/remarkBtn/index.d.ts +0 -4
- package/esm/AIMessageList/components/remarkBtn/index.js +0 -51
- package/esm/AIMessageList/components/remarkBtn/index.module.less +0 -13
- package/esm/AIMessageList/components/renderReferrnce/index.d.ts +0 -10
- package/esm/AIMessageList/components/renderReferrnce/index.js +0 -72
- package/esm/AIMessageList/components/renderReferrnce/index.module.less +0 -64
- package/esm/AIMessageList/components/sendBtn/index.d.ts +0 -4
- package/esm/AIMessageList/components/sendBtn/index.js +0 -53
- package/esm/AIMessageList/components/sendBtn/index.module.less +0 -25
- package/esm/AIMessageList/components/uplodaFileBtn/index.d.ts +0 -4
- package/esm/AIMessageList/components/uplodaFileBtn/index.js +0 -33
- package/esm/AIMessageList/components/uplodaFileBtn/index.module.less +0 -5
- package/esm/AIMessageList/components/virtuosoList/index.d.ts +0 -5
- package/esm/AIMessageList/components/virtuosoList/index.js +0 -671
- package/esm/AIMessageList/components/virtuosoList/index.module.less +0 -467
- package/esm/AIMessageList/index.d.ts +0 -4
- package/esm/AIMessageList/index.js +0 -58
- package/esm/AIMessageList/index.module.less +0 -20
- package/esm/AIMessageList/type.d.ts +0 -306
- package/esm/images/loading2.js +0 -2
- package/esm/utils/number.d.ts +0 -1
- package/esm/utils/number.js +0 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { z as zhCN, A as App, _ as _object_spread, a as AntdMessage, M as Modal$1, b as AntdNotification, C as ConfigProvider, c as _extends, d as _object_destructuring_empty, j as jsx, e as _object_spread_props, f as jsxs, t as transform, S as StyleProvider, g as _sliced_to_array, T as Tooltip, h as Table$2, i as _to_consumable_array, P as Pagination$1, I as Icon, k as Select, l as CaretDownOutlined, m as _inherits, n as _create_super, o as _create_class, p as _class_call_check, q as _define_property, r as _assert_this_initialized, s as _async_to_generator, u as MinusOutlined, v as PlusOutlined, L as LeftOutlined, R as RightOutlined, w as __generator, x as Input, y as SearchOutlined, B as Spin, D as CloseOutlined, X, E as I, H, F as html2canvas$1, G as Remarkable, J as Drawer, K as HighlightJS, Z as ZoomInOutlined, N as DatePicker, O as Button, Q as l, U as Upload
|
|
2
|
-
export {
|
|
1
|
+
import { z as zhCN, A as App, _ as _object_spread, a as AntdMessage, M as Modal$1, b as AntdNotification, C as ConfigProvider, c as _extends, d as _object_destructuring_empty, j as jsx, e as _object_spread_props, f as jsxs, t as transform, S as StyleProvider, g as _sliced_to_array, T as Tooltip, h as Table$2, i as _to_consumable_array, P as Pagination$1, I as Icon, k as Select, l as CaretDownOutlined, m as _inherits, n as _create_super, o as _create_class, p as _class_call_check, q as _define_property, r as _assert_this_initialized, s as _async_to_generator, u as MinusOutlined, v as PlusOutlined, L as LeftOutlined, R as RightOutlined, w as __generator, x as Input$1, y as SearchOutlined, B as Spin, D as CloseOutlined, X, E as I, H, F as html2canvas$1, G as Remarkable, J as Drawer, K as HighlightJS, Z as ZoomInOutlined, N as DatePicker, O as Button, Q as l, U as Upload } from './vendor.esm.es5.development.js';
|
|
2
|
+
export { V as Affix, W as Alert, Y as Anchor, a as AntdMessage, A as App, $ as AutoComplete, a0 as Avatar, a2 as BackTop, a3 as Badge, a4 as Breadcrumb, O as Button, a5 as Calendar, a6 as Card, a7 as Carousel, a8 as Cascader, a9 as Checkbox, aa as Col, ab as Collapse, N as DatePicker, ac as Descriptions, ad as Divider, J as Drawer, ae as Dropdown, af as Empty, a1 as FloatButton, ag as Form, ah as Grid, ai as Image, x as Input, aj as InputNumber, ak as Layout, al as List, am as Mentions, an as Menu, M as Modal, ao as Popconfirm, ap as Popover, aq as Progress, aN as QRCode, ar as Radio, as as Rate, at as Result, au as Row, av as Segmented, k as Select, aw as Skeleton, ax as Slider, ay as Space, B as Spin, az as Statistic, aA as Steps, aB as Switch, aC as Tabs, aD as Tag, aF as TimePicker, aG as Timeline, T as Tooltip, aH as Tour, aI as Transfer, aJ as Tree, aK as TreeSelect, aL as Typography, U as Upload, aM as Watermark, aP as en_US, b as notification, aE as theme, aO as version, z as zh_CN } from './vendor.esm.es5.development.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import React__default, { useState, useRef, useEffect, useLayoutEffect, forwardRef, useImperativeHandle, useCallback
|
|
4
|
+
import React__default, { useState, useRef, useEffect, useLayoutEffect, forwardRef, useImperativeHandle, useCallback } from 'react';
|
|
5
5
|
import { Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import { render } from 'react-dom';
|
|
7
7
|
|
|
@@ -162,7 +162,7 @@ var TextTootip = function(props) {
|
|
|
162
162
|
};
|
|
163
163
|
var TextTootip$1 = TextTootip;
|
|
164
164
|
|
|
165
|
-
var modules_63b47c51$
|
|
165
|
+
var modules_63b47c51$b = {"Table":"index_module_Table__fa669d28","SmallTable":"index_module_SmallTable__fa669d28","columnTootipClassName":"index_module_columnTootipClassName__fa669d28"};
|
|
166
166
|
|
|
167
167
|
var widthPercentage = /^\d+%$/;
|
|
168
168
|
var widthPx = /^\d+px$/;
|
|
@@ -290,7 +290,7 @@ var Table = function(props) {
|
|
|
290
290
|
},
|
|
291
291
|
title: text,
|
|
292
292
|
trigger: "hover",
|
|
293
|
-
overlayClassName: columnTootipClassName || modules_63b47c51$
|
|
293
|
+
overlayClassName: columnTootipClassName || modules_63b47c51$b.columnTootipClassName,
|
|
294
294
|
color: columnTootipColor || "#FFF",
|
|
295
295
|
children: /*#__PURE__*/ jsx("span", {
|
|
296
296
|
children: text
|
|
@@ -401,7 +401,7 @@ var Table = function(props) {
|
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
403
|
return /*#__PURE__*/ jsx("div", {
|
|
404
|
-
className: "".concat(modules_63b47c51$
|
|
404
|
+
className: "".concat(modules_63b47c51$b.Table, " ").concat(kind === "simple" ? modules_63b47c51$b.SmallTable : ""),
|
|
405
405
|
ref: tableRef,
|
|
406
406
|
children: /*#__PURE__*/ jsx(Table$2, _object_spread({}, config))
|
|
407
407
|
});
|
|
@@ -604,12 +604,12 @@ var i18Conversion$1 = i18Conversion;
|
|
|
604
604
|
};
|
|
605
605
|
var BhdTableSimple$1 = BhdTableSimple;
|
|
606
606
|
|
|
607
|
-
var modules_63b47c51$
|
|
607
|
+
var modules_63b47c51$a = {"customSuccess":"index_module_customSuccess__70ac51ed","customWarning":"index_module_customWarning__70ac51ed","customError":"index_module_customError__70ac51ed","customInfo":"index_module_customInfo__70ac51ed"};
|
|
608
608
|
|
|
609
609
|
var _message, _message1, _message2, _message3, _message4, _message5, _message6, _message7, _message8;
|
|
610
610
|
var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
|
|
611
611
|
customSuccess: function(config) {
|
|
612
|
-
var className = modules_63b47c51$
|
|
612
|
+
var className = modules_63b47c51$a.customSuccess;
|
|
613
613
|
if (typeof config === "string") {
|
|
614
614
|
return message$1.success({
|
|
615
615
|
content: config,
|
|
@@ -621,7 +621,7 @@ var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
|
|
|
621
621
|
}));
|
|
622
622
|
},
|
|
623
623
|
customWarning: function(config) {
|
|
624
|
-
var className = modules_63b47c51$
|
|
624
|
+
var className = modules_63b47c51$a.customWarning;
|
|
625
625
|
if (typeof config === "string") {
|
|
626
626
|
return message$1.warning({
|
|
627
627
|
content: config,
|
|
@@ -633,7 +633,7 @@ var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
|
|
|
633
633
|
}));
|
|
634
634
|
},
|
|
635
635
|
customError: function(config) {
|
|
636
|
-
var className = modules_63b47c51$
|
|
636
|
+
var className = modules_63b47c51$a.customError;
|
|
637
637
|
if (typeof config === "string") {
|
|
638
638
|
return message$1.error({
|
|
639
639
|
content: config,
|
|
@@ -645,7 +645,7 @@ var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
|
|
|
645
645
|
}));
|
|
646
646
|
},
|
|
647
647
|
customInfo: function(config) {
|
|
648
|
-
var className = modules_63b47c51$
|
|
648
|
+
var className = modules_63b47c51$a.customInfo;
|
|
649
649
|
if (typeof config === "string") {
|
|
650
650
|
return message$1.info({
|
|
651
651
|
content: config,
|
|
@@ -713,10 +713,10 @@ var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
|
|
|
713
713
|
});
|
|
714
714
|
var message = BhdMessage;
|
|
715
715
|
|
|
716
|
-
var modules_63b47c51$
|
|
716
|
+
var modules_63b47c51$9 = {"pagination":"index_module_pagination__db6ba815"};
|
|
717
717
|
|
|
718
718
|
var BhdPagination = function(props) {
|
|
719
|
-
var className = "".concat(modules_63b47c51$
|
|
719
|
+
var className = "".concat(modules_63b47c51$9.pagination, " ").concat(props.className || "");
|
|
720
720
|
return /*#__PURE__*/ jsx(Pagination$1, _object_spread_props(_object_spread({}, props), {
|
|
721
721
|
className: className
|
|
722
722
|
}));
|
|
@@ -1282,7 +1282,7 @@ var CustomWenhaoRound = function(props) {
|
|
|
1282
1282
|
};
|
|
1283
1283
|
var CustomWenhaoRound$1 = CustomWenhaoRound;
|
|
1284
1284
|
|
|
1285
|
-
var modules_63b47c51$
|
|
1285
|
+
var modules_63b47c51$8 = {"BhdTableSelect":"index_module_BhdTableSelect__67bd66da"};
|
|
1286
1286
|
|
|
1287
1287
|
var BhdTableSelect = function(props) {
|
|
1288
1288
|
var _props_className = props.// initOption=[],
|
|
@@ -1336,7 +1336,7 @@ var BhdTableSelect = function(props) {
|
|
|
1336
1336
|
suffixIcon: suffixIcon ? suffixIcon : /*#__PURE__*/ jsx(CaretDownOutlined, {})
|
|
1337
1337
|
});
|
|
1338
1338
|
return /*#__PURE__*/ jsx("div", {
|
|
1339
|
-
className: "".concat(modules_63b47c51$
|
|
1339
|
+
className: "".concat(modules_63b47c51$8.BhdTableSelect, " ").concat(className),
|
|
1340
1340
|
ref: tableSelectRef,
|
|
1341
1341
|
children: /*#__PURE__*/ jsx(Select, _object_spread_props(_object_spread({}, config), {
|
|
1342
1342
|
children: children
|
|
@@ -1346,7 +1346,7 @@ var BhdTableSelect = function(props) {
|
|
|
1346
1346
|
BhdTableSelect.Option = Select.Option;
|
|
1347
1347
|
var BhdTableSelect$1 = BhdTableSelect;
|
|
1348
1348
|
|
|
1349
|
-
var modules_63b47c51$
|
|
1349
|
+
var modules_63b47c51$7 = {"titleBar":"index_module_titleBar__e61b506c","left":"index_module_left__e61b506c","leftIcon":"index_module_leftIcon__e61b506c","leftContent":"index_module_leftContent__e61b506c","leftTitle":"index_module_leftTitle__e61b506c","leftSubTitle":"index_module_leftSubTitle__e61b506c","right":"index_module_right__e61b506c"};
|
|
1350
1350
|
|
|
1351
1351
|
var TitleBar = function(props) {
|
|
1352
1352
|
var title = props.title, leftIcon = props.leftIcon, subTitle = props.subTitle, rightContent = props.rightContent, _props_wrapClassName = props.wrapClassName, wrapClassName = _props_wrapClassName === void 0 ? "" : _props_wrapClassName, _props_rightMaxWidth = props.rightMaxWidth, rightMaxWidth = _props_rightMaxWidth === void 0 ? 45 : _props_rightMaxWidth, _props_leftIconClassName = props.leftIconClassName, leftIconClassName = _props_leftIconClassName === void 0 ? "" : _props_leftIconClassName, _props_leftTitleClassName = props.leftTitleClassName, leftTitleClassName = _props_leftTitleClassName === void 0 ? "" : _props_leftTitleClassName, _props_leftSubTitleClassName = props.leftSubTitleClassName, leftSubTitleClassName = _props_leftSubTitleClassName === void 0 ? "" : _props_leftSubTitleClassName, _props_rightClassName = props.rightClassName, rightClassName = _props_rightClassName === void 0 ? "" : _props_rightClassName, _props_leftClassName = props.leftClassName, leftClassName = _props_leftClassName === void 0 ? "" : _props_leftClassName;
|
|
@@ -1395,25 +1395,25 @@ var TitleBar = function(props) {
|
|
|
1395
1395
|
screenWidth
|
|
1396
1396
|
]);
|
|
1397
1397
|
return /*#__PURE__*/ jsxs("div", {
|
|
1398
|
-
className: "".concat(modules_63b47c51$
|
|
1398
|
+
className: "".concat(modules_63b47c51$7.titleBar, " ").concat(wrapClassName),
|
|
1399
1399
|
ref: titleBarRef,
|
|
1400
1400
|
children: [
|
|
1401
1401
|
/*#__PURE__*/ jsxs("div", {
|
|
1402
|
-
className: "".concat(modules_63b47c51$
|
|
1402
|
+
className: "".concat(modules_63b47c51$7.left, " ").concat(leftClassName),
|
|
1403
1403
|
children: [
|
|
1404
1404
|
leftIcon && /*#__PURE__*/ jsx("div", {
|
|
1405
|
-
className: "".concat(modules_63b47c51$
|
|
1405
|
+
className: "".concat(modules_63b47c51$7.leftIcon, " ").concat(leftIconClassName),
|
|
1406
1406
|
children: leftIcon
|
|
1407
1407
|
}),
|
|
1408
1408
|
/*#__PURE__*/ jsxs("div", {
|
|
1409
|
-
className: modules_63b47c51$
|
|
1409
|
+
className: modules_63b47c51$7.leftContent,
|
|
1410
1410
|
children: [
|
|
1411
1411
|
/*#__PURE__*/ jsx("div", {
|
|
1412
|
-
className: "".concat(modules_63b47c51$
|
|
1412
|
+
className: "".concat(modules_63b47c51$7.leftTitle, " ").concat(leftTitleClassName),
|
|
1413
1413
|
children: title
|
|
1414
1414
|
}),
|
|
1415
1415
|
subTitle && /*#__PURE__*/ jsx("div", {
|
|
1416
|
-
className: "".concat(modules_63b47c51$
|
|
1416
|
+
className: "".concat(modules_63b47c51$7.leftSubTitle, " ").concat(leftSubTitleClassName),
|
|
1417
1417
|
children: subTitle
|
|
1418
1418
|
})
|
|
1419
1419
|
]
|
|
@@ -1421,7 +1421,7 @@ var TitleBar = function(props) {
|
|
|
1421
1421
|
]
|
|
1422
1422
|
}),
|
|
1423
1423
|
rightContent && /*#__PURE__*/ jsx("div", {
|
|
1424
|
-
className: "".concat(modules_63b47c51$
|
|
1424
|
+
className: "".concat(modules_63b47c51$7.right, " ").concat(rightClassName),
|
|
1425
1425
|
ref: rightContentRef,
|
|
1426
1426
|
children: renderRightContent()
|
|
1427
1427
|
})
|
|
@@ -1430,57 +1430,14 @@ var TitleBar = function(props) {
|
|
|
1430
1430
|
};
|
|
1431
1431
|
var TitleBar$1 = TitleBar;
|
|
1432
1432
|
|
|
1433
|
-
var modules_63b47c51$
|
|
1433
|
+
var modules_63b47c51$6 = {"AppViewImage":"index_module_AppViewImage__efd7e21c","viewImgBody":"index_module_viewImgBody__efd7e21c","viewImgContent":"index_module_viewImgContent__efd7e21c","viewImgAction":"index_module_viewImgAction__efd7e21c","actionTop":"index_module_actionTop__efd7e21c","viewImgBody_load":"index_module_viewImgBody_load__efd7e21c","viewImgBody_pic":"index_module_viewImgBody_pic__efd7e21c","viewImgActionClose":"index_module_viewImgActionClose__efd7e21c","viewImgBody_pre":"index_module_viewImgBody_pre__efd7e21c","viewImgBody_next":"index_module_viewImgBody_next__efd7e21c","viewImgBodyScale":"index_module_viewImgBodyScale__efd7e21c","viewImgBodyScale_minu":"index_module_viewImgBodyScale_minu__efd7e21c","viewImgBodyScale_add":"index_module_viewImgBodyScale_add__efd7e21c","viewImgBodyScale_value":"index_module_viewImgBodyScale_value__efd7e21c","viewImgInfo":"index_module_viewImgInfo__efd7e21c"};
|
|
1434
1434
|
|
|
1435
1435
|
//获取css样式
|
|
1436
1436
|
var getStyle = function getStyle(dom, key) {
|
|
1437
1437
|
return dom.currentStyle ? parseFloat(dom.currentStyle[key]) : parseFloat(document.defaultView.getComputedStyle(dom)[key]);
|
|
1438
1438
|
};
|
|
1439
|
-
// 事件委托函数封装
|
|
1440
|
-
var delegate$1 = function(element, eventType, selector, callback) {
|
|
1441
|
-
if (!(element instanceof HTMLElement)) {
|
|
1442
|
-
throw new Error("第一个参数必须是一个HTMLElement");
|
|
1443
|
-
}
|
|
1444
|
-
if (typeof eventType !== "string") {
|
|
1445
|
-
throw new Error("第二个参数必须是字符串");
|
|
1446
|
-
}
|
|
1447
|
-
if (typeof selector !== "string") {
|
|
1448
|
-
throw new Error("第三个参数必须是字符串");
|
|
1449
|
-
}
|
|
1450
|
-
if (typeof callback !== "function") {
|
|
1451
|
-
throw new Error("第四个参数必须是一个函数");
|
|
1452
|
-
}
|
|
1453
|
-
var fn = function(event) {
|
|
1454
|
-
var possibleTargets = element.querySelectorAll(selector);
|
|
1455
|
-
for(var i = 0; i < possibleTargets.length; i++){
|
|
1456
|
-
if (possibleTargets[i] === event.target || possibleTargets[i].contains(event.target)) {
|
|
1457
|
-
callback.call(possibleTargets[i], event, possibleTargets[i]);
|
|
1458
|
-
}
|
|
1459
|
-
}
|
|
1460
|
-
};
|
|
1461
|
-
element.addEventListener(eventType, fn);
|
|
1462
|
-
return function() {
|
|
1463
|
-
element.removeEventListener(eventType, fn);
|
|
1464
|
-
};
|
|
1465
|
-
};
|
|
1466
|
-
var findParent$1 = function(e, className) {
|
|
1467
|
-
while(e && !e.classList.contains(className)){
|
|
1468
|
-
e = e.parentElement;
|
|
1469
|
-
}
|
|
1470
|
-
return e;
|
|
1471
|
-
};
|
|
1472
|
-
//复制内容
|
|
1473
|
-
var copyText$1 = function(text) {
|
|
1474
|
-
var tempInput = document.createElement("textarea");
|
|
1475
|
-
document.body.appendChild(tempInput);
|
|
1476
|
-
tempInput.value = text;
|
|
1477
|
-
tempInput.select();
|
|
1478
|
-
document.execCommand("copy");
|
|
1479
|
-
document.body.removeChild(tempInput);
|
|
1480
|
-
return true;
|
|
1481
|
-
};
|
|
1482
1439
|
|
|
1483
|
-
var modules_63b47c51$
|
|
1440
|
+
var modules_63b47c51$5 = {"confirm":"index_module_confirm__4ee7d3e7","success":"index_module_success__4ee7d3e7","custom":"index_module_custom__4ee7d3e7","noCancel":"index_module_noCancel__4ee7d3e7","noButton":"index_module_noButton__4ee7d3e7","haveComfirm":"index_module_haveComfirm__4ee7d3e7"};
|
|
1484
1441
|
|
|
1485
1442
|
var initConFirmModal = function(obj) {
|
|
1486
1443
|
var title = obj.title, content = obj.content, _obj_cancelBtn = obj.cancelBtn, cancelBtn = _obj_cancelBtn === void 0 ? true : _obj_cancelBtn, _obj_okText = obj.okText, okText = _obj_okText === void 0 ? "确定" : _obj_okText, _obj_keyboard = obj.keyboard, keyboard = _obj_keyboard === void 0 ? false : _obj_keyboard, _obj_cancelText = obj.cancelText, cancelText = _obj_cancelText === void 0 ? "取消" : _obj_cancelText, _obj_autoFocusButton = obj.autoFocusButton, autoFocusButton = _obj_autoFocusButton === void 0 ? null : _obj_autoFocusButton;
|
|
@@ -1516,7 +1473,7 @@ var initConFirmModal = function(obj) {
|
|
|
1516
1473
|
})
|
|
1517
1474
|
]
|
|
1518
1475
|
}),
|
|
1519
|
-
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$
|
|
1476
|
+
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$5.confirm, " ").concat(cancelBtn ? "" : modules_63b47c51$5.noCancel)
|
|
1520
1477
|
});
|
|
1521
1478
|
};
|
|
1522
1479
|
var initSuccessModal = function(obj) {
|
|
@@ -1554,7 +1511,7 @@ var initSuccessModal = function(obj) {
|
|
|
1554
1511
|
})
|
|
1555
1512
|
]
|
|
1556
1513
|
}),
|
|
1557
|
-
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$
|
|
1514
|
+
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$5.success, " ").concat(cancelBtn ? "" : modules_63b47c51$5.noCancel)
|
|
1558
1515
|
});
|
|
1559
1516
|
};
|
|
1560
1517
|
var initCustomModal = function(obj) {
|
|
@@ -1580,7 +1537,7 @@ var initCustomModal = function(obj) {
|
|
|
1580
1537
|
})
|
|
1581
1538
|
]
|
|
1582
1539
|
}),
|
|
1583
|
-
className: "".concat(modules_63b47c51$
|
|
1540
|
+
className: "".concat(modules_63b47c51$5.custom, " ").concat(obj.className || "", " ").concat(cancelBtn ? "" : okBtn ? modules_63b47c51$5.haveComfirm : modules_63b47c51$5.noButton)
|
|
1584
1541
|
});
|
|
1585
1542
|
};
|
|
1586
1543
|
var initInfoModal = function(obj) {
|
|
@@ -1617,7 +1574,7 @@ var initInfoModal = function(obj) {
|
|
|
1617
1574
|
})
|
|
1618
1575
|
]
|
|
1619
1576
|
}),
|
|
1620
|
-
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$
|
|
1577
|
+
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$5.success, " ").concat(cancelBtn ? "" : modules_63b47c51$5.noCancel)
|
|
1621
1578
|
});
|
|
1622
1579
|
};
|
|
1623
1580
|
var initWarnModal = function(obj) {
|
|
@@ -1654,7 +1611,7 @@ var initWarnModal = function(obj) {
|
|
|
1654
1611
|
})
|
|
1655
1612
|
]
|
|
1656
1613
|
}),
|
|
1657
|
-
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$
|
|
1614
|
+
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$5.confirm, " ").concat(cancelBtn ? "" : modules_63b47c51$5.noCancel, " ")
|
|
1658
1615
|
});
|
|
1659
1616
|
};
|
|
1660
1617
|
var BhdTipModal = {
|
|
@@ -1768,7 +1725,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
1768
1725
|
_define_property(_assert_this_initialized(_this), "moveImg", function(ev) {
|
|
1769
1726
|
var _this_state = _this.state, imgLeft = _this_state.imgLeft, imgTop = _this_state.imgTop;
|
|
1770
1727
|
ev.preventDefault();
|
|
1771
|
-
var dom = document.getElementsByClassName("".concat(modules_63b47c51$
|
|
1728
|
+
var dom = document.getElementsByClassName("".concat(modules_63b47c51$6.viewImgBody_pic))[0];
|
|
1772
1729
|
if (!dom) return;
|
|
1773
1730
|
if (imgLeft == "auto") {
|
|
1774
1731
|
imgLeft = getStyle(dom, "left");
|
|
@@ -2071,24 +2028,24 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2071
2028
|
var _this_state = this.state, scaleValue = _this_state.scaleValue, imgSrc = _this_state.imgSrc, imgLeft = _this_state.imgLeft, imgTop = _this_state.imgTop, rotateValue = _this_state.rotateValue, loading = _this_state.loading, multiSelect = _this_state.multiSelect, imgError = _this_state.imgError;
|
|
2072
2029
|
var _this_props = this.props, content = _this_props.content, download = _this_props.download;
|
|
2073
2030
|
return /*#__PURE__*/ jsxs("div", {
|
|
2074
|
-
className: modules_63b47c51$
|
|
2031
|
+
className: modules_63b47c51$6.viewImgBody,
|
|
2075
2032
|
children: [
|
|
2076
2033
|
/*#__PURE__*/ jsxs("div", {
|
|
2077
|
-
className: modules_63b47c51$
|
|
2034
|
+
className: modules_63b47c51$6.viewImgContent,
|
|
2078
2035
|
children: [
|
|
2079
2036
|
this.state.actionCloseFlag === 1 && /*#__PURE__*/ jsx("div", {
|
|
2080
|
-
className: "".concat(modules_63b47c51$
|
|
2037
|
+
className: "".concat(modules_63b47c51$6.viewImgAction, " ").concat(modules_63b47c51$6.actionTop),
|
|
2081
2038
|
children: /*#__PURE__*/ jsx("span", {
|
|
2082
2039
|
// id="actionClose"
|
|
2083
2040
|
// style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
|
|
2084
|
-
className: modules_63b47c51$
|
|
2041
|
+
className: modules_63b47c51$6.viewImgActionClose,
|
|
2085
2042
|
title: "关闭",
|
|
2086
2043
|
onClick: this.close,
|
|
2087
2044
|
children: /*#__PURE__*/ jsx(CustomClose$1, {})
|
|
2088
2045
|
})
|
|
2089
2046
|
}),
|
|
2090
2047
|
/*#__PURE__*/ jsxs("div", {
|
|
2091
|
-
className: modules_63b47c51$
|
|
2048
|
+
className: modules_63b47c51$6.viewImgAction,
|
|
2092
2049
|
children: [
|
|
2093
2050
|
/*#__PURE__*/ jsx("span", {
|
|
2094
2051
|
title: "旋转",
|
|
@@ -2101,10 +2058,10 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2101
2058
|
children: /*#__PURE__*/ jsx(CustomDownLoad$1, {})
|
|
2102
2059
|
}),
|
|
2103
2060
|
/*#__PURE__*/ jsxs("div", {
|
|
2104
|
-
className: modules_63b47c51$
|
|
2061
|
+
className: modules_63b47c51$6.viewImgBodyScale,
|
|
2105
2062
|
children: [
|
|
2106
2063
|
/*#__PURE__*/ jsx("span", {
|
|
2107
|
-
className: modules_63b47c51$
|
|
2064
|
+
className: modules_63b47c51$6.viewImgBodyScale_minu,
|
|
2108
2065
|
onClick: function() {
|
|
2109
2066
|
scaleValue = scaleValue - 10;
|
|
2110
2067
|
_this.scaleChange(scaleValue);
|
|
@@ -2112,7 +2069,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2112
2069
|
children: /*#__PURE__*/ jsx(MinusOutlined, {})
|
|
2113
2070
|
}),
|
|
2114
2071
|
/*#__PURE__*/ jsxs("span", {
|
|
2115
|
-
className: modules_63b47c51$
|
|
2072
|
+
className: modules_63b47c51$6.viewImgBodyScale_value,
|
|
2116
2073
|
onClick: this.reset,
|
|
2117
2074
|
children: [
|
|
2118
2075
|
scaleValue,
|
|
@@ -2120,7 +2077,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2120
2077
|
]
|
|
2121
2078
|
}),
|
|
2122
2079
|
/*#__PURE__*/ jsx("span", {
|
|
2123
|
-
className: modules_63b47c51$
|
|
2080
|
+
className: modules_63b47c51$6.viewImgBodyScale_add,
|
|
2124
2081
|
onClick: function() {
|
|
2125
2082
|
scaleValue = scaleValue + 10;
|
|
2126
2083
|
_this.scaleChange(scaleValue);
|
|
@@ -2132,11 +2089,11 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2132
2089
|
]
|
|
2133
2090
|
}),
|
|
2134
2091
|
/*#__PURE__*/ jsxs("div", {
|
|
2135
|
-
className: modules_63b47c51$
|
|
2092
|
+
className: modules_63b47c51$6.viewImgBody,
|
|
2136
2093
|
children: [
|
|
2137
2094
|
loading ? /*#__PURE__*/ jsx("img", {
|
|
2138
2095
|
src: Loading,
|
|
2139
|
-
className: modules_63b47c51$
|
|
2096
|
+
className: modules_63b47c51$6.viewImgBody_load
|
|
2140
2097
|
}, "load") : imgError ? /*#__PURE__*/ jsx("div", {
|
|
2141
2098
|
style: {
|
|
2142
2099
|
color: "#FFFFFF"
|
|
@@ -2187,13 +2144,13 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2187
2144
|
left: imgLeft == "auto" ? "auto" : imgLeft + "px",
|
|
2188
2145
|
top: imgTop == "auto" ? "auto" : imgTop + "px"
|
|
2189
2146
|
},
|
|
2190
|
-
className: modules_63b47c51$
|
|
2147
|
+
className: modules_63b47c51$6.viewImgBody_pic,
|
|
2191
2148
|
onLoad: this.imgLoad,
|
|
2192
2149
|
onError: this.imgErr
|
|
2193
2150
|
}, "img"),
|
|
2194
2151
|
this.state.actionCloseFlag === 0 && /*#__PURE__*/ jsx("span", {
|
|
2195
2152
|
id: "actionClose",
|
|
2196
|
-
className: modules_63b47c51$
|
|
2153
|
+
className: modules_63b47c51$6.viewImgActionClose,
|
|
2197
2154
|
title: "关闭",
|
|
2198
2155
|
onClick: this.close,
|
|
2199
2156
|
children: /*#__PURE__*/ jsx(CustomClose$1, {})
|
|
@@ -2203,12 +2160,12 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2203
2160
|
multiSelect && /*#__PURE__*/ jsxs(Fragment, {
|
|
2204
2161
|
children: [
|
|
2205
2162
|
this.state.curIndex !== 0 && /*#__PURE__*/ jsx("div", {
|
|
2206
|
-
className: modules_63b47c51$
|
|
2163
|
+
className: modules_63b47c51$6.viewImgBody_pre,
|
|
2207
2164
|
onClick: this.preChange,
|
|
2208
2165
|
children: /*#__PURE__*/ jsx(LeftOutlined, {})
|
|
2209
2166
|
}),
|
|
2210
2167
|
this.state.curIndex < this.props.multiSelect.length - 1 && /*#__PURE__*/ jsx("div", {
|
|
2211
|
-
className: modules_63b47c51$
|
|
2168
|
+
className: modules_63b47c51$6.viewImgBody_next,
|
|
2212
2169
|
onClick: this.nextChange,
|
|
2213
2170
|
children: /*#__PURE__*/ jsx(RightOutlined, {})
|
|
2214
2171
|
})
|
|
@@ -2219,7 +2176,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2219
2176
|
]
|
|
2220
2177
|
}),
|
|
2221
2178
|
content && /*#__PURE__*/ jsx("div", {
|
|
2222
|
-
className: modules_63b47c51$
|
|
2179
|
+
className: modules_63b47c51$6.viewImgInfo,
|
|
2223
2180
|
children: content()
|
|
2224
2181
|
})
|
|
2225
2182
|
]
|
|
@@ -2254,7 +2211,7 @@ var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
2254
2211
|
maskStyle: {
|
|
2255
2212
|
background: "rgba(0, 0, 0, 0.65)"
|
|
2256
2213
|
},
|
|
2257
|
-
wrapClassName: "".concat(modules_63b47c51$
|
|
2214
|
+
wrapClassName: "".concat(modules_63b47c51$6.AppViewImage, " ").concat(className || ""),
|
|
2258
2215
|
getContainer: getContainer,
|
|
2259
2216
|
children: visible && /*#__PURE__*/ jsx(ViewImage, _object_spread_props(_object_spread({}, props), {
|
|
2260
2217
|
ref: viewRef
|
|
@@ -2263,9 +2220,9 @@ var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
2263
2220
|
});
|
|
2264
2221
|
var ViewImage$1 = AppViewImage;
|
|
2265
2222
|
|
|
2266
|
-
var modules_63b47c51$
|
|
2223
|
+
var modules_63b47c51$4 = {"BhdSelect":"index_module_BhdSelect__0483925f","bhdSelect_option":"index_module_bhdSelect_option__0483925f","bhdSelectDrop":"index_module_bhdSelectDrop__0483925f","selectTitle":"index_module_selectTitle__0483925f","bhdSelectSearch":"index_module_bhdSelectSearch__0483925f","search":"index_module_search__0483925f"};
|
|
2267
2224
|
|
|
2268
|
-
var Search = Input.Search;
|
|
2225
|
+
var Search = Input$1.Search;
|
|
2269
2226
|
var RenderDrop = function(param) {
|
|
2270
2227
|
var menu = param.menu, bhdDropdownRef = param.bhdDropdownRef, mask = param.mask, initHeight = param.initHeight;
|
|
2271
2228
|
useEffect(function() {
|
|
@@ -2411,12 +2368,12 @@ var BhdSelect = function(props) {
|
|
|
2411
2368
|
//如果需要搜索菜单
|
|
2412
2369
|
if (showSearch) {
|
|
2413
2370
|
return /*#__PURE__*/ jsxs("div", {
|
|
2414
|
-
className: "".concat(modules_63b47c51$
|
|
2371
|
+
className: "".concat(modules_63b47c51$4.bhdSelectDrop, " ").concat(optionClassName),
|
|
2415
2372
|
ref: bhdDropdownRef,
|
|
2416
2373
|
children: [
|
|
2417
2374
|
renderTitle(),
|
|
2418
2375
|
/*#__PURE__*/ jsx("div", {
|
|
2419
|
-
className: modules_63b47c51$
|
|
2376
|
+
className: modules_63b47c51$4.bhdSelectSearch,
|
|
2420
2377
|
style: {
|
|
2421
2378
|
backgroundColor: select_title ? "rgba(0,0,0,0.02)" : "rgba(0,0,0,0)"
|
|
2422
2379
|
},
|
|
@@ -2426,7 +2383,7 @@ var BhdSelect = function(props) {
|
|
|
2426
2383
|
var value = param.target.value;
|
|
2427
2384
|
setFilterValue(value);
|
|
2428
2385
|
},
|
|
2429
|
-
className: "".concat(modules_63b47c51$
|
|
2386
|
+
className: "".concat(modules_63b47c51$4.search, " ").concat(searchClassName || ""),
|
|
2430
2387
|
onKeyDown: function(e) {
|
|
2431
2388
|
e.stopPropagation();
|
|
2432
2389
|
},
|
|
@@ -2438,7 +2395,7 @@ var BhdSelect = function(props) {
|
|
|
2438
2395
|
});
|
|
2439
2396
|
} else {
|
|
2440
2397
|
return /*#__PURE__*/ jsx("div", {
|
|
2441
|
-
className: modules_63b47c51$
|
|
2398
|
+
className: modules_63b47c51$4.bhdSelectDrop,
|
|
2442
2399
|
ref: bhdDropdownRef,
|
|
2443
2400
|
children: dropdownRender ? dropdownRender(menu) : menu
|
|
2444
2401
|
});
|
|
@@ -2453,7 +2410,7 @@ var BhdSelect = function(props) {
|
|
|
2453
2410
|
return select_title;
|
|
2454
2411
|
} else {
|
|
2455
2412
|
return /*#__PURE__*/ jsx("div", {
|
|
2456
|
-
className: modules_63b47c51$
|
|
2413
|
+
className: modules_63b47c51$4.selectTitle,
|
|
2457
2414
|
children: select_title
|
|
2458
2415
|
});
|
|
2459
2416
|
}
|
|
@@ -2477,7 +2434,7 @@ var BhdSelect = function(props) {
|
|
|
2477
2434
|
var getConfig = function() {
|
|
2478
2435
|
var config = _object_spread_props(_object_spread({}, props), {
|
|
2479
2436
|
listHeight: optionHei,
|
|
2480
|
-
popupClassName: "".concat(modules_63b47c51$
|
|
2437
|
+
popupClassName: "".concat(modules_63b47c51$4.bhdSelect_option, " ").concat(popupClassName || "", " "),
|
|
2481
2438
|
suffixIcon: suffixIcon ? suffixIcon : renderSuffixIcon(),
|
|
2482
2439
|
popupMatchSelectWidth: selectWidth,
|
|
2483
2440
|
dropdownStyle: _object_spread_props(_object_spread({}, props.dropdownStyle), {
|
|
@@ -2499,7 +2456,7 @@ var BhdSelect = function(props) {
|
|
|
2499
2456
|
return config;
|
|
2500
2457
|
};
|
|
2501
2458
|
return /*#__PURE__*/ jsx("div", {
|
|
2502
|
-
className: "".concat(modules_63b47c51$
|
|
2459
|
+
className: "".concat(modules_63b47c51$4.BhdSelect, " ").concat(className),
|
|
2503
2460
|
ref: bhdSelectRef,
|
|
2504
2461
|
children: /*#__PURE__*/ jsx(Select, _object_spread_props(_object_spread({}, getConfig()), {
|
|
2505
2462
|
showSearch: false,
|
|
@@ -2554,7 +2511,7 @@ var BhdSelect = function(props) {
|
|
|
2554
2511
|
BhdSelect.Option = Select.Option;
|
|
2555
2512
|
var BhdSelect$1 = BhdSelect;
|
|
2556
2513
|
|
|
2557
|
-
var modules_63b47c51$
|
|
2514
|
+
var modules_63b47c51$3 = {"bhd_app_layout":"index_module_bhd_app_layout__6a2d2320","bhd_app_layout_header":"index_module_bhd_app_layout_header__6a2d2320","bhd_app_layout_main":"index_module_bhd_app_layout_main__6a2d2320","bhd_app_layout_main_filter":"index_module_bhd_app_layout_main_filter__6a2d2320","bhd_app_layout_main_filter_title":"index_module_bhd_app_layout_main_filter_title__6a2d2320","bhd_app_layout_main_filter_ul":"index_module_bhd_app_layout_main_filter_ul__6a2d2320","bhd_app_layout_main_filter_show_value":"index_module_bhd_app_layout_main_filter_show_value__6a2d2320","bhd_app_layout_main_filter_clear":"index_module_bhd_app_layout_main_filter_clear__6a2d2320","bhd_app_layout_main_table":"index_module_bhd_app_layout_main_table__6a2d2320","bhd_app_layout_footer":"index_module_bhd_app_layout_footer__6a2d2320"};
|
|
2558
2515
|
|
|
2559
2516
|
function BhdAppLayout(props) {
|
|
2560
2517
|
var _filterRef_current, _filterRef, _headRef_current, _headRef, _otherHeadRef_current, _otherHeadRef, _otherContentRef_current, _otherContentRef, _filterConfig, _filterConfig1, _footerConfig;
|
|
@@ -2593,11 +2550,11 @@ function BhdAppLayout(props) {
|
|
|
2593
2550
|
(_otherContentRef = otherContentRef) === null || _otherContentRef === void 0 ? void 0 : (_otherContentRef_current = _otherContentRef.current) === null || _otherContentRef_current === void 0 ? void 0 : _otherContentRef_current.offsetHeight
|
|
2594
2551
|
]);
|
|
2595
2552
|
return /*#__PURE__*/ jsxs("div", {
|
|
2596
|
-
className: "".concat(modules_63b47c51$
|
|
2553
|
+
className: "".concat(modules_63b47c51$3.bhd_app_layout, " ").concat(className || ""),
|
|
2597
2554
|
children: [
|
|
2598
2555
|
/*#__PURE__*/ jsx("header", {
|
|
2599
2556
|
ref: headRef,
|
|
2600
|
-
className: "".concat(modules_63b47c51$
|
|
2557
|
+
className: "".concat(modules_63b47c51$3.bhd_app_layout_header, " ").concat(headerClassName || ""),
|
|
2601
2558
|
children: headConfig && /*#__PURE__*/ jsx(TitleBar$1, _object_spread({}, headConfig))
|
|
2602
2559
|
}),
|
|
2603
2560
|
headContent && /*#__PURE__*/ jsx("div", {
|
|
@@ -2605,30 +2562,30 @@ function BhdAppLayout(props) {
|
|
|
2605
2562
|
children: headContent
|
|
2606
2563
|
}),
|
|
2607
2564
|
/*#__PURE__*/ jsxs("main", {
|
|
2608
|
-
className: modules_63b47c51$
|
|
2565
|
+
className: modules_63b47c51$3.bhd_app_layout_main,
|
|
2609
2566
|
children: [
|
|
2610
2567
|
((_filterConfig = filterConfig) === null || _filterConfig === void 0 ? void 0 : _filterConfig.filterArr) && filterConfig.filterArr.length ? /*#__PURE__*/ jsxs("div", {
|
|
2611
2568
|
ref: filterRef,
|
|
2612
|
-
className: modules_63b47c51$
|
|
2569
|
+
className: modules_63b47c51$3.bhd_app_layout_main_filter,
|
|
2613
2570
|
children: [
|
|
2614
2571
|
/*#__PURE__*/ jsxs("div", {
|
|
2615
|
-
className: modules_63b47c51$
|
|
2572
|
+
className: modules_63b47c51$3.bhd_app_layout_main_filter_title,
|
|
2616
2573
|
children: [
|
|
2617
2574
|
i18Conversion$1("已筛选"),
|
|
2618
2575
|
":"
|
|
2619
2576
|
]
|
|
2620
2577
|
}),
|
|
2621
2578
|
/*#__PURE__*/ jsx("ul", {
|
|
2622
|
-
className: modules_63b47c51$
|
|
2579
|
+
className: modules_63b47c51$3.bhd_app_layout_main_filter_ul,
|
|
2623
2580
|
children: filterConfig.filterArr.map(function(ele, index) {
|
|
2624
2581
|
return /*#__PURE__*/ jsxs("li", {
|
|
2625
2582
|
children: [
|
|
2626
2583
|
/*#__PURE__*/ jsx("span", {
|
|
2627
|
-
className: modules_63b47c51$
|
|
2584
|
+
className: modules_63b47c51$3.bhd_app_layout_main_filter_show_title,
|
|
2628
2585
|
children: ele.title
|
|
2629
2586
|
}),
|
|
2630
2587
|
/*#__PURE__*/ jsxs("span", {
|
|
2631
|
-
className: modules_63b47c51$
|
|
2588
|
+
className: modules_63b47c51$3.bhd_app_layout_main_filter_show_value,
|
|
2632
2589
|
children: [
|
|
2633
2590
|
"“",
|
|
2634
2591
|
ele.value,
|
|
@@ -2647,7 +2604,7 @@ function BhdAppLayout(props) {
|
|
|
2647
2604
|
}),
|
|
2648
2605
|
/*#__PURE__*/ jsx("div", {
|
|
2649
2606
|
onClick: (_filterConfig1 = filterConfig) === null || _filterConfig1 === void 0 ? void 0 : _filterConfig1.onClearAll,
|
|
2650
|
-
className: modules_63b47c51$
|
|
2607
|
+
className: modules_63b47c51$3.bhd_app_layout_main_filter_clear,
|
|
2651
2608
|
children: i18Conversion$1("清空条件")
|
|
2652
2609
|
})
|
|
2653
2610
|
]
|
|
@@ -2657,7 +2614,7 @@ function BhdAppLayout(props) {
|
|
|
2657
2614
|
children: otherContent
|
|
2658
2615
|
}),
|
|
2659
2616
|
/*#__PURE__*/ jsx("div", {
|
|
2660
|
-
className: "".concat(modules_63b47c51$
|
|
2617
|
+
className: "".concat(modules_63b47c51$3.bhd_app_layout_main_table, " ").concat(tableBoxClassName || ""),
|
|
2661
2618
|
children: scrollConfig ? tableConfig && /*#__PURE__*/ jsx(BhdTableSimple$1, _object_spread_props(_object_spread({}, tableConfig), {
|
|
2662
2619
|
pagination: false,
|
|
2663
2620
|
scroll: _object_spread({}, scrollConfig)
|
|
@@ -2666,7 +2623,7 @@ function BhdAppLayout(props) {
|
|
|
2666
2623
|
]
|
|
2667
2624
|
}),
|
|
2668
2625
|
footerConfig ? /*#__PURE__*/ jsxs("footer", {
|
|
2669
|
-
className: modules_63b47c51$
|
|
2626
|
+
className: modules_63b47c51$3.bhd_app_layout_footer,
|
|
2670
2627
|
children: [
|
|
2671
2628
|
/*#__PURE__*/ jsx("div", {
|
|
2672
2629
|
children: ((_footerConfig = footerConfig) === null || _footerConfig === void 0 ? void 0 : _footerConfig.leftDom) && footerConfig.leftDom
|
|
@@ -2678,7 +2635,7 @@ function BhdAppLayout(props) {
|
|
|
2678
2635
|
});
|
|
2679
2636
|
}
|
|
2680
2637
|
|
|
2681
|
-
var modules_63b47c51$
|
|
2638
|
+
var modules_63b47c51$2 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__00686be6","ChatWindow_Modal":"index_module_ChatWindow_Modal__00686be6","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__00686be6","header_wrap":"index_module_header_wrap__00686be6","top":"index_module_top__00686be6","user":"index_module_user__00686be6","count":"index_module_count__00686be6","operate":"index_module_operate__00686be6","line":"index_module_line__00686be6","popover_main":"index_module_popover_main__00686be6","popover":"index_module_popover__00686be6","header_wrap_newlabo":"index_module_header_wrap_newlabo__00686be6","Drawer_main":"index_module_Drawer_main__00686be6","loading":"index_module_loading__00686be6","message_con":"index_module_message_con__00686be6","left":"index_module_left__00686be6","head_sculpture":"index_module_head_sculpture__00686be6","main_content":"index_module_main_content__00686be6","right":"index_module_right__00686be6","main":"index_module_main__00686be6","main_content_flag":"index_module_main_content_flag__00686be6","operate_modal":"index_module_operate_modal__00686be6","operate_modal_bottom":"index_module_operate_modal_bottom__00686be6","active":"index_module_active__00686be6","stop_generate":"index_module_stop_generate__00686be6","icon":"index_module_icon__00686be6","find_teacher":"index_module_find_teacher__00686be6","stop_findTeacher":"index_module_stop_findTeacher__00686be6","content":"index_module_content__00686be6","content_child":"index_module_content_child__00686be6","find_teacher_con":"index_module_find_teacher_con__00686be6","sign":"index_module_sign__00686be6","ask_question":"index_module_ask_question__00686be6","bottom":"index_module_bottom__00686be6","association_problem":"index_module_association_problem__00686be6","association_problem_flag":"index_module_association_problem_flag__00686be6","related_issues_flag":"index_module_related_issues_flag__00686be6","img_con":"index_module_img_con__00686be6","mask_zoom":"index_module_mask_zoom__00686be6","img_con2":"index_module_img_con2__00686be6","copyCode":"index_module_copyCode__00686be6","time":"index_module_time__00686be6","citation_content":"index_module_citation_content__00686be6","text_exceed":"index_module_text_exceed__00686be6","popover_content":"index_module_popover_content__00686be6","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__00686be6","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__00686be6","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__00686be6","issues_list_teacherList":"index_module_issues_list_teacherList__00686be6","item":"index_module_item__00686be6","issues_list":"index_module_issues_list__00686be6","issues_list_flag":"index_module_issues_list_flag__00686be6","Drawer_buttom":"index_module_Drawer_buttom__00686be6","input_wrap":"index_module_input_wrap__00686be6","input":"index_module_input__00686be6","picture_layout":"index_module_picture_layout__00686be6","icon_close":"index_module_icon_close__00686be6","icon_zoom":"index_module_icon_zoom__00686be6","anticon":"index_module_anticon__00686be6","no_AI":"index_module_no_AI__00686be6","screenshot":"index_module_screenshot__00686be6","disabled":"index_module_disabled__00686be6","content_main":"index_module_content_main__00686be6","content_con":"index_module_content_con__00686be6","delete_quote":"index_module_delete_quote__00686be6","sending":"index_module_sending__00686be6","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__00686be6","main_list":"index_module_main_list__00686be6","chat_content":"index_module_chat_content__00686be6","popover_main_content":"index_module_popover_main_content__00686be6","popover_main_content_name":"index_module_popover_main_content_name__00686be6","teacher_layout":"index_module_teacher_layout__00686be6","delete":"index_module_delete__00686be6","num":"index_module_num__00686be6","shrink":"index_module_shrink__00686be6","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__00686be6","teacher_layout_modal":"index_module_teacher_layout_modal__00686be6","ai":"index_module_ai__00686be6","user_info":"index_module_user_info__00686be6","message":"index_module_message__00686be6","con":"index_module_con__00686be6","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__00686be6","history_list":"index_module_history_list__00686be6","search_layout":"index_module_search_layout__00686be6","mymove":"index_module_mymove__00686be6","title":"index_module_title__00686be6","search_top":"index_module_search_top__00686be6","list_item":"index_module_list_item__00686be6","list_summary":"index_module_list_summary__00686be6","head_img":"index_module_head_img__00686be6","list_desc":"index_module_list_desc__00686be6","name":"index_module_name__00686be6","decs":"index_module_decs__00686be6","open":"index_module_open__00686be6","list_summary_active":"index_module_list_summary_active__00686be6","list_detail":"index_module_list_detail__00686be6","list":"index_module_list__00686be6","list_more":"index_module_list_more__00686be6","no_data":"index_module_no_data__00686be6","history_list_broadside":"index_module_history_list_broadside__00686be6","teacher_list":"index_module_teacher_list__00686be6","screenshot_Modal":"index_module_screenshot_Modal__00686be6","ReactCrop":"index_module_ReactCrop__00686be6","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__00686be6"};
|
|
2682
2639
|
|
|
2683
2640
|
function BaseHOC(key) {
|
|
2684
2641
|
return function(props) {
|
|
@@ -2715,10 +2672,10 @@ function BaseHOC(key) {
|
|
|
2715
2672
|
setFlag(isOnCompositionRef.current);
|
|
2716
2673
|
}
|
|
2717
2674
|
}
|
|
2718
|
-
var Component = Input;
|
|
2675
|
+
var Component = Input$1;
|
|
2719
2676
|
if (key) {
|
|
2720
2677
|
//@ts-ignore
|
|
2721
|
-
Component = Input[key];
|
|
2678
|
+
Component = Input$1[key];
|
|
2722
2679
|
}
|
|
2723
2680
|
function handlePressEnter(e) {
|
|
2724
2681
|
console.log("isOnCompositionisOnComposition", isOnCompositionRef.current);
|
|
@@ -2745,9 +2702,9 @@ Component.Search = function(props) {
|
|
|
2745
2702
|
Component.TextArea = function(props) {
|
|
2746
2703
|
return BaseHOC("TextArea")(props);
|
|
2747
2704
|
};
|
|
2748
|
-
Component.Password = Input.Password;
|
|
2749
|
-
Component.Group = Input.Group;
|
|
2750
|
-
var
|
|
2705
|
+
Component.Password = Input$1.Password;
|
|
2706
|
+
Component.Group = Input$1.Group;
|
|
2707
|
+
var Input = Component;
|
|
2751
2708
|
|
|
2752
2709
|
//消息已读
|
|
2753
2710
|
var readMessage = function(roomId, urllocation, userData, http) {
|
|
@@ -3183,12 +3140,12 @@ var HistoryFun = function(props) {
|
|
|
3183
3140
|
});
|
|
3184
3141
|
};
|
|
3185
3142
|
return /*#__PURE__*/ jsx("div", {
|
|
3186
|
-
className: "".concat(modules_63b47c51$
|
|
3143
|
+
className: "".concat(modules_63b47c51$2.history_list, " ").concat(type == 2 ? modules_63b47c51$2.history_list_broadside : "", " "),
|
|
3187
3144
|
children: /*#__PURE__*/ jsxs("div", {
|
|
3188
|
-
className: modules_63b47c51$
|
|
3145
|
+
className: modules_63b47c51$2.search_layout,
|
|
3189
3146
|
children: [
|
|
3190
3147
|
/*#__PURE__*/ jsxs("div", {
|
|
3191
|
-
className: modules_63b47c51$
|
|
3148
|
+
className: modules_63b47c51$2.title,
|
|
3192
3149
|
children: [
|
|
3193
3150
|
/*#__PURE__*/ jsx("span", {
|
|
3194
3151
|
children: "历史记录"
|
|
@@ -3203,10 +3160,10 @@ var HistoryFun = function(props) {
|
|
|
3203
3160
|
]
|
|
3204
3161
|
}),
|
|
3205
3162
|
/*#__PURE__*/ jsxs("div", {
|
|
3206
|
-
className: modules_63b47c51$
|
|
3163
|
+
className: modules_63b47c51$2.search_top,
|
|
3207
3164
|
children: [
|
|
3208
3165
|
/*#__PURE__*/ jsx(SearchOutlined, {}),
|
|
3209
|
-
/*#__PURE__*/ jsx(Input, {
|
|
3166
|
+
/*#__PURE__*/ jsx(Input$1, {
|
|
3210
3167
|
placeholder: "请输入您要搜索的内容",
|
|
3211
3168
|
value: keyWordProblem,
|
|
3212
3169
|
onChange: function(e) {
|
|
@@ -3239,11 +3196,11 @@ var HistoryFun = function(props) {
|
|
|
3239
3196
|
spinning: loading,
|
|
3240
3197
|
tip: "加载中...",
|
|
3241
3198
|
children: /*#__PURE__*/ jsxs("div", {
|
|
3242
|
-
className: modules_63b47c51$
|
|
3199
|
+
className: modules_63b47c51$2.main_list,
|
|
3243
3200
|
id: "history_list",
|
|
3244
3201
|
children: [
|
|
3245
3202
|
!loading && showLoadingState == 1 && /*#__PURE__*/ jsxs("div", {
|
|
3246
|
-
className: modules_63b47c51$
|
|
3203
|
+
className: modules_63b47c51$2.no_data,
|
|
3247
3204
|
children: [
|
|
3248
3205
|
/*#__PURE__*/ jsx("img", {
|
|
3249
3206
|
src: "/new_yun/images/aiService/search_for_icon.png"
|
|
@@ -3254,7 +3211,7 @@ var HistoryFun = function(props) {
|
|
|
3254
3211
|
]
|
|
3255
3212
|
}),
|
|
3256
3213
|
!loading && showLoadingState == 2 && /*#__PURE__*/ jsxs("div", {
|
|
3257
|
-
className: modules_63b47c51$
|
|
3214
|
+
className: modules_63b47c51$2.no_data,
|
|
3258
3215
|
children: [
|
|
3259
3216
|
/*#__PURE__*/ jsx("img", {
|
|
3260
3217
|
src: "/new_yun/images/aiService/no_data.png"
|
|
@@ -3265,7 +3222,7 @@ var HistoryFun = function(props) {
|
|
|
3265
3222
|
]
|
|
3266
3223
|
}),
|
|
3267
3224
|
!loading && /*#__PURE__*/ jsx("div", {
|
|
3268
|
-
className: modules_63b47c51$
|
|
3225
|
+
className: modules_63b47c51$2.list_item,
|
|
3269
3226
|
children: totalData.map(function(item) {
|
|
3270
3227
|
var span = "";
|
|
3271
3228
|
var time = "";
|
|
@@ -3279,11 +3236,11 @@ var HistoryFun = function(props) {
|
|
|
3279
3236
|
//搜索内容是否有特殊字符
|
|
3280
3237
|
if (reg.test(keyWordProblem)) {
|
|
3281
3238
|
span = message.replaceAll(keyWordProblem, function(e) {
|
|
3282
|
-
return "<span class=".concat(modules_63b47c51$
|
|
3239
|
+
return "<span class=".concat(modules_63b47c51$2.sign, ">").concat(e, "</span>");
|
|
3283
3240
|
});
|
|
3284
3241
|
} else {
|
|
3285
3242
|
span = message.replaceAll(new RegExp(keyWordProblem, "ig"), function(i) {
|
|
3286
|
-
return "<span class=".concat(modules_63b47c51$
|
|
3243
|
+
return "<span class=".concat(modules_63b47c51$2.sign, ">").concat(i, "</span>");
|
|
3287
3244
|
});
|
|
3288
3245
|
}
|
|
3289
3246
|
time = formatDate(item.createdAt);
|
|
@@ -3291,7 +3248,7 @@ var HistoryFun = function(props) {
|
|
|
3291
3248
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
3292
3249
|
children: [
|
|
3293
3250
|
/*#__PURE__*/ jsxs("div", {
|
|
3294
|
-
className: "".concat(modules_63b47c51$
|
|
3251
|
+
className: "".concat(modules_63b47c51$2.list_summary, " ").concat(item.show ? modules_63b47c51$2.list_summary_active : ""),
|
|
3295
3252
|
id: item.roomId,
|
|
3296
3253
|
onClick: function() {
|
|
3297
3254
|
if (item.count == 1) {
|
|
@@ -3302,26 +3259,26 @@ var HistoryFun = function(props) {
|
|
|
3302
3259
|
},
|
|
3303
3260
|
children: [
|
|
3304
3261
|
/*#__PURE__*/ jsx("div", {
|
|
3305
|
-
className: modules_63b47c51$
|
|
3262
|
+
className: modules_63b47c51$2.head_img,
|
|
3306
3263
|
children: item.member == "AI" ? /*#__PURE__*/ jsx(CustomAiIcon$1, {}) : /*#__PURE__*/ jsx("img", {
|
|
3307
3264
|
src: item.headImg
|
|
3308
3265
|
})
|
|
3309
3266
|
}),
|
|
3310
3267
|
/*#__PURE__*/ jsxs("div", {
|
|
3311
|
-
className: modules_63b47c51$
|
|
3268
|
+
className: modules_63b47c51$2.list_desc,
|
|
3312
3269
|
children: [
|
|
3313
3270
|
/*#__PURE__*/ jsxs("p", {
|
|
3314
|
-
className: modules_63b47c51$
|
|
3271
|
+
className: modules_63b47c51$2.name,
|
|
3315
3272
|
children: [
|
|
3316
3273
|
item.member == "AI" ? "AI助手" : item.name,
|
|
3317
3274
|
item.count == 1 ? /*#__PURE__*/ jsx("span", {
|
|
3318
|
-
className: modules_63b47c51$
|
|
3275
|
+
className: modules_63b47c51$2.time,
|
|
3319
3276
|
children: time
|
|
3320
3277
|
}) : ""
|
|
3321
3278
|
]
|
|
3322
3279
|
}),
|
|
3323
3280
|
item.count == 1 ? /*#__PURE__*/ jsx("p", {
|
|
3324
|
-
className: modules_63b47c51$
|
|
3281
|
+
className: modules_63b47c51$2.decs,
|
|
3325
3282
|
style: {
|
|
3326
3283
|
width: "calc(100% - 36px)"
|
|
3327
3284
|
},
|
|
@@ -3329,19 +3286,19 @@ var HistoryFun = function(props) {
|
|
|
3329
3286
|
__html: span
|
|
3330
3287
|
}
|
|
3331
3288
|
}) : /*#__PURE__*/ jsx("p", {
|
|
3332
|
-
className: modules_63b47c51$
|
|
3289
|
+
className: modules_63b47c51$2.decs,
|
|
3333
3290
|
children: "".concat(item.count, "条相关聊天记录")
|
|
3334
3291
|
})
|
|
3335
3292
|
]
|
|
3336
3293
|
}),
|
|
3337
3294
|
item.count != 1 ? /*#__PURE__*/ jsx("div", {
|
|
3338
|
-
className: "".concat(modules_63b47c51$
|
|
3295
|
+
className: "".concat(modules_63b47c51$2.open, " ").concat(item.show ? modules_63b47c51$2.active : ""),
|
|
3339
3296
|
children: /*#__PURE__*/ jsx(CustomExpand$1, {})
|
|
3340
3297
|
}) : ""
|
|
3341
3298
|
]
|
|
3342
3299
|
}),
|
|
3343
3300
|
/*#__PURE__*/ jsxs("div", {
|
|
3344
|
-
className: modules_63b47c51$
|
|
3301
|
+
className: modules_63b47c51$2.list_detail,
|
|
3345
3302
|
children: [
|
|
3346
3303
|
item.show && item.detailsList && item.detailsList.map(function(list) {
|
|
3347
3304
|
// console.log(list,item,'dklfvmdflkvmdfklv')
|
|
@@ -3364,16 +3321,16 @@ var HistoryFun = function(props) {
|
|
|
3364
3321
|
//搜索内容是否有特殊字符
|
|
3365
3322
|
if (reg.test(keyWordProblem)) {
|
|
3366
3323
|
span = message.replaceAll(keyWordProblem, function(e) {
|
|
3367
|
-
return "<span class=".concat(modules_63b47c51$
|
|
3324
|
+
return "<span class=".concat(modules_63b47c51$2.sign, ">").concat(e, "</span>");
|
|
3368
3325
|
});
|
|
3369
3326
|
} else {
|
|
3370
3327
|
span = message.replaceAll(new RegExp(keyWordProblem, "ig"), function(i) {
|
|
3371
3328
|
// console.log(i,'skdcnsdjk')
|
|
3372
|
-
return "<span class=".concat(modules_63b47c51$
|
|
3329
|
+
return "<span class=".concat(modules_63b47c51$2.sign, ">").concat(i, "</span>");
|
|
3373
3330
|
});
|
|
3374
3331
|
}
|
|
3375
3332
|
return /*#__PURE__*/ jsxs("div", {
|
|
3376
|
-
className: modules_63b47c51$
|
|
3333
|
+
className: modules_63b47c51$2.list,
|
|
3377
3334
|
onClick: function() {
|
|
3378
3335
|
calculationData(item.roomId, list.id, props.userData.mid == list.sender ? list.receiver : list.sender);
|
|
3379
3336
|
console.log("答应一下111111", {
|
|
@@ -3385,19 +3342,19 @@ var HistoryFun = function(props) {
|
|
|
3385
3342
|
},
|
|
3386
3343
|
children: [
|
|
3387
3344
|
/*#__PURE__*/ jsxs("div", {
|
|
3388
|
-
className: modules_63b47c51$
|
|
3345
|
+
className: modules_63b47c51$2.name,
|
|
3389
3346
|
children: [
|
|
3390
3347
|
/*#__PURE__*/ jsx("p", {
|
|
3391
3348
|
children: name
|
|
3392
3349
|
}),
|
|
3393
3350
|
/*#__PURE__*/ jsx("span", {
|
|
3394
|
-
className: modules_63b47c51$
|
|
3351
|
+
className: modules_63b47c51$2.time,
|
|
3395
3352
|
children: time
|
|
3396
3353
|
})
|
|
3397
3354
|
]
|
|
3398
3355
|
}),
|
|
3399
3356
|
/*#__PURE__*/ jsx("div", {
|
|
3400
|
-
className: modules_63b47c51$
|
|
3357
|
+
className: modules_63b47c51$2.con,
|
|
3401
3358
|
dangerouslySetInnerHTML: {
|
|
3402
3359
|
__html: span
|
|
3403
3360
|
}
|
|
@@ -3406,7 +3363,7 @@ var HistoryFun = function(props) {
|
|
|
3406
3363
|
}, list.id);
|
|
3407
3364
|
}),
|
|
3408
3365
|
item.show && item.pageCount > 1 && item.pageCount > item.pageNum && /*#__PURE__*/ jsx("div", {
|
|
3409
|
-
className: "".concat(modules_63b47c51$
|
|
3366
|
+
className: "".concat(modules_63b47c51$2.list, " ").concat(modules_63b47c51$2.list_more),
|
|
3410
3367
|
onClick: function() {
|
|
3411
3368
|
loadMore(item.pageNum + 1, item.roomId);
|
|
3412
3369
|
},
|
|
@@ -3438,34 +3395,34 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3438
3395
|
};
|
|
3439
3396
|
return type == 2 || type == 4 ? //联系人展开
|
|
3440
3397
|
/*#__PURE__*/ jsxs("div", {
|
|
3441
|
-
className: "".concat(modules_63b47c51$
|
|
3398
|
+
className: "".concat(modules_63b47c51$2.teacher_layout_modal, " ").concat(type == 4 ? modules_63b47c51$2.teacher_layout_modal_newlabo : ""),
|
|
3442
3399
|
children: [
|
|
3443
3400
|
/*#__PURE__*/ jsx("div", {
|
|
3444
|
-
className: modules_63b47c51$
|
|
3401
|
+
className: modules_63b47c51$2.top,
|
|
3445
3402
|
children: /*#__PURE__*/ jsxs("div", {
|
|
3446
|
-
className: "".concat(modules_63b47c51$
|
|
3403
|
+
className: "".concat(modules_63b47c51$2.ai, " ").concat(contactsList.length > 0 && contactsList[0].roomId != undefined && roomId != "" && contactsList[0].roomId == roomId || contactsList.length == 0 ? modules_63b47c51$2.active : ""),
|
|
3447
3404
|
onClick: function() {
|
|
3448
3405
|
return switchChatRoom(contactsList[0].roomId, "");
|
|
3449
3406
|
},
|
|
3450
3407
|
children: [
|
|
3451
3408
|
/*#__PURE__*/ jsx(CustomAiIcon$1, {}),
|
|
3452
3409
|
/*#__PURE__*/ jsxs("div", {
|
|
3453
|
-
className: modules_63b47c51$
|
|
3410
|
+
className: modules_63b47c51$2.user_info,
|
|
3454
3411
|
children: [
|
|
3455
3412
|
/*#__PURE__*/ jsxs("p", {
|
|
3456
|
-
className: modules_63b47c51$
|
|
3413
|
+
className: modules_63b47c51$2.message,
|
|
3457
3414
|
children: [
|
|
3458
3415
|
userData.modules.some(function(ele) {
|
|
3459
3416
|
return ele.short == "AIservice";
|
|
3460
3417
|
}) ? "AI助手" : "智能问答",
|
|
3461
3418
|
/*#__PURE__*/ jsx("span", {
|
|
3462
|
-
className: modules_63b47c51$
|
|
3419
|
+
className: modules_63b47c51$2.time,
|
|
3463
3420
|
children: contactsList.length > 0 && contactsList[0].createdAt != undefined && formatDate(contactsList[0].createdAt)
|
|
3464
3421
|
})
|
|
3465
3422
|
]
|
|
3466
3423
|
}),
|
|
3467
3424
|
/*#__PURE__*/ jsx("p", {
|
|
3468
|
-
className: modules_63b47c51$
|
|
3425
|
+
className: modules_63b47c51$2.con,
|
|
3469
3426
|
children: contactsList.length > 0 && contactsList[0].lastMsg
|
|
3470
3427
|
})
|
|
3471
3428
|
]
|
|
@@ -3476,11 +3433,11 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3476
3433
|
userData.modules.some(function(item) {
|
|
3477
3434
|
return item.short == "TeacherAnswer";
|
|
3478
3435
|
}) && /*#__PURE__*/ jsx("div", {
|
|
3479
|
-
className: modules_63b47c51$
|
|
3436
|
+
className: modules_63b47c51$2.bottom,
|
|
3480
3437
|
children: contactsList.map(function(item, index) {
|
|
3481
3438
|
if (index != 0) {
|
|
3482
3439
|
return /*#__PURE__*/ jsxs("div", {
|
|
3483
|
-
className: "".concat(modules_63b47c51$
|
|
3440
|
+
className: "".concat(modules_63b47c51$2.ai, " ").concat(item.roomId != undefined && roomId != "" && item.roomId == roomId ? modules_63b47c51$2.active : ""),
|
|
3484
3441
|
onClick: function() {
|
|
3485
3442
|
switchChatRoom(item.roomId, "");
|
|
3486
3443
|
},
|
|
@@ -3489,29 +3446,29 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3489
3446
|
src: item.headImg
|
|
3490
3447
|
}),
|
|
3491
3448
|
/*#__PURE__*/ jsxs("div", {
|
|
3492
|
-
className: modules_63b47c51$
|
|
3449
|
+
className: modules_63b47c51$2.user_info,
|
|
3493
3450
|
children: [
|
|
3494
3451
|
/*#__PURE__*/ jsxs("p", {
|
|
3495
|
-
className: modules_63b47c51$
|
|
3452
|
+
className: modules_63b47c51$2.message,
|
|
3496
3453
|
children: [
|
|
3497
3454
|
item.name != undefined && getByteLen(item.name) >= 20 ? /*#__PURE__*/ jsx(Tooltip, {
|
|
3498
|
-
overlayClassName: "".concat(modules_63b47c51$
|
|
3455
|
+
overlayClassName: "".concat(modules_63b47c51$2.popover_main_content_name),
|
|
3499
3456
|
title: item.name,
|
|
3500
3457
|
placement: "top",
|
|
3501
3458
|
children: item.name
|
|
3502
3459
|
}) : item.name,
|
|
3503
3460
|
item.unreadCount != undefined && item.unreadCount > 0 && !(item.roomId != undefined && roomId != "" && item.roomId == roomId) && /*#__PURE__*/ jsx("span", {
|
|
3504
|
-
className: modules_63b47c51$
|
|
3461
|
+
className: modules_63b47c51$2.num,
|
|
3505
3462
|
children: item.unreadCount > 99 ? "99+" : item.unreadCount
|
|
3506
3463
|
}),
|
|
3507
3464
|
/*#__PURE__*/ jsx("span", {
|
|
3508
|
-
className: modules_63b47c51$
|
|
3465
|
+
className: modules_63b47c51$2.time,
|
|
3509
3466
|
children: formatDate(item.createdAt)
|
|
3510
3467
|
})
|
|
3511
3468
|
]
|
|
3512
3469
|
}),
|
|
3513
3470
|
/*#__PURE__*/ jsx("p", {
|
|
3514
|
-
className: modules_63b47c51$
|
|
3471
|
+
className: modules_63b47c51$2.con,
|
|
3515
3472
|
children: item.lastMsg
|
|
3516
3473
|
})
|
|
3517
3474
|
]
|
|
@@ -3525,16 +3482,16 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3525
3482
|
})
|
|
3526
3483
|
]
|
|
3527
3484
|
}) : /*#__PURE__*/ jsxs("div", {
|
|
3528
|
-
className: "".concat(modules_63b47c51$
|
|
3485
|
+
className: "".concat(modules_63b47c51$2.teacher_layout, " ").concat(type == 3 ? modules_63b47c51$2.teacher_layout_newlabo : ""),
|
|
3529
3486
|
style: {
|
|
3530
3487
|
left: type == 3 ? document.getElementById("box") && document.getElementById("box").offsetWidth + 10 + "px" : "auto"
|
|
3531
3488
|
},
|
|
3532
3489
|
children: [
|
|
3533
3490
|
/*#__PURE__*/ jsxs("div", {
|
|
3534
|
-
className: modules_63b47c51$
|
|
3491
|
+
className: modules_63b47c51$2.top,
|
|
3535
3492
|
children: [
|
|
3536
3493
|
/*#__PURE__*/ jsxs("div", {
|
|
3537
|
-
className: "".concat(modules_63b47c51$
|
|
3494
|
+
className: "".concat(modules_63b47c51$2.ai, " ").concat(modules_63b47c51$2.shrink),
|
|
3538
3495
|
onClick: function() {
|
|
3539
3496
|
onClose();
|
|
3540
3497
|
},
|
|
@@ -3549,7 +3506,7 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3549
3506
|
]
|
|
3550
3507
|
}),
|
|
3551
3508
|
/*#__PURE__*/ jsxs("div", {
|
|
3552
|
-
className: "".concat(modules_63b47c51$
|
|
3509
|
+
className: "".concat(modules_63b47c51$2.ai, " ").concat(contactsList.length > 0 && contactsList[0].roomId != undefined && roomId != "" && contactsList[0].roomId == roomId || contactsList.length == 0 ? modules_63b47c51$2.active : ""),
|
|
3553
3510
|
onClick: function() {
|
|
3554
3511
|
switchChatRoom(contactsList[0].roomId, "");
|
|
3555
3512
|
// roomsListTimer();
|
|
@@ -3568,11 +3525,11 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3568
3525
|
userData.modules.some(function(item) {
|
|
3569
3526
|
return item.short == "TeacherAnswer";
|
|
3570
3527
|
}) && /*#__PURE__*/ jsx("div", {
|
|
3571
|
-
className: modules_63b47c51$
|
|
3528
|
+
className: modules_63b47c51$2.bottom,
|
|
3572
3529
|
children: contactsList.map(function(item, index) {
|
|
3573
3530
|
if (index != 0) {
|
|
3574
3531
|
return /*#__PURE__*/ jsxs("div", {
|
|
3575
|
-
className: "".concat(modules_63b47c51$
|
|
3532
|
+
className: "".concat(modules_63b47c51$2.ai, " ").concat(item.roomId != undefined && roomId != "" && item.roomId == roomId ? modules_63b47c51$2.active : ""),
|
|
3576
3533
|
onClick: function() {
|
|
3577
3534
|
switchChatRoom(item.roomId, "");
|
|
3578
3535
|
},
|
|
@@ -3582,19 +3539,19 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3582
3539
|
}),
|
|
3583
3540
|
/*#__PURE__*/ jsx("p", {
|
|
3584
3541
|
children: item.name != undefined && getByteLen(item.name) >= 10 ? /*#__PURE__*/ jsx(Tooltip, {
|
|
3585
|
-
overlayClassName: modules_63b47c51$
|
|
3542
|
+
overlayClassName: modules_63b47c51$2.popover_main_content_name,
|
|
3586
3543
|
title: item.name,
|
|
3587
3544
|
placement: "top",
|
|
3588
3545
|
children: item.name
|
|
3589
3546
|
}) : item.name
|
|
3590
3547
|
}),
|
|
3591
3548
|
item.unreadCount != undefined && item.unreadCount > 0 && !(item.roomId != undefined && roomId != "" && item.roomId == roomId) && /*#__PURE__*/ jsx("span", {
|
|
3592
|
-
className: modules_63b47c51$
|
|
3549
|
+
className: modules_63b47c51$2.num,
|
|
3593
3550
|
children: item.unreadCount > 99 ? "99+" : item.unreadCount
|
|
3594
3551
|
}),
|
|
3595
3552
|
// 没有消息时,可点击删除
|
|
3596
3553
|
!item.unreadCount && /*#__PURE__*/ jsx("span", {
|
|
3597
|
-
className: modules_63b47c51$
|
|
3554
|
+
className: modules_63b47c51$2.delete,
|
|
3598
3555
|
onClick: function(e) {
|
|
3599
3556
|
e.stopPropagation();
|
|
3600
3557
|
deleteRoom(item.roomId);
|
|
@@ -3696,10 +3653,10 @@ var ScreenshotTool = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3696
3653
|
setIsFirst(false);
|
|
3697
3654
|
};
|
|
3698
3655
|
return /*#__PURE__*/ jsxs("div", {
|
|
3699
|
-
className: modules_63b47c51$
|
|
3656
|
+
className: modules_63b47c51$2.screenshot_Modal,
|
|
3700
3657
|
children: [
|
|
3701
3658
|
/*#__PURE__*/ jsx(X, {
|
|
3702
|
-
className: modules_63b47c51$
|
|
3659
|
+
className: modules_63b47c51$2.ReactCrop,
|
|
3703
3660
|
crop: crop,
|
|
3704
3661
|
onChange: function(_, percentCrop) {
|
|
3705
3662
|
if (percentCrop.height === 0 && percentCrop.width === 0) {
|
|
@@ -3725,7 +3682,7 @@ var ScreenshotTool = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3725
3682
|
})
|
|
3726
3683
|
}),
|
|
3727
3684
|
showBtn && /*#__PURE__*/ jsxs("div", {
|
|
3728
|
-
className: modules_63b47c51$
|
|
3685
|
+
className: modules_63b47c51$2.screenshot_Modal_btn,
|
|
3729
3686
|
style: {
|
|
3730
3687
|
top: btnPosition.top,
|
|
3731
3688
|
left: btnPosition.left
|
|
@@ -3912,12 +3869,12 @@ var TeacherList = function(props) {
|
|
|
3912
3869
|
});
|
|
3913
3870
|
};
|
|
3914
3871
|
return /*#__PURE__*/ jsx("div", {
|
|
3915
|
-
className: "".concat(modules_63b47c51$
|
|
3872
|
+
className: "".concat(modules_63b47c51$2.history_list, " ").concat(type == 2 ? modules_63b47c51$2.history_list_broadside : "", " ").concat(modules_63b47c51$2.teacher_list),
|
|
3916
3873
|
children: /*#__PURE__*/ jsxs("div", {
|
|
3917
|
-
className: modules_63b47c51$
|
|
3874
|
+
className: modules_63b47c51$2.search_layout,
|
|
3918
3875
|
children: [
|
|
3919
3876
|
/*#__PURE__*/ jsxs("div", {
|
|
3920
|
-
className: modules_63b47c51$
|
|
3877
|
+
className: modules_63b47c51$2.title,
|
|
3921
3878
|
children: [
|
|
3922
3879
|
/*#__PURE__*/ jsx("span", {
|
|
3923
3880
|
children: "召唤老师回答"
|
|
@@ -3932,10 +3889,10 @@ var TeacherList = function(props) {
|
|
|
3932
3889
|
]
|
|
3933
3890
|
}),
|
|
3934
3891
|
/*#__PURE__*/ jsxs("div", {
|
|
3935
|
-
className: modules_63b47c51$
|
|
3892
|
+
className: modules_63b47c51$2.search_top,
|
|
3936
3893
|
children: [
|
|
3937
3894
|
/*#__PURE__*/ jsx(SearchOutlined, {}),
|
|
3938
|
-
/*#__PURE__*/ jsx(Input, {
|
|
3895
|
+
/*#__PURE__*/ jsx(Input$1, {
|
|
3939
3896
|
placeholder: "请输入您要召唤的老师姓名",
|
|
3940
3897
|
value: keyWordProblem,
|
|
3941
3898
|
onChange: function(e) {
|
|
@@ -3965,11 +3922,11 @@ var TeacherList = function(props) {
|
|
|
3965
3922
|
]
|
|
3966
3923
|
}),
|
|
3967
3924
|
/*#__PURE__*/ jsxs("div", {
|
|
3968
|
-
className: modules_63b47c51$
|
|
3925
|
+
className: modules_63b47c51$2.main_list,
|
|
3969
3926
|
id: "teacher_list",
|
|
3970
3927
|
children: [
|
|
3971
3928
|
showLoadingState == 2 && /*#__PURE__*/ jsxs("div", {
|
|
3972
|
-
className: modules_63b47c51$
|
|
3929
|
+
className: modules_63b47c51$2.no_data,
|
|
3973
3930
|
children: [
|
|
3974
3931
|
/*#__PURE__*/ jsx("img", {
|
|
3975
3932
|
src: "/new_yun/images/aiService/no_data_02.png"
|
|
@@ -3980,30 +3937,30 @@ var TeacherList = function(props) {
|
|
|
3980
3937
|
]
|
|
3981
3938
|
}),
|
|
3982
3939
|
/*#__PURE__*/ jsx("div", {
|
|
3983
|
-
className: modules_63b47c51$
|
|
3940
|
+
className: modules_63b47c51$2.list_item,
|
|
3984
3941
|
ref: sliderRef,
|
|
3985
3942
|
children: showTotalData.map(function(item) {
|
|
3986
3943
|
var span = item.name.replaceAll(new RegExp(keyWordProblem, "ig"), function(i) {
|
|
3987
|
-
return "<span class=".concat(modules_63b47c51$
|
|
3944
|
+
return "<span class=".concat(modules_63b47c51$2.sign, ">").concat(i, "</span>");
|
|
3988
3945
|
});
|
|
3989
3946
|
return /*#__PURE__*/ jsx(Fragment, {
|
|
3990
3947
|
children: /*#__PURE__*/ jsxs("div", {
|
|
3991
|
-
className: "".concat(modules_63b47c51$
|
|
3948
|
+
className: "".concat(modules_63b47c51$2.list_summary),
|
|
3992
3949
|
id: item.roomId,
|
|
3993
3950
|
onClick: function() {
|
|
3994
3951
|
enterTeacherChat(item);
|
|
3995
3952
|
},
|
|
3996
3953
|
children: [
|
|
3997
3954
|
/*#__PURE__*/ jsx("div", {
|
|
3998
|
-
className: modules_63b47c51$
|
|
3955
|
+
className: modules_63b47c51$2.head_img,
|
|
3999
3956
|
children: /*#__PURE__*/ jsx("img", {
|
|
4000
3957
|
src: item.headImg
|
|
4001
3958
|
})
|
|
4002
3959
|
}),
|
|
4003
3960
|
/*#__PURE__*/ jsx("div", {
|
|
4004
|
-
className: modules_63b47c51$
|
|
3961
|
+
className: modules_63b47c51$2.list_desc,
|
|
4005
3962
|
children: /*#__PURE__*/ jsx("p", {
|
|
4006
|
-
className: modules_63b47c51$
|
|
3963
|
+
className: modules_63b47c51$2.name,
|
|
4007
3964
|
style: {
|
|
4008
3965
|
width: "calc(100% - 36px)"
|
|
4009
3966
|
},
|
|
@@ -4039,8 +3996,7 @@ var parseDate = function(dateStr) {
|
|
|
4039
3996
|
day: day,
|
|
4040
3997
|
hours: hours,
|
|
4041
3998
|
minutes: minutes,
|
|
4042
|
-
seconds: seconds
|
|
4043
|
-
timestamp: date.getTime()
|
|
3999
|
+
seconds: seconds
|
|
4044
4000
|
};
|
|
4045
4001
|
};
|
|
4046
4002
|
|
|
@@ -8132,8 +8088,8 @@ var ScreenShot = /*#__PURE__*/ function() {
|
|
|
8132
8088
|
return ScreenShot;
|
|
8133
8089
|
}();
|
|
8134
8090
|
|
|
8135
|
-
var styles = modules_63b47c51$
|
|
8136
|
-
var TextArea
|
|
8091
|
+
var styles = modules_63b47c51$2;
|
|
8092
|
+
var TextArea = Input.TextArea;
|
|
8137
8093
|
/*
|
|
8138
8094
|
自定义remarkable的text解析规则
|
|
8139
8095
|
*/ var HTML_ESCAPE_TEST_RE = /[&<>"]/;
|
|
@@ -8211,6 +8167,7 @@ var CustomerService = function(props) {
|
|
|
8211
8167
|
var mid = props.userData.mid;
|
|
8212
8168
|
var renderAiAnswerTimer = useRef(null);
|
|
8213
8169
|
var remarkable = new Remarkable({
|
|
8170
|
+
html: true,
|
|
8214
8171
|
highlight: function highlight(str, lang) {
|
|
8215
8172
|
if (lang && HighlightJS.getLanguage(lang)) {
|
|
8216
8173
|
try {
|
|
@@ -8225,6 +8182,7 @@ var CustomerService = function(props) {
|
|
|
8225
8182
|
});
|
|
8226
8183
|
var remarkReplaceKey = function(message, keyWordProblem) {
|
|
8227
8184
|
var newRemarkable = new Remarkable({
|
|
8185
|
+
html: true,
|
|
8228
8186
|
highlight: function highlight(str, lang) {
|
|
8229
8187
|
if (lang && HighlightJS.getLanguage(lang)) {
|
|
8230
8188
|
try {
|
|
@@ -8573,7 +8531,6 @@ var CustomerService = function(props) {
|
|
|
8573
8531
|
message.replaceAll(new RegExp(/```(?:.|\n)*?```/, "ig"), function(con) {
|
|
8574
8532
|
i++;
|
|
8575
8533
|
if (i == position) {
|
|
8576
|
-
con = con.replace(/^```[\s\S]*?\n/, "").replace(/\n```$/, "");
|
|
8577
8534
|
codeConment = con;
|
|
8578
8535
|
return con;
|
|
8579
8536
|
} else {
|
|
@@ -9357,6 +9314,7 @@ var CustomerService = function(props) {
|
|
|
9357
9314
|
console.log("返回中", msg);
|
|
9358
9315
|
content = content + msg.message;
|
|
9359
9316
|
// isPosition.current = true;
|
|
9317
|
+
clearTimeout(renderAiAnswerTimer.current);
|
|
9360
9318
|
renderAiAnswerTimer.current = setTimeout(function() {
|
|
9361
9319
|
if (!finishedRef.current) {
|
|
9362
9320
|
renderAiAnswer(msg, id, type);
|
|
@@ -11215,7 +11173,7 @@ var CustomerService = function(props) {
|
|
|
11215
11173
|
})
|
|
11216
11174
|
]
|
|
11217
11175
|
}),
|
|
11218
|
-
/*#__PURE__*/ jsx(TextArea
|
|
11176
|
+
/*#__PURE__*/ jsx(TextArea, {
|
|
11219
11177
|
placeholder: placeholder,
|
|
11220
11178
|
autoSize: {
|
|
11221
11179
|
minRows: 1,
|
|
@@ -12090,7 +12048,7 @@ window.appendDom = function(root, props) {
|
|
|
12090
12048
|
};
|
|
12091
12049
|
var CustomerService$1 = CustomerService;
|
|
12092
12050
|
|
|
12093
|
-
var modules_63b47c51$
|
|
12051
|
+
var modules_63b47c51$1 = {"bhdDatePicker":"index_module_bhdDatePicker__484452d2","bhdDatePickerPopup":"index_module_bhdDatePickerPopup__484452d2","singlePicker":"index_module_singlePicker__484452d2","rangePicker":"index_module_rangePicker__484452d2","extraPicker":"index_module_extraPicker__484452d2","showTime":"index_module_showTime__484452d2","showExtraFooter":"index_module_showExtraFooter__484452d2","noNeedConfirm":"index_module_noNeedConfirm__484452d2","readonly":"index_module_readonly__484452d2"};
|
|
12094
12052
|
|
|
12095
12053
|
var RangePicker = DatePicker.RangePicker;
|
|
12096
12054
|
var months = [
|
|
@@ -12285,22 +12243,22 @@ var BhdDatePicker = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12285
12243
|
}
|
|
12286
12244
|
// 单选
|
|
12287
12245
|
if (kind === "single") {
|
|
12288
|
-
config.popupClassName = "\n ".concat(modules_63b47c51$
|
|
12246
|
+
config.popupClassName = "\n ".concat(modules_63b47c51$1.bhdDatePickerPopup, " ").concat(modules_63b47c51$1.singlePicker, " ").concat(popupClassName || "", " ").concat(showTime ? modules_63b47c51$1.showTime : "", " ").concat(renderExtraFooter ? modules_63b47c51$1.showExtraFooter : "");
|
|
12289
12247
|
}
|
|
12290
12248
|
// 范围选择
|
|
12291
12249
|
if (kind === "range") {
|
|
12292
|
-
config.popupClassName = "".concat(modules_63b47c51$
|
|
12250
|
+
config.popupClassName = "".concat(modules_63b47c51$1.bhdDatePickerPopup, " ").concat(modules_63b47c51$1.rangePicker, " ").concat(popupClassName || "", " ").concat(showTime ? modules_63b47c51$1.showTime : "", " ").concat(renderExtraFooter ? modules_63b47c51$1.showExtraFooter : "");
|
|
12293
12251
|
}
|
|
12294
12252
|
// 日常安排
|
|
12295
12253
|
if (kind === "extra") {
|
|
12296
12254
|
delete config.showTime; // 日程安排的时候,不允许展示时间面板
|
|
12297
12255
|
showTime = false; // 日程安排不选择时间
|
|
12298
|
-
config.popupClassName = "".concat(modules_63b47c51$
|
|
12256
|
+
config.popupClassName = "".concat(modules_63b47c51$1.bhdDatePickerPopup, " ").concat(modules_63b47c51$1.extraPicker, " ").concat(extraReadonly ? modules_63b47c51$1.readonly : "", " ").concat(popupClassName || "", " ").concat(showTime ? modules_63b47c51$1.showTime : "", " ").concat(renderExtraFooter ? modules_63b47c51$1.showExtraFooter : "");
|
|
12299
12257
|
if (extraReadonly) {
|
|
12300
12258
|
config.allowClear = false; // 日程安排查看时,不显示清除按钮
|
|
12301
12259
|
}
|
|
12302
12260
|
}
|
|
12303
|
-
config.popupClassName = "".concat(config.popupClassName, " ").concat(dropdownClassName, " ").concat(needConfirm ? "" : modules_63b47c51$
|
|
12261
|
+
config.popupClassName = "".concat(config.popupClassName, " ").concat(dropdownClassName, " ").concat(needConfirm ? "" : modules_63b47c51$1.noNeedConfirm, " ").concat(id);
|
|
12304
12262
|
return config;
|
|
12305
12263
|
};
|
|
12306
12264
|
// 设置默认mode
|
|
@@ -12593,7 +12551,7 @@ var BhdDatePicker = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12593
12551
|
}
|
|
12594
12552
|
};
|
|
12595
12553
|
return /*#__PURE__*/ jsxs("span", {
|
|
12596
|
-
className: "".concat(modules_63b47c51$
|
|
12554
|
+
className: "".concat(modules_63b47c51$1.bhdDatePicker),
|
|
12597
12555
|
ref: bhdDatePickerRef,
|
|
12598
12556
|
children: [
|
|
12599
12557
|
(kind === "single" || kind === "extra") && /*#__PURE__*/ jsx(Fragment, {
|
|
@@ -12774,7 +12732,7 @@ var BhdDatePicker = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12774
12732
|
});
|
|
12775
12733
|
var BhdDatePicker$1 = BhdDatePicker;
|
|
12776
12734
|
|
|
12777
|
-
var modules_63b47c51
|
|
12735
|
+
var modules_63b47c51 = {"BhdModalCropper":"index_module_BhdModalCropper__36cc44f0","cropperBox":"index_module_cropperBox__36cc44f0","cropperBtn":"index_module_cropperBtn__36cc44f0","icons":"index_module_icons__36cc44f0"};
|
|
12778
12736
|
|
|
12779
12737
|
var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
12780
12738
|
var _props_centered = props.centered, centered = _props_centered === void 0 ? true : _props_centered, _props_wrapClassName = props.wrapClassName, wrapClassName = _props_wrapClassName === void 0 ? "" : _props_wrapClassName, _props_width = props.width, width = _props_width === void 0 ? 456 : _props_width, _props_cropperProps = props.cropperProps, cropperProps = _props_cropperProps === void 0 ? {} : _props_cropperProps, _props_uploadMaxSize = props.uploadMaxSize, uploadMaxSize = _props_uploadMaxSize === void 0 ? 500 * 1024 : _props_uploadMaxSize, _props_accept = props.accept, accept = _props_accept === void 0 ? [
|
|
@@ -12853,13 +12811,13 @@ var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12853
12811
|
};
|
|
12854
12812
|
return /*#__PURE__*/ jsx(Modal$1, _object_spread_props(_object_spread({}, props), {
|
|
12855
12813
|
centered: centered,
|
|
12856
|
-
wrapClassName: "".concat(wrapClassName, " ").concat(modules_63b47c51
|
|
12814
|
+
wrapClassName: "".concat(wrapClassName, " ").concat(modules_63b47c51.BhdModalCropper),
|
|
12857
12815
|
width: width,
|
|
12858
12816
|
children: open && /*#__PURE__*/ jsxs("div", {
|
|
12859
|
-
className: modules_63b47c51
|
|
12817
|
+
className: modules_63b47c51.cropperBox,
|
|
12860
12818
|
children: [
|
|
12861
12819
|
/*#__PURE__*/ jsx("div", {
|
|
12862
|
-
className: modules_63b47c51
|
|
12820
|
+
className: modules_63b47c51.cropperMain,
|
|
12863
12821
|
children: /*#__PURE__*/ jsx(l, _object_spread_props(_object_spread({
|
|
12864
12822
|
src: imgSrc,
|
|
12865
12823
|
orginStyle: {
|
|
@@ -12882,7 +12840,7 @@ var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12882
12840
|
}))
|
|
12883
12841
|
}),
|
|
12884
12842
|
/*#__PURE__*/ jsxs("div", {
|
|
12885
|
-
className: modules_63b47c51
|
|
12843
|
+
className: modules_63b47c51.cropperBtn,
|
|
12886
12844
|
children: [
|
|
12887
12845
|
/*#__PURE__*/ jsx(Upload, {
|
|
12888
12846
|
fileList: [],
|
|
@@ -12893,7 +12851,7 @@ var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12893
12851
|
})
|
|
12894
12852
|
}),
|
|
12895
12853
|
/*#__PURE__*/ jsxs("div", {
|
|
12896
|
-
className: modules_63b47c51
|
|
12854
|
+
className: modules_63b47c51.icons,
|
|
12897
12855
|
children: [
|
|
12898
12856
|
/*#__PURE__*/ jsx("span", {
|
|
12899
12857
|
onClick: function() {
|
|
@@ -12917,2886 +12875,4 @@ var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12917
12875
|
});
|
|
12918
12876
|
var BhdModalCropper$1 = BhdModalCropper;
|
|
12919
12877
|
|
|
12920
|
-
|
|
12921
|
-
|
|
12922
|
-
var modules_63b47c51$b = {"header":"index_module_header__3cf37c84","headerLeft":"index_module_headerLeft__3cf37c84","headerIcon":"index_module_headerIcon__3cf37c84","headerTitle":"index_module_headerTitle__3cf37c84","headerRight":"index_module_headerRight__3cf37c84"};
|
|
12923
|
-
|
|
12924
|
-
var defaultProps$1 = {
|
|
12925
|
-
icon: /*#__PURE__*/ jsx("i", {
|
|
12926
|
-
children: /*#__PURE__*/ jsxs("svg", {
|
|
12927
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
12928
|
-
width: "1em",
|
|
12929
|
-
height: "1em",
|
|
12930
|
-
viewBox: "0 0 16 16",
|
|
12931
|
-
fill: "none",
|
|
12932
|
-
children: [
|
|
12933
|
-
/*#__PURE__*/ jsx("path", {
|
|
12934
|
-
d: "M12.6063 14C12.2547 13.9994 11.9095 13.9066 11.6051 13.7309C11.3006 13.5551 11.0476 13.3025 10.8714 12.9983L7.15187 6.55597L4.21122 11.6493H7.67426C7.98599 11.6493 8.28495 11.7731 8.50538 11.9935C8.7258 12.2139 8.84963 12.5129 8.84963 12.8246C8.84963 13.1364 8.7258 13.4353 8.50538 13.6557C8.28495 13.8762 7.98599 14 7.67426 14H2.17613C1.96974 14.0001 1.76696 13.9459 1.58818 13.8428C1.40939 13.7397 1.26091 13.5913 1.15766 13.4126C1.05441 13.2339 1.00003 13.0312 1 12.8248C0.999967 12.6184 1.05428 12.4157 1.15747 12.2369L6.13322 3.61754C6.23638 3.43887 6.38476 3.29051 6.56343 3.18736C6.7421 3.08421 6.94478 3.0299 7.15109 3.0299C7.3574 3.0299 7.56008 3.08421 7.73875 3.18736C7.91742 3.29051 8.0658 3.43887 8.16896 3.61754L12.2582 10.6998V4.20522C12.2582 3.8935 12.3821 3.59454 12.6025 3.37411C12.8229 3.15368 13.1219 3.02985 13.4336 3.02985C13.7453 3.02985 14.0443 3.15368 14.2647 3.37411C14.4851 3.59454 14.609 3.8935 14.609 4.20522V11.9966C14.609 12.5279 14.398 13.0373 14.0224 13.413C13.6469 13.7887 13.1375 13.9998 12.6063 14Z",
|
|
12935
|
-
fill: "url(#paint0_linear_34_244)"
|
|
12936
|
-
}),
|
|
12937
|
-
/*#__PURE__*/ jsx("path", {
|
|
12938
|
-
d: "M13.4336 2.35075C14.0827 2.35075 14.609 1.82451 14.609 1.17537C14.609 0.526232 14.0827 0 13.4336 0C12.7845 0 12.2582 0.526232 12.2582 1.17537C12.2582 1.82451 12.7845 2.35075 13.4336 2.35075Z",
|
|
12939
|
-
fill: "url(#paint1_linear_34_244)"
|
|
12940
|
-
}),
|
|
12941
|
-
/*#__PURE__*/ jsxs("defs", {
|
|
12942
|
-
children: [
|
|
12943
|
-
/*#__PURE__*/ jsxs("linearGradient", {
|
|
12944
|
-
id: "paint0_linear_34_244",
|
|
12945
|
-
x1: "14.609",
|
|
12946
|
-
y1: "0",
|
|
12947
|
-
x2: "-0.275842",
|
|
12948
|
-
y2: "13.609",
|
|
12949
|
-
gradientUnits: "userSpaceOnUse",
|
|
12950
|
-
children: [
|
|
12951
|
-
/*#__PURE__*/ jsx("stop", {
|
|
12952
|
-
stopColor: "#F87AFD"
|
|
12953
|
-
}),
|
|
12954
|
-
/*#__PURE__*/ jsx("stop", {
|
|
12955
|
-
offset: "1",
|
|
12956
|
-
stopColor: "#41DAF8"
|
|
12957
|
-
})
|
|
12958
|
-
]
|
|
12959
|
-
}),
|
|
12960
|
-
/*#__PURE__*/ jsxs("linearGradient", {
|
|
12961
|
-
id: "paint1_linear_34_244",
|
|
12962
|
-
x1: "14.609",
|
|
12963
|
-
y1: "0",
|
|
12964
|
-
x2: "-0.275842",
|
|
12965
|
-
y2: "13.609",
|
|
12966
|
-
gradientUnits: "userSpaceOnUse",
|
|
12967
|
-
children: [
|
|
12968
|
-
/*#__PURE__*/ jsx("stop", {
|
|
12969
|
-
stopColor: "#F87AFD"
|
|
12970
|
-
}),
|
|
12971
|
-
/*#__PURE__*/ jsx("stop", {
|
|
12972
|
-
offset: "1",
|
|
12973
|
-
stopColor: "#41DAF8"
|
|
12974
|
-
})
|
|
12975
|
-
]
|
|
12976
|
-
})
|
|
12977
|
-
]
|
|
12978
|
-
})
|
|
12979
|
-
]
|
|
12980
|
-
})
|
|
12981
|
-
}),
|
|
12982
|
-
className: "",
|
|
12983
|
-
renderRightHead: function() {
|
|
12984
|
-
return null;
|
|
12985
|
-
}
|
|
12986
|
-
};
|
|
12987
|
-
var Header$1 = function(props) {
|
|
12988
|
-
var headerConfig = props.headerConfig, prefix = props.prefix;
|
|
12989
|
-
var _headerConfig_icon = headerConfig.icon, icon = _headerConfig_icon === void 0 ? defaultProps$1.icon : _headerConfig_icon, title = headerConfig.title, _headerConfig_className = headerConfig.className, className = _headerConfig_className === void 0 ? defaultProps$1.className : _headerConfig_className, _headerConfig_renderRightHead = headerConfig.renderRightHead, renderRightHead = _headerConfig_renderRightHead === void 0 ? defaultProps$1.renderRightHead : _headerConfig_renderRightHead;
|
|
12990
|
-
var getCls = function(clsName) {
|
|
12991
|
-
return modules_63b47c51$b[clsName] + " " + prefix + "-" + clsName;
|
|
12992
|
-
};
|
|
12993
|
-
return /*#__PURE__*/ jsxs("div", {
|
|
12994
|
-
className: "".concat(getCls("header"), " ").concat(className),
|
|
12995
|
-
children: [
|
|
12996
|
-
/*#__PURE__*/ jsxs("div", {
|
|
12997
|
-
className: getCls("headerLeft"),
|
|
12998
|
-
children: [
|
|
12999
|
-
/*#__PURE__*/ jsx("div", {
|
|
13000
|
-
className: getCls("headerIcon"),
|
|
13001
|
-
children: icon
|
|
13002
|
-
}),
|
|
13003
|
-
/*#__PURE__*/ jsx("div", {
|
|
13004
|
-
className: getCls("headerTitle"),
|
|
13005
|
-
children: title
|
|
13006
|
-
})
|
|
13007
|
-
]
|
|
13008
|
-
}),
|
|
13009
|
-
/*#__PURE__*/ jsx("div", {
|
|
13010
|
-
className: getCls("headerRight"),
|
|
13011
|
-
children: renderRightHead()
|
|
13012
|
-
})
|
|
13013
|
-
]
|
|
13014
|
-
});
|
|
13015
|
-
};
|
|
13016
|
-
var Header$2 = Header$1;
|
|
13017
|
-
|
|
13018
|
-
var modules_63b47c51$a = {"content":"index_module_content__fcd2c97c","contentList":"index_module_contentList__fcd2c97c"};
|
|
13019
|
-
|
|
13020
|
-
var modules_63b47c51$9 = {"virtuosoList-wrapper":"index_module_virtuosoListWrapper__1f4840d2","loadingIcon":"index_module_loadingIcon__1f4840d2","msg-date":"index_module_msgDate__1f4840d2","msgItem":"index_module_msgItem__1f4840d2","msgItem-box":"index_module_msgItemBox__1f4840d2","msgItem-content":"index_module_msgItemContent__1f4840d2","msgItem-text":"index_module_msgItemText__1f4840d2","copyCode":"index_module_copyCode__1f4840d2","copyCodeFun":"index_module_copyCodeFun__1f4840d2","copyCodeText":"index_module_copyCodeText__1f4840d2","icon":"index_module_icon__1f4840d2","copy":"index_module_copy__1f4840d2","copy_success":"index_module_copy_success__1f4840d2","copy_success_flag":"index_module_copy_success_flag__1f4840d2","msgItem-file":"index_module_msgItemFile__1f4840d2","msgItem-file-left":"index_module_msgItemFileLeft__1f4840d2","msgItem-file-right":"index_module_msgItemFileRight__1f4840d2","msgItem-action":"index_module_msgItemAction__1f4840d2","msgItem-action-left":"index_module_msgItemActionLeft__1f4840d2","msgItem-action-right":"index_module_msgItemActionRight__1f4840d2","msgItem-action-operate":"index_module_msgItemActionOperate__1f4840d2","msgItem-action-popover":"index_module_msgItemActionPopover__1f4840d2","msgItem-action-popover-floatTop":"index_module_msgItemActionPopoverFloatTop__1f4840d2","msgItem-action-popover-floatBottom":"index_module_msgItemActionPopoverFloatBottom__1f4840d2","msgItem-reference-text":"index_module_msgItemReferenceText__1f4840d2","msgItem-reference-file":"index_module_msgItemReferenceFile__1f4840d2","msgItem-reference-file-box":"index_module_msgItemReferenceFileBox__1f4840d2","msgItem-reference-file-left":"index_module_msgItemReferenceFileLeft__1f4840d2","msgItem-reference-file-right":"index_module_msgItemReferenceFileRight__1f4840d2","msgItem-left":"index_module_msgItemLeft__1f4840d2","msgItem-right":"index_module_msgItemRight__1f4840d2"};
|
|
13021
|
-
|
|
13022
|
-
var loading2 = "data:image/gif;base64,R0lGODlhgACAAKIEAN3d3bu7u////5mZmf///wAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NENGQTg4RUY0MTQwMTFFOEEzQjg5QjE4RTZFRjE2NTUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NENGQTg4RjA0MTQwMTFFOEEzQjg5QjE4RTZFRjE2NTUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0Q0ZBODhFRDQxNDAxMUU4QTNCODlCMThFNkVGMTY1NSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0Q0ZBODhFRTQxNDAxMUU4QTNCODlCMThFNkVGMTY1NSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUIAAQALAAAAACAAIAAAAP/SLrc/jDKSau9OOvNu/+gJoxCaJ5oRpJp67rr+s50F7N1rk/3uP/ARa8ULOaGxuQMqWwSAFDAh9kZWAdOTTTqoW6u1+xlu7X1quCwmELmcryZtHotabtF56/cSp/Y7xhwFntzfRB/Ung3enuGbH+KMRqEWI5+kCp5GJSWj3aZi5uEnZ6fF4ISlJWkdZgWqBGcrJeuFLAPqrOlZKeaFLK6tG2vvqmjwbtlFbcNwMitpjzFEM7PEYiJEswKudbJgBDbBNXeh4jSobHk5Q/n6DjGjXQB9AEh7trw6vIfYB/19UDgC7EuTpoOABN+qAXiGBp+GRJK7MCwH0SDBSlI3Mhh/1gKORxUFcKwkeMGZS38MRKJsOREdtREjtTg0iRMbjJncqj5slxOnR54KvT2k48LoQCRFV01A2lAUkt/OKXXKWqQqY6KNkGaVeYanl0zJqkZ9uK8nobMOkoKFejNt3Djyp1Lt67du3jz6t3Lty/fpd18AnbIYHDgZ4arJT6sa7Ezx4QbQwa5YDJlpZZV4sxsFDNnpuM4C86MyzJM0n5Tq17NurXr17Bjy55Nu/YMzZZwV72clncfxmKAO2HZWyyQnGWN19Ba3GsQq8mJ64CemzkN6qywn9Au+edH60TBe+Ae3vt483PFi3I+ya3Fzhilx1ceUzfBgyvpl9a/H7+JyNDrATiIgAHad55v7ak1oIHzMRgSgQWClqCE+TlYmXubIbjSbxBeaGGG/tUlXGEKeljiTcp1COKHo524Inz1uViehg6o+CKMb+ln440UsqOjjDzKxd+OQeY4JJA89ugZjTGySCKS1RF5Y4RORslkkxjWKCWHUJpY5ZNX7tbllA1m2VyIF2zp5ZdZjDiBmkkuiWaaY65pZnB12qnkL3kaAaeeD83ZFptahvmmoNnduQ+idOKo2p+2kRnphIROKqmljTKKKZaObhqPop6aGOqoniYAACH5BAUIAAQALAoAAgBXADAAAAP/SLrc/jA+QIG8OOs9K+VgKEqeN54oV1Zp63brK7/rN99nbeE8qPejgDCQ+qEESEFrOEQZR8kkisnM1U7R6InaHD1DWWmQK/ReRWGxiNz1nUFp9Zot+m7iyhSb6I7B4y57IXYZeC+CKm8ahoeIGoQSeHmNZIl+i4Aze3wZkBCSOI4Yng+MoXSdipGZPKIkqhGmragXpAyys7QRtgqgQAquMCUYuD2btbANvr/AuhCXsawQA9QDgc7CxNIP1dVL2EfbDd3kepUy4uPk5WNcM+kM6/LtbehZGPLzc2U8Whn5+pgJBBhQ4C+C6wwyQ8hOIRCG3RwehEhNYg+KFS3ywKjxEyLDjg8JggyZb+TEhiZJWkupIQEAIfkEBQgABAAsHwACAFcAMAAAA/9Iutz+K8gAq7046zbn/mCodZ1oniLpoWxbqZIrzwRM0fhp53y496KBcMD6nQBIQGs4RBlFySSKydTBjlGpido0PUFZbZAr9F6hYeSJ3AV9NWnxmJw6g+NLts++iSvzdG58cHgubEQfbxd+M4eII4OLjI16G4oVk5SVGZcPfn80h5aRmIU5opyknqanmxedDZk8qK+qsayztC+2C59AC7oQsAqyQI61KpK4xq7CJBjFvwTBDyXKYS4C2gIY1CjRIdvb3YEyyyDi6RfNLOca6fDkVTjYIvD3GfM5USb3+NLS/P0D2EPgQII4DMZDyEOhOoYJHY6DSEPiRIozLGrDWNEUIseICj/mCClypMCSBReiTLnRRAIAIfkEBQgABAAsPAACAEIAQgAAA/9INDz6MMpJq52t3c17zZknjhaokWhqMmk7ro4rb/Bsf+utR7Ub/IHdo5cCAoWLXNF43BFJzKbuKYpKb9SO9WrLcrZBofcCRiZN0K15XCmvlVo3kj2Rz+EbcPiNjlvNQ3gWdnwgflGAgX1kaokKdAp6jo+CdY2TkJKTlCGMf5uKMYOXLgCmADuEKKenOqSrrKw3ryKxtq5MKba7qVweu7ygG8DBwhXExcYSyLfKFMyxzhPQstIR1K3W19io2hDc3svQ4dPI5M/E58fN6uum7fDx8vP09fb3+Pn6+gL9/v8AAwI0JrCgwX+gDio0uGmhw4GTHkoU0HCiw4QWDxLMKFACQQIAIfkEBQgABAAsTgAKADAAVwAAA+xIurzzo8lJK4XQ6n1x5uDmfWEpjaSpoqlaspG7srIL1+aNh3C8c7qfKCi0EIsdFHKoXFaOTkYvmhxRJ9NrA3rlqgLggJG2C4efzZp5XcWo1+y2zwSvjx+yup2q3zv7fkiAcHyDZlGGh3+JYIWMjoZaiVoKg5QLgJcMgZqVZ52goaKjpKWmp6ipqioAra6vsLGwNbK1tq8ut7q2rLu+uCa/wgC9w7u5xre0ybKrzs/Q0dLT1NUyAtgCpdncotzf2p3g3+Lj5JTm4+jp4Frs7e7v3fHy2PT16/XhV/r7/Pj52JVLF4qgt3Oj5lFIAAAh+QQFCAAEACxOAB8AMABXAAAD6Ui63P5uyAGrvW1OzDvRoCdGYDiOZXqKqbpirftWsTyTtXbTub7jPcovE5QMgb0jMahEtpqPHBRSm/JM1qswy+16v+CweEwum8/cgHrNbrvbs7d8zl7R7/MTfg8f8f8BeoB7doN0cYZvaIuMjY6PkJGSkwoAlgBml5pjmp2YYJ6doKGiXaShpqeeXKqrrK2br7CWsrOps59ZuLkQAr4CL7gVv7/BsL3ExcanyMnAN8wPzsrQpdLTzzuxw9hi2L7e3WHf2V/fY+fj4urT4evm717k7s7o8V3p7PX6+2D5/u3oESPTzx64KQkAACH5BAUIAAQALDwAPABCAEIAAAP5SLrc/lCNSau9Nuodsf8VJ3Jg+Y3oY65Z6kps/L6xPLu1ec/5uf/AoHBILBqPyKRyyWw6n9CodEoIWAPU13WbHW2/2K4G/BVHyGCzA01WM9htdxVels/pV/sdH3bz83Z/VnqCRgCHADd/RIiIinhDjY07dJGSh0BslpeJmXURAqECHJyYQVwaoqKkpU+qqhulpkyvq7GtTbWhrLhLuqO8l7m6I7K0xCLGvsjJvUi/KLKdz8zNnErQ0cpH2drX1LUv20Xd3sLc1eaS6OHi40LlKe9B8fLfRPXqjuTpLuf87XZMYvdKj4N8dhDKUeiGoRqHDwsafABrYoMEACH5BAUIAAQALB8ATgBXADAAAAP/SLrc/jDKN+qYOOvNif1dKI7NZ15kqkqnub6w17pxHc6trWt4vv+Q3glIdAhpxeQRlCwuLU3lExUFTjWCrOAX6AZGT4xWq/N6wcfJeFwzm0lC9TrbdndVOMmcHLOf8UgQe3QTAIYAGH53K0wRg1uFh4aJilGPkBGSkhOKi0WPGJqHlH5Jl6GiiJydn4MZqaqrpUCgr6karD+1qKK4lTu7vJobuTWnGrDExTDBwpvKs8zNkb3Q0SvT1MMcyynZ2s/cvyrfEskd3SLl5rch6RzHHefo71iuIvP01x33+O0i40L0C5FPnxtva1IUNOiJBBuF/0a8qeJsFMUoCy/+yKhREwfHjjU+goQhcuSLaiaJhEupIAEAIfkEBQgABAAsCgBOAFcAMAAAA/9IutwuULhJq704t8i1/+DHjVJoniE5omxLqaQrt7A632Bt4zymx73g5LcSGhfEznGZjCyPTcgT2pxSiSeAFiAceAeZZHar7X2/Ph2KTMadz5dai711v71pJYtev93RcU4ufGUXAYcBGH94VgSEXIaIh4qLVo+QFZKSF4uMS48YmoiUf0+XoaKJnJ2fhBmpqqulRqCvqRqsQrWooriVQbu8mh65OKcasMTFM8HCm8qzzM2RvdDRg64fyR/Le9natyDdY3wh29y/3uXm4eLpJscg5+jvINPI7e7X9usm8/pv1vRjV81EPX5tUPwD6ElgIYX5DAJqRG0YRSsLLwrJqLESB8eOOD6CnCFypIyCJo0845EAACH5BAUIAAQALAIAPABCAEIAAAP1SCTc/vCpSau9mMbNXf7g1Y1caIJkKp2spb5CK0+wOt/1eO/5tv/AoHBILBqPyKRyyWw6n9CodEo9Aa6AqgzL1Zq44Kw3EwaPL+XwmZIurwlt9zquPtPN9jv2rd/n+3yAgXc7AYYBRnqFh4ZFdD+MjERtQZGHjnhAlpeYV0ObjSADowNSoIiipKNQp6gZqqpPpyGwpE6ttLWlTbO5tbygJ7q7S72+sEzGx7FKuMK6xcEsw83Ky7ZJ1terSNrbxEbeqb9H4uPI4eYf1OmbO+xF0jfwRPIz9PWRQPj5oT/8byYADEhgYECDbxCuUXiGYUN0BDEwSwAAIfkEBQgABAAsAgAfADAAVwAAA+dIuiwuLMpJa3vO6k2x5+DmjWEpjaipoqlasq3LwbGs0aR945gu8g/fDggRdohF4wSprACbFhw0CpsOe9ZfJsvter/gsHhMLpvPIYB6zW6727a3fM520e9zFX4PN/H/AHqAe3aDdHGGb2iLjI2Oj5CRkpNoAZYBZpeaY5qdmGCenV+hnl2koVmnqFaqpVOtoq+wl6mzlqy2n7KzXLYyA8ADFrwuwcEVrTbGxhSnPsvHzbE60NHSt0LVwGLawmHd3mDd3OPf2uTVY+Xi5+bt7Onu8fDQ6PX2y/jM8vf0+frb1M3Td2afhgQAIfkECQgABAAsAgAKADAAVwAAA+tIutz+S0gBq71tTsy70ponVuA2nkxpoqe6sqJLwa1Lj/KN23onzz1MLigcEi3GI4mnhCSbjic0Ip0SqtOfNcqEAL6AHpYABuuw5fSty0i7YeyFe84qVeZ0VMiCz0/7flCAb3+DZVuGh1aJZoWMiI+Qg1tygJSVeJdthJqbX52goaKjpKWmp6ipOgGsra6vsK8wsbS1rii2ubUnur2yI77BAbzCvbjFtrPIsarNzs/Q0dLT1M8D1wOj2Nug297Zl9/elOLfVuXiUOjpTevmSu7j8PHY6vTX7ffg8/RT91v9AK7ThC7UO1HcrCQAADs=";
|
|
13023
|
-
var loading2Gif = loading2;
|
|
13024
|
-
|
|
13025
|
-
var modules_63b47c51$8 = {"msgItem-action-copy":"index_module_msgItemActionCopy__4640e67c","msgItem-action-copy-success":"index_module_msgItemActionCopySuccess__4640e67c"};
|
|
13026
|
-
|
|
13027
|
-
var copyIconSvg = /*#__PURE__*/ jsx("i", {
|
|
13028
|
-
children: /*#__PURE__*/ jsxs("svg", {
|
|
13029
|
-
width: "1em",
|
|
13030
|
-
height: "1em",
|
|
13031
|
-
viewBox: "0 0 14 14",
|
|
13032
|
-
shapeRendering: "geometricPrecision",
|
|
13033
|
-
fill: "currentColor",
|
|
13034
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13035
|
-
children: [
|
|
13036
|
-
/*#__PURE__*/ jsx("g", {
|
|
13037
|
-
clipPath: "url(#clip0_518_8403)",
|
|
13038
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
13039
|
-
d: "M6.16666 1.66666H13.1667C13.4761 1.66666 13.7728 1.78957 13.9916 2.00837C14.2104 2.22716 14.3333 2.5239 14.3333 2.83332V9.83332C14.3333 10.1427 14.2104 10.4395 13.9916 10.6583C13.7728 10.8771 13.4761 11 13.1667 11H6.16666C5.85724 11 5.5605 10.8771 5.34171 10.6583C5.12291 10.4395 5 10.1427 5 9.83332V2.83332C5 2.5239 5.12291 2.22716 5.34171 2.00837C5.5605 1.78957 5.85724 1.66666 6.16666 1.66666ZM6.16666 2.66666C6.12246 2.66666 6.08007 2.68422 6.04881 2.71547C6.01756 2.74673 6 2.78912 6 2.83332V9.83332C6 9.85521 6.00431 9.87688 6.01268 9.8971C6.02106 9.91732 6.03334 9.9357 6.04881 9.95117C6.06429 9.96665 6.08266 9.97893 6.10288 9.9873C6.1231 9.99568 6.14478 9.99999 6.16666 9.99999H13.1667C13.2109 9.99999 13.2533 9.98243 13.2845 9.95117C13.3158 9.91992 13.3333 9.87753 13.3333 9.83332V2.83332C13.3333 2.78912 13.3158 2.74673 13.2845 2.71547C13.2533 2.68422 13.2109 2.66666 13.1667 2.66666H6.16666ZM10 12C10 11.8674 10.0527 11.7402 10.1464 11.6464C10.2402 11.5527 10.3674 11.5 10.5 11.5C10.6326 11.5 10.7598 11.5527 10.8536 11.6464C10.9473 11.7402 11 11.8674 11 12V13.1667C11 13.4761 10.8771 13.7728 10.6583 13.9916C10.4395 14.2104 10.1427 14.3333 9.83333 14.3333H2.83333C2.52391 14.3333 2.22717 14.2104 2.00837 13.9916C1.78958 13.7728 1.66666 13.4761 1.66666 13.1667V6.16666C1.66666 5.85724 1.78958 5.56049 2.00837 5.3417C2.22717 5.12291 2.52391 4.99999 2.83333 4.99999H4C4.13261 4.99999 4.25978 5.05267 4.35355 5.14644C4.44732 5.2402 4.5 5.36738 4.5 5.49999C4.5 5.6326 4.44732 5.75978 4.35355 5.85354C4.25978 5.94731 4.13261 5.99999 4 5.99999H2.83333C2.78913 5.99999 2.74674 6.01755 2.71548 6.04881C2.68422 6.08006 2.66666 6.12245 2.66666 6.16666V13.1667C2.66666 13.2109 2.68422 13.2533 2.71548 13.2845C2.74674 13.3158 2.78913 13.3333 2.83333 13.3333H9.83333C9.87753 13.3333 9.91993 13.3158 9.95118 13.2845C9.98244 13.2533 10 13.2109 10 13.1667V12Z"
|
|
13040
|
-
})
|
|
13041
|
-
}),
|
|
13042
|
-
/*#__PURE__*/ jsx("defs", {
|
|
13043
|
-
children: /*#__PURE__*/ jsx("clipPath", {
|
|
13044
|
-
id: "clip0_518_8403",
|
|
13045
|
-
children: /*#__PURE__*/ jsx("rect", {
|
|
13046
|
-
width: "16",
|
|
13047
|
-
height: "16"
|
|
13048
|
-
})
|
|
13049
|
-
})
|
|
13050
|
-
})
|
|
13051
|
-
]
|
|
13052
|
-
})
|
|
13053
|
-
});
|
|
13054
|
-
var copySuccessSvg = /*#__PURE__*/ jsx("i", {
|
|
13055
|
-
children: /*#__PURE__*/ jsx("svg", {
|
|
13056
|
-
width: "1em",
|
|
13057
|
-
height: "1em",
|
|
13058
|
-
shapeRendering: "geometricPrecision",
|
|
13059
|
-
fill: "currentColor",
|
|
13060
|
-
viewBox: "0 0 12 7",
|
|
13061
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13062
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
13063
|
-
d: "M11.2242 0.375687C11.4586 0.610002 11.4586 0.989901 11.2242 1.22422L4.82424 7.62422C4.58992 7.85853 4.21003 7.85853 3.97571 7.62422L0.775712 4.42422C0.541397 4.1899 0.541397 3.81 0.775712 3.57569C1.01003 3.34137 1.38993 3.34137 1.62424 3.57569L4.39998 6.35142L10.3757 0.375687C10.61 0.141373 10.9899 0.141373 11.2242 0.375687Z"
|
|
13064
|
-
})
|
|
13065
|
-
})
|
|
13066
|
-
});
|
|
13067
|
-
var CopyIcon = function(props) {
|
|
13068
|
-
var prefix = props.prefix, content = props.content;
|
|
13069
|
-
var _useState = _sliced_to_array(useState(false), 2), copySuccess = _useState[0], setCopySuccess = _useState[1];
|
|
13070
|
-
var timer = useRef(null);
|
|
13071
|
-
useEffect(function() {
|
|
13072
|
-
return function() {
|
|
13073
|
-
clearTimeout(timer.current);
|
|
13074
|
-
};
|
|
13075
|
-
}, []);
|
|
13076
|
-
var getCls = function(clsName) {
|
|
13077
|
-
return modules_63b47c51$8[clsName] + " " + prefix + "-" + clsName;
|
|
13078
|
-
};
|
|
13079
|
-
var copyTextClick = function() {
|
|
13080
|
-
if (copySuccess) return;
|
|
13081
|
-
copyText$1(content);
|
|
13082
|
-
setCopySuccess(true);
|
|
13083
|
-
clearTimeout(timer.current);
|
|
13084
|
-
timer.current = setTimeout(function() {
|
|
13085
|
-
console.log("定时器定时器");
|
|
13086
|
-
setCopySuccess(false);
|
|
13087
|
-
}, 2000);
|
|
13088
|
-
};
|
|
13089
|
-
return /*#__PURE__*/ jsx("div", {
|
|
13090
|
-
onClick: function() {
|
|
13091
|
-
return copyTextClick();
|
|
13092
|
-
},
|
|
13093
|
-
className: "".concat(getCls("msgItem-action-copy"), " ").concat(copySuccess ? getCls("msgItem-action-copy-success") : ""),
|
|
13094
|
-
children: copySuccess ? copySuccessSvg : copyIconSvg
|
|
13095
|
-
});
|
|
13096
|
-
};
|
|
13097
|
-
var CopyIcon$1 = CopyIcon;
|
|
13098
|
-
|
|
13099
|
-
var modules_63b47c51$7 = {"msgItem-action-reference":"index_module_msgItemActionReference__9d15ef36"};
|
|
13100
|
-
|
|
13101
|
-
var referencesIcon = /*#__PURE__*/ jsx("i", {
|
|
13102
|
-
children: /*#__PURE__*/ jsxs("svg", {
|
|
13103
|
-
width: "1em",
|
|
13104
|
-
height: "1em",
|
|
13105
|
-
shapeRendering: "geometricPrecision",
|
|
13106
|
-
fill: "currentColor",
|
|
13107
|
-
viewBox: "0 0 14 14",
|
|
13108
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13109
|
-
children: [
|
|
13110
|
-
/*#__PURE__*/ jsx("path", {
|
|
13111
|
-
"fill-rule": "evenodd",
|
|
13112
|
-
"clip-rule": "evenodd",
|
|
13113
|
-
d: "M6.28443 3.03861C3.77423 4.65069 2.37971 6.52702 2.10085 8.66759C1.66674 12 4.6468 13.6311 6.15677 12.1655C7.66673 10.7 6.7616 8.83982 5.66823 8.33136C4.57487 7.82286 3.90623 7.99996 4.02287 7.32046C4.1395 6.64099 5.69503 4.75706 7.06163 3.87969C7.1523 3.80259 7.1868 3.65299 7.0995 3.53949C7.04207 3.46486 6.92943 3.31847 6.7616 3.10033C6.61483 2.90957 6.47423 2.91671 6.28443 3.03861Z"
|
|
13114
|
-
}),
|
|
13115
|
-
/*#__PURE__*/ jsx("path", {
|
|
13116
|
-
"fill-rule": "evenodd",
|
|
13117
|
-
"clip-rule": "evenodd",
|
|
13118
|
-
d: "M12.893 3.03861C10.3828 4.65069 8.98827 6.52702 8.7094 8.66759C8.2753 12 11.2554 13.6311 12.7653 12.1655C14.2753 10.7 13.3702 8.83982 12.2768 8.33136C11.1834 7.82286 10.5148 7.99996 10.6314 7.32046C10.7481 6.64099 12.3036 4.75706 13.6702 3.87969C13.7609 3.80259 13.7954 3.65299 13.708 3.53949C13.6506 3.46486 13.538 3.31847 13.3702 3.10033C13.2234 2.90957 13.0828 2.91671 12.893 3.03861Z"
|
|
13119
|
-
})
|
|
13120
|
-
]
|
|
13121
|
-
})
|
|
13122
|
-
});
|
|
13123
|
-
var ReferencesIcon = function(props) {
|
|
13124
|
-
var prefix = props.prefix, apiRef = props.apiRef, item = props.item;
|
|
13125
|
-
var getCls = function(clsName) {
|
|
13126
|
-
return modules_63b47c51$7[clsName] + " " + prefix + "-" + clsName;
|
|
13127
|
-
};
|
|
13128
|
-
var clickFn = function() {
|
|
13129
|
-
console.log("apiRef", apiRef);
|
|
13130
|
-
if (apiRef && apiRef.footerApi) {
|
|
13131
|
-
console.log("itemitem", item);
|
|
13132
|
-
if (item.type === "file") {
|
|
13133
|
-
apiRef.footerApi.setReferences({
|
|
13134
|
-
type: "file",
|
|
13135
|
-
value: {
|
|
13136
|
-
name: item.fileTitle,
|
|
13137
|
-
suffix: item.suffix,
|
|
13138
|
-
fileId: item.id,
|
|
13139
|
-
url: "",
|
|
13140
|
-
status: "success",
|
|
13141
|
-
source: null
|
|
13142
|
-
},
|
|
13143
|
-
source: item
|
|
13144
|
-
});
|
|
13145
|
-
} else {
|
|
13146
|
-
apiRef.footerApi.setReferences({
|
|
13147
|
-
type: "text",
|
|
13148
|
-
value: item.content,
|
|
13149
|
-
source: item
|
|
13150
|
-
});
|
|
13151
|
-
}
|
|
13152
|
-
}
|
|
13153
|
-
};
|
|
13154
|
-
return /*#__PURE__*/ jsx("div", {
|
|
13155
|
-
className: "".concat(getCls("msgItem-action-reference")),
|
|
13156
|
-
onClick: function() {
|
|
13157
|
-
return clickFn();
|
|
13158
|
-
},
|
|
13159
|
-
children: referencesIcon
|
|
13160
|
-
});
|
|
13161
|
-
};
|
|
13162
|
-
var ReferencesIcon$1 = ReferencesIcon;
|
|
13163
|
-
|
|
13164
|
-
var modules_63b47c51$6 = {"upVoteBtn":"index_module_upVoteBtn__2e714550","downVoteBtn":"index_module_downVoteBtn__2e714550","active":"index_module_active__2e714550"};
|
|
13165
|
-
|
|
13166
|
-
var upvoteBtnSvg = /*#__PURE__*/ jsx("svg", {
|
|
13167
|
-
width: "1em",
|
|
13168
|
-
height: "1em",
|
|
13169
|
-
viewBox: "0 0 16 16",
|
|
13170
|
-
shapeRendering: "geometricPrecision",
|
|
13171
|
-
fill: "currentColor",
|
|
13172
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13173
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
13174
|
-
d: "M14.9948 7.82355C14.999 7.88679 14.9948 7.95002 14.978 8.01326L13.7172 13.4046C13.7003 13.4699 13.6709 13.527 13.633 13.58C13.4983 13.8411 13.292 14.0716 13.0205 14.2409C12.7321 14.4184 12.4122 14.5 12.0944 14.5V14.4959L4.00144 14.4918C3.97408 14.4959 3.94461 14.498 3.91514 14.498C3.88568 14.498 3.85621 14.4959 3.82885 14.4918H1.67564C1.64617 14.4959 1.6146 14.5 1.58303 14.5C1.26099 14.5 1 14.2471 1 13.935L1.00631 7.1504C1.00631 6.8383 1.26731 6.58536 1.58934 6.58536C1.6125 6.58536 1.63775 6.5874 1.66091 6.58944L3.59522 6.58536V6.57516C5.37587 6.45073 6.78609 5.03711 6.8366 3.29303C6.83239 3.24408 6.82818 3.19512 6.82818 3.14412C6.82818 2.23639 7.58802 1.5 8.52465 1.5C9.32868 1.5 10.0022 2.04464 10.1769 2.77287L10.1853 2.77083C10.2801 3.18696 10.3327 3.61941 10.3327 4.06206C10.3327 4.74745 10.2127 5.40428 9.99169 6.0142L13.2457 6.01828C13.2752 6.01828 13.3046 6.02032 13.3341 6.02644C13.8898 6.04684 14.4244 6.32426 14.7401 6.8179C14.9422 7.13204 15.0222 7.4829 14.9948 7.82355ZM2.16816 13.3618H3.33422L3.33843 7.71544L2.17448 7.71748L2.16816 13.3618ZM13.7572 7.40946C13.6456 7.23403 13.4478 7.14224 13.2478 7.15244V7.1504H13.2457L9.13294 7.14632C8.8109 7.14632 8.54991 6.89338 8.54991 6.58128C8.54991 6.49153 8.57306 6.40585 8.61095 6.33038L8.60463 6.3263C8.83827 5.90609 9.00665 5.44712 9.10347 4.96367H9.10979C9.10979 4.96367 9.18766 4.6577 9.18556 4.0743C9.18556 3.61125 9.09716 3.18696 9.09716 3.18696H9.09295C9.09295 3.1788 9.09505 3.17064 9.09505 3.16248C9.09505 2.87078 8.85089 2.63416 8.54991 2.63416C8.24892 2.63416 8.00477 2.87078 8.00477 3.16248C8.00477 3.17472 8.00687 3.18696 8.00687 3.1992H7.99845C7.99845 3.1992 8.00687 3.63981 7.91636 4.09878C7.87848 4.29256 7.82375 4.47411 7.77324 4.6169C7.77324 4.6169 7.77113 4.6169 7.77113 4.61486C7.28072 6.06928 6.0473 7.19528 4.50449 7.57673L4.49817 13.3638L12.0965 13.3658C12.1217 13.3658 12.147 13.3679 12.1723 13.372C12.248 13.3618 12.3238 13.3373 12.3912 13.2944C12.488 13.2353 12.5595 13.1496 12.6016 13.0517H12.6037L13.8161 7.86231L13.8119 7.86027C13.8624 7.71544 13.8477 7.55021 13.7572 7.40946Z"
|
|
13175
|
-
})
|
|
13176
|
-
});
|
|
13177
|
-
var downvoteBtnSvg = /*#__PURE__*/ jsx("svg", {
|
|
13178
|
-
width: "1em",
|
|
13179
|
-
height: "1em",
|
|
13180
|
-
shapeRendering: "geometricPrecision",
|
|
13181
|
-
fill: "currentColor",
|
|
13182
|
-
viewBox: "0 0 16 16",
|
|
13183
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13184
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
13185
|
-
d: "M1.0052 8.17645C1.00099 8.11321 1.0052 8.04998 1.02204 7.98674L2.28281 2.5954C2.29965 2.53013 2.32912 2.47301 2.36701 2.41998C2.50171 2.15887 2.70798 1.92837 2.9795 1.75906C3.26786 1.58159 3.58779 1.5 3.90561 1.5V1.50408L11.9986 1.50816C12.0259 1.50408 12.0554 1.50204 12.0849 1.50204C12.1143 1.50204 12.1438 1.50408 12.1712 1.50816H14.3244C14.3538 1.50408 14.3854 1.5 14.417 1.5C14.739 1.5 15 1.75294 15 2.06504L14.9937 8.8496C14.9937 9.1617 14.7327 9.41464 14.4107 9.41464C14.3875 9.41464 14.3622 9.4126 14.3391 9.41056L12.4048 9.41464V9.42484C10.6241 9.54927 9.21391 10.9629 9.1634 12.707C9.16761 12.7559 9.17182 12.8049 9.17182 12.8559C9.17182 13.7636 8.41198 14.5 7.47535 14.5C6.67132 14.5 5.99778 13.9554 5.82308 13.2271L5.81466 13.2292C5.71995 12.813 5.66733 12.3806 5.66733 11.9379C5.66733 11.2526 5.7873 10.5957 6.00831 9.9858L2.75429 9.98172C2.72482 9.98172 2.69535 9.97968 2.66589 9.97356C2.11022 9.95316 1.5756 9.67574 1.25988 9.1821C1.05782 8.86796 0.977839 8.5171 1.0052 8.17645ZM13.8318 2.63824H12.6658L12.6616 8.28456L13.8255 8.28252L13.8318 2.63824ZM2.24282 8.59054C2.35438 8.76597 2.55223 8.85776 2.75218 8.84756V8.8496H2.75429L6.86706 8.85368C7.1891 8.85368 7.45009 9.10662 7.45009 9.41872C7.45009 9.50847 7.42694 9.59415 7.38905 9.66962L7.39537 9.6737C7.16173 10.0939 6.99335 10.5529 6.89653 11.0363H6.89021C6.89021 11.0363 6.81234 11.3423 6.81444 11.9257C6.81444 12.3887 6.90284 12.813 6.90284 12.813H6.90705C6.90705 12.8212 6.90495 12.8294 6.90495 12.8375C6.90495 13.1292 7.14911 13.3658 7.45009 13.3658C7.75108 13.3658 7.99523 13.1292 7.99523 12.8375C7.99523 12.8253 7.99313 12.813 7.99313 12.8008H8.00155C8.00155 12.8008 7.99313 12.3602 8.08364 11.9012C8.12152 11.7074 8.17625 11.5259 8.22676 11.3831C8.22676 11.3831 8.22887 11.3831 8.22887 11.3851C8.71928 9.93072 9.9527 8.80472 11.4955 8.42327L11.5018 2.6362L3.90351 2.63416C3.87825 2.63416 3.85299 2.63212 3.82773 2.62804C3.75196 2.63824 3.67619 2.66272 3.60884 2.70555C3.51201 2.76471 3.44045 2.85038 3.39836 2.9483H3.39625L2.18389 8.13769L2.1881 8.13973C2.13758 8.28456 2.15232 8.44979 2.24282 8.59054Z"
|
|
13186
|
-
})
|
|
13187
|
-
});
|
|
13188
|
-
var UpVoteBtn = function(props) {
|
|
13189
|
-
var prefix = props.prefix, isActive = props.isActive, clickFn = props.clickFn;
|
|
13190
|
-
var getCls = function(clsName) {
|
|
13191
|
-
return modules_63b47c51$6[clsName] + " " + prefix + "-" + clsName;
|
|
13192
|
-
};
|
|
13193
|
-
return /*#__PURE__*/ jsx("i", {
|
|
13194
|
-
onClick: function() {
|
|
13195
|
-
clickFn();
|
|
13196
|
-
},
|
|
13197
|
-
className: "".concat(getCls("upVoteBtn"), " ").concat(isActive ? getCls("active") : ""),
|
|
13198
|
-
children: upvoteBtnSvg
|
|
13199
|
-
});
|
|
13200
|
-
};
|
|
13201
|
-
var DownVoteBtn = function(props) {
|
|
13202
|
-
var prefix = props.prefix, isActive = props.isActive, clickFn = props.clickFn;
|
|
13203
|
-
var getCls = function(clsName) {
|
|
13204
|
-
return modules_63b47c51$6[clsName] + " " + prefix + "-" + clsName;
|
|
13205
|
-
};
|
|
13206
|
-
return /*#__PURE__*/ jsx("i", {
|
|
13207
|
-
onClick: function() {
|
|
13208
|
-
clickFn();
|
|
13209
|
-
},
|
|
13210
|
-
className: "".concat(getCls("downVoteBtn"), " ").concat(isActive ? getCls("active") : ""),
|
|
13211
|
-
children: downvoteBtnSvg
|
|
13212
|
-
});
|
|
13213
|
-
};
|
|
13214
|
-
|
|
13215
|
-
var modules_63b47c51$5 = {"refreshBtn":"index_module_refreshBtn__e1c5f38f","active":"index_module_active__e1c5f38f"};
|
|
13216
|
-
|
|
13217
|
-
var refreshSvg = /*#__PURE__*/ jsx("svg", {
|
|
13218
|
-
viewBox: "0 0 14 14",
|
|
13219
|
-
version: "1.1",
|
|
13220
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13221
|
-
"p-id": "8340",
|
|
13222
|
-
width: "1em",
|
|
13223
|
-
height: "1em",
|
|
13224
|
-
fill: "currentColor",
|
|
13225
|
-
shapeRendering: "geometricPrecision",
|
|
13226
|
-
"aria-hidden": "true",
|
|
13227
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
13228
|
-
d: "M8 3.80001C7.27938 3.80001 6.60141 3.97512 6.00464 4.2846C5.71048 4.43715 5.34834 4.32235 5.19579 4.02818C5.04324 3.73401 5.15804 3.37187 5.4522 3.21932C6.21563 2.82342 7.0826 2.60001 8 2.60001C11.0603 2.60001 13.5412 5.08088 13.5412 8.14118C13.5412 8.40936 13.5221 8.67343 13.4851 8.93202C13.4737 9.01141 13.4607 9.09026 13.446 9.16853L13.7175 9.02364C14.0098 8.86759 14.3733 8.97808 14.5293 9.27041C14.6854 9.56274 14.5749 9.92622 14.2825 10.0823L12.6718 10.9421C12.3819 11.0968 12.0215 10.9896 11.8633 10.7016L11.0035 9.13588C10.844 8.84542 10.9501 8.48065 11.2406 8.32115C11.5311 8.16164 11.8958 8.2678 12.0553 8.55825L12.2672 8.94405C12.2784 8.88383 12.2885 8.82318 12.2972 8.76211C12.3261 8.55962 12.3412 8.35233 12.3412 8.14118C12.3412 5.74362 10.3976 3.80001 8 3.80001ZM3.32824 5.34029C3.61811 5.18556 3.97853 5.29278 4.13669 5.58079L4.99651 7.14649C5.15601 7.43694 5.04986 7.80171 4.7594 7.96122C4.46895 8.12072 4.10418 8.01457 3.94467 7.72411L3.73281 7.33832C3.72156 7.39853 3.71155 7.45919 3.70282 7.52026C3.67386 7.72275 3.65883 7.93003 3.65883 8.14118C3.65883 10.5387 5.60244 12.4824 8 12.4824C8.72063 12.4824 9.39859 12.3072 9.99536 11.9978C10.2895 11.8452 10.6517 11.96 10.8042 12.2542C10.9568 12.5484 10.842 12.9105 10.5478 13.063C9.78437 13.4589 8.9174 13.6824 8 13.6824C4.93969 13.6824 2.45883 11.2015 2.45883 8.14118C2.45883 7.87301 2.47792 7.60894 2.51491 7.35034C2.52627 7.27095 2.5393 7.19211 2.55399 7.11384L2.28254 7.25873C1.99021 7.41477 1.62673 7.30429 1.47069 7.01196C1.31465 6.71963 1.42513 6.35615 1.71746 6.20011L3.32824 5.34029Z"
|
|
13229
|
-
})
|
|
13230
|
-
});
|
|
13231
|
-
var RefreshBtn = function(props) {
|
|
13232
|
-
var prefix = props.prefix, clickFn = props.clickFn;
|
|
13233
|
-
var getCls = function(clsName) {
|
|
13234
|
-
return modules_63b47c51$5[clsName] + " " + prefix + "-" + clsName;
|
|
13235
|
-
};
|
|
13236
|
-
return /*#__PURE__*/ jsx("i", {
|
|
13237
|
-
className: "".concat(getCls("refreshBtn")),
|
|
13238
|
-
onClick: function() {
|
|
13239
|
-
return clickFn();
|
|
13240
|
-
},
|
|
13241
|
-
children: refreshSvg
|
|
13242
|
-
});
|
|
13243
|
-
};
|
|
13244
|
-
var RefreshBtn$1 = RefreshBtn;
|
|
13245
|
-
|
|
13246
|
-
//@ts-nocheck
|
|
13247
|
-
// wordIcon
|
|
13248
|
-
var wordIcon = /*#__PURE__*/ jsx("i", {
|
|
13249
|
-
children: /*#__PURE__*/ jsxs("svg", {
|
|
13250
|
-
width: "1em",
|
|
13251
|
-
height: "1em",
|
|
13252
|
-
viewBox: "0 0 32 32",
|
|
13253
|
-
fill: "none",
|
|
13254
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13255
|
-
children: [
|
|
13256
|
-
/*#__PURE__*/ jsx("path", {
|
|
13257
|
-
d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
|
|
13258
|
-
fill: "#E1E1E1"
|
|
13259
|
-
}),
|
|
13260
|
-
/*#__PURE__*/ jsx("path", {
|
|
13261
|
-
d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
|
|
13262
|
-
fill: "#E0E0E0"
|
|
13263
|
-
}),
|
|
13264
|
-
/*#__PURE__*/ jsx("path", {
|
|
13265
|
-
d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
|
|
13266
|
-
fill: "#F6F6F6"
|
|
13267
|
-
}),
|
|
13268
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13269
|
-
x: "16",
|
|
13270
|
-
y: "12",
|
|
13271
|
-
width: "12",
|
|
13272
|
-
height: "2",
|
|
13273
|
-
rx: "1",
|
|
13274
|
-
fill: "#E7E7E7"
|
|
13275
|
-
}),
|
|
13276
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13277
|
-
x: "16",
|
|
13278
|
-
y: "16",
|
|
13279
|
-
width: "12",
|
|
13280
|
-
height: "2",
|
|
13281
|
-
rx: "1",
|
|
13282
|
-
fill: "#E7E7E7"
|
|
13283
|
-
}),
|
|
13284
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13285
|
-
x: "16",
|
|
13286
|
-
y: "20",
|
|
13287
|
-
width: "12",
|
|
13288
|
-
height: "2",
|
|
13289
|
-
rx: "1",
|
|
13290
|
-
fill: "#E7E7E7"
|
|
13291
|
-
}),
|
|
13292
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13293
|
-
x: "16",
|
|
13294
|
-
y: "24",
|
|
13295
|
-
width: "9",
|
|
13296
|
-
height: "2",
|
|
13297
|
-
rx: "1",
|
|
13298
|
-
fill: "#E7E7E7"
|
|
13299
|
-
}),
|
|
13300
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13301
|
-
x: "1",
|
|
13302
|
-
y: "7",
|
|
13303
|
-
width: "18",
|
|
13304
|
-
height: "18",
|
|
13305
|
-
rx: "2",
|
|
13306
|
-
fill: "url(#paint0_linear_9_1348)"
|
|
13307
|
-
}),
|
|
13308
|
-
/*#__PURE__*/ jsx("path", {
|
|
13309
|
-
d: "M13.8979 21.372H11.4979C11.4499 20.988 11.3659 20.568 11.2459 20.088L10.3339 16.56C10.2139 16.092 10.1179 15.54 9.99789 14.748C9.92589 15.24 9.78189 15.996 9.63789 16.56L8.74989 20.1C8.59389 20.7 8.52189 21.048 8.48589 21.372H6.09789C6.03789 21.024 5.97789 20.772 5.79789 20.076L3.87789 12.876C3.70989 12.264 3.54189 11.712 3.42189 11.388H6.15789C6.16989 11.82 6.22989 12.204 6.32589 12.708L7.09389 16.356C7.12989 16.536 7.21389 17.1 7.35789 18.048C7.53789 17.04 7.62189 16.608 7.69389 16.356L8.65389 12.636C8.79789 12.096 8.86989 11.724 8.91789 11.388H11.0539C11.1019 11.7 11.1739 12.036 11.3299 12.6L12.3019 16.296C12.3979 16.68 12.4819 17.076 12.6379 18.048C12.6619 17.82 12.6619 17.82 12.7339 17.316C12.7699 17.052 12.8539 16.476 12.9019 16.284L13.6579 12.708C13.7779 12.156 13.8259 11.808 13.8379 11.388H16.5619C16.4419 11.712 16.2739 12.276 16.1179 12.876L14.1979 20.064C14.0419 20.628 13.9339 21.084 13.8979 21.372Z",
|
|
13310
|
-
fill: "white"
|
|
13311
|
-
}),
|
|
13312
|
-
/*#__PURE__*/ jsx("defs", {
|
|
13313
|
-
children: /*#__PURE__*/ jsxs("linearGradient", {
|
|
13314
|
-
id: "paint0_linear_9_1348",
|
|
13315
|
-
x1: "10",
|
|
13316
|
-
y1: "7",
|
|
13317
|
-
x2: "10",
|
|
13318
|
-
y2: "25",
|
|
13319
|
-
gradientUnits: "userSpaceOnUse",
|
|
13320
|
-
children: [
|
|
13321
|
-
/*#__PURE__*/ jsx("stop", {
|
|
13322
|
-
"stop-color": "#4199F2"
|
|
13323
|
-
}),
|
|
13324
|
-
/*#__PURE__*/ jsx("stop", {
|
|
13325
|
-
offset: "1",
|
|
13326
|
-
"stop-color": "#3173E2"
|
|
13327
|
-
})
|
|
13328
|
-
]
|
|
13329
|
-
})
|
|
13330
|
-
})
|
|
13331
|
-
]
|
|
13332
|
-
})
|
|
13333
|
-
});
|
|
13334
|
-
var excelIcon = /*#__PURE__*/ jsx("i", {
|
|
13335
|
-
children: /*#__PURE__*/ jsxs("svg", {
|
|
13336
|
-
width: "1em",
|
|
13337
|
-
height: "1em",
|
|
13338
|
-
viewBox: "0 0 32 32",
|
|
13339
|
-
fill: "none",
|
|
13340
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13341
|
-
children: [
|
|
13342
|
-
/*#__PURE__*/ jsx("path", {
|
|
13343
|
-
d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
|
|
13344
|
-
fill: "#E1E1E1"
|
|
13345
|
-
}),
|
|
13346
|
-
/*#__PURE__*/ jsx("path", {
|
|
13347
|
-
d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
|
|
13348
|
-
fill: "#E0E0E0"
|
|
13349
|
-
}),
|
|
13350
|
-
/*#__PURE__*/ jsx("path", {
|
|
13351
|
-
d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
|
|
13352
|
-
fill: "#F6F6F6"
|
|
13353
|
-
}),
|
|
13354
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13355
|
-
x: "23",
|
|
13356
|
-
y: "12",
|
|
13357
|
-
width: "5",
|
|
13358
|
-
height: "3",
|
|
13359
|
-
rx: "1",
|
|
13360
|
-
fill: "#E7E7E7"
|
|
13361
|
-
}),
|
|
13362
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13363
|
-
x: "23",
|
|
13364
|
-
y: "16",
|
|
13365
|
-
width: "5",
|
|
13366
|
-
height: "3",
|
|
13367
|
-
rx: "1",
|
|
13368
|
-
fill: "#E7E7E7"
|
|
13369
|
-
}),
|
|
13370
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13371
|
-
x: "23",
|
|
13372
|
-
y: "20",
|
|
13373
|
-
width: "5",
|
|
13374
|
-
height: "3",
|
|
13375
|
-
rx: "1",
|
|
13376
|
-
fill: "#E7E7E7"
|
|
13377
|
-
}),
|
|
13378
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13379
|
-
x: "23",
|
|
13380
|
-
y: "24",
|
|
13381
|
-
width: "5",
|
|
13382
|
-
height: "3",
|
|
13383
|
-
rx: "1",
|
|
13384
|
-
fill: "#E7E7E7"
|
|
13385
|
-
}),
|
|
13386
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13387
|
-
x: "17",
|
|
13388
|
-
y: "12",
|
|
13389
|
-
width: "5",
|
|
13390
|
-
height: "3",
|
|
13391
|
-
rx: "1",
|
|
13392
|
-
fill: "#E7E7E7"
|
|
13393
|
-
}),
|
|
13394
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13395
|
-
x: "17",
|
|
13396
|
-
y: "16",
|
|
13397
|
-
width: "5",
|
|
13398
|
-
height: "3",
|
|
13399
|
-
rx: "1",
|
|
13400
|
-
fill: "#E7E7E7"
|
|
13401
|
-
}),
|
|
13402
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13403
|
-
x: "17",
|
|
13404
|
-
y: "20",
|
|
13405
|
-
width: "5",
|
|
13406
|
-
height: "3",
|
|
13407
|
-
rx: "1",
|
|
13408
|
-
fill: "#E7E7E7"
|
|
13409
|
-
}),
|
|
13410
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13411
|
-
x: "17",
|
|
13412
|
-
y: "24",
|
|
13413
|
-
width: "5",
|
|
13414
|
-
height: "3",
|
|
13415
|
-
rx: "1",
|
|
13416
|
-
fill: "#E7E7E7"
|
|
13417
|
-
}),
|
|
13418
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13419
|
-
x: "1",
|
|
13420
|
-
y: "7",
|
|
13421
|
-
width: "18",
|
|
13422
|
-
height: "18",
|
|
13423
|
-
rx: "2",
|
|
13424
|
-
fill: "url(#paint0_linear_9_1438)"
|
|
13425
|
-
}),
|
|
13426
|
-
/*#__PURE__*/ jsx("path", {
|
|
13427
|
-
d: "M9.49906 17.868L8.20306 19.896C7.87906 20.4 7.62706 20.82 7.32706 21.372H4.14706C4.79506 20.58 5.03506 20.268 5.38306 19.788L8.02306 16.08L5.77906 12.924C5.40706 12.384 5.04706 11.916 4.60306 11.388H7.71106C7.90306 11.832 8.16706 12.312 8.59906 12.972L9.51106 14.364L10.4111 12.96C10.8911 12.204 11.0951 11.844 11.2871 11.388H14.3711C13.9391 11.928 13.6511 12.3 13.2311 12.9L10.9751 16.068L13.6271 19.788C14.0111 20.328 14.3471 20.76 14.8511 21.372H11.6711C11.4431 20.94 11.2151 20.532 10.8071 19.896L9.49906 17.868Z",
|
|
13428
|
-
fill: "white"
|
|
13429
|
-
}),
|
|
13430
|
-
/*#__PURE__*/ jsx("defs", {
|
|
13431
|
-
children: /*#__PURE__*/ jsxs("linearGradient", {
|
|
13432
|
-
id: "paint0_linear_9_1438",
|
|
13433
|
-
x1: "10",
|
|
13434
|
-
y1: "7",
|
|
13435
|
-
x2: "10",
|
|
13436
|
-
y2: "25",
|
|
13437
|
-
gradientUnits: "userSpaceOnUse",
|
|
13438
|
-
children: [
|
|
13439
|
-
/*#__PURE__*/ jsx("stop", {
|
|
13440
|
-
"stop-color": "#309A6C"
|
|
13441
|
-
}),
|
|
13442
|
-
/*#__PURE__*/ jsx("stop", {
|
|
13443
|
-
offset: "1",
|
|
13444
|
-
"stop-color": "#237347"
|
|
13445
|
-
})
|
|
13446
|
-
]
|
|
13447
|
-
})
|
|
13448
|
-
})
|
|
13449
|
-
]
|
|
13450
|
-
})
|
|
13451
|
-
});
|
|
13452
|
-
var pptIcon = /*#__PURE__*/ jsx("i", {
|
|
13453
|
-
children: /*#__PURE__*/ jsxs("svg", {
|
|
13454
|
-
width: "1em",
|
|
13455
|
-
height: "1em",
|
|
13456
|
-
viewBox: "0 0 32 32",
|
|
13457
|
-
fill: "none",
|
|
13458
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13459
|
-
children: [
|
|
13460
|
-
/*#__PURE__*/ jsx("path", {
|
|
13461
|
-
d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
|
|
13462
|
-
fill: "#E1E1E1"
|
|
13463
|
-
}),
|
|
13464
|
-
/*#__PURE__*/ jsx("path", {
|
|
13465
|
-
d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
|
|
13466
|
-
fill: "#E0E0E0"
|
|
13467
|
-
}),
|
|
13468
|
-
/*#__PURE__*/ jsx("path", {
|
|
13469
|
-
d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
|
|
13470
|
-
fill: "#F6F6F6"
|
|
13471
|
-
}),
|
|
13472
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13473
|
-
x: "17",
|
|
13474
|
-
y: "25",
|
|
13475
|
-
width: "11",
|
|
13476
|
-
height: "2",
|
|
13477
|
-
rx: "1",
|
|
13478
|
-
fill: "#E7E7E7"
|
|
13479
|
-
}),
|
|
13480
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13481
|
-
x: "17",
|
|
13482
|
-
y: "22",
|
|
13483
|
-
width: "11",
|
|
13484
|
-
height: "2",
|
|
13485
|
-
rx: "1",
|
|
13486
|
-
fill: "#E7E7E7"
|
|
13487
|
-
}),
|
|
13488
|
-
/*#__PURE__*/ jsx("path", {
|
|
13489
|
-
d: "M21.2305 12.4175C19.796 12.6232 18.6928 13.854 18.6924 15.3452C18.6924 16.9808 20.0187 18.3071 21.6543 18.3071C23.1457 18.3069 24.3754 17.2037 24.5811 15.769H26.2871C26.0734 18.1409 24.0817 19.9993 21.6543 19.9995C19.0842 19.9995 17.0002 17.9162 17 15.3462C17.0002 12.919 18.859 10.9266 21.2305 10.7124V12.4175Z",
|
|
13490
|
-
fill: "#E7E7E7"
|
|
13491
|
-
}),
|
|
13492
|
-
/*#__PURE__*/ jsx("mask", {
|
|
13493
|
-
id: "mask0_9_1453",
|
|
13494
|
-
style: "mask-type:alpha",
|
|
13495
|
-
maskUnits: "userSpaceOnUse",
|
|
13496
|
-
x: "22",
|
|
13497
|
-
y: "9",
|
|
13498
|
-
width: "6",
|
|
13499
|
-
height: "6",
|
|
13500
|
-
children: /*#__PURE__*/ jsx("rect", {
|
|
13501
|
-
x: "22.9223",
|
|
13502
|
-
y: "9",
|
|
13503
|
-
width: "5.07692",
|
|
13504
|
-
height: "5.07692",
|
|
13505
|
-
fill: "#E7E7E7"
|
|
13506
|
-
})
|
|
13507
|
-
}),
|
|
13508
|
-
/*#__PURE__*/ jsx("g", {
|
|
13509
|
-
mask: "url(#mask0_9_1453)",
|
|
13510
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
13511
|
-
d: "M22.5001 9.84619C25.0702 9.84643 27.1534 11.9304 27.1534 14.5005C27.1532 17.0704 25.07 19.1536 22.5001 19.1538C19.93 19.1538 17.8461 17.0705 17.8458 14.5005C17.8458 11.9302 19.9299 9.84619 22.5001 9.84619ZM21.6534 12.3843C20.0179 12.3843 18.6915 13.7106 18.6915 15.3462C18.6915 16.9818 20.0179 18.3081 21.6534 18.3081C23.2891 18.3081 24.6154 16.9818 24.6154 15.3462C24.6154 13.7106 23.2891 12.3843 21.6534 12.3843Z",
|
|
13512
|
-
fill: "#E7E7E7"
|
|
13513
|
-
})
|
|
13514
|
-
}),
|
|
13515
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13516
|
-
x: "1",
|
|
13517
|
-
y: "7",
|
|
13518
|
-
width: "18",
|
|
13519
|
-
height: "18",
|
|
13520
|
-
rx: "2",
|
|
13521
|
-
fill: "url(#paint0_linear_9_1453)"
|
|
13522
|
-
}),
|
|
13523
|
-
/*#__PURE__*/ jsx("path", {
|
|
13524
|
-
d: "M8.74783 21.372H6.16783C6.23983 20.844 6.26383 20.304 6.26383 19.596V13.104C6.26383 12.456 6.23983 11.916 6.16783 11.352C6.73183 11.376 7.16383 11.388 7.93183 11.388H10.5598C12.9358 11.388 14.2438 12.528 14.2438 14.616C14.2438 16.752 12.8758 18.024 10.5478 18.024H8.65183V19.56C8.65183 20.268 8.68783 20.856 8.74783 21.372ZM8.65183 15.984H10.4398C11.2798 15.984 11.7718 15.516 11.7718 14.688C11.7718 13.86 11.3038 13.428 10.4398 13.428H8.65183V15.984Z",
|
|
13525
|
-
fill: "white"
|
|
13526
|
-
}),
|
|
13527
|
-
/*#__PURE__*/ jsx("defs", {
|
|
13528
|
-
children: /*#__PURE__*/ jsxs("linearGradient", {
|
|
13529
|
-
id: "paint0_linear_9_1453",
|
|
13530
|
-
x1: "10",
|
|
13531
|
-
y1: "7",
|
|
13532
|
-
x2: "10",
|
|
13533
|
-
y2: "25",
|
|
13534
|
-
gradientUnits: "userSpaceOnUse",
|
|
13535
|
-
children: [
|
|
13536
|
-
/*#__PURE__*/ jsx("stop", {
|
|
13537
|
-
"stop-color": "#FF8642"
|
|
13538
|
-
}),
|
|
13539
|
-
/*#__PURE__*/ jsx("stop", {
|
|
13540
|
-
offset: "1",
|
|
13541
|
-
"stop-color": "#EF673B"
|
|
13542
|
-
})
|
|
13543
|
-
]
|
|
13544
|
-
})
|
|
13545
|
-
})
|
|
13546
|
-
]
|
|
13547
|
-
})
|
|
13548
|
-
});
|
|
13549
|
-
var pdfIcon = /*#__PURE__*/ jsx("i", {
|
|
13550
|
-
children: /*#__PURE__*/ jsxs("svg", {
|
|
13551
|
-
width: "1em",
|
|
13552
|
-
height: "1em",
|
|
13553
|
-
viewBox: "0 0 32 32",
|
|
13554
|
-
fill: "none",
|
|
13555
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13556
|
-
children: [
|
|
13557
|
-
/*#__PURE__*/ jsx("path", {
|
|
13558
|
-
d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
|
|
13559
|
-
fill: "#E1E1E1"
|
|
13560
|
-
}),
|
|
13561
|
-
/*#__PURE__*/ jsx("path", {
|
|
13562
|
-
d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
|
|
13563
|
-
fill: "#E0E0E0"
|
|
13564
|
-
}),
|
|
13565
|
-
/*#__PURE__*/ jsx("path", {
|
|
13566
|
-
d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
|
|
13567
|
-
fill: "#F6F6F6"
|
|
13568
|
-
}),
|
|
13569
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13570
|
-
x: "16",
|
|
13571
|
-
y: "12",
|
|
13572
|
-
width: "12",
|
|
13573
|
-
height: "2",
|
|
13574
|
-
rx: "1",
|
|
13575
|
-
fill: "#E7E7E7"
|
|
13576
|
-
}),
|
|
13577
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13578
|
-
x: "16",
|
|
13579
|
-
y: "16",
|
|
13580
|
-
width: "12",
|
|
13581
|
-
height: "2",
|
|
13582
|
-
rx: "1",
|
|
13583
|
-
fill: "#E7E7E7"
|
|
13584
|
-
}),
|
|
13585
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13586
|
-
x: "16",
|
|
13587
|
-
y: "20",
|
|
13588
|
-
width: "12",
|
|
13589
|
-
height: "2",
|
|
13590
|
-
rx: "1",
|
|
13591
|
-
fill: "#E7E7E7"
|
|
13592
|
-
}),
|
|
13593
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13594
|
-
x: "16",
|
|
13595
|
-
y: "24",
|
|
13596
|
-
width: "9",
|
|
13597
|
-
height: "2",
|
|
13598
|
-
rx: "1",
|
|
13599
|
-
fill: "#E7E7E7"
|
|
13600
|
-
}),
|
|
13601
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13602
|
-
x: "1",
|
|
13603
|
-
y: "7",
|
|
13604
|
-
width: "18",
|
|
13605
|
-
height: "18",
|
|
13606
|
-
rx: "2",
|
|
13607
|
-
fill: "url(#paint0_linear_9_1414)"
|
|
13608
|
-
}),
|
|
13609
|
-
/*#__PURE__*/ jsx("g", {
|
|
13610
|
-
"clip-path": "url(#clip0_9_1414)",
|
|
13611
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
13612
|
-
d: "M14.3333 18.9667C13.4333 18.9 12.5667 18.5667 11.8667 17.9667C10.5 18.2667 9.2 18.7 7.9 19.2334C6.86667 21.0667 5.9 22 5.06667 22C4.9 22 4.7 21.9667 4.56667 21.8667C4.2 21.7 4 21.3334 4 20.9667C4 20.6667 4.06667 19.8334 7.23333 18.4667C7.96667 17.1334 8.53333 15.7667 9 14.3334C8.6 13.5334 7.73333 11.5667 8.33333 10.5667C8.53333 10.2 8.93333 10 9.36667 10.0334C9.7 10.0334 10.0333 10.2 10.2333 10.4667C10.6667 11.0667 10.6333 12.3334 10.0667 14.2C10.6 15.2 11.3 16.1 12.1333 16.8667C12.8333 16.7334 13.5333 16.6334 14.2333 16.6334C15.8 16.6667 16.0333 17.4 16 17.8334C16 18.9667 14.9 18.9667 14.3333 18.9667ZM5 21.0334L5.1 21C5.56667 20.8334 5.93333 20.5 6.2 20.0667C5.7 20.2667 5.3 20.6 5 21.0334ZM9.43333 11.0334H9.33333C9.3 11.0334 9.23333 11.0334 9.2 11.0667C9.06667 11.6334 9.16667 12.2334 9.4 12.7667C9.6 12.2 9.6 11.6 9.43333 11.0334ZM9.66667 15.8667L9.63333 15.9334L9.6 15.9C9.3 16.6667 8.96667 17.4334 8.6 18.1667L8.66667 18.1334V18.2C9.4 17.9334 10.2 17.7 10.9333 17.5334L10.9 17.5H11C10.5 17 10.0333 16.4334 9.66667 15.8667ZM14.2 17.6334C13.9 17.6334 13.6333 17.6334 13.3333 17.7C13.6667 17.8667 14 17.9334 14.3333 17.9667C14.5667 18 14.8 17.9667 15 17.9C15 17.8 14.8667 17.6334 14.2 17.6334Z",
|
|
13613
|
-
fill: "white"
|
|
13614
|
-
})
|
|
13615
|
-
}),
|
|
13616
|
-
/*#__PURE__*/ jsxs("defs", {
|
|
13617
|
-
children: [
|
|
13618
|
-
/*#__PURE__*/ jsxs("linearGradient", {
|
|
13619
|
-
id: "paint0_linear_9_1414",
|
|
13620
|
-
x1: "10",
|
|
13621
|
-
y1: "7",
|
|
13622
|
-
x2: "10",
|
|
13623
|
-
y2: "25",
|
|
13624
|
-
gradientUnits: "userSpaceOnUse",
|
|
13625
|
-
children: [
|
|
13626
|
-
/*#__PURE__*/ jsx("stop", {
|
|
13627
|
-
"stop-color": "#FF7675"
|
|
13628
|
-
}),
|
|
13629
|
-
/*#__PURE__*/ jsx("stop", {
|
|
13630
|
-
offset: "1",
|
|
13631
|
-
"stop-color": "#F73535"
|
|
13632
|
-
})
|
|
13633
|
-
]
|
|
13634
|
-
}),
|
|
13635
|
-
/*#__PURE__*/ jsx("clipPath", {
|
|
13636
|
-
id: "clip0_9_1414",
|
|
13637
|
-
children: /*#__PURE__*/ jsx("rect", {
|
|
13638
|
-
width: "12",
|
|
13639
|
-
height: "12",
|
|
13640
|
-
fill: "white",
|
|
13641
|
-
transform: "translate(4 10)"
|
|
13642
|
-
})
|
|
13643
|
-
})
|
|
13644
|
-
]
|
|
13645
|
-
})
|
|
13646
|
-
]
|
|
13647
|
-
})
|
|
13648
|
-
});
|
|
13649
|
-
var txtIcon = /*#__PURE__*/ jsx("i", {
|
|
13650
|
-
children: /*#__PURE__*/ jsxs("svg", {
|
|
13651
|
-
width: "1em",
|
|
13652
|
-
height: "1em",
|
|
13653
|
-
viewBox: "0 0 32 32",
|
|
13654
|
-
fill: "none",
|
|
13655
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13656
|
-
children: [
|
|
13657
|
-
/*#__PURE__*/ jsx("path", {
|
|
13658
|
-
d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
|
|
13659
|
-
fill: "#E1E1E1"
|
|
13660
|
-
}),
|
|
13661
|
-
/*#__PURE__*/ jsx("path", {
|
|
13662
|
-
d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
|
|
13663
|
-
fill: "#E0E0E0"
|
|
13664
|
-
}),
|
|
13665
|
-
/*#__PURE__*/ jsx("path", {
|
|
13666
|
-
d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
|
|
13667
|
-
fill: "#F6F6F6"
|
|
13668
|
-
}),
|
|
13669
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13670
|
-
x: "16",
|
|
13671
|
-
y: "12",
|
|
13672
|
-
width: "12",
|
|
13673
|
-
height: "2",
|
|
13674
|
-
rx: "1",
|
|
13675
|
-
fill: "#E7E7E7"
|
|
13676
|
-
}),
|
|
13677
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13678
|
-
x: "16",
|
|
13679
|
-
y: "16",
|
|
13680
|
-
width: "12",
|
|
13681
|
-
height: "2",
|
|
13682
|
-
rx: "1",
|
|
13683
|
-
fill: "#E7E7E7"
|
|
13684
|
-
}),
|
|
13685
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13686
|
-
x: "16",
|
|
13687
|
-
y: "20",
|
|
13688
|
-
width: "12",
|
|
13689
|
-
height: "2",
|
|
13690
|
-
rx: "1",
|
|
13691
|
-
fill: "#E7E7E7"
|
|
13692
|
-
}),
|
|
13693
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13694
|
-
x: "16",
|
|
13695
|
-
y: "24",
|
|
13696
|
-
width: "9",
|
|
13697
|
-
height: "2",
|
|
13698
|
-
rx: "1",
|
|
13699
|
-
fill: "#E7E7E7"
|
|
13700
|
-
}),
|
|
13701
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13702
|
-
x: "1",
|
|
13703
|
-
y: "7",
|
|
13704
|
-
width: "18",
|
|
13705
|
-
height: "18",
|
|
13706
|
-
rx: "2",
|
|
13707
|
-
fill: "url(#paint0_linear_9_1478)"
|
|
13708
|
-
}),
|
|
13709
|
-
/*#__PURE__*/ jsx("path", {
|
|
13710
|
-
d: "M5.56291 14.256V17.28C5.56291 17.64 5.57491 17.904 5.61091 18.186H4.28491C4.32091 17.904 4.33291 17.658 4.33291 17.28V14.256H3.62491C3.24691 14.256 3.14491 14.262 2.71891 14.298V13.152C2.91691 13.176 3.24691 13.194 3.61291 13.194H6.24091C6.66091 13.194 6.90091 13.182 7.17691 13.152V14.298C6.90691 14.268 6.67291 14.256 6.24091 14.256H5.56291ZM9.99953 16.434L9.35153 17.448C9.18953 17.7 9.06353 17.91 8.91353 18.186H7.32353C7.64753 17.79 7.76753 17.634 7.94153 17.394L9.26153 15.54L8.13953 13.962C7.95353 13.692 7.77353 13.458 7.55153 13.194H9.10553C9.20153 13.416 9.33353 13.656 9.54953 13.986L10.0055 14.682L10.4555 13.98C10.6955 13.602 10.7975 13.422 10.8935 13.194H12.4355C12.2195 13.464 12.0755 13.65 11.8655 13.95L10.7375 15.534L12.0635 17.394C12.2555 17.664 12.4235 17.88 12.6755 18.186H11.0855C10.9715 17.97 10.8575 17.766 10.6535 17.448L9.99953 16.434ZM15.6645 14.256V17.28C15.6645 17.64 15.6765 17.904 15.7125 18.186H14.3865C14.4225 17.904 14.4345 17.658 14.4345 17.28V14.256H13.7265C13.3485 14.256 13.2465 14.262 12.8205 14.298V13.152C13.0185 13.176 13.3485 13.194 13.7145 13.194H16.3425C16.7625 13.194 17.0025 13.182 17.2785 13.152V14.298C17.0085 14.268 16.7745 14.256 16.3425 14.256H15.6645Z",
|
|
13711
|
-
fill: "white"
|
|
13712
|
-
}),
|
|
13713
|
-
/*#__PURE__*/ jsx("defs", {
|
|
13714
|
-
children: /*#__PURE__*/ jsxs("linearGradient", {
|
|
13715
|
-
id: "paint0_linear_9_1478",
|
|
13716
|
-
x1: "10",
|
|
13717
|
-
y1: "7",
|
|
13718
|
-
x2: "10",
|
|
13719
|
-
y2: "25",
|
|
13720
|
-
gradientUnits: "userSpaceOnUse",
|
|
13721
|
-
children: [
|
|
13722
|
-
/*#__PURE__*/ jsx("stop", {
|
|
13723
|
-
"stop-color": "#B5B5B5"
|
|
13724
|
-
}),
|
|
13725
|
-
/*#__PURE__*/ jsx("stop", {
|
|
13726
|
-
offset: "1",
|
|
13727
|
-
"stop-color": "#434343"
|
|
13728
|
-
})
|
|
13729
|
-
]
|
|
13730
|
-
})
|
|
13731
|
-
})
|
|
13732
|
-
]
|
|
13733
|
-
})
|
|
13734
|
-
});
|
|
13735
|
-
// 未知文件也用这个icon
|
|
13736
|
-
var chmIcon = /*#__PURE__*/ jsx("i", {
|
|
13737
|
-
children: /*#__PURE__*/ jsxs("svg", {
|
|
13738
|
-
width: "1em",
|
|
13739
|
-
height: "1em",
|
|
13740
|
-
viewBox: "0 0 32 32",
|
|
13741
|
-
fill: "none",
|
|
13742
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13743
|
-
children: [
|
|
13744
|
-
/*#__PURE__*/ jsx("path", {
|
|
13745
|
-
d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
|
|
13746
|
-
fill: "#E1E1E1"
|
|
13747
|
-
}),
|
|
13748
|
-
/*#__PURE__*/ jsx("path", {
|
|
13749
|
-
d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
|
|
13750
|
-
fill: "#E0E0E0"
|
|
13751
|
-
}),
|
|
13752
|
-
/*#__PURE__*/ jsx("path", {
|
|
13753
|
-
d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
|
|
13754
|
-
fill: "#F6F6F6"
|
|
13755
|
-
}),
|
|
13756
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13757
|
-
x: "16",
|
|
13758
|
-
y: "12",
|
|
13759
|
-
width: "12",
|
|
13760
|
-
height: "2",
|
|
13761
|
-
rx: "1",
|
|
13762
|
-
fill: "#E7E7E7"
|
|
13763
|
-
}),
|
|
13764
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13765
|
-
x: "16",
|
|
13766
|
-
y: "16",
|
|
13767
|
-
width: "12",
|
|
13768
|
-
height: "2",
|
|
13769
|
-
rx: "1",
|
|
13770
|
-
fill: "#E7E7E7"
|
|
13771
|
-
}),
|
|
13772
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13773
|
-
x: "16",
|
|
13774
|
-
y: "20",
|
|
13775
|
-
width: "12",
|
|
13776
|
-
height: "2",
|
|
13777
|
-
rx: "1",
|
|
13778
|
-
fill: "#E7E7E7"
|
|
13779
|
-
}),
|
|
13780
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13781
|
-
x: "16",
|
|
13782
|
-
y: "24",
|
|
13783
|
-
width: "9",
|
|
13784
|
-
height: "2",
|
|
13785
|
-
rx: "1",
|
|
13786
|
-
fill: "#E7E7E7"
|
|
13787
|
-
}),
|
|
13788
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13789
|
-
x: "1",
|
|
13790
|
-
y: "7",
|
|
13791
|
-
width: "18",
|
|
13792
|
-
height: "18",
|
|
13793
|
-
rx: "2",
|
|
13794
|
-
fill: "url(#paint0_linear_9_1403)"
|
|
13795
|
-
}),
|
|
13796
|
-
/*#__PURE__*/ jsx("path", {
|
|
13797
|
-
d: "M10.828 18.348H8.596C8.62 18.156 8.62 18.144 8.62 17.796C8.62 16.968 8.764 16.488 9.148 16.02C9.436 15.684 9.532 15.612 10.384 15.096C10.972 14.748 11.164 14.496 11.164 14.1C11.164 13.536 10.744 13.2 10.024 13.2C9.484 13.2 9.088 13.392 8.86 13.764C8.74 13.956 8.692 14.124 8.644 14.496L6.172 14.268C6.292 13.404 6.484 12.936 6.94 12.432C7.636 11.64 8.704 11.232 10.084 11.232C12.292 11.232 13.672 12.276 13.672 13.932C13.672 14.664 13.432 15.228 12.928 15.696C12.64 15.96 12.52 16.044 11.476 16.692C10.972 17.016 10.792 17.328 10.792 17.88C10.792 18.024 10.804 18.156 10.828 18.348ZM8.512 19.164H10.924V21.432H8.512V19.164Z",
|
|
13798
|
-
fill: "white"
|
|
13799
|
-
}),
|
|
13800
|
-
/*#__PURE__*/ jsx("defs", {
|
|
13801
|
-
children: /*#__PURE__*/ jsxs("linearGradient", {
|
|
13802
|
-
id: "paint0_linear_9_1403",
|
|
13803
|
-
x1: "10",
|
|
13804
|
-
y1: "7",
|
|
13805
|
-
x2: "10",
|
|
13806
|
-
y2: "25",
|
|
13807
|
-
gradientUnits: "userSpaceOnUse",
|
|
13808
|
-
children: [
|
|
13809
|
-
/*#__PURE__*/ jsx("stop", {
|
|
13810
|
-
"stop-color": "#B5B5B5"
|
|
13811
|
-
}),
|
|
13812
|
-
/*#__PURE__*/ jsx("stop", {
|
|
13813
|
-
offset: "1",
|
|
13814
|
-
"stop-color": "#434343"
|
|
13815
|
-
})
|
|
13816
|
-
]
|
|
13817
|
-
})
|
|
13818
|
-
})
|
|
13819
|
-
]
|
|
13820
|
-
})
|
|
13821
|
-
});
|
|
13822
|
-
var hdxIcon = /*#__PURE__*/ jsx("i", {
|
|
13823
|
-
children: /*#__PURE__*/ jsxs("svg", {
|
|
13824
|
-
width: "1em",
|
|
13825
|
-
height: "1em",
|
|
13826
|
-
viewBox: "0 0 32 32",
|
|
13827
|
-
fill: "none",
|
|
13828
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13829
|
-
children: [
|
|
13830
|
-
/*#__PURE__*/ jsx("path", {
|
|
13831
|
-
d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
|
|
13832
|
-
fill: "#E1E1E1"
|
|
13833
|
-
}),
|
|
13834
|
-
/*#__PURE__*/ jsx("path", {
|
|
13835
|
-
d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
|
|
13836
|
-
fill: "#E0E0E0"
|
|
13837
|
-
}),
|
|
13838
|
-
/*#__PURE__*/ jsx("path", {
|
|
13839
|
-
d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
|
|
13840
|
-
fill: "#F6F6F6"
|
|
13841
|
-
}),
|
|
13842
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13843
|
-
x: "16",
|
|
13844
|
-
y: "12",
|
|
13845
|
-
width: "12",
|
|
13846
|
-
height: "2",
|
|
13847
|
-
rx: "1",
|
|
13848
|
-
fill: "#E7E7E7"
|
|
13849
|
-
}),
|
|
13850
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13851
|
-
x: "16",
|
|
13852
|
-
y: "16",
|
|
13853
|
-
width: "12",
|
|
13854
|
-
height: "2",
|
|
13855
|
-
rx: "1",
|
|
13856
|
-
fill: "#E7E7E7"
|
|
13857
|
-
}),
|
|
13858
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13859
|
-
x: "16",
|
|
13860
|
-
y: "20",
|
|
13861
|
-
width: "12",
|
|
13862
|
-
height: "2",
|
|
13863
|
-
rx: "1",
|
|
13864
|
-
fill: "#E7E7E7"
|
|
13865
|
-
}),
|
|
13866
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13867
|
-
x: "16",
|
|
13868
|
-
y: "24",
|
|
13869
|
-
width: "9",
|
|
13870
|
-
height: "2",
|
|
13871
|
-
rx: "1",
|
|
13872
|
-
fill: "#E7E7E7"
|
|
13873
|
-
}),
|
|
13874
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13875
|
-
x: "1",
|
|
13876
|
-
y: "7",
|
|
13877
|
-
width: "18",
|
|
13878
|
-
height: "18",
|
|
13879
|
-
rx: "2",
|
|
13880
|
-
fill: "url(#paint0_linear_9_1489)"
|
|
13881
|
-
}),
|
|
13882
|
-
/*#__PURE__*/ jsx("path", {
|
|
13883
|
-
d: "M5.83898 13.194H7.12898C7.09298 13.44 7.08098 13.662 7.08098 14.082V17.298C7.08098 17.688 7.09298 17.892 7.12898 18.186H5.83898C5.87498 17.934 5.88698 17.712 5.88698 17.298V16.134H3.86498V17.298C3.86498 17.688 3.87698 17.916 3.91298 18.186H2.62298C2.65898 17.94 2.67098 17.718 2.67098 17.298V14.082C2.67098 13.668 2.65898 13.452 2.62298 13.194H3.91298C3.87698 13.476 3.86498 13.71 3.86498 14.082V15.078H5.88698V14.082C5.88698 13.668 5.87498 13.428 5.83898 13.194ZM7.93284 17.328V14.058C7.93284 13.65 7.92084 13.452 7.87884 13.176C8.11884 13.188 8.26884 13.194 8.76684 13.194H10.0208C10.7588 13.194 11.3528 13.398 11.7548 13.788C12.1928 14.22 12.4148 14.85 12.4148 15.648C12.4148 16.47 12.1748 17.13 11.7188 17.586C11.3168 17.982 10.7468 18.186 10.0328 18.186H8.76684C8.30484 18.186 8.13684 18.192 7.88484 18.204C7.92084 17.94 7.93284 17.742 7.93284 17.328ZM9.12084 17.136H9.92484C10.3148 17.136 10.5908 17.034 10.8068 16.818C11.0528 16.566 11.1848 16.164 11.1848 15.666C11.1848 15.156 11.0708 14.784 10.8368 14.55C10.6268 14.34 10.3388 14.244 9.90684 14.244H9.12084V17.136ZM15.0181 16.434L14.3701 17.448C14.2081 17.7 14.0821 17.91 13.9321 18.186H12.3421C12.6661 17.79 12.7861 17.634 12.9601 17.394L14.2801 15.54L13.1581 13.962C12.9721 13.692 12.7921 13.458 12.5701 13.194H14.1241C14.2201 13.416 14.3521 13.656 14.5681 13.986L15.0241 14.682L15.4741 13.98C15.7141 13.602 15.8161 13.422 15.9121 13.194H17.4541C17.2381 13.464 17.0941 13.65 16.8841 13.95L15.7561 15.534L17.0821 17.394C17.2741 17.664 17.4421 17.88 17.6941 18.186H16.1041C15.9901 17.97 15.8761 17.766 15.6721 17.448L15.0181 16.434Z",
|
|
13884
|
-
fill: "white"
|
|
13885
|
-
}),
|
|
13886
|
-
/*#__PURE__*/ jsx("defs", {
|
|
13887
|
-
children: /*#__PURE__*/ jsxs("linearGradient", {
|
|
13888
|
-
id: "paint0_linear_9_1489",
|
|
13889
|
-
x1: "10",
|
|
13890
|
-
y1: "7",
|
|
13891
|
-
x2: "10",
|
|
13892
|
-
y2: "25",
|
|
13893
|
-
gradientUnits: "userSpaceOnUse",
|
|
13894
|
-
children: [
|
|
13895
|
-
/*#__PURE__*/ jsx("stop", {
|
|
13896
|
-
"stop-color": "#B5B5B5"
|
|
13897
|
-
}),
|
|
13898
|
-
/*#__PURE__*/ jsx("stop", {
|
|
13899
|
-
offset: "1",
|
|
13900
|
-
"stop-color": "#434343"
|
|
13901
|
-
})
|
|
13902
|
-
]
|
|
13903
|
-
})
|
|
13904
|
-
})
|
|
13905
|
-
]
|
|
13906
|
-
})
|
|
13907
|
-
});
|
|
13908
|
-
var mdIcon = /*#__PURE__*/ jsx("i", {
|
|
13909
|
-
children: /*#__PURE__*/ jsxs("svg", {
|
|
13910
|
-
width: "1em",
|
|
13911
|
-
height: "1em",
|
|
13912
|
-
viewBox: "0 0 32 32",
|
|
13913
|
-
fill: "none",
|
|
13914
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13915
|
-
children: [
|
|
13916
|
-
/*#__PURE__*/ jsx("path", {
|
|
13917
|
-
d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
|
|
13918
|
-
fill: "#E1E1E1"
|
|
13919
|
-
}),
|
|
13920
|
-
/*#__PURE__*/ jsx("path", {
|
|
13921
|
-
d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
|
|
13922
|
-
fill: "#E0E0E0"
|
|
13923
|
-
}),
|
|
13924
|
-
/*#__PURE__*/ jsx("path", {
|
|
13925
|
-
d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
|
|
13926
|
-
fill: "#F6F6F6"
|
|
13927
|
-
}),
|
|
13928
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13929
|
-
x: "16",
|
|
13930
|
-
y: "12",
|
|
13931
|
-
width: "12",
|
|
13932
|
-
height: "2",
|
|
13933
|
-
rx: "1",
|
|
13934
|
-
fill: "#E7E7E7"
|
|
13935
|
-
}),
|
|
13936
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13937
|
-
x: "16",
|
|
13938
|
-
y: "16",
|
|
13939
|
-
width: "12",
|
|
13940
|
-
height: "2",
|
|
13941
|
-
rx: "1",
|
|
13942
|
-
fill: "#E7E7E7"
|
|
13943
|
-
}),
|
|
13944
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13945
|
-
x: "16",
|
|
13946
|
-
y: "20",
|
|
13947
|
-
width: "12",
|
|
13948
|
-
height: "2",
|
|
13949
|
-
rx: "1",
|
|
13950
|
-
fill: "#E7E7E7"
|
|
13951
|
-
}),
|
|
13952
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13953
|
-
x: "16",
|
|
13954
|
-
y: "24",
|
|
13955
|
-
width: "9",
|
|
13956
|
-
height: "2",
|
|
13957
|
-
rx: "1",
|
|
13958
|
-
fill: "#E7E7E7"
|
|
13959
|
-
}),
|
|
13960
|
-
/*#__PURE__*/ jsx("rect", {
|
|
13961
|
-
x: "1",
|
|
13962
|
-
y: "7",
|
|
13963
|
-
width: "18",
|
|
13964
|
-
height: "18",
|
|
13965
|
-
rx: "2",
|
|
13966
|
-
fill: "url(#paint0_linear_9_1426)"
|
|
13967
|
-
}),
|
|
13968
|
-
/*#__PURE__*/ jsx("path", {
|
|
13969
|
-
d: "M11.0301 21.372H8.94208C8.88208 20.952 8.75008 20.508 8.42608 19.596L7.32208 16.404C7.31008 16.344 6.95008 15.228 6.91408 15.132C6.78208 14.7 6.78208 14.7 6.72208 14.532C6.79408 15.288 6.84208 16.272 6.84208 16.908V19.512C6.84208 20.34 6.86608 20.868 6.93808 21.372H4.57408C4.64608 20.832 4.67008 20.328 4.67008 19.512V13.26C4.67008 12.54 4.63408 11.904 4.57408 11.388H7.74208C7.82608 11.904 7.92208 12.288 8.19808 13.08L9.99808 18.252L11.7861 13.08C12.0621 12.276 12.1581 11.892 12.2301 11.388H15.4101C15.3381 11.964 15.3141 12.456 15.3141 13.26V19.512C15.3141 20.424 15.3381 20.892 15.4101 21.372H13.0461C13.1181 20.82 13.1421 20.364 13.1421 19.512V16.896C13.1421 16.608 13.1781 15.708 13.2021 15.336C13.2381 14.7 13.2381 14.7 13.2501 14.52C12.9861 15.456 12.8661 15.888 12.7101 16.32L11.5461 19.608C11.2461 20.46 11.0901 20.988 11.0301 21.372Z",
|
|
13970
|
-
fill: "white"
|
|
13971
|
-
}),
|
|
13972
|
-
/*#__PURE__*/ jsx("path", {
|
|
13973
|
-
d: "M14.3008 23L12.1357 20.25L16.4658 20.25L14.3008 23Z",
|
|
13974
|
-
fill: "white"
|
|
13975
|
-
}),
|
|
13976
|
-
/*#__PURE__*/ jsx("defs", {
|
|
13977
|
-
children: /*#__PURE__*/ jsxs("linearGradient", {
|
|
13978
|
-
id: "paint0_linear_9_1426",
|
|
13979
|
-
x1: "10",
|
|
13980
|
-
y1: "7",
|
|
13981
|
-
x2: "10",
|
|
13982
|
-
y2: "25",
|
|
13983
|
-
gradientUnits: "userSpaceOnUse",
|
|
13984
|
-
children: [
|
|
13985
|
-
/*#__PURE__*/ jsx("stop", {
|
|
13986
|
-
"stop-color": "#B5B5B5"
|
|
13987
|
-
}),
|
|
13988
|
-
/*#__PURE__*/ jsx("stop", {
|
|
13989
|
-
offset: "1",
|
|
13990
|
-
"stop-color": "#434343"
|
|
13991
|
-
})
|
|
13992
|
-
]
|
|
13993
|
-
})
|
|
13994
|
-
})
|
|
13995
|
-
]
|
|
13996
|
-
})
|
|
13997
|
-
});
|
|
13998
|
-
// zip rar
|
|
13999
|
-
var zipIcon = /*#__PURE__*/ jsx("i", {
|
|
14000
|
-
children: /*#__PURE__*/ jsxs("svg", {
|
|
14001
|
-
width: "1em",
|
|
14002
|
-
height: "1em",
|
|
14003
|
-
viewBox: "0 0 32 32",
|
|
14004
|
-
fill: "none",
|
|
14005
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
14006
|
-
children: [
|
|
14007
|
-
/*#__PURE__*/ jsx("path", {
|
|
14008
|
-
d: "M20.775 1H7.73409C5.11934 1 3 3.11967 3 5.73409V26.2659C3 28.8807 5.11967 31 7.73409 31H23.9964C26.6112 31 28.7305 28.8803 28.7305 26.2659V8.95514C28.7305 7.88894 28.3071 6.86662 27.5531 6.11294L23.6172 2.17707C22.8634 1.42339 21.841 0.999991 20.775 1Z",
|
|
14009
|
-
fill: "#FFC757"
|
|
14010
|
-
}),
|
|
14011
|
-
/*#__PURE__*/ jsx("path", {
|
|
14012
|
-
d: "M8.88959 5.42124H11.2853C11.5486 5.42124 11.7623 5.20753 11.7623 4.94425V2.54856C11.7623 2.28494 11.5486 2.07157 11.2853 2.07157H8.88959C8.62631 2.07157 8.4126 2.28528 8.4126 2.54856V4.94425C8.4126 5.20753 8.62631 5.42124 8.88959 5.42124ZM14.6349 5.42124H12.2393C11.976 5.42124 11.7623 5.63495 11.7623 5.89824V8.29392C11.7623 8.55754 11.976 8.77091 12.2393 8.77091H14.6349C14.8982 8.77091 15.1119 8.55721 15.1119 8.29392V5.89824C15.1119 5.63495 14.8982 5.42124 14.6349 5.42124ZM8.88959 12.1206H11.2853C11.5486 12.1206 11.7623 11.9069 11.7623 11.6436V9.24791C11.7623 8.98429 11.5486 8.77091 11.2853 8.77091H8.88959C8.62631 8.77091 8.4126 8.98462 8.4126 9.24791V11.6436C8.4126 11.9069 8.62631 12.1206 8.88959 12.1206ZM14.6349 12.1206H12.2393C11.976 12.1206 11.7623 12.3343 11.7623 12.5976V14.9933C11.7623 15.2569 11.976 15.4703 12.2393 15.4703H14.6349C14.8982 15.4703 15.1119 15.2565 15.1119 14.9933V12.5976C15.1119 12.3343 14.8982 12.1206 14.6349 12.1206ZM13.9409 17.3196H9.44798C8.87619 17.3196 8.4126 17.7832 8.4126 18.355V23.5631C8.4126 24.1349 8.87619 24.5985 9.44798 24.5985H13.9409C14.5127 24.5985 14.9763 24.1349 14.9763 23.5631V18.355C14.9763 17.7832 14.5127 17.3196 13.9409 17.3196ZM13.7758 22.8328C13.7758 23.2924 13.4033 23.6649 12.9437 23.6649H10.4448C9.98527 23.6649 9.61279 23.2924 9.61279 22.8328V21.9164C9.61279 21.4568 9.98527 21.0843 10.4448 21.0843H12.9437C13.4033 21.0843 13.7758 21.4568 13.7758 21.9164V22.8328ZM27.5546 6.11261L23.6188 2.17675C23.0541 1.61209 22.334 1.22843 21.5503 1.07471V5.49225C21.5503 6.89476 22.6872 8.03164 24.0897 8.03164H28.6242C28.4528 7.30507 28.0824 6.64058 27.5546 6.11261Z",
|
|
14013
|
-
fill: "#F79F2B"
|
|
14014
|
-
}),
|
|
14015
|
-
/*#__PURE__*/ jsx("path", {
|
|
14016
|
-
d: "M8.88959 5.01935H11.2853C11.5486 5.01935 11.7623 4.80564 11.7623 4.54236V2.14667C11.7623 1.88305 11.5486 1.66968 11.2853 1.66968H8.88959C8.62631 1.66968 8.4126 1.88339 8.4126 2.14667V4.54236C8.4126 4.80564 8.62631 5.01935 8.88959 5.01935ZM14.6349 5.01935H12.2393C11.976 5.01935 11.7623 5.23306 11.7623 5.49634V7.89203C11.7623 8.15565 11.976 8.36902 12.2393 8.36902H14.6349C14.8982 8.36902 15.1119 8.15531 15.1119 7.89203V5.49634C15.1119 5.23306 14.8982 5.01935 14.6349 5.01935ZM8.88959 11.7187H11.2853C11.5486 11.7187 11.7623 11.505 11.7623 11.2417V8.84602C11.7623 8.5824 11.5486 8.36902 11.2853 8.36902H8.88959C8.62631 8.36902 8.4126 8.58273 8.4126 8.84602V11.2417C8.4126 11.505 8.62631 11.7187 8.88959 11.7187ZM14.6349 11.7187H12.2393C11.976 11.7187 11.7623 11.9324 11.7623 12.1957V14.5914C11.7623 14.855 11.976 15.0684 12.2393 15.0684H14.6349C14.8982 15.0684 15.1119 14.8547 15.1119 14.5914V12.1957C15.1119 11.9324 14.8982 11.7187 14.6349 11.7187ZM13.9409 16.9177H9.44798C8.87619 16.9177 8.4126 17.3813 8.4126 17.9531V23.1612C8.4126 23.733 8.87619 24.1966 9.44798 24.1966H13.9409C14.5127 24.1966 14.9763 23.733 14.9763 23.1612V17.9531C14.9763 17.3813 14.5127 16.9177 13.9409 16.9177ZM13.7758 22.4309C13.7758 22.8905 13.4033 23.263 12.9437 23.263H10.4448C9.98527 23.263 9.61279 22.8905 9.61279 22.4309V21.5145C9.61279 21.0549 9.98527 20.6824 10.4448 20.6824H12.9437C13.4033 20.6824 13.7758 21.0549 13.7758 21.5145V22.4309Z",
|
|
14017
|
-
fill: "white"
|
|
14018
|
-
})
|
|
14019
|
-
]
|
|
14020
|
-
})
|
|
14021
|
-
});
|
|
14022
|
-
// 图片
|
|
14023
|
-
var imageIcon = /*#__PURE__*/ jsx("i", {
|
|
14024
|
-
children: /*#__PURE__*/ jsxs("svg", {
|
|
14025
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
14026
|
-
width: "1em",
|
|
14027
|
-
height: "1em",
|
|
14028
|
-
viewBox: "0 0 32 32",
|
|
14029
|
-
fill: "none",
|
|
14030
|
-
children: [
|
|
14031
|
-
/*#__PURE__*/ jsx("path", {
|
|
14032
|
-
d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
|
|
14033
|
-
fill: "#E1E1E1"
|
|
14034
|
-
}),
|
|
14035
|
-
/*#__PURE__*/ jsx("path", {
|
|
14036
|
-
d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
|
|
14037
|
-
fill: "#E0E0E0"
|
|
14038
|
-
}),
|
|
14039
|
-
/*#__PURE__*/ jsx("path", {
|
|
14040
|
-
d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
|
|
14041
|
-
fill: "white"
|
|
14042
|
-
}),
|
|
14043
|
-
/*#__PURE__*/ jsx("rect", {
|
|
14044
|
-
x: "16",
|
|
14045
|
-
y: "12",
|
|
14046
|
-
width: "12",
|
|
14047
|
-
height: "2",
|
|
14048
|
-
rx: "1",
|
|
14049
|
-
fill: "#E7E7E7"
|
|
14050
|
-
}),
|
|
14051
|
-
/*#__PURE__*/ jsx("rect", {
|
|
14052
|
-
x: "16",
|
|
14053
|
-
y: "16",
|
|
14054
|
-
width: "12",
|
|
14055
|
-
height: "2",
|
|
14056
|
-
rx: "1",
|
|
14057
|
-
fill: "#E7E7E7"
|
|
14058
|
-
}),
|
|
14059
|
-
/*#__PURE__*/ jsx("rect", {
|
|
14060
|
-
x: "16",
|
|
14061
|
-
y: "20",
|
|
14062
|
-
width: "12",
|
|
14063
|
-
height: "2",
|
|
14064
|
-
rx: "1",
|
|
14065
|
-
fill: "#E7E7E7"
|
|
14066
|
-
}),
|
|
14067
|
-
/*#__PURE__*/ jsx("rect", {
|
|
14068
|
-
x: "16",
|
|
14069
|
-
y: "24",
|
|
14070
|
-
width: "9",
|
|
14071
|
-
height: "2",
|
|
14072
|
-
rx: "1",
|
|
14073
|
-
fill: "#E7E7E7"
|
|
14074
|
-
}),
|
|
14075
|
-
/*#__PURE__*/ jsx("path", {
|
|
14076
|
-
d: "M3.25 7H16.75C17.9927 7 19 8.00738 19 9.25V22.75C19 23.9927 17.9927 25 16.75 25H3.25C2.00738 25 1 23.9927 1 22.75V9.25C1 8.00738 2.00738 7 3.25 7Z",
|
|
14077
|
-
fill: "#DFECFD"
|
|
14078
|
-
}),
|
|
14079
|
-
/*#__PURE__*/ jsx("path", {
|
|
14080
|
-
d: "M4.1885 12.2232C4.1885 12.5642 4.32115 12.8912 4.55726 13.1324C4.79337 13.3735 5.1136 13.5089 5.44751 13.5089C5.78142 13.5089 6.10166 13.3735 6.33776 13.1324C6.57387 12.8912 6.70652 12.5642 6.70652 12.2232C6.70652 11.8822 6.57387 11.5552 6.33776 11.3141C6.10166 11.073 5.78142 10.9375 5.44751 10.9375C5.1136 10.9375 4.79337 11.073 4.55726 11.3141C4.32115 11.5552 4.1885 11.8822 4.1885 12.2232ZM5.04599 18.649C5.19115 18.3929 5.51204 18.3055 5.76279 18.4537C5.84215 18.5006 5.90808 18.568 5.954 18.649L7.92933 22.1334C8.07448 22.3894 7.98887 22.7172 7.73812 22.8654C7.65827 22.9126 7.56763 22.9375 7.47535 22.9375H3.52453C3.23486 22.9375 2.99995 22.6976 3 22.4018C3 22.3075 3.02434 22.215 3.07056 22.1334L5.04599 18.649Z",
|
|
14081
|
-
fill: "#4988FD"
|
|
14082
|
-
}),
|
|
14083
|
-
/*#__PURE__*/ jsx("path", {
|
|
14084
|
-
d: "M11.4951 15.2027C11.6571 14.9482 12.0146 14.8618 12.2935 15.0098C12.3811 15.0563 12.4539 15.1228 12.5048 15.2027L16.9208 22.1367C17.0829 22.3912 16.9883 22.7174 16.7094 22.8653C16.6203 22.9126 16.5191 22.9375 16.416 22.9375H7.58396C7.26144 22.9375 7 22.6989 7 22.4045C7 22.3105 7.02728 22.2181 7.07907 22.1367L11.4951 15.2027Z",
|
|
14085
|
-
fill: "#4988FD"
|
|
14086
|
-
})
|
|
14087
|
-
]
|
|
14088
|
-
})
|
|
14089
|
-
});
|
|
14090
|
-
var fileIconRender = function(suffix1, customRender) {
|
|
14091
|
-
// 存在自定义渲染 且配置啦返回的node 则返回
|
|
14092
|
-
if (customRender) {
|
|
14093
|
-
var node = customRender(suffix1);
|
|
14094
|
-
if (node) return node;
|
|
14095
|
-
}
|
|
14096
|
-
switch(suffix1){
|
|
14097
|
-
case "pdf":
|
|
14098
|
-
return pdfIcon;
|
|
14099
|
-
case "ppt":
|
|
14100
|
-
return pptIcon;
|
|
14101
|
-
case "pptx":
|
|
14102
|
-
return pptIcon;
|
|
14103
|
-
case "doc":
|
|
14104
|
-
return wordIcon;
|
|
14105
|
-
case "docx":
|
|
14106
|
-
return wordIcon;
|
|
14107
|
-
case "xls":
|
|
14108
|
-
return excelIcon;
|
|
14109
|
-
case "xlsx":
|
|
14110
|
-
return excelIcon;
|
|
14111
|
-
case "txt":
|
|
14112
|
-
return txtIcon;
|
|
14113
|
-
case "text":
|
|
14114
|
-
return txtIcon;
|
|
14115
|
-
case "png":
|
|
14116
|
-
return imageIcon;
|
|
14117
|
-
case "jpg":
|
|
14118
|
-
return imageIcon;
|
|
14119
|
-
case "jpeg":
|
|
14120
|
-
return imageIcon;
|
|
14121
|
-
case "gif":
|
|
14122
|
-
return imageIcon;
|
|
14123
|
-
case "webp":
|
|
14124
|
-
return imageIcon;
|
|
14125
|
-
case "zip":
|
|
14126
|
-
return zipIcon;
|
|
14127
|
-
case "rar":
|
|
14128
|
-
return zipIcon;
|
|
14129
|
-
case "chm":
|
|
14130
|
-
return chmIcon;
|
|
14131
|
-
case "hdx":
|
|
14132
|
-
return hdxIcon;
|
|
14133
|
-
case "md":
|
|
14134
|
-
return mdIcon;
|
|
14135
|
-
default:
|
|
14136
|
-
return chmIcon;
|
|
14137
|
-
}
|
|
14138
|
-
};
|
|
14139
|
-
var statusRender = function(status, customRender) {
|
|
14140
|
-
// 存在自定义渲染 且配置啦返回的node 则返回
|
|
14141
|
-
if (customRender) {
|
|
14142
|
-
var node = customRender(suffix);
|
|
14143
|
-
if (node) return node;
|
|
14144
|
-
}
|
|
14145
|
-
switch(status){
|
|
14146
|
-
case "waiting":
|
|
14147
|
-
return /*#__PURE__*/ jsx("span", {
|
|
14148
|
-
style: {
|
|
14149
|
-
color: "rgba(0, 0, 0, 0.25)",
|
|
14150
|
-
fontSize: "12px"
|
|
14151
|
-
},
|
|
14152
|
-
children: "等待上传"
|
|
14153
|
-
});
|
|
14154
|
-
case "uploading":
|
|
14155
|
-
return /*#__PURE__*/ jsx("span", {
|
|
14156
|
-
style: {
|
|
14157
|
-
color: "rgba(0, 0, 0, 0.25)",
|
|
14158
|
-
fontSize: "12px"
|
|
14159
|
-
},
|
|
14160
|
-
children: "上传中..."
|
|
14161
|
-
});
|
|
14162
|
-
case "uploadError":
|
|
14163
|
-
return /*#__PURE__*/ jsxs("span", {
|
|
14164
|
-
style: {
|
|
14165
|
-
color: "#F4523B",
|
|
14166
|
-
fontSize: "12px"
|
|
14167
|
-
},
|
|
14168
|
-
children: [
|
|
14169
|
-
"上传失败,",
|
|
14170
|
-
/*#__PURE__*/ jsx("span", {
|
|
14171
|
-
style: {
|
|
14172
|
-
"text-decoration-line": "underline"
|
|
14173
|
-
},
|
|
14174
|
-
children: "重试"
|
|
14175
|
-
})
|
|
14176
|
-
]
|
|
14177
|
-
});
|
|
14178
|
-
case "waitParse":
|
|
14179
|
-
return /*#__PURE__*/ jsx("span", {
|
|
14180
|
-
style: {
|
|
14181
|
-
color: "rgba(0, 0, 0, 0.25)",
|
|
14182
|
-
fontSize: "12px"
|
|
14183
|
-
},
|
|
14184
|
-
children: "等待解析"
|
|
14185
|
-
});
|
|
14186
|
-
case "parsing":
|
|
14187
|
-
return /*#__PURE__*/ jsx("span", {
|
|
14188
|
-
style: {
|
|
14189
|
-
color: "rgba(0, 0, 0, 0.25)",
|
|
14190
|
-
fontSize: "12px"
|
|
14191
|
-
},
|
|
14192
|
-
children: "解析中..."
|
|
14193
|
-
});
|
|
14194
|
-
case "parsingError":
|
|
14195
|
-
return /*#__PURE__*/ jsxs("span", {
|
|
14196
|
-
style: {
|
|
14197
|
-
color: "#F4523B",
|
|
14198
|
-
fontSize: "12px"
|
|
14199
|
-
},
|
|
14200
|
-
children: [
|
|
14201
|
-
"上传失败,",
|
|
14202
|
-
/*#__PURE__*/ jsx("span", {
|
|
14203
|
-
style: {
|
|
14204
|
-
"text-decoration-line": "underline"
|
|
14205
|
-
},
|
|
14206
|
-
children: "重试"
|
|
14207
|
-
})
|
|
14208
|
-
]
|
|
14209
|
-
});
|
|
14210
|
-
default:
|
|
14211
|
-
return null;
|
|
14212
|
-
}
|
|
14213
|
-
};
|
|
14214
|
-
|
|
14215
|
-
var Header = function(param) {
|
|
14216
|
-
var context = param.context;
|
|
14217
|
-
var prefix = context.prefix, loading = context.loading;
|
|
14218
|
-
if (!loading) return null;
|
|
14219
|
-
var getCls = function(clsName) {
|
|
14220
|
-
return modules_63b47c51$9[clsName] + " " + prefix + "-" + clsName;
|
|
14221
|
-
};
|
|
14222
|
-
return /*#__PURE__*/ jsx("div", {
|
|
14223
|
-
className: "".concat(getCls("loadingIcon")),
|
|
14224
|
-
children: /*#__PURE__*/ jsx("img", {
|
|
14225
|
-
src: loading2Gif,
|
|
14226
|
-
alt: ""
|
|
14227
|
-
})
|
|
14228
|
-
});
|
|
14229
|
-
};
|
|
14230
|
-
var remarkable = new Remarkable({
|
|
14231
|
-
highlight: function highlight(str, lang) {
|
|
14232
|
-
if (lang && HighlightJS.getLanguage(lang)) {
|
|
14233
|
-
try {
|
|
14234
|
-
return HighlightJS.highlight(lang, str).value;
|
|
14235
|
-
} catch (err) {}
|
|
14236
|
-
}
|
|
14237
|
-
try {
|
|
14238
|
-
return HighlightJS.highlightAuto(str).value;
|
|
14239
|
-
} catch (err) {}
|
|
14240
|
-
return ""; // use external default escaping
|
|
14241
|
-
}
|
|
14242
|
-
});
|
|
14243
|
-
var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
14244
|
-
var prefix = props.prefix, contentConfig = props.contentConfig, apiRef = props.apiRef;
|
|
14245
|
-
var getList = contentConfig.getList, coverRenderText = contentConfig.coverRenderText, _contentConfig_msgAction = contentConfig.msgAction, msgAction = _contentConfig_msgAction === void 0 ? [
|
|
14246
|
-
"copy",
|
|
14247
|
-
"reference"
|
|
14248
|
-
] : _contentConfig_msgAction, coverRenderReferences = contentConfig.coverRenderReferences, _contentConfig_onRecordMessage = contentConfig.onRecordMessage, onRecordMessage = _contentConfig_onRecordMessage === void 0 ? function() {} : _contentConfig_onRecordMessage, _contentConfig_onVoteChange = contentConfig.onVoteChange, onVoteChange = _contentConfig_onVoteChange === void 0 ? function() {} : _contentConfig_onVoteChange, _contentConfig_onRefresh = contentConfig.onRefresh, onRefresh = _contentConfig_onRefresh === void 0 ? function() {} : _contentConfig_onRefresh, helloMsg = contentConfig.helloMsg, _contentConfig_fileCustomRender = contentConfig.fileCustomRender, fileCustomRender = _contentConfig_fileCustomRender === void 0 ? {} : _contentConfig_fileCustomRender;
|
|
14249
|
-
var loadMoreProps = contentConfig.loadMore || true;
|
|
14250
|
-
var virtuosoRef = useRef(null);
|
|
14251
|
-
var _useState = _sliced_to_array(useState(false), 2), loading = _useState[0], setLoading = _useState[1]; // 是否加载中
|
|
14252
|
-
var _useState1 = _sliced_to_array(useState([]), 2), dataSource = _useState1[0], setDataSource = _useState1[1];
|
|
14253
|
-
var _useState2 = _sliced_to_array(useState(0), 2), firstItemIndex = _useState2[0], setFirstItemIndex = _useState2[1];
|
|
14254
|
-
var _useState3 = _sliced_to_array(useState(1), 2), page = _useState3[0], setPage = _useState3[1];
|
|
14255
|
-
var _useState4 = _sliced_to_array(useState(""), 2), sendingId = _useState4[0], setSendingId = _useState4[1];
|
|
14256
|
-
var _useState5 = _sliced_to_array(useState(contentConfig.pageSize || 30), 2), pageSize = _useState5[0], setPageSize = _useState5[1];
|
|
14257
|
-
var _useState6 = _sliced_to_array(useState(0), 2), total = _useState6[0], setTotal = _useState6[1];
|
|
14258
|
-
var timerRef = useRef({
|
|
14259
|
-
loadMore: null,
|
|
14260
|
-
scrollTimer: null
|
|
14261
|
-
});
|
|
14262
|
-
var wrapperRef = useRef(null);
|
|
14263
|
-
var recordRef = useRef({
|
|
14264
|
-
page: page,
|
|
14265
|
-
pageSize: pageSize,
|
|
14266
|
-
total: total,
|
|
14267
|
-
dataSource: dataSource,
|
|
14268
|
-
maxPage: Math.ceil(total / pageSize),
|
|
14269
|
-
sendingId: ""
|
|
14270
|
-
});
|
|
14271
|
-
var timeRenderCache = useRef(new Map()).current;
|
|
14272
|
-
useRef(new Map()).current;
|
|
14273
|
-
useImperativeHandle(ref, function() {
|
|
14274
|
-
return {
|
|
14275
|
-
addMsg: addMsg,
|
|
14276
|
-
updateMsg: function(id, obj) {
|
|
14277
|
-
setDataSource(function(data) {
|
|
14278
|
-
return data.map(function(item) {
|
|
14279
|
-
if (item.id === id) {
|
|
14280
|
-
return _object_spread({}, item, obj);
|
|
14281
|
-
}
|
|
14282
|
-
return item;
|
|
14283
|
-
});
|
|
14284
|
-
});
|
|
14285
|
-
},
|
|
14286
|
-
clearInputing: function() {
|
|
14287
|
-
setDataSource(function(data) {
|
|
14288
|
-
return data.filter(function(item) {
|
|
14289
|
-
return item.id !== "inputing";
|
|
14290
|
-
});
|
|
14291
|
-
});
|
|
14292
|
-
},
|
|
14293
|
-
recordMsg: function(msg) {
|
|
14294
|
-
onRecordMessage(msg);
|
|
14295
|
-
},
|
|
14296
|
-
getDataSource: function() {
|
|
14297
|
-
return recordRef.current.dataSource;
|
|
14298
|
-
},
|
|
14299
|
-
upateDataSource: function(id, obj) {
|
|
14300
|
-
setDataSource(function(list) {
|
|
14301
|
-
return list.map(function(item) {
|
|
14302
|
-
if (item.id === id) {
|
|
14303
|
-
return _object_spread({}, item, obj);
|
|
14304
|
-
}
|
|
14305
|
-
return item;
|
|
14306
|
-
});
|
|
14307
|
-
});
|
|
14308
|
-
},
|
|
14309
|
-
changeDataSource: function(data) {
|
|
14310
|
-
setDataSource(data);
|
|
14311
|
-
},
|
|
14312
|
-
scrollToBottom: scrollToBottom,
|
|
14313
|
-
setSendingId: function(id) {
|
|
14314
|
-
setSendingId(id);
|
|
14315
|
-
}
|
|
14316
|
-
};
|
|
14317
|
-
});
|
|
14318
|
-
useEffect(function() {
|
|
14319
|
-
getData(page, pageSize).then(function() {
|
|
14320
|
-
if (helloMsg) {
|
|
14321
|
-
addMsg({
|
|
14322
|
-
id: "helloMsg",
|
|
14323
|
-
createTime: new Date().getTime(),
|
|
14324
|
-
content: helloMsg,
|
|
14325
|
-
location: "left",
|
|
14326
|
-
reference: null,
|
|
14327
|
-
source: null,
|
|
14328
|
-
fileList: []
|
|
14329
|
-
});
|
|
14330
|
-
}
|
|
14331
|
-
});
|
|
14332
|
-
var removeFn = delegate$1(wrapperRef.current, "click", ".".concat(modules_63b47c51$9.copyCode), function(event, target) {
|
|
14333
|
-
findCopyContent(event);
|
|
14334
|
-
});
|
|
14335
|
-
return function() {
|
|
14336
|
-
removeFn();
|
|
14337
|
-
clearTimeout(timerRef.current.loadMore);
|
|
14338
|
-
clearTimeout(timerRef.current.scrollTimer);
|
|
14339
|
-
};
|
|
14340
|
-
}, []);
|
|
14341
|
-
useEffect(function() {
|
|
14342
|
-
if (!virtuosoRef.current) return;
|
|
14343
|
-
// virtuosoRef.current.scrollToIndex({
|
|
14344
|
-
// index: "LAST", // 或者使用 dataSource.length - 1
|
|
14345
|
-
// behavior: "auto", // 可以是 "smooth" 实现平滑滚动
|
|
14346
|
-
// });
|
|
14347
|
-
// clearTimeout(timerRef.current.scrollTimer);
|
|
14348
|
-
// timerRef.current.scrollTimer = setTimeout(() => {
|
|
14349
|
-
// virtuosoRef.current.scrollToIndex({
|
|
14350
|
-
// index: "LAST", // 或者使用 dataSource.length - 1
|
|
14351
|
-
// behavior: "auto", // 可以是 "smooth" 实现平滑滚动
|
|
14352
|
-
// align: "end",
|
|
14353
|
-
// });
|
|
14354
|
-
// }, 500);
|
|
14355
|
-
}, [
|
|
14356
|
-
dataSource
|
|
14357
|
-
]);
|
|
14358
|
-
useEffect(function() {
|
|
14359
|
-
recordRef.current.page = page;
|
|
14360
|
-
recordRef.current.pageSize = pageSize;
|
|
14361
|
-
recordRef.current.total = total;
|
|
14362
|
-
recordRef.current.dataSource = dataSource;
|
|
14363
|
-
recordRef.current.maxPage = Math.ceil(total / pageSize);
|
|
14364
|
-
recordRef.current.sendingId = sendingId;
|
|
14365
|
-
}, [
|
|
14366
|
-
page,
|
|
14367
|
-
pageSize,
|
|
14368
|
-
total,
|
|
14369
|
-
dataSource,
|
|
14370
|
-
sendingId
|
|
14371
|
-
]);
|
|
14372
|
-
var addMsg = function(msg) {
|
|
14373
|
-
if (msg.id !== "inputing" && msg.id !== "helloMsg") {
|
|
14374
|
-
// 不记录"正在输入..."的消息
|
|
14375
|
-
onRecordMessage(msg);
|
|
14376
|
-
}
|
|
14377
|
-
var list = [];
|
|
14378
|
-
if (msg.location === "right" && msg.fileList && msg.fileList.length > 0) {
|
|
14379
|
-
console.log("fileList", msg, msg.fileList);
|
|
14380
|
-
msg.fileList.map(function(item) {
|
|
14381
|
-
list.push({
|
|
14382
|
-
type: "file",
|
|
14383
|
-
id: item.fileId,
|
|
14384
|
-
createTime: msg.createTime,
|
|
14385
|
-
content: "",
|
|
14386
|
-
location: "right",
|
|
14387
|
-
reference: null,
|
|
14388
|
-
source: null,
|
|
14389
|
-
suffix: item.suffix,
|
|
14390
|
-
fileSize: item.size || 0,
|
|
14391
|
-
fileTitle: item.name
|
|
14392
|
-
});
|
|
14393
|
-
});
|
|
14394
|
-
}
|
|
14395
|
-
list.push(msg);
|
|
14396
|
-
setDataSource(function(data) {
|
|
14397
|
-
return _to_consumable_array(data).concat(_to_consumable_array(list));
|
|
14398
|
-
});
|
|
14399
|
-
timerRef.current.scrollTimer = setTimeout(function() {
|
|
14400
|
-
scrollToBottom();
|
|
14401
|
-
}, 100);
|
|
14402
|
-
};
|
|
14403
|
-
var scrollToBottom = function() {
|
|
14404
|
-
if (!virtuosoRef.current) return;
|
|
14405
|
-
virtuosoRef.current.scrollToIndex({
|
|
14406
|
-
index: "LAST",
|
|
14407
|
-
behavior: "auto"
|
|
14408
|
-
});
|
|
14409
|
-
};
|
|
14410
|
-
var getData = function(page, pageSize) {
|
|
14411
|
-
setLoading(true);
|
|
14412
|
-
return getList(page, pageSize).then(function(listObj) {
|
|
14413
|
-
setLoading(false);
|
|
14414
|
-
console.log("listObjlistObj", listObj);
|
|
14415
|
-
setDataSource(function(data) {
|
|
14416
|
-
return _to_consumable_array(data).concat(_to_consumable_array(listObj.dataSource));
|
|
14417
|
-
});
|
|
14418
|
-
setTotal(listObj.total);
|
|
14419
|
-
setPage(page);
|
|
14420
|
-
setPageSize(pageSize);
|
|
14421
|
-
setFirstItemIndex(listObj.total - pageSize * (page - 1));
|
|
14422
|
-
});
|
|
14423
|
-
};
|
|
14424
|
-
var getCls = function(clsName) {
|
|
14425
|
-
return modules_63b47c51$9[clsName] + " " + prefix + "-" + clsName;
|
|
14426
|
-
};
|
|
14427
|
-
var loadMore = useCallback(function() {
|
|
14428
|
-
if (!loadMoreProps) return;
|
|
14429
|
-
if (recordRef.current.page >= recordRef.current.maxPage) return;
|
|
14430
|
-
getData(page + 1, pageSize);
|
|
14431
|
-
}, [
|
|
14432
|
-
page,
|
|
14433
|
-
pageSize
|
|
14434
|
-
]);
|
|
14435
|
-
var itemContent = function(index, item) {
|
|
14436
|
-
var timeNode = renderTime(item);
|
|
14437
|
-
var contentNode = null;
|
|
14438
|
-
var html = markToHtml(item.content, item.id);
|
|
14439
|
-
contentNode = /*#__PURE__*/ jsx("div", {
|
|
14440
|
-
dangerouslySetInnerHTML: {
|
|
14441
|
-
__html: html
|
|
14442
|
-
}
|
|
14443
|
-
});
|
|
14444
|
-
if (coverRenderText) {
|
|
14445
|
-
contentNode = coverRenderText(item, html);
|
|
14446
|
-
}
|
|
14447
|
-
// item.type = "file";
|
|
14448
|
-
// item.suffix = "docx";
|
|
14449
|
-
// item.fileTitle = "这是一个文件名称.docx";
|
|
14450
|
-
// item.fileSize = "5Mb";
|
|
14451
|
-
if (item.type === "file") {
|
|
14452
|
-
var renderFileObj = _object_spread({
|
|
14453
|
-
fileTitleRender: function(item) {
|
|
14454
|
-
return /*#__PURE__*/ jsx(Fragment, {
|
|
14455
|
-
children: item.fileTitle
|
|
14456
|
-
});
|
|
14457
|
-
}
|
|
14458
|
-
}, fileCustomRender);
|
|
14459
|
-
if (renderFileObj.fileRender) {
|
|
14460
|
-
contentNode = renderFileObj.fileRender(item);
|
|
14461
|
-
} else {
|
|
14462
|
-
contentNode = /*#__PURE__*/ jsxs("div", {
|
|
14463
|
-
className: "".concat(getCls("msgItem-file")),
|
|
14464
|
-
children: [
|
|
14465
|
-
/*#__PURE__*/ jsx("div", {
|
|
14466
|
-
className: "".concat(getCls("msgItem-file-left")),
|
|
14467
|
-
children: fileIconRender(item.suffix, renderFileObj.iconFileRender)
|
|
14468
|
-
}),
|
|
14469
|
-
/*#__PURE__*/ jsx("div", {
|
|
14470
|
-
className: "".concat(getCls("msgItem-file-right")),
|
|
14471
|
-
children: /*#__PURE__*/ jsx("p", {
|
|
14472
|
-
children: renderFileObj.fileTitleRender(item)
|
|
14473
|
-
})
|
|
14474
|
-
})
|
|
14475
|
-
]
|
|
14476
|
-
});
|
|
14477
|
-
}
|
|
14478
|
-
}
|
|
14479
|
-
// 是否显示时间
|
|
14480
|
-
var itemNode = /*#__PURE__*/ jsx("div", {
|
|
14481
|
-
className: "".concat(getCls("msgItem"), " ").concat(item.location === "left" ? getCls("msgItem-left") : getCls("msgItem-right")),
|
|
14482
|
-
children: /*#__PURE__*/ jsxs("div", {
|
|
14483
|
-
className: "".concat(getCls("msgItem-box")),
|
|
14484
|
-
"data-id": item.id,
|
|
14485
|
-
onMouseEnter: function() {
|
|
14486
|
-
return onMouseEnter(item);
|
|
14487
|
-
},
|
|
14488
|
-
onMouseLeave: function() {
|
|
14489
|
-
return onMouseLeave(item);
|
|
14490
|
-
},
|
|
14491
|
-
children: [
|
|
14492
|
-
renderAction("floatTop", item),
|
|
14493
|
-
/*#__PURE__*/ jsxs("div", {
|
|
14494
|
-
className: "".concat(getCls("msgItem-content")),
|
|
14495
|
-
children: [
|
|
14496
|
-
/*#__PURE__*/ jsx("div", {
|
|
14497
|
-
className: "".concat(getCls("msgItem-text")),
|
|
14498
|
-
children: contentNode
|
|
14499
|
-
}),
|
|
14500
|
-
renderAction("bottom", item)
|
|
14501
|
-
]
|
|
14502
|
-
}),
|
|
14503
|
-
item.location === "left" && renderAction("floatBottom", item),
|
|
14504
|
-
renderReference(item)
|
|
14505
|
-
]
|
|
14506
|
-
})
|
|
14507
|
-
});
|
|
14508
|
-
return /*#__PURE__*/ jsxs(Fragment, {
|
|
14509
|
-
children: [
|
|
14510
|
-
timeNode,
|
|
14511
|
-
itemNode
|
|
14512
|
-
]
|
|
14513
|
-
});
|
|
14514
|
-
};
|
|
14515
|
-
var renderReference = function(item) {
|
|
14516
|
-
var reference = item.reference;
|
|
14517
|
-
if (!item.reference) return null;
|
|
14518
|
-
var referenceNode = null;
|
|
14519
|
-
if (reference.type === "text") {
|
|
14520
|
-
referenceNode = /*#__PURE__*/ jsx("div", {
|
|
14521
|
-
className: "".concat(getCls("msgItem-reference-text")),
|
|
14522
|
-
children: /*#__PURE__*/ jsx("div", {
|
|
14523
|
-
children: reference.value
|
|
14524
|
-
})
|
|
14525
|
-
});
|
|
14526
|
-
}
|
|
14527
|
-
if (reference.type === "file") {
|
|
14528
|
-
referenceNode = /*#__PURE__*/ jsx("div", {
|
|
14529
|
-
className: "".concat(getCls("msgItem-reference-file")),
|
|
14530
|
-
children: /*#__PURE__*/ jsxs("div", {
|
|
14531
|
-
className: "".concat(getCls("msgItem-reference-file-box")),
|
|
14532
|
-
children: [
|
|
14533
|
-
/*#__PURE__*/ jsx("div", {
|
|
14534
|
-
className: "".concat(getCls("msgItem-reference-file-left")),
|
|
14535
|
-
children: fileIconRender(reference.value.suffix, fileCustomRender.iconFileRender)
|
|
14536
|
-
}),
|
|
14537
|
-
/*#__PURE__*/ jsx("div", {
|
|
14538
|
-
className: "".concat(getCls("msgItem-reference-file-right")),
|
|
14539
|
-
children: reference.value.name
|
|
14540
|
-
})
|
|
14541
|
-
]
|
|
14542
|
-
})
|
|
14543
|
-
});
|
|
14544
|
-
}
|
|
14545
|
-
if (coverRenderReferences) {
|
|
14546
|
-
return coverRenderReferences(item, referenceNode);
|
|
14547
|
-
} else {
|
|
14548
|
-
return referenceNode;
|
|
14549
|
-
}
|
|
14550
|
-
};
|
|
14551
|
-
var onMouseEnter = function(item) {
|
|
14552
|
-
var dom = document.querySelector('[data-id="'.concat(item.id, '"]'));
|
|
14553
|
-
var container = wrapperRef.current;
|
|
14554
|
-
if (!dom) return;
|
|
14555
|
-
var topDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatTop"]);
|
|
14556
|
-
var bottomDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatBottom"]);
|
|
14557
|
-
if (!topDom || !bottomDom) return;
|
|
14558
|
-
console.log("itemitem", dom, container);
|
|
14559
|
-
var con_obj = container.getBoundingClientRect(); // 外层盒子
|
|
14560
|
-
var dom_obj = dom.getBoundingClientRect(); // 鼠标滑过元素
|
|
14561
|
-
var y = dom_obj.y - con_obj.y;
|
|
14562
|
-
if (y > 0) {
|
|
14563
|
-
// 元素tou在可视区域内
|
|
14564
|
-
// 判断底部是否在可视区域内
|
|
14565
|
-
if (y + dom_obj.height < con_obj.height) {
|
|
14566
|
-
// 底部在可视区域内
|
|
14567
|
-
// 显示在下边
|
|
14568
|
-
bottomDom.style.cssText = "display:flex";
|
|
14569
|
-
} else {
|
|
14570
|
-
// 显示在上
|
|
14571
|
-
topDom.style.cssText = "display:flex";
|
|
14572
|
-
}
|
|
14573
|
-
} else {
|
|
14574
|
-
console.log("yyyy", y, dom_obj, con_obj, y + dom_obj.height < con_obj.height);
|
|
14575
|
-
// 元素top不在可视区域内
|
|
14576
|
-
if (y + dom_obj.height < con_obj.height) {
|
|
14577
|
-
// 底部在可视区域内
|
|
14578
|
-
// 显示在下边
|
|
14579
|
-
bottomDom.style.cssText = "display:flex";
|
|
14580
|
-
} else {
|
|
14581
|
-
// 头部和底部都不在可视区域内 移动 topDom到可视区域
|
|
14582
|
-
topDom.style.cssText = "display:flex;top:".concat(-1 * y + 24, "px;bottom:auto;");
|
|
14583
|
-
}
|
|
14584
|
-
}
|
|
14585
|
-
};
|
|
14586
|
-
var onMouseLeave = function(item) {
|
|
14587
|
-
var dom = document.querySelector('[data-id="'.concat(item.id, '"]'));
|
|
14588
|
-
if (!dom) return;
|
|
14589
|
-
var topDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatTop"]);
|
|
14590
|
-
var bottomDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatBottom"]);
|
|
14591
|
-
if (!topDom || !bottomDom) return;
|
|
14592
|
-
bottomDom.style.cssText = "";
|
|
14593
|
-
topDom.style.cssText = "";
|
|
14594
|
-
};
|
|
14595
|
-
var renderAction = function(location, item) {
|
|
14596
|
-
if (item.id === "inputing" || item.id === "helloMsg" || item.id === recordRef.current.sendingId) return null;
|
|
14597
|
-
var copyNode = /*#__PURE__*/ jsx(CopyIcon$1, {
|
|
14598
|
-
prefix: prefix,
|
|
14599
|
-
content: item.content
|
|
14600
|
-
});
|
|
14601
|
-
var referencesNode = /*#__PURE__*/ jsx(ReferencesIcon$1, {
|
|
14602
|
-
prefix: prefix,
|
|
14603
|
-
apiRef: apiRef,
|
|
14604
|
-
item: item
|
|
14605
|
-
});
|
|
14606
|
-
var UpVoteNode = /*#__PURE__*/ jsx(UpVoteBtn, {
|
|
14607
|
-
prefix: prefix,
|
|
14608
|
-
isActive: item.vote === "up",
|
|
14609
|
-
clickFn: function() {
|
|
14610
|
-
onVoteChange(item.vote === "up" ? "" : "up", item);
|
|
14611
|
-
setDataSource(function(data) {
|
|
14612
|
-
return data.map(function(ite) {
|
|
14613
|
-
if (item.id === ite.id) {
|
|
14614
|
-
ite.vote = item.vote === "up" ? "" : "up";
|
|
14615
|
-
}
|
|
14616
|
-
return ite;
|
|
14617
|
-
});
|
|
14618
|
-
});
|
|
14619
|
-
}
|
|
14620
|
-
});
|
|
14621
|
-
var DownVoteNode = /*#__PURE__*/ jsx(DownVoteBtn, {
|
|
14622
|
-
prefix: prefix,
|
|
14623
|
-
isActive: item.vote === "down",
|
|
14624
|
-
clickFn: function() {
|
|
14625
|
-
onVoteChange(item.vote === "down" ? "" : "down", item);
|
|
14626
|
-
setDataSource(function(data) {
|
|
14627
|
-
return data.map(function(ite) {
|
|
14628
|
-
if (item.id === ite.id) {
|
|
14629
|
-
ite.vote = ite.vote === "down" ? "" : "down";
|
|
14630
|
-
}
|
|
14631
|
-
return ite;
|
|
14632
|
-
});
|
|
14633
|
-
});
|
|
14634
|
-
}
|
|
14635
|
-
});
|
|
14636
|
-
var RefreshNode = /*#__PURE__*/ jsx(RefreshBtn$1, {
|
|
14637
|
-
prefix: prefix,
|
|
14638
|
-
clickFn: function() {
|
|
14639
|
-
return onRefresh(item);
|
|
14640
|
-
}
|
|
14641
|
-
});
|
|
14642
|
-
if (item.location === "right") {
|
|
14643
|
-
UpVoteNode = null;
|
|
14644
|
-
DownVoteNode = null;
|
|
14645
|
-
}
|
|
14646
|
-
if (item.type === "file") {
|
|
14647
|
-
copyNode = null;
|
|
14648
|
-
UpVoteNode = null;
|
|
14649
|
-
DownVoteNode = null;
|
|
14650
|
-
RefreshNode = null;
|
|
14651
|
-
}
|
|
14652
|
-
var leftNodes = null;
|
|
14653
|
-
var rightNodes = /*#__PURE__*/ jsxs(Fragment, {
|
|
14654
|
-
children: [
|
|
14655
|
-
copyNode,
|
|
14656
|
-
referencesNode,
|
|
14657
|
-
UpVoteNode,
|
|
14658
|
-
DownVoteNode
|
|
14659
|
-
]
|
|
14660
|
-
});
|
|
14661
|
-
if (msgAction instanceof Array) {
|
|
14662
|
-
if (msgAction.length == 0) return null;
|
|
14663
|
-
// 数组
|
|
14664
|
-
if (!msgAction.includes("copy")) {
|
|
14665
|
-
copyNode = null;
|
|
14666
|
-
}
|
|
14667
|
-
if (!msgAction.includes("reference")) {
|
|
14668
|
-
referencesNode = null;
|
|
14669
|
-
}
|
|
14670
|
-
if (!msgAction.includes("upVite")) {
|
|
14671
|
-
UpVoteNode = null;
|
|
14672
|
-
}
|
|
14673
|
-
if (!msgAction.includes("downVote")) {
|
|
14674
|
-
DownVoteNode = null;
|
|
14675
|
-
}
|
|
14676
|
-
if (!msgAction.includes("refresh")) {
|
|
14677
|
-
RefreshNode = null;
|
|
14678
|
-
}
|
|
14679
|
-
} else if (typeof msgAction === "object") {
|
|
14680
|
-
if (msgAction.renderLeft) {
|
|
14681
|
-
leftNodes = msgAction.renderLeft(copyNode, referencesNode, UpVoteNode, DownVoteNode, RefreshNode);
|
|
14682
|
-
}
|
|
14683
|
-
if (msgAction.renderRight) {
|
|
14684
|
-
rightNodes = msgAction.renderRight(copyNode, referencesNode, UpVoteNode, DownVoteNode, RefreshNode);
|
|
14685
|
-
}
|
|
14686
|
-
}
|
|
14687
|
-
var index = recordRef.current.dataSource.findIndex(function(ite) {
|
|
14688
|
-
return ite.id == item.id;
|
|
14689
|
-
});
|
|
14690
|
-
if (location === "bottom") {
|
|
14691
|
-
if (item.location === "left" && item.id !== "helloMsg" && item.id !== "inputing") {
|
|
14692
|
-
if (index === recordRef.current.dataSource.length - 1) {
|
|
14693
|
-
return /*#__PURE__*/ jsxs("div", {
|
|
14694
|
-
className: "".concat(getCls("msgItem-action")),
|
|
14695
|
-
children: [
|
|
14696
|
-
/*#__PURE__*/ jsx("div", {
|
|
14697
|
-
className: "".concat(getCls("msgItem-action-left")),
|
|
14698
|
-
children: leftNodes
|
|
14699
|
-
}),
|
|
14700
|
-
/*#__PURE__*/ jsxs("div", {
|
|
14701
|
-
className: "".concat(getCls("msgItem-action-right")),
|
|
14702
|
-
children: [
|
|
14703
|
-
RefreshNode,
|
|
14704
|
-
rightNodes
|
|
14705
|
-
]
|
|
14706
|
-
})
|
|
14707
|
-
]
|
|
14708
|
-
});
|
|
14709
|
-
}
|
|
14710
|
-
}
|
|
14711
|
-
// 只有最后一条才显示底部操作啦 且是左侧消息 且不是招呼语
|
|
14712
|
-
}
|
|
14713
|
-
if (location === "floatTop" || location === "floatBottom") {
|
|
14714
|
-
if (item.location === "left" && item.id !== "helloMsg" && item.id !== "inputing" && index === recordRef.current.dataSource.length - 1) return null;
|
|
14715
|
-
// 浮框
|
|
14716
|
-
return /*#__PURE__*/ jsx("div", {
|
|
14717
|
-
className: "".concat(getCls("msgItem-action-operate")),
|
|
14718
|
-
children: /*#__PURE__*/ jsxs("div", {
|
|
14719
|
-
className: "".concat(getCls("msgItem-action"), " ").concat(getCls("msgItem-action-popover"), " ").concat(getCls("msgItem-action-popover-" + location)),
|
|
14720
|
-
children: [
|
|
14721
|
-
/*#__PURE__*/ jsx("div", {
|
|
14722
|
-
className: "".concat(getCls("msgItem-action-left")),
|
|
14723
|
-
children: leftNodes
|
|
14724
|
-
}),
|
|
14725
|
-
/*#__PURE__*/ jsx("div", {
|
|
14726
|
-
className: "".concat(getCls("msgItem-action-right")),
|
|
14727
|
-
children: rightNodes
|
|
14728
|
-
})
|
|
14729
|
-
]
|
|
14730
|
-
})
|
|
14731
|
-
});
|
|
14732
|
-
}
|
|
14733
|
-
return null;
|
|
14734
|
-
};
|
|
14735
|
-
var markToHtml = function(markStr, id) {
|
|
14736
|
-
var html = remarkable.render(markStr);
|
|
14737
|
-
var position = 0;
|
|
14738
|
-
html = html.replace(new RegExp("<pre", "ig"), function() {
|
|
14739
|
-
position++;
|
|
14740
|
-
return "<p class='".concat(getCls("copyCode"), " ").concat(modules_63b47c51$9.copyCodeFun, "' data-id=").concat(id, " data-position=").concat(position, ">\n <span class='").concat(getCls("icon"), " ").concat(getCls("copy"), '\'>\n <svg\n width="1em"\n height="1em"\n viewBox="0 0 14 14"\n shape-rendering="geometricPrecision"\n fill="currentColor"\n xmlns="http://www.w3.org/2000/svg"\n >\n <g clip-path="url(#clip0_518_8403)">\n <path\n d="M6.16666 1.66666H13.1667C13.4761 1.66666 13.7728 1.78957 13.9916 2.00837C14.2104 2.22716 14.3333 2.5239 14.3333 2.83332V9.83332C14.3333 10.1427 14.2104 10.4395 13.9916 10.6583C13.7728 10.8771 13.4761 11 13.1667 11H6.16666C5.85724 11 5.5605 10.8771 5.34171 10.6583C5.12291 10.4395 5 10.1427 5 9.83332V2.83332C5 2.5239 5.12291 2.22716 5.34171 2.00837C5.5605 1.78957 5.85724 1.66666 6.16666 1.66666ZM6.16666 2.66666C6.12246 2.66666 6.08007 2.68422 6.04881 2.71547C6.01756 2.74673 6 2.78912 6 2.83332V9.83332C6 9.85521 6.00431 9.87688 6.01268 9.8971C6.02106 9.91732 6.03334 9.9357 6.04881 9.95117C6.06429 9.96665 6.08266 9.97893 6.10288 9.9873C6.1231 9.99568 6.14478 9.99999 6.16666 9.99999H13.1667C13.2109 9.99999 13.2533 9.98243 13.2845 9.95117C13.3158 9.91992 13.3333 9.87753 13.3333 9.83332V2.83332C13.3333 2.78912 13.3158 2.74673 13.2845 2.71547C13.2533 2.68422 13.2109 2.66666 13.1667 2.66666H6.16666ZM10 12C10 11.8674 10.0527 11.7402 10.1464 11.6464C10.2402 11.5527 10.3674 11.5 10.5 11.5C10.6326 11.5 10.7598 11.5527 10.8536 11.6464C10.9473 11.7402 11 11.8674 11 12V13.1667C11 13.4761 10.8771 13.7728 10.6583 13.9916C10.4395 14.2104 10.1427 14.3333 9.83333 14.3333H2.83333C2.52391 14.3333 2.22717 14.2104 2.00837 13.9916C1.78958 13.7728 1.66666 13.4761 1.66666 13.1667V6.16666C1.66666 5.85724 1.78958 5.56049 2.00837 5.3417C2.22717 5.12291 2.52391 4.99999 2.83333 4.99999H4C4.13261 4.99999 4.25978 5.05267 4.35355 5.14644C4.44732 5.2402 4.5 5.36738 4.5 5.49999C4.5 5.6326 4.44732 5.75978 4.35355 5.85354C4.25978 5.94731 4.13261 5.99999 4 5.99999H2.83333C2.78913 5.99999 2.74674 6.01755 2.71548 6.04881C2.68422 6.08006 2.66666 6.12245 2.66666 6.16666V13.1667C2.66666 13.2109 2.68422 13.2533 2.71548 13.2845C2.74674 13.3158 2.78913 13.3333 2.83333 13.3333H9.83333C9.87753 13.3333 9.91993 13.3158 9.95118 13.2845C9.98244 13.2533 10 13.2109 10 13.1667V12Z"\n />\n </g>\n <defs>\n <clipPath id="clip0_518_8403">\n <rect width="16" height="16" />\n </clipPath>\n </defs>\n </svg>\n </span>\n <span class=\'').concat(getCls("icon"), " ").concat(getCls("copy_success_flag"), '\'>\n <svg\n width="1em"\n height="1em"\n shape-rendering="geometricPrecision"\n fill="currentColor"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path d="M11.2242 0.375687C11.4586 0.610002 11.4586 0.989901 11.2242 1.22422L4.82424 7.62422C4.58992 7.85853 4.21003 7.85853 3.97571 7.62422L0.775712 4.42422C0.541397 4.1899 0.541397 3.81 0.775712 3.57569C1.01003 3.34137 1.38993 3.34137 1.62424 3.57569L4.39998 6.35142L10.3757 0.375687C10.61 0.141373 10.9899 0.141373 11.2242 0.375687Z" />\n </svg>\n </span><span class="').concat(getCls("copyCodeText"), '">复制代码</span></p><pre');
|
|
14741
|
-
});
|
|
14742
|
-
return html;
|
|
14743
|
-
};
|
|
14744
|
-
var renderTime = function(item) {
|
|
14745
|
-
// 生成缓存键
|
|
14746
|
-
var cacheKey = "".concat(item.id);
|
|
14747
|
-
// 检查缓存中是否已有结果
|
|
14748
|
-
if (timeRenderCache.has(cacheKey)) {
|
|
14749
|
-
return timeRenderCache.get(cacheKey);
|
|
14750
|
-
}
|
|
14751
|
-
var index = recordRef.current.dataSource.findIndex(function(i) {
|
|
14752
|
-
return i.id === item.id;
|
|
14753
|
-
});
|
|
14754
|
-
var timeObj = parseDate(item.createTime);
|
|
14755
|
-
var time = null;
|
|
14756
|
-
if (index === 0) {
|
|
14757
|
-
// 第一项 显示年月日 时分
|
|
14758
|
-
time = "".concat(timeObj.year, "-").concat(timeObj.month, "-").concat(timeObj.day, " ").concat(timeObj.hours, ":").concat(timeObj.minutes);
|
|
14759
|
-
} else {
|
|
14760
|
-
// 非第一项 与上一项进行对比
|
|
14761
|
-
var prevItem = recordRef.current.dataSource[index - 1];
|
|
14762
|
-
if (prevItem) {
|
|
14763
|
-
var beforeTime = prevItem.createTime;
|
|
14764
|
-
var beforeTimeObj = parseDate(beforeTime);
|
|
14765
|
-
// 判断与上一条数据 是否跨天
|
|
14766
|
-
if (timeObj.year !== beforeTimeObj.year || timeObj.month !== beforeTimeObj.month || timeObj.day !== beforeTimeObj.day) {
|
|
14767
|
-
// 显示 年月日 时分
|
|
14768
|
-
time = "".concat(timeObj.year, "-").concat(timeObj.month, "-").concat(timeObj.day, " ").concat(timeObj.hours, ":").concat(timeObj.minutes);
|
|
14769
|
-
} else {
|
|
14770
|
-
// 没有跨天 判断是否相隔超过10分钟
|
|
14771
|
-
if (timeObj.timestamp - beforeTimeObj.timestamp > 10 * 60 * 1000) {
|
|
14772
|
-
// 超过10分钟 显示 时分
|
|
14773
|
-
time = "".concat(timeObj.hours, ":").concat(timeObj.minutes);
|
|
14774
|
-
}
|
|
14775
|
-
}
|
|
14776
|
-
}
|
|
14777
|
-
}
|
|
14778
|
-
var result = time ? /*#__PURE__*/ jsx("div", {
|
|
14779
|
-
className: "".concat(getCls("msg-date")),
|
|
14780
|
-
children: time
|
|
14781
|
-
}) : null;
|
|
14782
|
-
// 将结果存入缓存
|
|
14783
|
-
timeRenderCache.set(cacheKey, result);
|
|
14784
|
-
return result;
|
|
14785
|
-
};
|
|
14786
|
-
var findCopyContent = function(e) {
|
|
14787
|
-
var source = findParent$1(e.target, modules_63b47c51$9.copyCode);
|
|
14788
|
-
if (!source) return;
|
|
14789
|
-
var id = source.getAttribute("data-id");
|
|
14790
|
-
var position = source.getAttribute("data-position");
|
|
14791
|
-
if (!id && !position) return;
|
|
14792
|
-
var message = "";
|
|
14793
|
-
recordRef.current.dataSource.forEach(function(item) {
|
|
14794
|
-
if (item.id === id) {
|
|
14795
|
-
message = item.content;
|
|
14796
|
-
}
|
|
14797
|
-
});
|
|
14798
|
-
if (!message) return;
|
|
14799
|
-
var codeConment = "";
|
|
14800
|
-
var i = 0;
|
|
14801
|
-
message.replaceAll(new RegExp(/```(?:.|\n)*?```/, "ig"), function(con) {
|
|
14802
|
-
i++;
|
|
14803
|
-
if (i == position) {
|
|
14804
|
-
// 异常标记
|
|
14805
|
-
con = con.replace(/^```[\s\S]*?\n/, "").replace(/\n```$/, "");
|
|
14806
|
-
codeConment = con;
|
|
14807
|
-
return con;
|
|
14808
|
-
} else {
|
|
14809
|
-
return null;
|
|
14810
|
-
}
|
|
14811
|
-
});
|
|
14812
|
-
resetStyles();
|
|
14813
|
-
source.classList.add(modules_63b47c51$9.copy_success);
|
|
14814
|
-
source.children[2].innerText = "复制成功";
|
|
14815
|
-
copyText$1(codeConment);
|
|
14816
|
-
setTimeout(function() {
|
|
14817
|
-
try {
|
|
14818
|
-
resetStyles();
|
|
14819
|
-
} catch (error) {}
|
|
14820
|
-
}, 3000);
|
|
14821
|
-
};
|
|
14822
|
-
//初始化样式
|
|
14823
|
-
var resetStyles = function() {
|
|
14824
|
-
var dom_list = document.getElementsByClassName(modules_63b47c51$9.copy_success);
|
|
14825
|
-
for(var i = 0; i < dom_list.length; i++){
|
|
14826
|
-
dom_list[i].classList.remove(modules_63b47c51$9.copy_success);
|
|
14827
|
-
}
|
|
14828
|
-
var dom_list2 = document.getElementsByClassName(modules_63b47c51$9.copyCodeFun);
|
|
14829
|
-
for(var i = 0; i < dom_list2.length; i++){
|
|
14830
|
-
var p = dom_list2[i].getElementsByClassName(modules_63b47c51$9.copyCodeText);
|
|
14831
|
-
p[0].innerText = "复制代码";
|
|
14832
|
-
}
|
|
14833
|
-
};
|
|
14834
|
-
var onScroll = function() {
|
|
14835
|
-
console.log("滚动滚动");
|
|
14836
|
-
};
|
|
14837
|
-
return /*#__PURE__*/ jsx("div", {
|
|
14838
|
-
className: "".concat(getCls("virtuosoList-wrapper")),
|
|
14839
|
-
ref: wrapperRef,
|
|
14840
|
-
children: /*#__PURE__*/ jsx(cn, {
|
|
14841
|
-
ref: virtuosoRef,
|
|
14842
|
-
style: {
|
|
14843
|
-
height: "100%"
|
|
14844
|
-
},
|
|
14845
|
-
data: dataSource,
|
|
14846
|
-
initialTopMostItemIndex: {
|
|
14847
|
-
index: "LAST",
|
|
14848
|
-
align: "end"
|
|
14849
|
-
},
|
|
14850
|
-
startReached: loadMore,
|
|
14851
|
-
firstItemIndex: firstItemIndex,
|
|
14852
|
-
context: {
|
|
14853
|
-
loading: loading,
|
|
14854
|
-
prefix: prefix
|
|
14855
|
-
},
|
|
14856
|
-
itemContent: itemContent,
|
|
14857
|
-
components: {
|
|
14858
|
-
Header: Header
|
|
14859
|
-
},
|
|
14860
|
-
increaseViewportBy: 200,
|
|
14861
|
-
overscan: 10,
|
|
14862
|
-
onScroll: onScroll
|
|
14863
|
-
})
|
|
14864
|
-
});
|
|
14865
|
-
});
|
|
14866
|
-
var VirtuosoList$1 = VirtuosoList;
|
|
14867
|
-
|
|
14868
|
-
var Content = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
14869
|
-
var prefix = props.prefix, contentConfig = props.contentConfig, apiRef = props.apiRef;
|
|
14870
|
-
var _contentConfig_className = contentConfig.className, className = _contentConfig_className === void 0 ? "" : _contentConfig_className;
|
|
14871
|
-
var listRef = useRef(null);
|
|
14872
|
-
useImperativeHandle(ref, function() {
|
|
14873
|
-
return _object_spread({}, listRef.current);
|
|
14874
|
-
});
|
|
14875
|
-
var getCls = function(clsName) {
|
|
14876
|
-
return modules_63b47c51$a[clsName] + " " + prefix + "-" + clsName;
|
|
14877
|
-
};
|
|
14878
|
-
return /*#__PURE__*/ jsx("div", {
|
|
14879
|
-
className: "".concat(getCls("content"), " ").concat(className),
|
|
14880
|
-
children: /*#__PURE__*/ jsx("div", {
|
|
14881
|
-
className: "".concat(getCls("contentList")),
|
|
14882
|
-
children: /*#__PURE__*/ jsx(VirtuosoList$1, {
|
|
14883
|
-
ref: listRef,
|
|
14884
|
-
prefix: prefix,
|
|
14885
|
-
contentConfig: contentConfig,
|
|
14886
|
-
apiRef: apiRef
|
|
14887
|
-
})
|
|
14888
|
-
})
|
|
14889
|
-
});
|
|
14890
|
-
});
|
|
14891
|
-
var Content$1 = Content;
|
|
14892
|
-
|
|
14893
|
-
var modules_63b47c51$4 = {"footer":"index_module_footer__2287d487","footerBody":"index_module_footerBody__2287d487","footerBodyWarn":"index_module_footerBodyWarn__2287d487","footerFile":"index_module_footerFile__2287d487","footerInput":"index_module_footerInput__2287d487","footerAction":"index_module_footerAction__2287d487","footerActionBtn":"index_module_footerActionBtn__2287d487"};
|
|
14894
|
-
|
|
14895
|
-
var modules_63b47c51$3 = {"sendBtnIcon":"index_module_sendBtnIcon__d770fbb6","disabled":"index_module_disabled__d770fbb6","sendingIcon":"index_module_sendingIcon__d770fbb6","popover":"index_module_popover__d770fbb6"};
|
|
14896
|
-
|
|
14897
|
-
var sendBtnSvg = /*#__PURE__*/ jsx("svg", {
|
|
14898
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
14899
|
-
width: "1em",
|
|
14900
|
-
height: "1em",
|
|
14901
|
-
viewBox: "0 0 24 24",
|
|
14902
|
-
fill: "currentColor",
|
|
14903
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
14904
|
-
d: "M20.3831 4.11378C20.0797 3.96207 19.7763 3.96207 19.6246 4.11378L4.45533 11.6984C4.15195 11.6984 4.00024 12.0018 4.00024 12.3052C4.00024 12.6085 4.15195 12.9119 4.30364 12.9119L7.94426 15.1874C8.24766 15.3391 8.55105 15.3391 8.85443 15.0357L16.8942 7.7544L17.1975 7.90609L9.91627 15.6425C9.76458 15.7941 9.76458 15.9458 9.76458 16.0975V19.4348C9.76458 19.7381 9.91627 20.0415 10.2197 20.1932C10.523 20.3449 10.8264 20.1932 10.9781 20.0415L12.7984 18.2212L16.4391 20.6483C16.5908 20.8 16.7425 20.8 16.8942 20.8H17.1975C17.5009 20.6483 17.6526 20.4966 17.6526 20.1932L20.6865 5.02393C20.6865 4.56885 20.6865 4.26547 20.3831 4.11378Z"
|
|
14905
|
-
})
|
|
14906
|
-
});
|
|
14907
|
-
var sendingSvg = /*#__PURE__*/ jsx("svg", {
|
|
14908
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
14909
|
-
width: "1em",
|
|
14910
|
-
height: "1em",
|
|
14911
|
-
viewBox: "0 0 16 16",
|
|
14912
|
-
fill: "currentColor",
|
|
14913
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
14914
|
-
d: "M8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0ZM8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1ZM9.5 5C9.89782 5 10.2792 5.15815 10.5605 5.43945C10.8419 5.72076 11 6.10218 11 6.5V9.5C11 9.89782 10.8419 10.2792 10.5605 10.5605C10.2792 10.8419 9.89782 11 9.5 11H6.5C6.10218 11 5.72076 10.8419 5.43945 10.5605C5.15815 10.2792 5 9.89782 5 9.5V6.5C5 6.10218 5.15815 5.72076 5.43945 5.43945C5.72076 5.15815 6.10218 5 6.5 5H9.5Z"
|
|
14915
|
-
})
|
|
14916
|
-
});
|
|
14917
|
-
var SendBtn$1 = function(props) {
|
|
14918
|
-
var prefix = props.prefix, canSendMsg = props.canSendMsg, sending = props.sending, stopMessage = props.stopMessage, _props_clickFn = props.clickFn, clickFn = _props_clickFn === void 0 ? function() {} : _props_clickFn;
|
|
14919
|
-
var getCls = function(clsName) {
|
|
14920
|
-
return modules_63b47c51$3[clsName] + " " + prefix + "-" + clsName;
|
|
14921
|
-
};
|
|
14922
|
-
if (sending) {
|
|
14923
|
-
return /*#__PURE__*/ jsx(Popover, {
|
|
14924
|
-
content: "停止生成",
|
|
14925
|
-
overlayClassName: modules_63b47c51$3.popover,
|
|
14926
|
-
children: /*#__PURE__*/ jsx("i", {
|
|
14927
|
-
className: "".concat(getCls("sendingIcon")),
|
|
14928
|
-
onClick: function() {
|
|
14929
|
-
return stopMessage();
|
|
14930
|
-
},
|
|
14931
|
-
children: sendingSvg
|
|
14932
|
-
})
|
|
14933
|
-
});
|
|
14934
|
-
}
|
|
14935
|
-
return /*#__PURE__*/ jsx("i", {
|
|
14936
|
-
className: "".concat(getCls("sendBtnIcon"), " ").concat(canSendMsg ? "" : getCls("disabled")),
|
|
14937
|
-
onClick: function() {
|
|
14938
|
-
if (canSendMsg) {
|
|
14939
|
-
clickFn();
|
|
14940
|
-
}
|
|
14941
|
-
},
|
|
14942
|
-
children: sendBtnSvg
|
|
14943
|
-
});
|
|
14944
|
-
};
|
|
14945
|
-
var SendBtn$2 = SendBtn$1;
|
|
14946
|
-
|
|
14947
|
-
var modules_63b47c51$2 = {"uploadFileBtn":"index_module_uploadFileBtn__e41600f2"};
|
|
14948
|
-
|
|
14949
|
-
var uplodaFileBtnSvg = /*#__PURE__*/ jsx("svg", {
|
|
14950
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
14951
|
-
width: "1em",
|
|
14952
|
-
height: "1em",
|
|
14953
|
-
viewBox: "0 0 24 24",
|
|
14954
|
-
fill: "curretnColor",
|
|
14955
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
14956
|
-
d: "M18.6853 7.62742C17.8428 6.79307 16.7044 6.32615 15.5187 6.3287H15.5067C14.9307 6.3287 14.3694 6.43537 13.8347 6.64871C13.2814 6.86872 12.7814 7.19407 12.3547 7.61542L8.1774 11.7449C7.93976 11.9789 7.75147 12.2582 7.62368 12.5663C7.49588 12.8743 7.43118 13.2049 7.4334 13.5384C7.43474 14.2157 7.70273 14.8531 8.18673 15.3318C8.67073 15.8118 9.31339 16.0745 9.99872 16.0758H10.0041C10.6867 16.0758 11.328 15.8145 11.808 15.3411L15.4747 11.7169C15.5343 11.6586 15.5818 11.5889 15.6141 11.512C15.6465 11.435 15.6632 11.3524 15.6632 11.2689C15.6632 11.1855 15.6465 11.1028 15.6141 11.0259C15.5818 10.949 15.5343 10.8793 15.4747 10.8209C15.3544 10.7019 15.1919 10.6351 15.0227 10.6351C14.8534 10.6351 14.691 10.7019 14.5707 10.8209L10.904 14.4437C10.7851 14.5612 10.6442 14.6541 10.4893 14.717C10.3344 14.78 10.1686 14.8117 10.0014 14.8104H10.0001C9.65919 14.8107 9.33196 14.6766 9.08939 14.4371C8.96981 14.3197 8.87485 14.1796 8.81006 14.0251C8.74527 13.8705 8.71195 13.7046 8.71206 13.537C8.71037 13.3709 8.7422 13.2062 8.80567 13.0527C8.86913 12.8992 8.96291 12.7601 9.08139 12.6437L13.2587 8.51146C13.8576 7.9204 14.6666 7.59138 15.508 7.59676H15.5173C16.3656 7.59544 17.1802 7.92894 17.784 8.5248C18.388 9.12216 18.7213 9.91686 18.7227 10.7636C18.7254 11.1781 18.6451 11.5889 18.4864 11.9718C18.3277 12.3548 18.0938 12.702 17.7987 12.993L13.3667 17.3799C12.4776 18.2529 11.2794 18.7389 10.0334 18.7319H10.0214C8.76654 18.7335 7.56186 18.2394 6.66941 17.3572C6.22896 16.9252 5.8792 16.4096 5.64062 15.8406C5.40205 15.2716 5.27948 14.6607 5.28009 14.0437C5.27585 13.4298 5.39486 12.8212 5.63007 12.2541C5.86528 11.6871 6.2119 11.1729 6.64941 10.7422L12.3734 5.08464C12.4332 5.02626 12.4808 4.95648 12.5133 4.87942C12.5458 4.80236 12.5625 4.71958 12.5625 4.63595C12.5625 4.55233 12.5458 4.46954 12.5133 4.39248C12.4808 4.31543 12.4332 4.24565 12.3734 4.18727C12.2529 4.06755 12.0901 4.00025 11.9203 4C11.7505 3.99975 11.5875 4.06658 11.4667 4.18593L5.74675 9.84486C5.18956 10.3931 4.74792 11.0476 4.44792 11.7694C4.14792 12.4913 3.99564 13.266 4.00009 14.0477C4.00143 14.8211 4.15076 15.5745 4.44542 16.2865C4.75105 17.0251 5.20126 17.6952 5.76956 18.2574C6.33787 18.8196 7.01282 19.2624 7.75473 19.56C8.47206 19.8493 9.23472 19.996 10.0174 20H10.0347C11.6174 20.0024 13.1375 19.3822 14.2667 18.2732L18.7 13.8904C19.1135 13.4806 19.4414 12.9926 19.6646 12.4549C19.8877 11.9172 20.0018 11.3404 20 10.7582C19.999 10.1753 19.8823 9.59842 19.6566 9.06098C19.4309 8.52354 19.1008 8.03627 18.6853 7.62742Z"
|
|
14957
|
-
})
|
|
14958
|
-
});
|
|
14959
|
-
var SendBtn = function(props) {
|
|
14960
|
-
var prefix = props.prefix, fileUpload = props.fileUpload, customRequest = props.customRequest;
|
|
14961
|
-
var uplodaProps = _object_spread({}, fileUpload);
|
|
14962
|
-
var getCls = function(clsName) {
|
|
14963
|
-
return modules_63b47c51$2[clsName] + " " + prefix + "-" + clsName;
|
|
14964
|
-
};
|
|
14965
|
-
return /*#__PURE__*/ jsx(Upload, {
|
|
14966
|
-
fileList: [],
|
|
14967
|
-
accept: uplodaProps.accept,
|
|
14968
|
-
customRequest: customRequest,
|
|
14969
|
-
multiple: !!uplodaProps.multiple,
|
|
14970
|
-
children: /*#__PURE__*/ jsx("i", {
|
|
14971
|
-
className: "".concat(getCls("uploadFileBtn")),
|
|
14972
|
-
children: uplodaFileBtnSvg
|
|
14973
|
-
})
|
|
14974
|
-
});
|
|
14975
|
-
};
|
|
14976
|
-
var UploadFileBtn = SendBtn;
|
|
14977
|
-
|
|
14978
|
-
var modules_63b47c51$1 = {"footer-fileList-wrapper":"index_module_footerFileListWrapper__e818c28d","footer-fileList-list":"index_module_footerFileListList__e818c28d","footer-fileList-listItem":"index_module_footerFileListListItem__e818c28d","footer-fileList-listItem-icon":"index_module_footerFileListListItemIcon__e818c28d","footer-fileList-listItem-text":"index_module_footerFileListListItemText__e818c28d","footer-fileList-listItem-status":"index_module_footerFileListListItemStatus__e818c28d","footer-fileList-listItem-delete":"index_module_footerFileListListItemDelete__e818c28d","footer-fileList-pre":"index_module_footerFileListPre__e818c28d","footer-fileList-next":"index_module_footerFileListNext__e818c28d"};
|
|
14979
|
-
|
|
14980
|
-
var guidGenerator = function() {
|
|
14981
|
-
var d = new Date().getTime();
|
|
14982
|
-
var uuid = "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g, function(c) {
|
|
14983
|
-
var r = (d + Math.random() * 16) % 16 | 0;
|
|
14984
|
-
d = Math.floor(d / 16);
|
|
14985
|
-
return (c == "x" ? r : r & 3 | 8).toString(16);
|
|
14986
|
-
});
|
|
14987
|
-
return uuid;
|
|
14988
|
-
};
|
|
14989
|
-
|
|
14990
|
-
// 通过文件名 获取文件后缀
|
|
14991
|
-
var getSuffix = function(fileName) {
|
|
14992
|
-
return fileName.split(".").pop().toLowerCase();
|
|
14993
|
-
};
|
|
14994
|
-
var FileList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
14995
|
-
var prefix = props.prefix, fileUpload = props.fileUpload, errorCallback = props.errorCallback, changeFileCanSending = props.changeFileCanSending;
|
|
14996
|
-
console.log("fileUpload", fileUpload);
|
|
14997
|
-
var _useState = _sliced_to_array(useState([]), 2), fileList = _useState[0], setFileList = _useState[1];
|
|
14998
|
-
var _useState1 = _sliced_to_array(useState(1), 2), page = _useState1[0], setPage = _useState1[1];
|
|
14999
|
-
var _useState2 = _sliced_to_array(useState(5), 2), pageSize = _useState2[0], setPageSize = _useState2[1];
|
|
15000
|
-
var recordObj = useRef({
|
|
15001
|
-
page: page,
|
|
15002
|
-
pageSize: pageSize,
|
|
15003
|
-
fileList: fileList
|
|
15004
|
-
});
|
|
15005
|
-
useEffect(function() {
|
|
15006
|
-
recordObj.current.page = page;
|
|
15007
|
-
recordObj.current.pageSize = pageSize;
|
|
15008
|
-
recordObj.current.fileList = fileList;
|
|
15009
|
-
}, [
|
|
15010
|
-
page,
|
|
15011
|
-
pageSize,
|
|
15012
|
-
fileList
|
|
15013
|
-
]);
|
|
15014
|
-
useEffect(function() {
|
|
15015
|
-
var flag = fileList.some(function(item) {
|
|
15016
|
-
return [
|
|
15017
|
-
"waiting",
|
|
15018
|
-
"uploading",
|
|
15019
|
-
"uploadError",
|
|
15020
|
-
"waitParse",
|
|
15021
|
-
"parsing",
|
|
15022
|
-
"parsingError"
|
|
15023
|
-
].includes(item.status);
|
|
15024
|
-
});
|
|
15025
|
-
changeFileCanSending(!flag);
|
|
15026
|
-
}, [
|
|
15027
|
-
fileList
|
|
15028
|
-
]);
|
|
15029
|
-
useImperativeHandle(ref, function() {
|
|
15030
|
-
return {
|
|
15031
|
-
addFile: addFile,
|
|
15032
|
-
changePage: changePage,
|
|
15033
|
-
deleteFile: deleteFile,
|
|
15034
|
-
updateFile: updateFile,
|
|
15035
|
-
getFileList: function() {
|
|
15036
|
-
return recordObj.current.fileList;
|
|
15037
|
-
},
|
|
15038
|
-
vaildFile: vaildFile,
|
|
15039
|
-
fileToCustomFile: fileToCustomFile,
|
|
15040
|
-
clearFileList: clearFileList
|
|
15041
|
-
};
|
|
15042
|
-
});
|
|
15043
|
-
var getCls = function(clsName) {
|
|
15044
|
-
return modules_63b47c51$1[clsName] + " " + prefix + "-" + clsName;
|
|
15045
|
-
};
|
|
15046
|
-
var clearFileList = function() {
|
|
15047
|
-
setFileList([]);
|
|
15048
|
-
};
|
|
15049
|
-
var vaildFile = function(file, fileId) {
|
|
15050
|
-
if (fileUpload.maxCount > 0 && recordObj.current.fileList.length > fileUpload.maxCount) {
|
|
15051
|
-
errorCallback({
|
|
15052
|
-
type: "fileCountOver",
|
|
15053
|
-
message: "上传失败,文件数量超过限制"
|
|
15054
|
-
});
|
|
15055
|
-
return false;
|
|
15056
|
-
}
|
|
15057
|
-
// fileUpload
|
|
15058
|
-
var acceptList = fileUpload.accept.split(/[.,]/).filter(function(item) {
|
|
15059
|
-
return !!item;
|
|
15060
|
-
});
|
|
15061
|
-
var suffix = getSuffix(file.name);
|
|
15062
|
-
if (!acceptList.includes(suffix)) {
|
|
15063
|
-
errorCallback({
|
|
15064
|
-
type: "fileAcceptError",
|
|
15065
|
-
message: "上传失败,文件格式错误"
|
|
15066
|
-
});
|
|
15067
|
-
return false;
|
|
15068
|
-
}
|
|
15069
|
-
if (file.size <= 0) {
|
|
15070
|
-
errorCallback({
|
|
15071
|
-
type: "fileSizeEmpty",
|
|
15072
|
-
message: "上传失败,不支持上传空内容文件"
|
|
15073
|
-
});
|
|
15074
|
-
return false;
|
|
15075
|
-
}
|
|
15076
|
-
if (file.size > fileUpload.maxSize) {
|
|
15077
|
-
errorCallback({
|
|
15078
|
-
type: "fileSizeOver",
|
|
15079
|
-
message: "上传失败,文件大小超过限制"
|
|
15080
|
-
});
|
|
15081
|
-
return false;
|
|
15082
|
-
}
|
|
15083
|
-
var flag = recordObj.current.fileList.some(function(item) {
|
|
15084
|
-
if (fileId) {
|
|
15085
|
-
return item.name === file.name && item.fileId !== fileId;
|
|
15086
|
-
} else {
|
|
15087
|
-
return item.name === file.name;
|
|
15088
|
-
}
|
|
15089
|
-
});
|
|
15090
|
-
// 判断是否有同名文件
|
|
15091
|
-
if (flag) {
|
|
15092
|
-
errorCallback({
|
|
15093
|
-
type: "fileNameExist",
|
|
15094
|
-
message: "上传失败,文件已存在"
|
|
15095
|
-
});
|
|
15096
|
-
return false;
|
|
15097
|
-
}
|
|
15098
|
-
return true;
|
|
15099
|
-
};
|
|
15100
|
-
var addFile = function(file, fileId) {
|
|
15101
|
-
console.log("addFileaddFile", file, fileUpload);
|
|
15102
|
-
if (vaildFile(file, fileId)) {
|
|
15103
|
-
// 等待上传
|
|
15104
|
-
// 判断是否存在等待上传的文件
|
|
15105
|
-
setFileList(function(fileList) {
|
|
15106
|
-
var uploadingList = fileList.filter(function(item) {
|
|
15107
|
-
return item.status === "uploading";
|
|
15108
|
-
});
|
|
15109
|
-
if (uploadingList.length >= fileUpload.mapUploadCount) {
|
|
15110
|
-
if (fileId) {
|
|
15111
|
-
return fileList.map(function(item) {
|
|
15112
|
-
if (item.fileId === fileId) {
|
|
15113
|
-
var obj = fileToCustomFile(file, {});
|
|
15114
|
-
return {
|
|
15115
|
-
name: obj.name,
|
|
15116
|
-
suffix: obj.suffix,
|
|
15117
|
-
fileId: fileId,
|
|
15118
|
-
url: "",
|
|
15119
|
-
status: "waiting",
|
|
15120
|
-
source: file,
|
|
15121
|
-
size: file.size
|
|
15122
|
-
};
|
|
15123
|
-
}
|
|
15124
|
-
return item;
|
|
15125
|
-
});
|
|
15126
|
-
} else {
|
|
15127
|
-
return _to_consumable_array(fileList).concat([
|
|
15128
|
-
fileToCustomFile(file, {})
|
|
15129
|
-
]);
|
|
15130
|
-
}
|
|
15131
|
-
} else {
|
|
15132
|
-
uploadFile(file);
|
|
15133
|
-
if (fileId) {
|
|
15134
|
-
return fileList.map(function(item) {
|
|
15135
|
-
if (item.fileId === fileId) {
|
|
15136
|
-
var obj = fileToCustomFile(file, {});
|
|
15137
|
-
return {
|
|
15138
|
-
name: obj.name,
|
|
15139
|
-
suffix: obj.suffix,
|
|
15140
|
-
fileId: fileId,
|
|
15141
|
-
url: "",
|
|
15142
|
-
status: "uploading",
|
|
15143
|
-
source: file,
|
|
15144
|
-
size: file.size
|
|
15145
|
-
};
|
|
15146
|
-
}
|
|
15147
|
-
return item;
|
|
15148
|
-
});
|
|
15149
|
-
} else {
|
|
15150
|
-
return _to_consumable_array(fileList).concat([
|
|
15151
|
-
fileToCustomFile(file, {
|
|
15152
|
-
status: "uploading"
|
|
15153
|
-
})
|
|
15154
|
-
]);
|
|
15155
|
-
}
|
|
15156
|
-
}
|
|
15157
|
-
});
|
|
15158
|
-
}
|
|
15159
|
-
};
|
|
15160
|
-
var uploadFile = function(file) {
|
|
15161
|
-
fileUpload.customRequest(file).then(function(res) {
|
|
15162
|
-
setFileList(function(fileList) {
|
|
15163
|
-
var list = fileList.map(function(item) {
|
|
15164
|
-
if (item.source === file) {
|
|
15165
|
-
return _object_spread({}, item, res);
|
|
15166
|
-
}
|
|
15167
|
-
return item;
|
|
15168
|
-
});
|
|
15169
|
-
var waitList = list.filter(function(item) {
|
|
15170
|
-
return item.status === "waiting";
|
|
15171
|
-
});
|
|
15172
|
-
if (waitList.length > 0) {
|
|
15173
|
-
list = list.map(function(item) {
|
|
15174
|
-
if (item.fileId === waitList[0].fileId) {
|
|
15175
|
-
return _object_spread_props(_object_spread({}, item), {
|
|
15176
|
-
status: "uploading"
|
|
15177
|
-
});
|
|
15178
|
-
}
|
|
15179
|
-
return item;
|
|
15180
|
-
});
|
|
15181
|
-
uploadFile(waitList[0].source);
|
|
15182
|
-
}
|
|
15183
|
-
return list;
|
|
15184
|
-
});
|
|
15185
|
-
});
|
|
15186
|
-
};
|
|
15187
|
-
// 删除文件
|
|
15188
|
-
var deleteFile = function(fileId) {
|
|
15189
|
-
var fileObj = null;
|
|
15190
|
-
setFileList(function(fileList) {
|
|
15191
|
-
return fileList.filter(function(item) {
|
|
15192
|
-
if (item.fileId === fileId) {
|
|
15193
|
-
fileObj = item;
|
|
15194
|
-
return true;
|
|
15195
|
-
}
|
|
15196
|
-
return false;
|
|
15197
|
-
});
|
|
15198
|
-
});
|
|
15199
|
-
// 删除文件时如果删除的是最后一条 则page-1
|
|
15200
|
-
var _recordObj_current = recordObj.current, fileList = _recordObj_current.fileList, page = _recordObj_current.page, pageSize = _recordObj_current.pageSize;
|
|
15201
|
-
var list = fileList.slice((page - 1) * pageSize, page * pageSize);
|
|
15202
|
-
list = list.filter(function(item) {
|
|
15203
|
-
return item.fileId !== fileId;
|
|
15204
|
-
});
|
|
15205
|
-
if (list.length === 0 && page > 1) {
|
|
15206
|
-
changePage(page - 1);
|
|
15207
|
-
}
|
|
15208
|
-
fileUpload.deleteFileAjax && fileUpload.deleteFileAjax(fileId, fileObj);
|
|
15209
|
-
};
|
|
15210
|
-
// 更新文件状态
|
|
15211
|
-
var updateFile = function(fileId, status) {
|
|
15212
|
-
setFileList(function(fileList) {
|
|
15213
|
-
return fileList.map(function(item) {
|
|
15214
|
-
if (item.fileId === fileId) {
|
|
15215
|
-
return _object_spread_props(_object_spread({}, item), {
|
|
15216
|
-
status: status
|
|
15217
|
-
});
|
|
15218
|
-
}
|
|
15219
|
-
return item;
|
|
15220
|
-
});
|
|
15221
|
-
});
|
|
15222
|
-
};
|
|
15223
|
-
// file to customFile
|
|
15224
|
-
var fileToCustomFile = function(file, params) {
|
|
15225
|
-
var customFile = {
|
|
15226
|
-
name: file.name,
|
|
15227
|
-
suffix: getSuffix(file.name),
|
|
15228
|
-
fileId: params.fileId || guidGenerator(),
|
|
15229
|
-
url: params.url || "",
|
|
15230
|
-
status: params.status || "waiting",
|
|
15231
|
-
source: file,
|
|
15232
|
-
size: file.size
|
|
15233
|
-
};
|
|
15234
|
-
return customFile;
|
|
15235
|
-
};
|
|
15236
|
-
var changePage = function(page) {
|
|
15237
|
-
setPage(page);
|
|
15238
|
-
setPageSize(pageSize);
|
|
15239
|
-
};
|
|
15240
|
-
var list = fileList.slice((page - 1) * pageSize, page * pageSize);
|
|
15241
|
-
if (list.length === 0) return null;
|
|
15242
|
-
return /*#__PURE__*/ jsxs("div", {
|
|
15243
|
-
className: "".concat(getCls("footer-fileList-wrapper")),
|
|
15244
|
-
children: [
|
|
15245
|
-
page !== 1 && /*#__PURE__*/ jsx("div", {
|
|
15246
|
-
className: "".concat(getCls("footer-fileList-pre")),
|
|
15247
|
-
onClick: function() {
|
|
15248
|
-
return changePage(page - 1);
|
|
15249
|
-
},
|
|
15250
|
-
children: /*#__PURE__*/ jsx(DoubleRightOutlined, {
|
|
15251
|
-
onPointerEnterCapture: undefined,
|
|
15252
|
-
onPointerLeaveCapture: undefined
|
|
15253
|
-
})
|
|
15254
|
-
}),
|
|
15255
|
-
/*#__PURE__*/ jsx("div", {
|
|
15256
|
-
className: "".concat(getCls("footer-fileList-list")),
|
|
15257
|
-
children: list.map(function(item) {
|
|
15258
|
-
return /*#__PURE__*/ jsxs("div", {
|
|
15259
|
-
className: "".concat(getCls("footer-fileList-listItem")),
|
|
15260
|
-
children: [
|
|
15261
|
-
/*#__PURE__*/ jsx("div", {
|
|
15262
|
-
className: "".concat(getCls("footer-fileList-listItem-icon")),
|
|
15263
|
-
children: fileIconRender(item.suffix, fileUpload.iconFileRender)
|
|
15264
|
-
}),
|
|
15265
|
-
/*#__PURE__*/ jsx("div", {
|
|
15266
|
-
className: "".concat(getCls("footer-fileList-listItem-text")),
|
|
15267
|
-
title: item.name,
|
|
15268
|
-
children: item.name
|
|
15269
|
-
}),
|
|
15270
|
-
item.status === "uploadError" ? /*#__PURE__*/ jsx(Upload, {
|
|
15271
|
-
fileList: [],
|
|
15272
|
-
accept: fileUpload.accept,
|
|
15273
|
-
customRequest: function(options) {
|
|
15274
|
-
return addFile(options.file, item.fileId);
|
|
15275
|
-
},
|
|
15276
|
-
multiple: false,
|
|
15277
|
-
children: /*#__PURE__*/ jsx("div", {
|
|
15278
|
-
className: "".concat(getCls("footer-fileList-listItem-status")),
|
|
15279
|
-
style: {
|
|
15280
|
-
cursor: "pointer"
|
|
15281
|
-
},
|
|
15282
|
-
children: statusRender(item.status, fileUpload.statusText)
|
|
15283
|
-
})
|
|
15284
|
-
}) : /*#__PURE__*/ jsx("div", {
|
|
15285
|
-
className: "".concat(getCls("footer-fileList-listItem-status")),
|
|
15286
|
-
children: statusRender(item.status, fileUpload.statusText)
|
|
15287
|
-
}),
|
|
15288
|
-
/*#__PURE__*/ jsx("div", {
|
|
15289
|
-
className: "".concat(getCls("footer-fileList-listItem-delete")),
|
|
15290
|
-
children: /*#__PURE__*/ jsx(CloseCircleFilled, {
|
|
15291
|
-
onPointerEnterCapture: undefined,
|
|
15292
|
-
onPointerLeaveCapture: undefined,
|
|
15293
|
-
onClick: function() {
|
|
15294
|
-
return deleteFile(item.fileId);
|
|
15295
|
-
}
|
|
15296
|
-
})
|
|
15297
|
-
})
|
|
15298
|
-
]
|
|
15299
|
-
}, item.fileId);
|
|
15300
|
-
})
|
|
15301
|
-
}),
|
|
15302
|
-
page * pageSize < fileList.length && /*#__PURE__*/ jsx("div", {
|
|
15303
|
-
className: "".concat(getCls("footer-fileList-next")),
|
|
15304
|
-
onClick: function() {
|
|
15305
|
-
return changePage(page + 1);
|
|
15306
|
-
},
|
|
15307
|
-
children: /*#__PURE__*/ jsx(DoubleRightOutlined, {
|
|
15308
|
-
onPointerEnterCapture: undefined,
|
|
15309
|
-
onPointerLeaveCapture: undefined
|
|
15310
|
-
})
|
|
15311
|
-
})
|
|
15312
|
-
]
|
|
15313
|
-
});
|
|
15314
|
-
});
|
|
15315
|
-
var FileList$1 = FileList;
|
|
15316
|
-
|
|
15317
|
-
var modules_63b47c51 = {"footerReferences":"index_module_footerReferences__ef2f2d56","footerReferences_left":"index_module_footerReferences_left__ef2f2d56","footerReferences_left_text":"index_module_footerReferences_left_text__ef2f2d56","footerReferences_left_file":"index_module_footerReferences_left_file__ef2f2d56","footerReferences_left_file_icon":"index_module_footerReferences_left_file_icon__ef2f2d56","footerReferences_left_file_title":"index_module_footerReferences_left_file_title__ef2f2d56","footerReferences_right":"index_module_footerReferences_right__ef2f2d56"};
|
|
15318
|
-
|
|
15319
|
-
var References = function(props) {
|
|
15320
|
-
var prefix = props.prefix, referencesSource = props.referencesSource, fileUpload = props.fileUpload, deleteReferences = props.deleteReferences;
|
|
15321
|
-
var getCls = function(clsName) {
|
|
15322
|
-
return modules_63b47c51[clsName] + " " + prefix + "-" + clsName;
|
|
15323
|
-
};
|
|
15324
|
-
if (!referencesSource) return null;
|
|
15325
|
-
if (referencesSource.type === "text") {
|
|
15326
|
-
return /*#__PURE__*/ jsxs("div", {
|
|
15327
|
-
className: "".concat(getCls("footerReferences")),
|
|
15328
|
-
children: [
|
|
15329
|
-
/*#__PURE__*/ jsx("div", {
|
|
15330
|
-
className: "".concat(getCls("footerReferences_left")),
|
|
15331
|
-
children: /*#__PURE__*/ jsx("div", {
|
|
15332
|
-
className: "".concat(getCls("footerReferences_left_text")),
|
|
15333
|
-
children: referencesSource.value
|
|
15334
|
-
})
|
|
15335
|
-
}),
|
|
15336
|
-
/*#__PURE__*/ jsx("div", {
|
|
15337
|
-
className: "".concat(getCls("footerReferences_right")),
|
|
15338
|
-
children: /*#__PURE__*/ jsx(CloseCircleFilled, {
|
|
15339
|
-
onPointerEnterCapture: undefined,
|
|
15340
|
-
onPointerLeaveCapture: undefined,
|
|
15341
|
-
onClick: function() {
|
|
15342
|
-
return deleteReferences();
|
|
15343
|
-
}
|
|
15344
|
-
})
|
|
15345
|
-
})
|
|
15346
|
-
]
|
|
15347
|
-
});
|
|
15348
|
-
}
|
|
15349
|
-
if (referencesSource.type === "file" && fileUpload) {
|
|
15350
|
-
return /*#__PURE__*/ jsxs("div", {
|
|
15351
|
-
className: "".concat(getCls("footerReferences")),
|
|
15352
|
-
children: [
|
|
15353
|
-
/*#__PURE__*/ jsx("div", {
|
|
15354
|
-
className: "".concat(getCls("footerReferences_left")),
|
|
15355
|
-
children: /*#__PURE__*/ jsxs("div", {
|
|
15356
|
-
className: "".concat(getCls("footerReferences_left_file")),
|
|
15357
|
-
children: [
|
|
15358
|
-
/*#__PURE__*/ jsx("div", {
|
|
15359
|
-
className: "".concat(getCls("footerReferences_left_file_icon")),
|
|
15360
|
-
children: fileIconRender(referencesSource.value.suffix, fileUpload.iconFileRender)
|
|
15361
|
-
}),
|
|
15362
|
-
/*#__PURE__*/ jsx("div", {
|
|
15363
|
-
className: "".concat(getCls("footerReferences_left_file_title")),
|
|
15364
|
-
title: referencesSource.value.name,
|
|
15365
|
-
children: referencesSource.value.name
|
|
15366
|
-
})
|
|
15367
|
-
]
|
|
15368
|
-
})
|
|
15369
|
-
}),
|
|
15370
|
-
/*#__PURE__*/ jsx("div", {
|
|
15371
|
-
className: "".concat(getCls("footerReferences_right")),
|
|
15372
|
-
children: /*#__PURE__*/ jsx(CloseCircleFilled, {
|
|
15373
|
-
onPointerEnterCapture: undefined,
|
|
15374
|
-
onPointerLeaveCapture: undefined,
|
|
15375
|
-
onClick: function() {
|
|
15376
|
-
return deleteReferences();
|
|
15377
|
-
}
|
|
15378
|
-
})
|
|
15379
|
-
})
|
|
15380
|
-
]
|
|
15381
|
-
});
|
|
15382
|
-
}
|
|
15383
|
-
return null;
|
|
15384
|
-
};
|
|
15385
|
-
var References$1 = References;
|
|
15386
|
-
|
|
15387
|
-
var TextArea = BhdEnterInput.TextArea;
|
|
15388
|
-
var defaultProps = {
|
|
15389
|
-
placeholder: "请输入内容\n按Enter发送,Shift+Enter换行",
|
|
15390
|
-
className: "",
|
|
15391
|
-
maxLength: 500,
|
|
15392
|
-
fileUpload: false
|
|
15393
|
-
};
|
|
15394
|
-
var defaultFileUploadProps = {
|
|
15395
|
-
accept: ".pdf,.ppt,.pptx,.doc,.docx,.xls,.xlsx,.txt,.text,.png,.jpg,.jpeg,.gif,.webp",
|
|
15396
|
-
maxCount: 10,
|
|
15397
|
-
maxSize: 50 * 1024 * 1024,
|
|
15398
|
-
mapUploadCount: 1,
|
|
15399
|
-
multiple: true
|
|
15400
|
-
};
|
|
15401
|
-
var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
15402
|
-
var footerConfig = props.footerConfig, prefix = props.prefix, errorCallback = props.errorCallback, apiRef = props.apiRef;
|
|
15403
|
-
var _footerConfig_placeholder = footerConfig.placeholder, placeholder = _footerConfig_placeholder === void 0 ? defaultProps.placeholder : _footerConfig_placeholder, _footerConfig_className = footerConfig.className, className = _footerConfig_className === void 0 ? defaultProps.className : _footerConfig_className, _footerConfig_maxLength = footerConfig.maxLength, maxLength = _footerConfig_maxLength === void 0 ? defaultProps.maxLength : _footerConfig_maxLength, renderAction = footerConfig.renderAction, fileUpload = footerConfig.fileUpload, sendMsgAjaxParams = footerConfig.sendMsgAjaxParams, _footerConfig_onClickStop = footerConfig.onClickStop, onClickStop = _footerConfig_onClickStop === void 0 ? function() {} : _footerConfig_onClickStop;
|
|
15404
|
-
if (fileUpload) {
|
|
15405
|
-
fileUpload = _object_spread({}, defaultFileUploadProps, fileUpload);
|
|
15406
|
-
}
|
|
15407
|
-
var footerDomRef = useRef(null);
|
|
15408
|
-
var resizeObserverRef = useRef(null);
|
|
15409
|
-
var fileListRef = useRef(null);
|
|
15410
|
-
var ctrl = useRef(); //停止生成ai回答时使用
|
|
15411
|
-
var _useState = _sliced_to_array(useState(""), 2), textValue = _useState[0], setTextValue = _useState[1];
|
|
15412
|
-
var _useState1 = _sliced_to_array(useState(false), 2), sending = _useState1[0], setSending = _useState1[1];
|
|
15413
|
-
var _useState2 = _sliced_to_array(useState(true), 2), fileCanSending = _useState2[0], setFileCanSending = _useState2[1]; // 是否允许发送 关联文件
|
|
15414
|
-
var updateMsgRef = useRef(null);
|
|
15415
|
-
// const [referencesSource, setReferencesSource] = useState<referenceType>({
|
|
15416
|
-
// type: "file",
|
|
15417
|
-
// value: {
|
|
15418
|
-
// name: "文件名字.doc",
|
|
15419
|
-
// suffix: "doc",
|
|
15420
|
-
// fileId: "",
|
|
15421
|
-
// url: "",
|
|
15422
|
-
// status: undefined,
|
|
15423
|
-
// source: undefined,
|
|
15424
|
-
// },
|
|
15425
|
-
// });
|
|
15426
|
-
var _useState3 = _sliced_to_array(useState(null), 2), referencesSource = _useState3[0], setReferencesSource = _useState3[1];
|
|
15427
|
-
var recordRef = useRef({
|
|
15428
|
-
value: textValue,
|
|
15429
|
-
referencesSource: referencesSource,
|
|
15430
|
-
sending: sending
|
|
15431
|
-
});
|
|
15432
|
-
useImperativeHandle(ref, function() {
|
|
15433
|
-
return _object_spread({
|
|
15434
|
-
setTextValue: setTextValue,
|
|
15435
|
-
sendMsg: sendMsg,
|
|
15436
|
-
clearText: function() {
|
|
15437
|
-
setTextValue("");
|
|
15438
|
-
},
|
|
15439
|
-
getCanSendMsg: function() {
|
|
15440
|
-
return canSendMsg;
|
|
15441
|
-
},
|
|
15442
|
-
stopMessage: function() {
|
|
15443
|
-
stopMessage();
|
|
15444
|
-
},
|
|
15445
|
-
setReferences: function(reference) {
|
|
15446
|
-
setReferencesSource(reference);
|
|
15447
|
-
}
|
|
15448
|
-
}, fileListRef.current);
|
|
15449
|
-
});
|
|
15450
|
-
useEffect(function() {
|
|
15451
|
-
listenerFooterHeight();
|
|
15452
|
-
return function() {
|
|
15453
|
-
resizeObserverRef.current && resizeObserverRef.current.disconnect();
|
|
15454
|
-
clearTimeout(updateMsgRef.current);
|
|
15455
|
-
};
|
|
15456
|
-
}, []);
|
|
15457
|
-
useEffect(function() {
|
|
15458
|
-
recordRef.current.value = textValue;
|
|
15459
|
-
recordRef.current.referencesSource = referencesSource;
|
|
15460
|
-
recordRef.current.sending = sending;
|
|
15461
|
-
}, [
|
|
15462
|
-
textValue,
|
|
15463
|
-
referencesSource,
|
|
15464
|
-
sending
|
|
15465
|
-
]);
|
|
15466
|
-
// 监听footer变化
|
|
15467
|
-
var listenerFooterHeight = function() {
|
|
15468
|
-
if (!footerDomRef.current) return;
|
|
15469
|
-
// 创建ResizeObserver实例
|
|
15470
|
-
resizeObserverRef.current = new ResizeObserver(function(entries) {
|
|
15471
|
-
apiRef.contentApi && apiRef.contentApi.scrollToBottom();
|
|
15472
|
-
});
|
|
15473
|
-
// 开始观察footer元素
|
|
15474
|
-
resizeObserverRef.current.observe(footerDomRef.current);
|
|
15475
|
-
};
|
|
15476
|
-
// 是否允许发送消息
|
|
15477
|
-
var canSendMsg = useMemo(function() {
|
|
15478
|
-
if (textValue.trim().length === 0) return false;
|
|
15479
|
-
if (typeof maxLength === "function") {
|
|
15480
|
-
if (maxLength(textValue)) return false;
|
|
15481
|
-
}
|
|
15482
|
-
if (textValue.trim().length > maxLength) return false;
|
|
15483
|
-
if (sending) return false;
|
|
15484
|
-
if (!fileCanSending) return false;
|
|
15485
|
-
return true;
|
|
15486
|
-
}, [
|
|
15487
|
-
textValue,
|
|
15488
|
-
maxLength,
|
|
15489
|
-
sending,
|
|
15490
|
-
fileCanSending
|
|
15491
|
-
]);
|
|
15492
|
-
var stopMessage = function() {
|
|
15493
|
-
ctrl.current && ctrl.current.abort();
|
|
15494
|
-
apiRef.contentApi.clearInputing();
|
|
15495
|
-
setSending(false);
|
|
15496
|
-
};
|
|
15497
|
-
var getCls = function(clsName) {
|
|
15498
|
-
return modules_63b47c51$4[clsName] + " " + prefix + "-" + clsName;
|
|
15499
|
-
};
|
|
15500
|
-
var renderBtn = function() {
|
|
15501
|
-
var sendNode = /*#__PURE__*/ jsx(SendBtn$2, {
|
|
15502
|
-
prefix: prefix,
|
|
15503
|
-
canSendMsg: canSendMsg,
|
|
15504
|
-
sending: sending,
|
|
15505
|
-
stopMessage: function() {
|
|
15506
|
-
onClickStop();
|
|
15507
|
-
stopMessage();
|
|
15508
|
-
},
|
|
15509
|
-
clickFn: function() {
|
|
15510
|
-
if (textValue.trim().length === 0) return;
|
|
15511
|
-
sendMsg(textValue);
|
|
15512
|
-
}
|
|
15513
|
-
});
|
|
15514
|
-
if (fileUpload) {
|
|
15515
|
-
var fileNode = /*#__PURE__*/ jsx(UploadFileBtn, {
|
|
15516
|
-
prefix: prefix,
|
|
15517
|
-
fileUpload: fileUpload,
|
|
15518
|
-
customRequest: function(options) {
|
|
15519
|
-
var _fileListRef_current;
|
|
15520
|
-
console.log("customRequestcustomRequest", options);
|
|
15521
|
-
(_fileListRef_current = fileListRef.current) === null || _fileListRef_current === void 0 ? void 0 : _fileListRef_current.addFile(options.file);
|
|
15522
|
-
}
|
|
15523
|
-
});
|
|
15524
|
-
if (renderAction) {
|
|
15525
|
-
return renderAction(sendNode, fileNode);
|
|
15526
|
-
} else {
|
|
15527
|
-
return /*#__PURE__*/ jsxs("div", {
|
|
15528
|
-
className: "".concat(getCls("footerActionBtn")),
|
|
15529
|
-
children: [
|
|
15530
|
-
fileNode,
|
|
15531
|
-
/*#__PURE__*/ jsx(Divider, {
|
|
15532
|
-
type: "vertical"
|
|
15533
|
-
}),
|
|
15534
|
-
sendNode
|
|
15535
|
-
]
|
|
15536
|
-
});
|
|
15537
|
-
}
|
|
15538
|
-
} else {
|
|
15539
|
-
var fileNode1 = null;
|
|
15540
|
-
if (renderAction) {
|
|
15541
|
-
return renderAction(sendNode, fileNode1);
|
|
15542
|
-
} else {
|
|
15543
|
-
return /*#__PURE__*/ jsx("div", {
|
|
15544
|
-
className: "".concat(getCls("footerActionBtn")),
|
|
15545
|
-
children: sendNode
|
|
15546
|
-
});
|
|
15547
|
-
}
|
|
15548
|
-
}
|
|
15549
|
-
};
|
|
15550
|
-
var onPressEnter = function(e) {
|
|
15551
|
-
// 判断是否按下了 Shift 键
|
|
15552
|
-
if (e.shiftKey) {
|
|
15553
|
-
// 如果按下了 Shift + Enter,则允许换行(默认行为)
|
|
15554
|
-
return;
|
|
15555
|
-
} else {
|
|
15556
|
-
if (textValue.length === 0) {
|
|
15557
|
-
// 内容为空时 执行换行操作
|
|
15558
|
-
return;
|
|
15559
|
-
}
|
|
15560
|
-
// 如果只按了 Enter,则阻止默认行为并发送消息
|
|
15561
|
-
e.preventDefault();
|
|
15562
|
-
// 在这里添加发送消息的逻辑
|
|
15563
|
-
sendMsg(textValue);
|
|
15564
|
-
}
|
|
15565
|
-
};
|
|
15566
|
-
// 发现消息
|
|
15567
|
-
var sendMsg = function(value) {
|
|
15568
|
-
if (value.trim().length === 0) return;
|
|
15569
|
-
if (!canSendMsg) return;
|
|
15570
|
-
console.log("发送消息:", value);
|
|
15571
|
-
apiRef.contentApi.addMsg({
|
|
15572
|
-
id: guidGenerator(),
|
|
15573
|
-
createTime: new Date().getTime(),
|
|
15574
|
-
content: value,
|
|
15575
|
-
location: "right",
|
|
15576
|
-
reference: recordRef.current.referencesSource,
|
|
15577
|
-
source: null,
|
|
15578
|
-
fileList: fileListRef.current.getFileList()
|
|
15579
|
-
});
|
|
15580
|
-
sendMsgAjax();
|
|
15581
|
-
};
|
|
15582
|
-
var sendMsgAjax = function() {
|
|
15583
|
-
var url = sendMsgAjaxParams.url, _sendMsgAjaxParams_method = sendMsgAjaxParams.method, method = _sendMsgAjaxParams_method === void 0 ? "POST" : _sendMsgAjaxParams_method, _sendMsgAjaxParams_headers = sendMsgAjaxParams.headers, headers = _sendMsgAjaxParams_headers === void 0 ? function() {
|
|
15584
|
-
return {};
|
|
15585
|
-
} : _sendMsgAjaxParams_headers, _sendMsgAjaxParams_params = sendMsgAjaxParams.params, params = _sendMsgAjaxParams_params === void 0 ? function() {
|
|
15586
|
-
return "";
|
|
15587
|
-
} : _sendMsgAjaxParams_params, _sendMsgAjaxParams_onOpen = sendMsgAjaxParams.onOpen, onOpen = _sendMsgAjaxParams_onOpen === void 0 ? function() {} : _sendMsgAjaxParams_onOpen, _sendMsgAjaxParams_onMessage = sendMsgAjaxParams.onMessage, onMessage = _sendMsgAjaxParams_onMessage === void 0 ? function(ev) {
|
|
15588
|
-
return ev;
|
|
15589
|
-
} : _sendMsgAjaxParams_onMessage, _sendMsgAjaxParams_onClose = sendMsgAjaxParams.onClose, onClose = _sendMsgAjaxParams_onClose === void 0 ? function() {} : _sendMsgAjaxParams_onClose, _sendMsgAjaxParams_onError = sendMsgAjaxParams.onError, onError = _sendMsgAjaxParams_onError === void 0 ? function() {} : _sendMsgAjaxParams_onError, _sendMsgAjaxParams_coverProps = sendMsgAjaxParams.coverProps, coverProps = _sendMsgAjaxParams_coverProps === void 0 ? {} : _sendMsgAjaxParams_coverProps, _sendMsgAjaxParams_beforeSendMsg = sendMsgAjaxParams.beforeSendMsg, beforeSendMsg = _sendMsgAjaxParams_beforeSendMsg === void 0 ? function() {
|
|
15590
|
-
return Promise.resolve();
|
|
15591
|
-
} : _sendMsgAjaxParams_beforeSendMsg;
|
|
15592
|
-
ctrl.current = new AbortController();
|
|
15593
|
-
// apiRef
|
|
15594
|
-
console.log("apiRef", apiRef);
|
|
15595
|
-
var msgId = "inputing";
|
|
15596
|
-
var createTime = new Date().getTime();
|
|
15597
|
-
apiRef.contentApi.addMsg({
|
|
15598
|
-
id: msgId,
|
|
15599
|
-
createTime: createTime,
|
|
15600
|
-
content: "正在输入...",
|
|
15601
|
-
location: "left",
|
|
15602
|
-
reference: null,
|
|
15603
|
-
source: null,
|
|
15604
|
-
fileList: fileListRef.current.getFileList()
|
|
15605
|
-
});
|
|
15606
|
-
var msgContent = "";
|
|
15607
|
-
setSending(true);
|
|
15608
|
-
setTextValue("");
|
|
15609
|
-
fileListRef.current.clearFileList();
|
|
15610
|
-
setReferencesSource(null);
|
|
15611
|
-
var recordMsgObj = {};
|
|
15612
|
-
var arg = [
|
|
15613
|
-
recordRef.current.value,
|
|
15614
|
-
recordRef.current.referencesSource,
|
|
15615
|
-
fileListRef.current ? fileListRef.current.getFileList() : []
|
|
15616
|
-
];
|
|
15617
|
-
beforeSendMsg.apply(void 0, _to_consumable_array(arg)).then(function(beforeInfo) {
|
|
15618
|
-
var callback = function() {
|
|
15619
|
-
var isClose = false;
|
|
15620
|
-
var closeCallback = function() {
|
|
15621
|
-
if (isClose) return;
|
|
15622
|
-
isClose = true;
|
|
15623
|
-
onClose();
|
|
15624
|
-
setSending(false);
|
|
15625
|
-
if (recordMsgObj.id) {
|
|
15626
|
-
apiRef.contentApi.recordMsg(recordMsgObj);
|
|
15627
|
-
apiRef.contentApi.setSendingId(recordMsgObj.id);
|
|
15628
|
-
}
|
|
15629
|
-
console.log("onclose: ", recordMsgObj);
|
|
15630
|
-
};
|
|
15631
|
-
fetchEventSource(url, _object_spread({
|
|
15632
|
-
method: method,
|
|
15633
|
-
headers: _object_spread({
|
|
15634
|
-
"Content-Type": "application/json",
|
|
15635
|
-
Accept: "text/event-stream,application/json"
|
|
15636
|
-
}, headers()),
|
|
15637
|
-
body: params.apply(void 0, _to_consumable_array(arg).concat([
|
|
15638
|
-
beforeInfo
|
|
15639
|
-
])),
|
|
15640
|
-
openWhenHidden: true,
|
|
15641
|
-
signal: ctrl.current.signal,
|
|
15642
|
-
onopen: function(res) {
|
|
15643
|
-
var retryFetch = function() {
|
|
15644
|
-
callback();
|
|
15645
|
-
};
|
|
15646
|
-
onOpen(res, {
|
|
15647
|
-
retryFetch: retryFetch,
|
|
15648
|
-
stopMessage: stopMessage
|
|
15649
|
-
});
|
|
15650
|
-
return null;
|
|
15651
|
-
},
|
|
15652
|
-
onmessage: function(ev) {
|
|
15653
|
-
var data = onMessage(ev, closeCallback);
|
|
15654
|
-
msgContent += data.content;
|
|
15655
|
-
delete data.content;
|
|
15656
|
-
recordMsgObj = _object_spread({
|
|
15657
|
-
createTime: createTime,
|
|
15658
|
-
content: msgContent || "正在输入...",
|
|
15659
|
-
location: "left",
|
|
15660
|
-
reference: null,
|
|
15661
|
-
source: null
|
|
15662
|
-
}, data);
|
|
15663
|
-
apiRef.contentApi.setSendingId(data.id);
|
|
15664
|
-
apiRef.contentApi.updateMsg(msgId, recordMsgObj);
|
|
15665
|
-
msgId = data.id;
|
|
15666
|
-
updateMsgRef.current = setTimeout(function() {
|
|
15667
|
-
apiRef.contentApi.scrollToBottom();
|
|
15668
|
-
}, 100);
|
|
15669
|
-
},
|
|
15670
|
-
onclose: function() {
|
|
15671
|
-
closeCallback();
|
|
15672
|
-
},
|
|
15673
|
-
onerror: function(err) {
|
|
15674
|
-
onError(err);
|
|
15675
|
-
if (recordMsgObj.id) {
|
|
15676
|
-
apiRef.contentApi.recordMsg(recordMsgObj);
|
|
15677
|
-
}
|
|
15678
|
-
console.log("onerror: ", err);
|
|
15679
|
-
}
|
|
15680
|
-
}, coverProps));
|
|
15681
|
-
};
|
|
15682
|
-
callback();
|
|
15683
|
-
}).catch(function() {
|
|
15684
|
-
stopMessage();
|
|
15685
|
-
});
|
|
15686
|
-
};
|
|
15687
|
-
// 判断是否超出最大字数
|
|
15688
|
-
var judegTextLengthWarn = function() {
|
|
15689
|
-
if (typeof maxLength === "function") {
|
|
15690
|
-
return maxLength(textValue);
|
|
15691
|
-
} else {
|
|
15692
|
-
return textValue.length > maxLength;
|
|
15693
|
-
}
|
|
15694
|
-
};
|
|
15695
|
-
return /*#__PURE__*/ jsx("div", {
|
|
15696
|
-
className: "".concat(getCls("footer"), " ").concat(className),
|
|
15697
|
-
ref: footerDomRef,
|
|
15698
|
-
children: /*#__PURE__*/ jsxs("div", {
|
|
15699
|
-
className: "".concat(getCls("footerBody"), " ").concat(judegTextLengthWarn() ? getCls("footerBodyWarn") : ""),
|
|
15700
|
-
children: [
|
|
15701
|
-
fileUpload && /*#__PURE__*/ jsx("div", {
|
|
15702
|
-
className: getCls("footerFile"),
|
|
15703
|
-
children: /*#__PURE__*/ jsx(FileList$1, {
|
|
15704
|
-
prefix: prefix,
|
|
15705
|
-
fileUpload: fileUpload,
|
|
15706
|
-
ref: fileListRef,
|
|
15707
|
-
errorCallback: errorCallback,
|
|
15708
|
-
changeFileCanSending: setFileCanSending
|
|
15709
|
-
})
|
|
15710
|
-
}),
|
|
15711
|
-
/*#__PURE__*/ jsxs("div", {
|
|
15712
|
-
className: getCls("footerInput"),
|
|
15713
|
-
children: [
|
|
15714
|
-
/*#__PURE__*/ jsx(TextArea, {
|
|
15715
|
-
value: textValue,
|
|
15716
|
-
onChange: function(e) {
|
|
15717
|
-
setTextValue(e.target.value);
|
|
15718
|
-
},
|
|
15719
|
-
placeholder: placeholder,
|
|
15720
|
-
autoSize: {
|
|
15721
|
-
minRows: 2,
|
|
15722
|
-
maxRows: 6
|
|
15723
|
-
},
|
|
15724
|
-
onPressEnter: onPressEnter
|
|
15725
|
-
}),
|
|
15726
|
-
/*#__PURE__*/ jsx(References$1, {
|
|
15727
|
-
prefix: prefix,
|
|
15728
|
-
referencesSource: referencesSource,
|
|
15729
|
-
fileUpload: fileUpload,
|
|
15730
|
-
deleteReferences: function() {
|
|
15731
|
-
return setReferencesSource(null);
|
|
15732
|
-
}
|
|
15733
|
-
})
|
|
15734
|
-
]
|
|
15735
|
-
}),
|
|
15736
|
-
/*#__PURE__*/ jsx("div", {
|
|
15737
|
-
className: getCls("footerAction"),
|
|
15738
|
-
children: renderBtn()
|
|
15739
|
-
})
|
|
15740
|
-
]
|
|
15741
|
-
})
|
|
15742
|
-
});
|
|
15743
|
-
});
|
|
15744
|
-
var Footer$1 = Footer;
|
|
15745
|
-
|
|
15746
|
-
var errorCallback = function(errObj) {
|
|
15747
|
-
message.customError(errObj.message);
|
|
15748
|
-
};
|
|
15749
|
-
var errorCallbackDefault = errorCallback;
|
|
15750
|
-
|
|
15751
|
-
var AIMessageList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
15752
|
-
var _props_prefix = props.prefix, prefix = _props_prefix === void 0 ? "bhd-AIMessageList" : _props_prefix, _props_className = props.className, className = _props_className === void 0 ? "" : _props_className, headerConfig = props.headerConfig, footerConfig = props.footerConfig, _props_errorCallback = props.errorCallback, errorCallback = _props_errorCallback === void 0 ? errorCallbackDefault : _props_errorCallback, contentConfig = props.contentConfig;
|
|
15753
|
-
var footerRef = useRef(null);
|
|
15754
|
-
var contentRef = useRef(null);
|
|
15755
|
-
var apiRef = useRef({
|
|
15756
|
-
contentApi: null,
|
|
15757
|
-
footerApi: null
|
|
15758
|
-
});
|
|
15759
|
-
useImperativeHandle(ref, function() {
|
|
15760
|
-
apiRef.current.contentApi = contentRef.current;
|
|
15761
|
-
apiRef.current.footerApi = footerRef.current;
|
|
15762
|
-
return apiRef.current;
|
|
15763
|
-
});
|
|
15764
|
-
var getCls = function(clsName) {
|
|
15765
|
-
return modules_63b47c51$c[clsName] + " " + prefix + "-" + clsName;
|
|
15766
|
-
};
|
|
15767
|
-
return /*#__PURE__*/ jsxs("div", {
|
|
15768
|
-
className: "".concat(getCls("root"), " ").concat(className),
|
|
15769
|
-
children: [
|
|
15770
|
-
/*#__PURE__*/ jsx("div", {
|
|
15771
|
-
className: getCls("rootHeader"),
|
|
15772
|
-
children: /*#__PURE__*/ jsx(Header$2, {
|
|
15773
|
-
headerConfig: headerConfig,
|
|
15774
|
-
prefix: prefix,
|
|
15775
|
-
errorCallback: errorCallback
|
|
15776
|
-
})
|
|
15777
|
-
}),
|
|
15778
|
-
/*#__PURE__*/ jsx("div", {
|
|
15779
|
-
className: getCls("rootContent"),
|
|
15780
|
-
children: /*#__PURE__*/ jsx(Content$1, {
|
|
15781
|
-
prefix: prefix,
|
|
15782
|
-
contentConfig: contentConfig,
|
|
15783
|
-
ref: contentRef,
|
|
15784
|
-
apiRef: apiRef.current
|
|
15785
|
-
})
|
|
15786
|
-
}),
|
|
15787
|
-
/*#__PURE__*/ jsx("div", {
|
|
15788
|
-
className: getCls("rootFooter"),
|
|
15789
|
-
children: /*#__PURE__*/ jsx(Footer$1, {
|
|
15790
|
-
footerConfig: footerConfig,
|
|
15791
|
-
prefix: prefix,
|
|
15792
|
-
errorCallback: errorCallback,
|
|
15793
|
-
ref: footerRef,
|
|
15794
|
-
apiRef: apiRef.current
|
|
15795
|
-
})
|
|
15796
|
-
})
|
|
15797
|
-
]
|
|
15798
|
-
});
|
|
15799
|
-
});
|
|
15800
|
-
var AIMessageList$1 = AIMessageList;
|
|
15801
|
-
|
|
15802
|
-
export { AIMessageList$1 as AIMessageList, BhdAppLayout, BhdDatePicker$1 as BhdDatePicker, BhdEnterInput, BhdModalCropper$1 as BhdModalCropper, BhdSelect$1 as BhdSelect, BhdTableSelect$1 as BhdTableSelect, BhdTableSimple$1 as BhdTableSimple, BhdTipModal$1 as BhdTipModal, CustomerService$1 as CustomerService, Pagination, Provider$1 as Provider, Table$1 as Table, TextTootip$1 as TextTootip, TitleBar$1 as TitleBar, ViewImage$1 as ViewImage, message };
|
|
12878
|
+
export { BhdAppLayout, BhdDatePicker$1 as BhdDatePicker, Input as BhdEnterInput, BhdModalCropper$1 as BhdModalCropper, BhdSelect$1 as BhdSelect, BhdTableSelect$1 as BhdTableSelect, BhdTableSimple$1 as BhdTableSimple, BhdTipModal$1 as BhdTipModal, CustomerService$1 as CustomerService, Pagination, Provider$1 as Provider, Table$1 as Table, TextTootip$1 as TextTootip, TitleBar$1 as TitleBar, ViewImage$1 as ViewImage, message };
|