@das-fed/ui 7.0.0 → 7.0.1-beta.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.
@@ -1,32 +1,33 @@
1
1
  import '@das-fed/ui/packages/business-components/layout-breadcrumb/style.css';
2
- import { ref as S, computed as R, watch as L, nextTick as I, defineComponent as T, createElementBlock as N, createCommentVNode as U, unref as g, openBlock as x, createVNode as D } from "vue";
2
+ import { ref as S, computed as T, watch as L, nextTick as R, defineComponent as q, createElementBlock as N, createCommentVNode as U, unref as y, openBlock as x, createVNode as D } from "vue";
3
3
  import { withInstall as P } from "@das-fed/utils/with-install/index";
4
4
  import { DasBreadCrumb as O } from "@das-fed/ui/packages/components/breadcrumb/index";
5
5
  import { useRouter as $, useRoute as j } from "vue-router";
6
- import { flatTree as q } from "@das-fed/utils/common-tools";
7
- import { getSubApps as k } from "@das-fed/utils/common-info";
6
+ import { flatTree as I } from "@das-fed/utils/common-tools";
7
+ import { getSubApps as _ } from "@das-fed/utils/common-info";
8
8
  import { setThemeRule as E } from "@das-fed/web/packages/theme/index";
9
- const J = (a, l) => {
10
- const i = S([]), f = R(() => [...i.value, ...a.data || []]), p = () => new Promise((e) => {
11
- const s = () => {
12
- var n, t;
13
- const { app: o = "" } = (u == null ? void 0 : u.query) || {}, d = ((t = (n = k()) == null ? void 0 : n.currentSubApp) == null ? void 0 : t.menus) ?? [];
14
- if (o === k().currentSubAppCode && d.length) return e();
15
- setTimeout(() => s(), 50);
9
+ const J = (s, f) => {
10
+ const a = S([]), l = T(() => [...a.value, ...s.data || []]), m = (e) => new Promise((n) => {
11
+ const { app: o = "", menu: d = "" } = e || {};
12
+ if (!o) return n(!1);
13
+ const c = () => {
14
+ const t = _() ?? {}, r = t.currentSubAppCode, i = t.currentSubApp.currentMenuCode;
15
+ if (o === r && d === i) return n(!0);
16
+ setTimeout(() => c(), 100);
16
17
  };
17
- s();
18
- }), h = async (e, s) => {
19
- var b, c;
20
- await I(), await p();
21
- const o = [], d = s.menu || "", n = ((c = (b = k()) == null ? void 0 : b.currentSubApp) == null ? void 0 : c.menus) ?? [];
22
- if (!n || !n.length) return;
18
+ c();
19
+ }), h = async (e, n) => {
20
+ var i, u;
21
+ await m(n);
22
+ const o = [], d = n.menu || "", c = ((u = (i = _()) == null ? void 0 : i.currentSubApp) == null ? void 0 : u.menus) ?? [];
23
+ if (!c || !c.length) return;
23
24
  let t = null;
24
- const r = q(n);
25
- if (d ? t = r.find((m) => m.code === d) : t = r.find((m) => m.routeUrl && m.routeUrl === e), t) {
26
- const m = t.code.split(".");
27
- if (m.length === 3) {
28
- const v = m.slice(0, 2).join("."), _ = r.find((A) => A.code === v || A.originalCode === v);
29
- o.push({ name: (_ == null ? void 0 : _.name) ?? "", isMenu: !0, disabled: !0 });
25
+ const r = I(c);
26
+ if (d ? t = r.find((p) => p.code === d) : t = r.find((p) => p.routeUrl && p.routeUrl === e), t) {
27
+ const p = t.code.split(".");
28
+ if (p.length === 3) {
29
+ const B = p.slice(0, 2).join("."), k = r.find((v) => v.code === B || v.originalCode === B);
30
+ o.push({ name: (k == null ? void 0 : k.name) ?? "", isMenu: !0, disabled: !0 });
30
31
  }
31
32
  const M = {
32
33
  name: (t == null ? void 0 : t.name) ?? "",
@@ -35,69 +36,71 @@ const J = (a, l) => {
35
36
  };
36
37
  o.push(M);
37
38
  }
38
- i.value = o;
39
- }, C = (e) => {
40
- e.disabled || l("click-item", e);
41
- }, y = $(), u = j();
39
+ a.value = o;
40
+ }, g = (e) => {
41
+ e.disabled || f("click-item", e);
42
+ }, C = $(), b = j();
42
43
  L(
43
- () => y.currentRoute.value,
44
+ () => C.currentRoute.value,
44
45
  (e) => {
45
- const s = (e == null ? void 0 : e.path) ?? "", o = (e == null ? void 0 : e.query) ?? {};
46
- h(s, o);
46
+ const n = (e == null ? void 0 : e.path) ?? "", o = (e == null ? void 0 : e.query) ?? {};
47
+ setTimeout(() => {
48
+ h(n, o);
49
+ }, 200);
47
50
  }
48
- ), h(u.path, u.query);
49
- const B = S(!1);
51
+ ), h(b.path, b.query);
52
+ const A = S(!1);
50
53
  return L(
51
- () => a.data,
54
+ () => s.data,
52
55
  () => {
53
- I(() => {
54
- p().then(() => {
56
+ R(() => {
57
+ m().then(() => {
55
58
  var t;
56
- const e = k(), s = u.query.app || e.currentSubApp.code || "";
57
- let o = u.query.menu || "";
59
+ const e = _(), n = b.query.app || e.currentSubApp.code || "";
60
+ let o = b.query.menu || "";
58
61
  if (!o) {
59
- const r = ((t = e.currentSubApp) == null ? void 0 : t.menus) ?? [], b = q(r).find(
60
- (c) => `/${(c == null ? void 0 : c.applicationPath) ?? ""}${(c == null ? void 0 : c.routeUrl) ?? ""}`.replace(/\/\//g, "/") === location.pathname
62
+ const r = ((t = e.currentSubApp) == null ? void 0 : t.menus) ?? [], i = I(r).find(
63
+ (u) => `/${(u == null ? void 0 : u.applicationPath) ?? ""}${(u == null ? void 0 : u.routeUrl) ?? ""}`.replace(/\/\//g, "/") === location.pathname
61
64
  );
62
- b && (o = b.code);
65
+ i && (o = i.code);
63
66
  }
64
- const d = JSON.parse(sessionStorage.getItem("breadcrumb") || "{}")[s], n = [];
65
- for (let r in d) d[r] && n.push(r);
66
- B.value = !!n.find((r) => o === r);
67
+ const d = JSON.parse(sessionStorage.getItem("breadcrumb") || "{}")[n], c = [];
68
+ for (let r in d) d[r] && c.push(r);
69
+ A.value = !!c.find((r) => o === r);
67
70
  });
68
71
  });
69
72
  },
70
73
  { deep: !0, immediate: !0 }
71
74
  ), {
72
- isShow: B,
73
- breadcrumbList: f,
74
- clickItem: C
75
+ isShow: A,
76
+ breadcrumbList: l,
77
+ clickItem: g
75
78
  };
76
79
  }, z = {
77
80
  key: 0,
78
81
  class: "layout-breadcrumb"
79
82
  }, F = {
80
83
  name: "LayoutBreadCrumb"
81
- }, G = /* @__PURE__ */ T({
84
+ }, G = /* @__PURE__ */ q({
82
85
  ...F,
83
86
  props: {
84
87
  data: { default: () => [] }
85
88
  },
86
89
  emits: ["click-item"],
87
- setup(a, { emit: l }) {
88
- const i = a, f = l, { isShow: p, breadcrumbList: h, clickItem: C } = J(i, f);
89
- return (y, u) => g(p) && y.data && y.data.length ? (x(), N("div", z, [
90
- D(g(O), {
91
- data: g(h),
92
- onClickItem: g(C)
90
+ setup(s, { emit: f }) {
91
+ const a = s, l = f, { isShow: m, breadcrumbList: h, clickItem: g } = J(a, l);
92
+ return (C, b) => y(m) && C.data && C.data.length ? (x(), N("div", z, [
93
+ D(y(O), {
94
+ data: y(h),
95
+ onClickItem: y(g)
93
96
  }, null, 8, ["data", "onClickItem"])
94
97
  ])) : U("v-if", !0);
95
98
  }
96
- }), H = (a, l) => {
97
- const i = a.__vccOpts || a;
98
- for (const [f, p] of l)
99
- i[f] = p;
100
- return i;
99
+ }), H = (s, f) => {
100
+ const a = s.__vccOpts || s;
101
+ for (const [l, m] of f)
102
+ a[l] = m;
103
+ return a;
101
104
  }, K = /* @__PURE__ */ H(G, [["__scopeId", "data-v-878cd70a"]]), Q = {
102
105
  "--das-layout-micro-container-bg-color": "#e2e7ef",
103
106
  "--das-layout-breadcrumb-bg-color": "#ffffff"
@@ -1,9 +1,9 @@
1
1
  import '@das-fed/ui/packages/business-components/video-dialog/style.css';
2
- import { getCurrentScope as ce, onScopeDispose as ue, getCurrentInstance as de, onMounted as J, nextTick as P, unref as l, ref as w, watch as R, defineComponent as O, useCssVars as pe, computed as U, createElementBlock as S, openBlock as p, normalizeClass as ve, renderSlot as ee, createCommentVNode as b, Fragment as x, renderList as fe, createBlock as N, withCtx as C, withModifiers as _, createVNode as v, createElementVNode as f, toDisplayString as V, toRefs as me } from "vue";
2
+ import { getCurrentScope as ce, onScopeDispose as ue, getCurrentInstance as de, onMounted as J, nextTick as P, unref as l, ref as h, watch as R, defineComponent as L, useCssVars as pe, computed as U, createElementBlock as S, openBlock as p, normalizeClass as ve, renderSlot as ee, createCommentVNode as b, Fragment as x, renderList as fe, createBlock as N, withCtx as C, withModifiers as _, createVNode as v, createElementVNode as f, toDisplayString as V, toRefs as me } from "vue";
3
3
  import { withInstall as Ce } from "@das-fed/utils/with-install/index";
4
4
  import { t as g, setI18nRule as ge } from "@das-fed/web/packages/i18n/index";
5
5
  import { DasDialog as ye } from "@das-fed/ui/packages/components/dialog/index";
6
- import { DasTooltip as h } from "@das-fed/ui/packages/components/tooltip/index";
6
+ import { DasTooltip as w } from "@das-fed/ui/packages/components/tooltip/index";
7
7
  import { DasIconFullscreen2 as ke } from "@das-fed/ui/packages/icons/fullscreen-2/index";
8
8
  import { DasAutoRegisterIcon as _e, DasIcon as $ } from "@das-fed/ui/packages/components/icon/index";
9
9
  import { DasLivePlayer as we } from "@das-fed/ui/packages/components/live-player/index";
@@ -49,7 +49,7 @@ function Oe(...t) {
49
49
  return ne(m), m;
50
50
  }
51
51
  function Le(t, n = !1) {
52
- const e = w(), i = () => e.value = !!t();
52
+ const e = h(), i = () => e.value = !!t();
53
53
  return i(), Se(i, n), e;
54
54
  }
55
55
  const q = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, G = "__vueuse_ssr_handlers__";
@@ -97,7 +97,7 @@ const W = [
97
97
  ]
98
98
  ];
99
99
  function ie(t, n = {}) {
100
- const { document: e = De, autoExit: i = !1 } = n, r = t || (e == null ? void 0 : e.querySelector("html")), o = w(!1);
100
+ const { document: e = De, autoExit: i = !1 } = n, r = t || (e == null ? void 0 : e.querySelector("html")), o = h(!1);
101
101
  let a = W[0];
102
102
  const y = Le(() => {
103
103
  if (e) {
@@ -118,7 +118,7 @@ function ie(t, n = {}) {
118
118
  const F = le(r);
119
119
  F && (await F[s](), o.value = !0);
120
120
  }
121
- async function L() {
121
+ async function z() {
122
122
  o.value ? await k() : await I();
123
123
  }
124
124
  return e && Oe(e, d, () => {
@@ -128,7 +128,7 @@ function ie(t, n = {}) {
128
128
  isFullscreen: o,
129
129
  enter: I,
130
130
  exit: k,
131
- toggle: L
131
+ toggle: z
132
132
  };
133
133
  }
134
134
  var Y;
@@ -172,7 +172,7 @@ const Te = {
172
172
  xe({
173
173
  linear: Re
174
174
  }, Te);
175
- const Be = /* @__PURE__ */ O({
175
+ const Be = /* @__PURE__ */ L({
176
176
  __name: "GridItem",
177
177
  props: {
178
178
  active: { type: Boolean },
@@ -183,7 +183,7 @@ const Be = /* @__PURE__ */ O({
183
183
  pe((c) => ({
184
184
  "9b3a2c32": m.value
185
185
  }));
186
- const e = t, i = n, r = w(), { toggle: o, isFullscreen: a } = ie(r), y = () => {
186
+ const e = t, i = n, r = h(), { toggle: o, isFullscreen: a } = ie(r), y = () => {
187
187
  r.value != document.fullscreenElement && (a.value ? (a.value = !1, P(() => {
188
188
  o();
189
189
  })) : o());
@@ -211,7 +211,7 @@ const Be = /* @__PURE__ */ O({
211
211
  for (const [i, r] of n)
212
212
  e[i] = r;
213
213
  return e;
214
- }, He = /* @__PURE__ */ T(Be, [["__scopeId", "data-v-100b67ca"]]), Ve = { class: "layout-wrapper" }, je = /* @__PURE__ */ O({
214
+ }, He = /* @__PURE__ */ T(Be, [["__scopeId", "data-v-100b67ca"]]), Ve = { class: "layout-wrapper" }, je = /* @__PURE__ */ L({
215
215
  __name: "GridLayout",
216
216
  props: {
217
217
  gridNum: {},
@@ -247,7 +247,7 @@ const Be = /* @__PURE__ */ O({
247
247
  ))
248
248
  ]));
249
249
  }
250
- }), Me = /* @__PURE__ */ T(je, [["__scopeId", "data-v-661e2289"]]), Ae = /* @__PURE__ */ O({
250
+ }), Me = /* @__PURE__ */ T(je, [["__scopeId", "data-v-661e2289"]]), Ae = /* @__PURE__ */ L({
251
251
  __name: "DirectionControl",
252
252
  emits: ["change"],
253
253
  setup(t, { emit: n }) {
@@ -261,7 +261,7 @@ const Be = /* @__PURE__ */ O({
261
261
  onDblclick: o[9] || (o[9] = _((a) => a.stopPropagation(), ["stop"]))
262
262
  },
263
263
  [
264
- v(l(h), {
264
+ v(l(w), {
265
265
  content: l(g)("左上")
266
266
  }, {
267
267
  default: C(() => [
@@ -273,7 +273,7 @@ const Be = /* @__PURE__ */ O({
273
273
  _: 1
274
274
  /* STABLE */
275
275
  }, 8, ["content"]),
276
- v(l(h), {
276
+ v(l(w), {
277
277
  content: l(g)("上")
278
278
  }, {
279
279
  default: C(() => [
@@ -285,7 +285,7 @@ const Be = /* @__PURE__ */ O({
285
285
  _: 1
286
286
  /* STABLE */
287
287
  }, 8, ["content"]),
288
- v(l(h), {
288
+ v(l(w), {
289
289
  content: l(g)("右上")
290
290
  }, {
291
291
  default: C(() => [
@@ -297,7 +297,7 @@ const Be = /* @__PURE__ */ O({
297
297
  _: 1
298
298
  /* STABLE */
299
299
  }, 8, ["content"]),
300
- v(l(h), {
300
+ v(l(w), {
301
301
  content: l(g)("左")
302
302
  }, {
303
303
  default: C(() => [
@@ -309,7 +309,7 @@ const Be = /* @__PURE__ */ O({
309
309
  _: 1
310
310
  /* STABLE */
311
311
  }, 8, ["content"]),
312
- v(l(h), {
312
+ v(l(w), {
313
313
  content: l(g)("自动")
314
314
  }, {
315
315
  default: C(() => [
@@ -321,7 +321,7 @@ const Be = /* @__PURE__ */ O({
321
321
  _: 1
322
322
  /* STABLE */
323
323
  }, 8, ["content"]),
324
- v(l(h), {
324
+ v(l(w), {
325
325
  content: l(g)("右")
326
326
  }, {
327
327
  default: C(() => [
@@ -333,7 +333,7 @@ const Be = /* @__PURE__ */ O({
333
333
  _: 1
334
334
  /* STABLE */
335
335
  }, 8, ["content"]),
336
- v(l(h), {
336
+ v(l(w), {
337
337
  content: l(g)("左下")
338
338
  }, {
339
339
  default: C(() => [
@@ -345,7 +345,7 @@ const Be = /* @__PURE__ */ O({
345
345
  _: 1
346
346
  /* STABLE */
347
347
  }, 8, ["content"]),
348
- v(l(h), {
348
+ v(l(w), {
349
349
  content: l(g)("下")
350
350
  }, {
351
351
  default: C(() => [
@@ -357,7 +357,7 @@ const Be = /* @__PURE__ */ O({
357
357
  _: 1
358
358
  /* STABLE */
359
359
  }, 8, ["content"]),
360
- v(l(h), {
360
+ v(l(w), {
361
361
  content: l(g)("右下")
362
362
  }, {
363
363
  default: C(() => [
@@ -377,7 +377,7 @@ const Be = /* @__PURE__ */ O({
377
377
  }), Qe = /* @__PURE__ */ T(Ae, [["__scopeId", "data-v-db2e8ec2"]]), qe = { class: "video-wrapper" }, Ge = { class: "video-top" }, We = { class: "video-top_l" }, Ye = { class: "video-title-wrapper" }, Ze = { class: "video-title" }, Ke = { class: "video-top_r" }, Xe = {
378
378
  key: 0,
379
379
  class: "play-status"
380
- }, Je = { class: "video-bottom" }, et = { class: "video-bottom_r" }, tt = /* @__PURE__ */ O({
380
+ }, Je = { class: "video-bottom" }, et = { class: "video-bottom_r" }, tt = /* @__PURE__ */ L({
381
381
  __name: "index",
382
382
  props: {
383
383
  videoUrl: {},
@@ -401,26 +401,26 @@ const Be = /* @__PURE__ */ O({
401
401
  enlarge: import("@das-fed/ui/packages/icons/enlarge"),
402
402
  "direction-control": import("@das-fed/ui/packages/icons/direction-control")
403
403
  });
404
- const r = w(!0), o = w(), a = w(!1), y = w(), s = U(() => {
404
+ const r = h(!0), o = h(), a = h(!1), y = h(), s = U(() => {
405
405
  var u;
406
406
  return (u = y.value) == null ? void 0 : u.video;
407
- }), m = w(!1), c = w(!0), d = (u) => {
407
+ }), m = h(!1), c = h(!0), d = (u) => {
408
408
  o.value = u, !e.isHls && o.value.on(window.mpegts.Events.ERROR, (E) => {
409
409
  });
410
410
  }, k = () => {
411
411
  r.value = !r.value, o.value && (o.value.muted = r.value);
412
412
  }, I = () => {
413
413
  a.value = !a.value;
414
- }, L = w(""), F = () => {
414
+ }, z = h(""), F = () => {
415
415
  const u = document.createElement("canvas");
416
416
  if (s.value) {
417
417
  u.width = s.value.clientWidth, u.height = s.value.clientHeight;
418
418
  const E = u.getContext("2d");
419
419
  E == null || E.drawImage(s.value, 0, 0, u.width, u.height);
420
- const D = u.toDataURL("image/jpg"), ae = `【${e.title}】${Ie().format("YYYYMMDDHHmmss").toString()}.jpg`;
421
- if (L.value = D, "download" in document.createElement("a")) {
422
- const z = document.createElement("a");
423
- z.download = ae, z.style.display = "none", z.href = D, document.body.appendChild(z), document.body.appendChild(u), z.click(), URL.revokeObjectURL(z.href), document.body.removeChild(z), document.body.removeChild(u);
420
+ const O = u.toDataURL("image/jpg"), ae = `【${e.title}】${Ie().format("YYYYMMDDHHmmss").toString()}.jpg`;
421
+ if (z.value = O, "download" in document.createElement("a")) {
422
+ const D = document.createElement("a");
423
+ D.download = ae, D.style.display = "none", D.href = O, document.body.appendChild(D), document.body.appendChild(u), D.click(), URL.revokeObjectURL(D.href), document.body.removeChild(D), document.body.removeChild(u);
424
424
  }
425
425
  }
426
426
  }, B = (u) => {
@@ -543,10 +543,10 @@ const Be = /* @__PURE__ */ O({
543
543
  "div",
544
544
  {
545
545
  class: "controls",
546
- onDblclick: E[2] || (E[2] = _((D) => D.stopPropagation(), ["stop"]))
546
+ onDblclick: E[2] || (E[2] = _((O) => O.stopPropagation(), ["stop"]))
547
547
  },
548
548
  [
549
- v(l(h), {
549
+ v(l(w), {
550
550
  content: l(g)("声音")
551
551
  }, {
552
552
  default: C(() => [
@@ -559,7 +559,7 @@ const Be = /* @__PURE__ */ O({
559
559
  _: 1
560
560
  /* STABLE */
561
561
  }, 8, ["content"]),
562
- v(l(h), {
562
+ v(l(w), {
563
563
  content: l(g)("截图")
564
564
  }, {
565
565
  default: C(() => [
@@ -572,7 +572,7 @@ const Be = /* @__PURE__ */ O({
572
572
  _: 1
573
573
  /* STABLE */
574
574
  }, 8, ["content"]),
575
- H("control") ? (p(), N(l(h), {
575
+ H("control") ? (p(), N(l(w), {
576
576
  key: 0,
577
577
  content: l(g)("聚焦-")
578
578
  }, {
@@ -581,13 +581,13 @@ const Be = /* @__PURE__ */ O({
581
581
  key: 0,
582
582
  class: "icon icon-shrink",
583
583
  icon: "shrink",
584
- onClick: E[0] || (E[0] = _((D) => M("zoomOut"), ["stop"]))
584
+ onClick: E[0] || (E[0] = _((O) => M("zoomOut"), ["stop"]))
585
585
  })) : b("v-if", !0)
586
586
  ]),
587
587
  _: 1
588
588
  /* STABLE */
589
589
  }, 8, ["content"])) : b("v-if", !0),
590
- H("control") ? (p(), N(l(h), {
590
+ H("control") ? (p(), N(l(w), {
591
591
  key: 1,
592
592
  content: l(g)("聚焦+")
593
593
  }, {
@@ -596,13 +596,13 @@ const Be = /* @__PURE__ */ O({
596
596
  key: 0,
597
597
  class: "icon icon-enlarge",
598
598
  icon: "enlarge",
599
- onClick: E[1] || (E[1] = _((D) => M("zoomIn"), ["stop"]))
599
+ onClick: E[1] || (E[1] = _((O) => M("zoomIn"), ["stop"]))
600
600
  })) : b("v-if", !0)
601
601
  ]),
602
602
  _: 1
603
603
  /* STABLE */
604
604
  }, 8, ["content"])) : b("v-if", !0),
605
- H("control") ? (p(), N(l(h), {
605
+ H("control") ? (p(), N(l(w), {
606
606
  key: 2,
607
607
  content: l(g)("方向控制")
608
608
  }, {
@@ -651,12 +651,7 @@ function rt(t) {
651
651
  return se.post(`/url/preview?${re(t)}`)().run();
652
652
  }
653
653
  it.post("data/device-auth");
654
- const at = (t) => {
655
- const n = Ee();
656
- return `${t}?token=${n}`;
657
- };
658
- w([]);
659
- const ct = /* @__PURE__ */ O({
654
+ const at = /* @__PURE__ */ L({
660
655
  props: {
661
656
  deviceInfo: {
662
657
  type: Object,
@@ -677,7 +672,7 @@ const ct = /* @__PURE__ */ O({
677
672
  deviceInfo: e,
678
673
  source: i,
679
674
  isHls: r
680
- } = me(t), o = w(!1), a = w(""), y = async () => {
675
+ } = me(t), o = h(!1), a = h(""), y = async () => {
681
676
  var k;
682
677
  if (!((k = e.value) != null && k.deviceId)) return;
683
678
  o.value = !0;
@@ -687,8 +682,8 @@ const ct = /* @__PURE__ */ O({
687
682
  source: i.value
688
683
  });
689
684
  if (!c) {
690
- let I = r.value ? "httpHlsStreamURL" : "wsFlvStreamURL";
691
- a.value = at(d == null ? void 0 : d[I]);
685
+ let I = r.value ? "httpHlsStreamURL" : "wsFlvStreamURL", z = d == null ? void 0 : d[I];
686
+ a.value = `${z}?access_token=${Ee()}`;
692
687
  }
693
688
  o.value = !1;
694
689
  }, s = (c) => {
@@ -723,8 +718,8 @@ const ct = /* @__PURE__ */ O({
723
718
  })]);
724
719
  }
725
720
  });
726
- function ut(t) {
727
- const n = w(0), e = w(), {
721
+ function ct(t) {
722
+ const n = h(0), e = h(), {
728
723
  toggle: i,
729
724
  isFullscreen: r,
730
725
  exit: o
@@ -743,7 +738,7 @@ function ut(t) {
743
738
  index: s
744
739
  }) => {
745
740
  const m = t.deviceList[s], c = t.source, d = t.isHls;
746
- return v(ct, {
741
+ return v(at, {
747
742
  deviceInfo: m,
748
743
  source: c,
749
744
  isHls: d
@@ -751,7 +746,7 @@ function ut(t) {
751
746
  default: ({
752
747
  videoUrl: k,
753
748
  onDirectionControl: I,
754
- onZoomControl: L,
749
+ onZoomControl: z,
755
750
  loading: F,
756
751
  isHls: B
757
752
  }) => v(ot, {
@@ -762,7 +757,7 @@ function ut(t) {
762
757
  title: m.deviceName,
763
758
  onClose: () => a(),
764
759
  onDirectionControl: I,
765
- onZoomControl: L,
760
+ onZoomControl: z,
766
761
  authType: m.authType === 2 ? ["control"] : [],
767
762
  isHls: B
768
763
  }, null)
@@ -772,7 +767,7 @@ function ut(t) {
772
767
  toggleFullscreen: i
773
768
  };
774
769
  }
775
- const dt = /* @__PURE__ */ O({
770
+ const ut = /* @__PURE__ */ L({
776
771
  __name: "index",
777
772
  props: {
778
773
  visible: { type: Boolean, default: !1 },
@@ -786,7 +781,7 @@ const dt = /* @__PURE__ */ O({
786
781
  const e = t, i = n, r = U({
787
782
  get: () => e.visible,
788
783
  set: (s) => i("update:visible", s)
789
- }), { render: o, toggleFullscreen: a } = ut(e), y = U(() => {
784
+ }), { render: o, toggleFullscreen: a } = ct(e), y = U(() => {
790
785
  let s = {};
791
786
  switch (e.gridNum) {
792
787
  case 1:
@@ -823,7 +818,7 @@ const dt = /* @__PURE__ */ O({
823
818
  /* TEXT */
824
819
  )
825
820
  ]),
826
- v(l(h), {
821
+ v(l(w), {
827
822
  content: l(g)("页面全屏")
828
823
  }, {
829
824
  default: C(() => [
@@ -844,7 +839,7 @@ const dt = /* @__PURE__ */ O({
844
839
  /* STABLE */
845
840
  }, 8, ["title", "custom-class", "modelValue"]));
846
841
  }
847
- }), pt = {
842
+ }), dt = {
848
843
  加载中: { "zh-CN": "加载中", en: "Loading", _appCode: "framework" },
849
844
  正在实时预览: { "zh-CN": "正在实时预览", en: "Real-time Video", _appCode: "framework" },
850
845
  声音: { "zh-CN": "声音", en: "Sound", _appCode: "framework" },
@@ -866,10 +861,10 @@ const dt = /* @__PURE__ */ O({
866
861
  "聚焦-": { "zh-CN": "聚焦-", en: "Focus-", _appCode: "framework" },
867
862
  "聚焦+": { "zh-CN": "聚焦+", en: "Focus+", _appCode: "framework" }
868
863
  };
869
- ge(pt);
870
- const Nt = Ce(dt), Ft = () => w(null);
864
+ ge(dt);
865
+ const Et = Ce(ut), Nt = () => h(null);
871
866
  export {
872
- Nt as DasVideoDialog,
873
- Ft as DasVideoDialogRef,
874
- ut as useVideo
867
+ Et as DasVideoDialog,
868
+ Nt as DasVideoDialogRef,
869
+ ct as useVideo
875
870
  };