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