bhd-components 0.9.29 → 0.10.1
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/dist/index.esm.es5.development.css +662 -0
- package/dist/index.esm.es5.development.js +2694 -159
- 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 +3940 -638
- package/dist/vendor.esm.es5.production.js +136 -136
- package/es2017/AIMessageList/components/content/index.d.ts +4 -0
- package/es2017/AIMessageList/components/content/index.js +29 -0
- package/es2017/AIMessageList/components/content/index.module.less +8 -0
- package/es2017/AIMessageList/components/copyIcon/index.d.ts +7 -0
- package/es2017/AIMessageList/components/copyIcon/index.js +58 -0
- package/es2017/AIMessageList/components/copyIcon/index.module.less +22 -0
- package/es2017/AIMessageList/components/errorCallback/index.d.ts +3 -0
- package/es2017/AIMessageList/components/errorCallback/index.js +6 -0
- package/es2017/AIMessageList/components/fileList/fileIcon.d.ts +3 -0
- package/es2017/AIMessageList/components/fileList/fileIcon.js +970 -0
- package/es2017/AIMessageList/components/fileList/index.d.ts +4 -0
- package/es2017/AIMessageList/components/fileList/index.js +299 -0
- package/es2017/AIMessageList/components/fileList/index.module.less +95 -0
- package/es2017/AIMessageList/components/footer/index.d.ts +10 -0
- package/es2017/AIMessageList/components/footer/index.js +296 -0
- package/es2017/AIMessageList/components/footer/index.module.less +51 -0
- package/es2017/AIMessageList/components/header/index.d.ts +9 -0
- package/es2017/AIMessageList/components/header/index.js +94 -0
- package/es2017/AIMessageList/components/header/index.module.less +31 -0
- package/es2017/AIMessageList/components/referencesIcon/index.d.ts +9 -0
- package/es2017/AIMessageList/components/referencesIcon/index.js +37 -0
- package/es2017/AIMessageList/components/referencesIcon/index.module.less +13 -0
- package/es2017/AIMessageList/components/renderReferrnce/index.d.ts +10 -0
- package/es2017/AIMessageList/components/renderReferrnce/index.js +68 -0
- package/es2017/AIMessageList/components/renderReferrnce/index.module.less +64 -0
- package/es2017/AIMessageList/components/sendBtn/index.d.ts +4 -0
- package/es2017/AIMessageList/components/sendBtn/index.js +46 -0
- package/es2017/AIMessageList/components/sendBtn/index.module.less +25 -0
- package/es2017/AIMessageList/components/uplodaFileBtn/index.d.ts +4 -0
- package/es2017/AIMessageList/components/uplodaFileBtn/index.js +33 -0
- package/es2017/AIMessageList/components/uplodaFileBtn/index.module.less +5 -0
- package/es2017/AIMessageList/components/virtuosoList/index.d.ts +5 -0
- package/es2017/AIMessageList/components/virtuosoList/index.js +507 -0
- package/es2017/AIMessageList/components/virtuosoList/index.module.less +381 -0
- package/es2017/AIMessageList/index.d.ts +4 -0
- package/es2017/AIMessageList/index.js +58 -0
- package/es2017/AIMessageList/index.module.less +20 -0
- package/es2017/AIMessageList/type.d.ts +242 -0
- package/es2017/customerService/index.js +1 -0
- package/es2017/images/loading2.js +2 -0
- package/es2017/index.d.ts +1 -0
- package/es2017/index.js +1 -0
- package/es2017/utils/Date.d.ts +2 -1
- package/es2017/utils/Date.js +2 -1
- package/es2017/utils/dom.d.ts +4 -1
- package/es2017/utils/dom.js +44 -1
- package/es2017/utils/number.d.ts +1 -0
- package/es2017/utils/number.js +9 -0
- package/esm/AIMessageList/components/content/index.d.ts +4 -0
- package/esm/AIMessageList/components/content/index.js +29 -0
- package/esm/AIMessageList/components/content/index.module.less +8 -0
- package/esm/AIMessageList/components/copyIcon/index.d.ts +7 -0
- package/esm/AIMessageList/components/copyIcon/index.js +61 -0
- package/esm/AIMessageList/components/copyIcon/index.module.less +22 -0
- package/esm/AIMessageList/components/errorCallback/index.d.ts +3 -0
- package/esm/AIMessageList/components/errorCallback/index.js +6 -0
- package/esm/AIMessageList/components/fileList/fileIcon.d.ts +3 -0
- package/esm/AIMessageList/components/fileList/fileIcon.js +970 -0
- package/esm/AIMessageList/components/fileList/index.d.ts +4 -0
- package/esm/AIMessageList/components/fileList/index.js +325 -0
- package/esm/AIMessageList/components/fileList/index.module.less +95 -0
- package/esm/AIMessageList/components/footer/index.d.ts +10 -0
- package/esm/AIMessageList/components/footer/index.js +304 -0
- package/esm/AIMessageList/components/footer/index.module.less +51 -0
- package/esm/AIMessageList/components/header/index.d.ts +9 -0
- package/esm/AIMessageList/components/header/index.js +96 -0
- package/esm/AIMessageList/components/header/index.module.less +31 -0
- package/esm/AIMessageList/components/referencesIcon/index.d.ts +9 -0
- package/esm/AIMessageList/components/referencesIcon/index.js +39 -0
- package/esm/AIMessageList/components/referencesIcon/index.module.less +13 -0
- package/esm/AIMessageList/components/renderReferrnce/index.d.ts +10 -0
- package/esm/AIMessageList/components/renderReferrnce/index.js +72 -0
- package/esm/AIMessageList/components/renderReferrnce/index.module.less +64 -0
- package/esm/AIMessageList/components/sendBtn/index.d.ts +4 -0
- package/esm/AIMessageList/components/sendBtn/index.js +48 -0
- package/esm/AIMessageList/components/sendBtn/index.module.less +25 -0
- package/esm/AIMessageList/components/uplodaFileBtn/index.d.ts +4 -0
- package/esm/AIMessageList/components/uplodaFileBtn/index.js +33 -0
- package/esm/AIMessageList/components/uplodaFileBtn/index.module.less +5 -0
- package/esm/AIMessageList/components/virtuosoList/index.d.ts +5 -0
- package/esm/AIMessageList/components/virtuosoList/index.js +484 -0
- package/esm/AIMessageList/components/virtuosoList/index.module.less +381 -0
- package/esm/AIMessageList/index.d.ts +4 -0
- package/esm/AIMessageList/index.js +58 -0
- package/esm/AIMessageList/index.module.less +20 -0
- package/esm/AIMessageList/type.d.ts +242 -0
- package/esm/customerService/index.js +1 -0
- package/esm/images/loading2.js +2 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/utils/Date.d.ts +2 -1
- package/esm/utils/Date.js +2 -1
- package/esm/utils/dom.d.ts +4 -1
- package/esm/utils/dom.js +45 -1
- package/esm/utils/number.d.ts +1 -0
- package/esm/utils/number.js +9 -0
- package/package.json +2 -1
|
@@ -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
|
|
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, 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, V as qr, W as Popover, Y as DoubleRightOutlined, $ as CloseCircleFilled, a0 as fetchEventSource, a1 as Divider } from './vendor.esm.es5.development.js';
|
|
2
|
+
export { a2 as Affix, a3 as Alert, a4 as Anchor, a as AntdMessage, A as App, a5 as AutoComplete, a6 as Avatar, a8 as BackTop, a9 as Badge, aa as Breadcrumb, O as Button, ab as Calendar, ac as Card, ad as Carousel, ae as Cascader, af as Checkbox, ag as Col, ah as Collapse, N as DatePicker, ai as Descriptions, a1 as Divider, J as Drawer, aj as Dropdown, ak as Empty, a7 as FloatButton, al as Form, am as Grid, an as Image, x as Input, ao as InputNumber, ap as Layout, aq as List, ar as Mentions, as as Menu, M as Modal, at as Popconfirm, W as Popover, au as Progress, aR as QRCode, av as Radio, aw as Rate, ax as Result, ay as Row, az as Segmented, k as Select, aA as Skeleton, aB as Slider, aC as Space, B as Spin, aD as Statistic, aE as Steps, aF as Switch, aG as Tabs, aH as Tag, aJ as TimePicker, aK as Timeline, T as Tooltip, aL as Tour, aM as Transfer, aN as Tree, aO as TreeSelect, aP as Typography, U as Upload, aQ as Watermark, aT as en_US, b as notification, aI as theme, aS 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 } from 'react';
|
|
4
|
+
import React__default, { useState, useRef, useEffect, useLayoutEffect, forwardRef, useImperativeHandle, useCallback, useMemo } 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$m = {"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$m.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$m.Table, " ").concat(kind === "simple" ? modules_63b47c51$m.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$l = {"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$l.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$l.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$l.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$l.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$k = {"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$k.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$j = {"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$j.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$i = {"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$i.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$i.left, " ").concat(leftClassName),
|
|
1403
1403
|
children: [
|
|
1404
1404
|
leftIcon && /*#__PURE__*/ jsx("div", {
|
|
1405
|
-
className: "".concat(modules_63b47c51$
|
|
1405
|
+
className: "".concat(modules_63b47c51$i.leftIcon, " ").concat(leftIconClassName),
|
|
1406
1406
|
children: leftIcon
|
|
1407
1407
|
}),
|
|
1408
1408
|
/*#__PURE__*/ jsxs("div", {
|
|
1409
|
-
className: modules_63b47c51$
|
|
1409
|
+
className: modules_63b47c51$i.leftContent,
|
|
1410
1410
|
children: [
|
|
1411
1411
|
/*#__PURE__*/ jsx("div", {
|
|
1412
|
-
className: "".concat(modules_63b47c51$
|
|
1412
|
+
className: "".concat(modules_63b47c51$i.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$i.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$i.right, " ").concat(rightClassName),
|
|
1425
1425
|
ref: rightContentRef,
|
|
1426
1426
|
children: renderRightContent()
|
|
1427
1427
|
})
|
|
@@ -1430,14 +1430,57 @@ var TitleBar = function(props) {
|
|
|
1430
1430
|
};
|
|
1431
1431
|
var TitleBar$1 = TitleBar;
|
|
1432
1432
|
|
|
1433
|
-
var modules_63b47c51$
|
|
1433
|
+
var modules_63b47c51$h = {"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
|
+
};
|
|
1439
1482
|
|
|
1440
|
-
var modules_63b47c51$
|
|
1483
|
+
var modules_63b47c51$g = {"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"};
|
|
1441
1484
|
|
|
1442
1485
|
var initConFirmModal = function(obj) {
|
|
1443
1486
|
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;
|
|
@@ -1473,7 +1516,7 @@ var initConFirmModal = function(obj) {
|
|
|
1473
1516
|
})
|
|
1474
1517
|
]
|
|
1475
1518
|
}),
|
|
1476
|
-
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$
|
|
1519
|
+
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$g.confirm, " ").concat(cancelBtn ? "" : modules_63b47c51$g.noCancel)
|
|
1477
1520
|
});
|
|
1478
1521
|
};
|
|
1479
1522
|
var initSuccessModal = function(obj) {
|
|
@@ -1511,7 +1554,7 @@ var initSuccessModal = function(obj) {
|
|
|
1511
1554
|
})
|
|
1512
1555
|
]
|
|
1513
1556
|
}),
|
|
1514
|
-
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$
|
|
1557
|
+
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$g.success, " ").concat(cancelBtn ? "" : modules_63b47c51$g.noCancel)
|
|
1515
1558
|
});
|
|
1516
1559
|
};
|
|
1517
1560
|
var initCustomModal = function(obj) {
|
|
@@ -1537,7 +1580,7 @@ var initCustomModal = function(obj) {
|
|
|
1537
1580
|
})
|
|
1538
1581
|
]
|
|
1539
1582
|
}),
|
|
1540
|
-
className: "".concat(modules_63b47c51$
|
|
1583
|
+
className: "".concat(modules_63b47c51$g.custom, " ").concat(obj.className || "", " ").concat(cancelBtn ? "" : okBtn ? modules_63b47c51$g.haveComfirm : modules_63b47c51$g.noButton)
|
|
1541
1584
|
});
|
|
1542
1585
|
};
|
|
1543
1586
|
var initInfoModal = function(obj) {
|
|
@@ -1574,7 +1617,7 @@ var initInfoModal = function(obj) {
|
|
|
1574
1617
|
})
|
|
1575
1618
|
]
|
|
1576
1619
|
}),
|
|
1577
|
-
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$
|
|
1620
|
+
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$g.success, " ").concat(cancelBtn ? "" : modules_63b47c51$g.noCancel)
|
|
1578
1621
|
});
|
|
1579
1622
|
};
|
|
1580
1623
|
var initWarnModal = function(obj) {
|
|
@@ -1611,7 +1654,7 @@ var initWarnModal = function(obj) {
|
|
|
1611
1654
|
})
|
|
1612
1655
|
]
|
|
1613
1656
|
}),
|
|
1614
|
-
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$
|
|
1657
|
+
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$g.confirm, " ").concat(cancelBtn ? "" : modules_63b47c51$g.noCancel, " ")
|
|
1615
1658
|
});
|
|
1616
1659
|
};
|
|
1617
1660
|
var BhdTipModal = {
|
|
@@ -1725,7 +1768,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
1725
1768
|
_define_property(_assert_this_initialized(_this), "moveImg", function(ev) {
|
|
1726
1769
|
var _this_state = _this.state, imgLeft = _this_state.imgLeft, imgTop = _this_state.imgTop;
|
|
1727
1770
|
ev.preventDefault();
|
|
1728
|
-
var dom = document.getElementsByClassName("".concat(modules_63b47c51$
|
|
1771
|
+
var dom = document.getElementsByClassName("".concat(modules_63b47c51$h.viewImgBody_pic))[0];
|
|
1729
1772
|
if (!dom) return;
|
|
1730
1773
|
if (imgLeft == "auto") {
|
|
1731
1774
|
imgLeft = getStyle(dom, "left");
|
|
@@ -2028,24 +2071,24 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2028
2071
|
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;
|
|
2029
2072
|
var _this_props = this.props, content = _this_props.content, download = _this_props.download;
|
|
2030
2073
|
return /*#__PURE__*/ jsxs("div", {
|
|
2031
|
-
className: modules_63b47c51$
|
|
2074
|
+
className: modules_63b47c51$h.viewImgBody,
|
|
2032
2075
|
children: [
|
|
2033
2076
|
/*#__PURE__*/ jsxs("div", {
|
|
2034
|
-
className: modules_63b47c51$
|
|
2077
|
+
className: modules_63b47c51$h.viewImgContent,
|
|
2035
2078
|
children: [
|
|
2036
2079
|
this.state.actionCloseFlag === 1 && /*#__PURE__*/ jsx("div", {
|
|
2037
|
-
className: "".concat(modules_63b47c51$
|
|
2080
|
+
className: "".concat(modules_63b47c51$h.viewImgAction, " ").concat(modules_63b47c51$h.actionTop),
|
|
2038
2081
|
children: /*#__PURE__*/ jsx("span", {
|
|
2039
2082
|
// id="actionClose"
|
|
2040
2083
|
// style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
|
|
2041
|
-
className: modules_63b47c51$
|
|
2084
|
+
className: modules_63b47c51$h.viewImgActionClose,
|
|
2042
2085
|
title: "关闭",
|
|
2043
2086
|
onClick: this.close,
|
|
2044
2087
|
children: /*#__PURE__*/ jsx(CustomClose$1, {})
|
|
2045
2088
|
})
|
|
2046
2089
|
}),
|
|
2047
2090
|
/*#__PURE__*/ jsxs("div", {
|
|
2048
|
-
className: modules_63b47c51$
|
|
2091
|
+
className: modules_63b47c51$h.viewImgAction,
|
|
2049
2092
|
children: [
|
|
2050
2093
|
/*#__PURE__*/ jsx("span", {
|
|
2051
2094
|
title: "旋转",
|
|
@@ -2058,10 +2101,10 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2058
2101
|
children: /*#__PURE__*/ jsx(CustomDownLoad$1, {})
|
|
2059
2102
|
}),
|
|
2060
2103
|
/*#__PURE__*/ jsxs("div", {
|
|
2061
|
-
className: modules_63b47c51$
|
|
2104
|
+
className: modules_63b47c51$h.viewImgBodyScale,
|
|
2062
2105
|
children: [
|
|
2063
2106
|
/*#__PURE__*/ jsx("span", {
|
|
2064
|
-
className: modules_63b47c51$
|
|
2107
|
+
className: modules_63b47c51$h.viewImgBodyScale_minu,
|
|
2065
2108
|
onClick: function() {
|
|
2066
2109
|
scaleValue = scaleValue - 10;
|
|
2067
2110
|
_this.scaleChange(scaleValue);
|
|
@@ -2069,7 +2112,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2069
2112
|
children: /*#__PURE__*/ jsx(MinusOutlined, {})
|
|
2070
2113
|
}),
|
|
2071
2114
|
/*#__PURE__*/ jsxs("span", {
|
|
2072
|
-
className: modules_63b47c51$
|
|
2115
|
+
className: modules_63b47c51$h.viewImgBodyScale_value,
|
|
2073
2116
|
onClick: this.reset,
|
|
2074
2117
|
children: [
|
|
2075
2118
|
scaleValue,
|
|
@@ -2077,7 +2120,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2077
2120
|
]
|
|
2078
2121
|
}),
|
|
2079
2122
|
/*#__PURE__*/ jsx("span", {
|
|
2080
|
-
className: modules_63b47c51$
|
|
2123
|
+
className: modules_63b47c51$h.viewImgBodyScale_add,
|
|
2081
2124
|
onClick: function() {
|
|
2082
2125
|
scaleValue = scaleValue + 10;
|
|
2083
2126
|
_this.scaleChange(scaleValue);
|
|
@@ -2089,11 +2132,11 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2089
2132
|
]
|
|
2090
2133
|
}),
|
|
2091
2134
|
/*#__PURE__*/ jsxs("div", {
|
|
2092
|
-
className: modules_63b47c51$
|
|
2135
|
+
className: modules_63b47c51$h.viewImgBody,
|
|
2093
2136
|
children: [
|
|
2094
2137
|
loading ? /*#__PURE__*/ jsx("img", {
|
|
2095
2138
|
src: Loading,
|
|
2096
|
-
className: modules_63b47c51$
|
|
2139
|
+
className: modules_63b47c51$h.viewImgBody_load
|
|
2097
2140
|
}, "load") : imgError ? /*#__PURE__*/ jsx("div", {
|
|
2098
2141
|
style: {
|
|
2099
2142
|
color: "#FFFFFF"
|
|
@@ -2144,13 +2187,13 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2144
2187
|
left: imgLeft == "auto" ? "auto" : imgLeft + "px",
|
|
2145
2188
|
top: imgTop == "auto" ? "auto" : imgTop + "px"
|
|
2146
2189
|
},
|
|
2147
|
-
className: modules_63b47c51$
|
|
2190
|
+
className: modules_63b47c51$h.viewImgBody_pic,
|
|
2148
2191
|
onLoad: this.imgLoad,
|
|
2149
2192
|
onError: this.imgErr
|
|
2150
2193
|
}, "img"),
|
|
2151
2194
|
this.state.actionCloseFlag === 0 && /*#__PURE__*/ jsx("span", {
|
|
2152
2195
|
id: "actionClose",
|
|
2153
|
-
className: modules_63b47c51$
|
|
2196
|
+
className: modules_63b47c51$h.viewImgActionClose,
|
|
2154
2197
|
title: "关闭",
|
|
2155
2198
|
onClick: this.close,
|
|
2156
2199
|
children: /*#__PURE__*/ jsx(CustomClose$1, {})
|
|
@@ -2160,12 +2203,12 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2160
2203
|
multiSelect && /*#__PURE__*/ jsxs(Fragment, {
|
|
2161
2204
|
children: [
|
|
2162
2205
|
this.state.curIndex !== 0 && /*#__PURE__*/ jsx("div", {
|
|
2163
|
-
className: modules_63b47c51$
|
|
2206
|
+
className: modules_63b47c51$h.viewImgBody_pre,
|
|
2164
2207
|
onClick: this.preChange,
|
|
2165
2208
|
children: /*#__PURE__*/ jsx(LeftOutlined, {})
|
|
2166
2209
|
}),
|
|
2167
2210
|
this.state.curIndex < this.props.multiSelect.length - 1 && /*#__PURE__*/ jsx("div", {
|
|
2168
|
-
className: modules_63b47c51$
|
|
2211
|
+
className: modules_63b47c51$h.viewImgBody_next,
|
|
2169
2212
|
onClick: this.nextChange,
|
|
2170
2213
|
children: /*#__PURE__*/ jsx(RightOutlined, {})
|
|
2171
2214
|
})
|
|
@@ -2176,7 +2219,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2176
2219
|
]
|
|
2177
2220
|
}),
|
|
2178
2221
|
content && /*#__PURE__*/ jsx("div", {
|
|
2179
|
-
className: modules_63b47c51$
|
|
2222
|
+
className: modules_63b47c51$h.viewImgInfo,
|
|
2180
2223
|
children: content()
|
|
2181
2224
|
})
|
|
2182
2225
|
]
|
|
@@ -2211,7 +2254,7 @@ var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
2211
2254
|
maskStyle: {
|
|
2212
2255
|
background: "rgba(0, 0, 0, 0.65)"
|
|
2213
2256
|
},
|
|
2214
|
-
wrapClassName: "".concat(modules_63b47c51$
|
|
2257
|
+
wrapClassName: "".concat(modules_63b47c51$h.AppViewImage, " ").concat(className || ""),
|
|
2215
2258
|
getContainer: getContainer,
|
|
2216
2259
|
children: visible && /*#__PURE__*/ jsx(ViewImage, _object_spread_props(_object_spread({}, props), {
|
|
2217
2260
|
ref: viewRef
|
|
@@ -2220,9 +2263,9 @@ var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
2220
2263
|
});
|
|
2221
2264
|
var ViewImage$1 = AppViewImage;
|
|
2222
2265
|
|
|
2223
|
-
var modules_63b47c51$
|
|
2266
|
+
var modules_63b47c51$f = {"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"};
|
|
2224
2267
|
|
|
2225
|
-
var Search = Input
|
|
2268
|
+
var Search = Input.Search;
|
|
2226
2269
|
var RenderDrop = function(param) {
|
|
2227
2270
|
var menu = param.menu, bhdDropdownRef = param.bhdDropdownRef, mask = param.mask, initHeight = param.initHeight;
|
|
2228
2271
|
useEffect(function() {
|
|
@@ -2368,12 +2411,12 @@ var BhdSelect = function(props) {
|
|
|
2368
2411
|
//如果需要搜索菜单
|
|
2369
2412
|
if (showSearch) {
|
|
2370
2413
|
return /*#__PURE__*/ jsxs("div", {
|
|
2371
|
-
className: "".concat(modules_63b47c51$
|
|
2414
|
+
className: "".concat(modules_63b47c51$f.bhdSelectDrop, " ").concat(optionClassName),
|
|
2372
2415
|
ref: bhdDropdownRef,
|
|
2373
2416
|
children: [
|
|
2374
2417
|
renderTitle(),
|
|
2375
2418
|
/*#__PURE__*/ jsx("div", {
|
|
2376
|
-
className: modules_63b47c51$
|
|
2419
|
+
className: modules_63b47c51$f.bhdSelectSearch,
|
|
2377
2420
|
style: {
|
|
2378
2421
|
backgroundColor: select_title ? "rgba(0,0,0,0.02)" : "rgba(0,0,0,0)"
|
|
2379
2422
|
},
|
|
@@ -2383,7 +2426,7 @@ var BhdSelect = function(props) {
|
|
|
2383
2426
|
var value = param.target.value;
|
|
2384
2427
|
setFilterValue(value);
|
|
2385
2428
|
},
|
|
2386
|
-
className: "".concat(modules_63b47c51$
|
|
2429
|
+
className: "".concat(modules_63b47c51$f.search, " ").concat(searchClassName || ""),
|
|
2387
2430
|
onKeyDown: function(e) {
|
|
2388
2431
|
e.stopPropagation();
|
|
2389
2432
|
},
|
|
@@ -2395,7 +2438,7 @@ var BhdSelect = function(props) {
|
|
|
2395
2438
|
});
|
|
2396
2439
|
} else {
|
|
2397
2440
|
return /*#__PURE__*/ jsx("div", {
|
|
2398
|
-
className: modules_63b47c51$
|
|
2441
|
+
className: modules_63b47c51$f.bhdSelectDrop,
|
|
2399
2442
|
ref: bhdDropdownRef,
|
|
2400
2443
|
children: dropdownRender ? dropdownRender(menu) : menu
|
|
2401
2444
|
});
|
|
@@ -2410,7 +2453,7 @@ var BhdSelect = function(props) {
|
|
|
2410
2453
|
return select_title;
|
|
2411
2454
|
} else {
|
|
2412
2455
|
return /*#__PURE__*/ jsx("div", {
|
|
2413
|
-
className: modules_63b47c51$
|
|
2456
|
+
className: modules_63b47c51$f.selectTitle,
|
|
2414
2457
|
children: select_title
|
|
2415
2458
|
});
|
|
2416
2459
|
}
|
|
@@ -2434,7 +2477,7 @@ var BhdSelect = function(props) {
|
|
|
2434
2477
|
var getConfig = function() {
|
|
2435
2478
|
var config = _object_spread_props(_object_spread({}, props), {
|
|
2436
2479
|
listHeight: optionHei,
|
|
2437
|
-
popupClassName: "".concat(modules_63b47c51$
|
|
2480
|
+
popupClassName: "".concat(modules_63b47c51$f.bhdSelect_option, " ").concat(popupClassName || "", " "),
|
|
2438
2481
|
suffixIcon: suffixIcon ? suffixIcon : renderSuffixIcon(),
|
|
2439
2482
|
popupMatchSelectWidth: selectWidth,
|
|
2440
2483
|
dropdownStyle: _object_spread_props(_object_spread({}, props.dropdownStyle), {
|
|
@@ -2456,7 +2499,7 @@ var BhdSelect = function(props) {
|
|
|
2456
2499
|
return config;
|
|
2457
2500
|
};
|
|
2458
2501
|
return /*#__PURE__*/ jsx("div", {
|
|
2459
|
-
className: "".concat(modules_63b47c51$
|
|
2502
|
+
className: "".concat(modules_63b47c51$f.BhdSelect, " ").concat(className),
|
|
2460
2503
|
ref: bhdSelectRef,
|
|
2461
2504
|
children: /*#__PURE__*/ jsx(Select, _object_spread_props(_object_spread({}, getConfig()), {
|
|
2462
2505
|
showSearch: false,
|
|
@@ -2511,7 +2554,7 @@ var BhdSelect = function(props) {
|
|
|
2511
2554
|
BhdSelect.Option = Select.Option;
|
|
2512
2555
|
var BhdSelect$1 = BhdSelect;
|
|
2513
2556
|
|
|
2514
|
-
var modules_63b47c51$
|
|
2557
|
+
var modules_63b47c51$e = {"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"};
|
|
2515
2558
|
|
|
2516
2559
|
function BhdAppLayout(props) {
|
|
2517
2560
|
var _filterRef_current, _filterRef, _headRef_current, _headRef, _otherHeadRef_current, _otherHeadRef, _otherContentRef_current, _otherContentRef, _filterConfig, _filterConfig1, _footerConfig;
|
|
@@ -2550,11 +2593,11 @@ function BhdAppLayout(props) {
|
|
|
2550
2593
|
(_otherContentRef = otherContentRef) === null || _otherContentRef === void 0 ? void 0 : (_otherContentRef_current = _otherContentRef.current) === null || _otherContentRef_current === void 0 ? void 0 : _otherContentRef_current.offsetHeight
|
|
2551
2594
|
]);
|
|
2552
2595
|
return /*#__PURE__*/ jsxs("div", {
|
|
2553
|
-
className: "".concat(modules_63b47c51$
|
|
2596
|
+
className: "".concat(modules_63b47c51$e.bhd_app_layout, " ").concat(className || ""),
|
|
2554
2597
|
children: [
|
|
2555
2598
|
/*#__PURE__*/ jsx("header", {
|
|
2556
2599
|
ref: headRef,
|
|
2557
|
-
className: "".concat(modules_63b47c51$
|
|
2600
|
+
className: "".concat(modules_63b47c51$e.bhd_app_layout_header, " ").concat(headerClassName || ""),
|
|
2558
2601
|
children: headConfig && /*#__PURE__*/ jsx(TitleBar$1, _object_spread({}, headConfig))
|
|
2559
2602
|
}),
|
|
2560
2603
|
headContent && /*#__PURE__*/ jsx("div", {
|
|
@@ -2562,30 +2605,30 @@ function BhdAppLayout(props) {
|
|
|
2562
2605
|
children: headContent
|
|
2563
2606
|
}),
|
|
2564
2607
|
/*#__PURE__*/ jsxs("main", {
|
|
2565
|
-
className: modules_63b47c51$
|
|
2608
|
+
className: modules_63b47c51$e.bhd_app_layout_main,
|
|
2566
2609
|
children: [
|
|
2567
2610
|
((_filterConfig = filterConfig) === null || _filterConfig === void 0 ? void 0 : _filterConfig.filterArr) && filterConfig.filterArr.length ? /*#__PURE__*/ jsxs("div", {
|
|
2568
2611
|
ref: filterRef,
|
|
2569
|
-
className: modules_63b47c51$
|
|
2612
|
+
className: modules_63b47c51$e.bhd_app_layout_main_filter,
|
|
2570
2613
|
children: [
|
|
2571
2614
|
/*#__PURE__*/ jsxs("div", {
|
|
2572
|
-
className: modules_63b47c51$
|
|
2615
|
+
className: modules_63b47c51$e.bhd_app_layout_main_filter_title,
|
|
2573
2616
|
children: [
|
|
2574
2617
|
i18Conversion$1("已筛选"),
|
|
2575
2618
|
":"
|
|
2576
2619
|
]
|
|
2577
2620
|
}),
|
|
2578
2621
|
/*#__PURE__*/ jsx("ul", {
|
|
2579
|
-
className: modules_63b47c51$
|
|
2622
|
+
className: modules_63b47c51$e.bhd_app_layout_main_filter_ul,
|
|
2580
2623
|
children: filterConfig.filterArr.map(function(ele, index) {
|
|
2581
2624
|
return /*#__PURE__*/ jsxs("li", {
|
|
2582
2625
|
children: [
|
|
2583
2626
|
/*#__PURE__*/ jsx("span", {
|
|
2584
|
-
className: modules_63b47c51$
|
|
2627
|
+
className: modules_63b47c51$e.bhd_app_layout_main_filter_show_title,
|
|
2585
2628
|
children: ele.title
|
|
2586
2629
|
}),
|
|
2587
2630
|
/*#__PURE__*/ jsxs("span", {
|
|
2588
|
-
className: modules_63b47c51$
|
|
2631
|
+
className: modules_63b47c51$e.bhd_app_layout_main_filter_show_value,
|
|
2589
2632
|
children: [
|
|
2590
2633
|
"“",
|
|
2591
2634
|
ele.value,
|
|
@@ -2604,7 +2647,7 @@ function BhdAppLayout(props) {
|
|
|
2604
2647
|
}),
|
|
2605
2648
|
/*#__PURE__*/ jsx("div", {
|
|
2606
2649
|
onClick: (_filterConfig1 = filterConfig) === null || _filterConfig1 === void 0 ? void 0 : _filterConfig1.onClearAll,
|
|
2607
|
-
className: modules_63b47c51$
|
|
2650
|
+
className: modules_63b47c51$e.bhd_app_layout_main_filter_clear,
|
|
2608
2651
|
children: i18Conversion$1("清空条件")
|
|
2609
2652
|
})
|
|
2610
2653
|
]
|
|
@@ -2614,7 +2657,7 @@ function BhdAppLayout(props) {
|
|
|
2614
2657
|
children: otherContent
|
|
2615
2658
|
}),
|
|
2616
2659
|
/*#__PURE__*/ jsx("div", {
|
|
2617
|
-
className: "".concat(modules_63b47c51$
|
|
2660
|
+
className: "".concat(modules_63b47c51$e.bhd_app_layout_main_table, " ").concat(tableBoxClassName || ""),
|
|
2618
2661
|
children: scrollConfig ? tableConfig && /*#__PURE__*/ jsx(BhdTableSimple$1, _object_spread_props(_object_spread({}, tableConfig), {
|
|
2619
2662
|
pagination: false,
|
|
2620
2663
|
scroll: _object_spread({}, scrollConfig)
|
|
@@ -2623,7 +2666,7 @@ function BhdAppLayout(props) {
|
|
|
2623
2666
|
]
|
|
2624
2667
|
}),
|
|
2625
2668
|
footerConfig ? /*#__PURE__*/ jsxs("footer", {
|
|
2626
|
-
className: modules_63b47c51$
|
|
2669
|
+
className: modules_63b47c51$e.bhd_app_layout_footer,
|
|
2627
2670
|
children: [
|
|
2628
2671
|
/*#__PURE__*/ jsx("div", {
|
|
2629
2672
|
children: ((_footerConfig = footerConfig) === null || _footerConfig === void 0 ? void 0 : _footerConfig.leftDom) && footerConfig.leftDom
|
|
@@ -2635,7 +2678,7 @@ function BhdAppLayout(props) {
|
|
|
2635
2678
|
});
|
|
2636
2679
|
}
|
|
2637
2680
|
|
|
2638
|
-
var modules_63b47c51$
|
|
2681
|
+
var modules_63b47c51$d = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__15161658","ChatWindow_Modal":"index_module_ChatWindow_Modal__15161658","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__15161658","header_wrap":"index_module_header_wrap__15161658","top":"index_module_top__15161658","user":"index_module_user__15161658","count":"index_module_count__15161658","operate":"index_module_operate__15161658","line":"index_module_line__15161658","popover_main":"index_module_popover_main__15161658","popover":"index_module_popover__15161658","header_wrap_newlabo":"index_module_header_wrap_newlabo__15161658","Drawer_main":"index_module_Drawer_main__15161658","loading":"index_module_loading__15161658","message_con":"index_module_message_con__15161658","left":"index_module_left__15161658","head_sculpture":"index_module_head_sculpture__15161658","main_content":"index_module_main_content__15161658","right":"index_module_right__15161658","main":"index_module_main__15161658","main_content_flag":"index_module_main_content_flag__15161658","operate_modal":"index_module_operate_modal__15161658","operate_modal_bottom":"index_module_operate_modal_bottom__15161658","active":"index_module_active__15161658","stop_generate":"index_module_stop_generate__15161658","icon":"index_module_icon__15161658","find_teacher":"index_module_find_teacher__15161658","stop_findTeacher":"index_module_stop_findTeacher__15161658","content":"index_module_content__15161658","content_child":"index_module_content_child__15161658","find_teacher_con":"index_module_find_teacher_con__15161658","sign":"index_module_sign__15161658","ask_question":"index_module_ask_question__15161658","bottom":"index_module_bottom__15161658","association_problem":"index_module_association_problem__15161658","association_problem_flag":"index_module_association_problem_flag__15161658","related_issues_flag":"index_module_related_issues_flag__15161658","img_con":"index_module_img_con__15161658","mask_zoom":"index_module_mask_zoom__15161658","img_con2":"index_module_img_con2__15161658","copyCode":"index_module_copyCode__15161658","time":"index_module_time__15161658","citation_content":"index_module_citation_content__15161658","text_exceed":"index_module_text_exceed__15161658","popover_content":"index_module_popover_content__15161658","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__15161658","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__15161658","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__15161658","issues_list_teacherList":"index_module_issues_list_teacherList__15161658","item":"index_module_item__15161658","issues_list":"index_module_issues_list__15161658","issues_list_flag":"index_module_issues_list_flag__15161658","Drawer_buttom":"index_module_Drawer_buttom__15161658","input_wrap":"index_module_input_wrap__15161658","input":"index_module_input__15161658","picture_layout":"index_module_picture_layout__15161658","icon_close":"index_module_icon_close__15161658","icon_zoom":"index_module_icon_zoom__15161658","anticon":"index_module_anticon__15161658","no_AI":"index_module_no_AI__15161658","screenshot":"index_module_screenshot__15161658","disabled":"index_module_disabled__15161658","content_main":"index_module_content_main__15161658","content_con":"index_module_content_con__15161658","delete_quote":"index_module_delete_quote__15161658","sending":"index_module_sending__15161658","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__15161658","main_list":"index_module_main_list__15161658","chat_content":"index_module_chat_content__15161658","popover_main_content":"index_module_popover_main_content__15161658","popover_main_content_name":"index_module_popover_main_content_name__15161658","teacher_layout":"index_module_teacher_layout__15161658","delete":"index_module_delete__15161658","num":"index_module_num__15161658","shrink":"index_module_shrink__15161658","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__15161658","teacher_layout_modal":"index_module_teacher_layout_modal__15161658","ai":"index_module_ai__15161658","user_info":"index_module_user_info__15161658","message":"index_module_message__15161658","con":"index_module_con__15161658","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__15161658","history_list":"index_module_history_list__15161658","search_layout":"index_module_search_layout__15161658","mymove":"index_module_mymove__15161658","title":"index_module_title__15161658","search_top":"index_module_search_top__15161658","list_item":"index_module_list_item__15161658","list_summary":"index_module_list_summary__15161658","head_img":"index_module_head_img__15161658","list_desc":"index_module_list_desc__15161658","name":"index_module_name__15161658","decs":"index_module_decs__15161658","open":"index_module_open__15161658","list_summary_active":"index_module_list_summary_active__15161658","list_detail":"index_module_list_detail__15161658","list":"index_module_list__15161658","list_more":"index_module_list_more__15161658","no_data":"index_module_no_data__15161658","history_list_broadside":"index_module_history_list_broadside__15161658","teacher_list":"index_module_teacher_list__15161658","screenshot_Modal":"index_module_screenshot_Modal__15161658","ReactCrop":"index_module_ReactCrop__15161658","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__15161658"};
|
|
2639
2682
|
|
|
2640
2683
|
function BaseHOC(key) {
|
|
2641
2684
|
return function(props) {
|
|
@@ -2672,10 +2715,10 @@ function BaseHOC(key) {
|
|
|
2672
2715
|
setFlag(isOnCompositionRef.current);
|
|
2673
2716
|
}
|
|
2674
2717
|
}
|
|
2675
|
-
var Component = Input
|
|
2718
|
+
var Component = Input;
|
|
2676
2719
|
if (key) {
|
|
2677
2720
|
//@ts-ignore
|
|
2678
|
-
Component = Input
|
|
2721
|
+
Component = Input[key];
|
|
2679
2722
|
}
|
|
2680
2723
|
function handlePressEnter(e) {
|
|
2681
2724
|
console.log("isOnCompositionisOnComposition", isOnCompositionRef.current);
|
|
@@ -2702,9 +2745,9 @@ Component.Search = function(props) {
|
|
|
2702
2745
|
Component.TextArea = function(props) {
|
|
2703
2746
|
return BaseHOC("TextArea")(props);
|
|
2704
2747
|
};
|
|
2705
|
-
Component.Password = Input
|
|
2706
|
-
Component.Group = Input
|
|
2707
|
-
var
|
|
2748
|
+
Component.Password = Input.Password;
|
|
2749
|
+
Component.Group = Input.Group;
|
|
2750
|
+
var BhdEnterInput = Component;
|
|
2708
2751
|
|
|
2709
2752
|
//消息已读
|
|
2710
2753
|
var readMessage = function(roomId, urllocation, userData, http) {
|
|
@@ -3140,12 +3183,12 @@ var HistoryFun = function(props) {
|
|
|
3140
3183
|
});
|
|
3141
3184
|
};
|
|
3142
3185
|
return /*#__PURE__*/ jsx("div", {
|
|
3143
|
-
className: "".concat(modules_63b47c51$
|
|
3186
|
+
className: "".concat(modules_63b47c51$d.history_list, " ").concat(type == 2 ? modules_63b47c51$d.history_list_broadside : "", " "),
|
|
3144
3187
|
children: /*#__PURE__*/ jsxs("div", {
|
|
3145
|
-
className: modules_63b47c51$
|
|
3188
|
+
className: modules_63b47c51$d.search_layout,
|
|
3146
3189
|
children: [
|
|
3147
3190
|
/*#__PURE__*/ jsxs("div", {
|
|
3148
|
-
className: modules_63b47c51$
|
|
3191
|
+
className: modules_63b47c51$d.title,
|
|
3149
3192
|
children: [
|
|
3150
3193
|
/*#__PURE__*/ jsx("span", {
|
|
3151
3194
|
children: "历史记录"
|
|
@@ -3160,10 +3203,10 @@ var HistoryFun = function(props) {
|
|
|
3160
3203
|
]
|
|
3161
3204
|
}),
|
|
3162
3205
|
/*#__PURE__*/ jsxs("div", {
|
|
3163
|
-
className: modules_63b47c51$
|
|
3206
|
+
className: modules_63b47c51$d.search_top,
|
|
3164
3207
|
children: [
|
|
3165
3208
|
/*#__PURE__*/ jsx(SearchOutlined, {}),
|
|
3166
|
-
/*#__PURE__*/ jsx(Input
|
|
3209
|
+
/*#__PURE__*/ jsx(Input, {
|
|
3167
3210
|
placeholder: "请输入您要搜索的内容",
|
|
3168
3211
|
value: keyWordProblem,
|
|
3169
3212
|
onChange: function(e) {
|
|
@@ -3196,11 +3239,11 @@ var HistoryFun = function(props) {
|
|
|
3196
3239
|
spinning: loading,
|
|
3197
3240
|
tip: "加载中...",
|
|
3198
3241
|
children: /*#__PURE__*/ jsxs("div", {
|
|
3199
|
-
className: modules_63b47c51$
|
|
3242
|
+
className: modules_63b47c51$d.main_list,
|
|
3200
3243
|
id: "history_list",
|
|
3201
3244
|
children: [
|
|
3202
3245
|
!loading && showLoadingState == 1 && /*#__PURE__*/ jsxs("div", {
|
|
3203
|
-
className: modules_63b47c51$
|
|
3246
|
+
className: modules_63b47c51$d.no_data,
|
|
3204
3247
|
children: [
|
|
3205
3248
|
/*#__PURE__*/ jsx("img", {
|
|
3206
3249
|
src: "/new_yun/images/aiService/search_for_icon.png"
|
|
@@ -3211,7 +3254,7 @@ var HistoryFun = function(props) {
|
|
|
3211
3254
|
]
|
|
3212
3255
|
}),
|
|
3213
3256
|
!loading && showLoadingState == 2 && /*#__PURE__*/ jsxs("div", {
|
|
3214
|
-
className: modules_63b47c51$
|
|
3257
|
+
className: modules_63b47c51$d.no_data,
|
|
3215
3258
|
children: [
|
|
3216
3259
|
/*#__PURE__*/ jsx("img", {
|
|
3217
3260
|
src: "/new_yun/images/aiService/no_data.png"
|
|
@@ -3222,7 +3265,7 @@ var HistoryFun = function(props) {
|
|
|
3222
3265
|
]
|
|
3223
3266
|
}),
|
|
3224
3267
|
!loading && /*#__PURE__*/ jsx("div", {
|
|
3225
|
-
className: modules_63b47c51$
|
|
3268
|
+
className: modules_63b47c51$d.list_item,
|
|
3226
3269
|
children: totalData.map(function(item) {
|
|
3227
3270
|
var span = "";
|
|
3228
3271
|
var time = "";
|
|
@@ -3236,11 +3279,11 @@ var HistoryFun = function(props) {
|
|
|
3236
3279
|
//搜索内容是否有特殊字符
|
|
3237
3280
|
if (reg.test(keyWordProblem)) {
|
|
3238
3281
|
span = message.replaceAll(keyWordProblem, function(e) {
|
|
3239
|
-
return "<span class=".concat(modules_63b47c51$
|
|
3282
|
+
return "<span class=".concat(modules_63b47c51$d.sign, ">").concat(e, "</span>");
|
|
3240
3283
|
});
|
|
3241
3284
|
} else {
|
|
3242
3285
|
span = message.replaceAll(new RegExp(keyWordProblem, "ig"), function(i) {
|
|
3243
|
-
return "<span class=".concat(modules_63b47c51$
|
|
3286
|
+
return "<span class=".concat(modules_63b47c51$d.sign, ">").concat(i, "</span>");
|
|
3244
3287
|
});
|
|
3245
3288
|
}
|
|
3246
3289
|
time = formatDate(item.createdAt);
|
|
@@ -3248,7 +3291,7 @@ var HistoryFun = function(props) {
|
|
|
3248
3291
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
3249
3292
|
children: [
|
|
3250
3293
|
/*#__PURE__*/ jsxs("div", {
|
|
3251
|
-
className: "".concat(modules_63b47c51$
|
|
3294
|
+
className: "".concat(modules_63b47c51$d.list_summary, " ").concat(item.show ? modules_63b47c51$d.list_summary_active : ""),
|
|
3252
3295
|
id: item.roomId,
|
|
3253
3296
|
onClick: function() {
|
|
3254
3297
|
if (item.count == 1) {
|
|
@@ -3259,26 +3302,26 @@ var HistoryFun = function(props) {
|
|
|
3259
3302
|
},
|
|
3260
3303
|
children: [
|
|
3261
3304
|
/*#__PURE__*/ jsx("div", {
|
|
3262
|
-
className: modules_63b47c51$
|
|
3305
|
+
className: modules_63b47c51$d.head_img,
|
|
3263
3306
|
children: item.member == "AI" ? /*#__PURE__*/ jsx(CustomAiIcon$1, {}) : /*#__PURE__*/ jsx("img", {
|
|
3264
3307
|
src: item.headImg
|
|
3265
3308
|
})
|
|
3266
3309
|
}),
|
|
3267
3310
|
/*#__PURE__*/ jsxs("div", {
|
|
3268
|
-
className: modules_63b47c51$
|
|
3311
|
+
className: modules_63b47c51$d.list_desc,
|
|
3269
3312
|
children: [
|
|
3270
3313
|
/*#__PURE__*/ jsxs("p", {
|
|
3271
|
-
className: modules_63b47c51$
|
|
3314
|
+
className: modules_63b47c51$d.name,
|
|
3272
3315
|
children: [
|
|
3273
3316
|
item.member == "AI" ? "AI助手" : item.name,
|
|
3274
3317
|
item.count == 1 ? /*#__PURE__*/ jsx("span", {
|
|
3275
|
-
className: modules_63b47c51$
|
|
3318
|
+
className: modules_63b47c51$d.time,
|
|
3276
3319
|
children: time
|
|
3277
3320
|
}) : ""
|
|
3278
3321
|
]
|
|
3279
3322
|
}),
|
|
3280
3323
|
item.count == 1 ? /*#__PURE__*/ jsx("p", {
|
|
3281
|
-
className: modules_63b47c51$
|
|
3324
|
+
className: modules_63b47c51$d.decs,
|
|
3282
3325
|
style: {
|
|
3283
3326
|
width: "calc(100% - 36px)"
|
|
3284
3327
|
},
|
|
@@ -3286,19 +3329,19 @@ var HistoryFun = function(props) {
|
|
|
3286
3329
|
__html: span
|
|
3287
3330
|
}
|
|
3288
3331
|
}) : /*#__PURE__*/ jsx("p", {
|
|
3289
|
-
className: modules_63b47c51$
|
|
3332
|
+
className: modules_63b47c51$d.decs,
|
|
3290
3333
|
children: "".concat(item.count, "条相关聊天记录")
|
|
3291
3334
|
})
|
|
3292
3335
|
]
|
|
3293
3336
|
}),
|
|
3294
3337
|
item.count != 1 ? /*#__PURE__*/ jsx("div", {
|
|
3295
|
-
className: "".concat(modules_63b47c51$
|
|
3338
|
+
className: "".concat(modules_63b47c51$d.open, " ").concat(item.show ? modules_63b47c51$d.active : ""),
|
|
3296
3339
|
children: /*#__PURE__*/ jsx(CustomExpand$1, {})
|
|
3297
3340
|
}) : ""
|
|
3298
3341
|
]
|
|
3299
3342
|
}),
|
|
3300
3343
|
/*#__PURE__*/ jsxs("div", {
|
|
3301
|
-
className: modules_63b47c51$
|
|
3344
|
+
className: modules_63b47c51$d.list_detail,
|
|
3302
3345
|
children: [
|
|
3303
3346
|
item.show && item.detailsList && item.detailsList.map(function(list) {
|
|
3304
3347
|
// console.log(list,item,'dklfvmdflkvmdfklv')
|
|
@@ -3321,34 +3364,34 @@ var HistoryFun = function(props) {
|
|
|
3321
3364
|
//搜索内容是否有特殊字符
|
|
3322
3365
|
if (reg.test(keyWordProblem)) {
|
|
3323
3366
|
span = message.replaceAll(keyWordProblem, function(e) {
|
|
3324
|
-
return "<span class=".concat(modules_63b47c51$
|
|
3367
|
+
return "<span class=".concat(modules_63b47c51$d.sign, ">").concat(e, "</span>");
|
|
3325
3368
|
});
|
|
3326
3369
|
} else {
|
|
3327
3370
|
span = message.replaceAll(new RegExp(keyWordProblem, "ig"), function(i) {
|
|
3328
3371
|
// console.log(i,'skdcnsdjk')
|
|
3329
|
-
return "<span class=".concat(modules_63b47c51$
|
|
3372
|
+
return "<span class=".concat(modules_63b47c51$d.sign, ">").concat(i, "</span>");
|
|
3330
3373
|
});
|
|
3331
3374
|
}
|
|
3332
3375
|
return /*#__PURE__*/ jsxs("div", {
|
|
3333
|
-
className: modules_63b47c51$
|
|
3376
|
+
className: modules_63b47c51$d.list,
|
|
3334
3377
|
onClick: function() {
|
|
3335
3378
|
calculationData(item.roomId, list.id, list.receiver);
|
|
3336
3379
|
},
|
|
3337
3380
|
children: [
|
|
3338
3381
|
/*#__PURE__*/ jsxs("div", {
|
|
3339
|
-
className: modules_63b47c51$
|
|
3382
|
+
className: modules_63b47c51$d.name,
|
|
3340
3383
|
children: [
|
|
3341
3384
|
/*#__PURE__*/ jsx("p", {
|
|
3342
3385
|
children: name
|
|
3343
3386
|
}),
|
|
3344
3387
|
/*#__PURE__*/ jsx("span", {
|
|
3345
|
-
className: modules_63b47c51$
|
|
3388
|
+
className: modules_63b47c51$d.time,
|
|
3346
3389
|
children: time
|
|
3347
3390
|
})
|
|
3348
3391
|
]
|
|
3349
3392
|
}),
|
|
3350
3393
|
/*#__PURE__*/ jsx("div", {
|
|
3351
|
-
className: modules_63b47c51$
|
|
3394
|
+
className: modules_63b47c51$d.con,
|
|
3352
3395
|
dangerouslySetInnerHTML: {
|
|
3353
3396
|
__html: span
|
|
3354
3397
|
}
|
|
@@ -3357,7 +3400,7 @@ var HistoryFun = function(props) {
|
|
|
3357
3400
|
}, list.id);
|
|
3358
3401
|
}),
|
|
3359
3402
|
item.show && item.pageCount > 1 && item.pageCount > item.pageNum && /*#__PURE__*/ jsx("div", {
|
|
3360
|
-
className: "".concat(modules_63b47c51$
|
|
3403
|
+
className: "".concat(modules_63b47c51$d.list, " ").concat(modules_63b47c51$d.list_more),
|
|
3361
3404
|
onClick: function() {
|
|
3362
3405
|
loadMore(item.pageNum + 1, item.roomId);
|
|
3363
3406
|
},
|
|
@@ -3389,34 +3432,34 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3389
3432
|
};
|
|
3390
3433
|
return type == 2 || type == 4 ? //联系人展开
|
|
3391
3434
|
/*#__PURE__*/ jsxs("div", {
|
|
3392
|
-
className: "".concat(modules_63b47c51$
|
|
3435
|
+
className: "".concat(modules_63b47c51$d.teacher_layout_modal, " ").concat(type == 4 ? modules_63b47c51$d.teacher_layout_modal_newlabo : ""),
|
|
3393
3436
|
children: [
|
|
3394
3437
|
/*#__PURE__*/ jsx("div", {
|
|
3395
|
-
className: modules_63b47c51$
|
|
3438
|
+
className: modules_63b47c51$d.top,
|
|
3396
3439
|
children: /*#__PURE__*/ jsxs("div", {
|
|
3397
|
-
className: "".concat(modules_63b47c51$
|
|
3440
|
+
className: "".concat(modules_63b47c51$d.ai, " ").concat(contactsList.length > 0 && contactsList[0].roomId != undefined && roomId != "" && contactsList[0].roomId == roomId || contactsList.length == 0 ? modules_63b47c51$d.active : ""),
|
|
3398
3441
|
onClick: function() {
|
|
3399
3442
|
return switchChatRoom(contactsList[0].roomId, "");
|
|
3400
3443
|
},
|
|
3401
3444
|
children: [
|
|
3402
3445
|
/*#__PURE__*/ jsx(CustomAiIcon$1, {}),
|
|
3403
3446
|
/*#__PURE__*/ jsxs("div", {
|
|
3404
|
-
className: modules_63b47c51$
|
|
3447
|
+
className: modules_63b47c51$d.user_info,
|
|
3405
3448
|
children: [
|
|
3406
3449
|
/*#__PURE__*/ jsxs("p", {
|
|
3407
|
-
className: modules_63b47c51$
|
|
3450
|
+
className: modules_63b47c51$d.message,
|
|
3408
3451
|
children: [
|
|
3409
3452
|
userData.modules.some(function(ele) {
|
|
3410
3453
|
return ele.short == "AIservice";
|
|
3411
3454
|
}) ? "AI助手" : "智能问答",
|
|
3412
3455
|
/*#__PURE__*/ jsx("span", {
|
|
3413
|
-
className: modules_63b47c51$
|
|
3456
|
+
className: modules_63b47c51$d.time,
|
|
3414
3457
|
children: contactsList.length > 0 && contactsList[0].createdAt != undefined && formatDate(contactsList[0].createdAt)
|
|
3415
3458
|
})
|
|
3416
3459
|
]
|
|
3417
3460
|
}),
|
|
3418
3461
|
/*#__PURE__*/ jsx("p", {
|
|
3419
|
-
className: modules_63b47c51$
|
|
3462
|
+
className: modules_63b47c51$d.con,
|
|
3420
3463
|
children: contactsList.length > 0 && contactsList[0].lastMsg
|
|
3421
3464
|
})
|
|
3422
3465
|
]
|
|
@@ -3427,11 +3470,11 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3427
3470
|
userData.modules.some(function(item) {
|
|
3428
3471
|
return item.short == "TeacherAnswer";
|
|
3429
3472
|
}) && /*#__PURE__*/ jsx("div", {
|
|
3430
|
-
className: modules_63b47c51$
|
|
3473
|
+
className: modules_63b47c51$d.bottom,
|
|
3431
3474
|
children: contactsList.map(function(item, index) {
|
|
3432
3475
|
if (index != 0) {
|
|
3433
3476
|
return /*#__PURE__*/ jsxs("div", {
|
|
3434
|
-
className: "".concat(modules_63b47c51$
|
|
3477
|
+
className: "".concat(modules_63b47c51$d.ai, " ").concat(item.roomId != undefined && roomId != "" && item.roomId == roomId ? modules_63b47c51$d.active : ""),
|
|
3435
3478
|
onClick: function() {
|
|
3436
3479
|
switchChatRoom(item.roomId, "");
|
|
3437
3480
|
},
|
|
@@ -3440,29 +3483,29 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3440
3483
|
src: item.headImg
|
|
3441
3484
|
}),
|
|
3442
3485
|
/*#__PURE__*/ jsxs("div", {
|
|
3443
|
-
className: modules_63b47c51$
|
|
3486
|
+
className: modules_63b47c51$d.user_info,
|
|
3444
3487
|
children: [
|
|
3445
3488
|
/*#__PURE__*/ jsxs("p", {
|
|
3446
|
-
className: modules_63b47c51$
|
|
3489
|
+
className: modules_63b47c51$d.message,
|
|
3447
3490
|
children: [
|
|
3448
3491
|
item.name != undefined && getByteLen(item.name) >= 20 ? /*#__PURE__*/ jsx(Tooltip, {
|
|
3449
|
-
overlayClassName: "".concat(modules_63b47c51$
|
|
3492
|
+
overlayClassName: "".concat(modules_63b47c51$d.popover_main_content_name),
|
|
3450
3493
|
title: item.name,
|
|
3451
3494
|
placement: "top",
|
|
3452
3495
|
children: item.name
|
|
3453
3496
|
}) : item.name,
|
|
3454
3497
|
item.unreadCount != undefined && item.unreadCount > 0 && !(item.roomId != undefined && roomId != "" && item.roomId == roomId) && /*#__PURE__*/ jsx("span", {
|
|
3455
|
-
className: modules_63b47c51$
|
|
3498
|
+
className: modules_63b47c51$d.num,
|
|
3456
3499
|
children: item.unreadCount > 99 ? "99+" : item.unreadCount
|
|
3457
3500
|
}),
|
|
3458
3501
|
/*#__PURE__*/ jsx("span", {
|
|
3459
|
-
className: modules_63b47c51$
|
|
3502
|
+
className: modules_63b47c51$d.time,
|
|
3460
3503
|
children: formatDate(item.createdAt)
|
|
3461
3504
|
})
|
|
3462
3505
|
]
|
|
3463
3506
|
}),
|
|
3464
3507
|
/*#__PURE__*/ jsx("p", {
|
|
3465
|
-
className: modules_63b47c51$
|
|
3508
|
+
className: modules_63b47c51$d.con,
|
|
3466
3509
|
children: item.lastMsg
|
|
3467
3510
|
})
|
|
3468
3511
|
]
|
|
@@ -3476,16 +3519,16 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3476
3519
|
})
|
|
3477
3520
|
]
|
|
3478
3521
|
}) : /*#__PURE__*/ jsxs("div", {
|
|
3479
|
-
className: "".concat(modules_63b47c51$
|
|
3522
|
+
className: "".concat(modules_63b47c51$d.teacher_layout, " ").concat(type == 3 ? modules_63b47c51$d.teacher_layout_newlabo : ""),
|
|
3480
3523
|
style: {
|
|
3481
3524
|
left: type == 3 ? document.getElementById("box") && document.getElementById("box").offsetWidth + 10 + "px" : "auto"
|
|
3482
3525
|
},
|
|
3483
3526
|
children: [
|
|
3484
3527
|
/*#__PURE__*/ jsxs("div", {
|
|
3485
|
-
className: modules_63b47c51$
|
|
3528
|
+
className: modules_63b47c51$d.top,
|
|
3486
3529
|
children: [
|
|
3487
3530
|
/*#__PURE__*/ jsxs("div", {
|
|
3488
|
-
className: "".concat(modules_63b47c51$
|
|
3531
|
+
className: "".concat(modules_63b47c51$d.ai, " ").concat(modules_63b47c51$d.shrink),
|
|
3489
3532
|
onClick: function() {
|
|
3490
3533
|
onClose();
|
|
3491
3534
|
},
|
|
@@ -3500,7 +3543,7 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3500
3543
|
]
|
|
3501
3544
|
}),
|
|
3502
3545
|
/*#__PURE__*/ jsxs("div", {
|
|
3503
|
-
className: "".concat(modules_63b47c51$
|
|
3546
|
+
className: "".concat(modules_63b47c51$d.ai, " ").concat(contactsList.length > 0 && contactsList[0].roomId != undefined && roomId != "" && contactsList[0].roomId == roomId || contactsList.length == 0 ? modules_63b47c51$d.active : ""),
|
|
3504
3547
|
onClick: function() {
|
|
3505
3548
|
switchChatRoom(contactsList[0].roomId, "");
|
|
3506
3549
|
// roomsListTimer();
|
|
@@ -3519,11 +3562,11 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3519
3562
|
userData.modules.some(function(item) {
|
|
3520
3563
|
return item.short == "TeacherAnswer";
|
|
3521
3564
|
}) && /*#__PURE__*/ jsx("div", {
|
|
3522
|
-
className: modules_63b47c51$
|
|
3565
|
+
className: modules_63b47c51$d.bottom,
|
|
3523
3566
|
children: contactsList.map(function(item, index) {
|
|
3524
3567
|
if (index != 0) {
|
|
3525
3568
|
return /*#__PURE__*/ jsxs("div", {
|
|
3526
|
-
className: "".concat(modules_63b47c51$
|
|
3569
|
+
className: "".concat(modules_63b47c51$d.ai, " ").concat(item.roomId != undefined && roomId != "" && item.roomId == roomId ? modules_63b47c51$d.active : ""),
|
|
3527
3570
|
onClick: function() {
|
|
3528
3571
|
switchChatRoom(item.roomId, "");
|
|
3529
3572
|
},
|
|
@@ -3533,19 +3576,19 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3533
3576
|
}),
|
|
3534
3577
|
/*#__PURE__*/ jsx("p", {
|
|
3535
3578
|
children: item.name != undefined && getByteLen(item.name) >= 10 ? /*#__PURE__*/ jsx(Tooltip, {
|
|
3536
|
-
overlayClassName: modules_63b47c51$
|
|
3579
|
+
overlayClassName: modules_63b47c51$d.popover_main_content_name,
|
|
3537
3580
|
title: item.name,
|
|
3538
3581
|
placement: "top",
|
|
3539
3582
|
children: item.name
|
|
3540
3583
|
}) : item.name
|
|
3541
3584
|
}),
|
|
3542
3585
|
item.unreadCount != undefined && item.unreadCount > 0 && !(item.roomId != undefined && roomId != "" && item.roomId == roomId) && /*#__PURE__*/ jsx("span", {
|
|
3543
|
-
className: modules_63b47c51$
|
|
3586
|
+
className: modules_63b47c51$d.num,
|
|
3544
3587
|
children: item.unreadCount > 99 ? "99+" : item.unreadCount
|
|
3545
3588
|
}),
|
|
3546
3589
|
// 没有消息时,可点击删除
|
|
3547
3590
|
!item.unreadCount && /*#__PURE__*/ jsx("span", {
|
|
3548
|
-
className: modules_63b47c51$
|
|
3591
|
+
className: modules_63b47c51$d.delete,
|
|
3549
3592
|
onClick: function(e) {
|
|
3550
3593
|
e.stopPropagation();
|
|
3551
3594
|
deleteRoom(item.roomId);
|
|
@@ -3647,10 +3690,10 @@ var ScreenshotTool = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3647
3690
|
setIsFirst(false);
|
|
3648
3691
|
};
|
|
3649
3692
|
return /*#__PURE__*/ jsxs("div", {
|
|
3650
|
-
className: modules_63b47c51$
|
|
3693
|
+
className: modules_63b47c51$d.screenshot_Modal,
|
|
3651
3694
|
children: [
|
|
3652
3695
|
/*#__PURE__*/ jsx(X, {
|
|
3653
|
-
className: modules_63b47c51$
|
|
3696
|
+
className: modules_63b47c51$d.ReactCrop,
|
|
3654
3697
|
crop: crop,
|
|
3655
3698
|
onChange: function(_, percentCrop) {
|
|
3656
3699
|
if (percentCrop.height === 0 && percentCrop.width === 0) {
|
|
@@ -3676,7 +3719,7 @@ var ScreenshotTool = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3676
3719
|
})
|
|
3677
3720
|
}),
|
|
3678
3721
|
showBtn && /*#__PURE__*/ jsxs("div", {
|
|
3679
|
-
className: modules_63b47c51$
|
|
3722
|
+
className: modules_63b47c51$d.screenshot_Modal_btn,
|
|
3680
3723
|
style: {
|
|
3681
3724
|
top: btnPosition.top,
|
|
3682
3725
|
left: btnPosition.left
|
|
@@ -3863,12 +3906,12 @@ var TeacherList = function(props) {
|
|
|
3863
3906
|
});
|
|
3864
3907
|
};
|
|
3865
3908
|
return /*#__PURE__*/ jsx("div", {
|
|
3866
|
-
className: "".concat(modules_63b47c51$
|
|
3909
|
+
className: "".concat(modules_63b47c51$d.history_list, " ").concat(type == 2 ? modules_63b47c51$d.history_list_broadside : "", " ").concat(modules_63b47c51$d.teacher_list),
|
|
3867
3910
|
children: /*#__PURE__*/ jsxs("div", {
|
|
3868
|
-
className: modules_63b47c51$
|
|
3911
|
+
className: modules_63b47c51$d.search_layout,
|
|
3869
3912
|
children: [
|
|
3870
3913
|
/*#__PURE__*/ jsxs("div", {
|
|
3871
|
-
className: modules_63b47c51$
|
|
3914
|
+
className: modules_63b47c51$d.title,
|
|
3872
3915
|
children: [
|
|
3873
3916
|
/*#__PURE__*/ jsx("span", {
|
|
3874
3917
|
children: "召唤老师回答"
|
|
@@ -3883,10 +3926,10 @@ var TeacherList = function(props) {
|
|
|
3883
3926
|
]
|
|
3884
3927
|
}),
|
|
3885
3928
|
/*#__PURE__*/ jsxs("div", {
|
|
3886
|
-
className: modules_63b47c51$
|
|
3929
|
+
className: modules_63b47c51$d.search_top,
|
|
3887
3930
|
children: [
|
|
3888
3931
|
/*#__PURE__*/ jsx(SearchOutlined, {}),
|
|
3889
|
-
/*#__PURE__*/ jsx(Input
|
|
3932
|
+
/*#__PURE__*/ jsx(Input, {
|
|
3890
3933
|
placeholder: "请输入您要召唤的老师姓名",
|
|
3891
3934
|
value: keyWordProblem,
|
|
3892
3935
|
onChange: function(e) {
|
|
@@ -3916,11 +3959,11 @@ var TeacherList = function(props) {
|
|
|
3916
3959
|
]
|
|
3917
3960
|
}),
|
|
3918
3961
|
/*#__PURE__*/ jsxs("div", {
|
|
3919
|
-
className: modules_63b47c51$
|
|
3962
|
+
className: modules_63b47c51$d.main_list,
|
|
3920
3963
|
id: "teacher_list",
|
|
3921
3964
|
children: [
|
|
3922
3965
|
showLoadingState == 2 && /*#__PURE__*/ jsxs("div", {
|
|
3923
|
-
className: modules_63b47c51$
|
|
3966
|
+
className: modules_63b47c51$d.no_data,
|
|
3924
3967
|
children: [
|
|
3925
3968
|
/*#__PURE__*/ jsx("img", {
|
|
3926
3969
|
src: "/new_yun/images/aiService/no_data_02.png"
|
|
@@ -3931,30 +3974,30 @@ var TeacherList = function(props) {
|
|
|
3931
3974
|
]
|
|
3932
3975
|
}),
|
|
3933
3976
|
/*#__PURE__*/ jsx("div", {
|
|
3934
|
-
className: modules_63b47c51$
|
|
3977
|
+
className: modules_63b47c51$d.list_item,
|
|
3935
3978
|
ref: sliderRef,
|
|
3936
3979
|
children: showTotalData.map(function(item) {
|
|
3937
3980
|
var span = item.name.replaceAll(new RegExp(keyWordProblem, "ig"), function(i) {
|
|
3938
|
-
return "<span class=".concat(modules_63b47c51$
|
|
3981
|
+
return "<span class=".concat(modules_63b47c51$d.sign, ">").concat(i, "</span>");
|
|
3939
3982
|
});
|
|
3940
3983
|
return /*#__PURE__*/ jsx(Fragment, {
|
|
3941
3984
|
children: /*#__PURE__*/ jsxs("div", {
|
|
3942
|
-
className: "".concat(modules_63b47c51$
|
|
3985
|
+
className: "".concat(modules_63b47c51$d.list_summary),
|
|
3943
3986
|
id: item.roomId,
|
|
3944
3987
|
onClick: function() {
|
|
3945
3988
|
enterTeacherChat(item);
|
|
3946
3989
|
},
|
|
3947
3990
|
children: [
|
|
3948
3991
|
/*#__PURE__*/ jsx("div", {
|
|
3949
|
-
className: modules_63b47c51$
|
|
3992
|
+
className: modules_63b47c51$d.head_img,
|
|
3950
3993
|
children: /*#__PURE__*/ jsx("img", {
|
|
3951
3994
|
src: item.headImg
|
|
3952
3995
|
})
|
|
3953
3996
|
}),
|
|
3954
3997
|
/*#__PURE__*/ jsx("div", {
|
|
3955
|
-
className: modules_63b47c51$
|
|
3998
|
+
className: modules_63b47c51$d.list_desc,
|
|
3956
3999
|
children: /*#__PURE__*/ jsx("p", {
|
|
3957
|
-
className: modules_63b47c51$
|
|
4000
|
+
className: modules_63b47c51$d.name,
|
|
3958
4001
|
style: {
|
|
3959
4002
|
width: "calc(100% - 36px)"
|
|
3960
4003
|
},
|
|
@@ -3990,7 +4033,8 @@ var parseDate = function(dateStr) {
|
|
|
3990
4033
|
day: day,
|
|
3991
4034
|
hours: hours,
|
|
3992
4035
|
minutes: minutes,
|
|
3993
|
-
seconds: seconds
|
|
4036
|
+
seconds: seconds,
|
|
4037
|
+
timestamp: date.getTime()
|
|
3994
4038
|
};
|
|
3995
4039
|
};
|
|
3996
4040
|
|
|
@@ -8082,8 +8126,8 @@ var ScreenShot = /*#__PURE__*/ function() {
|
|
|
8082
8126
|
return ScreenShot;
|
|
8083
8127
|
}();
|
|
8084
8128
|
|
|
8085
|
-
var styles = modules_63b47c51$
|
|
8086
|
-
var TextArea =
|
|
8129
|
+
var styles = modules_63b47c51$d;
|
|
8130
|
+
var TextArea$1 = BhdEnterInput.TextArea;
|
|
8087
8131
|
/*
|
|
8088
8132
|
自定义remarkable的text解析规则
|
|
8089
8133
|
*/ var HTML_ESCAPE_TEST_RE = /[&<>"]/;
|
|
@@ -8523,6 +8567,7 @@ var CustomerService = function(props) {
|
|
|
8523
8567
|
message.replaceAll(new RegExp(/```(?:.|\n)*?```/, "ig"), function(con) {
|
|
8524
8568
|
i++;
|
|
8525
8569
|
if (i == position) {
|
|
8570
|
+
con = con.replace(/^```[\s\S]*?\n/, "").replace(/\n```$/, "");
|
|
8526
8571
|
codeConment = con;
|
|
8527
8572
|
return con;
|
|
8528
8573
|
} else {
|
|
@@ -11164,7 +11209,7 @@ var CustomerService = function(props) {
|
|
|
11164
11209
|
})
|
|
11165
11210
|
]
|
|
11166
11211
|
}),
|
|
11167
|
-
/*#__PURE__*/ jsx(TextArea, {
|
|
11212
|
+
/*#__PURE__*/ jsx(TextArea$1, {
|
|
11168
11213
|
placeholder: placeholder,
|
|
11169
11214
|
autoSize: {
|
|
11170
11215
|
minRows: 1,
|
|
@@ -12039,7 +12084,7 @@ window.appendDom = function(root, props) {
|
|
|
12039
12084
|
};
|
|
12040
12085
|
var CustomerService$1 = CustomerService;
|
|
12041
12086
|
|
|
12042
|
-
var modules_63b47c51$
|
|
12087
|
+
var modules_63b47c51$c = {"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"};
|
|
12043
12088
|
|
|
12044
12089
|
var RangePicker = DatePicker.RangePicker;
|
|
12045
12090
|
var months = [
|
|
@@ -12234,22 +12279,22 @@ var BhdDatePicker = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12234
12279
|
}
|
|
12235
12280
|
// 单选
|
|
12236
12281
|
if (kind === "single") {
|
|
12237
|
-
config.popupClassName = "\n ".concat(modules_63b47c51$
|
|
12282
|
+
config.popupClassName = "\n ".concat(modules_63b47c51$c.bhdDatePickerPopup, " ").concat(modules_63b47c51$c.singlePicker, " ").concat(popupClassName || "", " ").concat(showTime ? modules_63b47c51$c.showTime : "", " ").concat(renderExtraFooter ? modules_63b47c51$c.showExtraFooter : "");
|
|
12238
12283
|
}
|
|
12239
12284
|
// 范围选择
|
|
12240
12285
|
if (kind === "range") {
|
|
12241
|
-
config.popupClassName = "".concat(modules_63b47c51$
|
|
12286
|
+
config.popupClassName = "".concat(modules_63b47c51$c.bhdDatePickerPopup, " ").concat(modules_63b47c51$c.rangePicker, " ").concat(popupClassName || "", " ").concat(showTime ? modules_63b47c51$c.showTime : "", " ").concat(renderExtraFooter ? modules_63b47c51$c.showExtraFooter : "");
|
|
12242
12287
|
}
|
|
12243
12288
|
// 日常安排
|
|
12244
12289
|
if (kind === "extra") {
|
|
12245
12290
|
delete config.showTime; // 日程安排的时候,不允许展示时间面板
|
|
12246
12291
|
showTime = false; // 日程安排不选择时间
|
|
12247
|
-
config.popupClassName = "".concat(modules_63b47c51$
|
|
12292
|
+
config.popupClassName = "".concat(modules_63b47c51$c.bhdDatePickerPopup, " ").concat(modules_63b47c51$c.extraPicker, " ").concat(extraReadonly ? modules_63b47c51$c.readonly : "", " ").concat(popupClassName || "", " ").concat(showTime ? modules_63b47c51$c.showTime : "", " ").concat(renderExtraFooter ? modules_63b47c51$c.showExtraFooter : "");
|
|
12248
12293
|
if (extraReadonly) {
|
|
12249
12294
|
config.allowClear = false; // 日程安排查看时,不显示清除按钮
|
|
12250
12295
|
}
|
|
12251
12296
|
}
|
|
12252
|
-
config.popupClassName = "".concat(config.popupClassName, " ").concat(dropdownClassName, " ").concat(needConfirm ? "" : modules_63b47c51$
|
|
12297
|
+
config.popupClassName = "".concat(config.popupClassName, " ").concat(dropdownClassName, " ").concat(needConfirm ? "" : modules_63b47c51$c.noNeedConfirm, " ").concat(id);
|
|
12253
12298
|
return config;
|
|
12254
12299
|
};
|
|
12255
12300
|
// 设置默认mode
|
|
@@ -12542,7 +12587,7 @@ var BhdDatePicker = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12542
12587
|
}
|
|
12543
12588
|
};
|
|
12544
12589
|
return /*#__PURE__*/ jsxs("span", {
|
|
12545
|
-
className: "".concat(modules_63b47c51$
|
|
12590
|
+
className: "".concat(modules_63b47c51$c.bhdDatePicker),
|
|
12546
12591
|
ref: bhdDatePickerRef,
|
|
12547
12592
|
children: [
|
|
12548
12593
|
(kind === "single" || kind === "extra") && /*#__PURE__*/ jsx(Fragment, {
|
|
@@ -12723,7 +12768,7 @@ var BhdDatePicker = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12723
12768
|
});
|
|
12724
12769
|
var BhdDatePicker$1 = BhdDatePicker;
|
|
12725
12770
|
|
|
12726
|
-
var modules_63b47c51 = {"BhdModalCropper":"index_module_BhdModalCropper__36cc44f0","cropperBox":"index_module_cropperBox__36cc44f0","cropperBtn":"index_module_cropperBtn__36cc44f0","icons":"index_module_icons__36cc44f0"};
|
|
12771
|
+
var modules_63b47c51$b = {"BhdModalCropper":"index_module_BhdModalCropper__36cc44f0","cropperBox":"index_module_cropperBox__36cc44f0","cropperBtn":"index_module_cropperBtn__36cc44f0","icons":"index_module_icons__36cc44f0"};
|
|
12727
12772
|
|
|
12728
12773
|
var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
12729
12774
|
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 ? [
|
|
@@ -12802,13 +12847,13 @@ var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12802
12847
|
};
|
|
12803
12848
|
return /*#__PURE__*/ jsx(Modal$1, _object_spread_props(_object_spread({}, props), {
|
|
12804
12849
|
centered: centered,
|
|
12805
|
-
wrapClassName: "".concat(wrapClassName, " ").concat(modules_63b47c51.BhdModalCropper),
|
|
12850
|
+
wrapClassName: "".concat(wrapClassName, " ").concat(modules_63b47c51$b.BhdModalCropper),
|
|
12806
12851
|
width: width,
|
|
12807
12852
|
children: open && /*#__PURE__*/ jsxs("div", {
|
|
12808
|
-
className: modules_63b47c51.cropperBox,
|
|
12853
|
+
className: modules_63b47c51$b.cropperBox,
|
|
12809
12854
|
children: [
|
|
12810
12855
|
/*#__PURE__*/ jsx("div", {
|
|
12811
|
-
className: modules_63b47c51.cropperMain,
|
|
12856
|
+
className: modules_63b47c51$b.cropperMain,
|
|
12812
12857
|
children: /*#__PURE__*/ jsx(l, _object_spread_props(_object_spread({
|
|
12813
12858
|
src: imgSrc,
|
|
12814
12859
|
orginStyle: {
|
|
@@ -12831,7 +12876,7 @@ var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12831
12876
|
}))
|
|
12832
12877
|
}),
|
|
12833
12878
|
/*#__PURE__*/ jsxs("div", {
|
|
12834
|
-
className: modules_63b47c51.cropperBtn,
|
|
12879
|
+
className: modules_63b47c51$b.cropperBtn,
|
|
12835
12880
|
children: [
|
|
12836
12881
|
/*#__PURE__*/ jsx(Upload, {
|
|
12837
12882
|
fileList: [],
|
|
@@ -12842,7 +12887,7 @@ var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12842
12887
|
})
|
|
12843
12888
|
}),
|
|
12844
12889
|
/*#__PURE__*/ jsxs("div", {
|
|
12845
|
-
className: modules_63b47c51.icons,
|
|
12890
|
+
className: modules_63b47c51$b.icons,
|
|
12846
12891
|
children: [
|
|
12847
12892
|
/*#__PURE__*/ jsx("span", {
|
|
12848
12893
|
onClick: function() {
|
|
@@ -12866,4 +12911,2494 @@ var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12866
12911
|
});
|
|
12867
12912
|
var BhdModalCropper$1 = BhdModalCropper;
|
|
12868
12913
|
|
|
12869
|
-
|
|
12914
|
+
var modules_63b47c51$a = {"root":"index_module_root__b60b60e0","rootHeader":"index_module_rootHeader__b60b60e0","rootContent":"index_module_rootContent__b60b60e0","rootFooter":"index_module_rootFooter__b60b60e0"};
|
|
12915
|
+
|
|
12916
|
+
var modules_63b47c51$9 = {"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"};
|
|
12917
|
+
|
|
12918
|
+
var defaultProps$1 = {
|
|
12919
|
+
icon: /*#__PURE__*/ jsx("i", {
|
|
12920
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
12921
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12922
|
+
width: "1em",
|
|
12923
|
+
height: "1em",
|
|
12924
|
+
viewBox: "0 0 16 16",
|
|
12925
|
+
fill: "none",
|
|
12926
|
+
children: [
|
|
12927
|
+
/*#__PURE__*/ jsx("path", {
|
|
12928
|
+
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",
|
|
12929
|
+
fill: "url(#paint0_linear_34_244)"
|
|
12930
|
+
}),
|
|
12931
|
+
/*#__PURE__*/ jsx("path", {
|
|
12932
|
+
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",
|
|
12933
|
+
fill: "url(#paint1_linear_34_244)"
|
|
12934
|
+
}),
|
|
12935
|
+
/*#__PURE__*/ jsxs("defs", {
|
|
12936
|
+
children: [
|
|
12937
|
+
/*#__PURE__*/ jsxs("linearGradient", {
|
|
12938
|
+
id: "paint0_linear_34_244",
|
|
12939
|
+
x1: "14.609",
|
|
12940
|
+
y1: "0",
|
|
12941
|
+
x2: "-0.275842",
|
|
12942
|
+
y2: "13.609",
|
|
12943
|
+
gradientUnits: "userSpaceOnUse",
|
|
12944
|
+
children: [
|
|
12945
|
+
/*#__PURE__*/ jsx("stop", {
|
|
12946
|
+
"stop-color": "#F87AFD"
|
|
12947
|
+
}),
|
|
12948
|
+
/*#__PURE__*/ jsx("stop", {
|
|
12949
|
+
offset: "1",
|
|
12950
|
+
"stop-color": "#41DAF8"
|
|
12951
|
+
})
|
|
12952
|
+
]
|
|
12953
|
+
}),
|
|
12954
|
+
/*#__PURE__*/ jsxs("linearGradient", {
|
|
12955
|
+
id: "paint1_linear_34_244",
|
|
12956
|
+
x1: "14.609",
|
|
12957
|
+
y1: "0",
|
|
12958
|
+
x2: "-0.275842",
|
|
12959
|
+
y2: "13.609",
|
|
12960
|
+
gradientUnits: "userSpaceOnUse",
|
|
12961
|
+
children: [
|
|
12962
|
+
/*#__PURE__*/ jsx("stop", {
|
|
12963
|
+
"stop-color": "#F87AFD"
|
|
12964
|
+
}),
|
|
12965
|
+
/*#__PURE__*/ jsx("stop", {
|
|
12966
|
+
offset: "1",
|
|
12967
|
+
"stop-color": "#41DAF8"
|
|
12968
|
+
})
|
|
12969
|
+
]
|
|
12970
|
+
})
|
|
12971
|
+
]
|
|
12972
|
+
})
|
|
12973
|
+
]
|
|
12974
|
+
})
|
|
12975
|
+
}),
|
|
12976
|
+
className: "",
|
|
12977
|
+
renderRightHead: function() {
|
|
12978
|
+
return null;
|
|
12979
|
+
}
|
|
12980
|
+
};
|
|
12981
|
+
var Header$1 = function(props) {
|
|
12982
|
+
var headerConfig = props.headerConfig, prefix = props.prefix;
|
|
12983
|
+
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;
|
|
12984
|
+
var getCls = function(clsName) {
|
|
12985
|
+
return modules_63b47c51$9[clsName] + " " + prefix + "-" + clsName;
|
|
12986
|
+
};
|
|
12987
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
12988
|
+
className: "".concat(getCls("header"), " ").concat(className),
|
|
12989
|
+
children: [
|
|
12990
|
+
/*#__PURE__*/ jsxs("div", {
|
|
12991
|
+
className: getCls("headerLeft"),
|
|
12992
|
+
children: [
|
|
12993
|
+
/*#__PURE__*/ jsx("div", {
|
|
12994
|
+
className: getCls("headerIcon"),
|
|
12995
|
+
children: icon
|
|
12996
|
+
}),
|
|
12997
|
+
/*#__PURE__*/ jsx("div", {
|
|
12998
|
+
className: getCls("headerTitle"),
|
|
12999
|
+
children: title
|
|
13000
|
+
})
|
|
13001
|
+
]
|
|
13002
|
+
}),
|
|
13003
|
+
/*#__PURE__*/ jsx("div", {
|
|
13004
|
+
className: getCls("headerRight"),
|
|
13005
|
+
children: renderRightHead()
|
|
13006
|
+
})
|
|
13007
|
+
]
|
|
13008
|
+
});
|
|
13009
|
+
};
|
|
13010
|
+
var Header$2 = Header$1;
|
|
13011
|
+
|
|
13012
|
+
var modules_63b47c51$8 = {"content":"index_module_content__fcd2c97c","contentList":"index_module_contentList__fcd2c97c"};
|
|
13013
|
+
|
|
13014
|
+
var modules_63b47c51$7 = {"virtuosoList-wrapper":"index_module_virtuosoListWrapper__99a4179c","loadingIcon":"index_module_loadingIcon__99a4179c","msg-date":"index_module_msgDate__99a4179c","msgItem":"index_module_msgItem__99a4179c","msgItem-box":"index_module_msgItemBox__99a4179c","msgItem-content":"index_module_msgItemContent__99a4179c","msgItem-text":"index_module_msgItemText__99a4179c","copyCode":"index_module_copyCode__99a4179c","copyCodeFun":"index_module_copyCodeFun__99a4179c","copyCodeText":"index_module_copyCodeText__99a4179c","icon":"index_module_icon__99a4179c","copy":"index_module_copy__99a4179c","copy_success":"index_module_copy_success__99a4179c","copy_success_flag":"index_module_copy_success_flag__99a4179c","msgItem-action":"index_module_msgItemAction__99a4179c","msgItem-action-right":"index_module_msgItemActionRight__99a4179c","msgItem-action-operate":"index_module_msgItemActionOperate__99a4179c","msgItem-action-popover":"index_module_msgItemActionPopover__99a4179c","msgItem-action-popover-floatTop":"index_module_msgItemActionPopoverFloatTop__99a4179c","msgItem-action-popover-floatBottom":"index_module_msgItemActionPopoverFloatBottom__99a4179c","msgItem-references-text":"index_module_msgItemReferencesText__99a4179c","msgItem-left":"index_module_msgItemLeft__99a4179c","msgItem-right":"index_module_msgItemRight__99a4179c"};
|
|
13015
|
+
|
|
13016
|
+
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=";
|
|
13017
|
+
var loading2Gif = loading2;
|
|
13018
|
+
|
|
13019
|
+
var modules_63b47c51$6 = {"msgItem-action-copy":"index_module_msgItemActionCopy__163df76c","msgItem-action-copy-success":"index_module_msgItemActionCopySuccess__163df76c"};
|
|
13020
|
+
|
|
13021
|
+
var copyIconSvg = /*#__PURE__*/ jsx("i", {
|
|
13022
|
+
children: /*#__PURE__*/ jsx("svg", {
|
|
13023
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13024
|
+
width: "1em",
|
|
13025
|
+
height: "1em",
|
|
13026
|
+
viewBox: "0 0 20 20",
|
|
13027
|
+
fill: "currentColor",
|
|
13028
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
13029
|
+
d: "M7.97375 3H15.7106C16.0526 3 16.3806 3.13585 16.6224 3.37768C16.8642 3.6195 17.0001 3.94748 17.0001 4.28947V12.0263C17.0001 12.3683 16.8642 12.6963 16.6224 12.9381C16.3806 13.1799 16.0526 13.3158 15.7106 13.3158H7.97375C7.63176 13.3158 7.30377 13.1799 7.06195 12.9381C6.82013 12.6963 6.68427 12.3683 6.68427 12.0263V4.28947C6.68427 3.94748 6.82013 3.6195 7.06195 3.37768C7.30377 3.13585 7.63176 3 7.97375 3ZM7.97375 4.10526C7.92489 4.10526 7.87804 4.12467 7.84349 4.15922C7.80894 4.19376 7.78954 4.24062 7.78954 4.28947V12.0263C7.78954 12.0505 7.7943 12.0745 7.80356 12.0968C7.81281 12.1192 7.82638 12.1395 7.84349 12.1566C7.86059 12.1737 7.8809 12.1872 7.90325 12.1965C7.9256 12.2058 7.94955 12.2105 7.97375 12.2105H15.7106C15.7594 12.2105 15.8063 12.1911 15.8408 12.1566C15.8754 12.122 15.8948 12.0752 15.8948 12.0263V4.28947C15.8948 4.24062 15.8754 4.19376 15.8408 4.15922C15.8063 4.12467 15.7594 4.10526 15.7106 4.10526H7.97375ZM12.2106 14.4211C12.2106 14.2745 12.2688 14.1339 12.3724 14.0303C12.4761 13.9266 12.6167 13.8684 12.7632 13.8684C12.9098 13.8684 13.0504 13.9266 13.154 14.0303C13.2576 14.1339 13.3159 14.2745 13.3159 14.4211V15.7105C13.3159 16.0525 13.18 16.3805 12.9382 16.6223C12.6963 16.8641 12.3684 17 12.0264 17H4.28953C3.94755 17 3.61956 16.8641 3.37774 16.6223C3.13592 16.3805 3.00006 16.0525 3.00006 15.7105V7.97368C3.00006 7.63169 3.13592 7.30371 3.37774 7.06189C3.61956 6.82007 3.94755 6.68421 4.28953 6.68421H5.57901C5.72558 6.68421 5.86614 6.74243 5.96978 6.84607C6.07342 6.94971 6.13164 7.09028 6.13164 7.23684C6.13164 7.38341 6.07342 7.52397 5.96978 7.62761C5.86614 7.73125 5.72558 7.78947 5.57901 7.78947H4.28953C4.24068 7.78947 4.19382 7.80888 4.15928 7.84343C4.12473 7.87797 4.10532 7.92483 4.10532 7.97368V15.7105C4.10532 15.7594 4.12473 15.8062 4.15928 15.8408C4.19382 15.8753 4.24068 15.8947 4.28953 15.8947H12.0264C12.0752 15.8947 12.1221 15.8753 12.1566 15.8408C12.1912 15.8062 12.2106 15.7594 12.2106 15.7105V14.4211Z"
|
|
13030
|
+
})
|
|
13031
|
+
})
|
|
13032
|
+
});
|
|
13033
|
+
var copySuccessSvg = /*#__PURE__*/ jsx("i", {
|
|
13034
|
+
children: /*#__PURE__*/ jsx("svg", {
|
|
13035
|
+
width: "1em",
|
|
13036
|
+
height: "1em",
|
|
13037
|
+
"shape-rendering": "geometricPrecision",
|
|
13038
|
+
fill: "currentColor",
|
|
13039
|
+
viewBox: "0 0 12 7",
|
|
13040
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13041
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
13042
|
+
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"
|
|
13043
|
+
})
|
|
13044
|
+
})
|
|
13045
|
+
});
|
|
13046
|
+
var CopyIcon = function(props) {
|
|
13047
|
+
var prefix = props.prefix, content = props.content;
|
|
13048
|
+
var _useState = _sliced_to_array(useState(false), 2), copySuccess = _useState[0], setCopySuccess = _useState[1];
|
|
13049
|
+
var timer = useRef(null);
|
|
13050
|
+
useEffect(function() {
|
|
13051
|
+
return function() {
|
|
13052
|
+
clearTimeout(timer.current);
|
|
13053
|
+
};
|
|
13054
|
+
}, []);
|
|
13055
|
+
var getCls = function(clsName) {
|
|
13056
|
+
return modules_63b47c51$6[clsName] + " " + prefix + "-" + clsName;
|
|
13057
|
+
};
|
|
13058
|
+
var copyTextClick = function() {
|
|
13059
|
+
if (copySuccess) return;
|
|
13060
|
+
copyText$1(content);
|
|
13061
|
+
setCopySuccess(true);
|
|
13062
|
+
clearTimeout(timer.current);
|
|
13063
|
+
timer.current = setTimeout(function() {
|
|
13064
|
+
console.log("定时器定时器");
|
|
13065
|
+
setCopySuccess(false);
|
|
13066
|
+
}, 2000);
|
|
13067
|
+
};
|
|
13068
|
+
return /*#__PURE__*/ jsx("div", {
|
|
13069
|
+
onClick: function() {
|
|
13070
|
+
return copyTextClick();
|
|
13071
|
+
},
|
|
13072
|
+
className: "".concat(getCls("msgItem-action-copy"), " ").concat(copySuccess ? getCls("msgItem-action-copy-success") : ""),
|
|
13073
|
+
children: copySuccess ? copySuccessSvg : copyIconSvg
|
|
13074
|
+
});
|
|
13075
|
+
};
|
|
13076
|
+
var CopyIcon$1 = CopyIcon;
|
|
13077
|
+
|
|
13078
|
+
var modules_63b47c51$5 = {"msgItem-action-references":"index_module_msgItemActionReferences__13842348"};
|
|
13079
|
+
|
|
13080
|
+
var referencesIcon = /*#__PURE__*/ jsx("i", {
|
|
13081
|
+
children: /*#__PURE__*/ jsx("svg", {
|
|
13082
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13083
|
+
width: "1em",
|
|
13084
|
+
height: "1em",
|
|
13085
|
+
viewBox: "0 0 20 20",
|
|
13086
|
+
fill: "currentColor",
|
|
13087
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
13088
|
+
d: "M8.28467 5.03809C8.4743 4.91639 8.61455 4.90994 8.76123 5.10059C8.92876 5.31834 9.04161 5.46433 9.09912 5.53906C9.18641 5.65254 9.15264 5.80277 9.06201 5.87988C7.69541 6.75725 6.13959 8.64084 6.02295 9.32031C5.90632 9.99981 6.57509 9.82255 7.66846 10.3311C8.76173 10.8396 9.66644 12.6996 8.15674 14.165C6.64677 15.6306 3.66696 13.9994 4.10107 10.667C4.38007 8.52662 5.77465 6.65005 8.28467 5.03809ZM14.8931 5.03809C15.0828 4.91629 15.2239 4.90989 15.3706 5.10059C15.5383 5.31849 15.6511 5.46448 15.7085 5.53906C15.7958 5.65256 15.7611 5.80278 15.6704 5.87988C14.3038 6.75727 12.748 8.64086 12.6313 9.32031C12.5147 9.99975 13.1836 9.82261 14.2769 10.3311C15.3702 10.8395 16.2751 12.6995 14.7651 14.165C13.2552 15.6306 10.2754 13.9994 10.7095 10.667C10.9885 8.52661 12.3831 6.65005 14.8931 5.03809Z"
|
|
13089
|
+
})
|
|
13090
|
+
})
|
|
13091
|
+
});
|
|
13092
|
+
var ReferencesIcon = function(props) {
|
|
13093
|
+
var prefix = props.prefix, apiRef = props.apiRef, item = props.item;
|
|
13094
|
+
var getCls = function(clsName) {
|
|
13095
|
+
return modules_63b47c51$5[clsName] + " " + prefix + "-" + clsName;
|
|
13096
|
+
};
|
|
13097
|
+
var clickFn = function() {
|
|
13098
|
+
console.log("apiRef", apiRef);
|
|
13099
|
+
if (apiRef && apiRef.footerApi) {
|
|
13100
|
+
console.log("itemitem", item);
|
|
13101
|
+
apiRef.footerApi.setReferences({
|
|
13102
|
+
type: "text",
|
|
13103
|
+
value: item.content
|
|
13104
|
+
});
|
|
13105
|
+
}
|
|
13106
|
+
};
|
|
13107
|
+
return /*#__PURE__*/ jsx("div", {
|
|
13108
|
+
className: "".concat(getCls("msgItem-action-references")),
|
|
13109
|
+
onClick: function() {
|
|
13110
|
+
return clickFn();
|
|
13111
|
+
},
|
|
13112
|
+
children: referencesIcon
|
|
13113
|
+
});
|
|
13114
|
+
};
|
|
13115
|
+
var ReferencesIcon$1 = ReferencesIcon;
|
|
13116
|
+
|
|
13117
|
+
var Header = function(param) {
|
|
13118
|
+
var context = param.context;
|
|
13119
|
+
var prefix = context.prefix, loading = context.loading;
|
|
13120
|
+
if (!loading) return null;
|
|
13121
|
+
var getCls = function(clsName) {
|
|
13122
|
+
return modules_63b47c51$7[clsName] + " " + prefix + "-" + clsName;
|
|
13123
|
+
};
|
|
13124
|
+
return /*#__PURE__*/ jsx("div", {
|
|
13125
|
+
className: "".concat(getCls("loadingIcon")),
|
|
13126
|
+
children: /*#__PURE__*/ jsx("img", {
|
|
13127
|
+
src: loading2Gif,
|
|
13128
|
+
alt: ""
|
|
13129
|
+
})
|
|
13130
|
+
});
|
|
13131
|
+
};
|
|
13132
|
+
var remarkable = new Remarkable({
|
|
13133
|
+
highlight: function highlight(str, lang) {
|
|
13134
|
+
if (lang && HighlightJS.getLanguage(lang)) {
|
|
13135
|
+
try {
|
|
13136
|
+
return HighlightJS.highlight(lang, str).value;
|
|
13137
|
+
} catch (err) {}
|
|
13138
|
+
}
|
|
13139
|
+
try {
|
|
13140
|
+
return HighlightJS.highlightAuto(str).value;
|
|
13141
|
+
} catch (err) {}
|
|
13142
|
+
return ""; // use external default escaping
|
|
13143
|
+
}
|
|
13144
|
+
});
|
|
13145
|
+
var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
13146
|
+
var prefix = props.prefix, contentConfig = props.contentConfig, apiRef = props.apiRef;
|
|
13147
|
+
var getList = contentConfig.getList, coverRenderText = contentConfig.coverRenderText, _contentConfig_msgAction = contentConfig.msgAction, msgAction = _contentConfig_msgAction === void 0 ? [
|
|
13148
|
+
"copy",
|
|
13149
|
+
"references"
|
|
13150
|
+
] : _contentConfig_msgAction, coverRenderReferences = contentConfig.coverRenderReferences;
|
|
13151
|
+
var loadMoreProps = contentConfig.loadMore || true;
|
|
13152
|
+
var virtuosoRef = useRef(null);
|
|
13153
|
+
var _useState = _sliced_to_array(useState(false), 2), loading = _useState[0], setLoading = _useState[1]; // 是否加载中
|
|
13154
|
+
var _useState1 = _sliced_to_array(useState([]), 2), dataSource = _useState1[0], setDataSource = _useState1[1];
|
|
13155
|
+
var _useState2 = _sliced_to_array(useState(0), 2), firstItemIndex = _useState2[0], setFirstItemIndex = _useState2[1];
|
|
13156
|
+
var _useState3 = _sliced_to_array(useState(1), 2), page = _useState3[0], setPage = _useState3[1];
|
|
13157
|
+
var _useState4 = _sliced_to_array(useState(30), 2), pageSize = _useState4[0], setPageSize = _useState4[1];
|
|
13158
|
+
var _useState5 = _sliced_to_array(useState(0), 2), total = _useState5[0], setTotal = _useState5[1];
|
|
13159
|
+
var timerRef = useRef({
|
|
13160
|
+
loadMore: null,
|
|
13161
|
+
scrollTimer: null
|
|
13162
|
+
});
|
|
13163
|
+
var wrapperRef = useRef(null);
|
|
13164
|
+
var recordRef = useRef({
|
|
13165
|
+
page: page,
|
|
13166
|
+
pageSize: pageSize,
|
|
13167
|
+
total: total,
|
|
13168
|
+
dataSource: dataSource,
|
|
13169
|
+
maxPage: Math.ceil(total / pageSize)
|
|
13170
|
+
});
|
|
13171
|
+
var timeRenderCache = useRef(new Map()).current;
|
|
13172
|
+
useImperativeHandle(ref, function() {
|
|
13173
|
+
return {
|
|
13174
|
+
addMsg: function(msg) {
|
|
13175
|
+
setDataSource(function(data) {
|
|
13176
|
+
return _to_consumable_array(data).concat([
|
|
13177
|
+
msg
|
|
13178
|
+
]);
|
|
13179
|
+
});
|
|
13180
|
+
},
|
|
13181
|
+
updateMsg: function(id, obj) {
|
|
13182
|
+
setDataSource(function(data) {
|
|
13183
|
+
return data.map(function(item) {
|
|
13184
|
+
if (item.id === id) {
|
|
13185
|
+
return _object_spread({}, item, obj);
|
|
13186
|
+
}
|
|
13187
|
+
return item;
|
|
13188
|
+
});
|
|
13189
|
+
});
|
|
13190
|
+
},
|
|
13191
|
+
clearInputing: function() {
|
|
13192
|
+
setDataSource(function(data) {
|
|
13193
|
+
return data.filter(function(item) {
|
|
13194
|
+
return item.id !== "inputing";
|
|
13195
|
+
});
|
|
13196
|
+
});
|
|
13197
|
+
}
|
|
13198
|
+
};
|
|
13199
|
+
});
|
|
13200
|
+
useEffect(function() {
|
|
13201
|
+
getData(page, pageSize);
|
|
13202
|
+
var removeFn = delegate$1(wrapperRef.current, "click", ".".concat(modules_63b47c51$7.copyCode), function(event, target) {
|
|
13203
|
+
findCopyContent(event);
|
|
13204
|
+
});
|
|
13205
|
+
return function() {
|
|
13206
|
+
removeFn();
|
|
13207
|
+
clearTimeout(timerRef.current.loadMore);
|
|
13208
|
+
clearTimeout(timerRef.current.scrollTimer);
|
|
13209
|
+
};
|
|
13210
|
+
}, []);
|
|
13211
|
+
useEffect(function() {
|
|
13212
|
+
if (!virtuosoRef.current) return;
|
|
13213
|
+
virtuosoRef.current.scrollToIndex({
|
|
13214
|
+
index: "LAST",
|
|
13215
|
+
behavior: "auto"
|
|
13216
|
+
});
|
|
13217
|
+
clearTimeout(timerRef.current.scrollTimer);
|
|
13218
|
+
timerRef.current.scrollTimer = setTimeout(function() {
|
|
13219
|
+
virtuosoRef.current.scrollToIndex({
|
|
13220
|
+
index: "LAST",
|
|
13221
|
+
behavior: "auto",
|
|
13222
|
+
align: "end"
|
|
13223
|
+
});
|
|
13224
|
+
}, 500);
|
|
13225
|
+
}, [
|
|
13226
|
+
dataSource
|
|
13227
|
+
]);
|
|
13228
|
+
useEffect(function() {
|
|
13229
|
+
recordRef.current.page = page;
|
|
13230
|
+
recordRef.current.pageSize = pageSize;
|
|
13231
|
+
recordRef.current.total = total;
|
|
13232
|
+
recordRef.current.dataSource = dataSource;
|
|
13233
|
+
recordRef.current.maxPage = Math.ceil(total / pageSize);
|
|
13234
|
+
}, [
|
|
13235
|
+
page,
|
|
13236
|
+
pageSize,
|
|
13237
|
+
total,
|
|
13238
|
+
dataSource
|
|
13239
|
+
]);
|
|
13240
|
+
var getData = function(page, pageSize) {
|
|
13241
|
+
setLoading(true);
|
|
13242
|
+
clearTimeout(timerRef.current.loadMore);
|
|
13243
|
+
timerRef.current.loadMore = setTimeout(function() {
|
|
13244
|
+
setLoading(false);
|
|
13245
|
+
getList(page, pageSize).then(function(listObj) {
|
|
13246
|
+
setLoading(false);
|
|
13247
|
+
console.log("listObjlistObj", listObj);
|
|
13248
|
+
setDataSource(function(data) {
|
|
13249
|
+
return _to_consumable_array(data).concat(_to_consumable_array(listObj.dataSource));
|
|
13250
|
+
});
|
|
13251
|
+
setTotal(listObj.total);
|
|
13252
|
+
setPage(page);
|
|
13253
|
+
setPageSize(pageSize);
|
|
13254
|
+
setFirstItemIndex(listObj.total - pageSize * (page - 1));
|
|
13255
|
+
});
|
|
13256
|
+
}, 500);
|
|
13257
|
+
};
|
|
13258
|
+
var getCls = function(clsName) {
|
|
13259
|
+
return modules_63b47c51$7[clsName] + " " + prefix + "-" + clsName;
|
|
13260
|
+
};
|
|
13261
|
+
var loadMore = useCallback(function() {
|
|
13262
|
+
if (!loadMoreProps) return;
|
|
13263
|
+
if (recordRef.current.page >= recordRef.current.maxPage) return;
|
|
13264
|
+
getData(page + 1, pageSize);
|
|
13265
|
+
}, [
|
|
13266
|
+
page,
|
|
13267
|
+
pageSize
|
|
13268
|
+
]);
|
|
13269
|
+
var itemContent = function(index, item) {
|
|
13270
|
+
var timeNode = renderTime(item);
|
|
13271
|
+
var html = markToHtml(item.content, item.id);
|
|
13272
|
+
var contentNode = /*#__PURE__*/ jsx("div", {
|
|
13273
|
+
dangerouslySetInnerHTML: {
|
|
13274
|
+
__html: html
|
|
13275
|
+
}
|
|
13276
|
+
});
|
|
13277
|
+
if (coverRenderText) {
|
|
13278
|
+
contentNode = coverRenderText(item, html);
|
|
13279
|
+
}
|
|
13280
|
+
// 是否显示时间
|
|
13281
|
+
var itemNode = /*#__PURE__*/ jsx("div", {
|
|
13282
|
+
className: "".concat(getCls("msgItem"), " ").concat(item.location === "left" ? getCls("msgItem-left") : getCls("msgItem-right")),
|
|
13283
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
13284
|
+
className: "".concat(getCls("msgItem-box")),
|
|
13285
|
+
"data-id": item.id,
|
|
13286
|
+
onMouseEnter: function() {
|
|
13287
|
+
return onMouseEnter(item);
|
|
13288
|
+
},
|
|
13289
|
+
onMouseLeave: function() {
|
|
13290
|
+
return onMouseLeave(item);
|
|
13291
|
+
},
|
|
13292
|
+
children: [
|
|
13293
|
+
renderAction("floatTop", item),
|
|
13294
|
+
/*#__PURE__*/ jsxs("div", {
|
|
13295
|
+
className: "".concat(getCls("msgItem-content")),
|
|
13296
|
+
children: [
|
|
13297
|
+
/*#__PURE__*/ jsx("div", {
|
|
13298
|
+
className: "".concat(getCls("msgItem-text")),
|
|
13299
|
+
children: contentNode
|
|
13300
|
+
}),
|
|
13301
|
+
renderAction("bottom", item)
|
|
13302
|
+
]
|
|
13303
|
+
}),
|
|
13304
|
+
item.location === "left" && renderAction("floatBottom", item),
|
|
13305
|
+
renderReference(item)
|
|
13306
|
+
]
|
|
13307
|
+
})
|
|
13308
|
+
});
|
|
13309
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
13310
|
+
children: [
|
|
13311
|
+
timeNode,
|
|
13312
|
+
itemNode
|
|
13313
|
+
]
|
|
13314
|
+
});
|
|
13315
|
+
};
|
|
13316
|
+
var renderReference = function(item) {
|
|
13317
|
+
var reference = item.reference;
|
|
13318
|
+
if (!item.reference) return null;
|
|
13319
|
+
var referenceNode = null;
|
|
13320
|
+
if (reference.type === "text") {
|
|
13321
|
+
referenceNode = /*#__PURE__*/ jsx("div", {
|
|
13322
|
+
className: "".concat(getCls("msgItem-references-text")),
|
|
13323
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
13324
|
+
children: reference.value
|
|
13325
|
+
})
|
|
13326
|
+
});
|
|
13327
|
+
}
|
|
13328
|
+
if (coverRenderReferences) {
|
|
13329
|
+
return coverRenderReferences(item, referenceNode);
|
|
13330
|
+
} else {
|
|
13331
|
+
return referenceNode;
|
|
13332
|
+
}
|
|
13333
|
+
};
|
|
13334
|
+
var onMouseEnter = function(item) {
|
|
13335
|
+
var dom = document.querySelector('[data-id="'.concat(item.id, '"]'));
|
|
13336
|
+
var container = wrapperRef.current;
|
|
13337
|
+
if (!dom) return;
|
|
13338
|
+
var topDom = dom.querySelector("." + modules_63b47c51$7["msgItem-action-popover-floatTop"]);
|
|
13339
|
+
var bottomDom = dom.querySelector("." + modules_63b47c51$7["msgItem-action-popover-floatBottom"]);
|
|
13340
|
+
if (!topDom || !bottomDom) return;
|
|
13341
|
+
console.log("itemitem", dom, container);
|
|
13342
|
+
var con_obj = container.getBoundingClientRect(); // 外层盒子
|
|
13343
|
+
var dom_obj = dom.getBoundingClientRect(); // 鼠标滑过元素
|
|
13344
|
+
var y = dom_obj.y - con_obj.y;
|
|
13345
|
+
if (y > 0) {
|
|
13346
|
+
// 元素tou在可视区域内
|
|
13347
|
+
// 判断底部是否在可视区域内
|
|
13348
|
+
if (y + dom_obj.height < con_obj.height) {
|
|
13349
|
+
// 底部在可视区域内
|
|
13350
|
+
// 显示在下边
|
|
13351
|
+
bottomDom.style.cssText = "display:flex";
|
|
13352
|
+
} else {
|
|
13353
|
+
// 显示在上
|
|
13354
|
+
topDom.style.cssText = "display:flex";
|
|
13355
|
+
}
|
|
13356
|
+
} else {
|
|
13357
|
+
console.log("yyyy", y, dom_obj, con_obj, y + dom_obj.height < con_obj.height);
|
|
13358
|
+
// 元素top不在可视区域内
|
|
13359
|
+
if (y + dom_obj.height < con_obj.height) {
|
|
13360
|
+
// 底部在可视区域内
|
|
13361
|
+
// 显示在下边
|
|
13362
|
+
bottomDom.style.cssText = "display:flex";
|
|
13363
|
+
} else {
|
|
13364
|
+
// 头部和底部都不在可视区域内 移动 topDom到可视区域
|
|
13365
|
+
topDom.style.cssText = "display:flex;top:".concat(-1 * y + 24, "px;bottom:auto;");
|
|
13366
|
+
}
|
|
13367
|
+
}
|
|
13368
|
+
};
|
|
13369
|
+
var onMouseLeave = function(item) {
|
|
13370
|
+
var dom = document.querySelector('[data-id="'.concat(item.id, '"]'));
|
|
13371
|
+
if (!dom) return;
|
|
13372
|
+
var topDom = dom.querySelector("." + modules_63b47c51$7["msgItem-action-popover-floatTop"]);
|
|
13373
|
+
var bottomDom = dom.querySelector("." + modules_63b47c51$7["msgItem-action-popover-floatBottom"]);
|
|
13374
|
+
if (!topDom || !bottomDom) return;
|
|
13375
|
+
bottomDom.style.cssText = "";
|
|
13376
|
+
topDom.style.cssText = "";
|
|
13377
|
+
};
|
|
13378
|
+
var renderAction = function(location, item) {
|
|
13379
|
+
var copyNode = /*#__PURE__*/ jsx(CopyIcon$1, {
|
|
13380
|
+
prefix: prefix,
|
|
13381
|
+
content: item.content
|
|
13382
|
+
});
|
|
13383
|
+
var referencesNode = /*#__PURE__*/ jsx(ReferencesIcon$1, {
|
|
13384
|
+
prefix: prefix,
|
|
13385
|
+
apiRef: apiRef,
|
|
13386
|
+
item: item
|
|
13387
|
+
});
|
|
13388
|
+
var leftNodes = null;
|
|
13389
|
+
var rightNodes = /*#__PURE__*/ jsxs(Fragment, {
|
|
13390
|
+
children: [
|
|
13391
|
+
copyNode,
|
|
13392
|
+
referencesNode
|
|
13393
|
+
]
|
|
13394
|
+
});
|
|
13395
|
+
if (msgAction instanceof Array) {
|
|
13396
|
+
if (msgAction.length == 0) return null;
|
|
13397
|
+
// 数组
|
|
13398
|
+
if (!msgAction.includes("copy")) {
|
|
13399
|
+
copyNode = null;
|
|
13400
|
+
}
|
|
13401
|
+
if (!msgAction.includes("references")) {
|
|
13402
|
+
referencesNode = null;
|
|
13403
|
+
}
|
|
13404
|
+
} else if (typeof msgAction === "object") {
|
|
13405
|
+
if (msgAction.renderLeft) {
|
|
13406
|
+
leftNodes = msgAction.renderLeft(copyNode, referencesNode);
|
|
13407
|
+
}
|
|
13408
|
+
if (msgAction.renderRight) {
|
|
13409
|
+
rightNodes = msgAction.renderRight(copyNode, referencesNode);
|
|
13410
|
+
}
|
|
13411
|
+
}
|
|
13412
|
+
var index = recordRef.current.dataSource.findIndex(function(ite) {
|
|
13413
|
+
return ite.id == item.id;
|
|
13414
|
+
});
|
|
13415
|
+
if (location === "bottom") {
|
|
13416
|
+
if (item.location === "left" && item.id !== "helloMsg" && item.id !== "inputing") {
|
|
13417
|
+
if (index === recordRef.current.dataSource.length - 1) {
|
|
13418
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
13419
|
+
className: "".concat(getCls("msgItem-action")),
|
|
13420
|
+
children: [
|
|
13421
|
+
/*#__PURE__*/ jsx("div", {
|
|
13422
|
+
className: "".concat(getCls("msgItem-action-left")),
|
|
13423
|
+
children: leftNodes
|
|
13424
|
+
}),
|
|
13425
|
+
/*#__PURE__*/ jsx("div", {
|
|
13426
|
+
className: "".concat(getCls("msgItem-action-right")),
|
|
13427
|
+
children: rightNodes
|
|
13428
|
+
})
|
|
13429
|
+
]
|
|
13430
|
+
});
|
|
13431
|
+
}
|
|
13432
|
+
}
|
|
13433
|
+
// 只有最后一条才显示底部操作啦 且是左侧消息 且不是招呼语
|
|
13434
|
+
}
|
|
13435
|
+
if (location === "floatTop" || location === "floatBottom") {
|
|
13436
|
+
if (item.location === "left" && item.id !== "helloMsg" && item.id !== "inputing" && index === recordRef.current.dataSource.length - 1) return null;
|
|
13437
|
+
// 浮框
|
|
13438
|
+
return /*#__PURE__*/ jsx("div", {
|
|
13439
|
+
className: "".concat(getCls("msgItem-action-operate")),
|
|
13440
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
13441
|
+
className: "".concat(getCls("msgItem-action"), " ").concat(getCls("msgItem-action-popover"), " ").concat(getCls("msgItem-action-popover-" + location)),
|
|
13442
|
+
children: [
|
|
13443
|
+
/*#__PURE__*/ jsx("div", {
|
|
13444
|
+
className: "".concat(getCls("msgItem-action-left")),
|
|
13445
|
+
children: leftNodes
|
|
13446
|
+
}),
|
|
13447
|
+
/*#__PURE__*/ jsx("div", {
|
|
13448
|
+
className: "".concat(getCls("msgItem-action-right")),
|
|
13449
|
+
children: rightNodes
|
|
13450
|
+
})
|
|
13451
|
+
]
|
|
13452
|
+
})
|
|
13453
|
+
});
|
|
13454
|
+
}
|
|
13455
|
+
return null;
|
|
13456
|
+
};
|
|
13457
|
+
var markToHtml = function(markStr, id) {
|
|
13458
|
+
var html = remarkable.render(markStr);
|
|
13459
|
+
var position = 0;
|
|
13460
|
+
html = html.replace(new RegExp("<pre", "ig"), function() {
|
|
13461
|
+
position++;
|
|
13462
|
+
return "<p class='".concat(getCls("copyCode"), " ").concat(modules_63b47c51$7.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');
|
|
13463
|
+
});
|
|
13464
|
+
return html;
|
|
13465
|
+
};
|
|
13466
|
+
var renderTime = function(item) {
|
|
13467
|
+
// 生成缓存键
|
|
13468
|
+
var cacheKey = "".concat(item.id);
|
|
13469
|
+
// 检查缓存中是否已有结果
|
|
13470
|
+
if (timeRenderCache.has(cacheKey)) {
|
|
13471
|
+
return timeRenderCache.get(cacheKey);
|
|
13472
|
+
}
|
|
13473
|
+
var index = recordRef.current.dataSource.findIndex(function(i) {
|
|
13474
|
+
return i.id === item.id;
|
|
13475
|
+
});
|
|
13476
|
+
var timeObj = parseDate(item.createTime);
|
|
13477
|
+
var time = null;
|
|
13478
|
+
if (index === 0) {
|
|
13479
|
+
// 第一项 显示年月日 时分
|
|
13480
|
+
time = "".concat(timeObj.year, "-").concat(timeObj.month, "-").concat(timeObj.day, " ").concat(timeObj.hours, ":").concat(timeObj.minutes);
|
|
13481
|
+
} else {
|
|
13482
|
+
// 非第一项 与上一项进行对比
|
|
13483
|
+
var prevItem = recordRef.current.dataSource[index - 1];
|
|
13484
|
+
if (prevItem) {
|
|
13485
|
+
var beforeTime = prevItem.createTime;
|
|
13486
|
+
var beforeTimeObj = parseDate(beforeTime);
|
|
13487
|
+
// 判断与上一条数据 是否跨天
|
|
13488
|
+
if (timeObj.year !== beforeTimeObj.year || timeObj.month !== beforeTimeObj.month || timeObj.day !== beforeTimeObj.day) {
|
|
13489
|
+
// 显示 年月日 时分
|
|
13490
|
+
time = "".concat(timeObj.year, "-").concat(timeObj.month, "-").concat(timeObj.day, " ").concat(timeObj.hours, ":").concat(timeObj.minutes);
|
|
13491
|
+
} else {
|
|
13492
|
+
// 没有跨天 判断是否相隔超过10分钟
|
|
13493
|
+
if (timeObj.timestamp - beforeTimeObj.timestamp > 10 * 60 * 1000) {
|
|
13494
|
+
// 超过10分钟 显示 时分
|
|
13495
|
+
time = "".concat(timeObj.hours, ":").concat(timeObj.minutes);
|
|
13496
|
+
}
|
|
13497
|
+
}
|
|
13498
|
+
}
|
|
13499
|
+
}
|
|
13500
|
+
var result = time ? /*#__PURE__*/ jsx("div", {
|
|
13501
|
+
className: "".concat(getCls("msg-date")),
|
|
13502
|
+
children: time
|
|
13503
|
+
}) : null;
|
|
13504
|
+
// 将结果存入缓存
|
|
13505
|
+
timeRenderCache.set(cacheKey, result);
|
|
13506
|
+
return result;
|
|
13507
|
+
};
|
|
13508
|
+
var findCopyContent = function(e) {
|
|
13509
|
+
var source = findParent$1(e.target, modules_63b47c51$7.copyCode);
|
|
13510
|
+
if (!source) return;
|
|
13511
|
+
var id = source.getAttribute("data-id");
|
|
13512
|
+
var position = source.getAttribute("data-position");
|
|
13513
|
+
if (!id && !position) return;
|
|
13514
|
+
var message = "";
|
|
13515
|
+
recordRef.current.dataSource.forEach(function(item) {
|
|
13516
|
+
if (item.id === id) {
|
|
13517
|
+
message = item.content;
|
|
13518
|
+
}
|
|
13519
|
+
});
|
|
13520
|
+
if (!message) return;
|
|
13521
|
+
var codeConment = "";
|
|
13522
|
+
var i = 0;
|
|
13523
|
+
message.replaceAll(new RegExp(/```(?:.|\n)*?```/, "ig"), function(con) {
|
|
13524
|
+
i++;
|
|
13525
|
+
if (i == position) {
|
|
13526
|
+
// 异常标记
|
|
13527
|
+
con = con.replace(/^```[\s\S]*?\n/, "").replace(/\n```$/, "");
|
|
13528
|
+
codeConment = con;
|
|
13529
|
+
return con;
|
|
13530
|
+
} else {
|
|
13531
|
+
return null;
|
|
13532
|
+
}
|
|
13533
|
+
});
|
|
13534
|
+
resetStyles();
|
|
13535
|
+
source.classList.add(modules_63b47c51$7.copy_success);
|
|
13536
|
+
source.children[2].innerText = "复制成功";
|
|
13537
|
+
copyText$1(codeConment);
|
|
13538
|
+
setTimeout(function() {
|
|
13539
|
+
try {
|
|
13540
|
+
resetStyles();
|
|
13541
|
+
} catch (error) {}
|
|
13542
|
+
}, 3000);
|
|
13543
|
+
};
|
|
13544
|
+
//初始化样式
|
|
13545
|
+
var resetStyles = function() {
|
|
13546
|
+
var dom_list = document.getElementsByClassName(modules_63b47c51$7.copy_success);
|
|
13547
|
+
for(var i = 0; i < dom_list.length; i++){
|
|
13548
|
+
dom_list[i].classList.remove(modules_63b47c51$7.copy_success);
|
|
13549
|
+
}
|
|
13550
|
+
var dom_list2 = document.getElementsByClassName(modules_63b47c51$7.copyCodeFun);
|
|
13551
|
+
for(var i = 0; i < dom_list2.length; i++){
|
|
13552
|
+
var p = dom_list2[i].getElementsByClassName(modules_63b47c51$7.copyCodeText);
|
|
13553
|
+
p[0].innerText = "复制代码";
|
|
13554
|
+
}
|
|
13555
|
+
};
|
|
13556
|
+
return /*#__PURE__*/ jsx("div", {
|
|
13557
|
+
className: "".concat(getCls("virtuosoList-wrapper")),
|
|
13558
|
+
ref: wrapperRef,
|
|
13559
|
+
children: /*#__PURE__*/ jsx(qr, {
|
|
13560
|
+
ref: virtuosoRef,
|
|
13561
|
+
style: {
|
|
13562
|
+
height: "100%"
|
|
13563
|
+
},
|
|
13564
|
+
data: dataSource,
|
|
13565
|
+
initialTopMostItemIndex: {
|
|
13566
|
+
index: "LAST",
|
|
13567
|
+
align: "end"
|
|
13568
|
+
},
|
|
13569
|
+
startReached: loadMore,
|
|
13570
|
+
firstItemIndex: firstItemIndex,
|
|
13571
|
+
context: {
|
|
13572
|
+
loading: loading,
|
|
13573
|
+
prefix: prefix
|
|
13574
|
+
},
|
|
13575
|
+
itemContent: itemContent,
|
|
13576
|
+
components: {
|
|
13577
|
+
Header: Header
|
|
13578
|
+
},
|
|
13579
|
+
increaseViewportBy: 200,
|
|
13580
|
+
overscan: 10
|
|
13581
|
+
})
|
|
13582
|
+
});
|
|
13583
|
+
});
|
|
13584
|
+
var VirtuosoList$1 = VirtuosoList;
|
|
13585
|
+
|
|
13586
|
+
var Content = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
13587
|
+
var prefix = props.prefix, contentConfig = props.contentConfig, apiRef = props.apiRef;
|
|
13588
|
+
var _contentConfig_className = contentConfig.className, className = _contentConfig_className === void 0 ? "" : _contentConfig_className;
|
|
13589
|
+
var listRef = useRef(null);
|
|
13590
|
+
useImperativeHandle(ref, function() {
|
|
13591
|
+
return _object_spread({}, listRef.current);
|
|
13592
|
+
});
|
|
13593
|
+
var getCls = function(clsName) {
|
|
13594
|
+
return modules_63b47c51$8[clsName] + " " + prefix + "-" + clsName;
|
|
13595
|
+
};
|
|
13596
|
+
return /*#__PURE__*/ jsx("div", {
|
|
13597
|
+
className: "".concat(getCls("content"), " ").concat(className),
|
|
13598
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
13599
|
+
className: "".concat(getCls("contentList")),
|
|
13600
|
+
children: /*#__PURE__*/ jsx(VirtuosoList$1, {
|
|
13601
|
+
ref: listRef,
|
|
13602
|
+
prefix: prefix,
|
|
13603
|
+
contentConfig: contentConfig,
|
|
13604
|
+
apiRef: apiRef
|
|
13605
|
+
})
|
|
13606
|
+
})
|
|
13607
|
+
});
|
|
13608
|
+
});
|
|
13609
|
+
var Content$1 = Content;
|
|
13610
|
+
|
|
13611
|
+
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"};
|
|
13612
|
+
|
|
13613
|
+
var modules_63b47c51$3 = {"sendBtnIcon":"index_module_sendBtnIcon__d770fbb6","disabled":"index_module_disabled__d770fbb6","sendingIcon":"index_module_sendingIcon__d770fbb6","popover":"index_module_popover__d770fbb6"};
|
|
13614
|
+
|
|
13615
|
+
var sendBtnSvg = /*#__PURE__*/ jsx("svg", {
|
|
13616
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13617
|
+
width: "1em",
|
|
13618
|
+
height: "1em",
|
|
13619
|
+
viewBox: "0 0 24 24",
|
|
13620
|
+
fill: "currentColor",
|
|
13621
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
13622
|
+
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"
|
|
13623
|
+
})
|
|
13624
|
+
});
|
|
13625
|
+
var sendingSvg = /*#__PURE__*/ jsx("svg", {
|
|
13626
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13627
|
+
width: "1em",
|
|
13628
|
+
height: "1em",
|
|
13629
|
+
viewBox: "0 0 16 16",
|
|
13630
|
+
fill: "currentColor",
|
|
13631
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
13632
|
+
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"
|
|
13633
|
+
})
|
|
13634
|
+
});
|
|
13635
|
+
var SendBtn$1 = function(props) {
|
|
13636
|
+
var prefix = props.prefix, canSendMsg = props.canSendMsg, sending = props.sending, stopMessage = props.stopMessage;
|
|
13637
|
+
var getCls = function(clsName) {
|
|
13638
|
+
return modules_63b47c51$3[clsName] + " " + prefix + "-" + clsName;
|
|
13639
|
+
};
|
|
13640
|
+
if (sending) {
|
|
13641
|
+
return /*#__PURE__*/ jsx(Popover, {
|
|
13642
|
+
content: "停止生成",
|
|
13643
|
+
overlayClassName: modules_63b47c51$3.popover,
|
|
13644
|
+
children: /*#__PURE__*/ jsx("i", {
|
|
13645
|
+
className: "".concat(getCls("sendingIcon")),
|
|
13646
|
+
onClick: function() {
|
|
13647
|
+
return stopMessage();
|
|
13648
|
+
},
|
|
13649
|
+
children: sendingSvg
|
|
13650
|
+
})
|
|
13651
|
+
});
|
|
13652
|
+
}
|
|
13653
|
+
return /*#__PURE__*/ jsx("i", {
|
|
13654
|
+
className: "".concat(getCls("sendBtnIcon"), " ").concat(canSendMsg ? "" : getCls("disabled")),
|
|
13655
|
+
children: sendBtnSvg
|
|
13656
|
+
});
|
|
13657
|
+
};
|
|
13658
|
+
var SendBtn$2 = SendBtn$1;
|
|
13659
|
+
|
|
13660
|
+
var modules_63b47c51$2 = {"uploadFileBtn":"index_module_uploadFileBtn__e41600f2"};
|
|
13661
|
+
|
|
13662
|
+
var uplodaFileBtnSvg = /*#__PURE__*/ jsx("svg", {
|
|
13663
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13664
|
+
width: "1em",
|
|
13665
|
+
height: "1em",
|
|
13666
|
+
viewBox: "0 0 24 24",
|
|
13667
|
+
fill: "curretnColor",
|
|
13668
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
13669
|
+
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"
|
|
13670
|
+
})
|
|
13671
|
+
});
|
|
13672
|
+
var SendBtn = function(props) {
|
|
13673
|
+
var prefix = props.prefix, fileUpload = props.fileUpload, customRequest = props.customRequest;
|
|
13674
|
+
var uplodaProps = _object_spread({}, fileUpload);
|
|
13675
|
+
var getCls = function(clsName) {
|
|
13676
|
+
return modules_63b47c51$2[clsName] + " " + prefix + "-" + clsName;
|
|
13677
|
+
};
|
|
13678
|
+
return /*#__PURE__*/ jsx(Upload, {
|
|
13679
|
+
fileList: [],
|
|
13680
|
+
accept: uplodaProps.accept,
|
|
13681
|
+
customRequest: customRequest,
|
|
13682
|
+
multiple: !!uplodaProps.multiple,
|
|
13683
|
+
children: /*#__PURE__*/ jsx("i", {
|
|
13684
|
+
className: "".concat(getCls("uploadFileBtn")),
|
|
13685
|
+
children: uplodaFileBtnSvg
|
|
13686
|
+
})
|
|
13687
|
+
});
|
|
13688
|
+
};
|
|
13689
|
+
var UploadFileBtn = SendBtn;
|
|
13690
|
+
|
|
13691
|
+
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"};
|
|
13692
|
+
|
|
13693
|
+
//@ts-nocheck
|
|
13694
|
+
// wordIcon
|
|
13695
|
+
var wordIcon = /*#__PURE__*/ jsx("i", {
|
|
13696
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
13697
|
+
width: "1em",
|
|
13698
|
+
height: "1em",
|
|
13699
|
+
viewBox: "0 0 32 32",
|
|
13700
|
+
fill: "none",
|
|
13701
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13702
|
+
children: [
|
|
13703
|
+
/*#__PURE__*/ jsx("path", {
|
|
13704
|
+
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",
|
|
13705
|
+
fill: "#E1E1E1"
|
|
13706
|
+
}),
|
|
13707
|
+
/*#__PURE__*/ jsx("path", {
|
|
13708
|
+
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",
|
|
13709
|
+
fill: "#E0E0E0"
|
|
13710
|
+
}),
|
|
13711
|
+
/*#__PURE__*/ jsx("path", {
|
|
13712
|
+
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",
|
|
13713
|
+
fill: "#F6F6F6"
|
|
13714
|
+
}),
|
|
13715
|
+
/*#__PURE__*/ jsx("rect", {
|
|
13716
|
+
x: "16",
|
|
13717
|
+
y: "12",
|
|
13718
|
+
width: "12",
|
|
13719
|
+
height: "2",
|
|
13720
|
+
rx: "1",
|
|
13721
|
+
fill: "#E7E7E7"
|
|
13722
|
+
}),
|
|
13723
|
+
/*#__PURE__*/ jsx("rect", {
|
|
13724
|
+
x: "16",
|
|
13725
|
+
y: "16",
|
|
13726
|
+
width: "12",
|
|
13727
|
+
height: "2",
|
|
13728
|
+
rx: "1",
|
|
13729
|
+
fill: "#E7E7E7"
|
|
13730
|
+
}),
|
|
13731
|
+
/*#__PURE__*/ jsx("rect", {
|
|
13732
|
+
x: "16",
|
|
13733
|
+
y: "20",
|
|
13734
|
+
width: "12",
|
|
13735
|
+
height: "2",
|
|
13736
|
+
rx: "1",
|
|
13737
|
+
fill: "#E7E7E7"
|
|
13738
|
+
}),
|
|
13739
|
+
/*#__PURE__*/ jsx("rect", {
|
|
13740
|
+
x: "16",
|
|
13741
|
+
y: "24",
|
|
13742
|
+
width: "9",
|
|
13743
|
+
height: "2",
|
|
13744
|
+
rx: "1",
|
|
13745
|
+
fill: "#E7E7E7"
|
|
13746
|
+
}),
|
|
13747
|
+
/*#__PURE__*/ jsx("rect", {
|
|
13748
|
+
x: "1",
|
|
13749
|
+
y: "7",
|
|
13750
|
+
width: "18",
|
|
13751
|
+
height: "18",
|
|
13752
|
+
rx: "2",
|
|
13753
|
+
fill: "url(#paint0_linear_9_1348)"
|
|
13754
|
+
}),
|
|
13755
|
+
/*#__PURE__*/ jsx("path", {
|
|
13756
|
+
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",
|
|
13757
|
+
fill: "white"
|
|
13758
|
+
}),
|
|
13759
|
+
/*#__PURE__*/ jsx("defs", {
|
|
13760
|
+
children: /*#__PURE__*/ jsxs("linearGradient", {
|
|
13761
|
+
id: "paint0_linear_9_1348",
|
|
13762
|
+
x1: "10",
|
|
13763
|
+
y1: "7",
|
|
13764
|
+
x2: "10",
|
|
13765
|
+
y2: "25",
|
|
13766
|
+
gradientUnits: "userSpaceOnUse",
|
|
13767
|
+
children: [
|
|
13768
|
+
/*#__PURE__*/ jsx("stop", {
|
|
13769
|
+
"stop-color": "#4199F2"
|
|
13770
|
+
}),
|
|
13771
|
+
/*#__PURE__*/ jsx("stop", {
|
|
13772
|
+
offset: "1",
|
|
13773
|
+
"stop-color": "#3173E2"
|
|
13774
|
+
})
|
|
13775
|
+
]
|
|
13776
|
+
})
|
|
13777
|
+
})
|
|
13778
|
+
]
|
|
13779
|
+
})
|
|
13780
|
+
});
|
|
13781
|
+
var excelIcon = /*#__PURE__*/ jsx("i", {
|
|
13782
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
13783
|
+
width: "1em",
|
|
13784
|
+
height: "1em",
|
|
13785
|
+
viewBox: "0 0 32 32",
|
|
13786
|
+
fill: "none",
|
|
13787
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13788
|
+
children: [
|
|
13789
|
+
/*#__PURE__*/ jsx("path", {
|
|
13790
|
+
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",
|
|
13791
|
+
fill: "#E1E1E1"
|
|
13792
|
+
}),
|
|
13793
|
+
/*#__PURE__*/ jsx("path", {
|
|
13794
|
+
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",
|
|
13795
|
+
fill: "#E0E0E0"
|
|
13796
|
+
}),
|
|
13797
|
+
/*#__PURE__*/ jsx("path", {
|
|
13798
|
+
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",
|
|
13799
|
+
fill: "#F6F6F6"
|
|
13800
|
+
}),
|
|
13801
|
+
/*#__PURE__*/ jsx("rect", {
|
|
13802
|
+
x: "23",
|
|
13803
|
+
y: "12",
|
|
13804
|
+
width: "5",
|
|
13805
|
+
height: "3",
|
|
13806
|
+
rx: "1",
|
|
13807
|
+
fill: "#E7E7E7"
|
|
13808
|
+
}),
|
|
13809
|
+
/*#__PURE__*/ jsx("rect", {
|
|
13810
|
+
x: "23",
|
|
13811
|
+
y: "16",
|
|
13812
|
+
width: "5",
|
|
13813
|
+
height: "3",
|
|
13814
|
+
rx: "1",
|
|
13815
|
+
fill: "#E7E7E7"
|
|
13816
|
+
}),
|
|
13817
|
+
/*#__PURE__*/ jsx("rect", {
|
|
13818
|
+
x: "23",
|
|
13819
|
+
y: "20",
|
|
13820
|
+
width: "5",
|
|
13821
|
+
height: "3",
|
|
13822
|
+
rx: "1",
|
|
13823
|
+
fill: "#E7E7E7"
|
|
13824
|
+
}),
|
|
13825
|
+
/*#__PURE__*/ jsx("rect", {
|
|
13826
|
+
x: "23",
|
|
13827
|
+
y: "24",
|
|
13828
|
+
width: "5",
|
|
13829
|
+
height: "3",
|
|
13830
|
+
rx: "1",
|
|
13831
|
+
fill: "#E7E7E7"
|
|
13832
|
+
}),
|
|
13833
|
+
/*#__PURE__*/ jsx("rect", {
|
|
13834
|
+
x: "17",
|
|
13835
|
+
y: "12",
|
|
13836
|
+
width: "5",
|
|
13837
|
+
height: "3",
|
|
13838
|
+
rx: "1",
|
|
13839
|
+
fill: "#E7E7E7"
|
|
13840
|
+
}),
|
|
13841
|
+
/*#__PURE__*/ jsx("rect", {
|
|
13842
|
+
x: "17",
|
|
13843
|
+
y: "16",
|
|
13844
|
+
width: "5",
|
|
13845
|
+
height: "3",
|
|
13846
|
+
rx: "1",
|
|
13847
|
+
fill: "#E7E7E7"
|
|
13848
|
+
}),
|
|
13849
|
+
/*#__PURE__*/ jsx("rect", {
|
|
13850
|
+
x: "17",
|
|
13851
|
+
y: "20",
|
|
13852
|
+
width: "5",
|
|
13853
|
+
height: "3",
|
|
13854
|
+
rx: "1",
|
|
13855
|
+
fill: "#E7E7E7"
|
|
13856
|
+
}),
|
|
13857
|
+
/*#__PURE__*/ jsx("rect", {
|
|
13858
|
+
x: "17",
|
|
13859
|
+
y: "24",
|
|
13860
|
+
width: "5",
|
|
13861
|
+
height: "3",
|
|
13862
|
+
rx: "1",
|
|
13863
|
+
fill: "#E7E7E7"
|
|
13864
|
+
}),
|
|
13865
|
+
/*#__PURE__*/ jsx("rect", {
|
|
13866
|
+
x: "1",
|
|
13867
|
+
y: "7",
|
|
13868
|
+
width: "18",
|
|
13869
|
+
height: "18",
|
|
13870
|
+
rx: "2",
|
|
13871
|
+
fill: "url(#paint0_linear_9_1438)"
|
|
13872
|
+
}),
|
|
13873
|
+
/*#__PURE__*/ jsx("path", {
|
|
13874
|
+
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",
|
|
13875
|
+
fill: "white"
|
|
13876
|
+
}),
|
|
13877
|
+
/*#__PURE__*/ jsx("defs", {
|
|
13878
|
+
children: /*#__PURE__*/ jsxs("linearGradient", {
|
|
13879
|
+
id: "paint0_linear_9_1438",
|
|
13880
|
+
x1: "10",
|
|
13881
|
+
y1: "7",
|
|
13882
|
+
x2: "10",
|
|
13883
|
+
y2: "25",
|
|
13884
|
+
gradientUnits: "userSpaceOnUse",
|
|
13885
|
+
children: [
|
|
13886
|
+
/*#__PURE__*/ jsx("stop", {
|
|
13887
|
+
"stop-color": "#309A6C"
|
|
13888
|
+
}),
|
|
13889
|
+
/*#__PURE__*/ jsx("stop", {
|
|
13890
|
+
offset: "1",
|
|
13891
|
+
"stop-color": "#237347"
|
|
13892
|
+
})
|
|
13893
|
+
]
|
|
13894
|
+
})
|
|
13895
|
+
})
|
|
13896
|
+
]
|
|
13897
|
+
})
|
|
13898
|
+
});
|
|
13899
|
+
var pptIcon = /*#__PURE__*/ jsx("i", {
|
|
13900
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
13901
|
+
width: "1em",
|
|
13902
|
+
height: "1em",
|
|
13903
|
+
viewBox: "0 0 32 32",
|
|
13904
|
+
fill: "none",
|
|
13905
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13906
|
+
children: [
|
|
13907
|
+
/*#__PURE__*/ jsx("path", {
|
|
13908
|
+
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",
|
|
13909
|
+
fill: "#E1E1E1"
|
|
13910
|
+
}),
|
|
13911
|
+
/*#__PURE__*/ jsx("path", {
|
|
13912
|
+
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",
|
|
13913
|
+
fill: "#E0E0E0"
|
|
13914
|
+
}),
|
|
13915
|
+
/*#__PURE__*/ jsx("path", {
|
|
13916
|
+
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",
|
|
13917
|
+
fill: "#F6F6F6"
|
|
13918
|
+
}),
|
|
13919
|
+
/*#__PURE__*/ jsx("rect", {
|
|
13920
|
+
x: "17",
|
|
13921
|
+
y: "25",
|
|
13922
|
+
width: "11",
|
|
13923
|
+
height: "2",
|
|
13924
|
+
rx: "1",
|
|
13925
|
+
fill: "#E7E7E7"
|
|
13926
|
+
}),
|
|
13927
|
+
/*#__PURE__*/ jsx("rect", {
|
|
13928
|
+
x: "17",
|
|
13929
|
+
y: "22",
|
|
13930
|
+
width: "11",
|
|
13931
|
+
height: "2",
|
|
13932
|
+
rx: "1",
|
|
13933
|
+
fill: "#E7E7E7"
|
|
13934
|
+
}),
|
|
13935
|
+
/*#__PURE__*/ jsx("path", {
|
|
13936
|
+
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",
|
|
13937
|
+
fill: "#E7E7E7"
|
|
13938
|
+
}),
|
|
13939
|
+
/*#__PURE__*/ jsx("mask", {
|
|
13940
|
+
id: "mask0_9_1453",
|
|
13941
|
+
style: "mask-type:alpha",
|
|
13942
|
+
maskUnits: "userSpaceOnUse",
|
|
13943
|
+
x: "22",
|
|
13944
|
+
y: "9",
|
|
13945
|
+
width: "6",
|
|
13946
|
+
height: "6",
|
|
13947
|
+
children: /*#__PURE__*/ jsx("rect", {
|
|
13948
|
+
x: "22.9223",
|
|
13949
|
+
y: "9",
|
|
13950
|
+
width: "5.07692",
|
|
13951
|
+
height: "5.07692",
|
|
13952
|
+
fill: "#E7E7E7"
|
|
13953
|
+
})
|
|
13954
|
+
}),
|
|
13955
|
+
/*#__PURE__*/ jsx("g", {
|
|
13956
|
+
mask: "url(#mask0_9_1453)",
|
|
13957
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
13958
|
+
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",
|
|
13959
|
+
fill: "#E7E7E7"
|
|
13960
|
+
})
|
|
13961
|
+
}),
|
|
13962
|
+
/*#__PURE__*/ jsx("rect", {
|
|
13963
|
+
x: "1",
|
|
13964
|
+
y: "7",
|
|
13965
|
+
width: "18",
|
|
13966
|
+
height: "18",
|
|
13967
|
+
rx: "2",
|
|
13968
|
+
fill: "url(#paint0_linear_9_1453)"
|
|
13969
|
+
}),
|
|
13970
|
+
/*#__PURE__*/ jsx("path", {
|
|
13971
|
+
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",
|
|
13972
|
+
fill: "white"
|
|
13973
|
+
}),
|
|
13974
|
+
/*#__PURE__*/ jsx("defs", {
|
|
13975
|
+
children: /*#__PURE__*/ jsxs("linearGradient", {
|
|
13976
|
+
id: "paint0_linear_9_1453",
|
|
13977
|
+
x1: "10",
|
|
13978
|
+
y1: "7",
|
|
13979
|
+
x2: "10",
|
|
13980
|
+
y2: "25",
|
|
13981
|
+
gradientUnits: "userSpaceOnUse",
|
|
13982
|
+
children: [
|
|
13983
|
+
/*#__PURE__*/ jsx("stop", {
|
|
13984
|
+
"stop-color": "#FF8642"
|
|
13985
|
+
}),
|
|
13986
|
+
/*#__PURE__*/ jsx("stop", {
|
|
13987
|
+
offset: "1",
|
|
13988
|
+
"stop-color": "#EF673B"
|
|
13989
|
+
})
|
|
13990
|
+
]
|
|
13991
|
+
})
|
|
13992
|
+
})
|
|
13993
|
+
]
|
|
13994
|
+
})
|
|
13995
|
+
});
|
|
13996
|
+
var pdfIcon = /*#__PURE__*/ jsx("i", {
|
|
13997
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
13998
|
+
width: "1em",
|
|
13999
|
+
height: "1em",
|
|
14000
|
+
viewBox: "0 0 32 32",
|
|
14001
|
+
fill: "none",
|
|
14002
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14003
|
+
children: [
|
|
14004
|
+
/*#__PURE__*/ jsx("path", {
|
|
14005
|
+
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",
|
|
14006
|
+
fill: "#E1E1E1"
|
|
14007
|
+
}),
|
|
14008
|
+
/*#__PURE__*/ jsx("path", {
|
|
14009
|
+
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",
|
|
14010
|
+
fill: "#E0E0E0"
|
|
14011
|
+
}),
|
|
14012
|
+
/*#__PURE__*/ jsx("path", {
|
|
14013
|
+
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",
|
|
14014
|
+
fill: "#F6F6F6"
|
|
14015
|
+
}),
|
|
14016
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14017
|
+
x: "16",
|
|
14018
|
+
y: "12",
|
|
14019
|
+
width: "12",
|
|
14020
|
+
height: "2",
|
|
14021
|
+
rx: "1",
|
|
14022
|
+
fill: "#E7E7E7"
|
|
14023
|
+
}),
|
|
14024
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14025
|
+
x: "16",
|
|
14026
|
+
y: "16",
|
|
14027
|
+
width: "12",
|
|
14028
|
+
height: "2",
|
|
14029
|
+
rx: "1",
|
|
14030
|
+
fill: "#E7E7E7"
|
|
14031
|
+
}),
|
|
14032
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14033
|
+
x: "16",
|
|
14034
|
+
y: "20",
|
|
14035
|
+
width: "12",
|
|
14036
|
+
height: "2",
|
|
14037
|
+
rx: "1",
|
|
14038
|
+
fill: "#E7E7E7"
|
|
14039
|
+
}),
|
|
14040
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14041
|
+
x: "16",
|
|
14042
|
+
y: "24",
|
|
14043
|
+
width: "9",
|
|
14044
|
+
height: "2",
|
|
14045
|
+
rx: "1",
|
|
14046
|
+
fill: "#E7E7E7"
|
|
14047
|
+
}),
|
|
14048
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14049
|
+
x: "1",
|
|
14050
|
+
y: "7",
|
|
14051
|
+
width: "18",
|
|
14052
|
+
height: "18",
|
|
14053
|
+
rx: "2",
|
|
14054
|
+
fill: "url(#paint0_linear_9_1414)"
|
|
14055
|
+
}),
|
|
14056
|
+
/*#__PURE__*/ jsx("g", {
|
|
14057
|
+
"clip-path": "url(#clip0_9_1414)",
|
|
14058
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
14059
|
+
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",
|
|
14060
|
+
fill: "white"
|
|
14061
|
+
})
|
|
14062
|
+
}),
|
|
14063
|
+
/*#__PURE__*/ jsxs("defs", {
|
|
14064
|
+
children: [
|
|
14065
|
+
/*#__PURE__*/ jsxs("linearGradient", {
|
|
14066
|
+
id: "paint0_linear_9_1414",
|
|
14067
|
+
x1: "10",
|
|
14068
|
+
y1: "7",
|
|
14069
|
+
x2: "10",
|
|
14070
|
+
y2: "25",
|
|
14071
|
+
gradientUnits: "userSpaceOnUse",
|
|
14072
|
+
children: [
|
|
14073
|
+
/*#__PURE__*/ jsx("stop", {
|
|
14074
|
+
"stop-color": "#FF7675"
|
|
14075
|
+
}),
|
|
14076
|
+
/*#__PURE__*/ jsx("stop", {
|
|
14077
|
+
offset: "1",
|
|
14078
|
+
"stop-color": "#F73535"
|
|
14079
|
+
})
|
|
14080
|
+
]
|
|
14081
|
+
}),
|
|
14082
|
+
/*#__PURE__*/ jsx("clipPath", {
|
|
14083
|
+
id: "clip0_9_1414",
|
|
14084
|
+
children: /*#__PURE__*/ jsx("rect", {
|
|
14085
|
+
width: "12",
|
|
14086
|
+
height: "12",
|
|
14087
|
+
fill: "white",
|
|
14088
|
+
transform: "translate(4 10)"
|
|
14089
|
+
})
|
|
14090
|
+
})
|
|
14091
|
+
]
|
|
14092
|
+
})
|
|
14093
|
+
]
|
|
14094
|
+
})
|
|
14095
|
+
});
|
|
14096
|
+
var txtIcon = /*#__PURE__*/ jsx("i", {
|
|
14097
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
14098
|
+
width: "1em",
|
|
14099
|
+
height: "1em",
|
|
14100
|
+
viewBox: "0 0 32 32",
|
|
14101
|
+
fill: "none",
|
|
14102
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14103
|
+
children: [
|
|
14104
|
+
/*#__PURE__*/ jsx("path", {
|
|
14105
|
+
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",
|
|
14106
|
+
fill: "#E1E1E1"
|
|
14107
|
+
}),
|
|
14108
|
+
/*#__PURE__*/ jsx("path", {
|
|
14109
|
+
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",
|
|
14110
|
+
fill: "#E0E0E0"
|
|
14111
|
+
}),
|
|
14112
|
+
/*#__PURE__*/ jsx("path", {
|
|
14113
|
+
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",
|
|
14114
|
+
fill: "#F6F6F6"
|
|
14115
|
+
}),
|
|
14116
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14117
|
+
x: "16",
|
|
14118
|
+
y: "12",
|
|
14119
|
+
width: "12",
|
|
14120
|
+
height: "2",
|
|
14121
|
+
rx: "1",
|
|
14122
|
+
fill: "#E7E7E7"
|
|
14123
|
+
}),
|
|
14124
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14125
|
+
x: "16",
|
|
14126
|
+
y: "16",
|
|
14127
|
+
width: "12",
|
|
14128
|
+
height: "2",
|
|
14129
|
+
rx: "1",
|
|
14130
|
+
fill: "#E7E7E7"
|
|
14131
|
+
}),
|
|
14132
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14133
|
+
x: "16",
|
|
14134
|
+
y: "20",
|
|
14135
|
+
width: "12",
|
|
14136
|
+
height: "2",
|
|
14137
|
+
rx: "1",
|
|
14138
|
+
fill: "#E7E7E7"
|
|
14139
|
+
}),
|
|
14140
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14141
|
+
x: "16",
|
|
14142
|
+
y: "24",
|
|
14143
|
+
width: "9",
|
|
14144
|
+
height: "2",
|
|
14145
|
+
rx: "1",
|
|
14146
|
+
fill: "#E7E7E7"
|
|
14147
|
+
}),
|
|
14148
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14149
|
+
x: "1",
|
|
14150
|
+
y: "7",
|
|
14151
|
+
width: "18",
|
|
14152
|
+
height: "18",
|
|
14153
|
+
rx: "2",
|
|
14154
|
+
fill: "url(#paint0_linear_9_1478)"
|
|
14155
|
+
}),
|
|
14156
|
+
/*#__PURE__*/ jsx("path", {
|
|
14157
|
+
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",
|
|
14158
|
+
fill: "white"
|
|
14159
|
+
}),
|
|
14160
|
+
/*#__PURE__*/ jsx("defs", {
|
|
14161
|
+
children: /*#__PURE__*/ jsxs("linearGradient", {
|
|
14162
|
+
id: "paint0_linear_9_1478",
|
|
14163
|
+
x1: "10",
|
|
14164
|
+
y1: "7",
|
|
14165
|
+
x2: "10",
|
|
14166
|
+
y2: "25",
|
|
14167
|
+
gradientUnits: "userSpaceOnUse",
|
|
14168
|
+
children: [
|
|
14169
|
+
/*#__PURE__*/ jsx("stop", {
|
|
14170
|
+
"stop-color": "#B5B5B5"
|
|
14171
|
+
}),
|
|
14172
|
+
/*#__PURE__*/ jsx("stop", {
|
|
14173
|
+
offset: "1",
|
|
14174
|
+
"stop-color": "#434343"
|
|
14175
|
+
})
|
|
14176
|
+
]
|
|
14177
|
+
})
|
|
14178
|
+
})
|
|
14179
|
+
]
|
|
14180
|
+
})
|
|
14181
|
+
});
|
|
14182
|
+
// 未知文件也用这个icon
|
|
14183
|
+
var chmIcon = /*#__PURE__*/ jsx("i", {
|
|
14184
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
14185
|
+
width: "1em",
|
|
14186
|
+
height: "1em",
|
|
14187
|
+
viewBox: "0 0 32 32",
|
|
14188
|
+
fill: "none",
|
|
14189
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14190
|
+
children: [
|
|
14191
|
+
/*#__PURE__*/ jsx("path", {
|
|
14192
|
+
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",
|
|
14193
|
+
fill: "#E1E1E1"
|
|
14194
|
+
}),
|
|
14195
|
+
/*#__PURE__*/ jsx("path", {
|
|
14196
|
+
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",
|
|
14197
|
+
fill: "#E0E0E0"
|
|
14198
|
+
}),
|
|
14199
|
+
/*#__PURE__*/ jsx("path", {
|
|
14200
|
+
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",
|
|
14201
|
+
fill: "#F6F6F6"
|
|
14202
|
+
}),
|
|
14203
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14204
|
+
x: "16",
|
|
14205
|
+
y: "12",
|
|
14206
|
+
width: "12",
|
|
14207
|
+
height: "2",
|
|
14208
|
+
rx: "1",
|
|
14209
|
+
fill: "#E7E7E7"
|
|
14210
|
+
}),
|
|
14211
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14212
|
+
x: "16",
|
|
14213
|
+
y: "16",
|
|
14214
|
+
width: "12",
|
|
14215
|
+
height: "2",
|
|
14216
|
+
rx: "1",
|
|
14217
|
+
fill: "#E7E7E7"
|
|
14218
|
+
}),
|
|
14219
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14220
|
+
x: "16",
|
|
14221
|
+
y: "20",
|
|
14222
|
+
width: "12",
|
|
14223
|
+
height: "2",
|
|
14224
|
+
rx: "1",
|
|
14225
|
+
fill: "#E7E7E7"
|
|
14226
|
+
}),
|
|
14227
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14228
|
+
x: "16",
|
|
14229
|
+
y: "24",
|
|
14230
|
+
width: "9",
|
|
14231
|
+
height: "2",
|
|
14232
|
+
rx: "1",
|
|
14233
|
+
fill: "#E7E7E7"
|
|
14234
|
+
}),
|
|
14235
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14236
|
+
x: "1",
|
|
14237
|
+
y: "7",
|
|
14238
|
+
width: "18",
|
|
14239
|
+
height: "18",
|
|
14240
|
+
rx: "2",
|
|
14241
|
+
fill: "url(#paint0_linear_9_1403)"
|
|
14242
|
+
}),
|
|
14243
|
+
/*#__PURE__*/ jsx("path", {
|
|
14244
|
+
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",
|
|
14245
|
+
fill: "white"
|
|
14246
|
+
}),
|
|
14247
|
+
/*#__PURE__*/ jsx("defs", {
|
|
14248
|
+
children: /*#__PURE__*/ jsxs("linearGradient", {
|
|
14249
|
+
id: "paint0_linear_9_1403",
|
|
14250
|
+
x1: "10",
|
|
14251
|
+
y1: "7",
|
|
14252
|
+
x2: "10",
|
|
14253
|
+
y2: "25",
|
|
14254
|
+
gradientUnits: "userSpaceOnUse",
|
|
14255
|
+
children: [
|
|
14256
|
+
/*#__PURE__*/ jsx("stop", {
|
|
14257
|
+
"stop-color": "#B5B5B5"
|
|
14258
|
+
}),
|
|
14259
|
+
/*#__PURE__*/ jsx("stop", {
|
|
14260
|
+
offset: "1",
|
|
14261
|
+
"stop-color": "#434343"
|
|
14262
|
+
})
|
|
14263
|
+
]
|
|
14264
|
+
})
|
|
14265
|
+
})
|
|
14266
|
+
]
|
|
14267
|
+
})
|
|
14268
|
+
});
|
|
14269
|
+
var hdxIcon = /*#__PURE__*/ jsx("i", {
|
|
14270
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
14271
|
+
width: "1em",
|
|
14272
|
+
height: "1em",
|
|
14273
|
+
viewBox: "0 0 32 32",
|
|
14274
|
+
fill: "none",
|
|
14275
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14276
|
+
children: [
|
|
14277
|
+
/*#__PURE__*/ jsx("path", {
|
|
14278
|
+
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",
|
|
14279
|
+
fill: "#E1E1E1"
|
|
14280
|
+
}),
|
|
14281
|
+
/*#__PURE__*/ jsx("path", {
|
|
14282
|
+
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",
|
|
14283
|
+
fill: "#E0E0E0"
|
|
14284
|
+
}),
|
|
14285
|
+
/*#__PURE__*/ jsx("path", {
|
|
14286
|
+
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",
|
|
14287
|
+
fill: "#F6F6F6"
|
|
14288
|
+
}),
|
|
14289
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14290
|
+
x: "16",
|
|
14291
|
+
y: "12",
|
|
14292
|
+
width: "12",
|
|
14293
|
+
height: "2",
|
|
14294
|
+
rx: "1",
|
|
14295
|
+
fill: "#E7E7E7"
|
|
14296
|
+
}),
|
|
14297
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14298
|
+
x: "16",
|
|
14299
|
+
y: "16",
|
|
14300
|
+
width: "12",
|
|
14301
|
+
height: "2",
|
|
14302
|
+
rx: "1",
|
|
14303
|
+
fill: "#E7E7E7"
|
|
14304
|
+
}),
|
|
14305
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14306
|
+
x: "16",
|
|
14307
|
+
y: "20",
|
|
14308
|
+
width: "12",
|
|
14309
|
+
height: "2",
|
|
14310
|
+
rx: "1",
|
|
14311
|
+
fill: "#E7E7E7"
|
|
14312
|
+
}),
|
|
14313
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14314
|
+
x: "16",
|
|
14315
|
+
y: "24",
|
|
14316
|
+
width: "9",
|
|
14317
|
+
height: "2",
|
|
14318
|
+
rx: "1",
|
|
14319
|
+
fill: "#E7E7E7"
|
|
14320
|
+
}),
|
|
14321
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14322
|
+
x: "1",
|
|
14323
|
+
y: "7",
|
|
14324
|
+
width: "18",
|
|
14325
|
+
height: "18",
|
|
14326
|
+
rx: "2",
|
|
14327
|
+
fill: "url(#paint0_linear_9_1489)"
|
|
14328
|
+
}),
|
|
14329
|
+
/*#__PURE__*/ jsx("path", {
|
|
14330
|
+
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",
|
|
14331
|
+
fill: "white"
|
|
14332
|
+
}),
|
|
14333
|
+
/*#__PURE__*/ jsx("defs", {
|
|
14334
|
+
children: /*#__PURE__*/ jsxs("linearGradient", {
|
|
14335
|
+
id: "paint0_linear_9_1489",
|
|
14336
|
+
x1: "10",
|
|
14337
|
+
y1: "7",
|
|
14338
|
+
x2: "10",
|
|
14339
|
+
y2: "25",
|
|
14340
|
+
gradientUnits: "userSpaceOnUse",
|
|
14341
|
+
children: [
|
|
14342
|
+
/*#__PURE__*/ jsx("stop", {
|
|
14343
|
+
"stop-color": "#B5B5B5"
|
|
14344
|
+
}),
|
|
14345
|
+
/*#__PURE__*/ jsx("stop", {
|
|
14346
|
+
offset: "1",
|
|
14347
|
+
"stop-color": "#434343"
|
|
14348
|
+
})
|
|
14349
|
+
]
|
|
14350
|
+
})
|
|
14351
|
+
})
|
|
14352
|
+
]
|
|
14353
|
+
})
|
|
14354
|
+
});
|
|
14355
|
+
var mdIcon = /*#__PURE__*/ jsx("i", {
|
|
14356
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
14357
|
+
width: "1em",
|
|
14358
|
+
height: "1em",
|
|
14359
|
+
viewBox: "0 0 32 32",
|
|
14360
|
+
fill: "none",
|
|
14361
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14362
|
+
children: [
|
|
14363
|
+
/*#__PURE__*/ jsx("path", {
|
|
14364
|
+
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",
|
|
14365
|
+
fill: "#E1E1E1"
|
|
14366
|
+
}),
|
|
14367
|
+
/*#__PURE__*/ jsx("path", {
|
|
14368
|
+
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",
|
|
14369
|
+
fill: "#E0E0E0"
|
|
14370
|
+
}),
|
|
14371
|
+
/*#__PURE__*/ jsx("path", {
|
|
14372
|
+
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",
|
|
14373
|
+
fill: "#F6F6F6"
|
|
14374
|
+
}),
|
|
14375
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14376
|
+
x: "16",
|
|
14377
|
+
y: "12",
|
|
14378
|
+
width: "12",
|
|
14379
|
+
height: "2",
|
|
14380
|
+
rx: "1",
|
|
14381
|
+
fill: "#E7E7E7"
|
|
14382
|
+
}),
|
|
14383
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14384
|
+
x: "16",
|
|
14385
|
+
y: "16",
|
|
14386
|
+
width: "12",
|
|
14387
|
+
height: "2",
|
|
14388
|
+
rx: "1",
|
|
14389
|
+
fill: "#E7E7E7"
|
|
14390
|
+
}),
|
|
14391
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14392
|
+
x: "16",
|
|
14393
|
+
y: "20",
|
|
14394
|
+
width: "12",
|
|
14395
|
+
height: "2",
|
|
14396
|
+
rx: "1",
|
|
14397
|
+
fill: "#E7E7E7"
|
|
14398
|
+
}),
|
|
14399
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14400
|
+
x: "16",
|
|
14401
|
+
y: "24",
|
|
14402
|
+
width: "9",
|
|
14403
|
+
height: "2",
|
|
14404
|
+
rx: "1",
|
|
14405
|
+
fill: "#E7E7E7"
|
|
14406
|
+
}),
|
|
14407
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14408
|
+
x: "1",
|
|
14409
|
+
y: "7",
|
|
14410
|
+
width: "18",
|
|
14411
|
+
height: "18",
|
|
14412
|
+
rx: "2",
|
|
14413
|
+
fill: "url(#paint0_linear_9_1426)"
|
|
14414
|
+
}),
|
|
14415
|
+
/*#__PURE__*/ jsx("path", {
|
|
14416
|
+
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",
|
|
14417
|
+
fill: "white"
|
|
14418
|
+
}),
|
|
14419
|
+
/*#__PURE__*/ jsx("path", {
|
|
14420
|
+
d: "M14.3008 23L12.1357 20.25L16.4658 20.25L14.3008 23Z",
|
|
14421
|
+
fill: "white"
|
|
14422
|
+
}),
|
|
14423
|
+
/*#__PURE__*/ jsx("defs", {
|
|
14424
|
+
children: /*#__PURE__*/ jsxs("linearGradient", {
|
|
14425
|
+
id: "paint0_linear_9_1426",
|
|
14426
|
+
x1: "10",
|
|
14427
|
+
y1: "7",
|
|
14428
|
+
x2: "10",
|
|
14429
|
+
y2: "25",
|
|
14430
|
+
gradientUnits: "userSpaceOnUse",
|
|
14431
|
+
children: [
|
|
14432
|
+
/*#__PURE__*/ jsx("stop", {
|
|
14433
|
+
"stop-color": "#B5B5B5"
|
|
14434
|
+
}),
|
|
14435
|
+
/*#__PURE__*/ jsx("stop", {
|
|
14436
|
+
offset: "1",
|
|
14437
|
+
"stop-color": "#434343"
|
|
14438
|
+
})
|
|
14439
|
+
]
|
|
14440
|
+
})
|
|
14441
|
+
})
|
|
14442
|
+
]
|
|
14443
|
+
})
|
|
14444
|
+
});
|
|
14445
|
+
// zip rar
|
|
14446
|
+
var zipIcon = /*#__PURE__*/ jsx("i", {
|
|
14447
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
14448
|
+
width: "1em",
|
|
14449
|
+
height: "1em",
|
|
14450
|
+
viewBox: "0 0 32 32",
|
|
14451
|
+
fill: "none",
|
|
14452
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14453
|
+
children: [
|
|
14454
|
+
/*#__PURE__*/ jsx("path", {
|
|
14455
|
+
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",
|
|
14456
|
+
fill: "#FFC757"
|
|
14457
|
+
}),
|
|
14458
|
+
/*#__PURE__*/ jsx("path", {
|
|
14459
|
+
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",
|
|
14460
|
+
fill: "#F79F2B"
|
|
14461
|
+
}),
|
|
14462
|
+
/*#__PURE__*/ jsx("path", {
|
|
14463
|
+
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",
|
|
14464
|
+
fill: "white"
|
|
14465
|
+
})
|
|
14466
|
+
]
|
|
14467
|
+
})
|
|
14468
|
+
});
|
|
14469
|
+
// 图片
|
|
14470
|
+
var imageIcon = /*#__PURE__*/ jsx("i", {
|
|
14471
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
14472
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14473
|
+
width: "1em",
|
|
14474
|
+
height: "1em",
|
|
14475
|
+
viewBox: "0 0 32 32",
|
|
14476
|
+
fill: "none",
|
|
14477
|
+
children: [
|
|
14478
|
+
/*#__PURE__*/ jsx("path", {
|
|
14479
|
+
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",
|
|
14480
|
+
fill: "#E1E1E1"
|
|
14481
|
+
}),
|
|
14482
|
+
/*#__PURE__*/ jsx("path", {
|
|
14483
|
+
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",
|
|
14484
|
+
fill: "#E0E0E0"
|
|
14485
|
+
}),
|
|
14486
|
+
/*#__PURE__*/ jsx("path", {
|
|
14487
|
+
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",
|
|
14488
|
+
fill: "white"
|
|
14489
|
+
}),
|
|
14490
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14491
|
+
x: "16",
|
|
14492
|
+
y: "12",
|
|
14493
|
+
width: "12",
|
|
14494
|
+
height: "2",
|
|
14495
|
+
rx: "1",
|
|
14496
|
+
fill: "#E7E7E7"
|
|
14497
|
+
}),
|
|
14498
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14499
|
+
x: "16",
|
|
14500
|
+
y: "16",
|
|
14501
|
+
width: "12",
|
|
14502
|
+
height: "2",
|
|
14503
|
+
rx: "1",
|
|
14504
|
+
fill: "#E7E7E7"
|
|
14505
|
+
}),
|
|
14506
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14507
|
+
x: "16",
|
|
14508
|
+
y: "20",
|
|
14509
|
+
width: "12",
|
|
14510
|
+
height: "2",
|
|
14511
|
+
rx: "1",
|
|
14512
|
+
fill: "#E7E7E7"
|
|
14513
|
+
}),
|
|
14514
|
+
/*#__PURE__*/ jsx("rect", {
|
|
14515
|
+
x: "16",
|
|
14516
|
+
y: "24",
|
|
14517
|
+
width: "9",
|
|
14518
|
+
height: "2",
|
|
14519
|
+
rx: "1",
|
|
14520
|
+
fill: "#E7E7E7"
|
|
14521
|
+
}),
|
|
14522
|
+
/*#__PURE__*/ jsx("path", {
|
|
14523
|
+
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",
|
|
14524
|
+
fill: "#DFECFD"
|
|
14525
|
+
}),
|
|
14526
|
+
/*#__PURE__*/ jsx("path", {
|
|
14527
|
+
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",
|
|
14528
|
+
fill: "#4988FD"
|
|
14529
|
+
}),
|
|
14530
|
+
/*#__PURE__*/ jsx("path", {
|
|
14531
|
+
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",
|
|
14532
|
+
fill: "#4988FD"
|
|
14533
|
+
})
|
|
14534
|
+
]
|
|
14535
|
+
})
|
|
14536
|
+
});
|
|
14537
|
+
var fileIconRender = function(suffix1, customRender) {
|
|
14538
|
+
// 存在自定义渲染 且配置啦返回的node 则返回
|
|
14539
|
+
if (customRender) {
|
|
14540
|
+
var node = customRender(suffix1);
|
|
14541
|
+
if (node) return node;
|
|
14542
|
+
}
|
|
14543
|
+
switch(suffix1){
|
|
14544
|
+
case "pdf":
|
|
14545
|
+
return pdfIcon;
|
|
14546
|
+
case "ppt":
|
|
14547
|
+
return pptIcon;
|
|
14548
|
+
case "pptx":
|
|
14549
|
+
return pptIcon;
|
|
14550
|
+
case "doc":
|
|
14551
|
+
return wordIcon;
|
|
14552
|
+
case "docx":
|
|
14553
|
+
return wordIcon;
|
|
14554
|
+
case "xls":
|
|
14555
|
+
return excelIcon;
|
|
14556
|
+
case "xlsx":
|
|
14557
|
+
return excelIcon;
|
|
14558
|
+
case "txt":
|
|
14559
|
+
return txtIcon;
|
|
14560
|
+
case "text":
|
|
14561
|
+
return txtIcon;
|
|
14562
|
+
case "png":
|
|
14563
|
+
return imageIcon;
|
|
14564
|
+
case "jpg":
|
|
14565
|
+
return imageIcon;
|
|
14566
|
+
case "jpeg":
|
|
14567
|
+
return imageIcon;
|
|
14568
|
+
case "gif":
|
|
14569
|
+
return imageIcon;
|
|
14570
|
+
case "webp":
|
|
14571
|
+
return imageIcon;
|
|
14572
|
+
case "zip":
|
|
14573
|
+
return zipIcon;
|
|
14574
|
+
case "rar":
|
|
14575
|
+
return zipIcon;
|
|
14576
|
+
case "chm":
|
|
14577
|
+
return chmIcon;
|
|
14578
|
+
case "hdx":
|
|
14579
|
+
return hdxIcon;
|
|
14580
|
+
case "md":
|
|
14581
|
+
return mdIcon;
|
|
14582
|
+
default:
|
|
14583
|
+
return chmIcon;
|
|
14584
|
+
}
|
|
14585
|
+
};
|
|
14586
|
+
var statusRender = function(status, customRender) {
|
|
14587
|
+
// 存在自定义渲染 且配置啦返回的node 则返回
|
|
14588
|
+
if (customRender) {
|
|
14589
|
+
var node = customRender(suffix);
|
|
14590
|
+
if (node) return node;
|
|
14591
|
+
}
|
|
14592
|
+
switch(status){
|
|
14593
|
+
case "waiting":
|
|
14594
|
+
return /*#__PURE__*/ jsx("span", {
|
|
14595
|
+
style: {
|
|
14596
|
+
color: "rgba(0, 0, 0, 0.25)",
|
|
14597
|
+
fontSize: "12px"
|
|
14598
|
+
},
|
|
14599
|
+
children: "等待上传"
|
|
14600
|
+
});
|
|
14601
|
+
case "uploading":
|
|
14602
|
+
return /*#__PURE__*/ jsx("span", {
|
|
14603
|
+
style: {
|
|
14604
|
+
color: "rgba(0, 0, 0, 0.25)",
|
|
14605
|
+
fontSize: "12px"
|
|
14606
|
+
},
|
|
14607
|
+
children: "上传中..."
|
|
14608
|
+
});
|
|
14609
|
+
case "uploadError":
|
|
14610
|
+
return /*#__PURE__*/ jsxs("span", {
|
|
14611
|
+
style: {
|
|
14612
|
+
color: "#F4523B",
|
|
14613
|
+
fontSize: "12px"
|
|
14614
|
+
},
|
|
14615
|
+
children: [
|
|
14616
|
+
"上传失败,",
|
|
14617
|
+
/*#__PURE__*/ jsx("span", {
|
|
14618
|
+
style: {
|
|
14619
|
+
"text-decoration-line": "underline"
|
|
14620
|
+
},
|
|
14621
|
+
children: "重试"
|
|
14622
|
+
})
|
|
14623
|
+
]
|
|
14624
|
+
});
|
|
14625
|
+
case "waitParse":
|
|
14626
|
+
return /*#__PURE__*/ jsx("span", {
|
|
14627
|
+
style: {
|
|
14628
|
+
color: "rgba(0, 0, 0, 0.25)",
|
|
14629
|
+
fontSize: "12px"
|
|
14630
|
+
},
|
|
14631
|
+
children: "等待解析"
|
|
14632
|
+
});
|
|
14633
|
+
case "parsing":
|
|
14634
|
+
return /*#__PURE__*/ jsx("span", {
|
|
14635
|
+
style: {
|
|
14636
|
+
color: "rgba(0, 0, 0, 0.25)",
|
|
14637
|
+
fontSize: "12px"
|
|
14638
|
+
},
|
|
14639
|
+
children: "解析中..."
|
|
14640
|
+
});
|
|
14641
|
+
case "parsingError":
|
|
14642
|
+
return /*#__PURE__*/ jsxs("span", {
|
|
14643
|
+
style: {
|
|
14644
|
+
color: "#F4523B",
|
|
14645
|
+
fontSize: "12px"
|
|
14646
|
+
},
|
|
14647
|
+
children: [
|
|
14648
|
+
"上传失败,",
|
|
14649
|
+
/*#__PURE__*/ jsx("span", {
|
|
14650
|
+
style: {
|
|
14651
|
+
"text-decoration-line": "underline"
|
|
14652
|
+
},
|
|
14653
|
+
children: "重试"
|
|
14654
|
+
})
|
|
14655
|
+
]
|
|
14656
|
+
});
|
|
14657
|
+
default:
|
|
14658
|
+
return null;
|
|
14659
|
+
}
|
|
14660
|
+
};
|
|
14661
|
+
|
|
14662
|
+
var guidGenerator = function() {
|
|
14663
|
+
var d = new Date().getTime();
|
|
14664
|
+
var uuid = "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g, function(c) {
|
|
14665
|
+
var r = (d + Math.random() * 16) % 16 | 0;
|
|
14666
|
+
d = Math.floor(d / 16);
|
|
14667
|
+
return (c == "x" ? r : r & 3 | 8).toString(16);
|
|
14668
|
+
});
|
|
14669
|
+
return uuid;
|
|
14670
|
+
};
|
|
14671
|
+
|
|
14672
|
+
// 通过文件名 获取文件后缀
|
|
14673
|
+
var getSuffix = function(fileName) {
|
|
14674
|
+
return fileName.split(".").pop().toLowerCase();
|
|
14675
|
+
};
|
|
14676
|
+
var FileList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
14677
|
+
var prefix = props.prefix, fileUpload = props.fileUpload, errorCallback = props.errorCallback, changeFileCanSending = props.changeFileCanSending;
|
|
14678
|
+
console.log("fileUpload", fileUpload);
|
|
14679
|
+
var _useState = _sliced_to_array(useState([]), 2), fileList = _useState[0], setFileList = _useState[1];
|
|
14680
|
+
var _useState1 = _sliced_to_array(useState(1), 2), page = _useState1[0], setPage = _useState1[1];
|
|
14681
|
+
var _useState2 = _sliced_to_array(useState(5), 2), pageSize = _useState2[0], setPageSize = _useState2[1];
|
|
14682
|
+
var recordObj = useRef({
|
|
14683
|
+
page: page,
|
|
14684
|
+
pageSize: pageSize,
|
|
14685
|
+
fileList: fileList
|
|
14686
|
+
});
|
|
14687
|
+
useEffect(function() {
|
|
14688
|
+
recordObj.current.page = page;
|
|
14689
|
+
recordObj.current.pageSize = pageSize;
|
|
14690
|
+
recordObj.current.fileList = fileList;
|
|
14691
|
+
}, [
|
|
14692
|
+
page,
|
|
14693
|
+
pageSize,
|
|
14694
|
+
fileList
|
|
14695
|
+
]);
|
|
14696
|
+
useEffect(function() {
|
|
14697
|
+
var flag = fileList.some(function(item) {
|
|
14698
|
+
return [
|
|
14699
|
+
"waiting",
|
|
14700
|
+
"uploading",
|
|
14701
|
+
"uploadError",
|
|
14702
|
+
"waitParse",
|
|
14703
|
+
"parsing",
|
|
14704
|
+
"parsingError"
|
|
14705
|
+
].includes(item.status);
|
|
14706
|
+
});
|
|
14707
|
+
changeFileCanSending(!flag);
|
|
14708
|
+
}, [
|
|
14709
|
+
fileList
|
|
14710
|
+
]);
|
|
14711
|
+
useImperativeHandle(ref, function() {
|
|
14712
|
+
return {
|
|
14713
|
+
addFile: addFile,
|
|
14714
|
+
changePage: changePage,
|
|
14715
|
+
deleteFile: deleteFile,
|
|
14716
|
+
updateFile: updateFile,
|
|
14717
|
+
getFileList: function() {
|
|
14718
|
+
return recordObj.current.fileList;
|
|
14719
|
+
},
|
|
14720
|
+
vaildFile: vaildFile,
|
|
14721
|
+
fileToCustomFile: fileToCustomFile
|
|
14722
|
+
};
|
|
14723
|
+
});
|
|
14724
|
+
var getCls = function(clsName) {
|
|
14725
|
+
return modules_63b47c51$1[clsName] + " " + prefix + "-" + clsName;
|
|
14726
|
+
};
|
|
14727
|
+
var vaildFile = function(file, fileId) {
|
|
14728
|
+
if (fileUpload.maxCount > 0 && recordObj.current.fileList.length > fileUpload.maxCount) {
|
|
14729
|
+
errorCallback({
|
|
14730
|
+
type: "fileCountOver",
|
|
14731
|
+
message: "上传失败,文件数量超过限制"
|
|
14732
|
+
});
|
|
14733
|
+
return false;
|
|
14734
|
+
}
|
|
14735
|
+
// fileUpload
|
|
14736
|
+
var acceptList = fileUpload.accept.split(/[.,]/).filter(function(item) {
|
|
14737
|
+
return !!item;
|
|
14738
|
+
});
|
|
14739
|
+
var suffix = getSuffix(file.name);
|
|
14740
|
+
if (!acceptList.includes(suffix)) {
|
|
14741
|
+
errorCallback({
|
|
14742
|
+
type: "fileAcceptError",
|
|
14743
|
+
message: "上传失败,文件格式错误"
|
|
14744
|
+
});
|
|
14745
|
+
return false;
|
|
14746
|
+
}
|
|
14747
|
+
if (file.size <= 0) {
|
|
14748
|
+
errorCallback({
|
|
14749
|
+
type: "fileSizeEmpty",
|
|
14750
|
+
message: "上传失败,不支持上传空内容文件"
|
|
14751
|
+
});
|
|
14752
|
+
return false;
|
|
14753
|
+
}
|
|
14754
|
+
if (file.size > fileUpload.maxSize) {
|
|
14755
|
+
errorCallback({
|
|
14756
|
+
type: "fileSizeOver",
|
|
14757
|
+
message: "上传失败,文件大小超过限制"
|
|
14758
|
+
});
|
|
14759
|
+
return false;
|
|
14760
|
+
}
|
|
14761
|
+
var flag = recordObj.current.fileList.some(function(item) {
|
|
14762
|
+
if (fileId) {
|
|
14763
|
+
return item.name === file.name && item.fileId !== fileId;
|
|
14764
|
+
} else {
|
|
14765
|
+
return item.name === file.name;
|
|
14766
|
+
}
|
|
14767
|
+
});
|
|
14768
|
+
// 判断是否有同名文件
|
|
14769
|
+
if (flag) {
|
|
14770
|
+
errorCallback({
|
|
14771
|
+
type: "fileNameExist",
|
|
14772
|
+
message: "上传失败,文件已存在"
|
|
14773
|
+
});
|
|
14774
|
+
return false;
|
|
14775
|
+
}
|
|
14776
|
+
return true;
|
|
14777
|
+
};
|
|
14778
|
+
var addFile = function(file, fileId) {
|
|
14779
|
+
console.log("addFileaddFile", file, fileUpload);
|
|
14780
|
+
if (vaildFile(file, fileId)) {
|
|
14781
|
+
// 等待上传
|
|
14782
|
+
// 判断是否存在等待上传的文件
|
|
14783
|
+
setFileList(function(fileList) {
|
|
14784
|
+
var uploadingList = fileList.filter(function(item) {
|
|
14785
|
+
return item.status === "uploading";
|
|
14786
|
+
});
|
|
14787
|
+
if (uploadingList.length >= fileUpload.mapUploadCount) {
|
|
14788
|
+
if (fileId) {
|
|
14789
|
+
return fileList.map(function(item) {
|
|
14790
|
+
if (item.fileId === fileId) {
|
|
14791
|
+
var obj = fileToCustomFile(file, {});
|
|
14792
|
+
return {
|
|
14793
|
+
name: obj.name,
|
|
14794
|
+
suffix: obj.suffix,
|
|
14795
|
+
fileId: fileId,
|
|
14796
|
+
url: "",
|
|
14797
|
+
status: "waiting",
|
|
14798
|
+
source: file
|
|
14799
|
+
};
|
|
14800
|
+
}
|
|
14801
|
+
return item;
|
|
14802
|
+
});
|
|
14803
|
+
} else {
|
|
14804
|
+
return _to_consumable_array(fileList).concat([
|
|
14805
|
+
fileToCustomFile(file, {})
|
|
14806
|
+
]);
|
|
14807
|
+
}
|
|
14808
|
+
} else {
|
|
14809
|
+
uploadFile(file);
|
|
14810
|
+
if (fileId) {
|
|
14811
|
+
return fileList.map(function(item) {
|
|
14812
|
+
if (item.fileId === fileId) {
|
|
14813
|
+
var obj = fileToCustomFile(file, {});
|
|
14814
|
+
return {
|
|
14815
|
+
name: obj.name,
|
|
14816
|
+
suffix: obj.suffix,
|
|
14817
|
+
fileId: fileId,
|
|
14818
|
+
url: "",
|
|
14819
|
+
status: "uploading",
|
|
14820
|
+
source: file
|
|
14821
|
+
};
|
|
14822
|
+
}
|
|
14823
|
+
return item;
|
|
14824
|
+
});
|
|
14825
|
+
} else {
|
|
14826
|
+
return _to_consumable_array(fileList).concat([
|
|
14827
|
+
fileToCustomFile(file, {
|
|
14828
|
+
status: "uploading"
|
|
14829
|
+
})
|
|
14830
|
+
]);
|
|
14831
|
+
}
|
|
14832
|
+
}
|
|
14833
|
+
});
|
|
14834
|
+
}
|
|
14835
|
+
};
|
|
14836
|
+
var uploadFile = function(file) {
|
|
14837
|
+
fileUpload.customRequest(file).then(function(res) {
|
|
14838
|
+
setFileList(function(fileList) {
|
|
14839
|
+
var list = fileList.map(function(item) {
|
|
14840
|
+
if (item.source === file) {
|
|
14841
|
+
return _object_spread({}, item, res);
|
|
14842
|
+
}
|
|
14843
|
+
return item;
|
|
14844
|
+
});
|
|
14845
|
+
var waitList = list.filter(function(item) {
|
|
14846
|
+
return item.status === "waiting";
|
|
14847
|
+
});
|
|
14848
|
+
if (waitList.length > 0) {
|
|
14849
|
+
list = list.map(function(item) {
|
|
14850
|
+
if (item.fileId === waitList[0].fileId) {
|
|
14851
|
+
return _object_spread_props(_object_spread({}, item), {
|
|
14852
|
+
status: "uploading"
|
|
14853
|
+
});
|
|
14854
|
+
}
|
|
14855
|
+
return item;
|
|
14856
|
+
});
|
|
14857
|
+
uploadFile(waitList[0].source);
|
|
14858
|
+
}
|
|
14859
|
+
return list;
|
|
14860
|
+
});
|
|
14861
|
+
});
|
|
14862
|
+
};
|
|
14863
|
+
// 删除文件
|
|
14864
|
+
var deleteFile = function(fileId) {
|
|
14865
|
+
setFileList(function(fileList) {
|
|
14866
|
+
return fileList.filter(function(item) {
|
|
14867
|
+
return item.fileId !== fileId;
|
|
14868
|
+
});
|
|
14869
|
+
});
|
|
14870
|
+
// 删除文件时如果删除的是最后一条 则page-1
|
|
14871
|
+
var _recordObj_current = recordObj.current, fileList = _recordObj_current.fileList, page = _recordObj_current.page, pageSize = _recordObj_current.pageSize;
|
|
14872
|
+
var list = fileList.slice((page - 1) * pageSize, page * pageSize);
|
|
14873
|
+
list = list.filter(function(item) {
|
|
14874
|
+
return item.fileId !== fileId;
|
|
14875
|
+
});
|
|
14876
|
+
if (list.length === 0 && page > 1) {
|
|
14877
|
+
changePage(page - 1);
|
|
14878
|
+
}
|
|
14879
|
+
fileUpload.deleteFileAjax && fileUpload.deleteFileAjax(fileId);
|
|
14880
|
+
};
|
|
14881
|
+
// 更新文件状态
|
|
14882
|
+
var updateFile = function(fileId, status) {
|
|
14883
|
+
setFileList(function(fileList) {
|
|
14884
|
+
return fileList.map(function(item) {
|
|
14885
|
+
if (item.fileId === fileId) {
|
|
14886
|
+
return _object_spread_props(_object_spread({}, item), {
|
|
14887
|
+
status: status
|
|
14888
|
+
});
|
|
14889
|
+
}
|
|
14890
|
+
return item;
|
|
14891
|
+
});
|
|
14892
|
+
});
|
|
14893
|
+
};
|
|
14894
|
+
// file to customFile
|
|
14895
|
+
var fileToCustomFile = function(file, params) {
|
|
14896
|
+
var customFile = {
|
|
14897
|
+
name: file.name,
|
|
14898
|
+
suffix: getSuffix(file.name),
|
|
14899
|
+
fileId: params.fileId || guidGenerator(),
|
|
14900
|
+
url: params.url || "",
|
|
14901
|
+
status: params.status || "waiting",
|
|
14902
|
+
source: file
|
|
14903
|
+
};
|
|
14904
|
+
return customFile;
|
|
14905
|
+
};
|
|
14906
|
+
var changePage = function(page) {
|
|
14907
|
+
setPage(page);
|
|
14908
|
+
setPageSize(pageSize);
|
|
14909
|
+
};
|
|
14910
|
+
var list = fileList.slice((page - 1) * pageSize, page * pageSize);
|
|
14911
|
+
if (list.length === 0) return null;
|
|
14912
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
14913
|
+
className: "".concat(getCls("footer-fileList-wrapper")),
|
|
14914
|
+
children: [
|
|
14915
|
+
page !== 1 && /*#__PURE__*/ jsx("div", {
|
|
14916
|
+
className: "".concat(getCls("footer-fileList-pre")),
|
|
14917
|
+
onClick: function() {
|
|
14918
|
+
return changePage(page - 1);
|
|
14919
|
+
},
|
|
14920
|
+
children: /*#__PURE__*/ jsx(DoubleRightOutlined, {
|
|
14921
|
+
onPointerEnterCapture: undefined,
|
|
14922
|
+
onPointerLeaveCapture: undefined
|
|
14923
|
+
})
|
|
14924
|
+
}),
|
|
14925
|
+
/*#__PURE__*/ jsx("div", {
|
|
14926
|
+
className: "".concat(getCls("footer-fileList-list")),
|
|
14927
|
+
children: list.map(function(item) {
|
|
14928
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
14929
|
+
className: "".concat(getCls("footer-fileList-listItem")),
|
|
14930
|
+
children: [
|
|
14931
|
+
/*#__PURE__*/ jsx("div", {
|
|
14932
|
+
className: "".concat(getCls("footer-fileList-listItem-icon")),
|
|
14933
|
+
children: fileIconRender(item.suffix, fileUpload.iconFileRender)
|
|
14934
|
+
}),
|
|
14935
|
+
/*#__PURE__*/ jsx("div", {
|
|
14936
|
+
className: "".concat(getCls("footer-fileList-listItem-text")),
|
|
14937
|
+
title: item.name,
|
|
14938
|
+
children: item.name
|
|
14939
|
+
}),
|
|
14940
|
+
item.status === "uploadError" ? /*#__PURE__*/ jsx(Upload, {
|
|
14941
|
+
fileList: [],
|
|
14942
|
+
accept: fileUpload.accept,
|
|
14943
|
+
customRequest: function(options) {
|
|
14944
|
+
return addFile(options.file, item.fileId);
|
|
14945
|
+
},
|
|
14946
|
+
multiple: false,
|
|
14947
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
14948
|
+
className: "".concat(getCls("footer-fileList-listItem-status")),
|
|
14949
|
+
style: {
|
|
14950
|
+
cursor: "pointer"
|
|
14951
|
+
},
|
|
14952
|
+
children: statusRender(item.status, fileUpload.statusText)
|
|
14953
|
+
})
|
|
14954
|
+
}) : /*#__PURE__*/ jsx("div", {
|
|
14955
|
+
className: "".concat(getCls("footer-fileList-listItem-status")),
|
|
14956
|
+
children: statusRender(item.status, fileUpload.statusText)
|
|
14957
|
+
}),
|
|
14958
|
+
/*#__PURE__*/ jsx("div", {
|
|
14959
|
+
className: "".concat(getCls("footer-fileList-listItem-delete")),
|
|
14960
|
+
children: /*#__PURE__*/ jsx(CloseCircleFilled, {
|
|
14961
|
+
onPointerEnterCapture: undefined,
|
|
14962
|
+
onPointerLeaveCapture: undefined,
|
|
14963
|
+
onClick: function() {
|
|
14964
|
+
return deleteFile(item.fileId);
|
|
14965
|
+
}
|
|
14966
|
+
})
|
|
14967
|
+
})
|
|
14968
|
+
]
|
|
14969
|
+
}, item.fileId);
|
|
14970
|
+
})
|
|
14971
|
+
}),
|
|
14972
|
+
page * pageSize < fileList.length && /*#__PURE__*/ jsx("div", {
|
|
14973
|
+
className: "".concat(getCls("footer-fileList-next")),
|
|
14974
|
+
onClick: function() {
|
|
14975
|
+
return changePage(page + 1);
|
|
14976
|
+
},
|
|
14977
|
+
children: /*#__PURE__*/ jsx(DoubleRightOutlined, {
|
|
14978
|
+
onPointerEnterCapture: undefined,
|
|
14979
|
+
onPointerLeaveCapture: undefined
|
|
14980
|
+
})
|
|
14981
|
+
})
|
|
14982
|
+
]
|
|
14983
|
+
});
|
|
14984
|
+
});
|
|
14985
|
+
var FileList$1 = FileList;
|
|
14986
|
+
|
|
14987
|
+
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"};
|
|
14988
|
+
|
|
14989
|
+
var References = function(props) {
|
|
14990
|
+
var prefix = props.prefix, referencesSource = props.referencesSource, fileUpload = props.fileUpload, deleteReferences = props.deleteReferences;
|
|
14991
|
+
var getCls = function(clsName) {
|
|
14992
|
+
return modules_63b47c51[clsName] + " " + prefix + "-" + clsName;
|
|
14993
|
+
};
|
|
14994
|
+
if (!referencesSource) return null;
|
|
14995
|
+
if (referencesSource.type === "text") {
|
|
14996
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
14997
|
+
className: "".concat(getCls("footerReferences")),
|
|
14998
|
+
children: [
|
|
14999
|
+
/*#__PURE__*/ jsx("div", {
|
|
15000
|
+
className: "".concat(getCls("footerReferences_left")),
|
|
15001
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
15002
|
+
className: "".concat(getCls("footerReferences_left_text")),
|
|
15003
|
+
children: referencesSource.value
|
|
15004
|
+
})
|
|
15005
|
+
}),
|
|
15006
|
+
/*#__PURE__*/ jsx("div", {
|
|
15007
|
+
className: "".concat(getCls("footerReferences_right")),
|
|
15008
|
+
children: /*#__PURE__*/ jsx(CloseCircleFilled, {
|
|
15009
|
+
onPointerEnterCapture: undefined,
|
|
15010
|
+
onPointerLeaveCapture: undefined,
|
|
15011
|
+
onClick: function() {
|
|
15012
|
+
return deleteReferences();
|
|
15013
|
+
}
|
|
15014
|
+
})
|
|
15015
|
+
})
|
|
15016
|
+
]
|
|
15017
|
+
});
|
|
15018
|
+
}
|
|
15019
|
+
if (referencesSource.type === "file" && fileUpload) {
|
|
15020
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
15021
|
+
className: "".concat(getCls("footerReferences")),
|
|
15022
|
+
children: [
|
|
15023
|
+
/*#__PURE__*/ jsx("div", {
|
|
15024
|
+
className: "".concat(getCls("footerReferences_left")),
|
|
15025
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
15026
|
+
className: "".concat(getCls("footerReferences_left_file")),
|
|
15027
|
+
children: [
|
|
15028
|
+
/*#__PURE__*/ jsx("div", {
|
|
15029
|
+
className: "".concat(getCls("footerReferences_left_file_icon")),
|
|
15030
|
+
children: fileIconRender(referencesSource.value.suffix, fileUpload.iconFileRender)
|
|
15031
|
+
}),
|
|
15032
|
+
/*#__PURE__*/ jsx("div", {
|
|
15033
|
+
className: "".concat(getCls("footerReferences_left_file_title")),
|
|
15034
|
+
title: referencesSource.value.name,
|
|
15035
|
+
children: referencesSource.value.name
|
|
15036
|
+
})
|
|
15037
|
+
]
|
|
15038
|
+
})
|
|
15039
|
+
}),
|
|
15040
|
+
/*#__PURE__*/ jsx("div", {
|
|
15041
|
+
className: "".concat(getCls("footerReferences_right")),
|
|
15042
|
+
children: /*#__PURE__*/ jsx(CloseCircleFilled, {
|
|
15043
|
+
onPointerEnterCapture: undefined,
|
|
15044
|
+
onPointerLeaveCapture: undefined,
|
|
15045
|
+
onClick: function() {
|
|
15046
|
+
return deleteReferences();
|
|
15047
|
+
}
|
|
15048
|
+
})
|
|
15049
|
+
})
|
|
15050
|
+
]
|
|
15051
|
+
});
|
|
15052
|
+
}
|
|
15053
|
+
return null;
|
|
15054
|
+
};
|
|
15055
|
+
var References$1 = References;
|
|
15056
|
+
|
|
15057
|
+
var TextArea = BhdEnterInput.TextArea;
|
|
15058
|
+
var defaultProps = {
|
|
15059
|
+
placeholder: "请输入内容\n按Enter发送,Shift+Enter换行",
|
|
15060
|
+
className: "",
|
|
15061
|
+
maxLength: 500,
|
|
15062
|
+
fileUpload: false
|
|
15063
|
+
};
|
|
15064
|
+
var defaultFileUploadProps = {
|
|
15065
|
+
accept: ".pdf,.ppt,.pptx,.doc,.docx,.xls,.xlsx,.txt,.text,.png,.jpg,.jpeg,.gif,.webp",
|
|
15066
|
+
maxCount: 10,
|
|
15067
|
+
maxSize: 50 * 1024 * 1024,
|
|
15068
|
+
mapUploadCount: 1,
|
|
15069
|
+
multiple: true
|
|
15070
|
+
};
|
|
15071
|
+
var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
15072
|
+
var footerConfig = props.footerConfig, prefix = props.prefix, errorCallback = props.errorCallback, apiRef = props.apiRef;
|
|
15073
|
+
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;
|
|
15074
|
+
if (fileUpload) {
|
|
15075
|
+
fileUpload = _object_spread({}, defaultFileUploadProps, fileUpload);
|
|
15076
|
+
}
|
|
15077
|
+
var fileListRef = useRef(null);
|
|
15078
|
+
var ctrl = useRef(); //停止生成ai回答时使用
|
|
15079
|
+
var _useState = _sliced_to_array(useState(""), 2), textValue = _useState[0], setTextValue = _useState[1];
|
|
15080
|
+
var _useState1 = _sliced_to_array(useState(false), 2), sending = _useState1[0], setSending = _useState1[1];
|
|
15081
|
+
var _useState2 = _sliced_to_array(useState(true), 2), fileCanSending = _useState2[0], setFileCanSending = _useState2[1]; // 是否允许发送 关联文件
|
|
15082
|
+
// const [referencesSource, setReferencesSource] = useState<referenceType>({
|
|
15083
|
+
// type: "file",
|
|
15084
|
+
// value: {
|
|
15085
|
+
// name: "文件名字.doc",
|
|
15086
|
+
// suffix: "doc",
|
|
15087
|
+
// fileId: "",
|
|
15088
|
+
// url: "",
|
|
15089
|
+
// status: undefined,
|
|
15090
|
+
// source: undefined,
|
|
15091
|
+
// },
|
|
15092
|
+
// });
|
|
15093
|
+
var _useState3 = _sliced_to_array(useState(null), 2), referencesSource = _useState3[0], setReferencesSource = _useState3[1];
|
|
15094
|
+
var recordRef = useRef({
|
|
15095
|
+
value: textValue,
|
|
15096
|
+
referencesSource: referencesSource,
|
|
15097
|
+
sending: sending
|
|
15098
|
+
});
|
|
15099
|
+
useImperativeHandle(ref, function() {
|
|
15100
|
+
return _object_spread({
|
|
15101
|
+
setTextValue: setTextValue,
|
|
15102
|
+
sendMsg: sendMsg,
|
|
15103
|
+
clearText: function() {
|
|
15104
|
+
setTextValue("");
|
|
15105
|
+
},
|
|
15106
|
+
getCanSendMsg: function() {
|
|
15107
|
+
return canSendMsg;
|
|
15108
|
+
},
|
|
15109
|
+
stopMessage: function() {
|
|
15110
|
+
stopMessage();
|
|
15111
|
+
},
|
|
15112
|
+
setReferences: function(reference) {
|
|
15113
|
+
setReferencesSource(reference);
|
|
15114
|
+
}
|
|
15115
|
+
}, fileListRef.current);
|
|
15116
|
+
});
|
|
15117
|
+
useEffect(function() {
|
|
15118
|
+
recordRef.current.value = textValue;
|
|
15119
|
+
recordRef.current.referencesSource = referencesSource;
|
|
15120
|
+
recordRef.current.sending = sending;
|
|
15121
|
+
}, [
|
|
15122
|
+
textValue,
|
|
15123
|
+
referencesSource,
|
|
15124
|
+
sending
|
|
15125
|
+
]);
|
|
15126
|
+
// 是否允许发送消息
|
|
15127
|
+
var canSendMsg = useMemo(function() {
|
|
15128
|
+
if (textValue.trim().length === 0) return false;
|
|
15129
|
+
if (typeof maxLength === "function") {
|
|
15130
|
+
if (maxLength(textValue)) return false;
|
|
15131
|
+
}
|
|
15132
|
+
if (textValue.trim().length > maxLength) return false;
|
|
15133
|
+
if (sending) return false;
|
|
15134
|
+
if (!fileCanSending) return false;
|
|
15135
|
+
return true;
|
|
15136
|
+
}, [
|
|
15137
|
+
textValue,
|
|
15138
|
+
maxLength,
|
|
15139
|
+
sending,
|
|
15140
|
+
fileCanSending
|
|
15141
|
+
]);
|
|
15142
|
+
var stopMessage = function() {
|
|
15143
|
+
ctrl.current && ctrl.current.abort();
|
|
15144
|
+
apiRef.contentApi.clearInputing();
|
|
15145
|
+
setSending(false);
|
|
15146
|
+
};
|
|
15147
|
+
var getCls = function(clsName) {
|
|
15148
|
+
return modules_63b47c51$4[clsName] + " " + prefix + "-" + clsName;
|
|
15149
|
+
};
|
|
15150
|
+
var renderBtn = function() {
|
|
15151
|
+
var sendNode = /*#__PURE__*/ jsx(SendBtn$2, {
|
|
15152
|
+
prefix: prefix,
|
|
15153
|
+
canSendMsg: canSendMsg,
|
|
15154
|
+
sending: sending,
|
|
15155
|
+
stopMessage: stopMessage
|
|
15156
|
+
});
|
|
15157
|
+
if (fileUpload) {
|
|
15158
|
+
var fileNode = /*#__PURE__*/ jsx(UploadFileBtn, {
|
|
15159
|
+
prefix: prefix,
|
|
15160
|
+
fileUpload: fileUpload,
|
|
15161
|
+
customRequest: function(options) {
|
|
15162
|
+
var _fileListRef_current;
|
|
15163
|
+
console.log("customRequestcustomRequest", options);
|
|
15164
|
+
(_fileListRef_current = fileListRef.current) === null || _fileListRef_current === void 0 ? void 0 : _fileListRef_current.addFile(options.file);
|
|
15165
|
+
}
|
|
15166
|
+
});
|
|
15167
|
+
if (renderAction) {
|
|
15168
|
+
return renderAction(sendNode, fileNode);
|
|
15169
|
+
} else {
|
|
15170
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
15171
|
+
className: "".concat(getCls("footerActionBtn")),
|
|
15172
|
+
children: [
|
|
15173
|
+
fileNode,
|
|
15174
|
+
/*#__PURE__*/ jsx(Divider, {
|
|
15175
|
+
type: "vertical"
|
|
15176
|
+
}),
|
|
15177
|
+
sendNode
|
|
15178
|
+
]
|
|
15179
|
+
});
|
|
15180
|
+
}
|
|
15181
|
+
} else {
|
|
15182
|
+
var fileNode1 = null;
|
|
15183
|
+
if (renderAction) {
|
|
15184
|
+
return renderAction(sendNode, fileNode1);
|
|
15185
|
+
} else {
|
|
15186
|
+
return /*#__PURE__*/ jsx("div", {
|
|
15187
|
+
className: "".concat(getCls("footerActionBtn")),
|
|
15188
|
+
children: sendNode
|
|
15189
|
+
});
|
|
15190
|
+
}
|
|
15191
|
+
}
|
|
15192
|
+
};
|
|
15193
|
+
var onPressEnter = function(e) {
|
|
15194
|
+
// 判断是否按下了 Shift 键
|
|
15195
|
+
if (e.shiftKey) {
|
|
15196
|
+
// 如果按下了 Shift + Enter,则允许换行(默认行为)
|
|
15197
|
+
return;
|
|
15198
|
+
} else {
|
|
15199
|
+
if (textValue.length === 0) {
|
|
15200
|
+
// 内容为空时 执行换行操作
|
|
15201
|
+
return;
|
|
15202
|
+
}
|
|
15203
|
+
// 如果只按了 Enter,则阻止默认行为并发送消息
|
|
15204
|
+
e.preventDefault();
|
|
15205
|
+
// 在这里添加发送消息的逻辑
|
|
15206
|
+
sendMsg(textValue);
|
|
15207
|
+
}
|
|
15208
|
+
};
|
|
15209
|
+
// 发现消息
|
|
15210
|
+
var sendMsg = function(value) {
|
|
15211
|
+
if (value.trim().length === 0) return;
|
|
15212
|
+
if (!canSendMsg) return;
|
|
15213
|
+
console.log("发送消息:", value);
|
|
15214
|
+
apiRef.contentApi.addMsg({
|
|
15215
|
+
id: guidGenerator(),
|
|
15216
|
+
createTime: new Date().getTime(),
|
|
15217
|
+
content: value,
|
|
15218
|
+
location: "right",
|
|
15219
|
+
reference: recordRef.current.referencesSource,
|
|
15220
|
+
source: null
|
|
15221
|
+
});
|
|
15222
|
+
sendMsgAjax();
|
|
15223
|
+
};
|
|
15224
|
+
var sendMsgAjax = function() {
|
|
15225
|
+
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 ? {} : _sendMsgAjaxParams_headers, _sendMsgAjaxParams_params = sendMsgAjaxParams.params, params = _sendMsgAjaxParams_params === void 0 ? function() {
|
|
15226
|
+
return "";
|
|
15227
|
+
} : _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) {
|
|
15228
|
+
return ev;
|
|
15229
|
+
} : _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;
|
|
15230
|
+
ctrl.current = new AbortController();
|
|
15231
|
+
// apiRef
|
|
15232
|
+
console.log("apiRef", apiRef);
|
|
15233
|
+
var msgId = "inputing";
|
|
15234
|
+
var createTime = new Date().getTime();
|
|
15235
|
+
apiRef.contentApi.addMsg({
|
|
15236
|
+
id: msgId,
|
|
15237
|
+
createTime: createTime,
|
|
15238
|
+
content: "正在输入...",
|
|
15239
|
+
location: "left",
|
|
15240
|
+
reference: null,
|
|
15241
|
+
source: null
|
|
15242
|
+
});
|
|
15243
|
+
var msgContent = "";
|
|
15244
|
+
setSending(true);
|
|
15245
|
+
setTextValue("");
|
|
15246
|
+
setReferencesSource(null);
|
|
15247
|
+
var arg = [
|
|
15248
|
+
recordRef.current.value,
|
|
15249
|
+
recordRef.current.referencesSource,
|
|
15250
|
+
fileListRef.current ? fileListRef.current.getFileList() : []
|
|
15251
|
+
];
|
|
15252
|
+
fetchEventSource(url, _object_spread({
|
|
15253
|
+
method: method,
|
|
15254
|
+
headers: _object_spread({
|
|
15255
|
+
"Content-Type": "application/json",
|
|
15256
|
+
Accept: "text/event-stream,application/json"
|
|
15257
|
+
}, headers),
|
|
15258
|
+
body: params.apply(void 0, _to_consumable_array(arg)),
|
|
15259
|
+
openWhenHidden: true,
|
|
15260
|
+
signal: ctrl.current.signal,
|
|
15261
|
+
onopen: function(res) {
|
|
15262
|
+
onOpen(res);
|
|
15263
|
+
if (res.status === 200) ;
|
|
15264
|
+
return null;
|
|
15265
|
+
},
|
|
15266
|
+
onmessage: function(ev) {
|
|
15267
|
+
var data = onMessage(ev);
|
|
15268
|
+
msgContent += data.content;
|
|
15269
|
+
delete data.content;
|
|
15270
|
+
apiRef.contentApi.updateMsg(msgId, _object_spread({
|
|
15271
|
+
createTime: createTime,
|
|
15272
|
+
content: msgContent,
|
|
15273
|
+
location: "left",
|
|
15274
|
+
reference: null,
|
|
15275
|
+
source: null
|
|
15276
|
+
}, data));
|
|
15277
|
+
msgId = data.id;
|
|
15278
|
+
},
|
|
15279
|
+
onclose: function() {
|
|
15280
|
+
onClose();
|
|
15281
|
+
setSending(false);
|
|
15282
|
+
console.log("onclose: ", event);
|
|
15283
|
+
},
|
|
15284
|
+
onerror: function(err) {
|
|
15285
|
+
onError(err);
|
|
15286
|
+
console.log("onerror: ", err);
|
|
15287
|
+
}
|
|
15288
|
+
}, coverProps));
|
|
15289
|
+
};
|
|
15290
|
+
// 判断是否超出最大字数
|
|
15291
|
+
var judegTextLengthWarn = function() {
|
|
15292
|
+
if (typeof maxLength === "function") {
|
|
15293
|
+
return maxLength(textValue);
|
|
15294
|
+
} else {
|
|
15295
|
+
return textValue.length > maxLength;
|
|
15296
|
+
}
|
|
15297
|
+
};
|
|
15298
|
+
return /*#__PURE__*/ jsx("div", {
|
|
15299
|
+
className: "".concat(getCls("footer"), " ").concat(className),
|
|
15300
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
15301
|
+
className: "".concat(getCls("footerBody"), " ").concat(judegTextLengthWarn() ? getCls("footerBodyWarn") : ""),
|
|
15302
|
+
children: [
|
|
15303
|
+
fileUpload && /*#__PURE__*/ jsx("div", {
|
|
15304
|
+
className: getCls("footerFile"),
|
|
15305
|
+
children: /*#__PURE__*/ jsx(FileList$1, {
|
|
15306
|
+
prefix: prefix,
|
|
15307
|
+
fileUpload: fileUpload,
|
|
15308
|
+
ref: fileListRef,
|
|
15309
|
+
errorCallback: errorCallback,
|
|
15310
|
+
changeFileCanSending: setFileCanSending
|
|
15311
|
+
})
|
|
15312
|
+
}),
|
|
15313
|
+
/*#__PURE__*/ jsxs("div", {
|
|
15314
|
+
className: getCls("footerInput"),
|
|
15315
|
+
children: [
|
|
15316
|
+
/*#__PURE__*/ jsx(TextArea, {
|
|
15317
|
+
value: textValue,
|
|
15318
|
+
onChange: function(e) {
|
|
15319
|
+
setTextValue(e.target.value);
|
|
15320
|
+
},
|
|
15321
|
+
placeholder: placeholder,
|
|
15322
|
+
autoSize: {
|
|
15323
|
+
minRows: 2,
|
|
15324
|
+
maxRows: 6
|
|
15325
|
+
},
|
|
15326
|
+
onPressEnter: onPressEnter
|
|
15327
|
+
}),
|
|
15328
|
+
/*#__PURE__*/ jsx(References$1, {
|
|
15329
|
+
prefix: prefix,
|
|
15330
|
+
referencesSource: referencesSource,
|
|
15331
|
+
fileUpload: fileUpload,
|
|
15332
|
+
deleteReferences: function() {
|
|
15333
|
+
return setReferencesSource(null);
|
|
15334
|
+
}
|
|
15335
|
+
})
|
|
15336
|
+
]
|
|
15337
|
+
}),
|
|
15338
|
+
/*#__PURE__*/ jsx("div", {
|
|
15339
|
+
className: getCls("footerAction"),
|
|
15340
|
+
children: renderBtn()
|
|
15341
|
+
})
|
|
15342
|
+
]
|
|
15343
|
+
})
|
|
15344
|
+
});
|
|
15345
|
+
});
|
|
15346
|
+
var Footer$1 = Footer;
|
|
15347
|
+
|
|
15348
|
+
var errorCallback = function(errObj) {
|
|
15349
|
+
message.customError(errObj.message);
|
|
15350
|
+
};
|
|
15351
|
+
var errorCallbackDefault = errorCallback;
|
|
15352
|
+
|
|
15353
|
+
var AIMessageList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
15354
|
+
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;
|
|
15355
|
+
var footerRef = useRef(null);
|
|
15356
|
+
var contentRef = useRef(null);
|
|
15357
|
+
var apiRef = useRef({
|
|
15358
|
+
contentApi: null,
|
|
15359
|
+
footerApi: null
|
|
15360
|
+
});
|
|
15361
|
+
useImperativeHandle(ref, function() {
|
|
15362
|
+
apiRef.current.contentApi = contentRef.current;
|
|
15363
|
+
apiRef.current.footerApi = footerRef.current;
|
|
15364
|
+
return apiRef.current;
|
|
15365
|
+
});
|
|
15366
|
+
var getCls = function(clsName) {
|
|
15367
|
+
return modules_63b47c51$a[clsName] + " " + prefix + "-" + clsName;
|
|
15368
|
+
};
|
|
15369
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
15370
|
+
className: "".concat(getCls("root"), " ").concat(className),
|
|
15371
|
+
children: [
|
|
15372
|
+
/*#__PURE__*/ jsx("div", {
|
|
15373
|
+
className: getCls("rootHeader"),
|
|
15374
|
+
children: /*#__PURE__*/ jsx(Header$2, {
|
|
15375
|
+
headerConfig: headerConfig,
|
|
15376
|
+
prefix: prefix,
|
|
15377
|
+
errorCallback: errorCallback
|
|
15378
|
+
})
|
|
15379
|
+
}),
|
|
15380
|
+
/*#__PURE__*/ jsx("div", {
|
|
15381
|
+
className: getCls("rootContent"),
|
|
15382
|
+
children: /*#__PURE__*/ jsx(Content$1, {
|
|
15383
|
+
prefix: prefix,
|
|
15384
|
+
contentConfig: contentConfig,
|
|
15385
|
+
ref: contentRef,
|
|
15386
|
+
apiRef: apiRef.current
|
|
15387
|
+
})
|
|
15388
|
+
}),
|
|
15389
|
+
/*#__PURE__*/ jsx("div", {
|
|
15390
|
+
className: getCls("rootFooter"),
|
|
15391
|
+
children: /*#__PURE__*/ jsx(Footer$1, {
|
|
15392
|
+
footerConfig: footerConfig,
|
|
15393
|
+
prefix: prefix,
|
|
15394
|
+
errorCallback: errorCallback,
|
|
15395
|
+
ref: footerRef,
|
|
15396
|
+
apiRef: apiRef.current
|
|
15397
|
+
})
|
|
15398
|
+
})
|
|
15399
|
+
]
|
|
15400
|
+
});
|
|
15401
|
+
});
|
|
15402
|
+
var AIMessageList$1 = AIMessageList;
|
|
15403
|
+
|
|
15404
|
+
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 };
|