bhd-components 0.9.14 → 0.9.15

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.
@@ -2520,7 +2520,7 @@ function BhdAppLayout(props) {
2520
2520
  });
2521
2521
  }
2522
2522
 
2523
- var modules_63b47c51$1 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__4297734b","ChatWindow_Modal":"index_module_ChatWindow_Modal__4297734b","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__4297734b","header_wrap":"index_module_header_wrap__4297734b","top":"index_module_top__4297734b","user":"index_module_user__4297734b","count":"index_module_count__4297734b","operate":"index_module_operate__4297734b","line":"index_module_line__4297734b","popover_main":"index_module_popover_main__4297734b","popover":"index_module_popover__4297734b","header_wrap_newlabo":"index_module_header_wrap_newlabo__4297734b","Drawer_main":"index_module_Drawer_main__4297734b","loading":"index_module_loading__4297734b","message_con":"index_module_message_con__4297734b","left":"index_module_left__4297734b","head_sculpture":"index_module_head_sculpture__4297734b","main_content":"index_module_main_content__4297734b","right":"index_module_right__4297734b","main":"index_module_main__4297734b","main_content_flag":"index_module_main_content_flag__4297734b","operate_modal":"index_module_operate_modal__4297734b","operate_modal_bottom":"index_module_operate_modal_bottom__4297734b","active":"index_module_active__4297734b","stop_generate":"index_module_stop_generate__4297734b","icon":"index_module_icon__4297734b","find_teacher":"index_module_find_teacher__4297734b","stop_findTeacher":"index_module_stop_findTeacher__4297734b","content":"index_module_content__4297734b","content_child":"index_module_content_child__4297734b","find_teacher_con":"index_module_find_teacher_con__4297734b","sign":"index_module_sign__4297734b","ask_question":"index_module_ask_question__4297734b","bottom":"index_module_bottom__4297734b","association_problem":"index_module_association_problem__4297734b","association_problem_flag":"index_module_association_problem_flag__4297734b","related_issues_flag":"index_module_related_issues_flag__4297734b","img_con":"index_module_img_con__4297734b","mask_zoom":"index_module_mask_zoom__4297734b","img_con2":"index_module_img_con2__4297734b","copyCode":"index_module_copyCode__4297734b","time":"index_module_time__4297734b","citation_content":"index_module_citation_content__4297734b","text_exceed":"index_module_text_exceed__4297734b","popover_content":"index_module_popover_content__4297734b","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__4297734b","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__4297734b","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__4297734b","issues_list_teacherList":"index_module_issues_list_teacherList__4297734b","item":"index_module_item__4297734b","issues_list":"index_module_issues_list__4297734b","issues_list_flag":"index_module_issues_list_flag__4297734b","Drawer_buttom":"index_module_Drawer_buttom__4297734b","input_wrap":"index_module_input_wrap__4297734b","input":"index_module_input__4297734b","picture_layout":"index_module_picture_layout__4297734b","icon_close":"index_module_icon_close__4297734b","icon_zoom":"index_module_icon_zoom__4297734b","anticon":"index_module_anticon__4297734b","no_AI":"index_module_no_AI__4297734b","screenshot":"index_module_screenshot__4297734b","disabled":"index_module_disabled__4297734b","content_main":"index_module_content_main__4297734b","content_con":"index_module_content_con__4297734b","delete_quote":"index_module_delete_quote__4297734b","sending":"index_module_sending__4297734b","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__4297734b","main_list":"index_module_main_list__4297734b","chat_content":"index_module_chat_content__4297734b","popover_main_content":"index_module_popover_main_content__4297734b","popover_main_content_name":"index_module_popover_main_content_name__4297734b","teacher_layout":"index_module_teacher_layout__4297734b","delete":"index_module_delete__4297734b","num":"index_module_num__4297734b","shrink":"index_module_shrink__4297734b","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__4297734b","teacher_layout_modal":"index_module_teacher_layout_modal__4297734b","ai":"index_module_ai__4297734b","user_info":"index_module_user_info__4297734b","message":"index_module_message__4297734b","con":"index_module_con__4297734b","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__4297734b","history_list":"index_module_history_list__4297734b","search_layout":"index_module_search_layout__4297734b","mymove":"index_module_mymove__4297734b","title":"index_module_title__4297734b","search_top":"index_module_search_top__4297734b","list_item":"index_module_list_item__4297734b","list_summary":"index_module_list_summary__4297734b","head_img":"index_module_head_img__4297734b","list_desc":"index_module_list_desc__4297734b","name":"index_module_name__4297734b","decs":"index_module_decs__4297734b","open":"index_module_open__4297734b","list_summary_active":"index_module_list_summary_active__4297734b","list_detail":"index_module_list_detail__4297734b","list":"index_module_list__4297734b","list_more":"index_module_list_more__4297734b","no_data":"index_module_no_data__4297734b","history_list_broadside":"index_module_history_list_broadside__4297734b","teacher_list":"index_module_teacher_list__4297734b","screenshot_Modal":"index_module_screenshot_Modal__4297734b","ReactCrop":"index_module_ReactCrop__4297734b","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__4297734b"};
2523
+ var modules_63b47c51$1 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__2f1165e5","ChatWindow_Modal":"index_module_ChatWindow_Modal__2f1165e5","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__2f1165e5","header_wrap":"index_module_header_wrap__2f1165e5","top":"index_module_top__2f1165e5","user":"index_module_user__2f1165e5","count":"index_module_count__2f1165e5","operate":"index_module_operate__2f1165e5","line":"index_module_line__2f1165e5","popover_main":"index_module_popover_main__2f1165e5","popover":"index_module_popover__2f1165e5","header_wrap_newlabo":"index_module_header_wrap_newlabo__2f1165e5","Drawer_main":"index_module_Drawer_main__2f1165e5","loading":"index_module_loading__2f1165e5","message_con":"index_module_message_con__2f1165e5","left":"index_module_left__2f1165e5","head_sculpture":"index_module_head_sculpture__2f1165e5","main_content":"index_module_main_content__2f1165e5","right":"index_module_right__2f1165e5","main":"index_module_main__2f1165e5","main_content_flag":"index_module_main_content_flag__2f1165e5","operate_modal":"index_module_operate_modal__2f1165e5","operate_modal_bottom":"index_module_operate_modal_bottom__2f1165e5","active":"index_module_active__2f1165e5","stop_generate":"index_module_stop_generate__2f1165e5","icon":"index_module_icon__2f1165e5","find_teacher":"index_module_find_teacher__2f1165e5","stop_findTeacher":"index_module_stop_findTeacher__2f1165e5","content":"index_module_content__2f1165e5","content_child":"index_module_content_child__2f1165e5","find_teacher_con":"index_module_find_teacher_con__2f1165e5","sign":"index_module_sign__2f1165e5","ask_question":"index_module_ask_question__2f1165e5","bottom":"index_module_bottom__2f1165e5","association_problem":"index_module_association_problem__2f1165e5","association_problem_flag":"index_module_association_problem_flag__2f1165e5","related_issues_flag":"index_module_related_issues_flag__2f1165e5","img_con":"index_module_img_con__2f1165e5","mask_zoom":"index_module_mask_zoom__2f1165e5","img_con2":"index_module_img_con2__2f1165e5","copyCode":"index_module_copyCode__2f1165e5","time":"index_module_time__2f1165e5","citation_content":"index_module_citation_content__2f1165e5","text_exceed":"index_module_text_exceed__2f1165e5","popover_content":"index_module_popover_content__2f1165e5","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__2f1165e5","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__2f1165e5","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__2f1165e5","issues_list_teacherList":"index_module_issues_list_teacherList__2f1165e5","item":"index_module_item__2f1165e5","issues_list":"index_module_issues_list__2f1165e5","issues_list_flag":"index_module_issues_list_flag__2f1165e5","Drawer_buttom":"index_module_Drawer_buttom__2f1165e5","input_wrap":"index_module_input_wrap__2f1165e5","input":"index_module_input__2f1165e5","picture_layout":"index_module_picture_layout__2f1165e5","icon_close":"index_module_icon_close__2f1165e5","icon_zoom":"index_module_icon_zoom__2f1165e5","anticon":"index_module_anticon__2f1165e5","no_AI":"index_module_no_AI__2f1165e5","screenshot":"index_module_screenshot__2f1165e5","disabled":"index_module_disabled__2f1165e5","content_main":"index_module_content_main__2f1165e5","content_con":"index_module_content_con__2f1165e5","delete_quote":"index_module_delete_quote__2f1165e5","sending":"index_module_sending__2f1165e5","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__2f1165e5","main_list":"index_module_main_list__2f1165e5","chat_content":"index_module_chat_content__2f1165e5","popover_main_content":"index_module_popover_main_content__2f1165e5","popover_main_content_name":"index_module_popover_main_content_name__2f1165e5","teacher_layout":"index_module_teacher_layout__2f1165e5","delete":"index_module_delete__2f1165e5","num":"index_module_num__2f1165e5","shrink":"index_module_shrink__2f1165e5","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__2f1165e5","teacher_layout_modal":"index_module_teacher_layout_modal__2f1165e5","ai":"index_module_ai__2f1165e5","user_info":"index_module_user_info__2f1165e5","message":"index_module_message__2f1165e5","con":"index_module_con__2f1165e5","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__2f1165e5","history_list":"index_module_history_list__2f1165e5","search_layout":"index_module_search_layout__2f1165e5","mymove":"index_module_mymove__2f1165e5","title":"index_module_title__2f1165e5","search_top":"index_module_search_top__2f1165e5","list_item":"index_module_list_item__2f1165e5","list_summary":"index_module_list_summary__2f1165e5","head_img":"index_module_head_img__2f1165e5","list_desc":"index_module_list_desc__2f1165e5","name":"index_module_name__2f1165e5","decs":"index_module_decs__2f1165e5","open":"index_module_open__2f1165e5","list_summary_active":"index_module_list_summary_active__2f1165e5","list_detail":"index_module_list_detail__2f1165e5","list":"index_module_list__2f1165e5","list_more":"index_module_list_more__2f1165e5","no_data":"index_module_no_data__2f1165e5","history_list_broadside":"index_module_history_list_broadside__2f1165e5","teacher_list":"index_module_teacher_list__2f1165e5","screenshot_Modal":"index_module_screenshot_Modal__2f1165e5","ReactCrop":"index_module_ReactCrop__2f1165e5","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__2f1165e5"};
2524
2524
 
2525
2525
  //消息已读
2526
2526
  var readMessage = function(roomId, urllocation, userData, http) {
@@ -10277,171 +10277,169 @@ var CustomerService = function(props) {
10277
10277
  }),
10278
10278
  /*#__PURE__*/ jsx("div", {
10279
10279
  className: styles.main,
10280
- children: /*#__PURE__*/ jsxs("div", {
10280
+ children: /*#__PURE__*/ jsx("div", {
10281
10281
  className: styles.main_content,
10282
- children: [
10283
- /*#__PURE__*/ jsxs("div", {
10284
- className: styles.main_content_flag,
10285
- onMouseEnter: function() {
10286
- var dom = document.getElementById(item.id);
10287
- if (dom) {
10288
- var con_h = document.getElementById("chat_content").clientHeight - 24; //滚动区域的高度
10289
- var rectY = dom.getBoundingClientRect().y - 48;
10290
- var h = dom.clientHeight + 24; //当前元素高度
10291
- var topDom = dom.getElementsByClassName("operate_modal_showtop")[0];
10292
- var bottomDom = dom.getElementsByClassName("operate_modal_showbottom")[0];
10293
- if (topDom && bottomDom) {
10294
- console.log(h, con_h, rectY);
10295
- if (rectY > 0) {
10296
- topDom.style.cssText = "";
10297
- bottomDom.style.cssText = "visibility: hidden;";
10298
- // 上下都能显示时,显示到下边
10299
- if (h < con_h - rectY) {
10300
- topDom.style.cssText = "visibility: hidden;";
10301
- bottomDom.style.cssText = "";
10302
- }
10282
+ children: /*#__PURE__*/ jsxs("div", {
10283
+ className: styles.main_content_flag,
10284
+ onMouseEnter: function() {
10285
+ var dom = document.getElementById(item.id);
10286
+ if (dom) {
10287
+ var con_h = document.getElementById("chat_content").clientHeight - 24; //滚动区域的高度
10288
+ var rectY = dom.getBoundingClientRect().y - 48;
10289
+ var h = dom.clientHeight + 24; //当前元素高度
10290
+ var topDom = dom.getElementsByClassName("operate_modal_showtop")[0];
10291
+ var bottomDom = dom.getElementsByClassName("operate_modal_showbottom")[0];
10292
+ if (topDom && bottomDom) {
10293
+ console.log(h, con_h, rectY);
10294
+ if (rectY > 0) {
10295
+ topDom.style.cssText = "";
10296
+ bottomDom.style.cssText = "visibility: hidden;";
10297
+ // 上下都能显示时,显示到下边
10298
+ if (h < con_h - rectY) {
10299
+ topDom.style.cssText = "visibility: hidden;";
10300
+ bottomDom.style.cssText = "";
10301
+ }
10302
+ } else {
10303
+ // 上下都不显示
10304
+ if (h > con_h && h - con_h > Math.abs(rectY)) {
10305
+ console.log("rerererererer");
10306
+ topDom.style.cssText = "visibility: hidden;";
10307
+ bottomDom.style.cssText = "top:".concat(-(h + rectY - 51), "px");
10303
10308
  } else {
10304
- // 上下都不显示
10305
- if (h > con_h && h - con_h > Math.abs(rectY)) {
10306
- console.log("rerererererer");
10307
- topDom.style.cssText = "visibility: hidden;";
10308
- bottomDom.style.cssText = "top:".concat(-(h + rectY - 51), "px");
10309
- } else {
10310
- topDom.style.cssText = "visibility: hidden;";
10311
- bottomDom.style.cssText = "";
10312
- }
10309
+ topDom.style.cssText = "visibility: hidden;";
10310
+ bottomDom.style.cssText = "";
10313
10311
  }
10314
10312
  }
10315
10313
  }
10316
- },
10317
- children: [
10318
- /*#__PURE__*/ jsx("div", {
10319
- className: "".concat(styles.operate_modal, " operate_modal_showtop"),
10320
- children: // 不是最后一行,
10321
- historyMessageList.length - 1 != i && renderOperateBtn(item, isAiChatWindow, i)
10322
- }),
10323
- /*#__PURE__*/ jsxs("div", {
10324
- className: styles.content,
10325
- children: [
10326
- item.message != "AI助手繁忙,请稍后再提问或" && /*#__PURE__*/ jsx("p", {
10327
- dangerouslySetInnerHTML: {
10328
- __html: message
10329
- },
10330
- className: styles.content_child
10331
- }),
10332
- item.message == "AI助手繁忙,请稍后再提问或" && /*#__PURE__*/ jsxs("p", {
10333
- children: [
10334
- "AI助手繁忙,请稍后再提问或",
10335
- /*#__PURE__*/ jsx("span", {
10336
- className: styles.find_teacher_con,
10314
+ }
10315
+ },
10316
+ children: [
10317
+ /*#__PURE__*/ jsx("div", {
10318
+ className: "".concat(styles.operate_modal, " operate_modal_showtop"),
10319
+ children: // 不是最后一行,
10320
+ historyMessageList.length - 1 != i && renderOperateBtn(item, isAiChatWindow, i)
10321
+ }),
10322
+ /*#__PURE__*/ jsxs("div", {
10323
+ className: styles.content,
10324
+ children: [
10325
+ item.message != "AI助手繁忙,请稍后再提问或" && /*#__PURE__*/ jsx("p", {
10326
+ dangerouslySetInnerHTML: {
10327
+ __html: message
10328
+ },
10329
+ className: styles.content_child
10330
+ }),
10331
+ item.message == "AI助手繁忙,请稍后再提问或" && /*#__PURE__*/ jsxs("p", {
10332
+ children: [
10333
+ "AI助手繁忙,请稍后再提问或",
10334
+ /*#__PURE__*/ jsx("span", {
10335
+ className: styles.find_teacher_con,
10336
+ onClick: function() {
10337
+ var extraInfo = historyMessageList[i - 1].extraInfo;
10338
+ var url = "";
10339
+ if (extraInfo && JSON.parse(extraInfo).length > 0 && JSON.parse(extraInfo)[0].key == "imageUrl" && JSON.parse(extraInfo)[0].value) {
10340
+ url = JSON.parse(extraInfo)[0].value;
10341
+ }
10342
+ setProblem({
10343
+ question: historyMessageList[i - 1].message,
10344
+ url: url
10345
+ });
10346
+ setShowTeacherList(true);
10347
+ },
10348
+ children: "召唤老师回答"
10349
+ })
10350
+ ]
10351
+ }),
10352
+ !item.quotedMessage && item.extraInfo && JSON.parse(item.extraInfo).length > 0 && JSON.parse(item.extraInfo)[0].key == "imageUrl" && /*#__PURE__*/ jsxs("p", {
10353
+ className: "".concat(styles.img_con, " ").concat(showType == 2 || showType == 4 ? styles.img_con2 : ""),
10354
+ children: [
10355
+ /*#__PURE__*/ jsx("img", {
10356
+ src: JSON.parse(item.extraInfo)[0].value
10357
+ }),
10358
+ /*#__PURE__*/ jsx("div", {
10359
+ className: styles.mask_zoom,
10360
+ children: /*#__PURE__*/ jsx(ZoomInOutlined, {
10337
10361
  onClick: function() {
10338
- var extraInfo = historyMessageList[i - 1].extraInfo;
10339
- var url = "";
10340
- if (extraInfo && JSON.parse(extraInfo).length > 0 && JSON.parse(extraInfo)[0].key == "imageUrl" && JSON.parse(extraInfo)[0].value) {
10341
- url = JSON.parse(extraInfo)[0].value;
10342
- }
10343
- setProblem({
10344
- question: historyMessageList[i - 1].message,
10345
- url: url
10346
- });
10347
- setShowTeacherList(true);
10348
- },
10349
- children: "召唤老师回答"
10362
+ setViewBase64(JSON.parse(item.extraInfo)[0].value);
10363
+ setVisible(true);
10364
+ }
10350
10365
  })
10351
- ]
10352
- }),
10353
- item.extraInfo && JSON.parse(item.extraInfo).length > 0 && JSON.parse(item.extraInfo)[0].key == "imageUrl" && /*#__PURE__*/ jsxs("p", {
10354
- className: "".concat(styles.img_con, " ").concat(showType == 2 || showType == 4 ? styles.img_con2 : ""),
10355
- children: [
10356
- /*#__PURE__*/ jsx("img", {
10357
- src: JSON.parse(item.extraInfo)[0].value
10358
- }),
10359
- /*#__PURE__*/ jsx("div", {
10360
- className: styles.mask_zoom,
10361
- children: /*#__PURE__*/ jsx(ZoomInOutlined, {
10362
- onClick: function() {
10363
- setViewBase64(JSON.parse(item.extraInfo)[0].value);
10364
- setVisible(true);
10365
- }
10366
- })
10366
+ })
10367
+ ]
10368
+ }),
10369
+ item.extraInfo && JSON.parse(item.extraInfo).length > 0 && JSON.parse(item.extraInfo)[0].key == "messageSource" && JSON.parse(item.extraInfo)[0].value != "knowledgebase" && /*#__PURE__*/ jsxs("ul", {
10370
+ className: "".concat(styles.association_problem, " ").concat(item.message == "抱歉,我暂时无法回答这样的问题。" ? styles.association_problem_flag : ""),
10371
+ children: [
10372
+ item.message == "抱歉,我暂时无法回答这样的问题。" && /*#__PURE__*/ jsx("li", {
10373
+ className: styles.related_issues_flag,
10374
+ children: /*#__PURE__*/ jsx("span", {
10375
+ children: "相关问题"
10367
10376
  })
10368
- ]
10369
- }),
10370
- item.extraInfo && JSON.parse(item.extraInfo).length > 0 && JSON.parse(item.extraInfo)[0].key == "messageSource" && JSON.parse(item.extraInfo)[0].value != "knowledgebase" && /*#__PURE__*/ jsxs("ul", {
10371
- className: "".concat(styles.association_problem, " ").concat(item.message == "抱歉,我暂时无法回答这样的问题。" ? styles.association_problem_flag : ""),
10372
- children: [
10373
- item.message == "抱歉,我暂时无法回答这样的问题。" && /*#__PURE__*/ jsx("li", {
10374
- className: styles.related_issues_flag,
10375
- children: /*#__PURE__*/ jsx("span", {
10376
- children: "相关问题"
10377
+ }),
10378
+ JSON.parse(item.extraInfo).map(function(list, index) {
10379
+ return /*#__PURE__*/ jsx("li", {
10380
+ onClick: function() {
10381
+ sendMessage(list, 1);
10382
+ setBottomRecommendationQuestions([]);
10383
+ resettingBottomHei();
10384
+ },
10385
+ children: item.message == "抱歉,我暂时无法回答这样的问题。" ? list.question : /*#__PURE__*/ jsxs(Fragment, {
10386
+ children: [
10387
+ JSON.parse(item.extraInfo).length > 1 ? index + 1 + "." : "",
10388
+ list.question
10389
+ ]
10377
10390
  })
10378
- }),
10379
- JSON.parse(item.extraInfo).map(function(list, index) {
10380
- return /*#__PURE__*/ jsx("li", {
10381
- onClick: function() {
10382
- sendMessage(list, 1);
10383
- setBottomRecommendationQuestions([]);
10384
- resettingBottomHei();
10385
- },
10386
- children: item.message == "抱歉,我暂时无法回答这样的问题。" ? list.question : /*#__PURE__*/ jsxs(Fragment, {
10387
- children: [
10388
- JSON.parse(item.extraInfo).length > 1 ? index + 1 + "." : "",
10389
- list.question
10390
- ]
10391
- })
10392
- }, i + "_" + index + "_" + list.value);
10393
- })
10391
+ }, i + "_" + index + "_" + list.value);
10392
+ })
10393
+ ]
10394
+ }),
10395
+ //findTeacher//是否在召唤老师过程中,是否是最后一条消息
10396
+ !item.findTeacher && historyMessageList.length - 1 == i && item.id != "123456" && item.id != "123456_date" && renderLastOperateBtn(item, isAiChatWindow, i)
10397
+ ]
10398
+ }),
10399
+ //引用消息
10400
+ item.quotedMessage && /*#__PURE__*/ jsxs("div", {
10401
+ className: styles.citation_content,
10402
+ children: [
10403
+ getByteLen(item.quotedMessage) > 120 ? /*#__PURE__*/ jsx(Tooltip, {
10404
+ overlayClassName: styles.popover_main_content,
10405
+ title: item.quotedMessage,
10406
+ placement: "rightTop",
10407
+ children: /*#__PURE__*/ jsxs("p", {
10408
+ className: styles.text_exceed,
10409
+ children: [
10410
+ item.quotedMessage,
10411
+ /*#__PURE__*/ jsx(RightOutlined, {})
10394
10412
  ]
10395
- }),
10396
- //findTeacher//是否在召唤老师过程中,是否是最后一条消息
10397
- !item.findTeacher && historyMessageList.length - 1 == i && item.id != "123456" && item.id != "123456_date" && renderLastOperateBtn(item, isAiChatWindow, i)
10398
- ]
10399
- }),
10400
- historyMessageList.length - 1 !== i && /*#__PURE__*/ jsx("div", {
10401
- className: "".concat(styles.operate_modal, " ").concat(styles.bottom, " operate_modal_showbottom"),
10402
- children: // 不是最后一行,
10403
- renderOperateBtn(item, isAiChatWindow, i)
10404
- })
10405
- ]
10406
- }),
10407
- //引用消息
10408
- item.quotedMessage && /*#__PURE__*/ jsxs("div", {
10409
- className: styles.citation_content,
10410
- children: [
10411
- getByteLen(item.quotedMessage) > 120 ? /*#__PURE__*/ jsx(Tooltip, {
10412
- overlayClassName: styles.popover_main_content,
10413
- title: item.quotedMessage,
10414
- placement: "rightTop",
10415
- children: /*#__PURE__*/ jsxs("p", {
10416
- className: styles.text_exceed,
10413
+ })
10414
+ }) : /*#__PURE__*/ jsx("p", {
10415
+ children: item.quotedMessage
10416
+ }),
10417
+ item.quotedMessage && item.extraInfo && JSON.parse(item.extraInfo).length > 0 && JSON.parse(item.extraInfo)[0].key == "imageUrl" && /*#__PURE__*/ jsxs("p", {
10418
+ className: "".concat(styles.img_con, " ").concat(showType == 2 || showType == 4 ? styles.img_con2 : ""),
10417
10419
  children: [
10418
- item.quotedMessage,
10419
- /*#__PURE__*/ jsx(RightOutlined, {})
10420
+ /*#__PURE__*/ jsx("img", {
10421
+ src: JSON.parse(item.extraInfo)[0].value
10422
+ }),
10423
+ /*#__PURE__*/ jsx("div", {
10424
+ className: styles.mask_zoom,
10425
+ children: /*#__PURE__*/ jsx(ZoomInOutlined, {
10426
+ onClick: function() {
10427
+ setViewBase64(JSON.parse(item.extraInfo)[0].value);
10428
+ setVisible(true);
10429
+ }
10430
+ })
10431
+ })
10420
10432
  ]
10421
10433
  })
10422
- }) : /*#__PURE__*/ jsx("p", {
10423
- children: item.quotedMessage
10424
- }),
10425
- item.extraInfo && JSON.parse(item.extraInfo).length > 0 && JSON.parse(item.extraInfo)[0].key == "imageUrl" && /*#__PURE__*/ jsxs("p", {
10426
- className: "".concat(styles.img_con, " ").concat(showType == 2 || showType == 4 ? styles.img_con2 : ""),
10427
- children: [
10428
- /*#__PURE__*/ jsx("img", {
10429
- src: JSON.parse(item.extraInfo)[0].value
10430
- }),
10431
- /*#__PURE__*/ jsx("div", {
10432
- className: styles.mask_zoom,
10433
- children: /*#__PURE__*/ jsx(ZoomInOutlined, {
10434
- onClick: function() {
10435
- setViewBase64(JSON.parse(item.extraInfo)[0].value);
10436
- setVisible(true);
10437
- }
10438
- })
10439
- })
10440
- ]
10441
- })
10442
- ]
10443
- })
10444
- ]
10434
+ ]
10435
+ }),
10436
+ historyMessageList.length - 1 !== i && /*#__PURE__*/ jsx("div", {
10437
+ className: "".concat(styles.operate_modal, " ").concat(styles.bottom, " operate_modal_showbottom"),
10438
+ children: // 不是最后一行,
10439
+ renderOperateBtn(item, isAiChatWindow, i)
10440
+ })
10441
+ ]
10442
+ })
10445
10443
  })
10446
10444
  })
10447
10445
  ]