@das-fed/ui 7.0.0-zhaohang.6 → 7.0.0-zhongshen.1

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