@das-fed/ui 7.0.13 → 7.0.14

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 (101) hide show
  1. package/package.json +5 -5
  2. package/packages/business-components/ai-panel/{index-8yffh0Id.js → index-DMJXZM7n.js} +1067 -1056
  3. package/packages/business-components/ai-panel/index-DMJXZM7n.js.gz +0 -0
  4. package/packages/business-components/ai-panel/{index-IzGl26KU.js → index-MqhMkLo9.js} +9 -9
  5. package/packages/business-components/ai-panel/index-MqhMkLo9.js.gz +0 -0
  6. package/packages/business-components/ai-panel/{index-OwRrV6K8.js → index-_q72oKSF.js} +63 -62
  7. package/packages/business-components/ai-panel/index-_q72oKSF.js.gz +0 -0
  8. package/packages/business-components/ai-panel/index.js +1 -1
  9. package/packages/business-components/device-panel/index.js +14908 -14808
  10. package/packages/business-components/device-panel/index.js.gz +0 -0
  11. package/packages/business-components/echarts/index.js +2056 -2049
  12. package/packages/business-components/echarts/index.js.gz +0 -0
  13. package/packages/business-components/process-configuration/index.js +46 -46
  14. package/packages/business-components/process-configuration/index.js.gz +0 -0
  15. package/packages/business-components/process-form/index.js +99 -99
  16. package/packages/business-components/process-form/index.js.gz +0 -0
  17. package/packages/business-components/process-search-form/index.js +77 -77
  18. package/packages/business-components/process-search-form/index.js.gz +0 -0
  19. package/packages/business-components/process-table/index.js +215 -213
  20. package/packages/business-components/process-table/index.js.gz +0 -0
  21. package/packages/business-components/urgent-panel/index.js +1104 -1096
  22. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  23. package/packages/business-components/user-org-dialog/index.js +243 -240
  24. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  25. package/packages/business-components/video-dialog/index.js +135 -134
  26. package/packages/business-components/video-dialog/index.js.gz +0 -0
  27. package/packages/components/autocomplete/index.js +12 -6
  28. package/packages/components/autocomplete/index.js.gz +0 -0
  29. package/packages/components/calendar/index.js +99 -99
  30. package/packages/components/calendar/index.js.gz +0 -0
  31. package/packages/components/cascader/index.js +2 -2
  32. package/packages/components/cascader/index.js.gz +0 -0
  33. package/packages/components/checkbox/index.js +30 -30
  34. package/packages/components/checkbox/index.js.gz +0 -0
  35. package/packages/components/date-picker/index.js +212 -212
  36. package/packages/components/date-picker/index.js.gz +0 -0
  37. package/packages/components/dialog/index.d.ts +3 -3
  38. package/packages/components/dialog/src/Index.vue.d.ts +1 -1
  39. package/packages/components/dimple-layout/index.js +77 -75
  40. package/packages/components/dimple-layout/index.js.gz +0 -0
  41. package/packages/components/dropdown/index.js +25 -24
  42. package/packages/components/dropdown/index.js.gz +0 -0
  43. package/packages/components/edit-table/index.js +398 -397
  44. package/packages/components/edit-table/index.js.gz +0 -0
  45. package/packages/components/error-overlay-model/index.js +47 -45
  46. package/packages/components/error-overlay-model/index.js.gz +0 -0
  47. package/packages/components/form-item/index.js +67 -67
  48. package/packages/components/form-item/index.js.gz +0 -0
  49. package/packages/components/hls-player/index.js +14 -7
  50. package/packages/components/hls-player/index.js.gz +0 -0
  51. package/packages/components/image-upload/index.js +147 -143
  52. package/packages/components/image-upload/index.js.gz +0 -0
  53. package/packages/components/image-viewer/index.js +297 -293
  54. package/packages/components/image-viewer/index.js.gz +0 -0
  55. package/packages/components/input/index.js +52 -52
  56. package/packages/components/input/index.js.gz +0 -0
  57. package/packages/components/input-number/index.js +26 -26
  58. package/packages/components/input-number/index.js.gz +0 -0
  59. package/packages/components/live-player/index.js +251 -248
  60. package/packages/components/live-player/index.js.gz +0 -0
  61. package/packages/components/map/index.js +421 -415
  62. package/packages/components/map/index.js.gz +0 -0
  63. package/packages/components/menu-aside/index.js +1 -1
  64. package/packages/components/menu-aside/index.js.gz +0 -0
  65. package/packages/components/message/index.js +6 -6
  66. package/packages/components/message/index.js.gz +0 -0
  67. package/packages/components/popover/index.js +12 -12
  68. package/packages/components/popover/index.js.gz +0 -0
  69. package/packages/components/radio-tabs/index.js +34 -34
  70. package/packages/components/radio-tabs/index.js.gz +0 -0
  71. package/packages/components/rich-editor/index.js +4613 -4583
  72. package/packages/components/rich-editor/index.js.gz +0 -0
  73. package/packages/components/scrollbar/index.js +135 -135
  74. package/packages/components/scrollbar/index.js.gz +0 -0
  75. package/packages/components/search/index.js +24 -24
  76. package/packages/components/search/index.js.gz +0 -0
  77. package/packages/components/select/index.js +60 -60
  78. package/packages/components/select/index.js.gz +0 -0
  79. package/packages/components/select-list/index.js +9 -5
  80. package/packages/components/select-list/index.js.gz +0 -0
  81. package/packages/components/special-range-picker-month/index.js +16 -14
  82. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  83. package/packages/components/special-range-picker-year/index.js +53 -51
  84. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  85. package/packages/components/spin/index.js +33 -33
  86. package/packages/components/spin/index.js.gz +0 -0
  87. package/packages/components/split-panel/index.js +129 -128
  88. package/packages/components/split-panel/index.js.gz +0 -0
  89. package/packages/components/table/index.js +179 -178
  90. package/packages/components/table/index.js.gz +0 -0
  91. package/packages/components/time-line/index.js +1 -1
  92. package/packages/components/time-line/index.js.gz +0 -0
  93. package/packages/components/tree-select/index.js +1 -1
  94. package/packages/components/tree-select/index.js.gz +0 -0
  95. package/packages/components/tree-table/index.js +2 -2
  96. package/packages/components/tree-table/index.js.gz +0 -0
  97. package/packages/components/tree-v2/index.js +1117 -1093
  98. package/packages/components/tree-v2/index.js.gz +0 -0
  99. package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
  100. package/packages/business-components/ai-panel/index-IzGl26KU.js.gz +0 -0
  101. package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
@@ -1,8 +1,8 @@
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 y, 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 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 I, Fragment as x, renderList as fe, createBlock as N, withCtx as y, withModifiers as _, createVNode as v, createElementVNode as f, toDisplayString as V, toRefs as me } from "vue";
3
3
  import { withInstall as ye } from "@das-fed/utils/with-install/index";
4
- import { t as C, setI18nRule as Ce } from "@das-fed/web/packages/i18n/index";
5
- import { DasDialog as ge } from "@das-fed/ui/packages/components/dialog/index";
4
+ import { t as g, setI18nRule as ge } from "@das-fed/web/packages/i18n/index";
5
+ import { DasDialog as Ce } from "@das-fed/ui/packages/components/dialog/index";
6
6
  import { DasTooltip as h } 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";
@@ -35,16 +35,16 @@ function le(t) {
35
35
  }
36
36
  const ze = j ? window : void 0, De = j ? window.document : void 0;
37
37
  function Oe(...t) {
38
- let n, e, i, r;
39
- if (Ne(t[0]) || Array.isArray(t[0]) ? ([e, i, r] = t, n = ze) : [n, e, i, r] = t, !n)
38
+ let n, e, i, s;
39
+ if (Ne(t[0]) || Array.isArray(t[0]) ? ([e, i, s] = t, n = ze) : [n, e, i, s] = t, !n)
40
40
  return Fe;
41
41
  Array.isArray(e) || (e = [e]), Array.isArray(i) || (i = [i]);
42
42
  const o = [], a = () => {
43
43
  o.forEach((c) => c()), o.length = 0;
44
- }, g = (c, d, k, I) => (c.addEventListener(d, k, I), () => c.removeEventListener(d, k, I)), s = R(() => [le(n), oe(r)], ([c, d]) => {
45
- a(), c && o.push(...e.flatMap((k) => i.map((I) => g(c, k, I, d))));
44
+ }, C = (c, d, k, E) => (c.addEventListener(d, k, E), () => c.removeEventListener(d, k, E)), r = R(() => [le(n), oe(s)], ([c, d]) => {
45
+ a(), c && o.push(...e.flatMap((k) => i.map((E) => C(c, k, E, d))));
46
46
  }, { immediate: !0, flush: "post" }), m = () => {
47
- s(), a();
47
+ r(), a();
48
48
  };
49
49
  return ne(m), m;
50
50
  }
@@ -97,9 +97,9 @@ 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, s = t || (e == null ? void 0 : e.querySelector("html")), o = w(!1);
101
101
  let a = W[0];
102
- const g = Le(() => {
102
+ const C = Le(() => {
103
103
  if (e) {
104
104
  for (const F of W)
105
105
  if (F[1] in e)
@@ -107,26 +107,26 @@ function ie(t, n = {}) {
107
107
  } else
108
108
  return !1;
109
109
  return !1;
110
- }), [s, m, c, , d] = a;
110
+ }), [r, m, c, , d] = a;
111
111
  async function k() {
112
- g.value && (e != null && e[c] && await e[m](), o.value = !1);
112
+ C.value && (e != null && e[c] && await e[m](), o.value = !1);
113
113
  }
114
- async function I() {
115
- if (!g.value)
114
+ async function E() {
115
+ if (!C.value)
116
116
  return;
117
117
  await k();
118
- const F = le(r);
119
- F && (await F[s](), o.value = !0);
118
+ const F = le(s);
119
+ F && (await F[r](), o.value = !0);
120
120
  }
121
121
  async function L() {
122
- o.value ? await k() : await I();
122
+ o.value ? await k() : await E();
123
123
  }
124
124
  return e && Oe(e, d, () => {
125
125
  o.value = !!(e != null && e[c]);
126
126
  }, !1), i && ne(k), {
127
- isSupported: g,
127
+ isSupported: C,
128
128
  isFullscreen: o,
129
- enter: I,
129
+ enter: E,
130
130
  exit: k,
131
131
  toggle: L
132
132
  };
@@ -183,21 +183,21 @@ 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), g = () => {
187
- r.value != document.fullscreenElement && (a.value ? (a.value = !1, P(() => {
186
+ const e = t, i = n, s = w(), { toggle: o, isFullscreen: a } = ie(s), C = () => {
187
+ s.value != document.fullscreenElement && (a.value ? (a.value = !1, P(() => {
188
188
  o();
189
189
  })) : o());
190
- }, s = () => {
190
+ }, r = () => {
191
191
  i("itemClick");
192
192
  }, m = U(() => `calc(100% / ${Math.sqrt(e.gridNum)})`);
193
193
  return (c, d) => (p(), S(
194
194
  "div",
195
195
  {
196
196
  ref_key: "containerRef",
197
- ref: r,
197
+ ref: s,
198
198
  class: ve(["wrapper", { "is-active": e.active }]),
199
- onDblclick: d[0] || (d[0] = (k) => g()),
200
- onClick: d[1] || (d[1] = (k) => s())
199
+ onDblclick: d[0] || (d[0] = (k) => C()),
200
+ onClick: d[1] || (d[1] = (k) => r())
201
201
  },
202
202
  [
203
203
  ee(c.$slots, "default", {}, void 0, !0)
@@ -208,8 +208,8 @@ const Be = /* @__PURE__ */ O({
208
208
  }
209
209
  }), T = (t, n) => {
210
210
  const e = t.__vccOpts || t;
211
- for (const [i, r] of n)
212
- e[i] = r;
211
+ for (const [i, s] of n)
212
+ e[i] = s;
213
213
  return e;
214
214
  }, He = /* @__PURE__ */ T(Be, [["__scopeId", "data-v-100b67ca"]]), Ve = { class: "layout-wrapper" }, je = /* @__PURE__ */ O({
215
215
  __name: "GridLayout",
@@ -220,24 +220,24 @@ const Be = /* @__PURE__ */ O({
220
220
  },
221
221
  emits: ["update:activeIndex"],
222
222
  setup(t, { emit: n }) {
223
- const e = t, i = n, r = (o) => {
223
+ const e = t, i = n, s = (o) => {
224
224
  i("update:activeIndex", o);
225
225
  };
226
226
  return (o, a) => (p(), S("div", Ve, [
227
- b(' :active="index === activeIndex" '),
227
+ I(' :active="index === activeIndex" '),
228
228
  (p(!0), S(
229
229
  x,
230
230
  null,
231
- fe(e.gridNum, (g, s) => (p(), N(He, {
231
+ fe(e.gridNum, (C, r) => (p(), N(He, {
232
232
  active: !1,
233
233
  "grid-num": e.gridNum,
234
- onItemClick: (m) => r(s)
234
+ onItemClick: (m) => s(r)
235
235
  }, {
236
236
  default: y(() => [
237
- o.showFn(s) ? ee(o.$slots, "default", {
237
+ o.showFn(r) ? ee(o.$slots, "default", {
238
238
  key: 0,
239
- index: s
240
- }, void 0, !0) : b("v-if", !0)
239
+ index: r
240
+ }, void 0, !0) : I("v-if", !0)
241
241
  ]),
242
242
  _: 2
243
243
  /* DYNAMIC */
@@ -251,10 +251,10 @@ const Be = /* @__PURE__ */ O({
251
251
  __name: "DirectionControl",
252
252
  emits: ["change"],
253
253
  setup(t, { emit: n }) {
254
- const e = n, i = (r) => {
255
- e("change", r);
254
+ const e = n, i = (s) => {
255
+ e("change", s);
256
256
  };
257
- return (r, o) => (p(), S(
257
+ return (s, o) => (p(), S(
258
258
  "div",
259
259
  {
260
260
  class: "direction-control",
@@ -262,7 +262,7 @@ const Be = /* @__PURE__ */ O({
262
262
  },
263
263
  [
264
264
  v(l(h), {
265
- content: l(C)("左上")
265
+ content: l(g)("左上")
266
266
  }, {
267
267
  default: y(() => [
268
268
  f("div", {
@@ -274,7 +274,7 @@ const Be = /* @__PURE__ */ O({
274
274
  /* STABLE */
275
275
  }, 8, ["content"]),
276
276
  v(l(h), {
277
- content: l(C)("上")
277
+ content: l(g)("上")
278
278
  }, {
279
279
  default: y(() => [
280
280
  f("div", {
@@ -286,7 +286,7 @@ const Be = /* @__PURE__ */ O({
286
286
  /* STABLE */
287
287
  }, 8, ["content"]),
288
288
  v(l(h), {
289
- content: l(C)("右上")
289
+ content: l(g)("右上")
290
290
  }, {
291
291
  default: y(() => [
292
292
  f("div", {
@@ -298,7 +298,7 @@ const Be = /* @__PURE__ */ O({
298
298
  /* STABLE */
299
299
  }, 8, ["content"]),
300
300
  v(l(h), {
301
- content: l(C)("左")
301
+ content: l(g)("左")
302
302
  }, {
303
303
  default: y(() => [
304
304
  f("div", {
@@ -310,7 +310,7 @@ const Be = /* @__PURE__ */ O({
310
310
  /* STABLE */
311
311
  }, 8, ["content"]),
312
312
  v(l(h), {
313
- content: l(C)("自动")
313
+ content: l(g)("自动")
314
314
  }, {
315
315
  default: y(() => [
316
316
  f("div", {
@@ -322,7 +322,7 @@ const Be = /* @__PURE__ */ O({
322
322
  /* STABLE */
323
323
  }, 8, ["content"]),
324
324
  v(l(h), {
325
- content: l(C)("右")
325
+ content: l(g)("右")
326
326
  }, {
327
327
  default: y(() => [
328
328
  f("div", {
@@ -334,7 +334,7 @@ const Be = /* @__PURE__ */ O({
334
334
  /* STABLE */
335
335
  }, 8, ["content"]),
336
336
  v(l(h), {
337
- content: l(C)("左下")
337
+ content: l(g)("左下")
338
338
  }, {
339
339
  default: y(() => [
340
340
  f("div", {
@@ -346,7 +346,7 @@ const Be = /* @__PURE__ */ O({
346
346
  /* STABLE */
347
347
  }, 8, ["content"]),
348
348
  v(l(h), {
349
- content: l(C)("下")
349
+ content: l(g)("下")
350
350
  }, {
351
351
  default: y(() => [
352
352
  f("div", {
@@ -358,7 +358,7 @@ const Be = /* @__PURE__ */ O({
358
358
  /* STABLE */
359
359
  }, 8, ["content"]),
360
360
  v(l(h), {
361
- content: l(C)("右下")
361
+ content: l(g)("右下")
362
362
  }, {
363
363
  default: y(() => [
364
364
  f("div", {
@@ -401,22 +401,23 @@ 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), g = w(), s = U(() => {
404
+ const s = w(!0), o = w(), a = w(!1), C = w(), r = U(() => {
405
405
  var u;
406
- return (u = g.value) == null ? void 0 : u.video;
406
+ return (u = C.value) == null ? void 0 : u.video;
407
407
  }), m = w(!1), c = w(!0), d = (u) => {
408
- o.value = u, !e.isHls && o.value.on(window.mpegts.Events.ERROR, (E) => {
408
+ o.value = u, !e.isHls && o.value.on(window.mpegts.Events.ERROR, (b) => {
409
+ console.log("player error", b);
409
410
  });
410
411
  }, k = () => {
411
- r.value = !r.value, o.value && (o.value.muted = r.value);
412
- }, I = () => {
412
+ s.value = !s.value, o.value && (o.value.muted = s.value);
413
+ }, E = () => {
413
414
  a.value = !a.value;
414
415
  }, L = w(""), F = () => {
415
416
  const u = document.createElement("canvas");
416
- if (s.value) {
417
- u.width = s.value.clientWidth, u.height = s.value.clientHeight;
418
- const E = u.getContext("2d");
419
- E == null || E.drawImage(s.value, 0, 0, u.width, u.height);
417
+ if (r.value) {
418
+ u.width = r.value.clientWidth, u.height = r.value.clientHeight;
419
+ const b = u.getContext("2d");
420
+ b == null || b.drawImage(r.value, 0, 0, u.width, u.height);
420
421
  const D = u.toDataURL("image/jpg"), ae = `【${e.title}】${Ie().format("YYYYMMDDHHmmss").toString()}.jpg`;
421
422
  if (L.value = D, "download" in document.createElement("a")) {
422
423
  const z = document.createElement("a");
@@ -429,30 +430,30 @@ const Be = /* @__PURE__ */ O({
429
430
  i("zoomControl", u);
430
431
  }, H = (u) => e.authType.includes(u);
431
432
  return R(
432
- () => s.value,
433
+ () => r.value,
433
434
  () => {
434
- s.value && s.value.addEventListener("ended", () => {
435
+ r.value && r.value.addEventListener("ended", () => {
435
436
  m.value = !0, e.type === "playback" && (c.value = !1);
436
437
  });
437
438
  }
438
439
  ), R(
439
- () => s.value,
440
+ () => r.value,
440
441
  () => {
441
- s.value && P(() => {
442
- s.value.playbackRate = e.playbackRate || 1;
442
+ r.value && P(() => {
443
+ r.value.playbackRate = e.playbackRate || 1;
443
444
  });
444
445
  }
445
446
  ), R(
446
447
  () => o.value,
447
448
  () => {
448
449
  o.value && P(() => {
449
- o.value.muted = r.value;
450
+ o.value.muted = s.value;
450
451
  });
451
452
  }
452
453
  ), R(
453
454
  () => e.playbackRate,
454
455
  () => {
455
- s.value && (s.value.playbackRate = e.playbackRate || 1);
456
+ r.value && (r.value.playbackRate = e.playbackRate || 1);
456
457
  },
457
458
  {
458
459
  immediate: !0
@@ -469,11 +470,11 @@ const Be = /* @__PURE__ */ O({
469
470
  c.value = !0;
470
471
  });
471
472
  }
472
- ), (u, E) => (p(), S("div", qe, [
473
+ ), (u, b) => (p(), S("div", qe, [
473
474
  v(l(he), {
474
475
  spinning: e.loading,
475
476
  type: "component",
476
- tip: l(C)("加载中...")
477
+ tip: l(g)("加载中...")
477
478
  }, {
478
479
  default: y(() => [
479
480
  f("div", Ge, [
@@ -492,11 +493,11 @@ const Be = /* @__PURE__ */ O({
492
493
  ["live"].includes(u.type) ? (p(), S(
493
494
  "span",
494
495
  Xe,
495
- V(l(C)("正在实时预览")),
496
+ V(l(g)("正在实时预览")),
496
497
  1
497
498
  /* TEXT */
498
- )) : b("v-if", !0),
499
- b(' <das-icon v-if="isFullscreen" class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
499
+ )) : I("v-if", !0),
500
+ I(' <das-icon v-if="isFullscreen" class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
500
501
  ])
501
502
  ]),
502
503
  u.isHls ? (p(), S(
@@ -506,11 +507,11 @@ const Be = /* @__PURE__ */ O({
506
507
  e.videoUrl && c.value ? (p(), N(l(be), {
507
508
  key: 0,
508
509
  ref_key: "dasLivePlayerRef",
509
- ref: g,
510
- muted: r.value,
510
+ ref: C,
511
+ muted: s.value,
511
512
  onLoaded: d,
512
513
  src: e.videoUrl
513
- }, null, 8, ["muted", "src"])) : b("v-if", !0)
514
+ }, null, 8, ["muted", "src"])) : I("v-if", !0)
514
515
  ],
515
516
  64
516
517
  /* STABLE_FRAGMENT */
@@ -522,17 +523,17 @@ const Be = /* @__PURE__ */ O({
522
523
  key: 0,
523
524
  type: "flv",
524
525
  ref_key: "dasLivePlayerRef",
525
- ref: g,
526
- muted: r.value,
526
+ ref: C,
527
+ muted: s.value,
527
528
  onLoaded: d,
528
529
  src: e.videoUrl
529
- }, null, 8, ["muted", "src"])) : b("v-if", !0)
530
+ }, null, 8, ["muted", "src"])) : I("v-if", !0)
530
531
  ],
531
532
  64
532
533
  /* STABLE_FRAGMENT */
533
534
  )),
534
535
  f("div", Je, [
535
- E[3] || (E[3] = f(
536
+ b[3] || (b[3] = f(
536
537
  "div",
537
538
  { class: "video-bottom_l" },
538
539
  null,
@@ -544,16 +545,16 @@ const Be = /* @__PURE__ */ O({
544
545
  "div",
545
546
  {
546
547
  class: "controls",
547
- onDblclick: E[2] || (E[2] = _((D) => D.stopPropagation(), ["stop"]))
548
+ onDblclick: b[2] || (b[2] = _((D) => D.stopPropagation(), ["stop"]))
548
549
  },
549
550
  [
550
551
  v(l(h), {
551
- content: l(C)("声音")
552
+ content: l(g)("声音")
552
553
  }, {
553
554
  default: y(() => [
554
555
  v(l($), {
555
556
  class: "icon icon-volume",
556
- icon: r.value ? "muted" : "volume",
557
+ icon: s.value ? "muted" : "volume",
557
558
  onClick: _(k, ["stop"])
558
559
  }, null, 8, ["icon"])
559
560
  ]),
@@ -561,7 +562,7 @@ const Be = /* @__PURE__ */ O({
561
562
  /* STABLE */
562
563
  }, 8, ["content"]),
563
564
  v(l(h), {
564
- content: l(C)("截图")
565
+ content: l(g)("截图")
565
566
  }, {
566
567
  default: y(() => [
567
568
  v(l($), {
@@ -575,49 +576,49 @@ const Be = /* @__PURE__ */ O({
575
576
  }, 8, ["content"]),
576
577
  H("control") ? (p(), N(l(h), {
577
578
  key: 0,
578
- content: l(C)("聚焦-")
579
+ content: l(g)("聚焦-")
579
580
  }, {
580
581
  default: y(() => [
581
582
  ["live", "polling"].includes(e.type) ? (p(), N(l($), {
582
583
  key: 0,
583
584
  class: "icon icon-shrink",
584
585
  icon: "shrink",
585
- onClick: E[0] || (E[0] = _((D) => M("zoomOut"), ["stop"]))
586
- })) : b("v-if", !0)
586
+ onClick: b[0] || (b[0] = _((D) => M("zoomOut"), ["stop"]))
587
+ })) : I("v-if", !0)
587
588
  ]),
588
589
  _: 1
589
590
  /* STABLE */
590
- }, 8, ["content"])) : b("v-if", !0),
591
+ }, 8, ["content"])) : I("v-if", !0),
591
592
  H("control") ? (p(), N(l(h), {
592
593
  key: 1,
593
- content: l(C)("聚焦+")
594
+ content: l(g)("聚焦+")
594
595
  }, {
595
596
  default: y(() => [
596
597
  ["live", "polling"].includes(e.type) ? (p(), N(l($), {
597
598
  key: 0,
598
599
  class: "icon icon-enlarge",
599
600
  icon: "enlarge",
600
- onClick: E[1] || (E[1] = _((D) => M("zoomIn"), ["stop"]))
601
- })) : b("v-if", !0)
601
+ onClick: b[1] || (b[1] = _((D) => M("zoomIn"), ["stop"]))
602
+ })) : I("v-if", !0)
602
603
  ]),
603
604
  _: 1
604
605
  /* STABLE */
605
- }, 8, ["content"])) : b("v-if", !0),
606
+ }, 8, ["content"])) : I("v-if", !0),
606
607
  H("control") ? (p(), N(l(h), {
607
608
  key: 2,
608
- content: l(C)("方向控制")
609
+ content: l(g)("方向控制")
609
610
  }, {
610
611
  default: y(() => [
611
612
  ["live", "polling"].includes(e.type) ? (p(), N(l($), {
612
613
  key: 0,
613
614
  class: "icon icon-direction-control",
614
615
  icon: "direction-control",
615
- onClick: _(I, ["stop"])
616
- })) : b("v-if", !0)
616
+ onClick: _(E, ["stop"])
617
+ })) : I("v-if", !0)
617
618
  ]),
618
619
  _: 1
619
620
  /* STABLE */
620
- }, 8, ["content"])) : b("v-if", !0)
621
+ }, 8, ["content"])) : I("v-if", !0)
621
622
  ],
622
623
  32
623
624
  /* NEED_HYDRATION */
@@ -627,29 +628,29 @@ const Be = /* @__PURE__ */ O({
627
628
  a.value ? (p(), N(Qe, {
628
629
  key: 2,
629
630
  onChange: B
630
- })) : b("v-if", !0)
631
+ })) : I("v-if", !0)
631
632
  ]),
632
633
  _: 1
633
634
  /* STABLE */
634
635
  }, 8, ["spinning", "tip"])
635
636
  ]));
636
637
  }
637
- }), ot = /* @__PURE__ */ T(tt, [["__scopeId", "data-v-12f30393"]]), nt = "/api/device-relation/deviceproject/v1/project/device/video", lt = "v1", it = te(`/api/enterpriseright/permission/${lt}`), se = te(`${nt}`, st);
638
- function st(t) {
638
+ }), ot = /* @__PURE__ */ T(tt, [["__scopeId", "data-v-12f30393"]]), nt = "/api/device-relation/deviceproject/v1/project/device/video", lt = "v1", it = te(`/api/enterpriseright/permission/${lt}`), re = te(`${nt}`, rt);
639
+ function rt(t) {
639
640
  const n = A() ? A().id : 1;
640
641
  return t.params || (t.params = {}), t.params.project = n, t.params.projectId = n, t;
641
642
  }
642
- function re(t) {
643
+ function se(t) {
643
644
  const n = new URLSearchParams("");
644
645
  for (let [e, i] of Object.entries(t))
645
646
  n.append(e, i);
646
647
  return n.toString();
647
648
  }
648
649
  function X(t) {
649
- return se.post(`/ptz?${re(t)}`)().run();
650
+ return re.post(`/ptz?${se(t)}`)().run();
650
651
  }
651
- function rt(t) {
652
- return se.post(`/url/preview?${re(t)}`)().run();
652
+ function st(t) {
653
+ return re.post(`/url/preview?${se(t)}`)().run();
653
654
  }
654
655
  it.post("data/device-auth");
655
656
  const at = (t) => {
@@ -677,22 +678,22 @@ const ct = /* @__PURE__ */ O({
677
678
  const {
678
679
  deviceInfo: e,
679
680
  source: i,
680
- isHls: r
681
- } = me(t), o = w(!1), a = w(""), g = async () => {
681
+ isHls: s
682
+ } = me(t), o = w(!1), a = w(""), C = async () => {
682
683
  var k;
683
684
  if (!((k = e.value) != null && k.deviceId)) return;
684
685
  o.value = !0;
685
- const [c, d] = await rt({
686
+ const [c, d] = await st({
686
687
  productId: e.value.productId,
687
688
  deviceId: e.value.deviceId,
688
689
  source: i.value
689
690
  });
690
691
  if (!c) {
691
- let I = r.value ? "httpHlsStreamURL" : "wsFlvStreamURL";
692
- a.value = at(d == null ? void 0 : d[I]);
692
+ let E = s.value ? "httpHlsStreamURL" : "wsFlvStreamURL";
693
+ a.value = at(d == null ? void 0 : d[E]);
693
694
  }
694
695
  o.value = !1;
695
- }, s = (c) => {
696
+ }, r = (c) => {
696
697
  X({
697
698
  productId: e.value.productId,
698
699
  deviceId: e.value.deviceId,
@@ -710,40 +711,40 @@ const ct = /* @__PURE__ */ O({
710
711
  });
711
712
  };
712
713
  return J(() => {
713
- g();
714
+ C();
714
715
  }), R(() => e.value, () => {
715
- g();
716
+ C();
716
717
  }, {
717
718
  deep: !0
718
719
  }), () => v(x, null, [n.default({
719
720
  videoUrl: a.value,
720
721
  loading: o.value,
721
- onDirectionControl: s,
722
+ onDirectionControl: r,
722
723
  onZoomControl: m,
723
- isHls: r.value
724
+ isHls: s.value
724
725
  })]);
725
726
  }
726
727
  });
727
728
  function ut(t) {
728
729
  const n = w(0), e = w(), {
729
730
  toggle: i,
730
- isFullscreen: r,
731
+ isFullscreen: s,
731
732
  exit: o
732
- } = ie(e), a = (s, m) => {
733
- r.value && o();
733
+ } = ie(e), a = (r, m) => {
734
+ s.value && o();
734
735
  };
735
736
  return {
736
737
  render: () => v(Me, {
737
738
  ref: e,
738
739
  gridNum: t.gridNum,
739
740
  activeIndex: n.value,
740
- "onUpdate:activeIndex": (s) => n.value = s,
741
- showFn: (s) => !!t.deviceList[s]
741
+ "onUpdate:activeIndex": (r) => n.value = r,
742
+ showFn: (r) => !!t.deviceList[r]
742
743
  }, {
743
744
  default: ({
744
- index: s
745
+ index: r
745
746
  }) => {
746
- const m = t.deviceList[s], c = t.source, d = t.isHls;
747
+ const m = t.deviceList[r], c = t.source, d = t.isHls;
747
748
  return v(ct, {
748
749
  deviceInfo: m,
749
750
  source: c,
@@ -751,18 +752,18 @@ function ut(t) {
751
752
  }, {
752
753
  default: ({
753
754
  videoUrl: k,
754
- onDirectionControl: I,
755
+ onDirectionControl: E,
755
756
  onZoomControl: L,
756
757
  loading: F,
757
758
  isHls: B
758
759
  }) => v(ot, {
759
760
  type: "live",
760
761
  loading: F,
761
- isFullscreen: r.value,
762
+ isFullscreen: s.value,
762
763
  videoUrl: k,
763
764
  title: m.deviceName,
764
765
  onClose: () => a(),
765
- onDirectionControl: I,
766
+ onDirectionControl: E,
766
767
  onZoomControl: L,
767
768
  authType: m.authType === 2 ? ["control"] : [],
768
769
  isHls: B
@@ -784,30 +785,30 @@ const dt = /* @__PURE__ */ O({
784
785
  },
785
786
  emits: ["update:visible"],
786
787
  setup(t, { emit: n }) {
787
- const e = t, i = n, r = U({
788
+ const e = t, i = n, s = U({
788
789
  get: () => e.visible,
789
- set: (s) => i("update:visible", s)
790
- }), { render: o, toggleFullscreen: a } = ut(e), g = U(() => {
791
- let s = {};
790
+ set: (r) => i("update:visible", r)
791
+ }), { render: o, toggleFullscreen: a } = ut(e), C = U(() => {
792
+ let r = {};
792
793
  switch (e.gridNum) {
793
794
  case 1:
794
- s = "one-video";
795
+ r = "one-video";
795
796
  break;
796
797
  case 4:
797
- s = "four-video";
798
+ r = "four-video";
798
799
  break;
799
800
  case 9:
800
- s = "nine-video";
801
+ r = "nine-video";
801
802
  break;
802
803
  }
803
- return s;
804
+ return r;
804
805
  });
805
- return (s, m) => (p(), N(l(ge), {
806
+ return (r, m) => (p(), N(l(Ce), {
806
807
  size: "mini",
807
- title: l(C)("视频监控"),
808
- "custom-class": `das-linakge-video-dialog ${g.value}`,
809
- modelValue: r.value,
810
- "onUpdate:modelValue": m[0] || (m[0] = (c) => r.value = c),
808
+ title: l(g)("视频监控"),
809
+ "custom-class": `das-linakge-video-dialog ${C.value}`,
810
+ modelValue: s.value,
811
+ "onUpdate:modelValue": m[0] || (m[0] = (c) => s.value = c),
811
812
  bodyStyle: { padding: 0 },
812
813
  "close-on-click-modal": !1,
813
814
  "close-on-press-escape": !1,
@@ -819,13 +820,13 @@ const dt = /* @__PURE__ */ O({
819
820
  f(
820
821
  "span",
821
822
  null,
822
- V(l(C)("视频监控")),
823
+ V(l(g)("视频监控")),
823
824
  1
824
825
  /* TEXT */
825
826
  )
826
827
  ]),
827
828
  v(l(h), {
828
- content: l(C)("页面全屏")
829
+ content: l(g)("页面全屏")
829
830
  }, {
830
831
  default: y(() => [
831
832
  v(l(ke), {
@@ -839,7 +840,7 @@ const dt = /* @__PURE__ */ O({
839
840
  }, 8, ["content"])
840
841
  ]),
841
842
  default: y(() => [
842
- r.value ? (p(), N(l(o), { key: 0 })) : b("v-if", !0)
843
+ s.value ? (p(), N(l(o), { key: 0 })) : I("v-if", !0)
843
844
  ]),
844
845
  _: 1
845
846
  /* STABLE */
@@ -867,7 +868,7 @@ const dt = /* @__PURE__ */ O({
867
868
  "聚焦-": { "zh-CN": "聚焦-", en: "Focus-", _appCode: "framework" },
868
869
  "聚焦+": { "zh-CN": "聚焦+", en: "Focus+", _appCode: "framework" }
869
870
  };
870
- Ce(pt);
871
+ ge(pt);
871
872
  const Nt = ye(dt), Ft = () => w(null);
872
873
  export {
873
874
  Nt as DasVideoDialog,