@das-fed/ui 6.4.0-dev.9 → 6.4.0-hot.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 (241) hide show
  1. package/package.json +8 -6
  2. package/packages/business-components/app-container/index.js +46 -252
  3. package/packages/business-components/app-container/index.js.gz +0 -0
  4. package/packages/business-components/app-container/style.css +1 -1
  5. package/packages/business-components/app-container/style.css.gz +0 -0
  6. package/packages/business-components/change-enterprises/index.js +89 -295
  7. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  8. package/packages/business-components/change-enterprises/style.css +1 -1
  9. package/packages/business-components/change-enterprises/style.css.gz +0 -0
  10. package/packages/business-components/device-panel/index.js +24047 -29070
  11. package/packages/business-components/device-panel/index.js.gz +0 -0
  12. package/packages/business-components/device-panel/style.css +1 -1
  13. package/packages/business-components/device-panel/style.css.gz +0 -0
  14. package/packages/business-components/export-button/index.js +152 -432
  15. package/packages/business-components/export-button/index.js.gz +0 -0
  16. package/packages/business-components/import-button/index.js +323 -603
  17. package/packages/business-components/import-button/index.js.gz +0 -0
  18. package/packages/business-components/process-form/index.js +788 -1276
  19. package/packages/business-components/process-form/index.js.gz +0 -0
  20. package/packages/business-components/process-form/style.css +1 -1
  21. package/packages/business-components/process-log/ProcessLogItem.vue.d.ts +1 -1
  22. package/packages/business-components/process-log/index.d.ts +21 -21
  23. package/packages/business-components/process-log/index.js +329 -3948
  24. package/packages/business-components/process-log/index.js.gz +0 -0
  25. package/packages/business-components/process-search-form/index.js +439 -719
  26. package/packages/business-components/process-search-form/index.js.gz +0 -0
  27. package/packages/business-components/process-table/index.js +538 -819
  28. package/packages/business-components/process-table/index.js.gz +0 -0
  29. package/packages/business-components/urgent-panel/index.js +1587 -2700
  30. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  31. package/packages/business-components/urgent-panel/src/components/urgentPanelModal/apis.d.ts +1 -0
  32. package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-schedule-track/Track.vue.d.ts +2 -2
  33. package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-schedule-track/track.d.ts +1 -1
  34. package/packages/business-components/urgent-panel/style.css +1 -1
  35. package/packages/business-components/urgent-panel/style.css.gz +0 -0
  36. package/packages/business-components/video-dialog/index.js +338 -619
  37. package/packages/business-components/video-dialog/index.js.gz +0 -0
  38. package/packages/components/alert/index.js +52 -3418
  39. package/packages/components/alert/index.js.gz +0 -0
  40. package/packages/components/alert/style.css +1 -1
  41. package/packages/components/alert/style.css.gz +0 -0
  42. package/packages/components/autocomplete/index.js +456 -2872
  43. package/packages/components/autocomplete/index.js.gz +0 -0
  44. package/packages/components/autocomplete/style.css +1 -1
  45. package/packages/components/autocomplete/style.css.gz +0 -0
  46. package/packages/components/breadcrumb/index.js +47 -269
  47. package/packages/components/breadcrumb/index.js.gz +0 -0
  48. package/packages/components/breadcrumb/style.css +1 -1
  49. package/packages/components/breadcrumb/style.css.gz +0 -0
  50. package/packages/components/button/index.js +215 -9801
  51. package/packages/components/button/index.js.gz +0 -0
  52. package/packages/components/button/style.css +1 -1
  53. package/packages/components/button/style.css.gz +0 -0
  54. package/packages/components/calendar/index.js +257 -614
  55. package/packages/components/calendar/index.js.gz +0 -0
  56. package/packages/components/cascader/index.js +139 -6397
  57. package/packages/components/cascader/index.js.gz +0 -0
  58. package/packages/components/cascader/style.css +1 -1
  59. package/packages/components/cascader/style.css.gz +0 -0
  60. package/packages/components/checkbox/index.js +180 -3837
  61. package/packages/components/checkbox/index.js.gz +0 -0
  62. package/packages/components/checkbox/style.css +1 -1
  63. package/packages/components/checkbox/style.css.gz +0 -0
  64. package/packages/components/collapse-panel/index.js +31 -3624
  65. package/packages/components/collapse-panel/index.js.gz +0 -0
  66. package/packages/components/collapse-panel/style.css +1 -1
  67. package/packages/components/collapse-panel/style.css.gz +0 -0
  68. package/packages/components/collaspe/index.js +31 -3624
  69. package/packages/components/collaspe/index.js.gz +0 -0
  70. package/packages/components/collaspe/style.css +1 -1
  71. package/packages/components/color-picker/index.js +106 -5342
  72. package/packages/components/color-picker/index.js.gz +0 -0
  73. package/packages/components/color-picker/style.css +1 -1
  74. package/packages/components/color-picker/style.css.gz +0 -0
  75. package/packages/components/date-picker/index.js +539 -14894
  76. package/packages/components/date-picker/index.js.gz +0 -0
  77. package/packages/components/date-picker/style.css +1 -1
  78. package/packages/components/date-picker/style.css.gz +0 -0
  79. package/packages/components/dialog/index.js +186 -1832
  80. package/packages/components/dialog/index.js.gz +0 -0
  81. package/packages/components/dialog/style.css +1 -1
  82. package/packages/components/dialog/style.css.gz +0 -0
  83. package/packages/components/drawer/index.js +38 -1611
  84. package/packages/components/drawer/index.js.gz +0 -0
  85. package/packages/components/drawer/style.css +1 -1
  86. package/packages/components/dropdown/index.js +54 -4607
  87. package/packages/components/dropdown/index.js.gz +0 -0
  88. package/packages/components/dropdown/style.css +1 -1
  89. package/packages/components/dropdown/style.css.gz +0 -0
  90. package/packages/components/empty/index.js +39 -800
  91. package/packages/components/empty/index.js.gz +0 -0
  92. package/packages/components/image-preview/index.js +34 -1282
  93. package/packages/components/image-preview/index.js.gz +0 -0
  94. package/packages/components/image-upload/index.js +112 -11722
  95. package/packages/components/image-upload/index.js.gz +0 -0
  96. package/packages/components/image-upload/style.css +1 -1
  97. package/packages/components/image-upload/style.css.gz +0 -0
  98. package/packages/components/image-viewer/index.d.ts +9 -0
  99. package/packages/components/image-viewer/index.js +389 -13162
  100. package/packages/components/image-viewer/index.js.gz +0 -0
  101. package/packages/components/image-viewer/src/Index.vue.d.ts +3 -0
  102. package/packages/components/image-viewer/src/hooks/use-handler-image-src.d.ts +2 -1
  103. package/packages/components/image-viewer/src/type.d.ts +3 -0
  104. package/packages/components/image-viewer/style.css +1 -1
  105. package/packages/components/image-viewer/style.css.gz +0 -0
  106. package/packages/components/input/index.js +157 -1084
  107. package/packages/components/input/index.js.gz +0 -0
  108. package/packages/components/input/style.css +1 -1
  109. package/packages/components/input/style.css.gz +0 -0
  110. package/packages/components/input-dialog-select/index.js +2 -2
  111. package/packages/components/input-dialog-select/index.js.gz +0 -0
  112. package/packages/components/input-dialog-select/style.css +1 -1
  113. package/packages/components/input-dialog-select/style.css.gz +0 -0
  114. package/packages/components/input-number/index.js +145 -1828
  115. package/packages/components/input-number/index.js.gz +0 -0
  116. package/packages/components/input-number/style.css +1 -1
  117. package/packages/components/input-number/style.css.gz +0 -0
  118. package/packages/components/live-player/index.js +2883 -3667
  119. package/packages/components/live-player/index.js.gz +0 -0
  120. package/packages/components/live-player/style.css +1 -1
  121. package/packages/components/map/index.js +1189 -5207
  122. package/packages/components/map/index.js.gz +0 -0
  123. package/packages/components/map/style.css +1 -1
  124. package/packages/components/menu-aside/index.js +610 -8303
  125. package/packages/components/menu-aside/index.js.gz +0 -0
  126. package/packages/components/menu-aside/style.css +1 -1
  127. package/packages/components/menu-aside/style.css.gz +0 -0
  128. package/packages/components/menu-header/index.js +39 -10077
  129. package/packages/components/menu-header/index.js.gz +0 -0
  130. package/packages/components/menu-header/style.css +1 -1
  131. package/packages/components/menu-header/style.css.gz +0 -0
  132. package/packages/components/message/index.js +53 -1286
  133. package/packages/components/message/index.js.gz +0 -0
  134. package/packages/components/message/style.css +1 -1
  135. package/packages/components/message/style.css.gz +0 -0
  136. package/packages/components/notification/index.js +48 -3269
  137. package/packages/components/notification/index.js.gz +0 -0
  138. package/packages/components/notification/style.css +1 -1
  139. package/packages/components/notification/style.css.gz +0 -0
  140. package/packages/components/pagination/index.js +153 -8015
  141. package/packages/components/pagination/index.js.gz +0 -0
  142. package/packages/components/pagination/style.css +1 -1
  143. package/packages/components/pagination/style.css.gz +0 -0
  144. package/packages/components/popover/index.js +44 -2492
  145. package/packages/components/popover/index.js.gz +0 -0
  146. package/packages/components/popover/style.css +1 -1
  147. package/packages/components/popover/style.css.gz +0 -0
  148. package/packages/components/progress/index.js +107 -514
  149. package/packages/components/progress/index.js.gz +0 -0
  150. package/packages/components/progress/style.css +1 -1
  151. package/packages/components/progress/style.css.gz +0 -0
  152. package/packages/components/radio/index.js +160 -3724
  153. package/packages/components/radio/index.js.gz +0 -0
  154. package/packages/components/radio/style.css +1 -1
  155. package/packages/components/radio/style.css.gz +0 -0
  156. package/packages/components/scrollbar/index.js +915 -1440
  157. package/packages/components/scrollbar/index.js.gz +0 -0
  158. package/packages/components/scrollbar/style.css +9 -9
  159. package/packages/components/scrollbar/style.css.gz +0 -0
  160. package/packages/components/search/index.js +90 -5261
  161. package/packages/components/search/index.js.gz +0 -0
  162. package/packages/components/search/style.css +1 -1
  163. package/packages/components/search/style.css.gz +0 -0
  164. package/packages/components/search-form/index.js +920 -1008
  165. package/packages/components/search-form/index.js.gz +0 -0
  166. package/packages/components/select/index.js +380 -10505
  167. package/packages/components/select/index.js.gz +0 -0
  168. package/packages/components/select/style.css +1 -1
  169. package/packages/components/select/style.css.gz +0 -0
  170. package/packages/components/select-list/index.js +1173 -1431
  171. package/packages/components/select-list/index.js.gz +0 -0
  172. package/packages/components/select-list/style.css +1 -1
  173. package/packages/components/select-list/style.css.gz +0 -0
  174. package/packages/components/special-range-picker-month/index.js +196 -2645
  175. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  176. package/packages/components/special-range-picker-year/index.js +259 -2707
  177. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  178. package/packages/components/special-range-picker-year/style.css +1 -1
  179. package/packages/components/special-range-picker-year/style.css.gz +0 -0
  180. package/packages/components/spin/index.js +49 -3534
  181. package/packages/components/spin/index.js.gz +0 -0
  182. package/packages/components/spin/style.css +1 -1
  183. package/packages/components/spin/style.css.gz +0 -0
  184. package/packages/components/step/index.js +29 -4085
  185. package/packages/components/step/index.js.gz +0 -0
  186. package/packages/components/step/style.css +1 -1
  187. package/packages/components/steps/index.js +15 -4070
  188. package/packages/components/steps/style.css +1 -1
  189. package/packages/components/steps/style.css.gz +0 -0
  190. package/packages/components/switch/index.js +31 -545
  191. package/packages/components/switch/index.js.gz +0 -0
  192. package/packages/components/switch/style.css +1 -1
  193. package/packages/components/switch/style.css.gz +0 -0
  194. package/packages/components/table/index.js +6287 -18573
  195. package/packages/components/table/index.js.gz +0 -0
  196. package/packages/components/table/src/Table.vue.d.ts +2 -2
  197. package/packages/components/table/style.css +1 -1
  198. package/packages/components/table/style.css.gz +0 -0
  199. package/packages/components/tabs/index.js +173 -12627
  200. package/packages/components/tabs/index.js.gz +0 -0
  201. package/packages/components/tabs/style.css +1 -1
  202. package/packages/components/tabs/style.css.gz +0 -0
  203. package/packages/components/tag/index.js +55 -323
  204. package/packages/components/tag/index.js.gz +0 -0
  205. package/packages/components/tag/style.css +1 -1
  206. package/packages/components/tag/style.css.gz +0 -0
  207. package/packages/components/time-line/index.js +61 -3397
  208. package/packages/components/time-line/index.js.gz +0 -0
  209. package/packages/components/time-line/style.css +1 -1
  210. package/packages/components/time-line/style.css.gz +0 -0
  211. package/packages/components/tooltip/index.js +65 -2171
  212. package/packages/components/tooltip/index.js.gz +0 -0
  213. package/packages/components/tooltip/style.css +1 -1
  214. package/packages/components/tooltip/style.css.gz +0 -0
  215. package/packages/components/tree/index.js +1887 -6747
  216. package/packages/components/tree/index.js.gz +0 -0
  217. package/packages/components/tree/style.css +1 -1
  218. package/packages/components/tree/style.css.gz +0 -0
  219. package/packages/components/tree-select/index.js +358 -2776
  220. package/packages/components/tree-select/index.js.gz +0 -0
  221. package/packages/components/tree-select/style.css +1 -1
  222. package/packages/components/tree-select/style.css.gz +0 -0
  223. package/packages/components/upload/index.js +116 -11726
  224. package/packages/components/upload/index.js.gz +0 -0
  225. package/packages/components/upload/style.css +1 -1
  226. package/packages/components/upload/style.css.gz +0 -0
  227. package/packages/components/virtual-tree/index.js +86 -2923
  228. package/packages/components/virtual-tree/index.js.gz +0 -0
  229. package/packages/components/virtual-tree/style.css +1 -1
  230. package/packages/components/virtual-tree/style.css.gz +0 -0
  231. package/packages/components/watermark/index.js +17 -368
  232. package/packages/business-components/process-form/style.css.gz +0 -0
  233. package/packages/components/collaspe/style.css.gz +0 -0
  234. package/packages/components/drawer/style.css.gz +0 -0
  235. package/packages/components/image-preview/style.css +0 -1
  236. package/packages/components/image-preview/style.css.gz +0 -0
  237. package/packages/components/live-player/style.css.gz +0 -0
  238. package/packages/components/map/style.css.gz +0 -0
  239. package/packages/components/step/style.css.gz +0 -0
  240. package/packages/components/steps/index.js.gz +0 -0
  241. package/packages/components/watermark/index.js.gz +0 -0
@@ -1,57 +1,58 @@
1
1
  import '@das-fed/ui/packages/business-components/video-dialog/style.css';
2
- import { getCurrentScope as Re, onScopeDispose as xe, unref as $, getCurrentInstance as Ne, onMounted as be, nextTick as oe, ref as R, watch as Q, defineComponent as K, useCssVars as Pe, computed as le, openBlock as E, createElementBlock as J, normalizeClass as Ue, renderSlot as Ce, Fragment as Ie, renderList as je, createBlock as V, withCtx as D, createCommentVNode as z, withModifiers as L, createVNode as C, createElementVNode as I, toDisplayString as ze, pushScopeId as Ve, popScopeId as Ae, toRefs as He } from "vue";
3
- import { withInstall as Ye } from "@das-fed/utils/with-install/index";
4
- import { DasDialog as We } from "@das-fed/ui/packages/components/dialog/index";
5
- import { DasTooltip as x } from "@das-fed/ui/packages/components/tooltip/index";
6
- import { DasIconFullscreen2 as Be } from "@das-fed/ui/packages/icons/fullscreen-2/index";
7
- import { DasAutoRegisterIcon as Qe, DasIcon as ne } from "@das-fed/ui/packages/components/icon/index";
8
- import { DasLivePlayer as qe } from "@das-fed/ui/packages/components/live-player/index";
9
- import { DasSpin as Ge } from "@das-fed/ui/packages/components/spin/index";
10
- import { createService as De } from "@das-fed/utils/api-services/src/create-service";
11
- import { getProjectInfo as pe, getToken as Ze } from "@das-fed/utils/common-info";
12
- var me;
13
- const fe = typeof window < "u", Je = (t) => typeof t == "string", Ke = () => {
2
+ import { getCurrentScope as re, onScopeDispose as ae, unref as a, getCurrentInstance as ce, onMounted as Y, nextTick as L, ref as k, watch as O, defineComponent as R, useCssVars as ue, computed as N, openBlock as g, createElementBlock as $, normalizeClass as de, renderSlot as Z, Fragment as K, renderList as pe, createBlock as h, withCtx as f, createCommentVNode as b, withModifiers as y, createVNode as d, createElementVNode as p, toDisplayString as ve, pushScopeId as fe, popScopeId as me, toRefs as ge } from "vue";
3
+ import { withInstall as ye } from "@das-fed/utils/with-install/index";
4
+ import { DasDialog as ke } from "@das-fed/ui/packages/components/dialog/index";
5
+ import { DasTooltip as I } from "@das-fed/ui/packages/components/tooltip/index";
6
+ import { DasIconFullscreen2 as _e } from "@das-fed/ui/packages/icons/fullscreen-2/index";
7
+ import { DasAutoRegisterIcon as Ie, DasIcon as P } from "@das-fed/ui/packages/components/icon/index";
8
+ import { DasLivePlayer as we } from "@das-fed/ui/packages/components/live-player/index";
9
+ import { DasSpin as Ce } from "@das-fed/ui/packages/components/spin/index";
10
+ import be from "dayjs";
11
+ import { createService as X } from "@das-fed/utils/api-services/src/create-service";
12
+ import { getProjectInfo as j, getToken as he } from "@das-fed/utils/common-info";
13
+ var B;
14
+ const z = typeof window < "u", Ee = (t) => typeof t == "string", Oe = () => {
14
15
  };
15
- fe && ((me = window == null ? void 0 : window.navigator) != null && me.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
16
- function Se(t) {
17
- return typeof t == "function" ? t() : $(t);
16
+ z && ((B = window == null ? void 0 : window.navigator) != null && B.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
17
+ function J(t) {
18
+ return typeof t == "function" ? t() : a(t);
18
19
  }
19
- function Xe(t) {
20
+ function Se(t) {
20
21
  return t;
21
22
  }
22
- function Oe(t) {
23
- return Re() ? (xe(t), !0) : !1;
23
+ function ee(t) {
24
+ return re() ? (ae(t), !0) : !1;
24
25
  }
25
- function et(t, a = !0) {
26
- Ne() ? be(t) : a ? t() : oe(t);
26
+ function Fe(t, o = !0) {
27
+ ce() ? Y(t) : o ? t() : L(t);
27
28
  }
28
- function Me(t) {
29
- var a;
30
- const e = Se(t);
31
- return (a = e == null ? void 0 : e.$el) != null ? a : e;
29
+ function te(t) {
30
+ var o;
31
+ const e = J(t);
32
+ return (o = e == null ? void 0 : e.$el) != null ? o : e;
32
33
  }
33
- const tt = fe ? window : void 0, nt = fe ? window.document : void 0;
34
- function ot(...t) {
35
- let a, e, l, p;
36
- if (Je(t[0]) || Array.isArray(t[0]) ? ([e, l, p] = t, a = tt) : [a, e, l, p] = t, !a)
37
- return Ke;
34
+ const De = z ? window : void 0, $e = z ? window.document : void 0;
35
+ function Re(...t) {
36
+ let o, e, l, r;
37
+ if (Ee(t[0]) || Array.isArray(t[0]) ? ([e, l, r] = t, o = De) : [o, e, l, r] = t, !o)
38
+ return Oe;
38
39
  Array.isArray(e) || (e = [e]), Array.isArray(l) || (l = [l]);
39
- const i = [], d = () => {
40
- i.forEach((m) => m()), i.length = 0;
41
- }, _ = (m, g, F, S) => (m.addEventListener(g, F, S), () => m.removeEventListener(g, F, S)), u = Q(() => [Me(a), Se(p)], ([m, g]) => {
42
- d(), m && i.push(...e.flatMap((F) => l.map((S) => _(m, F, S, g))));
43
- }, { immediate: !0, flush: "post" }), y = () => {
44
- u(), d();
40
+ const n = [], s = () => {
41
+ n.forEach((c) => c()), n.length = 0;
42
+ }, v = (c, _, w, E) => (c.addEventListener(_, w, E), () => c.removeEventListener(_, w, E)), i = O(() => [te(o), J(r)], ([c, _]) => {
43
+ s(), c && n.push(...e.flatMap((w) => l.map((E) => v(c, w, E, _))));
44
+ }, { immediate: !0, flush: "post" }), m = () => {
45
+ i(), s();
45
46
  };
46
- return Oe(y), y;
47
+ return ee(m), m;
47
48
  }
48
- function rt(t, a = !1) {
49
- const e = R(), l = () => e.value = !!t();
50
- return l(), et(l, a), e;
49
+ function Pe(t, o = !1) {
50
+ const e = k(), l = () => e.value = !!t();
51
+ return l(), Fe(l, o), e;
51
52
  }
52
- const he = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ye = "__vueuse_ssr_handlers__";
53
- he[ye] = he[ye] || {};
54
- const ge = [
53
+ const M = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Q = "__vueuse_ssr_handlers__";
54
+ M[Q] = M[Q] || {};
55
+ const A = [
55
56
  [
56
57
  "requestFullscreen",
57
58
  "exitFullscreen",
@@ -93,54 +94,54 @@ const ge = [
93
94
  "MSFullscreenError"
94
95
  ]
95
96
  ];
96
- function Ee(t, a = {}) {
97
- const { document: e = nt, autoExit: l = !1 } = a, p = t || (e == null ? void 0 : e.querySelector("html")), i = R(!1);
98
- let d = ge[0];
99
- const _ = rt(() => {
97
+ function ne(t, o = {}) {
98
+ const { document: e = $e, autoExit: l = !1 } = o, r = t || (e == null ? void 0 : e.querySelector("html")), n = k(!1);
99
+ let s = A[0];
100
+ const v = Pe(() => {
100
101
  if (e) {
101
- for (const H of ge)
102
- if (H[1] in e)
103
- return d = H, !0;
102
+ for (const S of A)
103
+ if (S[1] in e)
104
+ return s = S, !0;
104
105
  } else
105
106
  return !1;
106
107
  return !1;
107
- }), [u, y, m, , g] = d;
108
- async function F() {
109
- _.value && (e != null && e[m] && await e[y](), i.value = !1);
108
+ }), [i, m, c, , _] = s;
109
+ async function w() {
110
+ v.value && (e != null && e[c] && await e[m](), n.value = !1);
110
111
  }
111
- async function S() {
112
- if (!_.value)
112
+ async function E() {
113
+ if (!v.value)
113
114
  return;
114
- await F();
115
- const H = Me(p);
116
- H && (await H[u](), i.value = !0);
115
+ await w();
116
+ const S = te(r);
117
+ S && (await S[i](), n.value = !0);
117
118
  }
118
- async function A() {
119
- i.value ? await F() : await S();
119
+ async function T() {
120
+ n.value ? await w() : await E();
120
121
  }
121
- return e && ot(e, g, () => {
122
- i.value = !!(e != null && e[m]);
123
- }, !1), l && Oe(F), {
124
- isSupported: _,
125
- isFullscreen: i,
126
- enter: S,
127
- exit: F,
128
- toggle: A
122
+ return e && Re(e, _, () => {
123
+ n.value = !!(e != null && e[c]);
124
+ }, !1), l && ee(w), {
125
+ isSupported: v,
126
+ isFullscreen: n,
127
+ enter: E,
128
+ exit: w,
129
+ toggle: T
129
130
  };
130
131
  }
131
- var $e;
132
+ var q;
132
133
  (function(t) {
133
134
  t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
134
- })($e || ($e = {}));
135
- var it = Object.defineProperty, _e = Object.getOwnPropertySymbols, st = Object.prototype.hasOwnProperty, at = Object.prototype.propertyIsEnumerable, we = (t, a, e) => a in t ? it(t, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[a] = e, lt = (t, a) => {
136
- for (var e in a || (a = {}))
137
- st.call(a, e) && we(t, e, a[e]);
138
- if (_e)
139
- for (var e of _e(a))
140
- at.call(a, e) && we(t, e, a[e]);
135
+ })(q || (q = {}));
136
+ var Le = Object.defineProperty, G = Object.getOwnPropertySymbols, Ne = Object.prototype.hasOwnProperty, xe = Object.prototype.propertyIsEnumerable, W = (t, o, e) => o in t ? Le(t, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[o] = e, Te = (t, o) => {
137
+ for (var e in o || (o = {}))
138
+ Ne.call(o, e) && W(t, e, o[e]);
139
+ if (G)
140
+ for (var e of G(o))
141
+ xe.call(o, e) && W(t, e, o[e]);
141
142
  return t;
142
143
  };
143
- const ut = {
144
+ const Ue = {
144
145
  easeInSine: [0.12, 0, 0.39, 0],
145
146
  easeOutSine: [0.61, 1, 0.88, 1],
146
147
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -166,43 +167,43 @@ const ut = {
166
167
  easeOutBack: [0.34, 1.56, 0.64, 1],
167
168
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
168
169
  };
169
- lt({
170
- linear: Xe
171
- }, ut);
172
- const ct = /* @__PURE__ */ K({
170
+ Te({
171
+ linear: Se
172
+ }, Ue);
173
+ const ze = /* @__PURE__ */ R({
173
174
  __name: "GridItem",
174
175
  props: {
175
176
  active: { type: Boolean },
176
177
  gridNum: {}
177
178
  },
178
179
  emits: ["itemClick"],
179
- setup(t, { emit: a }) {
180
- Pe((m) => ({
181
- "40d17f34": y.value
180
+ setup(t, { emit: o }) {
181
+ ue((c) => ({
182
+ "40d17f34": m.value
182
183
  }));
183
- const e = t, l = a, p = R(), { toggle: i, isFullscreen: d } = Ee(p), _ = () => {
184
- p.value != document.fullscreenElement && (d.value ? (d.value = !1, oe(() => {
185
- i();
186
- })) : i());
187
- }, u = () => {
184
+ const e = t, l = o, r = k(), { toggle: n, isFullscreen: s } = ne(r), v = () => {
185
+ r.value != document.fullscreenElement && (s.value ? (s.value = !1, L(() => {
186
+ n();
187
+ })) : n());
188
+ }, i = () => {
188
189
  l("itemClick");
189
- }, y = le(() => `calc(100% / ${Math.sqrt(e.gridNum)})`);
190
- return (m, g) => (E(), J("div", {
190
+ }, m = N(() => `calc(100% / ${Math.sqrt(e.gridNum)})`);
191
+ return (c, _) => (g(), $("div", {
191
192
  ref_key: "containerRef",
192
- ref: p,
193
- class: Ue(["wrapper", { "is-active": e.active }]),
194
- onDblclick: g[0] || (g[0] = (F) => _()),
195
- onClick: g[1] || (g[1] = (F) => u())
193
+ ref: r,
194
+ class: de(["wrapper", { "is-active": e.active }]),
195
+ onDblclick: _[0] || (_[0] = (w) => v()),
196
+ onClick: _[1] || (_[1] = (w) => i())
196
197
  }, [
197
- Ce(m.$slots, "default", {}, void 0, !0)
198
+ Z(c.$slots, "default", {}, void 0, !0)
198
199
  ], 34));
199
200
  }
200
- }), ue = (t, a) => {
201
+ }), x = (t, o) => {
201
202
  const e = t.__vccOpts || t;
202
- for (const [l, p] of a)
203
- e[l] = p;
203
+ for (const [l, r] of o)
204
+ e[l] = r;
204
205
  return e;
205
- }, dt = /* @__PURE__ */ ue(ct, [["__scopeId", "data-v-1a6dbdfc"]]), ft = { class: "layout-wrapper" }, vt = /* @__PURE__ */ K({
206
+ }, Ve = /* @__PURE__ */ x(ze, [["__scopeId", "data-v-1a6dbdfc"]]), je = { class: "layout-wrapper" }, Be = /* @__PURE__ */ R({
206
207
  __name: "GridLayout",
207
208
  props: {
208
209
  gridNum: {},
@@ -210,406 +211,124 @@ const ct = /* @__PURE__ */ K({
210
211
  showFn: {}
211
212
  },
212
213
  emits: ["update:activeIndex"],
213
- setup(t, { emit: a }) {
214
- const e = t, l = a, p = (i) => {
215
- l("update:activeIndex", i);
214
+ setup(t, { emit: o }) {
215
+ const e = t, l = o, r = (n) => {
216
+ l("update:activeIndex", n);
216
217
  };
217
- return (i, d) => (E(), J("div", ft, [
218
- (E(!0), J(Ie, null, je(e.gridNum, (_, u) => (E(), V(dt, {
218
+ return (n, s) => (g(), $("div", je, [
219
+ (g(!0), $(K, null, pe(e.gridNum, (v, i) => (g(), h(Ve, {
219
220
  active: !1,
220
221
  "grid-num": e.gridNum,
221
- onItemClick: (y) => p(u)
222
+ onItemClick: (m) => r(i)
222
223
  }, {
223
- default: D(() => [
224
- i.showFn(u) ? Ce(i.$slots, "default", {
224
+ default: f(() => [
225
+ n.showFn(i) ? Z(n.$slots, "default", {
225
226
  key: 0,
226
- index: u
227
- }, void 0, !0) : z("", !0)
227
+ index: i
228
+ }, void 0, !0) : b("", !0)
228
229
  ]),
229
230
  _: 2
230
231
  }, 1032, ["grid-num", "onItemClick"]))), 256))
231
232
  ]));
232
233
  }
233
- }), pt = /* @__PURE__ */ ue(vt, [["__scopeId", "data-v-6c66f7ad"]]);
234
- var mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
235
- function ht(t) {
236
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
237
- }
238
- var Fe = { exports: {} };
239
- (function(t, a) {
240
- (function(e, l) {
241
- t.exports = l();
242
- })(mt, function() {
243
- var e = 1e3, l = 6e4, p = 36e5, i = "millisecond", d = "second", _ = "minute", u = "hour", y = "day", m = "week", g = "month", F = "quarter", S = "year", A = "date", H = "Invalid Date", ce = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, re = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, X = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(c) {
244
- var r = ["th", "st", "nd", "rd"], n = c % 100;
245
- return "[" + c + (r[(n - 20) % 10] || r[n] || r[0]) + "]";
246
- } }, k = function(c, r, n) {
247
- var s = String(c);
248
- return !s || s.length >= r ? c : "" + Array(r + 1 - s.length).join(n) + c;
249
- }, P = { s: k, z: function(c) {
250
- var r = -c.utcOffset(), n = Math.abs(r), s = Math.floor(n / 60), o = n % 60;
251
- return (r <= 0 ? "+" : "-") + k(s, 2, "0") + ":" + k(o, 2, "0");
252
- }, m: function c(r, n) {
253
- if (r.date() < n.date()) return -c(n, r);
254
- var s = 12 * (n.year() - r.year()) + (n.month() - r.month()), o = r.clone().add(s, g), f = n - o < 0, v = r.clone().add(s + (f ? -1 : 1), g);
255
- return +(-(s + (n - o) / (f ? o - v : v - o)) || 0);
256
- }, a: function(c) {
257
- return c < 0 ? Math.ceil(c) || 0 : Math.floor(c);
258
- }, p: function(c) {
259
- return { M: g, y: S, w: m, d: y, D: A, h: u, m: _, s: d, ms: i, Q: F }[c] || String(c || "").toLowerCase().replace(/s$/, "");
260
- }, u: function(c) {
261
- return c === void 0;
262
- } }, U = "en", W = {};
263
- W[U] = X;
264
- var Y = "$isDayjsObject", de = function(c) {
265
- return c instanceof se || !(!c || !c[Y]);
266
- }, ie = function c(r, n, s) {
267
- var o;
268
- if (!r) return U;
269
- if (typeof r == "string") {
270
- var f = r.toLowerCase();
271
- W[f] && (o = f), n && (W[f] = n, o = f);
272
- var v = r.split("-");
273
- if (!o && v.length > 1) return c(v[0]);
274
- } else {
275
- var w = r.name;
276
- W[w] = r, o = w;
277
- }
278
- return !s && o && (U = o), o || !s && U;
279
- }, O = function(c, r) {
280
- if (de(c)) return c.clone();
281
- var n = typeof r == "object" ? r : {};
282
- return n.date = c, n.args = arguments, new se(n);
283
- }, h = P;
284
- h.l = ie, h.i = de, h.w = function(c, r) {
285
- return O(c, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
286
- };
287
- var se = function() {
288
- function c(n) {
289
- this.$L = ie(n.locale, null, !0), this.parse(n), this.$x = this.$x || n.x || {}, this[Y] = !0;
290
- }
291
- var r = c.prototype;
292
- return r.parse = function(n) {
293
- this.$d = function(s) {
294
- var o = s.date, f = s.utc;
295
- if (o === null) return /* @__PURE__ */ new Date(NaN);
296
- if (h.u(o)) return /* @__PURE__ */ new Date();
297
- if (o instanceof Date) return new Date(o);
298
- if (typeof o == "string" && !/Z$/i.test(o)) {
299
- var v = o.match(ce);
300
- if (v) {
301
- var w = v[2] - 1 || 0, b = (v[7] || "0").substring(0, 3);
302
- return f ? new Date(Date.UTC(v[1], w, v[3] || 1, v[4] || 0, v[5] || 0, v[6] || 0, b)) : new Date(v[1], w, v[3] || 1, v[4] || 0, v[5] || 0, v[6] || 0, b);
303
- }
304
- }
305
- return new Date(o);
306
- }(n), this.init();
307
- }, r.init = function() {
308
- var n = this.$d;
309
- this.$y = n.getFullYear(), this.$M = n.getMonth(), this.$D = n.getDate(), this.$W = n.getDay(), this.$H = n.getHours(), this.$m = n.getMinutes(), this.$s = n.getSeconds(), this.$ms = n.getMilliseconds();
310
- }, r.$utils = function() {
311
- return h;
312
- }, r.isValid = function() {
313
- return this.$d.toString() !== H;
314
- }, r.isSame = function(n, s) {
315
- var o = O(n);
316
- return this.startOf(s) <= o && o <= this.endOf(s);
317
- }, r.isAfter = function(n, s) {
318
- return O(n) < this.startOf(s);
319
- }, r.isBefore = function(n, s) {
320
- return this.endOf(s) < O(n);
321
- }, r.$g = function(n, s, o) {
322
- return h.u(n) ? this[s] : this.set(o, n);
323
- }, r.unix = function() {
324
- return Math.floor(this.valueOf() / 1e3);
325
- }, r.valueOf = function() {
326
- return this.$d.getTime();
327
- }, r.startOf = function(n, s) {
328
- var o = this, f = !!h.u(s) || s, v = h.p(n), w = function(G, N) {
329
- var B = h.w(o.$u ? Date.UTC(o.$y, N, G) : new Date(o.$y, N, G), o);
330
- return f ? B : B.endOf(y);
331
- }, b = function(G, N) {
332
- return h.w(o.toDate()[G].apply(o.toDate("s"), (f ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(N)), o);
333
- }, M = this.$W, T = this.$M, j = this.$D, Z = "set" + (this.$u ? "UTC" : "");
334
- switch (v) {
335
- case S:
336
- return f ? w(1, 0) : w(31, 11);
337
- case g:
338
- return f ? w(1, T) : w(0, T + 1);
339
- case m:
340
- var q = this.$locale().weekStart || 0, ee = (M < q ? M + 7 : M) - q;
341
- return w(f ? j - ee : j + (6 - ee), T);
342
- case y:
343
- case A:
344
- return b(Z + "Hours", 0);
345
- case u:
346
- return b(Z + "Minutes", 1);
347
- case _:
348
- return b(Z + "Seconds", 2);
349
- case d:
350
- return b(Z + "Milliseconds", 3);
351
- default:
352
- return this.clone();
353
- }
354
- }, r.endOf = function(n) {
355
- return this.startOf(n, !1);
356
- }, r.$set = function(n, s) {
357
- var o, f = h.p(n), v = "set" + (this.$u ? "UTC" : ""), w = (o = {}, o[y] = v + "Date", o[A] = v + "Date", o[g] = v + "Month", o[S] = v + "FullYear", o[u] = v + "Hours", o[_] = v + "Minutes", o[d] = v + "Seconds", o[i] = v + "Milliseconds", o)[f], b = f === y ? this.$D + (s - this.$W) : s;
358
- if (f === g || f === S) {
359
- var M = this.clone().set(A, 1);
360
- M.$d[w](b), M.init(), this.$d = M.set(A, Math.min(this.$D, M.daysInMonth())).$d;
361
- } else w && this.$d[w](b);
362
- return this.init(), this;
363
- }, r.set = function(n, s) {
364
- return this.clone().$set(n, s);
365
- }, r.get = function(n) {
366
- return this[h.p(n)]();
367
- }, r.add = function(n, s) {
368
- var o, f = this;
369
- n = Number(n);
370
- var v = h.p(s), w = function(T) {
371
- var j = O(f);
372
- return h.w(j.date(j.date() + Math.round(T * n)), f);
373
- };
374
- if (v === g) return this.set(g, this.$M + n);
375
- if (v === S) return this.set(S, this.$y + n);
376
- if (v === y) return w(1);
377
- if (v === m) return w(7);
378
- var b = (o = {}, o[_] = l, o[u] = p, o[d] = e, o)[v] || 1, M = this.$d.getTime() + n * b;
379
- return h.w(M, this);
380
- }, r.subtract = function(n, s) {
381
- return this.add(-1 * n, s);
382
- }, r.format = function(n) {
383
- var s = this, o = this.$locale();
384
- if (!this.isValid()) return o.invalidDate || H;
385
- var f = n || "YYYY-MM-DDTHH:mm:ssZ", v = h.z(this), w = this.$H, b = this.$m, M = this.$M, T = o.weekdays, j = o.months, Z = o.meridiem, q = function(N, B, te, ae) {
386
- return N && (N[B] || N(s, f)) || te[B].slice(0, ae);
387
- }, ee = function(N) {
388
- return h.s(w % 12 || 12, N, "0");
389
- }, G = Z || function(N, B, te) {
390
- var ae = N < 12 ? "AM" : "PM";
391
- return te ? ae.toLowerCase() : ae;
392
- };
393
- return f.replace(re, function(N, B) {
394
- return B || function(te) {
395
- switch (te) {
396
- case "YY":
397
- return String(s.$y).slice(-2);
398
- case "YYYY":
399
- return h.s(s.$y, 4, "0");
400
- case "M":
401
- return M + 1;
402
- case "MM":
403
- return h.s(M + 1, 2, "0");
404
- case "MMM":
405
- return q(o.monthsShort, M, j, 3);
406
- case "MMMM":
407
- return q(j, M);
408
- case "D":
409
- return s.$D;
410
- case "DD":
411
- return h.s(s.$D, 2, "0");
412
- case "d":
413
- return String(s.$W);
414
- case "dd":
415
- return q(o.weekdaysMin, s.$W, T, 2);
416
- case "ddd":
417
- return q(o.weekdaysShort, s.$W, T, 3);
418
- case "dddd":
419
- return T[s.$W];
420
- case "H":
421
- return String(w);
422
- case "HH":
423
- return h.s(w, 2, "0");
424
- case "h":
425
- return ee(1);
426
- case "hh":
427
- return ee(2);
428
- case "a":
429
- return G(w, b, !0);
430
- case "A":
431
- return G(w, b, !1);
432
- case "m":
433
- return String(b);
434
- case "mm":
435
- return h.s(b, 2, "0");
436
- case "s":
437
- return String(s.$s);
438
- case "ss":
439
- return h.s(s.$s, 2, "0");
440
- case "SSS":
441
- return h.s(s.$ms, 3, "0");
442
- case "Z":
443
- return v;
444
- }
445
- return null;
446
- }(N) || v.replace(":", "");
447
- });
448
- }, r.utcOffset = function() {
449
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
450
- }, r.diff = function(n, s, o) {
451
- var f, v = this, w = h.p(s), b = O(n), M = (b.utcOffset() - this.utcOffset()) * l, T = this - b, j = function() {
452
- return h.m(v, b);
453
- };
454
- switch (w) {
455
- case S:
456
- f = j() / 12;
457
- break;
458
- case g:
459
- f = j();
460
- break;
461
- case F:
462
- f = j() / 3;
463
- break;
464
- case m:
465
- f = (T - M) / 6048e5;
466
- break;
467
- case y:
468
- f = (T - M) / 864e5;
469
- break;
470
- case u:
471
- f = T / p;
472
- break;
473
- case _:
474
- f = T / l;
475
- break;
476
- case d:
477
- f = T / e;
478
- break;
479
- default:
480
- f = T;
481
- }
482
- return o ? f : h.a(f);
483
- }, r.daysInMonth = function() {
484
- return this.endOf(g).$D;
485
- }, r.$locale = function() {
486
- return W[this.$L];
487
- }, r.locale = function(n, s) {
488
- if (!n) return this.$L;
489
- var o = this.clone(), f = ie(n, s, !0);
490
- return f && (o.$L = f), o;
491
- }, r.clone = function() {
492
- return h.w(this.$d, this);
493
- }, r.toDate = function() {
494
- return new Date(this.valueOf());
495
- }, r.toJSON = function() {
496
- return this.isValid() ? this.toISOString() : null;
497
- }, r.toISOString = function() {
498
- return this.$d.toISOString();
499
- }, r.toString = function() {
500
- return this.$d.toUTCString();
501
- }, c;
502
- }(), ve = se.prototype;
503
- return O.prototype = ve, [["$ms", i], ["$s", d], ["$m", _], ["$H", u], ["$W", y], ["$M", g], ["$y", S], ["$D", A]].forEach(function(c) {
504
- ve[c[1]] = function(r) {
505
- return this.$g(r, c[0], c[1]);
506
- };
507
- }), O.extend = function(c, r) {
508
- return c.$i || (c(r, se, O), c.$i = !0), O;
509
- }, O.locale = ie, O.isDayjs = de, O.unix = function(c) {
510
- return O(1e3 * c);
511
- }, O.en = W[U], O.Ls = W, O.p = {}, O;
512
- });
513
- })(Fe);
514
- var yt = Fe.exports;
515
- const gt = /* @__PURE__ */ ht(yt), $t = /* @__PURE__ */ K({
234
+ }), Me = /* @__PURE__ */ x(Be, [["__scopeId", "data-v-6c66f7ad"]]), Qe = /* @__PURE__ */ R({
516
235
  __name: "DirectionControl",
517
236
  emits: ["change"],
518
- setup(t, { emit: a }) {
519
- const e = a, l = (p) => {
520
- e("change", p);
237
+ setup(t, { emit: o }) {
238
+ const e = o, l = (r) => {
239
+ e("change", r);
521
240
  };
522
- return (p, i) => (E(), J("div", {
241
+ return (r, n) => (g(), $("div", {
523
242
  class: "direction-control",
524
- onDblclick: i[9] || (i[9] = L((d) => d.stopPropagation(), ["stop"]))
243
+ onDblclick: n[9] || (n[9] = y((s) => s.stopPropagation(), ["stop"]))
525
244
  }, [
526
- C($(x), { content: "左上" }, {
527
- default: D(() => [
528
- I("div", {
245
+ d(a(I), { content: "左上" }, {
246
+ default: f(() => [
247
+ p("div", {
529
248
  class: "icon icon-top-left",
530
- onClick: i[0] || (i[0] = L((d) => l("leftUp"), ["stop"]))
249
+ onClick: n[0] || (n[0] = y((s) => l("leftUp"), ["stop"]))
531
250
  })
532
251
  ]),
533
252
  _: 1
534
253
  }),
535
- C($(x), { content: "上" }, {
536
- default: D(() => [
537
- I("div", {
254
+ d(a(I), { content: "上" }, {
255
+ default: f(() => [
256
+ p("div", {
538
257
  class: "icon icon-top",
539
- onClick: i[1] || (i[1] = L((d) => l("up"), ["stop"]))
258
+ onClick: n[1] || (n[1] = y((s) => l("up"), ["stop"]))
540
259
  })
541
260
  ]),
542
261
  _: 1
543
262
  }),
544
- C($(x), { content: "右上" }, {
545
- default: D(() => [
546
- I("div", {
263
+ d(a(I), { content: "右上" }, {
264
+ default: f(() => [
265
+ p("div", {
547
266
  class: "icon icon-top-right",
548
- onClick: i[2] || (i[2] = L((d) => l("rightUp"), ["stop"]))
267
+ onClick: n[2] || (n[2] = y((s) => l("rightUp"), ["stop"]))
549
268
  })
550
269
  ]),
551
270
  _: 1
552
271
  }),
553
- C($(x), { content: "左" }, {
554
- default: D(() => [
555
- I("div", {
272
+ d(a(I), { content: "左" }, {
273
+ default: f(() => [
274
+ p("div", {
556
275
  class: "icon icon-left",
557
- onClick: i[3] || (i[3] = L((d) => l("left"), ["stop"]))
276
+ onClick: n[3] || (n[3] = y((s) => l("left"), ["stop"]))
558
277
  })
559
278
  ]),
560
279
  _: 1
561
280
  }),
562
- C($(x), { content: "自动" }, {
563
- default: D(() => [
564
- I("div", {
281
+ d(a(I), { content: "自动" }, {
282
+ default: f(() => [
283
+ p("div", {
565
284
  class: "icon icon-auto",
566
- onClick: i[4] || (i[4] = L((d) => l("auto"), ["stop"]))
285
+ onClick: n[4] || (n[4] = y((s) => l("auto"), ["stop"]))
567
286
  })
568
287
  ]),
569
288
  _: 1
570
289
  }),
571
- C($(x), { content: "右" }, {
572
- default: D(() => [
573
- I("div", {
290
+ d(a(I), { content: "右" }, {
291
+ default: f(() => [
292
+ p("div", {
574
293
  class: "icon icon-right",
575
- onClick: i[5] || (i[5] = L((d) => l("right"), ["stop"]))
294
+ onClick: n[5] || (n[5] = y((s) => l("right"), ["stop"]))
576
295
  })
577
296
  ]),
578
297
  _: 1
579
298
  }),
580
- C($(x), { content: "左下" }, {
581
- default: D(() => [
582
- I("div", {
299
+ d(a(I), { content: "左下" }, {
300
+ default: f(() => [
301
+ p("div", {
583
302
  class: "icon icon-bottom-left",
584
- onClick: i[6] || (i[6] = L((d) => l("leftDown"), ["stop"]))
303
+ onClick: n[6] || (n[6] = y((s) => l("leftDown"), ["stop"]))
585
304
  })
586
305
  ]),
587
306
  _: 1
588
307
  }),
589
- C($(x), { content: "下" }, {
590
- default: D(() => [
591
- I("div", {
308
+ d(a(I), { content: "下" }, {
309
+ default: f(() => [
310
+ p("div", {
592
311
  class: "icon icon-bottom",
593
- onClick: i[7] || (i[7] = L((d) => l("down"), ["stop"]))
312
+ onClick: n[7] || (n[7] = y((s) => l("down"), ["stop"]))
594
313
  })
595
314
  ]),
596
315
  _: 1
597
316
  }),
598
- C($(x), { content: "右下" }, {
599
- default: D(() => [
600
- I("div", {
317
+ d(a(I), { content: "右下" }, {
318
+ default: f(() => [
319
+ p("div", {
601
320
  class: "icon icon-bottom-right",
602
- onClick: i[8] || (i[8] = L((d) => l("rightDown"), ["stop"]))
321
+ onClick: n[8] || (n[8] = y((s) => l("rightDown"), ["stop"]))
603
322
  })
604
323
  ]),
605
324
  _: 1
606
325
  })
607
326
  ], 32));
608
327
  }
609
- }), _t = /* @__PURE__ */ ue($t, [["__scopeId", "data-v-3b02830e"]]), wt = (t) => (Ve("data-v-a46773e1"), t = t(), Ae(), t), kt = { class: "video-wrapper" }, bt = { class: "video-top" }, Ct = { class: "video-top_l" }, It = { class: "video-title-wrapper" }, Dt = { class: "video-title" }, St = { class: "video-top_r" }, Ot = {
328
+ }), Ae = /* @__PURE__ */ x(Qe, [["__scopeId", "data-v-3b02830e"]]), qe = (t) => (fe("data-v-a46773e1"), t = t(), me(), t), Ge = { class: "video-wrapper" }, We = { class: "video-top" }, He = { class: "video-top_l" }, Ye = { class: "video-title-wrapper" }, Ze = { class: "video-title" }, Ke = { class: "video-top_r" }, Xe = {
610
329
  key: 0,
611
330
  class: "play-status"
612
- }, Mt = { class: "video-bottom" }, Et = /* @__PURE__ */ wt(() => /* @__PURE__ */ I("div", { class: "video-bottom_l" }, null, -1)), Ft = { class: "video-bottom_r" }, Tt = /* @__PURE__ */ K({
331
+ }, Je = { class: "video-bottom" }, et = /* @__PURE__ */ qe(() => /* @__PURE__ */ p("div", { class: "video-bottom_l" }, null, -1)), tt = { class: "video-bottom_r" }, nt = /* @__PURE__ */ R({
613
332
  __name: "index",
614
333
  props: {
615
334
  videoUrl: {},
@@ -622,214 +341,214 @@ const gt = /* @__PURE__ */ ht(yt), $t = /* @__PURE__ */ K({
622
341
  onReplay: {}
623
342
  },
624
343
  emits: ["close", "directionControl", "zoomControl"],
625
- setup(t, { emit: a }) {
626
- const e = t, l = a;
627
- Qe({
344
+ setup(t, { emit: o }) {
345
+ const e = t, l = o;
346
+ Ie({
628
347
  muted: import("@das-fed/ui/packages/icons/muted"),
629
348
  volume: import("@das-fed/ui/packages/icons/volume"),
630
349
  shrink: import("@das-fed/ui/packages/icons/shrink"),
631
350
  enlarge: import("@das-fed/ui/packages/icons/enlarge"),
632
351
  "direction-control": import("@das-fed/ui/packages/icons/direction-control")
633
352
  });
634
- const p = R(!0), i = R(), d = R(!1), _ = R(), u = le(() => {
635
- var k;
636
- return (k = _.value) == null ? void 0 : k.video;
637
- }), y = R(!1), m = R(!0), g = (k) => {
638
- i.value = k, i.value.on(window.mpegts.Events.ERROR, (P) => {
353
+ const r = k(!0), n = k(), s = k(!1), v = k(), i = N(() => {
354
+ var u;
355
+ return (u = v.value) == null ? void 0 : u.video;
356
+ }), m = k(!1), c = k(!0), _ = (u) => {
357
+ n.value = u, n.value.on(window.mpegts.Events.ERROR, (C) => {
639
358
  });
640
- }, F = () => {
641
- p.value = !p.value, i.value && (i.value.muted = p.value);
642
- }, S = () => {
643
- d.value = !d.value;
644
- }, A = R(""), H = () => {
645
- const k = document.createElement("canvas");
646
- if (u.value) {
647
- k.width = u.value.clientWidth, k.height = u.value.clientHeight;
648
- const P = k.getContext("2d");
649
- P == null || P.drawImage(u.value, 0, 0, k.width, k.height);
650
- const U = k.toDataURL("image/jpg"), W = `【${e.title}】${gt().format("YYYYMMDDHHmmss").toString()}.jpg`;
651
- if (A.value = U, "download" in document.createElement("a")) {
652
- const Y = document.createElement("a");
653
- Y.download = W, Y.style.display = "none", Y.href = U, document.body.appendChild(Y), document.body.appendChild(k), Y.click(), URL.revokeObjectURL(Y.href), document.body.removeChild(Y), document.body.removeChild(k);
359
+ }, w = () => {
360
+ r.value = !r.value, n.value && (n.value.muted = r.value);
361
+ }, E = () => {
362
+ s.value = !s.value;
363
+ }, T = k(""), S = () => {
364
+ const u = document.createElement("canvas");
365
+ if (i.value) {
366
+ u.width = i.value.clientWidth, u.height = i.value.clientHeight;
367
+ const C = u.getContext("2d");
368
+ C == null || C.drawImage(i.value, 0, 0, u.width, u.height);
369
+ const D = u.toDataURL("image/jpg"), se = `【${e.title}】${be().format("YYYYMMDDHHmmss").toString()}.jpg`;
370
+ if (T.value = D, "download" in document.createElement("a")) {
371
+ const F = document.createElement("a");
372
+ F.download = se, F.style.display = "none", F.href = D, document.body.appendChild(F), document.body.appendChild(u), F.click(), URL.revokeObjectURL(F.href), document.body.removeChild(F), document.body.removeChild(u);
654
373
  }
655
374
  }
656
- }, ce = (k) => {
657
- l("directionControl", k);
658
- }, re = (k) => {
659
- l("zoomControl", k);
660
- }, X = (k) => e.authType.includes(k);
661
- return Q(
662
- () => u.value,
375
+ }, ie = (u) => {
376
+ l("directionControl", u);
377
+ }, V = (u) => {
378
+ l("zoomControl", u);
379
+ }, U = (u) => e.authType.includes(u);
380
+ return O(
381
+ () => i.value,
663
382
  () => {
664
- u.value && u.value.addEventListener("ended", () => {
665
- y.value = !0, e.type === "playback" && (m.value = !1);
383
+ i.value && i.value.addEventListener("ended", () => {
384
+ m.value = !0, e.type === "playback" && (c.value = !1);
666
385
  });
667
386
  }
668
- ), Q(
669
- () => u.value,
387
+ ), O(
388
+ () => i.value,
670
389
  () => {
671
- u.value && oe(() => {
672
- u.value.playbackRate = e.playbackRate || 1;
390
+ i.value && L(() => {
391
+ i.value.playbackRate = e.playbackRate || 1;
673
392
  });
674
393
  }
675
- ), Q(
676
- () => i.value,
394
+ ), O(
395
+ () => n.value,
677
396
  () => {
678
- i.value && oe(() => {
679
- i.value.muted = p.value;
397
+ n.value && L(() => {
398
+ n.value.muted = r.value;
680
399
  });
681
400
  }
682
- ), Q(
401
+ ), O(
683
402
  () => e.playbackRate,
684
403
  () => {
685
- u.value && (u.value.playbackRate = e.playbackRate || 1);
404
+ i.value && (i.value.playbackRate = e.playbackRate || 1);
686
405
  },
687
406
  {
688
407
  immediate: !0
689
408
  }
690
- ), Q(
409
+ ), O(
691
410
  () => e.paused,
692
411
  () => {
693
- i.value && (e.paused ? i.value.pause() : i.value.play());
412
+ n.value && (e.paused ? n.value.pause() : n.value.play());
694
413
  }
695
- ), Q(
414
+ ), O(
696
415
  () => e.videoUrl,
697
416
  () => {
698
- m.value = !1, oe(() => {
699
- m.value = !0;
417
+ c.value = !1, L(() => {
418
+ c.value = !0;
700
419
  });
701
420
  }
702
- ), (k, P) => (E(), J("div", kt, [
703
- C($(Ge), {
421
+ ), (u, C) => (g(), $("div", Ge, [
422
+ d(a(Ce), {
704
423
  spinning: e.loading,
705
424
  type: "component",
706
425
  tip: "加载中..."
707
426
  }, {
708
- default: D(() => [
709
- I("div", bt, [
710
- I("div", Ct, [
711
- I("div", It, [
712
- I("div", Dt, ze(e.title.length > 20 ? e.title.slice(0, 19) + "..." : e.title), 1)
427
+ default: f(() => [
428
+ p("div", We, [
429
+ p("div", He, [
430
+ p("div", Ye, [
431
+ p("div", Ze, ve(e.title.length > 20 ? e.title.slice(0, 19) + "..." : e.title), 1)
713
432
  ])
714
433
  ]),
715
- I("div", St, [
716
- ["live"].includes(k.type) ? (E(), J("span", Ot, "正在实时预览")) : z("", !0)
434
+ p("div", Ke, [
435
+ ["live"].includes(u.type) ? (g(), $("span", Xe, "正在实时预览")) : b("", !0)
717
436
  ])
718
437
  ]),
719
- e.videoUrl && m.value ? (E(), V($(qe), {
438
+ e.videoUrl && c.value ? (g(), h(a(we), {
720
439
  key: 0,
721
440
  type: "flv",
722
441
  ref_key: "dasLivePlayerRef",
723
- ref: _,
724
- muted: p.value,
725
- onLoaded: g,
442
+ ref: v,
443
+ muted: r.value,
444
+ onLoaded: _,
726
445
  src: e.videoUrl
727
- }, null, 8, ["muted", "src"])) : z("", !0),
728
- I("div", Mt, [
729
- Et,
730
- I("div", Ft, [
731
- I("div", {
446
+ }, null, 8, ["muted", "src"])) : b("", !0),
447
+ p("div", Je, [
448
+ et,
449
+ p("div", tt, [
450
+ p("div", {
732
451
  class: "controls",
733
- onDblclick: P[2] || (P[2] = L((U) => U.stopPropagation(), ["stop"]))
452
+ onDblclick: C[2] || (C[2] = y((D) => D.stopPropagation(), ["stop"]))
734
453
  }, [
735
- C($(x), { content: "声音" }, {
736
- default: D(() => [
737
- C($(ne), {
454
+ d(a(I), { content: "声音" }, {
455
+ default: f(() => [
456
+ d(a(P), {
738
457
  class: "icon icon-volume",
739
- icon: p.value ? "muted" : "volume",
740
- onClick: L(F, ["stop"])
458
+ icon: r.value ? "muted" : "volume",
459
+ onClick: y(w, ["stop"])
741
460
  }, null, 8, ["icon"])
742
461
  ]),
743
462
  _: 1
744
463
  }),
745
- C($(x), { content: "截图" }, {
746
- default: D(() => [
747
- C($(ne), {
464
+ d(a(I), { content: "截图" }, {
465
+ default: f(() => [
466
+ d(a(P), {
748
467
  class: "icon icon-screenshot",
749
468
  icon: "screenshot",
750
- onClick: L(H, ["stop"])
469
+ onClick: y(S, ["stop"])
751
470
  })
752
471
  ]),
753
472
  _: 1
754
473
  }),
755
- X("control") ? (E(), V($(x), {
474
+ U("control") ? (g(), h(a(I), {
756
475
  key: 0,
757
476
  content: "聚焦-"
758
477
  }, {
759
- default: D(() => [
760
- ["live", "polling"].includes(e.type) ? (E(), V($(ne), {
478
+ default: f(() => [
479
+ ["live", "polling"].includes(e.type) ? (g(), h(a(P), {
761
480
  key: 0,
762
481
  class: "icon icon-shrink",
763
482
  icon: "shrink",
764
- onClick: P[0] || (P[0] = L((U) => re("zoomOut"), ["stop"]))
765
- })) : z("", !0)
483
+ onClick: C[0] || (C[0] = y((D) => V("zoomOut"), ["stop"]))
484
+ })) : b("", !0)
766
485
  ]),
767
486
  _: 1
768
- })) : z("", !0),
769
- X("control") ? (E(), V($(x), {
487
+ })) : b("", !0),
488
+ U("control") ? (g(), h(a(I), {
770
489
  key: 1,
771
490
  content: "聚焦+"
772
491
  }, {
773
- default: D(() => [
774
- ["live", "polling"].includes(e.type) ? (E(), V($(ne), {
492
+ default: f(() => [
493
+ ["live", "polling"].includes(e.type) ? (g(), h(a(P), {
775
494
  key: 0,
776
495
  class: "icon icon-enlarge",
777
496
  icon: "enlarge",
778
- onClick: P[1] || (P[1] = L((U) => re("zoomIn"), ["stop"]))
779
- })) : z("", !0)
497
+ onClick: C[1] || (C[1] = y((D) => V("zoomIn"), ["stop"]))
498
+ })) : b("", !0)
780
499
  ]),
781
500
  _: 1
782
- })) : z("", !0),
783
- X("control") ? (E(), V($(x), {
501
+ })) : b("", !0),
502
+ U("control") ? (g(), h(a(I), {
784
503
  key: 2,
785
504
  content: "方向控制"
786
505
  }, {
787
- default: D(() => [
788
- ["live", "polling"].includes(e.type) ? (E(), V($(ne), {
506
+ default: f(() => [
507
+ ["live", "polling"].includes(e.type) ? (g(), h(a(P), {
789
508
  key: 0,
790
509
  class: "icon icon-direction-control",
791
510
  icon: "direction-control",
792
- onClick: L(S, ["stop"])
793
- })) : z("", !0)
511
+ onClick: y(E, ["stop"])
512
+ })) : b("", !0)
794
513
  ]),
795
514
  _: 1
796
- })) : z("", !0)
515
+ })) : b("", !0)
797
516
  ], 32)
798
517
  ])
799
518
  ]),
800
- d.value ? (E(), V(_t, {
519
+ s.value ? (g(), h(Ae, {
801
520
  key: 1,
802
- onChange: ce
803
- })) : z("", !0)
521
+ onChange: ie
522
+ })) : b("", !0)
804
523
  ]),
805
524
  _: 1
806
525
  }, 8, ["spinning"])
807
526
  ]));
808
527
  }
809
- }), Lt = /* @__PURE__ */ ue(Tt, [["__scopeId", "data-v-a46773e1"]]), Rt = "/api/intelligent-security/video/v1", xt = "v1", Nt = De(`/api/enterpriseright/permission/${xt}`), Te = De(`${Rt}`, Pt);
810
- function Pt(t) {
811
- const a = pe() ? pe().id : 1;
812
- return t.params || (t.params = {}), t.params.project = a, t.params.projectId = a, t;
528
+ }), ot = /* @__PURE__ */ x(nt, [["__scopeId", "data-v-a46773e1"]]), lt = "/api/intelligent-security/video/v1", it = "v1", st = X(`/api/enterpriseright/permission/${it}`), oe = X(`${lt}`, rt);
529
+ function rt(t) {
530
+ const o = j() ? j().id : 1;
531
+ return t.params || (t.params = {}), t.params.project = o, t.params.projectId = o, t;
813
532
  }
814
- function Le(t) {
815
- const a = new URLSearchParams("");
533
+ function le(t) {
534
+ const o = new URLSearchParams("");
816
535
  for (let [e, l] of Object.entries(t))
817
- a.append(e, l);
818
- return a.toString();
536
+ o.append(e, l);
537
+ return o.toString();
819
538
  }
820
- function ke(t) {
821
- return Te.post(`/device/ptz?${Le(t)}`)().run();
539
+ function H(t) {
540
+ return oe.post(`/device/ptz?${le(t)}`)().run();
822
541
  }
823
- function Ut(t) {
824
- return Te.post(`/device/video/url/preview?${Le(t)}`)().run();
542
+ function at(t) {
543
+ return oe.post(`/device/video/url/preview?${le(t)}`)().run();
825
544
  }
826
- Nt.post("data/device-auth");
827
- const jt = (t) => {
828
- const a = Ze();
829
- return `${t}?token=${a}`;
545
+ st.post("data/device-auth");
546
+ const ct = (t) => {
547
+ const o = he();
548
+ return `${t}?token=${o}`;
830
549
  };
831
- R([]);
832
- const zt = /* @__PURE__ */ K({
550
+ k([]);
551
+ const ut = /* @__PURE__ */ R({
833
552
  props: {
834
553
  deviceInfo: {
835
554
  type: Object,
@@ -837,81 +556,81 @@ const zt = /* @__PURE__ */ K({
837
556
  }
838
557
  },
839
558
  setup(t, {
840
- slots: a
559
+ slots: o
841
560
  }) {
842
561
  const {
843
562
  deviceInfo: e
844
- } = He(t), l = R(!1), p = R(""), i = async () => {
845
- var m;
846
- if (!((m = e.value) != null && m.deviceId)) return;
563
+ } = ge(t), l = k(!1), r = k(""), n = async () => {
564
+ var c;
565
+ if (!((c = e.value) != null && c.deviceId)) return;
847
566
  l.value = !0;
848
- const [u, y] = await Ut({
567
+ const [i, m] = await at({
849
568
  productId: e.value.productId,
850
569
  deviceId: e.value.deviceId
851
570
  });
852
- u || (p.value = jt(y == null ? void 0 : y.wsFlvStreamURL)), l.value = !1;
853
- }, d = (u) => {
854
- ke({
571
+ i || (r.value = ct(m == null ? void 0 : m.wsFlvStreamURL)), l.value = !1;
572
+ }, s = (i) => {
573
+ H({
855
574
  productId: e.value.productId,
856
575
  deviceId: e.value.deviceId,
857
- direction: u,
576
+ direction: i,
858
577
  zoom: ""
859
578
  });
860
- }, _ = (u) => {
861
- ke({
579
+ }, v = (i) => {
580
+ H({
862
581
  productId: e.value.productId,
863
582
  deviceId: e.value.deviceId,
864
583
  direction: "",
865
- zoom: u
584
+ zoom: i
866
585
  });
867
586
  };
868
- return be(() => {
869
- i();
870
- }), Q(() => e.value, () => {
871
- i();
587
+ return Y(() => {
588
+ n();
589
+ }), O(() => e.value, () => {
590
+ n();
872
591
  }, {
873
592
  deep: !0
874
- }), () => C(Ie, null, [a.default({
875
- videoUrl: p.value,
593
+ }), () => d(K, null, [o.default({
594
+ videoUrl: r.value,
876
595
  loading: l.value,
877
- onDirectionControl: d,
878
- onZoomControl: _
596
+ onDirectionControl: s,
597
+ onZoomControl: v
879
598
  })]);
880
599
  }
881
600
  });
882
- function Vt(t) {
883
- const a = R(0), e = R(), {
601
+ function dt(t) {
602
+ const o = k(0), e = k(), {
884
603
  toggle: l,
885
- isFullscreen: p
886
- } = Ee(e);
604
+ isFullscreen: r
605
+ } = ne(e);
887
606
  return {
888
- render: () => C(pt, {
607
+ render: () => d(Me, {
889
608
  ref: e,
890
609
  gridNum: t.gridNum,
891
- activeIndex: a.value,
892
- "onUpdate:activeIndex": (d) => a.value = d,
893
- showFn: (d) => !!t.deviceList[d]
610
+ activeIndex: o.value,
611
+ "onUpdate:activeIndex": (s) => o.value = s,
612
+ showFn: (s) => !!t.deviceList[s]
894
613
  }, {
895
614
  default: ({
896
- index: d
615
+ index: s
897
616
  }) => {
898
- const _ = t.deviceList[d];
899
- return C(zt, {
900
- deviceInfo: _
617
+ const v = t.deviceList[s];
618
+ return d(ut, {
619
+ deviceInfo: v
901
620
  }, {
902
621
  default: ({
903
- videoUrl: u,
904
- onDirectionControl: y,
905
- onZoomControl: m,
906
- loading: g
907
- }) => C(Lt, {
622
+ videoUrl: i,
623
+ onDirectionControl: m,
624
+ onZoomControl: c,
625
+ loading: _
626
+ }) => d(ot, {
908
627
  type: "live",
909
- loading: g,
910
- videoUrl: u,
911
- title: _.deviceName,
912
- onDirectionControl: y,
913
- onZoomControl: m,
914
- authType: _.authType === 2 ? ["control"] : []
628
+ loading: _,
629
+ videoUrl: i,
630
+ title: v.deviceName,
631
+ onDirectionControl: m,
632
+ onZoomControl: c,
633
+ authType: v.authType === 2 ? ["control"] : []
915
634
  }, null)
916
635
  });
917
636
  }
@@ -919,9 +638,9 @@ function Vt(t) {
919
638
  toggleFullscreen: l
920
639
  };
921
640
  }
922
- const At = /* @__PURE__ */ I("div", null, [
923
- /* @__PURE__ */ I("span", null, "视频监控")
924
- ], -1), Ht = /* @__PURE__ */ K({
641
+ const pt = /* @__PURE__ */ p("div", null, [
642
+ /* @__PURE__ */ p("span", null, "视频监控")
643
+ ], -1), vt = /* @__PURE__ */ R({
925
644
  __name: "index",
926
645
  props: {
927
646
  visible: { type: Boolean, default: !1 },
@@ -929,59 +648,59 @@ const At = /* @__PURE__ */ I("div", null, [
929
648
  gridNum: { default: 4 }
930
649
  },
931
650
  emits: ["update:visible"],
932
- setup(t, { emit: a }) {
933
- const e = t, l = a, p = le({
651
+ setup(t, { emit: o }) {
652
+ const e = t, l = o, r = N({
934
653
  get: () => e.visible,
935
- set: (u) => l("update:visible", u)
936
- }), { render: i, toggleFullscreen: d } = Vt(e), _ = le(() => {
937
- let u = {};
654
+ set: (i) => l("update:visible", i)
655
+ }), { render: n, toggleFullscreen: s } = dt(e), v = N(() => {
656
+ let i = {};
938
657
  switch (e.gridNum) {
939
658
  case 1:
940
- u = "one-video";
659
+ i = "one-video";
941
660
  break;
942
661
  case 4:
943
- u = "four-video";
662
+ i = "four-video";
944
663
  break;
945
664
  case 9:
946
- u = "nine-video";
665
+ i = "nine-video";
947
666
  break;
948
667
  }
949
- return u;
668
+ return i;
950
669
  });
951
- return (u, y) => (E(), V($(We), {
670
+ return (i, m) => (g(), h(a(ke), {
952
671
  size: "mini",
953
672
  title: "视频监控",
954
- "custom-class": `das-linakge-video-dialog ${_.value}`,
955
- modelValue: p.value,
956
- "onUpdate:modelValue": y[0] || (y[0] = (m) => p.value = m),
673
+ "custom-class": `das-linakge-video-dialog ${v.value}`,
674
+ modelValue: r.value,
675
+ "onUpdate:modelValue": m[0] || (m[0] = (c) => r.value = c),
957
676
  bodyStyle: { padding: 0 },
958
677
  "close-on-click-modal": !1,
959
678
  "close-on-press-escape": !1,
960
679
  modal: !1,
961
680
  "header-style": { display: "flex", justifyContent: "space-between", alignItems: "center" }
962
681
  }, {
963
- header: D(() => [
964
- At,
965
- C($(x), { content: "页面全屏" }, {
966
- default: D(() => [
967
- C($(Be), {
682
+ header: f(() => [
683
+ pt,
684
+ d(a(I), { content: "页面全屏" }, {
685
+ default: f(() => [
686
+ d(a(_e), {
968
687
  class: "icon",
969
688
  color: "#999",
970
- onClick: $(d)
689
+ onClick: a(s)
971
690
  }, null, 8, ["onClick"])
972
691
  ]),
973
692
  _: 1
974
693
  })
975
694
  ]),
976
- default: D(() => [
977
- p.value ? (E(), V($(i), { key: 0 })) : z("", !0)
695
+ default: f(() => [
696
+ r.value ? (g(), h(a(n), { key: 0 })) : b("", !0)
978
697
  ]),
979
698
  _: 1
980
699
  }, 8, ["custom-class", "modelValue"]));
981
700
  }
982
- }), en = Ye(Ht), tn = () => R(null);
701
+ }), Et = ye(vt), Ot = () => k(null);
983
702
  export {
984
- en as DasVideoDialog,
985
- tn as DasVideoDialogRef,
986
- Vt as useVideo
703
+ Et as DasVideoDialog,
704
+ Ot as DasVideoDialogRef,
705
+ dt as useVideo
987
706
  };