bhd-components 0.11.24 → 0.11.25
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 +1607 -1557
- package/dist/index.esm.es5.development.js +76 -36
- 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 +1 -1
- package/dist/vendor.esm.es5.production.js +1 -1
- package/es2017/customerService/contactsList.d.ts +2 -1
- package/es2017/customerService/contactsList.js +3 -3
- package/es2017/customerService/historyFun.d.ts +3 -2
- package/es2017/customerService/historyFun.js +3 -3
- package/es2017/customerService/index.d.ts +2 -1
- package/es2017/customerService/index.js +69 -25
- package/es2017/customerService/index.module.less +25 -0
- package/es2017/customerService/index2.module.less +34 -9
- package/esm/customerService/contactsList.d.ts +2 -1
- package/esm/customerService/contactsList.js +3 -7
- package/esm/customerService/historyFun.d.ts +3 -2
- package/esm/customerService/historyFun.js +3 -3
- package/esm/customerService/index.d.ts +2 -1
- package/esm/customerService/index.js +69 -25
- package/esm/customerService/index.module.less +25 -0
- package/esm/customerService/index2.module.less +34 -9
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
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 __generator, v as MinusOutlined, w as PlusOutlined, L as LeftOutlined, R as RightOutlined, x as Input, y as SearchOutlined, B as Spin, D as CloseOutlined, X, E as I, H, F as html2canvas$1, G as r, J as Remarkable, K as Drawer, N as HighlightJS, O as cn, Z as ZoomInOutlined, Q as DatePicker, U as Button, V as l, W as Upload, Y as Skeleton, $ as Popover, a0 as DoubleRightOutlined, a1 as CloseCircleFilled, a2 as Divider, a3 as fetchEventSource } from './vendor.esm.es5.development.js';
|
|
2
2
|
export { a4 as Affix, a5 as Alert, a6 as Anchor, a as AntdMessage, A as App, a7 as AutoComplete, a8 as Avatar, aa as BackTop, ab as Badge, ac as Breadcrumb, U as Button, ad as Calendar, ae as Card, af as Carousel, ag as Cascader, ah as Checkbox, ai as Col, aj as Collapse, Q as DatePicker, ak as Descriptions, a2 as Divider, K as Drawer, al as Dropdown, am as Empty, a9 as FloatButton, an as Form, ao as Grid, ap as Image, x as Input, aq as InputNumber, ar as Layout, as as List, at as Mentions, au as Menu, M as Modal, av as Popconfirm, $ as Popover, aw as Progress, aS as QRCode, ax as Radio, ay as Rate, az as Result, aA as Row, aB as Segmented, k as Select, Y as Skeleton, aC as Slider, aD as Space, B as Spin, aE as Statistic, aF as Steps, aG as Switch, aH as Tabs, aI as Tag, aK as TimePicker, aL as Timeline, T as Tooltip, aM as Tour, aN as Transfer, aO as Tree, aP as TreeSelect, aQ as Typography, W as Upload, aR as Watermark, aU as en_US, b as notification, aJ as theme, aT as version, z as zh_CN } from './vendor.esm.es5.development.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import React__default, { useState, useRef, useEffect, useLayoutEffect, forwardRef, useImperativeHandle,
|
|
4
|
+
import React__default, { useState, useRef, useEffect, useLayoutEffect, forwardRef, useImperativeHandle, useMemo, useCallback } from 'react';
|
|
5
5
|
import { Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import { render } from 'react-dom';
|
|
7
7
|
|
|
@@ -2678,7 +2678,7 @@ function BhdAppLayout(props) {
|
|
|
2678
2678
|
});
|
|
2679
2679
|
}
|
|
2680
2680
|
|
|
2681
|
-
var modules_63b47c51$f = {"service_ChatWindow_Drawer":"
|
|
2681
|
+
var modules_63b47c51$f = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__99f54e99","ChatWindow_Modal":"index_module_ChatWindow_Modal__99f54e99","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__99f54e99","header_wrap":"index_module_header_wrap__99f54e99","top":"index_module_top__99f54e99","user":"index_module_user__99f54e99","user_p":"index_module_user_p__99f54e99","count":"index_module_count__99f54e99","user_icon":"index_module_user_icon__99f54e99","operate":"index_module_operate__99f54e99","line":"index_module_line__99f54e99","popover_main":"index_module_popover_main__99f54e99","popover":"index_module_popover__99f54e99","header_wrap_newlabo":"index_module_header_wrap_newlabo__99f54e99","Drawer_wrap_main":"index_module_Drawer_wrap_main__99f54e99","Drawer_wrap_main_hide":"index_module_Drawer_wrap_main_hide__99f54e99","Drawer_main":"index_module_Drawer_main__99f54e99","chat_content":"index_module_chat_content__99f54e99","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__99f54e99","loading":"index_module_loading__99f54e99","message_con":"index_module_message_con__99f54e99","left":"index_module_left__99f54e99","head_sculpture":"index_module_head_sculpture__99f54e99","main_content":"index_module_main_content__99f54e99","right":"index_module_right__99f54e99","itemcontent":"index_module_itemcontent__99f54e99","main":"index_module_main__99f54e99","main_content_flag":"index_module_main_content_flag__99f54e99","operate_modal":"index_module_operate_modal__99f54e99","operate_modal_showtop":"index_module_operate_modal_showtop__99f54e99","operate_modal_bottom":"index_module_operate_modal_bottom__99f54e99","active":"index_module_active__99f54e99","stop_generate":"index_module_stop_generate__99f54e99","icon":"index_module_icon__99f54e99","find_teacher":"index_module_find_teacher__99f54e99","stop_findTeacher":"index_module_stop_findTeacher__99f54e99","content":"index_module_content__99f54e99","content_child":"index_module_content_child__99f54e99","mermaid":"index_module_mermaid__99f54e99","maskZoomBox":"index_module_maskZoomBox__99f54e99","zoomBox":"index_module_zoomBox__99f54e99","find_teacher_con":"index_module_find_teacher_con__99f54e99","sign":"index_module_sign__99f54e99","ask_question":"index_module_ask_question__99f54e99","bottom":"index_module_bottom__99f54e99","association_problem":"index_module_association_problem__99f54e99","association_problem_flag":"index_module_association_problem_flag__99f54e99","related_issues_flag":"index_module_related_issues_flag__99f54e99","img_con":"index_module_img_con__99f54e99","mask_zoom":"index_module_mask_zoom__99f54e99","img_con2":"index_module_img_con2__99f54e99","copyCode":"index_module_copyCode__99f54e99","time":"index_module_time__99f54e99","citation_content":"index_module_citation_content__99f54e99","text_exceed":"index_module_text_exceed__99f54e99","popover_content":"index_module_popover_content__99f54e99","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__99f54e99","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__99f54e99","issues_list_teacherList":"index_module_issues_list_teacherList__99f54e99","item":"index_module_item__99f54e99","issues_list":"index_module_issues_list__99f54e99","issues_list_flag":"index_module_issues_list_flag__99f54e99","Drawer_buttom":"index_module_Drawer_buttom__99f54e99","input_wrap":"index_module_input_wrap__99f54e99","input":"index_module_input__99f54e99","picture_layout":"index_module_picture_layout__99f54e99","icon_close":"index_module_icon_close__99f54e99","icon_zoom":"index_module_icon_zoom__99f54e99","anticon":"index_module_anticon__99f54e99","no_AI":"index_module_no_AI__99f54e99","screenshot":"index_module_screenshot__99f54e99","disabled":"index_module_disabled__99f54e99","content_main":"index_module_content_main__99f54e99","content_con":"index_module_content_con__99f54e99","delete_quote":"index_module_delete_quote__99f54e99","sending":"index_module_sending__99f54e99","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__99f54e99","main_list":"index_module_main_list__99f54e99","popover_main_content":"index_module_popover_main_content__99f54e99","popover_main_content_name":"index_module_popover_main_content_name__99f54e99","teacher_layout":"index_module_teacher_layout__99f54e99","delete":"index_module_delete__99f54e99","num":"index_module_num__99f54e99","shrink":"index_module_shrink__99f54e99","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__99f54e99","teacher_layout_modal":"index_module_teacher_layout_modal__99f54e99","ai":"index_module_ai__99f54e99","user_info":"index_module_user_info__99f54e99","message":"index_module_message__99f54e99","con":"index_module_con__99f54e99","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__99f54e99","history_list":"index_module_history_list__99f54e99","search_layout":"index_module_search_layout__99f54e99","mymove":"index_module_mymove__99f54e99","title":"index_module_title__99f54e99","search_top":"index_module_search_top__99f54e99","list_item":"index_module_list_item__99f54e99","list_summary":"index_module_list_summary__99f54e99","head_img":"index_module_head_img__99f54e99","list_desc":"index_module_list_desc__99f54e99","name":"index_module_name__99f54e99","decs":"index_module_decs__99f54e99","open":"index_module_open__99f54e99","list_summary_active":"index_module_list_summary_active__99f54e99","list_detail":"index_module_list_detail__99f54e99","list":"index_module_list__99f54e99","list_more":"index_module_list_more__99f54e99","no_data":"index_module_no_data__99f54e99","history_list_broadside":"index_module_history_list_broadside__99f54e99","teacher_list":"index_module_teacher_list__99f54e99","screenshot_Modal":"index_module_screenshot_Modal__99f54e99","ReactCrop":"index_module_ReactCrop__99f54e99","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__99f54e99","viewMedia_Modal":"index_module_viewMedia_Modal__99f54e99","viewMemaid":"index_module_viewMemaid__99f54e99","content_put":"index_module_content_put__99f54e99"};
|
|
2682
2682
|
|
|
2683
2683
|
function BaseHOC(key) {
|
|
2684
2684
|
return function(props) {
|
|
@@ -2973,7 +2973,7 @@ var replaceThinkAndYaml = function() {
|
|
|
2973
2973
|
};
|
|
2974
2974
|
|
|
2975
2975
|
var HistoryFun = function(props) {
|
|
2976
|
-
var type = props.type; props.roomId; var userData = props.userData, http = props.http, urllocation = props.urllocation, onClose = props.onClose, loadSpecifiedData = props.loadSpecifiedData;
|
|
2976
|
+
var type = props.type; props.roomId; var userData = props.userData, http = props.http, urllocation = props.urllocation, onClose = props.onClose, loadSpecifiedData = props.loadSpecifiedData, customTitle = props.customTitle;
|
|
2977
2977
|
var _useState = _sliced_to_array(useState(false), 2), loading = _useState[0], setLoading = _useState[1];
|
|
2978
2978
|
var _useState1 = _sliced_to_array(useState(""), 2), keyWordProblem = _useState1[0], setKeyWordProblem = _useState1[1]; //搜索内容
|
|
2979
2979
|
var _useState2 = _sliced_to_array(useState(1), 2), showLoadingState = _useState2[0], setShowLoadingState = _useState2[1]; //1,初始状态,2、无数据 ,3、不显示图片
|
|
@@ -3367,7 +3367,7 @@ var HistoryFun = function(props) {
|
|
|
3367
3367
|
/*#__PURE__*/ jsxs("p", {
|
|
3368
3368
|
className: modules_63b47c51$f.name,
|
|
3369
3369
|
children: [
|
|
3370
|
-
item.member == "AI" ?
|
|
3370
|
+
item.member == "AI" ? customTitle : item.name,
|
|
3371
3371
|
item.count == 1 ? /*#__PURE__*/ jsx("span", {
|
|
3372
3372
|
className: modules_63b47c51$f.time,
|
|
3373
3373
|
children: time
|
|
@@ -3401,7 +3401,7 @@ var HistoryFun = function(props) {
|
|
|
3401
3401
|
// console.log(list,item,'dklfvmdflkvmdfklv')
|
|
3402
3402
|
var name = "";
|
|
3403
3403
|
if (list.sender == "AI") {
|
|
3404
|
-
name =
|
|
3404
|
+
name = customTitle;
|
|
3405
3405
|
} else if (list.sender == item.member) {
|
|
3406
3406
|
name = item.name;
|
|
3407
3407
|
} else {
|
|
@@ -3482,7 +3482,7 @@ var HistoryFun = function(props) {
|
|
|
3482
3482
|
var HistoryFun$1 = HistoryFun;
|
|
3483
3483
|
|
|
3484
3484
|
var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
3485
|
-
var type = props.type, roomId = props.roomId, userData = props.userData, http = props.http, urllocation = props.urllocation, onClose = props.onClose, switchChatRoom = props.switchChatRoom, contactsList = props.contactsList;
|
|
3485
|
+
var type = props.type, roomId = props.roomId, userData = props.userData, http = props.http, urllocation = props.urllocation, onClose = props.onClose, switchChatRoom = props.switchChatRoom, contactsList = props.contactsList, customTitle = props.customTitle;
|
|
3486
3486
|
//删除聊天室
|
|
3487
3487
|
var deleteRoom = function(roomId) {
|
|
3488
3488
|
http.delete("".concat(urllocation, "/chat-service/public/v1.0/rooms/").concat(roomId), {}).then(function(res) {
|
|
@@ -3509,9 +3509,7 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3509
3509
|
/*#__PURE__*/ jsxs("p", {
|
|
3510
3510
|
className: modules_63b47c51$f.message,
|
|
3511
3511
|
children: [
|
|
3512
|
-
|
|
3513
|
-
return ele.short == "AIservice";
|
|
3514
|
-
}) ? "AI助手" : "智能问答",
|
|
3512
|
+
customTitle,
|
|
3515
3513
|
/*#__PURE__*/ jsx("span", {
|
|
3516
3514
|
className: modules_63b47c51$f.time,
|
|
3517
3515
|
children: contactsList.length > 0 && contactsList[0].createdAt != undefined && formatDate(contactsList[0].createdAt)
|
|
@@ -3611,9 +3609,7 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
3611
3609
|
children: [
|
|
3612
3610
|
/*#__PURE__*/ jsx(CustomAiIcon$1, {}),
|
|
3613
3611
|
/*#__PURE__*/ jsx("p", {
|
|
3614
|
-
children:
|
|
3615
|
-
return ele.short == "AIservice";
|
|
3616
|
-
}) ? "AI助手" : "智能问答"
|
|
3612
|
+
children: customTitle
|
|
3617
3613
|
})
|
|
3618
3614
|
]
|
|
3619
3615
|
})
|
|
@@ -8307,6 +8303,17 @@ var CustomerService = function(props) {
|
|
|
8307
8303
|
var shouqiTimer = useRef(null);
|
|
8308
8304
|
var waitMesssageListRef = useRef([]);
|
|
8309
8305
|
var handleRenderMsgTimer = useRef(null);
|
|
8306
|
+
var customTitle = useMemo(function() {
|
|
8307
|
+
if (props.customTitle) {
|
|
8308
|
+
return props.customTitle;
|
|
8309
|
+
}
|
|
8310
|
+
return userData.modules.some(function(ele) {
|
|
8311
|
+
return ele.short == "AIservice";
|
|
8312
|
+
}) ? "AI助手" : "智能问答";
|
|
8313
|
+
}, [
|
|
8314
|
+
props.customTitle,
|
|
8315
|
+
userData
|
|
8316
|
+
]);
|
|
8310
8317
|
var handleRenderMsg = function() {
|
|
8311
8318
|
if (handleRenderMsgTimer.current) return;
|
|
8312
8319
|
var processMessages = function() {
|
|
@@ -8464,6 +8471,7 @@ var CustomerService = function(props) {
|
|
|
8464
8471
|
try {
|
|
8465
8472
|
newShowType.current = true;
|
|
8466
8473
|
setImgBese64("");
|
|
8474
|
+
//@ts-ignore
|
|
8467
8475
|
if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
|
|
8468
8476
|
setScreenShotType(1);
|
|
8469
8477
|
// console.log("看看变了没有1213133");
|
|
@@ -8500,6 +8508,7 @@ var CustomerService = function(props) {
|
|
|
8500
8508
|
},
|
|
8501
8509
|
triggerCallback: function() {
|
|
8502
8510
|
// 截图组件加载完毕调用此方法来完成框选区域的截图
|
|
8511
|
+
//@ts-ignore
|
|
8503
8512
|
screenShotPlugin.current.completeScreenshot();
|
|
8504
8513
|
},
|
|
8505
8514
|
cancelCallback: function(err) {
|
|
@@ -8521,6 +8530,7 @@ var CustomerService = function(props) {
|
|
|
8521
8530
|
} else {
|
|
8522
8531
|
setScreenShotType(2);
|
|
8523
8532
|
// console.log("截图方式:【html2canvas】");
|
|
8533
|
+
//@ts-ignore
|
|
8524
8534
|
html2canvas(screenshotAreaId, {
|
|
8525
8535
|
//__docusaurus
|
|
8526
8536
|
useCORS: true,
|
|
@@ -10507,10 +10517,7 @@ var CustomerService = function(props) {
|
|
|
10507
10517
|
};
|
|
10508
10518
|
//显示聊天室名字
|
|
10509
10519
|
var showChatRoomName = function() {
|
|
10510
|
-
var title =
|
|
10511
|
-
title = userData.modules.some(function(ele) {
|
|
10512
|
-
return ele.short == "AIservice";
|
|
10513
|
-
}) ? "AI助手" : "智能问答";
|
|
10520
|
+
var title = customTitle;
|
|
10514
10521
|
var list = contactsList.filter(function(e) {
|
|
10515
10522
|
return e.roomId == roomId;
|
|
10516
10523
|
});
|
|
@@ -10527,8 +10534,21 @@ var CustomerService = function(props) {
|
|
|
10527
10534
|
children: [
|
|
10528
10535
|
/*#__PURE__*/ jsx("div", {
|
|
10529
10536
|
className: styles.user,
|
|
10530
|
-
children: /*#__PURE__*/
|
|
10531
|
-
|
|
10537
|
+
children: /*#__PURE__*/ jsxs("p", {
|
|
10538
|
+
className: styles.user_p,
|
|
10539
|
+
children: [
|
|
10540
|
+
/*#__PURE__*/ jsxs("i", {
|
|
10541
|
+
className: styles.user_icon,
|
|
10542
|
+
onClick: function() {
|
|
10543
|
+
setShowContacts(!showContacts);
|
|
10544
|
+
},
|
|
10545
|
+
children: [
|
|
10546
|
+
/*#__PURE__*/ jsx(CustomContacts$1, {}),
|
|
10547
|
+
showUnreadMessage()
|
|
10548
|
+
]
|
|
10549
|
+
}),
|
|
10550
|
+
showChatRoomName()
|
|
10551
|
+
]
|
|
10532
10552
|
})
|
|
10533
10553
|
}),
|
|
10534
10554
|
/*#__PURE__*/ jsxs("div", {
|
|
@@ -10586,6 +10606,7 @@ var CustomerService = function(props) {
|
|
|
10586
10606
|
/*#__PURE__*/ jsx("div", {
|
|
10587
10607
|
className: styles.user,
|
|
10588
10608
|
children: /*#__PURE__*/ jsxs("p", {
|
|
10609
|
+
className: styles.user_p,
|
|
10589
10610
|
children: [
|
|
10590
10611
|
showType == 1 && /*#__PURE__*/ jsxs("i", {
|
|
10591
10612
|
className: "lianxiren21",
|
|
@@ -10597,6 +10618,16 @@ var CustomerService = function(props) {
|
|
|
10597
10618
|
showUnreadMessage()
|
|
10598
10619
|
]
|
|
10599
10620
|
}),
|
|
10621
|
+
showType == 2 && /*#__PURE__*/ jsxs("i", {
|
|
10622
|
+
className: styles.user_icon,
|
|
10623
|
+
onClick: function() {
|
|
10624
|
+
setShowContacts(!showContacts);
|
|
10625
|
+
},
|
|
10626
|
+
children: [
|
|
10627
|
+
/*#__PURE__*/ jsx(CustomContacts$1, {}),
|
|
10628
|
+
showUnreadMessage()
|
|
10629
|
+
]
|
|
10630
|
+
}),
|
|
10600
10631
|
showChatRoomName()
|
|
10601
10632
|
]
|
|
10602
10633
|
})
|
|
@@ -12248,7 +12279,7 @@ var CustomerService = function(props) {
|
|
|
12248
12279
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
12249
12280
|
children: [
|
|
12250
12281
|
/*#__PURE__*/ jsxs(Drawer, {
|
|
12251
|
-
title:
|
|
12282
|
+
title: customTitle,
|
|
12252
12283
|
width: 560,
|
|
12253
12284
|
onClose: function() {
|
|
12254
12285
|
onCancel();
|
|
@@ -12275,7 +12306,8 @@ var CustomerService = function(props) {
|
|
|
12275
12306
|
switchChatRoom: switchChatRoom,
|
|
12276
12307
|
// saveContactsList={saveContactsList}
|
|
12277
12308
|
contactsList: contactsList,
|
|
12278
|
-
ref: childRef
|
|
12309
|
+
ref: childRef,
|
|
12310
|
+
customTitle: customTitle
|
|
12279
12311
|
})
|
|
12280
12312
|
}),
|
|
12281
12313
|
/*#__PURE__*/ jsx("div", {
|
|
@@ -12330,7 +12362,8 @@ var CustomerService = function(props) {
|
|
|
12330
12362
|
onClose: function() {
|
|
12331
12363
|
setShowHistory(false);
|
|
12332
12364
|
},
|
|
12333
|
-
loadSpecifiedData: loadSpecifiedData
|
|
12365
|
+
loadSpecifiedData: loadSpecifiedData,
|
|
12366
|
+
customTitle: customTitle
|
|
12334
12367
|
}),
|
|
12335
12368
|
showType == 1 && showTeacherList && /*#__PURE__*/ jsx(TeacherList$1, {
|
|
12336
12369
|
type: showType,
|
|
@@ -12345,14 +12378,14 @@ var CustomerService = function(props) {
|
|
|
12345
12378
|
]
|
|
12346
12379
|
}),
|
|
12347
12380
|
/*#__PURE__*/ jsxs(Modal$1, {
|
|
12348
|
-
title:
|
|
12381
|
+
title: customTitle,
|
|
12349
12382
|
open: showType == 2 ? true : false,
|
|
12350
12383
|
onCancel: function() {
|
|
12351
12384
|
onCancel();
|
|
12352
12385
|
onEvent(serverName + serverUrl(), "click_智能问答_收起侧边栏", "提交");
|
|
12353
12386
|
},
|
|
12354
12387
|
centered: true,
|
|
12355
|
-
width:
|
|
12388
|
+
width: 1200,
|
|
12356
12389
|
// @ts-ignore
|
|
12357
12390
|
height: window.innerHeight - 160,
|
|
12358
12391
|
wrapClassName: styles.ChatWindow_Modal,
|
|
@@ -12365,7 +12398,7 @@ var CustomerService = function(props) {
|
|
|
12365
12398
|
children: renderHeader()
|
|
12366
12399
|
}),
|
|
12367
12400
|
/*#__PURE__*/ jsxs("div", {
|
|
12368
|
-
className: "".concat(styles.Drawer_wrap_main),
|
|
12401
|
+
className: "".concat(styles.Drawer_wrap_main, " ").concat(showContacts ? "" : styles.Drawer_wrap_main_hide),
|
|
12369
12402
|
onClick: function() {
|
|
12370
12403
|
setKeyWordProblem("");
|
|
12371
12404
|
},
|
|
@@ -12377,7 +12410,7 @@ var CustomerService = function(props) {
|
|
|
12377
12410
|
maxHeight: "".concat(window.innerHeight - 148 - buttomHei, "px")
|
|
12378
12411
|
},
|
|
12379
12412
|
children: [
|
|
12380
|
-
/*#__PURE__*/ jsx(ContactsList$1, {
|
|
12413
|
+
showContacts && /*#__PURE__*/ jsx(ContactsList$1, {
|
|
12381
12414
|
type: 2,
|
|
12382
12415
|
roomId: roomId,
|
|
12383
12416
|
userData: userData,
|
|
@@ -12389,7 +12422,8 @@ var CustomerService = function(props) {
|
|
|
12389
12422
|
switchChatRoom: switchChatRoom,
|
|
12390
12423
|
contactsList: contactsList,
|
|
12391
12424
|
// saveContactsList={saveContactsList}
|
|
12392
|
-
ref: childRef
|
|
12425
|
+
ref: childRef,
|
|
12426
|
+
customTitle: customTitle
|
|
12393
12427
|
}),
|
|
12394
12428
|
/*#__PURE__*/ jsxs("div", {
|
|
12395
12429
|
className: styles.chat_content,
|
|
@@ -12427,7 +12461,8 @@ var CustomerService = function(props) {
|
|
|
12427
12461
|
onClose: function() {
|
|
12428
12462
|
setShowHistory(false);
|
|
12429
12463
|
},
|
|
12430
|
-
loadSpecifiedData: loadSpecifiedData
|
|
12464
|
+
loadSpecifiedData: loadSpecifiedData,
|
|
12465
|
+
customTitle: customTitle
|
|
12431
12466
|
}),
|
|
12432
12467
|
showType == 2 && showTeacherList && /*#__PURE__*/ jsx(TeacherList$1, {
|
|
12433
12468
|
type: showType,
|
|
@@ -12533,7 +12568,8 @@ var CustomerService = function(props) {
|
|
|
12533
12568
|
onClose: function() {
|
|
12534
12569
|
setShowHistory(false);
|
|
12535
12570
|
},
|
|
12536
|
-
loadSpecifiedData: loadSpecifiedData
|
|
12571
|
+
loadSpecifiedData: loadSpecifiedData,
|
|
12572
|
+
customTitle: customTitle
|
|
12537
12573
|
}),
|
|
12538
12574
|
showType == 3 && showTeacherList && /*#__PURE__*/ jsx(TeacherList$1, {
|
|
12539
12575
|
type: showType,
|
|
@@ -12561,7 +12597,8 @@ var CustomerService = function(props) {
|
|
|
12561
12597
|
contactsList: contactsList,
|
|
12562
12598
|
switchChatRoom: switchChatRoom,
|
|
12563
12599
|
// saveContactsList={saveContactsList}
|
|
12564
|
-
ref: childRef
|
|
12600
|
+
ref: childRef,
|
|
12601
|
+
customTitle: customTitle
|
|
12565
12602
|
})
|
|
12566
12603
|
})
|
|
12567
12604
|
]
|
|
@@ -12569,14 +12606,14 @@ var CustomerService = function(props) {
|
|
|
12569
12606
|
(showType == 4 || showType == 5) && /*#__PURE__*/ jsxs(Fragment, {
|
|
12570
12607
|
children: [
|
|
12571
12608
|
/*#__PURE__*/ jsxs(Modal$1, {
|
|
12572
|
-
title:
|
|
12609
|
+
title: customTitle,
|
|
12573
12610
|
open: showType == 4 ? true : false,
|
|
12574
12611
|
onCancel: function() {
|
|
12575
12612
|
onCancel();
|
|
12576
12613
|
onEvent(serverName + serverUrl(), "click_智能问答_收起侧边栏", "提交");
|
|
12577
12614
|
},
|
|
12578
12615
|
centered: true,
|
|
12579
|
-
width:
|
|
12616
|
+
width: 1200,
|
|
12580
12617
|
// @ts-ignore
|
|
12581
12618
|
height: window.innerHeight - 160,
|
|
12582
12619
|
wrapClassName: "".concat(styles.ChatWindow_Modal),
|
|
@@ -12589,7 +12626,7 @@ var CustomerService = function(props) {
|
|
|
12589
12626
|
children: renderHeader()
|
|
12590
12627
|
}),
|
|
12591
12628
|
/*#__PURE__*/ jsxs("div", {
|
|
12592
|
-
className: "".concat(styles.Drawer_wrap_main),
|
|
12629
|
+
className: "".concat(styles.Drawer_wrap_main, " ").concat(showContacts ? "" : styles.Drawer_wrap_main_hide),
|
|
12593
12630
|
children: [
|
|
12594
12631
|
/*#__PURE__*/ jsxs("div", {
|
|
12595
12632
|
className: "".concat(styles.Drawer_main, " ").concat(styles.Drawer_main_newlabo),
|
|
@@ -12601,7 +12638,7 @@ var CustomerService = function(props) {
|
|
|
12601
12638
|
setKeyWordProblem("");
|
|
12602
12639
|
},
|
|
12603
12640
|
children: [
|
|
12604
|
-
/*#__PURE__*/ jsx(ContactsList$1, {
|
|
12641
|
+
showContacts && /*#__PURE__*/ jsx(ContactsList$1, {
|
|
12605
12642
|
type: 4,
|
|
12606
12643
|
roomId: roomId,
|
|
12607
12644
|
userData: userData,
|
|
@@ -12613,7 +12650,8 @@ var CustomerService = function(props) {
|
|
|
12613
12650
|
contactsList: contactsList,
|
|
12614
12651
|
switchChatRoom: switchChatRoom,
|
|
12615
12652
|
// saveContactsList={saveContactsList}
|
|
12616
|
-
ref: childRef
|
|
12653
|
+
ref: childRef,
|
|
12654
|
+
customTitle: customTitle
|
|
12617
12655
|
}),
|
|
12618
12656
|
/*#__PURE__*/ jsxs("div", {
|
|
12619
12657
|
className: styles.chat_content,
|
|
@@ -12651,7 +12689,8 @@ var CustomerService = function(props) {
|
|
|
12651
12689
|
onClose: function() {
|
|
12652
12690
|
setShowHistory(false);
|
|
12653
12691
|
},
|
|
12654
|
-
loadSpecifiedData: loadSpecifiedData
|
|
12692
|
+
loadSpecifiedData: loadSpecifiedData,
|
|
12693
|
+
customTitle: customTitle
|
|
12655
12694
|
}),
|
|
12656
12695
|
showTeacherList && /*#__PURE__*/ jsx(TeacherList$1, {
|
|
12657
12696
|
type: showType,
|
|
@@ -12762,7 +12801,8 @@ var CustomerService = function(props) {
|
|
|
12762
12801
|
contactsList: contactsList,
|
|
12763
12802
|
switchChatRoom: switchChatRoom,
|
|
12764
12803
|
// saveContactsList={saveContactsList}
|
|
12765
|
-
ref: childRef
|
|
12804
|
+
ref: childRef,
|
|
12805
|
+
customTitle: customTitle
|
|
12766
12806
|
})
|
|
12767
12807
|
})
|
|
12768
12808
|
]
|