bhd-components 0.7.11 → 0.7.12

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, X, y as I, H, A as Remarkable, D as Drawer, B as HighlightJS, Z as ZoomInOutlined, F as _to_consumable_array } from './facd5ad8.esm.es5.development.js';
2
- export { G as Affix, J as Alert, K as Anchor, aF as App, N as AutoComplete, O as Avatar, U as BackTop, V as Badge, W as Breadcrumb, Y as Button, $ as Calendar, a0 as Card, a1 as Carousel, a2 as Cascader, a3 as Checkbox, a4 as Col, a5 as Collapse, a6 as DatePicker, a7 as Descriptions, a8 as Divider, D as Drawer, a9 as Dropdown, aa as Empty, Q as FloatButton, ab as Form, ac as Grid, ad as Image, v as Input, ae as InputNumber, af as Layout, ag as List, ah as Mentions, ai as Menu, M as Modal, ak as Popconfirm, al as Popover, am as Progress, aM as QRCode, an as Radio, ao as Rate, ap as Result, aq as Row, ar as Segmented, g as Select, as as Skeleton, at as Slider, au as Space, av as Spin, aw as Statistic, ax as Steps, ay as Switch, az as Tabs, aA as Tag, aC as TimePicker, aD as Timeline, T as Tooltip, aE as Tour, aG as Transfer, aH as Tree, aI as TreeSelect, aJ as Typography, aK as Upload, aL as Watermark, aO as en_US, aj as notification, aB as theme, aN as version, z as zh_CN } from './facd5ad8.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, X, y as I, H, A as Remarkable, D as Drawer, B as HighlightJS, Z as ZoomInOutlined, F as _to_consumable_array } from './4507d48e.esm.es5.development.js';
2
+ export { G as Affix, J as Alert, K as Anchor, aF as App, N as AutoComplete, O as Avatar, U as BackTop, V as Badge, W as Breadcrumb, Y as Button, $ as Calendar, a0 as Card, a1 as Carousel, a2 as Cascader, a3 as Checkbox, a4 as Col, a5 as Collapse, a6 as DatePicker, a7 as Descriptions, a8 as Divider, D as Drawer, a9 as Dropdown, aa as Empty, Q as FloatButton, ab as Form, ac as Grid, ad as Image, v as Input, ae as InputNumber, af as Layout, ag as List, ah as Mentions, ai as Menu, M as Modal, ak as Popconfirm, al as Popover, am as Progress, aM as QRCode, an as Radio, ao as Rate, ap as Result, aq as Row, ar as Segmented, g as Select, as as Skeleton, at as Slider, au as Space, av as Spin, aw as Statistic, ax as Steps, ay as Switch, az as Tabs, aA as Tag, aC as TimePicker, aD as Timeline, T as Tooltip, aE as Tour, aG as Transfer, aH as Tree, aI as TreeSelect, aJ as Typography, aK as Upload, aL as Watermark, aO as en_US, aj as notification, aB as theme, aN as version, z as zh_CN } from './4507d48e.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';
@@ -3166,7 +3166,7 @@ var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
3166
3166
  });
3167
3167
  var ViewImage$1 = AppViewImage;
3168
3168
 
3169
- var modules_63b47c51 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__2a5f562d","ChatWindow_Modal":"index_module_ChatWindow_Modal__2a5f562d","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__2a5f562d","header_wrap":"index_module_header_wrap__2a5f562d","top":"index_module_top__2a5f562d","user":"index_module_user__2a5f562d","count":"index_module_count__2a5f562d","operate":"index_module_operate__2a5f562d","line":"index_module_line__2a5f562d","popover_main":"index_module_popover_main__2a5f562d","popover":"index_module_popover__2a5f562d","header_wrap_newlabo":"index_module_header_wrap_newlabo__2a5f562d","Drawer_main":"index_module_Drawer_main__2a5f562d","loading":"index_module_loading__2a5f562d","message_con":"index_module_message_con__2a5f562d","left":"index_module_left__2a5f562d","head_sculpture":"index_module_head_sculpture__2a5f562d","main_content":"index_module_main_content__2a5f562d","right":"index_module_right__2a5f562d","main":"index_module_main__2a5f562d","main_content_flag":"index_module_main_content_flag__2a5f562d","operate_modal":"index_module_operate_modal__2a5f562d","operate_modal_bottom":"index_module_operate_modal_bottom__2a5f562d","active":"index_module_active__2a5f562d","stop_generate":"index_module_stop_generate__2a5f562d","icon":"index_module_icon__2a5f562d","find_teacher":"index_module_find_teacher__2a5f562d","stop_findTeacher":"index_module_stop_findTeacher__2a5f562d","content":"index_module_content__2a5f562d","content_child":"index_module_content_child__2a5f562d","sign":"index_module_sign__2a5f562d","ask_question":"index_module_ask_question__2a5f562d","association_problem":"index_module_association_problem__2a5f562d","img_con":"index_module_img_con__2a5f562d","mask_zoom":"index_module_mask_zoom__2a5f562d","copyCode":"index_module_copyCode__2a5f562d","association_problem_flag":"index_module_association_problem_flag__2a5f562d","related_issues_flag":"index_module_related_issues_flag__2a5f562d","time":"index_module_time__2a5f562d","citation_content":"index_module_citation_content__2a5f562d","text_exceed":"index_module_text_exceed__2a5f562d","popover_content":"index_module_popover_content__2a5f562d","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__2a5f562d","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__2a5f562d","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__2a5f562d","issues_list_teacherList":"index_module_issues_list_teacherList__2a5f562d","item":"index_module_item__2a5f562d","issues_list":"index_module_issues_list__2a5f562d","issues_list_flag":"index_module_issues_list_flag__2a5f562d","Drawer_buttom":"index_module_Drawer_buttom__2a5f562d","input_wrap":"index_module_input_wrap__2a5f562d","input":"index_module_input__2a5f562d","picture_layout":"index_module_picture_layout__2a5f562d","icon_close":"index_module_icon_close__2a5f562d","icon_zoom":"index_module_icon_zoom__2a5f562d","anticon":"index_module_anticon__2a5f562d","no_AI":"index_module_no_AI__2a5f562d","screenshot":"index_module_screenshot__2a5f562d","disabled":"index_module_disabled__2a5f562d","content_main":"index_module_content_main__2a5f562d","content_con":"index_module_content_con__2a5f562d","delete_quote":"index_module_delete_quote__2a5f562d","sending":"index_module_sending__2a5f562d","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__2a5f562d","main_list":"index_module_main_list__2a5f562d","chat_content":"index_module_chat_content__2a5f562d","popover_main_content":"index_module_popover_main_content__2a5f562d","popover_main_content_name":"index_module_popover_main_content_name__2a5f562d","teacher_layout":"index_module_teacher_layout__2a5f562d","bottom":"index_module_bottom__2a5f562d","delete":"index_module_delete__2a5f562d","num":"index_module_num__2a5f562d","shrink":"index_module_shrink__2a5f562d","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__2a5f562d","teacher_layout_modal":"index_module_teacher_layout_modal__2a5f562d","ai":"index_module_ai__2a5f562d","user_info":"index_module_user_info__2a5f562d","message":"index_module_message__2a5f562d","con":"index_module_con__2a5f562d","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__2a5f562d","history_list":"index_module_history_list__2a5f562d","search_layout":"index_module_search_layout__2a5f562d","mymove":"index_module_mymove__2a5f562d","title":"index_module_title__2a5f562d","search_top":"index_module_search_top__2a5f562d","list_item":"index_module_list_item__2a5f562d","list_summary":"index_module_list_summary__2a5f562d","head_img":"index_module_head_img__2a5f562d","list_desc":"index_module_list_desc__2a5f562d","name":"index_module_name__2a5f562d","decs":"index_module_decs__2a5f562d","open":"index_module_open__2a5f562d","list_summary_active":"index_module_list_summary_active__2a5f562d","list_detail":"index_module_list_detail__2a5f562d","list":"index_module_list__2a5f562d","list_more":"index_module_list_more__2a5f562d","no_data":"index_module_no_data__2a5f562d","history_list_broadside":"index_module_history_list_broadside__2a5f562d","screenshot_Modal":"index_module_screenshot_Modal__2a5f562d","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__2a5f562d"};
3169
+ var modules_63b47c51 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__474cc44d","ChatWindow_Modal":"index_module_ChatWindow_Modal__474cc44d","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__474cc44d","header_wrap":"index_module_header_wrap__474cc44d","top":"index_module_top__474cc44d","user":"index_module_user__474cc44d","count":"index_module_count__474cc44d","operate":"index_module_operate__474cc44d","line":"index_module_line__474cc44d","popover_main":"index_module_popover_main__474cc44d","popover":"index_module_popover__474cc44d","header_wrap_newlabo":"index_module_header_wrap_newlabo__474cc44d","Drawer_main":"index_module_Drawer_main__474cc44d","loading":"index_module_loading__474cc44d","message_con":"index_module_message_con__474cc44d","left":"index_module_left__474cc44d","head_sculpture":"index_module_head_sculpture__474cc44d","main_content":"index_module_main_content__474cc44d","right":"index_module_right__474cc44d","main":"index_module_main__474cc44d","main_content_flag":"index_module_main_content_flag__474cc44d","operate_modal":"index_module_operate_modal__474cc44d","operate_modal_bottom":"index_module_operate_modal_bottom__474cc44d","active":"index_module_active__474cc44d","stop_generate":"index_module_stop_generate__474cc44d","icon":"index_module_icon__474cc44d","find_teacher":"index_module_find_teacher__474cc44d","stop_findTeacher":"index_module_stop_findTeacher__474cc44d","content":"index_module_content__474cc44d","content_child":"index_module_content_child__474cc44d","sign":"index_module_sign__474cc44d","ask_question":"index_module_ask_question__474cc44d","association_problem":"index_module_association_problem__474cc44d","img_con":"index_module_img_con__474cc44d","mask_zoom":"index_module_mask_zoom__474cc44d","img_con2":"index_module_img_con2__474cc44d","copyCode":"index_module_copyCode__474cc44d","association_problem_flag":"index_module_association_problem_flag__474cc44d","related_issues_flag":"index_module_related_issues_flag__474cc44d","time":"index_module_time__474cc44d","citation_content":"index_module_citation_content__474cc44d","text_exceed":"index_module_text_exceed__474cc44d","popover_content":"index_module_popover_content__474cc44d","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__474cc44d","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__474cc44d","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__474cc44d","issues_list_teacherList":"index_module_issues_list_teacherList__474cc44d","item":"index_module_item__474cc44d","issues_list":"index_module_issues_list__474cc44d","issues_list_flag":"index_module_issues_list_flag__474cc44d","Drawer_buttom":"index_module_Drawer_buttom__474cc44d","input_wrap":"index_module_input_wrap__474cc44d","input":"index_module_input__474cc44d","picture_layout":"index_module_picture_layout__474cc44d","icon_close":"index_module_icon_close__474cc44d","icon_zoom":"index_module_icon_zoom__474cc44d","anticon":"index_module_anticon__474cc44d","no_AI":"index_module_no_AI__474cc44d","screenshot":"index_module_screenshot__474cc44d","disabled":"index_module_disabled__474cc44d","content_main":"index_module_content_main__474cc44d","content_con":"index_module_content_con__474cc44d","delete_quote":"index_module_delete_quote__474cc44d","sending":"index_module_sending__474cc44d","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__474cc44d","main_list":"index_module_main_list__474cc44d","chat_content":"index_module_chat_content__474cc44d","popover_main_content":"index_module_popover_main_content__474cc44d","popover_main_content_name":"index_module_popover_main_content_name__474cc44d","teacher_layout":"index_module_teacher_layout__474cc44d","bottom":"index_module_bottom__474cc44d","delete":"index_module_delete__474cc44d","num":"index_module_num__474cc44d","shrink":"index_module_shrink__474cc44d","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__474cc44d","teacher_layout_modal":"index_module_teacher_layout_modal__474cc44d","ai":"index_module_ai__474cc44d","user_info":"index_module_user_info__474cc44d","message":"index_module_message__474cc44d","con":"index_module_con__474cc44d","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__474cc44d","history_list":"index_module_history_list__474cc44d","search_layout":"index_module_search_layout__474cc44d","mymove":"index_module_mymove__474cc44d","title":"index_module_title__474cc44d","search_top":"index_module_search_top__474cc44d","list_item":"index_module_list_item__474cc44d","list_summary":"index_module_list_summary__474cc44d","head_img":"index_module_head_img__474cc44d","list_desc":"index_module_list_desc__474cc44d","name":"index_module_name__474cc44d","decs":"index_module_decs__474cc44d","open":"index_module_open__474cc44d","list_summary_active":"index_module_list_summary_active__474cc44d","list_detail":"index_module_list_detail__474cc44d","list":"index_module_list__474cc44d","list_more":"index_module_list_more__474cc44d","no_data":"index_module_no_data__474cc44d","history_list_broadside":"index_module_history_list_broadside__474cc44d","screenshot_Modal":"index_module_screenshot_Modal__474cc44d","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__474cc44d"};
3170
3170
 
3171
3171
  //消息已读
3172
3172
  var readMessage = function(roomId, urllocation, userData, http) {
@@ -3994,7 +3994,6 @@ var ScreenshotTool = /*#__PURE__*/ forwardRef(function(props) {
3994
3994
  var imgBese64 = props.imgBese64, saveScreenshotBese64 = props.saveScreenshotBese64, cancelScreenshot = props.cancelScreenshot;
3995
3995
  var _useState = _sliced_to_array(useState(), 2), crop = _useState[0], setCrop = _useState[1];
3996
3996
  var _useState1 = _sliced_to_array(useState(), 2), completedCrop = _useState1[0], setCompletedCrop = _useState1[1];
3997
- useRef(null);
3998
3997
  var _useState2 = _sliced_to_array(useState(16 / 9), 2), aspect = _useState2[0]; _useState2[1];
3999
3998
  var _useState3 = _sliced_to_array(useState({
4000
3999
  top: 0,
@@ -4070,20 +4069,22 @@ var ScreenshotTool = /*#__PURE__*/ forwardRef(function(props) {
4070
4069
  className: modules_63b47c51.ReactCrop,
4071
4070
  crop: crop,
4072
4071
  onChange: function(_, percentCrop) {
4072
+ if (percentCrop.height === 0 && percentCrop.width === 0) {
4073
+ return;
4074
+ }
4073
4075
  setShowBtn(false);
4074
4076
  setCrop(percentCrop);
4075
4077
  },
4076
4078
  onComplete: function(c) {
4079
+ if (c.height === 0 && c.width === 0) {
4080
+ return;
4081
+ }
4077
4082
  setCompletedCrop(c);
4078
4083
  savePosition(c);
4079
- // console.log(c,'剪裁222');
4080
4084
  },
4081
- // aspect={aspect}
4082
- // minWidth={400}
4083
4085
  minHeight: 100,
4084
4086
  minWidth: 100,
4085
4087
  children: /*#__PURE__*/ jsx("img", {
4086
- // ref={imgRef}
4087
4088
  alt: "Crop me",
4088
4089
  src: imgBese64,
4089
4090
  onLoad: onImageLoad
@@ -4098,7 +4099,12 @@ var ScreenshotTool = /*#__PURE__*/ forwardRef(function(props) {
4098
4099
  children: [
4099
4100
  /*#__PURE__*/ jsx("span", {
4100
4101
  onClick: cancelScreenshot,
4101
- children: /*#__PURE__*/ jsx(CloseOutlined, {})
4102
+ children: /*#__PURE__*/ jsx(CloseOutlined, {
4103
+ style: {
4104
+ position: "relative",
4105
+ top: "1px"
4106
+ }
4107
+ })
4102
4108
  }),
4103
4109
  /*#__PURE__*/ jsx("span", {
4104
4110
  onClick: saveImage,
@@ -6031,7 +6037,7 @@ var CustomerService = function(props) {
6031
6037
  className: styles.content_child
6032
6038
  }),
6033
6039
  item.extraInfo && JSON.parse(item.extraInfo).length > 0 && JSON.parse(item.extraInfo)[0].key == "imageUrl" && /*#__PURE__*/ jsxs("p", {
6034
- className: styles.img_con,
6040
+ className: "".concat(styles.img_con, " ").concat(showType == 2 || showType == 4 ? styles.img_con2 : ""),
6035
6041
  children: [
6036
6042
  /*#__PURE__*/ jsx("img", {
6037
6043
  src: JSON.parse(item.extraInfo)[0].value
@@ -6148,7 +6154,7 @@ var CustomerService = function(props) {
6148
6154
  className: styles.content_child
6149
6155
  }),
6150
6156
  item.extraInfo && JSON.parse(item.extraInfo).length > 0 && JSON.parse(item.extraInfo)[0].key == "imageUrl" && /*#__PURE__*/ jsxs("p", {
6151
- className: styles.img_con,
6157
+ className: "".concat(styles.img_con, " ").concat(showType == 2 || showType == 4 ? styles.img_con2 : ""),
6152
6158
  children: [
6153
6159
  /*#__PURE__*/ jsx("img", {
6154
6160
  src: JSON.parse(item.extraInfo)[0].value
@@ -6261,13 +6267,23 @@ var CustomerService = function(props) {
6261
6267
  return "";
6262
6268
  }
6263
6269
  // console.log(historyMessageList,i,'sdcsd;sldcscsdsd')
6270
+ //根据上一行数据,判断是否显示招唤老师按钮
6271
+ var showTeacherBtn = true;
6272
+ var previousLineData = historyMessageList[i - 1];
6273
+ if (!previousLineData) {
6274
+ showTeacherBtn = true;
6275
+ } else if (!previousLineData.extraInfo) {
6276
+ showTeacherBtn = true;
6277
+ } else if (JSON.parse(previousLineData.extraInfo).length > 0 && JSON.parse(previousLineData.extraInfo)[0].key == "imageUrl") {
6278
+ showTeacherBtn = false;
6279
+ }
6264
6280
  return /*#__PURE__*/ jsxs("p", {
6265
6281
  className: styles.operate,
6266
6282
  children: [
6267
6283
  // 不在智能客服窗口,并已经点击了召唤老师,并有召唤老师权限
6268
6284
  isAiChatWindow && answerMode != 1 && userData.modules.some(function(item) {
6269
6285
  return item.short == "TeacherAnswer";
6270
- }) && historyMessageList[i - 1] && historyMessageList[i - 1].extraInfo && JSON.parse(historyMessageList[i - 1].extraInfo).length > 0 && JSON.parse(historyMessageList[i - 1].extraInfo)[0].key != "imageUrl" && /*#__PURE__*/ jsx("span", {
6286
+ }) && showTeacherBtn && /*#__PURE__*/ jsx("span", {
6271
6287
  className: styles.ask_question,
6272
6288
  onClick: function() {
6273
6289
  setAnswerMode(1);
@@ -6414,9 +6430,19 @@ var CustomerService = function(props) {
6414
6430
  }
6415
6431
  //3、是否显示召唤老师回答按钮
6416
6432
  var findTeacherBtn = false;
6417
- if (!showStopBtn && isAiChatWindow && (extraInfo != undefined && JSON.parse(extraInfo).length > 0 && JSON.parse(extraInfo)[0].key == "questionId" || extraInfo == null) && historyMessageList[i - 1] && historyMessageList[i - 1].extraInfo && JSON.parse(historyMessageList[i - 1].extraInfo).length > 0 && JSON.parse(historyMessageList[i - 1].extraInfo)[0].key != "imageUrl") {
6433
+ if (!showStopBtn && isAiChatWindow && (extraInfo != undefined && JSON.parse(extraInfo).length > 0 && JSON.parse(extraInfo)[0].key == "questionId" || extraInfo == null)) {
6418
6434
  findTeacherBtn = true;
6419
6435
  }
6436
+ //根据上一行数据,判断是否显示招唤老师按钮
6437
+ var showTeacherBtn = true;
6438
+ var previousLineData = historyMessageList[i - 1];
6439
+ if (!previousLineData) {
6440
+ showTeacherBtn = true;
6441
+ } else if (!previousLineData.extraInfo) {
6442
+ showTeacherBtn = true;
6443
+ } else if (JSON.parse(previousLineData.extraInfo).length > 0 && JSON.parse(previousLineData.extraInfo)[0].key == "imageUrl") {
6444
+ showTeacherBtn = false;
6445
+ }
6420
6446
  /// style={{position:showStopBtn && isPosition.current ? 'sticky' : 'relative'}}
6421
6447
  return /*#__PURE__*/ jsxs("div", {
6422
6448
  className: "".concat(styles.operate_modal_bottom),
@@ -6468,7 +6494,7 @@ var CustomerService = function(props) {
6468
6494
  //在ai窗口并ai已经生成完答案
6469
6495
  findTeacherBtn && userData.modules.some(function(item) {
6470
6496
  return item.short == "TeacherAnswer";
6471
- }) && /*#__PURE__*/ jsx("span", {
6497
+ }) && showTeacherBtn && /*#__PURE__*/ jsx("span", {
6472
6498
  className: styles.find_teacher,
6473
6499
  onClick: function() {
6474
6500
  setAnswerMode(1);