bhd-components 0.6.9 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { z as zhCN, C as ConfigProvider, _ as _extends, a as _object_destructuring_empty, j as jsx, b as _object_spread_props, S as StyleProvider, t as transform, c as _object_spread, d as _sliced_to_array, T as Tooltip, e as Table$2, I as Icon, f as jsxs, m as message, E as ExclamationCircleFilled, P as Pagination, g as Select, h as CaretDownOutlined, M as Modal, i as _inherits, k as _create_super, l as _create_class, n as _class_call_check, o as _define_property, p as _assert_this_initialized, q as _async_to_generator, L as LeftOutlined, R as RightOutlined, r as MinusOutlined, s as PlusOutlined, u as __generator, v as Input, w as SearchOutlined, x as CloseOutlined, y as Remarkable, D as Drawer, H as HighlightJS } from './769f0c13.esm.es5.development.js';
2
- export { A as Affix, B as Alert, F as Anchor, aA as App, G as AutoComplete, J as Avatar, N as BackTop, O as Badge, Q as Breadcrumb, U as Button, V as Calendar, W as Card, X as Carousel, Y as Cascader, Z as Checkbox, $ as Col, a0 as Collapse, a1 as DatePicker, a2 as Descriptions, a3 as Divider, D as Drawer, a4 as Dropdown, a5 as Empty, K as FloatButton, a6 as Form, a7 as Grid, a8 as Image, v as Input, a9 as InputNumber, aa as Layout, ab as List, ac as Mentions, ad as Menu, M as Modal, af as Popconfirm, ag as Popover, ah as Progress, aH as QRCode, ai as Radio, aj as Rate, ak as Result, al as Row, am as Segmented, g as Select, an as Skeleton, ao as Slider, ap as Space, aq as Spin, ar as Statistic, as as Steps, at as Switch, au as Tabs, av as Tag, ax as TimePicker, ay as Timeline, T as Tooltip, az as Tour, aB as Transfer, aC as Tree, aD as TreeSelect, aE as Typography, aF as Upload, aG as Watermark, aJ as en_US, ae as notification, aw as theme, aI as version, z as zh_CN } from './769f0c13.esm.es5.development.js';
1
+ import { z as zhCN, C as ConfigProvider, _ as _extends, a as _object_destructuring_empty, j as jsx, b as _object_spread_props, S as StyleProvider, t as transform, c as _object_spread, d as _sliced_to_array, T as Tooltip, e as Table$2, I as Icon, f as jsxs, m as message, E as ExclamationCircleFilled, P as Pagination, g as Select, h as CaretDownOutlined, M as Modal, i as _inherits, k as _create_super, l as _create_class, n as _class_call_check, o as _define_property, p as _assert_this_initialized, q as _async_to_generator, L as LeftOutlined, R as RightOutlined, r as MinusOutlined, s as PlusOutlined, u as __generator, v as Input, w as SearchOutlined, x as CloseOutlined, y as Remarkable, D as Drawer, H as HighlightJS } from './fd2fee4a.esm.es5.development.js';
2
+ export { A as Affix, B as Alert, F as Anchor, aA as App, G as AutoComplete, J as Avatar, N as BackTop, O as Badge, Q as Breadcrumb, U as Button, V as Calendar, W as Card, X as Carousel, Y as Cascader, Z as Checkbox, $ as Col, a0 as Collapse, a1 as DatePicker, a2 as Descriptions, a3 as Divider, D as Drawer, a4 as Dropdown, a5 as Empty, K as FloatButton, a6 as Form, a7 as Grid, a8 as Image, v as Input, a9 as InputNumber, aa as Layout, ab as List, ac as Mentions, ad as Menu, M as Modal, af as Popconfirm, ag as Popover, ah as Progress, aH as QRCode, ai as Radio, aj as Rate, ak as Result, al as Row, am as Segmented, g as Select, an as Skeleton, ao as Slider, ap as Space, aq as Spin, ar as Statistic, as as Steps, at as Switch, au as Tabs, av as Tag, ax as TimePicker, ay as Timeline, T as Tooltip, az as Tour, aB as Transfer, aC as Tree, aD as TreeSelect, aE as Typography, aF as Upload, aG as Watermark, aJ as en_US, ae as notification, aw as theme, aI as version, z as zh_CN } from './fd2fee4a.esm.es5.development.js';
3
3
  import * as React from 'react';
4
4
  import { useState, useRef, useEffect, useLayoutEffect, forwardRef, useImperativeHandle } from 'react';
5
5
  import { Fragment } from 'react/jsx-runtime';
@@ -2332,7 +2332,7 @@ function BhdAppLayout(props) {
2332
2332
  });
2333
2333
  }
2334
2334
 
2335
- var modules_63b47c51 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__c8b380c0","ChatWindow_Modal":"index_module_ChatWindow_Modal__c8b380c0","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__c8b380c0","header_wrap":"index_module_header_wrap__c8b380c0","top":"index_module_top__c8b380c0","user":"index_module_user__c8b380c0","count":"index_module_count__c8b380c0","operate":"index_module_operate__c8b380c0","line":"index_module_line__c8b380c0","header_wrap_newlabo":"index_module_header_wrap_newlabo__c8b380c0","Drawer_main":"index_module_Drawer_main__c8b380c0","loading":"index_module_loading__c8b380c0","message_con":"index_module_message_con__c8b380c0","left":"index_module_left__c8b380c0","head_sculpture":"index_module_head_sculpture__c8b380c0","main_content":"index_module_main_content__c8b380c0","right":"index_module_right__c8b380c0","main":"index_module_main__c8b380c0","main_content_flag":"index_module_main_content_flag__c8b380c0","operate_modal":"index_module_operate_modal__c8b380c0","content":"index_module_content__c8b380c0","content_child":"index_module_content_child__c8b380c0","active":"index_module_active__c8b380c0","ask_question":"index_module_ask_question__c8b380c0","operate_modal_bottom":"index_module_operate_modal_bottom__c8b380c0","stop_generate":"index_module_stop_generate__c8b380c0","icon":"index_module_icon__c8b380c0","find_teacher":"index_module_find_teacher__c8b380c0","stop_findTeacher":"index_module_stop_findTeacher__c8b380c0","association_problem":"index_module_association_problem__c8b380c0","time":"index_module_time__c8b380c0","citation_content":"index_module_citation_content__c8b380c0","text_exceed":"index_module_text_exceed__c8b380c0","popover_content":"index_module_popover_content__c8b380c0","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__c8b380c0","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__c8b380c0","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__c8b380c0","issues_list_teacherList":"index_module_issues_list_teacherList__c8b380c0","item":"index_module_item__c8b380c0","issues_list":"index_module_issues_list__c8b380c0","sign":"index_module_sign__c8b380c0","Drawer_buttom":"index_module_Drawer_buttom__c8b380c0","input_wrap":"index_module_input_wrap__c8b380c0","input":"index_module_input__c8b380c0","no_AI":"index_module_no_AI__c8b380c0","voice":"index_module_voice__c8b380c0","voice_btn":"index_module_voice_btn__c8b380c0","disabled":"index_module_disabled__c8b380c0","content_main":"index_module_content_main__c8b380c0","content_con":"index_module_content_con__c8b380c0","delete_quote":"index_module_delete_quote__c8b380c0","sending":"index_module_sending__c8b380c0","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__c8b380c0","main_list":"index_module_main_list__c8b380c0","chat_content":"index_module_chat_content__c8b380c0","popover_main_content":"index_module_popover_main_content__c8b380c0","popover_main_content_name":"index_module_popover_main_content_name__c8b380c0","teacher_layout":"index_module_teacher_layout__c8b380c0","bottom":"index_module_bottom__c8b380c0","delete":"index_module_delete__c8b380c0","num":"index_module_num__c8b380c0","shrink":"index_module_shrink__c8b380c0","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__c8b380c0","teacher_layout_modal":"index_module_teacher_layout_modal__c8b380c0","ai":"index_module_ai__c8b380c0","user_info":"index_module_user_info__c8b380c0","message":"index_module_message__c8b380c0","con":"index_module_con__c8b380c0","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__c8b380c0","history_list":"index_module_history_list__c8b380c0","search_layout":"index_module_search_layout__c8b380c0","mymove":"index_module_mymove__c8b380c0","title":"index_module_title__c8b380c0","search_top":"index_module_search_top__c8b380c0","list_item":"index_module_list_item__c8b380c0","list_summary":"index_module_list_summary__c8b380c0","head_img":"index_module_head_img__c8b380c0","list_desc":"index_module_list_desc__c8b380c0","name":"index_module_name__c8b380c0","decs":"index_module_decs__c8b380c0","open":"index_module_open__c8b380c0","list_detail":"index_module_list_detail__c8b380c0","list":"index_module_list__c8b380c0","list_more":"index_module_list_more__c8b380c0","no_data":"index_module_no_data__c8b380c0","history_list_broadside":"index_module_history_list_broadside__c8b380c0"};
2335
+ var modules_63b47c51 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__1c3a52cb","ChatWindow_Modal":"index_module_ChatWindow_Modal__1c3a52cb","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__1c3a52cb","header_wrap":"index_module_header_wrap__1c3a52cb","top":"index_module_top__1c3a52cb","user":"index_module_user__1c3a52cb","count":"index_module_count__1c3a52cb","operate":"index_module_operate__1c3a52cb","line":"index_module_line__1c3a52cb","header_wrap_newlabo":"index_module_header_wrap_newlabo__1c3a52cb","Drawer_main":"index_module_Drawer_main__1c3a52cb","loading":"index_module_loading__1c3a52cb","message_con":"index_module_message_con__1c3a52cb","left":"index_module_left__1c3a52cb","head_sculpture":"index_module_head_sculpture__1c3a52cb","main_content":"index_module_main_content__1c3a52cb","right":"index_module_right__1c3a52cb","main":"index_module_main__1c3a52cb","main_content_flag":"index_module_main_content_flag__1c3a52cb","operate_modal":"index_module_operate_modal__1c3a52cb","content":"index_module_content__1c3a52cb","content_child":"index_module_content_child__1c3a52cb","sign":"index_module_sign__1c3a52cb","active":"index_module_active__1c3a52cb","ask_question":"index_module_ask_question__1c3a52cb","operate_modal_bottom":"index_module_operate_modal_bottom__1c3a52cb","stop_generate":"index_module_stop_generate__1c3a52cb","icon":"index_module_icon__1c3a52cb","find_teacher":"index_module_find_teacher__1c3a52cb","stop_findTeacher":"index_module_stop_findTeacher__1c3a52cb","association_problem":"index_module_association_problem__1c3a52cb","time":"index_module_time__1c3a52cb","citation_content":"index_module_citation_content__1c3a52cb","text_exceed":"index_module_text_exceed__1c3a52cb","popover_content":"index_module_popover_content__1c3a52cb","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__1c3a52cb","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__1c3a52cb","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__1c3a52cb","issues_list_teacherList":"index_module_issues_list_teacherList__1c3a52cb","item":"index_module_item__1c3a52cb","issues_list":"index_module_issues_list__1c3a52cb","Drawer_buttom":"index_module_Drawer_buttom__1c3a52cb","input_wrap":"index_module_input_wrap__1c3a52cb","input":"index_module_input__1c3a52cb","no_AI":"index_module_no_AI__1c3a52cb","voice":"index_module_voice__1c3a52cb","voice_btn":"index_module_voice_btn__1c3a52cb","disabled":"index_module_disabled__1c3a52cb","content_main":"index_module_content_main__1c3a52cb","content_con":"index_module_content_con__1c3a52cb","delete_quote":"index_module_delete_quote__1c3a52cb","sending":"index_module_sending__1c3a52cb","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__1c3a52cb","main_list":"index_module_main_list__1c3a52cb","chat_content":"index_module_chat_content__1c3a52cb","popover_main_content":"index_module_popover_main_content__1c3a52cb","popover_main_content_name":"index_module_popover_main_content_name__1c3a52cb","teacher_layout":"index_module_teacher_layout__1c3a52cb","bottom":"index_module_bottom__1c3a52cb","delete":"index_module_delete__1c3a52cb","num":"index_module_num__1c3a52cb","shrink":"index_module_shrink__1c3a52cb","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__1c3a52cb","teacher_layout_modal":"index_module_teacher_layout_modal__1c3a52cb","ai":"index_module_ai__1c3a52cb","user_info":"index_module_user_info__1c3a52cb","message":"index_module_message__1c3a52cb","con":"index_module_con__1c3a52cb","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__1c3a52cb","history_list":"index_module_history_list__1c3a52cb","search_layout":"index_module_search_layout__1c3a52cb","mymove":"index_module_mymove__1c3a52cb","title":"index_module_title__1c3a52cb","search_top":"index_module_search_top__1c3a52cb","list_item":"index_module_list_item__1c3a52cb","list_summary":"index_module_list_summary__1c3a52cb","head_img":"index_module_head_img__1c3a52cb","list_desc":"index_module_list_desc__1c3a52cb","name":"index_module_name__1c3a52cb","decs":"index_module_decs__1c3a52cb","open":"index_module_open__1c3a52cb","list_summary_active":"index_module_list_summary_active__1c3a52cb","list_detail":"index_module_list_detail__1c3a52cb","list":"index_module_list__1c3a52cb","list_more":"index_module_list_more__1c3a52cb","no_data":"index_module_no_data__1c3a52cb","history_list_broadside":"index_module_history_list_broadside__1c3a52cb"};
2336
2336
 
2337
2337
  //消息已读
2338
2338
  var readMessage = function(roomId, urllocation, userData, http) {
@@ -2526,7 +2526,7 @@ var HistoryFun = function(props) {
2526
2526
  pageNumber = 1;
2527
2527
  }
2528
2528
  console.log(roomId, pageNumber, id, receiver, "第几页第几页第几页第几页第几页第几页");
2529
- loadSpecifiedData(roomId, pageNumber, id, receiver);
2529
+ loadSpecifiedData(roomId, pageNumber, id, receiver, keyWordProblem);
2530
2530
  onClose();
2531
2531
  setKeyWordProblem("");
2532
2532
  setTotalData([]);
@@ -2793,7 +2793,7 @@ var HistoryFun = function(props) {
2793
2793
  return /*#__PURE__*/ jsxs(Fragment, {
2794
2794
  children: [
2795
2795
  /*#__PURE__*/ jsxs("div", {
2796
- className: modules_63b47c51.list_summary,
2796
+ className: "".concat(modules_63b47c51.list_summary, " ").concat(item.show ? modules_63b47c51.list_summary_active : ""),
2797
2797
  id: item.roomId,
2798
2798
  onClick: function() {
2799
2799
  if (item.count == 1) {
@@ -3291,6 +3291,7 @@ var CustomerService = function(props) {
3291
3291
  // const [roomList,setRoomList] = useState([]);//聊天列表
3292
3292
  var _useState25 = _sliced_to_array(useState([]), 2), contactsList = _useState25[0], setContactsList = _useState25[1]; //老师列表
3293
3293
  var _useState26 = _sliced_to_array(useState([]), 2), chatObj = _useState26[0], setChatObj = _useState26[1]; //聊天记录id保存,用来在实验报告中记录
3294
+ var _useState27 = _sliced_to_array(useState(""), 2), keyWordProblem = _useState27[0], setKeyWordProblem = _useState27[1]; //历史记录搜索的内容
3294
3295
  var timer = useRef(null); //文本框输入时
3295
3296
  var receiveMessageTimer = useRef(null); //接收ai发回的消息
3296
3297
  var voiceCountdownTimer = useRef(null); //语音录制倒计时
@@ -3490,28 +3491,48 @@ var CustomerService = function(props) {
3490
3491
  var questionsList = [];
3491
3492
  var obj = {};
3492
3493
  if (type == 1) {
3493
- questionsList = hotQuestionsList.map(function(item, index) {
3494
- if (index < 3) {
3495
- return {
3496
- key: "messageSource",
3497
- value: item.id,
3498
- question: item.question,
3499
- answer: item.answer
3500
- };
3501
- } else {
3502
- return null;
3503
- }
3504
- });
3505
- questionsList = questionsList.filter(function(i) {
3506
- return i != null;
3507
- });
3494
+ // questionsList = hotQuestionsList.map((item, index) => {
3495
+ // if (index < 3) {
3496
+ // return {
3497
+ // key: "messageSource",
3498
+ // value: item.id,
3499
+ // question: item.question,
3500
+ // answer: item.answer,
3501
+ // };
3502
+ // } else {
3503
+ // return null;
3504
+ // }
3505
+ // });
3506
+ // questionsList = questionsList.filter((i) => i != null);
3508
3507
  obj = {
3509
3508
  roomId: roomId,
3510
3509
  sender: "AI",
3511
3510
  recevier: mid,
3512
- message: "Hi!我是有问必答的实训云智能客服,请问您遇到了什么问题?",
3513
- extraInfos: questionsList
3511
+ message: "Hi!我是有问必答的实训云智能客服,请问您遇到了什么问题?"
3514
3512
  };
3513
+ if (pageNumHistory <= 1) {
3514
+ setHistoryMessageList(function(historyMessageList) {
3515
+ var newHistoryMessageList = historyMessageList.concat(_object_spread_props(_object_spread({}, obj), {
3516
+ id: "p" + new Date().getTime(),
3517
+ upvoted: false,
3518
+ downvoted: false,
3519
+ quotedMessage: "",
3520
+ createdAt: getDataTime(-1),
3521
+ // extraInfo: JSON.stringify(obj.extraInfos),
3522
+ extraInfo: JSON.stringify([
3523
+ {
3524
+ key: "messageSource",
3525
+ value: "knowledgebase"
3526
+ }
3527
+ ])
3528
+ }));
3529
+ return newHistoryMessageList;
3530
+ });
3531
+ setTimeout(function() {
3532
+ scrollToBottom();
3533
+ }, 100);
3534
+ }
3535
+ return;
3515
3536
  } else if (type == 2) {
3516
3537
  obj = {
3517
3538
  roomId: roomId,
@@ -3586,6 +3607,24 @@ var CustomerService = function(props) {
3586
3607
  message: "猜你想问:",
3587
3608
  extraInfos: questionsList
3588
3609
  };
3610
+ if (pageNumHistory <= 1) {
3611
+ setHistoryMessageList(function(historyMessageList) {
3612
+ var newHistoryMessageList = historyMessageList.concat(_object_spread_props(_object_spread({}, obj), {
3613
+ id: "p" + new Date().getTime(),
3614
+ upvoted: false,
3615
+ downvoted: false,
3616
+ quotedMessage: "",
3617
+ createdAt: getDataTime(-1),
3618
+ extraInfo: JSON.stringify(obj.extraInfos)
3619
+ }));
3620
+ return newHistoryMessageList;
3621
+ });
3622
+ setTimeout(function() {
3623
+ scrollToBottom();
3624
+ }, 100);
3625
+ }
3626
+ console.log("不记录1111111");
3627
+ return;
3589
3628
  }
3590
3629
  setKeyWord("");
3591
3630
  setQuestionsList([]);
@@ -4122,7 +4161,6 @@ var CustomerService = function(props) {
4122
4161
  last_id = historyMessageList[0].id;
4123
4162
  }
4124
4163
  if (flag != 1 && last_id != "") {
4125
- console.log(last_id, "dkfjvndfjvndfkvdflast_idlast_idlast_id");
4126
4164
  setLastId(last_id);
4127
4165
  }
4128
4166
  //取消搜索页码标记
@@ -4207,6 +4245,11 @@ var CustomerService = function(props) {
4207
4245
  if (problem != undefined && problem.user != undefined && problem.question != undefined) {
4208
4246
  sendToTeacher(1);
4209
4247
  }
4248
+ // if(flag == 1){
4249
+ setTimeout(function() {
4250
+ setKeyWordProblem("");
4251
+ }, 3100);
4252
+ // }
4210
4253
  } else {
4211
4254
  setPageCount(0);
4212
4255
  setGreetingMessage(true);
@@ -4784,6 +4827,16 @@ var CustomerService = function(props) {
4784
4827
  }
4785
4828
  }
4786
4829
  var dataTime = time;
4830
+ if (lastId == item.id && keyWordProblem != "") {
4831
+ message = remarkable.render(message);
4832
+ console.log(message, 444444);
4833
+ message = message.replaceAll(keyWordProblem, function(e) {
4834
+ return "<span class=".concat(styles.sign, ">").concat(e, "</span>");
4835
+ });
4836
+ console.log(message, 55555);
4837
+ } else {
4838
+ message = remarkable.render(message);
4839
+ }
4787
4840
  if (item.sender == mid) {
4788
4841
  //只有引用和复制功能
4789
4842
  li = /*#__PURE__*/ jsxs(Fragment, {
@@ -4856,7 +4909,7 @@ var CustomerService = function(props) {
4856
4909
  className: styles.content,
4857
4910
  children: /*#__PURE__*/ jsx("p", {
4858
4911
  dangerouslySetInnerHTML: {
4859
- __html: remarkable.render(message)
4912
+ __html: message
4860
4913
  },
4861
4914
  className: styles.content_child
4862
4915
  })
@@ -4955,7 +5008,7 @@ var CustomerService = function(props) {
4955
5008
  children: [
4956
5009
  /*#__PURE__*/ jsx("p", {
4957
5010
  dangerouslySetInnerHTML: {
4958
- __html: remarkable.render(message)
5011
+ __html: message
4959
5012
  },
4960
5013
  className: styles.content_child
4961
5014
  }),
@@ -5720,11 +5773,14 @@ var CustomerService = function(props) {
5720
5773
  }
5721
5774
  };
5722
5775
  //加载指定数据,点击历史记录
5723
- var loadSpecifiedData = function(renewRoomId, page, id, receiver) {
5776
+ var loadSpecifiedData = function(renewRoomId, page, id, receiver, keyWordProblem) {
5724
5777
  // let renewRoomId = '4a615d7126b343f78d10dcb06dbc29b0';
5725
5778
  // let page = 1;
5726
5779
  // let id = '0e459f0a3a62438698f170b42b94d150';
5727
5780
  // let receiver = mid;
5781
+ if (keyWordProblem != "") {
5782
+ setKeyWordProblem(keyWordProblem);
5783
+ }
5728
5784
  if (page != 1) {
5729
5785
  setPageNumHistory(page);
5730
5786
  }
@@ -5788,6 +5844,9 @@ var CustomerService = function(props) {
5788
5844
  style: {
5789
5845
  maxHeight: "calc(100vh-".concat(buttomHei + 48, "px)")
5790
5846
  },
5847
+ onClick: function() {
5848
+ setKeyWordProblem("");
5849
+ },
5791
5850
  children: [
5792
5851
  loading ? /*#__PURE__*/ jsx("div", {
5793
5852
  className: styles.loading,
@@ -5796,7 +5855,7 @@ var CustomerService = function(props) {
5796
5855
  alt: ""
5797
5856
  })
5798
5857
  }) : "",
5799
- renderQuestion(),
5858
+ keyWordProblem ? renderQuestion() : renderQuestion(),
5800
5859
  bottomLoading ? /*#__PURE__*/ jsx("div", {
5801
5860
  className: styles.loading,
5802
5861
  children: /*#__PURE__*/ jsx("img", {
@@ -5852,6 +5911,9 @@ var CustomerService = function(props) {
5852
5911
  }),
5853
5912
  /*#__PURE__*/ jsxs("div", {
5854
5913
  className: "".concat(styles.Drawer_wrap_main),
5914
+ onClick: function() {
5915
+ setKeyWordProblem("");
5916
+ },
5855
5917
  children: [
5856
5918
  /*#__PURE__*/ jsxs("div", {
5857
5919
  className: "".concat(styles.Drawer_main, " ChatWindow_Modal_history_list"),
@@ -5884,7 +5946,7 @@ var CustomerService = function(props) {
5884
5946
  alt: ""
5885
5947
  })
5886
5948
  }) : "",
5887
- renderQuestion()
5949
+ keyWordProblem ? renderQuestion() : renderQuestion()
5888
5950
  ]
5889
5951
  })
5890
5952
  ]
@@ -5918,6 +5980,9 @@ var CustomerService = function(props) {
5918
5980
  showType == 3 ? /*#__PURE__*/ jsxs("div", {
5919
5981
  className: "".concat(styles.ChatWindow_Drawer),
5920
5982
  id: "",
5983
+ onClick: function() {
5984
+ setKeyWordProblem("");
5985
+ },
5921
5986
  children: [
5922
5987
  /*#__PURE__*/ jsx("div", {
5923
5988
  className: "".concat(styles.header_wrap, " ").concat(styles.header_wrap_newlabo),
@@ -5978,7 +6043,7 @@ var CustomerService = function(props) {
5978
6043
  alt: ""
5979
6044
  })
5980
6045
  }) : "",
5981
- renderQuestion()
6046
+ keyWordProblem ? renderQuestion() : renderQuestion()
5982
6047
  ]
5983
6048
  }),
5984
6049
  /*#__PURE__*/ jsxs("div", {
@@ -6055,6 +6120,9 @@ var CustomerService = function(props) {
6055
6120
  style: {
6056
6121
  maxHeight: "".concat(window.innerHeight - 148 - buttomHei, "px")
6057
6122
  },
6123
+ onClick: function() {
6124
+ setKeyWordProblem("");
6125
+ },
6058
6126
  children: [
6059
6127
  /*#__PURE__*/ jsx(ContactsList$1, {
6060
6128
  type: 4,
@@ -6080,7 +6148,7 @@ var CustomerService = function(props) {
6080
6148
  alt: ""
6081
6149
  })
6082
6150
  }) : "",
6083
- renderQuestion()
6151
+ keyWordProblem ? renderQuestion() : renderQuestion()
6084
6152
  ]
6085
6153
  })
6086
6154
  ]
@@ -6172,7 +6240,7 @@ var CustomerService = function(props) {
6172
6240
  alt: ""
6173
6241
  })
6174
6242
  }) : "",
6175
- renderQuestion()
6243
+ keyWordProblem ? renderQuestion() : renderQuestion()
6176
6244
  ]
6177
6245
  }),
6178
6246
  /*#__PURE__*/ jsxs("div", {