bhd-components 0.10.11 → 0.10.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.
Files changed (116) hide show
  1. package/README.md +1 -1
  2. package/dist/index.esm.es5.development.css +0 -766
  3. package/dist/index.esm.es5.development.js +162 -3085
  4. package/dist/index.esm.es5.production.css +1 -1
  5. package/dist/index.esm.es5.production.js +1 -1
  6. package/dist/vendor.esm.es5.development.js +1100 -2515
  7. package/dist/vendor.esm.es5.production.js +136 -136
  8. package/es2017/customerService/index.js +3 -1
  9. package/es2017/index.d.ts +0 -1
  10. package/es2017/index.js +0 -1
  11. package/es2017/utils/Date.d.ts +1 -2
  12. package/es2017/utils/Date.js +1 -2
  13. package/es2017/utils/dom.d.ts +1 -4
  14. package/es2017/utils/dom.js +1 -44
  15. package/esm/customerService/index.js +3 -1
  16. package/esm/index.d.ts +0 -1
  17. package/esm/index.js +0 -1
  18. package/esm/utils/Date.d.ts +1 -2
  19. package/esm/utils/Date.js +1 -2
  20. package/esm/utils/dom.d.ts +1 -4
  21. package/esm/utils/dom.js +1 -45
  22. package/package.json +1 -2
  23. package/es2017/AIMessageList/components/content/index.d.ts +0 -4
  24. package/es2017/AIMessageList/components/content/index.js +0 -29
  25. package/es2017/AIMessageList/components/content/index.module.less +0 -8
  26. package/es2017/AIMessageList/components/copyIcon/index.d.ts +0 -7
  27. package/es2017/AIMessageList/components/copyIcon/index.js +0 -73
  28. package/es2017/AIMessageList/components/copyIcon/index.module.less +0 -22
  29. package/es2017/AIMessageList/components/errorCallback/index.d.ts +0 -3
  30. package/es2017/AIMessageList/components/errorCallback/index.js +0 -6
  31. package/es2017/AIMessageList/components/fileList/fileIcon.d.ts +0 -3
  32. package/es2017/AIMessageList/components/fileList/fileIcon.js +0 -970
  33. package/es2017/AIMessageList/components/fileList/index.d.ts +0 -4
  34. package/es2017/AIMessageList/components/fileList/index.js +0 -315
  35. package/es2017/AIMessageList/components/fileList/index.module.less +0 -95
  36. package/es2017/AIMessageList/components/footer/index.d.ts +0 -10
  37. package/es2017/AIMessageList/components/footer/index.js +0 -360
  38. package/es2017/AIMessageList/components/footer/index.module.less +0 -51
  39. package/es2017/AIMessageList/components/header/index.d.ts +0 -9
  40. package/es2017/AIMessageList/components/header/index.js +0 -94
  41. package/es2017/AIMessageList/components/header/index.module.less +0 -31
  42. package/es2017/AIMessageList/components/referencesIcon/index.d.ts +0 -9
  43. package/es2017/AIMessageList/components/referencesIcon/index.js +0 -63
  44. package/es2017/AIMessageList/components/referencesIcon/index.module.less +0 -13
  45. package/es2017/AIMessageList/components/refreshBtn/index.d.ts +0 -4
  46. package/es2017/AIMessageList/components/refreshBtn/index.js +0 -29
  47. package/es2017/AIMessageList/components/refreshBtn/index.module.less +0 -12
  48. package/es2017/AIMessageList/components/remarkBtn/index.d.ts +0 -4
  49. package/es2017/AIMessageList/components/remarkBtn/index.js +0 -51
  50. package/es2017/AIMessageList/components/remarkBtn/index.module.less +0 -13
  51. package/es2017/AIMessageList/components/renderReferrnce/index.d.ts +0 -10
  52. package/es2017/AIMessageList/components/renderReferrnce/index.js +0 -68
  53. package/es2017/AIMessageList/components/renderReferrnce/index.module.less +0 -64
  54. package/es2017/AIMessageList/components/sendBtn/index.d.ts +0 -4
  55. package/es2017/AIMessageList/components/sendBtn/index.js +0 -51
  56. package/es2017/AIMessageList/components/sendBtn/index.module.less +0 -25
  57. package/es2017/AIMessageList/components/uplodaFileBtn/index.d.ts +0 -4
  58. package/es2017/AIMessageList/components/uplodaFileBtn/index.js +0 -33
  59. package/es2017/AIMessageList/components/uplodaFileBtn/index.module.less +0 -5
  60. package/es2017/AIMessageList/components/virtuosoList/index.d.ts +0 -5
  61. package/es2017/AIMessageList/components/virtuosoList/index.js +0 -689
  62. package/es2017/AIMessageList/components/virtuosoList/index.module.less +0 -467
  63. package/es2017/AIMessageList/index.d.ts +0 -4
  64. package/es2017/AIMessageList/index.js +0 -58
  65. package/es2017/AIMessageList/index.module.less +0 -20
  66. package/es2017/AIMessageList/type.d.ts +0 -306
  67. package/es2017/images/loading2.js +0 -2
  68. package/es2017/utils/number.d.ts +0 -1
  69. package/es2017/utils/number.js +0 -9
  70. package/esm/AIMessageList/components/content/index.d.ts +0 -4
  71. package/esm/AIMessageList/components/content/index.js +0 -29
  72. package/esm/AIMessageList/components/content/index.module.less +0 -8
  73. package/esm/AIMessageList/components/copyIcon/index.d.ts +0 -7
  74. package/esm/AIMessageList/components/copyIcon/index.js +0 -76
  75. package/esm/AIMessageList/components/copyIcon/index.module.less +0 -22
  76. package/esm/AIMessageList/components/errorCallback/index.d.ts +0 -3
  77. package/esm/AIMessageList/components/errorCallback/index.js +0 -6
  78. package/esm/AIMessageList/components/fileList/fileIcon.d.ts +0 -3
  79. package/esm/AIMessageList/components/fileList/fileIcon.js +0 -970
  80. package/esm/AIMessageList/components/fileList/index.d.ts +0 -4
  81. package/esm/AIMessageList/components/fileList/index.js +0 -337
  82. package/esm/AIMessageList/components/fileList/index.module.less +0 -95
  83. package/esm/AIMessageList/components/footer/index.d.ts +0 -10
  84. package/esm/AIMessageList/components/footer/index.js +0 -376
  85. package/esm/AIMessageList/components/footer/index.module.less +0 -51
  86. package/esm/AIMessageList/components/header/index.d.ts +0 -9
  87. package/esm/AIMessageList/components/header/index.js +0 -96
  88. package/esm/AIMessageList/components/header/index.module.less +0 -31
  89. package/esm/AIMessageList/components/referencesIcon/index.d.ts +0 -9
  90. package/esm/AIMessageList/components/referencesIcon/index.js +0 -65
  91. package/esm/AIMessageList/components/referencesIcon/index.module.less +0 -13
  92. package/esm/AIMessageList/components/refreshBtn/index.d.ts +0 -4
  93. package/esm/AIMessageList/components/refreshBtn/index.js +0 -31
  94. package/esm/AIMessageList/components/refreshBtn/index.module.less +0 -12
  95. package/esm/AIMessageList/components/remarkBtn/index.d.ts +0 -4
  96. package/esm/AIMessageList/components/remarkBtn/index.js +0 -51
  97. package/esm/AIMessageList/components/remarkBtn/index.module.less +0 -13
  98. package/esm/AIMessageList/components/renderReferrnce/index.d.ts +0 -10
  99. package/esm/AIMessageList/components/renderReferrnce/index.js +0 -72
  100. package/esm/AIMessageList/components/renderReferrnce/index.module.less +0 -64
  101. package/esm/AIMessageList/components/sendBtn/index.d.ts +0 -4
  102. package/esm/AIMessageList/components/sendBtn/index.js +0 -53
  103. package/esm/AIMessageList/components/sendBtn/index.module.less +0 -25
  104. package/esm/AIMessageList/components/uplodaFileBtn/index.d.ts +0 -4
  105. package/esm/AIMessageList/components/uplodaFileBtn/index.js +0 -33
  106. package/esm/AIMessageList/components/uplodaFileBtn/index.module.less +0 -5
  107. package/esm/AIMessageList/components/virtuosoList/index.d.ts +0 -5
  108. package/esm/AIMessageList/components/virtuosoList/index.js +0 -666
  109. package/esm/AIMessageList/components/virtuosoList/index.module.less +0 -467
  110. package/esm/AIMessageList/index.d.ts +0 -4
  111. package/esm/AIMessageList/index.js +0 -58
  112. package/esm/AIMessageList/index.module.less +0 -20
  113. package/esm/AIMessageList/type.d.ts +0 -306
  114. package/esm/images/loading2.js +0 -2
  115. package/esm/utils/number.d.ts +0 -1
  116. package/esm/utils/number.js +0 -9
@@ -1,7 +1,7 @@
1
- import { z as zhCN, A as App, _ as _object_spread, a as AntdMessage, M as Modal$1, b as AntdNotification, C as ConfigProvider, c as _extends, d as _object_destructuring_empty, j as jsx, e as _object_spread_props, f as jsxs, t as transform, S as StyleProvider, g as _sliced_to_array, T as Tooltip, h as Table$2, i as _to_consumable_array, P as Pagination$1, I as Icon, k as Select, l as CaretDownOutlined, m as _inherits, n as _create_super, o as _create_class, p as _class_call_check, q as _define_property, r as _assert_this_initialized, s as _async_to_generator, u as MinusOutlined, v as PlusOutlined, L as LeftOutlined, R as RightOutlined, w as __generator, x as Input, y as SearchOutlined, B as Spin, D as CloseOutlined, X, E as I, H, F as html2canvas$1, G as Remarkable, J as Drawer, K as HighlightJS, Z as ZoomInOutlined, N as DatePicker, O as Button, Q as l, U as Upload, V as cn, W as Popover, Y as DoubleRightOutlined, $ as CloseCircleFilled, a0 as Divider, a1 as fetchEventSource } from './vendor.esm.es5.development.js';
2
- export { a2 as Affix, a3 as Alert, a4 as Anchor, a as AntdMessage, A as App, a5 as AutoComplete, a6 as Avatar, a8 as BackTop, a9 as Badge, aa as Breadcrumb, O as Button, ab as Calendar, ac as Card, ad as Carousel, ae as Cascader, af as Checkbox, ag as Col, ah as Collapse, N as DatePicker, ai as Descriptions, a0 as Divider, J as Drawer, aj as Dropdown, ak as Empty, a7 as FloatButton, al as Form, am as Grid, an as Image, x as Input, ao as InputNumber, ap as Layout, aq as List, ar as Mentions, as as Menu, M as Modal, at as Popconfirm, W as Popover, au as Progress, aR as QRCode, av as Radio, aw as Rate, ax as Result, ay as Row, az as Segmented, k as Select, aA as Skeleton, aB as Slider, aC as Space, B as Spin, aD as Statistic, aE as Steps, aF as Switch, aG as Tabs, aH as Tag, aJ as TimePicker, aK as Timeline, T as Tooltip, aL as Tour, aM as Transfer, aN as Tree, aO as TreeSelect, aP as Typography, U as Upload, aQ as Watermark, aT as en_US, b as notification, aI as theme, aS as version, z as zh_CN } from './vendor.esm.es5.development.js';
1
+ import { z as zhCN, A as App, _ as _object_spread, a as AntdMessage, M as Modal$1, b as AntdNotification, C as ConfigProvider, c as _extends, d as _object_destructuring_empty, j as jsx, e as _object_spread_props, f as jsxs, t as transform, S as StyleProvider, g as _sliced_to_array, T as Tooltip, h as Table$2, i as _to_consumable_array, P as Pagination$1, I as Icon, k as Select, l as CaretDownOutlined, m as _inherits, n as _create_super, o as _create_class, p as _class_call_check, q as _define_property, r as _assert_this_initialized, s as _async_to_generator, u as MinusOutlined, v as PlusOutlined, L as LeftOutlined, R as RightOutlined, w as __generator, x as Input$1, y as SearchOutlined, B as Spin, D as CloseOutlined, X, E as I, H, F as html2canvas$1, G as Remarkable, J as Drawer, K as HighlightJS, Z as ZoomInOutlined, N as DatePicker, O as Button, Q as l, U as Upload } from './vendor.esm.es5.development.js';
2
+ export { V as Affix, W as Alert, Y as Anchor, a as AntdMessage, A as App, $ as AutoComplete, a0 as Avatar, a2 as BackTop, a3 as Badge, a4 as Breadcrumb, O as Button, a5 as Calendar, a6 as Card, a7 as Carousel, a8 as Cascader, a9 as Checkbox, aa as Col, ab as Collapse, N as DatePicker, ac as Descriptions, ad as Divider, J as Drawer, ae as Dropdown, af as Empty, a1 as FloatButton, ag as Form, ah as Grid, ai as Image, x as Input, aj as InputNumber, ak as Layout, al as List, am as Mentions, an as Menu, M as Modal, ao as Popconfirm, ap as Popover, aq as Progress, aN as QRCode, ar as Radio, as as Rate, at as Result, au as Row, av as Segmented, k as Select, aw as Skeleton, ax as Slider, ay as Space, B as Spin, az as Statistic, aA as Steps, aB as Switch, aC as Tabs, aD as Tag, aF as TimePicker, aG as Timeline, T as Tooltip, aH as Tour, aI as Transfer, aJ as Tree, aK as TreeSelect, aL as Typography, U as Upload, aM as Watermark, aP as en_US, b as notification, aE as theme, aO as version, z as zh_CN } from './vendor.esm.es5.development.js';
3
3
  import * as React from 'react';
4
- import React__default, { useState, useRef, useEffect, useLayoutEffect, forwardRef, useImperativeHandle, useCallback, useMemo } from 'react';
4
+ import React__default, { useState, useRef, useEffect, useLayoutEffect, forwardRef, useImperativeHandle, useCallback } from 'react';
5
5
  import { Fragment } from 'react/jsx-runtime';
6
6
  import { render } from 'react-dom';
7
7
 
@@ -162,7 +162,7 @@ var TextTootip = function(props) {
162
162
  };
163
163
  var TextTootip$1 = TextTootip;
164
164
 
165
- var modules_63b47c51$o = {"Table":"index_module_Table__fa669d28","SmallTable":"index_module_SmallTable__fa669d28","columnTootipClassName":"index_module_columnTootipClassName__fa669d28"};
165
+ var modules_63b47c51$b = {"Table":"index_module_Table__fa669d28","SmallTable":"index_module_SmallTable__fa669d28","columnTootipClassName":"index_module_columnTootipClassName__fa669d28"};
166
166
 
167
167
  var widthPercentage = /^\d+%$/;
168
168
  var widthPx = /^\d+px$/;
@@ -290,7 +290,7 @@ var Table = function(props) {
290
290
  },
291
291
  title: text,
292
292
  trigger: "hover",
293
- overlayClassName: columnTootipClassName || modules_63b47c51$o.columnTootipClassName,
293
+ overlayClassName: columnTootipClassName || modules_63b47c51$b.columnTootipClassName,
294
294
  color: columnTootipColor || "#FFF",
295
295
  children: /*#__PURE__*/ jsx("span", {
296
296
  children: text
@@ -401,7 +401,7 @@ var Table = function(props) {
401
401
  }
402
402
  });
403
403
  return /*#__PURE__*/ jsx("div", {
404
- className: "".concat(modules_63b47c51$o.Table, " ").concat(kind === "simple" ? modules_63b47c51$o.SmallTable : ""),
404
+ className: "".concat(modules_63b47c51$b.Table, " ").concat(kind === "simple" ? modules_63b47c51$b.SmallTable : ""),
405
405
  ref: tableRef,
406
406
  children: /*#__PURE__*/ jsx(Table$2, _object_spread({}, config))
407
407
  });
@@ -604,12 +604,12 @@ var i18Conversion$1 = i18Conversion;
604
604
  };
605
605
  var BhdTableSimple$1 = BhdTableSimple;
606
606
 
607
- var modules_63b47c51$n = {"customSuccess":"index_module_customSuccess__70ac51ed","customWarning":"index_module_customWarning__70ac51ed","customError":"index_module_customError__70ac51ed","customInfo":"index_module_customInfo__70ac51ed"};
607
+ var modules_63b47c51$a = {"customSuccess":"index_module_customSuccess__70ac51ed","customWarning":"index_module_customWarning__70ac51ed","customError":"index_module_customError__70ac51ed","customInfo":"index_module_customInfo__70ac51ed"};
608
608
 
609
609
  var _message, _message1, _message2, _message3, _message4, _message5, _message6, _message7, _message8;
610
610
  var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
611
611
  customSuccess: function(config) {
612
- var className = modules_63b47c51$n.customSuccess;
612
+ var className = modules_63b47c51$a.customSuccess;
613
613
  if (typeof config === "string") {
614
614
  return message$1.success({
615
615
  content: config,
@@ -621,7 +621,7 @@ var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
621
621
  }));
622
622
  },
623
623
  customWarning: function(config) {
624
- var className = modules_63b47c51$n.customWarning;
624
+ var className = modules_63b47c51$a.customWarning;
625
625
  if (typeof config === "string") {
626
626
  return message$1.warning({
627
627
  content: config,
@@ -633,7 +633,7 @@ var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
633
633
  }));
634
634
  },
635
635
  customError: function(config) {
636
- var className = modules_63b47c51$n.customError;
636
+ var className = modules_63b47c51$a.customError;
637
637
  if (typeof config === "string") {
638
638
  return message$1.error({
639
639
  content: config,
@@ -645,7 +645,7 @@ var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
645
645
  }));
646
646
  },
647
647
  customInfo: function(config) {
648
- var className = modules_63b47c51$n.customInfo;
648
+ var className = modules_63b47c51$a.customInfo;
649
649
  if (typeof config === "string") {
650
650
  return message$1.info({
651
651
  content: config,
@@ -713,10 +713,10 @@ var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
713
713
  });
714
714
  var message = BhdMessage;
715
715
 
716
- var modules_63b47c51$m = {"pagination":"index_module_pagination__db6ba815"};
716
+ var modules_63b47c51$9 = {"pagination":"index_module_pagination__db6ba815"};
717
717
 
718
718
  var BhdPagination = function(props) {
719
- var className = "".concat(modules_63b47c51$m.pagination, " ").concat(props.className || "");
719
+ var className = "".concat(modules_63b47c51$9.pagination, " ").concat(props.className || "");
720
720
  return /*#__PURE__*/ jsx(Pagination$1, _object_spread_props(_object_spread({}, props), {
721
721
  className: className
722
722
  }));
@@ -1282,7 +1282,7 @@ var CustomWenhaoRound = function(props) {
1282
1282
  };
1283
1283
  var CustomWenhaoRound$1 = CustomWenhaoRound;
1284
1284
 
1285
- var modules_63b47c51$l = {"BhdTableSelect":"index_module_BhdTableSelect__67bd66da"};
1285
+ var modules_63b47c51$8 = {"BhdTableSelect":"index_module_BhdTableSelect__67bd66da"};
1286
1286
 
1287
1287
  var BhdTableSelect = function(props) {
1288
1288
  var _props_className = props.// initOption=[],
@@ -1336,7 +1336,7 @@ var BhdTableSelect = function(props) {
1336
1336
  suffixIcon: suffixIcon ? suffixIcon : /*#__PURE__*/ jsx(CaretDownOutlined, {})
1337
1337
  });
1338
1338
  return /*#__PURE__*/ jsx("div", {
1339
- className: "".concat(modules_63b47c51$l.BhdTableSelect, " ").concat(className),
1339
+ className: "".concat(modules_63b47c51$8.BhdTableSelect, " ").concat(className),
1340
1340
  ref: tableSelectRef,
1341
1341
  children: /*#__PURE__*/ jsx(Select, _object_spread_props(_object_spread({}, config), {
1342
1342
  children: children
@@ -1346,7 +1346,7 @@ var BhdTableSelect = function(props) {
1346
1346
  BhdTableSelect.Option = Select.Option;
1347
1347
  var BhdTableSelect$1 = BhdTableSelect;
1348
1348
 
1349
- var modules_63b47c51$k = {"titleBar":"index_module_titleBar__e61b506c","left":"index_module_left__e61b506c","leftIcon":"index_module_leftIcon__e61b506c","leftContent":"index_module_leftContent__e61b506c","leftTitle":"index_module_leftTitle__e61b506c","leftSubTitle":"index_module_leftSubTitle__e61b506c","right":"index_module_right__e61b506c"};
1349
+ var modules_63b47c51$7 = {"titleBar":"index_module_titleBar__e61b506c","left":"index_module_left__e61b506c","leftIcon":"index_module_leftIcon__e61b506c","leftContent":"index_module_leftContent__e61b506c","leftTitle":"index_module_leftTitle__e61b506c","leftSubTitle":"index_module_leftSubTitle__e61b506c","right":"index_module_right__e61b506c"};
1350
1350
 
1351
1351
  var TitleBar = function(props) {
1352
1352
  var title = props.title, leftIcon = props.leftIcon, subTitle = props.subTitle, rightContent = props.rightContent, _props_wrapClassName = props.wrapClassName, wrapClassName = _props_wrapClassName === void 0 ? "" : _props_wrapClassName, _props_rightMaxWidth = props.rightMaxWidth, rightMaxWidth = _props_rightMaxWidth === void 0 ? 45 : _props_rightMaxWidth, _props_leftIconClassName = props.leftIconClassName, leftIconClassName = _props_leftIconClassName === void 0 ? "" : _props_leftIconClassName, _props_leftTitleClassName = props.leftTitleClassName, leftTitleClassName = _props_leftTitleClassName === void 0 ? "" : _props_leftTitleClassName, _props_leftSubTitleClassName = props.leftSubTitleClassName, leftSubTitleClassName = _props_leftSubTitleClassName === void 0 ? "" : _props_leftSubTitleClassName, _props_rightClassName = props.rightClassName, rightClassName = _props_rightClassName === void 0 ? "" : _props_rightClassName, _props_leftClassName = props.leftClassName, leftClassName = _props_leftClassName === void 0 ? "" : _props_leftClassName;
@@ -1395,25 +1395,25 @@ var TitleBar = function(props) {
1395
1395
  screenWidth
1396
1396
  ]);
1397
1397
  return /*#__PURE__*/ jsxs("div", {
1398
- className: "".concat(modules_63b47c51$k.titleBar, " ").concat(wrapClassName),
1398
+ className: "".concat(modules_63b47c51$7.titleBar, " ").concat(wrapClassName),
1399
1399
  ref: titleBarRef,
1400
1400
  children: [
1401
1401
  /*#__PURE__*/ jsxs("div", {
1402
- className: "".concat(modules_63b47c51$k.left, " ").concat(leftClassName),
1402
+ className: "".concat(modules_63b47c51$7.left, " ").concat(leftClassName),
1403
1403
  children: [
1404
1404
  leftIcon && /*#__PURE__*/ jsx("div", {
1405
- className: "".concat(modules_63b47c51$k.leftIcon, " ").concat(leftIconClassName),
1405
+ className: "".concat(modules_63b47c51$7.leftIcon, " ").concat(leftIconClassName),
1406
1406
  children: leftIcon
1407
1407
  }),
1408
1408
  /*#__PURE__*/ jsxs("div", {
1409
- className: modules_63b47c51$k.leftContent,
1409
+ className: modules_63b47c51$7.leftContent,
1410
1410
  children: [
1411
1411
  /*#__PURE__*/ jsx("div", {
1412
- className: "".concat(modules_63b47c51$k.leftTitle, " ").concat(leftTitleClassName),
1412
+ className: "".concat(modules_63b47c51$7.leftTitle, " ").concat(leftTitleClassName),
1413
1413
  children: title
1414
1414
  }),
1415
1415
  subTitle && /*#__PURE__*/ jsx("div", {
1416
- className: "".concat(modules_63b47c51$k.leftSubTitle, " ").concat(leftSubTitleClassName),
1416
+ className: "".concat(modules_63b47c51$7.leftSubTitle, " ").concat(leftSubTitleClassName),
1417
1417
  children: subTitle
1418
1418
  })
1419
1419
  ]
@@ -1421,7 +1421,7 @@ var TitleBar = function(props) {
1421
1421
  ]
1422
1422
  }),
1423
1423
  rightContent && /*#__PURE__*/ jsx("div", {
1424
- className: "".concat(modules_63b47c51$k.right, " ").concat(rightClassName),
1424
+ className: "".concat(modules_63b47c51$7.right, " ").concat(rightClassName),
1425
1425
  ref: rightContentRef,
1426
1426
  children: renderRightContent()
1427
1427
  })
@@ -1430,57 +1430,14 @@ var TitleBar = function(props) {
1430
1430
  };
1431
1431
  var TitleBar$1 = TitleBar;
1432
1432
 
1433
- var modules_63b47c51$j = {"AppViewImage":"index_module_AppViewImage__efd7e21c","viewImgBody":"index_module_viewImgBody__efd7e21c","viewImgContent":"index_module_viewImgContent__efd7e21c","viewImgAction":"index_module_viewImgAction__efd7e21c","actionTop":"index_module_actionTop__efd7e21c","viewImgBody_load":"index_module_viewImgBody_load__efd7e21c","viewImgBody_pic":"index_module_viewImgBody_pic__efd7e21c","viewImgActionClose":"index_module_viewImgActionClose__efd7e21c","viewImgBody_pre":"index_module_viewImgBody_pre__efd7e21c","viewImgBody_next":"index_module_viewImgBody_next__efd7e21c","viewImgBodyScale":"index_module_viewImgBodyScale__efd7e21c","viewImgBodyScale_minu":"index_module_viewImgBodyScale_minu__efd7e21c","viewImgBodyScale_add":"index_module_viewImgBodyScale_add__efd7e21c","viewImgBodyScale_value":"index_module_viewImgBodyScale_value__efd7e21c","viewImgInfo":"index_module_viewImgInfo__efd7e21c"};
1433
+ var modules_63b47c51$6 = {"AppViewImage":"index_module_AppViewImage__efd7e21c","viewImgBody":"index_module_viewImgBody__efd7e21c","viewImgContent":"index_module_viewImgContent__efd7e21c","viewImgAction":"index_module_viewImgAction__efd7e21c","actionTop":"index_module_actionTop__efd7e21c","viewImgBody_load":"index_module_viewImgBody_load__efd7e21c","viewImgBody_pic":"index_module_viewImgBody_pic__efd7e21c","viewImgActionClose":"index_module_viewImgActionClose__efd7e21c","viewImgBody_pre":"index_module_viewImgBody_pre__efd7e21c","viewImgBody_next":"index_module_viewImgBody_next__efd7e21c","viewImgBodyScale":"index_module_viewImgBodyScale__efd7e21c","viewImgBodyScale_minu":"index_module_viewImgBodyScale_minu__efd7e21c","viewImgBodyScale_add":"index_module_viewImgBodyScale_add__efd7e21c","viewImgBodyScale_value":"index_module_viewImgBodyScale_value__efd7e21c","viewImgInfo":"index_module_viewImgInfo__efd7e21c"};
1434
1434
 
1435
1435
  //获取css样式
1436
1436
  var getStyle = function getStyle(dom, key) {
1437
1437
  return dom.currentStyle ? parseFloat(dom.currentStyle[key]) : parseFloat(document.defaultView.getComputedStyle(dom)[key]);
1438
1438
  };
1439
- // 事件委托函数封装
1440
- var delegate$1 = function(element, eventType, selector, callback) {
1441
- if (!(element instanceof HTMLElement)) {
1442
- throw new Error("第一个参数必须是一个HTMLElement");
1443
- }
1444
- if (typeof eventType !== "string") {
1445
- throw new Error("第二个参数必须是字符串");
1446
- }
1447
- if (typeof selector !== "string") {
1448
- throw new Error("第三个参数必须是字符串");
1449
- }
1450
- if (typeof callback !== "function") {
1451
- throw new Error("第四个参数必须是一个函数");
1452
- }
1453
- var fn = function(event) {
1454
- var possibleTargets = element.querySelectorAll(selector);
1455
- for(var i = 0; i < possibleTargets.length; i++){
1456
- if (possibleTargets[i] === event.target || possibleTargets[i].contains(event.target)) {
1457
- callback.call(possibleTargets[i], event, possibleTargets[i]);
1458
- }
1459
- }
1460
- };
1461
- element.addEventListener(eventType, fn);
1462
- return function() {
1463
- element.removeEventListener(eventType, fn);
1464
- };
1465
- };
1466
- var findParent$1 = function(e, className) {
1467
- while(e && !e.classList.contains(className)){
1468
- e = e.parentElement;
1469
- }
1470
- return e;
1471
- };
1472
- //复制内容
1473
- var copyText$1 = function(text) {
1474
- var tempInput = document.createElement("textarea");
1475
- document.body.appendChild(tempInput);
1476
- tempInput.value = text;
1477
- tempInput.select();
1478
- document.execCommand("copy");
1479
- document.body.removeChild(tempInput);
1480
- return true;
1481
- };
1482
1439
 
1483
- var modules_63b47c51$i = {"confirm":"index_module_confirm__4ee7d3e7","success":"index_module_success__4ee7d3e7","custom":"index_module_custom__4ee7d3e7","noCancel":"index_module_noCancel__4ee7d3e7","noButton":"index_module_noButton__4ee7d3e7","haveComfirm":"index_module_haveComfirm__4ee7d3e7"};
1440
+ var modules_63b47c51$5 = {"confirm":"index_module_confirm__4ee7d3e7","success":"index_module_success__4ee7d3e7","custom":"index_module_custom__4ee7d3e7","noCancel":"index_module_noCancel__4ee7d3e7","noButton":"index_module_noButton__4ee7d3e7","haveComfirm":"index_module_haveComfirm__4ee7d3e7"};
1484
1441
 
1485
1442
  var initConFirmModal = function(obj) {
1486
1443
  var title = obj.title, content = obj.content, _obj_cancelBtn = obj.cancelBtn, cancelBtn = _obj_cancelBtn === void 0 ? true : _obj_cancelBtn, _obj_okText = obj.okText, okText = _obj_okText === void 0 ? "确定" : _obj_okText, _obj_keyboard = obj.keyboard, keyboard = _obj_keyboard === void 0 ? false : _obj_keyboard, _obj_cancelText = obj.cancelText, cancelText = _obj_cancelText === void 0 ? "取消" : _obj_cancelText, _obj_autoFocusButton = obj.autoFocusButton, autoFocusButton = _obj_autoFocusButton === void 0 ? null : _obj_autoFocusButton;
@@ -1516,7 +1473,7 @@ var initConFirmModal = function(obj) {
1516
1473
  })
1517
1474
  ]
1518
1475
  }),
1519
- className: "".concat(obj.className || "", " ").concat(modules_63b47c51$i.confirm, " ").concat(cancelBtn ? "" : modules_63b47c51$i.noCancel)
1476
+ className: "".concat(obj.className || "", " ").concat(modules_63b47c51$5.confirm, " ").concat(cancelBtn ? "" : modules_63b47c51$5.noCancel)
1520
1477
  });
1521
1478
  };
1522
1479
  var initSuccessModal = function(obj) {
@@ -1554,7 +1511,7 @@ var initSuccessModal = function(obj) {
1554
1511
  })
1555
1512
  ]
1556
1513
  }),
1557
- className: "".concat(obj.className || "", " ").concat(modules_63b47c51$i.success, " ").concat(cancelBtn ? "" : modules_63b47c51$i.noCancel)
1514
+ className: "".concat(obj.className || "", " ").concat(modules_63b47c51$5.success, " ").concat(cancelBtn ? "" : modules_63b47c51$5.noCancel)
1558
1515
  });
1559
1516
  };
1560
1517
  var initCustomModal = function(obj) {
@@ -1580,7 +1537,7 @@ var initCustomModal = function(obj) {
1580
1537
  })
1581
1538
  ]
1582
1539
  }),
1583
- className: "".concat(modules_63b47c51$i.custom, " ").concat(obj.className || "", " ").concat(cancelBtn ? "" : okBtn ? modules_63b47c51$i.haveComfirm : modules_63b47c51$i.noButton)
1540
+ className: "".concat(modules_63b47c51$5.custom, " ").concat(obj.className || "", " ").concat(cancelBtn ? "" : okBtn ? modules_63b47c51$5.haveComfirm : modules_63b47c51$5.noButton)
1584
1541
  });
1585
1542
  };
1586
1543
  var initInfoModal = function(obj) {
@@ -1617,7 +1574,7 @@ var initInfoModal = function(obj) {
1617
1574
  })
1618
1575
  ]
1619
1576
  }),
1620
- className: "".concat(obj.className || "", " ").concat(modules_63b47c51$i.success, " ").concat(cancelBtn ? "" : modules_63b47c51$i.noCancel)
1577
+ className: "".concat(obj.className || "", " ").concat(modules_63b47c51$5.success, " ").concat(cancelBtn ? "" : modules_63b47c51$5.noCancel)
1621
1578
  });
1622
1579
  };
1623
1580
  var initWarnModal = function(obj) {
@@ -1654,7 +1611,7 @@ var initWarnModal = function(obj) {
1654
1611
  })
1655
1612
  ]
1656
1613
  }),
1657
- className: "".concat(obj.className || "", " ").concat(modules_63b47c51$i.confirm, " ").concat(cancelBtn ? "" : modules_63b47c51$i.noCancel, " ")
1614
+ className: "".concat(obj.className || "", " ").concat(modules_63b47c51$5.confirm, " ").concat(cancelBtn ? "" : modules_63b47c51$5.noCancel, " ")
1658
1615
  });
1659
1616
  };
1660
1617
  var BhdTipModal = {
@@ -1768,7 +1725,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
1768
1725
  _define_property(_assert_this_initialized(_this), "moveImg", function(ev) {
1769
1726
  var _this_state = _this.state, imgLeft = _this_state.imgLeft, imgTop = _this_state.imgTop;
1770
1727
  ev.preventDefault();
1771
- var dom = document.getElementsByClassName("".concat(modules_63b47c51$j.viewImgBody_pic))[0];
1728
+ var dom = document.getElementsByClassName("".concat(modules_63b47c51$6.viewImgBody_pic))[0];
1772
1729
  if (!dom) return;
1773
1730
  if (imgLeft == "auto") {
1774
1731
  imgLeft = getStyle(dom, "left");
@@ -2071,24 +2028,24 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
2071
2028
  var _this_state = this.state, scaleValue = _this_state.scaleValue, imgSrc = _this_state.imgSrc, imgLeft = _this_state.imgLeft, imgTop = _this_state.imgTop, rotateValue = _this_state.rotateValue, loading = _this_state.loading, multiSelect = _this_state.multiSelect, imgError = _this_state.imgError;
2072
2029
  var _this_props = this.props, content = _this_props.content, download = _this_props.download;
2073
2030
  return /*#__PURE__*/ jsxs("div", {
2074
- className: modules_63b47c51$j.viewImgBody,
2031
+ className: modules_63b47c51$6.viewImgBody,
2075
2032
  children: [
2076
2033
  /*#__PURE__*/ jsxs("div", {
2077
- className: modules_63b47c51$j.viewImgContent,
2034
+ className: modules_63b47c51$6.viewImgContent,
2078
2035
  children: [
2079
2036
  this.state.actionCloseFlag === 1 && /*#__PURE__*/ jsx("div", {
2080
- className: "".concat(modules_63b47c51$j.viewImgAction, " ").concat(modules_63b47c51$j.actionTop),
2037
+ className: "".concat(modules_63b47c51$6.viewImgAction, " ").concat(modules_63b47c51$6.actionTop),
2081
2038
  children: /*#__PURE__*/ jsx("span", {
2082
2039
  // id="actionClose"
2083
2040
  // style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
2084
- className: modules_63b47c51$j.viewImgActionClose,
2041
+ className: modules_63b47c51$6.viewImgActionClose,
2085
2042
  title: "关闭",
2086
2043
  onClick: this.close,
2087
2044
  children: /*#__PURE__*/ jsx(CustomClose$1, {})
2088
2045
  })
2089
2046
  }),
2090
2047
  /*#__PURE__*/ jsxs("div", {
2091
- className: modules_63b47c51$j.viewImgAction,
2048
+ className: modules_63b47c51$6.viewImgAction,
2092
2049
  children: [
2093
2050
  /*#__PURE__*/ jsx("span", {
2094
2051
  title: "旋转",
@@ -2101,10 +2058,10 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
2101
2058
  children: /*#__PURE__*/ jsx(CustomDownLoad$1, {})
2102
2059
  }),
2103
2060
  /*#__PURE__*/ jsxs("div", {
2104
- className: modules_63b47c51$j.viewImgBodyScale,
2061
+ className: modules_63b47c51$6.viewImgBodyScale,
2105
2062
  children: [
2106
2063
  /*#__PURE__*/ jsx("span", {
2107
- className: modules_63b47c51$j.viewImgBodyScale_minu,
2064
+ className: modules_63b47c51$6.viewImgBodyScale_minu,
2108
2065
  onClick: function() {
2109
2066
  scaleValue = scaleValue - 10;
2110
2067
  _this.scaleChange(scaleValue);
@@ -2112,7 +2069,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
2112
2069
  children: /*#__PURE__*/ jsx(MinusOutlined, {})
2113
2070
  }),
2114
2071
  /*#__PURE__*/ jsxs("span", {
2115
- className: modules_63b47c51$j.viewImgBodyScale_value,
2072
+ className: modules_63b47c51$6.viewImgBodyScale_value,
2116
2073
  onClick: this.reset,
2117
2074
  children: [
2118
2075
  scaleValue,
@@ -2120,7 +2077,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
2120
2077
  ]
2121
2078
  }),
2122
2079
  /*#__PURE__*/ jsx("span", {
2123
- className: modules_63b47c51$j.viewImgBodyScale_add,
2080
+ className: modules_63b47c51$6.viewImgBodyScale_add,
2124
2081
  onClick: function() {
2125
2082
  scaleValue = scaleValue + 10;
2126
2083
  _this.scaleChange(scaleValue);
@@ -2132,11 +2089,11 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
2132
2089
  ]
2133
2090
  }),
2134
2091
  /*#__PURE__*/ jsxs("div", {
2135
- className: modules_63b47c51$j.viewImgBody,
2092
+ className: modules_63b47c51$6.viewImgBody,
2136
2093
  children: [
2137
2094
  loading ? /*#__PURE__*/ jsx("img", {
2138
2095
  src: Loading,
2139
- className: modules_63b47c51$j.viewImgBody_load
2096
+ className: modules_63b47c51$6.viewImgBody_load
2140
2097
  }, "load") : imgError ? /*#__PURE__*/ jsx("div", {
2141
2098
  style: {
2142
2099
  color: "#FFFFFF"
@@ -2187,13 +2144,13 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
2187
2144
  left: imgLeft == "auto" ? "auto" : imgLeft + "px",
2188
2145
  top: imgTop == "auto" ? "auto" : imgTop + "px"
2189
2146
  },
2190
- className: modules_63b47c51$j.viewImgBody_pic,
2147
+ className: modules_63b47c51$6.viewImgBody_pic,
2191
2148
  onLoad: this.imgLoad,
2192
2149
  onError: this.imgErr
2193
2150
  }, "img"),
2194
2151
  this.state.actionCloseFlag === 0 && /*#__PURE__*/ jsx("span", {
2195
2152
  id: "actionClose",
2196
- className: modules_63b47c51$j.viewImgActionClose,
2153
+ className: modules_63b47c51$6.viewImgActionClose,
2197
2154
  title: "关闭",
2198
2155
  onClick: this.close,
2199
2156
  children: /*#__PURE__*/ jsx(CustomClose$1, {})
@@ -2203,12 +2160,12 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
2203
2160
  multiSelect && /*#__PURE__*/ jsxs(Fragment, {
2204
2161
  children: [
2205
2162
  this.state.curIndex !== 0 && /*#__PURE__*/ jsx("div", {
2206
- className: modules_63b47c51$j.viewImgBody_pre,
2163
+ className: modules_63b47c51$6.viewImgBody_pre,
2207
2164
  onClick: this.preChange,
2208
2165
  children: /*#__PURE__*/ jsx(LeftOutlined, {})
2209
2166
  }),
2210
2167
  this.state.curIndex < this.props.multiSelect.length - 1 && /*#__PURE__*/ jsx("div", {
2211
- className: modules_63b47c51$j.viewImgBody_next,
2168
+ className: modules_63b47c51$6.viewImgBody_next,
2212
2169
  onClick: this.nextChange,
2213
2170
  children: /*#__PURE__*/ jsx(RightOutlined, {})
2214
2171
  })
@@ -2219,7 +2176,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
2219
2176
  ]
2220
2177
  }),
2221
2178
  content && /*#__PURE__*/ jsx("div", {
2222
- className: modules_63b47c51$j.viewImgInfo,
2179
+ className: modules_63b47c51$6.viewImgInfo,
2223
2180
  children: content()
2224
2181
  })
2225
2182
  ]
@@ -2254,7 +2211,7 @@ var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
2254
2211
  maskStyle: {
2255
2212
  background: "rgba(0, 0, 0, 0.65)"
2256
2213
  },
2257
- wrapClassName: "".concat(modules_63b47c51$j.AppViewImage, " ").concat(className || ""),
2214
+ wrapClassName: "".concat(modules_63b47c51$6.AppViewImage, " ").concat(className || ""),
2258
2215
  getContainer: getContainer,
2259
2216
  children: visible && /*#__PURE__*/ jsx(ViewImage, _object_spread_props(_object_spread({}, props), {
2260
2217
  ref: viewRef
@@ -2263,9 +2220,9 @@ var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
2263
2220
  });
2264
2221
  var ViewImage$1 = AppViewImage;
2265
2222
 
2266
- var modules_63b47c51$h = {"BhdSelect":"index_module_BhdSelect__0483925f","bhdSelect_option":"index_module_bhdSelect_option__0483925f","bhdSelectDrop":"index_module_bhdSelectDrop__0483925f","selectTitle":"index_module_selectTitle__0483925f","bhdSelectSearch":"index_module_bhdSelectSearch__0483925f","search":"index_module_search__0483925f"};
2223
+ var modules_63b47c51$4 = {"BhdSelect":"index_module_BhdSelect__0483925f","bhdSelect_option":"index_module_bhdSelect_option__0483925f","bhdSelectDrop":"index_module_bhdSelectDrop__0483925f","selectTitle":"index_module_selectTitle__0483925f","bhdSelectSearch":"index_module_bhdSelectSearch__0483925f","search":"index_module_search__0483925f"};
2267
2224
 
2268
- var Search = Input.Search;
2225
+ var Search = Input$1.Search;
2269
2226
  var RenderDrop = function(param) {
2270
2227
  var menu = param.menu, bhdDropdownRef = param.bhdDropdownRef, mask = param.mask, initHeight = param.initHeight;
2271
2228
  useEffect(function() {
@@ -2411,12 +2368,12 @@ var BhdSelect = function(props) {
2411
2368
  //如果需要搜索菜单
2412
2369
  if (showSearch) {
2413
2370
  return /*#__PURE__*/ jsxs("div", {
2414
- className: "".concat(modules_63b47c51$h.bhdSelectDrop, " ").concat(optionClassName),
2371
+ className: "".concat(modules_63b47c51$4.bhdSelectDrop, " ").concat(optionClassName),
2415
2372
  ref: bhdDropdownRef,
2416
2373
  children: [
2417
2374
  renderTitle(),
2418
2375
  /*#__PURE__*/ jsx("div", {
2419
- className: modules_63b47c51$h.bhdSelectSearch,
2376
+ className: modules_63b47c51$4.bhdSelectSearch,
2420
2377
  style: {
2421
2378
  backgroundColor: select_title ? "rgba(0,0,0,0.02)" : "rgba(0,0,0,0)"
2422
2379
  },
@@ -2426,7 +2383,7 @@ var BhdSelect = function(props) {
2426
2383
  var value = param.target.value;
2427
2384
  setFilterValue(value);
2428
2385
  },
2429
- className: "".concat(modules_63b47c51$h.search, " ").concat(searchClassName || ""),
2386
+ className: "".concat(modules_63b47c51$4.search, " ").concat(searchClassName || ""),
2430
2387
  onKeyDown: function(e) {
2431
2388
  e.stopPropagation();
2432
2389
  },
@@ -2438,7 +2395,7 @@ var BhdSelect = function(props) {
2438
2395
  });
2439
2396
  } else {
2440
2397
  return /*#__PURE__*/ jsx("div", {
2441
- className: modules_63b47c51$h.bhdSelectDrop,
2398
+ className: modules_63b47c51$4.bhdSelectDrop,
2442
2399
  ref: bhdDropdownRef,
2443
2400
  children: dropdownRender ? dropdownRender(menu) : menu
2444
2401
  });
@@ -2453,7 +2410,7 @@ var BhdSelect = function(props) {
2453
2410
  return select_title;
2454
2411
  } else {
2455
2412
  return /*#__PURE__*/ jsx("div", {
2456
- className: modules_63b47c51$h.selectTitle,
2413
+ className: modules_63b47c51$4.selectTitle,
2457
2414
  children: select_title
2458
2415
  });
2459
2416
  }
@@ -2477,7 +2434,7 @@ var BhdSelect = function(props) {
2477
2434
  var getConfig = function() {
2478
2435
  var config = _object_spread_props(_object_spread({}, props), {
2479
2436
  listHeight: optionHei,
2480
- popupClassName: "".concat(modules_63b47c51$h.bhdSelect_option, " ").concat(popupClassName || "", " "),
2437
+ popupClassName: "".concat(modules_63b47c51$4.bhdSelect_option, " ").concat(popupClassName || "", " "),
2481
2438
  suffixIcon: suffixIcon ? suffixIcon : renderSuffixIcon(),
2482
2439
  popupMatchSelectWidth: selectWidth,
2483
2440
  dropdownStyle: _object_spread_props(_object_spread({}, props.dropdownStyle), {
@@ -2499,7 +2456,7 @@ var BhdSelect = function(props) {
2499
2456
  return config;
2500
2457
  };
2501
2458
  return /*#__PURE__*/ jsx("div", {
2502
- className: "".concat(modules_63b47c51$h.BhdSelect, " ").concat(className),
2459
+ className: "".concat(modules_63b47c51$4.BhdSelect, " ").concat(className),
2503
2460
  ref: bhdSelectRef,
2504
2461
  children: /*#__PURE__*/ jsx(Select, _object_spread_props(_object_spread({}, getConfig()), {
2505
2462
  showSearch: false,
@@ -2554,7 +2511,7 @@ var BhdSelect = function(props) {
2554
2511
  BhdSelect.Option = Select.Option;
2555
2512
  var BhdSelect$1 = BhdSelect;
2556
2513
 
2557
- var modules_63b47c51$g = {"bhd_app_layout":"index_module_bhd_app_layout__6a2d2320","bhd_app_layout_header":"index_module_bhd_app_layout_header__6a2d2320","bhd_app_layout_main":"index_module_bhd_app_layout_main__6a2d2320","bhd_app_layout_main_filter":"index_module_bhd_app_layout_main_filter__6a2d2320","bhd_app_layout_main_filter_title":"index_module_bhd_app_layout_main_filter_title__6a2d2320","bhd_app_layout_main_filter_ul":"index_module_bhd_app_layout_main_filter_ul__6a2d2320","bhd_app_layout_main_filter_show_value":"index_module_bhd_app_layout_main_filter_show_value__6a2d2320","bhd_app_layout_main_filter_clear":"index_module_bhd_app_layout_main_filter_clear__6a2d2320","bhd_app_layout_main_table":"index_module_bhd_app_layout_main_table__6a2d2320","bhd_app_layout_footer":"index_module_bhd_app_layout_footer__6a2d2320"};
2514
+ var modules_63b47c51$3 = {"bhd_app_layout":"index_module_bhd_app_layout__6a2d2320","bhd_app_layout_header":"index_module_bhd_app_layout_header__6a2d2320","bhd_app_layout_main":"index_module_bhd_app_layout_main__6a2d2320","bhd_app_layout_main_filter":"index_module_bhd_app_layout_main_filter__6a2d2320","bhd_app_layout_main_filter_title":"index_module_bhd_app_layout_main_filter_title__6a2d2320","bhd_app_layout_main_filter_ul":"index_module_bhd_app_layout_main_filter_ul__6a2d2320","bhd_app_layout_main_filter_show_value":"index_module_bhd_app_layout_main_filter_show_value__6a2d2320","bhd_app_layout_main_filter_clear":"index_module_bhd_app_layout_main_filter_clear__6a2d2320","bhd_app_layout_main_table":"index_module_bhd_app_layout_main_table__6a2d2320","bhd_app_layout_footer":"index_module_bhd_app_layout_footer__6a2d2320"};
2558
2515
 
2559
2516
  function BhdAppLayout(props) {
2560
2517
  var _filterRef_current, _filterRef, _headRef_current, _headRef, _otherHeadRef_current, _otherHeadRef, _otherContentRef_current, _otherContentRef, _filterConfig, _filterConfig1, _footerConfig;
@@ -2593,11 +2550,11 @@ function BhdAppLayout(props) {
2593
2550
  (_otherContentRef = otherContentRef) === null || _otherContentRef === void 0 ? void 0 : (_otherContentRef_current = _otherContentRef.current) === null || _otherContentRef_current === void 0 ? void 0 : _otherContentRef_current.offsetHeight
2594
2551
  ]);
2595
2552
  return /*#__PURE__*/ jsxs("div", {
2596
- className: "".concat(modules_63b47c51$g.bhd_app_layout, " ").concat(className || ""),
2553
+ className: "".concat(modules_63b47c51$3.bhd_app_layout, " ").concat(className || ""),
2597
2554
  children: [
2598
2555
  /*#__PURE__*/ jsx("header", {
2599
2556
  ref: headRef,
2600
- className: "".concat(modules_63b47c51$g.bhd_app_layout_header, " ").concat(headerClassName || ""),
2557
+ className: "".concat(modules_63b47c51$3.bhd_app_layout_header, " ").concat(headerClassName || ""),
2601
2558
  children: headConfig && /*#__PURE__*/ jsx(TitleBar$1, _object_spread({}, headConfig))
2602
2559
  }),
2603
2560
  headContent && /*#__PURE__*/ jsx("div", {
@@ -2605,30 +2562,30 @@ function BhdAppLayout(props) {
2605
2562
  children: headContent
2606
2563
  }),
2607
2564
  /*#__PURE__*/ jsxs("main", {
2608
- className: modules_63b47c51$g.bhd_app_layout_main,
2565
+ className: modules_63b47c51$3.bhd_app_layout_main,
2609
2566
  children: [
2610
2567
  ((_filterConfig = filterConfig) === null || _filterConfig === void 0 ? void 0 : _filterConfig.filterArr) && filterConfig.filterArr.length ? /*#__PURE__*/ jsxs("div", {
2611
2568
  ref: filterRef,
2612
- className: modules_63b47c51$g.bhd_app_layout_main_filter,
2569
+ className: modules_63b47c51$3.bhd_app_layout_main_filter,
2613
2570
  children: [
2614
2571
  /*#__PURE__*/ jsxs("div", {
2615
- className: modules_63b47c51$g.bhd_app_layout_main_filter_title,
2572
+ className: modules_63b47c51$3.bhd_app_layout_main_filter_title,
2616
2573
  children: [
2617
2574
  i18Conversion$1("已筛选"),
2618
2575
  ":"
2619
2576
  ]
2620
2577
  }),
2621
2578
  /*#__PURE__*/ jsx("ul", {
2622
- className: modules_63b47c51$g.bhd_app_layout_main_filter_ul,
2579
+ className: modules_63b47c51$3.bhd_app_layout_main_filter_ul,
2623
2580
  children: filterConfig.filterArr.map(function(ele, index) {
2624
2581
  return /*#__PURE__*/ jsxs("li", {
2625
2582
  children: [
2626
2583
  /*#__PURE__*/ jsx("span", {
2627
- className: modules_63b47c51$g.bhd_app_layout_main_filter_show_title,
2584
+ className: modules_63b47c51$3.bhd_app_layout_main_filter_show_title,
2628
2585
  children: ele.title
2629
2586
  }),
2630
2587
  /*#__PURE__*/ jsxs("span", {
2631
- className: modules_63b47c51$g.bhd_app_layout_main_filter_show_value,
2588
+ className: modules_63b47c51$3.bhd_app_layout_main_filter_show_value,
2632
2589
  children: [
2633
2590
  "“",
2634
2591
  ele.value,
@@ -2647,7 +2604,7 @@ function BhdAppLayout(props) {
2647
2604
  }),
2648
2605
  /*#__PURE__*/ jsx("div", {
2649
2606
  onClick: (_filterConfig1 = filterConfig) === null || _filterConfig1 === void 0 ? void 0 : _filterConfig1.onClearAll,
2650
- className: modules_63b47c51$g.bhd_app_layout_main_filter_clear,
2607
+ className: modules_63b47c51$3.bhd_app_layout_main_filter_clear,
2651
2608
  children: i18Conversion$1("清空条件")
2652
2609
  })
2653
2610
  ]
@@ -2657,7 +2614,7 @@ function BhdAppLayout(props) {
2657
2614
  children: otherContent
2658
2615
  }),
2659
2616
  /*#__PURE__*/ jsx("div", {
2660
- className: "".concat(modules_63b47c51$g.bhd_app_layout_main_table, " ").concat(tableBoxClassName || ""),
2617
+ className: "".concat(modules_63b47c51$3.bhd_app_layout_main_table, " ").concat(tableBoxClassName || ""),
2661
2618
  children: scrollConfig ? tableConfig && /*#__PURE__*/ jsx(BhdTableSimple$1, _object_spread_props(_object_spread({}, tableConfig), {
2662
2619
  pagination: false,
2663
2620
  scroll: _object_spread({}, scrollConfig)
@@ -2666,7 +2623,7 @@ function BhdAppLayout(props) {
2666
2623
  ]
2667
2624
  }),
2668
2625
  footerConfig ? /*#__PURE__*/ jsxs("footer", {
2669
- className: modules_63b47c51$g.bhd_app_layout_footer,
2626
+ className: modules_63b47c51$3.bhd_app_layout_footer,
2670
2627
  children: [
2671
2628
  /*#__PURE__*/ jsx("div", {
2672
2629
  children: ((_footerConfig = footerConfig) === null || _footerConfig === void 0 ? void 0 : _footerConfig.leftDom) && footerConfig.leftDom
@@ -2678,7 +2635,7 @@ function BhdAppLayout(props) {
2678
2635
  });
2679
2636
  }
2680
2637
 
2681
- var modules_63b47c51$f = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__00686be6","ChatWindow_Modal":"index_module_ChatWindow_Modal__00686be6","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__00686be6","header_wrap":"index_module_header_wrap__00686be6","top":"index_module_top__00686be6","user":"index_module_user__00686be6","count":"index_module_count__00686be6","operate":"index_module_operate__00686be6","line":"index_module_line__00686be6","popover_main":"index_module_popover_main__00686be6","popover":"index_module_popover__00686be6","header_wrap_newlabo":"index_module_header_wrap_newlabo__00686be6","Drawer_main":"index_module_Drawer_main__00686be6","loading":"index_module_loading__00686be6","message_con":"index_module_message_con__00686be6","left":"index_module_left__00686be6","head_sculpture":"index_module_head_sculpture__00686be6","main_content":"index_module_main_content__00686be6","right":"index_module_right__00686be6","main":"index_module_main__00686be6","main_content_flag":"index_module_main_content_flag__00686be6","operate_modal":"index_module_operate_modal__00686be6","operate_modal_bottom":"index_module_operate_modal_bottom__00686be6","active":"index_module_active__00686be6","stop_generate":"index_module_stop_generate__00686be6","icon":"index_module_icon__00686be6","find_teacher":"index_module_find_teacher__00686be6","stop_findTeacher":"index_module_stop_findTeacher__00686be6","content":"index_module_content__00686be6","content_child":"index_module_content_child__00686be6","find_teacher_con":"index_module_find_teacher_con__00686be6","sign":"index_module_sign__00686be6","ask_question":"index_module_ask_question__00686be6","bottom":"index_module_bottom__00686be6","association_problem":"index_module_association_problem__00686be6","association_problem_flag":"index_module_association_problem_flag__00686be6","related_issues_flag":"index_module_related_issues_flag__00686be6","img_con":"index_module_img_con__00686be6","mask_zoom":"index_module_mask_zoom__00686be6","img_con2":"index_module_img_con2__00686be6","copyCode":"index_module_copyCode__00686be6","time":"index_module_time__00686be6","citation_content":"index_module_citation_content__00686be6","text_exceed":"index_module_text_exceed__00686be6","popover_content":"index_module_popover_content__00686be6","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__00686be6","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__00686be6","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__00686be6","issues_list_teacherList":"index_module_issues_list_teacherList__00686be6","item":"index_module_item__00686be6","issues_list":"index_module_issues_list__00686be6","issues_list_flag":"index_module_issues_list_flag__00686be6","Drawer_buttom":"index_module_Drawer_buttom__00686be6","input_wrap":"index_module_input_wrap__00686be6","input":"index_module_input__00686be6","picture_layout":"index_module_picture_layout__00686be6","icon_close":"index_module_icon_close__00686be6","icon_zoom":"index_module_icon_zoom__00686be6","anticon":"index_module_anticon__00686be6","no_AI":"index_module_no_AI__00686be6","screenshot":"index_module_screenshot__00686be6","disabled":"index_module_disabled__00686be6","content_main":"index_module_content_main__00686be6","content_con":"index_module_content_con__00686be6","delete_quote":"index_module_delete_quote__00686be6","sending":"index_module_sending__00686be6","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__00686be6","main_list":"index_module_main_list__00686be6","chat_content":"index_module_chat_content__00686be6","popover_main_content":"index_module_popover_main_content__00686be6","popover_main_content_name":"index_module_popover_main_content_name__00686be6","teacher_layout":"index_module_teacher_layout__00686be6","delete":"index_module_delete__00686be6","num":"index_module_num__00686be6","shrink":"index_module_shrink__00686be6","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__00686be6","teacher_layout_modal":"index_module_teacher_layout_modal__00686be6","ai":"index_module_ai__00686be6","user_info":"index_module_user_info__00686be6","message":"index_module_message__00686be6","con":"index_module_con__00686be6","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__00686be6","history_list":"index_module_history_list__00686be6","search_layout":"index_module_search_layout__00686be6","mymove":"index_module_mymove__00686be6","title":"index_module_title__00686be6","search_top":"index_module_search_top__00686be6","list_item":"index_module_list_item__00686be6","list_summary":"index_module_list_summary__00686be6","head_img":"index_module_head_img__00686be6","list_desc":"index_module_list_desc__00686be6","name":"index_module_name__00686be6","decs":"index_module_decs__00686be6","open":"index_module_open__00686be6","list_summary_active":"index_module_list_summary_active__00686be6","list_detail":"index_module_list_detail__00686be6","list":"index_module_list__00686be6","list_more":"index_module_list_more__00686be6","no_data":"index_module_no_data__00686be6","history_list_broadside":"index_module_history_list_broadside__00686be6","teacher_list":"index_module_teacher_list__00686be6","screenshot_Modal":"index_module_screenshot_Modal__00686be6","ReactCrop":"index_module_ReactCrop__00686be6","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__00686be6"};
2638
+ var modules_63b47c51$2 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__00686be6","ChatWindow_Modal":"index_module_ChatWindow_Modal__00686be6","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__00686be6","header_wrap":"index_module_header_wrap__00686be6","top":"index_module_top__00686be6","user":"index_module_user__00686be6","count":"index_module_count__00686be6","operate":"index_module_operate__00686be6","line":"index_module_line__00686be6","popover_main":"index_module_popover_main__00686be6","popover":"index_module_popover__00686be6","header_wrap_newlabo":"index_module_header_wrap_newlabo__00686be6","Drawer_main":"index_module_Drawer_main__00686be6","loading":"index_module_loading__00686be6","message_con":"index_module_message_con__00686be6","left":"index_module_left__00686be6","head_sculpture":"index_module_head_sculpture__00686be6","main_content":"index_module_main_content__00686be6","right":"index_module_right__00686be6","main":"index_module_main__00686be6","main_content_flag":"index_module_main_content_flag__00686be6","operate_modal":"index_module_operate_modal__00686be6","operate_modal_bottom":"index_module_operate_modal_bottom__00686be6","active":"index_module_active__00686be6","stop_generate":"index_module_stop_generate__00686be6","icon":"index_module_icon__00686be6","find_teacher":"index_module_find_teacher__00686be6","stop_findTeacher":"index_module_stop_findTeacher__00686be6","content":"index_module_content__00686be6","content_child":"index_module_content_child__00686be6","find_teacher_con":"index_module_find_teacher_con__00686be6","sign":"index_module_sign__00686be6","ask_question":"index_module_ask_question__00686be6","bottom":"index_module_bottom__00686be6","association_problem":"index_module_association_problem__00686be6","association_problem_flag":"index_module_association_problem_flag__00686be6","related_issues_flag":"index_module_related_issues_flag__00686be6","img_con":"index_module_img_con__00686be6","mask_zoom":"index_module_mask_zoom__00686be6","img_con2":"index_module_img_con2__00686be6","copyCode":"index_module_copyCode__00686be6","time":"index_module_time__00686be6","citation_content":"index_module_citation_content__00686be6","text_exceed":"index_module_text_exceed__00686be6","popover_content":"index_module_popover_content__00686be6","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__00686be6","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__00686be6","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__00686be6","issues_list_teacherList":"index_module_issues_list_teacherList__00686be6","item":"index_module_item__00686be6","issues_list":"index_module_issues_list__00686be6","issues_list_flag":"index_module_issues_list_flag__00686be6","Drawer_buttom":"index_module_Drawer_buttom__00686be6","input_wrap":"index_module_input_wrap__00686be6","input":"index_module_input__00686be6","picture_layout":"index_module_picture_layout__00686be6","icon_close":"index_module_icon_close__00686be6","icon_zoom":"index_module_icon_zoom__00686be6","anticon":"index_module_anticon__00686be6","no_AI":"index_module_no_AI__00686be6","screenshot":"index_module_screenshot__00686be6","disabled":"index_module_disabled__00686be6","content_main":"index_module_content_main__00686be6","content_con":"index_module_content_con__00686be6","delete_quote":"index_module_delete_quote__00686be6","sending":"index_module_sending__00686be6","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__00686be6","main_list":"index_module_main_list__00686be6","chat_content":"index_module_chat_content__00686be6","popover_main_content":"index_module_popover_main_content__00686be6","popover_main_content_name":"index_module_popover_main_content_name__00686be6","teacher_layout":"index_module_teacher_layout__00686be6","delete":"index_module_delete__00686be6","num":"index_module_num__00686be6","shrink":"index_module_shrink__00686be6","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__00686be6","teacher_layout_modal":"index_module_teacher_layout_modal__00686be6","ai":"index_module_ai__00686be6","user_info":"index_module_user_info__00686be6","message":"index_module_message__00686be6","con":"index_module_con__00686be6","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__00686be6","history_list":"index_module_history_list__00686be6","search_layout":"index_module_search_layout__00686be6","mymove":"index_module_mymove__00686be6","title":"index_module_title__00686be6","search_top":"index_module_search_top__00686be6","list_item":"index_module_list_item__00686be6","list_summary":"index_module_list_summary__00686be6","head_img":"index_module_head_img__00686be6","list_desc":"index_module_list_desc__00686be6","name":"index_module_name__00686be6","decs":"index_module_decs__00686be6","open":"index_module_open__00686be6","list_summary_active":"index_module_list_summary_active__00686be6","list_detail":"index_module_list_detail__00686be6","list":"index_module_list__00686be6","list_more":"index_module_list_more__00686be6","no_data":"index_module_no_data__00686be6","history_list_broadside":"index_module_history_list_broadside__00686be6","teacher_list":"index_module_teacher_list__00686be6","screenshot_Modal":"index_module_screenshot_Modal__00686be6","ReactCrop":"index_module_ReactCrop__00686be6","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__00686be6"};
2682
2639
 
2683
2640
  function BaseHOC(key) {
2684
2641
  return function(props) {
@@ -2715,10 +2672,10 @@ function BaseHOC(key) {
2715
2672
  setFlag(isOnCompositionRef.current);
2716
2673
  }
2717
2674
  }
2718
- var Component = Input;
2675
+ var Component = Input$1;
2719
2676
  if (key) {
2720
2677
  //@ts-ignore
2721
- Component = Input[key];
2678
+ Component = Input$1[key];
2722
2679
  }
2723
2680
  function handlePressEnter(e) {
2724
2681
  console.log("isOnCompositionisOnComposition", isOnCompositionRef.current);
@@ -2745,9 +2702,9 @@ Component.Search = function(props) {
2745
2702
  Component.TextArea = function(props) {
2746
2703
  return BaseHOC("TextArea")(props);
2747
2704
  };
2748
- Component.Password = Input.Password;
2749
- Component.Group = Input.Group;
2750
- var BhdEnterInput = Component;
2705
+ Component.Password = Input$1.Password;
2706
+ Component.Group = Input$1.Group;
2707
+ var Input = Component;
2751
2708
 
2752
2709
  //消息已读
2753
2710
  var readMessage = function(roomId, urllocation, userData, http) {
@@ -3183,12 +3140,12 @@ var HistoryFun = function(props) {
3183
3140
  });
3184
3141
  };
3185
3142
  return /*#__PURE__*/ jsx("div", {
3186
- className: "".concat(modules_63b47c51$f.history_list, " ").concat(type == 2 ? modules_63b47c51$f.history_list_broadside : "", " "),
3143
+ className: "".concat(modules_63b47c51$2.history_list, " ").concat(type == 2 ? modules_63b47c51$2.history_list_broadside : "", " "),
3187
3144
  children: /*#__PURE__*/ jsxs("div", {
3188
- className: modules_63b47c51$f.search_layout,
3145
+ className: modules_63b47c51$2.search_layout,
3189
3146
  children: [
3190
3147
  /*#__PURE__*/ jsxs("div", {
3191
- className: modules_63b47c51$f.title,
3148
+ className: modules_63b47c51$2.title,
3192
3149
  children: [
3193
3150
  /*#__PURE__*/ jsx("span", {
3194
3151
  children: "历史记录"
@@ -3203,10 +3160,10 @@ var HistoryFun = function(props) {
3203
3160
  ]
3204
3161
  }),
3205
3162
  /*#__PURE__*/ jsxs("div", {
3206
- className: modules_63b47c51$f.search_top,
3163
+ className: modules_63b47c51$2.search_top,
3207
3164
  children: [
3208
3165
  /*#__PURE__*/ jsx(SearchOutlined, {}),
3209
- /*#__PURE__*/ jsx(Input, {
3166
+ /*#__PURE__*/ jsx(Input$1, {
3210
3167
  placeholder: "请输入您要搜索的内容",
3211
3168
  value: keyWordProblem,
3212
3169
  onChange: function(e) {
@@ -3239,11 +3196,11 @@ var HistoryFun = function(props) {
3239
3196
  spinning: loading,
3240
3197
  tip: "加载中...",
3241
3198
  children: /*#__PURE__*/ jsxs("div", {
3242
- className: modules_63b47c51$f.main_list,
3199
+ className: modules_63b47c51$2.main_list,
3243
3200
  id: "history_list",
3244
3201
  children: [
3245
3202
  !loading && showLoadingState == 1 && /*#__PURE__*/ jsxs("div", {
3246
- className: modules_63b47c51$f.no_data,
3203
+ className: modules_63b47c51$2.no_data,
3247
3204
  children: [
3248
3205
  /*#__PURE__*/ jsx("img", {
3249
3206
  src: "/new_yun/images/aiService/search_for_icon.png"
@@ -3254,7 +3211,7 @@ var HistoryFun = function(props) {
3254
3211
  ]
3255
3212
  }),
3256
3213
  !loading && showLoadingState == 2 && /*#__PURE__*/ jsxs("div", {
3257
- className: modules_63b47c51$f.no_data,
3214
+ className: modules_63b47c51$2.no_data,
3258
3215
  children: [
3259
3216
  /*#__PURE__*/ jsx("img", {
3260
3217
  src: "/new_yun/images/aiService/no_data.png"
@@ -3265,7 +3222,7 @@ var HistoryFun = function(props) {
3265
3222
  ]
3266
3223
  }),
3267
3224
  !loading && /*#__PURE__*/ jsx("div", {
3268
- className: modules_63b47c51$f.list_item,
3225
+ className: modules_63b47c51$2.list_item,
3269
3226
  children: totalData.map(function(item) {
3270
3227
  var span = "";
3271
3228
  var time = "";
@@ -3279,11 +3236,11 @@ var HistoryFun = function(props) {
3279
3236
  //搜索内容是否有特殊字符
3280
3237
  if (reg.test(keyWordProblem)) {
3281
3238
  span = message.replaceAll(keyWordProblem, function(e) {
3282
- return "<span class=".concat(modules_63b47c51$f.sign, ">").concat(e, "</span>");
3239
+ return "<span class=".concat(modules_63b47c51$2.sign, ">").concat(e, "</span>");
3283
3240
  });
3284
3241
  } else {
3285
3242
  span = message.replaceAll(new RegExp(keyWordProblem, "ig"), function(i) {
3286
- return "<span class=".concat(modules_63b47c51$f.sign, ">").concat(i, "</span>");
3243
+ return "<span class=".concat(modules_63b47c51$2.sign, ">").concat(i, "</span>");
3287
3244
  });
3288
3245
  }
3289
3246
  time = formatDate(item.createdAt);
@@ -3291,7 +3248,7 @@ var HistoryFun = function(props) {
3291
3248
  return /*#__PURE__*/ jsxs(Fragment, {
3292
3249
  children: [
3293
3250
  /*#__PURE__*/ jsxs("div", {
3294
- className: "".concat(modules_63b47c51$f.list_summary, " ").concat(item.show ? modules_63b47c51$f.list_summary_active : ""),
3251
+ className: "".concat(modules_63b47c51$2.list_summary, " ").concat(item.show ? modules_63b47c51$2.list_summary_active : ""),
3295
3252
  id: item.roomId,
3296
3253
  onClick: function() {
3297
3254
  if (item.count == 1) {
@@ -3302,26 +3259,26 @@ var HistoryFun = function(props) {
3302
3259
  },
3303
3260
  children: [
3304
3261
  /*#__PURE__*/ jsx("div", {
3305
- className: modules_63b47c51$f.head_img,
3262
+ className: modules_63b47c51$2.head_img,
3306
3263
  children: item.member == "AI" ? /*#__PURE__*/ jsx(CustomAiIcon$1, {}) : /*#__PURE__*/ jsx("img", {
3307
3264
  src: item.headImg
3308
3265
  })
3309
3266
  }),
3310
3267
  /*#__PURE__*/ jsxs("div", {
3311
- className: modules_63b47c51$f.list_desc,
3268
+ className: modules_63b47c51$2.list_desc,
3312
3269
  children: [
3313
3270
  /*#__PURE__*/ jsxs("p", {
3314
- className: modules_63b47c51$f.name,
3271
+ className: modules_63b47c51$2.name,
3315
3272
  children: [
3316
3273
  item.member == "AI" ? "AI助手" : item.name,
3317
3274
  item.count == 1 ? /*#__PURE__*/ jsx("span", {
3318
- className: modules_63b47c51$f.time,
3275
+ className: modules_63b47c51$2.time,
3319
3276
  children: time
3320
3277
  }) : ""
3321
3278
  ]
3322
3279
  }),
3323
3280
  item.count == 1 ? /*#__PURE__*/ jsx("p", {
3324
- className: modules_63b47c51$f.decs,
3281
+ className: modules_63b47c51$2.decs,
3325
3282
  style: {
3326
3283
  width: "calc(100% - 36px)"
3327
3284
  },
@@ -3329,19 +3286,19 @@ var HistoryFun = function(props) {
3329
3286
  __html: span
3330
3287
  }
3331
3288
  }) : /*#__PURE__*/ jsx("p", {
3332
- className: modules_63b47c51$f.decs,
3289
+ className: modules_63b47c51$2.decs,
3333
3290
  children: "".concat(item.count, "条相关聊天记录")
3334
3291
  })
3335
3292
  ]
3336
3293
  }),
3337
3294
  item.count != 1 ? /*#__PURE__*/ jsx("div", {
3338
- className: "".concat(modules_63b47c51$f.open, " ").concat(item.show ? modules_63b47c51$f.active : ""),
3295
+ className: "".concat(modules_63b47c51$2.open, " ").concat(item.show ? modules_63b47c51$2.active : ""),
3339
3296
  children: /*#__PURE__*/ jsx(CustomExpand$1, {})
3340
3297
  }) : ""
3341
3298
  ]
3342
3299
  }),
3343
3300
  /*#__PURE__*/ jsxs("div", {
3344
- className: modules_63b47c51$f.list_detail,
3301
+ className: modules_63b47c51$2.list_detail,
3345
3302
  children: [
3346
3303
  item.show && item.detailsList && item.detailsList.map(function(list) {
3347
3304
  // console.log(list,item,'dklfvmdflkvmdfklv')
@@ -3364,16 +3321,16 @@ var HistoryFun = function(props) {
3364
3321
  //搜索内容是否有特殊字符
3365
3322
  if (reg.test(keyWordProblem)) {
3366
3323
  span = message.replaceAll(keyWordProblem, function(e) {
3367
- return "<span class=".concat(modules_63b47c51$f.sign, ">").concat(e, "</span>");
3324
+ return "<span class=".concat(modules_63b47c51$2.sign, ">").concat(e, "</span>");
3368
3325
  });
3369
3326
  } else {
3370
3327
  span = message.replaceAll(new RegExp(keyWordProblem, "ig"), function(i) {
3371
3328
  // console.log(i,'skdcnsdjk')
3372
- return "<span class=".concat(modules_63b47c51$f.sign, ">").concat(i, "</span>");
3329
+ return "<span class=".concat(modules_63b47c51$2.sign, ">").concat(i, "</span>");
3373
3330
  });
3374
3331
  }
3375
3332
  return /*#__PURE__*/ jsxs("div", {
3376
- className: modules_63b47c51$f.list,
3333
+ className: modules_63b47c51$2.list,
3377
3334
  onClick: function() {
3378
3335
  calculationData(item.roomId, list.id, props.userData.mid == list.sender ? list.receiver : list.sender);
3379
3336
  console.log("答应一下111111", {
@@ -3385,19 +3342,19 @@ var HistoryFun = function(props) {
3385
3342
  },
3386
3343
  children: [
3387
3344
  /*#__PURE__*/ jsxs("div", {
3388
- className: modules_63b47c51$f.name,
3345
+ className: modules_63b47c51$2.name,
3389
3346
  children: [
3390
3347
  /*#__PURE__*/ jsx("p", {
3391
3348
  children: name
3392
3349
  }),
3393
3350
  /*#__PURE__*/ jsx("span", {
3394
- className: modules_63b47c51$f.time,
3351
+ className: modules_63b47c51$2.time,
3395
3352
  children: time
3396
3353
  })
3397
3354
  ]
3398
3355
  }),
3399
3356
  /*#__PURE__*/ jsx("div", {
3400
- className: modules_63b47c51$f.con,
3357
+ className: modules_63b47c51$2.con,
3401
3358
  dangerouslySetInnerHTML: {
3402
3359
  __html: span
3403
3360
  }
@@ -3406,7 +3363,7 @@ var HistoryFun = function(props) {
3406
3363
  }, list.id);
3407
3364
  }),
3408
3365
  item.show && item.pageCount > 1 && item.pageCount > item.pageNum && /*#__PURE__*/ jsx("div", {
3409
- className: "".concat(modules_63b47c51$f.list, " ").concat(modules_63b47c51$f.list_more),
3366
+ className: "".concat(modules_63b47c51$2.list, " ").concat(modules_63b47c51$2.list_more),
3410
3367
  onClick: function() {
3411
3368
  loadMore(item.pageNum + 1, item.roomId);
3412
3369
  },
@@ -3438,34 +3395,34 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
3438
3395
  };
3439
3396
  return type == 2 || type == 4 ? //联系人展开
3440
3397
  /*#__PURE__*/ jsxs("div", {
3441
- className: "".concat(modules_63b47c51$f.teacher_layout_modal, " ").concat(type == 4 ? modules_63b47c51$f.teacher_layout_modal_newlabo : ""),
3398
+ className: "".concat(modules_63b47c51$2.teacher_layout_modal, " ").concat(type == 4 ? modules_63b47c51$2.teacher_layout_modal_newlabo : ""),
3442
3399
  children: [
3443
3400
  /*#__PURE__*/ jsx("div", {
3444
- className: modules_63b47c51$f.top,
3401
+ className: modules_63b47c51$2.top,
3445
3402
  children: /*#__PURE__*/ jsxs("div", {
3446
- className: "".concat(modules_63b47c51$f.ai, " ").concat(contactsList.length > 0 && contactsList[0].roomId != undefined && roomId != "" && contactsList[0].roomId == roomId || contactsList.length == 0 ? modules_63b47c51$f.active : ""),
3403
+ className: "".concat(modules_63b47c51$2.ai, " ").concat(contactsList.length > 0 && contactsList[0].roomId != undefined && roomId != "" && contactsList[0].roomId == roomId || contactsList.length == 0 ? modules_63b47c51$2.active : ""),
3447
3404
  onClick: function() {
3448
3405
  return switchChatRoom(contactsList[0].roomId, "");
3449
3406
  },
3450
3407
  children: [
3451
3408
  /*#__PURE__*/ jsx(CustomAiIcon$1, {}),
3452
3409
  /*#__PURE__*/ jsxs("div", {
3453
- className: modules_63b47c51$f.user_info,
3410
+ className: modules_63b47c51$2.user_info,
3454
3411
  children: [
3455
3412
  /*#__PURE__*/ jsxs("p", {
3456
- className: modules_63b47c51$f.message,
3413
+ className: modules_63b47c51$2.message,
3457
3414
  children: [
3458
3415
  userData.modules.some(function(ele) {
3459
3416
  return ele.short == "AIservice";
3460
3417
  }) ? "AI助手" : "智能问答",
3461
3418
  /*#__PURE__*/ jsx("span", {
3462
- className: modules_63b47c51$f.time,
3419
+ className: modules_63b47c51$2.time,
3463
3420
  children: contactsList.length > 0 && contactsList[0].createdAt != undefined && formatDate(contactsList[0].createdAt)
3464
3421
  })
3465
3422
  ]
3466
3423
  }),
3467
3424
  /*#__PURE__*/ jsx("p", {
3468
- className: modules_63b47c51$f.con,
3425
+ className: modules_63b47c51$2.con,
3469
3426
  children: contactsList.length > 0 && contactsList[0].lastMsg
3470
3427
  })
3471
3428
  ]
@@ -3476,11 +3433,11 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
3476
3433
  userData.modules.some(function(item) {
3477
3434
  return item.short == "TeacherAnswer";
3478
3435
  }) && /*#__PURE__*/ jsx("div", {
3479
- className: modules_63b47c51$f.bottom,
3436
+ className: modules_63b47c51$2.bottom,
3480
3437
  children: contactsList.map(function(item, index) {
3481
3438
  if (index != 0) {
3482
3439
  return /*#__PURE__*/ jsxs("div", {
3483
- className: "".concat(modules_63b47c51$f.ai, " ").concat(item.roomId != undefined && roomId != "" && item.roomId == roomId ? modules_63b47c51$f.active : ""),
3440
+ className: "".concat(modules_63b47c51$2.ai, " ").concat(item.roomId != undefined && roomId != "" && item.roomId == roomId ? modules_63b47c51$2.active : ""),
3484
3441
  onClick: function() {
3485
3442
  switchChatRoom(item.roomId, "");
3486
3443
  },
@@ -3489,29 +3446,29 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
3489
3446
  src: item.headImg
3490
3447
  }),
3491
3448
  /*#__PURE__*/ jsxs("div", {
3492
- className: modules_63b47c51$f.user_info,
3449
+ className: modules_63b47c51$2.user_info,
3493
3450
  children: [
3494
3451
  /*#__PURE__*/ jsxs("p", {
3495
- className: modules_63b47c51$f.message,
3452
+ className: modules_63b47c51$2.message,
3496
3453
  children: [
3497
3454
  item.name != undefined && getByteLen(item.name) >= 20 ? /*#__PURE__*/ jsx(Tooltip, {
3498
- overlayClassName: "".concat(modules_63b47c51$f.popover_main_content_name),
3455
+ overlayClassName: "".concat(modules_63b47c51$2.popover_main_content_name),
3499
3456
  title: item.name,
3500
3457
  placement: "top",
3501
3458
  children: item.name
3502
3459
  }) : item.name,
3503
3460
  item.unreadCount != undefined && item.unreadCount > 0 && !(item.roomId != undefined && roomId != "" && item.roomId == roomId) && /*#__PURE__*/ jsx("span", {
3504
- className: modules_63b47c51$f.num,
3461
+ className: modules_63b47c51$2.num,
3505
3462
  children: item.unreadCount > 99 ? "99+" : item.unreadCount
3506
3463
  }),
3507
3464
  /*#__PURE__*/ jsx("span", {
3508
- className: modules_63b47c51$f.time,
3465
+ className: modules_63b47c51$2.time,
3509
3466
  children: formatDate(item.createdAt)
3510
3467
  })
3511
3468
  ]
3512
3469
  }),
3513
3470
  /*#__PURE__*/ jsx("p", {
3514
- className: modules_63b47c51$f.con,
3471
+ className: modules_63b47c51$2.con,
3515
3472
  children: item.lastMsg
3516
3473
  })
3517
3474
  ]
@@ -3525,16 +3482,16 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
3525
3482
  })
3526
3483
  ]
3527
3484
  }) : /*#__PURE__*/ jsxs("div", {
3528
- className: "".concat(modules_63b47c51$f.teacher_layout, " ").concat(type == 3 ? modules_63b47c51$f.teacher_layout_newlabo : ""),
3485
+ className: "".concat(modules_63b47c51$2.teacher_layout, " ").concat(type == 3 ? modules_63b47c51$2.teacher_layout_newlabo : ""),
3529
3486
  style: {
3530
3487
  left: type == 3 ? document.getElementById("box") && document.getElementById("box").offsetWidth + 10 + "px" : "auto"
3531
3488
  },
3532
3489
  children: [
3533
3490
  /*#__PURE__*/ jsxs("div", {
3534
- className: modules_63b47c51$f.top,
3491
+ className: modules_63b47c51$2.top,
3535
3492
  children: [
3536
3493
  /*#__PURE__*/ jsxs("div", {
3537
- className: "".concat(modules_63b47c51$f.ai, " ").concat(modules_63b47c51$f.shrink),
3494
+ className: "".concat(modules_63b47c51$2.ai, " ").concat(modules_63b47c51$2.shrink),
3538
3495
  onClick: function() {
3539
3496
  onClose();
3540
3497
  },
@@ -3549,7 +3506,7 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
3549
3506
  ]
3550
3507
  }),
3551
3508
  /*#__PURE__*/ jsxs("div", {
3552
- className: "".concat(modules_63b47c51$f.ai, " ").concat(contactsList.length > 0 && contactsList[0].roomId != undefined && roomId != "" && contactsList[0].roomId == roomId || contactsList.length == 0 ? modules_63b47c51$f.active : ""),
3509
+ className: "".concat(modules_63b47c51$2.ai, " ").concat(contactsList.length > 0 && contactsList[0].roomId != undefined && roomId != "" && contactsList[0].roomId == roomId || contactsList.length == 0 ? modules_63b47c51$2.active : ""),
3553
3510
  onClick: function() {
3554
3511
  switchChatRoom(contactsList[0].roomId, "");
3555
3512
  // roomsListTimer();
@@ -3568,11 +3525,11 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
3568
3525
  userData.modules.some(function(item) {
3569
3526
  return item.short == "TeacherAnswer";
3570
3527
  }) && /*#__PURE__*/ jsx("div", {
3571
- className: modules_63b47c51$f.bottom,
3528
+ className: modules_63b47c51$2.bottom,
3572
3529
  children: contactsList.map(function(item, index) {
3573
3530
  if (index != 0) {
3574
3531
  return /*#__PURE__*/ jsxs("div", {
3575
- className: "".concat(modules_63b47c51$f.ai, " ").concat(item.roomId != undefined && roomId != "" && item.roomId == roomId ? modules_63b47c51$f.active : ""),
3532
+ className: "".concat(modules_63b47c51$2.ai, " ").concat(item.roomId != undefined && roomId != "" && item.roomId == roomId ? modules_63b47c51$2.active : ""),
3576
3533
  onClick: function() {
3577
3534
  switchChatRoom(item.roomId, "");
3578
3535
  },
@@ -3582,19 +3539,19 @@ var ContactsList = /*#__PURE__*/ forwardRef(function(props, ref) {
3582
3539
  }),
3583
3540
  /*#__PURE__*/ jsx("p", {
3584
3541
  children: item.name != undefined && getByteLen(item.name) >= 10 ? /*#__PURE__*/ jsx(Tooltip, {
3585
- overlayClassName: modules_63b47c51$f.popover_main_content_name,
3542
+ overlayClassName: modules_63b47c51$2.popover_main_content_name,
3586
3543
  title: item.name,
3587
3544
  placement: "top",
3588
3545
  children: item.name
3589
3546
  }) : item.name
3590
3547
  }),
3591
3548
  item.unreadCount != undefined && item.unreadCount > 0 && !(item.roomId != undefined && roomId != "" && item.roomId == roomId) && /*#__PURE__*/ jsx("span", {
3592
- className: modules_63b47c51$f.num,
3549
+ className: modules_63b47c51$2.num,
3593
3550
  children: item.unreadCount > 99 ? "99+" : item.unreadCount
3594
3551
  }),
3595
3552
  // 没有消息时,可点击删除
3596
3553
  !item.unreadCount && /*#__PURE__*/ jsx("span", {
3597
- className: modules_63b47c51$f.delete,
3554
+ className: modules_63b47c51$2.delete,
3598
3555
  onClick: function(e) {
3599
3556
  e.stopPropagation();
3600
3557
  deleteRoom(item.roomId);
@@ -3696,10 +3653,10 @@ var ScreenshotTool = /*#__PURE__*/ forwardRef(function(props, ref) {
3696
3653
  setIsFirst(false);
3697
3654
  };
3698
3655
  return /*#__PURE__*/ jsxs("div", {
3699
- className: modules_63b47c51$f.screenshot_Modal,
3656
+ className: modules_63b47c51$2.screenshot_Modal,
3700
3657
  children: [
3701
3658
  /*#__PURE__*/ jsx(X, {
3702
- className: modules_63b47c51$f.ReactCrop,
3659
+ className: modules_63b47c51$2.ReactCrop,
3703
3660
  crop: crop,
3704
3661
  onChange: function(_, percentCrop) {
3705
3662
  if (percentCrop.height === 0 && percentCrop.width === 0) {
@@ -3725,7 +3682,7 @@ var ScreenshotTool = /*#__PURE__*/ forwardRef(function(props, ref) {
3725
3682
  })
3726
3683
  }),
3727
3684
  showBtn && /*#__PURE__*/ jsxs("div", {
3728
- className: modules_63b47c51$f.screenshot_Modal_btn,
3685
+ className: modules_63b47c51$2.screenshot_Modal_btn,
3729
3686
  style: {
3730
3687
  top: btnPosition.top,
3731
3688
  left: btnPosition.left
@@ -3912,12 +3869,12 @@ var TeacherList = function(props) {
3912
3869
  });
3913
3870
  };
3914
3871
  return /*#__PURE__*/ jsx("div", {
3915
- className: "".concat(modules_63b47c51$f.history_list, " ").concat(type == 2 ? modules_63b47c51$f.history_list_broadside : "", " ").concat(modules_63b47c51$f.teacher_list),
3872
+ className: "".concat(modules_63b47c51$2.history_list, " ").concat(type == 2 ? modules_63b47c51$2.history_list_broadside : "", " ").concat(modules_63b47c51$2.teacher_list),
3916
3873
  children: /*#__PURE__*/ jsxs("div", {
3917
- className: modules_63b47c51$f.search_layout,
3874
+ className: modules_63b47c51$2.search_layout,
3918
3875
  children: [
3919
3876
  /*#__PURE__*/ jsxs("div", {
3920
- className: modules_63b47c51$f.title,
3877
+ className: modules_63b47c51$2.title,
3921
3878
  children: [
3922
3879
  /*#__PURE__*/ jsx("span", {
3923
3880
  children: "召唤老师回答"
@@ -3932,10 +3889,10 @@ var TeacherList = function(props) {
3932
3889
  ]
3933
3890
  }),
3934
3891
  /*#__PURE__*/ jsxs("div", {
3935
- className: modules_63b47c51$f.search_top,
3892
+ className: modules_63b47c51$2.search_top,
3936
3893
  children: [
3937
3894
  /*#__PURE__*/ jsx(SearchOutlined, {}),
3938
- /*#__PURE__*/ jsx(Input, {
3895
+ /*#__PURE__*/ jsx(Input$1, {
3939
3896
  placeholder: "请输入您要召唤的老师姓名",
3940
3897
  value: keyWordProblem,
3941
3898
  onChange: function(e) {
@@ -3965,11 +3922,11 @@ var TeacherList = function(props) {
3965
3922
  ]
3966
3923
  }),
3967
3924
  /*#__PURE__*/ jsxs("div", {
3968
- className: modules_63b47c51$f.main_list,
3925
+ className: modules_63b47c51$2.main_list,
3969
3926
  id: "teacher_list",
3970
3927
  children: [
3971
3928
  showLoadingState == 2 && /*#__PURE__*/ jsxs("div", {
3972
- className: modules_63b47c51$f.no_data,
3929
+ className: modules_63b47c51$2.no_data,
3973
3930
  children: [
3974
3931
  /*#__PURE__*/ jsx("img", {
3975
3932
  src: "/new_yun/images/aiService/no_data_02.png"
@@ -3980,30 +3937,30 @@ var TeacherList = function(props) {
3980
3937
  ]
3981
3938
  }),
3982
3939
  /*#__PURE__*/ jsx("div", {
3983
- className: modules_63b47c51$f.list_item,
3940
+ className: modules_63b47c51$2.list_item,
3984
3941
  ref: sliderRef,
3985
3942
  children: showTotalData.map(function(item) {
3986
3943
  var span = item.name.replaceAll(new RegExp(keyWordProblem, "ig"), function(i) {
3987
- return "<span class=".concat(modules_63b47c51$f.sign, ">").concat(i, "</span>");
3944
+ return "<span class=".concat(modules_63b47c51$2.sign, ">").concat(i, "</span>");
3988
3945
  });
3989
3946
  return /*#__PURE__*/ jsx(Fragment, {
3990
3947
  children: /*#__PURE__*/ jsxs("div", {
3991
- className: "".concat(modules_63b47c51$f.list_summary),
3948
+ className: "".concat(modules_63b47c51$2.list_summary),
3992
3949
  id: item.roomId,
3993
3950
  onClick: function() {
3994
3951
  enterTeacherChat(item);
3995
3952
  },
3996
3953
  children: [
3997
3954
  /*#__PURE__*/ jsx("div", {
3998
- className: modules_63b47c51$f.head_img,
3955
+ className: modules_63b47c51$2.head_img,
3999
3956
  children: /*#__PURE__*/ jsx("img", {
4000
3957
  src: item.headImg
4001
3958
  })
4002
3959
  }),
4003
3960
  /*#__PURE__*/ jsx("div", {
4004
- className: modules_63b47c51$f.list_desc,
3961
+ className: modules_63b47c51$2.list_desc,
4005
3962
  children: /*#__PURE__*/ jsx("p", {
4006
- className: modules_63b47c51$f.name,
3963
+ className: modules_63b47c51$2.name,
4007
3964
  style: {
4008
3965
  width: "calc(100% - 36px)"
4009
3966
  },
@@ -4039,8 +3996,7 @@ var parseDate = function(dateStr) {
4039
3996
  day: day,
4040
3997
  hours: hours,
4041
3998
  minutes: minutes,
4042
- seconds: seconds,
4043
- timestamp: date.getTime()
3999
+ seconds: seconds
4044
4000
  };
4045
4001
  };
4046
4002
 
@@ -8132,8 +8088,8 @@ var ScreenShot = /*#__PURE__*/ function() {
8132
8088
  return ScreenShot;
8133
8089
  }();
8134
8090
 
8135
- var styles = modules_63b47c51$f;
8136
- var TextArea$1 = BhdEnterInput.TextArea;
8091
+ var styles = modules_63b47c51$2;
8092
+ var TextArea = Input.TextArea;
8137
8093
  /*
8138
8094
  自定义remarkable的text解析规则
8139
8095
  */ var HTML_ESCAPE_TEST_RE = /[&<>"]/;
@@ -8211,6 +8167,7 @@ var CustomerService = function(props) {
8211
8167
  var mid = props.userData.mid;
8212
8168
  var renderAiAnswerTimer = useRef(null);
8213
8169
  var remarkable = new Remarkable({
8170
+ html: true,
8214
8171
  highlight: function highlight(str, lang) {
8215
8172
  if (lang && HighlightJS.getLanguage(lang)) {
8216
8173
  try {
@@ -8225,6 +8182,7 @@ var CustomerService = function(props) {
8225
8182
  });
8226
8183
  var remarkReplaceKey = function(message, keyWordProblem) {
8227
8184
  var newRemarkable = new Remarkable({
8185
+ html: true,
8228
8186
  highlight: function highlight(str, lang) {
8229
8187
  if (lang && HighlightJS.getLanguage(lang)) {
8230
8188
  try {
@@ -8573,7 +8531,6 @@ var CustomerService = function(props) {
8573
8531
  message.replaceAll(new RegExp(/```(?:.|\n)*?```/, "ig"), function(con) {
8574
8532
  i++;
8575
8533
  if (i == position) {
8576
- con = con.replace(/^```[\s\S]*?\n/, "").replace(/\n```$/, "");
8577
8534
  codeConment = con;
8578
8535
  return con;
8579
8536
  } else {
@@ -9357,6 +9314,7 @@ var CustomerService = function(props) {
9357
9314
  console.log("返回中", msg);
9358
9315
  content = content + msg.message;
9359
9316
  // isPosition.current = true;
9317
+ clearTimeout(renderAiAnswerTimer.current);
9360
9318
  renderAiAnswerTimer.current = setTimeout(function() {
9361
9319
  if (!finishedRef.current) {
9362
9320
  renderAiAnswer(msg, id, type);
@@ -11215,7 +11173,7 @@ var CustomerService = function(props) {
11215
11173
  })
11216
11174
  ]
11217
11175
  }),
11218
- /*#__PURE__*/ jsx(TextArea$1, {
11176
+ /*#__PURE__*/ jsx(TextArea, {
11219
11177
  placeholder: placeholder,
11220
11178
  autoSize: {
11221
11179
  minRows: 1,
@@ -12090,7 +12048,7 @@ window.appendDom = function(root, props) {
12090
12048
  };
12091
12049
  var CustomerService$1 = CustomerService;
12092
12050
 
12093
- var modules_63b47c51$e = {"bhdDatePicker":"index_module_bhdDatePicker__484452d2","bhdDatePickerPopup":"index_module_bhdDatePickerPopup__484452d2","singlePicker":"index_module_singlePicker__484452d2","rangePicker":"index_module_rangePicker__484452d2","extraPicker":"index_module_extraPicker__484452d2","showTime":"index_module_showTime__484452d2","showExtraFooter":"index_module_showExtraFooter__484452d2","noNeedConfirm":"index_module_noNeedConfirm__484452d2","readonly":"index_module_readonly__484452d2"};
12051
+ var modules_63b47c51$1 = {"bhdDatePicker":"index_module_bhdDatePicker__484452d2","bhdDatePickerPopup":"index_module_bhdDatePickerPopup__484452d2","singlePicker":"index_module_singlePicker__484452d2","rangePicker":"index_module_rangePicker__484452d2","extraPicker":"index_module_extraPicker__484452d2","showTime":"index_module_showTime__484452d2","showExtraFooter":"index_module_showExtraFooter__484452d2","noNeedConfirm":"index_module_noNeedConfirm__484452d2","readonly":"index_module_readonly__484452d2"};
12094
12052
 
12095
12053
  var RangePicker = DatePicker.RangePicker;
12096
12054
  var months = [
@@ -12285,22 +12243,22 @@ var BhdDatePicker = /*#__PURE__*/ forwardRef(function(props, ref) {
12285
12243
  }
12286
12244
  // 单选
12287
12245
  if (kind === "single") {
12288
- config.popupClassName = "\n ".concat(modules_63b47c51$e.bhdDatePickerPopup, " ").concat(modules_63b47c51$e.singlePicker, " ").concat(popupClassName || "", " ").concat(showTime ? modules_63b47c51$e.showTime : "", " ").concat(renderExtraFooter ? modules_63b47c51$e.showExtraFooter : "");
12246
+ config.popupClassName = "\n ".concat(modules_63b47c51$1.bhdDatePickerPopup, " ").concat(modules_63b47c51$1.singlePicker, " ").concat(popupClassName || "", " ").concat(showTime ? modules_63b47c51$1.showTime : "", " ").concat(renderExtraFooter ? modules_63b47c51$1.showExtraFooter : "");
12289
12247
  }
12290
12248
  // 范围选择
12291
12249
  if (kind === "range") {
12292
- config.popupClassName = "".concat(modules_63b47c51$e.bhdDatePickerPopup, " ").concat(modules_63b47c51$e.rangePicker, " ").concat(popupClassName || "", " ").concat(showTime ? modules_63b47c51$e.showTime : "", " ").concat(renderExtraFooter ? modules_63b47c51$e.showExtraFooter : "");
12250
+ config.popupClassName = "".concat(modules_63b47c51$1.bhdDatePickerPopup, " ").concat(modules_63b47c51$1.rangePicker, " ").concat(popupClassName || "", " ").concat(showTime ? modules_63b47c51$1.showTime : "", " ").concat(renderExtraFooter ? modules_63b47c51$1.showExtraFooter : "");
12293
12251
  }
12294
12252
  // 日常安排
12295
12253
  if (kind === "extra") {
12296
12254
  delete config.showTime; // 日程安排的时候,不允许展示时间面板
12297
12255
  showTime = false; // 日程安排不选择时间
12298
- config.popupClassName = "".concat(modules_63b47c51$e.bhdDatePickerPopup, " ").concat(modules_63b47c51$e.extraPicker, " ").concat(extraReadonly ? modules_63b47c51$e.readonly : "", " ").concat(popupClassName || "", " ").concat(showTime ? modules_63b47c51$e.showTime : "", " ").concat(renderExtraFooter ? modules_63b47c51$e.showExtraFooter : "");
12256
+ config.popupClassName = "".concat(modules_63b47c51$1.bhdDatePickerPopup, " ").concat(modules_63b47c51$1.extraPicker, " ").concat(extraReadonly ? modules_63b47c51$1.readonly : "", " ").concat(popupClassName || "", " ").concat(showTime ? modules_63b47c51$1.showTime : "", " ").concat(renderExtraFooter ? modules_63b47c51$1.showExtraFooter : "");
12299
12257
  if (extraReadonly) {
12300
12258
  config.allowClear = false; // 日程安排查看时,不显示清除按钮
12301
12259
  }
12302
12260
  }
12303
- config.popupClassName = "".concat(config.popupClassName, " ").concat(dropdownClassName, " ").concat(needConfirm ? "" : modules_63b47c51$e.noNeedConfirm, " ").concat(id);
12261
+ config.popupClassName = "".concat(config.popupClassName, " ").concat(dropdownClassName, " ").concat(needConfirm ? "" : modules_63b47c51$1.noNeedConfirm, " ").concat(id);
12304
12262
  return config;
12305
12263
  };
12306
12264
  // 设置默认mode
@@ -12593,7 +12551,7 @@ var BhdDatePicker = /*#__PURE__*/ forwardRef(function(props, ref) {
12593
12551
  }
12594
12552
  };
12595
12553
  return /*#__PURE__*/ jsxs("span", {
12596
- className: "".concat(modules_63b47c51$e.bhdDatePicker),
12554
+ className: "".concat(modules_63b47c51$1.bhdDatePicker),
12597
12555
  ref: bhdDatePickerRef,
12598
12556
  children: [
12599
12557
  (kind === "single" || kind === "extra") && /*#__PURE__*/ jsx(Fragment, {
@@ -12774,7 +12732,7 @@ var BhdDatePicker = /*#__PURE__*/ forwardRef(function(props, ref) {
12774
12732
  });
12775
12733
  var BhdDatePicker$1 = BhdDatePicker;
12776
12734
 
12777
- var modules_63b47c51$d = {"BhdModalCropper":"index_module_BhdModalCropper__36cc44f0","cropperBox":"index_module_cropperBox__36cc44f0","cropperBtn":"index_module_cropperBtn__36cc44f0","icons":"index_module_icons__36cc44f0"};
12735
+ var modules_63b47c51 = {"BhdModalCropper":"index_module_BhdModalCropper__36cc44f0","cropperBox":"index_module_cropperBox__36cc44f0","cropperBtn":"index_module_cropperBtn__36cc44f0","icons":"index_module_icons__36cc44f0"};
12778
12736
 
12779
12737
  var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
12780
12738
  var _props_centered = props.centered, centered = _props_centered === void 0 ? true : _props_centered, _props_wrapClassName = props.wrapClassName, wrapClassName = _props_wrapClassName === void 0 ? "" : _props_wrapClassName, _props_width = props.width, width = _props_width === void 0 ? 456 : _props_width, _props_cropperProps = props.cropperProps, cropperProps = _props_cropperProps === void 0 ? {} : _props_cropperProps, _props_uploadMaxSize = props.uploadMaxSize, uploadMaxSize = _props_uploadMaxSize === void 0 ? 500 * 1024 : _props_uploadMaxSize, _props_accept = props.accept, accept = _props_accept === void 0 ? [
@@ -12853,13 +12811,13 @@ var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
12853
12811
  };
12854
12812
  return /*#__PURE__*/ jsx(Modal$1, _object_spread_props(_object_spread({}, props), {
12855
12813
  centered: centered,
12856
- wrapClassName: "".concat(wrapClassName, " ").concat(modules_63b47c51$d.BhdModalCropper),
12814
+ wrapClassName: "".concat(wrapClassName, " ").concat(modules_63b47c51.BhdModalCropper),
12857
12815
  width: width,
12858
12816
  children: open && /*#__PURE__*/ jsxs("div", {
12859
- className: modules_63b47c51$d.cropperBox,
12817
+ className: modules_63b47c51.cropperBox,
12860
12818
  children: [
12861
12819
  /*#__PURE__*/ jsx("div", {
12862
- className: modules_63b47c51$d.cropperMain,
12820
+ className: modules_63b47c51.cropperMain,
12863
12821
  children: /*#__PURE__*/ jsx(l, _object_spread_props(_object_spread({
12864
12822
  src: imgSrc,
12865
12823
  orginStyle: {
@@ -12882,7 +12840,7 @@ var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
12882
12840
  }))
12883
12841
  }),
12884
12842
  /*#__PURE__*/ jsxs("div", {
12885
- className: modules_63b47c51$d.cropperBtn,
12843
+ className: modules_63b47c51.cropperBtn,
12886
12844
  children: [
12887
12845
  /*#__PURE__*/ jsx(Upload, {
12888
12846
  fileList: [],
@@ -12893,7 +12851,7 @@ var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
12893
12851
  })
12894
12852
  }),
12895
12853
  /*#__PURE__*/ jsxs("div", {
12896
- className: modules_63b47c51$d.icons,
12854
+ className: modules_63b47c51.icons,
12897
12855
  children: [
12898
12856
  /*#__PURE__*/ jsx("span", {
12899
12857
  onClick: function() {
@@ -12917,2885 +12875,4 @@ var BhdModalCropper = /*#__PURE__*/ forwardRef(function(props, ref) {
12917
12875
  });
12918
12876
  var BhdModalCropper$1 = BhdModalCropper;
12919
12877
 
12920
- var modules_63b47c51$c = {"root":"index_module_root__b60b60e0","rootHeader":"index_module_rootHeader__b60b60e0","rootContent":"index_module_rootContent__b60b60e0","rootFooter":"index_module_rootFooter__b60b60e0"};
12921
-
12922
- var modules_63b47c51$b = {"header":"index_module_header__3cf37c84","headerLeft":"index_module_headerLeft__3cf37c84","headerIcon":"index_module_headerIcon__3cf37c84","headerTitle":"index_module_headerTitle__3cf37c84","headerRight":"index_module_headerRight__3cf37c84"};
12923
-
12924
- var defaultProps$1 = {
12925
- icon: /*#__PURE__*/ jsx("i", {
12926
- children: /*#__PURE__*/ jsxs("svg", {
12927
- xmlns: "http://www.w3.org/2000/svg",
12928
- width: "1em",
12929
- height: "1em",
12930
- viewBox: "0 0 16 16",
12931
- fill: "none",
12932
- children: [
12933
- /*#__PURE__*/ jsx("path", {
12934
- d: "M12.6063 14C12.2547 13.9994 11.9095 13.9066 11.6051 13.7309C11.3006 13.5551 11.0476 13.3025 10.8714 12.9983L7.15187 6.55597L4.21122 11.6493H7.67426C7.98599 11.6493 8.28495 11.7731 8.50538 11.9935C8.7258 12.2139 8.84963 12.5129 8.84963 12.8246C8.84963 13.1364 8.7258 13.4353 8.50538 13.6557C8.28495 13.8762 7.98599 14 7.67426 14H2.17613C1.96974 14.0001 1.76696 13.9459 1.58818 13.8428C1.40939 13.7397 1.26091 13.5913 1.15766 13.4126C1.05441 13.2339 1.00003 13.0312 1 12.8248C0.999967 12.6184 1.05428 12.4157 1.15747 12.2369L6.13322 3.61754C6.23638 3.43887 6.38476 3.29051 6.56343 3.18736C6.7421 3.08421 6.94478 3.0299 7.15109 3.0299C7.3574 3.0299 7.56008 3.08421 7.73875 3.18736C7.91742 3.29051 8.0658 3.43887 8.16896 3.61754L12.2582 10.6998V4.20522C12.2582 3.8935 12.3821 3.59454 12.6025 3.37411C12.8229 3.15368 13.1219 3.02985 13.4336 3.02985C13.7453 3.02985 14.0443 3.15368 14.2647 3.37411C14.4851 3.59454 14.609 3.8935 14.609 4.20522V11.9966C14.609 12.5279 14.398 13.0373 14.0224 13.413C13.6469 13.7887 13.1375 13.9998 12.6063 14Z",
12935
- fill: "url(#paint0_linear_34_244)"
12936
- }),
12937
- /*#__PURE__*/ jsx("path", {
12938
- d: "M13.4336 2.35075C14.0827 2.35075 14.609 1.82451 14.609 1.17537C14.609 0.526232 14.0827 0 13.4336 0C12.7845 0 12.2582 0.526232 12.2582 1.17537C12.2582 1.82451 12.7845 2.35075 13.4336 2.35075Z",
12939
- fill: "url(#paint1_linear_34_244)"
12940
- }),
12941
- /*#__PURE__*/ jsxs("defs", {
12942
- children: [
12943
- /*#__PURE__*/ jsxs("linearGradient", {
12944
- id: "paint0_linear_34_244",
12945
- x1: "14.609",
12946
- y1: "0",
12947
- x2: "-0.275842",
12948
- y2: "13.609",
12949
- gradientUnits: "userSpaceOnUse",
12950
- children: [
12951
- /*#__PURE__*/ jsx("stop", {
12952
- stopColor: "#F87AFD"
12953
- }),
12954
- /*#__PURE__*/ jsx("stop", {
12955
- offset: "1",
12956
- stopColor: "#41DAF8"
12957
- })
12958
- ]
12959
- }),
12960
- /*#__PURE__*/ jsxs("linearGradient", {
12961
- id: "paint1_linear_34_244",
12962
- x1: "14.609",
12963
- y1: "0",
12964
- x2: "-0.275842",
12965
- y2: "13.609",
12966
- gradientUnits: "userSpaceOnUse",
12967
- children: [
12968
- /*#__PURE__*/ jsx("stop", {
12969
- stopColor: "#F87AFD"
12970
- }),
12971
- /*#__PURE__*/ jsx("stop", {
12972
- offset: "1",
12973
- stopColor: "#41DAF8"
12974
- })
12975
- ]
12976
- })
12977
- ]
12978
- })
12979
- ]
12980
- })
12981
- }),
12982
- className: "",
12983
- renderRightHead: function() {
12984
- return null;
12985
- }
12986
- };
12987
- var Header$1 = function(props) {
12988
- var headerConfig = props.headerConfig, prefix = props.prefix;
12989
- var _headerConfig_icon = headerConfig.icon, icon = _headerConfig_icon === void 0 ? defaultProps$1.icon : _headerConfig_icon, title = headerConfig.title, _headerConfig_className = headerConfig.className, className = _headerConfig_className === void 0 ? defaultProps$1.className : _headerConfig_className, _headerConfig_renderRightHead = headerConfig.renderRightHead, renderRightHead = _headerConfig_renderRightHead === void 0 ? defaultProps$1.renderRightHead : _headerConfig_renderRightHead;
12990
- var getCls = function(clsName) {
12991
- return modules_63b47c51$b[clsName] + " " + prefix + "-" + clsName;
12992
- };
12993
- return /*#__PURE__*/ jsxs("div", {
12994
- className: "".concat(getCls("header"), " ").concat(className),
12995
- children: [
12996
- /*#__PURE__*/ jsxs("div", {
12997
- className: getCls("headerLeft"),
12998
- children: [
12999
- /*#__PURE__*/ jsx("div", {
13000
- className: getCls("headerIcon"),
13001
- children: icon
13002
- }),
13003
- /*#__PURE__*/ jsx("div", {
13004
- className: getCls("headerTitle"),
13005
- children: title
13006
- })
13007
- ]
13008
- }),
13009
- /*#__PURE__*/ jsx("div", {
13010
- className: getCls("headerRight"),
13011
- children: renderRightHead()
13012
- })
13013
- ]
13014
- });
13015
- };
13016
- var Header$2 = Header$1;
13017
-
13018
- var modules_63b47c51$a = {"content":"index_module_content__fcd2c97c","contentList":"index_module_contentList__fcd2c97c"};
13019
-
13020
- var modules_63b47c51$9 = {"virtuosoList-wrapper":"index_module_virtuosoListWrapper__1f4840d2","loadingIcon":"index_module_loadingIcon__1f4840d2","msg-date":"index_module_msgDate__1f4840d2","msgItem":"index_module_msgItem__1f4840d2","msgItem-box":"index_module_msgItemBox__1f4840d2","msgItem-content":"index_module_msgItemContent__1f4840d2","msgItem-text":"index_module_msgItemText__1f4840d2","copyCode":"index_module_copyCode__1f4840d2","copyCodeFun":"index_module_copyCodeFun__1f4840d2","copyCodeText":"index_module_copyCodeText__1f4840d2","icon":"index_module_icon__1f4840d2","copy":"index_module_copy__1f4840d2","copy_success":"index_module_copy_success__1f4840d2","copy_success_flag":"index_module_copy_success_flag__1f4840d2","msgItem-file":"index_module_msgItemFile__1f4840d2","msgItem-file-left":"index_module_msgItemFileLeft__1f4840d2","msgItem-file-right":"index_module_msgItemFileRight__1f4840d2","msgItem-action":"index_module_msgItemAction__1f4840d2","msgItem-action-left":"index_module_msgItemActionLeft__1f4840d2","msgItem-action-right":"index_module_msgItemActionRight__1f4840d2","msgItem-action-operate":"index_module_msgItemActionOperate__1f4840d2","msgItem-action-popover":"index_module_msgItemActionPopover__1f4840d2","msgItem-action-popover-floatTop":"index_module_msgItemActionPopoverFloatTop__1f4840d2","msgItem-action-popover-floatBottom":"index_module_msgItemActionPopoverFloatBottom__1f4840d2","msgItem-reference-text":"index_module_msgItemReferenceText__1f4840d2","msgItem-reference-file":"index_module_msgItemReferenceFile__1f4840d2","msgItem-reference-file-box":"index_module_msgItemReferenceFileBox__1f4840d2","msgItem-reference-file-left":"index_module_msgItemReferenceFileLeft__1f4840d2","msgItem-reference-file-right":"index_module_msgItemReferenceFileRight__1f4840d2","msgItem-left":"index_module_msgItemLeft__1f4840d2","msgItem-right":"index_module_msgItemRight__1f4840d2"};
13021
-
13022
- var loading2 = "data:image/gif;base64,R0lGODlhgACAAKIEAN3d3bu7u////5mZmf///wAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NENGQTg4RUY0MTQwMTFFOEEzQjg5QjE4RTZFRjE2NTUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NENGQTg4RjA0MTQwMTFFOEEzQjg5QjE4RTZFRjE2NTUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0Q0ZBODhFRDQxNDAxMUU4QTNCODlCMThFNkVGMTY1NSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0Q0ZBODhFRTQxNDAxMUU4QTNCODlCMThFNkVGMTY1NSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUIAAQALAAAAACAAIAAAAP/SLrc/jDKSau9OOvNu/+gJoxCaJ5oRpJp67rr+s50F7N1rk/3uP/ARa8ULOaGxuQMqWwSAFDAh9kZWAdOTTTqoW6u1+xlu7X1quCwmELmcryZtHotabtF56/cSp/Y7xhwFntzfRB/Ung3enuGbH+KMRqEWI5+kCp5GJSWj3aZi5uEnZ6fF4ISlJWkdZgWqBGcrJeuFLAPqrOlZKeaFLK6tG2vvqmjwbtlFbcNwMitpjzFEM7PEYiJEswKudbJgBDbBNXeh4jSobHk5Q/n6DjGjXQB9AEh7trw6vIfYB/19UDgC7EuTpoOABN+qAXiGBp+GRJK7MCwH0SDBSlI3Mhh/1gKORxUFcKwkeMGZS38MRKJsOREdtREjtTg0iRMbjJncqj5slxOnR54KvT2k48LoQCRFV01A2lAUkt/OKXXKWqQqY6KNkGaVeYanl0zJqkZ9uK8nobMOkoKFejNt3Djyp1Lt67du3jz6t3Lty/fpd18AnbIYHDgZ4arJT6sa7Ezx4QbQwa5YDJlpZZV4sxsFDNnpuM4C86MyzJM0n5Tq17NurXr17Bjy55Nu/YMzZZwV72clncfxmKAO2HZWyyQnGWN19Ba3GsQq8mJ64CemzkN6qywn9Au+edH60TBe+Ae3vt483PFi3I+ya3Fzhilx1ceUzfBgyvpl9a/H7+JyNDrATiIgAHad55v7ak1oIHzMRgSgQWClqCE+TlYmXubIbjSbxBeaGGG/tUlXGEKeljiTcp1COKHo524Inz1uViehg6o+CKMb+ln440UsqOjjDzKxd+OQeY4JJA89ugZjTGySCKS1RF5Y4RORslkkxjWKCWHUJpY5ZNX7tbllA1m2VyIF2zp5ZdZjDiBmkkuiWaaY65pZnB12qnkL3kaAaeeD83ZFptahvmmoNnduQ+idOKo2p+2kRnphIROKqmljTKKKZaObhqPop6aGOqoniYAACH5BAUIAAQALAoAAgBXADAAAAP/SLrc/jA+QIG8OOs9K+VgKEqeN54oV1Zp63brK7/rN99nbeE8qPejgDCQ+qEESEFrOEQZR8kkisnM1U7R6InaHD1DWWmQK/ReRWGxiNz1nUFp9Zot+m7iyhSb6I7B4y57IXYZeC+CKm8ahoeIGoQSeHmNZIl+i4Aze3wZkBCSOI4Yng+MoXSdipGZPKIkqhGmragXpAyys7QRtgqgQAquMCUYuD2btbANvr/AuhCXsawQA9QDgc7CxNIP1dVL2EfbDd3kepUy4uPk5WNcM+kM6/LtbehZGPLzc2U8Whn5+pgJBBhQ4C+C6wwyQ8hOIRCG3RwehEhNYg+KFS3ywKjxEyLDjg8JggyZb+TEhiZJWkupIQEAIfkEBQgABAAsHwACAFcAMAAAA/9Iutz+K8gAq7046zbn/mCodZ1oniLpoWxbqZIrzwRM0fhp53y496KBcMD6nQBIQGs4RBlFySSKydTBjlGpido0PUFZbZAr9F6hYeSJ3AV9NWnxmJw6g+NLts++iSvzdG58cHgubEQfbxd+M4eII4OLjI16G4oVk5SVGZcPfn80h5aRmIU5opyknqanmxedDZk8qK+qsayztC+2C59AC7oQsAqyQI61KpK4xq7CJBjFvwTBDyXKYS4C2gIY1CjRIdvb3YEyyyDi6RfNLOca6fDkVTjYIvD3GfM5USb3+NLS/P0D2EPgQII4DMZDyEOhOoYJHY6DSEPiRIozLGrDWNEUIseICj/mCClypMCSBReiTLnRRAIAIfkEBQgABAAsPAACAEIAQgAAA/9INDz6MMpJq52t3c17zZknjhaokWhqMmk7ro4rb/Bsf+utR7Ub/IHdo5cCAoWLXNF43BFJzKbuKYpKb9SO9WrLcrZBofcCRiZN0K15XCmvlVo3kj2Rz+EbcPiNjlvNQ3gWdnwgflGAgX1kaokKdAp6jo+CdY2TkJKTlCGMf5uKMYOXLgCmADuEKKenOqSrrKw3ryKxtq5MKba7qVweu7ygG8DBwhXExcYSyLfKFMyxzhPQstIR1K3W19io2hDc3svQ4dPI5M/E58fN6uum7fDx8vP09fb3+Pn6+gL9/v8AAwI0JrCgwX+gDio0uGmhw4GTHkoU0HCiw4QWDxLMKFACQQIAIfkEBQgABAAsTgAKADAAVwAAA+xIurzzo8lJK4XQ6n1x5uDmfWEpjaSpoqlaspG7srIL1+aNh3C8c7qfKCi0EIsdFHKoXFaOTkYvmhxRJ9NrA3rlqgLggJG2C4efzZp5XcWo1+y2zwSvjx+yup2q3zv7fkiAcHyDZlGGh3+JYIWMjoZaiVoKg5QLgJcMgZqVZ52goaKjpKWmp6ipqioAra6vsLGwNbK1tq8ut7q2rLu+uCa/wgC9w7u5xre0ybKrzs/Q0dLT1NUyAtgCpdncotzf2p3g3+Lj5JTm4+jp4Frs7e7v3fHy2PT16/XhV/r7/Pj52JVLF4qgt3Oj5lFIAAAh+QQFCAAEACxOAB8AMABXAAAD6Ui63P5uyAGrvW1OzDvRoCdGYDiOZXqKqbpirftWsTyTtXbTub7jPcovE5QMgb0jMahEtpqPHBRSm/JM1qswy+16v+CweEwum8/cgHrNbrvbs7d8zl7R7/MTfg8f8f8BeoB7doN0cYZvaIuMjY6PkJGSkwoAlgBml5pjmp2YYJ6doKGiXaShpqeeXKqrrK2br7CWsrOps59ZuLkQAr4CL7gVv7/BsL3ExcanyMnAN8wPzsrQpdLTzzuxw9hi2L7e3WHf2V/fY+fj4urT4evm717k7s7o8V3p7PX6+2D5/u3oESPTzx64KQkAACH5BAUIAAQALDwAPABCAEIAAAP5SLrc/lCNSau9Nuodsf8VJ3Jg+Y3oY65Z6kps/L6xPLu1ec/5uf/AoHBILBqPyKRyyWw6n9CodEoIWAPU13WbHW2/2K4G/BVHyGCzA01WM9htdxVels/pV/sdH3bz83Z/VnqCRgCHADd/RIiIinhDjY07dJGSh0BslpeJmXURAqECHJyYQVwaoqKkpU+qqhulpkyvq7GtTbWhrLhLuqO8l7m6I7K0xCLGvsjJvUi/KLKdz8zNnErQ0cpH2drX1LUv20Xd3sLc1eaS6OHi40LlKe9B8fLfRPXqjuTpLuf87XZMYvdKj4N8dhDKUeiGoRqHDwsafABrYoMEACH5BAUIAAQALB8ATgBXADAAAAP/SLrc/jDKN+qYOOvNif1dKI7NZ15kqkqnub6w17pxHc6trWt4vv+Q3glIdAhpxeQRlCwuLU3lExUFTjWCrOAX6AZGT4xWq/N6wcfJeFwzm0lC9TrbdndVOMmcHLOf8UgQe3QTAIYAGH53K0wRg1uFh4aJilGPkBGSkhOKi0WPGJqHlH5Jl6GiiJydn4MZqaqrpUCgr6karD+1qKK4lTu7vJobuTWnGrDExTDBwpvKs8zNkb3Q0SvT1MMcyynZ2s/cvyrfEskd3SLl5rch6RzHHefo71iuIvP01x33+O0i40L0C5FPnxtva1IUNOiJBBuF/0a8qeJsFMUoCy/+yKhREwfHjjU+goQhcuSLaiaJhEupIAEAIfkEBQgABAAsCgBOAFcAMAAAA/9IutwuULhJq704t8i1/+DHjVJoniE5omxLqaQrt7A632Bt4zymx73g5LcSGhfEznGZjCyPTcgT2pxSiSeAFiAceAeZZHar7X2/Ph2KTMadz5dai711v71pJYtev93RcU4ufGUXAYcBGH94VgSEXIaIh4qLVo+QFZKSF4uMS48YmoiUf0+XoaKJnJ2fhBmpqqulRqCvqRqsQrWooriVQbu8mh65OKcasMTFM8HCm8qzzM2RvdDRg64fyR/Le9natyDdY3wh29y/3uXm4eLpJscg5+jvINPI7e7X9usm8/pv1vRjV81EPX5tUPwD6ElgIYX5DAJqRG0YRSsLLwrJqLESB8eOOD6CnCFypIyCJo0845EAACH5BAUIAAQALAIAPABCAEIAAAP1SCTc/vCpSau9mMbNXf7g1Y1caIJkKp2spb5CK0+wOt/1eO/5tv/AoHBILBqPyKRyyWw6n9CodEo9Aa6AqgzL1Zq44Kw3EwaPL+XwmZIurwlt9zquPtPN9jv2rd/n+3yAgXc7AYYBRnqFh4ZFdD+MjERtQZGHjnhAlpeYV0ObjSADowNSoIiipKNQp6gZqqpPpyGwpE6ttLWlTbO5tbygJ7q7S72+sEzGx7FKuMK6xcEsw83Ky7ZJ1terSNrbxEbeqb9H4uPI4eYf1OmbO+xF0jfwRPIz9PWRQPj5oT/8byYADEhgYECDbxCuUXiGYUN0BDEwSwAAIfkEBQgABAAsAgAfADAAVwAAA+dIuiwuLMpJa3vO6k2x5+DmjWEpjaipoqlasq3LwbGs0aR945gu8g/fDggRdohF4wSprACbFhw0CpsOe9ZfJsvter/gsHhMLpvPIYB6zW6727a3fM520e9zFX4PN/H/AHqAe3aDdHGGb2iLjI2Oj5CRkpNoAZYBZpeaY5qdmGCenV+hnl2koVmnqFaqpVOtoq+wl6mzlqy2n7KzXLYyA8ADFrwuwcEVrTbGxhSnPsvHzbE60NHSt0LVwGLawmHd3mDd3OPf2uTVY+Xi5+bt7Onu8fDQ6PX2y/jM8vf0+frb1M3Td2afhgQAIfkECQgABAAsAgAKADAAVwAAA+tIutz+S0gBq71tTsy70ponVuA2nkxpoqe6sqJLwa1Lj/KN23onzz1MLigcEi3GI4mnhCSbjic0Ip0SqtOfNcqEAL6AHpYABuuw5fSty0i7YeyFe84qVeZ0VMiCz0/7flCAb3+DZVuGh1aJZoWMiI+Qg1tygJSVeJdthJqbX52goaKjpKWmp6ipOgGsra6vsK8wsbS1rii2ubUnur2yI77BAbzCvbjFtrPIsarNzs/Q0dLT1M8D1wOj2Nug297Zl9/elOLfVuXiUOjpTevmSu7j8PHY6vTX7ffg8/RT91v9AK7ThC7UO1HcrCQAADs=";
13023
- var loading2Gif = loading2;
13024
-
13025
- var modules_63b47c51$8 = {"msgItem-action-copy":"index_module_msgItemActionCopy__4640e67c","msgItem-action-copy-success":"index_module_msgItemActionCopySuccess__4640e67c"};
13026
-
13027
- var copyIconSvg = /*#__PURE__*/ jsx("i", {
13028
- children: /*#__PURE__*/ jsxs("svg", {
13029
- width: "1em",
13030
- height: "1em",
13031
- viewBox: "0 0 14 14",
13032
- shapeRendering: "geometricPrecision",
13033
- fill: "currentColor",
13034
- xmlns: "http://www.w3.org/2000/svg",
13035
- children: [
13036
- /*#__PURE__*/ jsx("g", {
13037
- clipPath: "url(#clip0_518_8403)",
13038
- children: /*#__PURE__*/ jsx("path", {
13039
- d: "M6.16666 1.66666H13.1667C13.4761 1.66666 13.7728 1.78957 13.9916 2.00837C14.2104 2.22716 14.3333 2.5239 14.3333 2.83332V9.83332C14.3333 10.1427 14.2104 10.4395 13.9916 10.6583C13.7728 10.8771 13.4761 11 13.1667 11H6.16666C5.85724 11 5.5605 10.8771 5.34171 10.6583C5.12291 10.4395 5 10.1427 5 9.83332V2.83332C5 2.5239 5.12291 2.22716 5.34171 2.00837C5.5605 1.78957 5.85724 1.66666 6.16666 1.66666ZM6.16666 2.66666C6.12246 2.66666 6.08007 2.68422 6.04881 2.71547C6.01756 2.74673 6 2.78912 6 2.83332V9.83332C6 9.85521 6.00431 9.87688 6.01268 9.8971C6.02106 9.91732 6.03334 9.9357 6.04881 9.95117C6.06429 9.96665 6.08266 9.97893 6.10288 9.9873C6.1231 9.99568 6.14478 9.99999 6.16666 9.99999H13.1667C13.2109 9.99999 13.2533 9.98243 13.2845 9.95117C13.3158 9.91992 13.3333 9.87753 13.3333 9.83332V2.83332C13.3333 2.78912 13.3158 2.74673 13.2845 2.71547C13.2533 2.68422 13.2109 2.66666 13.1667 2.66666H6.16666ZM10 12C10 11.8674 10.0527 11.7402 10.1464 11.6464C10.2402 11.5527 10.3674 11.5 10.5 11.5C10.6326 11.5 10.7598 11.5527 10.8536 11.6464C10.9473 11.7402 11 11.8674 11 12V13.1667C11 13.4761 10.8771 13.7728 10.6583 13.9916C10.4395 14.2104 10.1427 14.3333 9.83333 14.3333H2.83333C2.52391 14.3333 2.22717 14.2104 2.00837 13.9916C1.78958 13.7728 1.66666 13.4761 1.66666 13.1667V6.16666C1.66666 5.85724 1.78958 5.56049 2.00837 5.3417C2.22717 5.12291 2.52391 4.99999 2.83333 4.99999H4C4.13261 4.99999 4.25978 5.05267 4.35355 5.14644C4.44732 5.2402 4.5 5.36738 4.5 5.49999C4.5 5.6326 4.44732 5.75978 4.35355 5.85354C4.25978 5.94731 4.13261 5.99999 4 5.99999H2.83333C2.78913 5.99999 2.74674 6.01755 2.71548 6.04881C2.68422 6.08006 2.66666 6.12245 2.66666 6.16666V13.1667C2.66666 13.2109 2.68422 13.2533 2.71548 13.2845C2.74674 13.3158 2.78913 13.3333 2.83333 13.3333H9.83333C9.87753 13.3333 9.91993 13.3158 9.95118 13.2845C9.98244 13.2533 10 13.2109 10 13.1667V12Z"
13040
- })
13041
- }),
13042
- /*#__PURE__*/ jsx("defs", {
13043
- children: /*#__PURE__*/ jsx("clipPath", {
13044
- id: "clip0_518_8403",
13045
- children: /*#__PURE__*/ jsx("rect", {
13046
- width: "16",
13047
- height: "16"
13048
- })
13049
- })
13050
- })
13051
- ]
13052
- })
13053
- });
13054
- var copySuccessSvg = /*#__PURE__*/ jsx("i", {
13055
- children: /*#__PURE__*/ jsx("svg", {
13056
- width: "1em",
13057
- height: "1em",
13058
- shapeRendering: "geometricPrecision",
13059
- fill: "currentColor",
13060
- viewBox: "0 0 12 7",
13061
- xmlns: "http://www.w3.org/2000/svg",
13062
- children: /*#__PURE__*/ jsx("path", {
13063
- d: "M11.2242 0.375687C11.4586 0.610002 11.4586 0.989901 11.2242 1.22422L4.82424 7.62422C4.58992 7.85853 4.21003 7.85853 3.97571 7.62422L0.775712 4.42422C0.541397 4.1899 0.541397 3.81 0.775712 3.57569C1.01003 3.34137 1.38993 3.34137 1.62424 3.57569L4.39998 6.35142L10.3757 0.375687C10.61 0.141373 10.9899 0.141373 11.2242 0.375687Z"
13064
- })
13065
- })
13066
- });
13067
- var CopyIcon = function(props) {
13068
- var prefix = props.prefix, content = props.content;
13069
- var _useState = _sliced_to_array(useState(false), 2), copySuccess = _useState[0], setCopySuccess = _useState[1];
13070
- var timer = useRef(null);
13071
- useEffect(function() {
13072
- return function() {
13073
- clearTimeout(timer.current);
13074
- };
13075
- }, []);
13076
- var getCls = function(clsName) {
13077
- return modules_63b47c51$8[clsName] + " " + prefix + "-" + clsName;
13078
- };
13079
- var copyTextClick = function() {
13080
- if (copySuccess) return;
13081
- copyText$1(content);
13082
- setCopySuccess(true);
13083
- clearTimeout(timer.current);
13084
- timer.current = setTimeout(function() {
13085
- console.log("定时器定时器");
13086
- setCopySuccess(false);
13087
- }, 2000);
13088
- };
13089
- return /*#__PURE__*/ jsx("div", {
13090
- onClick: function() {
13091
- return copyTextClick();
13092
- },
13093
- className: "".concat(getCls("msgItem-action-copy"), " ").concat(copySuccess ? getCls("msgItem-action-copy-success") : ""),
13094
- children: copySuccess ? copySuccessSvg : copyIconSvg
13095
- });
13096
- };
13097
- var CopyIcon$1 = CopyIcon;
13098
-
13099
- var modules_63b47c51$7 = {"msgItem-action-reference":"index_module_msgItemActionReference__9d15ef36"};
13100
-
13101
- var referencesIcon = /*#__PURE__*/ jsx("i", {
13102
- children: /*#__PURE__*/ jsxs("svg", {
13103
- width: "1em",
13104
- height: "1em",
13105
- shapeRendering: "geometricPrecision",
13106
- fill: "currentColor",
13107
- viewBox: "0 0 14 14",
13108
- xmlns: "http://www.w3.org/2000/svg",
13109
- children: [
13110
- /*#__PURE__*/ jsx("path", {
13111
- "fill-rule": "evenodd",
13112
- "clip-rule": "evenodd",
13113
- d: "M6.28443 3.03861C3.77423 4.65069 2.37971 6.52702 2.10085 8.66759C1.66674 12 4.6468 13.6311 6.15677 12.1655C7.66673 10.7 6.7616 8.83982 5.66823 8.33136C4.57487 7.82286 3.90623 7.99996 4.02287 7.32046C4.1395 6.64099 5.69503 4.75706 7.06163 3.87969C7.1523 3.80259 7.1868 3.65299 7.0995 3.53949C7.04207 3.46486 6.92943 3.31847 6.7616 3.10033C6.61483 2.90957 6.47423 2.91671 6.28443 3.03861Z"
13114
- }),
13115
- /*#__PURE__*/ jsx("path", {
13116
- "fill-rule": "evenodd",
13117
- "clip-rule": "evenodd",
13118
- d: "M12.893 3.03861C10.3828 4.65069 8.98827 6.52702 8.7094 8.66759C8.2753 12 11.2554 13.6311 12.7653 12.1655C14.2753 10.7 13.3702 8.83982 12.2768 8.33136C11.1834 7.82286 10.5148 7.99996 10.6314 7.32046C10.7481 6.64099 12.3036 4.75706 13.6702 3.87969C13.7609 3.80259 13.7954 3.65299 13.708 3.53949C13.6506 3.46486 13.538 3.31847 13.3702 3.10033C13.2234 2.90957 13.0828 2.91671 12.893 3.03861Z"
13119
- })
13120
- ]
13121
- })
13122
- });
13123
- var ReferencesIcon = function(props) {
13124
- var prefix = props.prefix, apiRef = props.apiRef, item = props.item;
13125
- var getCls = function(clsName) {
13126
- return modules_63b47c51$7[clsName] + " " + prefix + "-" + clsName;
13127
- };
13128
- var clickFn = function() {
13129
- console.log("apiRef", apiRef);
13130
- if (apiRef && apiRef.footerApi) {
13131
- console.log("itemitem", item);
13132
- if (item.type === "file") {
13133
- apiRef.footerApi.setReferences({
13134
- type: "file",
13135
- value: {
13136
- name: item.fileTitle,
13137
- suffix: item.suffix,
13138
- fileId: item.id,
13139
- url: "",
13140
- status: "success",
13141
- source: null
13142
- },
13143
- source: item
13144
- });
13145
- } else {
13146
- apiRef.footerApi.setReferences({
13147
- type: "text",
13148
- value: item.content,
13149
- source: item
13150
- });
13151
- }
13152
- }
13153
- };
13154
- return /*#__PURE__*/ jsx("div", {
13155
- className: "".concat(getCls("msgItem-action-reference")),
13156
- onClick: function() {
13157
- return clickFn();
13158
- },
13159
- children: referencesIcon
13160
- });
13161
- };
13162
- var ReferencesIcon$1 = ReferencesIcon;
13163
-
13164
- var modules_63b47c51$6 = {"upVoteBtn":"index_module_upVoteBtn__2e714550","downVoteBtn":"index_module_downVoteBtn__2e714550","active":"index_module_active__2e714550"};
13165
-
13166
- var upvoteBtnSvg = /*#__PURE__*/ jsx("svg", {
13167
- width: "1em",
13168
- height: "1em",
13169
- viewBox: "0 0 16 16",
13170
- shapeRendering: "geometricPrecision",
13171
- fill: "currentColor",
13172
- xmlns: "http://www.w3.org/2000/svg",
13173
- children: /*#__PURE__*/ jsx("path", {
13174
- d: "M14.9948 7.82355C14.999 7.88679 14.9948 7.95002 14.978 8.01326L13.7172 13.4046C13.7003 13.4699 13.6709 13.527 13.633 13.58C13.4983 13.8411 13.292 14.0716 13.0205 14.2409C12.7321 14.4184 12.4122 14.5 12.0944 14.5V14.4959L4.00144 14.4918C3.97408 14.4959 3.94461 14.498 3.91514 14.498C3.88568 14.498 3.85621 14.4959 3.82885 14.4918H1.67564C1.64617 14.4959 1.6146 14.5 1.58303 14.5C1.26099 14.5 1 14.2471 1 13.935L1.00631 7.1504C1.00631 6.8383 1.26731 6.58536 1.58934 6.58536C1.6125 6.58536 1.63775 6.5874 1.66091 6.58944L3.59522 6.58536V6.57516C5.37587 6.45073 6.78609 5.03711 6.8366 3.29303C6.83239 3.24408 6.82818 3.19512 6.82818 3.14412C6.82818 2.23639 7.58802 1.5 8.52465 1.5C9.32868 1.5 10.0022 2.04464 10.1769 2.77287L10.1853 2.77083C10.2801 3.18696 10.3327 3.61941 10.3327 4.06206C10.3327 4.74745 10.2127 5.40428 9.99169 6.0142L13.2457 6.01828C13.2752 6.01828 13.3046 6.02032 13.3341 6.02644C13.8898 6.04684 14.4244 6.32426 14.7401 6.8179C14.9422 7.13204 15.0222 7.4829 14.9948 7.82355ZM2.16816 13.3618H3.33422L3.33843 7.71544L2.17448 7.71748L2.16816 13.3618ZM13.7572 7.40946C13.6456 7.23403 13.4478 7.14224 13.2478 7.15244V7.1504H13.2457L9.13294 7.14632C8.8109 7.14632 8.54991 6.89338 8.54991 6.58128C8.54991 6.49153 8.57306 6.40585 8.61095 6.33038L8.60463 6.3263C8.83827 5.90609 9.00665 5.44712 9.10347 4.96367H9.10979C9.10979 4.96367 9.18766 4.6577 9.18556 4.0743C9.18556 3.61125 9.09716 3.18696 9.09716 3.18696H9.09295C9.09295 3.1788 9.09505 3.17064 9.09505 3.16248C9.09505 2.87078 8.85089 2.63416 8.54991 2.63416C8.24892 2.63416 8.00477 2.87078 8.00477 3.16248C8.00477 3.17472 8.00687 3.18696 8.00687 3.1992H7.99845C7.99845 3.1992 8.00687 3.63981 7.91636 4.09878C7.87848 4.29256 7.82375 4.47411 7.77324 4.6169C7.77324 4.6169 7.77113 4.6169 7.77113 4.61486C7.28072 6.06928 6.0473 7.19528 4.50449 7.57673L4.49817 13.3638L12.0965 13.3658C12.1217 13.3658 12.147 13.3679 12.1723 13.372C12.248 13.3618 12.3238 13.3373 12.3912 13.2944C12.488 13.2353 12.5595 13.1496 12.6016 13.0517H12.6037L13.8161 7.86231L13.8119 7.86027C13.8624 7.71544 13.8477 7.55021 13.7572 7.40946Z"
13175
- })
13176
- });
13177
- var downvoteBtnSvg = /*#__PURE__*/ jsx("svg", {
13178
- width: "1em",
13179
- height: "1em",
13180
- shapeRendering: "geometricPrecision",
13181
- fill: "currentColor",
13182
- viewBox: "0 0 16 16",
13183
- xmlns: "http://www.w3.org/2000/svg",
13184
- children: /*#__PURE__*/ jsx("path", {
13185
- d: "M1.0052 8.17645C1.00099 8.11321 1.0052 8.04998 1.02204 7.98674L2.28281 2.5954C2.29965 2.53013 2.32912 2.47301 2.36701 2.41998C2.50171 2.15887 2.70798 1.92837 2.9795 1.75906C3.26786 1.58159 3.58779 1.5 3.90561 1.5V1.50408L11.9986 1.50816C12.0259 1.50408 12.0554 1.50204 12.0849 1.50204C12.1143 1.50204 12.1438 1.50408 12.1712 1.50816H14.3244C14.3538 1.50408 14.3854 1.5 14.417 1.5C14.739 1.5 15 1.75294 15 2.06504L14.9937 8.8496C14.9937 9.1617 14.7327 9.41464 14.4107 9.41464C14.3875 9.41464 14.3622 9.4126 14.3391 9.41056L12.4048 9.41464V9.42484C10.6241 9.54927 9.21391 10.9629 9.1634 12.707C9.16761 12.7559 9.17182 12.8049 9.17182 12.8559C9.17182 13.7636 8.41198 14.5 7.47535 14.5C6.67132 14.5 5.99778 13.9554 5.82308 13.2271L5.81466 13.2292C5.71995 12.813 5.66733 12.3806 5.66733 11.9379C5.66733 11.2526 5.7873 10.5957 6.00831 9.9858L2.75429 9.98172C2.72482 9.98172 2.69535 9.97968 2.66589 9.97356C2.11022 9.95316 1.5756 9.67574 1.25988 9.1821C1.05782 8.86796 0.977839 8.5171 1.0052 8.17645ZM13.8318 2.63824H12.6658L12.6616 8.28456L13.8255 8.28252L13.8318 2.63824ZM2.24282 8.59054C2.35438 8.76597 2.55223 8.85776 2.75218 8.84756V8.8496H2.75429L6.86706 8.85368C7.1891 8.85368 7.45009 9.10662 7.45009 9.41872C7.45009 9.50847 7.42694 9.59415 7.38905 9.66962L7.39537 9.6737C7.16173 10.0939 6.99335 10.5529 6.89653 11.0363H6.89021C6.89021 11.0363 6.81234 11.3423 6.81444 11.9257C6.81444 12.3887 6.90284 12.813 6.90284 12.813H6.90705C6.90705 12.8212 6.90495 12.8294 6.90495 12.8375C6.90495 13.1292 7.14911 13.3658 7.45009 13.3658C7.75108 13.3658 7.99523 13.1292 7.99523 12.8375C7.99523 12.8253 7.99313 12.813 7.99313 12.8008H8.00155C8.00155 12.8008 7.99313 12.3602 8.08364 11.9012C8.12152 11.7074 8.17625 11.5259 8.22676 11.3831C8.22676 11.3831 8.22887 11.3831 8.22887 11.3851C8.71928 9.93072 9.9527 8.80472 11.4955 8.42327L11.5018 2.6362L3.90351 2.63416C3.87825 2.63416 3.85299 2.63212 3.82773 2.62804C3.75196 2.63824 3.67619 2.66272 3.60884 2.70555C3.51201 2.76471 3.44045 2.85038 3.39836 2.9483H3.39625L2.18389 8.13769L2.1881 8.13973C2.13758 8.28456 2.15232 8.44979 2.24282 8.59054Z"
13186
- })
13187
- });
13188
- var UpVoteBtn = function(props) {
13189
- var prefix = props.prefix, isActive = props.isActive, clickFn = props.clickFn;
13190
- var getCls = function(clsName) {
13191
- return modules_63b47c51$6[clsName] + " " + prefix + "-" + clsName;
13192
- };
13193
- return /*#__PURE__*/ jsx("i", {
13194
- onClick: function() {
13195
- clickFn();
13196
- },
13197
- className: "".concat(getCls("upVoteBtn"), " ").concat(isActive ? getCls("active") : ""),
13198
- children: upvoteBtnSvg
13199
- });
13200
- };
13201
- var DownVoteBtn = function(props) {
13202
- var prefix = props.prefix, isActive = props.isActive, clickFn = props.clickFn;
13203
- var getCls = function(clsName) {
13204
- return modules_63b47c51$6[clsName] + " " + prefix + "-" + clsName;
13205
- };
13206
- return /*#__PURE__*/ jsx("i", {
13207
- onClick: function() {
13208
- clickFn();
13209
- },
13210
- className: "".concat(getCls("downVoteBtn"), " ").concat(isActive ? getCls("active") : ""),
13211
- children: downvoteBtnSvg
13212
- });
13213
- };
13214
-
13215
- var modules_63b47c51$5 = {"refreshBtn":"index_module_refreshBtn__e1c5f38f","active":"index_module_active__e1c5f38f"};
13216
-
13217
- var refreshSvg = /*#__PURE__*/ jsx("svg", {
13218
- viewBox: "0 0 14 14",
13219
- version: "1.1",
13220
- xmlns: "http://www.w3.org/2000/svg",
13221
- "p-id": "8340",
13222
- width: "1em",
13223
- height: "1em",
13224
- fill: "currentColor",
13225
- shapeRendering: "geometricPrecision",
13226
- "aria-hidden": "true",
13227
- children: /*#__PURE__*/ jsx("path", {
13228
- d: "M8 3.80001C7.27938 3.80001 6.60141 3.97512 6.00464 4.2846C5.71048 4.43715 5.34834 4.32235 5.19579 4.02818C5.04324 3.73401 5.15804 3.37187 5.4522 3.21932C6.21563 2.82342 7.0826 2.60001 8 2.60001C11.0603 2.60001 13.5412 5.08088 13.5412 8.14118C13.5412 8.40936 13.5221 8.67343 13.4851 8.93202C13.4737 9.01141 13.4607 9.09026 13.446 9.16853L13.7175 9.02364C14.0098 8.86759 14.3733 8.97808 14.5293 9.27041C14.6854 9.56274 14.5749 9.92622 14.2825 10.0823L12.6718 10.9421C12.3819 11.0968 12.0215 10.9896 11.8633 10.7016L11.0035 9.13588C10.844 8.84542 10.9501 8.48065 11.2406 8.32115C11.5311 8.16164 11.8958 8.2678 12.0553 8.55825L12.2672 8.94405C12.2784 8.88383 12.2885 8.82318 12.2972 8.76211C12.3261 8.55962 12.3412 8.35233 12.3412 8.14118C12.3412 5.74362 10.3976 3.80001 8 3.80001ZM3.32824 5.34029C3.61811 5.18556 3.97853 5.29278 4.13669 5.58079L4.99651 7.14649C5.15601 7.43694 5.04986 7.80171 4.7594 7.96122C4.46895 8.12072 4.10418 8.01457 3.94467 7.72411L3.73281 7.33832C3.72156 7.39853 3.71155 7.45919 3.70282 7.52026C3.67386 7.72275 3.65883 7.93003 3.65883 8.14118C3.65883 10.5387 5.60244 12.4824 8 12.4824C8.72063 12.4824 9.39859 12.3072 9.99536 11.9978C10.2895 11.8452 10.6517 11.96 10.8042 12.2542C10.9568 12.5484 10.842 12.9105 10.5478 13.063C9.78437 13.4589 8.9174 13.6824 8 13.6824C4.93969 13.6824 2.45883 11.2015 2.45883 8.14118C2.45883 7.87301 2.47792 7.60894 2.51491 7.35034C2.52627 7.27095 2.5393 7.19211 2.55399 7.11384L2.28254 7.25873C1.99021 7.41477 1.62673 7.30429 1.47069 7.01196C1.31465 6.71963 1.42513 6.35615 1.71746 6.20011L3.32824 5.34029Z"
13229
- })
13230
- });
13231
- var RefreshBtn = function(props) {
13232
- var prefix = props.prefix, clickFn = props.clickFn;
13233
- var getCls = function(clsName) {
13234
- return modules_63b47c51$5[clsName] + " " + prefix + "-" + clsName;
13235
- };
13236
- return /*#__PURE__*/ jsx("i", {
13237
- className: "".concat(getCls("refreshBtn")),
13238
- onClick: function() {
13239
- return clickFn();
13240
- },
13241
- children: refreshSvg
13242
- });
13243
- };
13244
- var RefreshBtn$1 = RefreshBtn;
13245
-
13246
- //@ts-nocheck
13247
- // wordIcon
13248
- var wordIcon = /*#__PURE__*/ jsx("i", {
13249
- children: /*#__PURE__*/ jsxs("svg", {
13250
- width: "1em",
13251
- height: "1em",
13252
- viewBox: "0 0 32 32",
13253
- fill: "none",
13254
- xmlns: "http://www.w3.org/2000/svg",
13255
- children: [
13256
- /*#__PURE__*/ jsx("path", {
13257
- d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
13258
- fill: "#E1E1E1"
13259
- }),
13260
- /*#__PURE__*/ jsx("path", {
13261
- d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
13262
- fill: "#E0E0E0"
13263
- }),
13264
- /*#__PURE__*/ jsx("path", {
13265
- d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
13266
- fill: "#F6F6F6"
13267
- }),
13268
- /*#__PURE__*/ jsx("rect", {
13269
- x: "16",
13270
- y: "12",
13271
- width: "12",
13272
- height: "2",
13273
- rx: "1",
13274
- fill: "#E7E7E7"
13275
- }),
13276
- /*#__PURE__*/ jsx("rect", {
13277
- x: "16",
13278
- y: "16",
13279
- width: "12",
13280
- height: "2",
13281
- rx: "1",
13282
- fill: "#E7E7E7"
13283
- }),
13284
- /*#__PURE__*/ jsx("rect", {
13285
- x: "16",
13286
- y: "20",
13287
- width: "12",
13288
- height: "2",
13289
- rx: "1",
13290
- fill: "#E7E7E7"
13291
- }),
13292
- /*#__PURE__*/ jsx("rect", {
13293
- x: "16",
13294
- y: "24",
13295
- width: "9",
13296
- height: "2",
13297
- rx: "1",
13298
- fill: "#E7E7E7"
13299
- }),
13300
- /*#__PURE__*/ jsx("rect", {
13301
- x: "1",
13302
- y: "7",
13303
- width: "18",
13304
- height: "18",
13305
- rx: "2",
13306
- fill: "url(#paint0_linear_9_1348)"
13307
- }),
13308
- /*#__PURE__*/ jsx("path", {
13309
- d: "M13.8979 21.372H11.4979C11.4499 20.988 11.3659 20.568 11.2459 20.088L10.3339 16.56C10.2139 16.092 10.1179 15.54 9.99789 14.748C9.92589 15.24 9.78189 15.996 9.63789 16.56L8.74989 20.1C8.59389 20.7 8.52189 21.048 8.48589 21.372H6.09789C6.03789 21.024 5.97789 20.772 5.79789 20.076L3.87789 12.876C3.70989 12.264 3.54189 11.712 3.42189 11.388H6.15789C6.16989 11.82 6.22989 12.204 6.32589 12.708L7.09389 16.356C7.12989 16.536 7.21389 17.1 7.35789 18.048C7.53789 17.04 7.62189 16.608 7.69389 16.356L8.65389 12.636C8.79789 12.096 8.86989 11.724 8.91789 11.388H11.0539C11.1019 11.7 11.1739 12.036 11.3299 12.6L12.3019 16.296C12.3979 16.68 12.4819 17.076 12.6379 18.048C12.6619 17.82 12.6619 17.82 12.7339 17.316C12.7699 17.052 12.8539 16.476 12.9019 16.284L13.6579 12.708C13.7779 12.156 13.8259 11.808 13.8379 11.388H16.5619C16.4419 11.712 16.2739 12.276 16.1179 12.876L14.1979 20.064C14.0419 20.628 13.9339 21.084 13.8979 21.372Z",
13310
- fill: "white"
13311
- }),
13312
- /*#__PURE__*/ jsx("defs", {
13313
- children: /*#__PURE__*/ jsxs("linearGradient", {
13314
- id: "paint0_linear_9_1348",
13315
- x1: "10",
13316
- y1: "7",
13317
- x2: "10",
13318
- y2: "25",
13319
- gradientUnits: "userSpaceOnUse",
13320
- children: [
13321
- /*#__PURE__*/ jsx("stop", {
13322
- "stop-color": "#4199F2"
13323
- }),
13324
- /*#__PURE__*/ jsx("stop", {
13325
- offset: "1",
13326
- "stop-color": "#3173E2"
13327
- })
13328
- ]
13329
- })
13330
- })
13331
- ]
13332
- })
13333
- });
13334
- var excelIcon = /*#__PURE__*/ jsx("i", {
13335
- children: /*#__PURE__*/ jsxs("svg", {
13336
- width: "1em",
13337
- height: "1em",
13338
- viewBox: "0 0 32 32",
13339
- fill: "none",
13340
- xmlns: "http://www.w3.org/2000/svg",
13341
- children: [
13342
- /*#__PURE__*/ jsx("path", {
13343
- d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
13344
- fill: "#E1E1E1"
13345
- }),
13346
- /*#__PURE__*/ jsx("path", {
13347
- d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
13348
- fill: "#E0E0E0"
13349
- }),
13350
- /*#__PURE__*/ jsx("path", {
13351
- d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
13352
- fill: "#F6F6F6"
13353
- }),
13354
- /*#__PURE__*/ jsx("rect", {
13355
- x: "23",
13356
- y: "12",
13357
- width: "5",
13358
- height: "3",
13359
- rx: "1",
13360
- fill: "#E7E7E7"
13361
- }),
13362
- /*#__PURE__*/ jsx("rect", {
13363
- x: "23",
13364
- y: "16",
13365
- width: "5",
13366
- height: "3",
13367
- rx: "1",
13368
- fill: "#E7E7E7"
13369
- }),
13370
- /*#__PURE__*/ jsx("rect", {
13371
- x: "23",
13372
- y: "20",
13373
- width: "5",
13374
- height: "3",
13375
- rx: "1",
13376
- fill: "#E7E7E7"
13377
- }),
13378
- /*#__PURE__*/ jsx("rect", {
13379
- x: "23",
13380
- y: "24",
13381
- width: "5",
13382
- height: "3",
13383
- rx: "1",
13384
- fill: "#E7E7E7"
13385
- }),
13386
- /*#__PURE__*/ jsx("rect", {
13387
- x: "17",
13388
- y: "12",
13389
- width: "5",
13390
- height: "3",
13391
- rx: "1",
13392
- fill: "#E7E7E7"
13393
- }),
13394
- /*#__PURE__*/ jsx("rect", {
13395
- x: "17",
13396
- y: "16",
13397
- width: "5",
13398
- height: "3",
13399
- rx: "1",
13400
- fill: "#E7E7E7"
13401
- }),
13402
- /*#__PURE__*/ jsx("rect", {
13403
- x: "17",
13404
- y: "20",
13405
- width: "5",
13406
- height: "3",
13407
- rx: "1",
13408
- fill: "#E7E7E7"
13409
- }),
13410
- /*#__PURE__*/ jsx("rect", {
13411
- x: "17",
13412
- y: "24",
13413
- width: "5",
13414
- height: "3",
13415
- rx: "1",
13416
- fill: "#E7E7E7"
13417
- }),
13418
- /*#__PURE__*/ jsx("rect", {
13419
- x: "1",
13420
- y: "7",
13421
- width: "18",
13422
- height: "18",
13423
- rx: "2",
13424
- fill: "url(#paint0_linear_9_1438)"
13425
- }),
13426
- /*#__PURE__*/ jsx("path", {
13427
- d: "M9.49906 17.868L8.20306 19.896C7.87906 20.4 7.62706 20.82 7.32706 21.372H4.14706C4.79506 20.58 5.03506 20.268 5.38306 19.788L8.02306 16.08L5.77906 12.924C5.40706 12.384 5.04706 11.916 4.60306 11.388H7.71106C7.90306 11.832 8.16706 12.312 8.59906 12.972L9.51106 14.364L10.4111 12.96C10.8911 12.204 11.0951 11.844 11.2871 11.388H14.3711C13.9391 11.928 13.6511 12.3 13.2311 12.9L10.9751 16.068L13.6271 19.788C14.0111 20.328 14.3471 20.76 14.8511 21.372H11.6711C11.4431 20.94 11.2151 20.532 10.8071 19.896L9.49906 17.868Z",
13428
- fill: "white"
13429
- }),
13430
- /*#__PURE__*/ jsx("defs", {
13431
- children: /*#__PURE__*/ jsxs("linearGradient", {
13432
- id: "paint0_linear_9_1438",
13433
- x1: "10",
13434
- y1: "7",
13435
- x2: "10",
13436
- y2: "25",
13437
- gradientUnits: "userSpaceOnUse",
13438
- children: [
13439
- /*#__PURE__*/ jsx("stop", {
13440
- "stop-color": "#309A6C"
13441
- }),
13442
- /*#__PURE__*/ jsx("stop", {
13443
- offset: "1",
13444
- "stop-color": "#237347"
13445
- })
13446
- ]
13447
- })
13448
- })
13449
- ]
13450
- })
13451
- });
13452
- var pptIcon = /*#__PURE__*/ jsx("i", {
13453
- children: /*#__PURE__*/ jsxs("svg", {
13454
- width: "1em",
13455
- height: "1em",
13456
- viewBox: "0 0 32 32",
13457
- fill: "none",
13458
- xmlns: "http://www.w3.org/2000/svg",
13459
- children: [
13460
- /*#__PURE__*/ jsx("path", {
13461
- d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
13462
- fill: "#E1E1E1"
13463
- }),
13464
- /*#__PURE__*/ jsx("path", {
13465
- d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
13466
- fill: "#E0E0E0"
13467
- }),
13468
- /*#__PURE__*/ jsx("path", {
13469
- d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
13470
- fill: "#F6F6F6"
13471
- }),
13472
- /*#__PURE__*/ jsx("rect", {
13473
- x: "17",
13474
- y: "25",
13475
- width: "11",
13476
- height: "2",
13477
- rx: "1",
13478
- fill: "#E7E7E7"
13479
- }),
13480
- /*#__PURE__*/ jsx("rect", {
13481
- x: "17",
13482
- y: "22",
13483
- width: "11",
13484
- height: "2",
13485
- rx: "1",
13486
- fill: "#E7E7E7"
13487
- }),
13488
- /*#__PURE__*/ jsx("path", {
13489
- d: "M21.2305 12.4175C19.796 12.6232 18.6928 13.854 18.6924 15.3452C18.6924 16.9808 20.0187 18.3071 21.6543 18.3071C23.1457 18.3069 24.3754 17.2037 24.5811 15.769H26.2871C26.0734 18.1409 24.0817 19.9993 21.6543 19.9995C19.0842 19.9995 17.0002 17.9162 17 15.3462C17.0002 12.919 18.859 10.9266 21.2305 10.7124V12.4175Z",
13490
- fill: "#E7E7E7"
13491
- }),
13492
- /*#__PURE__*/ jsx("mask", {
13493
- id: "mask0_9_1453",
13494
- style: "mask-type:alpha",
13495
- maskUnits: "userSpaceOnUse",
13496
- x: "22",
13497
- y: "9",
13498
- width: "6",
13499
- height: "6",
13500
- children: /*#__PURE__*/ jsx("rect", {
13501
- x: "22.9223",
13502
- y: "9",
13503
- width: "5.07692",
13504
- height: "5.07692",
13505
- fill: "#E7E7E7"
13506
- })
13507
- }),
13508
- /*#__PURE__*/ jsx("g", {
13509
- mask: "url(#mask0_9_1453)",
13510
- children: /*#__PURE__*/ jsx("path", {
13511
- d: "M22.5001 9.84619C25.0702 9.84643 27.1534 11.9304 27.1534 14.5005C27.1532 17.0704 25.07 19.1536 22.5001 19.1538C19.93 19.1538 17.8461 17.0705 17.8458 14.5005C17.8458 11.9302 19.9299 9.84619 22.5001 9.84619ZM21.6534 12.3843C20.0179 12.3843 18.6915 13.7106 18.6915 15.3462C18.6915 16.9818 20.0179 18.3081 21.6534 18.3081C23.2891 18.3081 24.6154 16.9818 24.6154 15.3462C24.6154 13.7106 23.2891 12.3843 21.6534 12.3843Z",
13512
- fill: "#E7E7E7"
13513
- })
13514
- }),
13515
- /*#__PURE__*/ jsx("rect", {
13516
- x: "1",
13517
- y: "7",
13518
- width: "18",
13519
- height: "18",
13520
- rx: "2",
13521
- fill: "url(#paint0_linear_9_1453)"
13522
- }),
13523
- /*#__PURE__*/ jsx("path", {
13524
- d: "M8.74783 21.372H6.16783C6.23983 20.844 6.26383 20.304 6.26383 19.596V13.104C6.26383 12.456 6.23983 11.916 6.16783 11.352C6.73183 11.376 7.16383 11.388 7.93183 11.388H10.5598C12.9358 11.388 14.2438 12.528 14.2438 14.616C14.2438 16.752 12.8758 18.024 10.5478 18.024H8.65183V19.56C8.65183 20.268 8.68783 20.856 8.74783 21.372ZM8.65183 15.984H10.4398C11.2798 15.984 11.7718 15.516 11.7718 14.688C11.7718 13.86 11.3038 13.428 10.4398 13.428H8.65183V15.984Z",
13525
- fill: "white"
13526
- }),
13527
- /*#__PURE__*/ jsx("defs", {
13528
- children: /*#__PURE__*/ jsxs("linearGradient", {
13529
- id: "paint0_linear_9_1453",
13530
- x1: "10",
13531
- y1: "7",
13532
- x2: "10",
13533
- y2: "25",
13534
- gradientUnits: "userSpaceOnUse",
13535
- children: [
13536
- /*#__PURE__*/ jsx("stop", {
13537
- "stop-color": "#FF8642"
13538
- }),
13539
- /*#__PURE__*/ jsx("stop", {
13540
- offset: "1",
13541
- "stop-color": "#EF673B"
13542
- })
13543
- ]
13544
- })
13545
- })
13546
- ]
13547
- })
13548
- });
13549
- var pdfIcon = /*#__PURE__*/ jsx("i", {
13550
- children: /*#__PURE__*/ jsxs("svg", {
13551
- width: "1em",
13552
- height: "1em",
13553
- viewBox: "0 0 32 32",
13554
- fill: "none",
13555
- xmlns: "http://www.w3.org/2000/svg",
13556
- children: [
13557
- /*#__PURE__*/ jsx("path", {
13558
- d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
13559
- fill: "#E1E1E1"
13560
- }),
13561
- /*#__PURE__*/ jsx("path", {
13562
- d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
13563
- fill: "#E0E0E0"
13564
- }),
13565
- /*#__PURE__*/ jsx("path", {
13566
- d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
13567
- fill: "#F6F6F6"
13568
- }),
13569
- /*#__PURE__*/ jsx("rect", {
13570
- x: "16",
13571
- y: "12",
13572
- width: "12",
13573
- height: "2",
13574
- rx: "1",
13575
- fill: "#E7E7E7"
13576
- }),
13577
- /*#__PURE__*/ jsx("rect", {
13578
- x: "16",
13579
- y: "16",
13580
- width: "12",
13581
- height: "2",
13582
- rx: "1",
13583
- fill: "#E7E7E7"
13584
- }),
13585
- /*#__PURE__*/ jsx("rect", {
13586
- x: "16",
13587
- y: "20",
13588
- width: "12",
13589
- height: "2",
13590
- rx: "1",
13591
- fill: "#E7E7E7"
13592
- }),
13593
- /*#__PURE__*/ jsx("rect", {
13594
- x: "16",
13595
- y: "24",
13596
- width: "9",
13597
- height: "2",
13598
- rx: "1",
13599
- fill: "#E7E7E7"
13600
- }),
13601
- /*#__PURE__*/ jsx("rect", {
13602
- x: "1",
13603
- y: "7",
13604
- width: "18",
13605
- height: "18",
13606
- rx: "2",
13607
- fill: "url(#paint0_linear_9_1414)"
13608
- }),
13609
- /*#__PURE__*/ jsx("g", {
13610
- "clip-path": "url(#clip0_9_1414)",
13611
- children: /*#__PURE__*/ jsx("path", {
13612
- d: "M14.3333 18.9667C13.4333 18.9 12.5667 18.5667 11.8667 17.9667C10.5 18.2667 9.2 18.7 7.9 19.2334C6.86667 21.0667 5.9 22 5.06667 22C4.9 22 4.7 21.9667 4.56667 21.8667C4.2 21.7 4 21.3334 4 20.9667C4 20.6667 4.06667 19.8334 7.23333 18.4667C7.96667 17.1334 8.53333 15.7667 9 14.3334C8.6 13.5334 7.73333 11.5667 8.33333 10.5667C8.53333 10.2 8.93333 10 9.36667 10.0334C9.7 10.0334 10.0333 10.2 10.2333 10.4667C10.6667 11.0667 10.6333 12.3334 10.0667 14.2C10.6 15.2 11.3 16.1 12.1333 16.8667C12.8333 16.7334 13.5333 16.6334 14.2333 16.6334C15.8 16.6667 16.0333 17.4 16 17.8334C16 18.9667 14.9 18.9667 14.3333 18.9667ZM5 21.0334L5.1 21C5.56667 20.8334 5.93333 20.5 6.2 20.0667C5.7 20.2667 5.3 20.6 5 21.0334ZM9.43333 11.0334H9.33333C9.3 11.0334 9.23333 11.0334 9.2 11.0667C9.06667 11.6334 9.16667 12.2334 9.4 12.7667C9.6 12.2 9.6 11.6 9.43333 11.0334ZM9.66667 15.8667L9.63333 15.9334L9.6 15.9C9.3 16.6667 8.96667 17.4334 8.6 18.1667L8.66667 18.1334V18.2C9.4 17.9334 10.2 17.7 10.9333 17.5334L10.9 17.5H11C10.5 17 10.0333 16.4334 9.66667 15.8667ZM14.2 17.6334C13.9 17.6334 13.6333 17.6334 13.3333 17.7C13.6667 17.8667 14 17.9334 14.3333 17.9667C14.5667 18 14.8 17.9667 15 17.9C15 17.8 14.8667 17.6334 14.2 17.6334Z",
13613
- fill: "white"
13614
- })
13615
- }),
13616
- /*#__PURE__*/ jsxs("defs", {
13617
- children: [
13618
- /*#__PURE__*/ jsxs("linearGradient", {
13619
- id: "paint0_linear_9_1414",
13620
- x1: "10",
13621
- y1: "7",
13622
- x2: "10",
13623
- y2: "25",
13624
- gradientUnits: "userSpaceOnUse",
13625
- children: [
13626
- /*#__PURE__*/ jsx("stop", {
13627
- "stop-color": "#FF7675"
13628
- }),
13629
- /*#__PURE__*/ jsx("stop", {
13630
- offset: "1",
13631
- "stop-color": "#F73535"
13632
- })
13633
- ]
13634
- }),
13635
- /*#__PURE__*/ jsx("clipPath", {
13636
- id: "clip0_9_1414",
13637
- children: /*#__PURE__*/ jsx("rect", {
13638
- width: "12",
13639
- height: "12",
13640
- fill: "white",
13641
- transform: "translate(4 10)"
13642
- })
13643
- })
13644
- ]
13645
- })
13646
- ]
13647
- })
13648
- });
13649
- var txtIcon = /*#__PURE__*/ jsx("i", {
13650
- children: /*#__PURE__*/ jsxs("svg", {
13651
- width: "1em",
13652
- height: "1em",
13653
- viewBox: "0 0 32 32",
13654
- fill: "none",
13655
- xmlns: "http://www.w3.org/2000/svg",
13656
- children: [
13657
- /*#__PURE__*/ jsx("path", {
13658
- d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
13659
- fill: "#E1E1E1"
13660
- }),
13661
- /*#__PURE__*/ jsx("path", {
13662
- d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
13663
- fill: "#E0E0E0"
13664
- }),
13665
- /*#__PURE__*/ jsx("path", {
13666
- d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
13667
- fill: "#F6F6F6"
13668
- }),
13669
- /*#__PURE__*/ jsx("rect", {
13670
- x: "16",
13671
- y: "12",
13672
- width: "12",
13673
- height: "2",
13674
- rx: "1",
13675
- fill: "#E7E7E7"
13676
- }),
13677
- /*#__PURE__*/ jsx("rect", {
13678
- x: "16",
13679
- y: "16",
13680
- width: "12",
13681
- height: "2",
13682
- rx: "1",
13683
- fill: "#E7E7E7"
13684
- }),
13685
- /*#__PURE__*/ jsx("rect", {
13686
- x: "16",
13687
- y: "20",
13688
- width: "12",
13689
- height: "2",
13690
- rx: "1",
13691
- fill: "#E7E7E7"
13692
- }),
13693
- /*#__PURE__*/ jsx("rect", {
13694
- x: "16",
13695
- y: "24",
13696
- width: "9",
13697
- height: "2",
13698
- rx: "1",
13699
- fill: "#E7E7E7"
13700
- }),
13701
- /*#__PURE__*/ jsx("rect", {
13702
- x: "1",
13703
- y: "7",
13704
- width: "18",
13705
- height: "18",
13706
- rx: "2",
13707
- fill: "url(#paint0_linear_9_1478)"
13708
- }),
13709
- /*#__PURE__*/ jsx("path", {
13710
- d: "M5.56291 14.256V17.28C5.56291 17.64 5.57491 17.904 5.61091 18.186H4.28491C4.32091 17.904 4.33291 17.658 4.33291 17.28V14.256H3.62491C3.24691 14.256 3.14491 14.262 2.71891 14.298V13.152C2.91691 13.176 3.24691 13.194 3.61291 13.194H6.24091C6.66091 13.194 6.90091 13.182 7.17691 13.152V14.298C6.90691 14.268 6.67291 14.256 6.24091 14.256H5.56291ZM9.99953 16.434L9.35153 17.448C9.18953 17.7 9.06353 17.91 8.91353 18.186H7.32353C7.64753 17.79 7.76753 17.634 7.94153 17.394L9.26153 15.54L8.13953 13.962C7.95353 13.692 7.77353 13.458 7.55153 13.194H9.10553C9.20153 13.416 9.33353 13.656 9.54953 13.986L10.0055 14.682L10.4555 13.98C10.6955 13.602 10.7975 13.422 10.8935 13.194H12.4355C12.2195 13.464 12.0755 13.65 11.8655 13.95L10.7375 15.534L12.0635 17.394C12.2555 17.664 12.4235 17.88 12.6755 18.186H11.0855C10.9715 17.97 10.8575 17.766 10.6535 17.448L9.99953 16.434ZM15.6645 14.256V17.28C15.6645 17.64 15.6765 17.904 15.7125 18.186H14.3865C14.4225 17.904 14.4345 17.658 14.4345 17.28V14.256H13.7265C13.3485 14.256 13.2465 14.262 12.8205 14.298V13.152C13.0185 13.176 13.3485 13.194 13.7145 13.194H16.3425C16.7625 13.194 17.0025 13.182 17.2785 13.152V14.298C17.0085 14.268 16.7745 14.256 16.3425 14.256H15.6645Z",
13711
- fill: "white"
13712
- }),
13713
- /*#__PURE__*/ jsx("defs", {
13714
- children: /*#__PURE__*/ jsxs("linearGradient", {
13715
- id: "paint0_linear_9_1478",
13716
- x1: "10",
13717
- y1: "7",
13718
- x2: "10",
13719
- y2: "25",
13720
- gradientUnits: "userSpaceOnUse",
13721
- children: [
13722
- /*#__PURE__*/ jsx("stop", {
13723
- "stop-color": "#B5B5B5"
13724
- }),
13725
- /*#__PURE__*/ jsx("stop", {
13726
- offset: "1",
13727
- "stop-color": "#434343"
13728
- })
13729
- ]
13730
- })
13731
- })
13732
- ]
13733
- })
13734
- });
13735
- // 未知文件也用这个icon
13736
- var chmIcon = /*#__PURE__*/ jsx("i", {
13737
- children: /*#__PURE__*/ jsxs("svg", {
13738
- width: "1em",
13739
- height: "1em",
13740
- viewBox: "0 0 32 32",
13741
- fill: "none",
13742
- xmlns: "http://www.w3.org/2000/svg",
13743
- children: [
13744
- /*#__PURE__*/ jsx("path", {
13745
- d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
13746
- fill: "#E1E1E1"
13747
- }),
13748
- /*#__PURE__*/ jsx("path", {
13749
- d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
13750
- fill: "#E0E0E0"
13751
- }),
13752
- /*#__PURE__*/ jsx("path", {
13753
- d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
13754
- fill: "#F6F6F6"
13755
- }),
13756
- /*#__PURE__*/ jsx("rect", {
13757
- x: "16",
13758
- y: "12",
13759
- width: "12",
13760
- height: "2",
13761
- rx: "1",
13762
- fill: "#E7E7E7"
13763
- }),
13764
- /*#__PURE__*/ jsx("rect", {
13765
- x: "16",
13766
- y: "16",
13767
- width: "12",
13768
- height: "2",
13769
- rx: "1",
13770
- fill: "#E7E7E7"
13771
- }),
13772
- /*#__PURE__*/ jsx("rect", {
13773
- x: "16",
13774
- y: "20",
13775
- width: "12",
13776
- height: "2",
13777
- rx: "1",
13778
- fill: "#E7E7E7"
13779
- }),
13780
- /*#__PURE__*/ jsx("rect", {
13781
- x: "16",
13782
- y: "24",
13783
- width: "9",
13784
- height: "2",
13785
- rx: "1",
13786
- fill: "#E7E7E7"
13787
- }),
13788
- /*#__PURE__*/ jsx("rect", {
13789
- x: "1",
13790
- y: "7",
13791
- width: "18",
13792
- height: "18",
13793
- rx: "2",
13794
- fill: "url(#paint0_linear_9_1403)"
13795
- }),
13796
- /*#__PURE__*/ jsx("path", {
13797
- d: "M10.828 18.348H8.596C8.62 18.156 8.62 18.144 8.62 17.796C8.62 16.968 8.764 16.488 9.148 16.02C9.436 15.684 9.532 15.612 10.384 15.096C10.972 14.748 11.164 14.496 11.164 14.1C11.164 13.536 10.744 13.2 10.024 13.2C9.484 13.2 9.088 13.392 8.86 13.764C8.74 13.956 8.692 14.124 8.644 14.496L6.172 14.268C6.292 13.404 6.484 12.936 6.94 12.432C7.636 11.64 8.704 11.232 10.084 11.232C12.292 11.232 13.672 12.276 13.672 13.932C13.672 14.664 13.432 15.228 12.928 15.696C12.64 15.96 12.52 16.044 11.476 16.692C10.972 17.016 10.792 17.328 10.792 17.88C10.792 18.024 10.804 18.156 10.828 18.348ZM8.512 19.164H10.924V21.432H8.512V19.164Z",
13798
- fill: "white"
13799
- }),
13800
- /*#__PURE__*/ jsx("defs", {
13801
- children: /*#__PURE__*/ jsxs("linearGradient", {
13802
- id: "paint0_linear_9_1403",
13803
- x1: "10",
13804
- y1: "7",
13805
- x2: "10",
13806
- y2: "25",
13807
- gradientUnits: "userSpaceOnUse",
13808
- children: [
13809
- /*#__PURE__*/ jsx("stop", {
13810
- "stop-color": "#B5B5B5"
13811
- }),
13812
- /*#__PURE__*/ jsx("stop", {
13813
- offset: "1",
13814
- "stop-color": "#434343"
13815
- })
13816
- ]
13817
- })
13818
- })
13819
- ]
13820
- })
13821
- });
13822
- var hdxIcon = /*#__PURE__*/ jsx("i", {
13823
- children: /*#__PURE__*/ jsxs("svg", {
13824
- width: "1em",
13825
- height: "1em",
13826
- viewBox: "0 0 32 32",
13827
- fill: "none",
13828
- xmlns: "http://www.w3.org/2000/svg",
13829
- children: [
13830
- /*#__PURE__*/ jsx("path", {
13831
- d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
13832
- fill: "#E1E1E1"
13833
- }),
13834
- /*#__PURE__*/ jsx("path", {
13835
- d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
13836
- fill: "#E0E0E0"
13837
- }),
13838
- /*#__PURE__*/ jsx("path", {
13839
- d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
13840
- fill: "#F6F6F6"
13841
- }),
13842
- /*#__PURE__*/ jsx("rect", {
13843
- x: "16",
13844
- y: "12",
13845
- width: "12",
13846
- height: "2",
13847
- rx: "1",
13848
- fill: "#E7E7E7"
13849
- }),
13850
- /*#__PURE__*/ jsx("rect", {
13851
- x: "16",
13852
- y: "16",
13853
- width: "12",
13854
- height: "2",
13855
- rx: "1",
13856
- fill: "#E7E7E7"
13857
- }),
13858
- /*#__PURE__*/ jsx("rect", {
13859
- x: "16",
13860
- y: "20",
13861
- width: "12",
13862
- height: "2",
13863
- rx: "1",
13864
- fill: "#E7E7E7"
13865
- }),
13866
- /*#__PURE__*/ jsx("rect", {
13867
- x: "16",
13868
- y: "24",
13869
- width: "9",
13870
- height: "2",
13871
- rx: "1",
13872
- fill: "#E7E7E7"
13873
- }),
13874
- /*#__PURE__*/ jsx("rect", {
13875
- x: "1",
13876
- y: "7",
13877
- width: "18",
13878
- height: "18",
13879
- rx: "2",
13880
- fill: "url(#paint0_linear_9_1489)"
13881
- }),
13882
- /*#__PURE__*/ jsx("path", {
13883
- d: "M5.83898 13.194H7.12898C7.09298 13.44 7.08098 13.662 7.08098 14.082V17.298C7.08098 17.688 7.09298 17.892 7.12898 18.186H5.83898C5.87498 17.934 5.88698 17.712 5.88698 17.298V16.134H3.86498V17.298C3.86498 17.688 3.87698 17.916 3.91298 18.186H2.62298C2.65898 17.94 2.67098 17.718 2.67098 17.298V14.082C2.67098 13.668 2.65898 13.452 2.62298 13.194H3.91298C3.87698 13.476 3.86498 13.71 3.86498 14.082V15.078H5.88698V14.082C5.88698 13.668 5.87498 13.428 5.83898 13.194ZM7.93284 17.328V14.058C7.93284 13.65 7.92084 13.452 7.87884 13.176C8.11884 13.188 8.26884 13.194 8.76684 13.194H10.0208C10.7588 13.194 11.3528 13.398 11.7548 13.788C12.1928 14.22 12.4148 14.85 12.4148 15.648C12.4148 16.47 12.1748 17.13 11.7188 17.586C11.3168 17.982 10.7468 18.186 10.0328 18.186H8.76684C8.30484 18.186 8.13684 18.192 7.88484 18.204C7.92084 17.94 7.93284 17.742 7.93284 17.328ZM9.12084 17.136H9.92484C10.3148 17.136 10.5908 17.034 10.8068 16.818C11.0528 16.566 11.1848 16.164 11.1848 15.666C11.1848 15.156 11.0708 14.784 10.8368 14.55C10.6268 14.34 10.3388 14.244 9.90684 14.244H9.12084V17.136ZM15.0181 16.434L14.3701 17.448C14.2081 17.7 14.0821 17.91 13.9321 18.186H12.3421C12.6661 17.79 12.7861 17.634 12.9601 17.394L14.2801 15.54L13.1581 13.962C12.9721 13.692 12.7921 13.458 12.5701 13.194H14.1241C14.2201 13.416 14.3521 13.656 14.5681 13.986L15.0241 14.682L15.4741 13.98C15.7141 13.602 15.8161 13.422 15.9121 13.194H17.4541C17.2381 13.464 17.0941 13.65 16.8841 13.95L15.7561 15.534L17.0821 17.394C17.2741 17.664 17.4421 17.88 17.6941 18.186H16.1041C15.9901 17.97 15.8761 17.766 15.6721 17.448L15.0181 16.434Z",
13884
- fill: "white"
13885
- }),
13886
- /*#__PURE__*/ jsx("defs", {
13887
- children: /*#__PURE__*/ jsxs("linearGradient", {
13888
- id: "paint0_linear_9_1489",
13889
- x1: "10",
13890
- y1: "7",
13891
- x2: "10",
13892
- y2: "25",
13893
- gradientUnits: "userSpaceOnUse",
13894
- children: [
13895
- /*#__PURE__*/ jsx("stop", {
13896
- "stop-color": "#B5B5B5"
13897
- }),
13898
- /*#__PURE__*/ jsx("stop", {
13899
- offset: "1",
13900
- "stop-color": "#434343"
13901
- })
13902
- ]
13903
- })
13904
- })
13905
- ]
13906
- })
13907
- });
13908
- var mdIcon = /*#__PURE__*/ jsx("i", {
13909
- children: /*#__PURE__*/ jsxs("svg", {
13910
- width: "1em",
13911
- height: "1em",
13912
- viewBox: "0 0 32 32",
13913
- fill: "none",
13914
- xmlns: "http://www.w3.org/2000/svg",
13915
- children: [
13916
- /*#__PURE__*/ jsx("path", {
13917
- d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
13918
- fill: "#E1E1E1"
13919
- }),
13920
- /*#__PURE__*/ jsx("path", {
13921
- d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
13922
- fill: "#E0E0E0"
13923
- }),
13924
- /*#__PURE__*/ jsx("path", {
13925
- d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
13926
- fill: "#F6F6F6"
13927
- }),
13928
- /*#__PURE__*/ jsx("rect", {
13929
- x: "16",
13930
- y: "12",
13931
- width: "12",
13932
- height: "2",
13933
- rx: "1",
13934
- fill: "#E7E7E7"
13935
- }),
13936
- /*#__PURE__*/ jsx("rect", {
13937
- x: "16",
13938
- y: "16",
13939
- width: "12",
13940
- height: "2",
13941
- rx: "1",
13942
- fill: "#E7E7E7"
13943
- }),
13944
- /*#__PURE__*/ jsx("rect", {
13945
- x: "16",
13946
- y: "20",
13947
- width: "12",
13948
- height: "2",
13949
- rx: "1",
13950
- fill: "#E7E7E7"
13951
- }),
13952
- /*#__PURE__*/ jsx("rect", {
13953
- x: "16",
13954
- y: "24",
13955
- width: "9",
13956
- height: "2",
13957
- rx: "1",
13958
- fill: "#E7E7E7"
13959
- }),
13960
- /*#__PURE__*/ jsx("rect", {
13961
- x: "1",
13962
- y: "7",
13963
- width: "18",
13964
- height: "18",
13965
- rx: "2",
13966
- fill: "url(#paint0_linear_9_1426)"
13967
- }),
13968
- /*#__PURE__*/ jsx("path", {
13969
- d: "M11.0301 21.372H8.94208C8.88208 20.952 8.75008 20.508 8.42608 19.596L7.32208 16.404C7.31008 16.344 6.95008 15.228 6.91408 15.132C6.78208 14.7 6.78208 14.7 6.72208 14.532C6.79408 15.288 6.84208 16.272 6.84208 16.908V19.512C6.84208 20.34 6.86608 20.868 6.93808 21.372H4.57408C4.64608 20.832 4.67008 20.328 4.67008 19.512V13.26C4.67008 12.54 4.63408 11.904 4.57408 11.388H7.74208C7.82608 11.904 7.92208 12.288 8.19808 13.08L9.99808 18.252L11.7861 13.08C12.0621 12.276 12.1581 11.892 12.2301 11.388H15.4101C15.3381 11.964 15.3141 12.456 15.3141 13.26V19.512C15.3141 20.424 15.3381 20.892 15.4101 21.372H13.0461C13.1181 20.82 13.1421 20.364 13.1421 19.512V16.896C13.1421 16.608 13.1781 15.708 13.2021 15.336C13.2381 14.7 13.2381 14.7 13.2501 14.52C12.9861 15.456 12.8661 15.888 12.7101 16.32L11.5461 19.608C11.2461 20.46 11.0901 20.988 11.0301 21.372Z",
13970
- fill: "white"
13971
- }),
13972
- /*#__PURE__*/ jsx("path", {
13973
- d: "M14.3008 23L12.1357 20.25L16.4658 20.25L14.3008 23Z",
13974
- fill: "white"
13975
- }),
13976
- /*#__PURE__*/ jsx("defs", {
13977
- children: /*#__PURE__*/ jsxs("linearGradient", {
13978
- id: "paint0_linear_9_1426",
13979
- x1: "10",
13980
- y1: "7",
13981
- x2: "10",
13982
- y2: "25",
13983
- gradientUnits: "userSpaceOnUse",
13984
- children: [
13985
- /*#__PURE__*/ jsx("stop", {
13986
- "stop-color": "#B5B5B5"
13987
- }),
13988
- /*#__PURE__*/ jsx("stop", {
13989
- offset: "1",
13990
- "stop-color": "#434343"
13991
- })
13992
- ]
13993
- })
13994
- })
13995
- ]
13996
- })
13997
- });
13998
- // zip rar
13999
- var zipIcon = /*#__PURE__*/ jsx("i", {
14000
- children: /*#__PURE__*/ jsxs("svg", {
14001
- width: "1em",
14002
- height: "1em",
14003
- viewBox: "0 0 32 32",
14004
- fill: "none",
14005
- xmlns: "http://www.w3.org/2000/svg",
14006
- children: [
14007
- /*#__PURE__*/ jsx("path", {
14008
- d: "M20.775 1H7.73409C5.11934 1 3 3.11967 3 5.73409V26.2659C3 28.8807 5.11967 31 7.73409 31H23.9964C26.6112 31 28.7305 28.8803 28.7305 26.2659V8.95514C28.7305 7.88894 28.3071 6.86662 27.5531 6.11294L23.6172 2.17707C22.8634 1.42339 21.841 0.999991 20.775 1Z",
14009
- fill: "#FFC757"
14010
- }),
14011
- /*#__PURE__*/ jsx("path", {
14012
- d: "M8.88959 5.42124H11.2853C11.5486 5.42124 11.7623 5.20753 11.7623 4.94425V2.54856C11.7623 2.28494 11.5486 2.07157 11.2853 2.07157H8.88959C8.62631 2.07157 8.4126 2.28528 8.4126 2.54856V4.94425C8.4126 5.20753 8.62631 5.42124 8.88959 5.42124ZM14.6349 5.42124H12.2393C11.976 5.42124 11.7623 5.63495 11.7623 5.89824V8.29392C11.7623 8.55754 11.976 8.77091 12.2393 8.77091H14.6349C14.8982 8.77091 15.1119 8.55721 15.1119 8.29392V5.89824C15.1119 5.63495 14.8982 5.42124 14.6349 5.42124ZM8.88959 12.1206H11.2853C11.5486 12.1206 11.7623 11.9069 11.7623 11.6436V9.24791C11.7623 8.98429 11.5486 8.77091 11.2853 8.77091H8.88959C8.62631 8.77091 8.4126 8.98462 8.4126 9.24791V11.6436C8.4126 11.9069 8.62631 12.1206 8.88959 12.1206ZM14.6349 12.1206H12.2393C11.976 12.1206 11.7623 12.3343 11.7623 12.5976V14.9933C11.7623 15.2569 11.976 15.4703 12.2393 15.4703H14.6349C14.8982 15.4703 15.1119 15.2565 15.1119 14.9933V12.5976C15.1119 12.3343 14.8982 12.1206 14.6349 12.1206ZM13.9409 17.3196H9.44798C8.87619 17.3196 8.4126 17.7832 8.4126 18.355V23.5631C8.4126 24.1349 8.87619 24.5985 9.44798 24.5985H13.9409C14.5127 24.5985 14.9763 24.1349 14.9763 23.5631V18.355C14.9763 17.7832 14.5127 17.3196 13.9409 17.3196ZM13.7758 22.8328C13.7758 23.2924 13.4033 23.6649 12.9437 23.6649H10.4448C9.98527 23.6649 9.61279 23.2924 9.61279 22.8328V21.9164C9.61279 21.4568 9.98527 21.0843 10.4448 21.0843H12.9437C13.4033 21.0843 13.7758 21.4568 13.7758 21.9164V22.8328ZM27.5546 6.11261L23.6188 2.17675C23.0541 1.61209 22.334 1.22843 21.5503 1.07471V5.49225C21.5503 6.89476 22.6872 8.03164 24.0897 8.03164H28.6242C28.4528 7.30507 28.0824 6.64058 27.5546 6.11261Z",
14013
- fill: "#F79F2B"
14014
- }),
14015
- /*#__PURE__*/ jsx("path", {
14016
- d: "M8.88959 5.01935H11.2853C11.5486 5.01935 11.7623 4.80564 11.7623 4.54236V2.14667C11.7623 1.88305 11.5486 1.66968 11.2853 1.66968H8.88959C8.62631 1.66968 8.4126 1.88339 8.4126 2.14667V4.54236C8.4126 4.80564 8.62631 5.01935 8.88959 5.01935ZM14.6349 5.01935H12.2393C11.976 5.01935 11.7623 5.23306 11.7623 5.49634V7.89203C11.7623 8.15565 11.976 8.36902 12.2393 8.36902H14.6349C14.8982 8.36902 15.1119 8.15531 15.1119 7.89203V5.49634C15.1119 5.23306 14.8982 5.01935 14.6349 5.01935ZM8.88959 11.7187H11.2853C11.5486 11.7187 11.7623 11.505 11.7623 11.2417V8.84602C11.7623 8.5824 11.5486 8.36902 11.2853 8.36902H8.88959C8.62631 8.36902 8.4126 8.58273 8.4126 8.84602V11.2417C8.4126 11.505 8.62631 11.7187 8.88959 11.7187ZM14.6349 11.7187H12.2393C11.976 11.7187 11.7623 11.9324 11.7623 12.1957V14.5914C11.7623 14.855 11.976 15.0684 12.2393 15.0684H14.6349C14.8982 15.0684 15.1119 14.8547 15.1119 14.5914V12.1957C15.1119 11.9324 14.8982 11.7187 14.6349 11.7187ZM13.9409 16.9177H9.44798C8.87619 16.9177 8.4126 17.3813 8.4126 17.9531V23.1612C8.4126 23.733 8.87619 24.1966 9.44798 24.1966H13.9409C14.5127 24.1966 14.9763 23.733 14.9763 23.1612V17.9531C14.9763 17.3813 14.5127 16.9177 13.9409 16.9177ZM13.7758 22.4309C13.7758 22.8905 13.4033 23.263 12.9437 23.263H10.4448C9.98527 23.263 9.61279 22.8905 9.61279 22.4309V21.5145C9.61279 21.0549 9.98527 20.6824 10.4448 20.6824H12.9437C13.4033 20.6824 13.7758 21.0549 13.7758 21.5145V22.4309Z",
14017
- fill: "white"
14018
- })
14019
- ]
14020
- })
14021
- });
14022
- // 图片
14023
- var imageIcon = /*#__PURE__*/ jsx("i", {
14024
- children: /*#__PURE__*/ jsxs("svg", {
14025
- xmlns: "http://www.w3.org/2000/svg",
14026
- width: "1em",
14027
- height: "1em",
14028
- viewBox: "0 0 32 32",
14029
- fill: "none",
14030
- children: [
14031
- /*#__PURE__*/ jsx("path", {
14032
- d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
14033
- fill: "#E1E1E1"
14034
- }),
14035
- /*#__PURE__*/ jsx("path", {
14036
- d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
14037
- fill: "#E0E0E0"
14038
- }),
14039
- /*#__PURE__*/ jsx("path", {
14040
- d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
14041
- fill: "white"
14042
- }),
14043
- /*#__PURE__*/ jsx("rect", {
14044
- x: "16",
14045
- y: "12",
14046
- width: "12",
14047
- height: "2",
14048
- rx: "1",
14049
- fill: "#E7E7E7"
14050
- }),
14051
- /*#__PURE__*/ jsx("rect", {
14052
- x: "16",
14053
- y: "16",
14054
- width: "12",
14055
- height: "2",
14056
- rx: "1",
14057
- fill: "#E7E7E7"
14058
- }),
14059
- /*#__PURE__*/ jsx("rect", {
14060
- x: "16",
14061
- y: "20",
14062
- width: "12",
14063
- height: "2",
14064
- rx: "1",
14065
- fill: "#E7E7E7"
14066
- }),
14067
- /*#__PURE__*/ jsx("rect", {
14068
- x: "16",
14069
- y: "24",
14070
- width: "9",
14071
- height: "2",
14072
- rx: "1",
14073
- fill: "#E7E7E7"
14074
- }),
14075
- /*#__PURE__*/ jsx("path", {
14076
- d: "M3.25 7H16.75C17.9927 7 19 8.00738 19 9.25V22.75C19 23.9927 17.9927 25 16.75 25H3.25C2.00738 25 1 23.9927 1 22.75V9.25C1 8.00738 2.00738 7 3.25 7Z",
14077
- fill: "#DFECFD"
14078
- }),
14079
- /*#__PURE__*/ jsx("path", {
14080
- d: "M4.1885 12.2232C4.1885 12.5642 4.32115 12.8912 4.55726 13.1324C4.79337 13.3735 5.1136 13.5089 5.44751 13.5089C5.78142 13.5089 6.10166 13.3735 6.33776 13.1324C6.57387 12.8912 6.70652 12.5642 6.70652 12.2232C6.70652 11.8822 6.57387 11.5552 6.33776 11.3141C6.10166 11.073 5.78142 10.9375 5.44751 10.9375C5.1136 10.9375 4.79337 11.073 4.55726 11.3141C4.32115 11.5552 4.1885 11.8822 4.1885 12.2232ZM5.04599 18.649C5.19115 18.3929 5.51204 18.3055 5.76279 18.4537C5.84215 18.5006 5.90808 18.568 5.954 18.649L7.92933 22.1334C8.07448 22.3894 7.98887 22.7172 7.73812 22.8654C7.65827 22.9126 7.56763 22.9375 7.47535 22.9375H3.52453C3.23486 22.9375 2.99995 22.6976 3 22.4018C3 22.3075 3.02434 22.215 3.07056 22.1334L5.04599 18.649Z",
14081
- fill: "#4988FD"
14082
- }),
14083
- /*#__PURE__*/ jsx("path", {
14084
- d: "M11.4951 15.2027C11.6571 14.9482 12.0146 14.8618 12.2935 15.0098C12.3811 15.0563 12.4539 15.1228 12.5048 15.2027L16.9208 22.1367C17.0829 22.3912 16.9883 22.7174 16.7094 22.8653C16.6203 22.9126 16.5191 22.9375 16.416 22.9375H7.58396C7.26144 22.9375 7 22.6989 7 22.4045C7 22.3105 7.02728 22.2181 7.07907 22.1367L11.4951 15.2027Z",
14085
- fill: "#4988FD"
14086
- })
14087
- ]
14088
- })
14089
- });
14090
- var fileIconRender = function(suffix1, customRender) {
14091
- // 存在自定义渲染 且配置啦返回的node 则返回
14092
- if (customRender) {
14093
- var node = customRender(suffix1);
14094
- if (node) return node;
14095
- }
14096
- switch(suffix1){
14097
- case "pdf":
14098
- return pdfIcon;
14099
- case "ppt":
14100
- return pptIcon;
14101
- case "pptx":
14102
- return pptIcon;
14103
- case "doc":
14104
- return wordIcon;
14105
- case "docx":
14106
- return wordIcon;
14107
- case "xls":
14108
- return excelIcon;
14109
- case "xlsx":
14110
- return excelIcon;
14111
- case "txt":
14112
- return txtIcon;
14113
- case "text":
14114
- return txtIcon;
14115
- case "png":
14116
- return imageIcon;
14117
- case "jpg":
14118
- return imageIcon;
14119
- case "jpeg":
14120
- return imageIcon;
14121
- case "gif":
14122
- return imageIcon;
14123
- case "webp":
14124
- return imageIcon;
14125
- case "zip":
14126
- return zipIcon;
14127
- case "rar":
14128
- return zipIcon;
14129
- case "chm":
14130
- return chmIcon;
14131
- case "hdx":
14132
- return hdxIcon;
14133
- case "md":
14134
- return mdIcon;
14135
- default:
14136
- return chmIcon;
14137
- }
14138
- };
14139
- var statusRender = function(status, customRender) {
14140
- // 存在自定义渲染 且配置啦返回的node 则返回
14141
- if (customRender) {
14142
- var node = customRender(suffix);
14143
- if (node) return node;
14144
- }
14145
- switch(status){
14146
- case "waiting":
14147
- return /*#__PURE__*/ jsx("span", {
14148
- style: {
14149
- color: "rgba(0, 0, 0, 0.25)",
14150
- fontSize: "12px"
14151
- },
14152
- children: "等待上传"
14153
- });
14154
- case "uploading":
14155
- return /*#__PURE__*/ jsx("span", {
14156
- style: {
14157
- color: "rgba(0, 0, 0, 0.25)",
14158
- fontSize: "12px"
14159
- },
14160
- children: "上传中..."
14161
- });
14162
- case "uploadError":
14163
- return /*#__PURE__*/ jsxs("span", {
14164
- style: {
14165
- color: "#F4523B",
14166
- fontSize: "12px"
14167
- },
14168
- children: [
14169
- "上传失败,",
14170
- /*#__PURE__*/ jsx("span", {
14171
- style: {
14172
- "text-decoration-line": "underline"
14173
- },
14174
- children: "重试"
14175
- })
14176
- ]
14177
- });
14178
- case "waitParse":
14179
- return /*#__PURE__*/ jsx("span", {
14180
- style: {
14181
- color: "rgba(0, 0, 0, 0.25)",
14182
- fontSize: "12px"
14183
- },
14184
- children: "等待解析"
14185
- });
14186
- case "parsing":
14187
- return /*#__PURE__*/ jsx("span", {
14188
- style: {
14189
- color: "rgba(0, 0, 0, 0.25)",
14190
- fontSize: "12px"
14191
- },
14192
- children: "解析中..."
14193
- });
14194
- case "parsingError":
14195
- return /*#__PURE__*/ jsxs("span", {
14196
- style: {
14197
- color: "#F4523B",
14198
- fontSize: "12px"
14199
- },
14200
- children: [
14201
- "上传失败,",
14202
- /*#__PURE__*/ jsx("span", {
14203
- style: {
14204
- "text-decoration-line": "underline"
14205
- },
14206
- children: "重试"
14207
- })
14208
- ]
14209
- });
14210
- default:
14211
- return null;
14212
- }
14213
- };
14214
-
14215
- var Header = function(param) {
14216
- var context = param.context;
14217
- var prefix = context.prefix, loading = context.loading;
14218
- if (!loading) return null;
14219
- var getCls = function(clsName) {
14220
- return modules_63b47c51$9[clsName] + " " + prefix + "-" + clsName;
14221
- };
14222
- return /*#__PURE__*/ jsx("div", {
14223
- className: "".concat(getCls("loadingIcon")),
14224
- children: /*#__PURE__*/ jsx("img", {
14225
- src: loading2Gif,
14226
- alt: ""
14227
- })
14228
- });
14229
- };
14230
- var remarkable = new Remarkable({
14231
- highlight: function highlight(str, lang) {
14232
- if (lang && HighlightJS.getLanguage(lang)) {
14233
- try {
14234
- return HighlightJS.highlight(lang, str).value;
14235
- } catch (err) {}
14236
- }
14237
- try {
14238
- return HighlightJS.highlightAuto(str).value;
14239
- } catch (err) {}
14240
- return ""; // use external default escaping
14241
- }
14242
- });
14243
- var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
14244
- var prefix = props.prefix, contentConfig = props.contentConfig, apiRef = props.apiRef;
14245
- var getList = contentConfig.getList, coverRenderText = contentConfig.coverRenderText, _contentConfig_msgAction = contentConfig.msgAction, msgAction = _contentConfig_msgAction === void 0 ? [
14246
- "copy",
14247
- "reference"
14248
- ] : _contentConfig_msgAction, coverRenderReferences = contentConfig.coverRenderReferences, _contentConfig_onRecordMessage = contentConfig.onRecordMessage, onRecordMessage = _contentConfig_onRecordMessage === void 0 ? function() {} : _contentConfig_onRecordMessage, _contentConfig_onVoteChange = contentConfig.onVoteChange, onVoteChange = _contentConfig_onVoteChange === void 0 ? function() {} : _contentConfig_onVoteChange, _contentConfig_onRefresh = contentConfig.onRefresh, onRefresh = _contentConfig_onRefresh === void 0 ? function() {} : _contentConfig_onRefresh, helloMsg = contentConfig.helloMsg, _contentConfig_fileCustomRender = contentConfig.fileCustomRender, fileCustomRender = _contentConfig_fileCustomRender === void 0 ? {} : _contentConfig_fileCustomRender;
14249
- var loadMoreProps = contentConfig.loadMore || true;
14250
- var virtuosoRef = useRef(null);
14251
- var _useState = _sliced_to_array(useState(false), 2), loading = _useState[0], setLoading = _useState[1]; // 是否加载中
14252
- var _useState1 = _sliced_to_array(useState([]), 2), dataSource = _useState1[0], setDataSource = _useState1[1];
14253
- var _useState2 = _sliced_to_array(useState(0), 2), firstItemIndex = _useState2[0], setFirstItemIndex = _useState2[1];
14254
- var _useState3 = _sliced_to_array(useState(1), 2), page = _useState3[0], setPage = _useState3[1];
14255
- var _useState4 = _sliced_to_array(useState(""), 2), sendingId = _useState4[0], setSendingId = _useState4[1];
14256
- var _useState5 = _sliced_to_array(useState(contentConfig.pageSize || 30), 2), pageSize = _useState5[0], setPageSize = _useState5[1];
14257
- var _useState6 = _sliced_to_array(useState(0), 2), total = _useState6[0], setTotal = _useState6[1];
14258
- var timerRef = useRef({
14259
- loadMore: null,
14260
- scrollTimer: null
14261
- });
14262
- var wrapperRef = useRef(null);
14263
- var recordRef = useRef({
14264
- page: page,
14265
- pageSize: pageSize,
14266
- total: total,
14267
- dataSource: dataSource,
14268
- maxPage: Math.ceil(total / pageSize),
14269
- sendingId: ""
14270
- });
14271
- var timeRenderCache = useRef(new Map()).current;
14272
- useRef(new Map()).current;
14273
- useImperativeHandle(ref, function() {
14274
- return {
14275
- addMsg: addMsg,
14276
- updateMsg: function(id, obj) {
14277
- setDataSource(function(data) {
14278
- return data.map(function(item) {
14279
- if (item.id === id) {
14280
- return _object_spread({}, item, obj);
14281
- }
14282
- return item;
14283
- });
14284
- });
14285
- },
14286
- clearInputing: function() {
14287
- setDataSource(function(data) {
14288
- return data.filter(function(item) {
14289
- return item.id !== "inputing";
14290
- });
14291
- });
14292
- },
14293
- recordMsg: function(msg) {
14294
- onRecordMessage(msg);
14295
- },
14296
- getDataSource: function() {
14297
- return recordRef.current.dataSource;
14298
- },
14299
- upateDataSource: function(id, obj) {
14300
- setDataSource(function(list) {
14301
- return list.map(function(item) {
14302
- if (item.id === id) {
14303
- return _object_spread({}, item, obj);
14304
- }
14305
- return item;
14306
- });
14307
- });
14308
- },
14309
- changeDataSource: function(data) {
14310
- setDataSource(data);
14311
- },
14312
- scrollToBottom: scrollToBottom,
14313
- setSendingId: function(id) {
14314
- setSendingId(id);
14315
- }
14316
- };
14317
- });
14318
- useEffect(function() {
14319
- getData(page, pageSize).then(function() {
14320
- if (helloMsg) {
14321
- addMsg({
14322
- id: "helloMsg",
14323
- createTime: new Date().getTime(),
14324
- content: helloMsg,
14325
- location: "left",
14326
- reference: null,
14327
- source: null,
14328
- fileList: []
14329
- });
14330
- }
14331
- });
14332
- var removeFn = delegate$1(wrapperRef.current, "click", ".".concat(modules_63b47c51$9.copyCode), function(event, target) {
14333
- findCopyContent(event);
14334
- });
14335
- return function() {
14336
- removeFn();
14337
- clearTimeout(timerRef.current.loadMore);
14338
- clearTimeout(timerRef.current.scrollTimer);
14339
- };
14340
- }, []);
14341
- useEffect(function() {
14342
- if (!virtuosoRef.current) return;
14343
- // virtuosoRef.current.scrollToIndex({
14344
- // index: "LAST", // 或者使用 dataSource.length - 1
14345
- // behavior: "auto", // 可以是 "smooth" 实现平滑滚动
14346
- // });
14347
- // clearTimeout(timerRef.current.scrollTimer);
14348
- // timerRef.current.scrollTimer = setTimeout(() => {
14349
- // virtuosoRef.current.scrollToIndex({
14350
- // index: "LAST", // 或者使用 dataSource.length - 1
14351
- // behavior: "auto", // 可以是 "smooth" 实现平滑滚动
14352
- // align: "end",
14353
- // });
14354
- // }, 500);
14355
- }, [
14356
- dataSource
14357
- ]);
14358
- useEffect(function() {
14359
- recordRef.current.page = page;
14360
- recordRef.current.pageSize = pageSize;
14361
- recordRef.current.total = total;
14362
- recordRef.current.dataSource = dataSource;
14363
- recordRef.current.maxPage = Math.ceil(total / pageSize);
14364
- recordRef.current.sendingId = sendingId;
14365
- }, [
14366
- page,
14367
- pageSize,
14368
- total,
14369
- dataSource,
14370
- sendingId
14371
- ]);
14372
- var addMsg = function(msg) {
14373
- if (msg.id !== "inputing" && msg.id !== "helloMsg") {
14374
- // 不记录"正在输入..."的消息
14375
- onRecordMessage(msg);
14376
- }
14377
- var list = [];
14378
- if (msg.location === "right" && msg.fileList && msg.fileList.length > 0) {
14379
- console.log("fileList", msg, msg.fileList);
14380
- msg.fileList.map(function(item) {
14381
- list.push({
14382
- type: "file",
14383
- id: item.fileId,
14384
- createTime: msg.createTime,
14385
- content: "",
14386
- location: "right",
14387
- reference: null,
14388
- source: null,
14389
- suffix: item.suffix,
14390
- fileTitle: item.name
14391
- });
14392
- });
14393
- }
14394
- list.push(msg);
14395
- setDataSource(function(data) {
14396
- return _to_consumable_array(data).concat(_to_consumable_array(list));
14397
- });
14398
- timerRef.current.scrollTimer = setTimeout(function() {
14399
- scrollToBottom();
14400
- }, 100);
14401
- };
14402
- var scrollToBottom = function() {
14403
- if (!virtuosoRef.current) return;
14404
- virtuosoRef.current.scrollToIndex({
14405
- index: "LAST",
14406
- behavior: "auto"
14407
- });
14408
- };
14409
- var getData = function(page, pageSize) {
14410
- setLoading(true);
14411
- return getList(page, pageSize).then(function(listObj) {
14412
- setLoading(false);
14413
- console.log("listObjlistObj", listObj);
14414
- setDataSource(function(data) {
14415
- return _to_consumable_array(data).concat(_to_consumable_array(listObj.dataSource));
14416
- });
14417
- setTotal(listObj.total);
14418
- setPage(page);
14419
- setPageSize(pageSize);
14420
- setFirstItemIndex(listObj.total - pageSize * (page - 1));
14421
- });
14422
- };
14423
- var getCls = function(clsName) {
14424
- return modules_63b47c51$9[clsName] + " " + prefix + "-" + clsName;
14425
- };
14426
- var loadMore = useCallback(function() {
14427
- if (!loadMoreProps) return;
14428
- if (recordRef.current.page >= recordRef.current.maxPage) return;
14429
- getData(page + 1, pageSize);
14430
- }, [
14431
- page,
14432
- pageSize
14433
- ]);
14434
- var itemContent = function(index, item) {
14435
- var timeNode = renderTime(item);
14436
- var contentNode = null;
14437
- var html = markToHtml(item.content, item.id);
14438
- contentNode = /*#__PURE__*/ jsx("div", {
14439
- dangerouslySetInnerHTML: {
14440
- __html: html
14441
- }
14442
- });
14443
- if (coverRenderText) {
14444
- contentNode = coverRenderText(item, html);
14445
- }
14446
- if (item.type === "file") {
14447
- var renderFileObj = _object_spread({
14448
- fileTitleRender: function(item) {
14449
- return /*#__PURE__*/ jsx(Fragment, {
14450
- children: item.fileTitle
14451
- });
14452
- }
14453
- }, fileCustomRender);
14454
- if (renderFileObj.fileRender) {
14455
- contentNode = renderFileObj.fileRender(item);
14456
- } else {
14457
- contentNode = /*#__PURE__*/ jsxs("div", {
14458
- className: "".concat(getCls("msgItem-file")),
14459
- children: [
14460
- /*#__PURE__*/ jsx("div", {
14461
- className: "".concat(getCls("msgItem-file-left")),
14462
- children: fileIconRender(item.suffix, renderFileObj.iconFileRender)
14463
- }),
14464
- /*#__PURE__*/ jsx("div", {
14465
- className: "".concat(getCls("msgItem-file-right")),
14466
- children: /*#__PURE__*/ jsx("p", {
14467
- children: renderFileObj.fileTitleRender(item)
14468
- })
14469
- })
14470
- ]
14471
- });
14472
- }
14473
- }
14474
- // 是否显示时间
14475
- var itemNode = /*#__PURE__*/ jsx("div", {
14476
- className: "".concat(getCls("msgItem"), " ").concat(item.location === "left" ? getCls("msgItem-left") : getCls("msgItem-right")),
14477
- children: /*#__PURE__*/ jsxs("div", {
14478
- className: "".concat(getCls("msgItem-box")),
14479
- "data-id": item.id,
14480
- onMouseEnter: function() {
14481
- return onMouseEnter(item);
14482
- },
14483
- onMouseLeave: function() {
14484
- return onMouseLeave(item);
14485
- },
14486
- children: [
14487
- renderAction("floatTop", item),
14488
- /*#__PURE__*/ jsxs("div", {
14489
- className: "".concat(getCls("msgItem-content")),
14490
- children: [
14491
- /*#__PURE__*/ jsx("div", {
14492
- className: "".concat(getCls("msgItem-text")),
14493
- children: contentNode
14494
- }),
14495
- renderAction("bottom", item)
14496
- ]
14497
- }),
14498
- item.location === "left" && renderAction("floatBottom", item),
14499
- renderReference(item)
14500
- ]
14501
- })
14502
- });
14503
- return /*#__PURE__*/ jsxs(Fragment, {
14504
- children: [
14505
- timeNode,
14506
- itemNode
14507
- ]
14508
- });
14509
- };
14510
- var renderReference = function(item) {
14511
- var reference = item.reference;
14512
- if (!item.reference) return null;
14513
- var referenceNode = null;
14514
- if (reference.type === "text") {
14515
- referenceNode = /*#__PURE__*/ jsx("div", {
14516
- className: "".concat(getCls("msgItem-reference-text")),
14517
- children: /*#__PURE__*/ jsx("div", {
14518
- children: reference.value
14519
- })
14520
- });
14521
- }
14522
- if (reference.type === "file") {
14523
- referenceNode = /*#__PURE__*/ jsx("div", {
14524
- className: "".concat(getCls("msgItem-reference-file")),
14525
- children: /*#__PURE__*/ jsxs("div", {
14526
- className: "".concat(getCls("msgItem-reference-file-box")),
14527
- children: [
14528
- /*#__PURE__*/ jsx("div", {
14529
- className: "".concat(getCls("msgItem-reference-file-left")),
14530
- children: fileIconRender(reference.value.suffix, fileCustomRender.iconFileRender)
14531
- }),
14532
- /*#__PURE__*/ jsx("div", {
14533
- className: "".concat(getCls("msgItem-reference-file-right")),
14534
- children: reference.value.name
14535
- })
14536
- ]
14537
- })
14538
- });
14539
- }
14540
- if (coverRenderReferences) {
14541
- return coverRenderReferences(item, referenceNode);
14542
- } else {
14543
- return referenceNode;
14544
- }
14545
- };
14546
- var onMouseEnter = function(item) {
14547
- var dom = document.querySelector('[data-id="'.concat(item.id, '"]'));
14548
- var container = wrapperRef.current;
14549
- if (!dom) return;
14550
- var topDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatTop"]);
14551
- var bottomDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatBottom"]);
14552
- if (!topDom || !bottomDom) return;
14553
- console.log("itemitem", dom, container);
14554
- var con_obj = container.getBoundingClientRect(); // 外层盒子
14555
- var dom_obj = dom.getBoundingClientRect(); // 鼠标滑过元素
14556
- var y = dom_obj.y - con_obj.y;
14557
- if (y > 0) {
14558
- // 元素tou在可视区域内
14559
- // 判断底部是否在可视区域内
14560
- if (y + dom_obj.height < con_obj.height) {
14561
- // 底部在可视区域内
14562
- // 显示在下边
14563
- bottomDom.style.cssText = "display:flex";
14564
- } else {
14565
- // 显示在上
14566
- topDom.style.cssText = "display:flex";
14567
- }
14568
- } else {
14569
- console.log("yyyy", y, dom_obj, con_obj, y + dom_obj.height < con_obj.height);
14570
- // 元素top不在可视区域内
14571
- if (y + dom_obj.height < con_obj.height) {
14572
- // 底部在可视区域内
14573
- // 显示在下边
14574
- bottomDom.style.cssText = "display:flex";
14575
- } else {
14576
- // 头部和底部都不在可视区域内 移动 topDom到可视区域
14577
- topDom.style.cssText = "display:flex;top:".concat(-1 * y + 24, "px;bottom:auto;");
14578
- }
14579
- }
14580
- };
14581
- var onMouseLeave = function(item) {
14582
- var dom = document.querySelector('[data-id="'.concat(item.id, '"]'));
14583
- if (!dom) return;
14584
- var topDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatTop"]);
14585
- var bottomDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatBottom"]);
14586
- if (!topDom || !bottomDom) return;
14587
- bottomDom.style.cssText = "";
14588
- topDom.style.cssText = "";
14589
- };
14590
- var renderAction = function(location, item) {
14591
- if (item.id === "inputing" || item.id === "helloMsg" || item.id === recordRef.current.sendingId) return null;
14592
- var copyNode = /*#__PURE__*/ jsx(CopyIcon$1, {
14593
- prefix: prefix,
14594
- content: item.content
14595
- });
14596
- var referencesNode = /*#__PURE__*/ jsx(ReferencesIcon$1, {
14597
- prefix: prefix,
14598
- apiRef: apiRef,
14599
- item: item
14600
- });
14601
- var UpVoteNode = /*#__PURE__*/ jsx(UpVoteBtn, {
14602
- prefix: prefix,
14603
- isActive: item.vote === "up",
14604
- clickFn: function() {
14605
- onVoteChange(item.vote === "up" ? "" : "up", item);
14606
- setDataSource(function(data) {
14607
- return data.map(function(ite) {
14608
- if (item.id === ite.id) {
14609
- ite.vote = item.vote === "up" ? "" : "up";
14610
- }
14611
- return ite;
14612
- });
14613
- });
14614
- }
14615
- });
14616
- var DownVoteNode = /*#__PURE__*/ jsx(DownVoteBtn, {
14617
- prefix: prefix,
14618
- isActive: item.vote === "down",
14619
- clickFn: function() {
14620
- onVoteChange(item.vote === "down" ? "" : "down", item);
14621
- setDataSource(function(data) {
14622
- return data.map(function(ite) {
14623
- if (item.id === ite.id) {
14624
- ite.vote = ite.vote === "down" ? "" : "down";
14625
- }
14626
- return ite;
14627
- });
14628
- });
14629
- }
14630
- });
14631
- var RefreshNode = /*#__PURE__*/ jsx(RefreshBtn$1, {
14632
- prefix: prefix,
14633
- clickFn: function() {
14634
- return onRefresh(item);
14635
- }
14636
- });
14637
- if (item.location === "right") {
14638
- UpVoteNode = null;
14639
- DownVoteNode = null;
14640
- }
14641
- if (item.type === "file") {
14642
- copyNode = null;
14643
- UpVoteNode = null;
14644
- DownVoteNode = null;
14645
- RefreshNode = null;
14646
- }
14647
- var leftNodes = null;
14648
- var rightNodes = /*#__PURE__*/ jsxs(Fragment, {
14649
- children: [
14650
- copyNode,
14651
- referencesNode,
14652
- UpVoteNode,
14653
- DownVoteNode
14654
- ]
14655
- });
14656
- if (msgAction instanceof Array) {
14657
- if (msgAction.length == 0) return null;
14658
- // 数组
14659
- if (!msgAction.includes("copy")) {
14660
- copyNode = null;
14661
- }
14662
- if (!msgAction.includes("reference")) {
14663
- referencesNode = null;
14664
- }
14665
- if (!msgAction.includes("upVite")) {
14666
- UpVoteNode = null;
14667
- }
14668
- if (!msgAction.includes("downVote")) {
14669
- DownVoteNode = null;
14670
- }
14671
- if (!msgAction.includes("refresh")) {
14672
- RefreshNode = null;
14673
- }
14674
- } else if (typeof msgAction === "object") {
14675
- if (msgAction.renderLeft) {
14676
- leftNodes = msgAction.renderLeft(copyNode, referencesNode, UpVoteNode, DownVoteNode, RefreshNode);
14677
- }
14678
- if (msgAction.renderRight) {
14679
- rightNodes = msgAction.renderRight(copyNode, referencesNode, UpVoteNode, DownVoteNode, RefreshNode);
14680
- }
14681
- }
14682
- var index = recordRef.current.dataSource.findIndex(function(ite) {
14683
- return ite.id == item.id;
14684
- });
14685
- if (location === "bottom") {
14686
- if (item.location === "left" && item.id !== "helloMsg" && item.id !== "inputing") {
14687
- if (index === recordRef.current.dataSource.length - 1) {
14688
- return /*#__PURE__*/ jsxs("div", {
14689
- className: "".concat(getCls("msgItem-action")),
14690
- children: [
14691
- /*#__PURE__*/ jsx("div", {
14692
- className: "".concat(getCls("msgItem-action-left")),
14693
- children: leftNodes
14694
- }),
14695
- /*#__PURE__*/ jsxs("div", {
14696
- className: "".concat(getCls("msgItem-action-right")),
14697
- children: [
14698
- RefreshNode,
14699
- rightNodes
14700
- ]
14701
- })
14702
- ]
14703
- });
14704
- }
14705
- }
14706
- // 只有最后一条才显示底部操作啦 且是左侧消息 且不是招呼语
14707
- }
14708
- if (location === "floatTop" || location === "floatBottom") {
14709
- if (item.location === "left" && item.id !== "helloMsg" && item.id !== "inputing" && index === recordRef.current.dataSource.length - 1) return null;
14710
- // 浮框
14711
- return /*#__PURE__*/ jsx("div", {
14712
- className: "".concat(getCls("msgItem-action-operate")),
14713
- children: /*#__PURE__*/ jsxs("div", {
14714
- className: "".concat(getCls("msgItem-action"), " ").concat(getCls("msgItem-action-popover"), " ").concat(getCls("msgItem-action-popover-" + location)),
14715
- children: [
14716
- /*#__PURE__*/ jsx("div", {
14717
- className: "".concat(getCls("msgItem-action-left")),
14718
- children: leftNodes
14719
- }),
14720
- /*#__PURE__*/ jsx("div", {
14721
- className: "".concat(getCls("msgItem-action-right")),
14722
- children: rightNodes
14723
- })
14724
- ]
14725
- })
14726
- });
14727
- }
14728
- return null;
14729
- };
14730
- var markToHtml = function(markStr, id) {
14731
- var html = remarkable.render(markStr);
14732
- var position = 0;
14733
- html = html.replace(new RegExp("<pre", "ig"), function() {
14734
- position++;
14735
- return "<p class='".concat(getCls("copyCode"), " ").concat(modules_63b47c51$9.copyCodeFun, "' data-id=").concat(id, " data-position=").concat(position, ">\n <span class='").concat(getCls("icon"), " ").concat(getCls("copy"), '\'>\n <svg\n width="1em"\n height="1em"\n viewBox="0 0 14 14"\n shape-rendering="geometricPrecision"\n fill="currentColor"\n xmlns="http://www.w3.org/2000/svg"\n >\n <g clip-path="url(#clip0_518_8403)">\n <path\n d="M6.16666 1.66666H13.1667C13.4761 1.66666 13.7728 1.78957 13.9916 2.00837C14.2104 2.22716 14.3333 2.5239 14.3333 2.83332V9.83332C14.3333 10.1427 14.2104 10.4395 13.9916 10.6583C13.7728 10.8771 13.4761 11 13.1667 11H6.16666C5.85724 11 5.5605 10.8771 5.34171 10.6583C5.12291 10.4395 5 10.1427 5 9.83332V2.83332C5 2.5239 5.12291 2.22716 5.34171 2.00837C5.5605 1.78957 5.85724 1.66666 6.16666 1.66666ZM6.16666 2.66666C6.12246 2.66666 6.08007 2.68422 6.04881 2.71547C6.01756 2.74673 6 2.78912 6 2.83332V9.83332C6 9.85521 6.00431 9.87688 6.01268 9.8971C6.02106 9.91732 6.03334 9.9357 6.04881 9.95117C6.06429 9.96665 6.08266 9.97893 6.10288 9.9873C6.1231 9.99568 6.14478 9.99999 6.16666 9.99999H13.1667C13.2109 9.99999 13.2533 9.98243 13.2845 9.95117C13.3158 9.91992 13.3333 9.87753 13.3333 9.83332V2.83332C13.3333 2.78912 13.3158 2.74673 13.2845 2.71547C13.2533 2.68422 13.2109 2.66666 13.1667 2.66666H6.16666ZM10 12C10 11.8674 10.0527 11.7402 10.1464 11.6464C10.2402 11.5527 10.3674 11.5 10.5 11.5C10.6326 11.5 10.7598 11.5527 10.8536 11.6464C10.9473 11.7402 11 11.8674 11 12V13.1667C11 13.4761 10.8771 13.7728 10.6583 13.9916C10.4395 14.2104 10.1427 14.3333 9.83333 14.3333H2.83333C2.52391 14.3333 2.22717 14.2104 2.00837 13.9916C1.78958 13.7728 1.66666 13.4761 1.66666 13.1667V6.16666C1.66666 5.85724 1.78958 5.56049 2.00837 5.3417C2.22717 5.12291 2.52391 4.99999 2.83333 4.99999H4C4.13261 4.99999 4.25978 5.05267 4.35355 5.14644C4.44732 5.2402 4.5 5.36738 4.5 5.49999C4.5 5.6326 4.44732 5.75978 4.35355 5.85354C4.25978 5.94731 4.13261 5.99999 4 5.99999H2.83333C2.78913 5.99999 2.74674 6.01755 2.71548 6.04881C2.68422 6.08006 2.66666 6.12245 2.66666 6.16666V13.1667C2.66666 13.2109 2.68422 13.2533 2.71548 13.2845C2.74674 13.3158 2.78913 13.3333 2.83333 13.3333H9.83333C9.87753 13.3333 9.91993 13.3158 9.95118 13.2845C9.98244 13.2533 10 13.2109 10 13.1667V12Z"\n />\n </g>\n <defs>\n <clipPath id="clip0_518_8403">\n <rect width="16" height="16" />\n </clipPath>\n </defs>\n </svg>\n </span>\n <span class=\'').concat(getCls("icon"), " ").concat(getCls("copy_success_flag"), '\'>\n <svg\n width="1em"\n height="1em"\n shape-rendering="geometricPrecision"\n fill="currentColor"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path d="M11.2242 0.375687C11.4586 0.610002 11.4586 0.989901 11.2242 1.22422L4.82424 7.62422C4.58992 7.85853 4.21003 7.85853 3.97571 7.62422L0.775712 4.42422C0.541397 4.1899 0.541397 3.81 0.775712 3.57569C1.01003 3.34137 1.38993 3.34137 1.62424 3.57569L4.39998 6.35142L10.3757 0.375687C10.61 0.141373 10.9899 0.141373 11.2242 0.375687Z" />\n </svg>\n </span><span class="').concat(getCls("copyCodeText"), '">复制代码</span></p><pre');
14736
- });
14737
- return html;
14738
- };
14739
- var renderTime = function(item) {
14740
- // 生成缓存键
14741
- var cacheKey = "".concat(item.id);
14742
- // 检查缓存中是否已有结果
14743
- if (timeRenderCache.has(cacheKey)) {
14744
- return timeRenderCache.get(cacheKey);
14745
- }
14746
- var index = recordRef.current.dataSource.findIndex(function(i) {
14747
- return i.id === item.id;
14748
- });
14749
- var timeObj = parseDate(item.createTime);
14750
- var time = null;
14751
- if (index === 0) {
14752
- // 第一项 显示年月日 时分
14753
- time = "".concat(timeObj.year, "-").concat(timeObj.month, "-").concat(timeObj.day, " ").concat(timeObj.hours, ":").concat(timeObj.minutes);
14754
- } else {
14755
- // 非第一项 与上一项进行对比
14756
- var prevItem = recordRef.current.dataSource[index - 1];
14757
- if (prevItem) {
14758
- var beforeTime = prevItem.createTime;
14759
- var beforeTimeObj = parseDate(beforeTime);
14760
- // 判断与上一条数据 是否跨天
14761
- if (timeObj.year !== beforeTimeObj.year || timeObj.month !== beforeTimeObj.month || timeObj.day !== beforeTimeObj.day) {
14762
- // 显示 年月日 时分
14763
- time = "".concat(timeObj.year, "-").concat(timeObj.month, "-").concat(timeObj.day, " ").concat(timeObj.hours, ":").concat(timeObj.minutes);
14764
- } else {
14765
- // 没有跨天 判断是否相隔超过10分钟
14766
- if (timeObj.timestamp - beforeTimeObj.timestamp > 10 * 60 * 1000) {
14767
- // 超过10分钟 显示 时分
14768
- time = "".concat(timeObj.hours, ":").concat(timeObj.minutes);
14769
- }
14770
- }
14771
- }
14772
- }
14773
- var result = time ? /*#__PURE__*/ jsx("div", {
14774
- className: "".concat(getCls("msg-date")),
14775
- children: time
14776
- }) : null;
14777
- // 将结果存入缓存
14778
- timeRenderCache.set(cacheKey, result);
14779
- return result;
14780
- };
14781
- var findCopyContent = function(e) {
14782
- var source = findParent$1(e.target, modules_63b47c51$9.copyCode);
14783
- if (!source) return;
14784
- var id = source.getAttribute("data-id");
14785
- var position = source.getAttribute("data-position");
14786
- if (!id && !position) return;
14787
- var message = "";
14788
- recordRef.current.dataSource.forEach(function(item) {
14789
- if (item.id === id) {
14790
- message = item.content;
14791
- }
14792
- });
14793
- if (!message) return;
14794
- var codeConment = "";
14795
- var i = 0;
14796
- message.replaceAll(new RegExp(/```(?:.|\n)*?```/, "ig"), function(con) {
14797
- i++;
14798
- if (i == position) {
14799
- // 异常标记
14800
- con = con.replace(/^```[\s\S]*?\n/, "").replace(/\n```$/, "");
14801
- codeConment = con;
14802
- return con;
14803
- } else {
14804
- return null;
14805
- }
14806
- });
14807
- resetStyles();
14808
- source.classList.add(modules_63b47c51$9.copy_success);
14809
- source.children[2].innerText = "复制成功";
14810
- copyText$1(codeConment);
14811
- setTimeout(function() {
14812
- try {
14813
- resetStyles();
14814
- } catch (error) {}
14815
- }, 3000);
14816
- };
14817
- //初始化样式
14818
- var resetStyles = function() {
14819
- var dom_list = document.getElementsByClassName(modules_63b47c51$9.copy_success);
14820
- for(var i = 0; i < dom_list.length; i++){
14821
- dom_list[i].classList.remove(modules_63b47c51$9.copy_success);
14822
- }
14823
- var dom_list2 = document.getElementsByClassName(modules_63b47c51$9.copyCodeFun);
14824
- for(var i = 0; i < dom_list2.length; i++){
14825
- var p = dom_list2[i].getElementsByClassName(modules_63b47c51$9.copyCodeText);
14826
- p[0].innerText = "复制代码";
14827
- }
14828
- };
14829
- var onScroll = function() {
14830
- console.log("滚动滚动");
14831
- };
14832
- return /*#__PURE__*/ jsx("div", {
14833
- className: "".concat(getCls("virtuosoList-wrapper")),
14834
- ref: wrapperRef,
14835
- children: /*#__PURE__*/ jsx(cn, {
14836
- ref: virtuosoRef,
14837
- style: {
14838
- height: "100%"
14839
- },
14840
- data: dataSource,
14841
- initialTopMostItemIndex: {
14842
- index: "LAST",
14843
- align: "end"
14844
- },
14845
- startReached: loadMore,
14846
- firstItemIndex: firstItemIndex,
14847
- context: {
14848
- loading: loading,
14849
- prefix: prefix
14850
- },
14851
- itemContent: itemContent,
14852
- components: {
14853
- Header: Header
14854
- },
14855
- increaseViewportBy: 200,
14856
- overscan: 10,
14857
- onScroll: onScroll
14858
- })
14859
- });
14860
- });
14861
- var VirtuosoList$1 = VirtuosoList;
14862
-
14863
- var Content = /*#__PURE__*/ forwardRef(function(props, ref) {
14864
- var prefix = props.prefix, contentConfig = props.contentConfig, apiRef = props.apiRef;
14865
- var _contentConfig_className = contentConfig.className, className = _contentConfig_className === void 0 ? "" : _contentConfig_className;
14866
- var listRef = useRef(null);
14867
- useImperativeHandle(ref, function() {
14868
- return _object_spread({}, listRef.current);
14869
- });
14870
- var getCls = function(clsName) {
14871
- return modules_63b47c51$a[clsName] + " " + prefix + "-" + clsName;
14872
- };
14873
- return /*#__PURE__*/ jsx("div", {
14874
- className: "".concat(getCls("content"), " ").concat(className),
14875
- children: /*#__PURE__*/ jsx("div", {
14876
- className: "".concat(getCls("contentList")),
14877
- children: /*#__PURE__*/ jsx(VirtuosoList$1, {
14878
- ref: listRef,
14879
- prefix: prefix,
14880
- contentConfig: contentConfig,
14881
- apiRef: apiRef
14882
- })
14883
- })
14884
- });
14885
- });
14886
- var Content$1 = Content;
14887
-
14888
- var modules_63b47c51$4 = {"footer":"index_module_footer__2287d487","footerBody":"index_module_footerBody__2287d487","footerBodyWarn":"index_module_footerBodyWarn__2287d487","footerFile":"index_module_footerFile__2287d487","footerInput":"index_module_footerInput__2287d487","footerAction":"index_module_footerAction__2287d487","footerActionBtn":"index_module_footerActionBtn__2287d487"};
14889
-
14890
- var modules_63b47c51$3 = {"sendBtnIcon":"index_module_sendBtnIcon__d770fbb6","disabled":"index_module_disabled__d770fbb6","sendingIcon":"index_module_sendingIcon__d770fbb6","popover":"index_module_popover__d770fbb6"};
14891
-
14892
- var sendBtnSvg = /*#__PURE__*/ jsx("svg", {
14893
- xmlns: "http://www.w3.org/2000/svg",
14894
- width: "1em",
14895
- height: "1em",
14896
- viewBox: "0 0 24 24",
14897
- fill: "currentColor",
14898
- children: /*#__PURE__*/ jsx("path", {
14899
- d: "M20.3831 4.11378C20.0797 3.96207 19.7763 3.96207 19.6246 4.11378L4.45533 11.6984C4.15195 11.6984 4.00024 12.0018 4.00024 12.3052C4.00024 12.6085 4.15195 12.9119 4.30364 12.9119L7.94426 15.1874C8.24766 15.3391 8.55105 15.3391 8.85443 15.0357L16.8942 7.7544L17.1975 7.90609L9.91627 15.6425C9.76458 15.7941 9.76458 15.9458 9.76458 16.0975V19.4348C9.76458 19.7381 9.91627 20.0415 10.2197 20.1932C10.523 20.3449 10.8264 20.1932 10.9781 20.0415L12.7984 18.2212L16.4391 20.6483C16.5908 20.8 16.7425 20.8 16.8942 20.8H17.1975C17.5009 20.6483 17.6526 20.4966 17.6526 20.1932L20.6865 5.02393C20.6865 4.56885 20.6865 4.26547 20.3831 4.11378Z"
14900
- })
14901
- });
14902
- var sendingSvg = /*#__PURE__*/ jsx("svg", {
14903
- xmlns: "http://www.w3.org/2000/svg",
14904
- width: "1em",
14905
- height: "1em",
14906
- viewBox: "0 0 16 16",
14907
- fill: "currentColor",
14908
- children: /*#__PURE__*/ jsx("path", {
14909
- d: "M8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0ZM8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1ZM9.5 5C9.89782 5 10.2792 5.15815 10.5605 5.43945C10.8419 5.72076 11 6.10218 11 6.5V9.5C11 9.89782 10.8419 10.2792 10.5605 10.5605C10.2792 10.8419 9.89782 11 9.5 11H6.5C6.10218 11 5.72076 10.8419 5.43945 10.5605C5.15815 10.2792 5 9.89782 5 9.5V6.5C5 6.10218 5.15815 5.72076 5.43945 5.43945C5.72076 5.15815 6.10218 5 6.5 5H9.5Z"
14910
- })
14911
- });
14912
- var SendBtn$1 = function(props) {
14913
- var prefix = props.prefix, canSendMsg = props.canSendMsg, sending = props.sending, stopMessage = props.stopMessage, _props_clickFn = props.clickFn, clickFn = _props_clickFn === void 0 ? function() {} : _props_clickFn;
14914
- var getCls = function(clsName) {
14915
- return modules_63b47c51$3[clsName] + " " + prefix + "-" + clsName;
14916
- };
14917
- if (sending) {
14918
- return /*#__PURE__*/ jsx(Popover, {
14919
- content: "停止生成",
14920
- overlayClassName: modules_63b47c51$3.popover,
14921
- children: /*#__PURE__*/ jsx("i", {
14922
- className: "".concat(getCls("sendingIcon")),
14923
- onClick: function() {
14924
- return stopMessage();
14925
- },
14926
- children: sendingSvg
14927
- })
14928
- });
14929
- }
14930
- return /*#__PURE__*/ jsx("i", {
14931
- className: "".concat(getCls("sendBtnIcon"), " ").concat(canSendMsg ? "" : getCls("disabled")),
14932
- onClick: function() {
14933
- if (canSendMsg) {
14934
- clickFn();
14935
- }
14936
- },
14937
- children: sendBtnSvg
14938
- });
14939
- };
14940
- var SendBtn$2 = SendBtn$1;
14941
-
14942
- var modules_63b47c51$2 = {"uploadFileBtn":"index_module_uploadFileBtn__e41600f2"};
14943
-
14944
- var uplodaFileBtnSvg = /*#__PURE__*/ jsx("svg", {
14945
- xmlns: "http://www.w3.org/2000/svg",
14946
- width: "1em",
14947
- height: "1em",
14948
- viewBox: "0 0 24 24",
14949
- fill: "curretnColor",
14950
- children: /*#__PURE__*/ jsx("path", {
14951
- d: "M18.6853 7.62742C17.8428 6.79307 16.7044 6.32615 15.5187 6.3287H15.5067C14.9307 6.3287 14.3694 6.43537 13.8347 6.64871C13.2814 6.86872 12.7814 7.19407 12.3547 7.61542L8.1774 11.7449C7.93976 11.9789 7.75147 12.2582 7.62368 12.5663C7.49588 12.8743 7.43118 13.2049 7.4334 13.5384C7.43474 14.2157 7.70273 14.8531 8.18673 15.3318C8.67073 15.8118 9.31339 16.0745 9.99872 16.0758H10.0041C10.6867 16.0758 11.328 15.8145 11.808 15.3411L15.4747 11.7169C15.5343 11.6586 15.5818 11.5889 15.6141 11.512C15.6465 11.435 15.6632 11.3524 15.6632 11.2689C15.6632 11.1855 15.6465 11.1028 15.6141 11.0259C15.5818 10.949 15.5343 10.8793 15.4747 10.8209C15.3544 10.7019 15.1919 10.6351 15.0227 10.6351C14.8534 10.6351 14.691 10.7019 14.5707 10.8209L10.904 14.4437C10.7851 14.5612 10.6442 14.6541 10.4893 14.717C10.3344 14.78 10.1686 14.8117 10.0014 14.8104H10.0001C9.65919 14.8107 9.33196 14.6766 9.08939 14.4371C8.96981 14.3197 8.87485 14.1796 8.81006 14.0251C8.74527 13.8705 8.71195 13.7046 8.71206 13.537C8.71037 13.3709 8.7422 13.2062 8.80567 13.0527C8.86913 12.8992 8.96291 12.7601 9.08139 12.6437L13.2587 8.51146C13.8576 7.9204 14.6666 7.59138 15.508 7.59676H15.5173C16.3656 7.59544 17.1802 7.92894 17.784 8.5248C18.388 9.12216 18.7213 9.91686 18.7227 10.7636C18.7254 11.1781 18.6451 11.5889 18.4864 11.9718C18.3277 12.3548 18.0938 12.702 17.7987 12.993L13.3667 17.3799C12.4776 18.2529 11.2794 18.7389 10.0334 18.7319H10.0214C8.76654 18.7335 7.56186 18.2394 6.66941 17.3572C6.22896 16.9252 5.8792 16.4096 5.64062 15.8406C5.40205 15.2716 5.27948 14.6607 5.28009 14.0437C5.27585 13.4298 5.39486 12.8212 5.63007 12.2541C5.86528 11.6871 6.2119 11.1729 6.64941 10.7422L12.3734 5.08464C12.4332 5.02626 12.4808 4.95648 12.5133 4.87942C12.5458 4.80236 12.5625 4.71958 12.5625 4.63595C12.5625 4.55233 12.5458 4.46954 12.5133 4.39248C12.4808 4.31543 12.4332 4.24565 12.3734 4.18727C12.2529 4.06755 12.0901 4.00025 11.9203 4C11.7505 3.99975 11.5875 4.06658 11.4667 4.18593L5.74675 9.84486C5.18956 10.3931 4.74792 11.0476 4.44792 11.7694C4.14792 12.4913 3.99564 13.266 4.00009 14.0477C4.00143 14.8211 4.15076 15.5745 4.44542 16.2865C4.75105 17.0251 5.20126 17.6952 5.76956 18.2574C6.33787 18.8196 7.01282 19.2624 7.75473 19.56C8.47206 19.8493 9.23472 19.996 10.0174 20H10.0347C11.6174 20.0024 13.1375 19.3822 14.2667 18.2732L18.7 13.8904C19.1135 13.4806 19.4414 12.9926 19.6646 12.4549C19.8877 11.9172 20.0018 11.3404 20 10.7582C19.999 10.1753 19.8823 9.59842 19.6566 9.06098C19.4309 8.52354 19.1008 8.03627 18.6853 7.62742Z"
14952
- })
14953
- });
14954
- var SendBtn = function(props) {
14955
- var prefix = props.prefix, fileUpload = props.fileUpload, customRequest = props.customRequest;
14956
- var uplodaProps = _object_spread({}, fileUpload);
14957
- var getCls = function(clsName) {
14958
- return modules_63b47c51$2[clsName] + " " + prefix + "-" + clsName;
14959
- };
14960
- return /*#__PURE__*/ jsx(Upload, {
14961
- fileList: [],
14962
- accept: uplodaProps.accept,
14963
- customRequest: customRequest,
14964
- multiple: !!uplodaProps.multiple,
14965
- children: /*#__PURE__*/ jsx("i", {
14966
- className: "".concat(getCls("uploadFileBtn")),
14967
- children: uplodaFileBtnSvg
14968
- })
14969
- });
14970
- };
14971
- var UploadFileBtn = SendBtn;
14972
-
14973
- var modules_63b47c51$1 = {"footer-fileList-wrapper":"index_module_footerFileListWrapper__e818c28d","footer-fileList-list":"index_module_footerFileListList__e818c28d","footer-fileList-listItem":"index_module_footerFileListListItem__e818c28d","footer-fileList-listItem-icon":"index_module_footerFileListListItemIcon__e818c28d","footer-fileList-listItem-text":"index_module_footerFileListListItemText__e818c28d","footer-fileList-listItem-status":"index_module_footerFileListListItemStatus__e818c28d","footer-fileList-listItem-delete":"index_module_footerFileListListItemDelete__e818c28d","footer-fileList-pre":"index_module_footerFileListPre__e818c28d","footer-fileList-next":"index_module_footerFileListNext__e818c28d"};
14974
-
14975
- var guidGenerator = function() {
14976
- var d = new Date().getTime();
14977
- var uuid = "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g, function(c) {
14978
- var r = (d + Math.random() * 16) % 16 | 0;
14979
- d = Math.floor(d / 16);
14980
- return (c == "x" ? r : r & 3 | 8).toString(16);
14981
- });
14982
- return uuid;
14983
- };
14984
-
14985
- // 通过文件名 获取文件后缀
14986
- var getSuffix = function(fileName) {
14987
- return fileName.split(".").pop().toLowerCase();
14988
- };
14989
- var FileList = /*#__PURE__*/ forwardRef(function(props, ref) {
14990
- var prefix = props.prefix, fileUpload = props.fileUpload, errorCallback = props.errorCallback, changeFileCanSending = props.changeFileCanSending;
14991
- console.log("fileUpload", fileUpload);
14992
- var _useState = _sliced_to_array(useState([]), 2), fileList = _useState[0], setFileList = _useState[1];
14993
- var _useState1 = _sliced_to_array(useState(1), 2), page = _useState1[0], setPage = _useState1[1];
14994
- var _useState2 = _sliced_to_array(useState(5), 2), pageSize = _useState2[0], setPageSize = _useState2[1];
14995
- var recordObj = useRef({
14996
- page: page,
14997
- pageSize: pageSize,
14998
- fileList: fileList
14999
- });
15000
- useEffect(function() {
15001
- recordObj.current.page = page;
15002
- recordObj.current.pageSize = pageSize;
15003
- recordObj.current.fileList = fileList;
15004
- }, [
15005
- page,
15006
- pageSize,
15007
- fileList
15008
- ]);
15009
- useEffect(function() {
15010
- var flag = fileList.some(function(item) {
15011
- return [
15012
- "waiting",
15013
- "uploading",
15014
- "uploadError",
15015
- "waitParse",
15016
- "parsing",
15017
- "parsingError"
15018
- ].includes(item.status);
15019
- });
15020
- changeFileCanSending(!flag);
15021
- }, [
15022
- fileList
15023
- ]);
15024
- useImperativeHandle(ref, function() {
15025
- return {
15026
- addFile: addFile,
15027
- changePage: changePage,
15028
- deleteFile: deleteFile,
15029
- updateFile: updateFile,
15030
- getFileList: function() {
15031
- return recordObj.current.fileList;
15032
- },
15033
- vaildFile: vaildFile,
15034
- fileToCustomFile: fileToCustomFile,
15035
- clearFileList: clearFileList
15036
- };
15037
- });
15038
- var getCls = function(clsName) {
15039
- return modules_63b47c51$1[clsName] + " " + prefix + "-" + clsName;
15040
- };
15041
- var clearFileList = function() {
15042
- setFileList([]);
15043
- };
15044
- var vaildFile = function(file, fileId) {
15045
- if (fileUpload.maxCount > 0 && recordObj.current.fileList.length > fileUpload.maxCount) {
15046
- errorCallback({
15047
- type: "fileCountOver",
15048
- message: "上传失败,文件数量超过限制"
15049
- });
15050
- return false;
15051
- }
15052
- // fileUpload
15053
- var acceptList = fileUpload.accept.split(/[.,]/).filter(function(item) {
15054
- return !!item;
15055
- });
15056
- var suffix = getSuffix(file.name);
15057
- if (!acceptList.includes(suffix)) {
15058
- errorCallback({
15059
- type: "fileAcceptError",
15060
- message: "上传失败,文件格式错误"
15061
- });
15062
- return false;
15063
- }
15064
- if (file.size <= 0) {
15065
- errorCallback({
15066
- type: "fileSizeEmpty",
15067
- message: "上传失败,不支持上传空内容文件"
15068
- });
15069
- return false;
15070
- }
15071
- if (file.size > fileUpload.maxSize) {
15072
- errorCallback({
15073
- type: "fileSizeOver",
15074
- message: "上传失败,文件大小超过限制"
15075
- });
15076
- return false;
15077
- }
15078
- var flag = recordObj.current.fileList.some(function(item) {
15079
- if (fileId) {
15080
- return item.name === file.name && item.fileId !== fileId;
15081
- } else {
15082
- return item.name === file.name;
15083
- }
15084
- });
15085
- // 判断是否有同名文件
15086
- if (flag) {
15087
- errorCallback({
15088
- type: "fileNameExist",
15089
- message: "上传失败,文件已存在"
15090
- });
15091
- return false;
15092
- }
15093
- return true;
15094
- };
15095
- var addFile = function(file, fileId) {
15096
- console.log("addFileaddFile", file, fileUpload);
15097
- if (vaildFile(file, fileId)) {
15098
- // 等待上传
15099
- // 判断是否存在等待上传的文件
15100
- setFileList(function(fileList) {
15101
- var uploadingList = fileList.filter(function(item) {
15102
- return item.status === "uploading";
15103
- });
15104
- if (uploadingList.length >= fileUpload.mapUploadCount) {
15105
- if (fileId) {
15106
- return fileList.map(function(item) {
15107
- if (item.fileId === fileId) {
15108
- var obj = fileToCustomFile(file, {});
15109
- return {
15110
- name: obj.name,
15111
- suffix: obj.suffix,
15112
- fileId: fileId,
15113
- url: "",
15114
- status: "waiting",
15115
- source: file,
15116
- size: file.size
15117
- };
15118
- }
15119
- return item;
15120
- });
15121
- } else {
15122
- return _to_consumable_array(fileList).concat([
15123
- fileToCustomFile(file, {})
15124
- ]);
15125
- }
15126
- } else {
15127
- uploadFile(file);
15128
- if (fileId) {
15129
- return fileList.map(function(item) {
15130
- if (item.fileId === fileId) {
15131
- var obj = fileToCustomFile(file, {});
15132
- return {
15133
- name: obj.name,
15134
- suffix: obj.suffix,
15135
- fileId: fileId,
15136
- url: "",
15137
- status: "uploading",
15138
- source: file,
15139
- size: file.size
15140
- };
15141
- }
15142
- return item;
15143
- });
15144
- } else {
15145
- return _to_consumable_array(fileList).concat([
15146
- fileToCustomFile(file, {
15147
- status: "uploading"
15148
- })
15149
- ]);
15150
- }
15151
- }
15152
- });
15153
- }
15154
- };
15155
- var uploadFile = function(file) {
15156
- fileUpload.customRequest(file).then(function(res) {
15157
- setFileList(function(fileList) {
15158
- var list = fileList.map(function(item) {
15159
- if (item.source === file) {
15160
- return _object_spread({}, item, res);
15161
- }
15162
- return item;
15163
- });
15164
- var waitList = list.filter(function(item) {
15165
- return item.status === "waiting";
15166
- });
15167
- if (waitList.length > 0) {
15168
- list = list.map(function(item) {
15169
- if (item.fileId === waitList[0].fileId) {
15170
- return _object_spread_props(_object_spread({}, item), {
15171
- status: "uploading"
15172
- });
15173
- }
15174
- return item;
15175
- });
15176
- uploadFile(waitList[0].source);
15177
- }
15178
- return list;
15179
- });
15180
- });
15181
- };
15182
- // 删除文件
15183
- var deleteFile = function(fileId) {
15184
- var fileObj = null;
15185
- setFileList(function(fileList) {
15186
- return fileList.filter(function(item) {
15187
- if (item.fileId === fileId) {
15188
- fileObj = item;
15189
- return true;
15190
- }
15191
- return false;
15192
- });
15193
- });
15194
- // 删除文件时如果删除的是最后一条 则page-1
15195
- var _recordObj_current = recordObj.current, fileList = _recordObj_current.fileList, page = _recordObj_current.page, pageSize = _recordObj_current.pageSize;
15196
- var list = fileList.slice((page - 1) * pageSize, page * pageSize);
15197
- list = list.filter(function(item) {
15198
- return item.fileId !== fileId;
15199
- });
15200
- if (list.length === 0 && page > 1) {
15201
- changePage(page - 1);
15202
- }
15203
- fileUpload.deleteFileAjax && fileUpload.deleteFileAjax(fileId, fileObj);
15204
- };
15205
- // 更新文件状态
15206
- var updateFile = function(fileId, status) {
15207
- setFileList(function(fileList) {
15208
- return fileList.map(function(item) {
15209
- if (item.fileId === fileId) {
15210
- return _object_spread_props(_object_spread({}, item), {
15211
- status: status
15212
- });
15213
- }
15214
- return item;
15215
- });
15216
- });
15217
- };
15218
- // file to customFile
15219
- var fileToCustomFile = function(file, params) {
15220
- var customFile = {
15221
- name: file.name,
15222
- suffix: getSuffix(file.name),
15223
- fileId: params.fileId || guidGenerator(),
15224
- url: params.url || "",
15225
- status: params.status || "waiting",
15226
- source: file,
15227
- size: file.size
15228
- };
15229
- return customFile;
15230
- };
15231
- var changePage = function(page) {
15232
- setPage(page);
15233
- setPageSize(pageSize);
15234
- };
15235
- var list = fileList.slice((page - 1) * pageSize, page * pageSize);
15236
- if (list.length === 0) return null;
15237
- return /*#__PURE__*/ jsxs("div", {
15238
- className: "".concat(getCls("footer-fileList-wrapper")),
15239
- children: [
15240
- page !== 1 && /*#__PURE__*/ jsx("div", {
15241
- className: "".concat(getCls("footer-fileList-pre")),
15242
- onClick: function() {
15243
- return changePage(page - 1);
15244
- },
15245
- children: /*#__PURE__*/ jsx(DoubleRightOutlined, {
15246
- onPointerEnterCapture: undefined,
15247
- onPointerLeaveCapture: undefined
15248
- })
15249
- }),
15250
- /*#__PURE__*/ jsx("div", {
15251
- className: "".concat(getCls("footer-fileList-list")),
15252
- children: list.map(function(item) {
15253
- return /*#__PURE__*/ jsxs("div", {
15254
- className: "".concat(getCls("footer-fileList-listItem")),
15255
- children: [
15256
- /*#__PURE__*/ jsx("div", {
15257
- className: "".concat(getCls("footer-fileList-listItem-icon")),
15258
- children: fileIconRender(item.suffix, fileUpload.iconFileRender)
15259
- }),
15260
- /*#__PURE__*/ jsx("div", {
15261
- className: "".concat(getCls("footer-fileList-listItem-text")),
15262
- title: item.name,
15263
- children: item.name
15264
- }),
15265
- item.status === "uploadError" ? /*#__PURE__*/ jsx(Upload, {
15266
- fileList: [],
15267
- accept: fileUpload.accept,
15268
- customRequest: function(options) {
15269
- return addFile(options.file, item.fileId);
15270
- },
15271
- multiple: false,
15272
- children: /*#__PURE__*/ jsx("div", {
15273
- className: "".concat(getCls("footer-fileList-listItem-status")),
15274
- style: {
15275
- cursor: "pointer"
15276
- },
15277
- children: statusRender(item.status, fileUpload.statusText)
15278
- })
15279
- }) : /*#__PURE__*/ jsx("div", {
15280
- className: "".concat(getCls("footer-fileList-listItem-status")),
15281
- children: statusRender(item.status, fileUpload.statusText)
15282
- }),
15283
- /*#__PURE__*/ jsx("div", {
15284
- className: "".concat(getCls("footer-fileList-listItem-delete")),
15285
- children: /*#__PURE__*/ jsx(CloseCircleFilled, {
15286
- onPointerEnterCapture: undefined,
15287
- onPointerLeaveCapture: undefined,
15288
- onClick: function() {
15289
- return deleteFile(item.fileId);
15290
- }
15291
- })
15292
- })
15293
- ]
15294
- }, item.fileId);
15295
- })
15296
- }),
15297
- page * pageSize < fileList.length && /*#__PURE__*/ jsx("div", {
15298
- className: "".concat(getCls("footer-fileList-next")),
15299
- onClick: function() {
15300
- return changePage(page + 1);
15301
- },
15302
- children: /*#__PURE__*/ jsx(DoubleRightOutlined, {
15303
- onPointerEnterCapture: undefined,
15304
- onPointerLeaveCapture: undefined
15305
- })
15306
- })
15307
- ]
15308
- });
15309
- });
15310
- var FileList$1 = FileList;
15311
-
15312
- var modules_63b47c51 = {"footerReferences":"index_module_footerReferences__ef2f2d56","footerReferences_left":"index_module_footerReferences_left__ef2f2d56","footerReferences_left_text":"index_module_footerReferences_left_text__ef2f2d56","footerReferences_left_file":"index_module_footerReferences_left_file__ef2f2d56","footerReferences_left_file_icon":"index_module_footerReferences_left_file_icon__ef2f2d56","footerReferences_left_file_title":"index_module_footerReferences_left_file_title__ef2f2d56","footerReferences_right":"index_module_footerReferences_right__ef2f2d56"};
15313
-
15314
- var References = function(props) {
15315
- var prefix = props.prefix, referencesSource = props.referencesSource, fileUpload = props.fileUpload, deleteReferences = props.deleteReferences;
15316
- var getCls = function(clsName) {
15317
- return modules_63b47c51[clsName] + " " + prefix + "-" + clsName;
15318
- };
15319
- if (!referencesSource) return null;
15320
- if (referencesSource.type === "text") {
15321
- return /*#__PURE__*/ jsxs("div", {
15322
- className: "".concat(getCls("footerReferences")),
15323
- children: [
15324
- /*#__PURE__*/ jsx("div", {
15325
- className: "".concat(getCls("footerReferences_left")),
15326
- children: /*#__PURE__*/ jsx("div", {
15327
- className: "".concat(getCls("footerReferences_left_text")),
15328
- children: referencesSource.value
15329
- })
15330
- }),
15331
- /*#__PURE__*/ jsx("div", {
15332
- className: "".concat(getCls("footerReferences_right")),
15333
- children: /*#__PURE__*/ jsx(CloseCircleFilled, {
15334
- onPointerEnterCapture: undefined,
15335
- onPointerLeaveCapture: undefined,
15336
- onClick: function() {
15337
- return deleteReferences();
15338
- }
15339
- })
15340
- })
15341
- ]
15342
- });
15343
- }
15344
- if (referencesSource.type === "file" && fileUpload) {
15345
- return /*#__PURE__*/ jsxs("div", {
15346
- className: "".concat(getCls("footerReferences")),
15347
- children: [
15348
- /*#__PURE__*/ jsx("div", {
15349
- className: "".concat(getCls("footerReferences_left")),
15350
- children: /*#__PURE__*/ jsxs("div", {
15351
- className: "".concat(getCls("footerReferences_left_file")),
15352
- children: [
15353
- /*#__PURE__*/ jsx("div", {
15354
- className: "".concat(getCls("footerReferences_left_file_icon")),
15355
- children: fileIconRender(referencesSource.value.suffix, fileUpload.iconFileRender)
15356
- }),
15357
- /*#__PURE__*/ jsx("div", {
15358
- className: "".concat(getCls("footerReferences_left_file_title")),
15359
- title: referencesSource.value.name,
15360
- children: referencesSource.value.name
15361
- })
15362
- ]
15363
- })
15364
- }),
15365
- /*#__PURE__*/ jsx("div", {
15366
- className: "".concat(getCls("footerReferences_right")),
15367
- children: /*#__PURE__*/ jsx(CloseCircleFilled, {
15368
- onPointerEnterCapture: undefined,
15369
- onPointerLeaveCapture: undefined,
15370
- onClick: function() {
15371
- return deleteReferences();
15372
- }
15373
- })
15374
- })
15375
- ]
15376
- });
15377
- }
15378
- return null;
15379
- };
15380
- var References$1 = References;
15381
-
15382
- var TextArea = BhdEnterInput.TextArea;
15383
- var defaultProps = {
15384
- placeholder: "请输入内容\n按Enter发送,Shift+Enter换行",
15385
- className: "",
15386
- maxLength: 500,
15387
- fileUpload: false
15388
- };
15389
- var defaultFileUploadProps = {
15390
- accept: ".pdf,.ppt,.pptx,.doc,.docx,.xls,.xlsx,.txt,.text,.png,.jpg,.jpeg,.gif,.webp",
15391
- maxCount: 10,
15392
- maxSize: 50 * 1024 * 1024,
15393
- mapUploadCount: 1,
15394
- multiple: true
15395
- };
15396
- var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
15397
- var footerConfig = props.footerConfig, prefix = props.prefix, errorCallback = props.errorCallback, apiRef = props.apiRef;
15398
- var _footerConfig_placeholder = footerConfig.placeholder, placeholder = _footerConfig_placeholder === void 0 ? defaultProps.placeholder : _footerConfig_placeholder, _footerConfig_className = footerConfig.className, className = _footerConfig_className === void 0 ? defaultProps.className : _footerConfig_className, _footerConfig_maxLength = footerConfig.maxLength, maxLength = _footerConfig_maxLength === void 0 ? defaultProps.maxLength : _footerConfig_maxLength, renderAction = footerConfig.renderAction, fileUpload = footerConfig.fileUpload, sendMsgAjaxParams = footerConfig.sendMsgAjaxParams, _footerConfig_onClickStop = footerConfig.onClickStop, onClickStop = _footerConfig_onClickStop === void 0 ? function() {} : _footerConfig_onClickStop, _footerConfig_conversionContent = footerConfig.conversionContent, conversionContent = _footerConfig_conversionContent === void 0 ? function(str) {
15399
- return str;
15400
- } : _footerConfig_conversionContent;
15401
- if (fileUpload) {
15402
- fileUpload = _object_spread({}, defaultFileUploadProps, fileUpload);
15403
- }
15404
- var footerDomRef = useRef(null);
15405
- var resizeObserverRef = useRef(null);
15406
- var fileListRef = useRef(null);
15407
- var ctrl = useRef(); //停止生成ai回答时使用
15408
- var _useState = _sliced_to_array(useState(""), 2), textValue = _useState[0], setTextValue = _useState[1];
15409
- var _useState1 = _sliced_to_array(useState(false), 2), sending = _useState1[0], setSending = _useState1[1];
15410
- var _useState2 = _sliced_to_array(useState(true), 2), fileCanSending = _useState2[0], setFileCanSending = _useState2[1]; // 是否允许发送 关联文件
15411
- var updateMsgRef = useRef(null);
15412
- // const [referencesSource, setReferencesSource] = useState<referenceType>({
15413
- // type: "file",
15414
- // value: {
15415
- // name: "文件名字.doc",
15416
- // suffix: "doc",
15417
- // fileId: "",
15418
- // url: "",
15419
- // status: undefined,
15420
- // source: undefined,
15421
- // },
15422
- // });
15423
- var _useState3 = _sliced_to_array(useState(null), 2), referencesSource = _useState3[0], setReferencesSource = _useState3[1];
15424
- var recordRef = useRef({
15425
- value: textValue,
15426
- referencesSource: referencesSource,
15427
- sending: sending
15428
- });
15429
- useImperativeHandle(ref, function() {
15430
- return _object_spread({
15431
- setTextValue: setTextValue,
15432
- sendMsg: sendMsg,
15433
- clearText: function() {
15434
- setTextValue("");
15435
- },
15436
- getCanSendMsg: function() {
15437
- return canSendMsg;
15438
- },
15439
- stopMessage: function() {
15440
- stopMessage();
15441
- },
15442
- setReferences: function(reference) {
15443
- setReferencesSource(reference);
15444
- }
15445
- }, fileListRef.current);
15446
- });
15447
- useEffect(function() {
15448
- listenerFooterHeight();
15449
- return function() {
15450
- resizeObserverRef.current && resizeObserverRef.current.disconnect();
15451
- clearTimeout(updateMsgRef.current);
15452
- };
15453
- }, []);
15454
- useEffect(function() {
15455
- recordRef.current.value = textValue;
15456
- recordRef.current.referencesSource = referencesSource;
15457
- recordRef.current.sending = sending;
15458
- }, [
15459
- textValue,
15460
- referencesSource,
15461
- sending
15462
- ]);
15463
- // 监听footer变化
15464
- var listenerFooterHeight = function() {
15465
- if (!footerDomRef.current) return;
15466
- // 创建ResizeObserver实例
15467
- resizeObserverRef.current = new ResizeObserver(function(entries) {
15468
- apiRef.contentApi && apiRef.contentApi.scrollToBottom();
15469
- });
15470
- // 开始观察footer元素
15471
- resizeObserverRef.current.observe(footerDomRef.current);
15472
- };
15473
- // 是否允许发送消息
15474
- var canSendMsg = useMemo(function() {
15475
- if (textValue.trim().length === 0) return false;
15476
- if (typeof maxLength === "function") {
15477
- if (maxLength(textValue)) return false;
15478
- }
15479
- if (textValue.trim().length > maxLength) return false;
15480
- if (sending) return false;
15481
- if (!fileCanSending) return false;
15482
- return true;
15483
- }, [
15484
- textValue,
15485
- maxLength,
15486
- sending,
15487
- fileCanSending
15488
- ]);
15489
- var stopMessage = function() {
15490
- ctrl.current && ctrl.current.abort();
15491
- apiRef.contentApi.clearInputing();
15492
- setSending(false);
15493
- };
15494
- var getCls = function(clsName) {
15495
- return modules_63b47c51$4[clsName] + " " + prefix + "-" + clsName;
15496
- };
15497
- var renderBtn = function() {
15498
- var sendNode = /*#__PURE__*/ jsx(SendBtn$2, {
15499
- prefix: prefix,
15500
- canSendMsg: canSendMsg,
15501
- sending: sending,
15502
- stopMessage: function() {
15503
- onClickStop();
15504
- stopMessage();
15505
- },
15506
- clickFn: function() {
15507
- if (textValue.trim().length === 0) return;
15508
- sendMsg(textValue);
15509
- }
15510
- });
15511
- if (fileUpload) {
15512
- var fileNode = /*#__PURE__*/ jsx(UploadFileBtn, {
15513
- prefix: prefix,
15514
- fileUpload: fileUpload,
15515
- customRequest: function(options) {
15516
- var _fileListRef_current;
15517
- console.log("customRequestcustomRequest", options);
15518
- (_fileListRef_current = fileListRef.current) === null || _fileListRef_current === void 0 ? void 0 : _fileListRef_current.addFile(options.file);
15519
- }
15520
- });
15521
- if (renderAction) {
15522
- return renderAction(sendNode, fileNode);
15523
- } else {
15524
- return /*#__PURE__*/ jsxs("div", {
15525
- className: "".concat(getCls("footerActionBtn")),
15526
- children: [
15527
- fileNode,
15528
- /*#__PURE__*/ jsx(Divider, {
15529
- type: "vertical"
15530
- }),
15531
- sendNode
15532
- ]
15533
- });
15534
- }
15535
- } else {
15536
- var fileNode1 = null;
15537
- if (renderAction) {
15538
- return renderAction(sendNode, fileNode1);
15539
- } else {
15540
- return /*#__PURE__*/ jsx("div", {
15541
- className: "".concat(getCls("footerActionBtn")),
15542
- children: sendNode
15543
- });
15544
- }
15545
- }
15546
- };
15547
- var onPressEnter = function(e) {
15548
- // 判断是否按下了 Shift 键
15549
- if (e.shiftKey) {
15550
- // 如果按下了 Shift + Enter,则允许换行(默认行为)
15551
- return;
15552
- } else {
15553
- if (textValue.length === 0) {
15554
- // 内容为空时 执行换行操作
15555
- return;
15556
- }
15557
- // 如果只按了 Enter,则阻止默认行为并发送消息
15558
- e.preventDefault();
15559
- // 在这里添加发送消息的逻辑
15560
- sendMsg(textValue);
15561
- }
15562
- };
15563
- // 发现消息
15564
- var sendMsg = function(value) {
15565
- if (value.trim().length === 0) return;
15566
- if (!canSendMsg) return;
15567
- console.log("发送消息:", value);
15568
- apiRef.contentApi.addMsg({
15569
- id: guidGenerator(),
15570
- createTime: new Date().getTime(),
15571
- content: value,
15572
- location: "right",
15573
- reference: recordRef.current.referencesSource,
15574
- source: null,
15575
- fileList: fileListRef.current.getFileList()
15576
- });
15577
- sendMsgAjax();
15578
- };
15579
- var sendMsgAjax = function() {
15580
- var url = sendMsgAjaxParams.url, _sendMsgAjaxParams_method = sendMsgAjaxParams.method, method = _sendMsgAjaxParams_method === void 0 ? "POST" : _sendMsgAjaxParams_method, _sendMsgAjaxParams_headers = sendMsgAjaxParams.headers, headers = _sendMsgAjaxParams_headers === void 0 ? function() {
15581
- return {};
15582
- } : _sendMsgAjaxParams_headers, _sendMsgAjaxParams_params = sendMsgAjaxParams.params, params = _sendMsgAjaxParams_params === void 0 ? function() {
15583
- return "";
15584
- } : _sendMsgAjaxParams_params, _sendMsgAjaxParams_onOpen = sendMsgAjaxParams.onOpen, onOpen = _sendMsgAjaxParams_onOpen === void 0 ? function() {} : _sendMsgAjaxParams_onOpen, _sendMsgAjaxParams_onMessage = sendMsgAjaxParams.onMessage, onMessage = _sendMsgAjaxParams_onMessage === void 0 ? function(ev) {
15585
- return ev;
15586
- } : _sendMsgAjaxParams_onMessage, _sendMsgAjaxParams_onClose = sendMsgAjaxParams.onClose, onClose = _sendMsgAjaxParams_onClose === void 0 ? function() {} : _sendMsgAjaxParams_onClose, _sendMsgAjaxParams_onError = sendMsgAjaxParams.onError, onError = _sendMsgAjaxParams_onError === void 0 ? function() {} : _sendMsgAjaxParams_onError, _sendMsgAjaxParams_coverProps = sendMsgAjaxParams.coverProps, coverProps = _sendMsgAjaxParams_coverProps === void 0 ? {} : _sendMsgAjaxParams_coverProps, _sendMsgAjaxParams_beforeSendMsg = sendMsgAjaxParams.beforeSendMsg, beforeSendMsg = _sendMsgAjaxParams_beforeSendMsg === void 0 ? function() {
15587
- return Promise.resolve();
15588
- } : _sendMsgAjaxParams_beforeSendMsg;
15589
- ctrl.current = new AbortController();
15590
- // apiRef
15591
- console.log("apiRef", apiRef);
15592
- var msgId = "inputing";
15593
- var createTime = new Date().getTime();
15594
- apiRef.contentApi.addMsg({
15595
- id: msgId,
15596
- createTime: createTime,
15597
- content: "正在输入...",
15598
- location: "left",
15599
- reference: null,
15600
- source: null,
15601
- fileList: fileListRef.current.getFileList()
15602
- });
15603
- var msgContent = "";
15604
- setSending(true);
15605
- setTextValue("");
15606
- fileListRef.current.clearFileList();
15607
- setReferencesSource(null);
15608
- var recordMsgObj = {};
15609
- var arg = [
15610
- recordRef.current.value,
15611
- recordRef.current.referencesSource,
15612
- fileListRef.current ? fileListRef.current.getFileList() : []
15613
- ];
15614
- beforeSendMsg.apply(void 0, _to_consumable_array(arg)).then(function(beforeInfo) {
15615
- var callback = function() {
15616
- var isClose = false;
15617
- var closeCallback = function() {
15618
- if (isClose) return;
15619
- isClose = true;
15620
- onClose();
15621
- setSending(false);
15622
- if (recordMsgObj.id) {
15623
- apiRef.contentApi.recordMsg(recordMsgObj);
15624
- apiRef.contentApi.setSendingId(recordMsgObj.id);
15625
- }
15626
- console.log("onclose: ", recordMsgObj);
15627
- };
15628
- fetchEventSource(url, _object_spread({
15629
- method: method,
15630
- headers: _object_spread({
15631
- "Content-Type": "application/json",
15632
- Accept: "text/event-stream,application/json"
15633
- }, headers()),
15634
- body: params.apply(void 0, _to_consumable_array(arg).concat([
15635
- beforeInfo
15636
- ])),
15637
- openWhenHidden: true,
15638
- signal: ctrl.current.signal,
15639
- onopen: function(res) {
15640
- var retryFetch = function() {
15641
- callback();
15642
- };
15643
- onOpen(res, {
15644
- retryFetch: retryFetch,
15645
- stopMessage: stopMessage
15646
- });
15647
- return null;
15648
- },
15649
- onmessage: function(ev) {
15650
- var data = onMessage(ev, closeCallback);
15651
- msgContent += data.content;
15652
- var str = msgContent.replace(/\\n/g, "\n");
15653
- str = conversionContent(str);
15654
- delete data.content;
15655
- recordMsgObj = _object_spread({
15656
- createTime: createTime,
15657
- content: str || "正在输入...",
15658
- location: "left",
15659
- reference: null,
15660
- source: null
15661
- }, data);
15662
- apiRef.contentApi.setSendingId(data.id);
15663
- apiRef.contentApi.updateMsg(msgId, recordMsgObj);
15664
- msgId = data.id;
15665
- updateMsgRef.current = setTimeout(function() {
15666
- apiRef.contentApi.scrollToBottom();
15667
- }, 100);
15668
- },
15669
- onclose: function() {
15670
- closeCallback();
15671
- },
15672
- onerror: function(err) {
15673
- onError(err);
15674
- if (recordMsgObj.id) {
15675
- apiRef.contentApi.recordMsg(recordMsgObj);
15676
- }
15677
- console.log("onerror: ", err);
15678
- }
15679
- }, coverProps));
15680
- };
15681
- callback();
15682
- }).catch(function() {
15683
- stopMessage();
15684
- });
15685
- };
15686
- // 判断是否超出最大字数
15687
- var judegTextLengthWarn = function() {
15688
- if (typeof maxLength === "function") {
15689
- return maxLength(textValue);
15690
- } else {
15691
- return textValue.length > maxLength;
15692
- }
15693
- };
15694
- return /*#__PURE__*/ jsx("div", {
15695
- className: "".concat(getCls("footer"), " ").concat(className),
15696
- ref: footerDomRef,
15697
- children: /*#__PURE__*/ jsxs("div", {
15698
- className: "".concat(getCls("footerBody"), " ").concat(judegTextLengthWarn() ? getCls("footerBodyWarn") : ""),
15699
- children: [
15700
- fileUpload && /*#__PURE__*/ jsx("div", {
15701
- className: getCls("footerFile"),
15702
- children: /*#__PURE__*/ jsx(FileList$1, {
15703
- prefix: prefix,
15704
- fileUpload: fileUpload,
15705
- ref: fileListRef,
15706
- errorCallback: errorCallback,
15707
- changeFileCanSending: setFileCanSending
15708
- })
15709
- }),
15710
- /*#__PURE__*/ jsxs("div", {
15711
- className: getCls("footerInput"),
15712
- children: [
15713
- /*#__PURE__*/ jsx(TextArea, {
15714
- value: textValue,
15715
- onChange: function(e) {
15716
- setTextValue(e.target.value);
15717
- },
15718
- placeholder: placeholder,
15719
- autoSize: {
15720
- minRows: 2,
15721
- maxRows: 6
15722
- },
15723
- onPressEnter: onPressEnter
15724
- }),
15725
- /*#__PURE__*/ jsx(References$1, {
15726
- prefix: prefix,
15727
- referencesSource: referencesSource,
15728
- fileUpload: fileUpload,
15729
- deleteReferences: function() {
15730
- return setReferencesSource(null);
15731
- }
15732
- })
15733
- ]
15734
- }),
15735
- /*#__PURE__*/ jsx("div", {
15736
- className: getCls("footerAction"),
15737
- children: renderBtn()
15738
- })
15739
- ]
15740
- })
15741
- });
15742
- });
15743
- var Footer$1 = Footer;
15744
-
15745
- var errorCallback = function(errObj) {
15746
- message.customError(errObj.message);
15747
- };
15748
- var errorCallbackDefault = errorCallback;
15749
-
15750
- var AIMessageList = /*#__PURE__*/ forwardRef(function(props, ref) {
15751
- var _props_prefix = props.prefix, prefix = _props_prefix === void 0 ? "bhd-AIMessageList" : _props_prefix, _props_className = props.className, className = _props_className === void 0 ? "" : _props_className, headerConfig = props.headerConfig, footerConfig = props.footerConfig, _props_errorCallback = props.errorCallback, errorCallback = _props_errorCallback === void 0 ? errorCallbackDefault : _props_errorCallback, contentConfig = props.contentConfig;
15752
- var footerRef = useRef(null);
15753
- var contentRef = useRef(null);
15754
- var apiRef = useRef({
15755
- contentApi: null,
15756
- footerApi: null
15757
- });
15758
- useImperativeHandle(ref, function() {
15759
- apiRef.current.contentApi = contentRef.current;
15760
- apiRef.current.footerApi = footerRef.current;
15761
- return apiRef.current;
15762
- });
15763
- var getCls = function(clsName) {
15764
- return modules_63b47c51$c[clsName] + " " + prefix + "-" + clsName;
15765
- };
15766
- return /*#__PURE__*/ jsxs("div", {
15767
- className: "".concat(getCls("root"), " ").concat(className),
15768
- children: [
15769
- /*#__PURE__*/ jsx("div", {
15770
- className: getCls("rootHeader"),
15771
- children: /*#__PURE__*/ jsx(Header$2, {
15772
- headerConfig: headerConfig,
15773
- prefix: prefix,
15774
- errorCallback: errorCallback
15775
- })
15776
- }),
15777
- /*#__PURE__*/ jsx("div", {
15778
- className: getCls("rootContent"),
15779
- children: /*#__PURE__*/ jsx(Content$1, {
15780
- prefix: prefix,
15781
- contentConfig: contentConfig,
15782
- ref: contentRef,
15783
- apiRef: apiRef.current
15784
- })
15785
- }),
15786
- /*#__PURE__*/ jsx("div", {
15787
- className: getCls("rootFooter"),
15788
- children: /*#__PURE__*/ jsx(Footer$1, {
15789
- footerConfig: footerConfig,
15790
- prefix: prefix,
15791
- errorCallback: errorCallback,
15792
- ref: footerRef,
15793
- apiRef: apiRef.current
15794
- })
15795
- })
15796
- ]
15797
- });
15798
- });
15799
- var AIMessageList$1 = AIMessageList;
15800
-
15801
- export { AIMessageList$1 as AIMessageList, BhdAppLayout, BhdDatePicker$1 as BhdDatePicker, BhdEnterInput, BhdModalCropper$1 as BhdModalCropper, BhdSelect$1 as BhdSelect, BhdTableSelect$1 as BhdTableSelect, BhdTableSimple$1 as BhdTableSimple, BhdTipModal$1 as BhdTipModal, CustomerService$1 as CustomerService, Pagination, Provider$1 as Provider, Table$1 as Table, TextTootip$1 as TextTootip, TitleBar$1 as TitleBar, ViewImage$1 as ViewImage, message };
12878
+ export { BhdAppLayout, BhdDatePicker$1 as BhdDatePicker, Input as BhdEnterInput, BhdModalCropper$1 as BhdModalCropper, BhdSelect$1 as BhdSelect, BhdTableSelect$1 as BhdTableSelect, BhdTableSimple$1 as BhdTableSimple, BhdTipModal$1 as BhdTipModal, CustomerService$1 as CustomerService, Pagination, Provider$1 as Provider, Table$1 as Table, TextTootip$1 as TextTootip, TitleBar$1 as TitleBar, ViewImage$1 as ViewImage, message };