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
@@ -50,7 +50,6 @@ const _hoisted_11 = ["innerHTML"];
50
50
  var _sfc_main = /* @__PURE__ */ defineComponent({
51
51
  __name: "SiderList",
52
52
  setup(__props) {
53
- var _a, _b, _c;
54
53
  const filterKey = {
55
54
  all: "all",
56
55
  unread: "unread",
@@ -60,13 +59,34 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
60
59
  const flexWidth = ref(300);
61
60
  const listBoxRef = ref();
62
61
  const filterListByTag = ref([{
63
- label: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.123")) || "\u5168\u90E8",
62
+ label: function() {
63
+ var _a, _b, _c;
64
+ try {
65
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.123")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.123")) || "\u5168\u90E8";
66
+ } catch (e) {
67
+ return "\u5168\u90E8";
68
+ }
69
+ }(),
64
70
  key: filterKey.all
65
71
  }, {
66
- label: ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.124")) || "\u672A\u8BFB",
72
+ label: function() {
73
+ var _a, _b, _c;
74
+ try {
75
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.124")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.124")) || "\u672A\u8BFB";
76
+ } catch (e) {
77
+ return "\u672A\u8BFB";
78
+ }
79
+ }(),
67
80
  key: filterKey.unread
68
81
  }, {
69
- label: ((_c = window.getLanguageByCode) == null ? void 0 : _c.call(window, "10010.1.77")) || "\u7ED3\u675F",
82
+ label: function() {
83
+ var _a, _b, _c;
84
+ try {
85
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.77")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.77")) || "\u7ED3\u675F";
86
+ } catch (e) {
87
+ return "\u7ED3\u675F";
88
+ }
89
+ }(),
70
90
  key: filterKey.ended
71
91
  }]);
72
92
  const contextmenuRef = ref();
@@ -108,22 +128,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
108
128
  currentFilterKey.value = key;
109
129
  if (key === filterKey.unread) {
110
130
  unreadSessionKeys = (sessionList.value.filter((session) => {
111
- var _a2;
112
- return ((_a2 = session.unreadNum) != null ? _a2 : 0) > 0;
131
+ var _a;
132
+ return ((_a = session.unreadNum) != null ? _a : 0) > 0;
113
133
  }) || []).map((session) => session.sessionKey);
114
134
  }
115
135
  }
116
136
  function showSession(item, currentKey = unref(currentFilterKey)) {
117
- var _a2;
137
+ var _a;
118
138
  if (currentKey === filterKey.all)
119
139
  return true;
120
140
  if (currentKey === filterKey.unread)
121
- return unreadSessionKeys.includes(item.sessionKey) || ((_a2 = item.unreadNum) != null ? _a2 : 0) > 0;
141
+ return unreadSessionKeys.includes(item.sessionKey) || ((_a = item.unreadNum) != null ? _a : 0) > 0;
122
142
  if (currentKey === filterKey.ended)
123
143
  return item.status === STATUS.ENDED;
124
144
  }
125
145
  async function handleContextmenu(event, id) {
126
- var _a2, _b2, _c2, _d, _e;
146
+ var _a, _b, _c, _d, _e;
127
147
  sessionId.value = id;
128
148
  showMenu.value = true;
129
149
  await nextTick();
@@ -136,11 +156,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
136
156
  height = 0,
137
157
  left = 0,
138
158
  top = 0
139
- } = ((_a2 = listBoxRef.value) == null ? void 0 : _a2.getBoundingClientRect()) || {};
159
+ } = ((_a = listBoxRef.value) == null ? void 0 : _a.getBoundingClientRect()) || {};
140
160
  const {
141
161
  width: contextmenuWidth = 100,
142
162
  height: contextmenuHeight = 80
143
- } = ((_c2 = (_b2 = contextmenuRef.value) == null ? void 0 : _b2.$el) == null ? void 0 : _c2.getBoundingClientRect()) || {};
163
+ } = ((_c = (_b = contextmenuRef.value) == null ? void 0 : _b.$el) == null ? void 0 : _c.getBoundingClientRect()) || {};
144
164
  const scrollTop = (_e = (_d = listBoxRef.value) == null ? void 0 : _d.scrollTop) != null ? _e : 0;
145
165
  const offset = 5;
146
166
  const style = {};
@@ -203,8 +223,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
203
223
  }
204
224
  }
205
225
  function handleClickoutside(e) {
206
- var _a2, _b2, _c2, _d, _e;
207
- const panelInstEl = (_c2 = (_b2 = (_a2 = datePickerRef.value) == null ? void 0 : _a2.$datePicker) == null ? void 0 : _b2.panelInstRef) == null ? void 0 : _c2.$el;
226
+ var _a, _b, _c, _d, _e;
227
+ const panelInstEl = (_c = (_b = (_a = datePickerRef.value) == null ? void 0 : _a.$datePicker) == null ? void 0 : _b.panelInstRef) == null ? void 0 : _c.$el;
208
228
  const show = !!(e.target && (panelInstEl && panelInstEl.contains(e.target) || ((_d = inputRef.value) == null ? void 0 : _d.$el) && ((_e = inputRef.value) == null ? void 0 : _e.$el.contains(e.target))));
209
229
  handleUpdateShow(show);
210
230
  }
@@ -258,29 +278,33 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
258
278
  }, null, 8, ["component"])]),
259
279
  _: 1
260
280
  }, 8, ["value", "onInput"])]),
261
- default: withCtx(() => {
262
- var _a2;
263
- return [createVNode(unref(DatePicker), {
264
- ref_key: "datePickerRef",
265
- ref: datePickerRef,
266
- "formatted-value": dateRange.value,
267
- type: "daterange",
268
- clearable: "",
269
- "onUpdate:formattedValue": handleUpdateDate
270
- }, null, 8, ["formatted-value"]), createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(filterList.value, (item) => {
271
- return openBlock(), createBlock(unref(userItemRender), {
272
- key: item.id,
273
- item,
274
- onItemClick: _cache[2] || (_cache[2] = () => handleUpdateShow(false))
275
- }, null, 8, ["item"]);
276
- }), 128)), withDirectives(createVNode(unref(DefaultPage), {
277
- config: {
278
- title: " ",
279
- content: ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.81")) || "\u627E\u4E0D\u5230\u76F8\u5173\u7684\u7ED3\u679C"
280
- },
281
- type: "5"
282
- }, null, 512), [[vShow, filterList.value.length < 1]])])];
283
- }),
281
+ default: withCtx(() => [createVNode(unref(DatePicker), {
282
+ ref_key: "datePickerRef",
283
+ ref: datePickerRef,
284
+ "formatted-value": dateRange.value,
285
+ type: "daterange",
286
+ clearable: "",
287
+ "onUpdate:formattedValue": handleUpdateDate
288
+ }, null, 8, ["formatted-value"]), createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(filterList.value, (item) => {
289
+ return openBlock(), createBlock(unref(userItemRender), {
290
+ key: item.id,
291
+ item,
292
+ onItemClick: _cache[2] || (_cache[2] = () => handleUpdateShow(false))
293
+ }, null, 8, ["item"]);
294
+ }), 128)), withDirectives(createVNode(unref(DefaultPage), {
295
+ config: {
296
+ title: " ",
297
+ content: function() {
298
+ var _a, _b, _c;
299
+ try {
300
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.81")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.81")) || "\u627E\u4E0D\u5230\u76F8\u5173\u7684\u7ED3\u679C";
301
+ } catch (e) {
302
+ return "\u627E\u4E0D\u5230\u76F8\u5173\u7684\u7ED3\u679C";
303
+ }
304
+ }()
305
+ },
306
+ type: "5"
307
+ }, null, 512), [[vShow, filterList.value.length < 1]])])]),
284
308
  _: 1
285
309
  }, 8, ["show"])])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_3, [(openBlock(true), createElementBlock(Fragment, null, renderList(filterListByTag.value, (filterItem) => {
286
310
  return openBlock(), createBlock(unref(NTag), {
@@ -298,7 +322,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
298
322
  ref_key: "listBoxRef",
299
323
  ref: listBoxRef
300
324
  }, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(sessionList), (item) => {
301
- var _a2;
302
325
  return openBlock(), createElementBlock(Fragment, {
303
326
  key: item.id
304
327
  }, [item.status !== unref(STATUS).REMOVED ? withDirectives((openBlock(), createElementBlock("div", {
@@ -314,7 +337,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
314
337
  src: item.avatar
315
338
  }, null, 8, ["src"]), createElementVNode("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_7, toDisplayString(item.name), 1), withDirectives(createElementVNode("label", {
316
339
  class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(item.roleInfo) ? "isDoctor" : ""])
317
- }, toDisplayString(unref(getRoleName)(item.roleInfo)), 3), [[vShow, unref(getRoleName)(item.roleInfo)]])]), createElementVNode("span", null, toDisplayString(item.lastMessage ? unref(formatTime)(item.lastMessageSendTime).siderMsgTime : ""), 1)]), createElementVNode("div", _hoisted_8, [createElementVNode("div", _hoisted_9, [item.lastMessageStatus === "WITHDRAWN" ? (openBlock(), createElementBlock("div", _hoisted_10, ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.68")) || "\u64A4\u56DE\u4E86\u4E00\u6761\u6D88\u606F")) : (openBlock(), createElementBlock("div", {
340
+ }, toDisplayString(unref(getRoleName)(item.roleInfo)), 3), [[vShow, unref(getRoleName)(item.roleInfo)]])]), createElementVNode("span", null, toDisplayString(item.lastMessage ? unref(formatTime)(item.lastMessageSendTime).siderMsgTime : ""), 1)]), createElementVNode("div", _hoisted_8, [createElementVNode("div", _hoisted_9, [item.lastMessageStatus === "WITHDRAWN" ? (openBlock(), createElementBlock("div", _hoisted_10, function() {
341
+ var _a, _b, _c;
342
+ try {
343
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.68")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.68")) || "\u64A4\u56DE\u4E86\u4E00\u6761\u6D88\u606F";
344
+ } catch (e) {
345
+ return "\u64A4\u56DE\u4E86\u4E00\u6761\u6D88\u606F";
346
+ }
347
+ }())) : (openBlock(), createElementBlock("div", {
318
348
  key: 1,
319
349
  innerHTML: item.lastMessageContent
320
350
  }, null, 8, _hoisted_11))]), createVNode(unref(NBadge), {
@@ -17,7 +17,6 @@ import 'sockjs-client/dist/sockjs.min.js';
17
17
  import { useVideo } from '../hooks/useVideo.js';
18
18
  import TRTC from 'trtc-sdk-v5';
19
19
 
20
- var _a, _b, _c, _d;
21
20
  const _hoisted_1 = {
22
21
  class: "video-wrapper"
23
22
  };
@@ -36,13 +35,41 @@ const _hoisted_5 = {
36
35
  const _hoisted_6 = {
37
36
  class: "btn"
38
37
  };
39
- const _hoisted_7 = /* @__PURE__ */ createElementVNode("span", null, ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.104")) || "\u9759\u97F3", -1);
40
- const _hoisted_8 = /* @__PURE__ */ createElementVNode("span", null, ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.113")) || "\u62D2\u63A5", -1);
38
+ const _hoisted_7 = /* @__PURE__ */ createElementVNode("span", null, function() {
39
+ var _a, _b, _c;
40
+ try {
41
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.104")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.104")) || "\u9759\u97F3";
42
+ } catch (e) {
43
+ return "\u9759\u97F3";
44
+ }
45
+ }(), -1);
46
+ const _hoisted_8 = /* @__PURE__ */ createElementVNode("span", null, function() {
47
+ var _a, _b, _c;
48
+ try {
49
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.113")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.113")) || "\u62D2\u63A5";
50
+ } catch (e) {
51
+ return "\u62D2\u63A5";
52
+ }
53
+ }(), -1);
41
54
  const _hoisted_9 = {
42
55
  class: "btn"
43
56
  };
44
- const _hoisted_10 = /* @__PURE__ */ createElementVNode("span", null, ((_c = window.getLanguageByCode) == null ? void 0 : _c.call(window, "10010.1.125")) || "\u6302\u65AD", -1);
45
- const _hoisted_11 = /* @__PURE__ */ createElementVNode("span", null, ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.114")) || "\u63A5\u542C", -1);
57
+ const _hoisted_10 = /* @__PURE__ */ createElementVNode("span", null, function() {
58
+ var _a, _b, _c;
59
+ try {
60
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.125")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.125")) || "\u6302\u65AD";
61
+ } catch (e) {
62
+ return "\u6302\u65AD";
63
+ }
64
+ }(), -1);
65
+ const _hoisted_11 = /* @__PURE__ */ createElementVNode("span", null, function() {
66
+ var _a, _b, _c;
67
+ try {
68
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.114")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.114")) || "\u63A5\u542C";
69
+ } catch (e) {
70
+ return "\u63A5\u542C";
71
+ }
72
+ }(), -1);
46
73
  var _sfc_main = /* @__PURE__ */ defineComponent({
47
74
  __name: "Video",
48
75
  setup(__props) {
@@ -68,7 +95,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
68
95
  const isConnect = ref(false);
69
96
  let timeout = null;
70
97
  const info = computed(() => {
71
- var _a2, _b2, _c2;
98
+ var _a, _b, _c;
72
99
  if (isCall.value) {
73
100
  return {
74
101
  avatar: state.currentSessionItem.avatar,
@@ -77,9 +104,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
77
104
  };
78
105
  } else {
79
106
  return {
80
- avatar: (_a2 = state.currentAVMsg.currentMsg) == null ? void 0 : _a2.senderAvatar,
81
- name: (_b2 = state.currentAVMsg.currentMsg) == null ? void 0 : _b2.senderName,
82
- userId: (_c2 = state.currentAVMsg.currentMsg) == null ? void 0 : _c2.sender
107
+ avatar: (_a = state.currentAVMsg.currentMsg) == null ? void 0 : _a.senderAvatar,
108
+ name: (_b = state.currentAVMsg.currentMsg) == null ? void 0 : _b.senderName,
109
+ userId: (_c = state.currentAVMsg.currentMsg) == null ? void 0 : _c.sender
83
110
  };
84
111
  }
85
112
  });
@@ -92,8 +119,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
92
119
  return isAudio.value ? timing.value : "";
93
120
  });
94
121
  const status = computed(() => {
95
- var _a2, _b2;
96
- return (_b2 = (_a2 = state.currentAVMsg.currentMsg) == null ? void 0 : _a2.content) == null ? void 0 : _b2.avStatus;
122
+ var _a, _b;
123
+ return (_b = (_a = state.currentAVMsg.currentMsg) == null ? void 0 : _a.content) == null ? void 0 : _b.avStatus;
97
124
  });
98
125
  async function handleStatus(status2 = AV_STATUS.FINISHED) {
99
126
  sendMessage({
@@ -23,10 +23,21 @@ function useVideo() {
23
23
  const videocamClose = ref(false);
24
24
  const isAudio = computed(() => state.currentAVMsg.chatMessageType === MESSAGE_TYPE.AUDIO);
25
25
  const isCall = computed(() => state.currentAVMsg.callMode === "call");
26
- const messageTypeText = computed(() => {
27
- var _a, _b;
28
- return isAudio.value ? ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.130")) || "\u8BED\u97F3" : ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.131")) || "\u89C6\u9891";
29
- });
26
+ const messageTypeText = computed(() => isAudio.value ? function() {
27
+ var _a, _b, _c;
28
+ try {
29
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.130")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.130")) || "\u8BED\u97F3";
30
+ } catch (e) {
31
+ return "\u8BED\u97F3";
32
+ }
33
+ }() : function() {
34
+ var _a, _b, _c;
35
+ try {
36
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.131")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.131")) || "\u89C6\u9891";
37
+ } catch (e) {
38
+ return "\u89C6\u9891";
39
+ }
40
+ }());
30
41
  const trtc = TRTC.create();
31
42
  function startTimer() {
32
43
  resetTimer();
@@ -9,19 +9,24 @@ const {
9
9
  message: $message
10
10
  } = createDiscreteApi(["message"]);
11
11
  function formatTime(dateStr) {
12
- var _a;
13
12
  const date = new Date(dateStr);
14
13
  let siderMsgTime, msgTime;
15
14
  if (isToday(date)) {
16
15
  siderMsgTime = msgTime = format(date, "HH:mm");
17
16
  } else {
18
- siderMsgTime = isYesterday(date) ? ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.132")) || "\u6628\u5929" : format(date, "MM-dd");
17
+ siderMsgTime = isYesterday(date) ? function() {
18
+ var _a, _b, _c;
19
+ try {
20
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.132")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.132")) || "\u6628\u5929";
21
+ } catch (e) {
22
+ return "\u6628\u5929";
23
+ }
24
+ }() : format(date, "MM-dd");
19
25
  const dateYear = date.getFullYear();
20
26
  const currentYear = new Date().getFullYear();
21
27
  msgTime = format(date, dateYear < currentYear ? "yyyy\u5E74M\u6708d\u65E5 HH:mm" : "M\u6708d\u65E5 HH:mm");
22
28
  }
23
29
  function formatRecordTime(time) {
24
- var _a2, _b, _c, _d;
25
30
  const currentTime = new Date(time);
26
31
  const nowTimeStamp = Date.now();
27
32
  const currentTimeStamp = currentTime.getTime();
@@ -29,13 +34,41 @@ function formatTime(dateStr) {
29
34
  const oneMinuteAgo = 60 * 1e3;
30
35
  const oneHourAgo = 60 * 60 * 1e3;
31
36
  if (distance < oneMinuteAgo) {
32
- return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.133")) || "\u521A\u521A";
37
+ return function() {
38
+ var _a, _b, _c;
39
+ try {
40
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.133")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.133")) || "\u521A\u521A";
41
+ } catch (e) {
42
+ return "\u521A\u521A";
43
+ }
44
+ }();
33
45
  } else if (distance < oneHourAgo) {
34
- return Math.ceil(distance / 1e3 / 60) + (((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.136")) || "\u5206\u949F\u524D");
46
+ return Math.ceil(distance / 1e3 / 60) + function() {
47
+ var _a, _b, _c;
48
+ try {
49
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.136")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.136")) || "\u5206\u949F\u524D";
50
+ } catch (e) {
51
+ return "\u5206\u949F\u524D";
52
+ }
53
+ }();
35
54
  } else if (isToday(currentTime)) {
36
- return (((_c = window.getLanguageByCode) == null ? void 0 : _c.call(window, "10010.1.134")) || "\u4ECA\u5929") + format(currentTime, "HH:mm");
55
+ return function() {
56
+ var _a, _b, _c;
57
+ try {
58
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.134")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.134")) || "\u4ECA\u5929";
59
+ } catch (e) {
60
+ return "\u4ECA\u5929";
61
+ }
62
+ }() + format(currentTime, "HH:mm");
37
63
  } else if (isYesterday(currentTime)) {
38
- return (((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.132")) || "\u6628\u5929") + format(currentTime, "HH:mm");
64
+ return function() {
65
+ var _a, _b, _c;
66
+ try {
67
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.132")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.132")) || "\u6628\u5929";
68
+ } catch (e) {
69
+ return "\u6628\u5929";
70
+ }
71
+ }() + format(currentTime, "HH:mm");
39
72
  } else {
40
73
  const dateYear = currentTime.getFullYear();
41
74
  const currentYear = new Date().getFullYear();
@@ -90,7 +123,6 @@ function transformMessage(content) {
90
123
  return msg;
91
124
  }
92
125
  function getAVTime(msg) {
93
- var _a, _b;
94
126
  if (msg && isNumber(+msg) && !isNaN(+msg)) {
95
127
  const time = formatSeconds(+msg);
96
128
  const timeArray = time.split(":");
@@ -98,9 +130,23 @@ function getAVTime(msg) {
98
130
  if (timeArray.length === 3 && timeArray[0] === "00") {
99
131
  _timeStr = `${timeArray[1]}:${timeArray[2]}`;
100
132
  }
101
- return (((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.137")) || "\u901A\u8BDD\u65F6\u957F") + _timeStr;
133
+ return function() {
134
+ var _a, _b, _c;
135
+ try {
136
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.137")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.137")) || "\u901A\u8BDD\u65F6\u957F";
137
+ } catch (e) {
138
+ return "\u901A\u8BDD\u65F6\u957F";
139
+ }
140
+ }() + _timeStr;
102
141
  }
103
- return ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.138")) || "\u5DF2\u53D6\u6D88";
142
+ return function() {
143
+ var _a, _b, _c;
144
+ try {
145
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.138")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.138")) || "\u5DF2\u53D6\u6D88";
146
+ } catch (e) {
147
+ return "\u5DF2\u53D6\u6D88";
148
+ }
149
+ }();
104
150
  }
105
151
  function simplifyMessage(lastMessage) {
106
152
  var _a;
@@ -206,7 +252,6 @@ function isDoctorRole(type) {
206
252
  return type === ROLE_TYPE.DOCTOR;
207
253
  }
208
254
  function getRoleName(type) {
209
- var _a;
210
255
  let roleName = "";
211
256
  switch (type) {
212
257
  case ROLE_TYPE.DOCTOR: {
@@ -214,7 +259,14 @@ function getRoleName(type) {
214
259
  break;
215
260
  }
216
261
  case ROLE_TYPE.PATIENT: {
217
- roleName = ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.200")) || "\u60A3\u8005";
262
+ roleName = function() {
263
+ var _a, _b, _c;
264
+ try {
265
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.200")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.200")) || "\u60A3\u8005";
266
+ } catch (e) {
267
+ return "\u60A3\u8005";
268
+ }
269
+ }();
218
270
  break;
219
271
  }
220
272
  }
@@ -252,8 +304,21 @@ function getDetail(item, isShowSize) {
252
304
  return details;
253
305
  }
254
306
  function showAudioAndVideoRecord(chatMessageType) {
255
- var _a, _b;
256
- return chatMessageType === MESSAGE_TYPE.AUDIO ? ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.57")) || "\u8BED\u97F3\u901A\u8BDD" : ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.59")) || "\u89C6\u9891\u901A\u8BDD";
307
+ return chatMessageType === MESSAGE_TYPE.AUDIO ? function() {
308
+ var _a, _b, _c;
309
+ try {
310
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.57")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.57")) || "\u8BED\u97F3\u901A\u8BDD";
311
+ } catch (e) {
312
+ return "\u8BED\u97F3\u901A\u8BDD";
313
+ }
314
+ }() : function() {
315
+ var _a, _b, _c;
316
+ try {
317
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.59")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.59")) || "\u89C6\u9891\u901A\u8BDD";
318
+ } catch (e) {
319
+ return "\u89C6\u9891\u901A\u8BDD";
320
+ }
321
+ }();
257
322
  }
258
323
 
259
324
  export { $message, base64ToFile, downloadFile, formatSeconds, formatTime, getAVTime, getDetail, getFileDetails, getFileSize, getFileType, getForwardTitle, getRoleName, isAudioOrVideoMessage, isDoctorRole, isGroup, listSort, showAudioAndVideoRecord, simplifyMessage, transformMessage };
@@ -20,13 +20,19 @@ function useColumnConfigAdaptor() {
20
20
  const isEditValueMap = /* @__PURE__ */ new Map([["0", 0], ["1", 1]]);
21
21
  const htmlTypeValueMap = new Map([...["RADIO", "RADIO_BLOCK", "CHECKBOX", "CHECKBOX_BLOCK", "SELECT", "SEARCH", "SEARCH_MORE", "SWITCH_COMPONENT"].map((type) => [type, "select"]), ...["DATE"].map((type) => [type, "date"]), ...["INPUT"].map((type) => [type, "input"]), ...["DIGITAL"].map((type) => [type, "number"])]);
22
22
  const isNullHandler = (value, result, _fieldItem, _editRules) => {
23
- var _a;
24
23
  if (value === "1")
25
24
  return;
26
25
  if (value === "0")
27
26
  _editRules[_fieldItem.val_key] = [{
28
27
  required: true,
29
- message: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || "\u5FC5\u586B"
28
+ message: function() {
29
+ var _a, _b, _c;
30
+ try {
31
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B";
32
+ } catch (e) {
33
+ return "\u5FC5\u586B";
34
+ }
35
+ }()
30
36
  }];
31
37
  };
32
38
  const validateHandler = (value, result) => {
@@ -231,7 +231,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
231
231
  }
232
232
  onMounted(fetchOption);
233
233
  return (_ctx, _cache) => {
234
- var _a2, _b2;
235
234
  const _component_vxe_grid = resolveComponent("vxe-grid");
236
235
  return openBlock(), createElementBlock("section", _hoisted_1, [createVNode(unref(NInput), {
237
236
  value: searchFilterText.value,
@@ -282,37 +281,63 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
282
281
  size: "small"
283
282
  }, null, 8, ["page", "page-size", "item-count"])) : createCommentVNode("v-if", true)]),
284
283
  _: 1
285
- }, 8, ["show"]), createElementVNode("footer", _hoisted_2, [createElementVNode("section", null, [createTextVNode(((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.39")) || "\u5DF2\u9009\u62E9"), createElementVNode("span", {
284
+ }, 8, ["show"]), createElementVNode("footer", _hoisted_2, [createElementVNode("section", null, [createTextVNode(function() {
285
+ var _a2, _b2, _c;
286
+ try {
287
+ 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";
288
+ } catch (e) {
289
+ return "\u5DF2\u9009\u62E9";
290
+ }
291
+ }()), createElementVNode("span", {
286
292
  style: normalizeStyle({
287
293
  color: "var(--c-primary-color)"
288
294
  })
289
- }, toDisplayString(checkedCacheRef.value.length), 5), createTextVNode(((_b2 = window.getLanguageByCode) == null ? void 0 : _b2.call(window, "10010.1.417")) || "\u9879")]), createVNode(unref(NButtonGroup), {
295
+ }, toDisplayString(checkedCacheRef.value.length), 5), createTextVNode(function() {
296
+ var _a2, _b2, _c;
297
+ try {
298
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.417")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.417")) || "\u9879";
299
+ } catch (e) {
300
+ return "\u9879";
301
+ }
302
+ }())]), createVNode(unref(NButtonGroup), {
290
303
  size: "small"
291
304
  }, {
292
305
  default: withCtx(() => [createVNode(unref(NButton), {
293
306
  onClick: reset
294
307
  }, {
295
- default: withCtx(() => {
296
- var _a3;
297
- return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.509")) || "\u6E05\u7A7A")];
298
- }),
308
+ default: withCtx(() => [createTextVNode(function() {
309
+ var _a2, _b2, _c;
310
+ try {
311
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.509")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.509")) || "\u6E05\u7A7A";
312
+ } catch (e) {
313
+ return "\u6E05\u7A7A";
314
+ }
315
+ }())]),
299
316
  _: 1
300
317
  }), createVNode(unref(NButton), {
301
318
  onClick: close
302
319
  }, {
303
- default: withCtx(() => {
304
- var _a3;
305
- return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.28")) || "\u53D6\u6D88")];
306
- }),
320
+ default: withCtx(() => [createTextVNode(function() {
321
+ var _a2, _b2, _c;
322
+ try {
323
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.28")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.28")) || "\u53D6\u6D88";
324
+ } catch (e) {
325
+ return "\u53D6\u6D88";
326
+ }
327
+ }())]),
307
328
  _: 1
308
329
  }), createVNode(unref(NButton), {
309
330
  type: "primary",
310
331
  onClick: confirm
311
332
  }, {
312
- default: withCtx(() => {
313
- var _a3;
314
- return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.27")) || "\u786E\u5B9A")];
315
- }),
333
+ default: withCtx(() => [createTextVNode(function() {
334
+ var _a2, _b2, _c;
335
+ try {
336
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.27")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.27")) || "\u786E\u5B9A";
337
+ } catch (e) {
338
+ return "\u786E\u5B9A";
339
+ }
340
+ }())]),
316
341
  _: 1
317
342
  })]),
318
343
  _: 1
@@ -39,7 +39,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
39
39
  function confirm() {
40
40
  }
41
41
  return (_ctx, _cache) => {
42
- var _a, _b;
43
42
  return openBlock(), createElementBlock("section", _hoisted_1, [createVNode(unref(NInput), {
44
43
  value: searchFilterText.value,
45
44
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchFilterText.value = $event)
@@ -77,37 +76,63 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
77
76
  _: 1
78
77
  }, 8, ["value"])]),
79
78
  _: 1
80
- }, 8, ["show"]), createElementVNode("footer", _hoisted_3, [createElementVNode("section", null, [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.39")) || "\u5DF2\u9009\u62E9"), createElementVNode("span", {
79
+ }, 8, ["show"]), createElementVNode("footer", _hoisted_3, [createElementVNode("section", null, [createTextVNode(function() {
80
+ var _a, _b, _c;
81
+ try {
82
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.39")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.39")) || "\u5DF2\u9009\u62E9";
83
+ } catch (e) {
84
+ return "\u5DF2\u9009\u62E9";
85
+ }
86
+ }()), createElementVNode("span", {
81
87
  style: normalizeStyle({
82
88
  color: "var(--c-primary-color)"
83
89
  })
84
- }, toDisplayString(checkedRef.value.length), 5), createTextVNode(((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.417")) || "\u9879")]), createVNode(unref(NButtonGroup), {
90
+ }, toDisplayString(checkedRef.value.length), 5), createTextVNode(function() {
91
+ var _a, _b, _c;
92
+ try {
93
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.417")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.417")) || "\u9879";
94
+ } catch (e) {
95
+ return "\u9879";
96
+ }
97
+ }())]), createVNode(unref(NButtonGroup), {
85
98
  size: "small"
86
99
  }, {
87
100
  default: withCtx(() => [createVNode(unref(NButton), {
88
101
  onClick: reset
89
102
  }, {
90
- default: withCtx(() => {
91
- var _a2;
92
- return [createTextVNode(((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.509")) || "\u6E05\u7A7A")];
93
- }),
103
+ default: withCtx(() => [createTextVNode(function() {
104
+ var _a, _b, _c;
105
+ try {
106
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.509")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.509")) || "\u6E05\u7A7A";
107
+ } catch (e) {
108
+ return "\u6E05\u7A7A";
109
+ }
110
+ }())]),
94
111
  _: 1
95
112
  }), createVNode(unref(NButton), {
96
113
  onClick: close
97
114
  }, {
98
- default: withCtx(() => {
99
- var _a2;
100
- return [createTextVNode(((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.28")) || "\u53D6\u6D88")];
101
- }),
115
+ default: withCtx(() => [createTextVNode(function() {
116
+ var _a, _b, _c;
117
+ try {
118
+ 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";
119
+ } catch (e) {
120
+ return "\u53D6\u6D88";
121
+ }
122
+ }())]),
102
123
  _: 1
103
124
  }), createVNode(unref(NButton), {
104
125
  type: "primary",
105
126
  onClick: confirm
106
127
  }, {
107
- default: withCtx(() => {
108
- var _a2;
109
- return [createTextVNode(((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.27")) || "\u786E\u5B9A")];
110
- }),
128
+ default: withCtx(() => [createTextVNode(function() {
129
+ var _a, _b, _c;
130
+ try {
131
+ 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";
132
+ } catch (e) {
133
+ return "\u786E\u5B9A";
134
+ }
135
+ }())]),
111
136
  _: 1
112
137
  })]),
113
138
  _: 1