@das-fed/ui 7.0.7 → 7.0.8

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 (533) hide show
  1. package/esm-map.json +1 -3
  2. package/package.json +5 -6
  3. package/packages/business-components/ai-panel/i18n/index.d.ts +0 -8
  4. package/packages/business-components/ai-panel/{index-8yffh0Id.js → index-CD2YNg3j.js} +1341 -1390
  5. package/packages/business-components/ai-panel/index-CD2YNg3j.js.gz +0 -0
  6. package/packages/business-components/ai-panel/{index-IzGl26KU.js → index-CJeKTaAS.js} +6 -6
  7. package/packages/business-components/ai-panel/index-CJeKTaAS.js.gz +0 -0
  8. package/packages/business-components/ai-panel/{index-OwRrV6K8.js → index-DWHxqEh3.js} +1 -1
  9. package/packages/business-components/ai-panel/index-DWHxqEh3.js.gz +0 -0
  10. package/packages/business-components/ai-panel/index.js +1 -1
  11. package/packages/business-components/ai-panel/src/dasAI/apis.d.ts +0 -1
  12. package/packages/business-components/ai-panel/src/dasAI/store/index.d.ts +0 -1
  13. package/packages/business-components/ai-panel/style.css +1 -1
  14. package/packages/business-components/ai-panel/style.css.gz +0 -0
  15. package/packages/business-components/app-container/index.js +33 -35
  16. package/packages/business-components/app-container/index.js.gz +0 -0
  17. package/packages/business-components/app-container/src/style-theme.d.ts +0 -2
  18. package/packages/business-components/app-container/style.css +1 -1
  19. package/packages/business-components/app-container/style.css.gz +0 -0
  20. package/packages/business-components/area-phone-select/index.d.ts +40 -54
  21. package/packages/business-components/area-phone-select/src/area-popover/index.vue.d.ts +6 -8
  22. package/packages/business-components/change-pwd/src/hooks/use-changePwd.d.ts +8 -8
  23. package/packages/business-components/currency-page/index.d.ts +1 -3
  24. package/packages/business-components/currency-page/index.js +35 -40
  25. package/packages/business-components/currency-page/index.js.gz +0 -0
  26. package/packages/business-components/currency-page/src/index.vue.d.ts +1 -3
  27. package/packages/business-components/currency-page/src/type.d.ts +0 -6
  28. package/packages/business-components/currency-page/style.css +1 -1
  29. package/packages/business-components/device-panel/index.js +5333 -5333
  30. package/packages/business-components/device-panel/index.js.gz +0 -0
  31. package/packages/business-components/device-panel/src/apis.d.ts +30 -30
  32. package/packages/business-components/device-panel/src/components/drag-resize/index.vue.d.ts +2 -2
  33. package/packages/business-components/device-panel/src/components/panelHeaders/index.vue.d.ts +1 -1
  34. package/packages/business-components/device-panel/src/components/videoDialog/component/GridLayout/GridItem.vue.d.ts +17 -2
  35. package/packages/business-components/device-panel/src/components/videoDialog/component/GridLayout/GridLayout.vue.d.ts +15 -2
  36. package/packages/business-components/echarts/index.d.ts +10 -10
  37. package/packages/business-components/echarts/index.js +4712 -4712
  38. package/packages/business-components/echarts/index.js.gz +0 -0
  39. package/packages/business-components/echarts/src/Index.vue.d.ts +2 -2
  40. package/packages/business-components/export-button/index.d.ts +1 -1
  41. package/packages/business-components/export-button/src/App.vue.d.ts +34 -2
  42. package/packages/business-components/import-button/index.d.ts +7 -8
  43. package/packages/business-components/import-button/src/App.vue.d.ts +56 -4
  44. package/packages/business-components/model-table-dialog/index.d.ts +130 -163
  45. package/packages/business-components/model-table-dialog/src/Index.vue.d.ts +264 -19
  46. package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +6429 -4
  47. package/packages/business-components/payment/index.js +2 -2
  48. package/packages/business-components/payment/index.js.gz +0 -0
  49. package/packages/business-components/process-configuration/index.js +4 -4
  50. package/packages/business-components/process-configuration/index.js.gz +0 -0
  51. package/packages/business-components/process-form/src/hooks/useForm.d.ts +8 -8
  52. package/packages/business-components/process-table/index.d.ts +22 -25
  53. package/packages/business-components/process-table/src/App.vue.d.ts +69 -4
  54. package/packages/business-components/urgent-panel/index.js +8 -8
  55. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  56. package/packages/business-components/urgent-panel/src/components/drag-resize/index.vue.d.ts +2 -2
  57. package/packages/business-components/urgent-panel/src/components/panelHeaders/index.vue.d.ts +1 -1
  58. package/packages/business-components/video-dialog/index.js +1 -1
  59. package/packages/business-components/video-dialog/index.js.gz +0 -0
  60. package/packages/business-components/video-dialog/src/component/GridLayout/GridItem.vue.d.ts +17 -2
  61. package/packages/business-components/video-dialog/src/component/GridLayout/GridLayout.vue.d.ts +15 -2
  62. package/packages/components/alert/index.d.ts +18 -33
  63. package/packages/components/alert/src/index.vue.d.ts +6 -11
  64. package/packages/components/audio-video/index.d.ts +17 -17
  65. package/packages/components/audio-video/index.js +1 -1
  66. package/packages/components/audio-video/index.js.gz +0 -0
  67. package/packages/components/audio-video/src/Index.vue.d.ts +1 -1
  68. package/packages/components/audio-video/src/player/index.vue.d.ts +4 -4
  69. package/packages/components/autocomplete/index.d.ts +16 -16
  70. package/packages/components/autocomplete/src/index.vue.d.ts +83 -4
  71. package/packages/components/breadcrumb/index.d.ts +3 -5
  72. package/packages/components/breadcrumb/src/BreadCrumb.vue.d.ts +21 -2
  73. package/packages/components/breadcrumb/src/BreadCrumbItem.vue.d.ts +13 -2
  74. package/packages/components/button/index.d.ts +6 -11
  75. package/packages/components/button/index.js +4 -4
  76. package/packages/components/button/index.js.gz +0 -0
  77. package/packages/components/button/src/Index.vue.d.ts +4 -9
  78. package/packages/components/calendar/index.d.ts +16 -25
  79. package/packages/components/calendar/src/Index.vue.d.ts +16 -25
  80. package/packages/components/calendar/src/calendar-table.vue.d.ts +4 -5
  81. package/packages/components/calendar/src/old-Index.vue.d.ts +3 -5
  82. package/packages/components/cascader/index.d.ts +25 -28
  83. package/packages/components/cascader/src/Index.vue.d.ts +5 -6
  84. package/packages/components/checkbox/index.d.ts +61 -73
  85. package/packages/components/checkbox/src/Index.vue.d.ts +69 -9
  86. package/packages/components/collapse-panel/index.d.ts +9 -15
  87. package/packages/components/collapse-panel/src/Index.vue.d.ts +13 -2
  88. package/packages/components/collapse-transition/index.d.ts +1 -1
  89. package/packages/components/collapse-transition/src/Index.vue.d.ts +15 -2
  90. package/packages/components/collaspe/index.d.ts +3 -3
  91. package/packages/components/collaspe/src/Index.vue.d.ts +16 -2
  92. package/packages/components/color-picker/index.d.ts +15 -15
  93. package/packages/components/color-picker/src/Index.vue.d.ts +3 -3
  94. package/packages/components/custom-search-item/index.d.ts +3 -3
  95. package/packages/components/custom-search-item/src/Index.vue.d.ts +27 -2
  96. package/packages/components/date-picker/index.d.ts +71 -86
  97. package/packages/components/date-picker/index.js +3 -7
  98. package/packages/components/date-picker/index.js.gz +0 -0
  99. package/packages/components/date-picker/src/DatePicker.vue.d.ts +11 -17
  100. package/packages/components/date-picker/src/DateRangePicker.vue.d.ts +4 -4
  101. package/packages/components/date-picker/src/RangePicker.vue.d.ts +11 -17
  102. package/packages/components/date-picker/src/TimePicker.vue.d.ts +5 -6
  103. package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +6 -8
  104. package/packages/components/dialog/index.d.ts +16 -22
  105. package/packages/components/dialog/src/Index.vue.d.ts +11 -17
  106. package/packages/components/dimple-layout/index.js +1 -1
  107. package/packages/components/dimple-layout/index.js.gz +0 -0
  108. package/packages/components/drawer/index.d.ts +3 -5
  109. package/packages/components/drawer/src/Index.vue.d.ts +9 -2
  110. package/packages/components/dropdown/index.d.ts +4 -5
  111. package/packages/components/dropdown/src/dropdownItem.vue.d.ts +9 -2
  112. package/packages/components/dropdown/src/dropdownMenu.vue.d.ts +7 -2
  113. package/packages/components/dropdown/src/index.vue.d.ts +18 -2
  114. package/packages/components/edit-table/index.d.ts +83 -128
  115. package/packages/components/edit-table/index.js +658 -656
  116. package/packages/components/edit-table/index.js.gz +0 -0
  117. package/packages/components/edit-table/src/index.vue.d.ts +4095 -4
  118. package/packages/components/empty/index.d.ts +6 -8
  119. package/packages/components/empty/index.js +1 -1
  120. package/packages/components/empty/index.js.gz +0 -0
  121. package/packages/components/empty/src/Index.vue.d.ts +20 -3
  122. package/packages/components/error-overlay-model/index.d.ts +1 -1
  123. package/packages/components/error-overlay-model/src/index.vue.d.ts +1 -1
  124. package/packages/components/form/index.d.ts +12 -12
  125. package/packages/components/form/src/Index.vue.d.ts +21 -3
  126. package/packages/components/hls-player/index.d.ts +3 -3
  127. package/packages/components/hls-player/index.js +3867 -3865
  128. package/packages/components/hls-player/index.js.gz +0 -0
  129. package/packages/components/hls-player/src/das-hls-player.vue.d.ts +28 -2
  130. package/packages/components/icon/index.js +25 -25
  131. package/packages/components/icon/index.js.gz +0 -0
  132. package/packages/components/icon/src/base-icon.vue.d.ts +14 -2
  133. package/packages/components/image-upload/index.d.ts +0 -1
  134. package/packages/components/image-upload/index.js +114 -767
  135. package/packages/components/image-upload/index.js.gz +0 -0
  136. package/packages/components/image-upload/src/Index.vue.d.ts +0 -1
  137. package/packages/components/image-upload/src/type.d.ts +0 -3
  138. package/packages/components/image-upload/style.css +1 -1
  139. package/packages/components/image-upload/style.css.gz +0 -0
  140. package/packages/components/image-viewer/index.d.ts +0 -1
  141. package/packages/components/image-viewer/index.js +436 -1088
  142. package/packages/components/image-viewer/index.js.gz +0 -0
  143. package/packages/components/image-viewer/src/Index.vue.d.ts +0 -1
  144. package/packages/components/image-viewer/src/type.d.ts +0 -3
  145. package/packages/components/image-viewer/style.css +1 -1
  146. package/packages/components/image-viewer/style.css.gz +0 -0
  147. package/packages/components/input/index.d.ts +37 -40
  148. package/packages/components/input/src/index.vue.d.ts +15 -18
  149. package/packages/components/input-dialog-select/index.d.ts +5 -5
  150. package/packages/components/input-dialog-select/src/Index.vue.d.ts +5 -5
  151. package/packages/components/input-number/index.d.ts +22 -22
  152. package/packages/components/input-number/src/App.vue.d.ts +6 -6
  153. package/packages/components/live-player/index.d.ts +3 -3
  154. package/packages/components/live-player/src/das-live-player.vue.d.ts +25 -2
  155. package/packages/components/loading/index.js +2 -2
  156. package/packages/components/loading/index.js.gz +0 -0
  157. package/packages/components/map/index.js +1 -1
  158. package/packages/components/map/index.js.gz +0 -0
  159. package/packages/components/menu-aside/index.d.ts +6 -9
  160. package/packages/components/menu-aside/index.js +214 -238
  161. package/packages/components/menu-aside/index.js.gz +0 -0
  162. package/packages/components/menu-aside/src/Index.vue.d.ts +4 -7
  163. package/packages/components/menu-aside/src/style-theme.d.ts +0 -25
  164. package/packages/components/menu-aside/src/sub-menu/sub-menu.vue.d.ts +2 -3
  165. package/packages/components/menu-aside/src/type.d.ts +1 -1
  166. package/packages/components/menu-aside/style.css +1 -1
  167. package/packages/components/menu-aside/style.css.gz +0 -0
  168. package/packages/components/menu-header/index.d.ts +2 -9
  169. package/packages/components/menu-header/index.js +50 -54
  170. package/packages/components/menu-header/index.js.gz +0 -0
  171. package/packages/components/menu-header/src/Index.vue.d.ts +2 -5
  172. package/packages/components/menu-header/src/style-theme.d.ts +0 -9
  173. package/packages/components/menu-header/src/type.d.ts +1 -6
  174. package/packages/components/menu-header/style.css +1 -1
  175. package/packages/components/menu-header/style.css.gz +0 -0
  176. package/packages/components/pagination/index.d.ts +3 -3
  177. package/packages/components/pagination/src/Pagination.vue.d.ts +79 -2
  178. package/packages/components/popover/index.d.ts +6 -9
  179. package/packages/components/popover/src/Index.vue.d.ts +34 -3
  180. package/packages/components/popup-mask/index.d.ts +29 -32
  181. package/packages/components/popup-mask/src/Index.vue.d.ts +37 -6
  182. package/packages/components/preview/index.d.ts +1 -1
  183. package/packages/components/preview/src/Index.vue.d.ts +14 -2
  184. package/packages/components/progress/index.d.ts +2 -2
  185. package/packages/components/progress/index.js +1 -1
  186. package/packages/components/progress/index.js.gz +0 -0
  187. package/packages/components/progress/src/Index.vue.d.ts +48 -2
  188. package/packages/components/radio/index.d.ts +39 -57
  189. package/packages/components/radio/src/Index.vue.d.ts +55 -5
  190. package/packages/components/rich-editor/index.js +294 -294
  191. package/packages/components/rich-editor/index.js.gz +0 -0
  192. package/packages/components/scrollbar/index.d.ts +1 -1
  193. package/packages/components/scrollbar/src/scrollbar.vue.d.ts +18 -2
  194. package/packages/components/search/index.d.ts +3 -3
  195. package/packages/components/search/src/Index.vue.d.ts +3 -3
  196. package/packages/components/search-form/index.js +30 -21
  197. package/packages/components/search-form/index.js.gz +0 -0
  198. package/packages/components/search-form/src/Index.vue.d.ts +90 -2
  199. package/packages/components/select/index.d.ts +33 -43
  200. package/packages/components/select/src/Select.vue.d.ts +19 -29
  201. package/packages/components/select-input/index.d.ts +3 -3
  202. package/packages/components/select-input/src/Index.vue.d.ts +3 -3
  203. package/packages/components/select-list/index.d.ts +24 -29
  204. package/packages/components/select-list/src/Index.vue.d.ts +71 -9
  205. package/packages/components/special-range-picker-month/index.d.ts +2 -2
  206. package/packages/components/special-range-picker-month/index.js +1 -1
  207. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  208. package/packages/components/special-range-picker-month/src/Index.vue.d.ts +2 -2
  209. package/packages/components/special-range-picker-year/index.d.ts +2 -2
  210. package/packages/components/special-range-picker-year/index.js +1 -1
  211. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  212. package/packages/components/special-range-picker-year/src/Index.vue.d.ts +2 -2
  213. package/packages/components/spin/index.d.ts +1 -1
  214. package/packages/components/spin/index.js +1 -1
  215. package/packages/components/spin/index.js.gz +0 -0
  216. package/packages/components/spin/src/index.vue.d.ts +15 -2
  217. package/packages/components/split-panel/index.d.ts +12 -21
  218. package/packages/components/split-panel/index.js +1 -1
  219. package/packages/components/split-panel/index.js.gz +0 -0
  220. package/packages/components/split-panel/src/Index.vue.d.ts +4 -7
  221. package/packages/components/step/src/stepItem.vue.d.ts +16 -2
  222. package/packages/components/steps/index.d.ts +1 -1
  223. package/packages/components/steps/src/steps.vue.d.ts +7 -2
  224. package/packages/components/table/index.d.ts +78 -132
  225. package/packages/components/table/index.js +239 -239
  226. package/packages/components/table/index.js.gz +0 -0
  227. package/packages/components/table/src/Table.vue.d.ts +1170 -3
  228. package/packages/components/table/src/hooks/use-operation.d.ts +4 -4
  229. package/packages/components/table/src/table-column/index.vue.d.ts +377 -3
  230. package/packages/components/tabs/index.d.ts +12 -21
  231. package/packages/components/tabs/index.js +31 -31
  232. package/packages/components/tabs/index.js.gz +0 -0
  233. package/packages/components/tabs/src/Tabs.vue.d.ts +63 -5
  234. package/packages/components/tag/index.d.ts +1 -1
  235. package/packages/components/tag/src/Index.vue.d.ts +1 -1
  236. package/packages/components/time-line/index.js +3 -3
  237. package/packages/components/time-line/index.js.gz +0 -0
  238. package/packages/components/time-line/src/Index.vue.d.ts +12 -2
  239. package/packages/components/time-line/src/TimelineItem.vue.d.ts +15 -2
  240. package/packages/components/tooltip/index.d.ts +6 -9
  241. package/packages/components/tooltip/src/index.vue.d.ts +41 -2
  242. package/packages/components/tree/index.js +1 -1
  243. package/packages/components/tree/index.js.gz +0 -0
  244. package/packages/components/tree/src/App.vue.d.ts +33 -61
  245. package/packages/components/tree/src/empty.vue.d.ts +4 -2
  246. package/packages/components/tree-select/src/App.vue.d.ts +98 -194
  247. package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +88 -180
  248. package/packages/components/tree-table/index.d.ts +58 -100
  249. package/packages/components/tree-table/index.js +266 -302
  250. package/packages/components/tree-table/index.js.gz +0 -0
  251. package/packages/components/tree-table/src/App.vue.d.ts +18 -32
  252. package/packages/components/tree-table/src/type.d.ts +1 -1
  253. package/packages/components/tree-table/style.css +1 -1
  254. package/packages/components/tree-table/style.css.gz +0 -0
  255. package/packages/components/tree-v2/index.d.ts +51 -159
  256. package/packages/components/tree-v2/index.js +1 -1
  257. package/packages/components/tree-v2/index.js.gz +0 -0
  258. package/packages/components/tree-v2/src/App.vue.d.ts +17 -53
  259. package/packages/components/tree-v2/src/empty.vue.d.ts +4 -2
  260. package/packages/components/upload/index.d.ts +7 -10
  261. package/packages/components/upload/index.js +1 -1
  262. package/packages/components/upload/index.js.gz +0 -0
  263. package/packages/components/upload/src/Index.vue.d.ts +43 -3
  264. package/packages/components/virtual-tree/index.js +3 -3
  265. package/packages/components/virtual-tree/index.js.gz +0 -0
  266. package/packages/components/virtual-tree/src/App.vue.d.ts +3 -4
  267. package/packages/components/watermark/index.d.ts +1 -1
  268. package/packages/components/watermark/src/index.vue.d.ts +7 -2
  269. package/packages/icons/1-grids/index.vue.d.ts +9 -2
  270. package/packages/icons/4-grids/index.vue.d.ts +9 -2
  271. package/packages/icons/9-grids/index.vue.d.ts +9 -2
  272. package/packages/icons/add/index.vue.d.ts +9 -2
  273. package/packages/icons/add-2/index.vue.d.ts +9 -2
  274. package/packages/icons/add-item/index.vue.d.ts +9 -2
  275. package/packages/icons/addto/index.vue.d.ts +9 -2
  276. package/packages/icons/alarm/index.vue.d.ts +9 -2
  277. package/packages/icons/arrow-first/index.vue.d.ts +9 -2
  278. package/packages/icons/arrow-last/index.vue.d.ts +9 -2
  279. package/packages/icons/audioing/index.vue.d.ts +9 -2
  280. package/packages/icons/back/index.vue.d.ts +9 -2
  281. package/packages/icons/bianjigongzuotai/index.vue.d.ts +9 -2
  282. package/packages/icons/biaochi/index.vue.d.ts +9 -2
  283. package/packages/icons/bim/index.vue.d.ts +9 -2
  284. package/packages/icons/bobaoguanbi/index.vue.d.ts +9 -2
  285. package/packages/icons/bobaokaiqi/index.vue.d.ts +9 -2
  286. package/packages/icons/bold/index.vue.d.ts +9 -2
  287. package/packages/icons/camera/index.vue.d.ts +9 -2
  288. package/packages/icons/camera-2/index.vue.d.ts +9 -2
  289. package/packages/icons/camera-3/index.vue.d.ts +9 -2
  290. package/packages/icons/cancel-full-screen/index.vue.d.ts +9 -2
  291. package/packages/icons/cankaoneirong/index.vue.d.ts +9 -2
  292. package/packages/icons/card/index.vue.d.ts +9 -2
  293. package/packages/icons/card-view/index.vue.d.ts +9 -2
  294. package/packages/icons/caret-bottom/index.vue.d.ts +9 -2
  295. package/packages/icons/caret-right/index.vue.d.ts +9 -2
  296. package/packages/icons/chakancelve/index.vue.d.ts +9 -2
  297. package/packages/icons/change/index.vue.d.ts +9 -2
  298. package/packages/icons/change-2/index.vue.d.ts +9 -2
  299. package/packages/icons/change-3/index.vue.d.ts +9 -2
  300. package/packages/icons/changetenant/index.vue.d.ts +9 -2
  301. package/packages/icons/chart/index.vue.d.ts +9 -2
  302. package/packages/icons/chaxunxiangqing/index.vue.d.ts +9 -2
  303. package/packages/icons/check/index.vue.d.ts +9 -2
  304. package/packages/icons/chuanglianjiang/index.vue.d.ts +9 -2
  305. package/packages/icons/chuangliansheng/index.vue.d.ts +9 -2
  306. package/packages/icons/chuanglianting/index.vue.d.ts +9 -2
  307. package/packages/icons/chuizhiduiqi/index.vue.d.ts +9 -2
  308. package/packages/icons/chuizhijunfen/index.vue.d.ts +9 -2
  309. package/packages/icons/close/index.vue.d.ts +9 -2
  310. package/packages/icons/close-2/index.vue.d.ts +9 -2
  311. package/packages/icons/closeaudio/index.vue.d.ts +9 -2
  312. package/packages/icons/color/index.vue.d.ts +9 -2
  313. package/packages/icons/copy/index.vue.d.ts +9 -2
  314. package/packages/icons/custom/index.vue.d.ts +9 -2
  315. package/packages/icons/daochu/index.vue.d.ts +9 -2
  316. package/packages/icons/date/index.vue.d.ts +9 -2
  317. package/packages/icons/decline/index.vue.d.ts +9 -2
  318. package/packages/icons/default-btn/index.vue.d.ts +9 -2
  319. package/packages/icons/default-point/index.vue.d.ts +9 -2
  320. package/packages/icons/delete/index.vue.d.ts +9 -2
  321. package/packages/icons/delete-2/index.vue.d.ts +9 -2
  322. package/packages/icons/dengbijiesuo/index.vue.d.ts +9 -2
  323. package/packages/icons/dengbisuoding/index.vue.d.ts +9 -2
  324. package/packages/icons/dengdai/index.vue.d.ts +9 -2
  325. package/packages/icons/dianzan/index.vue.d.ts +9 -2
  326. package/packages/icons/dianzan-2/index.vue.d.ts +9 -2
  327. package/packages/icons/direction-control/index.vue.d.ts +9 -2
  328. package/packages/icons/ditu/index.vue.d.ts +9 -2
  329. package/packages/icons/dizhixuanze/index.vue.d.ts +9 -2
  330. package/packages/icons/double-arrow-left/index.vue.d.ts +9 -2
  331. package/packages/icons/double-arrow-right/index.vue.d.ts +9 -2
  332. package/packages/icons/down/index.vue.d.ts +9 -2
  333. package/packages/icons/down-2/index.vue.d.ts +9 -2
  334. package/packages/icons/down-3/index.vue.d.ts +9 -2
  335. package/packages/icons/download/index.vue.d.ts +9 -2
  336. package/packages/icons/drag/index.vue.d.ts +9 -2
  337. package/packages/icons/drawing/index.vue.d.ts +9 -2
  338. package/packages/icons/edit/index.vue.d.ts +9 -2
  339. package/packages/icons/edit-1/index.vue.d.ts +9 -2
  340. package/packages/icons/edit-3/index.vue.d.ts +9 -2
  341. package/packages/icons/empty/index.vue.d.ts +9 -2
  342. package/packages/icons/enlarge/index.vue.d.ts +9 -2
  343. package/packages/icons/entry/index.vue.d.ts +9 -2
  344. package/packages/icons/exit/index.vue.d.ts +9 -2
  345. package/packages/icons/fabu/index.vue.d.ts +9 -2
  346. package/packages/icons/fanhui/index.vue.d.ts +9 -2
  347. package/packages/icons/fasong/index.vue.d.ts +9 -2
  348. package/packages/icons/filter-3/index.vue.d.ts +9 -2
  349. package/packages/icons/finish/index.vue.d.ts +9 -2
  350. package/packages/icons/fold/index.vue.d.ts +9 -2
  351. package/packages/icons/folder-quest/index.vue.d.ts +9 -2
  352. package/packages/icons/form-tips/index.vue.d.ts +9 -2
  353. package/packages/icons/fresh/index.vue.d.ts +9 -2
  354. package/packages/icons/full/index.vue.d.ts +9 -2
  355. package/packages/icons/full-screen/index.vue.d.ts +9 -2
  356. package/packages/icons/fullscreen-2/index.vue.d.ts +9 -2
  357. package/packages/icons/fuzhi/index.vue.d.ts +9 -2
  358. package/packages/icons/fuzhineirong/index.vue.d.ts +9 -2
  359. package/packages/icons/gaojin/index.vue.d.ts +9 -2
  360. package/packages/icons/gengduocaozuo/index.vue.d.ts +9 -2
  361. package/packages/icons/global/index.vue.d.ts +9 -2
  362. package/packages/icons/gongzuotaiguanli/index.vue.d.ts +9 -2
  363. package/packages/icons/header-seach/index.vue.d.ts +9 -2
  364. package/packages/icons/header-setting/index.vue.d.ts +9 -2
  365. package/packages/icons/headersettings/index.vue.d.ts +9 -2
  366. package/packages/icons/hide/index.vue.d.ts +9 -2
  367. package/packages/icons/huabufuwei/index.vue.d.ts +9 -2
  368. package/packages/icons/huaxian/index.vue.d.ts +9 -2
  369. package/packages/icons/huida/index.vue.d.ts +9 -2
  370. package/packages/icons/huidaodibu/index.vue.d.ts +9 -2
  371. package/packages/icons/huifuchuchangshezhi/index.vue.d.ts +9 -2
  372. package/packages/icons/hyperlinks/index.vue.d.ts +9 -2
  373. package/packages/icons/img/index.vue.d.ts +9 -2
  374. package/packages/icons/index.d.ts +0 -2
  375. package/packages/icons/index.js +0 -2
  376. package/packages/icons/input-close/index.vue.d.ts +9 -2
  377. package/packages/icons/input-select/index.vue.d.ts +9 -2
  378. package/packages/icons/intnet/index.vue.d.ts +9 -2
  379. package/packages/icons/italic/index.vue.d.ts +9 -2
  380. package/packages/icons/jia-1/index.vue.d.ts +9 -2
  381. package/packages/icons/jian-1/index.vue.d.ts +9 -2
  382. package/packages/icons/jianshao-1/index.vue.d.ts +9 -2
  383. package/packages/icons/jinggao/index.vue.d.ts +9 -2
  384. package/packages/icons/jushangduiqi/index.vue.d.ts +9 -2
  385. package/packages/icons/juxiaduiqi/index.vue.d.ts +9 -2
  386. package/packages/icons/juxinghuizhi/index.vue.d.ts +9 -2
  387. package/packages/icons/juyouduiqi/index.vue.d.ts +9 -2
  388. package/packages/icons/juzuoduiqi/index.vue.d.ts +9 -2
  389. package/packages/icons/kaiguan/index.vue.d.ts +9 -2
  390. package/packages/icons/kaimen/index.vue.d.ts +9 -2
  391. package/packages/icons/know/index.vue.d.ts +9 -2
  392. package/packages/icons/knowed/index.vue.d.ts +9 -2
  393. package/packages/icons/knowopen/index.vue.d.ts +9 -2
  394. package/packages/icons/layout-refresh/index.vue.d.ts +9 -2
  395. package/packages/icons/left/index.vue.d.ts +9 -2
  396. package/packages/icons/lianjie/index.vue.d.ts +9 -2
  397. package/packages/icons/link/index.vue.d.ts +9 -2
  398. package/packages/icons/lishihuihua/index.vue.d.ts +9 -2
  399. package/packages/icons/list/index.vue.d.ts +9 -2
  400. package/packages/icons/list-view/index.vue.d.ts +9 -2
  401. package/packages/icons/load/index.vue.d.ts +9 -2
  402. package/packages/icons/lock/index.vue.d.ts +9 -2
  403. package/packages/icons/marsh/index.vue.d.ts +9 -2
  404. package/packages/icons/me/index.vue.d.ts +9 -2
  405. package/packages/icons/more/index.vue.d.ts +9 -2
  406. package/packages/icons/more-2/index.vue.d.ts +9 -2
  407. package/packages/icons/more-btn/index.vue.d.ts +9 -2
  408. package/packages/icons/muted/index.vue.d.ts +9 -2
  409. package/packages/icons/notification-face/index.vue.d.ts +9 -2
  410. package/packages/icons/paiban/index.vue.d.ts +9 -2
  411. package/packages/icons/password-lock/index.vue.d.ts +9 -2
  412. package/packages/icons/password-lock2/index.vue.d.ts +9 -2
  413. package/packages/icons/pause/index.vue.d.ts +9 -2
  414. package/packages/icons/phone/index.vue.d.ts +9 -2
  415. package/packages/icons/pinglun/index.vue.d.ts +9 -2
  416. package/packages/icons/plan/index.vue.d.ts +9 -2
  417. package/packages/icons/play/index.vue.d.ts +9 -2
  418. package/packages/icons/preview/index.vue.d.ts +9 -2
  419. package/packages/icons/preview-eye/index.vue.d.ts +9 -2
  420. package/packages/icons/project-list/index.vue.d.ts +9 -2
  421. package/packages/icons/project-tree/index.vue.d.ts +9 -2
  422. package/packages/icons/promptinformation-l/index.vue.d.ts +9 -2
  423. package/packages/icons/qiehuangongzuotai/index.vue.d.ts +9 -2
  424. package/packages/icons/qingkong/index.vue.d.ts +9 -2
  425. package/packages/icons/quanping/index.vue.d.ts +9 -2
  426. package/packages/icons/rate-all/index.vue.d.ts +9 -2
  427. package/packages/icons/rate-half/index.vue.d.ts +9 -2
  428. package/packages/icons/rate-none/index.vue.d.ts +9 -2
  429. package/packages/icons/recover/index.vue.d.ts +9 -2
  430. package/packages/icons/refresh/index.vue.d.ts +9 -2
  431. package/packages/icons/reload/index.vue.d.ts +9 -2
  432. package/packages/icons/reset/index.vue.d.ts +9 -2
  433. package/packages/icons/right/index.vue.d.ts +9 -2
  434. package/packages/icons/right-3/index.vue.d.ts +9 -2
  435. package/packages/icons/riqixuanze/index.vue.d.ts +9 -2
  436. package/packages/icons/rise/index.vue.d.ts +9 -2
  437. package/packages/icons/save/index.vue.d.ts +9 -2
  438. package/packages/icons/screenshot/index.vue.d.ts +9 -2
  439. package/packages/icons/search/index.vue.d.ts +9 -2
  440. package/packages/icons/select/index.vue.d.ts +9 -2
  441. package/packages/icons/select-confirm/index.vue.d.ts +9 -2
  442. package/packages/icons/select2/index.vue.d.ts +9 -2
  443. package/packages/icons/set-up/index.vue.d.ts +9 -2
  444. package/packages/icons/setting/index.vue.d.ts +9 -2
  445. package/packages/icons/shangchuan/index.vue.d.ts +9 -2
  446. package/packages/icons/shebei/index.vue.d.ts +9 -2
  447. package/packages/icons/shebeiqunzu/index.vue.d.ts +9 -2
  448. package/packages/icons/shendusikao/index.vue.d.ts +9 -2
  449. package/packages/icons/sheweimoren/index.vue.d.ts +9 -2
  450. package/packages/icons/shisuan/index.vue.d.ts +9 -2
  451. package/packages/icons/shitu-kapian/index.vue.d.ts +9 -2
  452. package/packages/icons/shitu-liebiao/index.vue.d.ts +9 -2
  453. package/packages/icons/shitu-map/index.vue.d.ts +9 -2
  454. package/packages/icons/shortcut-keys/index.vue.d.ts +9 -2
  455. package/packages/icons/shoudongzhihang/index.vue.d.ts +9 -2
  456. package/packages/icons/shouqiliangcemianban/index.vue.d.ts +9 -2
  457. package/packages/icons/shouqiyoucemianban/index.vue.d.ts +9 -2
  458. package/packages/icons/shouqiyoucemianban-1/index.vue.d.ts +9 -2
  459. package/packages/icons/shouqizuocemianban/index.vue.d.ts +9 -2
  460. package/packages/icons/shouqizuocemianban-1/index.vue.d.ts +9 -2
  461. package/packages/icons/shouquan/index.vue.d.ts +9 -2
  462. package/packages/icons/show/index.vue.d.ts +9 -2
  463. package/packages/icons/shrink/index.vue.d.ts +9 -2
  464. package/packages/icons/shuaxin/index.vue.d.ts +9 -2
  465. package/packages/icons/shuipingduiqi/index.vue.d.ts +9 -2
  466. package/packages/icons/shuipingjunfen/index.vue.d.ts +9 -2
  467. package/packages/icons/shuyoufanye/index.vue.d.ts +9 -2
  468. package/packages/icons/shuzuofanye/index.vue.d.ts +9 -2
  469. package/packages/icons/solid-filter/index.vue.d.ts +9 -2
  470. package/packages/icons/start/index.vue.d.ts +9 -2
  471. package/packages/icons/stop/index.vue.d.ts +9 -2
  472. package/packages/icons/structural-diagram/index.vue.d.ts +9 -2
  473. package/packages/icons/success/index.vue.d.ts +9 -2
  474. package/packages/icons/system/index.vue.d.ts +9 -2
  475. package/packages/icons/table-header-search/index.vue.d.ts +9 -2
  476. package/packages/icons/text/index.vue.d.ts +9 -2
  477. package/packages/icons/tianjiaxinhuati/index.vue.d.ts +9 -2
  478. package/packages/icons/tick/index.vue.d.ts +9 -2
  479. package/packages/icons/tishixinxi/index.vue.d.ts +9 -2
  480. package/packages/icons/tongguo/index.vue.d.ts +9 -2
  481. package/packages/icons/tongzhi/index.vue.d.ts +9 -2
  482. package/packages/icons/tubiaoku/index.vue.d.ts +9 -2
  483. package/packages/icons/tuichuquanping/index.vue.d.ts +9 -2
  484. package/packages/icons/tuozhuai/index.vue.d.ts +9 -2
  485. package/packages/icons/underline/index.vue.d.ts +9 -2
  486. package/packages/icons/unflod/index.vue.d.ts +9 -2
  487. package/packages/icons/unlock/index.vue.d.ts +9 -2
  488. package/packages/icons/up/index.vue.d.ts +9 -2
  489. package/packages/icons/up-2/index.vue.d.ts +9 -2
  490. package/packages/icons/vauth/index.vue.d.ts +9 -2
  491. package/packages/icons/view/index.vue.d.ts +9 -2
  492. package/packages/icons/view-2/index.vue.d.ts +9 -2
  493. package/packages/icons/volume/index.vue.d.ts +9 -2
  494. package/packages/icons/wangge/index.vue.d.ts +9 -2
  495. package/packages/icons/wangge-1/index.vue.d.ts +9 -2
  496. package/packages/icons/warning/index.vue.d.ts +9 -2
  497. package/packages/icons/warning-face/index.vue.d.ts +9 -2
  498. package/packages/icons/wendujiang/index.vue.d.ts +9 -2
  499. package/packages/icons/wendusheng/index.vue.d.ts +9 -2
  500. package/packages/icons/withdraw/index.vue.d.ts +9 -2
  501. package/packages/icons/xiala/index.vue.d.ts +9 -2
  502. package/packages/icons/xiazai/index.vue.d.ts +9 -2
  503. package/packages/icons/xinzengtongji/index.vue.d.ts +9 -2
  504. package/packages/icons/xuanzhuanjiaodu/index.vue.d.ts +9 -2
  505. package/packages/icons/yidongduan/index.vue.d.ts +9 -2
  506. package/packages/icons/yincang/index.vue.d.ts +9 -2
  507. package/packages/icons/yingpian/index.vue.d.ts +9 -2
  508. package/packages/icons/yingyong/index.vue.d.ts +9 -2
  509. package/packages/icons/yitushoutu/index.vue.d.ts +9 -2
  510. package/packages/icons/yuanxinghuizhi/index.vue.d.ts +9 -2
  511. package/packages/icons/yulan-2/index.vue.d.ts +9 -2
  512. package/packages/icons/yuyin/index.vue.d.ts +9 -2
  513. package/packages/icons/zhangaiwu/index.vue.d.ts +9 -2
  514. package/packages/icons/zhizhen/index.vue.d.ts +9 -2
  515. package/packages/icons/zhongxinshengcheng/index.vue.d.ts +9 -2
  516. package/packages/icons/zhuomianduan/index.vue.d.ts +9 -2
  517. package/packages/icons/zidingyihuizhi/index.vue.d.ts +9 -2
  518. package/packages/icons/zuobiao/index.vue.d.ts +9 -2
  519. package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
  520. package/packages/business-components/ai-panel/index-IzGl26KU.js.gz +0 -0
  521. package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
  522. package/packages/components/image-upload/src/hooks/use-compress-image.d.ts +0 -1
  523. package/packages/components/image-viewer/src/hooks/use-compress-image.d.ts +0 -1
  524. package/packages/components/tree-table/src/hooks/use-five.d.ts +0 -4
  525. package/packages/components/tree-table/src/hooks/use-four.d.ts +0 -4
  526. package/packages/icons/tucao/index.d.ts +0 -1
  527. package/packages/icons/tucao/index.js +0 -17
  528. package/packages/icons/tucao/index.js.gz +0 -0
  529. package/packages/icons/tucao/index.vue.d.ts +0 -12
  530. package/packages/icons/tucao-2/index.d.ts +0 -1
  531. package/packages/icons/tucao-2/index.js +0 -17
  532. package/packages/icons/tucao-2/index.js.gz +0 -0
  533. package/packages/icons/tucao-2/index.vue.d.ts +0 -12
@@ -1,921 +1,272 @@
1
1
  import '@das-fed/ui/packages/components/image-viewer/style.css';
2
- import { withInstall as rt } from "@das-fed/utils/with-install/index";
3
- import { setThemeRule as ot } from "@das-fed/web/packages/theme/index";
4
- import { ref as Ee, computed as x, watch as st, createApp as lt, defineComponent as ut, createElementBlock as U, openBlock as y, Fragment as de, createCommentVNode as p, createElementVNode as X, withDirectives as J, normalizeStyle as fe, createVNode as ie, unref as n, normalizeClass as ge, withCtx as ne, createBlock as O, vShow as j, isRef as Qe, createTextVNode as Pe, toDisplayString as Te, renderList as Me } from "vue";
5
- import { ElImageViewer as ct, ElImage as Le } from "element-plus";
6
- import { Upload as Fe } from "ant-design-vue";
7
- import { vDasTooltip as Ne } from "@das-fed/ui/packages/components/text-tooltip/index";
8
- import { DasImageUpload as Ve } from "@das-fed/ui/packages/components/image-upload/index";
9
- import { DasSpin as Je } from "@das-fed/ui/packages/components/spin/index";
10
- import { DasAudioVideo as ve } from "@das-fed/ui/packages/components/audio-video/index";
11
- import { DasIconDownload as je } from "@das-fed/ui/packages/icons/download/index";
12
- import { DasIconChange as pe } from "@das-fed/ui/packages/icons/change/index";
13
- import { DasIconDelete as ze } from "@das-fed/ui/packages/icons/delete/index";
14
- import { useModelValue as be } from "@das-fed/utils/vue";
15
- import { DasMessage as xe } from "@das-fed/ui/packages/components/message/index";
16
- import { extractFilename as _e, getFileExtension as mt } from "@das-fed/utils/common-tools";
17
- import { getConfig as De } from "@das-fed/utils/config";
18
- import { currentLang as Ke, i18n as He } from "@das-fed/web/packages/i18n/index";
19
- import { iotMinio as et } from "@das-fed/utils/api-services/modules/iot";
20
- import { useFile as dt } from "@das-fed/utils/api-services/modules/file";
21
- import { getUserInfo as ft } from "@das-fed/utils/common-info";
22
- import { pureImageSrc as Re } from "@das-fed/utils/pure-image-src";
2
+ import { withInstall as Pe } from "@das-fed/utils/with-install/index";
3
+ import { setThemeRule as Oe } from "@das-fed/web/packages/theme/index";
4
+ import { ref as ne, computed as D, watch as Je, createApp as Ne, defineComponent as Fe, createElementBlock as h, openBlock as d, Fragment as x, createCommentVNode as r, createElementVNode as N, withDirectives as B, normalizeStyle as $, createVNode as H, unref as e, normalizeClass as _, withCtx as q, createBlock as I, vShow as Q, isRef as ue, createTextVNode as ce, toDisplayString as de, renderList as me } from "vue";
5
+ import { ElImageViewer as Ve, ElImage as ge } from "element-plus";
6
+ import { Upload as pe } from "ant-design-vue";
7
+ import { vDasTooltip as fe } from "@das-fed/ui/packages/components/text-tooltip/index";
8
+ import { DasImageUpload as Ae } from "@das-fed/ui/packages/components/image-upload/index";
9
+ import { DasSpin as ve } from "@das-fed/ui/packages/components/spin/index";
10
+ import { DasAudioVideo as ee } from "@das-fed/ui/packages/components/audio-video/index";
11
+ import { DasIconDownload as we } from "@das-fed/ui/packages/icons/download/index";
12
+ import { DasIconChange as te } from "@das-fed/ui/packages/icons/change/index";
13
+ import { DasIconDelete as Ce } from "@das-fed/ui/packages/icons/delete/index";
14
+ import { useModelValue as Ee } from "@das-fed/utils/vue";
15
+ import { DasMessage as he } from "@das-fed/ui/packages/components/message/index";
16
+ import { extractFilename as ye, getFileExtension as Te } from "@das-fed/utils/common-tools";
17
+ import { getConfig as re } from "@das-fed/utils/config";
18
+ import { currentLang as Ie, i18n as ke } from "@das-fed/web/packages/i18n/index";
19
+ import { iotMinio as Be } from "@das-fed/utils/api-services/modules/iot";
20
+ import { useFile as Le } from "@das-fed/utils/api-services/modules/file";
21
+ import { getUserInfo as Me } from "@das-fed/utils/common-info";
22
+ import { pureImageSrc as le } from "@das-fed/utils/pure-image-src";
23
23
  import "ant-design-vue/es/upload/style/css";
24
24
  import "element-plus/es/components/image/style/css";
25
25
  import "element-plus/es/components/image-viewer/style/css";
26
26
  import "@das-fed/ui/packages/global/theme";
27
- const Ie = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c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7Vtt7/wME4YHuqneMGQAAAABJRU5ErkJggg==", gt = (t, e) => {
28
- const i = new Image();
29
- i.setAttribute("crossOrigin", "Anonymous"), i.onload = function() {
30
- let a = document.createElement("canvas");
31
- const r = a.getContext("2d");
32
- a.width = i.width, a.height = i.height, r.drawImage(i, 0, 0, i.width, i.height), a.toBlob((o) => {
33
- let g = URL.createObjectURL(o), s = document.createElement("a"), f = new MouseEvent("click");
34
- const c = t.substring(t.lastIndexOf(".")).toLowerCase();
35
- s.download = e || `default${c}`, s.href = g, s.dispatchEvent(f), URL.revokeObjectURL(g);
27
+ const se = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAyKADAAQAAAABAAAAyAAAAACbWz2VAAAPbUlEQVR4Ae1dDXfiKhDV1o92T3f//9/ctVWjUR+XLe9hnvKRkMCQO+fYJIYg3OGWmYHA8nq93tRnQSECROAegZeXl8Xqdrst8KEQASJwjwB48XL/Fa+IABGwESBBbDR4TgQ6CJAgHUB4SQRsBEgQGw2eE4EOAiRIBxBeEgEbARLERoPnRKCDAAnSAYSXRMBGgASx0eA5EeggQIJ0AOElEbARIEFsNHhOBDoIkCAdQHhJBGwESBAbDZ4TgQ4CJEgHEF4SARsBEsRGg+dEoIMACdIBhJdEwEaABLHR4DkR6CBAgnQA4SURsBEgQWw0eE4EOgiQIB1AeEkEbARIEBsNnhOBDgIkSAcQXhIBGwESxEaD50SggwAJ0gGEl0TARoAEsdHgORHoIECCdADhJRGwESBBbDR4TgQ6CJAgHUB4SQRsBEgQGw2eE4EOAiRIBxBeEgEbARLERoPnRKCDAAnSAYSXRMBGYGVf1Hpu9kDBcblcLrAxCoUIhCBQFUFAgPP5vLhcLvrTtq0Tg9fXV00WHNfr9QJHChGwEViqxiR6CzaQ4nQ66Q+IMVQ2m80C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GwiksGQkSKDCXlbuda8uLaNXgVCKSkaCBKrLN/7BHiQQSGHJSJAAhfmml+jxD/WCFKU+BEiQAJ1i9RKXtJfWdZv3BCNAggQo79VDkCsJEoCizCQkSIDefP4Hp5cEgCg0CQkSoDifiXXh/KsAFGUmIUE8etMj6J40fP/DA5Dg2ySIR3l+/4PRKw+Eom+TIB71+cwrLkztAVD4bRLEo8CXFzdE9D88AAq/7da+8MqlKP7SQxBMUqTUiwAJ4tHtC6a5O4QzeB3gVHDLrf0KKji0Cr4ehHOwhiJc9vMkiEs/apEGp6h30Cl1I0CCOPTrDfHeGOJ1wFfFLRLEocalZ4Xq25VdiAO+Km4tm6a5MVT5WJcYA3Et1ADcLlwH6zF4FXy7Vtt7/wME4YHuqneMGQAAAABJRU5ErkJggg==", Ke = (t, a) => {
28
+ const s = new Image();
29
+ s.setAttribute("crossOrigin", "Anonymous"), s.onload = function() {
30
+ let o = document.createElement("canvas");
31
+ const m = o.getContext("2d");
32
+ o.width = s.width, o.height = s.height, m.drawImage(s, 0, 0, s.width, s.height), o.toBlob((f) => {
33
+ let v = URL.createObjectURL(f), l = document.createElement("a"), R = new MouseEvent("click");
34
+ const C = t.substring(t.lastIndexOf(".")).toLowerCase();
35
+ l.download = a || `default${C}`, l.href = v, l.dispatchEvent(R), URL.revokeObjectURL(v);
36
36
  });
37
- }, i.src = t + "?v=" + Date.now();
38
- }, vt = (t, e) => {
39
- t && fetch(t).then((i) => i.blob()).then((i) => {
40
- const a = document.createElement("a");
41
- document.body.appendChild(a), a.style.display = "none";
42
- const r = window.URL.createObjectURL(i);
43
- a.href = r, a.download = e, a.click(), document.body.removeChild(a), window.URL.revokeObjectURL(r);
37
+ }, s.src = t + "?v=" + Date.now();
38
+ }, je = (t, a) => {
39
+ t && fetch(t).then((s) => s.blob()).then((s) => {
40
+ const o = document.createElement("a");
41
+ document.body.appendChild(o), o.style.display = "none";
42
+ const m = window.URL.createObjectURL(s);
43
+ o.href = m, o.download = a, o.click(), document.body.removeChild(o), window.URL.revokeObjectURL(m);
44
44
  });
45
- }, pt = (t) => {
46
- const e = (t == null ? void 0 : t.minioTokenApi) ?? "token";
47
- return et.get(e, (i) => (i.headers || (i.headers = {}), t != null && t.baseUrl && (i.baseURL = t.baseUrl), i));
48
- }, ht = (t) => et.post("put-object", (e) => (e.headers || (e.headers = {}), t && (e.baseURL = t), e.headers["Content-Type"] = "multipart/form-data", e)), wt = () => {
49
- const t = ft();
45
+ }, ze = (t) => {
46
+ const a = (t == null ? void 0 : t.minioTokenApi) ?? "token";
47
+ return Be.get(a, (s) => (s.headers || (s.headers = {}), t != null && t.baseUrl && (s.baseURL = t.baseUrl), s));
48
+ }, He = (t) => Be.post("put-object", (a) => (a.headers || (a.headers = {}), t && (a.baseURL = t), a.headers["Content-Type"] = "multipart/form-data", a)), qe = () => {
49
+ const t = Me();
50
50
  return t ? t.tenantId : "";
51
- }, At = (t) => {
52
- const { baseUrl: e, serviceName: i, pathPrefix: a, bucketName: r, minioTokenApi: o, autoContentType: g } = t, s = async () => {
53
- const [v, d] = await pt({ baseUrl: e, minioTokenApi: o })().run();
54
- return v ? { stauts: !1 } : { status: !0, data: d };
55
- }, { generateUniqueName: f } = dt();
56
- return { upload: async (v, d = {}) => {
57
- const C = await s();
58
- if (!C.status) return;
59
- const h = v.name, m = C.data, E = a || wt(), k = h.substring(h.lastIndexOf(".")).toLowerCase(), S = t.randomName ? `${f("")}${k}` : h, K = i ? `${E}/${i}/${S}` : `${E}/${S}`, T = {
60
- accessKeyId: m.accessKeyId,
61
- secretAccessKey: m.secretAccessKey,
62
- sessionToken: m.sessionToken,
63
- file: v,
64
- bucketName: r || "business",
65
- filePath: K,
51
+ }, Ye = (t) => {
52
+ const { baseUrl: a, serviceName: s, pathPrefix: o, bucketName: m, minioTokenApi: f, autoContentType: v } = t, l = async () => {
53
+ const [w, u] = await ze({ baseUrl: a, minioTokenApi: f })().run();
54
+ return w ? { stauts: !1 } : { status: !0, data: u };
55
+ }, { generateUniqueName: R } = Le();
56
+ return { upload: async (w, u = {}) => {
57
+ const E = await l();
58
+ if (!E.status) return;
59
+ const U = w.name, k = E.data, F = o || qe(), V = U.substring(U.lastIndexOf(".")).toLowerCase(), L = t.randomName ? `${R("")}${V}` : U, M = s ? `${F}/${s}/${L}` : `${F}/${L}`, K = {
60
+ accessKeyId: k.accessKeyId,
61
+ secretAccessKey: k.secretAccessKey,
62
+ sessionToken: k.sessionToken,
63
+ file: w,
64
+ bucketName: m || "business",
65
+ filePath: M,
66
66
  isThumbnail: !0,
67
- autoContentType: g === !0 ? !0 : void 0,
68
- ...d
69
- }, [M, L] = await ht(e)(T).run();
70
- return M ? "error" : L.value;
67
+ autoContentType: v === !0 ? !0 : void 0,
68
+ ...u
69
+ }, [j, z] = await He(a)(K).run();
70
+ return j ? "error" : z.value;
71
71
  } };
72
- }, yt = () => ({ size2B: (e) => {
73
- isNaN(Number(e)) ? e = e.toString() : e = e + "M";
74
- const i = Number(e.slice(0, -1)), a = e[e.length - 1].toUpperCase(), r = 1024, o = {
75
- M: r * r,
76
- K: r,
72
+ }, Ze = () => ({ size2B: (a) => {
73
+ isNaN(Number(a)) ? a = a.toString() : a = a + "M";
74
+ const s = Number(a.slice(0, -1)), o = a[a.length - 1].toUpperCase(), m = 1024, f = {
75
+ M: m * m,
76
+ K: m,
77
77
  B: 1
78
78
  };
79
- return { finalSize: i * o[a], sizeText: e };
80
- } }), Ct = (t) => ({ handlerImageSrc: (i, a) => {
81
- if (a.startsWith("http")) return a;
82
- const r = t.useOriginUrl ? a : Re(a);
83
- return i + r;
84
- } }), Et = async (t) => {
85
- const i = De().baseURL + Re(t);
86
- return await _e(i);
87
- }, bt = async (t) => {
88
- const e = De();
89
- let i = [];
90
- for (const a of t) {
91
- const r = e.baseURL + Re(a), o = await _e(r);
92
- i.push(o);
79
+ return { finalSize: s * f[o], sizeText: a };
80
+ } }), Ge = (t) => ({ handlerImageSrc: (s, o) => {
81
+ if (o.startsWith("http")) return o;
82
+ const m = t.useOriginUrl ? o : le(o);
83
+ return s + m;
84
+ } }), Xe = async (t) => {
85
+ const s = re().baseURL + le(t);
86
+ return await ye(s);
87
+ }, We = async (t) => {
88
+ const a = re();
89
+ let s = [];
90
+ for (const o of t) {
91
+ const m = a.baseURL + le(o), f = await ye(m);
92
+ s.push(f);
93
93
  }
94
- return i;
95
- };
96
- /*!
97
- * Compressor.js v1.2.1
98
- * https://fengyuanchen.github.io/compressorjs
99
- *
100
- * Copyright 2018-present Chen Fengyuan
101
- * Released under the MIT license
102
- *
103
- * Date: 2023-02-28T14:09:41.732Z
104
- */
105
- function We(t, e) {
106
- var i = Object.keys(t);
107
- if (Object.getOwnPropertySymbols) {
108
- var a = Object.getOwnPropertySymbols(t);
109
- e && (a = a.filter(function(r) {
110
- return Object.getOwnPropertyDescriptor(t, r).enumerable;
111
- })), i.push.apply(i, a);
112
- }
113
- return i;
114
- }
115
- function he(t) {
116
- for (var e = 1; e < arguments.length; e++) {
117
- var i = arguments[e] != null ? arguments[e] : {};
118
- e % 2 ? We(Object(i), !0).forEach(function(a) {
119
- kt(t, a, i[a]);
120
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : We(Object(i)).forEach(function(a) {
121
- Object.defineProperty(t, a, Object.getOwnPropertyDescriptor(i, a));
122
- });
123
- }
124
- return t;
125
- }
126
- function Bt(t, e) {
127
- if (!(t instanceof e))
128
- throw new TypeError("Cannot call a class as a function");
129
- }
130
- function Ye(t, e) {
131
- for (var i = 0; i < e.length; i++) {
132
- var a = e[i];
133
- a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(t, tt(a.key), a);
134
- }
135
- }
136
- function It(t, e, i) {
137
- return e && Ye(t.prototype, e), i && Ye(t, i), Object.defineProperty(t, "prototype", {
138
- writable: !1
139
- }), t;
140
- }
141
- function kt(t, e, i) {
142
- return e = tt(e), e in t ? Object.defineProperty(t, e, {
143
- value: i,
144
- enumerable: !0,
145
- configurable: !0,
146
- writable: !0
147
- }) : t[e] = i, t;
148
- }
149
- function Ae() {
150
- return Ae = Object.assign ? Object.assign.bind() : function(t) {
151
- for (var e = 1; e < arguments.length; e++) {
152
- var i = arguments[e];
153
- for (var a in i)
154
- Object.prototype.hasOwnProperty.call(i, a) && (t[a] = i[a]);
155
- }
156
- return t;
157
- }, Ae.apply(this, arguments);
158
- }
159
- function Dt(t, e) {
160
- if (typeof t != "object" || t === null) return t;
161
- var i = t[Symbol.toPrimitive];
162
- if (i !== void 0) {
163
- var a = i.call(t, e);
164
- if (typeof a != "object") return a;
165
- throw new TypeError("@@toPrimitive must return a primitive value.");
166
- }
167
- return String(t);
168
- }
169
- function tt(t) {
170
- var e = Dt(t, "string");
171
- return typeof e == "symbol" ? e : String(e);
172
- }
173
- var at = { exports: {} };
174
- (function(t) {
175
- typeof window > "u" || function(e) {
176
- var i = e.HTMLCanvasElement && e.HTMLCanvasElement.prototype, a = e.Blob && function() {
177
- try {
178
- return !!new Blob();
179
- } catch {
180
- return !1;
181
- }
182
- }(), r = a && e.Uint8Array && function() {
183
- try {
184
- return new Blob([new Uint8Array(100)]).size === 100;
185
- } catch {
186
- return !1;
187
- }
188
- }(), o = e.BlobBuilder || e.WebKitBlobBuilder || e.MozBlobBuilder || e.MSBlobBuilder, g = /^data:((.*?)(;charset=.*?)?)(;base64)?,/, s = (a || o) && e.atob && e.ArrayBuffer && e.Uint8Array && function(f) {
189
- var c, v, d, C, h, m, E, k, S;
190
- if (c = f.match(g), !c)
191
- throw new Error("invalid data URI");
192
- for (v = c[2] ? c[1] : "text/plain" + (c[3] || ";charset=US-ASCII"), d = !!c[4], C = f.slice(c[0].length), d ? h = atob(C) : h = decodeURIComponent(C), m = new ArrayBuffer(h.length), E = new Uint8Array(m), k = 0; k < h.length; k += 1)
193
- E[k] = h.charCodeAt(k);
194
- return a ? new Blob([r ? E : m], {
195
- type: v
196
- }) : (S = new o(), S.append(m), S.getBlob(v));
197
- };
198
- e.HTMLCanvasElement && !i.toBlob && (i.mozGetAsFile ? i.toBlob = function(f, c, v) {
199
- var d = this;
200
- setTimeout(function() {
201
- v && i.toDataURL && s ? f(s(d.toDataURL(c, v))) : f(d.mozGetAsFile("blob", c));
202
- });
203
- } : i.toDataURL && s && (i.msToBlob ? i.toBlob = function(f, c, v) {
204
- var d = this;
205
- setTimeout(function() {
206
- (c && c !== "image/png" || v) && i.toDataURL && s ? f(s(d.toDataURL(c, v))) : f(d.msToBlob(c));
207
- });
208
- } : i.toBlob = function(f, c, v) {
209
- var d = this;
210
- setTimeout(function() {
211
- f(s(d.toDataURL(c, v)));
212
- });
213
- })), t.exports ? t.exports = s : e.dataURLtoBlob = s;
214
- }(window);
215
- })(at);
216
- var Ge = at.exports, Rt = function(e) {
217
- return typeof Blob > "u" ? !1 : e instanceof Blob || Object.prototype.toString.call(e) === "[object Blob]";
218
- }, Xe = {
219
- /**
220
- * Indicates if output the original image instead of the compressed one
221
- * when the size of the compressed image is greater than the original one's
222
- * @type {boolean}
223
- */
224
- strict: !0,
225
- /**
226
- * Indicates if read the image's Exif Orientation information,
227
- * and then rotate or flip the image automatically.
228
- * @type {boolean}
229
- */
230
- checkOrientation: !0,
231
- /**
232
- * Indicates if retain the image's Exif information after compressed.
233
- * @type {boolean}
234
- */
235
- retainExif: !1,
236
- /**
237
- * The max width of the output image.
238
- * @type {number}
239
- */
240
- maxWidth: 1 / 0,
241
- /**
242
- * The max height of the output image.
243
- * @type {number}
244
- */
245
- maxHeight: 1 / 0,
246
- /**
247
- * The min width of the output image.
248
- * @type {number}
249
- */
250
- minWidth: 0,
251
- /**
252
- * The min height of the output image.
253
- * @type {number}
254
- */
255
- minHeight: 0,
256
- /**
257
- * The width of the output image.
258
- * If not specified, the natural width of the source image will be used.
259
- * @type {number}
260
- */
261
- width: void 0,
262
- /**
263
- * The height of the output image.
264
- * If not specified, the natural height of the source image will be used.
265
- * @type {number}
266
- */
267
- height: void 0,
268
- /**
269
- * Sets how the size of the image should be resized to the container
270
- * specified by the `width` and `height` options.
271
- * @type {string}
272
- */
273
- resize: "none",
274
- /**
275
- * The quality of the output image.
276
- * It must be a number between `0` and `1`,
277
- * and only available for `image/jpeg` and `image/webp` images.
278
- * Check out {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob canvas.toBlob}.
279
- * @type {number}
280
- */
281
- quality: 0.8,
282
- /**
283
- * The mime type of the output image.
284
- * By default, the original mime type of the source image file will be used.
285
- * @type {string}
286
- */
287
- mimeType: "auto",
288
- /**
289
- * Files whose file type is included in this list,
290
- * and whose file size exceeds the `convertSize` value will be converted to JPEGs.
291
- * @type {string|Array}
292
- */
293
- convertTypes: ["image/png"],
294
- /**
295
- * PNG files over this size (5 MB by default) will be converted to JPEGs.
296
- * To disable this, just set the value to `Infinity`.
297
- * @type {number}
298
- */
299
- convertSize: 5e6,
300
- /**
301
- * The hook function to execute before draw the image into the canvas for compression.
302
- * @type {Function}
303
- * @param {CanvasRenderingContext2D} context - The 2d rendering context of the canvas.
304
- * @param {HTMLCanvasElement} canvas - The canvas for compression.
305
- * @example
306
- * function (context, canvas) {
307
- * context.fillStyle = '#fff';
308
- * }
309
- */
310
- beforeDraw: null,
311
- /**
312
- * The hook function to execute after drew the image into the canvas for compression.
313
- * @type {Function}
314
- * @param {CanvasRenderingContext2D} context - The 2d rendering context of the canvas.
315
- * @param {HTMLCanvasElement} canvas - The canvas for compression.
316
- * @example
317
- * function (context, canvas) {
318
- * context.filter = 'grayscale(100%)';
319
- * }
320
- */
321
- drew: null,
322
- /**
323
- * The hook function to execute when success to compress the image.
324
- * @type {Function}
325
- * @param {File} file - The compressed image File object.
326
- * @example
327
- * function (file) {
328
- * console.log(file);
329
- * }
330
- */
331
- success: null,
332
- /**
333
- * The hook function to execute when fail to compress the image.
334
- * @type {Function}
335
- * @param {Error} err - An Error object.
336
- * @example
337
- * function (err) {
338
- * console.log(err.message);
339
- * }
340
- */
341
- error: null
342
- }, St = typeof window < "u" && typeof window.document < "u", q = St ? window : {}, ye = function(e) {
343
- return e > 0 && e < 1 / 0;
344
- }, Ut = Array.prototype.slice;
345
- function Se(t) {
346
- return Array.from ? Array.from(t) : Ut.call(t);
347
- }
348
- var Ot = /^image\/.+$/;
349
- function ke(t) {
350
- return Ot.test(t);
351
- }
352
- function Qt(t) {
353
- var e = ke(t) ? t.substr(6) : "";
354
- return e === "jpeg" && (e = "jpg"), ".".concat(e);
355
- }
356
- var it = String.fromCharCode;
357
- function Pt(t, e, i) {
358
- var a = "", r;
359
- for (i += e, r = e; r < i; r += 1)
360
- a += it(t.getUint8(r));
361
- return a;
362
- }
363
- var Tt = q.btoa;
364
- function qe(t, e) {
365
- for (var i = [], a = 8192, r = new Uint8Array(t); r.length > 0; )
366
- i.push(it.apply(null, Se(r.subarray(0, a)))), r = r.subarray(a);
367
- return "data:".concat(e, ";base64,").concat(Tt(i.join("")));
368
- }
369
- function Mt(t) {
370
- var e = new DataView(t), i;
371
- try {
372
- var a, r, o;
373
- if (e.getUint8(0) === 255 && e.getUint8(1) === 216)
374
- for (var g = e.byteLength, s = 2; s + 1 < g; ) {
375
- if (e.getUint8(s) === 255 && e.getUint8(s + 1) === 225) {
376
- r = s;
377
- break;
378
- }
379
- s += 1;
380
- }
381
- if (r) {
382
- var f = r + 4, c = r + 10;
383
- if (Pt(e, f, 4) === "Exif") {
384
- var v = e.getUint16(c);
385
- if (a = v === 18761, (a || v === 19789) && e.getUint16(c + 2, a) === 42) {
386
- var d = e.getUint32(c + 4, a);
387
- d >= 8 && (o = c + d);
388
- }
389
- }
390
- }
391
- if (o) {
392
- var C = e.getUint16(o, a), h, m;
393
- for (m = 0; m < C; m += 1)
394
- if (h = o + m * 12 + 2, e.getUint16(h, a) === 274) {
395
- h += 8, i = e.getUint16(h, a), e.setUint16(h, 1, a);
396
- break;
397
- }
398
- }
399
- } catch {
400
- i = 1;
401
- }
402
- return i;
403
- }
404
- function Lt(t) {
405
- var e = 0, i = 1, a = 1;
406
- switch (t) {
407
- case 2:
408
- i = -1;
409
- break;
410
- case 3:
411
- e = -180;
412
- break;
413
- case 4:
414
- a = -1;
415
- break;
416
- case 5:
417
- e = 90, a = -1;
418
- break;
419
- case 6:
420
- e = 90;
421
- break;
422
- case 7:
423
- e = 90, i = -1;
424
- break;
425
- case 8:
426
- e = -90;
427
- break;
428
- }
429
- return {
430
- rotate: e,
431
- scaleX: i,
432
- scaleY: a
433
- };
434
- }
435
- var Ft = /\.\d*(?:0|9){12}\d*$/;
436
- function Ze(t) {
437
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1e11;
438
- return Ft.test(t) ? Math.round(t * e) / e : t;
439
- }
440
- function se(t) {
441
- var e = t.aspectRatio, i = t.height, a = t.width, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none", o = ye(a), g = ye(i);
442
- if (o && g) {
443
- var s = i * e;
444
- (r === "contain" || r === "none") && s > a || r === "cover" && s < a ? i = a / e : a = i * e;
445
- } else o ? i = a / e : g && (a = i * e);
446
- return {
447
- width: a,
448
- height: i
449
- };
450
- }
451
- function Nt(t) {
452
- for (var e = Se(new Uint8Array(t)), i = e.length, a = [], r = 0; r + 3 < i; ) {
453
- var o = e[r], g = e[r + 1];
454
- if (o === 255 && g === 218)
455
- break;
456
- if (o === 255 && g === 216)
457
- r += 2;
458
- else {
459
- var s = e[r + 2] * 256 + e[r + 3], f = r + s + 2, c = e.slice(r, f);
460
- a.push(c), r = f;
461
- }
462
- }
463
- return a.reduce(function(v, d) {
464
- return d[0] === 255 && d[1] === 225 ? v.concat(d) : v;
465
- }, []);
466
- }
467
- function Vt(t, e) {
468
- var i = Se(new Uint8Array(t));
469
- if (i[2] !== 255 || i[3] !== 224)
470
- return t;
471
- var a = i[4] * 256 + i[5], r = [255, 216].concat(e, i.slice(4 + a));
472
- return new Uint8Array(r);
473
- }
474
- var Jt = q.ArrayBuffer, Be = q.FileReader, te = q.URL || q.webkitURL, jt = /\.\w+$/, zt = q.Compressor, xt = /* @__PURE__ */ function() {
475
- function t(e, i) {
476
- Bt(this, t), this.file = e, this.exif = [], this.image = new Image(), this.options = he(he({}, Xe), i), this.aborted = !1, this.result = null, this.init();
477
- }
478
- return It(t, [{
479
- key: "init",
480
- value: function() {
481
- var i = this, a = this.file, r = this.options;
482
- if (!Rt(a)) {
483
- this.fail(new Error("The first argument must be a File or Blob object."));
484
- return;
485
- }
486
- var o = a.type;
487
- if (!ke(o)) {
488
- this.fail(new Error("The first argument must be an image File or Blob object."));
489
- return;
490
- }
491
- if (!te || !Be) {
492
- this.fail(new Error("The current browser does not support image compression."));
493
- return;
494
- }
495
- Jt || (r.checkOrientation = !1, r.retainExif = !1);
496
- var g = o === "image/jpeg", s = g && r.checkOrientation, f = g && r.retainExif;
497
- if (te && !s && !f)
498
- this.load({
499
- url: te.createObjectURL(a)
500
- });
501
- else {
502
- var c = new Be();
503
- this.reader = c, c.onload = function(v) {
504
- var d = v.target, C = d.result, h = {}, m = 1;
505
- s && (m = Mt(C), m > 1 && Ae(h, Lt(m))), f && (i.exif = Nt(C)), s || f ? !te || m > 1 ? h.url = qe(C, o) : h.url = te.createObjectURL(a) : h.url = C, i.load(h);
506
- }, c.onabort = function() {
507
- i.fail(new Error("Aborted to read the image with FileReader."));
508
- }, c.onerror = function() {
509
- i.fail(new Error("Failed to read the image with FileReader."));
510
- }, c.onloadend = function() {
511
- i.reader = null;
512
- }, s || f ? c.readAsArrayBuffer(a) : c.readAsDataURL(a);
513
- }
514
- }
515
- }, {
516
- key: "load",
517
- value: function(i) {
518
- var a = this, r = this.file, o = this.image;
519
- o.onload = function() {
520
- a.draw(he(he({}, i), {}, {
521
- naturalWidth: o.naturalWidth,
522
- naturalHeight: o.naturalHeight
523
- }));
524
- }, o.onabort = function() {
525
- a.fail(new Error("Aborted to load the image."));
526
- }, o.onerror = function() {
527
- a.fail(new Error("Failed to load the image."));
528
- }, q.navigator && /(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(q.navigator.userAgent) && (o.crossOrigin = "anonymous"), o.alt = r.name, o.src = i.url;
529
- }
530
- }, {
531
- key: "draw",
532
- value: function(i) {
533
- var a = this, r = i.naturalWidth, o = i.naturalHeight, g = i.rotate, s = g === void 0 ? 0 : g, f = i.scaleX, c = f === void 0 ? 1 : f, v = i.scaleY, d = v === void 0 ? 1 : v, C = this.file, h = this.image, m = this.options, E = document.createElement("canvas"), k = E.getContext("2d"), S = Math.abs(s) % 180 === 90, K = (m.resize === "contain" || m.resize === "cover") && ye(m.width) && ye(m.height), T = Math.max(m.maxWidth, 0) || 1 / 0, M = Math.max(m.maxHeight, 0) || 1 / 0, L = Math.max(m.minWidth, 0) || 0, H = Math.max(m.minHeight, 0) || 0, z = r / o, b = m.width, B = m.height;
534
- if (S) {
535
- var Z = [M, T];
536
- T = Z[0], M = Z[1];
537
- var $ = [H, L];
538
- L = $[0], H = $[1];
539
- var u = [B, b];
540
- b = u[0], B = u[1];
541
- }
542
- K && (z = b / B);
543
- var w = se({
544
- aspectRatio: z,
545
- width: T,
546
- height: M
547
- }, "contain");
548
- T = w.width, M = w.height;
549
- var I = se({
550
- aspectRatio: z,
551
- width: L,
552
- height: H
553
- }, "cover");
554
- if (L = I.width, H = I.height, K) {
555
- var A = se({
556
- aspectRatio: z,
557
- width: b,
558
- height: B
559
- }, m.resize);
560
- b = A.width, B = A.height;
561
- } else {
562
- var _ = se({
563
- aspectRatio: z,
564
- width: b,
565
- height: B
566
- }), W = _.width;
567
- b = W === void 0 ? r : W;
568
- var l = _.height;
569
- B = l === void 0 ? o : l;
570
- }
571
- b = Math.floor(Ze(Math.min(Math.max(b, L), T))), B = Math.floor(Ze(Math.min(Math.max(B, H), M)));
572
- var D = -b / 2, F = -B / 2, ee = b, N = B, R = [];
573
- if (K) {
574
- var Q = 0, P = 0, G = r, Y = o, le = se({
575
- aspectRatio: z,
576
- width: r,
577
- height: o
578
- }, {
579
- contain: "cover",
580
- cover: "contain"
581
- }[m.resize]);
582
- G = le.width, Y = le.height, Q = (r - G) / 2, P = (o - Y) / 2, R.push(Q, P, G, Y);
583
- }
584
- if (R.push(D, F, ee, N), S) {
585
- var ue = [B, b];
586
- b = ue[0], B = ue[1];
587
- }
588
- E.width = b, E.height = B, ke(m.mimeType) || (m.mimeType = C.type);
589
- var V = "transparent";
590
- C.size > m.convertSize && m.convertTypes.indexOf(m.mimeType) >= 0 && (m.mimeType = "image/jpeg");
591
- var ce = m.mimeType === "image/jpeg";
592
- if (ce && (V = "#fff"), k.fillStyle = V, k.fillRect(0, 0, b, B), m.beforeDraw && m.beforeDraw.call(this, k, E), !this.aborted && (k.save(), k.translate(b / 2, B / 2), k.rotate(s * Math.PI / 180), k.scale(c, d), k.drawImage.apply(k, [h].concat(R)), k.restore(), m.drew && m.drew.call(this, k, E), !this.aborted)) {
593
- var me = function(re) {
594
- if (!a.aborted) {
595
- var Ue = function(oe) {
596
- return a.done({
597
- naturalWidth: r,
598
- naturalHeight: o,
599
- result: oe
600
- });
601
- };
602
- if (re && ce && m.retainExif && a.exif && a.exif.length > 0) {
603
- var Oe = function(oe) {
604
- return Ue(Ge(qe(Vt(oe, a.exif), m.mimeType)));
605
- };
606
- if (re.arrayBuffer)
607
- re.arrayBuffer().then(Oe).catch(function() {
608
- a.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."));
609
- });
610
- else {
611
- var ae = new Be();
612
- a.reader = ae, ae.onload = function(Ce) {
613
- var oe = Ce.target;
614
- Oe(oe.result);
615
- }, ae.onabort = function() {
616
- a.fail(new Error("Aborted to read the compressed image with FileReader."));
617
- }, ae.onerror = function() {
618
- a.fail(new Error("Failed to read the compressed image with FileReader."));
619
- }, ae.onloadend = function() {
620
- a.reader = null;
621
- }, ae.readAsArrayBuffer(re);
622
- }
623
- } else
624
- Ue(re);
625
- }
626
- };
627
- E.toBlob ? E.toBlob(me, m.mimeType, m.quality) : me(Ge(E.toDataURL(m.mimeType, m.quality)));
628
- }
629
- }
630
- }, {
631
- key: "done",
632
- value: function(i) {
633
- var a = i.naturalWidth, r = i.naturalHeight, o = i.result, g = this.file, s = this.image, f = this.options;
634
- if (te && s.src.indexOf("blob:") === 0 && te.revokeObjectURL(s.src), o)
635
- if (f.strict && !f.retainExif && o.size > g.size && f.mimeType === g.type && !(f.width > a || f.height > r || f.minWidth > a || f.minHeight > r || f.maxWidth < a || f.maxHeight < r))
636
- o = g;
637
- else {
638
- var c = /* @__PURE__ */ new Date();
639
- o.lastModified = c.getTime(), o.lastModifiedDate = c, o.name = g.name, o.name && o.type !== g.type && (o.name = o.name.replace(jt, Qt(o.type)));
640
- }
641
- else
642
- o = g;
643
- this.result = o, f.success && f.success.call(this, o);
644
- }
645
- }, {
646
- key: "fail",
647
- value: function(i) {
648
- var a = this.options;
649
- if (a.error)
650
- a.error.call(this, i);
651
- else
652
- throw i;
653
- }
654
- }, {
655
- key: "abort",
656
- value: function() {
657
- this.aborted || (this.aborted = !0, this.reader ? this.reader.abort() : this.image.complete ? this.fail(new Error("The compression process has been aborted.")) : (this.image.onload = null, this.image.onabort()));
658
- }
659
- /**
660
- * Get the no conflict compressor class.
661
- * @returns {Compressor} The compressor class.
662
- */
663
- }], [{
664
- key: "noConflict",
665
- value: function() {
666
- return window.Compressor = zt, t;
667
- }
668
- /**
669
- * Change the default options.
670
- * @param {Object} options - The new default options.
671
- */
672
- }, {
673
- key: "setDefaults",
674
- value: function(i) {
675
- Ae(Xe, i);
676
- }
677
- }]), t;
678
- }();
679
- const Kt = (t, e) => new Promise((i, a) => {
680
- if (t.size <= e)
681
- return t;
682
- const r = e / t.size, o = Math.max(0.5, Math.min(0.9, 0.8 * r)), g = Math.max(800, Math.min(1920, 1920 * Math.sqrt(r)));
683
- $e(t, o, g, g, (s) => {
684
- s.size <= e ? i(s) : $e(
685
- s,
686
- Math.max(0.4, o - 0.2),
687
- // 降低质量
688
- Math.max(640, g * 0.8),
689
- // 缩小尺寸
690
- Math.max(640, g * 0.8),
691
- i,
692
- a,
693
- t
694
- // 传递原始文件用于错误处理
695
- );
696
- }, a, t);
697
- }), $e = (t, e, i, a, r, o, g) => {
698
- new xt(t, {
699
- quality: e,
700
- maxWidth: i,
701
- maxHeight: a,
702
- convertSize: 1 / 0,
703
- success(s) {
704
- try {
705
- const f = new File([s], t.name, {
706
- type: s.type || t.type,
707
- lastModified: Date.now()
708
- });
709
- r(f);
710
- } catch (f) {
711
- o({
712
- message: "文件转换失败",
713
- error: f,
714
- original: g || t
715
- });
716
- }
717
- },
718
- error(s) {
719
- o({
720
- message: "图片压缩失败",
721
- error: s,
722
- original: g || t
723
- });
724
- }
725
- });
726
- }, Ht = (t, e) => {
727
- const i = De(), a = be(t, "modelValue"), r = be(t, "status"), { upload: o } = At(t), { size2B: g } = yt(), { handlerImageSrc: s } = Ct(t), f = be(t, "isOverMaxLimitCompressImg"), c = Ee(""), v = Ee([]), d = [".mp4", ".avi", ".mkv", ".mov", ".wmv", ".flv", ".mpeg", ".webm"], C = [".mp3", ".wav", ".aac", ".flac", ".ogg", ".alff", ".wma", ".m4a"], h = x(() => t.baseUrl ? t.baseUrl : process.env.NODE_ENV === "production" ? "" : i.baseURL || ""), m = (l) => {
728
- if (l) {
729
- const D = l.substring(l.lastIndexOf(".")).toLowerCase();
730
- if (d.includes(D)) return "isVideo";
731
- if (C.includes(D)) return "isAudio";
94
+ return s;
95
+ }, xe = (t, a) => {
96
+ const s = re(), o = Ee(t, "modelValue"), m = Ee(t, "status"), { upload: f } = Ye(t), { size2B: v } = Ze(), { handlerImageSrc: l } = Ge(t), R = ne(""), C = ne([]), w = [".mp4", ".avi", ".mkv", ".mov", ".wmv", ".flv", ".mpeg", ".webm"], u = [".mp3", ".wav", ".aac", ".flac", ".ogg", ".alff", ".wma", ".m4a"], E = D(() => t.baseUrl ? t.baseUrl : process.env.NODE_ENV === "production" ? "" : s.baseURL || ""), U = (i) => {
97
+ if (i) {
98
+ const c = i.substring(i.lastIndexOf(".")).toLowerCase();
99
+ if (w.includes(c)) return "isVideo";
100
+ if (u.includes(c)) return "isAudio";
732
101
  }
733
102
  return "isImg";
734
- }, E = x(() => {
735
- var D;
736
- let l = t.accept ? (D = t.accept) == null ? void 0 : D.split(",") : [];
737
- return l.includes("image/jpg") && !l.includes("image/jpeg") && l.push("image/jpeg"), l.includes(".jpg") && !l.includes(".jpeg") && l.push(".jpeg"), t.acceptVideo && (l = [...l, ...d]), t.acceptAudio && (l = [...l, ...C]), l.join(",");
738
- }), k = x(() => r.value === "uploading"), S = Ee(0), K = (l) => k.value ? S.value === l : !1, T = x(() => a.value ? [s(h.value, a.value)] : []), M = x(() => a.value ? a.value.map((l) => [s(h.value, l)]) : []), L = x(() => t.status !== "info" && (t.needDeleteBtn || t.needChangeBtn) || t.needDownloadBtn), H = x(() => t.status !== "info" && t.needDeleteBtn || t.needDownloadBtn), z = x(() => {
739
- const l = [], D = t.previewBtnConfig;
740
- if (typeof D == "boolean")
741
- return D ? ["zoom_in", "zoom_out", "turn_left", "turn_right", "full_screen"] : [];
742
- for (const F in D)
743
- D[F] && l.push(F);
744
- return l;
745
- }), b = () => {
103
+ }, k = D(() => {
104
+ var c;
105
+ let i = t.accept ? (c = t.accept) == null ? void 0 : c.split(",") : [];
106
+ return i.includes("image/jpg") && !i.includes("image/jpeg") && i.push("image/jpeg"), i.includes(".jpg") && !i.includes(".jpeg") && i.push(".jpeg"), t.acceptVideo && (i = [...i, ...w]), t.acceptAudio && (i = [...i, ...u]), i.join(",");
107
+ }), F = D(() => m.value === "uploading"), V = ne(0), L = (i) => F.value ? V.value === i : !1, M = D(() => o.value ? [l(E.value, o.value)] : []), K = D(() => o.value ? o.value.map((i) => [l(E.value, i)]) : []), j = D(() => t.status !== "info" && (t.needDeleteBtn || t.needChangeBtn) || t.needDownloadBtn), z = D(() => t.status !== "info" && t.needDeleteBtn || t.needDownloadBtn), Y = D(() => {
108
+ const i = [], c = t.previewBtnConfig;
109
+ if (typeof c == "boolean")
110
+ return c ? ["zoom_in", "zoom_out", "turn_left", "turn_right", "full_screen"] : [];
111
+ for (const S in c)
112
+ c[S] && i.push(S);
113
+ return i;
114
+ }), ae = () => {
746
115
  setTimeout(() => {
747
- const l = document.querySelector(".el-image-viewer__wrapper");
748
- l == null || l.classList.add("das-image-viewer-preview-btn-groups"), l == null || l.classList.add(...z.value);
116
+ const i = document.querySelector(".el-image-viewer__wrapper");
117
+ i == null || i.classList.add("das-image-viewer-preview-btn-groups"), i == null || i.classList.add(...Y.value);
749
118
  }, 0);
750
- }, B = (l) => {
751
- e("clickChangeIcon", l);
752
- }, Z = (l, D) => {
753
- t.limitNum === 1 ? (a.value = "", e("update:modelValue", ""), e("deleteImage", l)) : (a.value.splice(D, 1), e("update:modelValue", a.value), e("deleteImage", l));
754
- }, $ = (l, D = 0) => {
755
- var ee;
756
- e("downloadImage", l);
757
- let F = "";
758
- t.limitNum === 1 ? F = t.imageName || c.value : F = ((ee = t.imageName) == null ? void 0 : ee[D]) || v.value[D], m(l) === "isImg" ? gt(s(h.value, l), F) : vt(s(h.value, l), F);
759
- }, u = [
760
- "image/jpeg",
761
- "image/png",
762
- "image/webp",
763
- "image/gif",
764
- "image/bmp",
765
- "image/tiff",
766
- "image/svg+xml"
767
- ], w = async (l, D) => {
768
- var ee;
119
+ }, O = (i) => {
120
+ a("clickChangeIcon", i);
121
+ }, J = (i, c) => {
122
+ t.limitNum === 1 ? (o.value = "", a("update:modelValue", ""), a("deleteImage", i)) : (o.value.splice(c, 1), a("update:modelValue", o.value), a("deleteImage", i));
123
+ }, X = (i, c = 0) => {
124
+ var Z;
125
+ a("downloadImage", i);
126
+ let S = "";
127
+ t.limitNum === 1 ? S = t.imageName || R.value : S = ((Z = t.imageName) == null ? void 0 : Z[c]) || C.value[c], U(i) === "isImg" ? Ke(l(E.value, i), S) : je(l(E.value, i), S);
128
+ }, W = async (i, c) => {
129
+ var Z;
769
130
  if (t.maxSize) {
770
- const { finalSize: N, sizeText: R } = g(t.maxSize);
771
- if (l.size > N && !f.value) {
772
- const Q = Ke.value === "zh-CN" ? "、" : ", ", P = He(
131
+ const { finalSize: b, sizeText: y } = v(t.maxSize);
132
+ if (i.size > b) {
133
+ const G = Ie.value === "zh-CN" ? "、" : ", ", T = ke(
773
134
  "das-ui-import-upload-key3",
774
- R,
775
- ((ee = E.value) == null ? void 0 : ee.toUpperCase().replaceAll(".", "").replaceAll(",", Q)) ?? ""
776
- ).value, G = t.errorMessage || P;
777
- return xe.warning(G), !1;
135
+ y,
136
+ ((Z = k.value) == null ? void 0 : Z.toUpperCase().replaceAll(".", "").replaceAll(",", G)) ?? ""
137
+ ).value, oe = t.errorMessage || T;
138
+ return he.warning(oe), !1;
778
139
  }
779
140
  }
780
- const F = async (N) => {
781
- let R = l;
782
- if (t.maxSize) {
783
- const { finalSize: P, sizeText: G } = g(t.maxSize);
784
- if (l.size > P && f.value && u.includes(l.type))
785
- try {
786
- R = await Kt(l, P);
787
- } catch (Y) {
788
- R = (Y == null ? void 0 : Y.original) || l;
789
- }
790
- }
791
- S.value = N, e("update:status", "uploading"), e("image-upload", R);
792
- const Q = await o(R);
793
- return Q === "error" ? (e("update:status", "error"), !1) : (e("upload-success", R, Q), t.limitNum === 1 ? a.value = Q : a.value[N] = Q, e("update:modelValue", a.value), e("update:status", "normal"), !1);
141
+ const S = async (b) => {
142
+ V.value = b, a("update:status", "uploading"), a("image-upload", i);
143
+ const y = await f(i);
144
+ return y === "error" ? (a("update:status", "error"), !1) : (a("upload-success", i, y), t.limitNum === 1 ? o.value = y : o.value[b] = y, a("update:modelValue", o.value), a("update:status", "normal"), !1);
794
145
  };
795
146
  if (t.customCheck) {
796
- const N = t.customCheck(l);
797
- if (N instanceof Promise)
798
- return new Promise(async (R, Q) => {
799
- let P;
147
+ const b = t.customCheck(i);
148
+ if (b instanceof Promise)
149
+ return new Promise(async (y, G) => {
150
+ let T;
800
151
  try {
801
- P = await N.then();
152
+ T = await b.then();
802
153
  } catch {
803
- P = !1;
154
+ T = !1;
804
155
  }
805
- P ? F(D) : Q(!1);
156
+ T ? S(c) : G(!1);
806
157
  });
807
- if (!N) return !1;
808
- } else if (E.value) {
809
- const N = E.value.split(",").filter((V) => V.trim().startsWith(".")).map((V) => V.trim()), R = E.value.split(",").filter((V) => !V.trim().startsWith(".")).map((V) => V.trim()), Q = mt(l.name), P = N.includes(Q);
810
- let G = R.includes("image/*") && l.type.split("/")[0].trim() === "image", Y = R.includes("video/*") && l.type.split("/")[0].trim() === "video", le = R.includes("audio/*") && l.type.split("/")[0].trim() === "audio", ue = R.includes(l.type) || G || Y || le;
811
- if (!P && !ue) {
812
- const V = t.acceptAudio || t.acceptVideo ? "das-ui-import-upload-key2" : "das-ui-import-upload-key1", ce = Ke.value === "zh-CN" ? "、" : ", ", me = t.errorMessage || He(V, E.value.toUpperCase().replaceAll(".", "").replaceAll(",", ce)).value;
813
- return xe.warning(me), !1;
158
+ if (!b) return !1;
159
+ } else if (k.value) {
160
+ const b = k.value.split(",").filter((P) => P.trim().startsWith(".")).map((P) => P.trim()), y = k.value.split(",").filter((P) => !P.trim().startsWith(".")).map((P) => P.trim()), G = Te(i.name), T = b.includes(G);
161
+ let oe = y.includes("image/*") && i.type.split("/")[0].trim() === "image", Se = y.includes("video/*") && i.type.split("/")[0].trim() === "video", De = y.includes("audio/*") && i.type.split("/")[0].trim() === "audio", Re = y.includes(i.type) || oe || Se || De;
162
+ if (!T && !Re) {
163
+ const P = t.acceptAudio || t.acceptVideo ? "das-ui-import-upload-key2" : "das-ui-import-upload-key1", Ue = Ie.value === "zh-CN" ? "、" : ", ", be = t.errorMessage || ke(P, k.value.toUpperCase().replaceAll(".", "").replaceAll(",", Ue)).value;
164
+ return he.warning(be), !1;
814
165
  }
815
166
  }
816
- return F(D);
817
- }, I = async (l) => {
818
- t.limitNum !== 1 && (S.value = a.length), e("update:status", "uploading"), e("image-upload", l);
819
- const D = await o(l);
820
- e("upload-success", l, D), t.limitNum === 1 ? A(D) : _(D);
821
- }, A = (l) => {
822
- if (l === "error") {
823
- e("update:status", "error");
167
+ return S(c);
168
+ }, n = async (i) => {
169
+ t.limitNum !== 1 && (V.value = o.length), a("update:status", "uploading"), a("image-upload", i);
170
+ const c = await f(i);
171
+ a("upload-success", i, c), t.limitNum === 1 ? g(c) : A(c);
172
+ }, g = (i) => {
173
+ if (i === "error") {
174
+ a("update:status", "error");
824
175
  return;
825
176
  }
826
- a.value = l, e("update:modelValue", a.value), e("update:status", "normal");
827
- }, _ = (l) => {
828
- if (l === "error") {
829
- e("update:status", "error");
177
+ o.value = i, a("update:modelValue", o.value), a("update:status", "normal");
178
+ }, A = (i) => {
179
+ if (i === "error") {
180
+ a("update:status", "error");
830
181
  return;
831
182
  }
832
- a.value.push(l), e("update:modelValue", a.value), e("update:status", "normal");
183
+ o.value.push(i), a("update:modelValue", o.value), a("update:status", "normal");
833
184
  };
834
- return st(a, async () => {
835
- const l = t.limitNum ?? 1;
836
- l === 1 && a.value ? c.value = await Et(a.value) : l > 1 && a.value.length > 0 && (v.value = await bt(a.value));
185
+ return Je(o, async () => {
186
+ const i = t.limitNum ?? 1;
187
+ i === 1 && o.value ? R.value = await Xe(o.value) : i > 1 && o.value.length > 0 && (C.value = await We(o.value));
837
188
  }, {
838
189
  deep: !0,
839
190
  immediate: !0
840
191
  }), {
841
- url: a,
842
- singlePreviewList: T,
843
- multiPreviewList: M,
844
- isAccept: E,
845
- loading: k,
846
- uploadStatus: r,
847
- previewBtns: z,
848
- operateShow: L,
849
- operateShow_Multi: H,
850
- singlePreviewName: c,
851
- multiPreviewName: v,
852
- getFileType: m,
853
- changeImg: B,
854
- delImg: Z,
855
- beforeupload: w,
856
- uploadImg: I,
857
- onDownload: $,
858
- handleImageClick: b,
859
- isLoadingMulti: K
192
+ url: o,
193
+ singlePreviewList: M,
194
+ multiPreviewList: K,
195
+ isAccept: k,
196
+ loading: F,
197
+ uploadStatus: m,
198
+ previewBtns: Y,
199
+ operateShow: j,
200
+ operateShow_Multi: z,
201
+ singlePreviewName: R,
202
+ multiPreviewName: C,
203
+ getFileType: U,
204
+ changeImg: O,
205
+ delImg: J,
206
+ beforeupload: W,
207
+ uploadImg: n,
208
+ onDownload: X,
209
+ handleImageClick: ae,
210
+ isLoadingMulti: L
860
211
  };
861
- }, Wt = (t, e) => {
862
- var o;
863
- const { __IN_DAS_MICRO_APP: i, __DAS_MAIN_APP_HREF: a } = window;
864
- if (!i || !a) return;
865
- const { origin: r } = new URL(a);
866
- (o = window.top) == null || o.postMessage({ type: t, data: e }, r);
867
- }, nt = "proxy-image-viewer", we = {
868
- sendMessageToMainApp: Wt,
212
+ }, $e = (t, a) => {
213
+ var f;
214
+ const { __IN_DAS_MICRO_APP: s, __DAS_MAIN_APP_HREF: o } = window;
215
+ if (!s || !o) return;
216
+ const { origin: m } = new URL(o);
217
+ (f = window.top) == null || f.postMessage({ type: t, data: a }, m);
218
+ }, Qe = "proxy-image-viewer", ie = {
219
+ sendMessageToMainApp: $e,
869
220
  // @ts-ignore
870
221
  isMicroApp: () => window.__IN_DAS_MICRO_APP && window.top !== window.self,
871
222
  addEventFromMicroApp: () => {
872
223
  window.addEventListener("message", (t) => {
873
- const { type: e, data: i } = t.data;
874
- if (e !== nt) return;
875
- const a = document.createElement("div");
876
- a.classList.add("das-image-viewer-preview-btn-groups");
877
- const { previewList: r, previewBtns: o } = i, g = lt(ct, {
878
- urlList: r,
224
+ const { type: a, data: s } = t.data;
225
+ if (a !== Qe) return;
226
+ const o = document.createElement("div");
227
+ o.classList.add("das-image-viewer-preview-btn-groups");
228
+ const { previewList: m, previewBtns: f } = s, v = Ne(Ve, {
229
+ urlList: m,
879
230
  onClose: () => {
880
- g.unmount(), document.body.removeChild(a);
231
+ v.unmount(), document.body.removeChild(o);
881
232
  }
882
233
  });
883
- document.body.appendChild(a), g.mount(a), setTimeout(() => {
884
- const s = document.querySelector(".el-image-viewer__wrapper");
885
- s == null || s.classList.add("das-image-viewer-preview-btn-groups"), s == null || s.classList.add(...o);
234
+ document.body.appendChild(o), v.mount(o), setTimeout(() => {
235
+ const l = document.querySelector(".el-image-viewer__wrapper");
236
+ l == null || l.classList.add("das-image-viewer-preview-btn-groups"), l == null || l.classList.add(...f);
886
237
  }, 0);
887
238
  });
888
239
  }
889
240
  };
890
- we.addEventFromMicroApp();
891
- const Yt = (t) => {
892
- const { handleImageClickProxy: e, previewBtns: i } = t;
893
- return { needPreviewImage: x(() => !t.needPreview || we.isMicroApp() ? !1 : t.needPreview), handleImageClick: (o) => {
241
+ ie.addEventFromMicroApp();
242
+ const _e = (t) => {
243
+ const { handleImageClickProxy: a, previewBtns: s } = t;
244
+ return { needPreviewImage: D(() => !t.needPreview || ie.isMicroApp() ? !1 : t.needPreview), handleImageClick: (f) => {
894
245
  if (!t.needPreview) return;
895
- if (!we.isMicroApp()) {
896
- e();
246
+ if (!ie.isMicroApp()) {
247
+ a();
897
248
  return;
898
249
  }
899
- let g = [];
900
- Array.isArray(o) && g.push(...o), typeof o == "string" && g.push(o), we.sendMessageToMainApp(nt, {
901
- previewList: g,
902
- previewBtns: i.value
250
+ let v = [];
251
+ Array.isArray(f) && v.push(...f), typeof f == "string" && v.push(f), ie.sendMessageToMainApp(Qe, {
252
+ previewList: v,
253
+ previewBtns: s.value
903
254
  });
904
255
  } };
905
- }, Gt = {
256
+ }, et = {
906
257
  key: 0,
907
258
  class: "das-ui-image-viewer-container"
908
- }, Xt = {
259
+ }, tt = {
909
260
  class: "no-data-img",
910
- src: Ie,
261
+ src: se,
911
262
  alt: ""
912
- }, qt = { class: "image-name" }, Zt = { class: "das-ui-image-viewer-groups" }, $t = { class: "image-name" }, _t = { class: "das-ui-image-viewer-container" }, ea = {
263
+ }, it = { class: "image-name" }, at = { class: "das-ui-image-viewer-groups" }, ot = { class: "image-name" }, nt = { class: "das-ui-image-viewer-container" }, st = {
913
264
  key: 1,
914
265
  class: "das-ui-image-viewer-container"
915
- }, ta = { class: "das-ui-image-viewer" }, aa = {
266
+ }, rt = { class: "das-ui-image-viewer" }, lt = {
916
267
  key: 2,
917
268
  class: "das-ui-image-viewer"
918
- }, ia = /* @__PURE__ */ ut({
269
+ }, ut = /* @__PURE__ */ Fe({
919
270
  __name: "Index",
920
271
  props: {
921
272
  style: { default: "" },
@@ -948,137 +299,136 @@ const Yt = (t) => {
948
299
  videoHeight: {},
949
300
  randomName: { type: Boolean, default: !1 },
950
301
  useOriginUrl: { type: Boolean, default: !1 },
951
- openFileDialogOnClick: { type: Boolean, default: !0 },
952
- isOverMaxLimitCompressImg: { type: Boolean, default: !1 }
302
+ openFileDialogOnClick: { type: Boolean, default: !0 }
953
303
  },
954
304
  emits: ["update:modelValue", "update:status", "downloadImage", "image-upload", "upload-success", "clickChangeIcon", "deleteImage"],
955
- setup(t, { emit: e }) {
956
- const i = t, a = e, r = x(() => {
957
- const w = [
958
- i.needDownloadBtn,
959
- i.limitNum === 1 && d.value !== "info" && i.needChangeBtn,
960
- d.value !== "info" && i.needDeleteBtn
961
- ].filter((A) => A).length;
962
- let I = "center";
963
- return w === 2 && (I = "space-around"), w === 3 && (I = "space-between"), {
964
- "justify-content": I
305
+ setup(t, { emit: a }) {
306
+ const s = t, o = a, m = D(() => {
307
+ const g = [
308
+ s.needDownloadBtn,
309
+ s.limitNum === 1 && u.value !== "info" && s.needChangeBtn,
310
+ u.value !== "info" && s.needDeleteBtn
311
+ ].filter((p) => p).length;
312
+ let A = "center";
313
+ return g === 2 && (A = "space-around"), g === 3 && (A = "space-between"), {
314
+ "justify-content": A
965
315
  };
966
- }), o = x(() => i.mode === "view" ? !1 : s.value ? d.value === "error" : d.value !== "info"), g = (u) => {
967
- u.stopPropagation();
316
+ }), f = D(() => s.mode === "view" ? !1 : l.value ? u.value === "error" : u.value !== "info"), v = (n) => {
317
+ n.stopPropagation();
968
318
  }, {
969
- url: s,
970
- isAccept: f,
971
- singlePreviewList: c,
972
- multiPreviewList: v,
973
- uploadStatus: d,
974
- loading: C,
975
- previewBtns: h,
976
- operateShow: m,
977
- operateShow_Multi: E,
978
- singlePreviewName: k,
979
- multiPreviewName: S,
980
- changeImg: K,
981
- delImg: T,
982
- beforeupload: M,
983
- uploadImg: L,
984
- onDownload: H,
985
- handleImageClick: z,
986
- getFileType: b,
987
- isLoadingMulti: B
988
- } = Ht(i, a), { needPreviewImage: Z, handleImageClick: $ } = Yt({
989
- needPreview: i.needPreview,
990
- handleImageClickProxy: z,
991
- previewBtns: h
319
+ url: l,
320
+ isAccept: R,
321
+ singlePreviewList: C,
322
+ multiPreviewList: w,
323
+ uploadStatus: u,
324
+ loading: E,
325
+ previewBtns: U,
326
+ operateShow: k,
327
+ operateShow_Multi: F,
328
+ singlePreviewName: V,
329
+ multiPreviewName: L,
330
+ changeImg: M,
331
+ delImg: K,
332
+ beforeupload: j,
333
+ uploadImg: z,
334
+ onDownload: Y,
335
+ handleImageClick: ae,
336
+ getFileType: O,
337
+ isLoadingMulti: J
338
+ } = xe(s, o), { needPreviewImage: X, handleImageClick: W } = _e({
339
+ needPreview: s.needPreview,
340
+ handleImageClickProxy: ae,
341
+ previewBtns: U
992
342
  });
993
- return (u, w) => (y(), U(
994
- de,
343
+ return (n, g) => (d(), h(
344
+ x,
995
345
  null,
996
346
  [
997
- p(" 单文件 "),
998
- u.limitNum === 1 ? (y(), U("div", Gt, [
999
- X(
347
+ r(" 单文件 "),
348
+ n.limitNum === 1 ? (d(), h("div", et, [
349
+ N(
1000
350
  "div",
1001
351
  {
1002
352
  class: "das-ui-image-viewer",
1003
- style: fe(u.style)
353
+ style: $(n.style)
1004
354
  },
1005
355
  [
1006
- p(" 状态不为 error 时显示 "),
1007
- J(ie(n(Je), {
1008
- class: ge([{ "loading-border": n(C) }]),
356
+ r(" 状态不为 error 时显示 "),
357
+ B(H(e(ve), {
358
+ class: _([{ "loading-border": e(E) }]),
1009
359
  type: "component",
1010
- spinning: n(C)
360
+ spinning: e(E)
1011
361
  }, {
1012
- default: ne(() => [
1013
- p(" 图片 "),
1014
- n(b)(n(c)[0]) === "isImg" ? J((y(), O(n(Le), {
362
+ default: q(() => [
363
+ r(" 图片 "),
364
+ e(O)(e(C)[0]) === "isImg" ? B((d(), I(e(ge), {
1015
365
  key: 0,
1016
- class: ge(["image-context", [n(h)]]),
366
+ class: _(["image-context", [e(U)]]),
1017
367
  "preview-teleported": !0,
1018
- src: n(c)[0],
1019
- "preview-src-list": n(Z) ? n(c) : void 0,
368
+ src: e(C)[0],
369
+ "preview-src-list": e(X) ? e(C) : void 0,
1020
370
  "initial-index": 0,
1021
- fit: u.imageFit,
1022
- onClick: w[0] || (w[0] = (I) => n($)(n(c)))
371
+ fit: n.imageFit,
372
+ onClick: g[0] || (g[0] = (A) => e(W)(e(C)))
1023
373
  }, null, 8, ["class", "src", "preview-src-list", "fit"])), [
1024
- [j, !n(C)]
1025
- ]) : p("v-if", !0),
1026
- p(" 视频 "),
1027
- n(b)(n(c)[0]) === "isVideo" ? J((y(), O(n(ve), {
374
+ [Q, !e(E)]
375
+ ]) : r("v-if", !0),
376
+ r(" 视频 "),
377
+ e(O)(e(C)[0]) === "isVideo" ? B((d(), I(e(ee), {
1028
378
  key: 1,
1029
- mode: n(d) === "info" || u.mode === "view" ? "view" : "normal",
1030
- src: n(c)[0],
1031
- needPreview: u.needPreview,
379
+ mode: e(u) === "info" || n.mode === "view" ? "view" : "normal",
380
+ src: e(C)[0],
381
+ needPreview: n.needPreview,
1032
382
  width: "100%",
1033
383
  height: "100%",
1034
- "player-props": { videoWidth: u.videoWidth, videoHeight: u.videoHeight },
384
+ "player-props": { videoWidth: n.videoWidth, videoHeight: n.videoHeight },
1035
385
  fullPath: ""
1036
386
  }, null, 8, ["mode", "src", "needPreview", "player-props"])), [
1037
- [j, !n(C)]
1038
- ]) : p("v-if", !0),
1039
- p(" 音频 "),
1040
- n(b)(n(c)[0]) === "isAudio" ? J((y(), O(n(ve), {
387
+ [Q, !e(E)]
388
+ ]) : r("v-if", !0),
389
+ r(" 音频 "),
390
+ e(O)(e(C)[0]) === "isAudio" ? B((d(), I(e(ee), {
1041
391
  key: 2,
1042
- mode: n(d) === "info" || u.mode === "view" ? "view" : "normal",
1043
- src: n(c)[0],
1044
- needPreview: u.needPreview,
392
+ mode: e(u) === "info" || n.mode === "view" ? "view" : "normal",
393
+ src: e(C)[0],
394
+ needPreview: n.needPreview,
1045
395
  width: "100%",
1046
396
  height: "100%",
1047
397
  type: "audio",
1048
398
  fullPath: ""
1049
399
  }, null, 8, ["mode", "src", "needPreview"])), [
1050
- [j, !n(C)]
1051
- ]) : p("v-if", !0),
1052
- !n(C) && n(m) ? (y(), U(
400
+ [Q, !e(E)]
401
+ ]) : r("v-if", !0),
402
+ !e(E) && e(k) ? (d(), h(
1053
403
  "div",
1054
404
  {
1055
405
  key: 3,
1056
406
  class: "operate-container",
1057
- style: fe(r.value),
1058
- onClick: g
407
+ style: $(m.value),
408
+ onClick: v
1059
409
  },
1060
410
  [
1061
- u.needDownloadBtn ? (y(), O(n(je), {
411
+ n.needDownloadBtn ? (d(), I(e(we), {
1062
412
  key: 0,
1063
413
  class: "operate-btn",
1064
414
  size: "medium",
1065
415
  "icon-color": "#fff",
1066
- onClick: w[1] || (w[1] = (I) => n(H)(n(s)))
1067
- })) : p("v-if", !0),
1068
- n(d) !== "info" && u.needChangeBtn ? (y(), U("div", {
416
+ onClick: g[1] || (g[1] = (A) => e(Y)(e(l)))
417
+ })) : r("v-if", !0),
418
+ e(u) !== "info" && n.needChangeBtn ? (d(), h("div", {
1069
419
  key: 1,
1070
420
  class: "change-icon-box",
1071
- onClick: w[2] || (w[2] = (I) => n(K)(n(s)))
421
+ onClick: g[2] || (g[2] = (A) => e(M)(e(l)))
1072
422
  }, [
1073
- u.openFileDialogOnClick ? (y(), O(n(Fe), {
423
+ n.openFileDialogOnClick ? (d(), I(e(pe), {
1074
424
  key: 0,
1075
- "before-upload": (I) => n(M)(I, 0),
1076
- accept: n(f),
1077
- openFileDialogOnClick: u.openFileDialogOnClick
425
+ "before-upload": (A) => e(j)(A, 0),
426
+ accept: e(R),
427
+ openFileDialogOnClick: n.openFileDialogOnClick
1078
428
  }, {
1079
- itemRender: ne(({ file: I, actions: A }) => w[7] || (w[7] = [])),
1080
- default: ne(() => [
1081
- ie(n(pe), {
429
+ itemRender: q(({ file: A, actions: p }) => g[7] || (g[7] = [])),
430
+ default: q(() => [
431
+ H(e(te), {
1082
432
  class: "operate-btn m-t-6",
1083
433
  "icon-color": "#fff",
1084
434
  size: "medium"
@@ -1086,169 +436,168 @@ const Yt = (t) => {
1086
436
  ]),
1087
437
  _: 1
1088
438
  /* STABLE */
1089
- }, 8, ["before-upload", "accept", "openFileDialogOnClick"])) : p("v-if", !0),
1090
- u.openFileDialogOnClick ? p("v-if", !0) : (y(), O(n(pe), {
439
+ }, 8, ["before-upload", "accept", "openFileDialogOnClick"])) : r("v-if", !0),
440
+ n.openFileDialogOnClick ? r("v-if", !0) : (d(), I(e(te), {
1091
441
  key: 1,
1092
442
  class: "operate-btn m-t-6",
1093
443
  "icon-color": "#fff",
1094
444
  size: "medium"
1095
445
  }))
1096
- ])) : p("v-if", !0),
1097
- n(d) !== "info" && u.needDeleteBtn ? (y(), O(n(ze), {
446
+ ])) : r("v-if", !0),
447
+ e(u) !== "info" && n.needDeleteBtn ? (d(), I(e(Ce), {
1098
448
  key: 2,
1099
449
  class: "operate-btn",
1100
450
  "icon-color": "#fff",
1101
451
  size: "medium",
1102
- onClick: w[3] || (w[3] = (I) => n(T)(n(s)))
1103
- })) : p("v-if", !0)
452
+ onClick: g[3] || (g[3] = (A) => e(K)(e(l)))
453
+ })) : r("v-if", !0)
1104
454
  ],
1105
455
  4
1106
456
  /* STYLE */
1107
- )) : p("v-if", !0)
457
+ )) : r("v-if", !0)
1108
458
  ]),
1109
459
  _: 1
1110
460
  /* STABLE */
1111
461
  }, 8, ["class", "spinning"]), [
1112
- [j, n(s) && u.status !== "error"]
462
+ [Q, e(l) && n.status !== "error"]
1113
463
  ]),
1114
- p(" 上传模式,当 url 为空或者 uploading 和 error 时显示 "),
1115
- J(ie(n(Ve), {
1116
- status: n(d),
1117
- "onUpdate:status": w[4] || (w[4] = (I) => Qe(d) ? d.value = I : null),
1118
- "max-size": u.maxSize,
1119
- accept: u.accept,
1120
- acceptVideo: u.acceptVideo,
1121
- message: u.message,
1122
- acceptAudio: u.acceptAudio,
1123
- autoContentType: u.autoContentType,
1124
- "custom-check": u.customCheck,
1125
- "error-message": u.errorMessage,
1126
- openFileDialogOnClick: u.openFileDialogOnClick,
1127
- onImageUpload: n(L),
1128
- isOverMaxLimitCompressImg: u.isOverMaxLimitCompressImg
1129
- }, null, 8, ["status", "max-size", "accept", "acceptVideo", "message", "acceptAudio", "autoContentType", "custom-check", "error-message", "openFileDialogOnClick", "onImageUpload", "isOverMaxLimitCompressImg"]), [
1130
- [j, o.value]
464
+ r(" 上传模式,当 url 为空或者 uploading 和 error 时显示 "),
465
+ B(H(e(Ae), {
466
+ status: e(u),
467
+ "onUpdate:status": g[4] || (g[4] = (A) => ue(u) ? u.value = A : null),
468
+ "max-size": n.maxSize,
469
+ accept: n.accept,
470
+ acceptVideo: n.acceptVideo,
471
+ message: n.message,
472
+ acceptAudio: n.acceptAudio,
473
+ autoContentType: n.autoContentType,
474
+ "custom-check": n.customCheck,
475
+ "error-message": n.errorMessage,
476
+ openFileDialogOnClick: n.openFileDialogOnClick,
477
+ onImageUpload: e(z)
478
+ }, null, 8, ["status", "max-size", "accept", "acceptVideo", "message", "acceptAudio", "autoContentType", "custom-check", "error-message", "openFileDialogOnClick", "onImageUpload"]), [
479
+ [Q, f.value]
1131
480
  ]),
1132
- p(" 查看模式 "),
1133
- J(X(
481
+ r(" 查看模式 "),
482
+ B(N(
1134
483
  "img",
1135
- Xt,
484
+ tt,
1136
485
  null,
1137
486
  512
1138
487
  /* NEED_PATCH */
1139
488
  ), [
1140
- [j, !n(s) && (n(d) === "info" || u.mode === "view")]
489
+ [Q, !e(l) && (e(u) === "info" || n.mode === "view")]
1141
490
  ])
1142
491
  ],
1143
492
  4
1144
493
  /* STYLE */
1145
494
  ),
1146
- J((y(), U("div", qt, [
1147
- Pe(
1148
- Te(i.imageName || n(k)),
495
+ B((d(), h("div", it, [
496
+ ce(
497
+ de(s.imageName || e(V)),
1149
498
  1
1150
499
  /* TEXT */
1151
500
  )
1152
501
  ])), [
1153
- [j, n(s) && u.showImageName && (n(d) === "normal" || n(d) === "info")],
1154
- [n(Ne)]
502
+ [Q, e(l) && n.showImageName && (e(u) === "normal" || e(u) === "info")],
503
+ [e(fe)]
1155
504
  ])
1156
- ])) : (y(), U(
1157
- de,
505
+ ])) : (d(), h(
506
+ x,
1158
507
  { key: 1 },
1159
508
  [
1160
- p(" 多文件 "),
1161
- X("div", Zt, [
1162
- p(" 已上传的图片集合 "),
1163
- (y(!0), U(
1164
- de,
509
+ r(" 多文件 "),
510
+ N("div", at, [
511
+ r(" 已上传的图片集合 "),
512
+ (d(!0), h(
513
+ x,
1165
514
  null,
1166
- Me(n(s), (I, A) => {
1167
- var _;
1168
- return y(), U("div", {
1169
- key: A,
515
+ me(e(l), (A, p) => {
516
+ var i;
517
+ return d(), h("div", {
518
+ key: p,
1170
519
  class: "das-ui-image-viewer-container"
1171
520
  }, [
1172
- X(
521
+ N(
1173
522
  "div",
1174
523
  {
1175
524
  class: "das-ui-image-viewer",
1176
- style: fe(u.style)
525
+ style: $(n.style)
1177
526
  },
1178
527
  [
1179
- J(ie(n(Je), {
1180
- class: ge([{ "loading-border": n(B)(A) }]),
528
+ B(H(e(ve), {
529
+ class: _([{ "loading-border": e(J)(p) }]),
1181
530
  type: "component",
1182
- spinning: n(B)(A)
531
+ spinning: e(J)(p)
1183
532
  }, {
1184
- default: ne(() => [
1185
- n(b)(n(v)[A][0]) === "isImg" ? J((y(), O(n(Le), {
533
+ default: q(() => [
534
+ e(O)(e(w)[p][0]) === "isImg" ? B((d(), I(e(ge), {
1186
535
  key: 0,
1187
- class: ge(["image-context", [n(h)]]),
1188
- src: n(v)[A][0],
536
+ class: _(["image-context", [e(U)]]),
537
+ src: e(w)[p][0],
1189
538
  "preview-teleported": !0,
1190
- "preview-src-list": n(Z) ? n(v)[A] : void 0,
1191
- "initial-index": A,
1192
- onClick: (W) => n($)(n(v)[A]),
539
+ "preview-src-list": e(X) ? e(w)[p] : void 0,
540
+ "initial-index": p,
541
+ onClick: (c) => e(W)(e(w)[p]),
1193
542
  fit: "cover"
1194
543
  }, null, 8, ["class", "src", "preview-src-list", "initial-index", "onClick"])), [
1195
- [j, !n(B)(A)]
1196
- ]) : p("v-if", !0),
1197
- p(" 视频 "),
1198
- n(b)(n(v)[A][0]) === "isVideo" ? J((y(), O(n(ve), {
544
+ [Q, !e(J)(p)]
545
+ ]) : r("v-if", !0),
546
+ r(" 视频 "),
547
+ e(O)(e(w)[p][0]) === "isVideo" ? B((d(), I(e(ee), {
1199
548
  key: 1,
1200
- mode: n(d) === "info" || u.mode === "view" ? "view" : "normal",
1201
- src: n(v)[A][0],
1202
- needPreview: u.needPreview,
549
+ mode: e(u) === "info" || n.mode === "view" ? "view" : "normal",
550
+ src: e(w)[p][0],
551
+ needPreview: n.needPreview,
1203
552
  width: "100%",
1204
553
  height: "100%",
1205
554
  fullPath: "",
1206
- "player-props": { videoWidth: u.videoWidth, videoHeight: u.videoHeight }
555
+ "player-props": { videoWidth: n.videoWidth, videoHeight: n.videoHeight }
1207
556
  }, null, 8, ["mode", "src", "needPreview", "player-props"])), [
1208
- [j, !n(B)(A)]
1209
- ]) : p("v-if", !0),
1210
- p(" 音频 "),
1211
- n(b)(n(v)[A][0]) === "isAudio" ? J((y(), O(n(ve), {
557
+ [Q, !e(J)(p)]
558
+ ]) : r("v-if", !0),
559
+ r(" 音频 "),
560
+ e(O)(e(w)[p][0]) === "isAudio" ? B((d(), I(e(ee), {
1212
561
  key: 2,
1213
- mode: n(d) === "info" || u.mode === "view" ? "view" : "normal",
1214
- src: n(v)[A][0],
1215
- needPreview: u.needPreview,
562
+ mode: e(u) === "info" || n.mode === "view" ? "view" : "normal",
563
+ src: e(w)[p][0],
564
+ needPreview: n.needPreview,
1216
565
  width: "100%",
1217
566
  height: "100%",
1218
567
  type: "audio",
1219
568
  fullPath: ""
1220
569
  }, null, 8, ["mode", "src", "needPreview"])), [
1221
- [j, !n(B)(A)]
1222
- ]) : p("v-if", !0),
1223
- !n(C) && n(E) ? (y(), U(
570
+ [Q, !e(J)(p)]
571
+ ]) : r("v-if", !0),
572
+ !e(E) && e(F) ? (d(), h(
1224
573
  "div",
1225
574
  {
1226
575
  key: 3,
1227
576
  class: "operate-container",
1228
- style: fe(r.value)
577
+ style: $(m.value)
1229
578
  },
1230
579
  [
1231
- u.needDownloadBtn ? (y(), O(n(je), {
580
+ n.needDownloadBtn ? (d(), I(e(we), {
1232
581
  key: 0,
1233
582
  class: "operate-btn",
1234
583
  size: "medium",
1235
584
  "icon-color": "#fff",
1236
- onClick: (W) => n(H)(I, A)
1237
- }, null, 8, ["onClick"])) : p("v-if", !0),
1238
- n(d) !== "info" && u.needChangeBtn ? (y(), U("div", {
585
+ onClick: (c) => e(Y)(A, p)
586
+ }, null, 8, ["onClick"])) : r("v-if", !0),
587
+ e(u) !== "info" && n.needChangeBtn ? (d(), h("div", {
1239
588
  key: 1,
1240
589
  class: "change-icon-box",
1241
- onClick: w[5] || (w[5] = (W) => n(K)(n(s)))
590
+ onClick: g[5] || (g[5] = (c) => e(M)(e(l)))
1242
591
  }, [
1243
- u.openFileDialogOnClick ? (y(), O(n(Fe), {
592
+ n.openFileDialogOnClick ? (d(), I(e(pe), {
1244
593
  key: 0,
1245
- "before-upload": (W) => n(M)(W, A),
1246
- accept: n(f),
1247
- openFileDialogOnClick: u.openFileDialogOnClick
594
+ "before-upload": (c) => e(j)(c, p),
595
+ accept: e(R),
596
+ openFileDialogOnClick: n.openFileDialogOnClick
1248
597
  }, {
1249
- itemRender: ne(({ file: W, actions: l }) => w[8] || (w[8] = [])),
1250
- default: ne(() => [
1251
- ie(n(pe), {
598
+ itemRender: q(({ file: c, actions: S }) => g[8] || (g[8] = [])),
599
+ default: q(() => [
600
+ H(e(te), {
1252
601
  class: "operate-btn m-t-6",
1253
602
  "icon-color": "#fff",
1254
603
  size: "medium"
@@ -1256,105 +605,104 @@ const Yt = (t) => {
1256
605
  ]),
1257
606
  _: 2
1258
607
  /* DYNAMIC */
1259
- }, 1032, ["before-upload", "accept", "openFileDialogOnClick"])) : p("v-if", !0),
1260
- u.openFileDialogOnClick ? p("v-if", !0) : (y(), O(n(pe), {
608
+ }, 1032, ["before-upload", "accept", "openFileDialogOnClick"])) : r("v-if", !0),
609
+ n.openFileDialogOnClick ? r("v-if", !0) : (d(), I(e(te), {
1261
610
  key: 1,
1262
611
  class: "operate-btn m-t-6",
1263
612
  "icon-color": "#fff",
1264
613
  size: "medium"
1265
614
  }))
1266
- ])) : p("v-if", !0),
1267
- n(d) !== "info" && u.needDeleteBtn ? (y(), O(n(ze), {
615
+ ])) : r("v-if", !0),
616
+ e(u) !== "info" && n.needDeleteBtn ? (d(), I(e(Ce), {
1268
617
  key: 2,
1269
618
  class: "operate-btn",
1270
619
  "icon-color": "#fff",
1271
620
  size: "medium",
1272
- onClick: (W) => n(T)(I, A)
1273
- }, null, 8, ["onClick"])) : p("v-if", !0)
621
+ onClick: (c) => e(K)(A, p)
622
+ }, null, 8, ["onClick"])) : r("v-if", !0)
1274
623
  ],
1275
624
  4
1276
625
  /* STYLE */
1277
- )) : p("v-if", !0)
626
+ )) : r("v-if", !0)
1278
627
  ]),
1279
628
  _: 2
1280
629
  /* DYNAMIC */
1281
630
  }, 1032, ["class", "spinning"]), [
1282
- [j, I]
631
+ [Q, A]
1283
632
  ])
1284
633
  ],
1285
634
  4
1286
635
  /* STYLE */
1287
636
  ),
1288
- J((y(), U("div", $t, [
1289
- Pe(
1290
- Te(((_ = i.imageName) == null ? void 0 : _[A]) || n(S)[A]),
637
+ B((d(), h("div", ot, [
638
+ ce(
639
+ de(((i = s.imageName) == null ? void 0 : i[p]) || e(L)[p]),
1291
640
  1
1292
641
  /* TEXT */
1293
642
  )
1294
643
  ])), [
1295
- [j, I && u.showImageName && !n(B)(A)],
1296
- [n(Ne)]
644
+ [Q, A && n.showImageName && !e(J)(p)],
645
+ [e(fe)]
1297
646
  ])
1298
647
  ]);
1299
648
  }),
1300
649
  128
1301
650
  /* KEYED_FRAGMENT */
1302
651
  )),
1303
- p(" 查看模式下,默认占位符 "),
1304
- u.mode === "view" ? (y(!0), U(
1305
- de,
652
+ r(" 查看模式下,默认占位符 "),
653
+ n.mode === "view" ? (d(!0), h(
654
+ x,
1306
655
  { key: 0 },
1307
- Me(u.limitNum - n(s).length, (I) => (y(), U("div", _t, w[9] || (w[9] = [
1308
- X(
656
+ me(n.limitNum - e(l).length, (A) => (d(), h("div", nt, g[9] || (g[9] = [
657
+ N(
1309
658
  "div",
1310
659
  { class: "das-ui-image-viewer" },
1311
660
  [
1312
- X("img", {
661
+ N("img", {
1313
662
  class: "no-data-img",
1314
- src: Ie,
663
+ src: se,
1315
664
  alt: ""
1316
665
  })
1317
666
  ],
1318
667
  -1
1319
- /* CACHED */
668
+ /* HOISTED */
1320
669
  )
1321
670
  ])))),
1322
671
  256
1323
672
  /* UNKEYED_FRAGMENT */
1324
- )) : p("v-if", !0),
1325
- p(" 图片数量未到达最大数量限制时,显示上传组件 "),
1326
- u.mode === "upload" && n(d) !== "info" && n(s).length < u.limitNum ? (y(), U("div", ea, [
1327
- X("div", ta, [
1328
- ie(n(Ve), {
1329
- status: n(d),
1330
- "onUpdate:status": w[6] || (w[6] = (I) => Qe(d) ? d.value = I : null),
1331
- "max-size": u.maxSize,
1332
- accept: u.accept,
1333
- acceptVideo: u.acceptVideo,
1334
- acceptAudio: u.acceptAudio,
1335
- message: u.message,
1336
- "custom-check": u.customCheck,
1337
- "error-message": u.errorMessage,
1338
- openFileDialogOnClick: u.openFileDialogOnClick,
1339
- onImageUpload: n(L),
1340
- isOverMaxLimitCompressImg: u.isOverMaxLimitCompressImg
1341
- }, null, 8, ["status", "max-size", "accept", "acceptVideo", "acceptAudio", "message", "custom-check", "error-message", "openFileDialogOnClick", "onImageUpload", "isOverMaxLimitCompressImg"])
673
+ )) : r("v-if", !0),
674
+ r(" 图片数量未到达最大数量限制时,显示上传组件 "),
675
+ n.mode === "upload" && e(u) !== "info" && e(l).length < n.limitNum ? (d(), h("div", st, [
676
+ N("div", rt, [
677
+ H(e(Ae), {
678
+ status: e(u),
679
+ "onUpdate:status": g[6] || (g[6] = (A) => ue(u) ? u.value = A : null),
680
+ "max-size": n.maxSize,
681
+ accept: n.accept,
682
+ acceptVideo: n.acceptVideo,
683
+ acceptAudio: n.acceptAudio,
684
+ message: n.message,
685
+ "custom-check": n.customCheck,
686
+ "error-message": n.errorMessage,
687
+ openFileDialogOnClick: n.openFileDialogOnClick,
688
+ onImageUpload: e(z)
689
+ }, null, 8, ["status", "max-size", "accept", "acceptVideo", "acceptAudio", "message", "custom-check", "error-message", "openFileDialogOnClick", "onImageUpload"])
1342
690
  ])
1343
- ])) : p("v-if", !0),
1344
- p(" 当图片状态为查看态且无数据时,显示无数据图片 "),
1345
- n(d) === "info" && n(s).length === 0 ? (y(), U("div", aa, w[10] || (w[10] = [
1346
- X(
691
+ ])) : r("v-if", !0),
692
+ r(" 当图片状态为查看态且无数据时,显示无数据图片 "),
693
+ e(u) === "info" && e(l).length === 0 ? (d(), h("div", lt, g[10] || (g[10] = [
694
+ N(
1347
695
  "img",
1348
696
  {
1349
697
  class: "no-data-img",
1350
- src: Ie,
698
+ src: se,
1351
699
  alt: ""
1352
700
  },
1353
701
  null,
1354
702
  -1
1355
- /* CACHED */
703
+ /* HOISTED */
1356
704
  )
1357
- ]))) : p("v-if", !0)
705
+ ]))) : r("v-if", !0)
1358
706
  ])
1359
707
  ],
1360
708
  2112
@@ -1365,20 +713,20 @@ const Yt = (t) => {
1365
713
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1366
714
  ));
1367
715
  }
1368
- }), na = (t, e) => {
1369
- const i = t.__vccOpts || t;
1370
- for (const [a, r] of e)
1371
- i[a] = r;
1372
- return i;
1373
- }, ra = /* @__PURE__ */ na(ia, [["__scopeId", "data-v-0cbe0660"]]), oa = {
716
+ }), ct = (t, a) => {
717
+ const s = t.__vccOpts || t;
718
+ for (const [o, m] of a)
719
+ s[o] = m;
720
+ return s;
721
+ }, dt = /* @__PURE__ */ ct(ut, [["__scopeId", "data-v-6fd90ea2"]]), mt = {
1374
722
  "--das-ui-image-viewer-bg-color": { light: "rgba(0, 0, 0, 0.5)" },
1375
723
  "--das-ui-image-viewer-btn-hover": { light: "#87A9FF" },
1376
724
  "--das-ui-image-viewer-btn-active": { light: "#276FF5" }
1377
- }, Pa = rt(ra);
1378
- ot(oa);
725
+ }, Tt = Pe(dt);
726
+ Oe(mt);
1379
727
  export {
1380
- Pa as DasImageViewer,
1381
- Pa as default,
1382
- At as minioUpload,
1383
- yt as useCalculateSize
728
+ Tt as DasImageViewer,
729
+ Tt as default,
730
+ Ye as minioUpload,
731
+ Ze as useCalculateSize
1384
732
  };