@das-fed/ui 7.0.0-zhaohang.7 → 7.0.0-zhongshen.1
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 +28 -1
- package/package.json +12 -5
- package/packages/business-components/ai-panel/i18n/index.d.ts +244 -0
- package/packages/business-components/ai-panel/index-CD2YNg3j.js +5856 -0
- package/packages/business-components/ai-panel/index-CD2YNg3j.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CJeKTaAS.js +60 -0
- package/packages/business-components/ai-panel/index-CJeKTaAS.js.gz +0 -0
- package/packages/business-components/ai-panel/index-DWHxqEh3.js +180 -0
- package/packages/business-components/ai-panel/index-DWHxqEh3.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +9 -0
- package/packages/business-components/ai-panel/src/dasAI/apis.d.ts +17 -0
- package/packages/business-components/ai-panel/src/dasAI/components/addNew/index.vue.d.ts +6 -0
- package/packages/business-components/ai-panel/src/dasAI/components/deleteDialog/index.d.ts +7 -0
- package/packages/business-components/ai-panel/src/dasAI/components/deleteDialog/index.vue.d.ts +12 -0
- package/packages/business-components/ai-panel/src/dasAI/components/folderDialog/index.d.ts +6 -0
- package/packages/business-components/ai-panel/src/dasAI/components/sender/components/senderOpt.vue.d.ts +2 -0
- package/packages/business-components/ai-panel/src/dasAI/hooks/audio.d.ts +8 -0
- package/packages/business-components/ai-panel/src/dasAI/hooks/knowbase.d.ts +4 -0
- package/packages/business-components/ai-panel/src/dasAI/index.vue.d.ts +16 -0
- package/packages/business-components/ai-panel/src/dasAI/store/index.d.ts +21 -0
- package/packages/business-components/ai-panel/src/index.vue.d.ts +31 -0
- package/packages/business-components/ai-panel/src/type.d.ts +13 -0
- package/packages/business-components/ai-panel/style.css +1 -0
- package/packages/business-components/ai-panel/style.css.gz +0 -0
- package/packages/business-components/change-pwd/index.js +13 -10
- 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 +2819 -2799
- 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 +1 -0
- package/packages/business-components/index.js +1 -0
- 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/payment/index.js +8 -8
- package/packages/business-components/payment/index.js.gz +0 -0
- 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 +5 -0
- package/packages/business-components/video-dialog/index.js +378 -332
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/src/component/Player/index.vue.d.ts +3 -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/dimple-layout/index.js +1 -1
- package/packages/components/dimple-layout/index.js.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/image-upload/index.d.ts +2 -0
- package/packages/components/image-upload/index.js +770 -114
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-upload/src/Index.vue.d.ts +2 -0
- package/packages/components/image-upload/src/hooks/use-compress-image.d.ts +1 -0
- package/packages/components/image-upload/src/type.d.ts +6 -0
- 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 +6 -2
- package/packages/components/image-viewer/index.js +1117 -432
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/image-viewer/src/Index.vue.d.ts +6 -2
- package/packages/components/image-viewer/src/hooks/use-compress-image.d.ts +1 -0
- package/packages/components/image-viewer/src/hooks/use-imageViewer.d.ts +1 -0
- package/packages/components/image-viewer/src/type.d.ts +9 -0
- 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 +1 -0
- package/packages/components/index.js +1 -0
- package/packages/components/input-dialog-select/index.d.ts +0 -1
- 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 +0 -1
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/radio-tabs/index.js +1 -1
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/radio-tabs/style.css +1 -1
- package/packages/components/radio-tabs/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 +58 -57
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/src/type.d.ts +2 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-list/index.d.ts +3 -3
- package/packages/components/select-list/index.js +390 -377
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/select-list/src/Index.vue.d.ts +4 -3
- package/packages/components/select-list/src/hooks/use-select-list.d.ts +1 -0
- package/packages/components/select-list/src/type.d.ts +1 -1
- package/packages/components/select-list/style.css +1 -1
- package/packages/components/select-list/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/index.js +90 -86
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +1 -0
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +2 -0
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +2 -0
- package/packages/components/tree-table/index.js +291 -263
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-table/src/hooks/use-five.d.ts +4 -0
- package/packages/components/tree-table/src/hooks/use-four.d.ts +4 -0
- package/packages/components/tree-table/src/type.d.ts +1 -1
- package/packages/components/tree-table/style.css +1 -1
- package/packages/components/tree-table/style.css.gz +0 -0
- package/packages/icons/audioing/index.d.ts +1 -0
- package/packages/icons/audioing/index.js +17 -0
- package/packages/icons/audioing/index.js.gz +0 -0
- package/packages/icons/audioing/index.vue.d.ts +19 -0
- package/packages/icons/bobaoguanbi/index.d.ts +1 -0
- package/packages/icons/bobaoguanbi/index.js +17 -0
- package/packages/icons/bobaoguanbi/index.js.gz +0 -0
- package/packages/icons/bobaoguanbi/index.vue.d.ts +19 -0
- package/packages/icons/bobaokaiqi/index.d.ts +1 -0
- package/packages/icons/bobaokaiqi/index.js +17 -0
- package/packages/icons/bobaokaiqi/index.js.gz +0 -0
- package/packages/icons/bobaokaiqi/index.vue.d.ts +19 -0
- package/packages/icons/cankaoneirong/index.d.ts +1 -0
- package/packages/icons/cankaoneirong/index.js +22 -0
- package/packages/icons/cankaoneirong/index.js.gz +0 -0
- package/packages/icons/cankaoneirong/index.vue.d.ts +19 -0
- package/packages/icons/closeaudio/index.d.ts +1 -0
- package/packages/icons/closeaudio/index.js +17 -0
- package/packages/icons/closeaudio/index.js.gz +0 -0
- package/packages/icons/closeaudio/index.vue.d.ts +19 -0
- package/packages/icons/fasong/index.d.ts +1 -0
- package/packages/icons/fasong/index.js +22 -0
- package/packages/icons/fasong/index.js.gz +0 -0
- package/packages/icons/fasong/index.vue.d.ts +19 -0
- package/packages/icons/fresh/index.d.ts +1 -0
- package/packages/icons/fresh/index.js +22 -0
- package/packages/icons/fresh/index.js.gz +0 -0
- package/packages/icons/fresh/index.vue.d.ts +19 -0
- package/packages/icons/fuzhineirong/index.d.ts +1 -0
- package/packages/icons/fuzhineirong/index.js +22 -0
- package/packages/icons/fuzhineirong/index.js.gz +0 -0
- package/packages/icons/fuzhineirong/index.vue.d.ts +19 -0
- package/packages/icons/huida/index.d.ts +1 -0
- package/packages/icons/huida/index.js +22 -0
- package/packages/icons/huida/index.js.gz +0 -0
- package/packages/icons/huida/index.vue.d.ts +19 -0
- package/packages/icons/huidaodibu/index.d.ts +1 -0
- package/packages/icons/huidaodibu/index.js +22 -0
- package/packages/icons/huidaodibu/index.js.gz +0 -0
- package/packages/icons/huidaodibu/index.vue.d.ts +19 -0
- package/packages/icons/index.d.ts +23 -0
- package/packages/icons/index.js +23 -0
- package/packages/icons/intnet/index.d.ts +1 -0
- package/packages/icons/intnet/index.js +17 -0
- package/packages/icons/intnet/index.js.gz +0 -0
- package/packages/icons/intnet/index.vue.d.ts +19 -0
- package/packages/icons/know/index.d.ts +1 -0
- package/packages/icons/know/index.js +17 -0
- package/packages/icons/know/index.js.gz +0 -0
- package/packages/icons/know/index.vue.d.ts +19 -0
- package/packages/icons/knowed/index.d.ts +1 -0
- package/packages/icons/knowed/index.js +17 -0
- package/packages/icons/knowed/index.js.gz +0 -0
- package/packages/icons/knowed/index.vue.d.ts +19 -0
- package/packages/icons/knowopen/index.d.ts +1 -0
- package/packages/icons/knowopen/index.js +17 -0
- package/packages/icons/knowopen/index.js.gz +0 -0
- package/packages/icons/knowopen/index.vue.d.ts +19 -0
- package/packages/icons/lianjie/index.d.ts +1 -0
- package/packages/icons/lianjie/index.js +22 -0
- package/packages/icons/lianjie/index.js.gz +0 -0
- package/packages/icons/lianjie/index.vue.d.ts +19 -0
- package/packages/icons/lishihuihua/index.d.ts +1 -0
- package/packages/icons/lishihuihua/index.js +22 -0
- package/packages/icons/lishihuihua/index.js.gz +0 -0
- package/packages/icons/lishihuihua/index.vue.d.ts +19 -0
- package/packages/icons/qingkong/index.d.ts +1 -0
- package/packages/icons/qingkong/index.js +22 -0
- package/packages/icons/qingkong/index.js.gz +0 -0
- package/packages/icons/qingkong/index.vue.d.ts +19 -0
- package/packages/icons/select2/index.d.ts +1 -0
- package/packages/icons/select2/index.js +17 -0
- package/packages/icons/select2/index.vue.d.ts +19 -0
- package/packages/icons/shendusikao/index.d.ts +1 -0
- package/packages/icons/shendusikao/index.js +22 -0
- package/packages/icons/shendusikao/index.js.gz +0 -0
- package/packages/icons/shendusikao/index.vue.d.ts +19 -0
- package/packages/icons/tianjiaxinhuati/index.d.ts +1 -0
- package/packages/icons/tianjiaxinhuati/index.js +22 -0
- package/packages/icons/tianjiaxinhuati/index.js.gz +0 -0
- package/packages/icons/tianjiaxinhuati/index.vue.d.ts +19 -0
- package/packages/icons/yingyong/index.d.ts +1 -0
- package/packages/icons/yingyong/index.js +17 -0
- package/packages/icons/yingyong/index.js.gz +0 -0
- package/packages/icons/yingyong/index.vue.d.ts +19 -0
- package/packages/icons/yuyin/index.d.ts +1 -0
- package/packages/icons/yuyin/index.js +17 -0
- package/packages/icons/yuyin/index.js.gz +0 -0
- package/packages/icons/yuyin/index.vue.d.ts +19 -0
- package/packages/icons/zhongxinshengcheng/index.d.ts +1 -0
- package/packages/icons/zhongxinshengcheng/index.js +22 -0
- package/packages/icons/zhongxinshengcheng/index.js.gz +0 -0
- package/packages/icons/zhongxinshengcheng/index.vue.d.ts +19 -0
|
@@ -1,59 +1,60 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/video-dialog/style.css';
|
|
2
|
-
import { getCurrentScope as ce, onScopeDispose as ue, getCurrentInstance as de, onMounted as
|
|
3
|
-
import { withInstall as
|
|
4
|
-
import { t as
|
|
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 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 y, withModifiers as _, createVNode as v, createElementVNode as f, toDisplayString as V, toRefs as me } from "vue";
|
|
3
|
+
import { withInstall as ye } from "@das-fed/utils/with-install/index";
|
|
4
|
+
import { t as C, setI18nRule as Ce } from "@das-fed/web/packages/i18n/index";
|
|
5
|
+
import { DasDialog as ge } from "@das-fed/ui/packages/components/dialog/index";
|
|
6
|
+
import { DasTooltip as h } from "@das-fed/ui/packages/components/tooltip/index";
|
|
7
|
+
import { DasIconFullscreen2 as ke } 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 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
|
-
j && ((
|
|
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
|
-
function
|
|
28
|
-
de() ?
|
|
28
|
+
function Se(t, n = !0) {
|
|
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
|
-
const o = [],
|
|
42
|
+
const o = [], a = () => {
|
|
42
43
|
o.forEach((c) => c()), o.length = 0;
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
}, { immediate: !0, flush: "post" }),
|
|
46
|
-
|
|
44
|
+
}, g = (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) => g(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 =
|
|
52
|
-
return i(),
|
|
51
|
+
function Le(t, n = !1) {
|
|
52
|
+
const e = w(), i = () => e.value = !!t();
|
|
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
|
|
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 g = Le(() => {
|
|
102
103
|
if (e) {
|
|
103
|
-
for (const F of
|
|
104
|
+
for (const F of W)
|
|
104
105
|
if (F[1] in e)
|
|
105
|
-
return
|
|
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
|
+
g.value && (e != null && e[c] && await e[m](), o.value = !1);
|
|
112
113
|
}
|
|
113
|
-
async function
|
|
114
|
-
if (!
|
|
114
|
+
async function I() {
|
|
115
|
+
if (!g.value)
|
|
115
116
|
return;
|
|
116
|
-
await
|
|
117
|
-
const F =
|
|
118
|
-
F && (await F[
|
|
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: g,
|
|
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,37 +181,37 @@ 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), g = () => {
|
|
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) => g()),
|
|
200
|
+
onClick: d[1] || (d[1] = (k) => s())
|
|
200
201
|
},
|
|
201
202
|
[
|
|
202
|
-
|
|
203
|
+
ee(c.$slots, "default", {}, void 0, !0)
|
|
203
204
|
],
|
|
204
205
|
34
|
|
205
206
|
/* CLASS, NEED_HYDRATION */
|
|
206
207
|
));
|
|
207
208
|
}
|
|
208
|
-
}),
|
|
209
|
+
}), T = (t, n) => {
|
|
209
210
|
const e = t.__vccOpts || t;
|
|
210
|
-
for (const [i,
|
|
211
|
-
e[i] =
|
|
211
|
+
for (const [i, r] of n)
|
|
212
|
+
e[i] = r;
|
|
212
213
|
return e;
|
|
213
|
-
},
|
|
214
|
+
}, He = /* @__PURE__ */ T(Be, [["__scopeId", "data-v-100b67ca"]]), Ve = { class: "layout-wrapper" }, je = /* @__PURE__ */ O({
|
|
214
215
|
__name: "GridLayout",
|
|
215
216
|
props: {
|
|
216
217
|
gridNum: {},
|
|
@@ -219,24 +220,24 @@ const 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,
|
|
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, (g, 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: y(() => [
|
|
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__ */
|
|
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(C)("左上")
|
|
265
266
|
}, {
|
|
266
|
-
default:
|
|
267
|
-
|
|
267
|
+
default: y(() => [
|
|
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(C)("上")
|
|
277
278
|
}, {
|
|
278
|
-
default:
|
|
279
|
-
|
|
279
|
+
default: y(() => [
|
|
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(C)("右上")
|
|
289
290
|
}, {
|
|
290
|
-
default:
|
|
291
|
-
|
|
291
|
+
default: y(() => [
|
|
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(C)("左")
|
|
301
302
|
}, {
|
|
302
|
-
default:
|
|
303
|
-
|
|
303
|
+
default: y(() => [
|
|
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(C)("自动")
|
|
313
314
|
}, {
|
|
314
|
-
default:
|
|
315
|
-
|
|
315
|
+
default: y(() => [
|
|
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(C)("右")
|
|
325
326
|
}, {
|
|
326
|
-
default:
|
|
327
|
-
|
|
327
|
+
default: y(() => [
|
|
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(C)("左下")
|
|
337
338
|
}, {
|
|
338
|
-
default:
|
|
339
|
-
|
|
339
|
+
default: y(() => [
|
|
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(C)("下")
|
|
349
350
|
}, {
|
|
350
|
-
default:
|
|
351
|
-
|
|
351
|
+
default: y(() => [
|
|
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(C)("右下")
|
|
361
362
|
}, {
|
|
362
|
-
default:
|
|
363
|
-
|
|
363
|
+
default: y(() => [
|
|
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,19 +374,21 @@ const Ue = /* @__PURE__ */ D({
|
|
|
373
374
|
/* NEED_HYDRATION */
|
|
374
375
|
));
|
|
375
376
|
}
|
|
376
|
-
}), Qe = /* @__PURE__ */
|
|
377
|
+
}), Qe = /* @__PURE__ */ T(Ae, [["__scopeId", "data-v-db2e8ec2"]]), qe = { class: "video-wrapper" }, Ge = { class: "video-top" }, We = { class: "video-top_l" }, Ye = { class: "video-title-wrapper" }, Ze = { class: "video-title" }, Ke = { class: "video-top_r" }, Xe = {
|
|
377
378
|
key: 0,
|
|
378
379
|
class: "play-status"
|
|
379
|
-
},
|
|
380
|
+
}, Je = { class: "video-bottom" }, et = { class: "video-bottom_r" }, tt = /* @__PURE__ */ O({
|
|
380
381
|
__name: "index",
|
|
381
382
|
props: {
|
|
382
383
|
videoUrl: {},
|
|
383
384
|
title: {},
|
|
384
385
|
type: {},
|
|
385
386
|
loading: { type: Boolean },
|
|
387
|
+
isFullscreen: { type: Boolean },
|
|
386
388
|
playbackRate: { default: 1 },
|
|
387
389
|
paused: { type: Boolean, default: !1 },
|
|
388
390
|
authType: { default: () => [] },
|
|
391
|
+
isHls: { type: Boolean, default: !1 },
|
|
389
392
|
onReplay: {}
|
|
390
393
|
},
|
|
391
394
|
emits: ["close", "directionControl", "zoomControl"],
|
|
@@ -398,219 +401,242 @@ const Ue = /* @__PURE__ */ D({
|
|
|
398
401
|
enlarge: import("@das-fed/ui/packages/icons/enlarge"),
|
|
399
402
|
"direction-control": import("@das-fed/ui/packages/icons/direction-control")
|
|
400
403
|
});
|
|
401
|
-
const
|
|
404
|
+
const r = w(!0), o = w(), a = w(!1), g = w(), s = U(() => {
|
|
402
405
|
var u;
|
|
403
|
-
return (u =
|
|
404
|
-
}),
|
|
405
|
-
o.value = u, o.value.on(window.mpegts.Events.ERROR, (
|
|
406
|
+
return (u = g.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) => {
|
|
406
409
|
});
|
|
407
|
-
},
|
|
408
|
-
|
|
409
|
-
},
|
|
410
|
-
|
|
411
|
-
},
|
|
410
|
+
}, k = () => {
|
|
411
|
+
r.value = !r.value, o.value && (o.value.muted = r.value);
|
|
412
|
+
}, I = () => {
|
|
413
|
+
a.value = !a.value;
|
|
414
|
+
}, L = w(""), F = () => {
|
|
412
415
|
const u = document.createElement("canvas");
|
|
413
|
-
if (
|
|
414
|
-
u.width =
|
|
415
|
-
const
|
|
416
|
-
|
|
417
|
-
const
|
|
418
|
-
if (
|
|
419
|
-
const
|
|
420
|
-
|
|
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);
|
|
421
424
|
}
|
|
422
425
|
}
|
|
423
|
-
}, se = (u) => {
|
|
424
|
-
i("directionControl", u);
|
|
425
426
|
}, B = (u) => {
|
|
427
|
+
i("directionControl", u);
|
|
428
|
+
}, M = (u) => {
|
|
426
429
|
i("zoomControl", u);
|
|
427
|
-
},
|
|
428
|
-
return
|
|
429
|
-
() =>
|
|
430
|
+
}, H = (u) => e.authType.includes(u);
|
|
431
|
+
return R(
|
|
432
|
+
() => s.value,
|
|
430
433
|
() => {
|
|
431
|
-
|
|
432
|
-
|
|
434
|
+
s.value && s.value.addEventListener("ended", () => {
|
|
435
|
+
m.value = !0, e.type === "playback" && (c.value = !1);
|
|
433
436
|
});
|
|
434
437
|
}
|
|
435
|
-
),
|
|
436
|
-
() =>
|
|
438
|
+
), R(
|
|
439
|
+
() => s.value,
|
|
437
440
|
() => {
|
|
438
|
-
|
|
439
|
-
|
|
441
|
+
s.value && P(() => {
|
|
442
|
+
s.value.playbackRate = e.playbackRate || 1;
|
|
440
443
|
});
|
|
441
444
|
}
|
|
442
|
-
),
|
|
445
|
+
), R(
|
|
443
446
|
() => o.value,
|
|
444
447
|
() => {
|
|
445
|
-
o.value &&
|
|
446
|
-
o.value.muted =
|
|
448
|
+
o.value && P(() => {
|
|
449
|
+
o.value.muted = r.value;
|
|
447
450
|
});
|
|
448
451
|
}
|
|
449
|
-
),
|
|
452
|
+
), R(
|
|
450
453
|
() => e.playbackRate,
|
|
451
454
|
() => {
|
|
452
|
-
|
|
455
|
+
s.value && (s.value.playbackRate = e.playbackRate || 1);
|
|
453
456
|
},
|
|
454
457
|
{
|
|
455
458
|
immediate: !0
|
|
456
459
|
}
|
|
457
|
-
),
|
|
460
|
+
), R(
|
|
458
461
|
() => e.paused,
|
|
459
462
|
() => {
|
|
460
463
|
o.value && (e.paused ? o.value.pause() : o.value.play());
|
|
461
464
|
}
|
|
462
|
-
),
|
|
465
|
+
), R(
|
|
463
466
|
() => e.videoUrl,
|
|
464
467
|
() => {
|
|
465
|
-
c.value = !1,
|
|
468
|
+
c.value = !1, P(() => {
|
|
466
469
|
c.value = !0;
|
|
467
470
|
});
|
|
468
471
|
}
|
|
469
|
-
), (u,
|
|
470
|
-
|
|
472
|
+
), (u, E) => (p(), S("div", qe, [
|
|
473
|
+
v(l(he), {
|
|
471
474
|
spinning: e.loading,
|
|
472
475
|
type: "component",
|
|
473
|
-
tip: l(
|
|
476
|
+
tip: l(C)("加载中...")
|
|
474
477
|
}, {
|
|
475
|
-
default:
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
478
|
+
default: y(() => [
|
|
479
|
+
f("div", Ge, [
|
|
480
|
+
f("div", We, [
|
|
481
|
+
f("div", Ye, [
|
|
482
|
+
f(
|
|
480
483
|
"div",
|
|
481
|
-
|
|
484
|
+
Ze,
|
|
482
485
|
V(e.title.length > 20 ? e.title.slice(0, 19) + "..." : e.title),
|
|
483
486
|
1
|
|
484
487
|
/* TEXT */
|
|
485
488
|
)
|
|
486
489
|
])
|
|
487
490
|
]),
|
|
488
|
-
|
|
489
|
-
["live"].includes(u.type) ? (
|
|
491
|
+
f("div", Ke, [
|
|
492
|
+
["live"].includes(u.type) ? (p(), S(
|
|
490
493
|
"span",
|
|
491
|
-
|
|
492
|
-
V(l(
|
|
494
|
+
Xe,
|
|
495
|
+
V(l(C)("正在实时预览")),
|
|
493
496
|
1
|
|
494
497
|
/* TEXT */
|
|
495
|
-
)) :
|
|
496
|
-
|
|
498
|
+
)) : b("v-if", !0),
|
|
499
|
+
b(' <das-icon v-if="isFullscreen" class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
|
|
497
500
|
])
|
|
498
501
|
]),
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
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: g,
|
|
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
|
+
type: "flv",
|
|
524
|
+
ref_key: "dasLivePlayerRef",
|
|
525
|
+
ref: g,
|
|
526
|
+
muted: r.value,
|
|
527
|
+
onLoaded: d,
|
|
528
|
+
src: e.videoUrl
|
|
529
|
+
}, null, 8, ["muted", "src"])) : b("v-if", !0)
|
|
530
|
+
],
|
|
531
|
+
64
|
|
532
|
+
/* STABLE_FRAGMENT */
|
|
533
|
+
)),
|
|
534
|
+
f("div", Je, [
|
|
535
|
+
E[3] || (E[3] = f(
|
|
510
536
|
"div",
|
|
511
537
|
{ class: "video-bottom_l" },
|
|
512
538
|
null,
|
|
513
539
|
-1
|
|
514
540
|
/* HOISTED */
|
|
515
541
|
)),
|
|
516
|
-
|
|
517
|
-
|
|
542
|
+
f("div", et, [
|
|
543
|
+
f(
|
|
518
544
|
"div",
|
|
519
545
|
{
|
|
520
546
|
class: "controls",
|
|
521
|
-
onDblclick:
|
|
547
|
+
onDblclick: E[2] || (E[2] = _((D) => D.stopPropagation(), ["stop"]))
|
|
522
548
|
},
|
|
523
549
|
[
|
|
524
|
-
|
|
525
|
-
content: l(
|
|
550
|
+
v(l(h), {
|
|
551
|
+
content: l(C)("声音")
|
|
526
552
|
}, {
|
|
527
|
-
default:
|
|
528
|
-
|
|
553
|
+
default: y(() => [
|
|
554
|
+
v(l($), {
|
|
529
555
|
class: "icon icon-volume",
|
|
530
|
-
icon:
|
|
531
|
-
onClick:
|
|
556
|
+
icon: r.value ? "muted" : "volume",
|
|
557
|
+
onClick: _(k, ["stop"])
|
|
532
558
|
}, null, 8, ["icon"])
|
|
533
559
|
]),
|
|
534
560
|
_: 1
|
|
535
561
|
/* STABLE */
|
|
536
562
|
}, 8, ["content"]),
|
|
537
|
-
|
|
538
|
-
content: l(
|
|
563
|
+
v(l(h), {
|
|
564
|
+
content: l(C)("截图")
|
|
539
565
|
}, {
|
|
540
|
-
default:
|
|
541
|
-
|
|
566
|
+
default: y(() => [
|
|
567
|
+
v(l($), {
|
|
542
568
|
class: "icon icon-screenshot",
|
|
543
569
|
icon: "screenshot",
|
|
544
|
-
onClick:
|
|
570
|
+
onClick: _(F, ["stop"])
|
|
545
571
|
})
|
|
546
572
|
]),
|
|
547
573
|
_: 1
|
|
548
574
|
/* STABLE */
|
|
549
575
|
}, 8, ["content"]),
|
|
550
|
-
|
|
576
|
+
H("control") ? (p(), N(l(h), {
|
|
551
577
|
key: 0,
|
|
552
|
-
content: l(
|
|
578
|
+
content: l(C)("聚焦-")
|
|
553
579
|
}, {
|
|
554
|
-
default:
|
|
555
|
-
["live", "polling"].includes(e.type) ? (
|
|
580
|
+
default: y(() => [
|
|
581
|
+
["live", "polling"].includes(e.type) ? (p(), N(l($), {
|
|
556
582
|
key: 0,
|
|
557
583
|
class: "icon icon-shrink",
|
|
558
584
|
icon: "shrink",
|
|
559
|
-
onClick:
|
|
560
|
-
})) :
|
|
585
|
+
onClick: E[0] || (E[0] = _((D) => M("zoomOut"), ["stop"]))
|
|
586
|
+
})) : b("v-if", !0)
|
|
561
587
|
]),
|
|
562
588
|
_: 1
|
|
563
589
|
/* STABLE */
|
|
564
|
-
}, 8, ["content"])) :
|
|
565
|
-
|
|
590
|
+
}, 8, ["content"])) : b("v-if", !0),
|
|
591
|
+
H("control") ? (p(), N(l(h), {
|
|
566
592
|
key: 1,
|
|
567
|
-
content: l(
|
|
593
|
+
content: l(C)("聚焦+")
|
|
568
594
|
}, {
|
|
569
|
-
default:
|
|
570
|
-
["live", "polling"].includes(e.type) ? (
|
|
595
|
+
default: y(() => [
|
|
596
|
+
["live", "polling"].includes(e.type) ? (p(), N(l($), {
|
|
571
597
|
key: 0,
|
|
572
598
|
class: "icon icon-enlarge",
|
|
573
599
|
icon: "enlarge",
|
|
574
|
-
onClick:
|
|
575
|
-
})) :
|
|
600
|
+
onClick: E[1] || (E[1] = _((D) => M("zoomIn"), ["stop"]))
|
|
601
|
+
})) : b("v-if", !0)
|
|
576
602
|
]),
|
|
577
603
|
_: 1
|
|
578
604
|
/* STABLE */
|
|
579
|
-
}, 8, ["content"])) :
|
|
580
|
-
|
|
605
|
+
}, 8, ["content"])) : b("v-if", !0),
|
|
606
|
+
H("control") ? (p(), N(l(h), {
|
|
581
607
|
key: 2,
|
|
582
|
-
content: l(
|
|
608
|
+
content: l(C)("方向控制")
|
|
583
609
|
}, {
|
|
584
|
-
default:
|
|
585
|
-
["live", "polling"].includes(e.type) ? (
|
|
610
|
+
default: y(() => [
|
|
611
|
+
["live", "polling"].includes(e.type) ? (p(), N(l($), {
|
|
586
612
|
key: 0,
|
|
587
613
|
class: "icon icon-direction-control",
|
|
588
614
|
icon: "direction-control",
|
|
589
|
-
onClick:
|
|
590
|
-
})) :
|
|
615
|
+
onClick: _(I, ["stop"])
|
|
616
|
+
})) : b("v-if", !0)
|
|
591
617
|
]),
|
|
592
618
|
_: 1
|
|
593
619
|
/* STABLE */
|
|
594
|
-
}, 8, ["content"])) :
|
|
620
|
+
}, 8, ["content"])) : b("v-if", !0)
|
|
595
621
|
],
|
|
596
622
|
32
|
|
597
623
|
/* NEED_HYDRATION */
|
|
598
624
|
)
|
|
599
625
|
])
|
|
600
626
|
]),
|
|
601
|
-
|
|
602
|
-
key:
|
|
603
|
-
onChange:
|
|
604
|
-
})) :
|
|
627
|
+
a.value ? (p(), N(Qe, {
|
|
628
|
+
key: 2,
|
|
629
|
+
onChange: B
|
|
630
|
+
})) : b("v-if", !0)
|
|
605
631
|
]),
|
|
606
632
|
_: 1
|
|
607
633
|
/* STABLE */
|
|
608
634
|
}, 8, ["spinning", "tip"])
|
|
609
635
|
]));
|
|
610
636
|
}
|
|
611
|
-
}),
|
|
612
|
-
function
|
|
613
|
-
const n =
|
|
637
|
+
}), ot = /* @__PURE__ */ T(tt, [["__scopeId", "data-v-12f30393"]]), nt = "/api/device-relation/deviceproject/v1/project/device/video", lt = "v1", it = te(`/api/enterpriseright/permission/${lt}`), se = te(`${nt}`, st);
|
|
638
|
+
function st(t) {
|
|
639
|
+
const n = A() ? A().id : 1;
|
|
614
640
|
return t.params || (t.params = {}), t.params.project = n, t.params.projectId = n, t;
|
|
615
641
|
}
|
|
616
642
|
function re(t) {
|
|
@@ -619,19 +645,19 @@ function re(t) {
|
|
|
619
645
|
n.append(e, i);
|
|
620
646
|
return n.toString();
|
|
621
647
|
}
|
|
622
|
-
function
|
|
623
|
-
return
|
|
648
|
+
function X(t) {
|
|
649
|
+
return se.post(`/ptz?${re(t)}`)().run();
|
|
624
650
|
}
|
|
625
651
|
function rt(t) {
|
|
626
|
-
return
|
|
652
|
+
return se.post(`/url/preview?${re(t)}`)().run();
|
|
627
653
|
}
|
|
628
|
-
|
|
629
|
-
const
|
|
630
|
-
const n =
|
|
654
|
+
it.post("data/device-auth");
|
|
655
|
+
const at = (t) => {
|
|
656
|
+
const n = Ee();
|
|
631
657
|
return `${t}?token=${n}`;
|
|
632
658
|
};
|
|
633
|
-
|
|
634
|
-
const
|
|
659
|
+
w([]);
|
|
660
|
+
const ct = /* @__PURE__ */ O({
|
|
635
661
|
props: {
|
|
636
662
|
deviceInfo: {
|
|
637
663
|
type: Object,
|
|
@@ -639,6 +665,10 @@ const at = /* @__PURE__ */ D({
|
|
|
639
665
|
},
|
|
640
666
|
source: {
|
|
641
667
|
type: String
|
|
668
|
+
},
|
|
669
|
+
isHls: {
|
|
670
|
+
type: Boolean,
|
|
671
|
+
default: !1
|
|
642
672
|
}
|
|
643
673
|
},
|
|
644
674
|
setup(t, {
|
|
@@ -646,81 +676,96 @@ const at = /* @__PURE__ */ D({
|
|
|
646
676
|
}) {
|
|
647
677
|
const {
|
|
648
678
|
deviceInfo: e,
|
|
649
|
-
source: i
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
679
|
+
source: i,
|
|
680
|
+
isHls: r
|
|
681
|
+
} = me(t), o = w(!1), a = w(""), g = async () => {
|
|
682
|
+
var k;
|
|
683
|
+
if (!((k = e.value) != null && k.deviceId)) return;
|
|
684
|
+
o.value = !0;
|
|
685
|
+
const [c, d] = await rt({
|
|
655
686
|
productId: e.value.productId,
|
|
656
687
|
deviceId: e.value.deviceId,
|
|
657
688
|
source: i.value
|
|
658
689
|
});
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
690
|
+
if (!c) {
|
|
691
|
+
let I = r.value ? "httpHlsStreamURL" : "wsFlvStreamURL";
|
|
692
|
+
a.value = at(d == null ? void 0 : d[I]);
|
|
693
|
+
}
|
|
694
|
+
o.value = !1;
|
|
695
|
+
}, s = (c) => {
|
|
696
|
+
X({
|
|
662
697
|
productId: e.value.productId,
|
|
663
698
|
deviceId: e.value.deviceId,
|
|
664
|
-
direction:
|
|
699
|
+
direction: c,
|
|
665
700
|
zoom: "",
|
|
666
701
|
source: i.value || "web"
|
|
667
702
|
});
|
|
668
|
-
},
|
|
669
|
-
|
|
703
|
+
}, m = (c) => {
|
|
704
|
+
X({
|
|
670
705
|
productId: e.value.productId,
|
|
671
706
|
deviceId: e.value.deviceId,
|
|
672
707
|
direction: "",
|
|
673
|
-
zoom:
|
|
708
|
+
zoom: c,
|
|
674
709
|
source: i.value || "web"
|
|
675
710
|
});
|
|
676
711
|
};
|
|
677
|
-
return
|
|
678
|
-
|
|
679
|
-
}),
|
|
680
|
-
|
|
712
|
+
return J(() => {
|
|
713
|
+
g();
|
|
714
|
+
}), R(() => e.value, () => {
|
|
715
|
+
g();
|
|
681
716
|
}, {
|
|
682
717
|
deep: !0
|
|
683
|
-
}), () =>
|
|
684
|
-
videoUrl:
|
|
685
|
-
loading:
|
|
686
|
-
onDirectionControl:
|
|
687
|
-
onZoomControl:
|
|
718
|
+
}), () => v(x, null, [n.default({
|
|
719
|
+
videoUrl: a.value,
|
|
720
|
+
loading: o.value,
|
|
721
|
+
onDirectionControl: s,
|
|
722
|
+
onZoomControl: m,
|
|
723
|
+
isHls: r.value
|
|
688
724
|
})]);
|
|
689
725
|
}
|
|
690
726
|
});
|
|
691
|
-
function
|
|
692
|
-
const n =
|
|
693
|
-
toggle: i
|
|
694
|
-
|
|
727
|
+
function ut(t) {
|
|
728
|
+
const n = w(0), e = w(), {
|
|
729
|
+
toggle: i,
|
|
730
|
+
isFullscreen: r,
|
|
731
|
+
exit: o
|
|
732
|
+
} = ie(e), a = (s, m) => {
|
|
733
|
+
r.value && o();
|
|
734
|
+
};
|
|
695
735
|
return {
|
|
696
|
-
render: () =>
|
|
736
|
+
render: () => v(Me, {
|
|
697
737
|
ref: e,
|
|
698
738
|
gridNum: t.gridNum,
|
|
699
739
|
activeIndex: n.value,
|
|
700
|
-
"onUpdate:activeIndex": (
|
|
701
|
-
showFn: (
|
|
740
|
+
"onUpdate:activeIndex": (s) => n.value = s,
|
|
741
|
+
showFn: (s) => !!t.deviceList[s]
|
|
702
742
|
}, {
|
|
703
743
|
default: ({
|
|
704
|
-
index:
|
|
744
|
+
index: s
|
|
705
745
|
}) => {
|
|
706
|
-
const
|
|
707
|
-
return
|
|
708
|
-
deviceInfo:
|
|
709
|
-
source:
|
|
746
|
+
const m = t.deviceList[s], c = t.source, d = t.isHls;
|
|
747
|
+
return v(ct, {
|
|
748
|
+
deviceInfo: m,
|
|
749
|
+
source: c,
|
|
750
|
+
isHls: d
|
|
710
751
|
}, {
|
|
711
752
|
default: ({
|
|
712
|
-
videoUrl:
|
|
713
|
-
onDirectionControl:
|
|
714
|
-
onZoomControl:
|
|
715
|
-
loading:
|
|
716
|
-
|
|
753
|
+
videoUrl: k,
|
|
754
|
+
onDirectionControl: I,
|
|
755
|
+
onZoomControl: L,
|
|
756
|
+
loading: F,
|
|
757
|
+
isHls: B
|
|
758
|
+
}) => v(ot, {
|
|
717
759
|
type: "live",
|
|
718
|
-
loading:
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
760
|
+
loading: F,
|
|
761
|
+
isFullscreen: r.value,
|
|
762
|
+
videoUrl: k,
|
|
763
|
+
title: m.deviceName,
|
|
764
|
+
onClose: () => a(),
|
|
765
|
+
onDirectionControl: I,
|
|
766
|
+
onZoomControl: L,
|
|
767
|
+
authType: m.authType === 2 ? ["control"] : [],
|
|
768
|
+
isHls: B
|
|
724
769
|
}, null)
|
|
725
770
|
});
|
|
726
771
|
}
|
|
@@ -728,78 +773,79 @@ function ct(t) {
|
|
|
728
773
|
toggleFullscreen: i
|
|
729
774
|
};
|
|
730
775
|
}
|
|
731
|
-
const
|
|
776
|
+
const dt = /* @__PURE__ */ O({
|
|
732
777
|
__name: "index",
|
|
733
778
|
props: {
|
|
734
779
|
visible: { type: Boolean, default: !1 },
|
|
735
780
|
deviceList: { default: () => [] },
|
|
736
781
|
gridNum: { default: 4 },
|
|
737
|
-
source: {}
|
|
782
|
+
source: {},
|
|
783
|
+
isHls: { type: Boolean, default: !1 }
|
|
738
784
|
},
|
|
739
785
|
emits: ["update:visible"],
|
|
740
786
|
setup(t, { emit: n }) {
|
|
741
|
-
const e = t, i = n,
|
|
787
|
+
const e = t, i = n, r = U({
|
|
742
788
|
get: () => e.visible,
|
|
743
|
-
set: (
|
|
744
|
-
}), { render: o, toggleFullscreen:
|
|
745
|
-
let
|
|
789
|
+
set: (s) => i("update:visible", s)
|
|
790
|
+
}), { render: o, toggleFullscreen: a } = ut(e), g = U(() => {
|
|
791
|
+
let s = {};
|
|
746
792
|
switch (e.gridNum) {
|
|
747
793
|
case 1:
|
|
748
|
-
|
|
794
|
+
s = "one-video";
|
|
749
795
|
break;
|
|
750
796
|
case 4:
|
|
751
|
-
|
|
797
|
+
s = "four-video";
|
|
752
798
|
break;
|
|
753
799
|
case 9:
|
|
754
|
-
|
|
800
|
+
s = "nine-video";
|
|
755
801
|
break;
|
|
756
802
|
}
|
|
757
|
-
return
|
|
803
|
+
return s;
|
|
758
804
|
});
|
|
759
|
-
return (
|
|
805
|
+
return (s, m) => (p(), N(l(ge), {
|
|
760
806
|
size: "mini",
|
|
761
|
-
title: l(
|
|
762
|
-
"custom-class": `das-linakge-video-dialog ${
|
|
763
|
-
modelValue:
|
|
764
|
-
"onUpdate:modelValue":
|
|
807
|
+
title: l(C)("视频监控"),
|
|
808
|
+
"custom-class": `das-linakge-video-dialog ${g.value}`,
|
|
809
|
+
modelValue: r.value,
|
|
810
|
+
"onUpdate:modelValue": m[0] || (m[0] = (c) => r.value = c),
|
|
765
811
|
bodyStyle: { padding: 0 },
|
|
766
812
|
"close-on-click-modal": !1,
|
|
767
813
|
"close-on-press-escape": !1,
|
|
768
814
|
modal: !1,
|
|
769
815
|
"header-style": { display: "flex", justifyContent: "space-between", alignItems: "center" }
|
|
770
816
|
}, {
|
|
771
|
-
header:
|
|
772
|
-
|
|
773
|
-
|
|
817
|
+
header: y(() => [
|
|
818
|
+
f("div", null, [
|
|
819
|
+
f(
|
|
774
820
|
"span",
|
|
775
821
|
null,
|
|
776
|
-
V(l(
|
|
822
|
+
V(l(C)("视频监控")),
|
|
777
823
|
1
|
|
778
824
|
/* TEXT */
|
|
779
825
|
)
|
|
780
826
|
]),
|
|
781
|
-
|
|
782
|
-
content: l(
|
|
827
|
+
v(l(h), {
|
|
828
|
+
content: l(C)("页面全屏")
|
|
783
829
|
}, {
|
|
784
|
-
default:
|
|
785
|
-
|
|
830
|
+
default: y(() => [
|
|
831
|
+
v(l(ke), {
|
|
786
832
|
class: "icon",
|
|
787
833
|
color: "#999",
|
|
788
|
-
onClick: l(
|
|
834
|
+
onClick: l(a)
|
|
789
835
|
}, null, 8, ["onClick"])
|
|
790
836
|
]),
|
|
791
837
|
_: 1
|
|
792
838
|
/* STABLE */
|
|
793
839
|
}, 8, ["content"])
|
|
794
840
|
]),
|
|
795
|
-
default:
|
|
796
|
-
|
|
841
|
+
default: y(() => [
|
|
842
|
+
r.value ? (p(), N(l(o), { key: 0 })) : b("v-if", !0)
|
|
797
843
|
]),
|
|
798
844
|
_: 1
|
|
799
845
|
/* STABLE */
|
|
800
846
|
}, 8, ["title", "custom-class", "modelValue"]));
|
|
801
847
|
}
|
|
802
|
-
}),
|
|
848
|
+
}), pt = {
|
|
803
849
|
加载中: { "zh-CN": "加载中", en: "Loading", _appCode: "framework" },
|
|
804
850
|
正在实时预览: { "zh-CN": "正在实时预览", en: "Real-time Video", _appCode: "framework" },
|
|
805
851
|
声音: { "zh-CN": "声音", en: "Sound", _appCode: "framework" },
|
|
@@ -821,10 +867,10 @@ const ut = /* @__PURE__ */ D({
|
|
|
821
867
|
"聚焦-": { "zh-CN": "聚焦-", en: "Focus-", _appCode: "framework" },
|
|
822
868
|
"聚焦+": { "zh-CN": "聚焦+", en: "Focus+", _appCode: "framework" }
|
|
823
869
|
};
|
|
824
|
-
Ce(
|
|
825
|
-
const
|
|
870
|
+
Ce(pt);
|
|
871
|
+
const Nt = ye(dt), Ft = () => w(null);
|
|
826
872
|
export {
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
873
|
+
Nt as DasVideoDialog,
|
|
874
|
+
Ft as DasVideoDialogRef,
|
|
875
|
+
ut as useVideo
|
|
830
876
|
};
|