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