@das-fed/ui 6.4.0-dev.51 → 6.4.0-dev.53

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 (187) hide show
  1. package/esm-map.json +3 -1
  2. package/i18n-collection/en.js +426 -425
  3. package/i18n-collection/zh-CN.js +437 -437
  4. package/package.json +5 -5
  5. package/packages/business-components/change-enterprises/i18n/index.d.ts +15 -0
  6. package/packages/business-components/change-enterprises/index.js +51 -45
  7. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  8. package/packages/business-components/change-pwd/i18n/index.d.ts +77 -1
  9. package/packages/business-components/change-pwd/index.js +118 -99
  10. package/packages/business-components/change-pwd/index.js.gz +0 -0
  11. package/packages/business-components/currency-page/i18n/index.d.ts +19 -0
  12. package/packages/business-components/currency-page/index.js +27 -20
  13. package/packages/business-components/currency-page/index.js.gz +0 -0
  14. package/packages/business-components/device-panel/i18n/index.d.ts +767 -0
  15. package/packages/business-components/device-panel/index.js +4961 -4767
  16. package/packages/business-components/device-panel/index.js.gz +0 -0
  17. package/packages/business-components/device-panel/style.css +1 -1
  18. package/packages/business-components/device-panel/style.css.gz +0 -0
  19. package/packages/business-components/export-button/i18n/index.d.ts +51 -0
  20. package/packages/business-components/export-button/index.js +117 -102
  21. package/packages/business-components/export-button/index.js.gz +0 -0
  22. package/packages/business-components/import-button/i18n/index.d.ts +103 -0
  23. package/packages/business-components/import-button/index.js +220 -192
  24. package/packages/business-components/import-button/index.js.gz +0 -0
  25. package/packages/business-components/model-table-dialog/i18n/index.d.ts +27 -0
  26. package/packages/business-components/model-table-dialog/index.js +663 -660
  27. package/packages/business-components/model-table-dialog/index.js.gz +0 -0
  28. package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +48 -16
  29. package/packages/business-components/model-table-dialog/style.css +1 -1
  30. package/packages/business-components/model-table-dialog/style.css.gz +0 -0
  31. package/packages/business-components/process-configuration/i18n/index.d.ts +114 -1
  32. package/packages/business-components/process-configuration/index.js +158 -130
  33. package/packages/business-components/process-configuration/index.js.gz +0 -0
  34. package/packages/business-components/process-form/api-service/formPreView.d.ts +7 -0
  35. package/packages/business-components/process-form/apis.d.ts +1 -0
  36. package/packages/business-components/process-form/i18n/index.d.ts +279 -0
  37. package/packages/business-components/process-form/index.js +1170 -1071
  38. package/packages/business-components/process-form/index.js.gz +0 -0
  39. package/packages/business-components/process-form/src/widgets/store.d.ts +1 -0
  40. package/packages/business-components/process-form/style.css +1 -1
  41. package/packages/business-components/process-log/i18n/index.d.ts +33 -1
  42. package/packages/business-components/process-log/index.js +151 -146
  43. package/packages/business-components/process-log/index.js.gz +0 -0
  44. package/packages/business-components/process-search-form/i18n/index.d.ts +39 -0
  45. package/packages/business-components/process-search-form/index.d.ts +2 -2
  46. package/packages/business-components/process-search-form/index.js +420 -389
  47. package/packages/business-components/process-search-form/index.js.gz +0 -0
  48. package/packages/business-components/process-search-form/src/App.vue.d.ts +2 -2
  49. package/packages/business-components/process-search-form/src/type.d.ts +1 -1
  50. package/packages/business-components/process-table/i18n/index.d.ts +35 -0
  51. package/packages/business-components/process-table/index.js +265 -254
  52. package/packages/business-components/process-table/index.js.gz +0 -0
  53. package/packages/business-components/upload-file/i18n/index.d.ts +7 -0
  54. package/packages/business-components/upload-file/index.js +43 -38
  55. package/packages/business-components/upload-file/index.js.gz +0 -0
  56. package/packages/business-components/upload-file/src/type.d.ts +3 -0
  57. package/packages/business-components/urgent-panel/i18n/index.d.ts +331 -0
  58. package/packages/business-components/urgent-panel/index.js +900 -814
  59. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  60. package/packages/business-components/user-org-dialog/i18n/index.d.ts +53 -1
  61. package/packages/business-components/user-org-dialog/index.js +196 -186
  62. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  63. package/packages/business-components/video-dialog/i18n/index.d.ts +71 -0
  64. package/packages/business-components/video-dialog/index.js +199 -179
  65. package/packages/business-components/video-dialog/index.js.gz +0 -0
  66. package/packages/components/button/i18n/index.d.ts +1 -6
  67. package/packages/components/button/index.js +16 -21
  68. package/packages/components/button/index.js.gz +0 -0
  69. package/packages/components/calendar/i18n/index.d.ts +52 -44
  70. package/packages/components/calendar/index.js +77 -75
  71. package/packages/components/calendar/index.js.gz +0 -0
  72. package/packages/components/cascader/i18n/index.d.ts +7 -0
  73. package/packages/components/cascader/index.js +38 -35
  74. package/packages/components/cascader/index.js.gz +0 -0
  75. package/packages/components/color-picker/i18n/index.d.ts +7 -0
  76. package/packages/components/color-picker/index.js +37 -34
  77. package/packages/components/color-picker/index.js.gz +0 -0
  78. package/packages/components/custom-search-item/i18n/index.d.ts +7 -0
  79. package/packages/components/custom-search-item/index.js +27 -24
  80. package/packages/components/custom-search-item/index.js.gz +0 -0
  81. package/packages/components/date-picker/i18n/index.d.ts +15 -0
  82. package/packages/components/date-picker/index.js +81 -76
  83. package/packages/components/date-picker/index.js.gz +0 -0
  84. package/packages/components/dialog/i18n/index.d.ts +6 -6
  85. package/packages/components/dialog/index.js +58 -58
  86. package/packages/components/dialog/index.js.gz +0 -0
  87. package/packages/components/dimple-layout/i18n/index.d.ts +43 -0
  88. package/packages/components/dimple-layout/index.js +1077 -1064
  89. package/packages/components/dimple-layout/index.js.gz +0 -0
  90. package/packages/components/dropdown/i18n/index.d.ts +7 -0
  91. package/packages/components/dropdown/index.js +32 -29
  92. package/packages/components/dropdown/index.js.gz +0 -0
  93. package/packages/components/empty/index.js +14 -16
  94. package/packages/components/empty/index.js.gz +0 -0
  95. package/packages/components/image-upload/i18n/index.d.ts +27 -3
  96. package/packages/components/image-upload/index.js +84 -78
  97. package/packages/components/image-upload/index.js.gz +0 -0
  98. package/packages/components/image-viewer/i18n/index.d.ts +31 -0
  99. package/packages/components/image-viewer/index.js +246 -237
  100. package/packages/components/image-viewer/index.js.gz +0 -0
  101. package/packages/components/input/i18n/index.d.ts +15 -0
  102. package/packages/components/input/index.js +50 -45
  103. package/packages/components/input/index.js.gz +0 -0
  104. package/packages/components/input-dialog-select/i18n/index.d.ts +1 -1
  105. package/packages/components/input-dialog-select/index.js +20 -23
  106. package/packages/components/input-dialog-select/index.js.gz +0 -0
  107. package/packages/components/live-player/i18n/index.d.ts +15 -0
  108. package/packages/components/live-player/index.js +15 -9
  109. package/packages/components/live-player/index.js.gz +0 -0
  110. package/packages/components/loading/i18n/index.d.ts +7 -0
  111. package/packages/components/loading/index.js +93 -90
  112. package/packages/components/loading/index.js.gz +0 -0
  113. package/packages/components/map/i18n/index.d.ts +23 -0
  114. package/packages/components/map/index.js +355 -347
  115. package/packages/components/map/index.js.gz +0 -0
  116. package/packages/components/menu-aside/i18n/index.d.ts +7 -0
  117. package/packages/components/menu-aside/index.js +150 -147
  118. package/packages/components/menu-aside/index.js.gz +0 -0
  119. package/packages/components/message/i18n/index.d.ts +7 -0
  120. package/packages/components/message/index.js +17 -14
  121. package/packages/components/message/index.js.gz +0 -0
  122. package/packages/components/notification/i18n/index.d.ts +7 -0
  123. package/packages/components/notification/index.js +10 -7
  124. package/packages/components/notification/index.js.gz +0 -0
  125. package/packages/components/pagination/i18n/index.d.ts +19 -0
  126. package/packages/components/pagination/index.js +81 -75
  127. package/packages/components/pagination/index.js.gz +0 -0
  128. package/packages/components/popover/i18n/index.d.ts +2 -2
  129. package/packages/components/preview/i18n/index.d.ts +1 -1
  130. package/packages/components/preview/index.js +1 -1
  131. package/packages/components/preview/index.js.gz +0 -0
  132. package/packages/components/rich-editor/i18n/index.d.ts +10 -3
  133. package/packages/components/rich-editor/index.js +4 -3
  134. package/packages/components/rich-editor/index.js.gz +0 -0
  135. package/packages/components/search/i18n/index.d.ts +25 -1
  136. package/packages/components/search/index.js +31 -28
  137. package/packages/components/search/index.js.gz +0 -0
  138. package/packages/components/select/i18n/index.d.ts +23 -0
  139. package/packages/components/select/index.js +204 -197
  140. package/packages/components/select/index.js.gz +0 -0
  141. package/packages/components/select-list/i18n/index.d.ts +4 -4
  142. package/packages/components/select-list/index.js +4 -4
  143. package/packages/components/select-list/index.js.gz +0 -0
  144. package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -4
  145. package/packages/components/special-range-picker-month/index.js +15 -15
  146. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  147. package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -3
  148. package/packages/components/special-range-picker-year/index.js +81 -81
  149. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  150. package/packages/components/spin/i18n/index.d.ts +7 -0
  151. package/packages/components/spin/index.js +35 -32
  152. package/packages/components/spin/index.js.gz +0 -0
  153. package/packages/components/table/i18n/index.d.ts +72 -2
  154. package/packages/components/table/index.js +1245 -1225
  155. package/packages/components/table/index.js.gz +0 -0
  156. package/packages/components/tabs/i18n/index.d.ts +15 -0
  157. package/packages/components/tabs/index.js +70 -65
  158. package/packages/components/tabs/index.js.gz +0 -0
  159. package/packages/components/time-line/i18n/index.d.ts +1 -1
  160. package/packages/components/time-line/index.js +6 -9
  161. package/packages/components/time-line/index.js.gz +0 -0
  162. package/packages/components/tooltip/i18n/index.d.ts +7 -0
  163. package/packages/components/tooltip/index.js +38 -35
  164. package/packages/components/tooltip/index.js.gz +0 -0
  165. package/packages/components/tree/i18n/index.d.ts +35 -0
  166. package/packages/components/tree/index.js +692 -682
  167. package/packages/components/tree/index.js.gz +0 -0
  168. package/packages/components/tree-table/index.js +69 -68
  169. package/packages/components/tree-table/index.js.gz +0 -0
  170. package/packages/components/tree-table/style.css +1 -1
  171. package/packages/components/tree-table/style.css.gz +0 -0
  172. package/packages/components/upload/i18n/index.d.ts +5 -5
  173. package/packages/components/upload/index.js +50 -50
  174. package/packages/components/upload/index.js.gz +0 -0
  175. package/packages/components/virtual-tree/i18n/index.d.ts +7 -0
  176. package/packages/components/virtual-tree/index.js +35 -31
  177. package/packages/components/virtual-tree/index.js.gz +0 -0
  178. package/packages/icons/edit-3/index.d.ts +1 -0
  179. package/packages/icons/edit-3/index.js +17 -0
  180. package/packages/icons/edit-3/index.js.gz +0 -0
  181. package/packages/icons/edit-3/index.vue.d.ts +16 -0
  182. package/packages/icons/index.d.ts +2 -0
  183. package/packages/icons/index.js +2 -0
  184. package/packages/icons/right-3/index.d.ts +1 -0
  185. package/packages/icons/right-3/index.js +17 -0
  186. package/packages/icons/right-3/index.js.gz +0 -0
  187. package/packages/icons/right-3/index.vue.d.ts +16 -0
@@ -1,58 +1,58 @@
1
1
  import '@das-fed/ui/packages/business-components/video-dialog/style.css';
2
- import { getCurrentScope as ce, onScopeDispose as ue, unref as l, getCurrentInstance as de, onMounted as K, nextTick as x, ref as b, watch as F, defineComponent as P, useCssVars as ve, computed as N, openBlock as k, createElementBlock as $, normalizeClass as pe, renderSlot as X, createCommentVNode as h, Fragment as J, renderList as fe, createBlock as E, withCtx as m, withModifiers as _, createVNode as v, createElementVNode as p, toDisplayString as j, toRefs as me } from "vue";
2
+ import { getCurrentScope as ce, onScopeDispose as ue, unref as l, getCurrentInstance as de, onMounted as K, nextTick as L, ref as h, watch as S, defineComponent as z, useCssVars as ve, computed as P, openBlock as C, createElementBlock as D, normalizeClass as pe, renderSlot as X, createCommentVNode as I, Fragment as J, renderList as fe, createBlock as E, withCtx as m, withModifiers as k, createVNode as v, createElementVNode as p, toDisplayString as B, toRefs as me } from "vue";
3
3
  import { withInstall as ge } from "@das-fed/utils/with-install/index";
4
- import { t as g } from "@das-fed/web/packages/i18n/index";
5
- import { DasDialog as ye } from "@das-fed/ui/packages/components/dialog/index";
6
- import { DasTooltip as C } from "@das-fed/ui/packages/components/tooltip/index";
4
+ import { t as g, setI18nRule as ye } from "@das-fed/web/packages/i18n/index";
5
+ import { DasDialog as Ce } from "@das-fed/ui/packages/components/dialog/index";
6
+ import { DasTooltip as b } from "@das-fed/ui/packages/components/tooltip/index";
7
7
  import { DasIconFullscreen2 as ke } from "@das-fed/ui/packages/icons/fullscreen-2/index";
8
- import { DasAutoRegisterIcon as _e, DasIcon as L } from "@das-fed/ui/packages/components/icon/index";
9
- import { DasLivePlayer as be } from "@das-fed/ui/packages/components/live-player/index";
10
- import { DasSpin as we } from "@das-fed/ui/packages/components/spin/index";
11
- import Ce from "dayjs";
8
+ import { DasAutoRegisterIcon as he, DasIcon as $ } from "@das-fed/ui/packages/components/icon/index";
9
+ import { DasLivePlayer as _e } from "@das-fed/ui/packages/components/live-player/index";
10
+ import { DasSpin as be } from "@das-fed/ui/packages/components/spin/index";
11
+ import we from "dayjs";
12
12
  import { createService as ee } from "@das-fed/utils/api-services/src/create-service";
13
13
  import { getProjectInfo as M, getToken as Ie } from "@das-fed/utils/common-info";
14
- var Q;
15
- const V = typeof window < "u", he = (t) => typeof t == "string", Ee = () => {
14
+ var A;
15
+ const V = typeof window < "u", Ee = (t) => typeof t == "string", Ne = () => {
16
16
  };
17
- V && ((Q = window == null ? void 0 : window.navigator) != null && Q.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
17
+ V && ((A = window == null ? void 0 : window.navigator) != null && A.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
18
18
  function te(t) {
19
19
  return typeof t == "function" ? t() : l(t);
20
20
  }
21
- function Oe(t) {
21
+ function Se(t) {
22
22
  return t;
23
23
  }
24
24
  function ne(t) {
25
25
  return ce() ? (ue(t), !0) : !1;
26
26
  }
27
- function Fe(t, o = !0) {
28
- de() ? K(t) : o ? t() : x(t);
27
+ function Re(t, o = !0) {
28
+ de() ? K(t) : o ? t() : L(t);
29
29
  }
30
30
  function oe(t) {
31
31
  var o;
32
32
  const e = te(t);
33
33
  return (o = e == null ? void 0 : e.$el) != null ? o : e;
34
34
  }
35
- const Se = V ? window : void 0, De = V ? window.document : void 0;
36
- function Re(...t) {
35
+ const Fe = V ? window : void 0, Oe = V ? window.document : void 0;
36
+ function De(...t) {
37
37
  let o, e, i, a;
38
- if (he(t[0]) || Array.isArray(t[0]) ? ([e, i, a] = t, o = Se) : [o, e, i, a] = t, !o)
39
- return Ee;
38
+ if (Ee(t[0]) || Array.isArray(t[0]) ? ([e, i, a] = t, o = Fe) : [o, e, i, a] = t, !o)
39
+ return Ne;
40
40
  Array.isArray(e) || (e = [e]), Array.isArray(i) || (i = [i]);
41
41
  const n = [], s = () => {
42
42
  n.forEach((c) => c()), n.length = 0;
43
- }, f = (c, y, w, O) => (c.addEventListener(y, w, O), () => c.removeEventListener(y, w, O)), r = F(() => [oe(o), te(a)], ([c, y]) => {
44
- s(), c && n.push(...e.flatMap((w) => i.map((O) => f(c, w, O, y))));
43
+ }, f = (c, y, _, N) => (c.addEventListener(y, _, N), () => c.removeEventListener(y, _, N)), r = S(() => [oe(o), te(a)], ([c, y]) => {
44
+ s(), c && n.push(...e.flatMap((_) => i.map((N) => f(c, _, N, y))));
45
45
  }, { immediate: !0, flush: "post" }), d = () => {
46
46
  r(), s();
47
47
  };
48
48
  return ne(d), d;
49
49
  }
50
- function $e(t, o = !1) {
51
- const e = b(), i = () => e.value = !!t();
52
- return i(), Fe(i, o), e;
50
+ function ze(t, o = !1) {
51
+ const e = h(), i = () => e.value = !!t();
52
+ return i(), Re(i, o), e;
53
53
  }
54
- const A = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, q = "__vueuse_ssr_handlers__";
55
- A[q] = A[q] || {};
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
56
  const G = [
57
57
  [
58
58
  "requestFullscreen",
@@ -96,53 +96,53 @@ const G = [
96
96
  ]
97
97
  ];
98
98
  function le(t, o = {}) {
99
- const { document: e = De, autoExit: i = !1 } = o, a = t || (e == null ? void 0 : e.querySelector("html")), n = b(!1);
99
+ const { document: e = Oe, autoExit: i = !1 } = o, a = t || (e == null ? void 0 : e.querySelector("html")), n = h(!1);
100
100
  let s = G[0];
101
- const f = $e(() => {
101
+ const f = ze(() => {
102
102
  if (e) {
103
- for (const S of G)
104
- if (S[1] in e)
105
- return s = S, !0;
103
+ for (const R of G)
104
+ if (R[1] in e)
105
+ return s = R, !0;
106
106
  } else
107
107
  return !1;
108
108
  return !1;
109
109
  }), [r, d, c, , y] = s;
110
- async function w() {
110
+ async function _() {
111
111
  f.value && (e != null && e[c] && await e[d](), n.value = !1);
112
112
  }
113
- async function O() {
113
+ async function N() {
114
114
  if (!f.value)
115
115
  return;
116
- await w();
117
- const S = oe(a);
118
- S && (await S[r](), n.value = !0);
116
+ await _();
117
+ const R = oe(a);
118
+ R && (await R[r](), n.value = !0);
119
119
  }
120
- async function U() {
121
- n.value ? await w() : await O();
120
+ async function x() {
121
+ n.value ? await _() : await N();
122
122
  }
123
- return e && Re(e, y, () => {
123
+ return e && De(e, y, () => {
124
124
  n.value = !!(e != null && e[c]);
125
- }, !1), i && ne(w), {
125
+ }, !1), i && ne(_), {
126
126
  isSupported: f,
127
127
  isFullscreen: n,
128
- enter: O,
129
- exit: w,
130
- toggle: U
128
+ enter: N,
129
+ exit: _,
130
+ toggle: x
131
131
  };
132
132
  }
133
133
  var W;
134
134
  (function(t) {
135
135
  t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
136
136
  })(W || (W = {}));
137
- var Pe = Object.defineProperty, H = Object.getOwnPropertySymbols, Le = Object.prototype.hasOwnProperty, xe = Object.prototype.propertyIsEnumerable, Y = (t, o, e) => o in t ? Pe(t, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[o] = e, Ne = (t, o) => {
137
+ var $e = Object.defineProperty, H = Object.getOwnPropertySymbols, Le = Object.prototype.hasOwnProperty, Pe = Object.prototype.propertyIsEnumerable, Y = (t, o, e) => o in t ? $e(t, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[o] = e, Te = (t, o) => {
138
138
  for (var e in o || (o = {}))
139
139
  Le.call(o, e) && Y(t, e, o[e]);
140
140
  if (H)
141
141
  for (var e of H(o))
142
- xe.call(o, e) && Y(t, e, o[e]);
142
+ Pe.call(o, e) && Y(t, e, o[e]);
143
143
  return t;
144
144
  };
145
- const Te = {
145
+ const xe = {
146
146
  easeInSine: [0.12, 0, 0.39, 0],
147
147
  easeOutSine: [0.61, 1, 0.88, 1],
148
148
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -168,10 +168,10 @@ const Te = {
168
168
  easeOutBack: [0.34, 1.56, 0.64, 1],
169
169
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
170
170
  };
171
- Ne({
172
- linear: Oe
173
- }, Te);
174
- const Ue = /* @__PURE__ */ P({
171
+ Te({
172
+ linear: Se
173
+ }, xe);
174
+ const Ue = /* @__PURE__ */ z({
175
175
  __name: "GridItem",
176
176
  props: {
177
177
  active: { type: Boolean },
@@ -182,21 +182,21 @@ const Ue = /* @__PURE__ */ P({
182
182
  ve((c) => ({
183
183
  "9b3a2c32": d.value
184
184
  }));
185
- const e = t, i = o, a = b(), { toggle: n, isFullscreen: s } = le(a), f = () => {
186
- a.value != document.fullscreenElement && (s.value ? (s.value = !1, x(() => {
185
+ const e = t, i = o, a = h(), { toggle: n, isFullscreen: s } = le(a), f = () => {
186
+ a.value != document.fullscreenElement && (s.value ? (s.value = !1, L(() => {
187
187
  n();
188
188
  })) : n());
189
189
  }, r = () => {
190
190
  i("itemClick");
191
- }, d = N(() => `calc(100% / ${Math.sqrt(e.gridNum)})`);
192
- return (c, y) => (k(), $(
191
+ }, d = P(() => `calc(100% / ${Math.sqrt(e.gridNum)})`);
192
+ return (c, y) => (C(), D(
193
193
  "div",
194
194
  {
195
195
  ref_key: "containerRef",
196
196
  ref: a,
197
197
  class: pe(["wrapper", { "is-active": e.active }]),
198
- onDblclick: y[0] || (y[0] = (w) => f()),
199
- onClick: y[1] || (y[1] = (w) => r())
198
+ onDblclick: y[0] || (y[0] = (_) => f()),
199
+ onClick: y[1] || (y[1] = (_) => r())
200
200
  },
201
201
  [
202
202
  X(c.$slots, "default", {}, void 0, !0)
@@ -210,7 +210,7 @@ const Ue = /* @__PURE__ */ P({
210
210
  for (const [i, a] of o)
211
211
  e[i] = a;
212
212
  return e;
213
- }, ze = /* @__PURE__ */ T(Ue, [["__scopeId", "data-v-100b67ca"]]), je = { class: "layout-wrapper" }, Ve = /* @__PURE__ */ P({
213
+ }, Be = /* @__PURE__ */ T(Ue, [["__scopeId", "data-v-100b67ca"]]), Ve = { class: "layout-wrapper" }, je = /* @__PURE__ */ z({
214
214
  __name: "GridLayout",
215
215
  props: {
216
216
  gridNum: {},
@@ -222,12 +222,12 @@ const Ue = /* @__PURE__ */ P({
222
222
  const e = t, i = o, a = (n) => {
223
223
  i("update:activeIndex", n);
224
224
  };
225
- return (n, s) => (k(), $("div", je, [
226
- h(' :active="index === activeIndex" '),
227
- (k(!0), $(
225
+ return (n, s) => (C(), D("div", Ve, [
226
+ I(' :active="index === activeIndex" '),
227
+ (C(!0), D(
228
228
  J,
229
229
  null,
230
- fe(e.gridNum, (f, r) => (k(), E(ze, {
230
+ fe(e.gridNum, (f, r) => (C(), E(Be, {
231
231
  active: !1,
232
232
  "grid-num": e.gridNum,
233
233
  onItemClick: (d) => a(r)
@@ -236,7 +236,7 @@ const Ue = /* @__PURE__ */ P({
236
236
  n.showFn(r) ? X(n.$slots, "default", {
237
237
  key: 0,
238
238
  index: r
239
- }, void 0, !0) : h("v-if", !0)
239
+ }, void 0, !0) : I("v-if", !0)
240
240
  ]),
241
241
  _: 2
242
242
  /* DYNAMIC */
@@ -246,123 +246,123 @@ const Ue = /* @__PURE__ */ P({
246
246
  ))
247
247
  ]));
248
248
  }
249
- }), Be = /* @__PURE__ */ T(Ve, [["__scopeId", "data-v-661e2289"]]), Me = /* @__PURE__ */ P({
249
+ }), Me = /* @__PURE__ */ T(je, [["__scopeId", "data-v-661e2289"]]), Ae = /* @__PURE__ */ z({
250
250
  __name: "DirectionControl",
251
251
  emits: ["change"],
252
252
  setup(t, { emit: o }) {
253
253
  const e = o, i = (a) => {
254
254
  e("change", a);
255
255
  };
256
- return (a, n) => (k(), $(
256
+ return (a, n) => (C(), D(
257
257
  "div",
258
258
  {
259
259
  class: "direction-control",
260
- onDblclick: n[9] || (n[9] = _((s) => s.stopPropagation(), ["stop"]))
260
+ onDblclick: n[9] || (n[9] = k((s) => s.stopPropagation(), ["stop"]))
261
261
  },
262
262
  [
263
- v(l(C), {
263
+ v(l(b), {
264
264
  content: l(g)("左上")
265
265
  }, {
266
266
  default: m(() => [
267
267
  p("div", {
268
268
  class: "icon icon-top-left",
269
- onClick: n[0] || (n[0] = _((s) => i("leftUp"), ["stop"]))
269
+ onClick: n[0] || (n[0] = k((s) => i("leftUp"), ["stop"]))
270
270
  })
271
271
  ]),
272
272
  _: 1
273
273
  /* STABLE */
274
274
  }, 8, ["content"]),
275
- v(l(C), {
275
+ v(l(b), {
276
276
  content: l(g)("上")
277
277
  }, {
278
278
  default: m(() => [
279
279
  p("div", {
280
280
  class: "icon icon-top",
281
- onClick: n[1] || (n[1] = _((s) => i("up"), ["stop"]))
281
+ onClick: n[1] || (n[1] = k((s) => i("up"), ["stop"]))
282
282
  })
283
283
  ]),
284
284
  _: 1
285
285
  /* STABLE */
286
286
  }, 8, ["content"]),
287
- v(l(C), {
287
+ v(l(b), {
288
288
  content: l(g)("右上")
289
289
  }, {
290
290
  default: m(() => [
291
291
  p("div", {
292
292
  class: "icon icon-top-right",
293
- onClick: n[2] || (n[2] = _((s) => i("rightUp"), ["stop"]))
293
+ onClick: n[2] || (n[2] = k((s) => i("rightUp"), ["stop"]))
294
294
  })
295
295
  ]),
296
296
  _: 1
297
297
  /* STABLE */
298
298
  }, 8, ["content"]),
299
- v(l(C), {
299
+ v(l(b), {
300
300
  content: l(g)("左")
301
301
  }, {
302
302
  default: m(() => [
303
303
  p("div", {
304
304
  class: "icon icon-left",
305
- onClick: n[3] || (n[3] = _((s) => i("left"), ["stop"]))
305
+ onClick: n[3] || (n[3] = k((s) => i("left"), ["stop"]))
306
306
  })
307
307
  ]),
308
308
  _: 1
309
309
  /* STABLE */
310
310
  }, 8, ["content"]),
311
- v(l(C), {
311
+ v(l(b), {
312
312
  content: l(g)("自动")
313
313
  }, {
314
314
  default: m(() => [
315
315
  p("div", {
316
316
  class: "icon icon-auto",
317
- onClick: n[4] || (n[4] = _((s) => i("auto"), ["stop"]))
317
+ onClick: n[4] || (n[4] = k((s) => i("auto"), ["stop"]))
318
318
  })
319
319
  ]),
320
320
  _: 1
321
321
  /* STABLE */
322
322
  }, 8, ["content"]),
323
- v(l(C), {
323
+ v(l(b), {
324
324
  content: l(g)("右")
325
325
  }, {
326
326
  default: m(() => [
327
327
  p("div", {
328
328
  class: "icon icon-right",
329
- onClick: n[5] || (n[5] = _((s) => i("right"), ["stop"]))
329
+ onClick: n[5] || (n[5] = k((s) => i("right"), ["stop"]))
330
330
  })
331
331
  ]),
332
332
  _: 1
333
333
  /* STABLE */
334
334
  }, 8, ["content"]),
335
- v(l(C), {
335
+ v(l(b), {
336
336
  content: l(g)("左下")
337
337
  }, {
338
338
  default: m(() => [
339
339
  p("div", {
340
340
  class: "icon icon-bottom-left",
341
- onClick: n[6] || (n[6] = _((s) => i("leftDown"), ["stop"]))
341
+ onClick: n[6] || (n[6] = k((s) => i("leftDown"), ["stop"]))
342
342
  })
343
343
  ]),
344
344
  _: 1
345
345
  /* STABLE */
346
346
  }, 8, ["content"]),
347
- v(l(C), {
347
+ v(l(b), {
348
348
  content: l(g)("下")
349
349
  }, {
350
350
  default: m(() => [
351
351
  p("div", {
352
352
  class: "icon icon-bottom",
353
- onClick: n[7] || (n[7] = _((s) => i("down"), ["stop"]))
353
+ onClick: n[7] || (n[7] = k((s) => i("down"), ["stop"]))
354
354
  })
355
355
  ]),
356
356
  _: 1
357
357
  /* STABLE */
358
358
  }, 8, ["content"]),
359
- v(l(C), {
359
+ v(l(b), {
360
360
  content: l(g)("右下")
361
361
  }, {
362
362
  default: m(() => [
363
363
  p("div", {
364
364
  class: "icon icon-bottom-right",
365
- onClick: n[8] || (n[8] = _((s) => i("rightDown"), ["stop"]))
365
+ onClick: n[8] || (n[8] = k((s) => i("rightDown"), ["stop"]))
366
366
  })
367
367
  ]),
368
368
  _: 1
@@ -373,10 +373,10 @@ const Ue = /* @__PURE__ */ P({
373
373
  /* NEED_HYDRATION */
374
374
  ));
375
375
  }
376
- }), Qe = /* @__PURE__ */ T(Me, [["__scopeId", "data-v-db2e8ec2"]]), Ae = { class: "video-wrapper" }, qe = { class: "video-top" }, Ge = { class: "video-top_l" }, We = { class: "video-title-wrapper" }, He = { class: "video-title" }, Ye = { class: "video-top_r" }, Ze = {
376
+ }), Qe = /* @__PURE__ */ T(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
377
  key: 0,
378
378
  class: "play-status"
379
- }, Ke = { class: "video-bottom" }, Xe = { class: "video-bottom_r" }, Je = /* @__PURE__ */ P({
379
+ }, Xe = { class: "video-bottom" }, Je = { class: "video-bottom_r" }, et = /* @__PURE__ */ z({
380
380
  __name: "index",
381
381
  props: {
382
382
  videoUrl: {},
@@ -391,62 +391,62 @@ const Ue = /* @__PURE__ */ P({
391
391
  emits: ["close", "directionControl", "zoomControl"],
392
392
  setup(t, { emit: o }) {
393
393
  const e = t, i = o;
394
- _e({
394
+ he({
395
395
  muted: import("@das-fed/ui/packages/icons/muted"),
396
396
  volume: import("@das-fed/ui/packages/icons/volume"),
397
397
  shrink: import("@das-fed/ui/packages/icons/shrink"),
398
398
  enlarge: import("@das-fed/ui/packages/icons/enlarge"),
399
399
  "direction-control": import("@das-fed/ui/packages/icons/direction-control")
400
400
  });
401
- const a = b(!0), n = b(), s = b(!1), f = b(), r = N(() => {
401
+ const a = h(!0), n = h(), s = h(!1), f = h(), r = P(() => {
402
402
  var u;
403
403
  return (u = f.value) == null ? void 0 : u.video;
404
- }), d = b(!1), c = b(!0), y = (u) => {
405
- n.value = u, n.value.on(window.mpegts.Events.ERROR, (I) => {
404
+ }), d = h(!1), c = h(!0), y = (u) => {
405
+ n.value = u, n.value.on(window.mpegts.Events.ERROR, (w) => {
406
406
  });
407
- }, w = () => {
407
+ }, _ = () => {
408
408
  a.value = !a.value, n.value && (n.value.muted = a.value);
409
- }, O = () => {
409
+ }, N = () => {
410
410
  s.value = !s.value;
411
- }, U = b(""), S = () => {
411
+ }, x = h(""), R = () => {
412
412
  const u = document.createElement("canvas");
413
413
  if (r.value) {
414
414
  u.width = r.value.clientWidth, u.height = r.value.clientHeight;
415
- const I = u.getContext("2d");
416
- I == null || I.drawImage(r.value, 0, 0, u.width, u.height);
417
- const R = u.toDataURL("image/jpg"), ae = `【${e.title}】${Ce().format("YYYYMMDDHHmmss").toString()}.jpg`;
418
- if (U.value = R, "download" in document.createElement("a")) {
419
- const D = document.createElement("a");
420
- D.download = ae, D.style.display = "none", D.href = R, document.body.appendChild(D), document.body.appendChild(u), D.click(), URL.revokeObjectURL(D.href), document.body.removeChild(D), document.body.removeChild(u);
415
+ const w = u.getContext("2d");
416
+ w == null || w.drawImage(r.value, 0, 0, u.width, u.height);
417
+ const O = u.toDataURL("image/jpg"), ae = `【${e.title}】${we().format("YYYYMMDDHHmmss").toString()}.jpg`;
418
+ if (x.value = O, "download" in document.createElement("a")) {
419
+ const F = document.createElement("a");
420
+ F.download = ae, F.style.display = "none", F.href = O, document.body.appendChild(F), document.body.appendChild(u), F.click(), URL.revokeObjectURL(F.href), document.body.removeChild(F), document.body.removeChild(u);
421
421
  }
422
422
  }
423
423
  }, re = (u) => {
424
424
  i("directionControl", u);
425
- }, B = (u) => {
425
+ }, j = (u) => {
426
426
  i("zoomControl", u);
427
- }, z = (u) => e.authType.includes(u);
428
- return F(
427
+ }, U = (u) => e.authType.includes(u);
428
+ return S(
429
429
  () => r.value,
430
430
  () => {
431
431
  r.value && r.value.addEventListener("ended", () => {
432
432
  d.value = !0, e.type === "playback" && (c.value = !1);
433
433
  });
434
434
  }
435
- ), F(
435
+ ), S(
436
436
  () => r.value,
437
437
  () => {
438
- r.value && x(() => {
438
+ r.value && L(() => {
439
439
  r.value.playbackRate = e.playbackRate || 1;
440
440
  });
441
441
  }
442
- ), F(
442
+ ), S(
443
443
  () => n.value,
444
444
  () => {
445
- n.value && x(() => {
445
+ n.value && L(() => {
446
446
  n.value.muted = a.value;
447
447
  });
448
448
  }
449
- ), F(
449
+ ), S(
450
450
  () => e.playbackRate,
451
451
  () => {
452
452
  r.value && (r.value.playbackRate = e.playbackRate || 1);
@@ -454,49 +454,49 @@ const Ue = /* @__PURE__ */ P({
454
454
  {
455
455
  immediate: !0
456
456
  }
457
- ), F(
457
+ ), S(
458
458
  () => e.paused,
459
459
  () => {
460
460
  n.value && (e.paused ? n.value.pause() : n.value.play());
461
461
  }
462
- ), F(
462
+ ), S(
463
463
  () => e.videoUrl,
464
464
  () => {
465
- c.value = !1, x(() => {
465
+ c.value = !1, L(() => {
466
466
  c.value = !0;
467
467
  });
468
468
  }
469
- ), (u, I) => (k(), $("div", Ae, [
470
- v(l(we), {
469
+ ), (u, w) => (C(), D("div", qe, [
470
+ v(l(be), {
471
471
  spinning: e.loading,
472
472
  type: "component",
473
473
  tip: l(g)("加载中...")
474
474
  }, {
475
475
  default: m(() => [
476
- p("div", qe, [
477
- p("div", Ge, [
478
- p("div", We, [
476
+ p("div", Ge, [
477
+ p("div", We, [
478
+ p("div", He, [
479
479
  p(
480
480
  "div",
481
- He,
482
- j(e.title.length > 20 ? e.title.slice(0, 19) + "..." : e.title),
481
+ Ye,
482
+ B(e.title.length > 20 ? e.title.slice(0, 19) + "..." : e.title),
483
483
  1
484
484
  /* TEXT */
485
485
  )
486
486
  ])
487
487
  ]),
488
- p("div", Ye, [
489
- ["live"].includes(u.type) ? (k(), $(
488
+ p("div", Ze, [
489
+ ["live"].includes(u.type) ? (C(), D(
490
490
  "span",
491
- Ze,
492
- j(l(g)("正在实时预览")),
491
+ Ke,
492
+ B(l(g)("正在实时预览")),
493
493
  1
494
494
  /* TEXT */
495
- )) : h("v-if", !0),
496
- h(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
495
+ )) : I("v-if", !0),
496
+ I(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
497
497
  ])
498
498
  ]),
499
- e.videoUrl && c.value ? (k(), E(l(be), {
499
+ e.videoUrl && c.value ? (C(), E(l(_e), {
500
500
  key: 0,
501
501
  type: "flv",
502
502
  ref_key: "dasLivePlayerRef",
@@ -504,112 +504,112 @@ const Ue = /* @__PURE__ */ P({
504
504
  muted: a.value,
505
505
  onLoaded: y,
506
506
  src: e.videoUrl
507
- }, null, 8, ["muted", "src"])) : h("v-if", !0),
508
- p("div", Ke, [
509
- I[3] || (I[3] = p(
507
+ }, null, 8, ["muted", "src"])) : I("v-if", !0),
508
+ p("div", Xe, [
509
+ w[3] || (w[3] = p(
510
510
  "div",
511
511
  { class: "video-bottom_l" },
512
512
  null,
513
513
  -1
514
514
  /* HOISTED */
515
515
  )),
516
- p("div", Xe, [
516
+ p("div", Je, [
517
517
  p(
518
518
  "div",
519
519
  {
520
520
  class: "controls",
521
- onDblclick: I[2] || (I[2] = _((R) => R.stopPropagation(), ["stop"]))
521
+ onDblclick: w[2] || (w[2] = k((O) => O.stopPropagation(), ["stop"]))
522
522
  },
523
523
  [
524
- v(l(C), {
524
+ v(l(b), {
525
525
  content: l(g)("声音")
526
526
  }, {
527
527
  default: m(() => [
528
- v(l(L), {
528
+ v(l($), {
529
529
  class: "icon icon-volume",
530
530
  icon: a.value ? "muted" : "volume",
531
- onClick: _(w, ["stop"])
531
+ onClick: k(_, ["stop"])
532
532
  }, null, 8, ["icon"])
533
533
  ]),
534
534
  _: 1
535
535
  /* STABLE */
536
536
  }, 8, ["content"]),
537
- v(l(C), {
537
+ v(l(b), {
538
538
  content: l(g)("截图")
539
539
  }, {
540
540
  default: m(() => [
541
- v(l(L), {
541
+ v(l($), {
542
542
  class: "icon icon-screenshot",
543
543
  icon: "screenshot",
544
- onClick: _(S, ["stop"])
544
+ onClick: k(R, ["stop"])
545
545
  })
546
546
  ]),
547
547
  _: 1
548
548
  /* STABLE */
549
549
  }, 8, ["content"]),
550
- z("control") ? (k(), E(l(C), {
550
+ U("control") ? (C(), E(l(b), {
551
551
  key: 0,
552
552
  content: l(g)("聚焦-")
553
553
  }, {
554
554
  default: m(() => [
555
- ["live", "polling"].includes(e.type) ? (k(), E(l(L), {
555
+ ["live", "polling"].includes(e.type) ? (C(), E(l($), {
556
556
  key: 0,
557
557
  class: "icon icon-shrink",
558
558
  icon: "shrink",
559
- onClick: I[0] || (I[0] = _((R) => B("zoomOut"), ["stop"]))
560
- })) : h("v-if", !0)
559
+ onClick: w[0] || (w[0] = k((O) => j("zoomOut"), ["stop"]))
560
+ })) : I("v-if", !0)
561
561
  ]),
562
562
  _: 1
563
563
  /* STABLE */
564
- }, 8, ["content"])) : h("v-if", !0),
565
- z("control") ? (k(), E(l(C), {
564
+ }, 8, ["content"])) : I("v-if", !0),
565
+ U("control") ? (C(), E(l(b), {
566
566
  key: 1,
567
567
  content: l(g)("聚焦+")
568
568
  }, {
569
569
  default: m(() => [
570
- ["live", "polling"].includes(e.type) ? (k(), E(l(L), {
570
+ ["live", "polling"].includes(e.type) ? (C(), E(l($), {
571
571
  key: 0,
572
572
  class: "icon icon-enlarge",
573
573
  icon: "enlarge",
574
- onClick: I[1] || (I[1] = _((R) => B("zoomIn"), ["stop"]))
575
- })) : h("v-if", !0)
574
+ onClick: w[1] || (w[1] = k((O) => j("zoomIn"), ["stop"]))
575
+ })) : I("v-if", !0)
576
576
  ]),
577
577
  _: 1
578
578
  /* STABLE */
579
- }, 8, ["content"])) : h("v-if", !0),
580
- z("control") ? (k(), E(l(C), {
579
+ }, 8, ["content"])) : I("v-if", !0),
580
+ U("control") ? (C(), E(l(b), {
581
581
  key: 2,
582
582
  content: l(g)("方向控制")
583
583
  }, {
584
584
  default: m(() => [
585
- ["live", "polling"].includes(e.type) ? (k(), E(l(L), {
585
+ ["live", "polling"].includes(e.type) ? (C(), E(l($), {
586
586
  key: 0,
587
587
  class: "icon icon-direction-control",
588
588
  icon: "direction-control",
589
- onClick: _(O, ["stop"])
590
- })) : h("v-if", !0)
589
+ onClick: k(N, ["stop"])
590
+ })) : I("v-if", !0)
591
591
  ]),
592
592
  _: 1
593
593
  /* STABLE */
594
- }, 8, ["content"])) : h("v-if", !0)
594
+ }, 8, ["content"])) : I("v-if", !0)
595
595
  ],
596
596
  32
597
597
  /* NEED_HYDRATION */
598
598
  )
599
599
  ])
600
600
  ]),
601
- s.value ? (k(), E(Qe, {
601
+ s.value ? (C(), E(Qe, {
602
602
  key: 1,
603
603
  onChange: re
604
- })) : h("v-if", !0)
604
+ })) : I("v-if", !0)
605
605
  ]),
606
606
  _: 1
607
607
  /* STABLE */
608
608
  }, 8, ["spinning", "tip"])
609
609
  ]));
610
610
  }
611
- }), et = /* @__PURE__ */ T(Je, [["__scopeId", "data-v-2bc90e59"]]), tt = "/api/device-relation/deviceproject/v1/project/device/video", nt = "v1", ot = ee(`/api/enterpriseright/permission/${nt}`), ie = ee(`${tt}`, lt);
612
- function lt(t) {
611
+ }), tt = /* @__PURE__ */ T(et, [["__scopeId", "data-v-2bc90e59"]]), nt = "/api/device-relation/deviceproject/v1/project/device/video", ot = "v1", lt = ee(`/api/enterpriseright/permission/${ot}`), ie = ee(`${nt}`, it);
612
+ function it(t) {
613
613
  const o = M() ? M().id : 1;
614
614
  return t.params || (t.params = {}), t.params.project = o, t.params.projectId = o, t;
615
615
  }
@@ -622,16 +622,16 @@ function se(t) {
622
622
  function Z(t) {
623
623
  return ie.post(`/ptz?${se(t)}`)().run();
624
624
  }
625
- function it(t) {
625
+ function st(t) {
626
626
  return ie.post(`/url/preview?${se(t)}`)().run();
627
627
  }
628
- ot.post("data/device-auth");
629
- const st = (t) => {
628
+ lt.post("data/device-auth");
629
+ const rt = (t) => {
630
630
  const o = Ie();
631
631
  return `${t}?token=${o}`;
632
632
  };
633
- b([]);
634
- const rt = /* @__PURE__ */ P({
633
+ h([]);
634
+ const at = /* @__PURE__ */ z({
635
635
  props: {
636
636
  deviceInfo: {
637
637
  type: Object,
@@ -647,16 +647,16 @@ const rt = /* @__PURE__ */ P({
647
647
  const {
648
648
  deviceInfo: e,
649
649
  source: i
650
- } = me(t), a = b(!1), n = b(""), s = async () => {
650
+ } = me(t), a = h(!1), n = h(""), s = async () => {
651
651
  var y;
652
652
  if (!((y = e.value) != null && y.deviceId)) return;
653
653
  a.value = !0;
654
- const [d, c] = await it({
654
+ const [d, c] = await st({
655
655
  productId: e.value.productId,
656
656
  deviceId: e.value.deviceId,
657
657
  source: i.value
658
658
  });
659
- d || (n.value = st(c == null ? void 0 : c.wsFlvStreamURL)), a.value = !1;
659
+ d || (n.value = rt(c == null ? void 0 : c.wsFlvStreamURL)), a.value = !1;
660
660
  }, f = (d) => {
661
661
  Z({
662
662
  productId: e.value.productId,
@@ -676,7 +676,7 @@ const rt = /* @__PURE__ */ P({
676
676
  };
677
677
  return K(() => {
678
678
  s();
679
- }), F(() => e.value, () => {
679
+ }), S(() => e.value, () => {
680
680
  s();
681
681
  }, {
682
682
  deep: !0
@@ -688,13 +688,13 @@ const rt = /* @__PURE__ */ P({
688
688
  })]);
689
689
  }
690
690
  });
691
- function at(t) {
692
- const o = b(0), e = b(), {
691
+ function ct(t) {
692
+ const o = h(0), e = h(), {
693
693
  toggle: i,
694
694
  isFullscreen: a
695
695
  } = le(e);
696
696
  return {
697
- render: () => v(Be, {
697
+ render: () => v(Me, {
698
698
  ref: e,
699
699
  gridNum: t.gridNum,
700
700
  activeIndex: o.value,
@@ -705,7 +705,7 @@ function at(t) {
705
705
  index: s
706
706
  }) => {
707
707
  const f = t.deviceList[s], r = t.source;
708
- return v(rt, {
708
+ return v(at, {
709
709
  deviceInfo: f,
710
710
  source: r
711
711
  }, {
@@ -713,10 +713,10 @@ function at(t) {
713
713
  videoUrl: d,
714
714
  onDirectionControl: c,
715
715
  onZoomControl: y,
716
- loading: w
717
- }) => v(et, {
716
+ loading: _
717
+ }) => v(tt, {
718
718
  type: "live",
719
- loading: w,
719
+ loading: _,
720
720
  videoUrl: d,
721
721
  title: f.deviceName,
722
722
  onDirectionControl: c,
@@ -729,7 +729,7 @@ function at(t) {
729
729
  toggleFullscreen: i
730
730
  };
731
731
  }
732
- const ct = /* @__PURE__ */ P({
732
+ const ut = /* @__PURE__ */ z({
733
733
  __name: "index",
734
734
  props: {
735
735
  visible: { type: Boolean, default: !1 },
@@ -739,10 +739,10 @@ const ct = /* @__PURE__ */ P({
739
739
  },
740
740
  emits: ["update:visible"],
741
741
  setup(t, { emit: o }) {
742
- const e = t, i = o, a = N({
742
+ const e = t, i = o, a = P({
743
743
  get: () => e.visible,
744
744
  set: (r) => i("update:visible", r)
745
- }), { render: n, toggleFullscreen: s } = at(e), f = N(() => {
745
+ }), { render: n, toggleFullscreen: s } = ct(e), f = P(() => {
746
746
  let r = {};
747
747
  switch (e.gridNum) {
748
748
  case 1:
@@ -757,7 +757,7 @@ const ct = /* @__PURE__ */ P({
757
757
  }
758
758
  return r;
759
759
  });
760
- return (r, d) => (k(), E(l(ye), {
760
+ return (r, d) => (C(), E(l(Ce), {
761
761
  size: "mini",
762
762
  title: l(g)("视频监控"),
763
763
  "custom-class": `das-linakge-video-dialog ${f.value}`,
@@ -774,12 +774,12 @@ const ct = /* @__PURE__ */ P({
774
774
  p(
775
775
  "span",
776
776
  null,
777
- j(l(g)("视频监控")),
777
+ B(l(g)("视频监控")),
778
778
  1
779
779
  /* TEXT */
780
780
  )
781
781
  ]),
782
- v(l(C), {
782
+ v(l(b), {
783
783
  content: l(g)("页面全屏")
784
784
  }, {
785
785
  default: m(() => [
@@ -794,15 +794,35 @@ const ct = /* @__PURE__ */ P({
794
794
  }, 8, ["content"])
795
795
  ]),
796
796
  default: m(() => [
797
- a.value ? (k(), E(l(n), { key: 0 })) : h("v-if", !0)
797
+ a.value ? (C(), E(l(n), { key: 0 })) : I("v-if", !0)
798
798
  ]),
799
799
  _: 1
800
800
  /* STABLE */
801
801
  }, 8, ["title", "custom-class", "modelValue"]));
802
802
  }
803
- }), Ct = ge(ct), It = () => b(null);
803
+ }), dt = {
804
+ 加载中: { "zh-CN": "加载中", en: "Loading" },
805
+ 正在实时预览: { "zh-CN": "正在实时预览", en: "Real-time Preview" },
806
+ 声音: { "zh-CN": "声音", en: "Sound" },
807
+ 截图: { "zh-CN": "截图", en: "Screenshot" },
808
+ 聚焦: { "zh-CN": "聚焦", en: "Focus" },
809
+ 方向控制: { "zh-CN": "方向控制", en: "Direction Control" },
810
+ 左上: { "zh-CN": "左上", en: "Top Left" },
811
+ 上: { "zh-CN": "上", en: "Top" },
812
+ 右上: { "zh-CN": "右上", en: "Top Right" },
813
+ 左: { "zh-CN": "左", en: "Left" },
814
+ 自动: { "zh-CN": "自动", en: "Auto" },
815
+ 右: { "zh-CN": "右", en: "Right" },
816
+ 左下: { "zh-CN": "左下", en: "Bottom Left" },
817
+ 下: { "zh-CN": "下", en: "Bottom" },
818
+ 右下: { "zh-CN": "右下", en: "Bottom Right" },
819
+ 视频监控: { "zh-CN": "视频监控", en: "Video Surveillance" },
820
+ 页面全屏: { "zh-CN": "页面全屏", en: "Page Full Screen" }
821
+ };
822
+ ye(dt);
823
+ const It = ge(ut), Et = () => h(null);
804
824
  export {
805
- Ct as DasVideoDialog,
806
- It as DasVideoDialogRef,
807
- at as useVideo
825
+ It as DasVideoDialog,
826
+ Et as DasVideoDialogRef,
827
+ ct as useVideo
808
828
  };