@das-fed/ui 6.4.0-test.3.2 → 6.4.0-test.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/esm-map.json +9 -1
  2. package/package.json +5 -5
  3. package/packages/business-components/app-container/index.d.ts +1 -0
  4. package/packages/business-components/app-container/index.js +152 -120
  5. package/packages/business-components/app-container/index.js.gz +0 -0
  6. package/packages/business-components/app-container/src/index.vue.d.ts +1 -0
  7. package/packages/business-components/app-container/src/style-theme.d.ts +18 -0
  8. package/packages/business-components/app-container/src/type.d.ts +1 -0
  9. package/packages/business-components/app-container/style.css +1 -1
  10. package/packages/business-components/app-container/style.css.gz +0 -0
  11. package/packages/business-components/app-container/theme/index.d.ts +1 -0
  12. package/packages/business-components/change-enterprises/i18n/index.d.ts +18 -0
  13. package/packages/business-components/change-enterprises/index.js +65 -59
  14. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  15. package/packages/business-components/change-pwd/i18n/index.d.ts +86 -0
  16. package/packages/business-components/change-pwd/index.js +138 -113
  17. package/packages/business-components/change-pwd/index.js.gz +0 -0
  18. package/packages/business-components/currency-page/i18n/index.d.ts +23 -0
  19. package/packages/business-components/currency-page/index.js +42 -27
  20. package/packages/business-components/currency-page/index.js.gz +0 -0
  21. package/packages/business-components/device-panel/i18n/index.d.ts +1178 -0
  22. package/packages/business-components/device-panel/index.js +17132 -16862
  23. package/packages/business-components/device-panel/index.js.gz +0 -0
  24. package/packages/business-components/device-panel/src/components/alarmDevicePanel/operatingData/index.vue.d.ts +1 -7
  25. package/packages/business-components/device-panel/src/hooks/use-operating-data.d.ts +22 -0
  26. package/packages/business-components/device-panel/style.css +1 -1
  27. package/packages/business-components/device-panel/style.css.gz +0 -0
  28. package/packages/business-components/export-button/i18n/index.d.ts +58 -0
  29. package/packages/business-components/export-button/index.js +119 -97
  30. package/packages/business-components/export-button/index.js.gz +0 -0
  31. package/packages/business-components/import-button/i18n/index.d.ts +133 -0
  32. package/packages/business-components/import-button/index.js +335 -294
  33. package/packages/business-components/import-button/index.js.gz +0 -0
  34. package/packages/business-components/layout-breadcrumb/index.js +63 -61
  35. package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
  36. package/packages/business-components/model-table-dialog/i18n/index.d.ts +33 -0
  37. package/packages/business-components/model-table-dialog/index.js +561 -559
  38. package/packages/business-components/model-table-dialog/index.js.gz +0 -0
  39. package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +1 -1
  40. package/packages/business-components/model-table-dialog/style.css +1 -1
  41. package/packages/business-components/model-table-dialog/style.css.gz +0 -0
  42. package/packages/business-components/process-configuration/i18n/index.d.ts +152 -0
  43. package/packages/business-components/process-configuration/index.js +242 -200
  44. package/packages/business-components/process-configuration/index.js.gz +0 -0
  45. package/packages/business-components/process-form/api-service/formPreView.d.ts +7 -0
  46. package/packages/business-components/process-form/apis.d.ts +1 -0
  47. package/packages/business-components/process-form/i18n/index.d.ts +413 -0
  48. package/packages/business-components/process-form/index.js +1330 -1159
  49. package/packages/business-components/process-form/index.js.gz +0 -0
  50. package/packages/business-components/process-form/src/widgets/store.d.ts +1 -0
  51. package/packages/business-components/process-form/style.css +1 -1
  52. package/packages/business-components/process-log/i18n/index.d.ts +47 -1
  53. package/packages/business-components/process-log/index.js +301 -286
  54. package/packages/business-components/process-log/index.js.gz +0 -0
  55. package/packages/business-components/process-log/style.css +1 -1
  56. package/packages/business-components/process-log/style.css.gz +0 -0
  57. package/packages/business-components/process-search-form/i18n/index.d.ts +48 -0
  58. package/packages/business-components/process-search-form/index.d.ts +2 -2
  59. package/packages/business-components/process-search-form/index.js +569 -535
  60. package/packages/business-components/process-search-form/index.js.gz +0 -0
  61. package/packages/business-components/process-search-form/src/App.vue.d.ts +2 -2
  62. package/packages/business-components/process-search-form/src/type.d.ts +1 -1
  63. package/packages/business-components/process-table/i18n/index.d.ts +43 -0
  64. package/packages/business-components/process-table/index.d.ts +11 -2
  65. package/packages/business-components/process-table/index.js +604 -587
  66. package/packages/business-components/process-table/index.js.gz +0 -0
  67. package/packages/business-components/process-table/src/App.vue.d.ts +31 -3
  68. package/packages/business-components/process-table/src/type.d.ts +2 -0
  69. package/packages/business-components/process-table/style.css +1 -1
  70. package/packages/business-components/upload-file/i18n/index.d.ts +8 -0
  71. package/packages/business-components/upload-file/index.js +55 -46
  72. package/packages/business-components/upload-file/index.js.gz +0 -0
  73. package/packages/business-components/upload-file/src/type.d.ts +3 -0
  74. package/packages/business-components/urgent-panel/i18n/index.d.ts +523 -0
  75. package/packages/business-components/urgent-panel/index.d.ts +2 -2
  76. package/packages/business-components/urgent-panel/index.js +1494 -1353
  77. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  78. package/packages/business-components/urgent-panel/style.css +1 -1
  79. package/packages/business-components/urgent-panel/style.css.gz +0 -0
  80. package/packages/business-components/user-org-dialog/i18n/index.d.ts +72 -1
  81. package/packages/business-components/user-org-dialog/index.js +246 -231
  82. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  83. package/packages/business-components/video-dialog/i18n/index.d.ts +103 -0
  84. package/packages/business-components/video-dialog/index.js +282 -259
  85. package/packages/business-components/video-dialog/index.js.gz +0 -0
  86. package/packages/components/autocomplete/src/index.vue.d.ts +5 -1
  87. package/packages/components/breadcrumb/index.d.ts +9 -3
  88. package/packages/components/breadcrumb/index.js +48 -45
  89. package/packages/components/breadcrumb/index.js.gz +0 -0
  90. package/packages/components/breadcrumb/src/BreadCrumb.vue.d.ts +3 -1
  91. package/packages/components/breadcrumb/src/type.d.ts +1 -0
  92. package/packages/components/breadcrumb/style.css +1 -1
  93. package/packages/components/breadcrumb/style.css.gz +0 -0
  94. package/packages/components/button/index.js +64 -71
  95. package/packages/components/button/index.js.gz +0 -0
  96. package/packages/components/calendar/i18n/index.d.ts +80 -26
  97. package/packages/components/calendar/index.js +277 -275
  98. package/packages/components/calendar/index.js.gz +0 -0
  99. package/packages/components/{search → cascader}/i18n/index.d.ts +2 -1
  100. package/packages/components/cascader/index.d.ts +225 -7
  101. package/packages/components/cascader/index.js +60 -58
  102. package/packages/components/cascader/index.js.gz +0 -0
  103. package/packages/components/cascader/src/Index.vue.d.ts +2 -2
  104. package/packages/components/cascader/style.css +1 -1
  105. package/packages/components/cascader/style.css.gz +0 -0
  106. package/packages/components/color-picker/i18n/index.d.ts +8 -0
  107. package/packages/components/color-picker/index.js +89 -85
  108. package/packages/components/color-picker/index.js.gz +0 -0
  109. package/packages/components/color-picker/style.css +1 -1
  110. package/packages/components/color-picker/style.css.gz +0 -0
  111. package/packages/components/custom-search-item/i18n/index.d.ts +8 -0
  112. package/packages/components/custom-search-item/index.js +20 -19
  113. package/packages/components/custom-search-item/index.js.gz +0 -0
  114. package/packages/components/date-picker/i18n/index.d.ts +33 -0
  115. package/packages/components/date-picker/index.d.ts +3 -3
  116. package/packages/components/date-picker/index.js +536 -521
  117. package/packages/components/date-picker/index.js.gz +0 -0
  118. package/packages/components/date-picker/src/DatePicker.vue.d.ts +2 -1
  119. package/packages/components/date-picker/src/DateRangePicker.vue.d.ts +1 -1
  120. package/packages/components/date-picker/src/RangePicker.vue.d.ts +1 -0
  121. package/packages/components/date-picker/src/TimePicker.vue.d.ts +1 -0
  122. package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +1 -0
  123. package/packages/components/date-picker/style.css +1 -1
  124. package/packages/components/date-picker/style.css.gz +0 -0
  125. package/packages/components/dialog/i18n/index.d.ts +6 -0
  126. package/packages/components/dialog/index.js +92 -92
  127. package/packages/components/dialog/index.js.gz +0 -0
  128. package/packages/components/dimple-layout/i18n/index.d.ts +53 -0
  129. package/packages/components/dimple-layout/index.js +1298 -1285
  130. package/packages/components/dimple-layout/index.js.gz +0 -0
  131. package/packages/components/dimple-layout/style.css +1 -1
  132. package/packages/components/dimple-layout/style.css.gz +0 -0
  133. package/packages/components/dropdown/i18n/index.d.ts +8 -0
  134. package/packages/components/dropdown/index.js +26 -25
  135. package/packages/components/dropdown/index.js.gz +0 -0
  136. package/packages/components/edit-table/src/index.vue.d.ts +30 -3
  137. package/packages/components/empty/i18n/index.d.ts +1 -0
  138. package/packages/components/empty/index.js +18 -20
  139. package/packages/components/empty/index.js.gz +0 -0
  140. package/packages/components/form-item/index.js +830 -827
  141. package/packages/components/form-item/index.js.gz +0 -0
  142. package/packages/components/form-item/src/type.d.ts +2 -0
  143. package/packages/components/form-item/style.css +1 -1
  144. package/packages/components/form-item/style.css.gz +0 -0
  145. package/packages/components/form-item/theme/index.d.ts +3 -0
  146. package/packages/components/image-upload/i18n/index.d.ts +18 -0
  147. package/packages/components/image-upload/index.js +99 -84
  148. package/packages/components/image-upload/index.js.gz +0 -0
  149. package/packages/components/image-viewer/i18n/index.d.ts +2 -0
  150. package/packages/components/image-viewer/index.js +150 -147
  151. package/packages/components/image-viewer/index.js.gz +0 -0
  152. package/packages/components/input/i18n/index.d.ts +18 -0
  153. package/packages/components/input/index.d.ts +5 -0
  154. package/packages/components/input/index.js +102 -93
  155. package/packages/components/input/index.js.gz +0 -0
  156. package/packages/components/input/src/index.vue.d.ts +2 -0
  157. package/packages/components/input/src/type.d.ts +1 -0
  158. package/packages/components/input/style.css +1 -1
  159. package/packages/components/input/style.css.gz +0 -0
  160. package/packages/components/input-dialog-select/i18n/index.d.ts +7 -1
  161. package/packages/components/input-dialog-select/index.d.ts +1 -0
  162. package/packages/components/input-dialog-select/index.js +111 -109
  163. package/packages/components/input-dialog-select/index.js.gz +0 -0
  164. package/packages/components/input-dialog-select/src/Index.vue.d.ts +1 -0
  165. package/packages/components/input-dialog-select/style.css +1 -1
  166. package/packages/components/input-dialog-select/style.css.gz +0 -0
  167. package/packages/components/live-player/i18n/index.d.ts +13 -0
  168. package/packages/components/live-player/index.js +20 -11
  169. package/packages/components/live-player/index.js.gz +0 -0
  170. package/packages/components/live-player/style.css +1 -1
  171. package/packages/components/{time-line → loading}/i18n/index.d.ts +2 -1
  172. package/packages/components/loading/index.js +71 -70
  173. package/packages/components/loading/index.js.gz +0 -0
  174. package/packages/components/map/i18n/index.d.ts +33 -0
  175. package/packages/components/map/index.js +1115 -838
  176. package/packages/components/map/index.js.gz +0 -0
  177. package/packages/components/map/src/get-sdk-config.d.ts +1 -1
  178. package/packages/components/map/src/hooks/use-baidu.d.ts +1 -11
  179. package/packages/components/map/src/hooks/use-gaode.d.ts +1 -11
  180. package/packages/components/map/src/hooks/use-google.d.ts +16 -0
  181. package/packages/components/map/src/hooks/use-map.d.ts +2 -0
  182. package/packages/components/map/src/type.d.ts +1 -1
  183. package/packages/components/map/style.css +1 -1
  184. package/packages/components/menu-aside/i18n/index.d.ts +8 -0
  185. package/packages/components/menu-aside/index.js +244 -226
  186. package/packages/components/menu-aside/index.js.gz +0 -0
  187. package/packages/components/menu-aside/src/style-theme.d.ts +15 -0
  188. package/packages/components/menu-aside/style.css +1 -1
  189. package/packages/components/menu-aside/style.css.gz +0 -0
  190. package/packages/components/menu-aside/theme/base.d.ts +3 -1
  191. package/packages/components/menu-header/index.js +32 -26
  192. package/packages/components/menu-header/index.js.gz +0 -0
  193. package/packages/components/menu-header/src/style-theme.d.ts +5 -0
  194. package/packages/components/menu-header/style.css +1 -1
  195. package/packages/components/menu-header/style.css.gz +0 -0
  196. package/packages/components/menu-header/theme/base.d.ts +1 -0
  197. package/packages/components/message/i18n/index.d.ts +8 -0
  198. package/packages/components/message/index.js +16 -15
  199. package/packages/components/message/index.js.gz +0 -0
  200. package/packages/components/{button → notification}/i18n/index.d.ts +2 -1
  201. package/packages/components/notification/index.js +9 -8
  202. package/packages/components/notification/index.js.gz +0 -0
  203. package/packages/components/pagination/i18n/index.d.ts +23 -0
  204. package/packages/components/pagination/index.js +141 -134
  205. package/packages/components/pagination/index.js.gz +0 -0
  206. package/packages/components/pagination/style.css +1 -1
  207. package/packages/components/pagination/style.css.gz +0 -0
  208. package/packages/components/popover/i18n/index.d.ts +2 -0
  209. package/packages/components/popover/index.d.ts +3 -0
  210. package/packages/components/popover/index.js +28 -27
  211. package/packages/components/popover/index.js.gz +0 -0
  212. package/packages/components/preview/i18n/index.d.ts +1 -0
  213. package/packages/components/preview/index.js +9 -10
  214. package/packages/components/preview/index.js.gz +0 -0
  215. package/packages/components/preview/style.css +1 -1
  216. package/packages/components/rich-editor/i18n/index.d.ts +11 -0
  217. package/packages/components/rich-editor/index.js +3640 -3621
  218. package/packages/components/rich-editor/index.js.gz +0 -0
  219. package/packages/components/rich-editor/src/type.d.ts +3 -0
  220. package/packages/components/scrollbar/index.js +2 -2
  221. package/packages/components/scrollbar/index.js.gz +0 -0
  222. package/packages/components/scrollbar/style.css +1 -1
  223. package/packages/components/scrollbar/style.css.gz +0 -0
  224. package/packages/components/search/index.d.ts +9 -0
  225. package/packages/components/search/index.js +56 -47
  226. package/packages/components/search/index.js.gz +0 -0
  227. package/packages/components/search/src/Index.vue.d.ts +15 -0
  228. package/packages/components/search/src/type.d.ts +2 -0
  229. package/packages/components/search/style.css +1 -1
  230. package/packages/components/search/style.css.gz +0 -0
  231. package/packages/components/search-form/i18n/index.d.ts +33 -0
  232. package/packages/components/search-form/index.js +798 -744
  233. package/packages/components/search-form/index.js.gz +0 -0
  234. package/packages/components/search-form/src/Index.vue.d.ts +2 -0
  235. package/packages/components/search-form/src/type.d.ts +3 -0
  236. package/packages/components/search-form/style.css +1 -1
  237. package/packages/components/search-form/style.css.gz +0 -0
  238. package/packages/components/select/i18n/index.d.ts +23 -0
  239. package/packages/components/select/index.js +361 -372
  240. package/packages/components/select/index.js.gz +0 -0
  241. package/packages/components/select/src/Select.vue.d.ts +1 -0
  242. package/packages/components/select/style.css +1 -1
  243. package/packages/components/select/style.css.gz +0 -0
  244. package/packages/components/select-input/index.d.ts +1 -0
  245. package/packages/components/select-input/index.js +68 -61
  246. package/packages/components/select-input/index.js.gz +0 -0
  247. package/packages/components/select-input/src/Index.vue.d.ts +1 -0
  248. package/packages/components/select-input/src/hooks/use-select-input.d.ts +5 -0
  249. package/packages/components/select-input/src/type.d.ts +3 -0
  250. package/packages/components/select-input/style.css +1 -1
  251. package/packages/components/select-input/style.css.gz +0 -0
  252. package/packages/components/select-list/i18n/index.d.ts +4 -0
  253. package/packages/components/select-list/index.js +73 -73
  254. package/packages/components/select-list/index.js.gz +0 -0
  255. package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -0
  256. package/packages/components/special-range-picker-month/index.js +69 -69
  257. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  258. package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -0
  259. package/packages/components/special-range-picker-year/index.js +67 -67
  260. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  261. package/packages/components/spin/i18n/index.d.ts +8 -0
  262. package/packages/components/spin/index.js +31 -30
  263. package/packages/components/spin/index.js.gz +0 -0
  264. package/packages/components/table/i18n/index.d.ts +114 -0
  265. package/packages/components/table/index.d.ts +90 -9
  266. package/packages/components/table/index.js +4143 -3994
  267. package/packages/components/table/index.js.gz +0 -0
  268. package/packages/components/table/src/Table.vue.d.ts +10 -1
  269. package/packages/components/table/src/hooks/use-operation.d.ts +55 -5
  270. package/packages/components/table/src/type.d.ts +16 -3
  271. package/packages/components/table/style.css +1 -1
  272. package/packages/components/table/style.css.gz +0 -0
  273. package/packages/components/tabs/i18n/index.d.ts +18 -0
  274. package/packages/components/tabs/index.js +95 -90
  275. package/packages/components/tabs/index.js.gz +0 -0
  276. package/packages/components/text-tooltip/index.js +1 -1
  277. package/packages/components/text-tooltip/index.js.gz +0 -0
  278. package/packages/components/time-line/index.js +36 -43
  279. package/packages/components/time-line/index.js.gz +0 -0
  280. package/packages/components/tooltip/i18n/index.d.ts +8 -0
  281. package/packages/components/tooltip/index.js +45 -44
  282. package/packages/components/tooltip/index.js.gz +0 -0
  283. package/packages/components/tooltip/style.css +1 -1
  284. package/packages/components/tooltip/style.css.gz +0 -0
  285. package/packages/components/tree/i18n/index.d.ts +43 -0
  286. package/packages/components/tree/index.js +1340 -1326
  287. package/packages/components/tree/index.js.gz +0 -0
  288. package/packages/components/tree/src/App.vue.d.ts +7 -11
  289. package/packages/components/tree-table/index.js +69 -68
  290. package/packages/components/tree-table/index.js.gz +0 -0
  291. package/packages/components/tree-table/style.css +1 -1
  292. package/packages/components/tree-table/style.css.gz +0 -0
  293. package/packages/components/upload/i18n/index.d.ts +5 -0
  294. package/packages/components/upload/index.js +95 -95
  295. package/packages/components/upload/index.js.gz +0 -0
  296. package/packages/components/virtual-tree/i18n/index.d.ts +8 -0
  297. package/packages/components/virtual-tree/index.js +33 -31
  298. package/packages/components/virtual-tree/index.js.gz +0 -0
  299. package/packages/icons/edit-3/index.d.ts +1 -0
  300. package/packages/icons/edit-3/index.js +17 -0
  301. package/packages/icons/edit-3/index.js.gz +0 -0
  302. package/packages/icons/edit-3/index.vue.d.ts +16 -0
  303. package/packages/icons/exit/index.d.ts +1 -0
  304. package/packages/icons/exit/index.js +17 -0
  305. package/packages/icons/exit/index.js.gz +0 -0
  306. package/packages/icons/exit/index.vue.d.ts +16 -0
  307. package/packages/icons/global/index.d.ts +1 -0
  308. package/packages/icons/global/index.js +17 -0
  309. package/packages/icons/global/index.js.gz +0 -0
  310. package/packages/icons/global/index.vue.d.ts +16 -0
  311. package/packages/icons/index.d.ts +6 -0
  312. package/packages/icons/index.js +6 -0
  313. package/packages/icons/password-lock2/index.d.ts +1 -0
  314. package/packages/icons/password-lock2/index.js +17 -0
  315. package/packages/icons/password-lock2/index.js.gz +0 -0
  316. package/packages/icons/password-lock2/index.vue.d.ts +16 -0
  317. package/packages/icons/right-3/index.d.ts +1 -0
  318. package/packages/icons/right-3/index.js +17 -0
  319. package/packages/icons/right-3/index.js.gz +0 -0
  320. package/packages/icons/right-3/index.vue.d.ts +16 -0
  321. package/packages/icons/system/index.d.ts +1 -0
  322. package/packages/icons/system/index.js +17 -0
  323. package/packages/icons/system/index.js.gz +0 -0
  324. package/packages/icons/system/index.vue.d.ts +16 -0
  325. package/i18n-collection/en.js +0 -536
  326. package/i18n-collection/zh-CN.js +0 -537
@@ -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 _, watch as F, defineComponent as D, useCssVars as pe, computed as P, openBlock as k, createElementBlock as R, normalizeClass as ve, renderSlot as X, createCommentVNode as I, Fragment as J, renderList as fe, createBlock as E, withCtx as m, withModifiers as y, createVNode as p, createElementVNode as v, toDisplayString as V, 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";
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";
4
+ import { t as g, setI18nRule as Ce } from "@das-fed/web/packages/i18n/index";
5
+ import { DasDialog as ke } from "@das-fed/ui/packages/components/dialog/index";
6
+ import { DasTooltip as h } from "@das-fed/ui/packages/components/tooltip/index";
7
+ import { DasIconFullscreen2 as ye } from "@das-fed/ui/packages/icons/fullscreen-2/index";
8
+ import { DasAutoRegisterIcon as _e, DasIcon as $ } from "@das-fed/ui/packages/components/icon/index";
9
+ import { DasLivePlayer as we } from "@das-fed/ui/packages/components/live-player/index";
10
+ import { DasSpin as he } from "@das-fed/ui/packages/components/spin/index";
11
+ import be 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 j = 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
+ j && ((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 Fe(t) {
22
22
  return t;
23
23
  }
24
- function ne(t) {
24
+ function oe(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 Se(t, n = !0) {
28
+ de() ? K(t) : n ? t() : L(t);
29
29
  }
30
- function oe(t) {
31
- var o;
30
+ function ne(t) {
31
+ var n;
32
32
  const e = te(t);
33
- return (o = e == null ? void 0 : e.$el) != null ? o : e;
33
+ return (n = e == null ? void 0 : e.$el) != null ? n : e;
34
34
  }
35
- const Se = V ? window : void 0, De = V ? window.document : void 0;
35
+ const ze = j ? window : void 0, Oe = j ? window.document : void 0;
36
36
  function Re(...t) {
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;
37
+ let n, e, i, a;
38
+ if (Ee(t[0]) || Array.isArray(t[0]) ? ([e, i, a] = t, n = ze) : [n, e, i, a] = t, !n)
39
+ return Ne;
40
40
  Array.isArray(e) || (e = [e]), Array.isArray(i) || (i = [i]);
41
- const n = [], s = () => {
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))));
41
+ const o = [], r = () => {
42
+ o.forEach((c) => c()), o.length = 0;
43
+ }, f = (c, C, w, N) => (c.addEventListener(C, w, N), () => c.removeEventListener(C, w, N)), s = F(() => [ne(n), te(a)], ([c, C]) => {
44
+ r(), c && o.push(...e.flatMap((w) => i.map((N) => f(c, w, N, C))));
45
45
  }, { immediate: !0, flush: "post" }), d = () => {
46
- r(), s();
46
+ s(), r();
47
47
  };
48
- return ne(d), d;
48
+ return oe(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 De(t, n = !1) {
51
+ const e = _(), i = () => e.value = !!t();
52
+ return i(), Se(i, n), 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",
@@ -95,51 +95,51 @@ const G = [
95
95
  "MSFullscreenError"
96
96
  ]
97
97
  ];
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);
100
- let s = G[0];
101
- const f = $e(() => {
98
+ function le(t, n = {}) {
99
+ const { document: e = Oe, autoExit: i = !1 } = n, a = t || (e == null ? void 0 : e.querySelector("html")), o = _(!1);
100
+ let r = G[0];
101
+ const f = De(() => {
102
102
  if (e) {
103
103
  for (const S of G)
104
104
  if (S[1] in e)
105
- return s = S, !0;
105
+ return r = S, !0;
106
106
  } else
107
107
  return !1;
108
108
  return !1;
109
- }), [r, d, c, , y] = s;
109
+ }), [s, d, c, , C] = r;
110
110
  async function w() {
111
- f.value && (e != null && e[c] && await e[d](), n.value = !1);
111
+ f.value && (e != null && e[c] && await e[d](), o.value = !1);
112
112
  }
113
- async function O() {
113
+ async function N() {
114
114
  if (!f.value)
115
115
  return;
116
116
  await w();
117
- const S = oe(a);
118
- S && (await S[r](), n.value = !0);
117
+ const S = ne(a);
118
+ S && (await S[s](), o.value = !0);
119
119
  }
120
- async function U() {
121
- n.value ? await w() : await O();
120
+ async function T() {
121
+ o.value ? await w() : await N();
122
122
  }
123
- return e && Re(e, y, () => {
124
- n.value = !!(e != null && e[c]);
125
- }, !1), i && ne(w), {
123
+ return e && Re(e, C, () => {
124
+ o.value = !!(e != null && e[c]);
125
+ }, !1), i && oe(w), {
126
126
  isSupported: f,
127
- isFullscreen: n,
128
- enter: O,
127
+ isFullscreen: o,
128
+ enter: N,
129
129
  exit: w,
130
- toggle: U
130
+ toggle: T
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) => {
138
- for (var e in o || (o = {}))
139
- Le.call(o, e) && Y(t, e, o[e]);
137
+ var $e = Object.defineProperty, H = Object.getOwnPropertySymbols, Le = Object.prototype.hasOwnProperty, Pe = Object.prototype.propertyIsEnumerable, Y = (t, n, e) => n in t ? $e(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, xe = (t, n) => {
138
+ for (var e in n || (n = {}))
139
+ Le.call(n, e) && Y(t, e, n[e]);
140
140
  if (H)
141
- for (var e of H(o))
142
- xe.call(o, e) && Y(t, e, o[e]);
141
+ for (var e of H(n))
142
+ Pe.call(n, e) && Y(t, e, n[e]);
143
143
  return t;
144
144
  };
145
145
  const Te = {
@@ -168,35 +168,35 @@ 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
171
+ xe({
172
+ linear: Fe
173
173
  }, Te);
174
- const Ue = /* @__PURE__ */ P({
174
+ const Ue = /* @__PURE__ */ D({
175
175
  __name: "GridItem",
176
176
  props: {
177
177
  active: { type: Boolean },
178
178
  gridNum: {}
179
179
  },
180
180
  emits: ["itemClick"],
181
- setup(t, { emit: o }) {
182
- ve((c) => ({
181
+ setup(t, { emit: n }) {
182
+ pe((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(() => {
187
- n();
188
- })) : n());
189
- }, r = () => {
185
+ const e = t, i = n, a = _(), { toggle: o, isFullscreen: r } = le(a), f = () => {
186
+ a.value != document.fullscreenElement && (r.value ? (r.value = !1, L(() => {
187
+ o();
188
+ })) : o());
189
+ }, s = () => {
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, C) => (k(), R(
193
193
  "div",
194
194
  {
195
195
  ref_key: "containerRef",
196
196
  ref: a,
197
- class: pe(["wrapper", { "is-active": e.active }]),
198
- onDblclick: y[0] || (y[0] = (w) => f()),
199
- onClick: y[1] || (y[1] = (w) => r())
197
+ class: ve(["wrapper", { "is-active": e.active }]),
198
+ onDblclick: C[0] || (C[0] = (w) => f()),
199
+ onClick: C[1] || (C[1] = (w) => s())
200
200
  },
201
201
  [
202
202
  X(c.$slots, "default", {}, void 0, !0)
@@ -205,12 +205,12 @@ const Ue = /* @__PURE__ */ P({
205
205
  /* CLASS, NEED_HYDRATION */
206
206
  ));
207
207
  }
208
- }), T = (t, o) => {
208
+ }), x = (t, n) => {
209
209
  const e = t.__vccOpts || t;
210
- for (const [i, a] of o)
210
+ for (const [i, a] of n)
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
+ }, Ve = /* @__PURE__ */ x(Ue, [["__scopeId", "data-v-100b67ca"]]), je = { class: "layout-wrapper" }, Be = /* @__PURE__ */ D({
214
214
  __name: "GridLayout",
215
215
  props: {
216
216
  gridNum: {},
@@ -218,25 +218,25 @@ const Ue = /* @__PURE__ */ P({
218
218
  showFn: {}
219
219
  },
220
220
  emits: ["update:activeIndex"],
221
- setup(t, { emit: o }) {
222
- const e = t, i = o, a = (n) => {
223
- i("update:activeIndex", n);
221
+ setup(t, { emit: n }) {
222
+ const e = t, i = n, a = (o) => {
223
+ i("update:activeIndex", o);
224
224
  };
225
- return (n, s) => (k(), $("div", je, [
226
- h(' :active="index === activeIndex" '),
227
- (k(!0), $(
225
+ return (o, r) => (k(), R("div", je, [
226
+ I(' :active="index === activeIndex" '),
227
+ (k(!0), R(
228
228
  J,
229
229
  null,
230
- fe(e.gridNum, (f, r) => (k(), E(ze, {
230
+ fe(e.gridNum, (f, s) => (k(), E(Ve, {
231
231
  active: !1,
232
232
  "grid-num": e.gridNum,
233
- onItemClick: (d) => a(r)
233
+ onItemClick: (d) => a(s)
234
234
  }, {
235
235
  default: m(() => [
236
- n.showFn(r) ? X(n.$slots, "default", {
236
+ o.showFn(s) ? X(o.$slots, "default", {
237
237
  key: 0,
238
- index: r
239
- }, void 0, !0) : h("v-if", !0)
238
+ index: s
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__ */ x(Be, [["__scopeId", "data-v-661e2289"]]), Ae = /* @__PURE__ */ D({
250
250
  __name: "DirectionControl",
251
251
  emits: ["change"],
252
- setup(t, { emit: o }) {
253
- const e = o, i = (a) => {
252
+ setup(t, { emit: n }) {
253
+ const e = n, i = (a) => {
254
254
  e("change", a);
255
255
  };
256
- return (a, n) => (k(), $(
256
+ return (a, o) => (k(), R(
257
257
  "div",
258
258
  {
259
259
  class: "direction-control",
260
- onDblclick: n[9] || (n[9] = _((s) => s.stopPropagation(), ["stop"]))
260
+ onDblclick: o[9] || (o[9] = y((r) => r.stopPropagation(), ["stop"]))
261
261
  },
262
262
  [
263
- v(l(C), {
263
+ p(l(h), {
264
264
  content: l(g)("左上")
265
265
  }, {
266
266
  default: m(() => [
267
- p("div", {
267
+ v("div", {
268
268
  class: "icon icon-top-left",
269
- onClick: n[0] || (n[0] = _((s) => i("leftUp"), ["stop"]))
269
+ onClick: o[0] || (o[0] = y((r) => i("leftUp"), ["stop"]))
270
270
  })
271
271
  ]),
272
272
  _: 1
273
273
  /* STABLE */
274
274
  }, 8, ["content"]),
275
- v(l(C), {
275
+ p(l(h), {
276
276
  content: l(g)("上")
277
277
  }, {
278
278
  default: m(() => [
279
- p("div", {
279
+ v("div", {
280
280
  class: "icon icon-top",
281
- onClick: n[1] || (n[1] = _((s) => i("up"), ["stop"]))
281
+ onClick: o[1] || (o[1] = y((r) => i("up"), ["stop"]))
282
282
  })
283
283
  ]),
284
284
  _: 1
285
285
  /* STABLE */
286
286
  }, 8, ["content"]),
287
- v(l(C), {
287
+ p(l(h), {
288
288
  content: l(g)("右上")
289
289
  }, {
290
290
  default: m(() => [
291
- p("div", {
291
+ v("div", {
292
292
  class: "icon icon-top-right",
293
- onClick: n[2] || (n[2] = _((s) => i("rightUp"), ["stop"]))
293
+ onClick: o[2] || (o[2] = y((r) => i("rightUp"), ["stop"]))
294
294
  })
295
295
  ]),
296
296
  _: 1
297
297
  /* STABLE */
298
298
  }, 8, ["content"]),
299
- v(l(C), {
299
+ p(l(h), {
300
300
  content: l(g)("左")
301
301
  }, {
302
302
  default: m(() => [
303
- p("div", {
303
+ v("div", {
304
304
  class: "icon icon-left",
305
- onClick: n[3] || (n[3] = _((s) => i("left"), ["stop"]))
305
+ onClick: o[3] || (o[3] = y((r) => i("left"), ["stop"]))
306
306
  })
307
307
  ]),
308
308
  _: 1
309
309
  /* STABLE */
310
310
  }, 8, ["content"]),
311
- v(l(C), {
311
+ p(l(h), {
312
312
  content: l(g)("自动")
313
313
  }, {
314
314
  default: m(() => [
315
- p("div", {
315
+ v("div", {
316
316
  class: "icon icon-auto",
317
- onClick: n[4] || (n[4] = _((s) => i("auto"), ["stop"]))
317
+ onClick: o[4] || (o[4] = y((r) => i("auto"), ["stop"]))
318
318
  })
319
319
  ]),
320
320
  _: 1
321
321
  /* STABLE */
322
322
  }, 8, ["content"]),
323
- v(l(C), {
323
+ p(l(h), {
324
324
  content: l(g)("右")
325
325
  }, {
326
326
  default: m(() => [
327
- p("div", {
327
+ v("div", {
328
328
  class: "icon icon-right",
329
- onClick: n[5] || (n[5] = _((s) => i("right"), ["stop"]))
329
+ onClick: o[5] || (o[5] = y((r) => i("right"), ["stop"]))
330
330
  })
331
331
  ]),
332
332
  _: 1
333
333
  /* STABLE */
334
334
  }, 8, ["content"]),
335
- v(l(C), {
335
+ p(l(h), {
336
336
  content: l(g)("左下")
337
337
  }, {
338
338
  default: m(() => [
339
- p("div", {
339
+ v("div", {
340
340
  class: "icon icon-bottom-left",
341
- onClick: n[6] || (n[6] = _((s) => i("leftDown"), ["stop"]))
341
+ onClick: o[6] || (o[6] = y((r) => i("leftDown"), ["stop"]))
342
342
  })
343
343
  ]),
344
344
  _: 1
345
345
  /* STABLE */
346
346
  }, 8, ["content"]),
347
- v(l(C), {
347
+ p(l(h), {
348
348
  content: l(g)("下")
349
349
  }, {
350
350
  default: m(() => [
351
- p("div", {
351
+ v("div", {
352
352
  class: "icon icon-bottom",
353
- onClick: n[7] || (n[7] = _((s) => i("down"), ["stop"]))
353
+ onClick: o[7] || (o[7] = y((r) => i("down"), ["stop"]))
354
354
  })
355
355
  ]),
356
356
  _: 1
357
357
  /* STABLE */
358
358
  }, 8, ["content"]),
359
- v(l(C), {
359
+ p(l(h), {
360
360
  content: l(g)("右下")
361
361
  }, {
362
362
  default: m(() => [
363
- p("div", {
363
+ v("div", {
364
364
  class: "icon icon-bottom-right",
365
- onClick: n[8] || (n[8] = _((s) => i("rightDown"), ["stop"]))
365
+ onClick: o[8] || (o[8] = y((r) => 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__ */ x(Ae, [["__scopeId", "data-v-db2e8ec2"]]), qe = { class: "video-wrapper" }, Ge = { class: "video-top" }, We = { class: "video-top_l" }, He = { class: "video-title-wrapper" }, Ye = { class: "video-title" }, Ze = { class: "video-top_r" }, Ke = {
377
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__ */ D({
380
380
  __name: "index",
381
381
  props: {
382
382
  videoUrl: {},
@@ -389,8 +389,8 @@ const Ue = /* @__PURE__ */ P({
389
389
  onReplay: {}
390
390
  },
391
391
  emits: ["close", "directionControl", "zoomControl"],
392
- setup(t, { emit: o }) {
393
- const e = t, i = o;
392
+ setup(t, { emit: n }) {
393
+ const e = t, i = n;
394
394
  _e({
395
395
  muted: import("@das-fed/ui/packages/icons/muted"),
396
396
  volume: import("@das-fed/ui/packages/icons/volume"),
@@ -398,58 +398,58 @@ const Ue = /* @__PURE__ */ P({
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 = _(!0), o = _(), r = _(!1), f = _(), s = 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 = _(!1), c = _(!0), C = (u) => {
405
+ o.value = u, o.value.on(window.mpegts.Events.ERROR, (b) => {
406
406
  });
407
407
  }, w = () => {
408
- a.value = !a.value, n.value && (n.value.muted = a.value);
409
- }, O = () => {
410
- s.value = !s.value;
411
- }, U = b(""), S = () => {
408
+ a.value = !a.value, o.value && (o.value.muted = a.value);
409
+ }, N = () => {
410
+ r.value = !r.value;
411
+ }, T = _(""), S = () => {
412
412
  const u = document.createElement("canvas");
413
- if (r.value) {
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);
413
+ if (s.value) {
414
+ u.width = s.value.clientWidth, u.height = s.value.clientHeight;
415
+ const b = u.getContext("2d");
416
+ b == null || b.drawImage(s.value, 0, 0, u.width, u.height);
417
+ const O = u.toDataURL("image/jpg"), ae = `【${e.title}】${be().format("YYYYMMDDHHmmss").toString()}.jpg`;
418
+ if (T.value = O, "download" in document.createElement("a")) {
419
+ const z = document.createElement("a");
420
+ z.download = ae, z.style.display = "none", z.href = O, document.body.appendChild(z), document.body.appendChild(u), z.click(), URL.revokeObjectURL(z.href), document.body.removeChild(z), document.body.removeChild(u);
421
421
  }
422
422
  }
423
- }, re = (u) => {
423
+ }, se = (u) => {
424
424
  i("directionControl", u);
425
425
  }, B = (u) => {
426
426
  i("zoomControl", u);
427
- }, z = (u) => e.authType.includes(u);
427
+ }, U = (u) => e.authType.includes(u);
428
428
  return F(
429
- () => r.value,
429
+ () => s.value,
430
430
  () => {
431
- r.value && r.value.addEventListener("ended", () => {
431
+ s.value && s.value.addEventListener("ended", () => {
432
432
  d.value = !0, e.type === "playback" && (c.value = !1);
433
433
  });
434
434
  }
435
435
  ), F(
436
- () => r.value,
436
+ () => s.value,
437
437
  () => {
438
- r.value && x(() => {
439
- r.value.playbackRate = e.playbackRate || 1;
438
+ s.value && L(() => {
439
+ s.value.playbackRate = e.playbackRate || 1;
440
440
  });
441
441
  }
442
442
  ), F(
443
- () => n.value,
443
+ () => o.value,
444
444
  () => {
445
- n.value && x(() => {
446
- n.value.muted = a.value;
445
+ o.value && L(() => {
446
+ o.value.muted = a.value;
447
447
  });
448
448
  }
449
449
  ), F(
450
450
  () => e.playbackRate,
451
451
  () => {
452
- r.value && (r.value.playbackRate = e.playbackRate || 1);
452
+ s.value && (s.value.playbackRate = e.playbackRate || 1);
453
453
  },
454
454
  {
455
455
  immediate: !0
@@ -457,181 +457,181 @@ const Ue = /* @__PURE__ */ P({
457
457
  ), F(
458
458
  () => e.paused,
459
459
  () => {
460
- n.value && (e.paused ? n.value.pause() : n.value.play());
460
+ o.value && (e.paused ? o.value.pause() : o.value.play());
461
461
  }
462
462
  ), F(
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, b) => (k(), R("div", qe, [
470
+ p(l(he), {
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, [
479
- p(
476
+ v("div", Ge, [
477
+ v("div", We, [
478
+ v("div", He, [
479
+ v(
480
480
  "div",
481
- He,
482
- j(e.title.length > 20 ? e.title.slice(0, 19) + "..." : e.title),
481
+ Ye,
482
+ V(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
+ v("div", Ze, [
489
+ ["live"].includes(u.type) ? (k(), R(
490
490
  "span",
491
- Ze,
492
- j(l(g)("正在实时预览")),
491
+ Ke,
492
+ V(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 ? (k(), E(l(we), {
500
500
  key: 0,
501
501
  type: "flv",
502
502
  ref_key: "dasLivePlayerRef",
503
503
  ref: f,
504
504
  muted: a.value,
505
- onLoaded: y,
505
+ onLoaded: C,
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
+ v("div", Xe, [
509
+ b[3] || (b[3] = v(
510
510
  "div",
511
511
  { class: "video-bottom_l" },
512
512
  null,
513
513
  -1
514
514
  /* HOISTED */
515
515
  )),
516
- p("div", Xe, [
517
- p(
516
+ v("div", Je, [
517
+ v(
518
518
  "div",
519
519
  {
520
520
  class: "controls",
521
- onDblclick: I[2] || (I[2] = _((R) => R.stopPropagation(), ["stop"]))
521
+ onDblclick: b[2] || (b[2] = y((O) => O.stopPropagation(), ["stop"]))
522
522
  },
523
523
  [
524
- v(l(C), {
524
+ p(l(h), {
525
525
  content: l(g)("声音")
526
526
  }, {
527
527
  default: m(() => [
528
- v(l(L), {
528
+ p(l($), {
529
529
  class: "icon icon-volume",
530
530
  icon: a.value ? "muted" : "volume",
531
- onClick: _(w, ["stop"])
531
+ onClick: y(w, ["stop"])
532
532
  }, null, 8, ["icon"])
533
533
  ]),
534
534
  _: 1
535
535
  /* STABLE */
536
536
  }, 8, ["content"]),
537
- v(l(C), {
537
+ p(l(h), {
538
538
  content: l(g)("截图")
539
539
  }, {
540
540
  default: m(() => [
541
- v(l(L), {
541
+ p(l($), {
542
542
  class: "icon icon-screenshot",
543
543
  icon: "screenshot",
544
- onClick: _(S, ["stop"])
544
+ onClick: y(S, ["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") ? (k(), E(l(h), {
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) ? (k(), 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: b[0] || (b[0] = y((O) => B("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") ? (k(), E(l(h), {
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) ? (k(), 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: b[1] || (b[1] = y((O) => B("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") ? (k(), E(l(h), {
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) ? (k(), 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: y(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
+ r.value ? (k(), E(Qe, {
602
602
  key: 1,
603
- onChange: re
604
- })) : h("v-if", !0)
603
+ onChange: se
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) {
613
- const o = M() ? M().id : 1;
614
- return t.params || (t.params = {}), t.params.project = o, t.params.projectId = o, t;
611
+ }), tt = /* @__PURE__ */ x(et, [["__scopeId", "data-v-2bc90e59"]]), ot = "/api/device-relation/deviceproject/v1/project/device/video", nt = "v1", lt = ee(`/api/enterpriseright/permission/${nt}`), ie = ee(`${ot}`, it);
612
+ function it(t) {
613
+ const n = M() ? M().id : 1;
614
+ return t.params || (t.params = {}), t.params.project = n, t.params.projectId = n, t;
615
615
  }
616
- function se(t) {
617
- const o = new URLSearchParams("");
616
+ function re(t) {
617
+ const n = new URLSearchParams("");
618
618
  for (let [e, i] of Object.entries(t))
619
- o.append(e, i);
620
- return o.toString();
619
+ n.append(e, i);
620
+ return n.toString();
621
621
  }
622
622
  function Z(t) {
623
- return ie.post(`/ptz?${se(t)}`)().run();
623
+ return ie.post(`/ptz?${re(t)}`)().run();
624
624
  }
625
- function it(t) {
626
- return ie.post(`/url/preview?${se(t)}`)().run();
625
+ function rt(t) {
626
+ return ie.post(`/url/preview?${re(t)}`)().run();
627
627
  }
628
- ot.post("data/device-auth");
628
+ lt.post("data/device-auth");
629
629
  const st = (t) => {
630
- const o = Ie();
631
- return `${t}?token=${o}`;
630
+ const n = Ie();
631
+ return `${t}?token=${n}`;
632
632
  };
633
- b([]);
634
- const rt = /* @__PURE__ */ P({
633
+ _([]);
634
+ const at = /* @__PURE__ */ D({
635
635
  props: {
636
636
  deviceInfo: {
637
637
  type: Object,
@@ -642,21 +642,21 @@ const rt = /* @__PURE__ */ P({
642
642
  }
643
643
  },
644
644
  setup(t, {
645
- slots: o
645
+ slots: n
646
646
  }) {
647
647
  const {
648
648
  deviceInfo: e,
649
649
  source: i
650
- } = me(t), a = b(!1), n = b(""), s = async () => {
651
- var y;
652
- if (!((y = e.value) != null && y.deviceId)) return;
650
+ } = me(t), a = _(!1), o = _(""), r = async () => {
651
+ var C;
652
+ if (!((C = e.value) != null && C.deviceId)) return;
653
653
  a.value = !0;
654
- const [d, c] = await it({
654
+ const [d, c] = await rt({
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 || (o.value = st(c == null ? void 0 : c.wsFlvStreamURL)), a.value = !1;
660
660
  }, f = (d) => {
661
661
  Z({
662
662
  productId: e.value.productId,
@@ -665,7 +665,7 @@ const rt = /* @__PURE__ */ P({
665
665
  zoom: "",
666
666
  source: i.value || "web"
667
667
  });
668
- }, r = (d) => {
668
+ }, s = (d) => {
669
669
  Z({
670
670
  productId: e.value.productId,
671
671
  deviceId: e.value.deviceId,
@@ -675,52 +675,52 @@ const rt = /* @__PURE__ */ P({
675
675
  });
676
676
  };
677
677
  return K(() => {
678
- s();
678
+ r();
679
679
  }), F(() => e.value, () => {
680
- s();
680
+ r();
681
681
  }, {
682
682
  deep: !0
683
- }), () => v(J, null, [o.default({
684
- videoUrl: n.value,
683
+ }), () => p(J, null, [n.default({
684
+ videoUrl: o.value,
685
685
  loading: a.value,
686
686
  onDirectionControl: f,
687
- onZoomControl: r
687
+ onZoomControl: s
688
688
  })]);
689
689
  }
690
690
  });
691
- function at(t) {
692
- const o = b(0), e = b(), {
691
+ function ct(t) {
692
+ const n = _(0), e = _(), {
693
693
  toggle: i,
694
694
  isFullscreen: a
695
695
  } = le(e);
696
696
  return {
697
- render: () => v(Be, {
697
+ render: () => p(Me, {
698
698
  ref: e,
699
699
  gridNum: t.gridNum,
700
- activeIndex: o.value,
701
- "onUpdate:activeIndex": (s) => o.value = s,
702
- showFn: (s) => !!t.deviceList[s]
700
+ activeIndex: n.value,
701
+ "onUpdate:activeIndex": (r) => n.value = r,
702
+ showFn: (r) => !!t.deviceList[r]
703
703
  }, {
704
704
  default: ({
705
- index: s
705
+ index: r
706
706
  }) => {
707
- const f = t.deviceList[s], r = t.source;
708
- return v(rt, {
707
+ const f = t.deviceList[r], s = t.source;
708
+ return p(at, {
709
709
  deviceInfo: f,
710
- source: r
710
+ source: s
711
711
  }, {
712
712
  default: ({
713
713
  videoUrl: d,
714
714
  onDirectionControl: c,
715
- onZoomControl: y,
715
+ onZoomControl: C,
716
716
  loading: w
717
- }) => v(et, {
717
+ }) => p(tt, {
718
718
  type: "live",
719
719
  loading: w,
720
720
  videoUrl: d,
721
721
  title: f.deviceName,
722
722
  onDirectionControl: c,
723
- onZoomControl: y,
723
+ onZoomControl: C,
724
724
  authType: f.authType === 2 ? ["control"] : []
725
725
  }, null)
726
726
  });
@@ -729,7 +729,7 @@ function at(t) {
729
729
  toggleFullscreen: i
730
730
  };
731
731
  }
732
- const ct = /* @__PURE__ */ P({
732
+ const ut = /* @__PURE__ */ D({
733
733
  __name: "index",
734
734
  props: {
735
735
  visible: { type: Boolean, default: !1 },
@@ -738,26 +738,26 @@ const ct = /* @__PURE__ */ P({
738
738
  source: {}
739
739
  },
740
740
  emits: ["update:visible"],
741
- setup(t, { emit: o }) {
742
- const e = t, i = o, a = N({
741
+ setup(t, { emit: n }) {
742
+ const e = t, i = n, a = P({
743
743
  get: () => e.visible,
744
- set: (r) => i("update:visible", r)
745
- }), { render: n, toggleFullscreen: s } = at(e), f = N(() => {
746
- let r = {};
744
+ set: (s) => i("update:visible", s)
745
+ }), { render: o, toggleFullscreen: r } = ct(e), f = P(() => {
746
+ let s = {};
747
747
  switch (e.gridNum) {
748
748
  case 1:
749
- r = "one-video";
749
+ s = "one-video";
750
750
  break;
751
751
  case 4:
752
- r = "four-video";
752
+ s = "four-video";
753
753
  break;
754
754
  case 9:
755
- r = "nine-video";
755
+ s = "nine-video";
756
756
  break;
757
757
  }
758
- return r;
758
+ return s;
759
759
  });
760
- return (r, d) => (k(), E(l(ye), {
760
+ return (s, d) => (k(), E(l(ke), {
761
761
  size: "mini",
762
762
  title: l(g)("视频监控"),
763
763
  "custom-class": `das-linakge-video-dialog ${f.value}`,
@@ -770,23 +770,23 @@ const ct = /* @__PURE__ */ P({
770
770
  "header-style": { display: "flex", justifyContent: "space-between", alignItems: "center" }
771
771
  }, {
772
772
  header: m(() => [
773
- p("div", null, [
774
- p(
773
+ v("div", null, [
774
+ v(
775
775
  "span",
776
776
  null,
777
- j(l(g)("视频监控")),
777
+ V(l(g)("视频监控")),
778
778
  1
779
779
  /* TEXT */
780
780
  )
781
781
  ]),
782
- v(l(C), {
782
+ p(l(h), {
783
783
  content: l(g)("页面全屏")
784
784
  }, {
785
785
  default: m(() => [
786
- v(l(ke), {
786
+ p(l(ye), {
787
787
  class: "icon",
788
788
  color: "#999",
789
- onClick: l(s)
789
+ onClick: l(r)
790
790
  }, null, 8, ["onClick"])
791
791
  ]),
792
792
  _: 1
@@ -794,15 +794,38 @@ 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 ? (k(), E(l(o), { 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", _appCode: "framework" },
805
+ 正在实时预览: { "zh-CN": "正在实时预览", en: "Live Previewing", _appCode: "framework" },
806
+ 声音: { "zh-CN": "声音", en: "Sound", _appCode: "framework" },
807
+ 截图: { "zh-CN": "截图", en: "Screenshot", _appCode: "framework" },
808
+ 聚焦: { "zh-CN": "聚焦", en: "Focus", _appCode: "framework" },
809
+ 方向控制: { "zh-CN": "方向控制", en: "Direction Control", _appCode: "framework" },
810
+ 左上: { "zh-CN": "左上", en: "Top Left", _appCode: "framework" },
811
+ 上: { "zh-CN": "上", en: "Up", _appCode: "framework" },
812
+ 右上: { "zh-CN": "右上", en: "Top Right", _appCode: "framework" },
813
+ 左: { "zh-CN": "左", en: "Left", _appCode: "framework" },
814
+ 自动: { "zh-CN": "自动", en: "Auto", _appCode: "framework" },
815
+ 右: { "zh-CN": "右", en: "Right", _appCode: "framework" },
816
+ 左下: { "zh-CN": "左下", en: "Bottom Left", _appCode: "framework" },
817
+ 下: { "zh-CN": "下", en: "Down", _appCode: "framework" },
818
+ 右下: { "zh-CN": "右下", en: "Bottom Right", _appCode: "framework" },
819
+ 视频监控: { "zh-CN": "视频监控", en: "Video Surveillance", _appCode: "framework" },
820
+ 页面全屏: { "zh-CN": "页面全屏", en: "Full Screen", _appCode: "framework" },
821
+ "加载中...": { "zh-CN": "加载中...", en: "Loading...", _appCode: "framework" },
822
+ "聚焦-": { "zh-CN": "聚焦-", en: "Focus-", _appCode: "framework" },
823
+ "聚焦+": { "zh-CN": "聚焦+", en: "Focus+", _appCode: "framework" }
824
+ };
825
+ Ce(dt);
826
+ const It = ge(ut), Et = () => _(null);
804
827
  export {
805
- Ct as DasVideoDialog,
806
- It as DasVideoDialogRef,
807
- at as useVideo
828
+ It as DasVideoDialog,
829
+ Et as DasVideoDialogRef,
830
+ ct as useVideo
808
831
  };