cnhis-design-vue 3.3.2-beta.6 → 3.3.2-release.2

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 (208) hide show
  1. package/es/components/audio-sdk/index.d.ts +173 -146
  2. package/es/components/audio-sdk/src/Index.vue.d.ts +174 -147
  3. package/es/components/audio-sdk/src/Index.vue2.js +131 -53
  4. package/es/components/audio-sdk/src/audioSDK.d.ts +29 -26
  5. package/es/components/audio-sdk/src/audioSDK.js +123 -42
  6. package/es/components/audio-sdk/src/components/readyCountdown.vue.d.ts +31 -0
  7. package/es/components/audio-sdk/src/components/readyCountdown.vue.js +6 -0
  8. package/es/components/audio-sdk/src/components/readyCountdown.vue2.js +46 -0
  9. package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +138 -10
  10. package/es/components/audio-sdk/src/components/recording.vue.d.ts +139 -11
  11. package/es/components/audio-sdk/src/components/recording.vue2.js +318 -74
  12. package/es/components/audio-sdk/src/hooks/useChartAudioContext.d.ts +24 -0
  13. package/es/components/audio-sdk/src/hooks/useChartAudioContext.js +176 -0
  14. package/es/components/audio-sdk/src/svgs/Close.vue.js +26 -0
  15. package/es/components/audio-sdk/src/svgs/Continue.vue.js +20 -0
  16. package/es/components/audio-sdk/src/svgs/Enlarge.vue.js +20 -0
  17. package/es/components/audio-sdk/src/svgs/Pause.vue.js +20 -0
  18. package/es/components/audio-sdk/src/svgs/WaveView.vue.js +20 -0
  19. package/es/components/audio-sdk/src/svgs/Zoom.vue.js +27 -0
  20. package/es/components/audio-sdk/src/types/index.d.ts +42 -0
  21. package/es/components/audio-sdk/src/types/index.js +10 -0
  22. package/es/components/audio-sdk/src/utils/recordingModal.d.ts +9 -3
  23. package/es/components/audio-sdk/src/utils/recordingModal.js +57 -32
  24. package/es/components/audio-sdk/style/index.css +1 -1
  25. package/es/components/base-search/src/index.vue2.js +27 -15
  26. package/es/components/big-table/src/BigTable.vue2.js +189 -131
  27. package/es/components/big-table/src/components/NoData.vue2.js +16 -4
  28. package/es/components/big-table/src/components/edit-form/edit-date.js +12 -6
  29. package/es/components/big-table/src/components/edit-form/edit-input.js +8 -2
  30. package/es/components/big-table/src/components/edit-form/edit-select.js +21 -17
  31. package/es/components/big-table/src/components/edit-form/edit-time.js +11 -4
  32. package/es/components/big-table/src/components/input-button.vue2.js +7 -3
  33. package/es/components/big-table/src/hooks/useNestTable.js +18 -4
  34. package/es/components/big-table/src/hooks/useTableParse.js +16 -3
  35. package/es/components/body-select/src/index.vue2.js +24 -4
  36. package/es/components/button-print/index.d.ts +12 -4
  37. package/es/components/button-print/src/ButtonPrint.vue.d.ts +12 -4
  38. package/es/components/button-print/src/ButtonPrint.vue2.js +52 -11
  39. package/es/components/button-print/src/components/EditFormat.vue2.js +14 -6
  40. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -2
  41. package/es/components/button-print/src/components/IdentityVerification.vue2.js +100 -45
  42. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +7 -2
  43. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +244 -95
  44. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +5 -2
  45. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +92 -32
  46. package/es/components/button-print/src/components/Preview.vue.d.ts +5 -2
  47. package/es/components/button-print/src/components/Preview.vue2.js +14 -4
  48. package/es/components/button-print/src/utils/dialog.js +26 -8
  49. package/es/components/button-print/src/utils/print.d.ts +5 -5
  50. package/es/components/button-print/src/utils/print.js +108 -21
  51. package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +8 -2
  52. package/es/components/card-reader-sdk/src/utils/readHealthCard.js +16 -4
  53. package/es/components/card-reader-sdk-cn/src/henan/index.js +38 -11
  54. package/es/components/classification/src/components/search-filter/index.vue2.js +24 -10
  55. package/es/components/classification/src/components/set-classification/index.vue2.js +23 -6
  56. package/es/components/classification/src/components/table-modal/index.vue2.js +324 -165
  57. package/es/components/classification/src/index.vue2.js +261 -69
  58. package/es/components/default-page/src/constants/index.js +144 -19
  59. package/es/components/default-page/src/index.vue2.js +8 -2
  60. package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +75 -51
  61. package/es/components/expand-field/src/components/FormItemPerson.vue2.js +46 -38
  62. package/es/components/expand-field/src/components/PersonModal.vue2.js +62 -50
  63. package/es/components/expand-field/src/components/form.vue2.js +783 -412
  64. package/es/components/expand-field/src/index.vue2.js +88 -22
  65. package/es/components/expand-field/src/utils/constant.js +88 -12
  66. package/es/components/fabric-chart/src/components/PopupMenu.js +32 -15
  67. package/es/components/fabric-chart/src/constants/index.js +72 -10
  68. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +18 -4
  69. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +8 -2
  70. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +32 -5
  71. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +8 -2
  72. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +63 -41
  73. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  74. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +5 -1
  75. package/es/components/fabric-chart/src/hooks/useCommon.js +24 -4
  76. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +4 -1
  77. package/es/components/fabric-chart/src/hooks/useDraw.js +19 -0
  78. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  79. package/es/components/fabric-chart/src/utils/index.js +2 -2
  80. package/es/components/field-editor/src/fields.js +232 -30
  81. package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
  82. package/es/components/field-set/src/FieldColor.vue2.js +88 -21
  83. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  84. package/es/components/field-set/src/FieldFilter.vue2.js +28 -12
  85. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  86. package/es/components/field-set/src/FieldSet.vue2.js +210 -57
  87. package/es/components/field-set/src/Index.vue2.js +40 -6
  88. package/es/components/field-set/src/TableStyle.vue2.js +48 -13
  89. package/es/components/field-set/src/components/condition.vue2.js +27 -11
  90. package/es/components/field-set/src/components/edit-dialog.vue2.js +149 -69
  91. package/es/components/field-set/src/components/edit-filter.vue2.js +24 -4
  92. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  93. package/es/components/field-set/src/components/table-row.vue2.js +123 -42
  94. package/es/components/field-set/src/constants/filter.js +328 -42
  95. package/es/components/field-set/src/constants/index.js +504 -64
  96. package/es/components/field-set/src/utils/index.js +1 -1
  97. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +91 -46
  98. package/es/components/form-config/src/constants/index.js +80 -11
  99. package/es/components/form-config/src/hooks/useLocale.js +240 -31
  100. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +7 -3
  101. package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +7 -3
  102. package/es/components/form-render/src/components/renderer/combination/tableCombination.js +8 -2
  103. package/es/components/form-render/src/components/renderer/input.js +2 -1
  104. package/es/components/form-render/src/components/renderer/radio_checkbox.js +7 -3
  105. package/es/components/form-render/src/components/renderer/remoteSearch.js +8 -2
  106. package/es/components/form-render/src/components/renderer/switch.js +24 -4
  107. package/es/components/form-render/src/components/renderer/textarea.js +4 -3
  108. package/es/components/form-render/src/utils/schema.js +26 -6
  109. package/es/components/iho-chat/src/Index.vue2.js +42 -38
  110. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +108 -33
  111. package/es/components/iho-chat/src/components/ChatFile.vue2.js +132 -90
  112. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +110 -48
  113. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +35 -15
  114. package/es/components/iho-chat/src/components/ChatMain.vue2.js +54 -22
  115. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +77 -45
  116. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +256 -208
  117. package/es/components/iho-chat/src/components/ChatSet.vue2.js +309 -211
  118. package/es/components/iho-chat/src/components/ContextMenu.js +50 -9
  119. package/es/components/iho-chat/src/components/MessageEvent.vue2.js +16 -4
  120. package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +8 -2
  121. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +104 -18
  122. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +66 -11
  123. package/es/components/iho-chat/src/components/SelectLabel.vue2.js +47 -43
  124. package/es/components/iho-chat/src/components/SiderList.vue2.js +70 -40
  125. package/es/components/iho-chat/src/components/Video.vue2.js +38 -11
  126. package/es/components/iho-chat/src/hooks/useVideo.js +15 -4
  127. package/es/components/iho-chat/src/utils/index.js +79 -14
  128. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +8 -2
  129. package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +40 -15
  130. package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue2.js +40 -15
  131. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  132. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +50 -20
  133. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +14 -6
  134. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +10 -3
  135. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +45 -18
  136. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  137. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +20 -14
  138. package/es/components/index.css +1 -1
  139. package/es/components/info-header/src/components/patientInfo/index.vue2.js +142 -23
  140. package/es/components/keyboard/src/Keyboard.vue2.js +21 -9
  141. package/es/components/keyboard/src/components/NumberPanel.vue2.js +49 -35
  142. package/es/components/map/src/Map.vue2.js +7 -3
  143. package/es/components/picture-clipper/src/PictureClipper.vue2.js +14 -6
  144. package/es/components/quick-search/src/index.vue2.js +177 -132
  145. package/es/components/recommend-search/src/components/BaseSearch.js +14 -8
  146. package/es/components/recommend-search/src/components/RecommendInput.vue2.js +28 -8
  147. package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +18 -5
  148. package/es/components/scale-view/src/ScaleView.vue2.js +14 -6
  149. package/es/components/scale-view/src/components/NoData.vue2.js +16 -4
  150. package/es/components/scale-view/src/components/formitem/r-cascader.js +8 -2
  151. package/es/components/scale-view/src/components/formitem/r-checkbox.js +24 -6
  152. package/es/components/scale-view/src/components/formitem/r-input.js +8 -2
  153. package/es/components/scale-view/src/components/formitem/r-map.js +8 -2
  154. package/es/components/scale-view/src/components/formitem/r-radio.js +24 -6
  155. package/es/components/scale-view/src/components/formitem/r-select.js +8 -2
  156. package/es/components/scale-view/src/components/formitem/r-sign.js +30 -9
  157. package/es/components/scale-view/src/components/formitem/standard-modal.js +16 -3
  158. package/es/components/scale-view/src/hooks/scaleview-computed.js +24 -5
  159. package/es/components/scale-view/src/hooks/scaleview-methods.js +16 -4
  160. package/es/components/scale-view/src/hooks/scaleview-submit.js +16 -3
  161. package/es/components/scale-view/src/hooks/scaleview-validate.js +40 -9
  162. package/es/components/search-cascader/src/SearchCascader.vue2.js +20 -14
  163. package/es/components/select-label/src/LabelFormContent.vue2.js +53 -21
  164. package/es/components/select-label/src/SelectLabel.vue2.js +85 -55
  165. package/es/components/select-label/src/components/label-classify.vue2.js +28 -11
  166. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +18 -5
  167. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +34 -8
  168. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +18 -5
  169. package/es/components/select-person/src/SelectPerson.vue2.js +214 -141
  170. package/es/components/select-person/src/SelectPersonType.vue2.js +130 -105
  171. package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +9 -2
  172. package/es/components/select-person/src/index.vue2.js +20 -7
  173. package/es/components/slider-tree/src/index.vue2.js +16 -3
  174. package/es/components/table-export-field/src/components/ExportModal.vue2.js +186 -112
  175. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +147 -88
  176. package/es/components/table-export-field/src/index.vue2.js +28 -12
  177. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +32 -5
  178. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +264 -34
  179. package/es/components/table-filter/src/components/bi-filter/index.vue2.js +214 -135
  180. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +16 -3
  181. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +9 -2
  182. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +39 -6
  183. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +18 -5
  184. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +29 -18
  185. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +16 -3
  186. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +8 -2
  187. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +195 -130
  188. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +26 -7
  189. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +13 -7
  190. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +34 -8
  191. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +21 -8
  192. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +7 -3
  193. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +19 -6
  194. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +16 -3
  195. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +24 -10
  196. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1648 -207
  197. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +8 -2
  198. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +16 -3
  199. package/es/components/table-filter/src/tool/baseOptions.js +144 -19
  200. package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +28 -12
  201. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +22 -2
  202. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +7 -3
  203. package/es/components/vod-chunk-upload/src/vod-upload-modal.js +14 -6
  204. package/es/shared/hooks/selectHooks/useSelectAllowModify.js +2 -2
  205. package/es/shared/package.json.js +1 -1
  206. package/package.json +2 -2
  207. package/es/components/audio-sdk/src/components/recording-modal.vue.js +0 -6
  208. package/es/components/audio-sdk/src/components/recording-modal.vue2.js +0 -40
@@ -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, _d, _e, _f, _g, _h, _i;
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")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "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: ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.124")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "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: ((_g = window.getLanguageByCode) == null ? void 0 : _g.call(window, "10010.1.77")) || ((_i = (_h = window.top) == null ? void 0 : _h.getLanguageByCode) == null ? void 0 : _i.call(_h, "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, _d2, _e2;
146
+ var _a, _b, _c, _d, _e;
127
147
  sessionId.value = id;
128
148
  showMenu.value = true;
129
149
  await nextTick();
@@ -136,12 +156,12 @@ 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()) || {};
144
- const scrollTop = (_e2 = (_d2 = listBoxRef.value) == null ? void 0 : _d2.scrollTop) != null ? _e2 : 0;
163
+ } = ((_c = (_b = contextmenuRef.value) == null ? void 0 : _b.$el) == null ? void 0 : _c.getBoundingClientRect()) || {};
164
+ const scrollTop = (_e = (_d = listBoxRef.value) == null ? void 0 : _d.scrollTop) != null ? _e : 0;
145
165
  const offset = 5;
146
166
  const style = {};
147
167
  if (clientX < left + width - (contextmenuWidth + 2) - offset) {
@@ -203,9 +223,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
203
223
  }
204
224
  }
205
225
  function handleClickoutside(e) {
206
- var _a2, _b2, _c2, _d2, _e2;
207
- const panelInstEl = (_c2 = (_b2 = (_a2 = datePickerRef.value) == null ? void 0 : _a2.$datePicker) == null ? void 0 : _b2.panelInstRef) == null ? void 0 : _c2.$el;
208
- const show = !!(e.target && (panelInstEl && panelInstEl.contains(e.target) || ((_d2 = inputRef.value) == null ? void 0 : _d2.$el) && ((_e2 = inputRef.value) == null ? void 0 : _e2.$el.contains(e.target))));
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;
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
  }
211
231
  function handleUpdateDate(value) {
@@ -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, _b2, _c2;
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")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "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, _b2, _c2;
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")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "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, _e, _f, _g, _h, _i, _j, _k, _l;
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")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.104")) || "\u9759\u97F3", -1);
40
- const _hoisted_8 = /* @__PURE__ */ createElementVNode("span", null, ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.113")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "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, ((_g = window.getLanguageByCode) == null ? void 0 : _g.call(window, "10010.1.125")) || ((_i = (_h = window.top) == null ? void 0 : _h.getLanguageByCode) == null ? void 0 : _i.call(_h, "10010.1.125")) || "\u6302\u65AD", -1);
45
- const _hoisted_11 = /* @__PURE__ */ createElementVNode("span", null, ((_j = window.getLanguageByCode) == null ? void 0 : _j.call(window, "10010.1.114")) || ((_l = (_k = window.top) == null ? void 0 : _k.getLanguageByCode) == null ? void 0 : _l.call(_k, "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, _c, _d, _e, _f;
28
- return isAudio.value ? ((_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" : ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.131")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "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, _b, _c;
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")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "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, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l;
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")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "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) + (((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.136")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "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 (((_g = window.getLanguageByCode) == null ? void 0 : _g.call(window, "10010.1.134")) || ((_i = (_h = window.top) == null ? void 0 : _h.getLanguageByCode) == null ? void 0 : _i.call(_h, "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 (((_j = window.getLanguageByCode) == null ? void 0 : _j.call(window, "10010.1.132")) || ((_l = (_k = window.top) == null ? void 0 : _k.getLanguageByCode) == null ? void 0 : _l.call(_k, "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, _c, _d, _e, _f;
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")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "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 ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.138")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "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, _b, _c;
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")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "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, _c, _d, _e, _f;
256
- return chatMessageType === MESSAGE_TYPE.AUDIO ? ((_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" : ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.59")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "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, _b, _c;
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")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "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, _c, _d, _e, _f;
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")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "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(((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.417")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "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, _b3, _c2;
297
- return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.509")) || ((_c2 = (_b3 = window.top) == null ? void 0 : _b3.getLanguageByCode) == null ? void 0 : _c2.call(_b3, "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, _b3, _c2;
305
- return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.28")) || ((_c2 = (_b3 = window.top) == null ? void 0 : _b3.getLanguageByCode) == null ? void 0 : _c2.call(_b3, "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, _b3, _c2;
314
- return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.27")) || ((_c2 = (_b3 = window.top) == null ? void 0 : _b3.getLanguageByCode) == null ? void 0 : _c2.call(_b3, "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