cnhis-design-vue 3.3.2-release.0 → 3.3.2-release.3

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 (255) hide show
  1. package/README.md +87 -87
  2. package/es/components/audio-sdk/index.d.ts +173 -146
  3. package/es/components/audio-sdk/src/Index.vue.d.ts +174 -147
  4. package/es/components/audio-sdk/src/Index.vue2.js +131 -53
  5. package/es/components/audio-sdk/src/audioSDK.d.ts +29 -26
  6. package/es/components/audio-sdk/src/audioSDK.js +123 -42
  7. package/es/components/audio-sdk/src/components/readyCountdown.vue.d.ts +31 -0
  8. package/es/components/audio-sdk/src/components/readyCountdown.vue.js +6 -0
  9. package/es/components/audio-sdk/src/components/readyCountdown.vue2.js +46 -0
  10. package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +138 -10
  11. package/es/components/audio-sdk/src/components/recording.vue.d.ts +139 -11
  12. package/es/components/audio-sdk/src/components/recording.vue2.js +318 -74
  13. package/es/components/audio-sdk/src/hooks/useChartAudioContext.d.ts +24 -0
  14. package/es/components/audio-sdk/src/hooks/useChartAudioContext.js +176 -0
  15. package/es/components/audio-sdk/src/svgs/Close.vue.js +26 -0
  16. package/es/components/audio-sdk/src/svgs/Continue.vue.js +20 -0
  17. package/es/components/audio-sdk/src/svgs/Enlarge.vue.js +20 -0
  18. package/es/components/audio-sdk/src/svgs/Pause.vue.js +20 -0
  19. package/es/components/audio-sdk/src/svgs/WaveView.vue.js +20 -0
  20. package/es/components/audio-sdk/src/svgs/Zoom.vue.js +27 -0
  21. package/es/components/audio-sdk/src/types/index.d.ts +42 -0
  22. package/es/components/audio-sdk/src/types/index.js +10 -0
  23. package/es/components/audio-sdk/src/utils/recordingModal.d.ts +9 -3
  24. package/es/components/audio-sdk/src/utils/recordingModal.js +57 -32
  25. package/es/components/audio-sdk/style/index.css +1 -1
  26. package/es/components/base-search/src/index.vue2.js +30 -18
  27. package/es/components/big-table/src/BigTable.vue2.js +191 -133
  28. package/es/components/big-table/src/components/NoData.vue2.js +16 -4
  29. package/es/components/big-table/src/components/edit-form/edit-date.js +12 -6
  30. package/es/components/big-table/src/components/edit-form/edit-input.js +8 -2
  31. package/es/components/big-table/src/components/edit-form/edit-select.js +21 -17
  32. package/es/components/big-table/src/components/edit-form/edit-time.js +11 -4
  33. package/es/components/big-table/src/components/input-button.vue2.js +8 -4
  34. package/es/components/big-table/src/hooks/useNestTable.js +18 -4
  35. package/es/components/big-table/src/hooks/useTableParse.js +16 -3
  36. package/es/components/body-select/src/index.vue2.js +24 -4
  37. package/es/components/button-print/index.d.ts +12 -4
  38. package/es/components/button-print/src/ButtonPrint.vue.d.ts +12 -4
  39. package/es/components/button-print/src/ButtonPrint.vue2.js +52 -11
  40. package/es/components/button-print/src/components/EditFormat.vue2.js +16 -8
  41. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -2
  42. package/es/components/button-print/src/components/IdentityVerification.vue2.js +104 -49
  43. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +7 -2
  44. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +244 -95
  45. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +5 -2
  46. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +92 -32
  47. package/es/components/button-print/src/components/Preview.vue.d.ts +5 -2
  48. package/es/components/button-print/src/components/Preview.vue2.js +14 -4
  49. package/es/components/button-print/src/utils/dialog.js +26 -8
  50. package/es/components/button-print/src/utils/print.d.ts +5 -5
  51. package/es/components/button-print/src/utils/print.js +108 -21
  52. package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +8 -2
  53. package/es/components/card-reader-sdk/src/utils/readHealthCard.js +16 -4
  54. package/es/components/card-reader-sdk-cn/src/henan/index.js +38 -11
  55. package/es/components/card-render/src/components/index.d.ts +23 -23
  56. package/es/components/classification/src/components/search-filter/index.vue2.js +24 -10
  57. package/es/components/classification/src/components/set-classification/index.vue2.js +24 -7
  58. package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
  59. package/es/components/classification/src/components/table-modal/index.vue2.js +324 -165
  60. package/es/components/classification/src/index.vue2.js +261 -69
  61. package/es/components/default-page/src/constants/index.js +144 -19
  62. package/es/components/default-page/src/index.vue2.js +8 -2
  63. package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +75 -51
  64. package/es/components/expand-field/src/components/FormItemPerson.vue2.js +46 -38
  65. package/es/components/expand-field/src/components/PersonModal.vue2.js +62 -50
  66. package/es/components/expand-field/src/components/form.vue2.js +783 -412
  67. package/es/components/expand-field/src/index.vue2.js +88 -22
  68. package/es/components/expand-field/src/utils/constant.js +88 -12
  69. package/es/components/fabric-chart/src/components/PopupMenu.js +32 -15
  70. package/es/components/fabric-chart/src/constants/index.js +72 -10
  71. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +18 -4
  72. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +8 -2
  73. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +32 -5
  74. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +8 -2
  75. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +63 -41
  76. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  77. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +5 -1
  78. package/es/components/fabric-chart/src/hooks/useCommon.js +24 -4
  79. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +4 -1
  80. package/es/components/fabric-chart/src/hooks/useDraw.js +19 -0
  81. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  82. package/es/components/fabric-chart/src/utils/index.js +2 -2
  83. package/es/components/field-editor/src/fields.js +232 -30
  84. package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
  85. package/es/components/field-set/src/FieldColor.vue2.js +88 -21
  86. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  87. package/es/components/field-set/src/FieldFilter.vue2.js +32 -16
  88. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  89. package/es/components/field-set/src/FieldSet.vue2.js +210 -57
  90. package/es/components/field-set/src/Index.vue2.js +40 -6
  91. package/es/components/field-set/src/TableStyle.vue2.js +48 -13
  92. package/es/components/field-set/src/components/condition.vue2.js +26 -10
  93. package/es/components/field-set/src/components/edit-dialog.vue2.js +148 -68
  94. package/es/components/field-set/src/components/edit-filter.vue2.js +24 -4
  95. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  96. package/es/components/field-set/src/components/table-row.vue2.js +123 -42
  97. package/es/components/field-set/src/constants/filter.js +328 -42
  98. package/es/components/field-set/src/constants/index.js +504 -64
  99. package/es/components/field-set/src/utils/index.js +1 -1
  100. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +91 -46
  101. package/es/components/form-config/src/constants/index.js +80 -11
  102. package/es/components/form-config/src/hooks/useLocale.js +240 -31
  103. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +8 -4
  104. package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +8 -4
  105. package/es/components/form-render/src/components/renderer/combination/tableCombination.js +8 -2
  106. package/es/components/form-render/src/components/renderer/input.js +3 -2
  107. package/es/components/form-render/src/components/renderer/radio_checkbox.js +8 -4
  108. package/es/components/form-render/src/components/renderer/remoteSearch.js +8 -2
  109. package/es/components/form-render/src/components/renderer/switch.js +24 -4
  110. package/es/components/form-render/src/components/renderer/textarea.js +5 -4
  111. package/es/components/form-render/src/utils/schema.js +26 -6
  112. package/es/components/iho-chat/src/Index.vue2.js +42 -38
  113. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +108 -33
  114. package/es/components/iho-chat/src/components/ChatFile.vue2.js +132 -90
  115. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +110 -48
  116. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +40 -20
  117. package/es/components/iho-chat/src/components/ChatMain.vue2.js +55 -23
  118. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +77 -45
  119. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +256 -208
  120. package/es/components/iho-chat/src/components/ChatSet.vue2.js +306 -208
  121. package/es/components/iho-chat/src/components/ContextMenu.js +50 -9
  122. package/es/components/iho-chat/src/components/MessageEvent.vue2.js +16 -4
  123. package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +8 -2
  124. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +104 -18
  125. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +67 -12
  126. package/es/components/iho-chat/src/components/SelectLabel.vue2.js +47 -43
  127. package/es/components/iho-chat/src/components/SiderList.vue2.js +68 -38
  128. package/es/components/iho-chat/src/components/Video.vue2.js +38 -11
  129. package/es/components/iho-chat/src/hooks/useVideo.js +15 -4
  130. package/es/components/iho-chat/src/utils/index.js +79 -14
  131. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +8 -2
  132. package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +40 -15
  133. package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue2.js +40 -15
  134. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  135. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +50 -20
  136. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +16 -8
  137. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +10 -3
  138. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +42 -15
  139. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  140. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +17 -3
  141. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +18 -12
  142. package/es/components/index.css +1 -1
  143. package/es/components/info-header/src/components/patientInfo/index.vue2.js +144 -25
  144. package/es/components/keyboard/src/Keyboard.vue2.js +20 -8
  145. package/es/components/keyboard/src/components/NumberPanel.vue2.js +51 -37
  146. package/es/components/map/src/Map.vue2.js +8 -4
  147. package/es/components/picture-clipper/src/PictureClipper.vue2.js +16 -8
  148. package/es/components/quick-search/src/index.vue2.js +176 -131
  149. package/es/components/recommend-search/src/components/BaseSearch.js +14 -8
  150. package/es/components/recommend-search/src/components/RecommendInput.vue2.js +28 -8
  151. package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +18 -5
  152. package/es/components/scale-view/src/ScaleView.vue2.js +17 -9
  153. package/es/components/scale-view/src/components/NoData.vue2.js +16 -4
  154. package/es/components/scale-view/src/components/formitem/r-cascader.js +8 -2
  155. package/es/components/scale-view/src/components/formitem/r-checkbox.js +24 -6
  156. package/es/components/scale-view/src/components/formitem/r-input.js +8 -2
  157. package/es/components/scale-view/src/components/formitem/r-map.js +8 -2
  158. package/es/components/scale-view/src/components/formitem/r-radio.js +24 -6
  159. package/es/components/scale-view/src/components/formitem/r-select.js +8 -2
  160. package/es/components/scale-view/src/components/formitem/r-sign.js +32 -11
  161. package/es/components/scale-view/src/components/formitem/standard-modal.js +16 -3
  162. package/es/components/scale-view/src/hooks/scaleview-computed.js +24 -5
  163. package/es/components/scale-view/src/hooks/scaleview-methods.js +16 -4
  164. package/es/components/scale-view/src/hooks/scaleview-submit.js +16 -3
  165. package/es/components/scale-view/src/hooks/scaleview-validate.js +40 -9
  166. package/es/components/search-cascader/src/SearchCascader.vue2.js +20 -14
  167. package/es/components/select-label/src/LabelFormContent.vue2.js +53 -21
  168. package/es/components/select-label/src/SelectLabel.vue2.js +81 -51
  169. package/es/components/select-label/src/components/label-classify.vue2.js +28 -11
  170. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +18 -5
  171. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +34 -8
  172. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +18 -5
  173. package/es/components/select-person/src/SelectPerson.vue2.js +214 -141
  174. package/es/components/select-person/src/SelectPersonType.vue2.js +127 -102
  175. package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +9 -2
  176. package/es/components/select-person/src/index.vue2.js +20 -7
  177. package/es/components/slider-tree/src/index.vue2.js +16 -3
  178. package/es/components/table-export-field/index.d.ts +1 -0
  179. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +1 -0
  180. package/es/components/table-export-field/src/components/ExportModal.vue2.js +187 -113
  181. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +147 -88
  182. package/es/components/table-export-field/src/index.vue.d.ts +1 -0
  183. package/es/components/table-export-field/src/index.vue2.js +28 -12
  184. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +32 -5
  185. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +264 -34
  186. package/es/components/table-filter/src/components/bi-filter/index.vue2.js +214 -135
  187. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +16 -3
  188. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +9 -2
  189. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +39 -6
  190. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +18 -5
  191. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +29 -18
  192. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +16 -3
  193. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +8 -2
  194. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +195 -130
  195. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +26 -7
  196. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +12 -6
  197. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +34 -8
  198. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +21 -8
  199. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +8 -4
  200. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +19 -6
  201. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +16 -3
  202. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +24 -10
  203. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1648 -207
  204. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +8 -2
  205. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +16 -3
  206. package/es/components/table-filter/src/tool/baseOptions.js +144 -19
  207. package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +32 -16
  208. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +22 -2
  209. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +8 -4
  210. package/es/components/vod-chunk-upload/src/vod-upload-modal.js +16 -8
  211. package/es/env.d.ts +25 -25
  212. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  213. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  214. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  215. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  216. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  217. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  218. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  219. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  220. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  221. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  222. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  223. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  224. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  225. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  226. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  227. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  228. package/es/shared/assets/img/failure.png.js +1 -1
  229. package/es/shared/assets/img/no-permission.png.js +1 -1
  230. package/es/shared/assets/img/nodata.png.js +1 -1
  231. package/es/shared/assets/img/notfound.png.js +1 -1
  232. package/es/shared/assets/img/qr.png.js +1 -1
  233. package/es/shared/assets/img/success.png.js +1 -1
  234. package/es/shared/assets/img/table_style_2.png.js +1 -1
  235. package/es/shared/assets/img/video.png.js +1 -1
  236. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  237. package/es/shared/assets/img/xb_big.png.js +1 -1
  238. package/es/shared/assets/img/xb_small.png.js +1 -1
  239. package/es/shared/hooks/selectHooks/useSelectAllowModify.js +2 -2
  240. package/es/shared/package.json.js +1 -1
  241. package/package.json +2 -2
  242. package/es/components/audio-sdk/src/components/recording-modal.vue.js +0 -6
  243. package/es/components/audio-sdk/src/components/recording-modal.vue2.js +0 -40
  244. package/es/components/audio-sdk/src/utils/recorder/fft.d.ts +0 -4
  245. package/es/components/audio-sdk/src/utils/recorder/mp3-engine.d.ts +0 -4
  246. package/es/components/audio-sdk/src/utils/recorder/mp3.d.ts +0 -4
  247. package/es/components/audio-sdk/src/utils/recorder/recorder.d.ts +0 -4
  248. package/es/components/audio-sdk/src/utils/recorder/wave.d.ts +0 -4
  249. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  250. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  251. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  252. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  253. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  254. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  255. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -11,7 +11,6 @@ import { union, unionBy, remove, intersection, last, isArray, uniqBy, cloneDeep,
11
11
  import 'trtc-sdk-v5';
12
12
  import { useSearchUserList } from '../hooks/useSearchUserList.js';
13
13
 
14
- var _a, _b;
15
14
  const _hoisted_1 = {
16
15
  class: "iho-chat-dialog__content iho-chat-add-wrapper"
17
16
  };
@@ -19,7 +18,14 @@ const _hoisted_2 = {
19
18
  key: 0,
20
19
  class: "input-box"
21
20
  };
22
- const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", null, ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.34")) || "\u7FA4\u540D\u79F0\uFF1A", -1);
21
+ const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", null, function() {
22
+ var _a, _b, _c;
23
+ try {
24
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.34")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.34")) || "\u7FA4\u540D\u79F0\uFF1A";
25
+ } catch (e) {
26
+ return "\u7FA4\u540D\u79F0\uFF1A";
27
+ }
28
+ }(), -1);
23
29
  const _hoisted_4 = {
24
30
  class: "transfer-box"
25
31
  };
@@ -90,7 +96,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
90
96
  props: {
91
97
  title: {
92
98
  type: String,
93
- default: ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.42")) || "\u6DFB\u52A0\u65B0\u6210\u5458"
99
+ default: function() {
100
+ var _a, _b, _c;
101
+ try {
102
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.42")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.42")) || "\u6DFB\u52A0\u65B0\u6210\u5458";
103
+ } catch (e) {
104
+ return "\u6DFB\u52A0\u65B0\u6210\u5458";
105
+ }
106
+ }()
94
107
  },
95
108
  mode: {
96
109
  type: String,
@@ -156,8 +169,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
156
169
  });
157
170
  const _disabledIds = computed(() => props.mode === "relay" ? [] : union(props.disabledIds, [state.userInfo.id]));
158
171
  const sessionList = computed(() => {
159
- var _a2;
160
- if (!((_a2 = state.sessionList) == null ? void 0 : _a2.length))
172
+ var _a;
173
+ if (!((_a = state.sessionList) == null ? void 0 : _a.length))
161
174
  return [];
162
175
  return listSort(state.sessionList).map((session) => {
163
176
  return {
@@ -188,8 +201,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
188
201
  set(value) {
189
202
  const noDisabledOptions = [];
190
203
  userList.value.forEach((option) => {
191
- var _a2;
192
- if (option.type == 1 && ((_a2 = option.children) == null ? void 0 : _a2.length)) {
204
+ var _a;
205
+ if (option.type == 1 && ((_a = option.children) == null ? void 0 : _a.length)) {
193
206
  const users = getAllUser(option.children || []).filter((option2) => !getDisabled(option2.id));
194
207
  console.log("users", users.length);
195
208
  noDisabledOptions.push(...users);
@@ -211,22 +224,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
211
224
  });
212
225
  const checkedSourceIds = computed({
213
226
  get() {
214
- var _a2, _b2, _c;
215
- return (_c = (_b2 = (_a2 = userList.value) == null ? void 0 : _a2.filter((user) => {
216
- var _a3;
217
- if (user.type == 1 && ((_a3 = user.children) == null ? void 0 : _a3.length)) {
227
+ var _a, _b, _c;
228
+ return (_c = (_b = (_a = userList.value) == null ? void 0 : _a.filter((user) => {
229
+ var _a2;
230
+ if (user.type == 1 && ((_a2 = user.children) == null ? void 0 : _a2.length)) {
218
231
  const ids = getAllUser(user.children || []).map((user2) => user2.id).filter((id) => !getDisabled(id));
219
232
  return intersection(ids, checkedIds.value).length === ids.length;
220
233
  } else {
221
234
  return checkedIds.value.includes(user.id);
222
235
  }
223
- })) == null ? void 0 : _b2.map((user) => user.id)) != null ? _c : [];
236
+ })) == null ? void 0 : _b.map((user) => user.id)) != null ? _c : [];
224
237
  },
225
238
  set(value) {
226
239
  userList.value.forEach((user) => {
227
- var _a2;
240
+ var _a;
228
241
  const currentUsers = [];
229
- if (user.type == 1 && ((_a2 = user.children) == null ? void 0 : _a2.length)) {
242
+ if (user.type == 1 && ((_a = user.children) == null ? void 0 : _a.length)) {
230
243
  currentUsers.push(...getAllUser(user.children || []).filter((option) => !getDisabled(option.id)));
231
244
  } else {
232
245
  currentUsers.push(user);
@@ -243,8 +256,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
243
256
  }
244
257
  });
245
258
  const currentTabKey = computed(() => {
246
- var _a2;
247
- return currentTab.value.length > 0 ? (_a2 = last(currentTab.value)) == null ? void 0 : _a2.key : "";
259
+ var _a;
260
+ return currentTab.value.length > 0 ? (_a = last(currentTab.value)) == null ? void 0 : _a.key : "";
248
261
  });
249
262
  const showAllCheckbox = computed(() => !(props.mode !== "relay" && ["group", "org"].includes(currentTabKey.value) && currentTab.value.length === 1));
250
263
  getOrgList();
@@ -266,8 +279,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
266
279
  }
267
280
  function setUserTotal(tree) {
268
281
  tree.forEach((item) => {
269
- var _a2;
270
- if (item.type == 1 && ((_a2 = item.children) == null ? void 0 : _a2.length)) {
282
+ var _a;
283
+ if (item.type == 1 && ((_a = item.children) == null ? void 0 : _a.length)) {
271
284
  item.total = getAllUser(item.children).length;
272
285
  setUserTotal(item.children);
273
286
  } else if (item.type == 2) {
@@ -276,15 +289,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
276
289
  });
277
290
  }
278
291
  function getDisabled(id) {
279
- var _a2, _b2;
292
+ var _a, _b;
280
293
  if (currentTabKey.value === "group") {
281
294
  if (props.mode === "relay")
282
295
  return false;
283
296
  if (currentTab.value.length === 1)
284
297
  return true;
285
- return (_a2 = _disabledIds.value) == null ? void 0 : _a2.includes(id);
298
+ return (_a = _disabledIds.value) == null ? void 0 : _a.includes(id);
286
299
  }
287
- return (_b2 = _disabledIds.value) == null ? void 0 : _b2.includes(id);
300
+ return (_b = _disabledIds.value) == null ? void 0 : _b.includes(id);
288
301
  }
289
302
  async function handleClickCheckbox(option) {
290
303
  const _currentTabKey = unref(currentTabKey);
@@ -389,8 +402,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
389
402
  function getAllUser(tree) {
390
403
  const users = [];
391
404
  tree.forEach((item) => {
392
- var _a2;
393
- if (item.type == 1 && ((_a2 = item.children) == null ? void 0 : _a2.length)) {
405
+ var _a;
406
+ if (item.type == 1 && ((_a = item.children) == null ? void 0 : _a.length)) {
394
407
  users.push(...getAllUser(item.children));
395
408
  } else if (item.type == 2) {
396
409
  users.push(item);
@@ -468,7 +481,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
468
481
  checkedOptions.value = isArray(props.defaultValue) && props.defaultValue.length ? cloneDeep(props.defaultValue) : [];
469
482
  });
470
483
  return (_ctx, _cache) => {
471
- var _a2, _b2;
472
484
  return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(NModal), {
473
485
  preset: "dialog",
474
486
  title: __props.title,
@@ -478,8 +490,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
478
490
  class: "iho-chat-dialog",
479
491
  show: showModal.value,
480
492
  "onUpdate:show": _cache[5] || (_cache[5] = ($event) => showModal.value = $event),
481
- "negative-text": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.28")) || "\u53D6\u6D88",
482
- "positive-text": ((_b2 = window.getLanguageByCode) == null ? void 0 : _b2.call(window, "10010.1.27")) || "\u786E\u5B9A",
493
+ "negative-text": function() {
494
+ var _a, _b, _c;
495
+ try {
496
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
497
+ } catch (e) {
498
+ return "\u53D6\u6D88";
499
+ }
500
+ }(),
501
+ "positive-text": function() {
502
+ var _a, _b, _c;
503
+ try {
504
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A";
505
+ } catch (e) {
506
+ return "\u786E\u5B9A";
507
+ }
508
+ }(),
483
509
  "display-directive": "show",
484
510
  "positive-button-props": {
485
511
  disabled: unref(btnDisabled)
@@ -487,17 +513,31 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
487
513
  onPositiveClick: handlePositiveClick
488
514
  }, {
489
515
  default: withCtx(() => {
490
- var _a3, _b3, _c, _d, _e, _f, _g, _h, _i;
516
+ var _a, _b;
491
517
  return [createElementVNode("div", _hoisted_1, [__props.mode === "create" ? (openBlock(), createElementBlock("div", _hoisted_2, [_hoisted_3, createVNode(unref(NInput), {
492
518
  clearable: "",
493
- placeholder: ((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.35")) || "\u53D6\u4E2A\u7FA4\u540D\u79F0\u65B9\u4FBF\u540E\u7EED\u641C\u7D22",
519
+ placeholder: function() {
520
+ var _a2, _b2, _c;
521
+ try {
522
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.35")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.35")) || "\u53D6\u4E2A\u7FA4\u540D\u79F0\u65B9\u4FBF\u540E\u7EED\u641C\u7D22";
523
+ } catch (e) {
524
+ return "\u53D6\u4E2A\u7FA4\u540D\u79F0\u65B9\u4FBF\u540E\u7EED\u641C\u7D22";
525
+ }
526
+ }(),
494
527
  value: groupName.value,
495
528
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => groupName.value = $event),
496
529
  valueModifiers: {
497
530
  trim: true
498
531
  }
499
532
  }, null, 8, ["value"])])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_4, [createElementVNode("div", _hoisted_5, [createVNode(unref(NInput), {
500
- placeholder: ((_b3 = window.getLanguageByCode) == null ? void 0 : _b3.call(window, "10010.1.36")) || "\u641C\u7D22",
533
+ placeholder: function() {
534
+ var _a2, _b2, _c;
535
+ try {
536
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.36")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.36")) || "\u641C\u7D22";
537
+ } catch (e) {
538
+ return "\u641C\u7D22";
539
+ }
540
+ }(),
501
541
  clearable: "",
502
542
  value: keyword.value,
503
543
  "onUpdate:value": [_cache[1] || (_cache[1] = ($event) => keyword.value = $event), handleSearchInput],
@@ -543,7 +583,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
543
583
  component: unref(ChevronBackOutline)
544
584
  }, null, 8, ["component"])]),
545
585
  _: 1
546
- }), createElementVNode("h4", null, toDisplayString((_c = unref(last)(currentTab.value)) == null ? void 0 : _c.label), 1)])) : createCommentVNode("v-if", true), currentTab.value.length > 0 && ((_d = unref(last)(currentTab.value)) == null ? void 0 : _d.key) === "org" && breadcrumbList.value.length > 0 ? (openBlock(), createBlock(unref(NBreadcrumb), {
586
+ }), createElementVNode("h4", null, toDisplayString((_a = unref(last)(currentTab.value)) == null ? void 0 : _a.label), 1)])) : createCommentVNode("v-if", true), currentTab.value.length > 0 && ((_b = unref(last)(currentTab.value)) == null ? void 0 : _b.key) === "org" && breadcrumbList.value.length > 0 ? (openBlock(), createBlock(unref(NBreadcrumb), {
547
587
  key: 2,
548
588
  ref_key: "breadcrumbRef",
549
589
  ref: breadcrumbRef,
@@ -562,7 +602,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
562
602
  }, 512)) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_10, [unref(userList).length > 0 ? (openBlock(), createElementBlock(Fragment, {
563
603
  key: 0
564
604
  }, [withDirectives(createVNode(unref(NCheckbox), {
565
- label: ((_e = window.getLanguageByCode) == null ? void 0 : _e.call(window, "10010.1.37")) || "\u5168\u9009",
605
+ label: function() {
606
+ var _a2, _b2, _c;
607
+ try {
608
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.37")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.37")) || "\u5168\u9009";
609
+ } catch (e) {
610
+ return "\u5168\u9009";
611
+ }
612
+ }(),
566
613
  checked: unref(allChecked),
567
614
  "onUpdate:checked": _cache[2] || (_cache[2] = ($event) => isRef(allChecked) ? allChecked.value = $event : null)
568
615
  }, null, 8, ["checked"]), [[vShow, unref(showAllCheckbox)]]), unref(currentTabKey) === "org" && currentTab.value.length === 1 ? (openBlock(), createElementBlock("div", _hoisted_11, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(userList), (option) => {
@@ -623,7 +670,28 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
623
670
  }, 1032, ["value", "disabled", "onClick"]);
624
671
  }), 128))]),
625
672
  _: 1
626
- }, 8, ["value"]))], 64)) : (openBlock(), createElementBlock("div", _hoisted_15, ((_f = window.getLanguageByCode) == null ? void 0 : _f.call(window, "10010.1.38")) || "\u627E\u4E0D\u5230\u76F8\u5173\u7ED3\u679C"))])]), createElementVNode("div", _hoisted_16, [createElementVNode("span", null, (((_g = window.getLanguageByCode) == null ? void 0 : _g.call(window, "10010.1.39")) || "\u5DF2\u9009\u62E9") + toDisplayString(unref(checkedIds).length) + (((_h = window.getLanguageByCode) == null ? void 0 : _h.call(window, "10010.1.40")) || "\u4EBA"), 1), createElementVNode("div", _hoisted_17, [(openBlock(true), createElementBlock(Fragment, null, renderList(checkedOptions.value, (option) => {
673
+ }, 8, ["value"]))], 64)) : (openBlock(), createElementBlock("div", _hoisted_15, function() {
674
+ var _a2, _b2, _c;
675
+ try {
676
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.38")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.38")) || "\u627E\u4E0D\u5230\u76F8\u5173\u7ED3\u679C";
677
+ } catch (e) {
678
+ return "\u627E\u4E0D\u5230\u76F8\u5173\u7ED3\u679C";
679
+ }
680
+ }()))])]), createElementVNode("div", _hoisted_16, [createElementVNode("span", null, function() {
681
+ var _a2, _b2, _c;
682
+ try {
683
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.39")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.39")) || "\u5DF2\u9009\u62E9";
684
+ } catch (e) {
685
+ return "\u5DF2\u9009\u62E9";
686
+ }
687
+ }() + toDisplayString(unref(checkedIds).length) + function() {
688
+ var _a2, _b2, _c;
689
+ try {
690
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.40")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.40")) || "\u4EBA";
691
+ } catch (e) {
692
+ return "\u4EBA";
693
+ }
694
+ }(), 1), createElementVNode("div", _hoisted_17, [(openBlock(true), createElementBlock(Fragment, null, renderList(checkedOptions.value, (option) => {
627
695
  return openBlock(), createBlock(unref(NTag), {
628
696
  key: option.id,
629
697
  bordered: false,
@@ -645,7 +713,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
645
713
  value: remark.value,
646
714
  "onUpdate:value": _cache[4] || (_cache[4] = ($event) => remark.value = $event),
647
715
  type: "textarea",
648
- placeholder: ((_i = window.getLanguageByCode) == null ? void 0 : _i.call(window, "10010.1.41")) || "\u7559\u8A00",
716
+ placeholder: function() {
717
+ var _a2, _b2, _c;
718
+ try {
719
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.41")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.41")) || "\u7559\u8A00";
720
+ } catch (e) {
721
+ return "\u7559\u8A00";
722
+ }
723
+ }(),
649
724
  autosize: {
650
725
  minRows: 2,
651
726
  maxRows: 2
@@ -122,13 +122,26 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
122
122
  function formatImageList(data) {
123
123
  const result = {};
124
124
  data.forEach((item) => {
125
- var _a, _b;
126
125
  const date = new Date(item.sendTime);
127
126
  let label = format(date, "yyyy\u5E74MM\u6708");
128
127
  if (isSameWeek(date, new Date())) {
129
- label = ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.47")) || "\u672C\u5468";
128
+ label = function() {
129
+ var _a, _b, _c;
130
+ try {
131
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.47")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.47")) || "\u672C\u5468";
132
+ } catch (e) {
133
+ return "\u672C\u5468";
134
+ }
135
+ }();
130
136
  } else if (isSameMonth(date, new Date())) {
131
- label = ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.404")) || "\u672C\u6708";
137
+ label = function() {
138
+ var _a, _b, _c;
139
+ try {
140
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.404")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.404")) || "\u672C\u6708";
141
+ } catch (e) {
142
+ return "\u672C\u6708";
143
+ }
144
+ }();
132
145
  }
133
146
  if (!result[label]) {
134
147
  result[label] = [];
@@ -149,10 +162,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
149
162
  });
150
163
  handleSearch();
151
164
  }
152
- const title = computed(() => {
153
- var _a, _b;
154
- return props.type === "image" ? ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.49")) || "\u804A\u5929\u56FE\u7247" : ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.50")) || "\u804A\u5929\u6587\u4EF6";
155
- });
165
+ const title = computed(() => props.type === "image" ? function() {
166
+ var _a, _b, _c;
167
+ try {
168
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.49")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.49")) || "\u804A\u5929\u56FE\u7247";
169
+ } catch (e) {
170
+ return "\u804A\u5929\u56FE\u7247";
171
+ }
172
+ }() : function() {
173
+ var _a, _b, _c;
174
+ try {
175
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.50")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.50")) || "\u804A\u5929\u6587\u4EF6";
176
+ } catch (e) {
177
+ return "\u804A\u5929\u6587\u4EF6";
178
+ }
179
+ }());
156
180
  watch(() => props.visible, (value) => {
157
181
  if (!value) {
158
182
  keyword.value = "";
@@ -169,94 +193,112 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
169
193
  "trap-focus": false,
170
194
  class: "iho-chat-dialog"
171
195
  }, {
172
- default: withCtx(() => {
173
- var _a;
174
- return [withDirectives(createElementVNode("div", {
175
- class: "iho-chat-dialog__content iho-chat-image-wrapper",
176
- ref_key: "imageRef",
177
- ref: imageRef
178
- }, [createVNode(unref(NImageGroup), {
179
- "show-toolbar-tooltip": ""
180
- }, {
181
- default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(imageList.value, (item) => {
182
- return openBlock(), createElementBlock("div", {
183
- class: "image-item",
184
- key: item.label
185
- }, [createElementVNode("span", _hoisted_1, toDisplayString(item.label), 1), createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (image) => {
186
- return openBlock(), createBlock(unref(NImage), {
187
- key: image,
188
- width: "80",
189
- height: "80",
190
- src: unref(getFileDetails)(image, "fileUrl")
191
- }, null, 8, ["src"]);
192
- }), 128))])]);
193
- }), 128))]),
194
- _: 1
195
- })], 512), [[vShow, __props.type === "image"]]), withDirectives(createElementVNode("div", {
196
- class: "iho-chat-dialog__content iho-chat-file-wrapper",
197
- style: normalizeStyle(unref(cssVars))
198
- }, [createVNode(unref(NInput), {
199
- clearable: "",
200
- placeholder: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.43")) || "\u641C\u7D22\u6587\u4EF6",
201
- value: keyword.value,
202
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => keyword.value = $event),
203
- valueModifiers: {
204
- trim: true
205
- },
206
- onInput: unref(handleInput)
207
- }, {
208
- prefix: withCtx(() => [createVNode(unref(NIcon), {
209
- component: unref(SearchOutline)
210
- }, null, 8, ["component"])]),
211
- _: 1
212
- }, 8, ["value", "onInput"]), createElementVNode("div", {
213
- class: "file-list-box",
214
- ref_key: "fileRef",
215
- ref: fileRef
216
- }, [(openBlock(true), createElementBlock(Fragment, null, renderList(fileList.value, (item, i) => {
217
- var _a2;
196
+ default: withCtx(() => [withDirectives(createElementVNode("div", {
197
+ class: "iho-chat-dialog__content iho-chat-image-wrapper",
198
+ ref_key: "imageRef",
199
+ ref: imageRef
200
+ }, [createVNode(unref(NImageGroup), {
201
+ "show-toolbar-tooltip": ""
202
+ }, {
203
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(imageList.value, (item) => {
218
204
  return openBlock(), createElementBlock("div", {
219
- class: "file-item",
220
- key: i
221
- }, [createElementVNode("span", _hoisted_3, toDisplayString(unref(getFileType)(item.content.msg)), 1), createElementVNode("div", _hoisted_4, [createElementVNode("span", _hoisted_5, toDisplayString(unref(getFileDetails)(item.content.msg, "fileName")), 1), createElementVNode("span", _hoisted_6, toDisplayString(unref(getDetail)(item, true)), 1)]), createElementVNode("div", _hoisted_7, [createVNode(ChatAdd, {
222
- title: ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.44")) || "\u8F6C\u53D1\u6D88\u606F",
223
- mode: "relay",
224
- onComfirm: (params) => unref(relayMessage)({
225
- contents: [item.content],
226
- checkedIds: params.checkedIds,
227
- remark: params.remark
228
- })
229
- }, {
230
- trigger: withCtx(() => [createVNode(unref(NTooltip), {
231
- "show-arrow": false
232
- }, {
233
- trigger: withCtx(() => [createVNode(unref(NIcon), {
234
- size: 16,
235
- component: unref(OpenOutline)
236
- }, null, 8, ["component"])]),
237
- default: withCtx(() => {
238
- var _a3;
239
- return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.45")) || "\u8F6C\u53D1")];
240
- }),
241
- _: 1
242
- })]),
243
- _: 2
244
- }, 1032, ["onComfirm"]), createVNode(unref(NTooltip), {
205
+ class: "image-item",
206
+ key: item.label
207
+ }, [createElementVNode("span", _hoisted_1, toDisplayString(item.label), 1), createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (image) => {
208
+ return openBlock(), createBlock(unref(NImage), {
209
+ key: image,
210
+ width: "80",
211
+ height: "80",
212
+ src: unref(getFileDetails)(image, "fileUrl")
213
+ }, null, 8, ["src"]);
214
+ }), 128))])]);
215
+ }), 128))]),
216
+ _: 1
217
+ })], 512), [[vShow, __props.type === "image"]]), withDirectives(createElementVNode("div", {
218
+ class: "iho-chat-dialog__content iho-chat-file-wrapper",
219
+ style: normalizeStyle(unref(cssVars))
220
+ }, [createVNode(unref(NInput), {
221
+ clearable: "",
222
+ placeholder: function() {
223
+ var _a, _b, _c;
224
+ try {
225
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.43")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.43")) || "\u641C\u7D22\u6587\u4EF6";
226
+ } catch (e) {
227
+ return "\u641C\u7D22\u6587\u4EF6";
228
+ }
229
+ }(),
230
+ value: keyword.value,
231
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => keyword.value = $event),
232
+ valueModifiers: {
233
+ trim: true
234
+ },
235
+ onInput: unref(handleInput)
236
+ }, {
237
+ prefix: withCtx(() => [createVNode(unref(NIcon), {
238
+ component: unref(SearchOutline)
239
+ }, null, 8, ["component"])]),
240
+ _: 1
241
+ }, 8, ["value", "onInput"]), createElementVNode("div", {
242
+ class: "file-list-box",
243
+ ref_key: "fileRef",
244
+ ref: fileRef
245
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(fileList.value, (item, i) => {
246
+ return openBlock(), createElementBlock("div", {
247
+ class: "file-item",
248
+ key: i
249
+ }, [createElementVNode("span", _hoisted_3, toDisplayString(unref(getFileType)(item.content.msg)), 1), createElementVNode("div", _hoisted_4, [createElementVNode("span", _hoisted_5, toDisplayString(unref(getFileDetails)(item.content.msg, "fileName")), 1), createElementVNode("span", _hoisted_6, toDisplayString(unref(getDetail)(item, true)), 1)]), createElementVNode("div", _hoisted_7, [createVNode(ChatAdd, {
250
+ title: function() {
251
+ var _a, _b, _c;
252
+ try {
253
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.44")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.44")) || "\u8F6C\u53D1\u6D88\u606F";
254
+ } catch (e) {
255
+ return "\u8F6C\u53D1\u6D88\u606F";
256
+ }
257
+ }(),
258
+ mode: "relay",
259
+ onComfirm: (params) => unref(relayMessage)({
260
+ contents: [item.content],
261
+ checkedIds: params.checkedIds,
262
+ remark: params.remark
263
+ })
264
+ }, {
265
+ trigger: withCtx(() => [createVNode(unref(NTooltip), {
245
266
  "show-arrow": false
246
267
  }, {
247
268
  trigger: withCtx(() => [createVNode(unref(NIcon), {
248
269
  size: 16,
249
- component: unref(DownloadOutline),
250
- onClick: () => unref(downloadFile)(item.content.fileUr, item.content.msg)
251
- }, null, 8, ["component", "onClick"])]),
252
- default: withCtx(() => {
253
- var _a3;
254
- return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.102")) || "\u4E0B\u8F7D")];
255
- }),
256
- _: 2
257
- }, 1024)])]);
258
- }), 128))], 512)], 4), [[vShow, __props.type !== "image"]])];
259
- }),
270
+ component: unref(OpenOutline)
271
+ }, null, 8, ["component"])]),
272
+ default: withCtx(() => [createTextVNode(function() {
273
+ var _a, _b, _c;
274
+ try {
275
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.45")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.45")) || "\u8F6C\u53D1";
276
+ } catch (e) {
277
+ return "\u8F6C\u53D1";
278
+ }
279
+ }())]),
280
+ _: 1
281
+ })]),
282
+ _: 2
283
+ }, 1032, ["onComfirm"]), createVNode(unref(NTooltip), {
284
+ "show-arrow": false
285
+ }, {
286
+ trigger: withCtx(() => [createVNode(unref(NIcon), {
287
+ size: 16,
288
+ component: unref(DownloadOutline),
289
+ onClick: () => unref(downloadFile)(item.content.fileUr, item.content.msg)
290
+ }, null, 8, ["component", "onClick"])]),
291
+ default: withCtx(() => [createTextVNode(function() {
292
+ var _a, _b, _c;
293
+ try {
294
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.102")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.102")) || "\u4E0B\u8F7D";
295
+ } catch (e) {
296
+ return "\u4E0B\u8F7D";
297
+ }
298
+ }())]),
299
+ _: 2
300
+ }, 1024)])]);
301
+ }), 128))], 512)], 4), [[vShow, __props.type !== "image"]])]),
260
302
  _: 1
261
303
  }, 8, ["title"]);
262
304
  };