xyvcard-live 0.0.34 → 0.0.35

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