@das-fed/ui 7.0.0-zhaohang.1 → 7.0.0-zhaohang.2

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