hy-dispatch-ui-v3 0.2.88 → 0.2.89
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.
- package/dist/tailwind.css +89 -78
- package/es/api/file.mjs +14 -1
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +5 -469
- package/es/components/hyAudioPlayer/audioPlayer2.vue.mjs +1321 -0
- package/es/components/hyAudioPlayer/hyAudioPlayer/audioPlayer.vue.mjs +472 -0
- package/es/components/hyAudioPlayer/{js → hyAudioPlayer/js}/index.mjs +5 -5
- package/es/components/hyAudioPlayer/index.mjs +2 -2
- package/es/components/hyAudioPlayer/locale/en_US.mjs +18 -0
- package/es/components/hyAudioPlayer/locale/index.mjs +2 -0
- package/es/components/hyAudioPlayer/locale/zh_CN.mjs +18 -0
- package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +9 -7
- package/es/components/hyForm/cpns/formItem.vue.mjs +2 -0
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +95 -49
- package/es/components/hyTable/table.vue.mjs +3 -3
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +2 -2
- package/es/components/hyVideoPlayer/videoPlayer2.vue.mjs +615 -336
- package/es/utils/timeUtils.mjs +8 -29
- package/es/version.mjs +1 -1
- package/lib/api/file.js +14 -0
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +5 -469
- package/lib/components/hyAudioPlayer/audioPlayer2.vue.js +1325 -0
- package/lib/components/hyAudioPlayer/hyAudioPlayer/audioPlayer.vue.js +476 -0
- package/lib/components/hyAudioPlayer/{js → hyAudioPlayer/js}/index.js +5 -5
- package/lib/components/hyAudioPlayer/locale/en_US.js +22 -0
- package/lib/components/hyAudioPlayer/locale/index.js +9 -0
- package/lib/components/hyAudioPlayer/locale/zh_CN.js +22 -0
- package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +11 -9
- package/lib/components/hyForm/cpns/formItem.vue.js +2 -0
- package/lib/components/hyRadioGroup/radioGroup.vue.js +94 -48
- package/lib/components/hyTable/table.vue.js +2 -2
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +2 -2
- package/lib/components/hyVideoPlayer/videoPlayer2.vue.js +614 -335
- package/lib/utils/timeUtils.js +8 -29
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/es/components/hyVideoPlayer/videoPlayer1.vue.mjs +0 -8
- package/es/components/hyVideoPlayer/videoPlayer12.vue.mjs +0 -947
- package/lib/components/hyVideoPlayer/videoPlayer1.vue.js +0 -12
- package/lib/components/hyVideoPlayer/videoPlayer12.vue.js +0 -951
- /package/es/components/hyAudioPlayer/{style → hyAudioPlayer/style}/audioPlayer.scss +0 -0
- /package/lib/components/hyAudioPlayer/{style → hyAudioPlayer/style}/audioPlayer.scss +0 -0
package/es/utils/timeUtils.mjs
CHANGED
|
@@ -52,35 +52,14 @@ function getCurDtm(cutOff = "-") {
|
|
|
52
52
|
return getToday(cutOff) + " " + formatTime(/* @__PURE__ */ new Date()).join(":");
|
|
53
53
|
}
|
|
54
54
|
function formatSeconds(value) {
|
|
55
|
-
let
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
middle = parseInt(middle % 60);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
let result = "" + parseInt(theTime);
|
|
67
|
-
if (theTime < 10) {
|
|
68
|
-
result = `00:0${parseInt(theTime)}`;
|
|
69
|
-
} else {
|
|
70
|
-
result = `00:${parseInt(theTime)}`;
|
|
71
|
-
}
|
|
72
|
-
if (middle > 0) {
|
|
73
|
-
result = `${parseInt(theTime)}`;
|
|
74
|
-
if (middle < 10) {
|
|
75
|
-
result = "0" + parseInt(middle) + ":" + result;
|
|
76
|
-
} else {
|
|
77
|
-
result = "" + parseInt(middle) + ":" + result;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
if (hour > 0) {
|
|
81
|
-
result = "" + parseInt(hour) + ":" + result;
|
|
82
|
-
}
|
|
83
|
-
return result;
|
|
55
|
+
let total = parseInt(value);
|
|
56
|
+
if (isNaN(total) || total < 0) total = 0;
|
|
57
|
+
const hour = Math.floor(total / 3600);
|
|
58
|
+
const minute = Math.floor(total % 3600 / 60);
|
|
59
|
+
const second = total % 60;
|
|
60
|
+
const pad = (num) => num < 10 ? `0${num}` : `${num}`;
|
|
61
|
+
const result = `${pad(minute)}:${pad(second)}`;
|
|
62
|
+
return hour > 0 ? `${hour}:${result}` : result;
|
|
84
63
|
}
|
|
85
64
|
function formatHoursToHM(hours) {
|
|
86
65
|
hours = parseFloat(hours);
|
package/es/version.mjs
CHANGED
package/lib/api/file.js
CHANGED
|
@@ -17,5 +17,19 @@ function preSignedUrlGetApi(params) {
|
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
+
function mediaFileRedirectApi(mediaFileId) {
|
|
21
|
+
return new Promise((resolve, reject) => {
|
|
22
|
+
const { api } = useApi.useApi();
|
|
23
|
+
const http = vue.unref(api);
|
|
24
|
+
http.get(`mediaFile/redirect?mediaFileId=${mediaFileId}`, {
|
|
25
|
+
responseType: "blob"
|
|
26
|
+
}).then((res) => {
|
|
27
|
+
resolve(res);
|
|
28
|
+
}).catch((err) => {
|
|
29
|
+
reject(err);
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
}
|
|
20
33
|
|
|
34
|
+
exports.mediaFileRedirectApi = mediaFileRedirectApi;
|
|
21
35
|
exports.preSignedUrlGetApi = preSignedUrlGetApi;
|
|
@@ -2,475 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
require('../../hooks/index.js');
|
|
8
|
-
require('../../utils/index.js');
|
|
9
|
-
require('../index.js');
|
|
10
|
-
var mediaLoading = require('../hyVideoPlayer/cpns/mediaLoading.vue.js');
|
|
11
|
-
var index = require('./js/index.js');
|
|
12
|
-
var useMixins = require('../../hooks/useMixins.js');
|
|
13
|
-
var useLocale = require('../../hooks/useLocale.js');
|
|
14
|
-
var index$1 = require('../hyIcon/index.js');
|
|
15
|
-
var index$2 = require('../hyTooltip/index.js');
|
|
16
|
-
var useAudioPlayerConfig = require('../../hooks/useAudioPlayerConfig.js');
|
|
17
|
-
var is = require('../../utils/is.js');
|
|
5
|
+
var audioPlayer_vue_vue_type_script_setup_true_lang = require('./audioPlayer2.vue.js');
|
|
6
|
+
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
|
18
7
|
|
|
19
|
-
import "
|
|
8
|
+
import "/data/jenkins-work/workspace/WEB-V3-PROJECT-Web-hy-dispatch-ui@2/tmp/packages/components/hyAudioPlayer/audioPlayer.vue?vue&type=style&index=0&scoped=f5a20b4f&lang.scss";
|
|
20
9
|
|
|
21
|
-
|
|
22
|
-
name: "HyAudioPlayer"
|
|
23
|
-
});
|
|
24
|
-
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
25
|
-
props: {
|
|
26
|
-
type: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: () => {
|
|
29
|
-
const { audioPlayerConfig } = useAudioPlayerConfig.useAudioPlayerConfig();
|
|
30
|
-
const { type } = audioPlayerConfig.value;
|
|
31
|
-
if (["default", "analyse"].includes(type)) return type;
|
|
32
|
-
return "default";
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
// 播放列表
|
|
36
|
-
playList: {
|
|
37
|
-
type: Array,
|
|
38
|
-
default: () => []
|
|
39
|
-
},
|
|
40
|
-
// 播放速度
|
|
41
|
-
speed: {
|
|
42
|
-
type: Number,
|
|
43
|
-
default: () => {
|
|
44
|
-
const { audioPlayerConfig } = useAudioPlayerConfig.useAudioPlayerConfig();
|
|
45
|
-
if (is.isNumber(audioPlayerConfig.value.speed)) {
|
|
46
|
-
return audioPlayerConfig.value.speed;
|
|
47
|
-
}
|
|
48
|
-
return 1;
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
// 播放规则
|
|
52
|
-
playRules: {
|
|
53
|
-
type: Number,
|
|
54
|
-
default: () => {
|
|
55
|
-
const { audioPlayerConfig } = useAudioPlayerConfig.useAudioPlayerConfig();
|
|
56
|
-
if ([1, 2, 3].includes(audioPlayerConfig.value.playRules)) {
|
|
57
|
-
return audioPlayerConfig.value.playRules;
|
|
58
|
-
}
|
|
59
|
-
return 3;
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
// 是否显示播放规则
|
|
63
|
-
showPlayRules: {
|
|
64
|
-
type: Boolean,
|
|
65
|
-
default: () => {
|
|
66
|
-
const { audioPlayerConfig } = useAudioPlayerConfig.useAudioPlayerConfig();
|
|
67
|
-
const { showPlayRules } = audioPlayerConfig.value;
|
|
68
|
-
return is.isBoolean(showPlayRules) ? showPlayRules : true;
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
// 是否显示画面
|
|
72
|
-
showPicture: {
|
|
73
|
-
type: Boolean,
|
|
74
|
-
default: () => {
|
|
75
|
-
const { audioPlayerConfig } = useAudioPlayerConfig.useAudioPlayerConfig();
|
|
76
|
-
const { showPicture } = audioPlayerConfig.value;
|
|
77
|
-
return is.isBoolean(showPicture) ? showPicture : true;
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
// 是否显示下载文件
|
|
81
|
-
showDownloadFiles: {
|
|
82
|
-
type: Boolean,
|
|
83
|
-
default: () => {
|
|
84
|
-
const { audioPlayerConfig } = useAudioPlayerConfig.useAudioPlayerConfig();
|
|
85
|
-
const { showDownloadFiles } = audioPlayerConfig.value;
|
|
86
|
-
return is.isBoolean(showDownloadFiles) ? showDownloadFiles : true;
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
// 下载处理
|
|
90
|
-
downloadFn: {
|
|
91
|
-
type: Function
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
emits: [
|
|
95
|
-
"canplay",
|
|
96
|
-
"timeupdate",
|
|
97
|
-
"play-start",
|
|
98
|
-
"play-ended",
|
|
99
|
-
"play-previous",
|
|
100
|
-
"play-next"
|
|
101
|
-
],
|
|
102
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
103
|
-
;
|
|
104
|
-
const props = __props;
|
|
105
|
-
const emits = __emit;
|
|
106
|
-
const audioWrapperRef = vue.useTemplateRef("audioWrapperRef");
|
|
107
|
-
const audioRef = vue.useTemplateRef("audioRef");
|
|
108
|
-
const {
|
|
109
|
-
// useAudioPlayer
|
|
110
|
-
speed,
|
|
111
|
-
playRules,
|
|
112
|
-
loading,
|
|
113
|
-
audioItem,
|
|
114
|
-
audioUrl,
|
|
115
|
-
currentDuration,
|
|
116
|
-
totalDuration,
|
|
117
|
-
progress,
|
|
118
|
-
isDrop,
|
|
119
|
-
isFullScreen,
|
|
120
|
-
volumeValue,
|
|
121
|
-
audioState,
|
|
122
|
-
speedLabel,
|
|
123
|
-
isCanPlay,
|
|
124
|
-
isPlaying,
|
|
125
|
-
isAnalyseType,
|
|
126
|
-
// 配置
|
|
127
|
-
speedList,
|
|
128
|
-
playRulesList,
|
|
129
|
-
// 函数
|
|
130
|
-
playAudio,
|
|
131
|
-
pauseAudio,
|
|
132
|
-
playPrevious,
|
|
133
|
-
playNext,
|
|
134
|
-
playRulesHandler,
|
|
135
|
-
speedHandler,
|
|
136
|
-
changeVolume,
|
|
137
|
-
getNowWh,
|
|
138
|
-
setAudioCurrentTime,
|
|
139
|
-
getPercent,
|
|
140
|
-
isCantPlayType,
|
|
141
|
-
jumpDuration,
|
|
142
|
-
initFullScreenEvent,
|
|
143
|
-
destroyFullScreenEvent,
|
|
144
|
-
onFullScreenHandler,
|
|
145
|
-
onDownloadHandler
|
|
146
|
-
} = useMixins.useMixins(
|
|
147
|
-
{
|
|
148
|
-
props,
|
|
149
|
-
emits,
|
|
150
|
-
audioWrapperRef,
|
|
151
|
-
audioRef
|
|
152
|
-
},
|
|
153
|
-
[index.useAudioPlayer]
|
|
154
|
-
);
|
|
155
|
-
const showActionBtn = vue.computed(() => {
|
|
156
|
-
return !!audioUrl.value;
|
|
157
|
-
});
|
|
158
|
-
vue.onMounted(() => {
|
|
159
|
-
initFullScreenEvent();
|
|
160
|
-
});
|
|
161
|
-
vue.onUnmounted(() => {
|
|
162
|
-
destroyFullScreenEvent();
|
|
163
|
-
});
|
|
164
|
-
__expose({
|
|
165
|
-
playAudio,
|
|
166
|
-
pauseAudio,
|
|
167
|
-
setAudioCurrentTime
|
|
168
|
-
});
|
|
169
|
-
return (_ctx, _cache) => {
|
|
170
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
171
|
-
"div",
|
|
172
|
-
{
|
|
173
|
-
class: vue.normalizeClass(["hy-audio-player", { "audio-player-pack-up": !__props.showPicture }])
|
|
174
|
-
},
|
|
175
|
-
[
|
|
176
|
-
__props.showPicture ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
177
|
-
key: 0,
|
|
178
|
-
class: "audio-play-box"
|
|
179
|
-
}, [
|
|
180
|
-
vue.unref(loading) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
181
|
-
key: 0,
|
|
182
|
-
class: "w-full h-full flex flex-col justify-center items-center"
|
|
183
|
-
}, [
|
|
184
|
-
vue.createVNode(mediaLoading.default),
|
|
185
|
-
vue.createElementVNode(
|
|
186
|
-
"span",
|
|
187
|
-
{ class: "text-xs text-theme mt-4" },
|
|
188
|
-
"..." + vue.toDisplayString(vue.unref(useLocale.$t)("audioPlayer.audioResourcesAreLoading")) + "...",
|
|
189
|
-
1
|
|
190
|
-
/* TEXT */
|
|
191
|
-
)
|
|
192
|
-
])) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
193
|
-
key: 1,
|
|
194
|
-
class: "point_area"
|
|
195
|
-
}, [
|
|
196
|
-
vue.createElementVNode("div", { class: "point point_dot" }, [
|
|
197
|
-
vue.createElementVNode("div", { class: "flex items-center justify-center" }, [
|
|
198
|
-
vue.createVNode(vue.unref(index$1.HyIcon), { "svg-name": "layout-sidenav-menu-micphone-v2" })
|
|
199
|
-
])
|
|
200
|
-
]),
|
|
201
|
-
vue.withDirectives(vue.createElementVNode(
|
|
202
|
-
"div",
|
|
203
|
-
{ style: { "transition": "1s" } },
|
|
204
|
-
[
|
|
205
|
-
vue.createElementVNode("div", { class: "point point_10" }),
|
|
206
|
-
vue.createElementVNode("div", { class: "point point_40" }),
|
|
207
|
-
vue.createElementVNode("div", { class: "point point_shadow point_80" })
|
|
208
|
-
],
|
|
209
|
-
512
|
|
210
|
-
/* NEED_PATCH */
|
|
211
|
-
), [
|
|
212
|
-
[vue.vShow, vue.unref(isPlaying)]
|
|
213
|
-
])
|
|
214
|
-
]))
|
|
215
|
-
])) : vue.createCommentVNode("v-if", true),
|
|
216
|
-
vue.createElementVNode(
|
|
217
|
-
"div",
|
|
218
|
-
{
|
|
219
|
-
ref_key: "audioWrapperRef",
|
|
220
|
-
ref: audioWrapperRef,
|
|
221
|
-
class: vue.normalizeClass(["operator-box", { "operator-analyse": vue.unref(isAnalyseType) }])
|
|
222
|
-
},
|
|
223
|
-
[
|
|
224
|
-
vue.unref(isAnalyseType) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
225
|
-
key: 0,
|
|
226
|
-
class: "duration-operator"
|
|
227
|
-
}, [
|
|
228
|
-
vue.createElementVNode(
|
|
229
|
-
"span",
|
|
230
|
-
{ class: "text-main" },
|
|
231
|
-
vue.toDisplayString(vue.unref(currentDuration)),
|
|
232
|
-
1
|
|
233
|
-
/* TEXT */
|
|
234
|
-
),
|
|
235
|
-
vue.createTextVNode(" / "),
|
|
236
|
-
vue.createElementVNode(
|
|
237
|
-
"span",
|
|
238
|
-
null,
|
|
239
|
-
vue.toDisplayString(vue.unref(totalDuration)),
|
|
240
|
-
1
|
|
241
|
-
/* TEXT */
|
|
242
|
-
)
|
|
243
|
-
])) : vue.createCommentVNode("v-if", true),
|
|
244
|
-
vue.createElementVNode(
|
|
245
|
-
"div",
|
|
246
|
-
{
|
|
247
|
-
class: vue.normalizeClass(["play-operator", { "play-analyse": vue.unref(isAnalyseType) }])
|
|
248
|
-
},
|
|
249
|
-
[
|
|
250
|
-
vue.createElementVNode("div", { onClick: vue.unref(playPrevious) }, [
|
|
251
|
-
vue.createVNode(vue.unref(index$1.HyIcon), {
|
|
252
|
-
"svg-name": vue.unref(isAnalyseType) ? "dispatch-share1-v3-ai-interpretation-last" : "ops-audio-audio-previous-btn",
|
|
253
|
-
"class-name": "last-icon"
|
|
254
|
-
}, null, 8, ["svg-name"])
|
|
255
|
-
], 8, ["onClick"]),
|
|
256
|
-
vue.unref(audioState) !== "PLAYING" && vue.unref(isCanPlay) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
257
|
-
key: 0,
|
|
258
|
-
onClick: ($event) => vue.unref(playAudio)(vue.unref(audioUrl))
|
|
259
|
-
}, [
|
|
260
|
-
vue.createVNode(vue.unref(index$1.HyIcon), { "svg-name": "ops-audio-audio-play-btn" })
|
|
261
|
-
], 8, ["onClick"])) : vue.createCommentVNode("v-if", true),
|
|
262
|
-
vue.unref(audioState) === "PLAYING" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
263
|
-
key: 1,
|
|
264
|
-
onClick: vue.unref(pauseAudio)
|
|
265
|
-
}, [
|
|
266
|
-
vue.createVNode(vue.unref(index$1.HyIcon), { "svg-name": "ops-audio-audio-pause-btn" })
|
|
267
|
-
], 8, ["onClick"])) : vue.createCommentVNode("v-if", true),
|
|
268
|
-
vue.createElementVNode("div", { onClick: vue.unref(playNext) }, [
|
|
269
|
-
vue.createVNode(vue.unref(index$1.HyIcon), {
|
|
270
|
-
"svg-name": vue.unref(isAnalyseType) ? "dispatch-share1-v3-ai-interpretation-next" : "ops-audio-audio-next-btn",
|
|
271
|
-
"class-name": "next-icon"
|
|
272
|
-
}, null, 8, ["svg-name"])
|
|
273
|
-
], 8, ["onClick"]),
|
|
274
|
-
vue.createElementVNode(
|
|
275
|
-
"audio",
|
|
276
|
-
{
|
|
277
|
-
ref_key: "audioRef",
|
|
278
|
-
ref: audioRef
|
|
279
|
-
},
|
|
280
|
-
null,
|
|
281
|
-
512
|
|
282
|
-
/* NEED_PATCH */
|
|
283
|
-
)
|
|
284
|
-
],
|
|
285
|
-
2
|
|
286
|
-
/* CLASS */
|
|
287
|
-
),
|
|
288
|
-
vue.createElementVNode(
|
|
289
|
-
"div",
|
|
290
|
-
{
|
|
291
|
-
class: vue.normalizeClass(["progress-operator", { "progress-analyse": vue.unref(isAnalyseType) }])
|
|
292
|
-
},
|
|
293
|
-
[
|
|
294
|
-
vue.withDirectives(vue.createElementVNode("input", {
|
|
295
|
-
"onUpdate:modelValue": ($event) => vue.isRef(progress) ? progress.value = $event : null,
|
|
296
|
-
type: "range",
|
|
297
|
-
max: "100",
|
|
298
|
-
style: vue.normalizeStyle({
|
|
299
|
-
background: `linear-gradient(to right, rgba(var(--hy-theme)) ${vue.unref(getPercent)(
|
|
300
|
-
vue.unref(progress),
|
|
301
|
-
100
|
|
302
|
-
)}%, rgba(var(--hy-theme),0.5) ${vue.unref(getPercent)(vue.unref(progress), 100)}% `
|
|
303
|
-
}),
|
|
304
|
-
onMousedown: ($event) => isDrop.value = true,
|
|
305
|
-
onMouseup: ($event) => vue.unref(getNowWh)($event)
|
|
306
|
-
}, null, 44, ["onUpdate:modelValue", "onMousedown", "onMouseup"]), [
|
|
307
|
-
[vue.vModelText, vue.unref(progress)]
|
|
308
|
-
]),
|
|
309
|
-
__props.type === "default" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
310
|
-
key: 0,
|
|
311
|
-
class: "duration-operator justify-between"
|
|
312
|
-
}, [
|
|
313
|
-
vue.createElementVNode(
|
|
314
|
-
"span",
|
|
315
|
-
{ class: "text-main" },
|
|
316
|
-
vue.toDisplayString(vue.unref(currentDuration)),
|
|
317
|
-
1
|
|
318
|
-
/* TEXT */
|
|
319
|
-
),
|
|
320
|
-
vue.createElementVNode(
|
|
321
|
-
"span",
|
|
322
|
-
null,
|
|
323
|
-
vue.toDisplayString(vue.unref(totalDuration)),
|
|
324
|
-
1
|
|
325
|
-
/* TEXT */
|
|
326
|
-
)
|
|
327
|
-
])) : vue.createCommentVNode("v-if", true)
|
|
328
|
-
],
|
|
329
|
-
2
|
|
330
|
-
/* CLASS */
|
|
331
|
-
),
|
|
332
|
-
vue.createElementVNode(
|
|
333
|
-
"div",
|
|
334
|
-
{
|
|
335
|
-
class: vue.normalizeClass(["tools-operator", { "tools-analyse": vue.unref(isAnalyseType) }])
|
|
336
|
-
},
|
|
337
|
-
[
|
|
338
|
-
vue.createCommentVNode(" \u901F\u5EA6 "),
|
|
339
|
-
vue.createVNode(vue.unref(elementPlus.ElPopover), {
|
|
340
|
-
placement: "top",
|
|
341
|
-
trigger: "click",
|
|
342
|
-
appendToBody: false,
|
|
343
|
-
"popper-class": "hy-audio-player-popover-speed"
|
|
344
|
-
}, {
|
|
345
|
-
reference: vue.withCtx(() => [
|
|
346
|
-
vue.createElementVNode(
|
|
347
|
-
"div",
|
|
348
|
-
{ class: "speed-box" },
|
|
349
|
-
vue.toDisplayString(vue.unref(speedLabel)),
|
|
350
|
-
1
|
|
351
|
-
/* TEXT */
|
|
352
|
-
)
|
|
353
|
-
]),
|
|
354
|
-
default: vue.withCtx(() => [
|
|
355
|
-
vue.createElementVNode("div", { class: "flex items-center justify-center py-[10px]" }, [
|
|
356
|
-
vue.createElementVNode("ul", { class: "speed-list" }, [
|
|
357
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
358
|
-
vue.Fragment,
|
|
359
|
-
null,
|
|
360
|
-
vue.renderList(vue.unref(speedList), (item, index) => {
|
|
361
|
-
return vue.openBlock(), vue.createElementBlock("li", {
|
|
362
|
-
key: index,
|
|
363
|
-
class: vue.normalizeClass(["clickBox", { selectBox: item.value === vue.unref(speed) }]),
|
|
364
|
-
onClick: ($event) => vue.unref(speedHandler)(item.value)
|
|
365
|
-
}, vue.toDisplayString(item.label), 11, ["onClick"]);
|
|
366
|
-
}),
|
|
367
|
-
128
|
|
368
|
-
/* KEYED_FRAGMENT */
|
|
369
|
-
))
|
|
370
|
-
])
|
|
371
|
-
])
|
|
372
|
-
]),
|
|
373
|
-
_: 1
|
|
374
|
-
/* STABLE */
|
|
375
|
-
}),
|
|
376
|
-
vue.createCommentVNode(" \u4E0B\u8F7D "),
|
|
377
|
-
__props.showDownloadFiles && showActionBtn.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.HyTooltip), {
|
|
378
|
-
key: 0,
|
|
379
|
-
isAlways: "",
|
|
380
|
-
overLine: 1,
|
|
381
|
-
content: vue.unref(useLocale.$t)("audioPlayer.downloadFile")
|
|
382
|
-
}, {
|
|
383
|
-
default: vue.withCtx(() => [
|
|
384
|
-
vue.createVNode(vue.unref(index$1.HyIcon), {
|
|
385
|
-
"svg-name": "ops-audio-audio-down-btn",
|
|
386
|
-
onClick: vue.unref(onDownloadHandler)
|
|
387
|
-
}, null, 8, ["onClick"])
|
|
388
|
-
]),
|
|
389
|
-
_: 1
|
|
390
|
-
/* STABLE */
|
|
391
|
-
}, 8, ["content"])) : vue.createCommentVNode("v-if", true),
|
|
392
|
-
vue.createCommentVNode(" \u64AD\u653E\u89C4\u5219 "),
|
|
393
|
-
__props.showPlayRules ? (vue.openBlock(true), vue.createElementBlock(
|
|
394
|
-
vue.Fragment,
|
|
395
|
-
{ key: 1 },
|
|
396
|
-
vue.renderList(vue.unref(playRulesList), (item, index) => {
|
|
397
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
398
|
-
vue.Fragment,
|
|
399
|
-
{ key: index },
|
|
400
|
-
[
|
|
401
|
-
vue.unref(playRules) === item.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.HyTooltip), {
|
|
402
|
-
key: 0,
|
|
403
|
-
isAlways: "",
|
|
404
|
-
overLine: 1,
|
|
405
|
-
content: item.label
|
|
406
|
-
}, {
|
|
407
|
-
default: vue.withCtx(() => [
|
|
408
|
-
vue.createVNode(vue.unref(index$1.HyIcon), {
|
|
409
|
-
"svg-name": item.svgName,
|
|
410
|
-
onClick: ($event) => vue.unref(playRulesHandler)(item.value)
|
|
411
|
-
}, null, 8, ["svg-name", "onClick"])
|
|
412
|
-
]),
|
|
413
|
-
_: 2
|
|
414
|
-
/* DYNAMIC */
|
|
415
|
-
}, 1032, ["content"])) : vue.createCommentVNode("v-if", true)
|
|
416
|
-
],
|
|
417
|
-
64
|
|
418
|
-
/* STABLE_FRAGMENT */
|
|
419
|
-
);
|
|
420
|
-
}),
|
|
421
|
-
128
|
|
422
|
-
/* KEYED_FRAGMENT */
|
|
423
|
-
)) : vue.createCommentVNode("v-if", true),
|
|
424
|
-
vue.createCommentVNode(" \u58F0\u97F3 "),
|
|
425
|
-
vue.createVNode(vue.unref(elementPlus.ElPopover), {
|
|
426
|
-
placement: "top",
|
|
427
|
-
appendToBody: false,
|
|
428
|
-
trigger: "click",
|
|
429
|
-
"popper-class": "hy-audio-player-popover-volume-slider"
|
|
430
|
-
}, {
|
|
431
|
-
reference: vue.withCtx(() => [
|
|
432
|
-
vue.createElementVNode("div", { class: "flex items-center justify-center" }, [
|
|
433
|
-
vue.createVNode(vue.unref(index$2.HyTooltip), {
|
|
434
|
-
isAlways: "",
|
|
435
|
-
overLine: 1,
|
|
436
|
-
content: vue.unref(useLocale.$t)("audioPlayer.adjustPlaybackVolume")
|
|
437
|
-
}, {
|
|
438
|
-
default: vue.withCtx(() => [
|
|
439
|
-
vue.createVNode(vue.unref(index$1.HyIcon), { "svg-name": "dispatch-share-audio-volumn" })
|
|
440
|
-
]),
|
|
441
|
-
_: 1
|
|
442
|
-
/* STABLE */
|
|
443
|
-
}, 8, ["content"])
|
|
444
|
-
])
|
|
445
|
-
]),
|
|
446
|
-
default: vue.withCtx(() => [
|
|
447
|
-
vue.createElementVNode("div", { class: "flex items-center justify-center pt-3" }, [
|
|
448
|
-
vue.createVNode(vue.unref(elementPlus.ElSlider), {
|
|
449
|
-
modelValue: vue.unref(volumeValue),
|
|
450
|
-
"onUpdate:modelValue": ($event) => vue.isRef(volumeValue) ? volumeValue.value = $event : null,
|
|
451
|
-
vertical: "",
|
|
452
|
-
height: "105px",
|
|
453
|
-
onInput: ($event) => vue.unref(changeVolume)($event)
|
|
454
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
|
|
455
|
-
])
|
|
456
|
-
]),
|
|
457
|
-
_: 1
|
|
458
|
-
/* STABLE */
|
|
459
|
-
})
|
|
460
|
-
],
|
|
461
|
-
2
|
|
462
|
-
/* CLASS */
|
|
463
|
-
)
|
|
464
|
-
],
|
|
465
|
-
2
|
|
466
|
-
/* CLASS */
|
|
467
|
-
)
|
|
468
|
-
],
|
|
469
|
-
2
|
|
470
|
-
/* CLASS */
|
|
471
|
-
);
|
|
472
|
-
};
|
|
473
|
-
}
|
|
474
|
-
});
|
|
10
|
+
var componnet = /* @__PURE__ */ _pluginVue_exportHelper.default(audioPlayer_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-f5a20b4f"]]);
|
|
475
11
|
|
|
476
|
-
exports.default =
|
|
12
|
+
exports.default = componnet;
|