bhd-components 0.10.32 → 0.10.34

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 (382) hide show
  1. package/README.md +24 -24
  2. package/dist/index.esm.es5.development.css +1503 -1497
  3. package/dist/index.esm.es5.development.js +338 -324
  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 +617 -617
  7. package/dist/vendor.esm.es5.production.js +13 -13
  8. package/es2017/AIMessageList/components/content/index.d.ts +4 -4
  9. package/es2017/AIMessageList/components/content/index.module.less +7 -7
  10. package/es2017/AIMessageList/components/copyIcon/index.d.ts +7 -7
  11. package/es2017/AIMessageList/components/copyIcon/index.module.less +23 -23
  12. package/es2017/AIMessageList/components/errorCallback/index.d.ts +3 -3
  13. package/es2017/AIMessageList/components/fileList/fileIcon.d.ts +3 -3
  14. package/es2017/AIMessageList/components/fileList/index.d.ts +4 -4
  15. package/es2017/AIMessageList/components/fileList/index.module.less +95 -95
  16. package/es2017/AIMessageList/components/footer/index.d.ts +10 -10
  17. package/es2017/AIMessageList/components/footer/index.module.less +51 -51
  18. package/es2017/AIMessageList/components/header/index.d.ts +9 -9
  19. package/es2017/AIMessageList/components/header/index.module.less +31 -31
  20. package/es2017/AIMessageList/components/referencesIcon/index.d.ts +9 -9
  21. package/es2017/AIMessageList/components/referencesIcon/index.module.less +14 -14
  22. package/es2017/AIMessageList/components/refreshBtn/index.d.ts +4 -4
  23. package/es2017/AIMessageList/components/refreshBtn/index.module.less +12 -12
  24. package/es2017/AIMessageList/components/remarkBtn/index.d.ts +4 -4
  25. package/es2017/AIMessageList/components/remarkBtn/index.module.less +13 -13
  26. package/es2017/AIMessageList/components/renderReferrnce/index.d.ts +10 -10
  27. package/es2017/AIMessageList/components/renderReferrnce/index.module.less +63 -63
  28. package/es2017/AIMessageList/components/sendBtn/index.d.ts +4 -4
  29. package/es2017/AIMessageList/components/sendBtn/index.module.less +25 -25
  30. package/es2017/AIMessageList/components/uplodaFileBtn/index.d.ts +4 -4
  31. package/es2017/AIMessageList/components/uplodaFileBtn/index.module.less +4 -4
  32. package/es2017/AIMessageList/components/virtuosoList/index.d.ts +5 -5
  33. package/es2017/AIMessageList/components/virtuosoList/index.js +33 -33
  34. package/es2017/AIMessageList/components/virtuosoList/index.module.less +471 -471
  35. package/es2017/AIMessageList/index.d.ts +4 -4
  36. package/es2017/AIMessageList/index.module.less +20 -20
  37. package/es2017/AIMessageList/type.d.ts +310 -310
  38. package/es2017/bhdAppLayout/components/BhdTableSimple/index.js +9 -9
  39. package/es2017/bhdAppLayout/components/BhdTableSimple/index.less +58 -58
  40. package/es2017/bhdAppLayout/components/BhdTableSimple/index/347/232/204/345/211/257/346/234/254.js +9 -9
  41. package/es2017/bhdAppLayout/index.d.ts +28 -28
  42. package/es2017/bhdAppLayout/index.module.less +95 -95
  43. package/es2017/bhdDatePicker/index.d.ts +17 -17
  44. package/es2017/bhdDatePicker/index.js +1 -1
  45. package/es2017/bhdDatePicker/index.module.less +1007 -1007
  46. package/es2017/bhdEditor/index.d.ts +2 -2
  47. package/es2017/bhdEnterInput/index.d.ts +9 -9
  48. package/es2017/bhdModalCropper/index.d.ts +10 -10
  49. package/es2017/bhdModalCropper/index.module.less +362 -362
  50. package/es2017/bhdSelect/index.d.ts +33 -33
  51. package/es2017/bhdSelect/index.module.less +131 -131
  52. package/es2017/bhdTipModal/index.d.ts +29 -29
  53. package/es2017/bhdTipModal/index.module.less +280 -280
  54. package/es2017/bhdTipModal/modal.d.ts +6 -6
  55. package/es2017/customerService/common.module.less +1391 -1391
  56. package/es2017/customerService/contactsList.d.ts +14 -14
  57. package/es2017/customerService/function.d.ts +27 -24
  58. package/es2017/customerService/function.js +44 -1
  59. package/es2017/customerService/historyFun.d.ts +13 -13
  60. package/es2017/customerService/html2canvas.test.js +113 -113
  61. package/es2017/customerService/index.d.ts +20 -20
  62. package/es2017/customerService/index.js +120 -85
  63. package/es2017/customerService/index.module.less +2281 -2278
  64. package/es2017/customerService/index2.module.less +2219 -2216
  65. package/es2017/customerService/js-screen-shot/assets/less/screen-shot.less +478 -478
  66. package/es2017/customerService/js-screen-shot/lib/common-methods/CanvasPatch.d.ts +1 -1
  67. package/es2017/customerService/js-screen-shot/lib/common-methods/DeviceTypeVerif.d.ts +2 -2
  68. package/es2017/customerService/js-screen-shot/lib/common-methods/FixedData.d.ts +11 -11
  69. package/es2017/customerService/js-screen-shot/lib/common-methods/FixedData.js +7 -7
  70. package/es2017/customerService/js-screen-shot/lib/common-methods/GetBrushSelectedName.d.ts +5 -5
  71. package/es2017/customerService/js-screen-shot/lib/common-methods/GetBrushSelectedName.js +3 -3
  72. package/es2017/customerService/js-screen-shot/lib/common-methods/GetCanvasImgData.d.ts +4 -4
  73. package/es2017/customerService/js-screen-shot/lib/common-methods/GetCanvasImgData.js +2 -2
  74. package/es2017/customerService/js-screen-shot/lib/common-methods/GetColor.d.ts +1 -1
  75. package/es2017/customerService/js-screen-shot/lib/common-methods/GetSelectedCalssName.d.ts +1 -1
  76. package/es2017/customerService/js-screen-shot/lib/common-methods/GetToolRelativePosition.d.ts +7 -7
  77. package/es2017/customerService/js-screen-shot/lib/common-methods/GetToolRelativePosition.js +2 -2
  78. package/es2017/customerService/js-screen-shot/lib/common-methods/ImgScaling.d.ts +11 -11
  79. package/es2017/customerService/js-screen-shot/lib/common-methods/ImgScaling.js +6 -6
  80. package/es2017/customerService/js-screen-shot/lib/common-methods/SaveBorderArrInfo.d.ts +8 -8
  81. package/es2017/customerService/js-screen-shot/lib/common-methods/SaveBorderArrInfo.js +5 -5
  82. package/es2017/customerService/js-screen-shot/lib/common-methods/SaveCanvasToBase64.d.ts +1 -1
  83. package/es2017/customerService/js-screen-shot/lib/common-methods/SaveCanvasToBase64.js +2 -2
  84. package/es2017/customerService/js-screen-shot/lib/common-methods/SaveCanvasToImage.d.ts +1 -1
  85. package/es2017/customerService/js-screen-shot/lib/common-methods/SelectColor.d.ts +1 -1
  86. package/es2017/customerService/js-screen-shot/lib/common-methods/SelectTextSize.d.ts +5 -5
  87. package/es2017/customerService/js-screen-shot/lib/common-methods/SetBrushSize.d.ts +14 -14
  88. package/es2017/customerService/js-screen-shot/lib/common-methods/SetBrushSize.js +10 -10
  89. package/es2017/customerService/js-screen-shot/lib/common-methods/SetSelectedClassName.d.ts +7 -7
  90. package/es2017/customerService/js-screen-shot/lib/common-methods/SetSelectedClassName.js +5 -5
  91. package/es2017/customerService/js-screen-shot/lib/common-methods/TakeOutHistory.d.ts +1 -1
  92. package/es2017/customerService/js-screen-shot/lib/common-methods/TakeOutHistory.js +2 -2
  93. package/es2017/customerService/js-screen-shot/lib/common-methods/UpdateContainerMouseStyle.d.ts +1 -1
  94. package/es2017/customerService/js-screen-shot/lib/common-methods/ZoomCutOutBoxPosition.d.ts +17 -17
  95. package/es2017/customerService/js-screen-shot/lib/common-methods/ZoomCutOutBoxPosition.js +10 -10
  96. package/es2017/customerService/js-screen-shot/lib/config/Toolbar.d.ts +5 -5
  97. package/es2017/customerService/js-screen-shot/lib/main-entrance/CreateDom.d.ts +24 -24
  98. package/es2017/customerService/js-screen-shot/lib/main-entrance/InitData.d.ts +78 -78
  99. package/es2017/customerService/js-screen-shot/lib/main-entrance/PlugInParameters.d.ts +46 -46
  100. package/es2017/customerService/js-screen-shot/lib/split-methods/AddHistoryData.d.ts +1 -1
  101. package/es2017/customerService/js-screen-shot/lib/split-methods/BoundaryJudgment.d.ts +8 -8
  102. package/es2017/customerService/js-screen-shot/lib/split-methods/BoundaryJudgment.js +5 -5
  103. package/es2017/customerService/js-screen-shot/lib/split-methods/CalculateOptionIcoPosition.d.ts +5 -5
  104. package/es2017/customerService/js-screen-shot/lib/split-methods/CalculateOptionIcoPosition.js +3 -3
  105. package/es2017/customerService/js-screen-shot/lib/split-methods/CalculateToolLocation.d.ts +16 -16
  106. package/es2017/customerService/js-screen-shot/lib/split-methods/CalculateToolLocation.js +7 -7
  107. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawArrow.d.ts +31 -31
  108. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawArrow.js +14 -14
  109. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawCircle.d.ts +11 -11
  110. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawCircle.js +9 -9
  111. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawCutOutBox.d.ts +19 -19
  112. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawCutOutBox.js +12 -12
  113. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawLineArrow.d.ts +13 -13
  114. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawLineArrow.js +18 -18
  115. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawMasking.d.ts +6 -6
  116. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawMasking.js +4 -4
  117. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawMosaic.d.ts +12 -12
  118. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawMosaic.js +21 -21
  119. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawPencil.d.ts +13 -13
  120. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawPencil.js +9 -9
  121. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawRectangle.d.ts +11 -11
  122. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawRectangle.js +9 -9
  123. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawText.d.ts +10 -10
  124. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawText.js +8 -8
  125. package/es2017/customerService/js-screen-shot/lib/split-methods/KeyboardEventHandle.d.ts +10 -10
  126. package/es2017/customerService/js-screen-shot/lib/split-methods/KeyboardEventHandle.js +4 -4
  127. package/es2017/customerService/js-screen-shot/lib/split-methods/SetPlugInParameters.d.ts +2 -2
  128. package/es2017/customerService/js-screen-shot/lib/split-methods/ToolClickEvent.d.ts +1 -1
  129. package/es2017/customerService/js-screen-shot/lib/split-methods/ToolClickEvent.js +5 -5
  130. package/es2017/customerService/js-screen-shot/lib/split-methods/drawCrossImg.d.ts +1 -1
  131. package/es2017/customerService/js-screen-shot/lib/type/ComponentType.d.ts +133 -133
  132. package/es2017/customerService/js-screen-shot/main.d.ts +110 -110
  133. package/es2017/customerService/js-screen-shot/main.js +32 -32
  134. package/es2017/customerService/screenshotTool.d.ts +10 -10
  135. package/es2017/customerService/teacherList.d.ts +11 -11
  136. package/es2017/customerService/useMediaRecorder.d.ts +9 -9
  137. package/es2017/customerService/viewMemaid.d.ts +3 -3
  138. package/es2017/i18n/en_US.d.ts +2 -2
  139. package/es2017/i18n/index.d.ts +2 -2
  140. package/es2017/i18n/zh_CN.d.ts +2 -2
  141. package/es2017/icons/components/custom-ai_icon.d.ts +4 -4
  142. package/es2017/icons/components/custom-arrow.d.ts +4 -4
  143. package/es2017/icons/components/custom-close.d.ts +4 -4
  144. package/es2017/icons/components/custom-contacts.d.ts +4 -4
  145. package/es2017/icons/components/custom-copy.d.ts +4 -4
  146. package/es2017/icons/components/custom-dislike.d.ts +4 -4
  147. package/es2017/icons/components/custom-download.d.ts +4 -4
  148. package/es2017/icons/components/custom-duihao.d.ts +4 -4
  149. package/es2017/icons/components/custom-exit_full_screen.d.ts +4 -4
  150. package/es2017/icons/components/custom-expand.d.ts +4 -4
  151. package/es2017/icons/components/custom-full_screen.d.ts +4 -4
  152. package/es2017/icons/components/custom-knowledge_content.d.ts +4 -4
  153. package/es2017/icons/components/custom-like.d.ts +4 -4
  154. package/es2017/icons/components/custom-quote.d.ts +4 -4
  155. package/es2017/icons/components/custom-record.d.ts +4 -4
  156. package/es2017/icons/components/custom-reloading.d.ts +4 -4
  157. package/es2017/icons/components/custom-retract.d.ts +4 -4
  158. package/es2017/icons/components/custom-round_close.d.ts +4 -4
  159. package/es2017/icons/components/custom-screen-xuanzuan.d.ts +4 -4
  160. package/es2017/icons/components/custom-screenshot.d.ts +4 -4
  161. package/es2017/icons/components/custom-sending.d.ts +4 -4
  162. package/es2017/icons/components/custom-sound_recording.d.ts +4 -4
  163. package/es2017/icons/components/custom-video-abstraction.d.ts +4 -4
  164. package/es2017/icons/components/custom-wenhao_round.d.ts +4 -4
  165. package/es2017/icons/components/custom-xuanzuan.d.ts +4 -4
  166. package/es2017/icons/components/index.d.ts +25 -25
  167. package/es2017/icons/index.d.ts +2 -2
  168. package/es2017/images/index.d.ts +6 -6
  169. package/es2017/index.d.ts +86 -86
  170. package/es2017/index.js +3 -3
  171. package/es2017/index.module.css +3 -3
  172. package/es2017/message/index.d.ts +18 -18
  173. package/es2017/message/index.module.less +142 -142
  174. package/es2017/pagination/index.d.ts +4 -4
  175. package/es2017/pagination/index.module.less +51 -51
  176. package/es2017/provider/config.d.ts +9 -9
  177. package/es2017/provider/index.d.ts +7 -7
  178. package/es2017/table/index.d.ts +12 -12
  179. package/es2017/table/index.module.less +423 -423
  180. package/es2017/tableSelect/index.d.ts +3 -3
  181. package/es2017/tableSelect/index.js +3 -3
  182. package/es2017/tableSelect/index.module.less +20 -20
  183. package/es2017/textTootip/index.d.ts +9 -9
  184. package/es2017/theme/variable.less +652 -652
  185. package/es2017/titleBar/index.d.ts +16 -16
  186. package/es2017/titleBar/index.module.less +48 -48
  187. package/es2017/typings.d.ts +13 -13
  188. package/es2017/utils/Date.d.ts +10 -10
  189. package/es2017/utils/dom.d.ts +5 -5
  190. package/es2017/utils/number.d.ts +1 -1
  191. package/es2017/utils/object.d.ts +2 -2
  192. package/es2017/viewImage/index(/345/216/237).d.ts +31 -31
  193. package/es2017/viewImage/index.d.ts +33 -33
  194. package/es2017/viewImage/index.module(/345/216/237).less +173 -173
  195. package/es2017/viewImage/index.module.less +193 -193
  196. package/esm/AIMessageList/components/content/index.d.ts +4 -4
  197. package/esm/AIMessageList/components/content/index.module.less +7 -7
  198. package/esm/AIMessageList/components/copyIcon/index.d.ts +7 -7
  199. package/esm/AIMessageList/components/copyIcon/index.module.less +23 -23
  200. package/esm/AIMessageList/components/errorCallback/index.d.ts +3 -3
  201. package/esm/AIMessageList/components/fileList/fileIcon.d.ts +3 -3
  202. package/esm/AIMessageList/components/fileList/index.d.ts +4 -4
  203. package/esm/AIMessageList/components/fileList/index.module.less +95 -95
  204. package/esm/AIMessageList/components/footer/index.d.ts +10 -10
  205. package/esm/AIMessageList/components/footer/index.module.less +51 -51
  206. package/esm/AIMessageList/components/header/index.d.ts +9 -9
  207. package/esm/AIMessageList/components/header/index.module.less +31 -31
  208. package/esm/AIMessageList/components/referencesIcon/index.d.ts +9 -9
  209. package/esm/AIMessageList/components/referencesIcon/index.module.less +14 -14
  210. package/esm/AIMessageList/components/refreshBtn/index.d.ts +4 -4
  211. package/esm/AIMessageList/components/refreshBtn/index.module.less +12 -12
  212. package/esm/AIMessageList/components/remarkBtn/index.d.ts +4 -4
  213. package/esm/AIMessageList/components/remarkBtn/index.module.less +13 -13
  214. package/esm/AIMessageList/components/renderReferrnce/index.d.ts +10 -10
  215. package/esm/AIMessageList/components/renderReferrnce/index.module.less +63 -63
  216. package/esm/AIMessageList/components/sendBtn/index.d.ts +4 -4
  217. package/esm/AIMessageList/components/sendBtn/index.module.less +25 -25
  218. package/esm/AIMessageList/components/uplodaFileBtn/index.d.ts +4 -4
  219. package/esm/AIMessageList/components/uplodaFileBtn/index.module.less +4 -4
  220. package/esm/AIMessageList/components/virtuosoList/index.d.ts +5 -5
  221. package/esm/AIMessageList/components/virtuosoList/index.module.less +471 -471
  222. package/esm/AIMessageList/index.d.ts +4 -4
  223. package/esm/AIMessageList/index.module.less +20 -20
  224. package/esm/AIMessageList/type.d.ts +310 -310
  225. package/esm/bhdAppLayout/components/BhdTableSimple/index.js +9 -9
  226. package/esm/bhdAppLayout/components/BhdTableSimple/index.less +58 -58
  227. package/esm/bhdAppLayout/components/BhdTableSimple/index/347/232/204/345/211/257/346/234/254.js +9 -9
  228. package/esm/bhdAppLayout/index.d.ts +28 -28
  229. package/esm/bhdAppLayout/index.module.less +95 -95
  230. package/esm/bhdDatePicker/index.d.ts +17 -17
  231. package/esm/bhdDatePicker/index.module.less +1007 -1007
  232. package/esm/bhdEditor/index.d.ts +2 -2
  233. package/esm/bhdEnterInput/index.d.ts +9 -9
  234. package/esm/bhdModalCropper/index.d.ts +10 -10
  235. package/esm/bhdModalCropper/index.module.less +362 -362
  236. package/esm/bhdSelect/index.d.ts +33 -33
  237. package/esm/bhdSelect/index.module.less +131 -131
  238. package/esm/bhdTipModal/index.d.ts +29 -29
  239. package/esm/bhdTipModal/index.module.less +280 -280
  240. package/esm/bhdTipModal/modal.d.ts +6 -6
  241. package/esm/customerService/common.module.less +1391 -1391
  242. package/esm/customerService/contactsList.d.ts +14 -14
  243. package/esm/customerService/function.d.ts +27 -24
  244. package/esm/customerService/function.js +46 -1
  245. package/esm/customerService/historyFun.d.ts +13 -13
  246. package/esm/customerService/html2canvas.test.js +113 -113
  247. package/esm/customerService/index.d.ts +20 -20
  248. package/esm/customerService/index.js +90 -56
  249. package/esm/customerService/index.module.less +2281 -2278
  250. package/esm/customerService/index2.module.less +2219 -2216
  251. package/esm/customerService/js-screen-shot/assets/less/screen-shot.less +478 -478
  252. package/esm/customerService/js-screen-shot/lib/common-methods/CanvasPatch.d.ts +1 -1
  253. package/esm/customerService/js-screen-shot/lib/common-methods/DeviceTypeVerif.d.ts +2 -2
  254. package/esm/customerService/js-screen-shot/lib/common-methods/FixedData.d.ts +11 -11
  255. package/esm/customerService/js-screen-shot/lib/common-methods/FixedData.js +7 -7
  256. package/esm/customerService/js-screen-shot/lib/common-methods/GetBrushSelectedName.d.ts +5 -5
  257. package/esm/customerService/js-screen-shot/lib/common-methods/GetBrushSelectedName.js +3 -3
  258. package/esm/customerService/js-screen-shot/lib/common-methods/GetCanvasImgData.d.ts +4 -4
  259. package/esm/customerService/js-screen-shot/lib/common-methods/GetCanvasImgData.js +2 -2
  260. package/esm/customerService/js-screen-shot/lib/common-methods/GetColor.d.ts +1 -1
  261. package/esm/customerService/js-screen-shot/lib/common-methods/GetSelectedCalssName.d.ts +1 -1
  262. package/esm/customerService/js-screen-shot/lib/common-methods/GetToolRelativePosition.d.ts +7 -7
  263. package/esm/customerService/js-screen-shot/lib/common-methods/GetToolRelativePosition.js +2 -2
  264. package/esm/customerService/js-screen-shot/lib/common-methods/ImgScaling.d.ts +11 -11
  265. package/esm/customerService/js-screen-shot/lib/common-methods/ImgScaling.js +6 -6
  266. package/esm/customerService/js-screen-shot/lib/common-methods/SaveBorderArrInfo.d.ts +8 -8
  267. package/esm/customerService/js-screen-shot/lib/common-methods/SaveBorderArrInfo.js +5 -5
  268. package/esm/customerService/js-screen-shot/lib/common-methods/SaveCanvasToBase64.d.ts +1 -1
  269. package/esm/customerService/js-screen-shot/lib/common-methods/SaveCanvasToBase64.js +2 -2
  270. package/esm/customerService/js-screen-shot/lib/common-methods/SaveCanvasToImage.d.ts +1 -1
  271. package/esm/customerService/js-screen-shot/lib/common-methods/SelectColor.d.ts +1 -1
  272. package/esm/customerService/js-screen-shot/lib/common-methods/SelectTextSize.d.ts +5 -5
  273. package/esm/customerService/js-screen-shot/lib/common-methods/SetBrushSize.d.ts +14 -14
  274. package/esm/customerService/js-screen-shot/lib/common-methods/SetBrushSize.js +10 -10
  275. package/esm/customerService/js-screen-shot/lib/common-methods/SetSelectedClassName.d.ts +7 -7
  276. package/esm/customerService/js-screen-shot/lib/common-methods/SetSelectedClassName.js +5 -5
  277. package/esm/customerService/js-screen-shot/lib/common-methods/TakeOutHistory.d.ts +1 -1
  278. package/esm/customerService/js-screen-shot/lib/common-methods/TakeOutHistory.js +2 -2
  279. package/esm/customerService/js-screen-shot/lib/common-methods/UpdateContainerMouseStyle.d.ts +1 -1
  280. package/esm/customerService/js-screen-shot/lib/common-methods/ZoomCutOutBoxPosition.d.ts +17 -17
  281. package/esm/customerService/js-screen-shot/lib/common-methods/ZoomCutOutBoxPosition.js +10 -10
  282. package/esm/customerService/js-screen-shot/lib/config/Toolbar.d.ts +5 -5
  283. package/esm/customerService/js-screen-shot/lib/main-entrance/CreateDom.d.ts +24 -24
  284. package/esm/customerService/js-screen-shot/lib/main-entrance/InitData.d.ts +78 -78
  285. package/esm/customerService/js-screen-shot/lib/main-entrance/PlugInParameters.d.ts +46 -46
  286. package/esm/customerService/js-screen-shot/lib/split-methods/AddHistoryData.d.ts +1 -1
  287. package/esm/customerService/js-screen-shot/lib/split-methods/BoundaryJudgment.d.ts +8 -8
  288. package/esm/customerService/js-screen-shot/lib/split-methods/BoundaryJudgment.js +5 -5
  289. package/esm/customerService/js-screen-shot/lib/split-methods/CalculateOptionIcoPosition.d.ts +5 -5
  290. package/esm/customerService/js-screen-shot/lib/split-methods/CalculateOptionIcoPosition.js +3 -3
  291. package/esm/customerService/js-screen-shot/lib/split-methods/CalculateToolLocation.d.ts +16 -16
  292. package/esm/customerService/js-screen-shot/lib/split-methods/CalculateToolLocation.js +7 -7
  293. package/esm/customerService/js-screen-shot/lib/split-methods/DrawArrow.d.ts +31 -31
  294. package/esm/customerService/js-screen-shot/lib/split-methods/DrawArrow.js +14 -14
  295. package/esm/customerService/js-screen-shot/lib/split-methods/DrawCircle.d.ts +11 -11
  296. package/esm/customerService/js-screen-shot/lib/split-methods/DrawCircle.js +9 -9
  297. package/esm/customerService/js-screen-shot/lib/split-methods/DrawCutOutBox.d.ts +19 -19
  298. package/esm/customerService/js-screen-shot/lib/split-methods/DrawCutOutBox.js +12 -12
  299. package/esm/customerService/js-screen-shot/lib/split-methods/DrawLineArrow.d.ts +13 -13
  300. package/esm/customerService/js-screen-shot/lib/split-methods/DrawLineArrow.js +18 -18
  301. package/esm/customerService/js-screen-shot/lib/split-methods/DrawMasking.d.ts +6 -6
  302. package/esm/customerService/js-screen-shot/lib/split-methods/DrawMasking.js +4 -4
  303. package/esm/customerService/js-screen-shot/lib/split-methods/DrawMosaic.d.ts +12 -12
  304. package/esm/customerService/js-screen-shot/lib/split-methods/DrawMosaic.js +21 -21
  305. package/esm/customerService/js-screen-shot/lib/split-methods/DrawPencil.d.ts +13 -13
  306. package/esm/customerService/js-screen-shot/lib/split-methods/DrawPencil.js +9 -9
  307. package/esm/customerService/js-screen-shot/lib/split-methods/DrawRectangle.d.ts +11 -11
  308. package/esm/customerService/js-screen-shot/lib/split-methods/DrawRectangle.js +9 -9
  309. package/esm/customerService/js-screen-shot/lib/split-methods/DrawText.d.ts +10 -10
  310. package/esm/customerService/js-screen-shot/lib/split-methods/DrawText.js +8 -8
  311. package/esm/customerService/js-screen-shot/lib/split-methods/KeyboardEventHandle.d.ts +10 -10
  312. package/esm/customerService/js-screen-shot/lib/split-methods/KeyboardEventHandle.js +4 -4
  313. package/esm/customerService/js-screen-shot/lib/split-methods/SetPlugInParameters.d.ts +2 -2
  314. package/esm/customerService/js-screen-shot/lib/split-methods/ToolClickEvent.d.ts +1 -1
  315. package/esm/customerService/js-screen-shot/lib/split-methods/ToolClickEvent.js +5 -5
  316. package/esm/customerService/js-screen-shot/lib/split-methods/drawCrossImg.d.ts +1 -1
  317. package/esm/customerService/js-screen-shot/lib/type/ComponentType.d.ts +133 -133
  318. package/esm/customerService/js-screen-shot/main.d.ts +110 -110
  319. package/esm/customerService/js-screen-shot/main.js +32 -32
  320. package/esm/customerService/screenshotTool.d.ts +10 -10
  321. package/esm/customerService/teacherList.d.ts +11 -11
  322. package/esm/customerService/useMediaRecorder.d.ts +9 -9
  323. package/esm/customerService/viewMemaid.d.ts +3 -3
  324. package/esm/i18n/en_US.d.ts +2 -2
  325. package/esm/i18n/index.d.ts +2 -2
  326. package/esm/i18n/zh_CN.d.ts +2 -2
  327. package/esm/icons/components/custom-ai_icon.d.ts +4 -4
  328. package/esm/icons/components/custom-arrow.d.ts +4 -4
  329. package/esm/icons/components/custom-close.d.ts +4 -4
  330. package/esm/icons/components/custom-contacts.d.ts +4 -4
  331. package/esm/icons/components/custom-copy.d.ts +4 -4
  332. package/esm/icons/components/custom-dislike.d.ts +4 -4
  333. package/esm/icons/components/custom-download.d.ts +4 -4
  334. package/esm/icons/components/custom-duihao.d.ts +4 -4
  335. package/esm/icons/components/custom-exit_full_screen.d.ts +4 -4
  336. package/esm/icons/components/custom-expand.d.ts +4 -4
  337. package/esm/icons/components/custom-full_screen.d.ts +4 -4
  338. package/esm/icons/components/custom-knowledge_content.d.ts +4 -4
  339. package/esm/icons/components/custom-like.d.ts +4 -4
  340. package/esm/icons/components/custom-quote.d.ts +4 -4
  341. package/esm/icons/components/custom-record.d.ts +4 -4
  342. package/esm/icons/components/custom-reloading.d.ts +4 -4
  343. package/esm/icons/components/custom-retract.d.ts +4 -4
  344. package/esm/icons/components/custom-round_close.d.ts +4 -4
  345. package/esm/icons/components/custom-screen-xuanzuan.d.ts +4 -4
  346. package/esm/icons/components/custom-screenshot.d.ts +4 -4
  347. package/esm/icons/components/custom-sending.d.ts +4 -4
  348. package/esm/icons/components/custom-sound_recording.d.ts +4 -4
  349. package/esm/icons/components/custom-video-abstraction.d.ts +4 -4
  350. package/esm/icons/components/custom-wenhao_round.d.ts +4 -4
  351. package/esm/icons/components/custom-xuanzuan.d.ts +4 -4
  352. package/esm/icons/components/index.d.ts +25 -25
  353. package/esm/icons/index.d.ts +2 -2
  354. package/esm/images/index.d.ts +6 -6
  355. package/esm/index.d.ts +86 -86
  356. package/esm/index.js +3 -3
  357. package/esm/index.module.css +3 -3
  358. package/esm/message/index.d.ts +18 -18
  359. package/esm/message/index.module.less +142 -142
  360. package/esm/pagination/index.d.ts +4 -4
  361. package/esm/pagination/index.module.less +51 -51
  362. package/esm/provider/config.d.ts +9 -9
  363. package/esm/provider/index.d.ts +7 -7
  364. package/esm/table/index.d.ts +12 -12
  365. package/esm/table/index.module.less +423 -423
  366. package/esm/tableSelect/index.d.ts +3 -3
  367. package/esm/tableSelect/index.js +3 -3
  368. package/esm/tableSelect/index.module.less +20 -20
  369. package/esm/textTootip/index.d.ts +9 -9
  370. package/esm/theme/variable.less +652 -652
  371. package/esm/titleBar/index.d.ts +16 -16
  372. package/esm/titleBar/index.module.less +48 -48
  373. package/esm/typings.d.ts +13 -13
  374. package/esm/utils/Date.d.ts +10 -10
  375. package/esm/utils/dom.d.ts +5 -5
  376. package/esm/utils/number.d.ts +1 -1
  377. package/esm/utils/object.d.ts +2 -2
  378. package/esm/viewImage/index(/345/216/237).d.ts +31 -31
  379. package/esm/viewImage/index.d.ts +33 -33
  380. package/esm/viewImage/index.module(/345/216/237).less +173 -173
  381. package/esm/viewImage/index.module.less +193 -193
  382. package/package.json +2 -2
@@ -1,4 +1,4 @@
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 r, G as html2canvas$1, J as Remarkable, K as Drawer, N as HighlightJS, O as cn, Z as ZoomInOutlined, Q as DatePicker, U as Button, V as l, W as Upload, Y as Popover, $ as DoubleRightOutlined, a0 as CloseCircleFilled, a1 as Divider, a2 as fetchEventSource } 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, y as SearchOutlined, B as Spin, D as CloseOutlined, X, E as I, H, F as html2canvas$1, G as r, J as Remarkable, K as Drawer, N as HighlightJS, O as cn, Z as ZoomInOutlined, Q as DatePicker, U as Button, V as l, W as Upload, Y as Popover, $ as DoubleRightOutlined, a0 as CloseCircleFilled, a1 as Divider, a2 as fetchEventSource } from './vendor.esm.es5.development.js';
2
2
  export { a3 as Affix, a4 as Alert, a5 as Anchor, a as AntdMessage, A as App, a6 as AutoComplete, a7 as Avatar, a9 as BackTop, aa as Badge, ab as Breadcrumb, U as Button, ac as Calendar, ad as Card, ae as Carousel, af as Cascader, ag as Checkbox, ah as Col, ai as Collapse, Q as DatePicker, aj as Descriptions, a1 as Divider, K as Drawer, ak as Dropdown, al as Empty, a8 as FloatButton, am as Form, an as Grid, ao as Image, x as Input, ap as InputNumber, aq as Layout, ar as List, as as Mentions, at as Menu, M as Modal, au as Popconfirm, Y as Popover, av as Progress, aS as QRCode, aw as Radio, ax as Rate, ay as Result, az as Row, aA as Segmented, k as Select, aB as Skeleton, aC as Slider, aD as Space, B as Spin, aE as Statistic, aF as Steps, aG as Switch, aH as Tabs, aI as Tag, aK as TimePicker, aL as Timeline, T as Tooltip, aM as Tour, aN as Transfer, aO as Tree, aP as TreeSelect, aQ as Typography, W as Upload, aR as Watermark, aU as en_US, b as notification, aJ as theme, aT as version, z as zh_CN } from './vendor.esm.es5.development.js';
3
3
  import * as React from 'react';
4
4
  import React__default, { useState, useRef, useEffect, useLayoutEffect, forwardRef, useImperativeHandle, useCallback, useMemo } from 'react';
@@ -494,15 +494,15 @@ var i18Conversion = function(str, lang) {
494
494
  };
495
495
  var i18Conversion$1 = i18Conversion;
496
496
 
497
- /*
498
- 参数与Table一致
499
-
500
- ajaxErr:接口是否报错
501
- notDataText:无数据时,显示的文案
502
- borderBottom: 是否显示下边框线
503
- loading:是否加载中
504
- className
505
- 超长内容 出现滚动条 需在管理列定义好width 没有定义的max-width:300
497
+ /*
498
+ 参数与Table一致
499
+
500
+ ajaxErr:接口是否报错
501
+ notDataText:无数据时,显示的文案
502
+ borderBottom: 是否显示下边框线
503
+ loading:是否加载中
504
+ className
505
+ 超长内容 出现滚动条 需在管理列定义好width 没有定义的max-width:300
506
506
  */ var BhdTableSimple = function(props) {
507
507
  var className = props.className; props.locale; props.borderBottom; var rowSelection = props.rowSelection, ajaxErr = props.ajaxErr, dataSource = props.dataSource, _props_kind = props.kind, kind = _props_kind === void 0 ? "simple" : _props_kind, loading = props.loading, _props_notDataText = props.notDataText, notDataText = _props_notDataText === void 0 ? i18Conversion$1("noData") : _props_notDataText;
508
508
  var tableRef = useRef(null);
@@ -2678,7 +2678,7 @@ function BhdAppLayout(props) {
2678
2678
  });
2679
2679
  }
2680
2680
 
2681
- var modules_63b47c51$f = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__cbcd7891","ChatWindow_Modal":"index_module_ChatWindow_Modal__cbcd7891","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__cbcd7891","header_wrap":"index_module_header_wrap__cbcd7891","top":"index_module_top__cbcd7891","user":"index_module_user__cbcd7891","count":"index_module_count__cbcd7891","operate":"index_module_operate__cbcd7891","line":"index_module_line__cbcd7891","popover_main":"index_module_popover_main__cbcd7891","popover":"index_module_popover__cbcd7891","header_wrap_newlabo":"index_module_header_wrap_newlabo__cbcd7891","Drawer_main":"index_module_Drawer_main__cbcd7891","loading":"index_module_loading__cbcd7891","message_con":"index_module_message_con__cbcd7891","left":"index_module_left__cbcd7891","head_sculpture":"index_module_head_sculpture__cbcd7891","main_content":"index_module_main_content__cbcd7891","right":"index_module_right__cbcd7891","itemcontent":"index_module_itemcontent__cbcd7891","main":"index_module_main__cbcd7891","main_content_flag":"index_module_main_content_flag__cbcd7891","operate_modal":"index_module_operate_modal__cbcd7891","operate_modal_showtop":"index_module_operate_modal_showtop__cbcd7891","operate_modal_bottom":"index_module_operate_modal_bottom__cbcd7891","active":"index_module_active__cbcd7891","stop_generate":"index_module_stop_generate__cbcd7891","icon":"index_module_icon__cbcd7891","find_teacher":"index_module_find_teacher__cbcd7891","stop_findTeacher":"index_module_stop_findTeacher__cbcd7891","content":"index_module_content__cbcd7891","content_child":"index_module_content_child__cbcd7891","mermaid":"index_module_mermaid__cbcd7891","maskZoomBox":"index_module_maskZoomBox__cbcd7891","zoomBox":"index_module_zoomBox__cbcd7891","find_teacher_con":"index_module_find_teacher_con__cbcd7891","sign":"index_module_sign__cbcd7891","ask_question":"index_module_ask_question__cbcd7891","bottom":"index_module_bottom__cbcd7891","association_problem":"index_module_association_problem__cbcd7891","association_problem_flag":"index_module_association_problem_flag__cbcd7891","related_issues_flag":"index_module_related_issues_flag__cbcd7891","img_con":"index_module_img_con__cbcd7891","mask_zoom":"index_module_mask_zoom__cbcd7891","img_con2":"index_module_img_con2__cbcd7891","copyCode":"index_module_copyCode__cbcd7891","time":"index_module_time__cbcd7891","citation_content":"index_module_citation_content__cbcd7891","text_exceed":"index_module_text_exceed__cbcd7891","popover_content":"index_module_popover_content__cbcd7891","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__cbcd7891","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__cbcd7891","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__cbcd7891","issues_list_teacherList":"index_module_issues_list_teacherList__cbcd7891","item":"index_module_item__cbcd7891","issues_list":"index_module_issues_list__cbcd7891","issues_list_flag":"index_module_issues_list_flag__cbcd7891","Drawer_buttom":"index_module_Drawer_buttom__cbcd7891","input_wrap":"index_module_input_wrap__cbcd7891","input":"index_module_input__cbcd7891","picture_layout":"index_module_picture_layout__cbcd7891","icon_close":"index_module_icon_close__cbcd7891","icon_zoom":"index_module_icon_zoom__cbcd7891","anticon":"index_module_anticon__cbcd7891","no_AI":"index_module_no_AI__cbcd7891","screenshot":"index_module_screenshot__cbcd7891","disabled":"index_module_disabled__cbcd7891","content_main":"index_module_content_main__cbcd7891","content_con":"index_module_content_con__cbcd7891","delete_quote":"index_module_delete_quote__cbcd7891","sending":"index_module_sending__cbcd7891","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__cbcd7891","main_list":"index_module_main_list__cbcd7891","chat_content":"index_module_chat_content__cbcd7891","popover_main_content":"index_module_popover_main_content__cbcd7891","popover_main_content_name":"index_module_popover_main_content_name__cbcd7891","teacher_layout":"index_module_teacher_layout__cbcd7891","delete":"index_module_delete__cbcd7891","num":"index_module_num__cbcd7891","shrink":"index_module_shrink__cbcd7891","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__cbcd7891","teacher_layout_modal":"index_module_teacher_layout_modal__cbcd7891","ai":"index_module_ai__cbcd7891","user_info":"index_module_user_info__cbcd7891","message":"index_module_message__cbcd7891","con":"index_module_con__cbcd7891","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__cbcd7891","history_list":"index_module_history_list__cbcd7891","search_layout":"index_module_search_layout__cbcd7891","mymove":"index_module_mymove__cbcd7891","title":"index_module_title__cbcd7891","search_top":"index_module_search_top__cbcd7891","list_item":"index_module_list_item__cbcd7891","list_summary":"index_module_list_summary__cbcd7891","head_img":"index_module_head_img__cbcd7891","list_desc":"index_module_list_desc__cbcd7891","name":"index_module_name__cbcd7891","decs":"index_module_decs__cbcd7891","open":"index_module_open__cbcd7891","list_summary_active":"index_module_list_summary_active__cbcd7891","list_detail":"index_module_list_detail__cbcd7891","list":"index_module_list__cbcd7891","list_more":"index_module_list_more__cbcd7891","no_data":"index_module_no_data__cbcd7891","history_list_broadside":"index_module_history_list_broadside__cbcd7891","teacher_list":"index_module_teacher_list__cbcd7891","screenshot_Modal":"index_module_screenshot_Modal__cbcd7891","ReactCrop":"index_module_ReactCrop__cbcd7891","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__cbcd7891","viewMedia_Modal":"index_module_viewMedia_Modal__cbcd7891","viewMemaid":"index_module_viewMemaid__cbcd7891"};
2681
+ var modules_63b47c51$f = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__6e43f92b","ChatWindow_Modal":"index_module_ChatWindow_Modal__6e43f92b","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__6e43f92b","header_wrap":"index_module_header_wrap__6e43f92b","top":"index_module_top__6e43f92b","user":"index_module_user__6e43f92b","count":"index_module_count__6e43f92b","operate":"index_module_operate__6e43f92b","line":"index_module_line__6e43f92b","popover_main":"index_module_popover_main__6e43f92b","popover":"index_module_popover__6e43f92b","header_wrap_newlabo":"index_module_header_wrap_newlabo__6e43f92b","Drawer_main":"index_module_Drawer_main__6e43f92b","loading":"index_module_loading__6e43f92b","message_con":"index_module_message_con__6e43f92b","left":"index_module_left__6e43f92b","head_sculpture":"index_module_head_sculpture__6e43f92b","main_content":"index_module_main_content__6e43f92b","right":"index_module_right__6e43f92b","itemcontent":"index_module_itemcontent__6e43f92b","main":"index_module_main__6e43f92b","main_content_flag":"index_module_main_content_flag__6e43f92b","operate_modal":"index_module_operate_modal__6e43f92b","operate_modal_showtop":"index_module_operate_modal_showtop__6e43f92b","operate_modal_bottom":"index_module_operate_modal_bottom__6e43f92b","active":"index_module_active__6e43f92b","stop_generate":"index_module_stop_generate__6e43f92b","icon":"index_module_icon__6e43f92b","find_teacher":"index_module_find_teacher__6e43f92b","stop_findTeacher":"index_module_stop_findTeacher__6e43f92b","content":"index_module_content__6e43f92b","content_child":"index_module_content_child__6e43f92b","mermaid":"index_module_mermaid__6e43f92b","maskZoomBox":"index_module_maskZoomBox__6e43f92b","zoomBox":"index_module_zoomBox__6e43f92b","find_teacher_con":"index_module_find_teacher_con__6e43f92b","sign":"index_module_sign__6e43f92b","ask_question":"index_module_ask_question__6e43f92b","bottom":"index_module_bottom__6e43f92b","association_problem":"index_module_association_problem__6e43f92b","association_problem_flag":"index_module_association_problem_flag__6e43f92b","related_issues_flag":"index_module_related_issues_flag__6e43f92b","img_con":"index_module_img_con__6e43f92b","mask_zoom":"index_module_mask_zoom__6e43f92b","img_con2":"index_module_img_con2__6e43f92b","copyCode":"index_module_copyCode__6e43f92b","time":"index_module_time__6e43f92b","citation_content":"index_module_citation_content__6e43f92b","text_exceed":"index_module_text_exceed__6e43f92b","popover_content":"index_module_popover_content__6e43f92b","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__6e43f92b","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__6e43f92b","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__6e43f92b","issues_list_teacherList":"index_module_issues_list_teacherList__6e43f92b","item":"index_module_item__6e43f92b","issues_list":"index_module_issues_list__6e43f92b","issues_list_flag":"index_module_issues_list_flag__6e43f92b","Drawer_buttom":"index_module_Drawer_buttom__6e43f92b","input_wrap":"index_module_input_wrap__6e43f92b","input":"index_module_input__6e43f92b","picture_layout":"index_module_picture_layout__6e43f92b","icon_close":"index_module_icon_close__6e43f92b","icon_zoom":"index_module_icon_zoom__6e43f92b","anticon":"index_module_anticon__6e43f92b","no_AI":"index_module_no_AI__6e43f92b","screenshot":"index_module_screenshot__6e43f92b","disabled":"index_module_disabled__6e43f92b","content_main":"index_module_content_main__6e43f92b","content_con":"index_module_content_con__6e43f92b","delete_quote":"index_module_delete_quote__6e43f92b","sending":"index_module_sending__6e43f92b","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__6e43f92b","main_list":"index_module_main_list__6e43f92b","chat_content":"index_module_chat_content__6e43f92b","popover_main_content":"index_module_popover_main_content__6e43f92b","popover_main_content_name":"index_module_popover_main_content_name__6e43f92b","teacher_layout":"index_module_teacher_layout__6e43f92b","delete":"index_module_delete__6e43f92b","num":"index_module_num__6e43f92b","shrink":"index_module_shrink__6e43f92b","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__6e43f92b","teacher_layout_modal":"index_module_teacher_layout_modal__6e43f92b","ai":"index_module_ai__6e43f92b","user_info":"index_module_user_info__6e43f92b","message":"index_module_message__6e43f92b","con":"index_module_con__6e43f92b","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__6e43f92b","history_list":"index_module_history_list__6e43f92b","search_layout":"index_module_search_layout__6e43f92b","mymove":"index_module_mymove__6e43f92b","title":"index_module_title__6e43f92b","search_top":"index_module_search_top__6e43f92b","list_item":"index_module_list_item__6e43f92b","list_summary":"index_module_list_summary__6e43f92b","head_img":"index_module_head_img__6e43f92b","list_desc":"index_module_list_desc__6e43f92b","name":"index_module_name__6e43f92b","decs":"index_module_decs__6e43f92b","open":"index_module_open__6e43f92b","list_summary_active":"index_module_list_summary_active__6e43f92b","list_detail":"index_module_list_detail__6e43f92b","list":"index_module_list__6e43f92b","list_more":"index_module_list_more__6e43f92b","no_data":"index_module_no_data__6e43f92b","history_list_broadside":"index_module_history_list_broadside__6e43f92b","teacher_list":"index_module_teacher_list__6e43f92b","screenshot_Modal":"index_module_screenshot_Modal__6e43f92b","ReactCrop":"index_module_ReactCrop__6e43f92b","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__6e43f92b","viewMedia_Modal":"index_module_viewMedia_Modal__6e43f92b","viewMemaid":"index_module_viewMemaid__6e43f92b"};
2682
2682
 
2683
2683
  function BaseHOC(key) {
2684
2684
  return function(props) {
@@ -2917,6 +2917,51 @@ var urlToBase64 = function(url) {
2917
2917
  };
2918
2918
  });
2919
2919
  };
2920
+ var toHashString = function(str) {
2921
+ var result = 0;
2922
+ var length = str.length;
2923
+ for(var i = 0; i < length; i++){
2924
+ result = (result << 5) - result + str.charCodeAt(i);
2925
+ result |= 0; // 转换为32位整数
2926
+ }
2927
+ // 转换为正数并格式化为8位十六进制
2928
+ return (result >>> 0).toString(16).padStart(8, "0");
2929
+ };
2930
+ // 正则:匹配```mermaid代码块内 ‘// 注释的内容’ 移除
2931
+ var removeMermaidBlockComments = function(markdownContent) {
2932
+ // 正则匹配 ```mermaid 代码块,捕获块内内容
2933
+ var mermaidBlockRegex = /(```mermaid\n)([\s\S]*?)(\n```)/gm;
2934
+ // 替换逻辑:保留代码块标识,仅清理块内注释
2935
+ return markdownContent.replace(mermaidBlockRegex, function(match, prefix, content, suffix) {
2936
+ // 清理块内注释的正则(同之前逻辑,优先保留字符串)
2937
+ var commentRegex = /(".*?"|'.*?')|(\/\*[\s\S]*?\*\/)|(\/\/.*?$)/gm;
2938
+ var cleanContent = content.replace(commentRegex, function(m, stringPart) {
2939
+ return stringPart || "";
2940
+ });
2941
+ // 拼接回完整代码块(保留 ```mermaid 和 ``` 标识)
2942
+ return "".concat(prefix).concat(cleanContent).concat(suffix);
2943
+ });
2944
+ };
2945
+ // 处理渲染语法
2946
+ var handleRenderSyntaxBlock = function(markdownContent, flag) {
2947
+ if (flag) {
2948
+ // 正则匹配 ![alt](url) 图片语法
2949
+ var imgBlockRegex = /\[([^\]]*)\]\[\]\((https?:\/\/[^\s)]+)\)/gm;
2950
+ markdownContent = markdownContent.replace(imgBlockRegex, function(match, altText, url) {
2951
+ return "![".concat(altText, "](").concat(url, ")");
2952
+ });
2953
+ markdownContent = markdownContent.replaceAll("```mermaid-code", "```mermaid");
2954
+ return markdownContent;
2955
+ } else {
2956
+ // 正则匹配 ![alt](url) 图片语法
2957
+ var imgBlockRegex1 = /!\[([^\]]*)\]\((https?:\/\/[^\s)]+)\)/gm;
2958
+ markdownContent = markdownContent.replace(imgBlockRegex1, function(match, altText, url) {
2959
+ return "[".concat(altText, "][](").concat(url, ")");
2960
+ });
2961
+ markdownContent = markdownContent.replaceAll("```mermaid", "```mermaid-code");
2962
+ return markdownContent;
2963
+ }
2964
+ };
2920
2965
 
2921
2966
  var HistoryFun = function(props) {
2922
2967
  var type = props.type; props.roomId; var userData = props.userData, http = props.http, urllocation = props.urllocation, onClose = props.onClose, loadSpecifiedData = props.loadSpecifiedData;
@@ -4044,72 +4089,6 @@ var parseDate = function(dateStr) {
4044
4089
  };
4045
4090
  };
4046
4091
 
4047
- r.initialize({
4048
- startOnLoad: false,
4049
- theme: "default",
4050
- securityLevel: "loose",
4051
- fontFamily: "Arial, sans-serif",
4052
- flowchart: {
4053
- htmlLabels: true,
4054
- curve: "basis"
4055
- }
4056
- });
4057
- function ViewMemaid(props) {
4058
- var visible = props.visible, className = props.className, _props_getContainer = props.getContainer, getContainer = _props_getContainer === void 0 ? function() {
4059
- return document.body;
4060
- } : _props_getContainer, _props_onCancel = props.onCancel, onCancel = _props_onCancel === void 0 ? function() {} : _props_onCancel, content = props.content;
4061
- var _React_useState = _sliced_to_array(React__default.useState(content), 2), contentText = _React_useState[0], setContentText = _React_useState[1];
4062
- useEffect(function() {
4063
- var _dom;
4064
- var dom = document.getElementById(content);
4065
- console.log("dom", dom, content);
4066
- setContentText(((_dom = dom) === null || _dom === void 0 ? void 0 : _dom.textContent) || "");
4067
- var timer = setTimeout(/*#__PURE__*/ _async_to_generator(function() {
4068
- return __generator(this, function(_state) {
4069
- switch(_state.label){
4070
- case 0:
4071
- return [
4072
- 4,
4073
- r.init({
4074
- querySelector: ".".concat(modules_63b47c51$f.viewMemaid),
4075
- suppressErrors: true
4076
- }, ".".concat(modules_63b47c51$f.viewMemaid))
4077
- ];
4078
- case 1:
4079
- _state.sent();
4080
- clearTimeout(timer);
4081
- return [
4082
- 2
4083
- ];
4084
- }
4085
- });
4086
- }), 100);
4087
- }, [
4088
- content
4089
- ]);
4090
- return /*#__PURE__*/ jsx(Modal$1, {
4091
- transitionName: "",
4092
- maskTransitionName: "",
4093
- title: null,
4094
- footer: null,
4095
- closable: true,
4096
- centered: true,
4097
- // destroyOnClose
4098
- open: visible,
4099
- keyboard: false,
4100
- onCancel: onCancel,
4101
- maskStyle: {
4102
- background: "rgba(0, 0, 0, 0.65)"
4103
- },
4104
- wrapClassName: "".concat(modules_63b47c51$f.viewMedia_Modal, " ").concat(className || ""),
4105
- getContainer: getContainer,
4106
- children: visible && /*#__PURE__*/ jsx("div", {
4107
- className: modules_63b47c51$f.viewMemaid,
4108
- children: contentText
4109
- })
4110
- });
4111
- }
4112
-
4113
4092
  var img = "data:image/png;base64,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";
4114
4093
  var knowledge_icon = img;
4115
4094
 
@@ -4184,9 +4163,9 @@ function getSelectedClassName(index) {
4184
4163
  return className;
4185
4164
  }
4186
4165
 
4187
- /**
4188
- * 获取画笔选项对应的选中时的class名
4189
- * @param itemName
4166
+ /**
4167
+ * 获取画笔选项对应的选中时的class名
4168
+ * @param itemName
4190
4169
  */ function getBrushSelectedName(itemName) {
4191
4170
  var className = "";
4192
4171
  switch(itemName){
@@ -4203,11 +4182,11 @@ function getSelectedClassName(index) {
4203
4182
  return className;
4204
4183
  }
4205
4184
 
4206
- /**
4207
- * 为当前点击项添加选中时的class,移除其兄弟元素选中时的class
4208
- * @param mouseEvent 需要进行操作的元素
4209
- * @param index 当前点击项
4210
- * @param isOption 是否为画笔选项
4185
+ /**
4186
+ * 为当前点击项添加选中时的class,移除其兄弟元素选中时的class
4187
+ * @param mouseEvent 需要进行操作的元素
4188
+ * @param index 当前点击项
4189
+ * @param isOption 是否为画笔选项
4211
4190
  */ function setSelectedClassName(mouseEvent, index, isOption) {
4212
4191
  // 获取当前点击项选中时的class名
4213
4192
  var className = getSelectedClassName(index);
@@ -4230,9 +4209,9 @@ function getSelectedClassName(index) {
4230
4209
  mouseEvent.target.className += " " + className;
4231
4210
  }
4232
4211
 
4233
- /**
4234
- * 计算截图工具栏画笔选项三角形角标位置
4235
- * @param index
4212
+ /**
4213
+ * 计算截图工具栏画笔选项三角形角标位置
4214
+ * @param index
4236
4215
  */ function calculateOptionIcoPosition(index) {
4237
4216
  switch(index){
4238
4217
  case 1:
@@ -4270,8 +4249,8 @@ function takeOutHistory() {
4270
4249
  }
4271
4250
  }
4272
4251
 
4273
- /**
4274
- * 获取截图工具栏相对于视口的位置
4252
+ /**
4253
+ * 获取截图工具栏相对于视口的位置
4275
4254
  */ function getToolRelativePosition(left, top) {
4276
4255
  var dom = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : document.body;
4277
4256
  var rect = dom.getBoundingClientRect();
@@ -5366,8 +5345,8 @@ function saveCanvasToBase64(context, startX, startY, width, height) {
5366
5345
  return "";
5367
5346
  }
5368
5347
 
5369
- /**
5370
- * 将指定区域的canvas转为图片
5348
+ /**
5349
+ * 将指定区域的canvas转为图片
5371
5350
  */ function getCanvasImgData(isSave) {
5372
5351
  var _data_getScreenShotContainer;
5373
5352
  var data = new InitData();
@@ -5388,18 +5367,18 @@ function saveCanvasToBase64(context, startX, startY, width, height) {
5388
5367
  return base64;
5389
5368
  }
5390
5369
 
5391
- /**
5392
- * 绘制裁剪框
5393
- * @param mouseX 鼠标x轴坐标
5394
- * @param mouseY 鼠标y轴坐标
5395
- * @param width 裁剪框宽度
5396
- * @param height 裁剪框高度
5397
- * @param context 需要进行绘制的canvas画布
5398
- * @param borderSize 边框节点直径
5399
- * @param controller 需要进行操作的canvas容器
5400
- * @param imageController 图片canvas容器
5401
- * @param drawBorders
5402
- * @private
5370
+ /**
5371
+ * 绘制裁剪框
5372
+ * @param mouseX 鼠标x轴坐标
5373
+ * @param mouseY 鼠标y轴坐标
5374
+ * @param width 裁剪框宽度
5375
+ * @param height 裁剪框高度
5376
+ * @param context 需要进行绘制的canvas画布
5377
+ * @param borderSize 边框节点直径
5378
+ * @param controller 需要进行操作的canvas容器
5379
+ * @param imageController 图片canvas容器
5380
+ * @param drawBorders
5381
+ * @private
5403
5382
  */ function drawCutOutBox(mouseX, mouseY, width, height, context, borderSize, controller, imageController) {
5404
5383
  var drawBorders = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : true;
5405
5384
  var _controller, _controller1, _controller2, _controller3;
@@ -5666,11 +5645,11 @@ function toolClickEvent(toolName, index, mouseEvent, completeCallback, closeCall
5666
5645
  data.setToolClickStatus(true);
5667
5646
  }
5668
5647
 
5669
- /**
5670
- * 设置画笔大小
5671
- * @param size
5672
- * @param index
5673
- * @param mouseEvent
5648
+ /**
5649
+ * 设置画笔大小
5650
+ * @param size
5651
+ * @param index
5652
+ * @param mouseEvent
5674
5653
  */ function setBrushSize(size, index, mouseEvent) {
5675
5654
  var data = new InitData();
5676
5655
  // 为当前点击项添加选中时的class名
@@ -5690,11 +5669,11 @@ function toolClickEvent(toolName, index, mouseEvent, completeCallback, closeCall
5690
5669
  data.setPenSize(sizeNum);
5691
5670
  return sizeNum;
5692
5671
  }
5693
- /**
5694
- * 设置马赛克工具的笔触大小
5695
- * @param size
5696
- * @param index
5697
- * @param mouseEvent
5672
+ /**
5673
+ * 设置马赛克工具的笔触大小
5674
+ * @param size
5675
+ * @param index
5676
+ * @param mouseEvent
5698
5677
  */ function setMosaicPenSize(size, index, mouseEvent) {
5699
5678
  var data = new InitData();
5700
5679
  // 为当前点击项添加选中时的class名
@@ -6124,10 +6103,10 @@ var CreateDom = /*#__PURE__*/ function() {
6124
6103
  return CreateDom;
6125
6104
  }();
6126
6105
 
6127
- /**
6128
- * 绘制蒙层
6129
- * @param context 需要进行绘制canvas
6130
- * @param imgData 屏幕截图canvas容器
6106
+ /**
6107
+ * 绘制蒙层
6108
+ * @param context 需要进行绘制canvas
6109
+ * @param imgData 屏幕截图canvas容器
6131
6110
  */ function drawMasking(context, imgData) {
6132
6111
  var data = new PlugInParameters();
6133
6112
  var plugInParameters = new PlugInParameters();
@@ -6165,16 +6144,16 @@ var CreateDom = /*#__PURE__*/ function() {
6165
6144
  context.restore();
6166
6145
  }
6167
6146
 
6168
- /**
6169
- * 对参数进行处理,小于0则返回0
6147
+ /**
6148
+ * 对参数进行处理,小于0则返回0
6170
6149
  */ function nonNegativeData(data) {
6171
6150
  return data > 0 ? data : 0;
6172
6151
  }
6173
- /**
6174
- * 计算传进来的数据,不让其移出可视区域
6175
- * @param data 需要计算的数据
6176
- * @param trimDistance 裁剪框宽度
6177
- * @param canvasDistance 画布宽度
6152
+ /**
6153
+ * 计算传进来的数据,不让其移出可视区域
6154
+ * @param data 需要计算的数据
6155
+ * @param trimDistance 裁剪框宽度
6156
+ * @param canvasDistance 画布宽度
6178
6157
  */ function fixedData(data, trimDistance, canvasDistance) {
6179
6158
  if (nonNegativeData(data) + trimDistance > canvasDistance) {
6180
6159
  return nonNegativeData(canvasDistance - trimDistance);
@@ -6183,13 +6162,13 @@ var CreateDom = /*#__PURE__*/ function() {
6183
6162
  }
6184
6163
  }
6185
6164
 
6186
- /**
6187
- * 画笔绘制
6188
- * @param context
6189
- * @param mouseX
6190
- * @param mouseY
6191
- * @param size
6192
- * @param color
6165
+ /**
6166
+ * 画笔绘制
6167
+ * @param context
6168
+ * @param mouseX
6169
+ * @param mouseY
6170
+ * @param size
6171
+ * @param color
6193
6172
  */ function drawPencil(context, mouseX, mouseY, size, color) {
6194
6173
  // 开始绘制
6195
6174
  context.save();
@@ -6202,8 +6181,8 @@ var CreateDom = /*#__PURE__*/ function() {
6202
6181
  // 绘制结束
6203
6182
  context.restore();
6204
6183
  }
6205
- /**
6206
- * 画笔初始化
6184
+ /**
6185
+ * 画笔初始化
6207
6186
  */ function initPencil(context, mouseX, mouseY) {
6208
6187
  // 开始||清空一条路径
6209
6188
  context.beginPath();
@@ -6211,15 +6190,15 @@ var CreateDom = /*#__PURE__*/ function() {
6211
6190
  context.moveTo(mouseX, mouseY);
6212
6191
  }
6213
6192
 
6214
- /**
6215
- * 绘制矩形
6216
- * @param mouseX
6217
- * @param mouseY
6218
- * @param width
6219
- * @param height
6220
- * @param color 边框颜色
6221
- * @param borderWidth 边框大小
6222
- * @param context 需要进行绘制的canvas画布
6193
+ /**
6194
+ * 绘制矩形
6195
+ * @param mouseX
6196
+ * @param mouseY
6197
+ * @param width
6198
+ * @param height
6199
+ * @param color 边框颜色
6200
+ * @param borderWidth 边框大小
6201
+ * @param context 需要进行绘制的canvas画布
6223
6202
  */ function drawRectangle(mouseX, mouseY, width, height, color, borderWidth, context) {
6224
6203
  context.save();
6225
6204
  // 设置边框颜色
@@ -6234,15 +6213,15 @@ var CreateDom = /*#__PURE__*/ function() {
6234
6213
  context.restore();
6235
6214
  }
6236
6215
 
6237
- /**
6238
- * 绘制圆形
6239
- * @param context 需要进行绘制的画布
6240
- * @param mouseX 当前鼠标x轴坐标
6241
- * @param mouseY 当前鼠标y轴坐标
6242
- * @param mouseStartX 鼠标按下时的x轴坐标
6243
- * @param mouseStartY 鼠标按下时的y轴坐标
6244
- * @param borderWidth 边框宽度
6245
- * @param color 边框颜色
6216
+ /**
6217
+ * 绘制圆形
6218
+ * @param context 需要进行绘制的画布
6219
+ * @param mouseX 当前鼠标x轴坐标
6220
+ * @param mouseY 当前鼠标y轴坐标
6221
+ * @param mouseStartX 鼠标按下时的x轴坐标
6222
+ * @param mouseStartY 鼠标按下时的y轴坐标
6223
+ * @param borderWidth 边框宽度
6224
+ * @param color 边框颜色
6246
6225
  */ function drawCircle(context, mouseX, mouseY, mouseStartX, mouseStartY, borderWidth, color) {
6247
6226
  // 坐标边界处理,解决反向绘制椭圆时的报错问题
6248
6227
  var startX = mouseX < mouseStartX ? mouseX : mouseStartX;
@@ -6298,15 +6277,15 @@ var DrawArrow = /*#__PURE__*/ function() {
6298
6277
  _create_class(DrawArrow, [
6299
6278
  {
6300
6279
  key: "draw",
6301
- value: /**
6302
- * 绘制箭头
6303
- * @param ctx 需要进行绘制的画布
6304
- * @param originX 鼠标按下时的x轴坐标
6305
- * @param originY 鼠标按下式的y轴坐标
6306
- * @param x 当前鼠标x轴坐标
6307
- * @param y 当前鼠标y轴坐标
6308
- * @param color 箭头颜色
6309
- * @param size 箭头尺寸
6280
+ value: /**
6281
+ * 绘制箭头
6282
+ * @param ctx 需要进行绘制的画布
6283
+ * @param originX 鼠标按下时的x轴坐标
6284
+ * @param originY 鼠标按下式的y轴坐标
6285
+ * @param x 当前鼠标x轴坐标
6286
+ * @param y 当前鼠标y轴坐标
6287
+ * @param color 箭头颜色
6288
+ * @param size 箭头尺寸
6310
6289
  */ function draw(ctx, originX, originY, x, y, color, size) {
6311
6290
  this.beginPoint.x = originX;
6312
6291
  this.beginPoint.y = originY;
@@ -6380,11 +6359,11 @@ var DrawArrow = /*#__PURE__*/ function() {
6380
6359
  },
6381
6360
  {
6382
6361
  key: "setArrowInfo",
6383
- value: /**
6384
- * 设置箭头的相关绘制信息
6385
- * @param edgeLen 长度
6386
- * @param angle 角度
6387
- * @private
6362
+ value: /**
6363
+ * 设置箭头的相关绘制信息
6364
+ * @param edgeLen 长度
6365
+ * @param angle 角度
6366
+ * @private
6388
6367
  */ function setArrowInfo(edgeLen, angle) {
6389
6368
  this.arrowInfo.edgeLen = edgeLen;
6390
6369
  this.arrowInfo.angle = angle;
@@ -6428,11 +6407,11 @@ var DrawArrow = /*#__PURE__*/ function() {
6428
6407
  return DrawArrow;
6429
6408
  }();
6430
6409
 
6431
- /**
6432
- * 获取图像指定坐标位置的颜色
6433
- * @param imgData 需要进行操作的图片
6434
- * @param x x点坐标
6435
- * @param y y点坐标
6410
+ /**
6411
+ * 获取图像指定坐标位置的颜色
6412
+ * @param imgData 需要进行操作的图片
6413
+ * @param x x点坐标
6414
+ * @param y y点坐标
6436
6415
  */ var getAxisColor = function(imgData, x, y) {
6437
6416
  var w = imgData.width;
6438
6417
  var d = imgData.data;
@@ -6443,12 +6422,12 @@ var DrawArrow = /*#__PURE__*/ function() {
6443
6422
  color[3] = d[4 * (y * w + x) + 3];
6444
6423
  return color;
6445
6424
  };
6446
- /**
6447
- * 设置图像指定坐标位置的颜色
6448
- * @param imgData 需要进行操作的图片
6449
- * @param x x点坐标
6450
- * @param y y点坐标
6451
- * @param color 颜色数组
6425
+ /**
6426
+ * 设置图像指定坐标位置的颜色
6427
+ * @param imgData 需要进行操作的图片
6428
+ * @param x x点坐标
6429
+ * @param y y点坐标
6430
+ * @param color 颜色数组
6452
6431
  */ var setAxisColor = function(imgData, x, y, color) {
6453
6432
  var w = imgData.width;
6454
6433
  var d = imgData.data;
@@ -6457,16 +6436,16 @@ var DrawArrow = /*#__PURE__*/ function() {
6457
6436
  d[4 * (y * w + x) + 2] = color[2];
6458
6437
  d[4 * (y * w + x) + 3] = color[3];
6459
6438
  };
6460
- /**
6461
- * 绘制马赛克
6462
- * 实现思路:
6463
- * 1. 获取鼠标划过路径区域的图像信息
6464
- * 2. 将区域内的像素点绘制成周围相近的颜色
6465
- * @param mouseX 当前鼠标X轴坐标
6466
- * @param mouseY 当前鼠标Y轴坐标
6467
- * @param size 马赛克画笔大小
6468
- * @param degreeOfBlur 马赛克模糊度
6469
- * @param context 需要进行绘制的画布
6439
+ /**
6440
+ * 绘制马赛克
6441
+ * 实现思路:
6442
+ * 1. 获取鼠标划过路径区域的图像信息
6443
+ * 2. 将区域内的像素点绘制成周围相近的颜色
6444
+ * @param mouseX 当前鼠标X轴坐标
6445
+ * @param mouseY 当前鼠标Y轴坐标
6446
+ * @param size 马赛克画笔大小
6447
+ * @param degreeOfBlur 马赛克模糊度
6448
+ * @param context 需要进行绘制的画布
6470
6449
  */ function drawMosaic(mouseX, mouseY, size, degreeOfBlur, context) {
6471
6450
  // 获取设备像素比
6472
6451
  var dpr = window.devicePixelRatio || 1;
@@ -6496,16 +6475,16 @@ var DrawArrow = /*#__PURE__*/ function() {
6496
6475
  context.putImageData(imgData, mouseX * dpr, mouseY * dpr);
6497
6476
  }
6498
6477
 
6499
- /**
6500
- * 缩放裁剪框
6501
- * @param currentX 当前鼠标X轴坐标
6502
- * @param currentY 当前鼠标Y轴坐标
6503
- * @param startX 裁剪框当前X轴坐标
6504
- * @param startY 裁剪框当前Y轴坐标
6505
- * @param width 裁剪框宽度
6506
- * @param height 裁剪框高度
6507
- * @param option 当前操作的节点
6508
- * @private
6478
+ /**
6479
+ * 缩放裁剪框
6480
+ * @param currentX 当前鼠标X轴坐标
6481
+ * @param currentY 当前鼠标Y轴坐标
6482
+ * @param startX 裁剪框当前X轴坐标
6483
+ * @param startY 裁剪框当前Y轴坐标
6484
+ * @param width 裁剪框宽度
6485
+ * @param height 裁剪框高度
6486
+ * @param option 当前操作的节点
6487
+ * @private
6509
6488
  */ function zoomCutOutBoxPosition(currentX, currentY, startX, startY, width, height, option) {
6510
6489
  // 临时坐标
6511
6490
  var tempStartX, tempStartY, tempWidth, tempHeight = 0;
@@ -6588,11 +6567,11 @@ var DrawArrow = /*#__PURE__*/ function() {
6588
6567
  }
6589
6568
  }
6590
6569
 
6591
- /**
6592
- * 保存边框节点的相关信息
6593
- * @param borderSize 边框节点直径大小
6594
- * @param positionInfo 裁剪框位置信息
6595
- * @private
6570
+ /**
6571
+ * 保存边框节点的相关信息
6572
+ * @param borderSize 边框节点直径大小
6573
+ * @param positionInfo 裁剪框位置信息
6574
+ * @private
6596
6575
  */ function saveBorderArrInfo(borderSize, positionInfo) {
6597
6576
  // 获取裁剪框位置信息
6598
6577
  var startX = positionInfo.startX, startY = positionInfo.startY, width = positionInfo.width, height = positionInfo.height;
@@ -6714,13 +6693,13 @@ var DrawArrow = /*#__PURE__*/ function() {
6714
6693
  return borderArr;
6715
6694
  }
6716
6695
 
6717
- /**
6718
- * 计算截图工具栏位置
6719
- * @param position 裁剪框位置信息
6720
- * @param toolWidth 截图工具栏宽度
6721
- * @param containerWidth 截图容器宽度
6722
- * @param placement 展示位置
6723
- * @param containerLocation 截图容器位置信息
6696
+ /**
6697
+ * 计算截图工具栏位置
6698
+ * @param position 裁剪框位置信息
6699
+ * @param toolWidth 截图工具栏宽度
6700
+ * @param containerWidth 截图容器宽度
6701
+ * @param placement 展示位置
6702
+ * @param containerLocation 截图容器位置信息
6724
6703
  */ function calculateToolLocation(position, toolWidth, containerWidth, placement, containerLocation) {
6725
6704
  // 工具栏X轴坐标 = (裁剪框的宽度 - 工具栏的宽度) / 2 + (裁剪框距离左侧的距离 - 容器距离左侧的距离)
6726
6705
  var mouseX = (position.width - toolWidth) / 2 + (position.startX - containerLocation.left);
@@ -6754,11 +6733,11 @@ var DrawArrow = /*#__PURE__*/ function() {
6754
6733
  };
6755
6734
  }
6756
6735
 
6757
- /**
6758
- * 获取工具栏工具边界绘制状态
6759
- * @param startX x轴绘制起点
6760
- * @param startY y轴绘制起点
6761
- * @param cutBoxPosition 裁剪框位置信息
6736
+ /**
6737
+ * 获取工具栏工具边界绘制状态
6738
+ * @param startX x轴绘制起点
6739
+ * @param startY y轴绘制起点
6740
+ * @param cutBoxPosition 裁剪框位置信息
6762
6741
  */ function getDrawBoundaryStatus(startX, startY, cutBoxPosition) {
6763
6742
  if (startX < cutBoxPosition.startX || startY < cutBoxPosition.startY || startX > cutBoxPosition.startX + cutBoxPosition.width || startY > cutBoxPosition.startY + cutBoxPosition.height) {
6764
6743
  // 无法绘制
@@ -6804,10 +6783,10 @@ var KeyboardEventHandle = /*#__PURE__*/ function() {
6804
6783
  _create_class(KeyboardEventHandle, [
6805
6784
  {
6806
6785
  key: "triggerEvent",
6807
- value: /**
6808
- * 触发工具栏指定模块的点击事件
6809
- * @param eventName 事件名, 与截图工具栏中的data-title属性值保持一致
6810
- * @private
6786
+ value: /**
6787
+ * 触发工具栏指定模块的点击事件
6788
+ * @param eventName 事件名, 与截图工具栏中的data-title属性值保持一致
6789
+ * @private
6811
6790
  */ function triggerEvent(eventName) {
6812
6791
  if (this.toolController == null) return;
6813
6792
  for(var i = 0; i < this.toolController.childNodes.length; i++){
@@ -6964,25 +6943,25 @@ function isTouchDevice() {
6964
6943
  return maxTouchPoints || msMaxTouchPoints || touchEvent || coarsePointer;
6965
6944
  }
6966
6945
 
6967
- /**
6968
- * 绘制箭头
6969
- * @param context 需要进行绘制的画布
6970
- * @param mouseStartX 鼠标按下时的x轴坐标 P1
6971
- * @param mouseStartY 鼠标按下式的y轴坐标 P1
6972
- * @param mouseX 当前鼠标x轴坐标 P2
6973
- * @param mouseY 当前鼠标y轴坐标 P2
6974
- * @param theta 箭头斜线与直线的夹角角度 (θ) P3 ---> (P1、P2) || P4 ---> P1(P1、P2)
6975
- * @param slashLength 箭头斜线的长度 P3 ---> P2 || P4 ---> P2
6976
- * @param borderWidth 边框宽度
6977
- * @param color 边框颜色
6946
+ /**
6947
+ * 绘制箭头
6948
+ * @param context 需要进行绘制的画布
6949
+ * @param mouseStartX 鼠标按下时的x轴坐标 P1
6950
+ * @param mouseStartY 鼠标按下式的y轴坐标 P1
6951
+ * @param mouseX 当前鼠标x轴坐标 P2
6952
+ * @param mouseY 当前鼠标y轴坐标 P2
6953
+ * @param theta 箭头斜线与直线的夹角角度 (θ) P3 ---> (P1、P2) || P4 ---> P1(P1、P2)
6954
+ * @param slashLength 箭头斜线的长度 P3 ---> P2 || P4 ---> P2
6955
+ * @param borderWidth 边框宽度
6956
+ * @param color 边框颜色
6978
6957
  */ function drawLineArrow(context, mouseStartX, mouseStartY, mouseX, mouseY, theta, slashLength, borderWidth, color) {
6979
- /**
6980
- * 已知:
6981
- * 1. P1、P2的坐标
6982
- * 2. 箭头斜线(P3 || P4) ---> P2直线的长度
6983
- * 3. 箭头斜线(P3 || P4) ---> (P1、P2)直线的夹角角度(θ)
6984
- * 求:
6985
- * P3、P4的坐标
6958
+ /**
6959
+ * 已知:
6960
+ * 1. P1、P2的坐标
6961
+ * 2. 箭头斜线(P3 || P4) ---> P2直线的长度
6962
+ * 3. 箭头斜线(P3 || P4) ---> (P1、P2)直线的夹角角度(θ)
6963
+ * 求:
6964
+ * P3、P4的坐标
6986
6965
  */ var angle = Math.atan2(mouseStartY - mouseY, mouseStartX - mouseX) * 180 / Math.PI, angle1 = (angle + theta) * Math.PI / 180, angle2 = (angle - theta) * Math.PI / 180, topX = slashLength * Math.cos(angle1), topY = slashLength * Math.sin(angle1), botX = slashLength * Math.cos(angle2), botY = slashLength * Math.sin(angle2); // P4点的Y轴坐标
6987
6966
  // 开始绘制
6988
6967
  context.save();
@@ -7809,13 +7788,13 @@ var ScreenShot = /*#__PURE__*/ function() {
7809
7788
  },
7810
7789
  {
7811
7790
  key: "getWindowContentData",
7812
- value: /**
7813
- * 从窗口数据流中截取页面body内容
7814
- * @param videoWidth 窗口宽度
7815
- * @param videoHeight 窗口高度
7816
- * @param containerWidth body内容宽度
7817
- * @param containerHeight body内容高度
7818
- * @private
7791
+ value: /**
7792
+ * 从窗口数据流中截取页面body内容
7793
+ * @param videoWidth 窗口宽度
7794
+ * @param videoHeight 窗口高度
7795
+ * @param containerWidth body内容宽度
7796
+ * @param containerHeight body内容高度
7797
+ * @private
7819
7798
  */ function getWindowContentData(videoWidth, videoHeight, containerWidth, containerHeight) {
7820
7799
  var videoCanvas = document.createElement("canvas");
7821
7800
  videoCanvas.width = videoWidth;
@@ -8003,16 +7982,16 @@ var ScreenShot = /*#__PURE__*/ function() {
8003
7982
  },
8004
7983
  {
8005
7984
  key: "operatingCutOutBox",
8006
- value: /**
8007
- * 操作裁剪框
8008
- * @param currentX 裁剪框当前x轴坐标
8009
- * @param currentY 裁剪框当前y轴坐标
8010
- * @param startX 鼠标x轴坐标
8011
- * @param startY 鼠标y轴坐标
8012
- * @param width 裁剪框宽度
8013
- * @param height 裁剪框高度
8014
- * @param context 需要进行绘制的canvas画布
8015
- * @private
7985
+ value: /**
7986
+ * 操作裁剪框
7987
+ * @param currentX 裁剪框当前x轴坐标
7988
+ * @param currentY 裁剪框当前y轴坐标
7989
+ * @param startX 鼠标x轴坐标
7990
+ * @param startY 鼠标y轴坐标
7991
+ * @param width 裁剪框宽度
7992
+ * @param height 裁剪框高度
7993
+ * @param context 需要进行绘制的canvas画布
7994
+ * @private
8016
7995
  */ function operatingCutOutBox(currentX, currentY, startX, startY, width, height, context) {
8017
7996
  // canvas元素不存在
8018
7997
  if (this.screenShotContainer == null) {
@@ -8105,9 +8084,9 @@ var ScreenShot = /*#__PURE__*/ function() {
8105
8084
  },
8106
8085
  {
8107
8086
  key: "showLastHistory",
8108
- value: /**
8109
- * 显示最新的画布状态
8110
- * @private
8087
+ value: /**
8088
+ * 显示最新的画布状态
8089
+ * @private
8111
8090
  */ function showLastHistory() {
8112
8091
  if (this.screenShotCanvas != null) {
8113
8092
  var context = this.screenShotCanvas;
@@ -8140,12 +8119,12 @@ var ScreenShot = /*#__PURE__*/ function() {
8140
8119
  },
8141
8120
  {
8142
8121
  key: "drawPictures",
8143
- value: /**
8144
- * 向截图容器中绘制图片
8145
- * @param triggerCallback
8146
- * @param context
8147
- * @param imgSrc
8148
- * @private
8122
+ value: /**
8123
+ * 向截图容器中绘制图片
8124
+ * @param triggerCallback
8125
+ * @param context
8126
+ * @param imgSrc
8127
+ * @private
8149
8128
  */ function drawPictures(triggerCallback, context, imgSrc) {
8150
8129
  var _this = this;
8151
8130
  var imgContainer = new Image();
@@ -8166,12 +8145,12 @@ var ScreenShot = /*#__PURE__*/ function() {
8166
8145
  },
8167
8146
  {
8168
8147
  key: "initScreenShot",
8169
- value: /**
8170
- * 初始化截图容器
8171
- * @param triggerCallback
8172
- * @param context
8173
- * @param screenShotContainer
8174
- * @private
8148
+ value: /**
8149
+ * 初始化截图容器
8150
+ * @param triggerCallback
8151
+ * @param context
8152
+ * @param screenShotContainer
8153
+ * @private
8175
8154
  */ function initScreenShot(triggerCallback, context, screenShotContainer) {
8176
8155
  if (triggerCallback != null) {
8177
8156
  // 加载成功,执行回调函数
@@ -8200,8 +8179,8 @@ var ScreenShot = /*#__PURE__*/ function() {
8200
8179
 
8201
8180
  var styles = modules_63b47c51$f;
8202
8181
  var TextArea$1 = BhdEnterInput.TextArea;
8203
- /*
8204
- 自定义remarkable的text解析规则
8182
+ /*
8183
+ 自定义remarkable的text解析规则
8205
8184
  */ var HTML_ESCAPE_TEST_RE = /[&<>"]/;
8206
8185
  var HTML_ESCAPE_REPLACE_RE = /[&<>"]/g;
8207
8186
  var HTML_REPLACEMENTS = {
@@ -8219,23 +8198,18 @@ function escapeHtml(str) {
8219
8198
  }
8220
8199
  return str;
8221
8200
  }
8222
- function simpleFingerprint(str) {
8223
- var result = 0;
8224
- var length = str.length;
8225
- for(var i = 0; i < length; i++){
8226
- result = (result << 5) - result + str.charCodeAt(i);
8227
- result |= 0; // 转换为32位整数
8228
- }
8229
- // 转换为正数并格式化为8位十六进制
8230
- return (result >>> 0).toString(16).padStart(8, "0");
8231
- }
8232
8201
  r.initialize({
8233
8202
  startOnLoad: false,
8234
8203
  theme: "default",
8235
8204
  securityLevel: "loose",
8236
8205
  flowchart: {
8206
+ useMaxWidth: true,
8237
8207
  htmlLabels: true,
8238
8208
  curve: "basis"
8209
+ },
8210
+ pie: {
8211
+ useMaxWidth: true,
8212
+ useWidth: 360
8239
8213
  }
8240
8214
  });
8241
8215
  var CustomerService = function(props) {
@@ -8304,15 +8278,15 @@ var CustomerService = function(props) {
8304
8278
  var msgStreamingCountRef = useRef(0);
8305
8279
  var isWheelRef = useRef(false);
8306
8280
  var getLisyFlagRef = useRef(0);
8307
- var _useState36 = _sliced_to_array(useState(false), 2), showMemaid = _useState36[0], setShowMemaid = _useState36[1]; //是否显示mermaid弹窗
8308
- var _useState37 = _sliced_to_array(useState(""), 2), memaidContent = _useState37[0], setMemaidContent = _useState37[1]; //mermaid内容
8281
+ var _useState36 = _sliced_to_array(useState(false), 2); _useState36[0]; _useState36[1]; //是否显示mermaid弹窗
8282
+ var _useState37 = _sliced_to_array(useState(""), 2); _useState37[0]; _useState37[1]; //mermaid内容
8309
8283
  var remarkable = new Remarkable({
8310
8284
  html: true,
8311
8285
  highlight: function highlight(str, lang) {
8312
8286
  // 特殊处理 mermaid 代码块
8313
- if (lang === "mermaid") {
8314
- return str; // 不高亮 mermaid 代码
8315
- }
8287
+ // if (lang === 'mermaid') {
8288
+ // return str; // 不高亮 mermaid 代码
8289
+ // }
8316
8290
  if (lang && HighlightJS.getLanguage(lang)) {
8317
8291
  try {
8318
8292
  return HighlightJS.highlight(lang, str).value;
@@ -8326,10 +8300,18 @@ var CustomerService = function(props) {
8326
8300
  });
8327
8301
  // 添加自定义规则来处理 mermaid 代码块
8328
8302
  remarkable.renderer.rules.fence_custom = {
8329
- mermaid: function mermaid(tokens, idx) {
8303
+ mermaid: function mermaid1(tokens, idx) {
8330
8304
  var token = tokens[idx];
8331
- var id = "mermaid_" + simpleFingerprint(token.content);
8332
- return '<span class="'.concat(styles.maskZoomBox, '"><pre class="').concat(styles.mermaid, '">').concat(token.content, '</pre><span class="').concat(styles.zoomBox, '" onclick="openViewMemaid(\'').concat(id, '\')"><svg viewBox="64 64 896 896" focusable="false" data-icon="zoom-in" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"></path></svg></span><span style="display:none" id="').concat(id, '">').concat(token.content, "</span></span>");
8305
+ try {
8306
+ if (r.parse(token.content)) {
8307
+ var id = "mermaid_" + toHashString(token.content);
8308
+ return '<span class="'.concat(styles.maskZoomBox, '"><pre class="').concat(styles.mermaid, '" id="').concat(id, '">').concat(token.content, '</pre><span class="').concat(styles.zoomBox, '" onclick="openViewMemaid(\'').concat(id, '\')"><svg viewBox="64 64 896 896" focusable="false" data-icon="zoom-in" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"></path></svg></span></span>');
8309
+ } else {
8310
+ return '<pre><code class="language-mermaid">'.concat(token.content, "</code></pre>");
8311
+ }
8312
+ } catch (error) {
8313
+ return '<pre><code class="language-mermaid">'.concat(token.content, "</code></pre>");
8314
+ }
8333
8315
  }
8334
8316
  };
8335
8317
  remarkable.renderer.rules.image = function(tokens, idx) {
@@ -8357,10 +8339,18 @@ var CustomerService = function(props) {
8357
8339
  };
8358
8340
  // 添加自定义规则来处理 mermaid 代码块
8359
8341
  newRemarkable.renderer.rules.fence_custom = {
8360
- mermaid: function mermaid(tokens, idx) {
8342
+ mermaid: function mermaid1(tokens, idx) {
8361
8343
  var token = tokens[idx];
8362
- var id = "mermaid_" + simpleFingerprint(token.content);
8363
- return '<span class="'.concat(styles.maskZoomBox, '"><pre class="').concat(styles.mermaid, '">').concat(token.content, '</pre><span class="').concat(styles.zoomBox, '" onclick="openViewMemaid(\'').concat(id, '\')"><svg viewBox="64 64 896 896" focusable="false" data-icon="zoom-in" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"></path></svg></span><span style="display:none" id="').concat(id, '">').concat(token.content, "</span></span>");
8344
+ try {
8345
+ if (r.parse(token.content)) {
8346
+ var id = "mermaid_" + toHashString(token.content);
8347
+ return '<span class="'.concat(styles.maskZoomBox, '"><pre class="').concat(styles.mermaid, '" id="').concat(id, '">').concat(token.content, '</pre><span class="').concat(styles.zoomBox, '" onclick="openViewMemaid(\'').concat(id, '\')"><svg viewBox="64 64 896 896" focusable="false" data-icon="zoom-in" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"></path></svg></span></span>');
8348
+ } else {
8349
+ return '<pre><code class="language-mermaid">'.concat(token.content, "</code></pre>");
8350
+ }
8351
+ } catch (error) {
8352
+ return '<pre><code class="language-mermaid">'.concat(token.content, "</code></pre>");
8353
+ }
8364
8354
  }
8365
8355
  };
8366
8356
  remarkable.renderer.rules.image = function(tokens, idx) {
@@ -8588,9 +8578,38 @@ var CustomerService = function(props) {
8588
8578
  setVisible(true);
8589
8579
  }
8590
8580
  function openViewMemaid(id) {
8581
+ var _document_querySelector, _svgDomClone;
8591
8582
  console.log("openViewMemaid");
8592
- setMemaidContent(id);
8593
- setShowMemaid(true);
8583
+ var svgDomClone = (_document_querySelector = document.querySelector("#".concat(id, " svg"))) === null || _document_querySelector === void 0 ? void 0 : _document_querySelector.cloneNode(true);
8584
+ if (!svgDomClone) {
8585
+ return;
8586
+ }
8587
+ svgDomClone.style.backgroundColor = "#fafafa";
8588
+ svgDomClone.style.width = "auto";
8589
+ svgDomClone.style.height = "auto";
8590
+ var viewBox = svgDomClone.getAttribute("viewBox");
8591
+ var _ref = _sliced_to_array(viewBox ? viewBox.split(" ").map(Number) : [
8592
+ 0,
8593
+ 0,
8594
+ 0,
8595
+ 0
8596
+ ], 4), x = _ref[0], y = _ref[1], width = _ref[2], height = _ref[3];
8597
+ x -= 10;
8598
+ y -= 10;
8599
+ width += 20;
8600
+ height += 20;
8601
+ svgDomClone.setAttribute("viewBox", "".concat(x, " ").concat(y, " ").concat(width, " ").concat(height));
8602
+ var svgString = ((_svgDomClone = svgDomClone) === null || _svgDomClone === void 0 ? void 0 : _svgDomClone.outerHTML.toString()) || "";
8603
+ var blob = new Blob([
8604
+ svgString
8605
+ ], {
8606
+ type: "image/svg+xml;charset=utf-8"
8607
+ });
8608
+ var blobUrl = URL.createObjectURL(blob);
8609
+ setViewBase64(blobUrl);
8610
+ setVisible(true);
8611
+ // setMemaidContent(id);
8612
+ // setShowMemaid(true);
8594
8613
  }
8595
8614
  window.openViewBase64 = openViewBase64;
8596
8615
  window.openViewMemaid = openViewMemaid;
@@ -8614,12 +8633,7 @@ var CustomerService = function(props) {
8614
8633
  ]);
8615
8634
  useEffect(function() {
8616
8635
  historyMessageListRef.current = historyMessageList;
8617
- setTimeout(function() {
8618
- r.init({
8619
- querySelector: ".".concat(styles.mermaid),
8620
- suppressErrors: true
8621
- }, ".".concat(styles.mermaid));
8622
- }, 500);
8636
+ renderMermaid(500);
8623
8637
  }, [
8624
8638
  historyMessageList
8625
8639
  ]);
@@ -8756,6 +8770,7 @@ var CustomerService = function(props) {
8756
8770
  if (!message) return;
8757
8771
  var codeConment = "";
8758
8772
  var i = 0;
8773
+ message = removeMermaidBlockComments(message);
8759
8774
  message.replaceAll(new RegExp(/```(?:.|\n)*?```/, "ig"), function(con) {
8760
8775
  i++;
8761
8776
  if (i == position) {
@@ -9652,6 +9667,10 @@ var CustomerService = function(props) {
9652
9667
  //发送结束
9653
9668
  finishedRef.current = true;
9654
9669
  setFinished(true);
9670
+ renderMermaid();
9671
+ setTimeout(function() {
9672
+ scrollToBottom();
9673
+ }, 500);
9655
9674
  }
9656
9675
  };
9657
9676
  //问题记录到实验报告中
@@ -10505,9 +10524,22 @@ var CustomerService = function(props) {
10505
10524
  // setRoomId(id);
10506
10525
  // }
10507
10526
  };
10527
+ var renderMermaid = function() {
10528
+ var duration = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 100;
10529
+ var t = setTimeout(function() {
10530
+ r.init({
10531
+ querySelector: ".".concat(styles.mermaid, ':not([data-processed="true"])'),
10532
+ suppressErrors: true
10533
+ }, ".".concat(styles.mermaid, ':not([data-processed="true"])'));
10534
+ clearTimeout(t);
10535
+ }, duration);
10536
+ };
10508
10537
  //渲染问答
10509
10538
  var renderQuestion = function() {
10510
10539
  function itemContent(index, item) {
10540
+ if (!item) {
10541
+ return null;
10542
+ }
10511
10543
  var _historyMessageList_findIndex;
10512
10544
  var i = (_historyMessageList_findIndex = historyMessageList.findIndex(function(x) {
10513
10545
  return x.id == item.id;
@@ -10546,6 +10578,8 @@ var CustomerService = function(props) {
10546
10578
  // let code = message.split("```");
10547
10579
  // code = code[1];
10548
10580
  // console.log(code,888888888);
10581
+ message = removeMermaidBlockComments(message);
10582
+ message = handleRenderSyntaxBlock(message, finishedRef.current);
10549
10583
  if (lastId == item.id && keyWordProblem != "") {
10550
10584
  //点击历史记录时,找到关键字,防止关键字和标签名重复
10551
10585
  // let key_sign = 'sign_'+new Date().getTime();+'sign';
@@ -10566,13 +10600,6 @@ var CustomerService = function(props) {
10566
10600
  var text = "<p class='".concat(styles.copyCode, " copyCodeFun' data-id=").concat(item.id, " data-position=").concat(position, ">\n <span class='").concat(styles.icon, ' 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(styles.icon, ' 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="copyCode">复制代码</span></p><pre');
10567
10601
  return text;
10568
10602
  });
10569
- // message = message.replaceAll(
10570
- // new RegExp(`<img`, "ig"),
10571
- // (i: any, index: any) => {
10572
- // let text = `<div class='${styles.a}'><img`;
10573
- // return text;
10574
- // }
10575
- // );
10576
10603
  if (item.sender == mid) {
10577
10604
  //只有引用和复制功能
10578
10605
  li = /*#__PURE__*/ jsxs(Fragment, {
@@ -10997,14 +11024,9 @@ var CustomerService = function(props) {
10997
11024
  align: "end",
10998
11025
  offset: showType === 3 ? 58 : showType === 4 ? 144 : 58
10999
11026
  },
11027
+ initialItemCount: 10,
11000
11028
  itemsRendered: function() {
11001
- var t = setTimeout(function() {
11002
- r.init({
11003
- querySelector: ".".concat(styles.mermaid),
11004
- suppressErrors: true
11005
- }, ".".concat(styles.mermaid));
11006
- clearTimeout(t);
11007
- }, 100);
11029
+ renderMermaid();
11008
11030
  },
11009
11031
  // startReached={(index) => {
11010
11032
  // console.log('atTopStateChange-startReached',index,lastIdRef.current)
@@ -11078,10 +11100,10 @@ var CustomerService = function(props) {
11078
11100
  },
11079
11101
  // context={{ loading }}
11080
11102
  firstItemIndex: firstItemIndex,
11081
- logLevel: 0,
11103
+ // logLevel={0}
11082
11104
  overscan: {
11083
- main: 500,
11084
- reverse: 200
11105
+ main: 1000,
11106
+ reverse: 1000
11085
11107
  },
11086
11108
  onScroll: function(e) {
11087
11109
  //生成答案过程中
@@ -12490,14 +12512,6 @@ var CustomerService = function(props) {
12490
12512
  resolve(viewBase64);
12491
12513
  });
12492
12514
  }
12493
- }),
12494
- showMemaid && memaidContent && /*#__PURE__*/ jsx(ViewMemaid, {
12495
- visible: showMemaid,
12496
- onCancel: function() {
12497
- return setShowMemaid(false);
12498
- },
12499
- className: "",
12500
- content: memaidContent
12501
12515
  })
12502
12516
  ]
12503
12517
  });