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