@das-fed/ui 6.4.0-test.54 → 6.4.0-test.55
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/esm-map.json +3 -1
- package/package.json +7 -6
- package/packages/business-components/ai-panel/{index-BVbGcP9e.js → index-BUVM9wHT.js} +1 -1
- package/packages/business-components/ai-panel/index-BUVM9wHT.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-D4944ccN.js → index-BXukDT-W.js} +1334 -1333
- package/packages/business-components/ai-panel/index-BXukDT-W.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/ai-panel/src/dasAI/index.vue.d.ts +4 -3
- package/packages/business-components/ai-panel/src/index.vue.d.ts +4 -3
- package/packages/business-components/ai-panel/src/type.d.ts +4 -1
- package/packages/business-components/ai-panel/style.css +1 -1
- package/packages/business-components/ai-panel/style.css.gz +0 -0
- package/packages/business-components/video-dialog/index.d.ts +5 -0
- package/packages/business-components/video-dialog/index.js +318 -286
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/src/component/Player/index.vue.d.ts +2 -0
- package/packages/business-components/video-dialog/src/hooks/use-video/PlayerProvider.d.ts +7 -7
- package/packages/business-components/video-dialog/src/index.vue.d.ts +1 -0
- package/packages/business-components/video-dialog/src/type.d.ts +1 -1
- package/packages/business-components/video-dialog/style.css +1 -1
- package/packages/business-components/video-dialog/style.css.gz +0 -0
- package/packages/components/hls-player/i18n/index.d.ts +13 -0
- package/packages/components/hls-player/index.d.ts +172 -0
- package/packages/components/hls-player/index.js +21183 -0
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/hls-player/src/das-hls-player.vue.d.ts +47 -0
- package/packages/components/hls-player/src/type.d.ts +33 -0
- package/packages/components/hls-player/style.css +1 -0
- package/packages/components/hls-player/style.css.gz +0 -0
- package/packages/components/index.d.ts +1 -0
- package/packages/components/index.js +1 -0
- package/packages/business-components/ai-panel/index-BVbGcP9e.js.gz +0 -0
- package/packages/business-components/ai-panel/index-D4944ccN.js.gz +0 -0
|
@@ -1,59 +1,60 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/video-dialog/style.css';
|
|
2
|
-
import { getCurrentScope as ce, onScopeDispose as ue, getCurrentInstance as de, onMounted as
|
|
3
|
-
import { withInstall as
|
|
4
|
-
import { t as g, setI18nRule as
|
|
2
|
+
import { getCurrentScope as ce, onScopeDispose as ue, getCurrentInstance as de, onMounted as J, nextTick as P, unref as l, ref as w, watch as R, defineComponent as O, useCssVars as pe, computed as U, createElementBlock as S, openBlock as p, normalizeClass as ve, renderSlot as ee, createCommentVNode as b, Fragment as x, renderList as fe, createBlock as N, withCtx as C, withModifiers as _, createVNode as v, createElementVNode as f, toDisplayString as V, toRefs as me } from "vue";
|
|
3
|
+
import { withInstall as Ce } from "@das-fed/utils/with-install/index";
|
|
4
|
+
import { t as g, setI18nRule as ge } from "@das-fed/web/packages/i18n/index";
|
|
5
5
|
import { DasDialog as ye } from "@das-fed/ui/packages/components/dialog/index";
|
|
6
6
|
import { DasTooltip as h } from "@das-fed/ui/packages/components/tooltip/index";
|
|
7
7
|
import { DasIconFullscreen2 as ke } from "@das-fed/ui/packages/icons/fullscreen-2/index";
|
|
8
|
-
import { DasAutoRegisterIcon as _e, DasIcon as
|
|
8
|
+
import { DasAutoRegisterIcon as _e, DasIcon as $ } from "@das-fed/ui/packages/components/icon/index";
|
|
9
9
|
import { DasLivePlayer as we } from "@das-fed/ui/packages/components/live-player/index";
|
|
10
10
|
import { DasSpin as he } from "@das-fed/ui/packages/components/spin/index";
|
|
11
|
-
import be from "
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
import { DasHlsPlayer as be } from "@das-fed/ui/packages/components/hls-player/index";
|
|
12
|
+
import Ie from "dayjs";
|
|
13
|
+
import { createService as te } from "@das-fed/utils/api-services/src/create-service";
|
|
14
|
+
import { getProjectInfo as A, getToken as Ee } from "@das-fed/utils/common-info";
|
|
15
|
+
var Q;
|
|
16
|
+
const j = typeof window < "u", Ne = (t) => typeof t == "string", Fe = () => {
|
|
16
17
|
};
|
|
17
|
-
|
|
18
|
-
function
|
|
18
|
+
j && ((Q = window == null ? void 0 : window.navigator) != null && Q.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
19
|
+
function oe(t) {
|
|
19
20
|
return typeof t == "function" ? t() : l(t);
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
+
function Re(t) {
|
|
22
23
|
return t;
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
+
function ne(t) {
|
|
25
26
|
return ce() ? (ue(t), !0) : !1;
|
|
26
27
|
}
|
|
27
28
|
function Se(t, n = !0) {
|
|
28
|
-
de() ?
|
|
29
|
+
de() ? J(t) : n ? t() : P(t);
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
+
function le(t) {
|
|
31
32
|
var n;
|
|
32
|
-
const e =
|
|
33
|
+
const e = oe(t);
|
|
33
34
|
return (n = e == null ? void 0 : e.$el) != null ? n : e;
|
|
34
35
|
}
|
|
35
|
-
const
|
|
36
|
+
const ze = j ? window : void 0, De = j ? window.document : void 0;
|
|
36
37
|
function Oe(...t) {
|
|
37
|
-
let n, e, i,
|
|
38
|
-
if (
|
|
38
|
+
let n, e, i, r;
|
|
39
|
+
if (Ne(t[0]) || Array.isArray(t[0]) ? ([e, i, r] = t, n = ze) : [n, e, i, r] = t, !n)
|
|
39
40
|
return Fe;
|
|
40
41
|
Array.isArray(e) || (e = [e]), Array.isArray(i) || (i = [i]);
|
|
41
42
|
const o = [], a = () => {
|
|
42
43
|
o.forEach((c) => c()), o.length = 0;
|
|
43
|
-
}, y = (c,
|
|
44
|
-
a(), c && o.push(...e.flatMap((
|
|
45
|
-
}, { immediate: !0, flush: "post" }),
|
|
46
|
-
|
|
44
|
+
}, y = (c, d, k, I) => (c.addEventListener(d, k, I), () => c.removeEventListener(d, k, I)), s = R(() => [le(n), oe(r)], ([c, d]) => {
|
|
45
|
+
a(), c && o.push(...e.flatMap((k) => i.map((I) => y(c, k, I, d))));
|
|
46
|
+
}, { immediate: !0, flush: "post" }), m = () => {
|
|
47
|
+
s(), a();
|
|
47
48
|
};
|
|
48
|
-
return
|
|
49
|
+
return ne(m), m;
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
+
function Le(t, n = !1) {
|
|
51
52
|
const e = w(), i = () => e.value = !!t();
|
|
52
53
|
return i(), Se(i, n), e;
|
|
53
54
|
}
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
const
|
|
55
|
+
const q = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, G = "__vueuse_ssr_handlers__";
|
|
56
|
+
q[G] = q[G] || {};
|
|
57
|
+
const W = [
|
|
57
58
|
[
|
|
58
59
|
"requestFullscreen",
|
|
59
60
|
"exitFullscreen",
|
|
@@ -95,54 +96,54 @@ const G = [
|
|
|
95
96
|
"MSFullscreenError"
|
|
96
97
|
]
|
|
97
98
|
];
|
|
98
|
-
function
|
|
99
|
-
const { document: e =
|
|
100
|
-
let a =
|
|
101
|
-
const y =
|
|
99
|
+
function ie(t, n = {}) {
|
|
100
|
+
const { document: e = De, autoExit: i = !1 } = n, r = t || (e == null ? void 0 : e.querySelector("html")), o = w(!1);
|
|
101
|
+
let a = W[0];
|
|
102
|
+
const y = Le(() => {
|
|
102
103
|
if (e) {
|
|
103
|
-
for (const
|
|
104
|
-
if (
|
|
105
|
-
return a =
|
|
104
|
+
for (const F of W)
|
|
105
|
+
if (F[1] in e)
|
|
106
|
+
return a = F, !0;
|
|
106
107
|
} else
|
|
107
108
|
return !1;
|
|
108
109
|
return !1;
|
|
109
|
-
}), [
|
|
110
|
-
async function
|
|
111
|
-
y.value && (e != null && e[c] && await e[
|
|
110
|
+
}), [s, m, c, , d] = a;
|
|
111
|
+
async function k() {
|
|
112
|
+
y.value && (e != null && e[c] && await e[m](), o.value = !1);
|
|
112
113
|
}
|
|
113
|
-
async function
|
|
114
|
+
async function I() {
|
|
114
115
|
if (!y.value)
|
|
115
116
|
return;
|
|
116
|
-
await
|
|
117
|
-
const
|
|
118
|
-
|
|
117
|
+
await k();
|
|
118
|
+
const F = le(r);
|
|
119
|
+
F && (await F[s](), o.value = !0);
|
|
119
120
|
}
|
|
120
|
-
async function
|
|
121
|
-
o.value ? await
|
|
121
|
+
async function L() {
|
|
122
|
+
o.value ? await k() : await I();
|
|
122
123
|
}
|
|
123
|
-
return e && Oe(e,
|
|
124
|
+
return e && Oe(e, d, () => {
|
|
124
125
|
o.value = !!(e != null && e[c]);
|
|
125
|
-
}, !1), i &&
|
|
126
|
+
}, !1), i && ne(k), {
|
|
126
127
|
isSupported: y,
|
|
127
128
|
isFullscreen: o,
|
|
128
|
-
enter:
|
|
129
|
-
exit:
|
|
130
|
-
toggle:
|
|
129
|
+
enter: I,
|
|
130
|
+
exit: k,
|
|
131
|
+
toggle: L
|
|
131
132
|
};
|
|
132
133
|
}
|
|
133
|
-
var
|
|
134
|
+
var Y;
|
|
134
135
|
(function(t) {
|
|
135
136
|
t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
|
|
136
|
-
})(
|
|
137
|
-
var $e = Object.defineProperty,
|
|
137
|
+
})(Y || (Y = {}));
|
|
138
|
+
var $e = Object.defineProperty, Z = Object.getOwnPropertySymbols, Pe = Object.prototype.hasOwnProperty, Ue = Object.prototype.propertyIsEnumerable, K = (t, n, e) => n in t ? $e(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, xe = (t, n) => {
|
|
138
139
|
for (var e in n || (n = {}))
|
|
139
|
-
|
|
140
|
-
if (
|
|
141
|
-
for (var e of
|
|
142
|
-
|
|
140
|
+
Pe.call(n, e) && K(t, e, n[e]);
|
|
141
|
+
if (Z)
|
|
142
|
+
for (var e of Z(n))
|
|
143
|
+
Ue.call(n, e) && K(t, e, n[e]);
|
|
143
144
|
return t;
|
|
144
145
|
};
|
|
145
|
-
const
|
|
146
|
+
const Te = {
|
|
146
147
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
147
148
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
148
149
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -169,9 +170,9 @@ const Ue = {
|
|
|
169
170
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
170
171
|
};
|
|
171
172
|
xe({
|
|
172
|
-
linear:
|
|
173
|
-
},
|
|
174
|
-
const
|
|
173
|
+
linear: Re
|
|
174
|
+
}, Te);
|
|
175
|
+
const Be = /* @__PURE__ */ O({
|
|
175
176
|
__name: "GridItem",
|
|
176
177
|
props: {
|
|
177
178
|
active: { type: Boolean },
|
|
@@ -180,37 +181,37 @@ const Te = /* @__PURE__ */ D({
|
|
|
180
181
|
emits: ["itemClick"],
|
|
181
182
|
setup(t, { emit: n }) {
|
|
182
183
|
pe((c) => ({
|
|
183
|
-
"9b3a2c32":
|
|
184
|
+
"9b3a2c32": m.value
|
|
184
185
|
}));
|
|
185
|
-
const e = t, i = n,
|
|
186
|
-
|
|
186
|
+
const e = t, i = n, r = w(), { toggle: o, isFullscreen: a } = ie(r), y = () => {
|
|
187
|
+
r.value != document.fullscreenElement && (a.value ? (a.value = !1, P(() => {
|
|
187
188
|
o();
|
|
188
189
|
})) : o());
|
|
189
|
-
},
|
|
190
|
+
}, s = () => {
|
|
190
191
|
i("itemClick");
|
|
191
|
-
},
|
|
192
|
-
return (c,
|
|
192
|
+
}, m = U(() => `calc(100% / ${Math.sqrt(e.gridNum)})`);
|
|
193
|
+
return (c, d) => (p(), S(
|
|
193
194
|
"div",
|
|
194
195
|
{
|
|
195
196
|
ref_key: "containerRef",
|
|
196
|
-
ref:
|
|
197
|
+
ref: r,
|
|
197
198
|
class: ve(["wrapper", { "is-active": e.active }]),
|
|
198
|
-
onDblclick:
|
|
199
|
-
onClick:
|
|
199
|
+
onDblclick: d[0] || (d[0] = (k) => y()),
|
|
200
|
+
onClick: d[1] || (d[1] = (k) => s())
|
|
200
201
|
},
|
|
201
202
|
[
|
|
202
|
-
|
|
203
|
+
ee(c.$slots, "default", {}, void 0, !0)
|
|
203
204
|
],
|
|
204
205
|
34
|
|
205
206
|
/* CLASS, NEED_HYDRATION */
|
|
206
207
|
));
|
|
207
208
|
}
|
|
208
|
-
}),
|
|
209
|
+
}), T = (t, n) => {
|
|
209
210
|
const e = t.__vccOpts || t;
|
|
210
|
-
for (const [i,
|
|
211
|
-
e[i] =
|
|
211
|
+
for (const [i, r] of n)
|
|
212
|
+
e[i] = r;
|
|
212
213
|
return e;
|
|
213
|
-
},
|
|
214
|
+
}, He = /* @__PURE__ */ T(Be, [["__scopeId", "data-v-100b67ca"]]), Ve = { class: "layout-wrapper" }, je = /* @__PURE__ */ O({
|
|
214
215
|
__name: "GridLayout",
|
|
215
216
|
props: {
|
|
216
217
|
gridNum: {},
|
|
@@ -219,24 +220,24 @@ const Te = /* @__PURE__ */ D({
|
|
|
219
220
|
},
|
|
220
221
|
emits: ["update:activeIndex"],
|
|
221
222
|
setup(t, { emit: n }) {
|
|
222
|
-
const e = t, i = n,
|
|
223
|
+
const e = t, i = n, r = (o) => {
|
|
223
224
|
i("update:activeIndex", o);
|
|
224
225
|
};
|
|
225
|
-
return (o, a) => (
|
|
226
|
-
|
|
227
|
-
(
|
|
228
|
-
|
|
226
|
+
return (o, a) => (p(), S("div", Ve, [
|
|
227
|
+
b(' :active="index === activeIndex" '),
|
|
228
|
+
(p(!0), S(
|
|
229
|
+
x,
|
|
229
230
|
null,
|
|
230
|
-
fe(e.gridNum, (y,
|
|
231
|
+
fe(e.gridNum, (y, s) => (p(), N(He, {
|
|
231
232
|
active: !1,
|
|
232
233
|
"grid-num": e.gridNum,
|
|
233
|
-
onItemClick: (
|
|
234
|
+
onItemClick: (m) => r(s)
|
|
234
235
|
}, {
|
|
235
|
-
default:
|
|
236
|
-
o.showFn(
|
|
236
|
+
default: C(() => [
|
|
237
|
+
o.showFn(s) ? ee(o.$slots, "default", {
|
|
237
238
|
key: 0,
|
|
238
|
-
index:
|
|
239
|
-
}, void 0, !0) :
|
|
239
|
+
index: s
|
|
240
|
+
}, void 0, !0) : b("v-if", !0)
|
|
240
241
|
]),
|
|
241
242
|
_: 2
|
|
242
243
|
/* DYNAMIC */
|
|
@@ -246,25 +247,25 @@ const Te = /* @__PURE__ */ D({
|
|
|
246
247
|
))
|
|
247
248
|
]));
|
|
248
249
|
}
|
|
249
|
-
}), Me = /* @__PURE__ */
|
|
250
|
+
}), Me = /* @__PURE__ */ T(je, [["__scopeId", "data-v-661e2289"]]), Ae = /* @__PURE__ */ O({
|
|
250
251
|
__name: "DirectionControl",
|
|
251
252
|
emits: ["change"],
|
|
252
253
|
setup(t, { emit: n }) {
|
|
253
|
-
const e = n, i = (
|
|
254
|
-
e("change",
|
|
254
|
+
const e = n, i = (r) => {
|
|
255
|
+
e("change", r);
|
|
255
256
|
};
|
|
256
|
-
return (
|
|
257
|
+
return (r, o) => (p(), S(
|
|
257
258
|
"div",
|
|
258
259
|
{
|
|
259
260
|
class: "direction-control",
|
|
260
261
|
onDblclick: o[9] || (o[9] = _((a) => a.stopPropagation(), ["stop"]))
|
|
261
262
|
},
|
|
262
263
|
[
|
|
263
|
-
|
|
264
|
+
v(l(h), {
|
|
264
265
|
content: l(g)("左上")
|
|
265
266
|
}, {
|
|
266
|
-
default:
|
|
267
|
-
|
|
267
|
+
default: C(() => [
|
|
268
|
+
f("div", {
|
|
268
269
|
class: "icon icon-top-left",
|
|
269
270
|
onClick: o[0] || (o[0] = _((a) => i("leftUp"), ["stop"]))
|
|
270
271
|
})
|
|
@@ -272,11 +273,11 @@ const Te = /* @__PURE__ */ D({
|
|
|
272
273
|
_: 1
|
|
273
274
|
/* STABLE */
|
|
274
275
|
}, 8, ["content"]),
|
|
275
|
-
|
|
276
|
+
v(l(h), {
|
|
276
277
|
content: l(g)("上")
|
|
277
278
|
}, {
|
|
278
|
-
default:
|
|
279
|
-
|
|
279
|
+
default: C(() => [
|
|
280
|
+
f("div", {
|
|
280
281
|
class: "icon icon-top",
|
|
281
282
|
onClick: o[1] || (o[1] = _((a) => i("up"), ["stop"]))
|
|
282
283
|
})
|
|
@@ -284,11 +285,11 @@ const Te = /* @__PURE__ */ D({
|
|
|
284
285
|
_: 1
|
|
285
286
|
/* STABLE */
|
|
286
287
|
}, 8, ["content"]),
|
|
287
|
-
|
|
288
|
+
v(l(h), {
|
|
288
289
|
content: l(g)("右上")
|
|
289
290
|
}, {
|
|
290
|
-
default:
|
|
291
|
-
|
|
291
|
+
default: C(() => [
|
|
292
|
+
f("div", {
|
|
292
293
|
class: "icon icon-top-right",
|
|
293
294
|
onClick: o[2] || (o[2] = _((a) => i("rightUp"), ["stop"]))
|
|
294
295
|
})
|
|
@@ -296,11 +297,11 @@ const Te = /* @__PURE__ */ D({
|
|
|
296
297
|
_: 1
|
|
297
298
|
/* STABLE */
|
|
298
299
|
}, 8, ["content"]),
|
|
299
|
-
|
|
300
|
+
v(l(h), {
|
|
300
301
|
content: l(g)("左")
|
|
301
302
|
}, {
|
|
302
|
-
default:
|
|
303
|
-
|
|
303
|
+
default: C(() => [
|
|
304
|
+
f("div", {
|
|
304
305
|
class: "icon icon-left",
|
|
305
306
|
onClick: o[3] || (o[3] = _((a) => i("left"), ["stop"]))
|
|
306
307
|
})
|
|
@@ -308,11 +309,11 @@ const Te = /* @__PURE__ */ D({
|
|
|
308
309
|
_: 1
|
|
309
310
|
/* STABLE */
|
|
310
311
|
}, 8, ["content"]),
|
|
311
|
-
|
|
312
|
+
v(l(h), {
|
|
312
313
|
content: l(g)("自动")
|
|
313
314
|
}, {
|
|
314
|
-
default:
|
|
315
|
-
|
|
315
|
+
default: C(() => [
|
|
316
|
+
f("div", {
|
|
316
317
|
class: "icon icon-auto",
|
|
317
318
|
onClick: o[4] || (o[4] = _((a) => i("auto"), ["stop"]))
|
|
318
319
|
})
|
|
@@ -320,11 +321,11 @@ const Te = /* @__PURE__ */ D({
|
|
|
320
321
|
_: 1
|
|
321
322
|
/* STABLE */
|
|
322
323
|
}, 8, ["content"]),
|
|
323
|
-
|
|
324
|
+
v(l(h), {
|
|
324
325
|
content: l(g)("右")
|
|
325
326
|
}, {
|
|
326
|
-
default:
|
|
327
|
-
|
|
327
|
+
default: C(() => [
|
|
328
|
+
f("div", {
|
|
328
329
|
class: "icon icon-right",
|
|
329
330
|
onClick: o[5] || (o[5] = _((a) => i("right"), ["stop"]))
|
|
330
331
|
})
|
|
@@ -332,11 +333,11 @@ const Te = /* @__PURE__ */ D({
|
|
|
332
333
|
_: 1
|
|
333
334
|
/* STABLE */
|
|
334
335
|
}, 8, ["content"]),
|
|
335
|
-
|
|
336
|
+
v(l(h), {
|
|
336
337
|
content: l(g)("左下")
|
|
337
338
|
}, {
|
|
338
|
-
default:
|
|
339
|
-
|
|
339
|
+
default: C(() => [
|
|
340
|
+
f("div", {
|
|
340
341
|
class: "icon icon-bottom-left",
|
|
341
342
|
onClick: o[6] || (o[6] = _((a) => i("leftDown"), ["stop"]))
|
|
342
343
|
})
|
|
@@ -344,11 +345,11 @@ const Te = /* @__PURE__ */ D({
|
|
|
344
345
|
_: 1
|
|
345
346
|
/* STABLE */
|
|
346
347
|
}, 8, ["content"]),
|
|
347
|
-
|
|
348
|
+
v(l(h), {
|
|
348
349
|
content: l(g)("下")
|
|
349
350
|
}, {
|
|
350
|
-
default:
|
|
351
|
-
|
|
351
|
+
default: C(() => [
|
|
352
|
+
f("div", {
|
|
352
353
|
class: "icon icon-bottom",
|
|
353
354
|
onClick: o[7] || (o[7] = _((a) => i("down"), ["stop"]))
|
|
354
355
|
})
|
|
@@ -356,11 +357,11 @@ const Te = /* @__PURE__ */ D({
|
|
|
356
357
|
_: 1
|
|
357
358
|
/* STABLE */
|
|
358
359
|
}, 8, ["content"]),
|
|
359
|
-
|
|
360
|
+
v(l(h), {
|
|
360
361
|
content: l(g)("右下")
|
|
361
362
|
}, {
|
|
362
|
-
default:
|
|
363
|
-
|
|
363
|
+
default: C(() => [
|
|
364
|
+
f("div", {
|
|
364
365
|
class: "icon icon-bottom-right",
|
|
365
366
|
onClick: o[8] || (o[8] = _((a) => i("rightDown"), ["stop"]))
|
|
366
367
|
})
|
|
@@ -373,10 +374,10 @@ const Te = /* @__PURE__ */ D({
|
|
|
373
374
|
/* NEED_HYDRATION */
|
|
374
375
|
));
|
|
375
376
|
}
|
|
376
|
-
}), Qe = /* @__PURE__ */
|
|
377
|
+
}), Qe = /* @__PURE__ */ T(Ae, [["__scopeId", "data-v-db2e8ec2"]]), qe = { class: "video-wrapper" }, Ge = { class: "video-top" }, We = { class: "video-top_l" }, Ye = { class: "video-title-wrapper" }, Ze = { class: "video-title" }, Ke = { class: "video-top_r" }, Xe = {
|
|
377
378
|
key: 0,
|
|
378
379
|
class: "play-status"
|
|
379
|
-
},
|
|
380
|
+
}, Je = { class: "video-bottom" }, et = { class: "video-bottom_r" }, tt = /* @__PURE__ */ O({
|
|
380
381
|
__name: "index",
|
|
381
382
|
props: {
|
|
382
383
|
videoUrl: {},
|
|
@@ -387,6 +388,7 @@ const Te = /* @__PURE__ */ D({
|
|
|
387
388
|
playbackRate: { default: 1 },
|
|
388
389
|
paused: { type: Boolean, default: !1 },
|
|
389
390
|
authType: { default: () => [] },
|
|
391
|
+
isHls: { type: Boolean, default: !1 },
|
|
390
392
|
onReplay: {}
|
|
391
393
|
},
|
|
392
394
|
emits: ["close", "directionControl", "zoomControl"],
|
|
@@ -399,219 +401,241 @@ const Te = /* @__PURE__ */ D({
|
|
|
399
401
|
enlarge: import("@das-fed/ui/packages/icons/enlarge"),
|
|
400
402
|
"direction-control": import("@das-fed/ui/packages/icons/direction-control")
|
|
401
403
|
});
|
|
402
|
-
const
|
|
404
|
+
const r = w(!0), o = w(), a = w(!1), y = w(), s = U(() => {
|
|
403
405
|
var u;
|
|
404
406
|
return (u = y.value) == null ? void 0 : u.video;
|
|
405
|
-
}),
|
|
406
|
-
o.value = u, o.value.on(window.mpegts.Events.ERROR, (
|
|
407
|
+
}), m = w(!1), c = w(!0), d = (u) => {
|
|
408
|
+
o.value = u, !e.isHls && o.value.on(window.mpegts.Events.ERROR, (E) => {
|
|
407
409
|
});
|
|
408
|
-
},
|
|
409
|
-
|
|
410
|
-
},
|
|
410
|
+
}, k = () => {
|
|
411
|
+
r.value = !r.value, o.value && (o.value.muted = r.value);
|
|
412
|
+
}, I = () => {
|
|
411
413
|
a.value = !a.value;
|
|
412
|
-
},
|
|
414
|
+
}, L = w(""), F = () => {
|
|
413
415
|
const u = document.createElement("canvas");
|
|
414
|
-
if (
|
|
415
|
-
u.width =
|
|
416
|
-
const
|
|
417
|
-
|
|
418
|
-
const
|
|
419
|
-
if (
|
|
420
|
-
const
|
|
421
|
-
|
|
416
|
+
if (s.value) {
|
|
417
|
+
u.width = s.value.clientWidth, u.height = s.value.clientHeight;
|
|
418
|
+
const E = u.getContext("2d");
|
|
419
|
+
E == null || E.drawImage(s.value, 0, 0, u.width, u.height);
|
|
420
|
+
const D = u.toDataURL("image/jpg"), ae = `【${e.title}】${Ie().format("YYYYMMDDHHmmss").toString()}.jpg`;
|
|
421
|
+
if (L.value = D, "download" in document.createElement("a")) {
|
|
422
|
+
const z = document.createElement("a");
|
|
423
|
+
z.download = ae, z.style.display = "none", z.href = D, document.body.appendChild(z), document.body.appendChild(u), z.click(), URL.revokeObjectURL(z.href), document.body.removeChild(z), document.body.removeChild(u);
|
|
422
424
|
}
|
|
423
425
|
}
|
|
424
|
-
},
|
|
426
|
+
}, B = (u) => {
|
|
425
427
|
i("directionControl", u);
|
|
426
|
-
},
|
|
428
|
+
}, M = (u) => {
|
|
427
429
|
i("zoomControl", u);
|
|
428
|
-
},
|
|
429
|
-
return
|
|
430
|
-
() =>
|
|
430
|
+
}, H = (u) => e.authType.includes(u);
|
|
431
|
+
return R(
|
|
432
|
+
() => s.value,
|
|
431
433
|
() => {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
+
s.value && s.value.addEventListener("ended", () => {
|
|
435
|
+
m.value = !0, e.type === "playback" && (c.value = !1);
|
|
434
436
|
});
|
|
435
437
|
}
|
|
436
|
-
),
|
|
437
|
-
() =>
|
|
438
|
+
), R(
|
|
439
|
+
() => s.value,
|
|
438
440
|
() => {
|
|
439
|
-
|
|
440
|
-
|
|
441
|
+
s.value && P(() => {
|
|
442
|
+
s.value.playbackRate = e.playbackRate || 1;
|
|
441
443
|
});
|
|
442
444
|
}
|
|
443
|
-
),
|
|
445
|
+
), R(
|
|
444
446
|
() => o.value,
|
|
445
447
|
() => {
|
|
446
448
|
o.value && P(() => {
|
|
447
|
-
o.value.muted =
|
|
449
|
+
o.value.muted = r.value;
|
|
448
450
|
});
|
|
449
451
|
}
|
|
450
|
-
),
|
|
452
|
+
), R(
|
|
451
453
|
() => e.playbackRate,
|
|
452
454
|
() => {
|
|
453
|
-
|
|
455
|
+
s.value && (s.value.playbackRate = e.playbackRate || 1);
|
|
454
456
|
},
|
|
455
457
|
{
|
|
456
458
|
immediate: !0
|
|
457
459
|
}
|
|
458
|
-
),
|
|
460
|
+
), R(
|
|
459
461
|
() => e.paused,
|
|
460
462
|
() => {
|
|
461
463
|
o.value && (e.paused ? o.value.pause() : o.value.play());
|
|
462
464
|
}
|
|
463
|
-
),
|
|
465
|
+
), R(
|
|
464
466
|
() => e.videoUrl,
|
|
465
467
|
() => {
|
|
466
468
|
c.value = !1, P(() => {
|
|
467
469
|
c.value = !0;
|
|
468
470
|
});
|
|
469
471
|
}
|
|
470
|
-
), (u,
|
|
471
|
-
|
|
472
|
+
), (u, E) => (p(), S("div", qe, [
|
|
473
|
+
v(l(he), {
|
|
472
474
|
spinning: e.loading,
|
|
473
475
|
type: "component",
|
|
474
476
|
tip: l(g)("加载中...")
|
|
475
477
|
}, {
|
|
476
|
-
default:
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
478
|
+
default: C(() => [
|
|
479
|
+
f("div", Ge, [
|
|
480
|
+
f("div", We, [
|
|
481
|
+
f("div", Ye, [
|
|
482
|
+
f(
|
|
481
483
|
"div",
|
|
482
|
-
|
|
484
|
+
Ze,
|
|
483
485
|
V(e.title.length > 20 ? e.title.slice(0, 19) + "..." : e.title),
|
|
484
486
|
1
|
|
485
487
|
/* TEXT */
|
|
486
488
|
)
|
|
487
489
|
])
|
|
488
490
|
]),
|
|
489
|
-
|
|
490
|
-
["live"].includes(u.type) ? (
|
|
491
|
+
f("div", Ke, [
|
|
492
|
+
["live"].includes(u.type) ? (p(), S(
|
|
491
493
|
"span",
|
|
492
|
-
|
|
494
|
+
Xe,
|
|
493
495
|
V(l(g)("正在实时预览")),
|
|
494
496
|
1
|
|
495
497
|
/* TEXT */
|
|
496
|
-
)) :
|
|
497
|
-
|
|
498
|
+
)) : b("v-if", !0),
|
|
499
|
+
b(' <das-icon v-if="isFullscreen" class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
|
|
498
500
|
])
|
|
499
501
|
]),
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
502
|
+
u.isHls ? (p(), S(
|
|
503
|
+
x,
|
|
504
|
+
{ key: 1 },
|
|
505
|
+
[
|
|
506
|
+
e.videoUrl && c.value ? (p(), N(l(be), {
|
|
507
|
+
key: 0,
|
|
508
|
+
ref_key: "dasLivePlayerRef",
|
|
509
|
+
ref: y,
|
|
510
|
+
muted: r.value,
|
|
511
|
+
onLoaded: d,
|
|
512
|
+
src: e.videoUrl
|
|
513
|
+
}, null, 8, ["muted", "src"])) : b("v-if", !0)
|
|
514
|
+
],
|
|
515
|
+
64
|
|
516
|
+
/* STABLE_FRAGMENT */
|
|
517
|
+
)) : (p(), S(
|
|
518
|
+
x,
|
|
519
|
+
{ key: 0 },
|
|
520
|
+
[
|
|
521
|
+
e.videoUrl && c.value ? (p(), N(l(we), {
|
|
522
|
+
key: 0,
|
|
523
|
+
ref_key: "dasLivePlayerRef",
|
|
524
|
+
ref: y,
|
|
525
|
+
muted: r.value,
|
|
526
|
+
onLoaded: d,
|
|
527
|
+
src: e.videoUrl
|
|
528
|
+
}, null, 8, ["muted", "src"])) : b("v-if", !0)
|
|
529
|
+
],
|
|
530
|
+
64
|
|
531
|
+
/* STABLE_FRAGMENT */
|
|
532
|
+
)),
|
|
533
|
+
f("div", Je, [
|
|
534
|
+
E[3] || (E[3] = f(
|
|
511
535
|
"div",
|
|
512
536
|
{ class: "video-bottom_l" },
|
|
513
537
|
null,
|
|
514
538
|
-1
|
|
515
539
|
/* HOISTED */
|
|
516
540
|
)),
|
|
517
|
-
|
|
518
|
-
|
|
541
|
+
f("div", et, [
|
|
542
|
+
f(
|
|
519
543
|
"div",
|
|
520
544
|
{
|
|
521
545
|
class: "controls",
|
|
522
|
-
onDblclick:
|
|
546
|
+
onDblclick: E[2] || (E[2] = _((D) => D.stopPropagation(), ["stop"]))
|
|
523
547
|
},
|
|
524
548
|
[
|
|
525
|
-
|
|
549
|
+
v(l(h), {
|
|
526
550
|
content: l(g)("声音")
|
|
527
551
|
}, {
|
|
528
|
-
default:
|
|
529
|
-
|
|
552
|
+
default: C(() => [
|
|
553
|
+
v(l($), {
|
|
530
554
|
class: "icon icon-volume",
|
|
531
|
-
icon:
|
|
532
|
-
onClick: _(
|
|
555
|
+
icon: r.value ? "muted" : "volume",
|
|
556
|
+
onClick: _(k, ["stop"])
|
|
533
557
|
}, null, 8, ["icon"])
|
|
534
558
|
]),
|
|
535
559
|
_: 1
|
|
536
560
|
/* STABLE */
|
|
537
561
|
}, 8, ["content"]),
|
|
538
|
-
|
|
562
|
+
v(l(h), {
|
|
539
563
|
content: l(g)("截图")
|
|
540
564
|
}, {
|
|
541
|
-
default:
|
|
542
|
-
|
|
565
|
+
default: C(() => [
|
|
566
|
+
v(l($), {
|
|
543
567
|
class: "icon icon-screenshot",
|
|
544
568
|
icon: "screenshot",
|
|
545
|
-
onClick: _(
|
|
569
|
+
onClick: _(F, ["stop"])
|
|
546
570
|
})
|
|
547
571
|
]),
|
|
548
572
|
_: 1
|
|
549
573
|
/* STABLE */
|
|
550
574
|
}, 8, ["content"]),
|
|
551
|
-
|
|
575
|
+
H("control") ? (p(), N(l(h), {
|
|
552
576
|
key: 0,
|
|
553
577
|
content: l(g)("聚焦-")
|
|
554
578
|
}, {
|
|
555
|
-
default:
|
|
556
|
-
["live", "polling"].includes(e.type) ? (
|
|
579
|
+
default: C(() => [
|
|
580
|
+
["live", "polling"].includes(e.type) ? (p(), N(l($), {
|
|
557
581
|
key: 0,
|
|
558
582
|
class: "icon icon-shrink",
|
|
559
583
|
icon: "shrink",
|
|
560
|
-
onClick:
|
|
561
|
-
})) :
|
|
584
|
+
onClick: E[0] || (E[0] = _((D) => M("zoomOut"), ["stop"]))
|
|
585
|
+
})) : b("v-if", !0)
|
|
562
586
|
]),
|
|
563
587
|
_: 1
|
|
564
588
|
/* STABLE */
|
|
565
|
-
}, 8, ["content"])) :
|
|
566
|
-
|
|
589
|
+
}, 8, ["content"])) : b("v-if", !0),
|
|
590
|
+
H("control") ? (p(), N(l(h), {
|
|
567
591
|
key: 1,
|
|
568
592
|
content: l(g)("聚焦+")
|
|
569
593
|
}, {
|
|
570
|
-
default:
|
|
571
|
-
["live", "polling"].includes(e.type) ? (
|
|
594
|
+
default: C(() => [
|
|
595
|
+
["live", "polling"].includes(e.type) ? (p(), N(l($), {
|
|
572
596
|
key: 0,
|
|
573
597
|
class: "icon icon-enlarge",
|
|
574
598
|
icon: "enlarge",
|
|
575
|
-
onClick:
|
|
576
|
-
})) :
|
|
599
|
+
onClick: E[1] || (E[1] = _((D) => M("zoomIn"), ["stop"]))
|
|
600
|
+
})) : b("v-if", !0)
|
|
577
601
|
]),
|
|
578
602
|
_: 1
|
|
579
603
|
/* STABLE */
|
|
580
|
-
}, 8, ["content"])) :
|
|
581
|
-
|
|
604
|
+
}, 8, ["content"])) : b("v-if", !0),
|
|
605
|
+
H("control") ? (p(), N(l(h), {
|
|
582
606
|
key: 2,
|
|
583
607
|
content: l(g)("方向控制")
|
|
584
608
|
}, {
|
|
585
|
-
default:
|
|
586
|
-
["live", "polling"].includes(e.type) ? (
|
|
609
|
+
default: C(() => [
|
|
610
|
+
["live", "polling"].includes(e.type) ? (p(), N(l($), {
|
|
587
611
|
key: 0,
|
|
588
612
|
class: "icon icon-direction-control",
|
|
589
613
|
icon: "direction-control",
|
|
590
|
-
onClick: _(
|
|
591
|
-
})) :
|
|
614
|
+
onClick: _(I, ["stop"])
|
|
615
|
+
})) : b("v-if", !0)
|
|
592
616
|
]),
|
|
593
617
|
_: 1
|
|
594
618
|
/* STABLE */
|
|
595
|
-
}, 8, ["content"])) :
|
|
619
|
+
}, 8, ["content"])) : b("v-if", !0)
|
|
596
620
|
],
|
|
597
621
|
32
|
|
598
622
|
/* NEED_HYDRATION */
|
|
599
623
|
)
|
|
600
624
|
])
|
|
601
625
|
]),
|
|
602
|
-
a.value ? (
|
|
603
|
-
key:
|
|
604
|
-
onChange:
|
|
605
|
-
})) :
|
|
626
|
+
a.value ? (p(), N(Qe, {
|
|
627
|
+
key: 2,
|
|
628
|
+
onChange: B
|
|
629
|
+
})) : b("v-if", !0)
|
|
606
630
|
]),
|
|
607
631
|
_: 1
|
|
608
632
|
/* STABLE */
|
|
609
633
|
}, 8, ["spinning", "tip"])
|
|
610
634
|
]));
|
|
611
635
|
}
|
|
612
|
-
}),
|
|
613
|
-
function
|
|
614
|
-
const n =
|
|
636
|
+
}), ot = /* @__PURE__ */ T(tt, [["__scopeId", "data-v-aeccd12a"]]), nt = "/api/device-relation/deviceproject/v1/project/device/video", lt = "v1", it = te(`/api/enterpriseright/permission/${lt}`), se = te(`${nt}`, st);
|
|
637
|
+
function st(t) {
|
|
638
|
+
const n = A() ? A().id : 1;
|
|
615
639
|
return t.params || (t.params = {}), t.params.project = n, t.params.projectId = n, t;
|
|
616
640
|
}
|
|
617
641
|
function re(t) {
|
|
@@ -620,19 +644,19 @@ function re(t) {
|
|
|
620
644
|
n.append(e, i);
|
|
621
645
|
return n.toString();
|
|
622
646
|
}
|
|
623
|
-
function
|
|
624
|
-
return
|
|
647
|
+
function X(t) {
|
|
648
|
+
return se.post(`/ptz?${re(t)}`)().run();
|
|
625
649
|
}
|
|
626
650
|
function rt(t) {
|
|
627
|
-
return
|
|
651
|
+
return se.post(`/url/preview?${re(t)}`)().run();
|
|
628
652
|
}
|
|
629
|
-
|
|
630
|
-
const
|
|
631
|
-
const n =
|
|
653
|
+
it.post("data/device-auth");
|
|
654
|
+
const at = (t) => {
|
|
655
|
+
const n = Ee();
|
|
632
656
|
return `${t}?token=${n}`;
|
|
633
657
|
};
|
|
634
658
|
w([]);
|
|
635
|
-
const
|
|
659
|
+
const ct = /* @__PURE__ */ O({
|
|
636
660
|
props: {
|
|
637
661
|
deviceInfo: {
|
|
638
662
|
type: Object,
|
|
@@ -641,9 +665,9 @@ const at = /* @__PURE__ */ D({
|
|
|
641
665
|
source: {
|
|
642
666
|
type: String
|
|
643
667
|
},
|
|
644
|
-
|
|
645
|
-
type:
|
|
646
|
-
default:
|
|
668
|
+
isHls: {
|
|
669
|
+
type: Boolean,
|
|
670
|
+
default: !1
|
|
647
671
|
}
|
|
648
672
|
},
|
|
649
673
|
setup(t, {
|
|
@@ -652,27 +676,31 @@ const at = /* @__PURE__ */ D({
|
|
|
652
676
|
const {
|
|
653
677
|
deviceInfo: e,
|
|
654
678
|
source: i,
|
|
655
|
-
|
|
679
|
+
isHls: r
|
|
656
680
|
} = me(t), o = w(!1), a = w(""), y = async () => {
|
|
657
|
-
var
|
|
658
|
-
if (!((
|
|
681
|
+
var k;
|
|
682
|
+
if (!((k = e.value) != null && k.deviceId)) return;
|
|
659
683
|
o.value = !0;
|
|
660
|
-
const [c,
|
|
684
|
+
const [c, d] = await rt({
|
|
661
685
|
productId: e.value.productId,
|
|
662
686
|
deviceId: e.value.deviceId,
|
|
663
687
|
source: i.value
|
|
664
688
|
});
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
689
|
+
if (!c) {
|
|
690
|
+
let I = r.value ? "httpHlsStreamURL" : "wsFlvStreamURL";
|
|
691
|
+
a.value = at(d == null ? void 0 : d[I]);
|
|
692
|
+
}
|
|
693
|
+
o.value = !1;
|
|
694
|
+
}, s = (c) => {
|
|
695
|
+
X({
|
|
668
696
|
productId: e.value.productId,
|
|
669
697
|
deviceId: e.value.deviceId,
|
|
670
698
|
direction: c,
|
|
671
699
|
zoom: "",
|
|
672
700
|
source: i.value || "web"
|
|
673
701
|
});
|
|
674
|
-
},
|
|
675
|
-
|
|
702
|
+
}, m = (c) => {
|
|
703
|
+
X({
|
|
676
704
|
productId: e.value.productId,
|
|
677
705
|
deviceId: e.value.deviceId,
|
|
678
706
|
direction: "",
|
|
@@ -680,59 +708,63 @@ const at = /* @__PURE__ */ D({
|
|
|
680
708
|
source: i.value || "web"
|
|
681
709
|
});
|
|
682
710
|
};
|
|
683
|
-
return
|
|
711
|
+
return J(() => {
|
|
684
712
|
y();
|
|
685
|
-
}),
|
|
713
|
+
}), R(() => e.value, () => {
|
|
686
714
|
y();
|
|
687
715
|
}, {
|
|
688
716
|
deep: !0
|
|
689
|
-
}), () =>
|
|
717
|
+
}), () => v(x, null, [n.default({
|
|
690
718
|
videoUrl: a.value,
|
|
691
719
|
loading: o.value,
|
|
692
|
-
onDirectionControl:
|
|
693
|
-
onZoomControl:
|
|
720
|
+
onDirectionControl: s,
|
|
721
|
+
onZoomControl: m,
|
|
722
|
+
isHls: r.value
|
|
694
723
|
})]);
|
|
695
724
|
}
|
|
696
725
|
});
|
|
697
|
-
function
|
|
726
|
+
function ut(t) {
|
|
698
727
|
const n = w(0), e = w(), {
|
|
699
728
|
toggle: i,
|
|
700
|
-
isFullscreen:
|
|
729
|
+
isFullscreen: r,
|
|
701
730
|
exit: o
|
|
702
|
-
} =
|
|
703
|
-
|
|
731
|
+
} = ie(e), a = (s, m) => {
|
|
732
|
+
r.value && o();
|
|
704
733
|
};
|
|
705
734
|
return {
|
|
706
|
-
render: () =>
|
|
735
|
+
render: () => v(Me, {
|
|
707
736
|
ref: e,
|
|
708
737
|
gridNum: t.gridNum,
|
|
709
738
|
activeIndex: n.value,
|
|
710
|
-
"onUpdate:activeIndex": (
|
|
711
|
-
showFn: (
|
|
739
|
+
"onUpdate:activeIndex": (s) => n.value = s,
|
|
740
|
+
showFn: (s) => !!t.deviceList[s]
|
|
712
741
|
}, {
|
|
713
742
|
default: ({
|
|
714
|
-
index:
|
|
743
|
+
index: s
|
|
715
744
|
}) => {
|
|
716
|
-
const
|
|
717
|
-
return
|
|
718
|
-
deviceInfo:
|
|
719
|
-
source: c
|
|
745
|
+
const m = t.deviceList[s], c = t.source, d = t.isHls;
|
|
746
|
+
return v(ct, {
|
|
747
|
+
deviceInfo: m,
|
|
748
|
+
source: c,
|
|
749
|
+
isHls: d
|
|
720
750
|
}, {
|
|
721
751
|
default: ({
|
|
722
|
-
videoUrl:
|
|
723
|
-
onDirectionControl:
|
|
724
|
-
onZoomControl:
|
|
725
|
-
loading:
|
|
726
|
-
|
|
752
|
+
videoUrl: k,
|
|
753
|
+
onDirectionControl: I,
|
|
754
|
+
onZoomControl: L,
|
|
755
|
+
loading: F,
|
|
756
|
+
isHls: B
|
|
757
|
+
}) => v(ot, {
|
|
727
758
|
type: "live",
|
|
728
|
-
loading:
|
|
729
|
-
isFullscreen:
|
|
730
|
-
videoUrl:
|
|
731
|
-
title:
|
|
759
|
+
loading: F,
|
|
760
|
+
isFullscreen: r.value,
|
|
761
|
+
videoUrl: k,
|
|
762
|
+
title: m.deviceName,
|
|
732
763
|
onClose: () => a(),
|
|
733
|
-
onDirectionControl:
|
|
734
|
-
onZoomControl:
|
|
735
|
-
authType:
|
|
764
|
+
onDirectionControl: I,
|
|
765
|
+
onZoomControl: L,
|
|
766
|
+
authType: m.authType === 2 ? ["control"] : [],
|
|
767
|
+
isHls: B
|
|
736
768
|
}, null)
|
|
737
769
|
});
|
|
738
770
|
}
|
|
@@ -740,50 +772,50 @@ function ct(t) {
|
|
|
740
772
|
toggleFullscreen: i
|
|
741
773
|
};
|
|
742
774
|
}
|
|
743
|
-
const
|
|
775
|
+
const dt = /* @__PURE__ */ O({
|
|
744
776
|
__name: "index",
|
|
745
777
|
props: {
|
|
746
778
|
visible: { type: Boolean, default: !1 },
|
|
747
779
|
deviceList: { default: () => [] },
|
|
748
780
|
gridNum: { default: 4 },
|
|
749
781
|
source: {},
|
|
750
|
-
|
|
782
|
+
isHls: { type: Boolean, default: !1 }
|
|
751
783
|
},
|
|
752
784
|
emits: ["update:visible"],
|
|
753
785
|
setup(t, { emit: n }) {
|
|
754
|
-
const e = t, i = n,
|
|
786
|
+
const e = t, i = n, r = U({
|
|
755
787
|
get: () => e.visible,
|
|
756
|
-
set: (
|
|
757
|
-
}), { render: o, toggleFullscreen: a } =
|
|
758
|
-
let
|
|
788
|
+
set: (s) => i("update:visible", s)
|
|
789
|
+
}), { render: o, toggleFullscreen: a } = ut(e), y = U(() => {
|
|
790
|
+
let s = {};
|
|
759
791
|
switch (e.gridNum) {
|
|
760
792
|
case 1:
|
|
761
|
-
|
|
793
|
+
s = "one-video";
|
|
762
794
|
break;
|
|
763
795
|
case 4:
|
|
764
|
-
|
|
796
|
+
s = "four-video";
|
|
765
797
|
break;
|
|
766
798
|
case 9:
|
|
767
|
-
|
|
799
|
+
s = "nine-video";
|
|
768
800
|
break;
|
|
769
801
|
}
|
|
770
|
-
return
|
|
802
|
+
return s;
|
|
771
803
|
});
|
|
772
|
-
return (
|
|
804
|
+
return (s, m) => (p(), N(l(ye), {
|
|
773
805
|
size: "mini",
|
|
774
806
|
title: l(g)("视频监控"),
|
|
775
807
|
"custom-class": `das-linakge-video-dialog ${y.value}`,
|
|
776
|
-
modelValue:
|
|
777
|
-
"onUpdate:modelValue":
|
|
808
|
+
modelValue: r.value,
|
|
809
|
+
"onUpdate:modelValue": m[0] || (m[0] = (c) => r.value = c),
|
|
778
810
|
bodyStyle: { padding: 0 },
|
|
779
811
|
"close-on-click-modal": !1,
|
|
780
812
|
"close-on-press-escape": !1,
|
|
781
813
|
modal: !1,
|
|
782
814
|
"header-style": { display: "flex", justifyContent: "space-between", alignItems: "center" }
|
|
783
815
|
}, {
|
|
784
|
-
header:
|
|
785
|
-
|
|
786
|
-
|
|
816
|
+
header: C(() => [
|
|
817
|
+
f("div", null, [
|
|
818
|
+
f(
|
|
787
819
|
"span",
|
|
788
820
|
null,
|
|
789
821
|
V(l(g)("视频监控")),
|
|
@@ -791,11 +823,11 @@ const ut = /* @__PURE__ */ D({
|
|
|
791
823
|
/* TEXT */
|
|
792
824
|
)
|
|
793
825
|
]),
|
|
794
|
-
|
|
826
|
+
v(l(h), {
|
|
795
827
|
content: l(g)("页面全屏")
|
|
796
828
|
}, {
|
|
797
|
-
default:
|
|
798
|
-
|
|
829
|
+
default: C(() => [
|
|
830
|
+
v(l(ke), {
|
|
799
831
|
class: "icon",
|
|
800
832
|
color: "#999",
|
|
801
833
|
onClick: l(a)
|
|
@@ -805,14 +837,14 @@ const ut = /* @__PURE__ */ D({
|
|
|
805
837
|
/* STABLE */
|
|
806
838
|
}, 8, ["content"])
|
|
807
839
|
]),
|
|
808
|
-
default:
|
|
809
|
-
|
|
840
|
+
default: C(() => [
|
|
841
|
+
r.value ? (p(), N(l(o), { key: 0 })) : b("v-if", !0)
|
|
810
842
|
]),
|
|
811
843
|
_: 1
|
|
812
844
|
/* STABLE */
|
|
813
845
|
}, 8, ["title", "custom-class", "modelValue"]));
|
|
814
846
|
}
|
|
815
|
-
}),
|
|
847
|
+
}), pt = {
|
|
816
848
|
加载中: { "zh-CN": "加载中", en: "Loading", _appCode: "framework" },
|
|
817
849
|
正在实时预览: { "zh-CN": "正在实时预览", en: "Real-time Video", _appCode: "framework" },
|
|
818
850
|
声音: { "zh-CN": "声音", en: "Sound", _appCode: "framework" },
|
|
@@ -834,10 +866,10 @@ const ut = /* @__PURE__ */ D({
|
|
|
834
866
|
"聚焦-": { "zh-CN": "聚焦-", en: "Focus-", _appCode: "framework" },
|
|
835
867
|
"聚焦+": { "zh-CN": "聚焦+", en: "Focus+", _appCode: "framework" }
|
|
836
868
|
};
|
|
837
|
-
|
|
838
|
-
const
|
|
869
|
+
ge(pt);
|
|
870
|
+
const Nt = Ce(dt), Ft = () => w(null);
|
|
839
871
|
export {
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
872
|
+
Nt as DasVideoDialog,
|
|
873
|
+
Ft as DasVideoDialogRef,
|
|
874
|
+
ut as useVideo
|
|
843
875
|
};
|