hy-dispatch-ui-v3 0.2.85 → 0.2.87

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 (195) hide show
  1. package/dist/tailwind.css +27 -4
  2. package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
  3. package/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.mjs +1 -0
  4. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.mjs +1 -0
  5. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.mjs +1 -0
  6. package/es/bussiness/hyDeviceTree/deviceTree.vue.mjs +1 -0
  7. package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.mjs +1 -0
  8. package/es/bussiness/hyDisplayQueryAddress/locale/en_US.mjs +3 -3
  9. package/es/bussiness/hyDisplayQueryAddress/locale/zh_CN.mjs +3 -3
  10. package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs +1 -0
  11. package/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.mjs +7 -1
  12. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.mjs +1 -0
  13. package/es/bussiness/hyElectronicFence/electronicFence.vue.mjs +7 -1
  14. package/es/bussiness/hyFilePlayback/locale/en_US.mjs +17 -17
  15. package/es/bussiness/hyFilePlayback/locale/zh_CN.mjs +17 -17
  16. package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +1 -0
  17. package/es/bussiness/hyOrgGroupTree/orgGroupTree.vue.mjs +1 -0
  18. package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.mjs +1 -0
  19. package/es/bussiness/hyRuleSetting/ruleSetting.vue.mjs +1 -0
  20. package/es/bussiness/hySelectDeviceTree/cpns/deviceItem.vue.mjs +3 -3
  21. package/es/bussiness/hySelectDeviceTree/selectDeviceTree.vue.mjs +2 -8
  22. package/es/bussiness/hyUserTree/userTree.vue.mjs +1 -0
  23. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +9 -1
  24. package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +1 -0
  25. package/es/components/hyButton/button.vue.mjs +1 -0
  26. package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +1 -0
  27. package/es/components/hyConfigProvider/configProvider.vue.mjs +36 -35
  28. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -0
  29. package/es/components/hyCutter/cutter.vue.mjs +10 -1
  30. package/es/components/hyDatePicker/datePicker.vue.mjs +1 -0
  31. package/es/components/hyDialog/dialog.vue.mjs +1 -0
  32. package/es/components/hyDrawer/drawer.vue.mjs +1 -0
  33. package/es/components/hyForm/cpns/formItem.vue.mjs +15 -11
  34. package/es/components/hyForm/form.vue.mjs +2 -3
  35. package/es/components/hyIcon/icon.vue.mjs +1 -0
  36. package/es/components/hyIconBox/iconBox.vue.mjs +1 -0
  37. package/es/components/hyInput/input.vue.mjs +1 -0
  38. package/es/components/hyInput/inputSearch.vue.mjs +1 -0
  39. package/es/components/hyKindEditor/kindEditor.vue.mjs +17 -4
  40. package/es/components/hyMenu/menu.vue.mjs +1 -0
  41. package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -0
  42. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -0
  43. package/es/components/hyOrgCascader/js/index.mjs +0 -1
  44. package/es/components/hyOrgCascader/orgCascader.vue.mjs +1 -0
  45. package/es/components/hyRadioGroup/radioGroup.vue.mjs +4 -1
  46. package/es/components/hySearch/cpns/searchItem.vue.mjs +3 -1
  47. package/es/components/hySearch/search.vue.mjs +5 -1
  48. package/es/components/hyStatus/status.vue.mjs +1 -0
  49. package/es/components/hyTable/cpns/columnSelect.vue.mjs +5 -1
  50. package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +1 -1
  51. package/es/components/hyTable/cpns/virtualTable.vue.mjs +11 -2
  52. package/es/components/hyTable/js/index.mjs +7 -2
  53. package/es/components/hyTable/table.vue.mjs +5 -1
  54. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +1 -0
  55. package/es/components/hyTableForm/batchTableForm.vue.mjs +6 -3
  56. package/es/components/hyTableForm/tableForm.vue.mjs +1 -0
  57. package/es/components/hyTimePicker/timePicker.vue.mjs +1 -0
  58. package/es/components/hyTooltip/tooltip.vue.mjs +1 -0
  59. package/es/components/hyTour/tour.vue.mjs +1 -0
  60. package/es/components/hyTree/js/index.mjs +8 -2
  61. package/es/components/hyTree/tree.vue.mjs +1 -0
  62. package/es/components/hyUserAvatar/userAvatar.vue.mjs +1 -0
  63. package/es/components/hyVideoPlayer/{js → hyVideoPlayer/js}/index.mjs +9 -9
  64. package/es/components/hyVideoPlayer/hyVideoPlayer/videoPlayer.vue.mjs +656 -0
  65. package/es/components/hyVideoPlayer/index.mjs +2 -2
  66. package/es/components/hyVideoPlayer/locale/en_US.mjs +31 -0
  67. package/es/components/hyVideoPlayer/locale/index.mjs +2 -0
  68. package/es/components/hyVideoPlayer/locale/zh_CN.mjs +31 -0
  69. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +5 -645
  70. package/es/components/hyVideoPlayer/videoPlayer2.vue.mjs +930 -0
  71. package/es/hooks/useLocale.mjs +7 -2
  72. package/es/static/hy-svg-icons/hy-icon-ops-Empty-audio.js +22 -0
  73. package/es/static/hy-svg-icons/hy-icon-ops-Empty-document.js +23 -0
  74. package/es/static/hy-svg-icons/hy-icon-ops-Empty-fall.js +29 -0
  75. package/es/static/hy-svg-icons/hy-icon-ops-Empty-up.js +29 -0
  76. package/es/static/hy-svg-icons/hy-icon-ops-Empty-wait.js +29 -0
  77. package/es/static/hy-svg-icons/hy-icon-ops-audio-cycle.js +8 -0
  78. package/es/static/hy-svg-icons/hy-icon-ops-audio-edit.js +8 -0
  79. package/es/static/hy-svg-icons/hy-icon-ops-audio-fullscreen.js +8 -0
  80. package/es/static/hy-svg-icons/hy-icon-ops-audio-next.js +8 -0
  81. package/es/static/hy-svg-icons/hy-icon-ops-audio-previous.js +8 -0
  82. package/es/static/hy-svg-icons/hy-icon-ops-audio-semanticretrieval.js +8 -0
  83. package/es/static/hy-svg-icons/hy-icon-ops-audio-sequentialplay.js +8 -0
  84. package/es/static/hy-svg-icons/hy-icon-ops-audio-stopplayback.js +8 -0
  85. package/es/static/map/bm.geometryutil.js +3 -3
  86. package/es/static/map/bmDraw.js +6 -6
  87. package/es/static/map/markercluster.js +22 -22
  88. package/es/static/map/moveMarker.js +1 -1
  89. package/es/static/vite-plugin-hy-svg-icons.js +2 -2
  90. package/es/utils/file.mjs +7 -3
  91. package/es/utils/form.mjs +3 -1
  92. package/es/utils/map/hook/bigMap.mjs +18 -5
  93. package/es/utils/map/hook/gaode.mjs +4 -1
  94. package/es/utils/map/hook/leafletjs.mjs +29 -8
  95. package/es/utils/map/index.mjs +0 -1
  96. package/es/utils/useUiComponent.mjs +3 -1
  97. package/es/version.mjs +1 -1
  98. package/lib/_virtual/_plugin-vue_export-helper.js +13 -0
  99. package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.js +1 -0
  100. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.js +1 -0
  101. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.js +1 -0
  102. package/lib/bussiness/hyDeviceTree/deviceTree.vue.js +1 -0
  103. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.js +1 -0
  104. package/lib/bussiness/hyDisplayQueryAddress/locale/en_US.js +3 -3
  105. package/lib/bussiness/hyDisplayQueryAddress/locale/zh_CN.js +3 -3
  106. package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +1 -0
  107. package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.js +7 -1
  108. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.js +1 -0
  109. package/lib/bussiness/hyElectronicFence/electronicFence.vue.js +7 -1
  110. package/lib/bussiness/hyFilePlayback/locale/en_US.js +17 -17
  111. package/lib/bussiness/hyFilePlayback/locale/zh_CN.js +17 -17
  112. package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +1 -0
  113. package/lib/bussiness/hyOrgGroupTree/orgGroupTree.vue.js +1 -0
  114. package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.js +1 -0
  115. package/lib/bussiness/hyRuleSetting/ruleSetting.vue.js +1 -0
  116. package/lib/bussiness/hySelectDeviceTree/cpns/deviceItem.vue.js +3 -3
  117. package/lib/bussiness/hySelectDeviceTree/selectDeviceTree.vue.js +2 -8
  118. package/lib/bussiness/hyUserTree/userTree.vue.js +1 -0
  119. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +9 -1
  120. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +1 -0
  121. package/lib/components/hyButton/button.vue.js +1 -0
  122. package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +1 -0
  123. package/lib/components/hyConfigProvider/configProvider.vue.js +36 -35
  124. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +1 -0
  125. package/lib/components/hyCutter/cutter.vue.js +10 -1
  126. package/lib/components/hyDatePicker/datePicker.vue.js +1 -0
  127. package/lib/components/hyDialog/dialog.vue.js +1 -0
  128. package/lib/components/hyDrawer/drawer.vue.js +1 -0
  129. package/lib/components/hyForm/cpns/formItem.vue.js +15 -11
  130. package/lib/components/hyForm/form.vue.js +2 -3
  131. package/lib/components/hyIcon/icon.vue.js +1 -0
  132. package/lib/components/hyIconBox/iconBox.vue.js +1 -0
  133. package/lib/components/hyInput/input.vue.js +1 -0
  134. package/lib/components/hyInput/inputSearch.vue.js +1 -0
  135. package/lib/components/hyKindEditor/kindEditor.vue.js +17 -4
  136. package/lib/components/hyMenu/menu.vue.js +1 -0
  137. package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -0
  138. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -0
  139. package/lib/components/hyOrgCascader/js/index.js +0 -1
  140. package/lib/components/hyOrgCascader/orgCascader.vue.js +1 -0
  141. package/lib/components/hyRadioGroup/radioGroup.vue.js +4 -1
  142. package/lib/components/hySearch/cpns/searchItem.vue.js +3 -1
  143. package/lib/components/hySearch/search.vue.js +5 -1
  144. package/lib/components/hyStatus/status.vue.js +1 -0
  145. package/lib/components/hyTable/cpns/columnSelect.vue.js +5 -1
  146. package/lib/components/hyTable/cpns/columnSelectItem.vue.js +1 -1
  147. package/lib/components/hyTable/cpns/virtualTable.vue.js +11 -2
  148. package/lib/components/hyTable/js/index.js +7 -2
  149. package/lib/components/hyTable/table.vue.js +5 -1
  150. package/lib/components/hyTableActionButton/tableActionButton.vue.js +1 -0
  151. package/lib/components/hyTableForm/batchTableForm.vue.js +6 -3
  152. package/lib/components/hyTableForm/tableForm.vue.js +1 -0
  153. package/lib/components/hyTimePicker/timePicker.vue.js +1 -0
  154. package/lib/components/hyTooltip/tooltip.vue.js +1 -0
  155. package/lib/components/hyTour/tour.vue.js +1 -0
  156. package/lib/components/hyTree/js/index.js +8 -2
  157. package/lib/components/hyTree/tree.vue.js +1 -0
  158. package/lib/components/hyUserAvatar/userAvatar.vue.js +1 -0
  159. package/lib/components/hyVideoPlayer/{js → hyVideoPlayer/js}/index.js +9 -9
  160. package/lib/components/hyVideoPlayer/hyVideoPlayer/videoPlayer.vue.js +660 -0
  161. package/lib/components/hyVideoPlayer/locale/en_US.js +35 -0
  162. package/lib/components/hyVideoPlayer/locale/index.js +9 -0
  163. package/lib/components/hyVideoPlayer/locale/zh_CN.js +35 -0
  164. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +5 -645
  165. package/lib/components/hyVideoPlayer/videoPlayer2.vue.js +934 -0
  166. package/lib/hooks/useLocale.js +7 -2
  167. package/lib/static/hy-svg-icons/hy-icon-ops-Empty-audio.js +22 -0
  168. package/lib/static/hy-svg-icons/hy-icon-ops-Empty-document.js +23 -0
  169. package/lib/static/hy-svg-icons/hy-icon-ops-Empty-fall.js +29 -0
  170. package/lib/static/hy-svg-icons/hy-icon-ops-Empty-up.js +29 -0
  171. package/lib/static/hy-svg-icons/hy-icon-ops-Empty-wait.js +29 -0
  172. package/lib/static/hy-svg-icons/hy-icon-ops-audio-cycle.js +8 -0
  173. package/lib/static/hy-svg-icons/hy-icon-ops-audio-edit.js +8 -0
  174. package/lib/static/hy-svg-icons/hy-icon-ops-audio-fullscreen.js +8 -0
  175. package/lib/static/hy-svg-icons/hy-icon-ops-audio-next.js +8 -0
  176. package/lib/static/hy-svg-icons/hy-icon-ops-audio-previous.js +8 -0
  177. package/lib/static/hy-svg-icons/hy-icon-ops-audio-semanticretrieval.js +8 -0
  178. package/lib/static/hy-svg-icons/hy-icon-ops-audio-sequentialplay.js +8 -0
  179. package/lib/static/hy-svg-icons/hy-icon-ops-audio-stopplayback.js +8 -0
  180. package/lib/static/map/bm.geometryutil.js +3 -3
  181. package/lib/static/map/bmDraw.js +6 -6
  182. package/lib/static/map/markercluster.js +22 -22
  183. package/lib/static/map/moveMarker.js +1 -1
  184. package/lib/static/vite-plugin-hy-svg-icons.js +2 -2
  185. package/lib/utils/file.js +7 -3
  186. package/lib/utils/form.js +3 -1
  187. package/lib/utils/map/hook/bigMap.js +18 -5
  188. package/lib/utils/map/hook/gaode.js +4 -1
  189. package/lib/utils/map/hook/leafletjs.js +29 -8
  190. package/lib/utils/map/index.js +0 -1
  191. package/lib/utils/useUiComponent.js +3 -1
  192. package/lib/version.js +1 -1
  193. package/package.json +14 -8
  194. /package/es/components/hyVideoPlayer/{style → hyVideoPlayer/style}/videoPlayer.scss +0 -0
  195. /package/lib/components/hyVideoPlayer/{style → hyVideoPlayer/style}/videoPlayer.scss +0 -0
@@ -1,648 +1,8 @@
1
- import { defineComponent, useTemplateRef, computed, onMounted, onUnmounted, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, createVNode, createElementVNode, toDisplayString, Fragment, createBlock, withCtx, createTextVNode, normalizeStyle, withDirectives, isRef, vModelText, renderList, renderSlot } from 'vue';
2
- import { ElPopover, ElSlider } from 'element-plus';
3
- import '../../hooks/index.mjs';
4
- import '../../utils/index.mjs';
5
- import '../index.mjs';
6
- import _sfc_main$1 from './cpns/mediaLoading.vue.mjs';
7
- import { useVideoPlayer, useVideoResize } from './js/index.mjs';
8
- import { useMixins } from '../../hooks/useMixins.mjs';
9
- import { $t } from '../../hooks/useLocale.mjs';
10
- import { HyIcon } from '../hyIcon/index.mjs';
11
- import { HyButton } from '../hyButton/index.mjs';
12
- import { HyTooltip } from '../hyTooltip/index.mjs';
13
- import { useVideoPlayerConfig } from '../../hooks/useVideoPlayerConfig.mjs';
14
- import { isBoolean, isNumber } from '../../utils/is.mjs';
1
+ import _sfc_main from './videoPlayer2.vue.mjs';
2
+ import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
15
3
 
16
- import "./style/videoPlayer.scss";
4
+ import "/data/jenkins-work/workspace/WEB-V3-PROJECT-Web-hy-dispatch-ui@2/tmp/packages/components/hyVideoPlayer/videoPlayer.vue?vue&type=style&index=0&scoped=8645e10e&lang.scss";
17
5
 
18
- const __default__ = defineComponent({
19
- name: "HyVideoPlayer"
20
- });
21
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
22
- props: {
23
- type: {
24
- type: String,
25
- default: () => {
26
- const { videoPlayerConfig } = useVideoPlayerConfig();
27
- const { type } = videoPlayerConfig.value;
28
- if (["default", "analyse"].includes(type)) return type;
29
- return "default";
30
- }
31
- },
32
- // 播放列表
33
- playList: {
34
- type: Array,
35
- default: () => []
36
- },
37
- // 播放速度
38
- speed: {
39
- type: Number,
40
- default: () => {
41
- const { videoPlayerConfig } = useVideoPlayerConfig();
42
- if (isNumber(videoPlayerConfig.value.speed)) {
43
- return videoPlayerConfig.value.speed;
44
- }
45
- return 1;
46
- }
47
- },
48
- // 播放规则
49
- playRules: {
50
- type: Number,
51
- default: () => {
52
- const { videoPlayerConfig } = useVideoPlayerConfig();
53
- if ([1, 2, 3].includes) {
54
- return videoPlayerConfig.value.playRules;
55
- }
56
- return 3;
57
- }
58
- },
59
- // 是否显示播放规则
60
- showPlayRules: {
61
- type: Boolean,
62
- default: () => {
63
- const { videoPlayerConfig } = useVideoPlayerConfig();
64
- const { showPlayRules } = videoPlayerConfig.value;
65
- return isBoolean(showPlayRules) ? showPlayRules : true;
66
- }
67
- },
68
- // 是否显示下载文件
69
- showDownloadFiles: {
70
- type: Boolean,
71
- default: () => {
72
- const { videoPlayerConfig } = useVideoPlayerConfig();
73
- const { showDownloadFiles } = videoPlayerConfig.value;
74
- return isBoolean(showDownloadFiles) ? showDownloadFiles : true;
75
- }
76
- },
77
- // 是否显示展开控件
78
- showShrink: {
79
- type: Boolean,
80
- default: () => {
81
- const { videoPlayerConfig } = useVideoPlayerConfig();
82
- const { showShrink } = videoPlayerConfig.value;
83
- return isBoolean(showShrink) ? showShrink : false;
84
- }
85
- },
86
- // 是否显示全屏控件
87
- showFullScreen: {
88
- type: Boolean,
89
- default: () => {
90
- const { videoPlayerConfig } = useVideoPlayerConfig();
91
- const { showFullScreen } = videoPlayerConfig.value;
92
- return isBoolean(showFullScreen) ? showFullScreen : true;
93
- }
94
- },
95
- // VLC协议
96
- vlcProtocol: {
97
- type: String,
98
- default: () => {
99
- const { videoPlayerConfig } = useVideoPlayerConfig();
100
- return videoPlayerConfig.value.vlcProtocol || "hyvlc";
101
- }
102
- },
103
- // VLC下载地址
104
- vlcAddress: {
105
- type: String,
106
- default: () => {
107
- const { videoPlayerConfig } = useVideoPlayerConfig();
108
- return videoPlayerConfig.value.vlcAddress;
109
- }
110
- },
111
- // 下载处理
112
- downloadFn: {
113
- type: Function
114
- }
115
- },
116
- emits: ["canplay", "timeupdate", "play-start", "play-ended", "play-previous", "play-next"],
117
- setup(__props, { expose: __expose, emit: __emit }) {
118
- const props = __props;
119
- const emits = __emit;
120
- const videoWrapperRef = useTemplateRef("videoWrapperRef");
121
- const videoRef = useTemplateRef("videoRef");
122
- const {
123
- // useVideoPlayer
124
- speed,
125
- playRules,
126
- loading,
127
- videoItem,
128
- videoUrl,
129
- currentDuration,
130
- totalDuration,
131
- progress,
132
- isDrop,
133
- isFullScreen,
134
- volumeValue,
135
- hasVLC,
136
- isCanNotPlayType,
137
- videoState,
138
- speedLabel,
139
- isCanPlay,
140
- isAnalyseType,
141
- // 配置
142
- speedList,
143
- playRulesList,
144
- // 函数
145
- playVideo,
146
- pauseVideo,
147
- playPrevious,
148
- playNext,
149
- playRulesHandler,
150
- speedHandler,
151
- changeVolume,
152
- getNowWh,
153
- setVideoCurrentTime,
154
- getPercent,
155
- initFullScreenEvent,
156
- destroyFullScreenEvent,
157
- onFullScreenHandler,
158
- openVLC,
159
- downloadVLC,
160
- onDownloadHandler,
161
- // useVideoResize
162
- isExpand,
163
- videoHeight,
164
- onSwitchShrink,
165
- listenerVideoWrapper,
166
- unlistenerVideoWrapper
167
- } = useMixins(
168
- {
169
- props,
170
- emits,
171
- videoWrapperRef,
172
- videoRef
173
- },
174
- [useVideoPlayer, useVideoResize]
175
- );
176
- const showActionBtn = computed(() => {
177
- return !!videoUrl.value;
178
- });
179
- onMounted(() => {
180
- initFullScreenEvent();
181
- listenerVideoWrapper();
182
- });
183
- onUnmounted(() => {
184
- destroyFullScreenEvent();
185
- unlistenerVideoWrapper();
186
- });
187
- __expose({
188
- playVideo,
189
- pauseVideo,
190
- setVideoCurrentTime
191
- });
192
- return (_ctx, _cache) => {
193
- return openBlock(), createElementBlock(
194
- "div",
195
- {
196
- ref_key: "videoWrapperRef",
197
- ref: videoWrapperRef,
198
- class: normalizeClass(["hy-video-player-content", {
199
- "hy-video-player-content-pick-up": !unref(isExpand) && !unref(isFullScreen),
200
- "hy-full-video-player-content": unref(isFullScreen)
201
- }])
202
- },
203
- [
204
- createCommentVNode(" loading "),
205
- unref(loading) ? (openBlock(), createElementBlock("div", {
206
- key: 0,
207
- class: "w-full h-full flex flex-col justify-center items-center absolute left-0 top-0"
208
- }, [
209
- createVNode(_sfc_main$1),
210
- createElementVNode(
211
- "span",
212
- { class: "text-xs text-theme mt-4" },
213
- "..." + toDisplayString(unref($t)("videoPlayer.videoResourcesAreLoading")) + "...",
214
- 1
215
- /* TEXT */
216
- )
217
- ])) : createCommentVNode("v-if", true),
218
- createCommentVNode(" \u65E0\u6CD5\u64AD\u653E "),
219
- unref(videoState) === "CAN_NOT_PLAY" ? (openBlock(), createElementBlock("div", {
220
- key: 1,
221
- class: "w-full h-full flex flex-col justify-center items-center px-[34px] box-border"
222
- }, [
223
- createCommentVNode(" \u91C7\u96C6\u7AD9\u6587\u4EF6 "),
224
- unref(videoItem) && unref(videoItem).csFile === 1 && unref(videoItem).onlineState !== 1 ? (openBlock(), createElementBlock(
225
- Fragment,
226
- { key: 0 },
227
- [
228
- createElementVNode("div", { class: "w-[54px] h-[54px] rounded-full border-[2px] border-dangerv2 flex justify-center items-center shadow-[0px_0px_10px_2px_var(--dangerv2)]" }, [
229
- createElementVNode("div", { class: "w-[42px] h-[42px] rounded-full border-[1px] border-dashed border-dangerv2 flex justify-center items-center" }, [
230
- createVNode(unref(HyIcon), {
231
- "svg-name": "ops-button-icon-brok-link",
232
- class: "!w-[24px] !h-[24px] text-dangerv2"
233
- })
234
- ])
235
- ]),
236
- createElementVNode(
237
- "span",
238
- { class: "text-xs text-auxiliary mt-4" },
239
- toDisplayString(unref($t)("videoPlayer.fileLoadingFailed")),
240
- 1
241
- /* TEXT */
242
- ),
243
- createElementVNode(
244
- "span",
245
- { class: "text-xs text-auxiliary" },
246
- toDisplayString(unref($t)("pleaseCheckWhetherTheCollectionStationIsOnlineAndWhetherTheFileExists")),
247
- 1
248
- /* TEXT */
249
- )
250
- ],
251
- 64
252
- /* STABLE_FRAGMENT */
253
- )) : (openBlock(), createElementBlock(
254
- Fragment,
255
- { key: 1 },
256
- [
257
- createCommentVNode(" \u666E\u901A\u6587\u4EF6 "),
258
- createElementVNode("div", { class: "flex items-center justify-center text-auxiliary" }, [
259
- createVNode(unref(HyIcon), {
260
- "svg-name": "ops-audio-center-right-ripple",
261
- className: "!w-[12px] !h-[12px]"
262
- }),
263
- createVNode(unref(HyIcon), {
264
- "svg-name": "ops-audio-media-center-video3",
265
- className: "!w-[40px] !h-[40px] mx-1"
266
- }),
267
- createVNode(unref(HyIcon), {
268
- "svg-name": "ops-audio-media-center-left-rippleV2",
269
- className: "!w-[12px] !h-[12px]"
270
- })
271
- ]),
272
- createElementVNode(
273
- "div",
274
- { class: "text-theme text-center mt-3 mb-[14px]" },
275
- toDisplayString(unref(isCanNotPlayType) ? unref($t)("videoPlayer.vlcPlayerTip") : unref($t)("videoPlayer.theVideoCannotBePlayed")),
276
- 1
277
- /* TEXT */
278
- ),
279
- unref(isCanNotPlayType) ? (openBlock(), createElementBlock("div", {
280
- key: 0,
281
- class: "flex justify-center"
282
- }, [
283
- unref(hasVLC) ? (openBlock(), createBlock(unref(HyButton), {
284
- key: 0,
285
- onClick: unref(openVLC)
286
- }, {
287
- default: withCtx(() => [
288
- createTextVNode(
289
- toDisplayString(unref($t)("videoPlayer.clickPlay")),
290
- 1
291
- /* TEXT */
292
- )
293
- ]),
294
- _: 1
295
- /* STABLE */
296
- }, 8, ["onClick"])) : (openBlock(), createBlock(unref(HyButton), {
297
- key: 1,
298
- onClick: unref(downloadVLC)
299
- }, {
300
- default: withCtx(() => [
301
- createTextVNode(
302
- toDisplayString(unref($t)("videoPlayer.toDownloadVlc")),
303
- 1
304
- /* TEXT */
305
- )
306
- ]),
307
- _: 1
308
- /* STABLE */
309
- }, 8, ["onClick"]))
310
- ])) : createCommentVNode("v-if", true)
311
- ],
312
- 64
313
- /* STABLE_FRAGMENT */
314
- )),
315
- createCommentVNode(" \u5207\u6362\u89C6\u9891\u63A7\u4EF6 "),
316
- __props.playList?.length > 1 ? (openBlock(), createElementBlock(
317
- Fragment,
318
- { key: 2 },
319
- [
320
- createElementVNode("div", { class: "vlc-between-control left-0" }, [
321
- createVNode(unref(HyTooltip), {
322
- isAlways: "",
323
- overLine: 1,
324
- content: unref($t)("videoPlayer.viewThePreviousVideo")
325
- }, {
326
- default: withCtx(() => [
327
- createElementVNode("div", {
328
- class: "w-[30px] h-[30px] bg-[#3D6286] flex items-center justify-center cursor-pointer",
329
- onClick: unref(playPrevious)
330
- }, [
331
- createVNode(unref(HyIcon), {
332
- "svg-name": "ops-audio-audio-previous-btn",
333
- className: "!w-3 !h-3 text-main"
334
- })
335
- ], 8, ["onClick"])
336
- ]),
337
- _: 1
338
- /* STABLE */
339
- }, 8, ["content"])
340
- ]),
341
- createElementVNode("div", { class: "vlc-between-control right-0" }, [
342
- createVNode(unref(HyTooltip), {
343
- isAlways: "",
344
- overLine: 1,
345
- content: unref($t)("videoPlayer.viewTheNextVideo")
346
- }, {
347
- default: withCtx(() => [
348
- createElementVNode("div", {
349
- class: "w-[30px] h-[30px] bg-[#3D6286] flex items-center justify-center cursor-pointer",
350
- onClick: unref(playNext)
351
- }, [
352
- createVNode(unref(HyIcon), {
353
- "svg-name": "dispatch-share1-v3-ai-interpretation-next",
354
- className: "!w-3 !h-3 text-main"
355
- })
356
- ], 8, ["onClick"])
357
- ]),
358
- _: 1
359
- /* STABLE */
360
- }, 8, ["content"])
361
- ])
362
- ],
363
- 64
364
- /* STABLE_FRAGMENT */
365
- )) : createCommentVNode("v-if", true)
366
- ])) : (openBlock(), createElementBlock(
367
- Fragment,
368
- { key: 2 },
369
- [
370
- createCommentVNode(" \u53EF\u4EE5\u64AD\u653E "),
371
- createElementVNode(
372
- "video",
373
- {
374
- ref_key: "videoRef",
375
- ref: videoRef,
376
- style: normalizeStyle({ height: unref(videoHeight) })
377
- },
378
- [
379
- createElementVNode("source", { type: "video/mp4" }),
380
- createElementVNode("source", { type: "video/webm" }),
381
- createElementVNode("source", { type: "video/ogg" }),
382
- createTextVNode(
383
- " " + toDisplayString(unref($t)("videoPlayer.yourBrowserDoesNotSupportHTMLVideoPlayback")),
384
- 1
385
- /* TEXT */
386
- )
387
- ],
388
- 4
389
- /* STYLE */
390
- ),
391
- createElementVNode("div", { class: "operator-box" }, [
392
- createElementVNode("div", { class: "progress-box" }, [
393
- withDirectives(createElementVNode("input", {
394
- "onUpdate:modelValue": ($event) => isRef(progress) ? progress.value = $event : null,
395
- type: "range",
396
- max: "100",
397
- style: normalizeStyle({
398
- background: `linear-gradient(to right, rgba(var(--hy-theme)) ${unref(getPercent)(
399
- unref(progress),
400
- 100
401
- )}%, rgba(var(--hy-theme), 0.5) ${unref(getPercent)(unref(progress), 100)}% `
402
- }),
403
- onMousedown: ($event) => isDrop.value = true,
404
- onMouseup: ($event) => unref(getNowWh)($event)
405
- }, null, 44, ["onUpdate:modelValue", "onMousedown", "onMouseup"]), [
406
- [vModelText, unref(progress)]
407
- ])
408
- ]),
409
- createElementVNode("div", { class: "left-operator" }, [
410
- createElementVNode(
411
- "span",
412
- { class: "text-main" },
413
- toDisplayString(unref(currentDuration)),
414
- 1
415
- /* TEXT */
416
- ),
417
- createTextVNode(" / "),
418
- createElementVNode(
419
- "span",
420
- null,
421
- toDisplayString(unref(totalDuration)),
422
- 1
423
- /* TEXT */
424
- )
425
- ]),
426
- unref(isCanPlay) ? (openBlock(), createElementBlock(
427
- "div",
428
- {
429
- key: 0,
430
- class: normalizeClass(["center-operator", { "center-analyse": unref(isAnalyseType) }])
431
- },
432
- [
433
- createElementVNode("div", { onClick: unref(playPrevious) }, [
434
- createVNode(unref(HyIcon), {
435
- "svg-name": unref(isAnalyseType) ? "dispatch-share1-v3-ai-interpretation-last" : "ops-audio-audio-previous-btn",
436
- "class-name": "last-icon"
437
- }, null, 8, ["svg-name"])
438
- ], 8, ["onClick"]),
439
- unref(videoState) !== "PLAYING" ? (openBlock(), createElementBlock("div", {
440
- key: 0,
441
- onClick: ($event) => unref(playVideo)(unref(videoUrl))
442
- }, [
443
- createVNode(unref(HyIcon), { "svg-name": "ops-audio-audio-play-btn" })
444
- ], 8, ["onClick"])) : createCommentVNode("v-if", true),
445
- unref(videoState) === "PLAYING" ? (openBlock(), createElementBlock("div", {
446
- key: 1,
447
- onClick: unref(pauseVideo)
448
- }, [
449
- createVNode(unref(HyIcon), { "svg-name": "ops-audio-audio-pause-btn" })
450
- ], 8, ["onClick"])) : createCommentVNode("v-if", true),
451
- createElementVNode("div", { onClick: unref(playNext) }, [
452
- createVNode(unref(HyIcon), {
453
- "svg-name": unref(isAnalyseType) ? "dispatch-share1-v3-ai-interpretation-next" : "ops-audio-audio-next-btn",
454
- "class-name": "next-icon"
455
- }, null, 8, ["svg-name"])
456
- ], 8, ["onClick"])
457
- ],
458
- 2
459
- /* CLASS */
460
- )) : createCommentVNode("v-if", true),
461
- createElementVNode("div", { class: "right-operator" }, [
462
- createCommentVNode(" \u901F\u5EA6 "),
463
- createVNode(unref(ElPopover), {
464
- placement: "top",
465
- trigger: "click",
466
- appendToBody: false,
467
- "popper-class": "hy-video-player-popover-speed"
468
- }, {
469
- reference: withCtx(() => [
470
- createElementVNode(
471
- "div",
472
- { class: "speed-box" },
473
- toDisplayString(unref(speedLabel)),
474
- 1
475
- /* TEXT */
476
- )
477
- ]),
478
- default: withCtx(() => [
479
- createElementVNode("div", { class: "flex items-center justify-center py-[10px]" }, [
480
- createElementVNode("ul", { class: "speed-list" }, [
481
- (openBlock(true), createElementBlock(
482
- Fragment,
483
- null,
484
- renderList(unref(speedList), (item, index) => {
485
- return openBlock(), createElementBlock("li", {
486
- key: index,
487
- class: normalizeClass(["clickBox", { selectBox: item.value === unref(speed) }]),
488
- onClick: ($event) => unref(speedHandler)(item.value)
489
- }, toDisplayString(item.label), 11, ["onClick"]);
490
- }),
491
- 128
492
- /* KEYED_FRAGMENT */
493
- ))
494
- ])
495
- ])
496
- ]),
497
- _: 1
498
- /* STABLE */
499
- }),
500
- createCommentVNode(" \u58F0\u97F3 "),
501
- createVNode(unref(ElPopover), {
502
- placement: "top",
503
- appendToBody: false,
504
- trigger: "click",
505
- "popper-class": "hy-video-player-popover-volume-slider"
506
- }, {
507
- reference: withCtx(() => [
508
- createElementVNode("div", { class: "flex items-center justify-center" }, [
509
- createVNode(unref(HyTooltip), {
510
- isAlways: "",
511
- overLine: 1,
512
- content: unref($t)("videoPlayer.adjustPlaybackVolume")
513
- }, {
514
- default: withCtx(() => [
515
- createVNode(unref(HyIcon), {
516
- "svg-name": "dispatch-share-audio-volumn",
517
- "class-name": "volume-icon"
518
- })
519
- ]),
520
- _: 1
521
- /* STABLE */
522
- }, 8, ["content"])
523
- ])
524
- ]),
525
- default: withCtx(() => [
526
- createElementVNode("div", { class: "flex items-center justify-center pt-3" }, [
527
- createVNode(unref(ElSlider), {
528
- modelValue: unref(volumeValue),
529
- "onUpdate:modelValue": ($event) => isRef(volumeValue) ? volumeValue.value = $event : null,
530
- vertical: "",
531
- height: "105px",
532
- onInput: ($event) => unref(changeVolume)($event)
533
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
534
- ])
535
- ]),
536
- _: 1
537
- /* STABLE */
538
- }),
539
- createCommentVNode(" \u653E\u5927 "),
540
- __props.showFullScreen ? (openBlock(), createBlock(unref(HyTooltip), {
541
- key: 0,
542
- isAlways: "",
543
- overLine: 1,
544
- content: unref($t)("videoPlayer.fullScreenSwitch")
545
- }, {
546
- default: withCtx(() => [
547
- createVNode(unref(HyIcon), {
548
- "svg-name": unref(isFullScreen) ? "ops-audio-audio-reduce" : "ops-audio-audio-enlarge",
549
- onClick: unref(onFullScreenHandler)
550
- }, null, 8, ["svg-name", "onClick"])
551
- ]),
552
- _: 1
553
- /* STABLE */
554
- }, 8, ["content"])) : createCommentVNode("v-if", true),
555
- createCommentVNode(" \u6536\u8D77/\u5C55\u5F00 "),
556
- !unref(isFullScreen) && __props.showShrink ? (openBlock(), createBlock(unref(HyTooltip), {
557
- key: 1,
558
- isAlways: "",
559
- overLine: 1,
560
- content: unref(isExpand) ? unref($t)("videoPlayer.packUp") : unref($t)("videoPlayer.expand")
561
- }, {
562
- default: withCtx(() => [
563
- createVNode(unref(HyIcon), {
564
- "svg-name": unref(isExpand) ? "dispatch-share1-v3-ai-interpretation-foldup" : "dispatch-share1-v3-ai-interpretation-expand",
565
- onClick: unref(onSwitchShrink)
566
- }, null, 8, ["svg-name", "onClick"])
567
- ]),
568
- _: 1
569
- /* STABLE */
570
- }, 8, ["content"])) : createCommentVNode("v-if", true)
571
- ])
572
- ])
573
- ],
574
- 64
575
- /* STABLE_FRAGMENT */
576
- )),
577
- createCommentVNode(" \u89C6\u9891\u989D\u5916\u529F\u80FD "),
578
- (__props.showDownloadFiles || __props.showPlayRules) && unref(isExpand) ? (openBlock(), createElementBlock(
579
- "div",
580
- {
581
- key: 3,
582
- class: normalizeClass(["float-operator-item", {
583
- "!right-[43px]": unref(videoState) === "CAN_NOT_PLAY" && __props.playList?.length > 1
584
- }])
585
- },
586
- [
587
- createCommentVNode(" \u4E0B\u8F7D "),
588
- __props.showDownloadFiles && showActionBtn.value ? (openBlock(), createBlock(unref(HyTooltip), {
589
- key: 0,
590
- isAlways: "",
591
- overLine: 1,
592
- content: unref($t)("videoPlayer.downloadFile")
593
- }, {
594
- default: withCtx(() => [
595
- createVNode(unref(HyIcon), {
596
- "svg-name": "ops-audio-audio-down-btn",
597
- onClick: unref(onDownloadHandler)
598
- }, null, 8, ["onClick"])
599
- ]),
600
- _: 1
601
- /* STABLE */
602
- }, 8, ["content"])) : createCommentVNode("v-if", true),
603
- createCommentVNode(" \u64AD\u653E\u89C4\u5219 "),
604
- __props.showPlayRules && unref(videoState) !== "CAN_NOT_PLAY" ? (openBlock(true), createElementBlock(
605
- Fragment,
606
- { key: 1 },
607
- renderList(unref(playRulesList), (item, index) => {
608
- return openBlock(), createElementBlock(
609
- Fragment,
610
- { key: index },
611
- [
612
- unref(playRules) === item.value ? (openBlock(), createBlock(unref(HyTooltip), {
613
- key: 0,
614
- isAlways: "",
615
- overLine: 1,
616
- content: item.label
617
- }, {
618
- default: withCtx(() => [
619
- createVNode(unref(HyIcon), {
620
- "svg-name": item.svgName,
621
- onClick: ($event) => unref(playRulesHandler)(item.value)
622
- }, null, 8, ["svg-name", "onClick"])
623
- ]),
624
- _: 2
625
- /* DYNAMIC */
626
- }, 1032, ["content"])) : createCommentVNode("v-if", true)
627
- ],
628
- 64
629
- /* STABLE_FRAGMENT */
630
- );
631
- }),
632
- 128
633
- /* KEYED_FRAGMENT */
634
- )) : createCommentVNode("v-if", true),
635
- renderSlot(_ctx.$slots, "pight-control-ranel")
636
- ],
637
- 2
638
- /* CLASS */
639
- )) : createCommentVNode("v-if", true)
640
- ],
641
- 2
642
- /* CLASS */
643
- );
644
- };
645
- }
646
- });
6
+ var componnet = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8645e10e"]]);
647
7
 
648
- export { _sfc_main as default };
8
+ export { componnet as default };