@das-fed/ui 6.4.0-test.53 → 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/device-panel/index.js +589 -591
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-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 +368 -330
- 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 +11 -1
- package/packages/business-components/video-dialog/src/index.vue.d.ts +1 -0
- package/packages/business-components/video-dialog/src/type.d.ts +2 -0
- 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
|
|
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
3
|
import { withInstall as Ce } from "@das-fed/utils/with-install/index";
|
|
4
|
-
import { t as
|
|
5
|
-
import { DasDialog as
|
|
4
|
+
import { t as g, setI18nRule as ge } from "@das-fed/web/packages/i18n/index";
|
|
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
|
-
import { DasIconFullscreen2 as
|
|
8
|
-
import { DasAutoRegisterIcon as _e, DasIcon as
|
|
7
|
+
import { DasIconFullscreen2 as ke } from "@das-fed/ui/packages/icons/fullscreen-2/index";
|
|
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 (
|
|
39
|
-
return
|
|
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)
|
|
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
|
-
},
|
|
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
|
-
const e =
|
|
51
|
+
function Le(t, n = !1) {
|
|
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,51 +96,51 @@ const G = [
|
|
|
95
96
|
"MSFullscreenError"
|
|
96
97
|
]
|
|
97
98
|
];
|
|
98
|
-
function
|
|
99
|
-
const { document: e =
|
|
100
|
-
let a =
|
|
101
|
-
const
|
|
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
|
-
|
|
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
|
-
if (!
|
|
114
|
+
async function I() {
|
|
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
|
-
isSupported:
|
|
126
|
+
}, !1), i && ne(k), {
|
|
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
146
|
const Te = {
|
|
@@ -169,9 +170,9 @@ const Te = {
|
|
|
169
170
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
170
171
|
};
|
|
171
172
|
xe({
|
|
172
|
-
linear:
|
|
173
|
+
linear: Re
|
|
173
174
|
}, Te);
|
|
174
|
-
const
|
|
175
|
+
const Be = /* @__PURE__ */ O({
|
|
175
176
|
__name: "GridItem",
|
|
176
177
|
props: {
|
|
177
178
|
active: { type: Boolean },
|
|
@@ -180,26 +181,26 @@ const Ue = /* @__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 */
|
|
@@ -207,10 +208,10 @@ const Ue = /* @__PURE__ */ D({
|
|
|
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 Ue = /* @__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, (
|
|
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,123 +247,123 @@ const Ue = /* @__PURE__ */ D({
|
|
|
246
247
|
))
|
|
247
248
|
]));
|
|
248
249
|
}
|
|
249
|
-
}), Me = /* @__PURE__ */ T(je, [["__scopeId", "data-v-661e2289"]]), Ae = /* @__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
|
-
onDblclick: o[9] || (o[9] =
|
|
261
|
+
onDblclick: o[9] || (o[9] = _((a) => a.stopPropagation(), ["stop"]))
|
|
261
262
|
},
|
|
262
263
|
[
|
|
263
|
-
|
|
264
|
-
content: l(
|
|
264
|
+
v(l(h), {
|
|
265
|
+
content: l(g)("左上")
|
|
265
266
|
}, {
|
|
266
|
-
default:
|
|
267
|
-
|
|
267
|
+
default: C(() => [
|
|
268
|
+
f("div", {
|
|
268
269
|
class: "icon icon-top-left",
|
|
269
|
-
onClick: o[0] || (o[0] =
|
|
270
|
+
onClick: o[0] || (o[0] = _((a) => i("leftUp"), ["stop"]))
|
|
270
271
|
})
|
|
271
272
|
]),
|
|
272
273
|
_: 1
|
|
273
274
|
/* STABLE */
|
|
274
275
|
}, 8, ["content"]),
|
|
275
|
-
|
|
276
|
-
content: l(
|
|
276
|
+
v(l(h), {
|
|
277
|
+
content: l(g)("上")
|
|
277
278
|
}, {
|
|
278
|
-
default:
|
|
279
|
-
|
|
279
|
+
default: C(() => [
|
|
280
|
+
f("div", {
|
|
280
281
|
class: "icon icon-top",
|
|
281
|
-
onClick: o[1] || (o[1] =
|
|
282
|
+
onClick: o[1] || (o[1] = _((a) => i("up"), ["stop"]))
|
|
282
283
|
})
|
|
283
284
|
]),
|
|
284
285
|
_: 1
|
|
285
286
|
/* STABLE */
|
|
286
287
|
}, 8, ["content"]),
|
|
287
|
-
|
|
288
|
-
content: l(
|
|
288
|
+
v(l(h), {
|
|
289
|
+
content: l(g)("右上")
|
|
289
290
|
}, {
|
|
290
|
-
default:
|
|
291
|
-
|
|
291
|
+
default: C(() => [
|
|
292
|
+
f("div", {
|
|
292
293
|
class: "icon icon-top-right",
|
|
293
|
-
onClick: o[2] || (o[2] =
|
|
294
|
+
onClick: o[2] || (o[2] = _((a) => i("rightUp"), ["stop"]))
|
|
294
295
|
})
|
|
295
296
|
]),
|
|
296
297
|
_: 1
|
|
297
298
|
/* STABLE */
|
|
298
299
|
}, 8, ["content"]),
|
|
299
|
-
|
|
300
|
-
content: l(
|
|
300
|
+
v(l(h), {
|
|
301
|
+
content: l(g)("左")
|
|
301
302
|
}, {
|
|
302
|
-
default:
|
|
303
|
-
|
|
303
|
+
default: C(() => [
|
|
304
|
+
f("div", {
|
|
304
305
|
class: "icon icon-left",
|
|
305
|
-
onClick: o[3] || (o[3] =
|
|
306
|
+
onClick: o[3] || (o[3] = _((a) => i("left"), ["stop"]))
|
|
306
307
|
})
|
|
307
308
|
]),
|
|
308
309
|
_: 1
|
|
309
310
|
/* STABLE */
|
|
310
311
|
}, 8, ["content"]),
|
|
311
|
-
|
|
312
|
-
content: l(
|
|
312
|
+
v(l(h), {
|
|
313
|
+
content: l(g)("自动")
|
|
313
314
|
}, {
|
|
314
|
-
default:
|
|
315
|
-
|
|
315
|
+
default: C(() => [
|
|
316
|
+
f("div", {
|
|
316
317
|
class: "icon icon-auto",
|
|
317
|
-
onClick: o[4] || (o[4] =
|
|
318
|
+
onClick: o[4] || (o[4] = _((a) => i("auto"), ["stop"]))
|
|
318
319
|
})
|
|
319
320
|
]),
|
|
320
321
|
_: 1
|
|
321
322
|
/* STABLE */
|
|
322
323
|
}, 8, ["content"]),
|
|
323
|
-
|
|
324
|
-
content: l(
|
|
324
|
+
v(l(h), {
|
|
325
|
+
content: l(g)("右")
|
|
325
326
|
}, {
|
|
326
|
-
default:
|
|
327
|
-
|
|
327
|
+
default: C(() => [
|
|
328
|
+
f("div", {
|
|
328
329
|
class: "icon icon-right",
|
|
329
|
-
onClick: o[5] || (o[5] =
|
|
330
|
+
onClick: o[5] || (o[5] = _((a) => i("right"), ["stop"]))
|
|
330
331
|
})
|
|
331
332
|
]),
|
|
332
333
|
_: 1
|
|
333
334
|
/* STABLE */
|
|
334
335
|
}, 8, ["content"]),
|
|
335
|
-
|
|
336
|
-
content: l(
|
|
336
|
+
v(l(h), {
|
|
337
|
+
content: l(g)("左下")
|
|
337
338
|
}, {
|
|
338
|
-
default:
|
|
339
|
-
|
|
339
|
+
default: C(() => [
|
|
340
|
+
f("div", {
|
|
340
341
|
class: "icon icon-bottom-left",
|
|
341
|
-
onClick: o[6] || (o[6] =
|
|
342
|
+
onClick: o[6] || (o[6] = _((a) => i("leftDown"), ["stop"]))
|
|
342
343
|
})
|
|
343
344
|
]),
|
|
344
345
|
_: 1
|
|
345
346
|
/* STABLE */
|
|
346
347
|
}, 8, ["content"]),
|
|
347
|
-
|
|
348
|
-
content: l(
|
|
348
|
+
v(l(h), {
|
|
349
|
+
content: l(g)("下")
|
|
349
350
|
}, {
|
|
350
|
-
default:
|
|
351
|
-
|
|
351
|
+
default: C(() => [
|
|
352
|
+
f("div", {
|
|
352
353
|
class: "icon icon-bottom",
|
|
353
|
-
onClick: o[7] || (o[7] =
|
|
354
|
+
onClick: o[7] || (o[7] = _((a) => i("down"), ["stop"]))
|
|
354
355
|
})
|
|
355
356
|
]),
|
|
356
357
|
_: 1
|
|
357
358
|
/* STABLE */
|
|
358
359
|
}, 8, ["content"]),
|
|
359
|
-
|
|
360
|
-
content: l(
|
|
360
|
+
v(l(h), {
|
|
361
|
+
content: l(g)("右下")
|
|
361
362
|
}, {
|
|
362
|
-
default:
|
|
363
|
-
|
|
363
|
+
default: C(() => [
|
|
364
|
+
f("div", {
|
|
364
365
|
class: "icon icon-bottom-right",
|
|
365
|
-
onClick: o[8] || (o[8] =
|
|
366
|
+
onClick: o[8] || (o[8] = _((a) => i("rightDown"), ["stop"]))
|
|
366
367
|
})
|
|
367
368
|
]),
|
|
368
369
|
_: 1
|
|
@@ -373,10 +374,10 @@ const Ue = /* @__PURE__ */ D({
|
|
|
373
374
|
/* NEED_HYDRATION */
|
|
374
375
|
));
|
|
375
376
|
}
|
|
376
|
-
}), Qe = /* @__PURE__ */ T(Ae, [["__scopeId", "data-v-db2e8ec2"]]), qe = { class: "video-wrapper" }, Ge = { class: "video-top" }, We = { class: "video-top_l" },
|
|
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 Ue = /* @__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 Ue = /* @__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
|
|
403
|
-
var
|
|
404
|
-
return (
|
|
405
|
-
}),
|
|
406
|
-
o.value =
|
|
404
|
+
const r = w(!0), o = w(), a = w(!1), y = w(), s = U(() => {
|
|
405
|
+
var u;
|
|
406
|
+
return (u = y.value) == null ? void 0 : u.video;
|
|
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
|
-
},
|
|
413
|
-
const
|
|
414
|
-
if (
|
|
415
|
-
|
|
416
|
-
const
|
|
417
|
-
|
|
418
|
-
const
|
|
419
|
-
if (
|
|
420
|
-
const
|
|
421
|
-
|
|
414
|
+
}, L = w(""), F = () => {
|
|
415
|
+
const u = document.createElement("canvas");
|
|
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
|
-
},
|
|
425
|
-
i("directionControl",
|
|
426
|
-
},
|
|
427
|
-
i("zoomControl",
|
|
428
|
-
},
|
|
429
|
-
return
|
|
430
|
-
() =>
|
|
426
|
+
}, B = (u) => {
|
|
427
|
+
i("directionControl", u);
|
|
428
|
+
}, M = (u) => {
|
|
429
|
+
i("zoomControl", u);
|
|
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
|
-
), (
|
|
471
|
-
|
|
472
|
+
), (u, E) => (p(), S("div", qe, [
|
|
473
|
+
v(l(he), {
|
|
472
474
|
spinning: e.loading,
|
|
473
475
|
type: "component",
|
|
474
|
-
tip: l(
|
|
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(
|
|
491
|
+
f("div", Ke, [
|
|
492
|
+
["live"].includes(u.type) ? (p(), S(
|
|
491
493
|
"span",
|
|
492
|
-
|
|
493
|
-
V(l(
|
|
494
|
+
Xe,
|
|
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
|
-
|
|
526
|
-
content: l(
|
|
549
|
+
v(l(h), {
|
|
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
|
-
|
|
539
|
-
content: l(
|
|
562
|
+
v(l(h), {
|
|
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
|
-
content: l(
|
|
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
|
-
content: l(
|
|
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
|
-
content: l(
|
|
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
|
-
|
|
635
|
-
const
|
|
658
|
+
w([]);
|
|
659
|
+
const ct = /* @__PURE__ */ O({
|
|
636
660
|
props: {
|
|
637
661
|
deviceInfo: {
|
|
638
662
|
type: Object,
|
|
@@ -640,6 +664,10 @@ const at = /* @__PURE__ */ D({
|
|
|
640
664
|
},
|
|
641
665
|
source: {
|
|
642
666
|
type: String
|
|
667
|
+
},
|
|
668
|
+
isHls: {
|
|
669
|
+
type: Boolean,
|
|
670
|
+
default: !1
|
|
643
671
|
}
|
|
644
672
|
},
|
|
645
673
|
setup(t, {
|
|
@@ -647,87 +675,96 @@ const at = /* @__PURE__ */ D({
|
|
|
647
675
|
}) {
|
|
648
676
|
const {
|
|
649
677
|
deviceInfo: e,
|
|
650
|
-
source: i
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
678
|
+
source: i,
|
|
679
|
+
isHls: r
|
|
680
|
+
} = me(t), o = w(!1), a = w(""), y = async () => {
|
|
681
|
+
var k;
|
|
682
|
+
if (!((k = e.value) != null && k.deviceId)) return;
|
|
683
|
+
o.value = !0;
|
|
684
|
+
const [c, d] = await rt({
|
|
656
685
|
productId: e.value.productId,
|
|
657
686
|
deviceId: e.value.deviceId,
|
|
658
687
|
source: i.value
|
|
659
688
|
});
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
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({
|
|
663
696
|
productId: e.value.productId,
|
|
664
697
|
deviceId: e.value.deviceId,
|
|
665
|
-
direction:
|
|
698
|
+
direction: c,
|
|
666
699
|
zoom: "",
|
|
667
700
|
source: i.value || "web"
|
|
668
701
|
});
|
|
669
|
-
},
|
|
670
|
-
|
|
702
|
+
}, m = (c) => {
|
|
703
|
+
X({
|
|
671
704
|
productId: e.value.productId,
|
|
672
705
|
deviceId: e.value.deviceId,
|
|
673
706
|
direction: "",
|
|
674
|
-
zoom:
|
|
707
|
+
zoom: c,
|
|
675
708
|
source: i.value || "web"
|
|
676
709
|
});
|
|
677
710
|
};
|
|
678
|
-
return
|
|
679
|
-
|
|
680
|
-
}),
|
|
681
|
-
|
|
711
|
+
return J(() => {
|
|
712
|
+
y();
|
|
713
|
+
}), R(() => e.value, () => {
|
|
714
|
+
y();
|
|
682
715
|
}, {
|
|
683
716
|
deep: !0
|
|
684
|
-
}), () =>
|
|
685
|
-
videoUrl:
|
|
686
|
-
loading:
|
|
687
|
-
onDirectionControl:
|
|
688
|
-
onZoomControl:
|
|
717
|
+
}), () => v(x, null, [n.default({
|
|
718
|
+
videoUrl: a.value,
|
|
719
|
+
loading: o.value,
|
|
720
|
+
onDirectionControl: s,
|
|
721
|
+
onZoomControl: m,
|
|
722
|
+
isHls: r.value
|
|
689
723
|
})]);
|
|
690
724
|
}
|
|
691
725
|
});
|
|
692
|
-
function
|
|
693
|
-
const n =
|
|
726
|
+
function ut(t) {
|
|
727
|
+
const n = w(0), e = w(), {
|
|
694
728
|
toggle: i,
|
|
695
|
-
isFullscreen:
|
|
729
|
+
isFullscreen: r,
|
|
696
730
|
exit: o
|
|
697
|
-
} =
|
|
698
|
-
|
|
731
|
+
} = ie(e), a = (s, m) => {
|
|
732
|
+
r.value && o();
|
|
699
733
|
};
|
|
700
734
|
return {
|
|
701
|
-
render: () =>
|
|
735
|
+
render: () => v(Me, {
|
|
702
736
|
ref: e,
|
|
703
737
|
gridNum: t.gridNum,
|
|
704
738
|
activeIndex: n.value,
|
|
705
|
-
"onUpdate:activeIndex": (
|
|
706
|
-
showFn: (
|
|
739
|
+
"onUpdate:activeIndex": (s) => n.value = s,
|
|
740
|
+
showFn: (s) => !!t.deviceList[s]
|
|
707
741
|
}, {
|
|
708
742
|
default: ({
|
|
709
|
-
index:
|
|
743
|
+
index: s
|
|
710
744
|
}) => {
|
|
711
|
-
const
|
|
712
|
-
return
|
|
713
|
-
deviceInfo:
|
|
714
|
-
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
|
|
715
750
|
}, {
|
|
716
751
|
default: ({
|
|
717
|
-
videoUrl:
|
|
718
|
-
onDirectionControl:
|
|
719
|
-
onZoomControl:
|
|
720
|
-
loading:
|
|
721
|
-
|
|
752
|
+
videoUrl: k,
|
|
753
|
+
onDirectionControl: I,
|
|
754
|
+
onZoomControl: L,
|
|
755
|
+
loading: F,
|
|
756
|
+
isHls: B
|
|
757
|
+
}) => v(ot, {
|
|
722
758
|
type: "live",
|
|
723
|
-
loading:
|
|
724
|
-
isFullscreen:
|
|
725
|
-
videoUrl:
|
|
726
|
-
title:
|
|
759
|
+
loading: F,
|
|
760
|
+
isFullscreen: r.value,
|
|
761
|
+
videoUrl: k,
|
|
762
|
+
title: m.deviceName,
|
|
727
763
|
onClose: () => a(),
|
|
728
|
-
onDirectionControl:
|
|
729
|
-
onZoomControl:
|
|
730
|
-
authType:
|
|
764
|
+
onDirectionControl: I,
|
|
765
|
+
onZoomControl: L,
|
|
766
|
+
authType: m.authType === 2 ? ["control"] : [],
|
|
767
|
+
isHls: B
|
|
731
768
|
}, null)
|
|
732
769
|
});
|
|
733
770
|
}
|
|
@@ -735,61 +772,62 @@ function ct(t) {
|
|
|
735
772
|
toggleFullscreen: i
|
|
736
773
|
};
|
|
737
774
|
}
|
|
738
|
-
const
|
|
775
|
+
const dt = /* @__PURE__ */ O({
|
|
739
776
|
__name: "index",
|
|
740
777
|
props: {
|
|
741
778
|
visible: { type: Boolean, default: !1 },
|
|
742
779
|
deviceList: { default: () => [] },
|
|
743
780
|
gridNum: { default: 4 },
|
|
744
|
-
source: {}
|
|
781
|
+
source: {},
|
|
782
|
+
isHls: { type: Boolean, default: !1 }
|
|
745
783
|
},
|
|
746
784
|
emits: ["update:visible"],
|
|
747
785
|
setup(t, { emit: n }) {
|
|
748
|
-
const e = t, i = n,
|
|
786
|
+
const e = t, i = n, r = U({
|
|
749
787
|
get: () => e.visible,
|
|
750
|
-
set: (
|
|
751
|
-
}), { render: o, toggleFullscreen: a } =
|
|
752
|
-
let
|
|
788
|
+
set: (s) => i("update:visible", s)
|
|
789
|
+
}), { render: o, toggleFullscreen: a } = ut(e), y = U(() => {
|
|
790
|
+
let s = {};
|
|
753
791
|
switch (e.gridNum) {
|
|
754
792
|
case 1:
|
|
755
|
-
|
|
793
|
+
s = "one-video";
|
|
756
794
|
break;
|
|
757
795
|
case 4:
|
|
758
|
-
|
|
796
|
+
s = "four-video";
|
|
759
797
|
break;
|
|
760
798
|
case 9:
|
|
761
|
-
|
|
799
|
+
s = "nine-video";
|
|
762
800
|
break;
|
|
763
801
|
}
|
|
764
|
-
return
|
|
802
|
+
return s;
|
|
765
803
|
});
|
|
766
|
-
return (
|
|
804
|
+
return (s, m) => (p(), N(l(ye), {
|
|
767
805
|
size: "mini",
|
|
768
|
-
title: l(
|
|
769
|
-
"custom-class": `das-linakge-video-dialog ${
|
|
770
|
-
modelValue:
|
|
771
|
-
"onUpdate:modelValue":
|
|
806
|
+
title: l(g)("视频监控"),
|
|
807
|
+
"custom-class": `das-linakge-video-dialog ${y.value}`,
|
|
808
|
+
modelValue: r.value,
|
|
809
|
+
"onUpdate:modelValue": m[0] || (m[0] = (c) => r.value = c),
|
|
772
810
|
bodyStyle: { padding: 0 },
|
|
773
811
|
"close-on-click-modal": !1,
|
|
774
812
|
"close-on-press-escape": !1,
|
|
775
813
|
modal: !1,
|
|
776
814
|
"header-style": { display: "flex", justifyContent: "space-between", alignItems: "center" }
|
|
777
815
|
}, {
|
|
778
|
-
header:
|
|
779
|
-
|
|
780
|
-
|
|
816
|
+
header: C(() => [
|
|
817
|
+
f("div", null, [
|
|
818
|
+
f(
|
|
781
819
|
"span",
|
|
782
820
|
null,
|
|
783
|
-
V(l(
|
|
821
|
+
V(l(g)("视频监控")),
|
|
784
822
|
1
|
|
785
823
|
/* TEXT */
|
|
786
824
|
)
|
|
787
825
|
]),
|
|
788
|
-
|
|
789
|
-
content: l(
|
|
826
|
+
v(l(h), {
|
|
827
|
+
content: l(g)("页面全屏")
|
|
790
828
|
}, {
|
|
791
|
-
default:
|
|
792
|
-
|
|
829
|
+
default: C(() => [
|
|
830
|
+
v(l(ke), {
|
|
793
831
|
class: "icon",
|
|
794
832
|
color: "#999",
|
|
795
833
|
onClick: l(a)
|
|
@@ -799,14 +837,14 @@ const ut = /* @__PURE__ */ D({
|
|
|
799
837
|
/* STABLE */
|
|
800
838
|
}, 8, ["content"])
|
|
801
839
|
]),
|
|
802
|
-
default:
|
|
803
|
-
|
|
840
|
+
default: C(() => [
|
|
841
|
+
r.value ? (p(), N(l(o), { key: 0 })) : b("v-if", !0)
|
|
804
842
|
]),
|
|
805
843
|
_: 1
|
|
806
844
|
/* STABLE */
|
|
807
845
|
}, 8, ["title", "custom-class", "modelValue"]));
|
|
808
846
|
}
|
|
809
|
-
}),
|
|
847
|
+
}), pt = {
|
|
810
848
|
加载中: { "zh-CN": "加载中", en: "Loading", _appCode: "framework" },
|
|
811
849
|
正在实时预览: { "zh-CN": "正在实时预览", en: "Real-time Video", _appCode: "framework" },
|
|
812
850
|
声音: { "zh-CN": "声音", en: "Sound", _appCode: "framework" },
|
|
@@ -828,10 +866,10 @@ const ut = /* @__PURE__ */ D({
|
|
|
828
866
|
"聚焦-": { "zh-CN": "聚焦-", en: "Focus-", _appCode: "framework" },
|
|
829
867
|
"聚焦+": { "zh-CN": "聚焦+", en: "Focus+", _appCode: "framework" }
|
|
830
868
|
};
|
|
831
|
-
ge(
|
|
832
|
-
const
|
|
869
|
+
ge(pt);
|
|
870
|
+
const Nt = Ce(dt), Ft = () => w(null);
|
|
833
871
|
export {
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
872
|
+
Nt as DasVideoDialog,
|
|
873
|
+
Ft as DasVideoDialogRef,
|
|
874
|
+
ut as useVideo
|
|
837
875
|
};
|