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