bhd-components 0.10.5 → 0.10.6
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 +127 -87
- package/dist/index.esm.es5.development.js +453 -249
- 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 +2 -2
- package/dist/vendor.esm.es5.production.js +2 -2
- package/es2017/AIMessageList/components/copyIcon/index.js +22 -7
- package/es2017/AIMessageList/components/copyIcon/index.module.less +2 -2
- package/es2017/AIMessageList/components/fileList/index.js +11 -2
- package/es2017/AIMessageList/components/footer/index.js +59 -48
- package/es2017/AIMessageList/components/referencesIcon/index.js +19 -8
- package/es2017/AIMessageList/components/referencesIcon/index.module.less +1 -1
- package/es2017/AIMessageList/components/refreshBtn/index.d.ts +4 -0
- package/es2017/AIMessageList/components/refreshBtn/index.js +29 -0
- package/es2017/AIMessageList/components/refreshBtn/index.module.less +12 -0
- package/es2017/AIMessageList/components/remarkBtn/index.d.ts +4 -0
- package/es2017/AIMessageList/components/remarkBtn/index.js +51 -0
- package/es2017/AIMessageList/components/remarkBtn/index.module.less +13 -0
- package/es2017/AIMessageList/components/virtuosoList/index.js +91 -13
- package/es2017/AIMessageList/components/virtuosoList/index.module.less +10 -1
- package/es2017/AIMessageList/type.d.ts +42 -10
- package/esm/AIMessageList/components/copyIcon/index.js +22 -7
- package/esm/AIMessageList/components/copyIcon/index.module.less +2 -2
- package/esm/AIMessageList/components/fileList/index.js +7 -2
- package/esm/AIMessageList/components/footer/index.js +63 -50
- package/esm/AIMessageList/components/referencesIcon/index.js +19 -8
- package/esm/AIMessageList/components/referencesIcon/index.module.less +1 -1
- package/esm/AIMessageList/components/refreshBtn/index.d.ts +4 -0
- package/esm/AIMessageList/components/refreshBtn/index.js +31 -0
- package/esm/AIMessageList/components/refreshBtn/index.module.less +12 -0
- package/esm/AIMessageList/components/remarkBtn/index.d.ts +4 -0
- package/esm/AIMessageList/components/remarkBtn/index.js +51 -0
- package/esm/AIMessageList/components/remarkBtn/index.module.less +13 -0
- package/esm/AIMessageList/components/virtuosoList/index.js +93 -13
- package/esm/AIMessageList/components/virtuosoList/index.module.less +10 -1
- package/esm/AIMessageList/type.d.ts +42 -10
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
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 cn, W as Popover, Y as DoubleRightOutlined, $ as CloseCircleFilled, a0 as
|
|
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,
|
|
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 cn, W as Popover, Y as DoubleRightOutlined, $ as CloseCircleFilled, a0 as Divider, a1 as fetchEventSource } 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, a0 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
4
|
import React__default, { useState, useRef, useEffect, useLayoutEffect, forwardRef, useImperativeHandle, useCallback, useMemo } from 'react';
|
|
5
5
|
import { Fragment } from 'react/jsx-runtime';
|
|
@@ -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$o = {"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$o.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$o.Table, " ").concat(kind === "simple" ? modules_63b47c51$o.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$n = {"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$n.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$n.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$n.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$n.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$m = {"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$m.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$l = {"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$l.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$k = {"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$k.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$k.left, " ").concat(leftClassName),
|
|
1403
1403
|
children: [
|
|
1404
1404
|
leftIcon && /*#__PURE__*/ jsx("div", {
|
|
1405
|
-
className: "".concat(modules_63b47c51$
|
|
1405
|
+
className: "".concat(modules_63b47c51$k.leftIcon, " ").concat(leftIconClassName),
|
|
1406
1406
|
children: leftIcon
|
|
1407
1407
|
}),
|
|
1408
1408
|
/*#__PURE__*/ jsxs("div", {
|
|
1409
|
-
className: modules_63b47c51$
|
|
1409
|
+
className: modules_63b47c51$k.leftContent,
|
|
1410
1410
|
children: [
|
|
1411
1411
|
/*#__PURE__*/ jsx("div", {
|
|
1412
|
-
className: "".concat(modules_63b47c51$
|
|
1412
|
+
className: "".concat(modules_63b47c51$k.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$k.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$k.right, " ").concat(rightClassName),
|
|
1425
1425
|
ref: rightContentRef,
|
|
1426
1426
|
children: renderRightContent()
|
|
1427
1427
|
})
|
|
@@ -1430,7 +1430,7 @@ var TitleBar = function(props) {
|
|
|
1430
1430
|
};
|
|
1431
1431
|
var TitleBar$1 = TitleBar;
|
|
1432
1432
|
|
|
1433
|
-
var modules_63b47c51$
|
|
1433
|
+
var modules_63b47c51$j = {"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) {
|
|
@@ -1480,7 +1480,7 @@ var copyText$1 = function(text) {
|
|
|
1480
1480
|
return true;
|
|
1481
1481
|
};
|
|
1482
1482
|
|
|
1483
|
-
var modules_63b47c51$
|
|
1483
|
+
var modules_63b47c51$i = {"confirm":"index_module_confirm__4ee7d3e7","success":"index_module_success__4ee7d3e7","custom":"index_module_custom__4ee7d3e7","noCancel":"index_module_noCancel__4ee7d3e7","noButton":"index_module_noButton__4ee7d3e7","haveComfirm":"index_module_haveComfirm__4ee7d3e7"};
|
|
1484
1484
|
|
|
1485
1485
|
var initConFirmModal = function(obj) {
|
|
1486
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;
|
|
@@ -1516,7 +1516,7 @@ var initConFirmModal = function(obj) {
|
|
|
1516
1516
|
})
|
|
1517
1517
|
]
|
|
1518
1518
|
}),
|
|
1519
|
-
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$
|
|
1519
|
+
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$i.confirm, " ").concat(cancelBtn ? "" : modules_63b47c51$i.noCancel)
|
|
1520
1520
|
});
|
|
1521
1521
|
};
|
|
1522
1522
|
var initSuccessModal = function(obj) {
|
|
@@ -1554,7 +1554,7 @@ var initSuccessModal = function(obj) {
|
|
|
1554
1554
|
})
|
|
1555
1555
|
]
|
|
1556
1556
|
}),
|
|
1557
|
-
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$
|
|
1557
|
+
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$i.success, " ").concat(cancelBtn ? "" : modules_63b47c51$i.noCancel)
|
|
1558
1558
|
});
|
|
1559
1559
|
};
|
|
1560
1560
|
var initCustomModal = function(obj) {
|
|
@@ -1580,7 +1580,7 @@ var initCustomModal = function(obj) {
|
|
|
1580
1580
|
})
|
|
1581
1581
|
]
|
|
1582
1582
|
}),
|
|
1583
|
-
className: "".concat(modules_63b47c51$
|
|
1583
|
+
className: "".concat(modules_63b47c51$i.custom, " ").concat(obj.className || "", " ").concat(cancelBtn ? "" : okBtn ? modules_63b47c51$i.haveComfirm : modules_63b47c51$i.noButton)
|
|
1584
1584
|
});
|
|
1585
1585
|
};
|
|
1586
1586
|
var initInfoModal = function(obj) {
|
|
@@ -1617,7 +1617,7 @@ var initInfoModal = function(obj) {
|
|
|
1617
1617
|
})
|
|
1618
1618
|
]
|
|
1619
1619
|
}),
|
|
1620
|
-
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$
|
|
1620
|
+
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$i.success, " ").concat(cancelBtn ? "" : modules_63b47c51$i.noCancel)
|
|
1621
1621
|
});
|
|
1622
1622
|
};
|
|
1623
1623
|
var initWarnModal = function(obj) {
|
|
@@ -1654,7 +1654,7 @@ var initWarnModal = function(obj) {
|
|
|
1654
1654
|
})
|
|
1655
1655
|
]
|
|
1656
1656
|
}),
|
|
1657
|
-
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$
|
|
1657
|
+
className: "".concat(obj.className || "", " ").concat(modules_63b47c51$i.confirm, " ").concat(cancelBtn ? "" : modules_63b47c51$i.noCancel, " ")
|
|
1658
1658
|
});
|
|
1659
1659
|
};
|
|
1660
1660
|
var BhdTipModal = {
|
|
@@ -1768,7 +1768,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
1768
1768
|
_define_property(_assert_this_initialized(_this), "moveImg", function(ev) {
|
|
1769
1769
|
var _this_state = _this.state, imgLeft = _this_state.imgLeft, imgTop = _this_state.imgTop;
|
|
1770
1770
|
ev.preventDefault();
|
|
1771
|
-
var dom = document.getElementsByClassName("".concat(modules_63b47c51$
|
|
1771
|
+
var dom = document.getElementsByClassName("".concat(modules_63b47c51$j.viewImgBody_pic))[0];
|
|
1772
1772
|
if (!dom) return;
|
|
1773
1773
|
if (imgLeft == "auto") {
|
|
1774
1774
|
imgLeft = getStyle(dom, "left");
|
|
@@ -2071,24 +2071,24 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2071
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;
|
|
2072
2072
|
var _this_props = this.props, content = _this_props.content, download = _this_props.download;
|
|
2073
2073
|
return /*#__PURE__*/ jsxs("div", {
|
|
2074
|
-
className: modules_63b47c51$
|
|
2074
|
+
className: modules_63b47c51$j.viewImgBody,
|
|
2075
2075
|
children: [
|
|
2076
2076
|
/*#__PURE__*/ jsxs("div", {
|
|
2077
|
-
className: modules_63b47c51$
|
|
2077
|
+
className: modules_63b47c51$j.viewImgContent,
|
|
2078
2078
|
children: [
|
|
2079
2079
|
this.state.actionCloseFlag === 1 && /*#__PURE__*/ jsx("div", {
|
|
2080
|
-
className: "".concat(modules_63b47c51$
|
|
2080
|
+
className: "".concat(modules_63b47c51$j.viewImgAction, " ").concat(modules_63b47c51$j.actionTop),
|
|
2081
2081
|
children: /*#__PURE__*/ jsx("span", {
|
|
2082
2082
|
// id="actionClose"
|
|
2083
2083
|
// style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
|
|
2084
|
-
className: modules_63b47c51$
|
|
2084
|
+
className: modules_63b47c51$j.viewImgActionClose,
|
|
2085
2085
|
title: "关闭",
|
|
2086
2086
|
onClick: this.close,
|
|
2087
2087
|
children: /*#__PURE__*/ jsx(CustomClose$1, {})
|
|
2088
2088
|
})
|
|
2089
2089
|
}),
|
|
2090
2090
|
/*#__PURE__*/ jsxs("div", {
|
|
2091
|
-
className: modules_63b47c51$
|
|
2091
|
+
className: modules_63b47c51$j.viewImgAction,
|
|
2092
2092
|
children: [
|
|
2093
2093
|
/*#__PURE__*/ jsx("span", {
|
|
2094
2094
|
title: "旋转",
|
|
@@ -2101,10 +2101,10 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2101
2101
|
children: /*#__PURE__*/ jsx(CustomDownLoad$1, {})
|
|
2102
2102
|
}),
|
|
2103
2103
|
/*#__PURE__*/ jsxs("div", {
|
|
2104
|
-
className: modules_63b47c51$
|
|
2104
|
+
className: modules_63b47c51$j.viewImgBodyScale,
|
|
2105
2105
|
children: [
|
|
2106
2106
|
/*#__PURE__*/ jsx("span", {
|
|
2107
|
-
className: modules_63b47c51$
|
|
2107
|
+
className: modules_63b47c51$j.viewImgBodyScale_minu,
|
|
2108
2108
|
onClick: function() {
|
|
2109
2109
|
scaleValue = scaleValue - 10;
|
|
2110
2110
|
_this.scaleChange(scaleValue);
|
|
@@ -2112,7 +2112,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2112
2112
|
children: /*#__PURE__*/ jsx(MinusOutlined, {})
|
|
2113
2113
|
}),
|
|
2114
2114
|
/*#__PURE__*/ jsxs("span", {
|
|
2115
|
-
className: modules_63b47c51$
|
|
2115
|
+
className: modules_63b47c51$j.viewImgBodyScale_value,
|
|
2116
2116
|
onClick: this.reset,
|
|
2117
2117
|
children: [
|
|
2118
2118
|
scaleValue,
|
|
@@ -2120,7 +2120,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2120
2120
|
]
|
|
2121
2121
|
}),
|
|
2122
2122
|
/*#__PURE__*/ jsx("span", {
|
|
2123
|
-
className: modules_63b47c51$
|
|
2123
|
+
className: modules_63b47c51$j.viewImgBodyScale_add,
|
|
2124
2124
|
onClick: function() {
|
|
2125
2125
|
scaleValue = scaleValue + 10;
|
|
2126
2126
|
_this.scaleChange(scaleValue);
|
|
@@ -2132,11 +2132,11 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2132
2132
|
]
|
|
2133
2133
|
}),
|
|
2134
2134
|
/*#__PURE__*/ jsxs("div", {
|
|
2135
|
-
className: modules_63b47c51$
|
|
2135
|
+
className: modules_63b47c51$j.viewImgBody,
|
|
2136
2136
|
children: [
|
|
2137
2137
|
loading ? /*#__PURE__*/ jsx("img", {
|
|
2138
2138
|
src: Loading,
|
|
2139
|
-
className: modules_63b47c51$
|
|
2139
|
+
className: modules_63b47c51$j.viewImgBody_load
|
|
2140
2140
|
}, "load") : imgError ? /*#__PURE__*/ jsx("div", {
|
|
2141
2141
|
style: {
|
|
2142
2142
|
color: "#FFFFFF"
|
|
@@ -2187,13 +2187,13 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2187
2187
|
left: imgLeft == "auto" ? "auto" : imgLeft + "px",
|
|
2188
2188
|
top: imgTop == "auto" ? "auto" : imgTop + "px"
|
|
2189
2189
|
},
|
|
2190
|
-
className: modules_63b47c51$
|
|
2190
|
+
className: modules_63b47c51$j.viewImgBody_pic,
|
|
2191
2191
|
onLoad: this.imgLoad,
|
|
2192
2192
|
onError: this.imgErr
|
|
2193
2193
|
}, "img"),
|
|
2194
2194
|
this.state.actionCloseFlag === 0 && /*#__PURE__*/ jsx("span", {
|
|
2195
2195
|
id: "actionClose",
|
|
2196
|
-
className: modules_63b47c51$
|
|
2196
|
+
className: modules_63b47c51$j.viewImgActionClose,
|
|
2197
2197
|
title: "关闭",
|
|
2198
2198
|
onClick: this.close,
|
|
2199
2199
|
children: /*#__PURE__*/ jsx(CustomClose$1, {})
|
|
@@ -2203,12 +2203,12 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2203
2203
|
multiSelect && /*#__PURE__*/ jsxs(Fragment, {
|
|
2204
2204
|
children: [
|
|
2205
2205
|
this.state.curIndex !== 0 && /*#__PURE__*/ jsx("div", {
|
|
2206
|
-
className: modules_63b47c51$
|
|
2206
|
+
className: modules_63b47c51$j.viewImgBody_pre,
|
|
2207
2207
|
onClick: this.preChange,
|
|
2208
2208
|
children: /*#__PURE__*/ jsx(LeftOutlined, {})
|
|
2209
2209
|
}),
|
|
2210
2210
|
this.state.curIndex < this.props.multiSelect.length - 1 && /*#__PURE__*/ jsx("div", {
|
|
2211
|
-
className: modules_63b47c51$
|
|
2211
|
+
className: modules_63b47c51$j.viewImgBody_next,
|
|
2212
2212
|
onClick: this.nextChange,
|
|
2213
2213
|
children: /*#__PURE__*/ jsx(RightOutlined, {})
|
|
2214
2214
|
})
|
|
@@ -2219,7 +2219,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2219
2219
|
]
|
|
2220
2220
|
}),
|
|
2221
2221
|
content && /*#__PURE__*/ jsx("div", {
|
|
2222
|
-
className: modules_63b47c51$
|
|
2222
|
+
className: modules_63b47c51$j.viewImgInfo,
|
|
2223
2223
|
children: content()
|
|
2224
2224
|
})
|
|
2225
2225
|
]
|
|
@@ -2254,7 +2254,7 @@ var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
2254
2254
|
maskStyle: {
|
|
2255
2255
|
background: "rgba(0, 0, 0, 0.65)"
|
|
2256
2256
|
},
|
|
2257
|
-
wrapClassName: "".concat(modules_63b47c51$
|
|
2257
|
+
wrapClassName: "".concat(modules_63b47c51$j.AppViewImage, " ").concat(className || ""),
|
|
2258
2258
|
getContainer: getContainer,
|
|
2259
2259
|
children: visible && /*#__PURE__*/ jsx(ViewImage, _object_spread_props(_object_spread({}, props), {
|
|
2260
2260
|
ref: viewRef
|
|
@@ -2263,7 +2263,7 @@ var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
2263
2263
|
});
|
|
2264
2264
|
var ViewImage$1 = AppViewImage;
|
|
2265
2265
|
|
|
2266
|
-
var modules_63b47c51$
|
|
2266
|
+
var modules_63b47c51$h = {"BhdSelect":"index_module_BhdSelect__0483925f","bhdSelect_option":"index_module_bhdSelect_option__0483925f","bhdSelectDrop":"index_module_bhdSelectDrop__0483925f","selectTitle":"index_module_selectTitle__0483925f","bhdSelectSearch":"index_module_bhdSelectSearch__0483925f","search":"index_module_search__0483925f"};
|
|
2267
2267
|
|
|
2268
2268
|
var Search = Input.Search;
|
|
2269
2269
|
var RenderDrop = function(param) {
|
|
@@ -2411,12 +2411,12 @@ var BhdSelect = function(props) {
|
|
|
2411
2411
|
//如果需要搜索菜单
|
|
2412
2412
|
if (showSearch) {
|
|
2413
2413
|
return /*#__PURE__*/ jsxs("div", {
|
|
2414
|
-
className: "".concat(modules_63b47c51$
|
|
2414
|
+
className: "".concat(modules_63b47c51$h.bhdSelectDrop, " ").concat(optionClassName),
|
|
2415
2415
|
ref: bhdDropdownRef,
|
|
2416
2416
|
children: [
|
|
2417
2417
|
renderTitle(),
|
|
2418
2418
|
/*#__PURE__*/ jsx("div", {
|
|
2419
|
-
className: modules_63b47c51$
|
|
2419
|
+
className: modules_63b47c51$h.bhdSelectSearch,
|
|
2420
2420
|
style: {
|
|
2421
2421
|
backgroundColor: select_title ? "rgba(0,0,0,0.02)" : "rgba(0,0,0,0)"
|
|
2422
2422
|
},
|
|
@@ -2426,7 +2426,7 @@ var BhdSelect = function(props) {
|
|
|
2426
2426
|
var value = param.target.value;
|
|
2427
2427
|
setFilterValue(value);
|
|
2428
2428
|
},
|
|
2429
|
-
className: "".concat(modules_63b47c51$
|
|
2429
|
+
className: "".concat(modules_63b47c51$h.search, " ").concat(searchClassName || ""),
|
|
2430
2430
|
onKeyDown: function(e) {
|
|
2431
2431
|
e.stopPropagation();
|
|
2432
2432
|
},
|
|
@@ -2438,7 +2438,7 @@ var BhdSelect = function(props) {
|
|
|
2438
2438
|
});
|
|
2439
2439
|
} else {
|
|
2440
2440
|
return /*#__PURE__*/ jsx("div", {
|
|
2441
|
-
className: modules_63b47c51$
|
|
2441
|
+
className: modules_63b47c51$h.bhdSelectDrop,
|
|
2442
2442
|
ref: bhdDropdownRef,
|
|
2443
2443
|
children: dropdownRender ? dropdownRender(menu) : menu
|
|
2444
2444
|
});
|
|
@@ -2453,7 +2453,7 @@ var BhdSelect = function(props) {
|
|
|
2453
2453
|
return select_title;
|
|
2454
2454
|
} else {
|
|
2455
2455
|
return /*#__PURE__*/ jsx("div", {
|
|
2456
|
-
className: modules_63b47c51$
|
|
2456
|
+
className: modules_63b47c51$h.selectTitle,
|
|
2457
2457
|
children: select_title
|
|
2458
2458
|
});
|
|
2459
2459
|
}
|
|
@@ -2477,7 +2477,7 @@ var BhdSelect = function(props) {
|
|
|
2477
2477
|
var getConfig = function() {
|
|
2478
2478
|
var config = _object_spread_props(_object_spread({}, props), {
|
|
2479
2479
|
listHeight: optionHei,
|
|
2480
|
-
popupClassName: "".concat(modules_63b47c51$
|
|
2480
|
+
popupClassName: "".concat(modules_63b47c51$h.bhdSelect_option, " ").concat(popupClassName || "", " "),
|
|
2481
2481
|
suffixIcon: suffixIcon ? suffixIcon : renderSuffixIcon(),
|
|
2482
2482
|
popupMatchSelectWidth: selectWidth,
|
|
2483
2483
|
dropdownStyle: _object_spread_props(_object_spread({}, props.dropdownStyle), {
|
|
@@ -2499,7 +2499,7 @@ var BhdSelect = function(props) {
|
|
|
2499
2499
|
return config;
|
|
2500
2500
|
};
|
|
2501
2501
|
return /*#__PURE__*/ jsx("div", {
|
|
2502
|
-
className: "".concat(modules_63b47c51$
|
|
2502
|
+
className: "".concat(modules_63b47c51$h.BhdSelect, " ").concat(className),
|
|
2503
2503
|
ref: bhdSelectRef,
|
|
2504
2504
|
children: /*#__PURE__*/ jsx(Select, _object_spread_props(_object_spread({}, getConfig()), {
|
|
2505
2505
|
showSearch: false,
|
|
@@ -2554,7 +2554,7 @@ var BhdSelect = function(props) {
|
|
|
2554
2554
|
BhdSelect.Option = Select.Option;
|
|
2555
2555
|
var BhdSelect$1 = BhdSelect;
|
|
2556
2556
|
|
|
2557
|
-
var modules_63b47c51$
|
|
2557
|
+
var modules_63b47c51$g = {"bhd_app_layout":"index_module_bhd_app_layout__6a2d2320","bhd_app_layout_header":"index_module_bhd_app_layout_header__6a2d2320","bhd_app_layout_main":"index_module_bhd_app_layout_main__6a2d2320","bhd_app_layout_main_filter":"index_module_bhd_app_layout_main_filter__6a2d2320","bhd_app_layout_main_filter_title":"index_module_bhd_app_layout_main_filter_title__6a2d2320","bhd_app_layout_main_filter_ul":"index_module_bhd_app_layout_main_filter_ul__6a2d2320","bhd_app_layout_main_filter_show_value":"index_module_bhd_app_layout_main_filter_show_value__6a2d2320","bhd_app_layout_main_filter_clear":"index_module_bhd_app_layout_main_filter_clear__6a2d2320","bhd_app_layout_main_table":"index_module_bhd_app_layout_main_table__6a2d2320","bhd_app_layout_footer":"index_module_bhd_app_layout_footer__6a2d2320"};
|
|
2558
2558
|
|
|
2559
2559
|
function BhdAppLayout(props) {
|
|
2560
2560
|
var _filterRef_current, _filterRef, _headRef_current, _headRef, _otherHeadRef_current, _otherHeadRef, _otherContentRef_current, _otherContentRef, _filterConfig, _filterConfig1, _footerConfig;
|
|
@@ -2593,11 +2593,11 @@ function BhdAppLayout(props) {
|
|
|
2593
2593
|
(_otherContentRef = otherContentRef) === null || _otherContentRef === void 0 ? void 0 : (_otherContentRef_current = _otherContentRef.current) === null || _otherContentRef_current === void 0 ? void 0 : _otherContentRef_current.offsetHeight
|
|
2594
2594
|
]);
|
|
2595
2595
|
return /*#__PURE__*/ jsxs("div", {
|
|
2596
|
-
className: "".concat(modules_63b47c51$
|
|
2596
|
+
className: "".concat(modules_63b47c51$g.bhd_app_layout, " ").concat(className || ""),
|
|
2597
2597
|
children: [
|
|
2598
2598
|
/*#__PURE__*/ jsx("header", {
|
|
2599
2599
|
ref: headRef,
|
|
2600
|
-
className: "".concat(modules_63b47c51$
|
|
2600
|
+
className: "".concat(modules_63b47c51$g.bhd_app_layout_header, " ").concat(headerClassName || ""),
|
|
2601
2601
|
children: headConfig && /*#__PURE__*/ jsx(TitleBar$1, _object_spread({}, headConfig))
|
|
2602
2602
|
}),
|
|
2603
2603
|
headContent && /*#__PURE__*/ jsx("div", {
|
|
@@ -2605,30 +2605,30 @@ function BhdAppLayout(props) {
|
|
|
2605
2605
|
children: headContent
|
|
2606
2606
|
}),
|
|
2607
2607
|
/*#__PURE__*/ jsxs("main", {
|
|
2608
|
-
className: modules_63b47c51$
|
|
2608
|
+
className: modules_63b47c51$g.bhd_app_layout_main,
|
|
2609
2609
|
children: [
|
|
2610
2610
|
((_filterConfig = filterConfig) === null || _filterConfig === void 0 ? void 0 : _filterConfig.filterArr) && filterConfig.filterArr.length ? /*#__PURE__*/ jsxs("div", {
|
|
2611
2611
|
ref: filterRef,
|
|
2612
|
-
className: modules_63b47c51$
|
|
2612
|
+
className: modules_63b47c51$g.bhd_app_layout_main_filter,
|
|
2613
2613
|
children: [
|
|
2614
2614
|
/*#__PURE__*/ jsxs("div", {
|
|
2615
|
-
className: modules_63b47c51$
|
|
2615
|
+
className: modules_63b47c51$g.bhd_app_layout_main_filter_title,
|
|
2616
2616
|
children: [
|
|
2617
2617
|
i18Conversion$1("已筛选"),
|
|
2618
2618
|
":"
|
|
2619
2619
|
]
|
|
2620
2620
|
}),
|
|
2621
2621
|
/*#__PURE__*/ jsx("ul", {
|
|
2622
|
-
className: modules_63b47c51$
|
|
2622
|
+
className: modules_63b47c51$g.bhd_app_layout_main_filter_ul,
|
|
2623
2623
|
children: filterConfig.filterArr.map(function(ele, index) {
|
|
2624
2624
|
return /*#__PURE__*/ jsxs("li", {
|
|
2625
2625
|
children: [
|
|
2626
2626
|
/*#__PURE__*/ jsx("span", {
|
|
2627
|
-
className: modules_63b47c51$
|
|
2627
|
+
className: modules_63b47c51$g.bhd_app_layout_main_filter_show_title,
|
|
2628
2628
|
children: ele.title
|
|
2629
2629
|
}),
|
|
2630
2630
|
/*#__PURE__*/ jsxs("span", {
|
|
2631
|
-
className: modules_63b47c51$
|
|
2631
|
+
className: modules_63b47c51$g.bhd_app_layout_main_filter_show_value,
|
|
2632
2632
|
children: [
|
|
2633
2633
|
"“",
|
|
2634
2634
|
ele.value,
|
|
@@ -2647,7 +2647,7 @@ function BhdAppLayout(props) {
|
|
|
2647
2647
|
}),
|
|
2648
2648
|
/*#__PURE__*/ jsx("div", {
|
|
2649
2649
|
onClick: (_filterConfig1 = filterConfig) === null || _filterConfig1 === void 0 ? void 0 : _filterConfig1.onClearAll,
|
|
2650
|
-
className: modules_63b47c51$
|
|
2650
|
+
className: modules_63b47c51$g.bhd_app_layout_main_filter_clear,
|
|
2651
2651
|
children: i18Conversion$1("清空条件")
|
|
2652
2652
|
})
|
|
2653
2653
|
]
|
|
@@ -2657,7 +2657,7 @@ function BhdAppLayout(props) {
|
|
|
2657
2657
|
children: otherContent
|
|
2658
2658
|
}),
|
|
2659
2659
|
/*#__PURE__*/ jsx("div", {
|
|
2660
|
-
className: "".concat(modules_63b47c51$
|
|
2660
|
+
className: "".concat(modules_63b47c51$g.bhd_app_layout_main_table, " ").concat(tableBoxClassName || ""),
|
|
2661
2661
|
children: scrollConfig ? tableConfig && /*#__PURE__*/ jsx(BhdTableSimple$1, _object_spread_props(_object_spread({}, tableConfig), {
|
|
2662
2662
|
pagination: false,
|
|
2663
2663
|
scroll: _object_spread({}, scrollConfig)
|
|
@@ -2666,7 +2666,7 @@ function BhdAppLayout(props) {
|
|
|
2666
2666
|
]
|
|
2667
2667
|
}),
|
|
2668
2668
|
footerConfig ? /*#__PURE__*/ jsxs("footer", {
|
|
2669
|
-
className: modules_63b47c51$
|
|
2669
|
+
className: modules_63b47c51$g.bhd_app_layout_footer,
|
|
2670
2670
|
children: [
|
|
2671
2671
|
/*#__PURE__*/ jsx("div", {
|
|
2672
2672
|
children: ((_footerConfig = footerConfig) === null || _footerConfig === void 0 ? void 0 : _footerConfig.leftDom) && footerConfig.leftDom
|
|
@@ -2678,7 +2678,7 @@ function BhdAppLayout(props) {
|
|
|
2678
2678
|
});
|
|
2679
2679
|
}
|
|
2680
2680
|
|
|
2681
|
-
var modules_63b47c51$
|
|
2681
|
+
var modules_63b47c51$f = {"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"};
|
|
2682
2682
|
|
|
2683
2683
|
function BaseHOC(key) {
|
|
2684
2684
|
return function(props) {
|
|
@@ -3183,12 +3183,12 @@ var HistoryFun = function(props) {
|
|
|
3183
3183
|
});
|
|
3184
3184
|
};
|
|
3185
3185
|
return /*#__PURE__*/ jsx("div", {
|
|
3186
|
-
className: "".concat(modules_63b47c51$
|
|
3186
|
+
className: "".concat(modules_63b47c51$f.history_list, " ").concat(type == 2 ? modules_63b47c51$f.history_list_broadside : "", " "),
|
|
3187
3187
|
children: /*#__PURE__*/ jsxs("div", {
|
|
3188
|
-
className: modules_63b47c51$
|
|
3188
|
+
className: modules_63b47c51$f.search_layout,
|
|
3189
3189
|
children: [
|
|
3190
3190
|
/*#__PURE__*/ jsxs("div", {
|
|
3191
|
-
className: modules_63b47c51$
|
|
3191
|
+
className: modules_63b47c51$f.title,
|
|
3192
3192
|
children: [
|
|
3193
3193
|
/*#__PURE__*/ jsx("span", {
|
|
3194
3194
|
children: "历史记录"
|
|
@@ -3203,7 +3203,7 @@ var HistoryFun = function(props) {
|
|
|
3203
3203
|
]
|
|
3204
3204
|
}),
|
|
3205
3205
|
/*#__PURE__*/ jsxs("div", {
|
|
3206
|
-
className: modules_63b47c51$
|
|
3206
|
+
className: modules_63b47c51$f.search_top,
|
|
3207
3207
|
children: [
|
|
3208
3208
|
/*#__PURE__*/ jsx(SearchOutlined, {}),
|
|
3209
3209
|
/*#__PURE__*/ jsx(Input, {
|
|
@@ -3239,11 +3239,11 @@ var HistoryFun = function(props) {
|
|
|
3239
3239
|
spinning: loading,
|
|
3240
3240
|
tip: "加载中...",
|
|
3241
3241
|
children: /*#__PURE__*/ jsxs("div", {
|
|
3242
|
-
className: modules_63b47c51$
|
|
3242
|
+
className: modules_63b47c51$f.main_list,
|
|
3243
3243
|
id: "history_list",
|
|
3244
3244
|
children: [
|
|
3245
3245
|
!loading && showLoadingState == 1 && /*#__PURE__*/ jsxs("div", {
|
|
3246
|
-
className: modules_63b47c51$
|
|
3246
|
+
className: modules_63b47c51$f.no_data,
|
|
3247
3247
|
children: [
|
|
3248
3248
|
/*#__PURE__*/ jsx("img", {
|
|
3249
3249
|
src: "/new_yun/images/aiService/search_for_icon.png"
|
|
@@ -3254,7 +3254,7 @@ var HistoryFun = function(props) {
|
|
|
3254
3254
|
]
|
|
3255
3255
|
}),
|
|
3256
3256
|
!loading && showLoadingState == 2 && /*#__PURE__*/ jsxs("div", {
|
|
3257
|
-
className: modules_63b47c51$
|
|
3257
|
+
className: modules_63b47c51$f.no_data,
|
|
3258
3258
|
children: [
|
|
3259
3259
|
/*#__PURE__*/ jsx("img", {
|
|
3260
3260
|
src: "/new_yun/images/aiService/no_data.png"
|
|
@@ -3265,7 +3265,7 @@ var HistoryFun = function(props) {
|
|
|
3265
3265
|
]
|
|
3266
3266
|
}),
|
|
3267
3267
|
!loading && /*#__PURE__*/ jsx("div", {
|
|
3268
|
-
className: modules_63b47c51$
|
|
3268
|
+
className: modules_63b47c51$f.list_item,
|
|
3269
3269
|
children: totalData.map(function(item) {
|
|
3270
3270
|
var span = "";
|
|
3271
3271
|
var time = "";
|
|
@@ -3279,11 +3279,11 @@ var HistoryFun = function(props) {
|
|
|
3279
3279
|
//搜索内容是否有特殊字符
|
|
3280
3280
|
if (reg.test(keyWordProblem)) {
|
|
3281
3281
|
span = message.replaceAll(keyWordProblem, function(e) {
|
|
3282
|
-
return "<span class=".concat(modules_63b47c51$
|
|
3282
|
+
return "<span class=".concat(modules_63b47c51$f.sign, ">").concat(e, "</span>");
|
|
3283
3283
|
});
|
|
3284
3284
|
} else {
|
|
3285
3285
|
span = message.replaceAll(new RegExp(keyWordProblem, "ig"), function(i) {
|
|
3286
|
-
return "<span class=".concat(modules_63b47c51$
|
|
3286
|
+
return "<span class=".concat(modules_63b47c51$f.sign, ">").concat(i, "</span>");
|
|
3287
3287
|
});
|
|
3288
3288
|
}
|
|
3289
3289
|
time = formatDate(item.createdAt);
|
|
@@ -3291,7 +3291,7 @@ var HistoryFun = function(props) {
|
|
|
3291
3291
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
3292
3292
|
children: [
|
|
3293
3293
|
/*#__PURE__*/ jsxs("div", {
|
|
3294
|
-
className: "".concat(modules_63b47c51$
|
|
3294
|
+
className: "".concat(modules_63b47c51$f.list_summary, " ").concat(item.show ? modules_63b47c51$f.list_summary_active : ""),
|
|
3295
3295
|
id: item.roomId,
|
|
3296
3296
|
onClick: function() {
|
|
3297
3297
|
if (item.count == 1) {
|
|
@@ -3302,26 +3302,26 @@ var HistoryFun = function(props) {
|
|
|
3302
3302
|
},
|
|
3303
3303
|
children: [
|
|
3304
3304
|
/*#__PURE__*/ jsx("div", {
|
|
3305
|
-
className: modules_63b47c51$
|
|
3305
|
+
className: modules_63b47c51$f.head_img,
|
|
3306
3306
|
children: item.member == "AI" ? /*#__PURE__*/ jsx(CustomAiIcon$1, {}) : /*#__PURE__*/ jsx("img", {
|
|
3307
3307
|
src: item.headImg
|
|
3308
3308
|
})
|
|
3309
3309
|
}),
|
|
3310
3310
|
/*#__PURE__*/ jsxs("div", {
|
|
3311
|
-
className: modules_63b47c51$
|
|
3311
|
+
className: modules_63b47c51$f.list_desc,
|
|
3312
3312
|
children: [
|
|
3313
3313
|
/*#__PURE__*/ jsxs("p", {
|
|
3314
|
-
className: modules_63b47c51$
|
|
3314
|
+
className: modules_63b47c51$f.name,
|
|
3315
3315
|
children: [
|
|
3316
3316
|
item.member == "AI" ? "AI助手" : item.name,
|
|
3317
3317
|
item.count == 1 ? /*#__PURE__*/ jsx("span", {
|
|
3318
|
-
className: modules_63b47c51$
|
|
3318
|
+
className: modules_63b47c51$f.time,
|
|
3319
3319
|
children: time
|
|
3320
3320
|
}) : ""
|
|
3321
3321
|
]
|
|
3322
3322
|
}),
|
|
3323
3323
|
item.count == 1 ? /*#__PURE__*/ jsx("p", {
|
|
3324
|
-
className: modules_63b47c51$
|
|
3324
|
+
className: modules_63b47c51$f.decs,
|
|
3325
3325
|
style: {
|
|
3326
3326
|
width: "calc(100% - 36px)"
|
|
3327
3327
|
},
|
|
@@ -3329,19 +3329,19 @@ var HistoryFun = function(props) {
|
|
|
3329
3329
|
__html: span
|
|
3330
3330
|
}
|
|
3331
3331
|
}) : /*#__PURE__*/ jsx("p", {
|
|
3332
|
-
className: modules_63b47c51$
|
|
3332
|
+
className: modules_63b47c51$f.decs,
|
|
3333
3333
|
children: "".concat(item.count, "条相关聊天记录")
|
|
3334
3334
|
})
|
|
3335
3335
|
]
|
|
3336
3336
|
}),
|
|
3337
3337
|
item.count != 1 ? /*#__PURE__*/ jsx("div", {
|
|
3338
|
-
className: "".concat(modules_63b47c51$
|
|
3338
|
+
className: "".concat(modules_63b47c51$f.open, " ").concat(item.show ? modules_63b47c51$f.active : ""),
|
|
3339
3339
|
children: /*#__PURE__*/ jsx(CustomExpand$1, {})
|
|
3340
3340
|
}) : ""
|
|
3341
3341
|
]
|
|
3342
3342
|
}),
|
|
3343
3343
|
/*#__PURE__*/ jsxs("div", {
|
|
3344
|
-
className: modules_63b47c51$
|
|
3344
|
+
className: modules_63b47c51$f.list_detail,
|
|
3345
3345
|
children: [
|
|
3346
3346
|
item.show && item.detailsList && item.detailsList.map(function(list) {
|
|
3347
3347
|
// console.log(list,item,'dklfvmdflkvmdfklv')
|
|
@@ -3364,34 +3364,34 @@ var HistoryFun = function(props) {
|
|
|
3364
3364
|
//搜索内容是否有特殊字符
|
|
3365
3365
|
if (reg.test(keyWordProblem)) {
|
|
3366
3366
|
span = message.replaceAll(keyWordProblem, function(e) {
|
|
3367
|
-
return "<span class=".concat(modules_63b47c51$
|
|
3367
|
+
return "<span class=".concat(modules_63b47c51$f.sign, ">").concat(e, "</span>");
|
|
3368
3368
|
});
|
|
3369
3369
|
} else {
|
|
3370
3370
|
span = message.replaceAll(new RegExp(keyWordProblem, "ig"), function(i) {
|
|
3371
3371
|
// console.log(i,'skdcnsdjk')
|
|
3372
|
-
return "<span class=".concat(modules_63b47c51$
|
|
3372
|
+
return "<span class=".concat(modules_63b47c51$f.sign, ">").concat(i, "</span>");
|
|
3373
3373
|
});
|
|
3374
3374
|
}
|
|
3375
3375
|
return /*#__PURE__*/ jsxs("div", {
|
|
3376
|
-
className: modules_63b47c51$
|
|
3376
|
+
className: modules_63b47c51$f.list,
|
|
3377
3377
|
onClick: function() {
|
|
3378
3378
|
calculationData(item.roomId, list.id, list.receiver);
|
|
3379
3379
|
},
|
|
3380
3380
|
children: [
|
|
3381
3381
|
/*#__PURE__*/ jsxs("div", {
|
|
3382
|
-
className: modules_63b47c51$
|
|
3382
|
+
className: modules_63b47c51$f.name,
|
|
3383
3383
|
children: [
|
|
3384
3384
|
/*#__PURE__*/ jsx("p", {
|
|
3385
3385
|
children: name
|
|
3386
3386
|
}),
|
|
3387
3387
|
/*#__PURE__*/ jsx("span", {
|
|
3388
|
-
className: modules_63b47c51$
|
|
3388
|
+
className: modules_63b47c51$f.time,
|
|
3389
3389
|
children: time
|
|
3390
3390
|
})
|
|
3391
3391
|
]
|
|
3392
3392
|
}),
|
|
3393
3393
|
/*#__PURE__*/ jsx("div", {
|
|
3394
|
-
className: modules_63b47c51$
|
|
3394
|
+
className: modules_63b47c51$f.con,
|
|
3395
3395
|
dangerouslySetInnerHTML: {
|
|
3396
3396
|
__html: span
|
|
3397
3397
|
}
|
|
@@ -3400,7 +3400,7 @@ var HistoryFun = function(props) {
|
|
|
3400
3400
|
}, list.id);
|
|
3401
3401
|
}),
|
|
3402
3402
|
item.show && item.pageCount > 1 && item.pageCount > item.pageNum && /*#__PURE__*/ jsx("div", {
|
|
3403
|
-
className: "".concat(modules_63b47c51$
|
|
3403
|
+
className: "".concat(modules_63b47c51$f.list, " ").concat(modules_63b47c51$f.list_more),
|
|
3404
3404
|
onClick: function() {
|
|
3405
3405
|
loadMore(item.pageNum + 1, item.roomId);
|
|
3406
3406
|
},
|
|
@@ -3432,34 +3432,34 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3432
3432
|
};
|
|
3433
3433
|
return type == 2 || type == 4 ? //联系人展开
|
|
3434
3434
|
/*#__PURE__*/ jsxs("div", {
|
|
3435
|
-
className: "".concat(modules_63b47c51$
|
|
3435
|
+
className: "".concat(modules_63b47c51$f.teacher_layout_modal, " ").concat(type == 4 ? modules_63b47c51$f.teacher_layout_modal_newlabo : ""),
|
|
3436
3436
|
children: [
|
|
3437
3437
|
/*#__PURE__*/ jsx("div", {
|
|
3438
|
-
className: modules_63b47c51$
|
|
3438
|
+
className: modules_63b47c51$f.top,
|
|
3439
3439
|
children: /*#__PURE__*/ jsxs("div", {
|
|
3440
|
-
className: "".concat(modules_63b47c51$
|
|
3440
|
+
className: "".concat(modules_63b47c51$f.ai, " ").concat(contactsList.length > 0 && contactsList[0].roomId != undefined && roomId != "" && contactsList[0].roomId == roomId || contactsList.length == 0 ? modules_63b47c51$f.active : ""),
|
|
3441
3441
|
onClick: function() {
|
|
3442
3442
|
return switchChatRoom(contactsList[0].roomId, "");
|
|
3443
3443
|
},
|
|
3444
3444
|
children: [
|
|
3445
3445
|
/*#__PURE__*/ jsx(CustomAiIcon$1, {}),
|
|
3446
3446
|
/*#__PURE__*/ jsxs("div", {
|
|
3447
|
-
className: modules_63b47c51$
|
|
3447
|
+
className: modules_63b47c51$f.user_info,
|
|
3448
3448
|
children: [
|
|
3449
3449
|
/*#__PURE__*/ jsxs("p", {
|
|
3450
|
-
className: modules_63b47c51$
|
|
3450
|
+
className: modules_63b47c51$f.message,
|
|
3451
3451
|
children: [
|
|
3452
3452
|
userData.modules.some(function(ele) {
|
|
3453
3453
|
return ele.short == "AIservice";
|
|
3454
3454
|
}) ? "AI助手" : "智能问答",
|
|
3455
3455
|
/*#__PURE__*/ jsx("span", {
|
|
3456
|
-
className: modules_63b47c51$
|
|
3456
|
+
className: modules_63b47c51$f.time,
|
|
3457
3457
|
children: contactsList.length > 0 && contactsList[0].createdAt != undefined && formatDate(contactsList[0].createdAt)
|
|
3458
3458
|
})
|
|
3459
3459
|
]
|
|
3460
3460
|
}),
|
|
3461
3461
|
/*#__PURE__*/ jsx("p", {
|
|
3462
|
-
className: modules_63b47c51$
|
|
3462
|
+
className: modules_63b47c51$f.con,
|
|
3463
3463
|
children: contactsList.length > 0 && contactsList[0].lastMsg
|
|
3464
3464
|
})
|
|
3465
3465
|
]
|
|
@@ -3470,11 +3470,11 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3470
3470
|
userData.modules.some(function(item) {
|
|
3471
3471
|
return item.short == "TeacherAnswer";
|
|
3472
3472
|
}) && /*#__PURE__*/ jsx("div", {
|
|
3473
|
-
className: modules_63b47c51$
|
|
3473
|
+
className: modules_63b47c51$f.bottom,
|
|
3474
3474
|
children: contactsList.map(function(item, index) {
|
|
3475
3475
|
if (index != 0) {
|
|
3476
3476
|
return /*#__PURE__*/ jsxs("div", {
|
|
3477
|
-
className: "".concat(modules_63b47c51$
|
|
3477
|
+
className: "".concat(modules_63b47c51$f.ai, " ").concat(item.roomId != undefined && roomId != "" && item.roomId == roomId ? modules_63b47c51$f.active : ""),
|
|
3478
3478
|
onClick: function() {
|
|
3479
3479
|
switchChatRoom(item.roomId, "");
|
|
3480
3480
|
},
|
|
@@ -3483,29 +3483,29 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3483
3483
|
src: item.headImg
|
|
3484
3484
|
}),
|
|
3485
3485
|
/*#__PURE__*/ jsxs("div", {
|
|
3486
|
-
className: modules_63b47c51$
|
|
3486
|
+
className: modules_63b47c51$f.user_info,
|
|
3487
3487
|
children: [
|
|
3488
3488
|
/*#__PURE__*/ jsxs("p", {
|
|
3489
|
-
className: modules_63b47c51$
|
|
3489
|
+
className: modules_63b47c51$f.message,
|
|
3490
3490
|
children: [
|
|
3491
3491
|
item.name != undefined && getByteLen(item.name) >= 20 ? /*#__PURE__*/ jsx(Tooltip, {
|
|
3492
|
-
overlayClassName: "".concat(modules_63b47c51$
|
|
3492
|
+
overlayClassName: "".concat(modules_63b47c51$f.popover_main_content_name),
|
|
3493
3493
|
title: item.name,
|
|
3494
3494
|
placement: "top",
|
|
3495
3495
|
children: item.name
|
|
3496
3496
|
}) : item.name,
|
|
3497
3497
|
item.unreadCount != undefined && item.unreadCount > 0 && !(item.roomId != undefined && roomId != "" && item.roomId == roomId) && /*#__PURE__*/ jsx("span", {
|
|
3498
|
-
className: modules_63b47c51$
|
|
3498
|
+
className: modules_63b47c51$f.num,
|
|
3499
3499
|
children: item.unreadCount > 99 ? "99+" : item.unreadCount
|
|
3500
3500
|
}),
|
|
3501
3501
|
/*#__PURE__*/ jsx("span", {
|
|
3502
|
-
className: modules_63b47c51$
|
|
3502
|
+
className: modules_63b47c51$f.time,
|
|
3503
3503
|
children: formatDate(item.createdAt)
|
|
3504
3504
|
})
|
|
3505
3505
|
]
|
|
3506
3506
|
}),
|
|
3507
3507
|
/*#__PURE__*/ jsx("p", {
|
|
3508
|
-
className: modules_63b47c51$
|
|
3508
|
+
className: modules_63b47c51$f.con,
|
|
3509
3509
|
children: item.lastMsg
|
|
3510
3510
|
})
|
|
3511
3511
|
]
|
|
@@ -3519,16 +3519,16 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3519
3519
|
})
|
|
3520
3520
|
]
|
|
3521
3521
|
}) : /*#__PURE__*/ jsxs("div", {
|
|
3522
|
-
className: "".concat(modules_63b47c51$
|
|
3522
|
+
className: "".concat(modules_63b47c51$f.teacher_layout, " ").concat(type == 3 ? modules_63b47c51$f.teacher_layout_newlabo : ""),
|
|
3523
3523
|
style: {
|
|
3524
3524
|
left: type == 3 ? document.getElementById("box") && document.getElementById("box").offsetWidth + 10 + "px" : "auto"
|
|
3525
3525
|
},
|
|
3526
3526
|
children: [
|
|
3527
3527
|
/*#__PURE__*/ jsxs("div", {
|
|
3528
|
-
className: modules_63b47c51$
|
|
3528
|
+
className: modules_63b47c51$f.top,
|
|
3529
3529
|
children: [
|
|
3530
3530
|
/*#__PURE__*/ jsxs("div", {
|
|
3531
|
-
className: "".concat(modules_63b47c51$
|
|
3531
|
+
className: "".concat(modules_63b47c51$f.ai, " ").concat(modules_63b47c51$f.shrink),
|
|
3532
3532
|
onClick: function() {
|
|
3533
3533
|
onClose();
|
|
3534
3534
|
},
|
|
@@ -3543,7 +3543,7 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3543
3543
|
]
|
|
3544
3544
|
}),
|
|
3545
3545
|
/*#__PURE__*/ jsxs("div", {
|
|
3546
|
-
className: "".concat(modules_63b47c51$
|
|
3546
|
+
className: "".concat(modules_63b47c51$f.ai, " ").concat(contactsList.length > 0 && contactsList[0].roomId != undefined && roomId != "" && contactsList[0].roomId == roomId || contactsList.length == 0 ? modules_63b47c51$f.active : ""),
|
|
3547
3547
|
onClick: function() {
|
|
3548
3548
|
switchChatRoom(contactsList[0].roomId, "");
|
|
3549
3549
|
// roomsListTimer();
|
|
@@ -3562,11 +3562,11 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3562
3562
|
userData.modules.some(function(item) {
|
|
3563
3563
|
return item.short == "TeacherAnswer";
|
|
3564
3564
|
}) && /*#__PURE__*/ jsx("div", {
|
|
3565
|
-
className: modules_63b47c51$
|
|
3565
|
+
className: modules_63b47c51$f.bottom,
|
|
3566
3566
|
children: contactsList.map(function(item, index) {
|
|
3567
3567
|
if (index != 0) {
|
|
3568
3568
|
return /*#__PURE__*/ jsxs("div", {
|
|
3569
|
-
className: "".concat(modules_63b47c51$
|
|
3569
|
+
className: "".concat(modules_63b47c51$f.ai, " ").concat(item.roomId != undefined && roomId != "" && item.roomId == roomId ? modules_63b47c51$f.active : ""),
|
|
3570
3570
|
onClick: function() {
|
|
3571
3571
|
switchChatRoom(item.roomId, "");
|
|
3572
3572
|
},
|
|
@@ -3576,19 +3576,19 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3576
3576
|
}),
|
|
3577
3577
|
/*#__PURE__*/ jsx("p", {
|
|
3578
3578
|
children: item.name != undefined && getByteLen(item.name) >= 10 ? /*#__PURE__*/ jsx(Tooltip, {
|
|
3579
|
-
overlayClassName: modules_63b47c51$
|
|
3579
|
+
overlayClassName: modules_63b47c51$f.popover_main_content_name,
|
|
3580
3580
|
title: item.name,
|
|
3581
3581
|
placement: "top",
|
|
3582
3582
|
children: item.name
|
|
3583
3583
|
}) : item.name
|
|
3584
3584
|
}),
|
|
3585
3585
|
item.unreadCount != undefined && item.unreadCount > 0 && !(item.roomId != undefined && roomId != "" && item.roomId == roomId) && /*#__PURE__*/ jsx("span", {
|
|
3586
|
-
className: modules_63b47c51$
|
|
3586
|
+
className: modules_63b47c51$f.num,
|
|
3587
3587
|
children: item.unreadCount > 99 ? "99+" : item.unreadCount
|
|
3588
3588
|
}),
|
|
3589
3589
|
// 没有消息时,可点击删除
|
|
3590
3590
|
!item.unreadCount && /*#__PURE__*/ jsx("span", {
|
|
3591
|
-
className: modules_63b47c51$
|
|
3591
|
+
className: modules_63b47c51$f.delete,
|
|
3592
3592
|
onClick: function(e) {
|
|
3593
3593
|
e.stopPropagation();
|
|
3594
3594
|
deleteRoom(item.roomId);
|
|
@@ -3690,10 +3690,10 @@ var ScreenshotTool = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3690
3690
|
setIsFirst(false);
|
|
3691
3691
|
};
|
|
3692
3692
|
return /*#__PURE__*/ jsxs("div", {
|
|
3693
|
-
className: modules_63b47c51$
|
|
3693
|
+
className: modules_63b47c51$f.screenshot_Modal,
|
|
3694
3694
|
children: [
|
|
3695
3695
|
/*#__PURE__*/ jsx(X, {
|
|
3696
|
-
className: modules_63b47c51$
|
|
3696
|
+
className: modules_63b47c51$f.ReactCrop,
|
|
3697
3697
|
crop: crop,
|
|
3698
3698
|
onChange: function(_, percentCrop) {
|
|
3699
3699
|
if (percentCrop.height === 0 && percentCrop.width === 0) {
|
|
@@ -3719,7 +3719,7 @@ var ScreenshotTool = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3719
3719
|
})
|
|
3720
3720
|
}),
|
|
3721
3721
|
showBtn && /*#__PURE__*/ jsxs("div", {
|
|
3722
|
-
className: modules_63b47c51$
|
|
3722
|
+
className: modules_63b47c51$f.screenshot_Modal_btn,
|
|
3723
3723
|
style: {
|
|
3724
3724
|
top: btnPosition.top,
|
|
3725
3725
|
left: btnPosition.left
|
|
@@ -3906,12 +3906,12 @@ var TeacherList = function(props) {
|
|
|
3906
3906
|
});
|
|
3907
3907
|
};
|
|
3908
3908
|
return /*#__PURE__*/ jsx("div", {
|
|
3909
|
-
className: "".concat(modules_63b47c51$
|
|
3909
|
+
className: "".concat(modules_63b47c51$f.history_list, " ").concat(type == 2 ? modules_63b47c51$f.history_list_broadside : "", " ").concat(modules_63b47c51$f.teacher_list),
|
|
3910
3910
|
children: /*#__PURE__*/ jsxs("div", {
|
|
3911
|
-
className: modules_63b47c51$
|
|
3911
|
+
className: modules_63b47c51$f.search_layout,
|
|
3912
3912
|
children: [
|
|
3913
3913
|
/*#__PURE__*/ jsxs("div", {
|
|
3914
|
-
className: modules_63b47c51$
|
|
3914
|
+
className: modules_63b47c51$f.title,
|
|
3915
3915
|
children: [
|
|
3916
3916
|
/*#__PURE__*/ jsx("span", {
|
|
3917
3917
|
children: "召唤老师回答"
|
|
@@ -3926,7 +3926,7 @@ var TeacherList = function(props) {
|
|
|
3926
3926
|
]
|
|
3927
3927
|
}),
|
|
3928
3928
|
/*#__PURE__*/ jsxs("div", {
|
|
3929
|
-
className: modules_63b47c51$
|
|
3929
|
+
className: modules_63b47c51$f.search_top,
|
|
3930
3930
|
children: [
|
|
3931
3931
|
/*#__PURE__*/ jsx(SearchOutlined, {}),
|
|
3932
3932
|
/*#__PURE__*/ jsx(Input, {
|
|
@@ -3959,11 +3959,11 @@ var TeacherList = function(props) {
|
|
|
3959
3959
|
]
|
|
3960
3960
|
}),
|
|
3961
3961
|
/*#__PURE__*/ jsxs("div", {
|
|
3962
|
-
className: modules_63b47c51$
|
|
3962
|
+
className: modules_63b47c51$f.main_list,
|
|
3963
3963
|
id: "teacher_list",
|
|
3964
3964
|
children: [
|
|
3965
3965
|
showLoadingState == 2 && /*#__PURE__*/ jsxs("div", {
|
|
3966
|
-
className: modules_63b47c51$
|
|
3966
|
+
className: modules_63b47c51$f.no_data,
|
|
3967
3967
|
children: [
|
|
3968
3968
|
/*#__PURE__*/ jsx("img", {
|
|
3969
3969
|
src: "/new_yun/images/aiService/no_data_02.png"
|
|
@@ -3974,30 +3974,30 @@ var TeacherList = function(props) {
|
|
|
3974
3974
|
]
|
|
3975
3975
|
}),
|
|
3976
3976
|
/*#__PURE__*/ jsx("div", {
|
|
3977
|
-
className: modules_63b47c51$
|
|
3977
|
+
className: modules_63b47c51$f.list_item,
|
|
3978
3978
|
ref: sliderRef,
|
|
3979
3979
|
children: showTotalData.map(function(item) {
|
|
3980
3980
|
var span = item.name.replaceAll(new RegExp(keyWordProblem, "ig"), function(i) {
|
|
3981
|
-
return "<span class=".concat(modules_63b47c51$
|
|
3981
|
+
return "<span class=".concat(modules_63b47c51$f.sign, ">").concat(i, "</span>");
|
|
3982
3982
|
});
|
|
3983
3983
|
return /*#__PURE__*/ jsx(Fragment, {
|
|
3984
3984
|
children: /*#__PURE__*/ jsxs("div", {
|
|
3985
|
-
className: "".concat(modules_63b47c51$
|
|
3985
|
+
className: "".concat(modules_63b47c51$f.list_summary),
|
|
3986
3986
|
id: item.roomId,
|
|
3987
3987
|
onClick: function() {
|
|
3988
3988
|
enterTeacherChat(item);
|
|
3989
3989
|
},
|
|
3990
3990
|
children: [
|
|
3991
3991
|
/*#__PURE__*/ jsx("div", {
|
|
3992
|
-
className: modules_63b47c51$
|
|
3992
|
+
className: modules_63b47c51$f.head_img,
|
|
3993
3993
|
children: /*#__PURE__*/ jsx("img", {
|
|
3994
3994
|
src: item.headImg
|
|
3995
3995
|
})
|
|
3996
3996
|
}),
|
|
3997
3997
|
/*#__PURE__*/ jsx("div", {
|
|
3998
|
-
className: modules_63b47c51$
|
|
3998
|
+
className: modules_63b47c51$f.list_desc,
|
|
3999
3999
|
children: /*#__PURE__*/ jsx("p", {
|
|
4000
|
-
className: modules_63b47c51$
|
|
4000
|
+
className: modules_63b47c51$f.name,
|
|
4001
4001
|
style: {
|
|
4002
4002
|
width: "calc(100% - 36px)"
|
|
4003
4003
|
},
|
|
@@ -8126,7 +8126,7 @@ var ScreenShot = /*#__PURE__*/ function() {
|
|
|
8126
8126
|
return ScreenShot;
|
|
8127
8127
|
}();
|
|
8128
8128
|
|
|
8129
|
-
var styles = modules_63b47c51$
|
|
8129
|
+
var styles = modules_63b47c51$f;
|
|
8130
8130
|
var TextArea$1 = BhdEnterInput.TextArea;
|
|
8131
8131
|
/*
|
|
8132
8132
|
自定义remarkable的text解析规则
|
|
@@ -12084,7 +12084,7 @@ window.appendDom = function(root, props) {
|
|
|
12084
12084
|
};
|
|
12085
12085
|
var CustomerService$1 = CustomerService;
|
|
12086
12086
|
|
|
12087
|
-
var modules_63b47c51$
|
|
12087
|
+
var modules_63b47c51$e = {"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"};
|
|
12088
12088
|
|
|
12089
12089
|
var RangePicker = DatePicker.RangePicker;
|
|
12090
12090
|
var months = [
|
|
@@ -12279,22 +12279,22 @@ var BhdDatePicker = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12279
12279
|
}
|
|
12280
12280
|
// 单选
|
|
12281
12281
|
if (kind === "single") {
|
|
12282
|
-
config.popupClassName = "\n ".concat(modules_63b47c51$
|
|
12282
|
+
config.popupClassName = "\n ".concat(modules_63b47c51$e.bhdDatePickerPopup, " ").concat(modules_63b47c51$e.singlePicker, " ").concat(popupClassName || "", " ").concat(showTime ? modules_63b47c51$e.showTime : "", " ").concat(renderExtraFooter ? modules_63b47c51$e.showExtraFooter : "");
|
|
12283
12283
|
}
|
|
12284
12284
|
// 范围选择
|
|
12285
12285
|
if (kind === "range") {
|
|
12286
|
-
config.popupClassName = "".concat(modules_63b47c51$
|
|
12286
|
+
config.popupClassName = "".concat(modules_63b47c51$e.bhdDatePickerPopup, " ").concat(modules_63b47c51$e.rangePicker, " ").concat(popupClassName || "", " ").concat(showTime ? modules_63b47c51$e.showTime : "", " ").concat(renderExtraFooter ? modules_63b47c51$e.showExtraFooter : "");
|
|
12287
12287
|
}
|
|
12288
12288
|
// 日常安排
|
|
12289
12289
|
if (kind === "extra") {
|
|
12290
12290
|
delete config.showTime; // 日程安排的时候,不允许展示时间面板
|
|
12291
12291
|
showTime = false; // 日程安排不选择时间
|
|
12292
|
-
config.popupClassName = "".concat(modules_63b47c51$
|
|
12292
|
+
config.popupClassName = "".concat(modules_63b47c51$e.bhdDatePickerPopup, " ").concat(modules_63b47c51$e.extraPicker, " ").concat(extraReadonly ? modules_63b47c51$e.readonly : "", " ").concat(popupClassName || "", " ").concat(showTime ? modules_63b47c51$e.showTime : "", " ").concat(renderExtraFooter ? modules_63b47c51$e.showExtraFooter : "");
|
|
12293
12293
|
if (extraReadonly) {
|
|
12294
12294
|
config.allowClear = false; // 日程安排查看时,不显示清除按钮
|
|
12295
12295
|
}
|
|
12296
12296
|
}
|
|
12297
|
-
config.popupClassName = "".concat(config.popupClassName, " ").concat(dropdownClassName, " ").concat(needConfirm ? "" : modules_63b47c51$
|
|
12297
|
+
config.popupClassName = "".concat(config.popupClassName, " ").concat(dropdownClassName, " ").concat(needConfirm ? "" : modules_63b47c51$e.noNeedConfirm, " ").concat(id);
|
|
12298
12298
|
return config;
|
|
12299
12299
|
};
|
|
12300
12300
|
// 设置默认mode
|
|
@@ -12587,7 +12587,7 @@ var BhdDatePicker = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12587
12587
|
}
|
|
12588
12588
|
};
|
|
12589
12589
|
return /*#__PURE__*/ jsxs("span", {
|
|
12590
|
-
className: "".concat(modules_63b47c51$
|
|
12590
|
+
className: "".concat(modules_63b47c51$e.bhdDatePicker),
|
|
12591
12591
|
ref: bhdDatePickerRef,
|
|
12592
12592
|
children: [
|
|
12593
12593
|
(kind === "single" || kind === "extra") && /*#__PURE__*/ jsx(Fragment, {
|
|
@@ -12768,7 +12768,7 @@ var BhdDatePicker = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12768
12768
|
});
|
|
12769
12769
|
var BhdDatePicker$1 = BhdDatePicker;
|
|
12770
12770
|
|
|
12771
|
-
var modules_63b47c51$
|
|
12771
|
+
var modules_63b47c51$d = {"BhdModalCropper":"index_module_BhdModalCropper__36cc44f0","cropperBox":"index_module_cropperBox__36cc44f0","cropperBtn":"index_module_cropperBtn__36cc44f0","icons":"index_module_icons__36cc44f0"};
|
|
12772
12772
|
|
|
12773
12773
|
var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
12774
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 ? [
|
|
@@ -12847,13 +12847,13 @@ var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12847
12847
|
};
|
|
12848
12848
|
return /*#__PURE__*/ jsx(Modal$1, _object_spread_props(_object_spread({}, props), {
|
|
12849
12849
|
centered: centered,
|
|
12850
|
-
wrapClassName: "".concat(wrapClassName, " ").concat(modules_63b47c51$
|
|
12850
|
+
wrapClassName: "".concat(wrapClassName, " ").concat(modules_63b47c51$d.BhdModalCropper),
|
|
12851
12851
|
width: width,
|
|
12852
12852
|
children: open && /*#__PURE__*/ jsxs("div", {
|
|
12853
|
-
className: modules_63b47c51$
|
|
12853
|
+
className: modules_63b47c51$d.cropperBox,
|
|
12854
12854
|
children: [
|
|
12855
12855
|
/*#__PURE__*/ jsx("div", {
|
|
12856
|
-
className: modules_63b47c51$
|
|
12856
|
+
className: modules_63b47c51$d.cropperMain,
|
|
12857
12857
|
children: /*#__PURE__*/ jsx(l, _object_spread_props(_object_spread({
|
|
12858
12858
|
src: imgSrc,
|
|
12859
12859
|
orginStyle: {
|
|
@@ -12876,7 +12876,7 @@ var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12876
12876
|
}))
|
|
12877
12877
|
}),
|
|
12878
12878
|
/*#__PURE__*/ jsxs("div", {
|
|
12879
|
-
className: modules_63b47c51$
|
|
12879
|
+
className: modules_63b47c51$d.cropperBtn,
|
|
12880
12880
|
children: [
|
|
12881
12881
|
/*#__PURE__*/ jsx(Upload, {
|
|
12882
12882
|
fileList: [],
|
|
@@ -12887,7 +12887,7 @@ var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12887
12887
|
})
|
|
12888
12888
|
}),
|
|
12889
12889
|
/*#__PURE__*/ jsxs("div", {
|
|
12890
|
-
className: modules_63b47c51$
|
|
12890
|
+
className: modules_63b47c51$d.icons,
|
|
12891
12891
|
children: [
|
|
12892
12892
|
/*#__PURE__*/ jsx("span", {
|
|
12893
12893
|
onClick: function() {
|
|
@@ -12911,9 +12911,9 @@ var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
12911
12911
|
});
|
|
12912
12912
|
var BhdModalCropper$1 = BhdModalCropper;
|
|
12913
12913
|
|
|
12914
|
-
var modules_63b47c51$
|
|
12914
|
+
var modules_63b47c51$c = {"root":"index_module_root__b60b60e0","rootHeader":"index_module_rootHeader__b60b60e0","rootContent":"index_module_rootContent__b60b60e0","rootFooter":"index_module_rootFooter__b60b60e0"};
|
|
12915
12915
|
|
|
12916
|
-
var modules_63b47c51$
|
|
12916
|
+
var modules_63b47c51$b = {"header":"index_module_header__3cf37c84","headerLeft":"index_module_headerLeft__3cf37c84","headerIcon":"index_module_headerIcon__3cf37c84","headerTitle":"index_module_headerTitle__3cf37c84","headerRight":"index_module_headerRight__3cf37c84"};
|
|
12917
12917
|
|
|
12918
12918
|
var defaultProps$1 = {
|
|
12919
12919
|
icon: /*#__PURE__*/ jsx("i", {
|
|
@@ -12982,7 +12982,7 @@ var Header$1 = function(props) {
|
|
|
12982
12982
|
var headerConfig = props.headerConfig, prefix = props.prefix;
|
|
12983
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
12984
|
var getCls = function(clsName) {
|
|
12985
|
-
return modules_63b47c51$
|
|
12985
|
+
return modules_63b47c51$b[clsName] + " " + prefix + "-" + clsName;
|
|
12986
12986
|
};
|
|
12987
12987
|
return /*#__PURE__*/ jsxs("div", {
|
|
12988
12988
|
className: "".concat(getCls("header"), " ").concat(className),
|
|
@@ -13009,25 +13009,40 @@ var Header$1 = function(props) {
|
|
|
13009
13009
|
};
|
|
13010
13010
|
var Header$2 = Header$1;
|
|
13011
13011
|
|
|
13012
|
-
var modules_63b47c51$
|
|
13012
|
+
var modules_63b47c51$a = {"content":"index_module_content__fcd2c97c","contentList":"index_module_contentList__fcd2c97c"};
|
|
13013
13013
|
|
|
13014
|
-
var modules_63b47c51$
|
|
13014
|
+
var modules_63b47c51$9 = {"virtuosoList-wrapper":"index_module_virtuosoListWrapper__de249725","loadingIcon":"index_module_loadingIcon__de249725","msg-date":"index_module_msgDate__de249725","msgItem":"index_module_msgItem__de249725","msgItem-box":"index_module_msgItemBox__de249725","msgItem-content":"index_module_msgItemContent__de249725","msgItem-text":"index_module_msgItemText__de249725","copyCode":"index_module_copyCode__de249725","copyCodeFun":"index_module_copyCodeFun__de249725","copyCodeText":"index_module_copyCodeText__de249725","icon":"index_module_icon__de249725","copy":"index_module_copy__de249725","copy_success":"index_module_copy_success__de249725","copy_success_flag":"index_module_copy_success_flag__de249725","msgItem-action":"index_module_msgItemAction__de249725","msgItem-action-left":"index_module_msgItemActionLeft__de249725","msgItem-action-right":"index_module_msgItemActionRight__de249725","msgItem-action-operate":"index_module_msgItemActionOperate__de249725","msgItem-action-popover":"index_module_msgItemActionPopover__de249725","msgItem-action-popover-floatTop":"index_module_msgItemActionPopoverFloatTop__de249725","msgItem-action-popover-floatBottom":"index_module_msgItemActionPopoverFloatBottom__de249725","msgItem-references-text":"index_module_msgItemReferencesText__de249725","msgItem-left":"index_module_msgItemLeft__de249725","msgItem-right":"index_module_msgItemRight__de249725"};
|
|
13015
13015
|
|
|
13016
13016
|
var loading2 = "data:image/gif;base64,R0lGODlhgACAAKIEAN3d3bu7u////5mZmf///wAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NENGQTg4RUY0MTQwMTFFOEEzQjg5QjE4RTZFRjE2NTUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NENGQTg4RjA0MTQwMTFFOEEzQjg5QjE4RTZFRjE2NTUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0Q0ZBODhFRDQxNDAxMUU4QTNCODlCMThFNkVGMTY1NSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0Q0ZBODhFRTQxNDAxMUU4QTNCODlCMThFNkVGMTY1NSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV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";
|
|
13017
13017
|
var loading2Gif = loading2;
|
|
13018
13018
|
|
|
13019
|
-
var modules_63b47c51$
|
|
13019
|
+
var modules_63b47c51$8 = {"msgItem-action-copy":"index_module_msgItemActionCopy__4640e67c","msgItem-action-copy-success":"index_module_msgItemActionCopySuccess__4640e67c"};
|
|
13020
13020
|
|
|
13021
13021
|
var copyIconSvg = /*#__PURE__*/ jsx("i", {
|
|
13022
|
-
children: /*#__PURE__*/
|
|
13023
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13022
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
13024
13023
|
width: "1em",
|
|
13025
13024
|
height: "1em",
|
|
13026
|
-
viewBox: "0 0
|
|
13025
|
+
viewBox: "0 0 14 14",
|
|
13026
|
+
"shape-rendering": "geometricPrecision",
|
|
13027
13027
|
fill: "currentColor",
|
|
13028
|
-
|
|
13029
|
-
|
|
13030
|
-
|
|
13028
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13029
|
+
children: [
|
|
13030
|
+
/*#__PURE__*/ jsx("g", {
|
|
13031
|
+
"clip-path": "url(#clip0_518_8403)",
|
|
13032
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
13033
|
+
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"
|
|
13034
|
+
})
|
|
13035
|
+
}),
|
|
13036
|
+
/*#__PURE__*/ jsx("defs", {
|
|
13037
|
+
children: /*#__PURE__*/ jsx("clipPath", {
|
|
13038
|
+
id: "clip0_518_8403",
|
|
13039
|
+
children: /*#__PURE__*/ jsx("rect", {
|
|
13040
|
+
width: "16",
|
|
13041
|
+
height: "16"
|
|
13042
|
+
})
|
|
13043
|
+
})
|
|
13044
|
+
})
|
|
13045
|
+
]
|
|
13031
13046
|
})
|
|
13032
13047
|
});
|
|
13033
13048
|
var copySuccessSvg = /*#__PURE__*/ jsx("i", {
|
|
@@ -13053,7 +13068,7 @@ var CopyIcon = function(props) {
|
|
|
13053
13068
|
};
|
|
13054
13069
|
}, []);
|
|
13055
13070
|
var getCls = function(clsName) {
|
|
13056
|
-
return modules_63b47c51$
|
|
13071
|
+
return modules_63b47c51$8[clsName] + " " + prefix + "-" + clsName;
|
|
13057
13072
|
};
|
|
13058
13073
|
var copyTextClick = function() {
|
|
13059
13074
|
if (copySuccess) return;
|
|
@@ -13075,24 +13090,34 @@ var CopyIcon = function(props) {
|
|
|
13075
13090
|
};
|
|
13076
13091
|
var CopyIcon$1 = CopyIcon;
|
|
13077
13092
|
|
|
13078
|
-
var modules_63b47c51$
|
|
13093
|
+
var modules_63b47c51$7 = {"msgItem-action-references":"index_module_msgItemActionReferences__01544392"};
|
|
13079
13094
|
|
|
13080
13095
|
var referencesIcon = /*#__PURE__*/ jsx("i", {
|
|
13081
|
-
children: /*#__PURE__*/
|
|
13082
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13096
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
13083
13097
|
width: "1em",
|
|
13084
13098
|
height: "1em",
|
|
13085
|
-
|
|
13099
|
+
"shape-rendering": "geometricPrecision",
|
|
13086
13100
|
fill: "currentColor",
|
|
13087
|
-
|
|
13088
|
-
|
|
13089
|
-
|
|
13101
|
+
viewBox: "0 0 14 14",
|
|
13102
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13103
|
+
children: [
|
|
13104
|
+
/*#__PURE__*/ jsx("path", {
|
|
13105
|
+
"fill-rule": "evenodd",
|
|
13106
|
+
"clip-rule": "evenodd",
|
|
13107
|
+
d: "M6.28443 3.03861C3.77423 4.65069 2.37971 6.52702 2.10085 8.66759C1.66674 12 4.6468 13.6311 6.15677 12.1655C7.66673 10.7 6.7616 8.83982 5.66823 8.33136C4.57487 7.82286 3.90623 7.99996 4.02287 7.32046C4.1395 6.64099 5.69503 4.75706 7.06163 3.87969C7.1523 3.80259 7.1868 3.65299 7.0995 3.53949C7.04207 3.46486 6.92943 3.31847 6.7616 3.10033C6.61483 2.90957 6.47423 2.91671 6.28443 3.03861Z"
|
|
13108
|
+
}),
|
|
13109
|
+
/*#__PURE__*/ jsx("path", {
|
|
13110
|
+
"fill-rule": "evenodd",
|
|
13111
|
+
"clip-rule": "evenodd",
|
|
13112
|
+
d: "M12.893 3.03861C10.3828 4.65069 8.98827 6.52702 8.7094 8.66759C8.2753 12 11.2554 13.6311 12.7653 12.1655C14.2753 10.7 13.3702 8.83982 12.2768 8.33136C11.1834 7.82286 10.5148 7.99996 10.6314 7.32046C10.7481 6.64099 12.3036 4.75706 13.6702 3.87969C13.7609 3.80259 13.7954 3.65299 13.708 3.53949C13.6506 3.46486 13.538 3.31847 13.3702 3.10033C13.2234 2.90957 13.0828 2.91671 12.893 3.03861Z"
|
|
13113
|
+
})
|
|
13114
|
+
]
|
|
13090
13115
|
})
|
|
13091
13116
|
});
|
|
13092
13117
|
var ReferencesIcon = function(props) {
|
|
13093
13118
|
var prefix = props.prefix, apiRef = props.apiRef, item = props.item;
|
|
13094
13119
|
var getCls = function(clsName) {
|
|
13095
|
-
return modules_63b47c51$
|
|
13120
|
+
return modules_63b47c51$7[clsName] + " " + prefix + "-" + clsName;
|
|
13096
13121
|
};
|
|
13097
13122
|
var clickFn = function() {
|
|
13098
13123
|
console.log("apiRef", apiRef);
|
|
@@ -13100,7 +13125,8 @@ var ReferencesIcon = function(props) {
|
|
|
13100
13125
|
console.log("itemitem", item);
|
|
13101
13126
|
apiRef.footerApi.setReferences({
|
|
13102
13127
|
type: "text",
|
|
13103
|
-
value: item.content
|
|
13128
|
+
value: item.content,
|
|
13129
|
+
source: item
|
|
13104
13130
|
});
|
|
13105
13131
|
}
|
|
13106
13132
|
};
|
|
@@ -13114,12 +13140,94 @@ var ReferencesIcon = function(props) {
|
|
|
13114
13140
|
};
|
|
13115
13141
|
var ReferencesIcon$1 = ReferencesIcon;
|
|
13116
13142
|
|
|
13143
|
+
var modules_63b47c51$6 = {"upVoteBtn":"index_module_upVoteBtn__2e714550","downVoteBtn":"index_module_downVoteBtn__2e714550","active":"index_module_active__2e714550"};
|
|
13144
|
+
|
|
13145
|
+
var upvoteBtnSvg = /*#__PURE__*/ jsx("svg", {
|
|
13146
|
+
width: "1em",
|
|
13147
|
+
height: "1em",
|
|
13148
|
+
viewBox: "0 0 16 16",
|
|
13149
|
+
"shape-rendering": "geometricPrecision",
|
|
13150
|
+
fill: "currentColor",
|
|
13151
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13152
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
13153
|
+
d: "M14.9948 7.82355C14.999 7.88679 14.9948 7.95002 14.978 8.01326L13.7172 13.4046C13.7003 13.4699 13.6709 13.527 13.633 13.58C13.4983 13.8411 13.292 14.0716 13.0205 14.2409C12.7321 14.4184 12.4122 14.5 12.0944 14.5V14.4959L4.00144 14.4918C3.97408 14.4959 3.94461 14.498 3.91514 14.498C3.88568 14.498 3.85621 14.4959 3.82885 14.4918H1.67564C1.64617 14.4959 1.6146 14.5 1.58303 14.5C1.26099 14.5 1 14.2471 1 13.935L1.00631 7.1504C1.00631 6.8383 1.26731 6.58536 1.58934 6.58536C1.6125 6.58536 1.63775 6.5874 1.66091 6.58944L3.59522 6.58536V6.57516C5.37587 6.45073 6.78609 5.03711 6.8366 3.29303C6.83239 3.24408 6.82818 3.19512 6.82818 3.14412C6.82818 2.23639 7.58802 1.5 8.52465 1.5C9.32868 1.5 10.0022 2.04464 10.1769 2.77287L10.1853 2.77083C10.2801 3.18696 10.3327 3.61941 10.3327 4.06206C10.3327 4.74745 10.2127 5.40428 9.99169 6.0142L13.2457 6.01828C13.2752 6.01828 13.3046 6.02032 13.3341 6.02644C13.8898 6.04684 14.4244 6.32426 14.7401 6.8179C14.9422 7.13204 15.0222 7.4829 14.9948 7.82355ZM2.16816 13.3618H3.33422L3.33843 7.71544L2.17448 7.71748L2.16816 13.3618ZM13.7572 7.40946C13.6456 7.23403 13.4478 7.14224 13.2478 7.15244V7.1504H13.2457L9.13294 7.14632C8.8109 7.14632 8.54991 6.89338 8.54991 6.58128C8.54991 6.49153 8.57306 6.40585 8.61095 6.33038L8.60463 6.3263C8.83827 5.90609 9.00665 5.44712 9.10347 4.96367H9.10979C9.10979 4.96367 9.18766 4.6577 9.18556 4.0743C9.18556 3.61125 9.09716 3.18696 9.09716 3.18696H9.09295C9.09295 3.1788 9.09505 3.17064 9.09505 3.16248C9.09505 2.87078 8.85089 2.63416 8.54991 2.63416C8.24892 2.63416 8.00477 2.87078 8.00477 3.16248C8.00477 3.17472 8.00687 3.18696 8.00687 3.1992H7.99845C7.99845 3.1992 8.00687 3.63981 7.91636 4.09878C7.87848 4.29256 7.82375 4.47411 7.77324 4.6169C7.77324 4.6169 7.77113 4.6169 7.77113 4.61486C7.28072 6.06928 6.0473 7.19528 4.50449 7.57673L4.49817 13.3638L12.0965 13.3658C12.1217 13.3658 12.147 13.3679 12.1723 13.372C12.248 13.3618 12.3238 13.3373 12.3912 13.2944C12.488 13.2353 12.5595 13.1496 12.6016 13.0517H12.6037L13.8161 7.86231L13.8119 7.86027C13.8624 7.71544 13.8477 7.55021 13.7572 7.40946Z"
|
|
13154
|
+
})
|
|
13155
|
+
});
|
|
13156
|
+
var downvoteBtnSvg = /*#__PURE__*/ jsx("svg", {
|
|
13157
|
+
width: "1em",
|
|
13158
|
+
height: "1em",
|
|
13159
|
+
"shape-rendering": "geometricPrecision",
|
|
13160
|
+
fill: "currentColor",
|
|
13161
|
+
viewBox: "0 0 16 16",
|
|
13162
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13163
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
13164
|
+
d: "M1.0052 8.17645C1.00099 8.11321 1.0052 8.04998 1.02204 7.98674L2.28281 2.5954C2.29965 2.53013 2.32912 2.47301 2.36701 2.41998C2.50171 2.15887 2.70798 1.92837 2.9795 1.75906C3.26786 1.58159 3.58779 1.5 3.90561 1.5V1.50408L11.9986 1.50816C12.0259 1.50408 12.0554 1.50204 12.0849 1.50204C12.1143 1.50204 12.1438 1.50408 12.1712 1.50816H14.3244C14.3538 1.50408 14.3854 1.5 14.417 1.5C14.739 1.5 15 1.75294 15 2.06504L14.9937 8.8496C14.9937 9.1617 14.7327 9.41464 14.4107 9.41464C14.3875 9.41464 14.3622 9.4126 14.3391 9.41056L12.4048 9.41464V9.42484C10.6241 9.54927 9.21391 10.9629 9.1634 12.707C9.16761 12.7559 9.17182 12.8049 9.17182 12.8559C9.17182 13.7636 8.41198 14.5 7.47535 14.5C6.67132 14.5 5.99778 13.9554 5.82308 13.2271L5.81466 13.2292C5.71995 12.813 5.66733 12.3806 5.66733 11.9379C5.66733 11.2526 5.7873 10.5957 6.00831 9.9858L2.75429 9.98172C2.72482 9.98172 2.69535 9.97968 2.66589 9.97356C2.11022 9.95316 1.5756 9.67574 1.25988 9.1821C1.05782 8.86796 0.977839 8.5171 1.0052 8.17645ZM13.8318 2.63824H12.6658L12.6616 8.28456L13.8255 8.28252L13.8318 2.63824ZM2.24282 8.59054C2.35438 8.76597 2.55223 8.85776 2.75218 8.84756V8.8496H2.75429L6.86706 8.85368C7.1891 8.85368 7.45009 9.10662 7.45009 9.41872C7.45009 9.50847 7.42694 9.59415 7.38905 9.66962L7.39537 9.6737C7.16173 10.0939 6.99335 10.5529 6.89653 11.0363H6.89021C6.89021 11.0363 6.81234 11.3423 6.81444 11.9257C6.81444 12.3887 6.90284 12.813 6.90284 12.813H6.90705C6.90705 12.8212 6.90495 12.8294 6.90495 12.8375C6.90495 13.1292 7.14911 13.3658 7.45009 13.3658C7.75108 13.3658 7.99523 13.1292 7.99523 12.8375C7.99523 12.8253 7.99313 12.813 7.99313 12.8008H8.00155C8.00155 12.8008 7.99313 12.3602 8.08364 11.9012C8.12152 11.7074 8.17625 11.5259 8.22676 11.3831C8.22676 11.3831 8.22887 11.3831 8.22887 11.3851C8.71928 9.93072 9.9527 8.80472 11.4955 8.42327L11.5018 2.6362L3.90351 2.63416C3.87825 2.63416 3.85299 2.63212 3.82773 2.62804C3.75196 2.63824 3.67619 2.66272 3.60884 2.70555C3.51201 2.76471 3.44045 2.85038 3.39836 2.9483H3.39625L2.18389 8.13769L2.1881 8.13973C2.13758 8.28456 2.15232 8.44979 2.24282 8.59054Z"
|
|
13165
|
+
})
|
|
13166
|
+
});
|
|
13167
|
+
var UpVoteBtn = function(props) {
|
|
13168
|
+
var prefix = props.prefix, isActive = props.isActive, clickFn = props.clickFn;
|
|
13169
|
+
var getCls = function(clsName) {
|
|
13170
|
+
return modules_63b47c51$6[clsName] + " " + prefix + "-" + clsName;
|
|
13171
|
+
};
|
|
13172
|
+
return /*#__PURE__*/ jsx("i", {
|
|
13173
|
+
onClick: function() {
|
|
13174
|
+
clickFn();
|
|
13175
|
+
},
|
|
13176
|
+
className: "".concat(getCls("upVoteBtn"), " ").concat(isActive ? getCls("active") : ""),
|
|
13177
|
+
children: upvoteBtnSvg
|
|
13178
|
+
});
|
|
13179
|
+
};
|
|
13180
|
+
var DownVoteBtn = function(props) {
|
|
13181
|
+
var prefix = props.prefix, isActive = props.isActive, clickFn = props.clickFn;
|
|
13182
|
+
var getCls = function(clsName) {
|
|
13183
|
+
return modules_63b47c51$6[clsName] + " " + prefix + "-" + clsName;
|
|
13184
|
+
};
|
|
13185
|
+
return /*#__PURE__*/ jsx("i", {
|
|
13186
|
+
onClick: function() {
|
|
13187
|
+
clickFn();
|
|
13188
|
+
},
|
|
13189
|
+
className: "".concat(getCls("downVoteBtn"), " ").concat(isActive ? getCls("active") : ""),
|
|
13190
|
+
children: downvoteBtnSvg
|
|
13191
|
+
});
|
|
13192
|
+
};
|
|
13193
|
+
|
|
13194
|
+
var modules_63b47c51$5 = {"refreshBtn":"index_module_refreshBtn__e1c5f38f","active":"index_module_active__e1c5f38f"};
|
|
13195
|
+
|
|
13196
|
+
var refreshSvg = /*#__PURE__*/ jsx("svg", {
|
|
13197
|
+
viewBox: "0 0 14 14",
|
|
13198
|
+
version: "1.1",
|
|
13199
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13200
|
+
"p-id": "8340",
|
|
13201
|
+
width: "1em",
|
|
13202
|
+
height: "1em",
|
|
13203
|
+
fill: "currentColor",
|
|
13204
|
+
"shape-rendering": "geometricPrecision",
|
|
13205
|
+
"aria-hidden": "true",
|
|
13206
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
13207
|
+
d: "M8 3.80001C7.27938 3.80001 6.60141 3.97512 6.00464 4.2846C5.71048 4.43715 5.34834 4.32235 5.19579 4.02818C5.04324 3.73401 5.15804 3.37187 5.4522 3.21932C6.21563 2.82342 7.0826 2.60001 8 2.60001C11.0603 2.60001 13.5412 5.08088 13.5412 8.14118C13.5412 8.40936 13.5221 8.67343 13.4851 8.93202C13.4737 9.01141 13.4607 9.09026 13.446 9.16853L13.7175 9.02364C14.0098 8.86759 14.3733 8.97808 14.5293 9.27041C14.6854 9.56274 14.5749 9.92622 14.2825 10.0823L12.6718 10.9421C12.3819 11.0968 12.0215 10.9896 11.8633 10.7016L11.0035 9.13588C10.844 8.84542 10.9501 8.48065 11.2406 8.32115C11.5311 8.16164 11.8958 8.2678 12.0553 8.55825L12.2672 8.94405C12.2784 8.88383 12.2885 8.82318 12.2972 8.76211C12.3261 8.55962 12.3412 8.35233 12.3412 8.14118C12.3412 5.74362 10.3976 3.80001 8 3.80001ZM3.32824 5.34029C3.61811 5.18556 3.97853 5.29278 4.13669 5.58079L4.99651 7.14649C5.15601 7.43694 5.04986 7.80171 4.7594 7.96122C4.46895 8.12072 4.10418 8.01457 3.94467 7.72411L3.73281 7.33832C3.72156 7.39853 3.71155 7.45919 3.70282 7.52026C3.67386 7.72275 3.65883 7.93003 3.65883 8.14118C3.65883 10.5387 5.60244 12.4824 8 12.4824C8.72063 12.4824 9.39859 12.3072 9.99536 11.9978C10.2895 11.8452 10.6517 11.96 10.8042 12.2542C10.9568 12.5484 10.842 12.9105 10.5478 13.063C9.78437 13.4589 8.9174 13.6824 8 13.6824C4.93969 13.6824 2.45883 11.2015 2.45883 8.14118C2.45883 7.87301 2.47792 7.60894 2.51491 7.35034C2.52627 7.27095 2.5393 7.19211 2.55399 7.11384L2.28254 7.25873C1.99021 7.41477 1.62673 7.30429 1.47069 7.01196C1.31465 6.71963 1.42513 6.35615 1.71746 6.20011L3.32824 5.34029Z"
|
|
13208
|
+
})
|
|
13209
|
+
});
|
|
13210
|
+
var RefreshBtn = function(props) {
|
|
13211
|
+
var prefix = props.prefix, clickFn = props.clickFn;
|
|
13212
|
+
var getCls = function(clsName) {
|
|
13213
|
+
return modules_63b47c51$5[clsName] + " " + prefix + "-" + clsName;
|
|
13214
|
+
};
|
|
13215
|
+
return /*#__PURE__*/ jsx("i", {
|
|
13216
|
+
className: "".concat(getCls("refreshBtn")),
|
|
13217
|
+
onClick: function() {
|
|
13218
|
+
return clickFn();
|
|
13219
|
+
},
|
|
13220
|
+
children: refreshSvg
|
|
13221
|
+
});
|
|
13222
|
+
};
|
|
13223
|
+
var RefreshBtn$1 = RefreshBtn;
|
|
13224
|
+
|
|
13117
13225
|
var Header = function(param) {
|
|
13118
13226
|
var context = param.context;
|
|
13119
13227
|
var prefix = context.prefix, loading = context.loading;
|
|
13120
13228
|
if (!loading) return null;
|
|
13121
13229
|
var getCls = function(clsName) {
|
|
13122
|
-
return modules_63b47c51$
|
|
13230
|
+
return modules_63b47c51$9[clsName] + " " + prefix + "-" + clsName;
|
|
13123
13231
|
};
|
|
13124
13232
|
return /*#__PURE__*/ jsx("div", {
|
|
13125
13233
|
className: "".concat(getCls("loadingIcon")),
|
|
@@ -13147,7 +13255,7 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
13147
13255
|
var getList = contentConfig.getList, coverRenderText = contentConfig.coverRenderText, _contentConfig_msgAction = contentConfig.msgAction, msgAction = _contentConfig_msgAction === void 0 ? [
|
|
13148
13256
|
"copy",
|
|
13149
13257
|
"references"
|
|
13150
|
-
] : _contentConfig_msgAction, coverRenderReferences = contentConfig.coverRenderReferences, _contentConfig_onRecordMessage = contentConfig.onRecordMessage, onRecordMessage = _contentConfig_onRecordMessage === void 0 ? function() {} : _contentConfig_onRecordMessage;
|
|
13258
|
+
] : _contentConfig_msgAction, coverRenderReferences = contentConfig.coverRenderReferences, _contentConfig_onRecordMessage = contentConfig.onRecordMessage, onRecordMessage = _contentConfig_onRecordMessage === void 0 ? function() {} : _contentConfig_onRecordMessage, _contentConfig_onVoteChange = contentConfig.onVoteChange, onVoteChange = _contentConfig_onVoteChange === void 0 ? function() {} : _contentConfig_onVoteChange, _contentConfig_onRefresh = contentConfig.onRefresh, onRefresh = _contentConfig_onRefresh === void 0 ? function() {} : _contentConfig_onRefresh;
|
|
13151
13259
|
var loadMoreProps = contentConfig.loadMore || true;
|
|
13152
13260
|
var virtuosoRef = useRef(null);
|
|
13153
13261
|
var _useState = _sliced_to_array(useState(false), 2), loading = _useState[0], setLoading = _useState[1]; // 是否加载中
|
|
@@ -13169,6 +13277,7 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
13169
13277
|
maxPage: Math.ceil(total / pageSize)
|
|
13170
13278
|
});
|
|
13171
13279
|
var timeRenderCache = useRef(new Map()).current;
|
|
13280
|
+
var htmlRenderCache = useRef(new Map()).current;
|
|
13172
13281
|
useImperativeHandle(ref, function() {
|
|
13173
13282
|
return {
|
|
13174
13283
|
addMsg: function(msg) {
|
|
@@ -13201,12 +13310,28 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
13201
13310
|
},
|
|
13202
13311
|
recordMsg: function(msg) {
|
|
13203
13312
|
onRecordMessage(msg);
|
|
13313
|
+
},
|
|
13314
|
+
getDataSource: function() {
|
|
13315
|
+
return recordRef.current.dataSource;
|
|
13316
|
+
},
|
|
13317
|
+
upateDataSource: function(id, obj) {
|
|
13318
|
+
setDataSource(function(list) {
|
|
13319
|
+
return list.map(function(item) {
|
|
13320
|
+
if (item.id === id) {
|
|
13321
|
+
return _object_spread({}, item, obj);
|
|
13322
|
+
}
|
|
13323
|
+
return item;
|
|
13324
|
+
});
|
|
13325
|
+
});
|
|
13326
|
+
},
|
|
13327
|
+
changeDataSource: function(data) {
|
|
13328
|
+
setDataSource(data);
|
|
13204
13329
|
}
|
|
13205
13330
|
};
|
|
13206
13331
|
});
|
|
13207
13332
|
useEffect(function() {
|
|
13208
13333
|
getData(page, pageSize);
|
|
13209
|
-
var removeFn = delegate$1(wrapperRef.current, "click", ".".concat(modules_63b47c51$
|
|
13334
|
+
var removeFn = delegate$1(wrapperRef.current, "click", ".".concat(modules_63b47c51$9.copyCode), function(event, target) {
|
|
13210
13335
|
findCopyContent(event);
|
|
13211
13336
|
});
|
|
13212
13337
|
return function() {
|
|
@@ -13263,7 +13388,7 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
13263
13388
|
}, 500);
|
|
13264
13389
|
};
|
|
13265
13390
|
var getCls = function(clsName) {
|
|
13266
|
-
return modules_63b47c51$
|
|
13391
|
+
return modules_63b47c51$9[clsName] + " " + prefix + "-" + clsName;
|
|
13267
13392
|
};
|
|
13268
13393
|
var loadMore = useCallback(function() {
|
|
13269
13394
|
if (!loadMoreProps) return;
|
|
@@ -13275,14 +13400,21 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
13275
13400
|
]);
|
|
13276
13401
|
var itemContent = function(index, item) {
|
|
13277
13402
|
var timeNode = renderTime(item);
|
|
13278
|
-
var
|
|
13279
|
-
var contentNode =
|
|
13280
|
-
|
|
13281
|
-
|
|
13403
|
+
var cahceKey = item.id + "-" + item.content;
|
|
13404
|
+
var contentNode = null;
|
|
13405
|
+
if (htmlRenderCache.has(cahceKey)) {
|
|
13406
|
+
contentNode = htmlRenderCache.get(cahceKey);
|
|
13407
|
+
} else {
|
|
13408
|
+
var html = markToHtml(item.content, item.id);
|
|
13409
|
+
contentNode = /*#__PURE__*/ jsx("div", {
|
|
13410
|
+
dangerouslySetInnerHTML: {
|
|
13411
|
+
__html: html
|
|
13412
|
+
}
|
|
13413
|
+
});
|
|
13414
|
+
if (coverRenderText) {
|
|
13415
|
+
contentNode = coverRenderText(item, html);
|
|
13282
13416
|
}
|
|
13283
|
-
|
|
13284
|
-
if (coverRenderText) {
|
|
13285
|
-
contentNode = coverRenderText(item, html);
|
|
13417
|
+
htmlRenderCache.set(cahceKey, contentNode);
|
|
13286
13418
|
}
|
|
13287
13419
|
// 是否显示时间
|
|
13288
13420
|
var itemNode = /*#__PURE__*/ jsx("div", {
|
|
@@ -13342,8 +13474,8 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
13342
13474
|
var dom = document.querySelector('[data-id="'.concat(item.id, '"]'));
|
|
13343
13475
|
var container = wrapperRef.current;
|
|
13344
13476
|
if (!dom) return;
|
|
13345
|
-
var topDom = dom.querySelector("." + modules_63b47c51$
|
|
13346
|
-
var bottomDom = dom.querySelector("." + modules_63b47c51$
|
|
13477
|
+
var topDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatTop"]);
|
|
13478
|
+
var bottomDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatBottom"]);
|
|
13347
13479
|
if (!topDom || !bottomDom) return;
|
|
13348
13480
|
console.log("itemitem", dom, container);
|
|
13349
13481
|
var con_obj = container.getBoundingClientRect(); // 外层盒子
|
|
@@ -13376,8 +13508,8 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
13376
13508
|
var onMouseLeave = function(item) {
|
|
13377
13509
|
var dom = document.querySelector('[data-id="'.concat(item.id, '"]'));
|
|
13378
13510
|
if (!dom) return;
|
|
13379
|
-
var topDom = dom.querySelector("." + modules_63b47c51$
|
|
13380
|
-
var bottomDom = dom.querySelector("." + modules_63b47c51$
|
|
13511
|
+
var topDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatTop"]);
|
|
13512
|
+
var bottomDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatBottom"]);
|
|
13381
13513
|
if (!topDom || !bottomDom) return;
|
|
13382
13514
|
bottomDom.style.cssText = "";
|
|
13383
13515
|
topDom.style.cssText = "";
|
|
@@ -13392,11 +13524,53 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
13392
13524
|
apiRef: apiRef,
|
|
13393
13525
|
item: item
|
|
13394
13526
|
});
|
|
13527
|
+
var UpVoteNode = /*#__PURE__*/ jsx(UpVoteBtn, {
|
|
13528
|
+
prefix: prefix,
|
|
13529
|
+
isActive: item.vote === "up",
|
|
13530
|
+
clickFn: function() {
|
|
13531
|
+
setDataSource(function(data) {
|
|
13532
|
+
return data.map(function(ite) {
|
|
13533
|
+
if (item.id === ite.id) {
|
|
13534
|
+
ite.vote = item.vote === "up" ? "" : "up";
|
|
13535
|
+
}
|
|
13536
|
+
return ite;
|
|
13537
|
+
});
|
|
13538
|
+
});
|
|
13539
|
+
onVoteChange(item.vote === "up" ? "" : "up", item);
|
|
13540
|
+
}
|
|
13541
|
+
});
|
|
13542
|
+
var DownVoteNode = /*#__PURE__*/ jsx(DownVoteBtn, {
|
|
13543
|
+
prefix: prefix,
|
|
13544
|
+
isActive: item.vote === "down",
|
|
13545
|
+
clickFn: function() {
|
|
13546
|
+
setDataSource(function(data) {
|
|
13547
|
+
return data.map(function(ite) {
|
|
13548
|
+
if (item.id === ite.id) {
|
|
13549
|
+
ite.vote = ite.vote === "down" ? "" : "down";
|
|
13550
|
+
}
|
|
13551
|
+
return ite;
|
|
13552
|
+
});
|
|
13553
|
+
});
|
|
13554
|
+
onVoteChange(item.vote === "down" ? "" : "down", item);
|
|
13555
|
+
}
|
|
13556
|
+
});
|
|
13557
|
+
var RefreshNode = /*#__PURE__*/ jsx(RefreshBtn$1, {
|
|
13558
|
+
prefix: prefix,
|
|
13559
|
+
clickFn: function() {
|
|
13560
|
+
return onRefresh(item);
|
|
13561
|
+
}
|
|
13562
|
+
});
|
|
13563
|
+
if (item.location === "right") {
|
|
13564
|
+
UpVoteNode = null;
|
|
13565
|
+
DownVoteNode = null;
|
|
13566
|
+
}
|
|
13395
13567
|
var leftNodes = null;
|
|
13396
13568
|
var rightNodes = /*#__PURE__*/ jsxs(Fragment, {
|
|
13397
13569
|
children: [
|
|
13398
13570
|
copyNode,
|
|
13399
|
-
referencesNode
|
|
13571
|
+
referencesNode,
|
|
13572
|
+
UpVoteNode,
|
|
13573
|
+
DownVoteNode
|
|
13400
13574
|
]
|
|
13401
13575
|
});
|
|
13402
13576
|
if (msgAction instanceof Array) {
|
|
@@ -13408,12 +13582,21 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
13408
13582
|
if (!msgAction.includes("references")) {
|
|
13409
13583
|
referencesNode = null;
|
|
13410
13584
|
}
|
|
13585
|
+
if (!msgAction.includes("upVite")) {
|
|
13586
|
+
UpVoteNode = null;
|
|
13587
|
+
}
|
|
13588
|
+
if (!msgAction.includes("downVote")) {
|
|
13589
|
+
DownVoteNode = null;
|
|
13590
|
+
}
|
|
13591
|
+
if (!msgAction.includes("refresh")) {
|
|
13592
|
+
RefreshNode = null;
|
|
13593
|
+
}
|
|
13411
13594
|
} else if (typeof msgAction === "object") {
|
|
13412
13595
|
if (msgAction.renderLeft) {
|
|
13413
|
-
leftNodes = msgAction.renderLeft(copyNode, referencesNode);
|
|
13596
|
+
leftNodes = msgAction.renderLeft(copyNode, referencesNode, UpVoteNode, DownVoteNode, RefreshNode);
|
|
13414
13597
|
}
|
|
13415
13598
|
if (msgAction.renderRight) {
|
|
13416
|
-
rightNodes = msgAction.renderRight(copyNode, referencesNode);
|
|
13599
|
+
rightNodes = msgAction.renderRight(copyNode, referencesNode, UpVoteNode, DownVoteNode, RefreshNode);
|
|
13417
13600
|
}
|
|
13418
13601
|
}
|
|
13419
13602
|
var index = recordRef.current.dataSource.findIndex(function(ite) {
|
|
@@ -13429,9 +13612,12 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
13429
13612
|
className: "".concat(getCls("msgItem-action-left")),
|
|
13430
13613
|
children: leftNodes
|
|
13431
13614
|
}),
|
|
13432
|
-
/*#__PURE__*/
|
|
13615
|
+
/*#__PURE__*/ jsxs("div", {
|
|
13433
13616
|
className: "".concat(getCls("msgItem-action-right")),
|
|
13434
|
-
children:
|
|
13617
|
+
children: [
|
|
13618
|
+
RefreshNode,
|
|
13619
|
+
rightNodes
|
|
13620
|
+
]
|
|
13435
13621
|
})
|
|
13436
13622
|
]
|
|
13437
13623
|
});
|
|
@@ -13466,7 +13652,7 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
13466
13652
|
var position = 0;
|
|
13467
13653
|
html = html.replace(new RegExp("<pre", "ig"), function() {
|
|
13468
13654
|
position++;
|
|
13469
|
-
return "<p class='".concat(getCls("copyCode"), " ").concat(modules_63b47c51$
|
|
13655
|
+
return "<p class='".concat(getCls("copyCode"), " ").concat(modules_63b47c51$9.copyCodeFun, "' data-id=").concat(id, " data-position=").concat(position, ">\n <span class='").concat(getCls("icon"), " ").concat(getCls("copy"), '\'>\n <svg\n width="1em"\n height="1em"\n viewBox="0 0 14 14"\n shape-rendering="geometricPrecision"\n fill="currentColor"\n xmlns="http://www.w3.org/2000/svg"\n >\n <g clip-path="url(#clip0_518_8403)">\n <path\n d="M6.16666 1.66666H13.1667C13.4761 1.66666 13.7728 1.78957 13.9916 2.00837C14.2104 2.22716 14.3333 2.5239 14.3333 2.83332V9.83332C14.3333 10.1427 14.2104 10.4395 13.9916 10.6583C13.7728 10.8771 13.4761 11 13.1667 11H6.16666C5.85724 11 5.5605 10.8771 5.34171 10.6583C5.12291 10.4395 5 10.1427 5 9.83332V2.83332C5 2.5239 5.12291 2.22716 5.34171 2.00837C5.5605 1.78957 5.85724 1.66666 6.16666 1.66666ZM6.16666 2.66666C6.12246 2.66666 6.08007 2.68422 6.04881 2.71547C6.01756 2.74673 6 2.78912 6 2.83332V9.83332C6 9.85521 6.00431 9.87688 6.01268 9.8971C6.02106 9.91732 6.03334 9.9357 6.04881 9.95117C6.06429 9.96665 6.08266 9.97893 6.10288 9.9873C6.1231 9.99568 6.14478 9.99999 6.16666 9.99999H13.1667C13.2109 9.99999 13.2533 9.98243 13.2845 9.95117C13.3158 9.91992 13.3333 9.87753 13.3333 9.83332V2.83332C13.3333 2.78912 13.3158 2.74673 13.2845 2.71547C13.2533 2.68422 13.2109 2.66666 13.1667 2.66666H6.16666ZM10 12C10 11.8674 10.0527 11.7402 10.1464 11.6464C10.2402 11.5527 10.3674 11.5 10.5 11.5C10.6326 11.5 10.7598 11.5527 10.8536 11.6464C10.9473 11.7402 11 11.8674 11 12V13.1667C11 13.4761 10.8771 13.7728 10.6583 13.9916C10.4395 14.2104 10.1427 14.3333 9.83333 14.3333H2.83333C2.52391 14.3333 2.22717 14.2104 2.00837 13.9916C1.78958 13.7728 1.66666 13.4761 1.66666 13.1667V6.16666C1.66666 5.85724 1.78958 5.56049 2.00837 5.3417C2.22717 5.12291 2.52391 4.99999 2.83333 4.99999H4C4.13261 4.99999 4.25978 5.05267 4.35355 5.14644C4.44732 5.2402 4.5 5.36738 4.5 5.49999C4.5 5.6326 4.44732 5.75978 4.35355 5.85354C4.25978 5.94731 4.13261 5.99999 4 5.99999H2.83333C2.78913 5.99999 2.74674 6.01755 2.71548 6.04881C2.68422 6.08006 2.66666 6.12245 2.66666 6.16666V13.1667C2.66666 13.2109 2.68422 13.2533 2.71548 13.2845C2.74674 13.3158 2.78913 13.3333 2.83333 13.3333H9.83333C9.87753 13.3333 9.91993 13.3158 9.95118 13.2845C9.98244 13.2533 10 13.2109 10 13.1667V12Z"\n />\n </g>\n <defs>\n <clipPath id="clip0_518_8403">\n <rect width="16" height="16" />\n </clipPath>\n </defs>\n </svg>\n </span>\n <span class=\'').concat(getCls("icon"), " ").concat(getCls("copy_success_flag"), '\'>\n <svg\n width="1em"\n height="1em"\n shape-rendering="geometricPrecision"\n fill="currentColor"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path d="M11.2242 0.375687C11.4586 0.610002 11.4586 0.989901 11.2242 1.22422L4.82424 7.62422C4.58992 7.85853 4.21003 7.85853 3.97571 7.62422L0.775712 4.42422C0.541397 4.1899 0.541397 3.81 0.775712 3.57569C1.01003 3.34137 1.38993 3.34137 1.62424 3.57569L4.39998 6.35142L10.3757 0.375687C10.61 0.141373 10.9899 0.141373 11.2242 0.375687Z" />\n </svg>\n </span><span class="').concat(getCls("copyCodeText"), '">复制代码</span></p><pre');
|
|
13470
13656
|
});
|
|
13471
13657
|
return html;
|
|
13472
13658
|
};
|
|
@@ -13513,7 +13699,7 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
13513
13699
|
return result;
|
|
13514
13700
|
};
|
|
13515
13701
|
var findCopyContent = function(e) {
|
|
13516
|
-
var source = findParent$1(e.target, modules_63b47c51$
|
|
13702
|
+
var source = findParent$1(e.target, modules_63b47c51$9.copyCode);
|
|
13517
13703
|
if (!source) return;
|
|
13518
13704
|
var id = source.getAttribute("data-id");
|
|
13519
13705
|
var position = source.getAttribute("data-position");
|
|
@@ -13539,7 +13725,7 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
13539
13725
|
}
|
|
13540
13726
|
});
|
|
13541
13727
|
resetStyles();
|
|
13542
|
-
source.classList.add(modules_63b47c51$
|
|
13728
|
+
source.classList.add(modules_63b47c51$9.copy_success);
|
|
13543
13729
|
source.children[2].innerText = "复制成功";
|
|
13544
13730
|
copyText$1(codeConment);
|
|
13545
13731
|
setTimeout(function() {
|
|
@@ -13550,13 +13736,13 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
13550
13736
|
};
|
|
13551
13737
|
//初始化样式
|
|
13552
13738
|
var resetStyles = function() {
|
|
13553
|
-
var dom_list = document.getElementsByClassName(modules_63b47c51$
|
|
13739
|
+
var dom_list = document.getElementsByClassName(modules_63b47c51$9.copy_success);
|
|
13554
13740
|
for(var i = 0; i < dom_list.length; i++){
|
|
13555
|
-
dom_list[i].classList.remove(modules_63b47c51$
|
|
13741
|
+
dom_list[i].classList.remove(modules_63b47c51$9.copy_success);
|
|
13556
13742
|
}
|
|
13557
|
-
var dom_list2 = document.getElementsByClassName(modules_63b47c51$
|
|
13743
|
+
var dom_list2 = document.getElementsByClassName(modules_63b47c51$9.copyCodeFun);
|
|
13558
13744
|
for(var i = 0; i < dom_list2.length; i++){
|
|
13559
|
-
var p = dom_list2[i].getElementsByClassName(modules_63b47c51$
|
|
13745
|
+
var p = dom_list2[i].getElementsByClassName(modules_63b47c51$9.copyCodeText);
|
|
13560
13746
|
p[0].innerText = "复制代码";
|
|
13561
13747
|
}
|
|
13562
13748
|
};
|
|
@@ -13598,7 +13784,7 @@ var Content = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
13598
13784
|
return _object_spread({}, listRef.current);
|
|
13599
13785
|
});
|
|
13600
13786
|
var getCls = function(clsName) {
|
|
13601
|
-
return modules_63b47c51$
|
|
13787
|
+
return modules_63b47c51$a[clsName] + " " + prefix + "-" + clsName;
|
|
13602
13788
|
};
|
|
13603
13789
|
return /*#__PURE__*/ jsx("div", {
|
|
13604
13790
|
className: "".concat(getCls("content"), " ").concat(className),
|
|
@@ -14874,9 +15060,14 @@ var FileList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
14874
15060
|
};
|
|
14875
15061
|
// 删除文件
|
|
14876
15062
|
var deleteFile = function(fileId) {
|
|
15063
|
+
var fileObj = null;
|
|
14877
15064
|
setFileList(function(fileList) {
|
|
14878
15065
|
return fileList.filter(function(item) {
|
|
14879
|
-
|
|
15066
|
+
if (item.fileId === fileId) {
|
|
15067
|
+
fileObj = item;
|
|
15068
|
+
return true;
|
|
15069
|
+
}
|
|
15070
|
+
return false;
|
|
14880
15071
|
});
|
|
14881
15072
|
});
|
|
14882
15073
|
// 删除文件时如果删除的是最后一条 则page-1
|
|
@@ -14888,7 +15079,7 @@ var FileList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
14888
15079
|
if (list.length === 0 && page > 1) {
|
|
14889
15080
|
changePage(page - 1);
|
|
14890
15081
|
}
|
|
14891
|
-
fileUpload.deleteFileAjax && fileUpload.deleteFileAjax(fileId);
|
|
15082
|
+
fileUpload.deleteFileAjax && fileUpload.deleteFileAjax(fileId, fileObj);
|
|
14892
15083
|
};
|
|
14893
15084
|
// 更新文件状态
|
|
14894
15085
|
var updateFile = function(fileId, status) {
|
|
@@ -15082,7 +15273,7 @@ var defaultFileUploadProps = {
|
|
|
15082
15273
|
};
|
|
15083
15274
|
var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
15084
15275
|
var footerConfig = props.footerConfig, prefix = props.prefix, errorCallback = props.errorCallback, apiRef = props.apiRef;
|
|
15085
|
-
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;
|
|
15276
|
+
var _footerConfig_placeholder = footerConfig.placeholder, placeholder = _footerConfig_placeholder === void 0 ? defaultProps.placeholder : _footerConfig_placeholder, _footerConfig_className = footerConfig.className, className = _footerConfig_className === void 0 ? defaultProps.className : _footerConfig_className, _footerConfig_maxLength = footerConfig.maxLength, maxLength = _footerConfig_maxLength === void 0 ? defaultProps.maxLength : _footerConfig_maxLength, renderAction = footerConfig.renderAction, fileUpload = footerConfig.fileUpload, sendMsgAjaxParams = footerConfig.sendMsgAjaxParams, _footerConfig_onClickStop = footerConfig.onClickStop, onClickStop = _footerConfig_onClickStop === void 0 ? function() {} : _footerConfig_onClickStop;
|
|
15086
15277
|
if (fileUpload) {
|
|
15087
15278
|
fileUpload = _object_spread({}, defaultFileUploadProps, fileUpload);
|
|
15088
15279
|
}
|
|
@@ -15170,7 +15361,10 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
15170
15361
|
prefix: prefix,
|
|
15171
15362
|
canSendMsg: canSendMsg,
|
|
15172
15363
|
sending: sending,
|
|
15173
|
-
stopMessage:
|
|
15364
|
+
stopMessage: function() {
|
|
15365
|
+
onClickStop();
|
|
15366
|
+
stopMessage();
|
|
15367
|
+
},
|
|
15174
15368
|
clickFn: function() {
|
|
15175
15369
|
if (textValue.trim().length === 0) return;
|
|
15176
15370
|
sendMsg(textValue);
|
|
@@ -15244,7 +15438,9 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
15244
15438
|
sendMsgAjax();
|
|
15245
15439
|
};
|
|
15246
15440
|
var sendMsgAjax = function() {
|
|
15247
|
-
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 ?
|
|
15441
|
+
var url = sendMsgAjaxParams.url, _sendMsgAjaxParams_method = sendMsgAjaxParams.method, method = _sendMsgAjaxParams_method === void 0 ? "POST" : _sendMsgAjaxParams_method, _sendMsgAjaxParams_headers = sendMsgAjaxParams.headers, headers = _sendMsgAjaxParams_headers === void 0 ? function() {
|
|
15442
|
+
return {};
|
|
15443
|
+
} : _sendMsgAjaxParams_headers, _sendMsgAjaxParams_params = sendMsgAjaxParams.params, params = _sendMsgAjaxParams_params === void 0 ? function() {
|
|
15248
15444
|
return "";
|
|
15249
15445
|
} : _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) {
|
|
15250
15446
|
return ev;
|
|
@@ -15275,54 +15471,62 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
15275
15471
|
fileListRef.current ? fileListRef.current.getFileList() : []
|
|
15276
15472
|
];
|
|
15277
15473
|
beforeSendMsg.apply(void 0, _to_consumable_array(arg)).then(function(beforeInfo) {
|
|
15278
|
-
|
|
15279
|
-
|
|
15280
|
-
|
|
15281
|
-
|
|
15282
|
-
|
|
15283
|
-
|
|
15284
|
-
|
|
15285
|
-
|
|
15286
|
-
|
|
15287
|
-
|
|
15288
|
-
|
|
15289
|
-
|
|
15290
|
-
|
|
15291
|
-
|
|
15292
|
-
|
|
15293
|
-
|
|
15294
|
-
|
|
15295
|
-
|
|
15296
|
-
|
|
15297
|
-
|
|
15298
|
-
|
|
15299
|
-
|
|
15300
|
-
|
|
15301
|
-
|
|
15302
|
-
|
|
15303
|
-
|
|
15304
|
-
|
|
15305
|
-
|
|
15306
|
-
|
|
15307
|
-
|
|
15308
|
-
|
|
15309
|
-
|
|
15310
|
-
|
|
15311
|
-
|
|
15312
|
-
|
|
15313
|
-
|
|
15314
|
-
|
|
15315
|
-
}
|
|
15316
|
-
|
|
15317
|
-
|
|
15318
|
-
|
|
15319
|
-
|
|
15320
|
-
|
|
15321
|
-
|
|
15474
|
+
var callback = function() {
|
|
15475
|
+
fetchEventSource(url, _object_spread({
|
|
15476
|
+
method: method,
|
|
15477
|
+
headers: _object_spread({
|
|
15478
|
+
"Content-Type": "application/json",
|
|
15479
|
+
"Accept": "text/event-stream,application/json"
|
|
15480
|
+
}, headers()),
|
|
15481
|
+
body: params.apply(void 0, _to_consumable_array(arg).concat([
|
|
15482
|
+
beforeInfo
|
|
15483
|
+
])),
|
|
15484
|
+
openWhenHidden: true,
|
|
15485
|
+
signal: ctrl.current.signal,
|
|
15486
|
+
onopen: function(res) {
|
|
15487
|
+
var retryFetch = function() {
|
|
15488
|
+
callback();
|
|
15489
|
+
};
|
|
15490
|
+
onOpen(res, {
|
|
15491
|
+
retryFetch: retryFetch,
|
|
15492
|
+
stopMessage: stopMessage
|
|
15493
|
+
});
|
|
15494
|
+
return null;
|
|
15495
|
+
},
|
|
15496
|
+
onmessage: function(ev) {
|
|
15497
|
+
var data = onMessage(ev);
|
|
15498
|
+
msgContent += data.content;
|
|
15499
|
+
delete data.content;
|
|
15500
|
+
recordMsgObj = _object_spread({
|
|
15501
|
+
createTime: createTime,
|
|
15502
|
+
content: msgContent,
|
|
15503
|
+
location: "left",
|
|
15504
|
+
reference: null,
|
|
15505
|
+
source: null
|
|
15506
|
+
}, data);
|
|
15507
|
+
updateMsgRef.current = setTimeout(function() {
|
|
15508
|
+
apiRef.contentApi.updateMsg(msgId, recordMsgObj);
|
|
15509
|
+
msgId = data.id;
|
|
15510
|
+
}, 100);
|
|
15511
|
+
},
|
|
15512
|
+
onclose: function() {
|
|
15513
|
+
onClose();
|
|
15514
|
+
setSending(false);
|
|
15515
|
+
if (recordMsgObj.id) {
|
|
15516
|
+
apiRef.contentApi.recordMsg(recordMsgObj);
|
|
15517
|
+
}
|
|
15518
|
+
console.log("onclose: ", recordMsgObj);
|
|
15519
|
+
},
|
|
15520
|
+
onerror: function(err) {
|
|
15521
|
+
onError(err);
|
|
15522
|
+
if (recordMsgObj.id) {
|
|
15523
|
+
apiRef.contentApi.recordMsg(recordMsgObj);
|
|
15524
|
+
}
|
|
15525
|
+
console.log("onerror: ", err);
|
|
15322
15526
|
}
|
|
15323
|
-
|
|
15324
|
-
|
|
15325
|
-
|
|
15527
|
+
}, coverProps));
|
|
15528
|
+
};
|
|
15529
|
+
callback();
|
|
15326
15530
|
}).catch(function() {
|
|
15327
15531
|
stopMessage();
|
|
15328
15532
|
});
|
|
@@ -15404,7 +15608,7 @@ var AIMessageList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
15404
15608
|
return apiRef.current;
|
|
15405
15609
|
});
|
|
15406
15610
|
var getCls = function(clsName) {
|
|
15407
|
-
return modules_63b47c51$
|
|
15611
|
+
return modules_63b47c51$c[clsName] + " " + prefix + "-" + clsName;
|
|
15408
15612
|
};
|
|
15409
15613
|
return /*#__PURE__*/ jsxs("div", {
|
|
15410
15614
|
className: "".concat(getCls("root"), " ").concat(className),
|