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