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