cnhis-design-vue 3.3.2-beta.12 → 3.3.2-beta.6

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 (179) hide show
  1. package/README.md +87 -87
  2. package/es/components/audio-sdk/src/Index.vue2.js +1 -1
  3. package/es/components/audio-sdk/style/index.css +1 -1
  4. package/es/components/base-search/src/index.vue2.js +15 -27
  5. package/es/components/big-table/src/BigTable.vue2.js +131 -189
  6. package/es/components/big-table/src/components/NoData.vue2.js +4 -16
  7. package/es/components/big-table/src/components/edit-form/edit-date.js +6 -12
  8. package/es/components/big-table/src/components/edit-form/edit-input.js +2 -8
  9. package/es/components/big-table/src/components/edit-form/edit-select.js +17 -21
  10. package/es/components/big-table/src/components/edit-form/edit-time.js +4 -11
  11. package/es/components/big-table/src/components/input-button.vue2.js +3 -7
  12. package/es/components/big-table/src/hooks/useNestTable.js +4 -18
  13. package/es/components/big-table/src/hooks/useTableParse.js +3 -16
  14. package/es/components/body-select/src/index.vue2.js +4 -24
  15. package/es/components/button-print/index.d.ts +0 -1
  16. package/es/components/button-print/src/ButtonPrint.vue.d.ts +0 -1
  17. package/es/components/button-print/src/ButtonPrint.vue2.js +11 -52
  18. package/es/components/button-print/src/components/EditFormat.vue2.js +6 -14
  19. package/es/components/button-print/src/components/IdentityVerification.vue2.js +43 -94
  20. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +94 -229
  21. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +0 -1
  22. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +32 -92
  23. package/es/components/button-print/src/components/Preview.vue2.js +2 -8
  24. package/es/components/button-print/src/utils/dialog.js +6 -24
  25. package/es/components/button-print/src/utils/print.d.ts +5 -5
  26. package/es/components/button-print/src/utils/print.js +21 -108
  27. package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +2 -8
  28. package/es/components/card-reader-sdk/src/utils/readHealthCard.js +4 -16
  29. package/es/components/card-reader-sdk-cn/src/henan/index.js +11 -38
  30. package/es/components/classification/src/components/search-filter/index.vue2.js +10 -24
  31. package/es/components/classification/src/components/set-classification/index.vue2.js +6 -23
  32. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  33. package/es/components/classification/src/components/table-modal/index.vue2.js +165 -324
  34. package/es/components/classification/src/index.vue2.js +69 -261
  35. package/es/components/default-page/src/constants/index.js +19 -144
  36. package/es/components/default-page/src/index.vue2.js +2 -8
  37. package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +51 -75
  38. package/es/components/expand-field/src/components/FormItemPerson.vue2.js +38 -46
  39. package/es/components/expand-field/src/components/PersonModal.vue2.js +50 -62
  40. package/es/components/expand-field/src/components/form.vue2.js +412 -783
  41. package/es/components/expand-field/src/index.vue2.js +22 -88
  42. package/es/components/expand-field/src/utils/constant.js +12 -88
  43. package/es/components/fabric-chart/src/components/PopupMenu.js +15 -32
  44. package/es/components/fabric-chart/src/constants/index.js +10 -72
  45. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +3 -16
  46. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +2 -8
  47. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +5 -32
  48. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +2 -8
  49. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +41 -63
  50. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  51. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -5
  52. package/es/components/fabric-chart/src/hooks/useCommon.js +4 -24
  53. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  54. package/es/components/fabric-chart/src/utils/index.js +2 -2
  55. package/es/components/field-editor/src/fields.js +30 -232
  56. package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
  57. package/es/components/field-set/src/FieldColor.vue2.js +21 -88
  58. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  59. package/es/components/field-set/src/FieldFilter.vue2.js +12 -28
  60. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  61. package/es/components/field-set/src/FieldSet.vue2.js +57 -210
  62. package/es/components/field-set/src/Index.vue2.js +6 -40
  63. package/es/components/field-set/src/TableStyle.vue2.js +13 -48
  64. package/es/components/field-set/src/components/condition.vue2.js +11 -27
  65. package/es/components/field-set/src/components/edit-dialog.vue2.js +69 -149
  66. package/es/components/field-set/src/components/edit-filter.vue2.js +4 -24
  67. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  68. package/es/components/field-set/src/components/table-row.vue2.js +42 -123
  69. package/es/components/field-set/src/constants/filter.js +42 -328
  70. package/es/components/field-set/src/constants/index.js +64 -504
  71. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +46 -91
  72. package/es/components/form-config/src/constants/index.js +11 -80
  73. package/es/components/form-config/src/hooks/useLocale.js +31 -240
  74. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +3 -7
  75. package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +3 -7
  76. package/es/components/form-render/src/components/renderer/combination/tableCombination.js +2 -8
  77. package/es/components/form-render/src/components/renderer/radio_checkbox.js +3 -7
  78. package/es/components/form-render/src/components/renderer/remoteSearch.js +2 -8
  79. package/es/components/form-render/src/components/renderer/switch.js +4 -24
  80. package/es/components/form-render/src/utils/schema.js +6 -26
  81. package/es/components/iho-chat/src/Index.vue2.js +38 -42
  82. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +33 -108
  83. package/es/components/iho-chat/src/components/ChatFile.vue2.js +90 -132
  84. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +48 -110
  85. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +15 -35
  86. package/es/components/iho-chat/src/components/ChatMain.vue2.js +22 -54
  87. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +45 -77
  88. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +208 -256
  89. package/es/components/iho-chat/src/components/ChatSet.vue2.js +211 -309
  90. package/es/components/iho-chat/src/components/ContextMenu.js +9 -50
  91. package/es/components/iho-chat/src/components/MessageEvent.vue2.js +4 -16
  92. package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +2 -8
  93. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +18 -104
  94. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +12 -67
  95. package/es/components/iho-chat/src/components/SelectLabel.vue2.js +43 -47
  96. package/es/components/iho-chat/src/components/SiderList.vue2.js +40 -70
  97. package/es/components/iho-chat/src/components/Video.vue2.js +11 -38
  98. package/es/components/iho-chat/src/hooks/useVideo.js +4 -15
  99. package/es/components/iho-chat/src/utils/index.js +14 -79
  100. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +2 -8
  101. package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +15 -40
  102. package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue2.js +15 -40
  103. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  104. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +20 -50
  105. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +6 -14
  106. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +3 -10
  107. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +18 -45
  108. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  109. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +14 -20
  110. package/es/components/index.css +1 -1
  111. package/es/components/info-header/src/components/patientInfo/index.vue2.js +23 -142
  112. package/es/components/keyboard/src/Keyboard.vue2.js +9 -21
  113. package/es/components/keyboard/src/components/NumberPanel.vue2.js +35 -49
  114. package/es/components/map/src/Map.vue2.js +3 -7
  115. package/es/components/picture-clipper/src/PictureClipper.vue2.js +6 -14
  116. package/es/components/quick-search/src/index.vue2.js +132 -177
  117. package/es/components/recommend-search/src/components/BaseSearch.js +8 -14
  118. package/es/components/recommend-search/src/components/RecommendInput.vue2.js +8 -28
  119. package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +5 -18
  120. package/es/components/scale-view/src/ScaleView.vue2.js +7 -15
  121. package/es/components/scale-view/src/components/NoData.vue2.js +4 -16
  122. package/es/components/scale-view/src/components/formitem/r-cascader.js +2 -8
  123. package/es/components/scale-view/src/components/formitem/r-checkbox.js +6 -24
  124. package/es/components/scale-view/src/components/formitem/r-input.js +2 -8
  125. package/es/components/scale-view/src/components/formitem/r-map.js +2 -8
  126. package/es/components/scale-view/src/components/formitem/r-radio.js +6 -24
  127. package/es/components/scale-view/src/components/formitem/r-select.js +2 -8
  128. package/es/components/scale-view/src/components/formitem/r-sign.js +9 -30
  129. package/es/components/scale-view/src/components/formitem/standard-modal.js +3 -16
  130. package/es/components/scale-view/src/hooks/scaleview-computed.js +5 -24
  131. package/es/components/scale-view/src/hooks/scaleview-methods.js +4 -16
  132. package/es/components/scale-view/src/hooks/scaleview-submit.js +3 -16
  133. package/es/components/scale-view/src/hooks/scaleview-validate.js +9 -40
  134. package/es/components/search-cascader/src/SearchCascader.vue2.js +14 -20
  135. package/es/components/select-label/src/LabelFormContent.vue2.js +21 -53
  136. package/es/components/select-label/src/SelectLabel.vue2.js +55 -85
  137. package/es/components/select-label/src/components/label-classify.vue2.js +11 -28
  138. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +5 -18
  139. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +8 -34
  140. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +5 -18
  141. package/es/components/select-person/src/SelectPerson.vue2.js +141 -214
  142. package/es/components/select-person/src/SelectPersonType.vue2.js +105 -130
  143. package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +2 -9
  144. package/es/components/select-person/src/index.vue2.js +7 -20
  145. package/es/components/slider-tree/src/index.vue2.js +3 -16
  146. package/es/components/table-export-field/src/components/ExportModal.vue2.js +112 -186
  147. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +88 -147
  148. package/es/components/table-export-field/src/index.vue2.js +12 -28
  149. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +5 -32
  150. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +34 -264
  151. package/es/components/table-filter/src/components/bi-filter/index.vue2.js +135 -214
  152. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +3 -16
  153. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +2 -9
  154. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +6 -39
  155. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +5 -18
  156. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +18 -29
  157. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +3 -16
  158. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +2 -8
  159. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +130 -195
  160. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +7 -26
  161. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +7 -13
  162. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +8 -34
  163. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +8 -21
  164. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +3 -7
  165. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +6 -19
  166. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +3 -16
  167. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +10 -24
  168. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +207 -1648
  169. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +2 -8
  170. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +3 -16
  171. package/es/components/table-filter/src/tool/baseOptions.js +19 -144
  172. package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +12 -28
  173. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +2 -22
  174. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +3 -7
  175. package/es/components/vod-chunk-upload/src/vod-upload-modal.js +6 -14
  176. package/es/env.d.ts +25 -25
  177. package/es/shared/hooks/selectHooks/useSelectAllowModify.js +2 -2
  178. package/es/shared/package.json.js +1 -1
  179. package/package.json +2 -2
@@ -41,75 +41,34 @@ var ContextMenu = /* @__PURE__ */ defineComponent({
41
41
  slots,
42
42
  emit
43
43
  }) {
44
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
44
45
  const {
45
46
  state,
46
47
  setCurrentSessionItem
47
48
  } = useData();
48
49
  const defaultMenuList = [{
49
50
  icon: CopyOutline,
50
- label: function() {
51
- var _a, _b, _c;
52
- try {
53
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.97")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.97")) || "\u590D\u5236";
54
- } catch (e) {
55
- return "\u590D\u5236";
56
- }
57
- }(),
51
+ label: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.97")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.97")) || "\u590D\u5236",
58
52
  key: "copy"
59
53
  }, {
60
54
  icon: OpenOutline,
61
- label: function() {
62
- var _a, _b, _c;
63
- try {
64
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.45")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.45")) || "\u8F6C\u53D1";
65
- } catch (e) {
66
- return "\u8F6C\u53D1";
67
- }
68
- }(),
55
+ label: ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.45")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.45")) || "\u8F6C\u53D1",
69
56
  key: "relay"
70
57
  }, {
71
58
  icon: ChatbubbleEllipsesOutline,
72
- label: function() {
73
- var _a, _b, _c;
74
- try {
75
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.99")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.99")) || "\u56DE\u590D";
76
- } catch (e) {
77
- return "\u56DE\u590D";
78
- }
79
- }(),
59
+ label: ((_g = window.getLanguageByCode) == null ? void 0 : _g.call(window, "10010.1.99")) || ((_i = (_h = window.top) == null ? void 0 : _h.getLanguageByCode) == null ? void 0 : _i.call(_h, "10010.1.99")) || "\u56DE\u590D",
80
60
  key: "reply"
81
61
  }, {
82
62
  icon: ReorderFourOutline,
83
- label: function() {
84
- var _a, _b, _c;
85
- try {
86
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.100")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.100")) || "\u591A\u9009";
87
- } catch (e) {
88
- return "\u591A\u9009";
89
- }
90
- }(),
63
+ label: ((_j = window.getLanguageByCode) == null ? void 0 : _j.call(window, "10010.1.100")) || ((_l = (_k = window.top) == null ? void 0 : _k.getLanguageByCode) == null ? void 0 : _l.call(_k, "10010.1.100")) || "\u591A\u9009",
91
64
  key: "multiSelect"
92
65
  }, {
93
66
  icon: ReturnDownBack,
94
- label: function() {
95
- var _a, _b, _c;
96
- try {
97
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.101")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.101")) || "\u64A4\u56DE";
98
- } catch (e) {
99
- return "\u64A4\u56DE";
100
- }
101
- }(),
67
+ label: ((_m = window.getLanguageByCode) == null ? void 0 : _m.call(window, "10010.1.101")) || ((_o = (_n = window.top) == null ? void 0 : _n.getLanguageByCode) == null ? void 0 : _o.call(_n, "10010.1.101")) || "\u64A4\u56DE",
102
68
  key: "withdraw"
103
69
  }, {
104
70
  icon: DownloadOutline,
105
- label: function() {
106
- var _a, _b, _c;
107
- try {
108
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.102")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.102")) || "\u4E0B\u8F7D";
109
- } catch (e) {
110
- return "\u4E0B\u8F7D";
111
- }
112
- }(),
71
+ label: ((_p = window.getLanguageByCode) == null ? void 0 : _p.call(window, "10010.1.102")) || ((_r = (_q = window.top) == null ? void 0 : _q.getLanguageByCode) == null ? void 0 : _r.call(_q, "10010.1.102")) || "\u4E0B\u8F7D",
113
72
  key: "download"
114
73
  }];
115
74
  const defaultSessionMenuList = [{
@@ -127,14 +86,14 @@ var ContextMenu = /* @__PURE__ */ defineComponent({
127
86
  }) => id === props.id);
128
87
  });
129
88
  const menuList = computed(() => {
130
- var _a;
89
+ var _a2;
131
90
  if (!props.id)
132
91
  return [];
133
92
  if (!(item == null ? void 0 : item.value))
134
93
  return [];
135
94
  if (props.type === "session") {
136
95
  const _defaultSessionMenuList = [...defaultSessionMenuList];
137
- _defaultSessionMenuList[0].label = ((_a = item.value) == null ? void 0 : _a.topping) ? "\u53D6\u6D88\u7F6E\u9876" : "\u7F6E\u9876\u4F1A\u8BDD";
96
+ _defaultSessionMenuList[0].label = ((_a2 = item.value) == null ? void 0 : _a2.topping) ? "\u53D6\u6D88\u7F6E\u9876" : "\u7F6E\u9876\u4F1A\u8BDD";
138
97
  if (item.value.status === STATUS.ENDED)
139
98
  _defaultSessionMenuList.pop();
140
99
  return _defaultSessionMenuList;
@@ -102,14 +102,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
102
102
  }
103
103
  }
104
104
  return (_ctx, _cache) => {
105
- return inviter.value && invitee.value.length > 0 ? (openBlock(), createElementBlock("p", _hoisted_1, [inviter.value.id == unref(state).userInfo.id ? (openBlock(), createElementBlock("span", _hoisted_2, function() {
106
- var _a, _b, _c;
107
- try {
108
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.67")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.67")) || "\u4F60";
109
- } catch (e) {
110
- return "\u4F60";
111
- }
112
- }())) : (openBlock(), createBlock(unref(NButton), {
105
+ var _a, _b, _c;
106
+ return inviter.value && invitee.value.length > 0 ? (openBlock(), createElementBlock("p", _hoisted_1, [inviter.value.id == unref(state).userInfo.id ? (openBlock(), createElementBlock("span", _hoisted_2, ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.67")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.67")) || "\u4F60")) : (openBlock(), createBlock(unref(NButton), {
113
107
  key: 1,
114
108
  size: "tiny",
115
109
  text: "",
@@ -125,16 +119,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
125
119
  default: withCtx(() => [createTextVNode(toDisplayString(inviter.value.name), 1)]),
126
120
  _: 1
127
121
  })), _hoisted_3, (openBlock(true), createElementBlock(Fragment, null, renderList(invitee.value, (user, idx) => {
122
+ var _a2, _b2, _c2;
128
123
  return openBlock(), createElementBlock(Fragment, {
129
124
  key: user.id
130
- }, [user.id == unref(state).userInfo.id ? (openBlock(), createElementBlock("span", _hoisted_4, function() {
131
- var _a, _b, _c;
132
- try {
133
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.67")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.67")) || "\u4F60";
134
- } catch (e) {
135
- return "\u4F60";
136
- }
137
- }())) : (openBlock(), createBlock(unref(NButton), {
125
+ }, [user.id == unref(state).userInfo.id ? (openBlock(), createElementBlock("span", _hoisted_4, ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.67")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "10010.1.67")) || "\u4F60")) : (openBlock(), createBlock(unref(NButton), {
138
126
  key: 1,
139
127
  size: "tiny",
140
128
  text: "",
@@ -128,6 +128,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
128
128
  emit("template-click", data, props.data);
129
129
  }
130
130
  return (_ctx, _cache) => {
131
+ var _a, _b, _c;
131
132
  return openBlock(), createElementBlock(Fragment, null, [unref(setting).style.id == 1 ? (openBlock(), createElementBlock("div", {
132
133
  key: 0,
133
134
  class: "default-msg-template",
@@ -180,14 +181,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
180
181
  key: 0,
181
182
  class: normalizeClass(["describe-msg-template__footer", showMore.value ? "" : "hidden"]),
182
183
  onClick: _cache[3] || (_cache[3] = () => showMore.value = false)
183
- }, [createTextVNode(function() {
184
- var _a, _b, _c;
185
- try {
186
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.103")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.103")) || "\u5C55\u5F00\u5168\u90E8";
187
- } catch (e) {
188
- return "\u5C55\u5F00\u5168\u90E8";
189
- }
190
- }()), _hoisted_13], 2)) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true), unref(setting).style.id == 2 ? (openBlock(), createElementBlock("div", _hoisted_14, [createVNode(unref(NIcon), {
184
+ }, [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.103")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.103")) || "\u5C55\u5F00\u5168\u90E8"), _hoisted_13], 2)) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true), unref(setting).style.id == 2 ? (openBlock(), createElementBlock("div", _hoisted_14, [createVNode(unref(NIcon), {
191
185
  component: unref(AlertCircleSharp),
192
186
  color: "#ffc200",
193
187
  size: 18
@@ -18,6 +18,7 @@ import 'sockjs-client/dist/sockjs.min.js';
18
18
  import { useVideo } from '../hooks/useVideo.js';
19
19
  import TRTC from 'trtc-sdk-v5';
20
20
 
21
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
21
22
  const _hoisted_1 = {
22
23
  class: "video-wrapper video-wrapper--multiple"
23
24
  };
@@ -43,50 +44,22 @@ const _hoisted_8 = {
43
44
  };
44
45
  const _hoisted_9 = /* @__PURE__ */ createElementVNode("span", {
45
46
  class: "text"
46
- }, function() {
47
- var _a, _b, _c;
48
- try {
49
- 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";
50
- } catch (e) {
51
- return "\u9759\u97F3";
52
- }
53
- }(), -1);
47
+ }, ((_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);
54
48
  const _hoisted_10 = {
55
49
  class: "btn"
56
50
  };
57
51
  const _hoisted_11 = /* @__PURE__ */ createElementVNode("span", {
58
52
  class: "text"
59
- }, function() {
60
- var _a, _b, _c;
61
- try {
62
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.105")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.105")) || "\u6444\u50CF\u5934";
63
- } catch (e) {
64
- return "\u6444\u50CF\u5934";
65
- }
66
- }(), -1);
53
+ }, ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.105")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.105")) || "\u6444\u50CF\u5934", -1);
67
54
  const _hoisted_12 = /* @__PURE__ */ createElementVNode("span", {
68
55
  class: "text"
69
- }, function() {
70
- var _a, _b, _c;
71
- try {
72
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.106")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.106")) || "\u7ED3\u675F\u4F1A\u8BCA";
73
- } catch (e) {
74
- return "\u7ED3\u675F\u4F1A\u8BCA";
75
- }
76
- }(), -1);
56
+ }, ((_g = window.getLanguageByCode) == null ? void 0 : _g.call(window, "10010.1.106")) || ((_i = (_h = window.top) == null ? void 0 : _h.getLanguageByCode) == null ? void 0 : _i.call(_h, "10010.1.106")) || "\u7ED3\u675F\u4F1A\u8BCA", -1);
77
57
  const _hoisted_13 = {
78
58
  class: "btn"
79
59
  };
80
60
  const _hoisted_14 = /* @__PURE__ */ createElementVNode("span", {
81
61
  class: "text"
82
- }, function() {
83
- var _a, _b, _c;
84
- try {
85
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.107")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.107")) || "\u6DFB\u52A0\u53C2\u4F1A\u4EBA";
86
- } catch (e) {
87
- return "\u6DFB\u52A0\u53C2\u4F1A\u4EBA";
88
- }
89
- }(), -1);
62
+ }, ((_j = window.getLanguageByCode) == null ? void 0 : _j.call(window, "10010.1.107")) || ((_l = (_k = window.top) == null ? void 0 : _k.getLanguageByCode) == null ? void 0 : _l.call(_k, "10010.1.107")) || "\u6DFB\u52A0\u53C2\u4F1A\u4EBA", -1);
90
63
  const _hoisted_15 = {
91
64
  class: "video-main__right"
92
65
  };
@@ -115,25 +88,11 @@ const _hoisted_22 = {
115
88
  const _hoisted_23 = {
116
89
  class: "btn"
117
90
  };
118
- const _hoisted_24 = /* @__PURE__ */ createElementVNode("span", null, function() {
119
- var _a, _b, _c;
120
- try {
121
- 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";
122
- } catch (e) {
123
- return "\u62D2\u63A5";
124
- }
125
- }(), -1);
91
+ const _hoisted_24 = /* @__PURE__ */ createElementVNode("span", null, ((_m = window.getLanguageByCode) == null ? void 0 : _m.call(window, "10010.1.113")) || ((_o = (_n = window.top) == null ? void 0 : _n.getLanguageByCode) == null ? void 0 : _o.call(_n, "10010.1.113")) || "\u62D2\u63A5", -1);
126
92
  const _hoisted_25 = {
127
93
  class: "btn"
128
94
  };
129
- const _hoisted_26 = /* @__PURE__ */ createElementVNode("span", null, function() {
130
- var _a, _b, _c;
131
- try {
132
- 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";
133
- } catch (e) {
134
- return "\u63A5\u542C";
135
- }
136
- }(), -1);
95
+ const _hoisted_26 = /* @__PURE__ */ createElementVNode("span", null, ((_p = window.getLanguageByCode) == null ? void 0 : _p.call(window, "10010.1.114")) || ((_r = (_q = window.top) == null ? void 0 : _q.getLanguageByCode) == null ? void 0 : _r.call(_q, "10010.1.114")) || "\u63A5\u542C", -1);
137
96
  var _sfc_main = /* @__PURE__ */ defineComponent({
138
97
  __name: "MultipleVideo",
139
98
  setup(__props) {
@@ -174,8 +133,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
174
133
  handleCall();
175
134
  }
176
135
  function handleCall() {
177
- var _a;
178
- if ((_a = state.currentAVMsg.checkedIds) == null ? void 0 : _a.length) {
136
+ var _a2;
137
+ if ((_a2 = state.currentAVMsg.checkedIds) == null ? void 0 : _a2.length) {
179
138
  state.currentAVMsg.checkedIds.forEach((id) => {
180
139
  sendMessage({
181
140
  chatType: CHAT_TYPE.SINGLE,
@@ -268,11 +227,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
268
227
  }
269
228
  }
270
229
  async function handleRemoteAudioAvailable(event) {
271
- var _a;
230
+ var _a2;
272
231
  const {
273
232
  userId
274
233
  } = event;
275
- if (userId && !((_a = remoteUsers.value.map((user) => user.id)) == null ? void 0 : _a.includes(userId))) {
234
+ if (userId && !((_a2 = remoteUsers.value.map((user) => user.id)) == null ? void 0 : _a2.includes(userId))) {
276
235
  const name = await getUserName(userId);
277
236
  remoteUsers.value.push({
278
237
  id: userId,
@@ -315,6 +274,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
315
274
  handleExit();
316
275
  });
317
276
  return (_ctx, _cache) => {
277
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2, _o2, _p2, _q2, _r2;
318
278
  return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [withDirectives(createElementVNode("span", {
319
279
  class: "title"
320
280
  }, toDisplayString(unref(title)), 513), [[vShow, isConnect.value]]), createVNode(unref(NButton), {
@@ -386,35 +346,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
386
346
  }, null, 8, _hoisted_16);
387
347
  }), 128))])])) : (openBlock(), createElementBlock(Fragment, {
388
348
  key: 1
389
- }, [createElementVNode("div", _hoisted_17, [createElementVNode("span", _hoisted_18, toDisplayString(unref(callUser)) + function() {
390
- var _a, _b, _c;
391
- try {
392
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.108")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.108")) || "\u53D1\u8D77\u7684";
393
- } catch (e) {
394
- return "\u53D1\u8D77\u7684";
395
- }
396
- }() + toDisplayString(unref(messageTypeText)) + function() {
397
- var _a, _b, _c;
398
- try {
399
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.109")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.109")) || "\u4F1A\u8BAE";
400
- } catch (e) {
401
- return "\u4F1A\u8BAE";
402
- }
403
- }(), 1), !unref(isCall) ? (openBlock(), createElementBlock("span", _hoisted_19, function() {
404
- var _a, _b, _c;
405
- try {
406
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.110")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.110")) || "\u9080\u8BF7\u4F60\u52A0\u5165";
407
- } catch (e) {
408
- return "\u9080\u8BF7\u4F60\u52A0\u5165";
409
- }
410
- }() + toDisplayString(unref(messageTypeText)) + function() {
411
- var _a, _b, _c;
412
- try {
413
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.109")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.109")) || "\u4F1A\u8BAE";
414
- } catch (e) {
415
- return "\u4F1A\u8BAE";
416
- }
417
- }(), 1)) : createCommentVNode("v-if", true)]), unref(isCall) ? (openBlock(), createElementBlock("div", _hoisted_20, [createVNode(ChatAdd, {
349
+ }, [createElementVNode("div", _hoisted_17, [createElementVNode("span", _hoisted_18, toDisplayString(unref(callUser)) + (((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.108")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "10010.1.108")) || "\u53D1\u8D77\u7684") + toDisplayString(unref(messageTypeText)) + (((_d2 = window.getLanguageByCode) == null ? void 0 : _d2.call(window, "10010.1.109")) || ((_f2 = (_e2 = window.top) == null ? void 0 : _e2.getLanguageByCode) == null ? void 0 : _f2.call(_e2, "10010.1.109")) || "\u4F1A\u8BAE"), 1), !unref(isCall) ? (openBlock(), createElementBlock("span", _hoisted_19, (((_g2 = window.getLanguageByCode) == null ? void 0 : _g2.call(window, "10010.1.110")) || ((_i2 = (_h2 = window.top) == null ? void 0 : _h2.getLanguageByCode) == null ? void 0 : _i2.call(_h2, "10010.1.110")) || "\u9080\u8BF7\u4F60\u52A0\u5165") + toDisplayString(unref(messageTypeText)) + (((_j2 = window.getLanguageByCode) == null ? void 0 : _j2.call(window, "10010.1.109")) || ((_l2 = (_k2 = window.top) == null ? void 0 : _k2.getLanguageByCode) == null ? void 0 : _l2.call(_k2, "10010.1.109")) || "\u4F1A\u8BAE"), 1)) : createCommentVNode("v-if", true)]), unref(isCall) ? (openBlock(), createElementBlock("div", _hoisted_20, [createVNode(ChatAdd, {
418
350
  onComfirm: handleAddPerson,
419
351
  disabledIds: unref(state).currentAVMsg.checkedIds
420
352
  }, {
@@ -429,35 +361,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
429
361
  _: 1
430
362
  })]),
431
363
  _: 1
432
- }, 8, ["disabledIds"]), createElementVNode("p", null, function() {
433
- var _a, _b, _c;
434
- try {
435
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.111")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.111")) || "\u5DF2\u9080\u8BF7\u5171";
436
- } catch (e) {
437
- return "\u5DF2\u9080\u8BF7\u5171";
438
- }
439
- }() + toDisplayString(unref(state).currentAVMsg.checkedIds.length) + function() {
440
- var _a, _b, _c;
441
- try {
442
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.40")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.40")) || "\u4EBA";
443
- } catch (e) {
444
- return "\u4EBA";
445
- }
446
- }(), 1), createVNode(unref(NButton), {
364
+ }, 8, ["disabledIds"]), createElementVNode("p", null, (((_m2 = window.getLanguageByCode) == null ? void 0 : _m2.call(window, "10010.1.111")) || ((_o2 = (_n2 = window.top) == null ? void 0 : _n2.getLanguageByCode) == null ? void 0 : _o2.call(_n2, "10010.1.111")) || "\u5DF2\u9080\u8BF7\u5171") + toDisplayString(unref(state).currentAVMsg.checkedIds.length) + (((_p2 = window.getLanguageByCode) == null ? void 0 : _p2.call(window, "10010.1.40")) || ((_r2 = (_q2 = window.top) == null ? void 0 : _q2.getLanguageByCode) == null ? void 0 : _r2.call(_q2, "10010.1.40")) || "\u4EBA"), 1), createVNode(unref(NButton), {
447
365
  size: "large",
448
366
  strong: "",
449
367
  round: "",
450
368
  type: "primary",
451
369
  onClick: handleCall
452
370
  }, {
453
- default: withCtx(() => [createTextVNode(function() {
454
- var _a, _b, _c;
455
- try {
456
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.112")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.112")) || "\u5F00\u59CB\u4F1A\u8BCA";
457
- } catch (e) {
458
- return "\u5F00\u59CB\u4F1A\u8BCA";
459
- }
460
- }())]),
371
+ default: withCtx(() => {
372
+ var _a3, _b3, _c3;
373
+ return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.112")) || ((_c3 = (_b3 = window.top) == null ? void 0 : _b3.getLanguageByCode) == null ? void 0 : _c3.call(_b3, "10010.1.112")) || "\u5F00\u59CB\u4F1A\u8BCA")];
374
+ }),
461
375
  _: 1
462
376
  }), createElementVNode("div", _hoisted_21, [createVNode(unref(NButton), {
463
377
  color: "#000",
@@ -40,6 +40,7 @@ const _hoisted_9 = {
40
40
  var _sfc_main = /* @__PURE__ */ defineComponent({
41
41
  __name: "PersonProfile",
42
42
  setup(__props) {
43
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
43
44
  const {
44
45
  state,
45
46
  openSession
@@ -48,91 +49,35 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
48
49
  const showPhone = ref(false);
49
50
  const userDetail = reactive({});
50
51
  const info = [{
51
- label: function() {
52
- var _a, _b, _c;
53
- try {
54
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.115")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.115")) || "\u673A\u6784";
55
- } catch (e) {
56
- return "\u673A\u6784";
57
- }
58
- }(),
52
+ label: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.115")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.115")) || "\u673A\u6784",
59
53
  value: "",
60
54
  key: "orgName"
61
55
  }, {
62
- label: function() {
63
- var _a, _b, _c;
64
- try {
65
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.116")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.116")) || "\u59D3\u540D";
66
- } catch (e) {
67
- return "\u59D3\u540D";
68
- }
69
- }(),
56
+ label: ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.116")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.116")) || "\u59D3\u540D",
70
57
  value: "",
71
58
  key: "name"
72
59
  }, {
73
- label: function() {
74
- var _a, _b, _c;
75
- try {
76
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.117")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.117")) || "\u5F52\u5C5E\u79D1\u5BA4";
77
- } catch (e) {
78
- return "\u5F52\u5C5E\u79D1\u5BA4";
79
- }
80
- }(),
60
+ label: ((_g = window.getLanguageByCode) == null ? void 0 : _g.call(window, "10010.1.117")) || ((_i = (_h = window.top) == null ? void 0 : _h.getLanguageByCode) == null ? void 0 : _i.call(_h, "10010.1.117")) || "\u5F52\u5C5E\u79D1\u5BA4",
81
61
  value: "",
82
62
  key: "deptName"
83
63
  }, {
84
- label: function() {
85
- var _a, _b, _c;
86
- try {
87
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.118")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.118")) || "\u4E1A\u52A1\u79D1\u5BA4";
88
- } catch (e) {
89
- return "\u4E1A\u52A1\u79D1\u5BA4";
90
- }
91
- }(),
64
+ label: ((_j = window.getLanguageByCode) == null ? void 0 : _j.call(window, "10010.1.118")) || ((_l = (_k = window.top) == null ? void 0 : _k.getLanguageByCode) == null ? void 0 : _l.call(_k, "10010.1.118")) || "\u4E1A\u52A1\u79D1\u5BA4",
92
65
  value: "",
93
66
  key: "businessDeptNames"
94
67
  }, {
95
- label: function() {
96
- var _a, _b, _c;
97
- try {
98
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.119")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.119")) || "\u624B\u673A\u53F7";
99
- } catch (e) {
100
- return "\u624B\u673A\u53F7";
101
- }
102
- }(),
68
+ label: ((_m = window.getLanguageByCode) == null ? void 0 : _m.call(window, "10010.1.119")) || ((_o = (_n = window.top) == null ? void 0 : _n.getLanguageByCode) == null ? void 0 : _o.call(_n, "10010.1.119")) || "\u624B\u673A\u53F7",
103
69
  value: "",
104
70
  key: "phone"
105
71
  }, {
106
- label: function() {
107
- var _a, _b, _c;
108
- try {
109
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.120")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.120")) || "\u5C97\u4F4D";
110
- } catch (e) {
111
- return "\u5C97\u4F4D";
112
- }
113
- }(),
72
+ label: ((_p = window.getLanguageByCode) == null ? void 0 : _p.call(window, "10010.1.120")) || ((_r = (_q = window.top) == null ? void 0 : _q.getLanguageByCode) == null ? void 0 : _r.call(_q, "10010.1.120")) || "\u5C97\u4F4D",
114
73
  value: "",
115
74
  key: "post"
116
75
  }, {
117
- label: function() {
118
- var _a, _b, _c;
119
- try {
120
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.121")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.121")) || "\u5DE5\u53F7";
121
- } catch (e) {
122
- return "\u5DE5\u53F7";
123
- }
124
- }(),
76
+ label: ((_s = window.getLanguageByCode) == null ? void 0 : _s.call(window, "10010.1.121")) || ((_u = (_t = window.top) == null ? void 0 : _t.getLanguageByCode) == null ? void 0 : _u.call(_t, "10010.1.121")) || "\u5DE5\u53F7",
125
77
  value: "",
126
78
  key: "jobId"
127
79
  }, {
128
- label: function() {
129
- var _a, _b, _c;
130
- try {
131
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.122")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.122")) || "\u6027\u522B";
132
- } catch (e) {
133
- return "\u6027\u522B";
134
- }
135
- }(),
80
+ label: ((_v = window.getLanguageByCode) == null ? void 0 : _v.call(window, "10010.1.122")) || ((_x = (_w = window.top) == null ? void 0 : _w.getLanguageByCode) == null ? void 0 : _x.call(_w, "10010.1.122")) || "\u6027\u522B",
136
81
  value: "",
137
82
  key: "orgName"
138
83
  }];
@@ -148,9 +93,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
148
93
  return info;
149
94
  });
150
95
  async function toOpenSession() {
151
- var _a;
96
+ var _a2;
152
97
  state.userDetail.show = false;
153
- const userId = state.userDetail.userId || ((_a = state.userDetail.info) == null ? void 0 : _a.id);
98
+ const userId = state.userDetail.userId || ((_a2 = state.userDetail.info) == null ? void 0 : _a2.id);
154
99
  let session = state.sessionList.find((_session) => _session.receiver === userId);
155
100
  if (!session) {
156
101
  try {
@@ -225,7 +170,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
225
170
  round: "",
226
171
  size: 100,
227
172
  onClickCapture: _cache[0] || (_cache[0] = ($event) => showLargeAvatar.value = true)
228
- }, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\r\n <n-upload-trigger #="{ handleClick }" abstract>\r\n <n-button\r\n circle\r\n secondary\r\n class="edit-avatar"\r\n v-show="userDetail.id === state.userInfo.id"\r\n @click="handleClick"\r\n >\r\n <template #icon>\r\n <n-icon size="16" color="#666666" :component="Camera" />\r\n </template>\r\n </n-button>\r\n </n-upload-trigger>\r\n </n-upload> '), createElementVNode("div", _hoisted_4, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_5, toDisplayString(userDetail.name), 1), withDirectives(createElementVNode("label", {
173
+ }, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\n <n-upload-trigger #="{ handleClick }" abstract>\n <n-button\n circle\n secondary\n class="edit-avatar"\n v-show="userDetail.id === state.userInfo.id"\n @click="handleClick"\n >\n <template #icon>\n <n-icon size="16" color="#666666" :component="Camera" />\n </template>\n </n-button>\n </n-upload-trigger>\n </n-upload> '), createElementVNode("div", _hoisted_4, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_5, toDisplayString(userDetail.name), 1), withDirectives(createElementVNode("label", {
229
174
  class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(userDetail.roleInfo) ? "isDoctor" : ""])
230
175
  }, toDisplayString(unref(getRoleName)(userDetail.roleInfo)), 3), [[vShow, unref(getRoleName)(userDetail.roleInfo)]])]), createElementVNode("p", null, toDisplayString(userDetail.orgName), 1)]), createVNode(unref(NButton), {
231
176
  strong: "",
@@ -72,55 +72,51 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
72
72
  type: "card",
73
73
  "tab-class": "tab-box"
74
74
  }, {
75
- default: withCtx(() => [createVNode(unref(NTabPane), {
76
- name: "emoji",
77
- tab: function() {
78
- var _a, _b, _c;
79
- try {
80
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.53")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.53")) || "\u8868\u60C5";
81
- } catch (e) {
82
- return "\u8868\u60C5";
83
- }
84
- }()
85
- }, {
86
- default: withCtx(() => [createElementVNode("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(emojis).default, ([name, emoji]) => {
87
- return openBlock(), createBlock(unref(NTooltip), {
88
- key: name,
89
- "show-arrow": false
90
- }, {
91
- trigger: withCtx(() => [createVNode(unref(NButton), {
92
- quaternary: "",
93
- size: "tiny",
94
- onClick: () => handleMessageLabel("emoji", name)
75
+ default: withCtx(() => {
76
+ var _a, _b, _c;
77
+ return [createVNode(unref(NTabPane), {
78
+ name: "emoji",
79
+ tab: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.53")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.53")) || "\u8868\u60C5"
80
+ }, {
81
+ default: withCtx(() => [createElementVNode("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(emojis).default, ([name, emoji]) => {
82
+ return openBlock(), createBlock(unref(NTooltip), {
83
+ key: name,
84
+ "show-arrow": false
95
85
  }, {
96
- icon: withCtx(() => [createElementVNode("img", {
97
- src: emoji
98
- }, null, 8, _hoisted_2)]),
86
+ trigger: withCtx(() => [createVNode(unref(NButton), {
87
+ quaternary: "",
88
+ size: "tiny",
89
+ onClick: () => handleMessageLabel("emoji", name)
90
+ }, {
91
+ icon: withCtx(() => [createElementVNode("img", {
92
+ src: emoji
93
+ }, null, 8, _hoisted_2)]),
94
+ _: 2
95
+ }, 1032, ["onClick"])]),
96
+ default: withCtx(() => [createTextVNode(" " + toDisplayString(name), 1)]),
99
97
  _: 2
100
- }, 1032, ["onClick"])]),
101
- default: withCtx(() => [createTextVNode(" " + toDisplayString(name), 1)]),
102
- _: 2
103
- }, 1024);
104
- }), 128))])]),
105
- _: 1
106
- }), createVNode(unref(NTabPane), {
107
- name: "text",
108
- tab: "\u6587\u5B57"
109
- }, {
110
- default: withCtx(() => [createElementVNode("div", _hoisted_3, [(openBlock(), createElementBlock(Fragment, null, renderList(labelList, (item) => {
111
- return createVNode(unref(NButton), {
112
- type: item.type,
113
- secondary: "",
114
- size: "small",
115
- key: item.label,
116
- onClick: () => handleMessageLabel("text", item)
117
- }, {
118
- default: withCtx(() => [createTextVNode(toDisplayString(item.label), 1)]),
119
- _: 2
120
- }, 1032, ["type", "onClick"]);
121
- }), 64))])]),
122
- _: 1
123
- })]),
98
+ }, 1024);
99
+ }), 128))])]),
100
+ _: 1
101
+ }), createVNode(unref(NTabPane), {
102
+ name: "text",
103
+ tab: "\u6587\u5B57"
104
+ }, {
105
+ default: withCtx(() => [createElementVNode("div", _hoisted_3, [(openBlock(), createElementBlock(Fragment, null, renderList(labelList, (item) => {
106
+ return createVNode(unref(NButton), {
107
+ type: item.type,
108
+ secondary: "",
109
+ size: "small",
110
+ key: item.label,
111
+ onClick: () => handleMessageLabel("text", item)
112
+ }, {
113
+ default: withCtx(() => [createTextVNode(toDisplayString(item.label), 1)]),
114
+ _: 2
115
+ }, 1032, ["type", "onClick"]);
116
+ }), 64))])]),
117
+ _: 1
118
+ })];
119
+ }),
124
120
  _: 1
125
121
  })]),
126
122
  _: 1