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.
- package/README.md +1 -1
- package/dist/index.esm.es5.development.css +1093 -1087
- package/dist/index.esm.es5.development.js +151 -153
- 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/index.js +150 -152
- package/es2017/customerService/index.module.less +5 -0
- package/es2017/customerService/index2.module.less +5 -0
- package/esm/customerService/index.js +150 -152
- package/esm/customerService/index.module.less +5 -0
- package/esm/customerService/index2.module.less +5 -0
- package/package.json +1 -1
|
@@ -2520,7 +2520,7 @@ function BhdAppLayout(props) {
|
|
|
2520
2520
|
});
|
|
2521
2521
|
}
|
|
2522
2522
|
|
|
2523
|
-
var modules_63b47c51$1 = {"service_ChatWindow_Drawer":"
|
|
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__*/
|
|
10280
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
10281
10281
|
className: styles.main_content,
|
|
10282
|
-
children:
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
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
|
-
|
|
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
|
-
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
|
|
10321
|
-
|
|
10322
|
-
|
|
10323
|
-
|
|
10324
|
-
|
|
10325
|
-
|
|
10326
|
-
|
|
10327
|
-
|
|
10328
|
-
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
|
|
10333
|
-
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
|
|
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
|
-
|
|
10339
|
-
|
|
10340
|
-
|
|
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
|
-
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
/*#__PURE__*/ jsx("
|
|
10360
|
-
|
|
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
|
-
|
|
10371
|
-
|
|
10372
|
-
|
|
10373
|
-
|
|
10374
|
-
|
|
10375
|
-
|
|
10376
|
-
|
|
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
|
-
|
|
10380
|
-
|
|
10381
|
-
|
|
10382
|
-
|
|
10383
|
-
|
|
10384
|
-
|
|
10385
|
-
|
|
10386
|
-
|
|
10387
|
-
|
|
10388
|
-
|
|
10389
|
-
|
|
10390
|
-
|
|
10391
|
-
|
|
10392
|
-
|
|
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
|
-
|
|
10397
|
-
|
|
10398
|
-
|
|
10399
|
-
|
|
10400
|
-
|
|
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
|
-
|
|
10419
|
-
|
|
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
|
-
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
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
|
]
|