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
@@ -0,0 +1,930 @@
1
+ import { defineComponent, onUnmounted, onMounted, ref, computed, nextTick, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, createVNode, createElementVNode, toDisplayString, Fragment, createBlock, withCtx, createTextVNode, withDirectives, isRef, normalizeStyle, vModelText, renderList, withModifiers, vShow, renderSlot } from 'vue';
2
+ import '../index.mjs';
3
+ import '../../hooks/index.mjs';
4
+ import '../../utils/index.mjs';
5
+ import { ElMessage, ElTooltip, ElPopover, ElSlider } from 'element-plus';
6
+ import _sfc_main$1 from './cpns/mediaLoading.vue.mjs';
7
+ import * as index from './locale/index.mjs';
8
+ import { registerComponentLocale, unregisterComponentLocale, $t } from '../../hooks/useLocale.mjs';
9
+ import { useBaseMainStore } from '../../hooks/useBaseMainStore.mjs';
10
+ import { isSupportH265 } from '../../utils/is.mjs';
11
+ import { HyConfirmDialog } from '../hyConfirmDialog/index.mjs';
12
+ import { copyText } from '../../utils/handler.mjs';
13
+ import { useMixins } from '../../hooks/useMixins.mjs';
14
+ import { HyIcon } from '../hyIcon/index.mjs';
15
+ import { HyButton } from '../hyButton/index.mjs';
16
+ import { formatSeconds } from '../../utils/timeUtils.mjs';
17
+
18
+ var _sfc_main = /* @__PURE__ */ defineComponent({
19
+ __name: "videoPlayer",
20
+ props: {
21
+ /* 下载 */
22
+ downloadFilesType: {
23
+ type: Boolean,
24
+ default: () => {
25
+ return true;
26
+ }
27
+ },
28
+ /* 播放规则 */
29
+ playRulesType: {
30
+ type: Boolean,
31
+ default: () => {
32
+ return true;
33
+ }
34
+ },
35
+ // 播放列表
36
+ playList: {
37
+ type: Array,
38
+ default: () => {
39
+ return [];
40
+ }
41
+ },
42
+ // 是否使用不可拖拽弹框模式
43
+ contentMode: {
44
+ type: Boolean,
45
+ default: () => {
46
+ return false;
47
+ }
48
+ }
49
+ },
50
+ emits: ["can-play", "play-start", "play-end", "on-time-update"],
51
+ setup(__props, { expose: __expose, emit: __emit }) {
52
+ const emit = __emit;
53
+ registerComponentLocale("HyVideoPlayer", index);
54
+ onUnmounted(() => {
55
+ unregisterComponentLocale("HyVideoPlayer");
56
+ });
57
+ const $t$1 = (key, option) => $t(`HyVideoPlayer.${key}`, option);
58
+ const props = __props;
59
+ function useVideoPlayer(hy) {
60
+ const { baseMainStore } = useBaseMainStore();
61
+ onUnmounted(() => {
62
+ hy.videoEl.value = null;
63
+ });
64
+ onMounted(() => {
65
+ hy.playRulesFn(3);
66
+ hy.speedFn(1);
67
+ hy.initVideo();
68
+ hy.initFullScreenEvent();
69
+ });
70
+ const isCanNotPlayType2 = ref(true);
71
+ const speedList2 = ref([
72
+ { value: 0.5, label: "0.5 X" },
73
+ { value: 1, label: "1.0 X" },
74
+ { value: 1.5, label: "1.5 X" },
75
+ { value: 2, label: "2.0 X" },
76
+ { value: 3, label: "3.0 X" }
77
+ ]);
78
+ const speed2 = ref(1);
79
+ const playRuleslist2 = ref([
80
+ {
81
+ value: 1,
82
+ label: $t$1("stopAfterPlayback"),
83
+ svgName: "mediaCenter_stopPlaying"
84
+ },
85
+ {
86
+ value: 2,
87
+ label: $t$1("continuousPlayback"),
88
+ svgName: "mediaCenter_autoplay"
89
+ },
90
+ {
91
+ value: 3,
92
+ label: $t$1("loopPlayback"),
93
+ svgName: "mediaCenter_loopPlayback"
94
+ }
95
+ ]);
96
+ const playRules2 = ref(1);
97
+ const videoItem2 = ref({});
98
+ const videoUrl2 = ref("");
99
+ const value2 = ref(0);
100
+ const videoEl2 = ref(null);
101
+ const videoState2 = ref("NO_LOAD");
102
+ const curTime2 = ref(0);
103
+ const totalTime2 = ref(0);
104
+ const isDrop2 = ref(false);
105
+ const isFullScreen2 = ref(false);
106
+ const volumeValue2 = ref(100);
107
+ const isChangeVolume2 = ref(false);
108
+ const hasVLC2 = ref(true);
109
+ const decodeSuccess2 = ref(false);
110
+ const loading2 = ref(false);
111
+ const buffering2 = ref(false);
112
+ const speedLabel2 = computed(() => {
113
+ if (hy.speed.value === 1) {
114
+ return $t$1("multiples");
115
+ } else {
116
+ return hy.speedList.value.find((item) => item.value === hy.speed.value).label;
117
+ }
118
+ });
119
+ const playItem2 = computed(() => {
120
+ return hy.props.playList.find((item) => item.id === hy.videoItem.value.id);
121
+ });
122
+ const canPlay2 = computed(() => {
123
+ return hy.videoState.value !== "NO_LOAD" || hy.videoState.value !== "CAN_NOT_PLAY";
124
+ });
125
+ function playRulesFn2(newPlayRules) {
126
+ if (newPlayRules === 3) {
127
+ hy.playRules.value = 1;
128
+ } else {
129
+ hy.playRules.value = newPlayRules + 1;
130
+ }
131
+ }
132
+ function speedFn2(newSpeed) {
133
+ hy.speed.value = newSpeed;
134
+ if (document.getElementById("#videoPlayer")) {
135
+ document.getElementById("#videoPlayer").playbackRate = speed2;
136
+ }
137
+ }
138
+ function findIndexFn2() {
139
+ return hy.props.playList.findIndex((item) => item.id === hy.videoItem.value.id);
140
+ }
141
+ function playNext2() {
142
+ const findIndex = hy.findIndexFn();
143
+ if (findIndex !== hy.props.playList.length - 1) {
144
+ hy.decodeSuccess.value = false;
145
+ const item = hy.props.playList[findIndex + 1];
146
+ hy.playVideo(item.filePath, item);
147
+ } else {
148
+ ElMessage.warning($t$1("currentIsTheLastItem"));
149
+ }
150
+ }
151
+ function playPrevious2() {
152
+ const findIndex = hy.findIndexFn();
153
+ if (findIndex > 0 && findIndex !== hy.props.playList.length) {
154
+ hy.decodeSuccess.value = false;
155
+ const item = hy.props.playList[findIndex - 1];
156
+ hy.playVideo(item.filePath, item);
157
+ } else {
158
+ ElMessage.warning($t$1("currentIsTheFirstItem"));
159
+ }
160
+ }
161
+ async function playVideo2(filePath, item) {
162
+ const { isSupport } = isSupportH265();
163
+ if (item && item.fileCoding === "H.265" && !isSupport) {
164
+ hy.videoState.value = "CAN_NOT_PLAY";
165
+ hy.isCanNotPlayType.value = true;
166
+ return;
167
+ }
168
+ if (hy.videoState.value === "CAN_NOT_PLAY") {
169
+ hy.videoState.value = "NO_LOAD";
170
+ await nextTick();
171
+ hy.initVideo();
172
+ }
173
+ if (item) {
174
+ if (item.id !== hy.videoItem.value.id || !hy.videoEl.value.src) {
175
+ hy.loading.value = true;
176
+ hy.videoItem.value = item;
177
+ hy.videoUrl.value = filePath;
178
+ hy.videoEl.value.src = filePath;
179
+ }
180
+ } else {
181
+ if (hy.videoUrl.value === "") {
182
+ return false;
183
+ }
184
+ }
185
+ console.log("hy.videoItem.value.playSeconds", hy.videoItem.value.playSeconds);
186
+ if (hy.videoItem.value.playSeconds) {
187
+ hy.jumpDuration(hy.videoItem.value.playSeconds);
188
+ }
189
+ nextTick(() => {
190
+ hy.videoEl.value.play();
191
+ hy.videoState.value = "PLAYING";
192
+ });
193
+ }
194
+ function createDownloadTask2(mediaFiles) {
195
+ baseMainStore.value.commit({
196
+ name: "downloadHistory",
197
+ data: {
198
+ methodName: "show",
199
+ params: { mediaFiles, contentMode: hy.props.contentMode }
200
+ }
201
+ });
202
+ }
203
+ function downloadFn2(event) {
204
+ event.stopPropagation();
205
+ if (hy.videoItem.value && hy.videoItem.value.id) {
206
+ ElMessage.warning($t$1("startDownloading"));
207
+ hy.createDownloadTask([hy.videoItem.value]);
208
+ }
209
+ }
210
+ function changeVolume2() {
211
+ if (!hy.videoEl.value) return;
212
+ hy.videoEl.value.volume = hy.volumeValue.value / 100;
213
+ }
214
+ function getNowWh2() {
215
+ hy.curTime.value = hy.totalTime.value * (hy.value.value / 100);
216
+ hy.videoEl.value.currentTime = hy.curTime.value;
217
+ hy.isDrop.value = false;
218
+ }
219
+ function getPercent2(num, total) {
220
+ num = parseFloat(num);
221
+ total = parseFloat(total);
222
+ if (isNaN(num) || isNaN(total)) {
223
+ return 0;
224
+ }
225
+ return total <= 0 ? 0 : Math.round(num / total * 1e4) / 100;
226
+ }
227
+ function resumePlay2() {
228
+ if (hy.videoState.value === "CAN_NOT_PLAY") return;
229
+ hy.videoEl.value && hy.videoEl.value.play();
230
+ }
231
+ function pauseVideo2() {
232
+ if (hy.videoState.value === "CAN_NOT_PLAY") return;
233
+ hy.videoEl.value && hy.videoEl.value.pause();
234
+ hy.videoState.value = "PAUSE";
235
+ }
236
+ function initVideo2() {
237
+ hy.videoEl.value = document.querySelector("#videoPlayer");
238
+ hy.videoEl.value.addEventListener("canplay", (e) => {
239
+ hy.buffering.value = true;
240
+ hy.loading.value = false;
241
+ if (!e.target?.videoWidth || !e.target?.videoHeight || !e.target?.webkitVideoDecodedByteCount) {
242
+ hy.videoEl.value.pause();
243
+ hy.videoState.value = "CAN_NOT_PLAY";
244
+ hy.isCanNotPlayType.value = true;
245
+ return;
246
+ }
247
+ hy.videoState.value = "IS_LOAD";
248
+ hy.totalTime.value = Math.floor(hy.videoEl.value.duration);
249
+ emit("can-play", hy.totalTime.value);
250
+ });
251
+ hy.videoEl.value.addEventListener("play", () => {
252
+ hy.videoEl.value.playbackRate = hy.speed.value;
253
+ hy.videoState.value = "PLAYING";
254
+ if (hy.videoUrl.value && hy.playItem.value) {
255
+ emit("play-start", hy.videoUrl.value, hy.playItem.value);
256
+ }
257
+ });
258
+ hy.videoEl.value.addEventListener("waiting", () => {
259
+ hy.buffering.value = true;
260
+ });
261
+ hy.videoEl.value.addEventListener("playing", () => {
262
+ hy.buffering.value = false;
263
+ });
264
+ hy.videoEl.value.addEventListener("pause", (e) => {
265
+ if (hy.isCanNotPlay(e)) {
266
+ return;
267
+ }
268
+ hy.buffering.value = false;
269
+ hy.videoState.value = "PAUSE";
270
+ });
271
+ hy.videoEl.value.addEventListener("ended", () => {
272
+ hy.videoState.value = "PLAY_END";
273
+ if (hy.playRules.value === 2) {
274
+ hy.playNext();
275
+ } else if (hy.playRules.value === 3) {
276
+ hy.videoEl.value.load();
277
+ hy.videoEl.value.play();
278
+ }
279
+ emit("play-end");
280
+ });
281
+ hy.videoEl.value.addEventListener(
282
+ "timeupdate",
283
+ (e) => {
284
+ if (hy.isCanNotPlay(e)) {
285
+ return;
286
+ }
287
+ hy.videoState.value = "PLAYING";
288
+ if (!hy.isDrop.value) {
289
+ if (hy.videoEl.value) {
290
+ hy.curTime.value = Math.floor(hy.videoEl.value.currentTime);
291
+ } else {
292
+ setTimeout(() => {
293
+ if (hy.videoEl.value) {
294
+ hy.curTime.value = Math.floor(hy.videoEl.value.currentTime);
295
+ }
296
+ }, 1e3);
297
+ }
298
+ hy.value.value = hy.curTime.value / hy.totalTime.value * 100;
299
+ emit("on-time-update", hy.curTime.value);
300
+ }
301
+ },
302
+ false
303
+ );
304
+ hy.videoEl.value.addEventListener("error", (e) => {
305
+ hy.buffering.value = false;
306
+ hy.loading.value = false;
307
+ hy.videoState.value = "CAN_NOT_PLAY";
308
+ hy.isCanNotPlayType.value = hy.isCantPlayType(e);
309
+ console.error("error", e);
310
+ hy.videoEl.value = null;
311
+ });
312
+ }
313
+ function isCantPlayType2(e) {
314
+ if (e.target.error) {
315
+ const { code, message } = e.target.error;
316
+ return code === 4 && !message.includes("Format error") || message.includes("PIPELINE_ERROR_DECODE");
317
+ }
318
+ return false;
319
+ }
320
+ function isCanNotPlay2(e) {
321
+ if (hy.videoState.value === "CAN_NOT_PLAY") {
322
+ return true;
323
+ }
324
+ if (e && e.target.error) {
325
+ const { code } = e.target.error;
326
+ return code === 4;
327
+ }
328
+ return false;
329
+ }
330
+ function initFullScreenEvent2() {
331
+ document.addEventListener("fullscreenchange", (e) => {
332
+ if (document.fullscreenElement) {
333
+ hy.isFullScreen.value = true;
334
+ } else {
335
+ hy.isFullScreen.value = false;
336
+ }
337
+ });
338
+ }
339
+ function jumpDuration2(s) {
340
+ hy.videoEl.value.currentTime = s;
341
+ }
342
+ function clickFullScreen2() {
343
+ if (hy.isFullScreen.value) {
344
+ hy.exitFullscreen();
345
+ } else {
346
+ hy.fullScreen();
347
+ }
348
+ }
349
+ function fullScreen2() {
350
+ const el = document.documentElement;
351
+ if (el.requestFullscreen) {
352
+ el.requestFullscreen();
353
+ }
354
+ }
355
+ function exitFullscreen2() {
356
+ const el = document;
357
+ if (el.exitFullscreen) {
358
+ el.exitFullscreen();
359
+ }
360
+ }
361
+ function openVLC2() {
362
+ const url = `hyvlc:${hy.videoUrl.value}`;
363
+ window.protocolCheck(url, () => {
364
+ hy.hasVLC.value = false;
365
+ ElMessage.error($t$1("notInstallVlcTips"));
366
+ });
367
+ }
368
+ function downloadVLC2() {
369
+ const url = JSON.parse(sessionCache.getCache("entryList"))?.toolSupport;
370
+ if (!url) {
371
+ ElMessage.error($t$1("dataError"));
372
+ return;
373
+ }
374
+ const newOpenWindow = window.open("about:blank");
375
+ if (newOpenWindow) {
376
+ newOpenWindow.location = `${window.location.protocol}${url}/#/vlc`;
377
+ }
378
+ if (newOpenWindow) {
379
+ ElMessage.success($t$1("operationSuccessful"));
380
+ } else {
381
+ HyConfirmDialog.tip({
382
+ titleImg: "tips",
383
+ title: $t$1("redirectNotice"),
384
+ content: `<div><p>${$t$1("theCurrentBrowserBlocksTheOpeningOfNewWindows")}</p><p>${$t$1(
385
+ "pleaseGoToTheBrowserSettingsAndClickOnTheDownloadOrCopyLinkToOpenInTheBrowser"
386
+ )}</p></div>`,
387
+ submitType: null,
388
+ submitText: $t$1("copyLink"),
389
+ onSubmit: () => {
390
+ copyText(url);
391
+ }
392
+ });
393
+ }
394
+ }
395
+ return {
396
+ isCanNotPlayType: isCanNotPlayType2,
397
+ speedList: speedList2,
398
+ speed: speed2,
399
+ playRuleslist: playRuleslist2,
400
+ playRules: playRules2,
401
+ videoItem: videoItem2,
402
+ videoUrl: videoUrl2,
403
+ value: value2,
404
+ videoEl: videoEl2,
405
+ videoState: videoState2,
406
+ curTime: curTime2,
407
+ totalTime: totalTime2,
408
+ isDrop: isDrop2,
409
+ isFullScreen: isFullScreen2,
410
+ volumeValue: volumeValue2,
411
+ isChangeVolume: isChangeVolume2,
412
+ hasVLC: hasVLC2,
413
+ decodeSuccess: decodeSuccess2,
414
+ loading: loading2,
415
+ buffering: buffering2,
416
+ speedLabel: speedLabel2,
417
+ playItem: playItem2,
418
+ canPlay: canPlay2,
419
+ playRulesFn: playRulesFn2,
420
+ speedFn: speedFn2,
421
+ findIndexFn: findIndexFn2,
422
+ playNext: playNext2,
423
+ playPrevious: playPrevious2,
424
+ playVideo: playVideo2,
425
+ createDownloadTask: createDownloadTask2,
426
+ downloadFn: downloadFn2,
427
+ changeVolume: changeVolume2,
428
+ getNowWh: getNowWh2,
429
+ getPercent: getPercent2,
430
+ resumePlay: resumePlay2,
431
+ pauseVideo: pauseVideo2,
432
+ initVideo: initVideo2,
433
+ isCantPlayType: isCantPlayType2,
434
+ isCanNotPlay: isCanNotPlay2,
435
+ initFullScreenEvent: initFullScreenEvent2,
436
+ jumpDuration: jumpDuration2,
437
+ clickFullScreen: clickFullScreen2,
438
+ fullScreen: fullScreen2,
439
+ exitFullscreen: exitFullscreen2,
440
+ openVLC: openVLC2,
441
+ downloadVLC: downloadVLC2
442
+ };
443
+ }
444
+ const {
445
+ buffering,
446
+ canPlay,
447
+ changeVolume,
448
+ clickFullScreen,
449
+ createDownloadTask,
450
+ curTime,
451
+ decodeSuccess,
452
+ downloadFn,
453
+ downloadVLC,
454
+ exitFullscreen,
455
+ findIndexFn,
456
+ fullScreen,
457
+ getNowWh,
458
+ getPercent,
459
+ hasVLC,
460
+ initFullScreenEvent,
461
+ initVideo,
462
+ isCanNotPlay,
463
+ isCanNotPlayType,
464
+ isCantPlayType,
465
+ isChangeVolume,
466
+ isDrop,
467
+ isFullScreen,
468
+ jumpDuration,
469
+ loading,
470
+ openVLC,
471
+ pauseVideo,
472
+ playItem,
473
+ playNext,
474
+ playPrevious,
475
+ playRules,
476
+ playRulesFn,
477
+ playRuleslist,
478
+ playVideo,
479
+ resumePlay,
480
+ speed,
481
+ speedFn,
482
+ speedLabel,
483
+ speedList,
484
+ totalTime,
485
+ value,
486
+ videoEl,
487
+ videoItem,
488
+ videoState,
489
+ videoUrl,
490
+ volumeValue
491
+ } = useMixins({ props }, [useVideoPlayer]);
492
+ __expose({
493
+ playVideo
494
+ });
495
+ return (_ctx, _cache) => {
496
+ return openBlock(), createElementBlock(
497
+ "div",
498
+ {
499
+ class: normalizeClass(["video-player-content", { "full-video-player-content": unref(isFullScreen) }])
500
+ },
501
+ [
502
+ createCommentVNode(" loading "),
503
+ unref(loading) || unref(buffering) ? (openBlock(), createElementBlock("div", {
504
+ key: 0,
505
+ class: "w-full h-full flex flex-col justify-center items-center"
506
+ }, [
507
+ createVNode(_sfc_main$1),
508
+ createElementVNode(
509
+ "span",
510
+ { class: "text-xs text-theme mt-4" },
511
+ "..." + toDisplayString($t$1("videoResourcesAreLoading")) + "...",
512
+ 1
513
+ /* TEXT */
514
+ )
515
+ ])) : createCommentVNode("v-if", true),
516
+ unref(videoState) === "CAN_NOT_PLAY" ? (openBlock(), createElementBlock("div", {
517
+ key: 1,
518
+ class: "w-full h-full flex flex-col justify-center items-center"
519
+ }, [
520
+ createCommentVNode(" \u91C7\u96C6\u7AD9\u6587\u4EF6 "),
521
+ unref(videoItem) && unref(videoItem).csFile === 1 && unref(videoItem).onlineState !== 1 ? (openBlock(), createElementBlock(
522
+ Fragment,
523
+ { key: 0 },
524
+ [
525
+ createElementVNode("div", { class: "w-[54px] h-[54px] rounded-full border-[2px] border-danger-2 flex justify-center items-center shadow-[0px_0px_10px_2px_var(--danger-2)]" }, [
526
+ createElementVNode("div", { class: "w-[42px] h-[42px] rounded-full border-[1px] border-dashed border-danger-2 flex justify-center items-center" }, [
527
+ createVNode(unref(HyIcon), {
528
+ "svg-name": "ops-button-icon-brok-link",
529
+ class: "!w-[24px] !h-[24px] text-danger-2"
530
+ })
531
+ ])
532
+ ]),
533
+ createElementVNode(
534
+ "span",
535
+ { class: "text-xs text-auxiliary mt-4" },
536
+ toDisplayString($t$1("fileLoadingFailed")),
537
+ 1
538
+ /* TEXT */
539
+ ),
540
+ createElementVNode(
541
+ "span",
542
+ { class: "text-xs text-auxiliary" },
543
+ toDisplayString($t$1("pleaseCheckWhetherTheCollectionStationIsOnlineAndWhetherTheFileExists")),
544
+ 1
545
+ /* TEXT */
546
+ )
547
+ ],
548
+ 64
549
+ /* STABLE_FRAGMENT */
550
+ )) : (openBlock(), createElementBlock(
551
+ Fragment,
552
+ { key: 1 },
553
+ [
554
+ createElementVNode("div", { class: "flex items-center justify-center text-auxiliary" }, [
555
+ createVNode(unref(HyIcon), {
556
+ "svg-name": "ops-audio-media-center-right-ripple",
557
+ class: "!w-[12px] !h-[12px]"
558
+ }),
559
+ createVNode(unref(HyIcon), {
560
+ "svg-name": "ops-audio-media-center-video",
561
+ class: "!w-[40px] !h-[40px] mx-1"
562
+ }),
563
+ createVNode(unref(HyIcon), {
564
+ "svg-name": "ops-audio-media-center-left-ripple",
565
+ class: "!w-[12px] !h-[12px]"
566
+ })
567
+ ]),
568
+ createElementVNode(
569
+ "span",
570
+ { class: "text-theme mt-3 mb-[14px]" },
571
+ toDisplayString(unref(isCanNotPlayType) ? $t$1("vlcPlayerTip") : $t$1("videoCannotBePlayed")),
572
+ 1
573
+ /* TEXT */
574
+ ),
575
+ unref(isCanNotPlayType) ? (openBlock(), createElementBlock("div", {
576
+ key: 0,
577
+ class: "flex justify-center"
578
+ }, [
579
+ unref(hasVLC) ? (openBlock(), createBlock(unref(HyButton), {
580
+ key: 0,
581
+ class: "",
582
+ onClick: unref(openVLC)
583
+ }, {
584
+ default: withCtx(() => [
585
+ createTextVNode(
586
+ toDisplayString($t$1("clickPlay")),
587
+ 1
588
+ /* TEXT */
589
+ )
590
+ ]),
591
+ _: 1
592
+ /* STABLE */
593
+ }, 8, ["onClick"])) : (openBlock(), createBlock(unref(HyButton), {
594
+ key: 1,
595
+ class: "",
596
+ onClick: unref(downloadVLC)
597
+ }, {
598
+ default: withCtx(() => [
599
+ createTextVNode(
600
+ toDisplayString($t$1("toDownloadVlc")),
601
+ 1
602
+ /* TEXT */
603
+ )
604
+ ]),
605
+ _: 1
606
+ /* STABLE */
607
+ }, 8, ["onClick"]))
608
+ ])) : createCommentVNode("v-if", true)
609
+ ],
610
+ 64
611
+ /* STABLE_FRAGMENT */
612
+ )),
613
+ __props.playList?.length > 1 ? (openBlock(), createElementBlock(
614
+ Fragment,
615
+ { key: 2 },
616
+ [
617
+ createElementVNode("div", { class: "absolute left-0 top-0 bottom-0 vlc-between-control" }, [
618
+ createElementVNode("div", {
619
+ class: "w-[30px] h-[30px] bg-[#3D6286] flex items-center justify-center clickBox",
620
+ onClick: unref(playPrevious)
621
+ }, [
622
+ createVNode(unref(ElTooltip), {
623
+ effect: "dark",
624
+ content: $t$1("viewPreviousVideo"),
625
+ placement: "top"
626
+ }, {
627
+ default: withCtx(() => [
628
+ createVNode(unref(HyIcon), {
629
+ "svg-name": "dispatch-Adv-v3-monitor-previous",
630
+ class: "svgBox !w-3 !h-3"
631
+ })
632
+ ]),
633
+ _: 1
634
+ /* STABLE */
635
+ }, 8, ["content"])
636
+ ], 8, ["onClick"])
637
+ ]),
638
+ createElementVNode("div", { class: "absolute right-0 top-0 bottom-0 vlc-between-control" }, [
639
+ createElementVNode("div", {
640
+ class: "w-[30px] h-[30px] bg-[#3D6286] flex items-center justify-center clickBox",
641
+ onClick: unref(playNext)
642
+ }, [
643
+ createVNode(unref(ElTooltip), {
644
+ effect: "dark",
645
+ content: $t$1("viewNextVideo"),
646
+ placement: "top"
647
+ }, {
648
+ default: withCtx(() => [
649
+ createVNode(unref(HyIcon), {
650
+ "svg-name": "dispatch-Adv-v3-monitor-next",
651
+ class: "svgBox !w-3 !h-3"
652
+ })
653
+ ]),
654
+ _: 1
655
+ /* STABLE */
656
+ }, 8, ["content"])
657
+ ], 8, ["onClick"])
658
+ ])
659
+ ],
660
+ 64
661
+ /* STABLE_FRAGMENT */
662
+ )) : createCommentVNode("v-if", true)
663
+ ])) : (openBlock(), createElementBlock(
664
+ Fragment,
665
+ { key: 2 },
666
+ [
667
+ createElementVNode("video", { id: "videoPlayer" }, [
668
+ createElementVNode("source", { type: "video/mp4" }),
669
+ createElementVNode("source", { type: "video/webm" }),
670
+ createElementVNode("source", { type: "video/ogg" }),
671
+ createTextVNode(
672
+ " " + toDisplayString($t$1("yourBrowserDoesNotSupportHTMLVideoPlayback")),
673
+ 1
674
+ /* TEXT */
675
+ )
676
+ ]),
677
+ createElementVNode("div", { class: "operator-box flex flex-row" }, [
678
+ createElementVNode("div", { class: "progress-box" }, [
679
+ withDirectives(createElementVNode("input", {
680
+ max: "100",
681
+ class: "w-full relative",
682
+ style: normalizeStyle({
683
+ background: `linear-gradient(to right, rgb(var(--hy-theme), 1) ${unref(getPercent)(
684
+ unref(value),
685
+ 100
686
+ )}%, rgb(var(--hy-theme), 0.5) ${unref(getPercent)(unref(value), 100)}% `
687
+ }),
688
+ type: "range",
689
+ onMouseup: ($event) => unref(getNowWh)($event),
690
+ onMousedown: ($event) => isDrop.value = true,
691
+ ref: "progressRef",
692
+ id: "progress",
693
+ "onUpdate:modelValue": ($event) => isRef(value) ? value.value = $event : null
694
+ }, null, 44, ["onMouseup", "onMousedown", "onUpdate:modelValue"]), [
695
+ [vModelText, unref(value)]
696
+ ])
697
+ ]),
698
+ createElementVNode("div", { class: "left-operator flex text-xs leading-[20px] text-auxiliary" }, [
699
+ createElementVNode(
700
+ "span",
701
+ { class: "is-play-seconds flex-shrink-0" },
702
+ toDisplayString(unref(formatSeconds)(unref(curTime), Math.floor(unref(totalTime) / 3600))) + '" ',
703
+ 1
704
+ /* TEXT */
705
+ ),
706
+ createTextVNode(" / "),
707
+ createElementVNode(
708
+ "span",
709
+ { class: "total-seconds flex-shrink-0" },
710
+ toDisplayString(unref(formatSeconds)(unref(totalTime))) + '" ',
711
+ 1
712
+ /* TEXT */
713
+ )
714
+ ]),
715
+ unref(canPlay) ? (openBlock(), createElementBlock("div", {
716
+ key: 0,
717
+ class: "center-operator flex"
718
+ }, [
719
+ createElementVNode("span", { onClick: unref(playPrevious) }, [
720
+ createVNode(unref(HyIcon), {
721
+ "svg-name": "ops-audio-audio-previous-btn",
722
+ class: "svgBox"
723
+ })
724
+ ], 8, ["onClick"]),
725
+ unref(videoState) !== "PLAYING" && unref(canPlay) ? (openBlock(), createElementBlock("span", {
726
+ key: 0,
727
+ onClick: ($event) => unref(playVideo)(unref(videoUrl))
728
+ }, [
729
+ createVNode(unref(HyIcon), {
730
+ "svg-name": "ops-audio-audio-play-btn",
731
+ class: "svgBox"
732
+ })
733
+ ], 8, ["onClick"])) : createCommentVNode("v-if", true),
734
+ unref(videoState) === "PLAYING" ? (openBlock(), createElementBlock("span", {
735
+ key: 1,
736
+ onClick: unref(pauseVideo)
737
+ }, [
738
+ createVNode(unref(HyIcon), {
739
+ "svg-name": "ops-audio-audio-pause-btn",
740
+ class: "svgBox"
741
+ })
742
+ ], 8, ["onClick"])) : createCommentVNode("v-if", true),
743
+ createElementVNode("span", { onClick: unref(playNext) }, [
744
+ createVNode(unref(HyIcon), {
745
+ "svg-name": "ops-audio-audio-next-btn",
746
+ class: "svgBox"
747
+ })
748
+ ], 8, ["onClick"])
749
+ ])) : createCommentVNode("v-if", true),
750
+ createElementVNode("div", { class: "right-operator flex relative" }, [
751
+ createCommentVNode(" \u901F\u5EA6 "),
752
+ createVNode(unref(ElPopover), {
753
+ placement: "top",
754
+ appendToBody: false,
755
+ "popper-class": "minWidth0_popover popover_darkColor liveBroadcast w-[62px]",
756
+ trigger: "click"
757
+ }, {
758
+ reference: withCtx(() => [
759
+ createElementVNode("div", { class: "text-xs text-auxiliary speed_box flex items-center justify-center clickBox select-none px-1 box-border" }, [
760
+ createElementVNode(
761
+ "div",
762
+ { class: "overflow-ellipsis overflow-hidden whitespace-nowrap" },
763
+ toDisplayString(unref(speedLabel)),
764
+ 1
765
+ /* TEXT */
766
+ )
767
+ ])
768
+ ]),
769
+ default: withCtx(() => [
770
+ createElementVNode("div", { class: "flex items-center justify-center p-[10px_0]" }, [
771
+ createElementVNode("ul", { class: "text-auxiliary text-xs speedList" }, [
772
+ (openBlock(true), createElementBlock(
773
+ Fragment,
774
+ null,
775
+ renderList(unref(speedList), (item, index) => {
776
+ return openBlock(), createElementBlock("li", {
777
+ class: normalizeClass(["clickBox", { " selectBox": item.value === unref(speed) }]),
778
+ onClick: ($event) => unref(speedFn)(item.value),
779
+ key: index
780
+ }, toDisplayString(item.label), 11, ["onClick"]);
781
+ }),
782
+ 128
783
+ /* KEYED_FRAGMENT */
784
+ ))
785
+ ])
786
+ ])
787
+ ]),
788
+ _: 1
789
+ /* STABLE */
790
+ }),
791
+ createCommentVNode(" \u58F0\u97F3 "),
792
+ createVNode(unref(ElPopover), {
793
+ placement: "top",
794
+ appendToBody: false,
795
+ "popper-class": "popover_volumeSlider w-[40px]",
796
+ trigger: "click"
797
+ }, {
798
+ reference: withCtx(() => [
799
+ createElementVNode("div", null, [
800
+ createVNode(unref(ElTooltip), {
801
+ class: "item",
802
+ effect: "dark",
803
+ content: $t$1("adjustPlaybackVolume"),
804
+ placement: "top"
805
+ }, {
806
+ default: withCtx(() => [
807
+ createVNode(unref(HyIcon), {
808
+ "svg-name": "dispatch-share-audio-volumn",
809
+ class: "svgBox"
810
+ })
811
+ ]),
812
+ _: 1
813
+ /* STABLE */
814
+ }, 8, ["content"])
815
+ ])
816
+ ]),
817
+ default: withCtx(() => [
818
+ createElementVNode("div", { class: "flex items-center justify-center" }, [
819
+ createVNode(unref(ElSlider), {
820
+ onInput: ($event) => unref(changeVolume)($event),
821
+ class: "volume-slider",
822
+ modelValue: unref(volumeValue),
823
+ "onUpdate:modelValue": ($event) => isRef(volumeValue) ? volumeValue.value = $event : null,
824
+ vertical: "",
825
+ height: "105px"
826
+ }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"])
827
+ ])
828
+ ]),
829
+ _: 1
830
+ /* STABLE */
831
+ }),
832
+ createCommentVNode(" \u653E\u5927 "),
833
+ createVNode(unref(ElTooltip), {
834
+ class: "item clickBox",
835
+ effect: "dark",
836
+ content: $t$1("fullScreenSwitch"),
837
+ placement: "top",
838
+ appendToBody: false
839
+ }, {
840
+ default: withCtx(() => [
841
+ createVNode(unref(HyIcon), {
842
+ onClick: unref(clickFullScreen),
843
+ "svg-name": unref(isFullScreen) ? "ops-audio-audio-reduce" : "ops-audio-audio-enlarge",
844
+ class: "svgBox"
845
+ }, null, 8, ["onClick", "svg-name"])
846
+ ]),
847
+ _: 1
848
+ /* STABLE */
849
+ }, 8, ["content"])
850
+ ])
851
+ ])
852
+ ],
853
+ 64
854
+ /* STABLE_FRAGMENT */
855
+ )),
856
+ __props.downloadFilesType || __props.playRulesType ? (openBlock(), createElementBlock(
857
+ "div",
858
+ {
859
+ key: 3,
860
+ class: normalizeClass(["float-operator-item right-top-operator", { "!right-[43px]": unref(videoState) === "CAN_NOT_PLAY" && __props.playList?.length > 1 }])
861
+ },
862
+ [
863
+ createCommentVNode(" \u4E0B\u8F7D "),
864
+ __props.downloadFilesType ? (openBlock(), createBlock(unref(ElTooltip), {
865
+ key: 0,
866
+ class: "item clickBox",
867
+ effect: "dark",
868
+ content: $t$1("downloadFile"),
869
+ placement: "top"
870
+ }, {
871
+ default: withCtx(() => [
872
+ createVNode(unref(HyIcon), {
873
+ onClick: withModifiers(unref(downloadFn), ["stop"]),
874
+ "svg-name": "ops-audio-audio-down-btn",
875
+ class: "svgBox"
876
+ }, null, 8, ["onClick"])
877
+ ]),
878
+ _: 1
879
+ /* STABLE */
880
+ }, 8, ["content"])) : createCommentVNode("v-if", true),
881
+ createCommentVNode(" \u64AD\u653E\u89C4\u5219 "),
882
+ __props.playRulesType && unref(videoState) !== "CAN_NOT_PLAY" ? (openBlock(), createElementBlock("div", {
883
+ key: 1,
884
+ class: "mt-2"
885
+ }, [
886
+ (openBlock(true), createElementBlock(
887
+ Fragment,
888
+ null,
889
+ renderList(unref(playRuleslist), (item, index) => {
890
+ return withDirectives((openBlock(), createElementBlock("div", {
891
+ onClick: ($event) => unref(playRulesFn)(item.value),
892
+ key: index + "playRuleslist"
893
+ }, [
894
+ createVNode(unref(ElTooltip), {
895
+ class: "item clickBox",
896
+ effect: "dark",
897
+ content: item.label,
898
+ placement: "top"
899
+ }, {
900
+ default: withCtx(() => [
901
+ createVNode(unref(HyIcon), {
902
+ "svg-name": item.svgName,
903
+ class: "svgBox"
904
+ }, null, 8, ["svg-name"])
905
+ ]),
906
+ _: 2
907
+ /* DYNAMIC */
908
+ }, 1032, ["content"])
909
+ ], 8, ["onClick"])), [
910
+ [vShow, unref(playRules) === item.value]
911
+ ]);
912
+ }),
913
+ 128
914
+ /* KEYED_FRAGMENT */
915
+ ))
916
+ ])) : createCommentVNode("v-if", true),
917
+ renderSlot(_ctx.$slots, "pight-control-ranel", {}, void 0, true)
918
+ ],
919
+ 2
920
+ /* CLASS */
921
+ )) : createCommentVNode("v-if", true)
922
+ ],
923
+ 2
924
+ /* CLASS */
925
+ );
926
+ };
927
+ }
928
+ });
929
+
930
+ export { _sfc_main as default };