xyvcard-live 0.0.35 → 0.0.37

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 (31) hide show
  1. package/dist/add-BBQAdno0.mjs +897 -0
  2. package/dist/{index-BugQ9Gpb.mjs → index-BbeGLNKG.mjs} +3 -3
  3. package/dist/{index-9duygQkv.mjs → index-BjH0vlYe.mjs} +1903 -1823
  4. package/dist/{index-CiBPIeVf.mjs → index-Bsg6VAMW.mjs} +4 -4
  5. package/dist/{index-CJQ1nVj2-CFkh-2Pg.mjs → index-CJQ1nVj2-CFbmc0ZH.mjs} +1 -1
  6. package/dist/{index-BVngHobj.mjs → index-CRMYA0k7.mjs} +1 -1
  7. package/dist/{index-D9xhpJZJ.mjs → index-D7aqOwSs.mjs} +1 -1
  8. package/dist/{index-vTNaqOHZ.mjs → index-DJlVNY2j.mjs} +1 -1
  9. package/dist/{index-GNY0jcsh.mjs → index-DLIlV_FZ.mjs} +1 -1
  10. package/dist/{index-CnmxFd_t.mjs → index-De46gckE.mjs} +2 -2
  11. package/dist/{index-KMVMe9ZJ-BObNndvb.mjs → index-KMVMe9ZJ-CHYt8LLB.mjs} +1 -1
  12. package/dist/{index-D8SgFAny.mjs → index-LtsiN3LP.mjs} +48 -33
  13. package/dist/{index-Dsbw15tn.mjs → index-vxusicvc.mjs} +2 -2
  14. package/dist/index.mjs +1 -1
  15. package/dist/{index.vue_vue_type_script_setup_true_lang-BJTCFcE7.mjs → index.vue_vue_type_script_setup_true_lang-BxmcNflR.mjs} +1 -1
  16. package/dist/{info-ByXTOGCn-Bg1GwEbM.mjs → info-ByXTOGCn-C0UBm9hx.mjs} +2 -2
  17. package/dist/{info-CVXeF3ji.mjs → info-CKfjSxRz.mjs} +127 -126
  18. package/dist/{info-C_OAyZk9-gO0Bwymi.mjs → info-C_OAyZk9-DyPO3ayt.mjs} +2 -2
  19. package/dist/{info-ZydxPcdx-LlmlwGmr.mjs → info-ZydxPcdx-DH2AIZBM.mjs} +2 -2
  20. package/dist/{lives-BiR20q8J.mjs → lives-BuJ-OQcL.mjs} +18 -17
  21. package/dist/{statistics-CTnps0mC.mjs → statistics-Cq465gZN.mjs} +1 -1
  22. package/dist/style.css +1 -1
  23. package/dist/{transcoding-DBVURRll.mjs → transcoding-CFgNVs45.mjs} +1 -1
  24. package/dts/src/api/live/zb-live-video/types.d.ts +2 -0
  25. package/dts/src/components/VideoUpload/index copy.vue.d.ts +12 -31
  26. package/dts/src/components/liveList/index.vue.d.ts +2 -0
  27. package/dts/src/views/live/zb-live-video/lives.vue.d.ts +2 -2
  28. package/dts/src/views/live/zb-live-videoList/edit.vue.d.ts +1 -1
  29. package/dts/src/views/live/zb-live-videoList/transcoding.vue.d.ts +1 -1
  30. package/package.json +4 -4
  31. package/dist/add-CGoQD4j9.mjs +0 -808
@@ -0,0 +1,897 @@
1
+ import { defineComponent as _e, ref as Y, reactive as oe, watch as X, computed as Ee, onMounted as ge, nextTick as O, resolveComponent as f, createElementBlock as b, openBlock as u, createElementVNode as E, createBlock as y, createCommentVNode as T, createVNode as i, unref as t, withCtx as r, Fragment as Z, renderList as z, createTextVNode as $, toDisplayString as k } from "vue";
2
+ import { ElMessage as S } from "element-plus";
3
+ import { routerUtil as ie } from "jmash-core";
4
+ import { useRouter as he, useRoute as be } from "vue-router";
5
+ import { D as g, U as we, C as s, l as W, p as G, _ as Se } from "./index-BbeGLNKG.mjs";
6
+ import { useI18n as Pe } from "vue-i18n";
7
+ import ke from "./lives-BuJ-OQcL.mjs";
8
+ import { V as Ie } from "./index-BjH0vlYe.mjs";
9
+ import { s as Q, a as I, t as re } from "./timeConvert-DSKES6ZM.mjs";
10
+ const Me = { class: "app-container" }, Ue = { class: "search-container" }, Ye = {
11
+ key: 0,
12
+ class: "live-tip-text"
13
+ }, De = {
14
+ key: 0,
15
+ class: "setting-status"
16
+ }, Le = {
17
+ key: 1,
18
+ class: "setting-status"
19
+ }, Ne = {
20
+ key: 0,
21
+ class: "setting-status"
22
+ }, $e = {
23
+ key: 1,
24
+ class: "setting-status"
25
+ }, Ce = { class: "video-preview" }, qe = ["src"], Re = { class: "video-preview" }, He = ["src"], Fe = { class: "files-list" }, Oe = { class: "files-list" }, je = { class: "files-list" }, Je = { class: "button-container" }, Ae = /* @__PURE__ */ _e({
26
+ __name: "add",
27
+ setup(Be) {
28
+ g.liveTypeEnum.useEnumValues(), g.showModeEnum.useEnumValues(), g.replayModeEnum.useEnumValues();
29
+ const j = new we({
30
+ roleCode: "streamer"
31
+ });
32
+ j.useValues(), console.log(j.values, "=> userListsDict");
33
+ const { t: V } = Pe(), x = he(), C = be(), q = Y();
34
+ let e = oe({
35
+ requestId: Math.random() * 10 + "",
36
+ updateMask: "",
37
+ liveType: "",
38
+ liveName: "",
39
+ startTime: void 0,
40
+ endTime: void 0,
41
+ totalSeconds: 0,
42
+ streamerName: "",
43
+ showMode: s.SHOW_MODE.horizontal,
44
+ preStreamPic: "",
45
+ liveStreamPic: "",
46
+ bgPic: "",
47
+ replayMode: s.REPLAY_MODE.none,
48
+ replayEndTime: void 0,
49
+ liveDescprition: "",
50
+ playUrl: "",
51
+ liveId: void 0,
52
+ replayStartTime: void 0,
53
+ virtualNum: 0,
54
+ streamType: s.PUSH_TYPE_RTMP,
55
+ completeSeconds: 0,
56
+ transCode: s.GQZB26,
57
+ showJoin: !1,
58
+ fileName: "",
59
+ streamerId: ""
60
+ });
61
+ const de = (a) => {
62
+ let l = "liveName,liveType,startTime,showMode,preStreamPic,liveStreamPic,bgPic,streamerName,liveDescprition,replayMode,playUrl,totalSeconds,virtualNum,roomPwd,showJoin,fileId,completeSeconds,transCode,fileName,streamerId";
63
+ return a === s.REPLAY_MODE.end && (l += ",replayEndTime"), e.liveType !== s.LIVE_TYPE.live && (l += ",endTime"), e.liveType === s.LIVE_TYPE.live && (l += ",streamType"), l;
64
+ };
65
+ e.updateMask = "", X(
66
+ () => [e.replayMode, e.liveType],
67
+ () => {
68
+ e.updateMask = de(e.replayMode);
69
+ },
70
+ { immediate: !0 }
71
+ );
72
+ const c = Y(null), w = Y(null), ee = Ee(() => C.query.copy === "true");
73
+ ge(async () => {
74
+ await ne(), !e.liveType && g.liveTypeEnum.values.length && (e.liveType = g.liveTypeEnum.values[0].key), !e.replayMode && g.replayModeEnum.values.length && (e.replayMode = g.replayModeEnum.values[1].key), !e.showMode && g.showModeEnum.values.length && (e.showMode = g.showModeEnum.values[0].key);
75
+ });
76
+ const se = (a) => {
77
+ if (a) {
78
+ e.streamerId = a;
79
+ const l = j.values.find((n) => n.key === a);
80
+ e.streamerName = l ? l.value : "";
81
+ } else
82
+ e.streamerId = "", e.streamerName = "";
83
+ }, M = Y("00:00:00"), U = Y("00:00:00"), ne = async () => {
84
+ const a = C.query.liveId;
85
+ if (a)
86
+ try {
87
+ const l = await W.findById({ liveId: a });
88
+ if (!l.data) {
89
+ S.warning("未获取到直播数据");
90
+ return;
91
+ }
92
+ l.data.liveType === s.LIVE_TYPE.fake_live ? c.value = {
93
+ playUrl: G(l.data.playUrl),
94
+ totalSeconds: l.data.totalSeconds || 0
95
+ } : l.data.liveType === s.LIVE_TYPE.vod && (w.value = {
96
+ playUrl: G(l.data.playUrl)
97
+ }), e.liveType = l.data.liveType || "", e.liveName = l.data.liveName || "", e.streamerName = l.data.streamerName || "", e.streamerId = l.data.streamerId || "", e.showMode = l.data.showMode || "", e.preStreamPic = l.data.preStreamPic || "", e.liveStreamPic = l.data.liveStreamPic || "", e.bgPic = l.data.bgPic || "", e.replayMode = l.data.replayMode || "", e.liveDescprition = l.data.liveDescprition || "", e.playUrl = l.data.playUrl || "", e.virtualNum = l.data.virtualNum || 0, e.streamType = l.data.streamType, e.showJoin = l.data.showJoin, e.roomPwd = l.data.roomPwd, e.transCode = l.data.transCode, e.fileId = l.data.fileId, e.fileName = l.data.fileName, e.replayStartTime = Q(l.data.replayStartTime), e.startTime = Q(l.data.startTime), e.endTime = Q(l.data.endTime), e.replayEndTime = Q(l.data.replayEndTime);
98
+ const n = l.data.totalSeconds || 0;
99
+ e.totalSeconds = n, M.value = I(n);
100
+ const v = l.data.completeSeconds || n;
101
+ U.value = I(v), ee.value ? (delete e.liveId, e.liveName = `${e.liveName}`, S.info("已加载原直播数据,当前为复制模式")) : e.liveId = l.data.liveId, e.liveType === s.LIVE_TYPE.fake_live && c.value && R();
102
+ } catch (l) {
103
+ console.error("获取直播详情失败:", l), S.error("获取直播详情失败");
104
+ }
105
+ }, ue = oe({
106
+ liveType: [
107
+ {
108
+ required: !0,
109
+ message: V("liveVideo.liveTypeRequired"),
110
+ trigger: "change"
111
+ }
112
+ ],
113
+ liveName: [
114
+ {
115
+ required: !0,
116
+ message: V("liveVideo.liveNameRequired"),
117
+ trigger: "blur"
118
+ }
119
+ ],
120
+ startTime: [
121
+ {
122
+ required: !0,
123
+ message: V("liveVideo.startTimeRequired"),
124
+ trigger: "change"
125
+ }
126
+ ],
127
+ preStreamPic: [
128
+ {
129
+ required: !0,
130
+ message: V("liveVideo.preStreamPicRequired"),
131
+ trigger: "change"
132
+ }
133
+ ],
134
+ completeSeconds: [
135
+ {
136
+ required: !0,
137
+ message: V("liveVideo.completeSecondsRequired"),
138
+ trigger: "change"
139
+ }
140
+ ],
141
+ streamType: [
142
+ {
143
+ required: !0,
144
+ message: V("liveVideo.pushTypeRequired"),
145
+ trigger: "change",
146
+ // 自定义验证器,只在 liveType 为直播类型时验证
147
+ validator: (a, l, n) => {
148
+ e.liveType === s.LIVE_TYPE.live && !l ? n(new Error(V("liveVideo.pushTypeRequired"))) : n();
149
+ }
150
+ }
151
+ ],
152
+ endTime: [
153
+ {
154
+ required: !0,
155
+ message: V("liveVideo.endTimeRequired"),
156
+ trigger: "change"
157
+ },
158
+ {
159
+ validator: (a, l, n) => {
160
+ if (e.liveType === s.LIVE_TYPE.vod && e.startTime && l) {
161
+ const v = new Date(e.startTime).getTime();
162
+ new Date(l).getTime() <= v ? n(new Error("结束时间必须大于开始时间")) : n();
163
+ } else
164
+ n();
165
+ },
166
+ trigger: "change"
167
+ }
168
+ ],
169
+ replayEndTime: [
170
+ {
171
+ validator: (a, l, n) => {
172
+ e.replayMode === s.REPLAY_MODE.end && !l ? n(new Error(V("liveVideo.replayEndTimeRequired"))) : n();
173
+ },
174
+ trigger: "change"
175
+ }
176
+ ]
177
+ });
178
+ function me() {
179
+ ie.closeTagView(C.fullPath, x, !1);
180
+ }
181
+ function pe(a) {
182
+ e.preStreamPic = a;
183
+ }
184
+ function ve(a) {
185
+ e.liveStreamPic = a;
186
+ }
187
+ function ce(a) {
188
+ e.bgPic = a;
189
+ }
190
+ const J = Y({ visible: !1 }), K = Y(!1);
191
+ function le() {
192
+ J.value.visible = !0;
193
+ }
194
+ const ae = () => {
195
+ K.value = !0;
196
+ }, ye = (a) => {
197
+ var _, m;
198
+ const l = (_ = a == null ? void 0 : a.video) == null ? void 0 : _.url, n = a == null ? void 0 : a.fileId, v = ((m = a == null ? void 0 : a.video) == null ? void 0 : m.duration) || 0;
199
+ if (!l || !n) {
200
+ S.error("视频上传成功,但未获取到有效播放地址/文件ID!");
201
+ return;
202
+ }
203
+ let d = "";
204
+ try {
205
+ d = G(l), d || (d = l);
206
+ } catch (h) {
207
+ d = l, console.warn("播放地址处理失败,使用原始地址:", h);
208
+ }
209
+ const p = {
210
+ playUrl: d,
211
+ totalSeconds: v,
212
+ fileId: n
213
+ };
214
+ e.liveType === s.LIVE_TYPE.fake_live ? c.value = p : e.liveType === s.LIVE_TYPE.vod && (w.value = p), e.playUrl = d, e.totalSeconds = v, e.fileId = n, M.value = I(v), U.value = I(v), e.liveType === s.LIVE_TYPE.fake_live && O(() => {
215
+ R();
216
+ }), O(() => {
217
+ S.success("本地视频上传成功!");
218
+ });
219
+ }, fe = (a) => {
220
+ var h, D, H, A, L, B;
221
+ console.log(a, "=>data ");
222
+ const l = ((h = a.basicInfo) == null ? void 0 : h.name) || "未命名视频", n = ((D = a.transcodeData) == null ? void 0 : D.width) || 0, v = ((H = a.transcodeData) == null ? void 0 : H.height) || 0;
223
+ e.fileName = `${l} (${n}×${v})`, c.value = null, w.value = null;
224
+ const d = (A = a.transcodeData) == null ? void 0 : A.url;
225
+ if (!d) {
226
+ S.warning("选中的转码视频无有效播放地址");
227
+ return;
228
+ }
229
+ let p = "";
230
+ try {
231
+ p = G(d), p || (p = d);
232
+ } catch (N) {
233
+ p = d, console.warn("播放地址处理失败,使用原始地址:", N);
234
+ }
235
+ const _ = a.fileId, m = ((L = a.metaData) == null ? void 0 : L.duration) || 0;
236
+ e.liveType === s.LIVE_TYPE.fake_live ? (c.value = {
237
+ playUrl: p,
238
+ totalSeconds: m,
239
+ fileId: _,
240
+ transcodeData: a.transcodeData
241
+ // 可选:保留转码详细信息
242
+ }, e.playUrl = p, e.totalSeconds = m, M.value = I(m), U.value = I(m), O(() => {
243
+ R();
244
+ })) : e.liveType === s.LIVE_TYPE.vod && (w.value = {
245
+ playUrl: p,
246
+ fileId: _,
247
+ liveName: ((B = a.basicInfo) == null ? void 0 : B.name) || "未命名视频",
248
+ transcodeData: a.transcodeData
249
+ // 转码详细信息
250
+ }, e.playUrl = p, e.totalSeconds = m, M.value = I(m), U.value = I(m)), O(() => {
251
+ var N, F;
252
+ (N = q.value) == null || N.validateField(["fakeLiveSetting", "endTime"]), S.success(
253
+ `已选中转码视频:${((F = a.basicInfo) == null ? void 0 : F.name) || "未命名视频"} (${a.transcodeData.width}×${a.transcodeData.height})`
254
+ );
255
+ });
256
+ }, R = () => {
257
+ if (c.value && e.startTime) {
258
+ const a = new Date(e.startTime);
259
+ if (isNaN(a.getTime())) {
260
+ console.error("无效的开始时间:", e.startTime);
261
+ return;
262
+ }
263
+ const l = (c.value.totalSeconds || 0) * 1e3, n = new Date(a.getTime() + l), v = n.getUTCFullYear(), d = String(n.getUTCMonth() + 1).padStart(2, "0"), p = String(n.getUTCDate()).padStart(2, "0"), _ = String(n.getUTCHours()).padStart(2, "0"), m = String(n.getUTCMinutes()).padStart(2, "0"), h = String(n.getUTCSeconds()).padStart(2, "0");
264
+ e.endTime = `${v}-${d}-${p}T${_}:${m}:${h}Z`, O(() => {
265
+ q.value && q.value.validateField("endTime");
266
+ });
267
+ }
268
+ }, Te = () => {
269
+ e.playUrl = "", e.liveType === s.LIVE_TYPE.fake_live && c.value ? R() : e.endTime = void 0;
270
+ };
271
+ X(
272
+ () => e.startTime,
273
+ (a) => {
274
+ e.liveType === s.LIVE_TYPE.fake_live && c.value && a && R();
275
+ }
276
+ ), X(
277
+ () => e.replayMode,
278
+ (a) => {
279
+ a !== s.REPLAY_MODE.end && (e.replayEndTime = void 0);
280
+ }
281
+ );
282
+ const Ve = async () => {
283
+ var l, n, v;
284
+ if (e.liveType === s.LIVE_TYPE.fake_live && !c.value) {
285
+ S.error(V("liveVideo.fakeLiveRequired"));
286
+ return;
287
+ }
288
+ if (e.liveType === s.LIVE_TYPE.vod && !w.value) {
289
+ S.error(V("liveVideo.vodRequired"));
290
+ return;
291
+ }
292
+ if (await ((l = q.value) == null ? void 0 : l.validate()))
293
+ try {
294
+ let d = { ...e };
295
+ e.liveType === s.LIVE_TYPE.fake_live && ((n = c.value) != null && n.fileId) ? d.fileId = c.value.fileId : e.liveType === s.LIVE_TYPE.vod && ((v = w.value) != null && v.fileId) && (d.fileId = w.value.fileId), d.totalSeconds = re(M.value) || 0, d.completeSeconds = re(U.value) || 0, e.liveType !== s.LIVE_TYPE.live && delete d.streamType;
296
+ let p;
297
+ if (ee.value) {
298
+ const _ = { ...d };
299
+ delete _.liveId, p = await W.create(_);
300
+ } else C.query.liveId ? p = await W.update(d) : p = await W.create(d);
301
+ p.status === 200 && (S.success(V("common.submitSuccess")), ie.closeTagView(C.fullPath, x, !1));
302
+ } catch (d) {
303
+ S.error(V("common.submitFail") + d.message);
304
+ }
305
+ };
306
+ return (a, l) => {
307
+ const n = f("el-radio"), v = f("el-radio-group"), d = f("el-form-item"), p = f("el-input"), _ = f("jmash-dict-select"), m = f("el-col"), h = f("el-row"), D = f("el-date-picker"), H = f("el-time-picker"), A = f("jmash-select"), L = f("jmash-single-image-upload"), B = f("jmash-editor"), N = f("el-form"), F = f("el-button");
308
+ return u(), b("div", Me, [
309
+ E("div", Ue, [
310
+ i(N, {
311
+ ref_key: "liveFormRef",
312
+ ref: q,
313
+ model: t(e),
314
+ rules: ue,
315
+ style: { "max-width": "800px" },
316
+ "label-width": "auto"
317
+ }, {
318
+ default: r(() => {
319
+ var P, te;
320
+ return [
321
+ i(d, {
322
+ label: a.$t("liveVideo.liveType"),
323
+ prop: "liveType"
324
+ }, {
325
+ default: r(() => [
326
+ i(v, {
327
+ modelValue: t(e).liveType,
328
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => t(e).liveType = o),
329
+ onChange: Te
330
+ }, {
331
+ default: r(() => [
332
+ (u(!0), b(Z, null, z(t(g).liveTypeEnum.values, (o) => (u(), y(n, {
333
+ key: o.key,
334
+ border: !0,
335
+ value: o.key
336
+ }, {
337
+ default: r(() => [
338
+ $(k(o.value), 1)
339
+ ]),
340
+ _: 2
341
+ }, 1032, ["value"]))), 128))
342
+ ]),
343
+ _: 1
344
+ }, 8, ["modelValue"])
345
+ ]),
346
+ _: 1
347
+ }, 8, ["label"]),
348
+ t(e).liveType === t(s).LIVE_TYPE.live ? (u(), b("div", Ye, " 实时直播形式,根据实际画面进行传播,无法快进或回放 ")) : T("", !0),
349
+ t(e).liveType === t(s).LIVE_TYPE.fake_live ? (u(), y(d, {
350
+ key: 1,
351
+ label: a.$t("liveVideo.fakeLive")
352
+ }, {
353
+ default: r(() => {
354
+ var o;
355
+ return [
356
+ E("button", {
357
+ type: "button",
358
+ class: "fakeLive",
359
+ onClick: le
360
+ }, " 伪直播设置 "),
361
+ E("button", {
362
+ type: "button",
363
+ class: "fakeLive",
364
+ onClick: ae
365
+ }, " 从本地上传视频 "),
366
+ (o = c.value) != null && o.playUrl ? (u(), b("div", Le, "已设置")) : (u(), b("div", De, " 未设置 "))
367
+ ];
368
+ }),
369
+ _: 1
370
+ }, 8, ["label"])) : T("", !0),
371
+ t(e).liveType === t(s).LIVE_TYPE.vod ? (u(), y(d, {
372
+ key: 2,
373
+ label: a.$t("liveVideo.vod")
374
+ }, {
375
+ default: r(() => {
376
+ var o;
377
+ return [
378
+ E("button", {
379
+ type: "button",
380
+ class: "fakeLive",
381
+ onClick: le
382
+ }, " 点播设置 "),
383
+ E("button", {
384
+ type: "button",
385
+ class: "fakeLive",
386
+ onClick: ae
387
+ }, " 从本地上传视频 "),
388
+ (o = w.value) != null && o.playUrl ? (u(), b("div", $e, "已设置")) : (u(), b("div", Ne, "未设置"))
389
+ ];
390
+ }),
391
+ _: 1
392
+ }, 8, ["label"])) : T("", !0),
393
+ (P = c.value) != null && P.playUrl && t(e).liveType === t(s).LIVE_TYPE.fake_live ? (u(), y(d, {
394
+ key: 3,
395
+ label: "视频预览"
396
+ }, {
397
+ default: r(() => {
398
+ var o;
399
+ return [
400
+ E("div", Ce, [
401
+ (o = c.value) != null && o.playUrl ? (u(), b("video", {
402
+ key: 0,
403
+ src: c.value.playUrl,
404
+ controls: "",
405
+ width: "400",
406
+ height: "250",
407
+ muted: "",
408
+ playsinline: ""
409
+ }, " 您的浏览器不支持视频播放 ", 8, qe)) : T("", !0),
410
+ E("div", null, k(t(e).fileName), 1)
411
+ ])
412
+ ];
413
+ }),
414
+ _: 1
415
+ })) : T("", !0),
416
+ (te = w.value) != null && te.playUrl && t(e).liveType === t(s).LIVE_TYPE.vod ? (u(), y(d, {
417
+ key: 4,
418
+ label: "视频预览"
419
+ }, {
420
+ default: r(() => {
421
+ var o;
422
+ return [
423
+ E("div", Re, [
424
+ (o = w.value) != null && o.playUrl ? (u(), b("video", {
425
+ key: 0,
426
+ src: w.value.playUrl,
427
+ controls: "",
428
+ width: "400",
429
+ height: "250",
430
+ muted: "",
431
+ playsinline: ""
432
+ }, " 您的浏览器不支持视频播放 ", 8, He)) : T("", !0),
433
+ E("div", null, k(t(e).fileName), 1)
434
+ ])
435
+ ];
436
+ }),
437
+ _: 1
438
+ })) : T("", !0),
439
+ i(d, {
440
+ label: a.$t("liveVideo.liveName"),
441
+ prop: "liveName"
442
+ }, {
443
+ default: r(() => [
444
+ i(p, {
445
+ modelValue: t(e).liveName,
446
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => t(e).liveName = o),
447
+ placeholder: a.$t("liveVideo.liveNameRequired"),
448
+ maxlength: "100",
449
+ "show-word-limit": "",
450
+ clearable: ""
451
+ }, null, 8, ["modelValue", "placeholder"])
452
+ ]),
453
+ _: 1
454
+ }, 8, ["label"]),
455
+ t(e).liveType === t(s).LIVE_TYPE.live ? (u(), y(h, {
456
+ key: 5,
457
+ gutter: 20
458
+ }, {
459
+ default: r(() => [
460
+ i(m, { span: 12 }, {
461
+ default: r(() => [
462
+ i(d, {
463
+ label: a.$t("liveVideo.transCode"),
464
+ prop: "transCode"
465
+ }, {
466
+ default: r(() => [
467
+ i(_, {
468
+ modelValue: t(e).transCode,
469
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => t(e).transCode = o),
470
+ placeholder: a.$t("liveVideo.transCodeRequired"),
471
+ "type-code": t(s).TRANSCODE_CODEC,
472
+ clearable: "",
473
+ class: "w-full"
474
+ }, null, 8, ["modelValue", "placeholder", "type-code"])
475
+ ]),
476
+ _: 1
477
+ }, 8, ["label"])
478
+ ]),
479
+ _: 1
480
+ }),
481
+ i(m, { span: 12 }, {
482
+ default: r(() => [
483
+ i(d, {
484
+ label: a.$t("liveVideo.pushType"),
485
+ prop: "streamType"
486
+ }, {
487
+ default: r(() => [
488
+ i(_, {
489
+ modelValue: t(e).streamType,
490
+ "onUpdate:modelValue": l[3] || (l[3] = (o) => t(e).streamType = o),
491
+ placeholder: a.$t("liveVideo.pushTypeRequired"),
492
+ "type-code": t(s).PUSH_TYPE,
493
+ class: "w-full"
494
+ }, null, 8, ["modelValue", "placeholder", "type-code"])
495
+ ]),
496
+ _: 1
497
+ }, 8, ["label"])
498
+ ]),
499
+ _: 1
500
+ })
501
+ ]),
502
+ _: 1
503
+ })) : T("", !0),
504
+ i(h, { gutter: 20 }, {
505
+ default: r(() => [
506
+ i(m, { span: 12 }, {
507
+ default: r(() => [
508
+ i(d, {
509
+ label: a.$t("liveVideo.startTime"),
510
+ prop: "startTime"
511
+ }, {
512
+ default: r(() => [
513
+ i(D, {
514
+ modelValue: t(e).startTime,
515
+ "onUpdate:modelValue": l[4] || (l[4] = (o) => t(e).startTime = o),
516
+ type: "datetime",
517
+ placeholder: a.$t("liveVideo.startTimeRequired"),
518
+ format: "YYYY-MM-DD HH:mm:ss",
519
+ "value-format": "YYYY-MM-DDTHH:mm:ssZ",
520
+ class: "w-full"
521
+ }, null, 8, ["modelValue", "placeholder"])
522
+ ]),
523
+ _: 1
524
+ }, 8, ["label"])
525
+ ]),
526
+ _: 1
527
+ }),
528
+ t(e).liveType !== t(s).LIVE_TYPE.live ? (u(), y(m, {
529
+ key: 0,
530
+ span: 12
531
+ }, {
532
+ default: r(() => [
533
+ i(d, {
534
+ label: a.$t("liveVideo.endTime"),
535
+ prop: "endTime"
536
+ }, {
537
+ default: r(() => [
538
+ i(D, {
539
+ modelValue: t(e).endTime,
540
+ "onUpdate:modelValue": l[5] || (l[5] = (o) => t(e).endTime = o),
541
+ type: "datetime",
542
+ placeholder: a.$t("liveVideo.endTimeRequired"),
543
+ format: "YYYY-MM-DD HH:mm:ss",
544
+ "value-format": "YYYY-MM-DDTHH:mm:ssZ",
545
+ class: "w-full",
546
+ disabled: t(e).liveType === t(s).LIVE_TYPE.fake_live
547
+ }, null, 8, ["modelValue", "placeholder", "disabled"])
548
+ ]),
549
+ _: 1
550
+ }, 8, ["label"])
551
+ ]),
552
+ _: 1
553
+ })) : T("", !0),
554
+ t(e).liveType === t(s).LIVE_TYPE.live ? (u(), y(m, {
555
+ key: 1,
556
+ span: 12
557
+ }, {
558
+ default: r(() => [
559
+ i(d, {
560
+ label: a.$t("liveVideo.totalSeconds"),
561
+ prop: "totalSeconds"
562
+ }, {
563
+ default: r(() => [
564
+ i(H, {
565
+ modelValue: M.value,
566
+ "onUpdate:modelValue": l[6] || (l[6] = (o) => M.value = o),
567
+ placeholder: a.$t("liveVideo.totalSecondsRequired"),
568
+ "show-word-limit": "",
569
+ clearable: "",
570
+ format: "HH:mm:ss",
571
+ "value-format": "HH:mm:ss",
572
+ class: "w-full"
573
+ }, null, 8, ["modelValue", "placeholder"])
574
+ ]),
575
+ _: 1
576
+ }, 8, ["label"])
577
+ ]),
578
+ _: 1
579
+ })) : T("", !0)
580
+ ]),
581
+ _: 1
582
+ }),
583
+ i(h, { gutter: 20 }, {
584
+ default: r(() => [
585
+ i(m, { span: 12 }, {
586
+ default: r(() => [
587
+ i(d, {
588
+ label: a.$t("liveVideo.completeSeconds"),
589
+ prop: "completeSeconds"
590
+ }, {
591
+ default: r(() => [
592
+ i(H, {
593
+ modelValue: U.value,
594
+ "onUpdate:modelValue": l[7] || (l[7] = (o) => U.value = o),
595
+ placeholder: a.$t("liveVideo.completeSecondsRequired"),
596
+ "show-word-limit": "",
597
+ clearable: "",
598
+ format: "HH:mm:ss",
599
+ "value-format": "HH:mm:ss",
600
+ class: "w-full"
601
+ }, null, 8, ["modelValue", "placeholder"])
602
+ ]),
603
+ _: 1
604
+ }, 8, ["label"])
605
+ ]),
606
+ _: 1
607
+ }),
608
+ i(m, { span: 12 }, {
609
+ default: r(() => [
610
+ i(d, {
611
+ label: a.$t("liveVideo.virtualNum"),
612
+ prop: "virtualNum"
613
+ }, {
614
+ default: r(() => [
615
+ i(p, {
616
+ modelValue: t(e).virtualNum,
617
+ "onUpdate:modelValue": l[8] || (l[8] = (o) => t(e).virtualNum = o),
618
+ placeholder: a.$t("liveVideo.virtualNumRequired"),
619
+ "show-word-limit": "",
620
+ clearable: "",
621
+ type: "number"
622
+ }, null, 8, ["modelValue", "placeholder"])
623
+ ]),
624
+ _: 1
625
+ }, 8, ["label"])
626
+ ]),
627
+ _: 1
628
+ })
629
+ ]),
630
+ _: 1
631
+ }),
632
+ i(d, {
633
+ label: a.$t("liveVideo.streamerName"),
634
+ prop: "streamerName"
635
+ }, {
636
+ default: r(() => [
637
+ i(A, {
638
+ modelValue: t(e).streamerName,
639
+ "onUpdate:modelValue": l[9] || (l[9] = (o) => t(e).streamerName = o),
640
+ data: t(j).values,
641
+ placeholder: a.$t("liveVideo.streamerNameRequired"),
642
+ clearable: "",
643
+ class: "w-full",
644
+ onChange: se
645
+ }, null, 8, ["modelValue", "data", "placeholder"])
646
+ ]),
647
+ _: 1
648
+ }, 8, ["label"]),
649
+ i(h, { gutter: 20 }, {
650
+ default: r(() => [
651
+ i(m, { span: 12 }, {
652
+ default: r(() => [
653
+ i(d, {
654
+ label: a.$t("liveVideo.roomPwd"),
655
+ prop: "roomPwd"
656
+ }, {
657
+ default: r(() => [
658
+ i(p, {
659
+ modelValue: t(e).roomPwd,
660
+ "onUpdate:modelValue": l[10] || (l[10] = (o) => t(e).roomPwd = o),
661
+ placeholder: a.$t("liveVideo.roomPwdRequired"),
662
+ clearable: ""
663
+ }, null, 8, ["modelValue", "placeholder"])
664
+ ]),
665
+ _: 1
666
+ }, 8, ["label"])
667
+ ]),
668
+ _: 1
669
+ }),
670
+ i(m, { span: 12 }, {
671
+ default: r(() => [
672
+ i(d, {
673
+ label: a.$t("liveVideo.showMode"),
674
+ prop: "showMode"
675
+ }, {
676
+ default: r(() => [
677
+ i(v, {
678
+ modelValue: t(e).showMode,
679
+ "onUpdate:modelValue": l[11] || (l[11] = (o) => t(e).showMode = o)
680
+ }, {
681
+ default: r(() => [
682
+ (u(!0), b(Z, null, z(t(g).showModeEnum.values, (o) => (u(), y(n, {
683
+ key: o.key,
684
+ value: o.key
685
+ }, {
686
+ default: r(() => [
687
+ $(k(o.value), 1)
688
+ ]),
689
+ _: 2
690
+ }, 1032, ["value"]))), 128))
691
+ ]),
692
+ _: 1
693
+ }, 8, ["modelValue"])
694
+ ]),
695
+ _: 1
696
+ }, 8, ["label"])
697
+ ]),
698
+ _: 1
699
+ })
700
+ ]),
701
+ _: 1
702
+ }),
703
+ i(h, {
704
+ gutter: 20,
705
+ style: { height: "100px" }
706
+ }, {
707
+ default: r(() => [
708
+ i(m, { span: 12 }, {
709
+ default: r(() => [
710
+ i(d, {
711
+ label: a.$t("liveVideo.preStreamPic"),
712
+ prop: "preStreamPic"
713
+ }, {
714
+ default: r(() => [
715
+ E("div", Fe, [
716
+ i(L, {
717
+ "picture-url": t(e).preStreamPic,
718
+ onImageSrc: pe,
719
+ width: 80,
720
+ type: "trans"
721
+ }, null, 8, ["picture-url"])
722
+ ])
723
+ ]),
724
+ _: 1
725
+ }, 8, ["label"])
726
+ ]),
727
+ _: 1
728
+ }),
729
+ i(m, { span: 12 }, {
730
+ default: r(() => [
731
+ i(d, {
732
+ label: a.$t("liveVideo.liveStreamPic"),
733
+ prop: "liveStreamPic"
734
+ }, {
735
+ default: r(() => [
736
+ E("div", Oe, [
737
+ i(L, {
738
+ "picture-url": t(e).liveStreamPic,
739
+ onImageSrc: ve,
740
+ width: 80,
741
+ type: "trans"
742
+ }, null, 8, ["picture-url"])
743
+ ])
744
+ ]),
745
+ _: 1
746
+ }, 8, ["label"])
747
+ ]),
748
+ _: 1
749
+ })
750
+ ]),
751
+ _: 1
752
+ }),
753
+ t(e).showMode === t(s).SHOW_MODE.vertical ? (u(), y(d, {
754
+ key: 6,
755
+ label: a.$t("liveVideo.bgPic"),
756
+ prop: "bgPic"
757
+ }, {
758
+ default: r(() => [
759
+ E("div", je, [
760
+ i(L, {
761
+ "picture-url": t(e).bgPic,
762
+ onImageSrc: ce,
763
+ width: 80,
764
+ type: "trans"
765
+ }, null, 8, ["picture-url"])
766
+ ])
767
+ ]),
768
+ _: 1
769
+ }, 8, ["label"])) : T("", !0),
770
+ t(e).liveType !== t(s).LIVE_TYPE.vod ? (u(), y(d, {
771
+ key: 7,
772
+ label: a.$t("liveVideo.replayMode"),
773
+ prop: "replayMode"
774
+ }, {
775
+ default: r(() => [
776
+ i(v, {
777
+ modelValue: t(e).replayMode,
778
+ "onUpdate:modelValue": l[12] || (l[12] = (o) => t(e).replayMode = o)
779
+ }, {
780
+ default: r(() => [
781
+ (u(!0), b(Z, null, z(t(g).replayModeEnum.values, (o) => (u(), y(n, {
782
+ key: o.key,
783
+ border: !0,
784
+ value: o.key
785
+ }, {
786
+ default: r(() => [
787
+ $(k(o.value), 1)
788
+ ]),
789
+ _: 2
790
+ }, 1032, ["value"]))), 128))
791
+ ]),
792
+ _: 1
793
+ }, 8, ["modelValue"])
794
+ ]),
795
+ _: 1
796
+ }, 8, ["label"])) : T("", !0),
797
+ t(e).replayMode === t(s).REPLAY_MODE.end && t(e).liveType !== t(s).LIVE_TYPE.vod ? (u(), y(d, {
798
+ key: 8,
799
+ label: a.$t("liveVideo.replayEndTime"),
800
+ prop: "replayEndTime"
801
+ }, {
802
+ default: r(() => [
803
+ i(D, {
804
+ modelValue: t(e).replayEndTime,
805
+ "onUpdate:modelValue": l[13] || (l[13] = (o) => t(e).replayEndTime = o),
806
+ type: "datetime",
807
+ placeholder: a.$t("liveVideo.replayEndTimeRequired"),
808
+ format: "YYYY-MM-DD HH:mm:ss",
809
+ "value-format": "YYYY-MM-DDTHH:mm:ssZ",
810
+ class: "w-full"
811
+ }, null, 8, ["modelValue", "placeholder"])
812
+ ]),
813
+ _: 1
814
+ }, 8, ["label"])) : T("", !0),
815
+ i(d, {
816
+ label: a.$t("liveVideo.showJoin"),
817
+ prop: "showJoin"
818
+ }, {
819
+ default: r(() => [
820
+ i(v, {
821
+ modelValue: t(e).showJoin,
822
+ "onUpdate:modelValue": l[14] || (l[14] = (o) => t(e).showJoin = o)
823
+ }, {
824
+ default: r(() => [
825
+ (u(!0), b(Z, null, z(t(g).isShowEnterLive.values, (o) => (u(), y(n, {
826
+ key: o.key,
827
+ value: o.key
828
+ }, {
829
+ default: r(() => [
830
+ $(k(o.value), 1)
831
+ ]),
832
+ _: 2
833
+ }, 1032, ["value"]))), 128))
834
+ ]),
835
+ _: 1
836
+ }, 8, ["modelValue"])
837
+ ]),
838
+ _: 1
839
+ }, 8, ["label"]),
840
+ i(d, {
841
+ label: a.$t("liveVideo.liveDescprition"),
842
+ prop: "liveDescprition"
843
+ }, {
844
+ default: r(() => [
845
+ i(B, {
846
+ modelValue: t(e).liveDescprition,
847
+ "onUpdate:modelValue": l[15] || (l[15] = (o) => t(e).liveDescprition = o),
848
+ style: { width: "100%" }
849
+ }, null, 8, ["modelValue"])
850
+ ]),
851
+ _: 1
852
+ }, 8, ["label"])
853
+ ];
854
+ }),
855
+ _: 1
856
+ }, 8, ["model", "rules"]),
857
+ E("div", Je, [
858
+ i(F, {
859
+ type: "primary",
860
+ onClick: me
861
+ }, {
862
+ default: r(() => [
863
+ $(k(a.$t("common.back")), 1)
864
+ ]),
865
+ _: 1
866
+ }),
867
+ i(F, {
868
+ type: "primary",
869
+ onClick: Ve
870
+ }, {
871
+ default: r(() => [
872
+ $(k(a.$t("common.confirm")), 1)
873
+ ]),
874
+ _: 1
875
+ })
876
+ ])
877
+ ]),
878
+ J.value.visible ? (u(), y(ke, {
879
+ key: 0,
880
+ modelValue: J.value.visible,
881
+ "onUpdate:modelValue": l[16] || (l[16] = (P) => J.value.visible = P),
882
+ width: "1200px",
883
+ onConfirmSelect: l[17] || (l[17] = (P) => fe(P))
884
+ }, null, 8, ["modelValue"])) : T("", !0),
885
+ i(Ie, {
886
+ modelValue: K.value,
887
+ "onUpdate:modelValue": l[18] || (l[18] = (P) => K.value = P),
888
+ "video-max-size": 800,
889
+ onUploadSuccess: ye
890
+ }, null, 8, ["modelValue"])
891
+ ]);
892
+ };
893
+ }
894
+ }), ll = /* @__PURE__ */ Se(Ae, [["__scopeId", "data-v-8fbe395f"]]);
895
+ export {
896
+ ll as default
897
+ };