bhd-components 0.7.10 → 0.7.11

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 './e7af2e4a.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 './e7af2e4a.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 './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';
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__cb4626a6","ChatWindow_Modal":"index_module_ChatWindow_Modal__cb4626a6","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__cb4626a6","header_wrap":"index_module_header_wrap__cb4626a6","top":"index_module_top__cb4626a6","user":"index_module_user__cb4626a6","count":"index_module_count__cb4626a6","operate":"index_module_operate__cb4626a6","line":"index_module_line__cb4626a6","popover_main":"index_module_popover_main__cb4626a6","popover":"index_module_popover__cb4626a6","header_wrap_newlabo":"index_module_header_wrap_newlabo__cb4626a6","Drawer_main":"index_module_Drawer_main__cb4626a6","loading":"index_module_loading__cb4626a6","message_con":"index_module_message_con__cb4626a6","left":"index_module_left__cb4626a6","head_sculpture":"index_module_head_sculpture__cb4626a6","main_content":"index_module_main_content__cb4626a6","right":"index_module_right__cb4626a6","main":"index_module_main__cb4626a6","main_content_flag":"index_module_main_content_flag__cb4626a6","operate_modal":"index_module_operate_modal__cb4626a6","operate_modal_bottom":"index_module_operate_modal_bottom__cb4626a6","active":"index_module_active__cb4626a6","stop_generate":"index_module_stop_generate__cb4626a6","icon":"index_module_icon__cb4626a6","find_teacher":"index_module_find_teacher__cb4626a6","stop_findTeacher":"index_module_stop_findTeacher__cb4626a6","content":"index_module_content__cb4626a6","content_child":"index_module_content_child__cb4626a6","sign":"index_module_sign__cb4626a6","ask_question":"index_module_ask_question__cb4626a6","association_problem":"index_module_association_problem__cb4626a6","img_con":"index_module_img_con__cb4626a6","mask_zoom":"index_module_mask_zoom__cb4626a6","copyCode":"index_module_copyCode__cb4626a6","association_problem_flag":"index_module_association_problem_flag__cb4626a6","related_issues_flag":"index_module_related_issues_flag__cb4626a6","time":"index_module_time__cb4626a6","citation_content":"index_module_citation_content__cb4626a6","text_exceed":"index_module_text_exceed__cb4626a6","popover_content":"index_module_popover_content__cb4626a6","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__cb4626a6","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__cb4626a6","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__cb4626a6","issues_list_teacherList":"index_module_issues_list_teacherList__cb4626a6","item":"index_module_item__cb4626a6","issues_list":"index_module_issues_list__cb4626a6","issues_list_flag":"index_module_issues_list_flag__cb4626a6","Drawer_buttom":"index_module_Drawer_buttom__cb4626a6","input_wrap":"index_module_input_wrap__cb4626a6","input":"index_module_input__cb4626a6","picture_layout":"index_module_picture_layout__cb4626a6","icon_close":"index_module_icon_close__cb4626a6","icon_zoom":"index_module_icon_zoom__cb4626a6","anticon":"index_module_anticon__cb4626a6","no_AI":"index_module_no_AI__cb4626a6","screenshot":"index_module_screenshot__cb4626a6","disabled":"index_module_disabled__cb4626a6","content_main":"index_module_content_main__cb4626a6","content_con":"index_module_content_con__cb4626a6","delete_quote":"index_module_delete_quote__cb4626a6","sending":"index_module_sending__cb4626a6","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__cb4626a6","main_list":"index_module_main_list__cb4626a6","chat_content":"index_module_chat_content__cb4626a6","popover_main_content":"index_module_popover_main_content__cb4626a6","popover_main_content_name":"index_module_popover_main_content_name__cb4626a6","teacher_layout":"index_module_teacher_layout__cb4626a6","bottom":"index_module_bottom__cb4626a6","delete":"index_module_delete__cb4626a6","num":"index_module_num__cb4626a6","shrink":"index_module_shrink__cb4626a6","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__cb4626a6","teacher_layout_modal":"index_module_teacher_layout_modal__cb4626a6","ai":"index_module_ai__cb4626a6","user_info":"index_module_user_info__cb4626a6","message":"index_module_message__cb4626a6","con":"index_module_con__cb4626a6","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__cb4626a6","history_list":"index_module_history_list__cb4626a6","search_layout":"index_module_search_layout__cb4626a6","mymove":"index_module_mymove__cb4626a6","title":"index_module_title__cb4626a6","search_top":"index_module_search_top__cb4626a6","list_item":"index_module_list_item__cb4626a6","list_summary":"index_module_list_summary__cb4626a6","head_img":"index_module_head_img__cb4626a6","list_desc":"index_module_list_desc__cb4626a6","name":"index_module_name__cb4626a6","decs":"index_module_decs__cb4626a6","open":"index_module_open__cb4626a6","list_summary_active":"index_module_list_summary_active__cb4626a6","list_detail":"index_module_list_detail__cb4626a6","list":"index_module_list__cb4626a6","list_more":"index_module_list_more__cb4626a6","no_data":"index_module_no_data__cb4626a6","history_list_broadside":"index_module_history_list_broadside__cb4626a6","screenshot_Modal":"index_module_screenshot_Modal__cb4626a6","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__cb4626a6"};
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"};
3170
3170
 
3171
3171
  //消息已读
3172
3172
  var readMessage = function(roomId, urllocation, userData, http) {
@@ -3904,7 +3904,7 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
3904
3904
  }) : /*#__PURE__*/ jsxs("div", {
3905
3905
  className: "".concat(modules_63b47c51.teacher_layout, " ").concat(type == 3 ? modules_63b47c51.teacher_layout_newlabo : ""),
3906
3906
  style: {
3907
- left: type == 3 ? document.getElementById("box").offsetWidth + 10 + "px" : "auto"
3907
+ left: type == 3 ? document.getElementById("box") && document.getElementById("box").offsetWidth + 10 + "px" : "auto"
3908
3908
  },
3909
3909
  children: [
3910
3910
  /*#__PURE__*/ jsxs("div", {
@@ -4135,7 +4135,7 @@ var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAA
4135
4135
  var styles = modules_63b47c51;
4136
4136
  var TextArea = Input.TextArea;
4137
4137
  var CustomerService = function(props) {
4138
- var userData = props.userData, http = props.http, urllocation = props.urllocation, onCancel = props.onCancel, serverName = props.serverName, fetchEventSource = props.fetchEventSource, initShowType = props.initShowType, onEvent = props.onEvent, stepIds = props.stepIds, stepId = props.stepId, screenshotAreaId = props.screenshotAreaId; props.config;
4138
+ var userData = props.userData, http = props.http, urllocation = props.urllocation, onCancel = props.onCancel, serverName = props.serverName, fetchEventSource = props.fetchEventSource, initShowType = props.initShowType, onEvent = props.onEvent, stepIds = props.stepIds, stepId = props.stepId, screenshotAreaId = props.screenshotAreaId, config = props.config;
4139
4139
  // const { bese64String, startRecord, stopRecord } = useMediaRecorder(); //语音转文字
4140
4140
  // const [voiceRecordingStatus, setVoiceRecordingStatus] = useState(3); //语音录制状态 3,语音识别完成 2,录制中, 1,录制结束
4141
4141
  var _useState = _sliced_to_array(useState([]), 2), copyTextOBJ = _useState[0], setCopyTextObj = _useState[1]; //复制的消息id
@@ -4171,7 +4171,8 @@ var CustomerService = function(props) {
4171
4171
  var _useState29 = _sliced_to_array(useState(""), 2), viewBase64 = _useState29[0], setViewBase64 = _useState29[1]; //图片预览
4172
4172
  var _useState30 = _sliced_to_array(useState(false), 2), visible = _useState30[0], setVisible = _useState30[1]; //是否显示图片预览
4173
4173
  var _useState31 = _sliced_to_array(useState([]), 2), bottomRecommendationQuestions = _useState31[0], setBottomRecommendationQuestions = _useState31[1]; //底部推荐问题
4174
- var _useState32 = _sliced_to_array(useState(-1), 2), saveShowType = _useState32[0], setSaveShowType = _useState32[1]; //保存截图时的状态
4174
+ var _useState32 = _sliced_to_array(useState(false), 2), showScreenshot = _useState32[0], setShowScreenshot = _useState32[1]; //是否显示截图 主要用于newlabo页面
4175
+ var _useState33 = _sliced_to_array(useState(-1), 2), saveShowType = _useState33[0], setSaveShowType = _useState33[1]; //保存截图时的状态
4175
4176
  var timer = useRef(null); //文本框输入时
4176
4177
  var receiveMessageTimer = useRef(null); //接收ai发回的消息
4177
4178
  // let voiceCountdownTimer = useRef(null); //语音录制倒计时
@@ -4199,22 +4200,17 @@ var CustomerService = function(props) {
4199
4200
  }
4200
4201
  });
4201
4202
  useEffect(function() {
4202
- // console.log(props,'lsdkcmsdlcksd')
4203
- // getQuestiionsList("", 1);
4204
- if (props.config && props.config.type == "video") {
4203
+ if (config && config.type == "video") {
4205
4204
  //获取热门推荐
4206
4205
  videoPageQuestiionsList(1);
4207
- // getQuestiionsList("", 3)
4208
4206
  }
4209
4207
  setShowType(initShowType);
4210
- //获取视频页面推荐问题
4211
- // videoPageQuestiionsList();
4212
- // scrollToBottom();
4213
4208
  }, [
4214
4209
  initShowType
4215
4210
  ]);
4216
4211
  useEffect(function() {
4217
- if (showType == 5) {
4212
+ //|| showScreenshot
4213
+ if (showType == 5 || showScreenshot) {
4218
4214
  try {
4219
4215
  setImgBese64("");
4220
4216
  // html2canvas(document.getElementsByTagName('html')[0],{
@@ -4307,7 +4303,8 @@ var CustomerService = function(props) {
4307
4303
  }, [
4308
4304
  historyMessageList,
4309
4305
  showType,
4310
- pageCount
4306
+ pageCount,
4307
+ showScreenshot
4311
4308
  ]);
4312
4309
  useEffect(function() {
4313
4310
  resettingBottomHei();
@@ -4815,6 +4812,10 @@ var CustomerService = function(props) {
4815
4812
  sendingExistingIssues(2, dataObj, "");
4816
4813
  testLabQuestion(obj.message, questions.answer, "");
4817
4814
  }
4815
+ if (type == 2 && config && config.type == "video") {
4816
+ //先请求问题列表
4817
+ videoPageQuestiionsList(2);
4818
+ }
4818
4819
  });
4819
4820
  };
4820
4821
  //向AI发送问题 type == 1 发送点赞或踩消息,type == 2 发送重新生成消息,type == 3 正常发送消息
@@ -4843,8 +4844,8 @@ var CustomerService = function(props) {
4843
4844
  });
4844
4845
  });
4845
4846
  }, 60 * 1000);
4846
- if (props.config && props.config.type == "video" && props.config.params) {
4847
- var params = props.config.params;
4847
+ if (config && config.type == "video" && config.params) {
4848
+ var params = config.params;
4848
4849
  var videoId = params.videoId;
4849
4850
  var watchTime = params.videoProgress;
4850
4851
  var courseId = getQuery("yc_id");
@@ -4899,7 +4900,7 @@ var CustomerService = function(props) {
4899
4900
  });
4900
4901
  scrollToBottom();
4901
4902
  }
4902
- if (props.config && props.config.type == "video") {
4903
+ if (config && config.type == "video") {
4903
4904
  //先请求问题列表
4904
4905
  videoPageQuestiionsList(3);
4905
4906
  }
@@ -5007,6 +5008,7 @@ var CustomerService = function(props) {
5007
5008
  }
5008
5009
  if (msg.finished) {
5009
5010
  setFinished(true); //发送结束
5011
+ videoPageQuestiionsList(2);
5010
5012
  // isPosition.current = true;
5011
5013
  setTimeout(function() {
5012
5014
  isPosition.current = true;
@@ -5407,6 +5409,7 @@ var CustomerService = function(props) {
5407
5409
  };
5408
5410
  //获取问题列表flag ==1 是问候消息 2,搜索列表 展示相关问题 ,3.视频页面,4.视频联想问题不够时,增加知识库联想问题
5409
5411
  var getQuestiionsList = function(value, flag) {
5412
+ // console.log(flag,'dlfkvdmflkvmdfklv');
5410
5413
  var data = {};
5411
5414
  if (flag == 1) {
5412
5415
  data = {
@@ -5456,7 +5459,7 @@ var CustomerService = function(props) {
5456
5459
  }
5457
5460
  }).then(function(res) {
5458
5461
  if (res.data.questions) {
5459
- setHotQuestionsList(function(questionList) {
5462
+ setQuestionsList(function(questionList) {
5460
5463
  return _to_consumable_array(questionList).concat(_to_consumable_array(res.data.questions));
5461
5464
  });
5462
5465
  }
@@ -5469,16 +5472,20 @@ var CustomerService = function(props) {
5469
5472
  var videoPageQuestiionsList = function() {
5470
5473
  var flag = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1;
5471
5474
  console.log(flag, props, 3333333);
5472
- var config = props.config;
5473
5475
  if (config && config.type == "video" && config.params) {
5474
5476
  var params = config.params;
5475
5477
  var videoId = params.videoId;
5476
5478
  var watchTime = params.videoProgress;
5477
5479
  var courseId = getQuery("yc_id");
5478
5480
  var sectionId = params.VideoBriefSummaryId;
5481
+ // let courseId="20899",
5482
+ // sectionId= "462347",
5483
+ // videoId= "29707",
5484
+ // watchTime= 262
5479
5485
  if (videoId && courseId && sectionId) {
5486
+ console.log(recommendeQuestionID.current, "recommendeQuestionID.current");
5480
5487
  http.post("".concat(urllocation, "/chat-service/public/v1.0/knowledge-base/questions:recommend"), {
5481
- "recommendedQuestions": [],
5488
+ "recommendedQuestions": recommendeQuestionID.current,
5482
5489
  "contexts": [
5483
5490
  {
5484
5491
  "type": "VIDEO",
@@ -5503,11 +5510,11 @@ var CustomerService = function(props) {
5503
5510
  } else {
5504
5511
  setHotQuestionsList(data);
5505
5512
  }
5506
- var ids = [];
5507
- data.map(function(str) {
5508
- ids.push(str.id);
5509
- });
5510
- recommendeQuestionID.current = Array.from(new Set(recommendeQuestionID.current.concat(ids)));
5513
+ // let ids:any[] = [];
5514
+ // data.map((str: { id: string; })=>{
5515
+ // ids.push(str.id);
5516
+ // })
5517
+ // recommendeQuestionID.current = Array.from(new Set(recommendeQuestionID.current.concat(ids)));
5511
5518
  resettingBottomHei();
5512
5519
  scrollToBottom();
5513
5520
  // console.log(data,99999);
@@ -6170,10 +6177,9 @@ var CustomerService = function(props) {
6170
6177
  return /*#__PURE__*/ jsx("li", {
6171
6178
  onClick: function() {
6172
6179
  sendMessage(list, 1);
6173
- if (props.config && props.config.type == "video") {
6174
- //先请求问题列表
6175
- videoPageQuestiionsList(2);
6176
- }
6180
+ recommendeQuestionID.current = recommendeQuestionID.current.concat(list.value);
6181
+ setBottomRecommendationQuestions([]);
6182
+ resettingBottomHei();
6177
6183
  },
6178
6184
  children: item.message == "抱歉,我暂时无法回答这样的问题。" ? list.question : /*#__PURE__*/ jsxs(Fragment, {
6179
6185
  children: [
@@ -6736,6 +6742,7 @@ var CustomerService = function(props) {
6736
6742
  "讲解这张图片涉及到的知识内容"
6737
6743
  ]
6738
6744
  }),
6745
+ /*#__PURE__*/ jsx("br", {}),
6739
6746
  /*#__PURE__*/ jsxs("p", {
6740
6747
  onClick: function() {
6741
6748
  setHistoryMessageList(function(historyMessageList) {
@@ -6799,7 +6806,7 @@ var CustomerService = function(props) {
6799
6806
  var roomList = contactsList;
6800
6807
  if (roomList.length > 0 && roomList[0].roomId != roomId) return;
6801
6808
  console.log(props, 333333);
6802
- if (props.config && props.config.type == "video") {
6809
+ if (config && config.type == "video") {
6803
6810
  getQuestiionsList(String(e.target.value), 3);
6804
6811
  } else {
6805
6812
  getQuestiionsList(String(e.target.value), 2);
@@ -6896,7 +6903,11 @@ var CustomerService = function(props) {
6896
6903
  onClick: function() {
6897
6904
  if (!finished) return;
6898
6905
  setSaveShowType(showType);
6899
- setShowType(5);
6906
+ if (showType == 3) {
6907
+ setShowScreenshot(true);
6908
+ } else {
6909
+ setShowType(5);
6910
+ }
6900
6911
  },
6901
6912
  children: /*#__PURE__*/ jsx(CustomScreenshot$1, {})
6902
6913
  })
@@ -7056,17 +7067,20 @@ var CustomerService = function(props) {
7056
7067
  });
7057
7068
  }
7058
7069
  };
7070
+ //视频页面底部推荐问题
7059
7071
  var renderBottomAssociationProblem = function() {
7060
7072
  return /*#__PURE__*/ jsx("div", {
7061
7073
  className: styles.issues_list_flag,
7062
- style: {
7063
- bottom: "".concat(buttomHei - 60, "px")
7064
- },
7065
7074
  id: "BottomAssociationProblem",
7066
7075
  children: bottomRecommendationQuestions.map(function(item) {
7067
7076
  return /*#__PURE__*/ jsx("p", {
7068
7077
  onClick: function() {
7069
7078
  sendMessage(item, 1);
7079
+ if (config && config.type == "video") {
7080
+ recommendeQuestionID.current = recommendeQuestionID.current.concat(item.id);
7081
+ setBottomRecommendationQuestions([]);
7082
+ resettingBottomHei();
7083
+ }
7070
7084
  },
7071
7085
  children: item.question
7072
7086
  }, item.id);
@@ -7278,7 +7292,7 @@ var CustomerService = function(props) {
7278
7292
  })
7279
7293
  ]
7280
7294
  }),
7281
- showType == 3 ? /*#__PURE__*/ jsxs("div", {
7295
+ showType == 3 && /*#__PURE__*/ jsxs("div", {
7282
7296
  className: "".concat(styles.ChatWindow_Drawer),
7283
7297
  id: "",
7284
7298
  onClick: function() {
@@ -7389,12 +7403,12 @@ var CustomerService = function(props) {
7389
7403
  })
7390
7404
  })
7391
7405
  ]
7392
- }) : "",
7393
- showType == 4 && /*#__PURE__*/ jsxs(Fragment, {
7406
+ }),
7407
+ (showType == 4 || showType == 5) && /*#__PURE__*/ jsxs(Fragment, {
7394
7408
  children: [
7395
7409
  /*#__PURE__*/ jsxs(Modal, {
7396
7410
  title: "AI助手",
7397
- open: true,
7411
+ open: showType == 4 ? true : false,
7398
7412
  onCancel: function() {
7399
7413
  onCancel();
7400
7414
  onEvent(serverName + serverUrl(), "click_智能问答_收起侧边栏", "提交");
@@ -7480,7 +7494,7 @@ var CustomerService = function(props) {
7480
7494
  })
7481
7495
  ]
7482
7496
  }),
7483
- /*#__PURE__*/ jsxs("div", {
7497
+ (showType == 4 || showType == 5) && /*#__PURE__*/ jsxs("div", {
7484
7498
  className: "".concat(styles.ChatWindow_Drawer),
7485
7499
  id: "",
7486
7500
  children: [
@@ -7578,7 +7592,7 @@ var CustomerService = function(props) {
7578
7592
  })
7579
7593
  ]
7580
7594
  }),
7581
- showType == 5 && imgBese64 && /*#__PURE__*/ jsx(ScreenshotTool$1, {
7595
+ (showType == 5 || showScreenshot) && imgBese64 && /*#__PURE__*/ jsx(ScreenshotTool$1, {
7582
7596
  imgBese64: imgBese64,
7583
7597
  saveScreenshotBese64: function(base64) {
7584
7598
  setScreenshotBese64(base64);
@@ -7587,9 +7601,15 @@ var CustomerService = function(props) {
7587
7601
  } else {
7588
7602
  setShowType(1);
7589
7603
  }
7604
+ setShowScreenshot(false);
7590
7605
  },
7591
7606
  cancelScreenshot: function() {
7592
- setShowType(1);
7607
+ if (saveShowType != -1) {
7608
+ setShowType(saveShowType);
7609
+ } else {
7610
+ setShowType(1);
7611
+ }
7612
+ setShowScreenshot(false);
7593
7613
  }
7594
7614
  }),
7595
7615
  viewBase64 && visible && /*#__PURE__*/ jsx(ViewImage$1, {