hy-dispatch-ui-v3 0.2.86 → 0.2.88

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