@web-utils/component 2.7.21 → 2.7.22

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 (310) hide show
  1. package/dist/chunks/confirmable-mixin.35bd1934.js +104 -0
  2. package/dist/chunks/{dayjs.b0f2f7d9.js → dayjs.ed2e1b73.js} +1 -1
  3. package/dist/chunks/{detail.6619700c.js → detail.d47a021c.js} +1 -1
  4. package/dist/chunks/{form-input-mixin.df413ca8.js → form-input-mixin.760cd65d.js} +1 -1
  5. package/dist/chunks/{form-item-mixin.b850e028.js → form-item-mixin.fa314b67.js} +14 -3
  6. package/dist/chunks/{tab-mixin.51886d91.js → tab-mixin.9d568df9.js} +1 -1
  7. package/dist/chunks/{vueComponentNormalizer.bf552d98.js → vueComponentNormalizer.77ec6792.js} +1 -1
  8. package/dist/components/address-input/index.js +1 -1
  9. package/dist/components/address-input/style.css +1 -10
  10. package/dist/components/affix/index.js +1 -1
  11. package/dist/components/affix/style.css +1 -4
  12. package/dist/components/aside-menu/index.js +1 -1
  13. package/dist/components/aside-menu/style.css +1 -3
  14. package/dist/components/avatar/index.js +1 -1
  15. package/dist/components/avatar/style.css +1 -51
  16. package/dist/components/awesome-button/index.js +42 -12
  17. package/dist/components/base.css +1 -536
  18. package/dist/components/capsule-tab/index.js +1 -1
  19. package/dist/components/capsule-tab/style.css +1 -26
  20. package/dist/components/card/index.js +1 -1
  21. package/dist/components/card/style.css +1 -84
  22. package/dist/components/carousel/index.js +1 -1
  23. package/dist/components/carousel/style.css +1 -35
  24. package/dist/components/chat/index.js +2 -2
  25. package/dist/components/chat/style.css +1 -277
  26. package/dist/components/chunk-file-uploader/index.js +1 -1
  27. package/dist/components/chunk-file-uploader/style.css +1 -3
  28. package/dist/components/chunk-file-uploader-button/index.js +1 -1
  29. package/dist/components/chunk-file-uploader-button/style.css +1 -16
  30. package/dist/components/chunk-file-uploader-drop/index.js +23 -5
  31. package/dist/components/chunk-file-uploader-drop/style.css +1 -11
  32. package/dist/components/chunk-file-uploader-file/index.js +2 -2
  33. package/dist/components/chunk-file-uploader-file/style.css +1 -124
  34. package/dist/components/chunk-file-uploader-files/index.js +1 -1
  35. package/dist/components/chunk-file-uploader-files/style.css +1 -8
  36. package/dist/components/chunk-file-uploader-list/index.js +1 -1
  37. package/dist/components/chunk-file-uploader-list/style.css +1 -8
  38. package/dist/components/chunk-file-uploader-un-support/index.js +1 -1
  39. package/dist/components/chunk-file-uploader-un-support/style.css +1 -5
  40. package/dist/components/code-mirror-editor/index.js +7 -7
  41. package/dist/components/code-mirror-editor/style.css +1 -11
  42. package/dist/components/color-picker/index.js +21 -3
  43. package/dist/components/column/index.js +1 -1
  44. package/dist/components/column-default/index.js +1 -1
  45. package/dist/components/column-dynamic/index.js +1 -1
  46. package/dist/components/column-menu/index.js +1 -1
  47. package/dist/components/column-slot/index.js +2 -2
  48. package/dist/components/comment/index.js +1 -1
  49. package/dist/components/comment/style.css +1 -110
  50. package/dist/components/confirm-button/index.js +2 -2
  51. package/dist/components/confirmable/index.js +2 -2
  52. package/dist/components/context-menu/index.js +1 -1
  53. package/dist/components/context-menu/style.css +1 -84
  54. package/dist/components/count-up/index.js +15 -4
  55. package/dist/components/custom-scrollbar/index.js +18 -5
  56. package/dist/components/data-box/index.js +1 -1
  57. package/dist/components/data-box/style.css +1 -52
  58. package/dist/components/data-card/index.js +1 -1
  59. package/dist/components/data-card/style.css +1 -35
  60. package/dist/components/data-cardtext/index.js +1 -1
  61. package/dist/components/data-cardtext/style.css +1 -30
  62. package/dist/components/data-display/index.js +1 -1
  63. package/dist/components/data-display/style.css +1 -31
  64. package/dist/components/data-icons/index.js +1 -1
  65. package/dist/components/data-icons/style.css +1 -47
  66. package/dist/components/data-imgtext/index.js +1 -1
  67. package/dist/components/data-imgtext/style.css +1 -65
  68. package/dist/components/data-operatext/index.js +1 -1
  69. package/dist/components/data-operatext/style.css +1 -72
  70. package/dist/components/data-panel/index.js +1 -1
  71. package/dist/components/data-panel/style.css +1 -31
  72. package/dist/components/data-pay/index.js +1 -1
  73. package/dist/components/data-pay/style.css +1 -96
  74. package/dist/components/data-price/index.js +1 -1
  75. package/dist/components/data-price/style.css +1 -75
  76. package/dist/components/data-progress/index.js +1 -1
  77. package/dist/components/data-progress/style.css +1 -24
  78. package/dist/components/data-rotate/index.js +1 -1
  79. package/dist/components/data-rotate/style.css +1 -44
  80. package/dist/components/data-table-picker/index.js +1 -1
  81. package/dist/components/data-tabs/index.js +1 -1
  82. package/dist/components/data-tabs/style.css +1 -64
  83. package/dist/components/dialog-column/index.js +1 -1
  84. package/dist/components/dialog-excel/index.js +2 -2
  85. package/dist/components/dialog-filter/index.js +1 -1
  86. package/dist/components/dialog-form/index.js +1 -1
  87. package/dist/components/dynamic-table/index.js +1 -1
  88. package/dist/components/dynamic-table/style.css +1 -24
  89. package/dist/components/e-charts/index.js +1 -1
  90. package/dist/components/e-charts/style.css +1 -4
  91. package/dist/components/easy-popup/index.js +1 -1
  92. package/dist/components/easy-popup/style.css +1 -12
  93. package/dist/components/editable-progress/index.js +1 -1
  94. package/dist/components/editable-progress/style.css +1 -33
  95. package/dist/components/editable-tree/index.js +216 -163
  96. package/dist/components/editable-tree/style.css +1 -79
  97. package/dist/components/egd-collapse/index.js +1 -1
  98. package/dist/components/egd-collapse-item/index.js +1 -1
  99. package/dist/components/element-dialog/index.js +1 -1
  100. package/dist/components/element-dialog/style.css +1 -82
  101. package/dist/components/empty-view/index.js +1 -1
  102. package/dist/components/empty-view/style.css +1 -11
  103. package/dist/components/error-view/index.js +1 -1
  104. package/dist/components/error-view/style.css +1 -11
  105. package/dist/components/flex-column/index.js +14 -2
  106. package/dist/components/flex-item/index.js +15 -3
  107. package/dist/components/flex-row/index.js +14 -2
  108. package/dist/components/flex-scroller/index.js +1 -1
  109. package/dist/components/flex-scroller/style.css +1 -14
  110. package/dist/components/flow/index.js +1 -1
  111. package/dist/components/flow/style.css +1 -38
  112. package/dist/components/flow-node/index.js +1 -1
  113. package/dist/components/flow-viewer/index.js +34 -7
  114. package/dist/components/flow-viewer/style.css +1 -13
  115. package/dist/components/form-button/index.js +2 -2
  116. package/dist/components/form-cascader/index.js +14 -3
  117. package/dist/components/form-checkbox-group/index.js +14 -3
  118. package/dist/components/form-checkbox-group/style.css +1 -45
  119. package/dist/components/form-date-picker/index.js +20 -11
  120. package/dist/components/form-group/index.js +1 -1
  121. package/dist/components/form-group/style.css +1 -76
  122. package/dist/components/form-holder/index.js +21 -3
  123. package/dist/components/form-input/index.js +14 -3
  124. package/dist/components/form-input-email/index.js +14 -3
  125. package/dist/components/form-input-id-card/index.js +14 -3
  126. package/dist/components/form-input-number/index.js +14 -3
  127. package/dist/components/form-input-number/style.css +1 -6
  128. package/dist/components/form-input-phone-number/index.js +14 -3
  129. package/dist/components/form-input-time/index.js +14 -3
  130. package/dist/components/form-item/index.js +43 -15
  131. package/dist/components/form-item/style.css +1 -5
  132. package/dist/components/form-item-config-provider/index.js +1 -1
  133. package/dist/components/form-item-group/index.js +1 -1
  134. package/dist/components/form-item-group/style.css +1 -25
  135. package/dist/components/form-radio-group/index.js +14 -3
  136. package/dist/components/form-radio-group/style.css +1 -47
  137. package/dist/components/form-select/index.js +14 -3
  138. package/dist/components/form-switch/index.js +14 -3
  139. package/dist/components/form-temp/index.js +1 -1
  140. package/dist/components/form-textarea/index.js +14 -3
  141. package/dist/components/form-view/index.js +35 -13
  142. package/dist/components/form-view/style.css +1 -155
  143. package/dist/components/fy-array/index.js +1 -1
  144. package/dist/components/fy-array/style.css +1 -12
  145. package/dist/components/fy-article/index.js +1 -1
  146. package/dist/components/fy-article/style.css +1 -56
  147. package/dist/components/fy-cascader/index.js +1 -1
  148. package/dist/components/fy-checkbox/index.js +1 -1
  149. package/dist/components/fy-checkbox/style.css +1 -9
  150. package/dist/components/fy-code/index.js +1 -1
  151. package/dist/components/fy-curd/index.js +1 -1
  152. package/dist/components/fy-curd/style.css +1 -236
  153. package/dist/components/fy-date/index.js +1 -1
  154. package/dist/components/fy-date/style.css +1 -15
  155. package/dist/components/fy-dialog-form/index.js +1 -1
  156. package/dist/components/fy-dialog-form/style.css +1 -0
  157. package/dist/components/fy-draggable/index.js +1 -1
  158. package/dist/components/fy-draggable/style.css +1 -136
  159. package/dist/components/fy-dynamic/index.js +1 -1
  160. package/dist/components/fy-dynamic/style.css +1 -29
  161. package/dist/components/fy-empty/index.js +1 -1
  162. package/dist/components/fy-empty/style.css +1 -18
  163. package/dist/components/fy-form/index.js +23 -5
  164. package/dist/components/fy-form/style.css +1 -73
  165. package/dist/components/fy-form-design/index.js +73 -49
  166. package/dist/components/fy-form-design/style.css +1 -560
  167. package/dist/components/fy-form-menu/index.js +1 -1
  168. package/dist/components/fy-input/index.js +1 -1
  169. package/dist/components/fy-input-color/index.js +1 -1
  170. package/dist/components/fy-input-icon/index.js +1 -1
  171. package/dist/components/fy-input-icon/style.css +1 -33
  172. package/dist/components/fy-input-map/index.js +1 -1
  173. package/dist/components/fy-input-map/style.css +1 -44
  174. package/dist/components/fy-input-number/index.js +1 -1
  175. package/dist/components/fy-input-table/index.js +1 -1
  176. package/dist/components/fy-input-table/style.css +1 -4
  177. package/dist/components/fy-input-tree/index.js +1 -1
  178. package/dist/components/fy-input-tree/style.css +1 -19
  179. package/dist/components/fy-progress/index.js +1 -1
  180. package/dist/components/fy-radio/index.js +1 -1
  181. package/dist/components/fy-radio/style.css +1 -6
  182. package/dist/components/fy-rate/index.js +1 -1
  183. package/dist/components/fy-rate/style.css +1 -3
  184. package/dist/components/fy-select/index.js +1 -1
  185. package/dist/components/fy-select/style.css +1 -19
  186. package/dist/components/fy-slider/index.js +1 -1
  187. package/dist/components/fy-switch/index.js +1 -1
  188. package/dist/components/fy-tabs/index.js +1 -1
  189. package/dist/components/fy-time/index.js +1 -1
  190. package/dist/components/fy-title/index.js +1 -1
  191. package/dist/components/fy-title/style.css +1 -5
  192. package/dist/components/fy-tree/index.js +1 -1
  193. package/dist/components/fy-tree/style.css +1 -39
  194. package/dist/components/fy-u-editor/index.js +47 -14
  195. package/dist/components/fy-u-editor/style.css +1 -9
  196. package/dist/components/fy-upload/index.js +1 -1
  197. package/dist/components/fy-upload/style.css +1 -55
  198. package/dist/components/guide-steps/index.js +1 -1
  199. package/dist/components/guide-steps/style.css +1 -28
  200. package/dist/components/header-menu/index.js +1 -1
  201. package/dist/components/header-search/index.js +1 -1
  202. package/dist/components/highlight-j-s/index.js +1 -1
  203. package/dist/components/highlight-j-s/style.css +1 -18
  204. package/dist/components/icon-card/index.js +1 -1
  205. package/dist/components/icon-card/style.css +1 -50
  206. package/dist/components/icon-temp/index.js +1 -1
  207. package/dist/components/icon-temp/style.css +1 -17
  208. package/dist/components/iframe-window/index.js +1 -1
  209. package/dist/components/iframe-window/style.css +1 -14
  210. package/dist/components/image-cropper/index.js +15 -6
  211. package/dist/components/image-cropper/style.css +1 -28
  212. package/dist/components/image-preview/index.js +15 -5
  213. package/dist/components/image-preview/style.css +1 -66
  214. package/dist/components/image-viewer/index.js +1 -1
  215. package/dist/components/image-viewer/style.css +1 -15
  216. package/dist/components/input-number/index.js +1 -1
  217. package/dist/components/input-number/style.css +1 -9
  218. package/dist/components/input-number-range/index.js +1 -1
  219. package/dist/components/input-number-range/style.css +1 -6
  220. package/dist/components/keep-view-alive/index.js +1 -1
  221. package/dist/components/keyboard/index.js +1 -1
  222. package/dist/components/keyboard/style.css +1 -473
  223. package/dist/components/license/index.js +1 -1
  224. package/dist/components/loading-view/index.js +1 -1
  225. package/dist/components/loading-view/style.css +1 -11
  226. package/dist/components/login/index.js +1 -1
  227. package/dist/components/login/style.css +1 -19
  228. package/dist/components/name-avatar/index.js +1 -1
  229. package/dist/components/name-avatar/style.css +1 -30
  230. package/dist/components/nav-bar/index.js +1 -1
  231. package/dist/components/nav-bar/style.css +1 -11
  232. package/dist/components/not-implement/index.js +1 -1
  233. package/dist/components/not-implement/style.css +1 -9
  234. package/dist/components/notice/index.js +1 -1
  235. package/dist/components/notice/style.css +1 -48
  236. package/dist/components/page/index.js +1 -1
  237. package/dist/components/page/style.css +1 -6
  238. package/dist/components/page-header/index.js +1 -1
  239. package/dist/components/page-header/style.css +1 -8
  240. package/dist/components/page-index/index.js +42 -18
  241. package/dist/components/page-index/style.css +1 -17
  242. package/dist/components/page-index-top/index.js +38 -16
  243. package/dist/components/page-skeleton/index.js +1 -1
  244. package/dist/components/page-skeleton/style.css +1 -17
  245. package/dist/components/page-skeleton-new/index.js +1 -1
  246. package/dist/components/page-skeleton-new/style.css +1 -36
  247. package/dist/components/pageable-table/index.js +78 -34
  248. package/dist/components/pageable-table/style.css +1 -66
  249. package/dist/components/pageable-view/index.js +78 -34
  250. package/dist/components/pageable-view/style.css +1 -63
  251. package/dist/components/photo-swipe/index.js +46 -24
  252. package/dist/components/process-designer/index.js +80 -50
  253. package/dist/components/process-designer/style.css +1 -1648
  254. package/dist/components/properties-panel/index.js +77 -51
  255. package/dist/components/properties-panel/style.css +1 -106
  256. package/dist/components/queue/index.js +1 -1
  257. package/dist/components/record-video/index.js +1 -1
  258. package/dist/components/record-video/style.css +1 -47
  259. package/dist/components/resize-observer/index.js +1 -1
  260. package/dist/components/resize-observer/style.css +1 -25
  261. package/dist/components/search/index.js +1 -1
  262. package/dist/components/search/style.css +1 -51
  263. package/dist/components/search-popover/index.js +29 -9
  264. package/dist/components/search-popover/style.css +1 -90
  265. package/dist/components/sign/index.js +2 -2
  266. package/dist/components/sign/style.css +1 -6
  267. package/dist/components/sign-panel/index.js +1 -1
  268. package/dist/components/sign-panel/style.css +1 -91
  269. package/dist/components/skeleton/index.js +1 -1
  270. package/dist/components/skeleton/style.css +1 -55
  271. package/dist/components/split-pane/index.js +21 -3
  272. package/dist/components/split-pane/style.css +1 -98
  273. package/dist/components/stateful/index.js +1 -1
  274. package/dist/components/stateful/style.css +1 -27
  275. package/dist/components/static-pageable-table/index.js +1 -1
  276. package/dist/components/static-pageable-table/style.css +1 -3
  277. package/dist/components/swiper/index.js +25 -5
  278. package/dist/components/swiper/style.css +1 -37
  279. package/dist/components/tab/index.js +2 -2
  280. package/dist/components/tab/style.css +1 -108
  281. package/dist/components/tab-item/index.js +3 -3
  282. package/dist/components/table-column/index.js +17 -7
  283. package/dist/components/table-page/index.js +1 -1
  284. package/dist/components/table-view/index.js +62 -36
  285. package/dist/components/table-view/style.css +1 -90
  286. package/dist/components/tag-render/index.js +13 -2
  287. package/dist/components/tag-render/style.css +1 -27
  288. package/dist/components/text-ellipsis/index.js +1 -1
  289. package/dist/components/text-ellipsis/style.css +1 -3
  290. package/dist/components/tinymce-editor/index.js +27 -9
  291. package/dist/components/tinymce-editor/style.css +1 -37
  292. package/dist/components/tinymce-wrapper/index.js +17 -7
  293. package/dist/components/tinymce-wrapper/style.css +1 -30
  294. package/dist/components/toolbar/index.js +4 -4
  295. package/dist/components/toolbar/style.css +1 -35
  296. package/dist/components/toolbar-button/index.js +28 -10
  297. package/dist/components/toolbar-button/style.css +1 -15
  298. package/dist/components/trigger/index.js +1 -1
  299. package/dist/components/verify/index.js +1 -1
  300. package/dist/components/verify/style.css +1 -9
  301. package/dist/components/vue-tags-input/index.js +1 -1
  302. package/dist/components/vue-tags-input/style.css +1 -102
  303. package/dist/components/watermark/index.js +15 -5
  304. package/dist/components/watermark/style.css +1 -10
  305. package/dist/index.css +26 -68
  306. package/dist/index.es.js +990 -877
  307. package/package.json +4 -4
  308. package/web-types.json +1 -1
  309. package/dist/chunks/confirmable-mixin.7112b769.js +0 -75
  310. package/dist/components/dialog-form/style.css +0 -5
package/dist/index.es.js CHANGED
@@ -1,3 +1,40 @@
1
+ var __defProp = Object.defineProperty, __defProps = Object.defineProperties;
2
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
3
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty, __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj2, key2, value2) => key2 in obj2 ? __defProp(obj2, key2, { enumerable: !0, configurable: !0, writable: !0, value: value2 }) : obj2[key2] = value2, __spreadValues = (a, b) => {
6
+ for (var prop in b || (b = {}))
7
+ __hasOwnProp.call(b, prop) && __defNormalProp(a, prop, b[prop]);
8
+ if (__getOwnPropSymbols)
9
+ for (var prop of __getOwnPropSymbols(b))
10
+ __propIsEnum.call(b, prop) && __defNormalProp(a, prop, b[prop]);
11
+ return a;
12
+ }, __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13
+ var __objRest = (source, exclude) => {
14
+ var target = {};
15
+ for (var prop in source)
16
+ __hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0 && (target[prop] = source[prop]);
17
+ if (source != null && __getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(source))
19
+ exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop) && (target[prop] = source[prop]);
20
+ return target;
21
+ };
22
+ var __async2 = (__this, __arguments, generator) => new Promise((resolve2, reject2) => {
23
+ var fulfilled = (value2) => {
24
+ try {
25
+ step(generator.next(value2));
26
+ } catch (e2) {
27
+ reject2(e2);
28
+ }
29
+ }, rejected = (value2) => {
30
+ try {
31
+ step(generator.throw(value2));
32
+ } catch (e2) {
33
+ reject2(e2);
34
+ }
35
+ }, step = (x) => x.done ? resolve2(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
36
+ step((generator = generator.apply(__this, __arguments)).next());
37
+ });
1
38
  import { isFunction, error, isBlank, getObjType, getComputedHeight, drag, hasOwn, isObject as isObject$1, isString, isPlainObject, isArray, camelize, isEmpty, fastClone, validateNumber, validateIdCard, validatePhoneNum, isVerticalScrollbarVisible, scrollbarWidth, computePosition, isUndefined, isNotEmpty, delay, findTreeChildren, setParent, warning, toStringArray, animate, isInContainer, createLogger, escapeHtml, setPx as setPx$1, copy, treeToArray, findFirstMatchNode, debug, getEleWidth, trace, guid, NOOP } from "@web-utils/core";
2
39
  import Uploader from "simple-uploader.js";
3
40
  import CodeMirror from "codemirror";
@@ -110,7 +147,7 @@ function normalizeComponent(scriptExports, render2, staticRenderFns2, functional
110
147
  if (moduleIdentifier ? (hook = function(context) {
111
148
  context = context || // cached call
112
149
  this.$vnode && this.$vnode.ssrContext || // stateful
113
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !context && typeof __VUE_SSR_CONTEXT__ < "u" && (context = __VUE_SSR_CONTEXT__), injectStyles && injectStyles.call(this, context), context && context._registeredComponents && context._registeredComponents.add(moduleIdentifier);
150
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !context && typeof __VUE_SSR_CONTEXT__ != "undefined" && (context = __VUE_SSR_CONTEXT__), injectStyles && injectStyles.call(this, context), context && context._registeredComponents && context._registeredComponents.add(moduleIdentifier);
114
151
  }, options2._ssrRegister = hook) : injectStyles && (hook = shadowMode ? function() {
115
152
  injectStyles.call(
116
153
  this,
@@ -492,16 +529,18 @@ const Avatar = /* @__PURE__ */ function() {
492
529
  };
493
530
  },
494
531
  methods: {
495
- async onClick(e2) {
496
- this.isLoading = !0;
497
- const { click } = this.$listeners;
498
- if (isFunction(click))
499
- try {
500
- await click(e2);
501
- } catch (e3) {
502
- error.call(this, e3);
503
- }
504
- this.isLoading = !1;
532
+ onClick(e2) {
533
+ return __async2(this, null, function* () {
534
+ this.isLoading = !0;
535
+ const { click } = this.$listeners;
536
+ if (isFunction(click))
537
+ try {
538
+ yield click(e2);
539
+ } catch (e3) {
540
+ error.call(this, e3);
541
+ }
542
+ this.isLoading = !1;
543
+ });
505
544
  }
506
545
  },
507
546
  render(createElement) {
@@ -509,7 +548,7 @@ const Avatar = /* @__PURE__ */ function() {
509
548
  const vNode = (_b = (_a = this.$scopedSlots).default) == null ? void 0 : _b.call(_a);
510
549
  return createElement(
511
550
  "ElButton",
512
- { on: { click: this.onClick }, props: { ...this.$props, disabled: this.isLoading } },
551
+ { on: { click: this.onClick }, props: __spreadProps(__spreadValues({}, this.$props), { disabled: this.isLoading }) },
513
552
  vNode && (vNode[0].tag || vNode[0].text) ? vNode : this.text
514
553
  );
515
554
  }
@@ -773,229 +812,222 @@ function __vue2_injectStyles$3h(context) {
773
812
  const Carousel = /* @__PURE__ */ function() {
774
813
  return __component__$3h.exports;
775
814
  }();
776
- var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
777
- function getDefaultExportFromCjs(x) {
778
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
779
- }
780
- var dayjs_minExports$1 = {}, dayjs_min = {
815
+ var commonjsGlobal = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, dayjs_minExports = {}, dayjs_min = {
781
816
  get exports() {
782
- return dayjs_minExports$1;
817
+ return dayjs_minExports;
783
818
  },
784
819
  set exports(v) {
785
- dayjs_minExports$1 = v;
786
- }
787
- }, hasRequiredDayjs_min;
788
- function requireDayjs_min() {
789
- return hasRequiredDayjs_min || (hasRequiredDayjs_min = 1, function(module, exports) {
790
- (function(t, e2) {
791
- module.exports = e2();
792
- })(commonjsGlobal, function() {
793
- var t = 1e3, e2 = 6e4, n = 36e5, r = "millisecond", i2 = "second", s = "minute", u = "hour", a = "day", o = "week", f = "month", h = "quarter", c = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
794
- var e3 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
795
- return "[" + t2 + (e3[(n2 - 20) % 10] || e3[n2] || e3[0]) + "]";
796
- } }, m = function(t2, e3, n2) {
797
- var r2 = String(t2);
798
- return !r2 || r2.length >= e3 ? t2 : "" + Array(e3 + 1 - r2.length).join(n2) + t2;
799
- }, v = { s: m, z: function(t2) {
800
- var e3 = -t2.utcOffset(), n2 = Math.abs(e3), r2 = Math.floor(n2 / 60), i3 = n2 % 60;
801
- return (e3 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i3, 2, "0");
802
- }, m: function t2(e3, n2) {
803
- if (e3.date() < n2.date())
804
- return -t2(n2, e3);
805
- var r2 = 12 * (n2.year() - e3.year()) + (n2.month() - e3.month()), i3 = e3.clone().add(r2, f), s2 = n2 - i3 < 0, u2 = e3.clone().add(r2 + (s2 ? -1 : 1), f);
806
- return +(-(r2 + (n2 - i3) / (s2 ? i3 - u2 : u2 - i3)) || 0);
807
- }, a: function(t2) {
808
- return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
809
- }, p: function(t2) {
810
- return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i2, ms: r, Q: h }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
811
- }, u: function(t2) {
812
- return t2 === void 0;
813
- } }, g = "en", D = {};
814
- D[g] = M;
815
- var p = function(t2) {
816
- return t2 instanceof _;
817
- }, S = function t2(e3, n2, r2) {
818
- var i3;
819
- if (!e3)
820
- return g;
821
- if (typeof e3 == "string") {
822
- var s2 = e3.toLowerCase();
823
- D[s2] && (i3 = s2), n2 && (D[s2] = n2, i3 = s2);
824
- var u2 = e3.split("-");
825
- if (!i3 && u2.length > 1)
826
- return t2(u2[0]);
827
- } else {
828
- var a2 = e3.name;
829
- D[a2] = e3, i3 = a2;
830
- }
831
- return !r2 && i3 && (g = i3), i3 || !r2 && g;
832
- }, w = function(t2, e3) {
833
- if (p(t2))
834
- return t2.clone();
835
- var n2 = typeof e3 == "object" ? e3 : {};
836
- return n2.date = t2, n2.args = arguments, new _(n2);
837
- }, O = v;
838
- O.l = S, O.i = p, O.w = function(t2, e3) {
839
- return w(t2, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
840
- };
841
- var _ = function() {
842
- function M2(t2) {
843
- this.$L = S(t2.locale, null, !0), this.parse(t2);
844
- }
845
- var m2 = M2.prototype;
846
- return m2.parse = function(t2) {
847
- this.$d = function(t3) {
848
- var e3 = t3.date, n2 = t3.utc;
849
- if (e3 === null)
850
- return new Date(NaN);
851
- if (O.u(e3))
852
- return new Date();
853
- if (e3 instanceof Date)
854
- return new Date(e3);
855
- if (typeof e3 == "string" && !/Z$/i.test(e3)) {
856
- var r2 = e3.match($);
857
- if (r2) {
858
- var i3 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
859
- return n2 ? new Date(Date.UTC(r2[1], i3, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i3, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
860
- }
861
- }
820
+ dayjs_minExports = v;
821
+ }
822
+ };
823
+ (function(module, exports) {
824
+ (function(t, e2) {
825
+ module.exports = e2();
826
+ })(commonjsGlobal, function() {
827
+ var t = 1e3, e2 = 6e4, n = 36e5, r = "millisecond", i2 = "second", s = "minute", u = "hour", a = "day", o = "week", f = "month", h = "quarter", c = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
828
+ var e3 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
829
+ return "[" + t2 + (e3[(n2 - 20) % 10] || e3[n2] || e3[0]) + "]";
830
+ } }, m = function(t2, e3, n2) {
831
+ var r2 = String(t2);
832
+ return !r2 || r2.length >= e3 ? t2 : "" + Array(e3 + 1 - r2.length).join(n2) + t2;
833
+ }, v = { s: m, z: function(t2) {
834
+ var e3 = -t2.utcOffset(), n2 = Math.abs(e3), r2 = Math.floor(n2 / 60), i3 = n2 % 60;
835
+ return (e3 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i3, 2, "0");
836
+ }, m: function t2(e3, n2) {
837
+ if (e3.date() < n2.date())
838
+ return -t2(n2, e3);
839
+ var r2 = 12 * (n2.year() - e3.year()) + (n2.month() - e3.month()), i3 = e3.clone().add(r2, f), s2 = n2 - i3 < 0, u2 = e3.clone().add(r2 + (s2 ? -1 : 1), f);
840
+ return +(-(r2 + (n2 - i3) / (s2 ? i3 - u2 : u2 - i3)) || 0);
841
+ }, a: function(t2) {
842
+ return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
843
+ }, p: function(t2) {
844
+ return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i2, ms: r, Q: h }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
845
+ }, u: function(t2) {
846
+ return t2 === void 0;
847
+ } }, g = "en", D = {};
848
+ D[g] = M;
849
+ var p = function(t2) {
850
+ return t2 instanceof _;
851
+ }, S = function t2(e3, n2, r2) {
852
+ var i3;
853
+ if (!e3)
854
+ return g;
855
+ if (typeof e3 == "string") {
856
+ var s2 = e3.toLowerCase();
857
+ D[s2] && (i3 = s2), n2 && (D[s2] = n2, i3 = s2);
858
+ var u2 = e3.split("-");
859
+ if (!i3 && u2.length > 1)
860
+ return t2(u2[0]);
861
+ } else {
862
+ var a2 = e3.name;
863
+ D[a2] = e3, i3 = a2;
864
+ }
865
+ return !r2 && i3 && (g = i3), i3 || !r2 && g;
866
+ }, w = function(t2, e3) {
867
+ if (p(t2))
868
+ return t2.clone();
869
+ var n2 = typeof e3 == "object" ? e3 : {};
870
+ return n2.date = t2, n2.args = arguments, new _(n2);
871
+ }, O = v;
872
+ O.l = S, O.i = p, O.w = function(t2, e3) {
873
+ return w(t2, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
874
+ };
875
+ var _ = function() {
876
+ function M2(t2) {
877
+ this.$L = S(t2.locale, null, !0), this.parse(t2);
878
+ }
879
+ var m2 = M2.prototype;
880
+ return m2.parse = function(t2) {
881
+ this.$d = function(t3) {
882
+ var e3 = t3.date, n2 = t3.utc;
883
+ if (e3 === null)
884
+ return new Date(NaN);
885
+ if (O.u(e3))
886
+ return new Date();
887
+ if (e3 instanceof Date)
862
888
  return new Date(e3);
863
- }(t2), this.$x = t2.x || {}, this.init();
864
- }, m2.init = function() {
865
- var t2 = this.$d;
866
- this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
867
- }, m2.$utils = function() {
868
- return O;
869
- }, m2.isValid = function() {
870
- return this.$d.toString() !== l;
871
- }, m2.isSame = function(t2, e3) {
872
- var n2 = w(t2);
873
- return this.startOf(e3) <= n2 && n2 <= this.endOf(e3);
874
- }, m2.isAfter = function(t2, e3) {
875
- return w(t2) < this.startOf(e3);
876
- }, m2.isBefore = function(t2, e3) {
877
- return this.endOf(e3) < w(t2);
878
- }, m2.$g = function(t2, e3, n2) {
879
- return O.u(t2) ? this[e3] : this.set(n2, t2);
880
- }, m2.unix = function() {
881
- return Math.floor(this.valueOf() / 1e3);
882
- }, m2.valueOf = function() {
883
- return this.$d.getTime();
884
- }, m2.startOf = function(t2, e3) {
885
- var n2 = this, r2 = !!O.u(e3) || e3, h2 = O.p(t2), l2 = function(t3, e4) {
886
- var i3 = O.w(n2.$u ? Date.UTC(n2.$y, e4, t3) : new Date(n2.$y, e4, t3), n2);
887
- return r2 ? i3 : i3.endOf(a);
888
- }, $2 = function(t3, e4) {
889
- return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n2);
890
- }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
891
- switch (h2) {
892
- case c:
893
- return r2 ? l2(1, 0) : l2(31, 11);
894
- case f:
895
- return r2 ? l2(1, M3) : l2(0, M3 + 1);
896
- case o:
897
- var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
898
- return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
899
- case a:
900
- case d:
901
- return $2(v2 + "Hours", 0);
902
- case u:
903
- return $2(v2 + "Minutes", 1);
904
- case s:
905
- return $2(v2 + "Seconds", 2);
906
- case i2:
907
- return $2(v2 + "Milliseconds", 3);
908
- default:
909
- return this.clone();
889
+ if (typeof e3 == "string" && !/Z$/i.test(e3)) {
890
+ var r2 = e3.match($);
891
+ if (r2) {
892
+ var i3 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
893
+ return n2 ? new Date(Date.UTC(r2[1], i3, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i3, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
894
+ }
910
895
  }
911
- }, m2.endOf = function(t2) {
912
- return this.startOf(t2, !1);
913
- }, m2.$set = function(t2, e3) {
914
- var n2, o2 = O.p(t2), h2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = h2 + "Date", n2[d] = h2 + "Date", n2[f] = h2 + "Month", n2[c] = h2 + "FullYear", n2[u] = h2 + "Hours", n2[s] = h2 + "Minutes", n2[i2] = h2 + "Seconds", n2[r] = h2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e3 - this.$W) : e3;
915
- if (o2 === f || o2 === c) {
916
- var y2 = this.clone().set(d, 1);
917
- y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
918
- } else
919
- l2 && this.$d[l2]($2);
920
- return this.init(), this;
921
- }, m2.set = function(t2, e3) {
922
- return this.clone().$set(t2, e3);
923
- }, m2.get = function(t2) {
924
- return this[O.p(t2)]();
925
- }, m2.add = function(r2, h2) {
926
- var d2, l2 = this;
927
- r2 = Number(r2);
928
- var $2 = O.p(h2), y2 = function(t2) {
929
- var e3 = w(l2);
930
- return O.w(e3.date(e3.date() + Math.round(t2 * r2)), l2);
931
- };
932
- if ($2 === f)
933
- return this.set(f, this.$M + r2);
934
- if ($2 === c)
935
- return this.set(c, this.$y + r2);
936
- if ($2 === a)
937
- return y2(1);
938
- if ($2 === o)
939
- return y2(7);
940
- var M3 = (d2 = {}, d2[s] = e2, d2[u] = n, d2[i2] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
941
- return O.w(m3, this);
942
- }, m2.subtract = function(t2, e3) {
943
- return this.add(-1 * t2, e3);
944
- }, m2.format = function(t2) {
945
- var e3 = this, n2 = this.$locale();
946
- if (!this.isValid())
947
- return n2.invalidDate || l;
948
- var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i3 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, f2 = n2.months, h2 = function(t3, n3, i4, s3) {
949
- return t3 && (t3[n3] || t3(e3, r2)) || i4[n3].slice(0, s3);
950
- }, c2 = function(t3) {
951
- return O.s(s2 % 12 || 12, t3, "0");
952
- }, d2 = n2.meridiem || function(t3, e4, n3) {
953
- var r3 = t3 < 12 ? "AM" : "PM";
954
- return n3 ? r3.toLowerCase() : r3;
955
- }, $2 = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: a2 + 1, MM: O.s(a2 + 1, 2, "0"), MMM: h2(n2.monthsShort, a2, f2, 3), MMMM: h2(f2, a2), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: h2(n2.weekdaysMin, this.$W, o2, 2), ddd: h2(n2.weekdaysShort, this.$W, o2, 3), dddd: o2[this.$W], H: String(s2), HH: O.s(s2, 2, "0"), h: c2(1), hh: c2(2), a: d2(s2, u2, !0), A: d2(s2, u2, !1), m: String(u2), mm: O.s(u2, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: i3 };
956
- return r2.replace(y, function(t3, e4) {
957
- return e4 || $2[t3] || i3.replace(":", "");
958
- });
959
- }, m2.utcOffset = function() {
960
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
961
- }, m2.diff = function(r2, d2, l2) {
962
- var $2, y2 = O.p(d2), M3 = w(r2), m3 = (M3.utcOffset() - this.utcOffset()) * e2, v2 = this - M3, g2 = O.m(this, M3);
963
- return g2 = ($2 = {}, $2[c] = g2 / 12, $2[f] = g2, $2[h] = g2 / 3, $2[o] = (v2 - m3) / 6048e5, $2[a] = (v2 - m3) / 864e5, $2[u] = v2 / n, $2[s] = v2 / e2, $2[i2] = v2 / t, $2)[y2] || v2, l2 ? g2 : O.a(g2);
964
- }, m2.daysInMonth = function() {
965
- return this.endOf(f).$D;
966
- }, m2.$locale = function() {
967
- return D[this.$L];
968
- }, m2.locale = function(t2, e3) {
969
- if (!t2)
970
- return this.$L;
971
- var n2 = this.clone(), r2 = S(t2, e3, !0);
972
- return r2 && (n2.$L = r2), n2;
973
- }, m2.clone = function() {
974
- return O.w(this.$d, this);
975
- }, m2.toDate = function() {
976
- return new Date(this.valueOf());
977
- }, m2.toJSON = function() {
978
- return this.isValid() ? this.toISOString() : null;
979
- }, m2.toISOString = function() {
980
- return this.$d.toISOString();
981
- }, m2.toString = function() {
982
- return this.$d.toUTCString();
983
- }, M2;
984
- }(), T = _.prototype;
985
- return w.prototype = T, [["$ms", r], ["$s", i2], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function(t2) {
986
- T[t2[1]] = function(e3) {
987
- return this.$g(e3, t2[0], t2[1]);
896
+ return new Date(e3);
897
+ }(t2), this.$x = t2.x || {}, this.init();
898
+ }, m2.init = function() {
899
+ var t2 = this.$d;
900
+ this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
901
+ }, m2.$utils = function() {
902
+ return O;
903
+ }, m2.isValid = function() {
904
+ return this.$d.toString() !== l;
905
+ }, m2.isSame = function(t2, e3) {
906
+ var n2 = w(t2);
907
+ return this.startOf(e3) <= n2 && n2 <= this.endOf(e3);
908
+ }, m2.isAfter = function(t2, e3) {
909
+ return w(t2) < this.startOf(e3);
910
+ }, m2.isBefore = function(t2, e3) {
911
+ return this.endOf(e3) < w(t2);
912
+ }, m2.$g = function(t2, e3, n2) {
913
+ return O.u(t2) ? this[e3] : this.set(n2, t2);
914
+ }, m2.unix = function() {
915
+ return Math.floor(this.valueOf() / 1e3);
916
+ }, m2.valueOf = function() {
917
+ return this.$d.getTime();
918
+ }, m2.startOf = function(t2, e3) {
919
+ var n2 = this, r2 = !!O.u(e3) || e3, h2 = O.p(t2), l2 = function(t3, e4) {
920
+ var i3 = O.w(n2.$u ? Date.UTC(n2.$y, e4, t3) : new Date(n2.$y, e4, t3), n2);
921
+ return r2 ? i3 : i3.endOf(a);
922
+ }, $2 = function(t3, e4) {
923
+ return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n2);
924
+ }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
925
+ switch (h2) {
926
+ case c:
927
+ return r2 ? l2(1, 0) : l2(31, 11);
928
+ case f:
929
+ return r2 ? l2(1, M3) : l2(0, M3 + 1);
930
+ case o:
931
+ var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
932
+ return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
933
+ case a:
934
+ case d:
935
+ return $2(v2 + "Hours", 0);
936
+ case u:
937
+ return $2(v2 + "Minutes", 1);
938
+ case s:
939
+ return $2(v2 + "Seconds", 2);
940
+ case i2:
941
+ return $2(v2 + "Milliseconds", 3);
942
+ default:
943
+ return this.clone();
944
+ }
945
+ }, m2.endOf = function(t2) {
946
+ return this.startOf(t2, !1);
947
+ }, m2.$set = function(t2, e3) {
948
+ var n2, o2 = O.p(t2), h2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = h2 + "Date", n2[d] = h2 + "Date", n2[f] = h2 + "Month", n2[c] = h2 + "FullYear", n2[u] = h2 + "Hours", n2[s] = h2 + "Minutes", n2[i2] = h2 + "Seconds", n2[r] = h2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e3 - this.$W) : e3;
949
+ if (o2 === f || o2 === c) {
950
+ var y2 = this.clone().set(d, 1);
951
+ y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
952
+ } else
953
+ l2 && this.$d[l2]($2);
954
+ return this.init(), this;
955
+ }, m2.set = function(t2, e3) {
956
+ return this.clone().$set(t2, e3);
957
+ }, m2.get = function(t2) {
958
+ return this[O.p(t2)]();
959
+ }, m2.add = function(r2, h2) {
960
+ var d2, l2 = this;
961
+ r2 = Number(r2);
962
+ var $2 = O.p(h2), y2 = function(t2) {
963
+ var e3 = w(l2);
964
+ return O.w(e3.date(e3.date() + Math.round(t2 * r2)), l2);
988
965
  };
989
- }), w.extend = function(t2, e3) {
990
- return t2.$i || (t2(e3, _, w), t2.$i = !0), w;
991
- }, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
992
- return w(1e3 * t2);
993
- }, w.en = D[g], w.Ls = D, w.p = {}, w;
994
- });
995
- }(dayjs_min)), dayjs_minExports$1;
996
- }
997
- var dayjs_minExports = requireDayjs_min();
998
- const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
966
+ if ($2 === f)
967
+ return this.set(f, this.$M + r2);
968
+ if ($2 === c)
969
+ return this.set(c, this.$y + r2);
970
+ if ($2 === a)
971
+ return y2(1);
972
+ if ($2 === o)
973
+ return y2(7);
974
+ var M3 = (d2 = {}, d2[s] = e2, d2[u] = n, d2[i2] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
975
+ return O.w(m3, this);
976
+ }, m2.subtract = function(t2, e3) {
977
+ return this.add(-1 * t2, e3);
978
+ }, m2.format = function(t2) {
979
+ var e3 = this, n2 = this.$locale();
980
+ if (!this.isValid())
981
+ return n2.invalidDate || l;
982
+ var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i3 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, f2 = n2.months, h2 = function(t3, n3, i4, s3) {
983
+ return t3 && (t3[n3] || t3(e3, r2)) || i4[n3].slice(0, s3);
984
+ }, c2 = function(t3) {
985
+ return O.s(s2 % 12 || 12, t3, "0");
986
+ }, d2 = n2.meridiem || function(t3, e4, n3) {
987
+ var r3 = t3 < 12 ? "AM" : "PM";
988
+ return n3 ? r3.toLowerCase() : r3;
989
+ }, $2 = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: a2 + 1, MM: O.s(a2 + 1, 2, "0"), MMM: h2(n2.monthsShort, a2, f2, 3), MMMM: h2(f2, a2), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: h2(n2.weekdaysMin, this.$W, o2, 2), ddd: h2(n2.weekdaysShort, this.$W, o2, 3), dddd: o2[this.$W], H: String(s2), HH: O.s(s2, 2, "0"), h: c2(1), hh: c2(2), a: d2(s2, u2, !0), A: d2(s2, u2, !1), m: String(u2), mm: O.s(u2, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: i3 };
990
+ return r2.replace(y, function(t3, e4) {
991
+ return e4 || $2[t3] || i3.replace(":", "");
992
+ });
993
+ }, m2.utcOffset = function() {
994
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
995
+ }, m2.diff = function(r2, d2, l2) {
996
+ var $2, y2 = O.p(d2), M3 = w(r2), m3 = (M3.utcOffset() - this.utcOffset()) * e2, v2 = this - M3, g2 = O.m(this, M3);
997
+ return g2 = ($2 = {}, $2[c] = g2 / 12, $2[f] = g2, $2[h] = g2 / 3, $2[o] = (v2 - m3) / 6048e5, $2[a] = (v2 - m3) / 864e5, $2[u] = v2 / n, $2[s] = v2 / e2, $2[i2] = v2 / t, $2)[y2] || v2, l2 ? g2 : O.a(g2);
998
+ }, m2.daysInMonth = function() {
999
+ return this.endOf(f).$D;
1000
+ }, m2.$locale = function() {
1001
+ return D[this.$L];
1002
+ }, m2.locale = function(t2, e3) {
1003
+ if (!t2)
1004
+ return this.$L;
1005
+ var n2 = this.clone(), r2 = S(t2, e3, !0);
1006
+ return r2 && (n2.$L = r2), n2;
1007
+ }, m2.clone = function() {
1008
+ return O.w(this.$d, this);
1009
+ }, m2.toDate = function() {
1010
+ return new Date(this.valueOf());
1011
+ }, m2.toJSON = function() {
1012
+ return this.isValid() ? this.toISOString() : null;
1013
+ }, m2.toISOString = function() {
1014
+ return this.$d.toISOString();
1015
+ }, m2.toString = function() {
1016
+ return this.$d.toUTCString();
1017
+ }, M2;
1018
+ }(), T = _.prototype;
1019
+ return w.prototype = T, [["$ms", r], ["$s", i2], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function(t2) {
1020
+ T[t2[1]] = function(e3) {
1021
+ return this.$g(e3, t2[0], t2[1]);
1022
+ };
1023
+ }), w.extend = function(t2, e3) {
1024
+ return t2.$i || (t2(e3, _, w), t2.$i = !0), w;
1025
+ }, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
1026
+ return w(1e3 * t2);
1027
+ }, w.en = D[g], w.Ls = D, w.p = {}, w;
1028
+ });
1029
+ })(dayjs_min);
1030
+ const dayjs = dayjs_minExports;
999
1031
  var zhCnExports = {}, zhCn = {
1000
1032
  get exports() {
1001
1033
  return zhCnExports;
@@ -1006,7 +1038,7 @@ var zhCnExports = {}, zhCn = {
1006
1038
  };
1007
1039
  (function(module, exports) {
1008
1040
  (function(e2, _) {
1009
- module.exports = _(requireDayjs_min());
1041
+ module.exports = _(dayjs_minExports);
1010
1042
  })(commonjsGlobal, function(e2) {
1011
1043
  function _(e3) {
1012
1044
  return e3 && typeof e3 == "object" && "default" in e3 ? e3 : { default: e3 };
@@ -2029,10 +2061,12 @@ const ChunkFileUploaderDrop_vue_vue_type_style_index_0_lang = "", __vue2_script$
2029
2061
  dropClass: ""
2030
2062
  };
2031
2063
  },
2032
- async mounted() {
2033
- await this.$nextTick();
2034
- const dropEle = this.$refs.drop, uploader = this.uploader.uploader;
2035
- uploader.assignDrop(dropEle), uploader.on("dragenter", this.onDragEnter), uploader.on("dragleave", this.onDragLeave), uploader.on("drop", this.onDrop);
2064
+ mounted() {
2065
+ return __async2(this, null, function* () {
2066
+ yield this.$nextTick();
2067
+ const dropEle = this.$refs.drop, uploader = this.uploader.uploader;
2068
+ uploader.assignDrop(dropEle), uploader.on("dragenter", this.onDragEnter), uploader.on("dragleave", this.onDragLeave), uploader.on("drop", this.onDrop);
2069
+ });
2036
2070
  },
2037
2071
  beforeDestroy() {
2038
2072
  const dropEle = this.$refs.drop, uploader = this.uploader.uploader;
@@ -2326,7 +2360,7 @@ const ChunkFileUploaderFile_vue_vue_type_style_index_0_lang = "", __vue2_script$
2326
2360
  let res = message;
2327
2361
  try {
2328
2362
  res = JSON.parse(message);
2329
- } catch {
2363
+ } catch (e2) {
2330
2364
  }
2331
2365
  this.response = res;
2332
2366
  },
@@ -2568,11 +2602,11 @@ var jsonlint = function() {
2568
2602
  return a2 = c2.lexer.lex() || 1, typeof a2 != "number" && (a2 = c2.symbols_[a2] || a2), a2;
2569
2603
  }
2570
2604
  var c2 = this, d2 = [0], e2 = [null], f = [], g = this.table, h = "", i2 = 0, j = 0, k = 0, l = 2, m = 1;
2571
- this.lexer.setInput(b2), this.lexer.yy = this.yy, this.yy.lexer = this.lexer, typeof this.lexer.yylloc > "u" && (this.lexer.yylloc = {});
2605
+ this.lexer.setInput(b2), this.lexer.yy = this.yy, this.yy.lexer = this.lexer, typeof this.lexer.yylloc == "undefined" && (this.lexer.yylloc = {});
2572
2606
  var n = this.lexer.yylloc;
2573
2607
  f.push(n), typeof this.yy.parseError == "function" && (this.parseError = this.yy.parseError);
2574
2608
  for (var q, r, s, t, v, w = {}, x, y, z, A; ; ) {
2575
- if (s = d2[d2.length - 1], this.defaultActions[s] ? t = this.defaultActions[s] : (q == null && (q = p()), t = g[s] && g[s][q]), typeof t > "u" || !t.length || !t[0]) {
2609
+ if (s = d2[d2.length - 1], this.defaultActions[s] ? t = this.defaultActions[s] : (q == null && (q = p()), t = g[s] && g[s][q]), typeof t == "undefined" || !t.length || !t[0]) {
2576
2610
  if (!k) {
2577
2611
  A = [];
2578
2612
  for (x in g[s])
@@ -2601,7 +2635,7 @@ Expecting ` + A.join(", ") + ", got '" + this.terminals_[q] + "'" : B = "Parse e
2601
2635
  d2.push(q), e2.push(this.lexer.yytext), f.push(this.lexer.yylloc), d2.push(t[1]), q = null, r ? (q = r, r = null) : (j = this.lexer.yyleng, h = this.lexer.yytext, i2 = this.lexer.yylineno, n = this.lexer.yylloc, k > 0 && k--);
2602
2636
  break;
2603
2637
  case 2:
2604
- if (y = this.productions_[t[1]][1], w.$ = e2[e2.length - y], w._$ = { first_line: f[f.length - (y || 1)].first_line, last_line: f[f.length - 1].last_line, first_column: f[f.length - (y || 1)].first_column, last_column: f[f.length - 1].last_column }, v = this.performAction.call(w, h, j, i2, this.yy, t[1], e2, f), typeof v < "u")
2638
+ if (y = this.productions_[t[1]][1], w.$ = e2[e2.length - y], w._$ = { first_line: f[f.length - (y || 1)].first_line, last_line: f[f.length - 1].last_line, first_column: f[f.length - (y || 1)].first_column, last_column: f[f.length - 1].last_column }, v = this.performAction.call(w, h, j, i2, this.yy, t[1], e2, f), typeof v != "undefined")
2605
2639
  return v;
2606
2640
  y && (d2 = d2.slice(0, -1 * y * 2), e2 = e2.slice(0, -1 * y), f = f.slice(0, -1 * y)), d2.push(this.productions_[t[1]][0]), e2.push(w.$), f.push(w._$), z = g[d2[d2.length - 2]][d2[d2.length - 1]], d2.push(z);
2607
2641
  break;
@@ -2654,7 +2688,7 @@ Expecting ` + A.join(", ") + ", got '" + this.terminals_[q] + "'" : B = "Parse e
2654
2688
  ` + this.showPosition(), { text: "", token: null, line: this.yylineno });
2655
2689
  }, lex: function() {
2656
2690
  var b2 = this.next();
2657
- return typeof b2 < "u" ? b2 : this.lex();
2691
+ return typeof b2 != "undefined" ? b2 : this.lex();
2658
2692
  }, begin: function(b2) {
2659
2693
  this.conditionStack.push(b2);
2660
2694
  }, popState: function() {
@@ -2718,14 +2752,14 @@ const format = (value2) => {
2718
2752
  if (value2)
2719
2753
  try {
2720
2754
  return JSON.stringify(JSON.parse(value2), null, 1);
2721
- } catch {
2755
+ } catch (e2) {
2722
2756
  }
2723
2757
  return value2;
2724
2758
  }, parse = (value2) => {
2725
2759
  if (value2)
2726
2760
  try {
2727
2761
  return JSON.stringify(JSON.parse(value2));
2728
- } catch {
2762
+ } catch (e2) {
2729
2763
  }
2730
2764
  return value2;
2731
2765
  }, __vue2_script$38 = {
@@ -2866,8 +2900,10 @@ const __vue2_script$37 = {
2866
2900
  },
2867
2901
  visible: {
2868
2902
  immediate: !0,
2869
- async handler(newVal) {
2870
- newVal ? (await this.$nextTick(), this.$refs.dropdown.referenceElm = this.anchor) : this.$refs.dropdown && this.$refs.dropdown.doDestroy(!0), this.showPicker = newVal;
2903
+ handler(newVal) {
2904
+ return __async2(this, null, function* () {
2905
+ newVal ? (yield this.$nextTick(), this.$refs.dropdown.referenceElm = this.anchor) : this.$refs.dropdown && this.$refs.dropdown.doDestroy(!0), this.showPicker = newVal;
2906
+ });
2871
2907
  }
2872
2908
  }
2873
2909
  },
@@ -4059,26 +4095,28 @@ function __vue2_injectStyles$31(context) {
4059
4095
  const Comment = /* @__PURE__ */ function() {
4060
4096
  return __component__$31.exports;
4061
4097
  }();
4062
- async function onClick(e2, props2, listeners) {
4063
- const { stop, prevent, message, loadable, loadingText, confirmable, confirmType, confirmText } = props2;
4064
- stop && e2.stopPropagation(), prevent && e2.preventDefault();
4065
- const { before, click, cancel, after } = listeners;
4066
- if (isFunction(click))
4067
- try {
4068
- let pass = !0;
4069
- if (isFunction(before) && (pass = await before(e2)), pass === !1)
4070
- return;
4071
- confirmable && await MessageBox.confirm(message || confirmText, { type: confirmType });
4072
- let loadingInstance;
4073
- loadable && (loadingInstance = Loading.service({ background: "rgba(0,0,0,0.3)", text: loadingText }));
4098
+ function onClick(e2, props2, listeners) {
4099
+ return __async2(this, null, function* () {
4100
+ const { stop, prevent, message, loadable, loadingText, confirmable, confirmType, confirmText } = props2;
4101
+ stop && e2.stopPropagation(), prevent && e2.preventDefault();
4102
+ const { before, click, cancel, after } = listeners;
4103
+ if (isFunction(click))
4074
4104
  try {
4075
- await click(e2);
4076
- } catch {
4105
+ let pass = !0;
4106
+ if (isFunction(before) && (pass = yield before(e2)), pass === !1)
4107
+ return;
4108
+ confirmable && (yield MessageBox.confirm(message || confirmText, { type: confirmType }));
4109
+ let loadingInstance;
4110
+ loadable && (loadingInstance = Loading.service({ background: "rgba(0,0,0,0.3)", text: loadingText }));
4111
+ try {
4112
+ yield click(e2);
4113
+ } catch (e3) {
4114
+ }
4115
+ loadable && loadingInstance.close(), isFunction(after) && (yield after(e2));
4116
+ } catch (e3) {
4117
+ isFunction(cancel) && (yield cancel(e3));
4077
4118
  }
4078
- loadable && loadingInstance.close(), isFunction(after) && await after(e2);
4079
- } catch (e3) {
4080
- isFunction(cancel) && await cancel(e3);
4081
- }
4119
+ });
4082
4120
  }
4083
4121
  const confirmableMixin = {
4084
4122
  functional: !0,
@@ -4122,11 +4160,10 @@ const confirmableMixin = {
4122
4160
  }
4123
4161
  },
4124
4162
  render(createElement, { props: props2, data: data2, children, listeners }) {
4125
- return createElement(props2.tag, {
4126
- ...data2,
4163
+ return createElement(props2.tag, __spreadProps(__spreadValues({}, data2), {
4127
4164
  on: { click: (e2) => onClick(e2, props2, listeners) },
4128
4165
  props: props2
4129
- }, children || props2.text);
4166
+ }), children || props2.text);
4130
4167
  }
4131
4168
  }, __vue2_script$30 = {
4132
4169
  name: "Confirmable",
@@ -4516,12 +4553,11 @@ const __vue2_script$2Z = {
4516
4553
  this.c || (this.c = new CountUp$1(
4517
4554
  this.$el,
4518
4555
  this.end,
4519
- {
4520
- ...this.options,
4556
+ __spreadProps(__spreadValues({}, this.options), {
4521
4557
  decimal: this.decimals,
4522
4558
  duration: this.duration,
4523
4559
  startVal: this.start
4524
- }
4560
+ })
4525
4561
  ), this.c.start(() => {
4526
4562
  this.callback(this.c);
4527
4563
  }));
@@ -4635,12 +4671,12 @@ const __vue2_script$2Y = {
4635
4671
  },
4636
4672
  computed: {
4637
4673
  innerOptions() {
4638
- return {
4639
- ...this.options || {},
4674
+ const options2 = this.options || {};
4675
+ return __spreadProps(__spreadValues({}, options2), {
4640
4676
  className: this.theme || "os-theme-dark",
4641
4677
  scrollbars: { autoHide: "l", autoHideDelay: 100 },
4642
4678
  callbacks: { onScroll: this.internalScroll }
4643
- };
4679
+ });
4644
4680
  }
4645
4681
  },
4646
4682
  watch: {
@@ -4661,7 +4697,8 @@ const __vue2_script$2Y = {
4661
4697
  );
4662
4698
  },
4663
4699
  activated() {
4664
- this.$refs.viewport.scrollTop = this.scrollOffset ?? 0;
4700
+ var _a;
4701
+ this.$refs.viewport.scrollTop = (_a = this.scrollOffset) != null ? _a : 0;
4665
4702
  },
4666
4703
  deactivated() {
4667
4704
  this.scrollOffset = this.$refs.viewport.scrollTop;
@@ -7707,7 +7744,7 @@ const EditableProgress = /* @__PURE__ */ function() {
7707
7744
  return __component__$2C.exports;
7708
7745
  }();
7709
7746
  var MapShim = function() {
7710
- if (typeof Map < "u")
7747
+ if (typeof Map != "undefined")
7711
7748
  return Map;
7712
7749
  function getIndex(arr, key2) {
7713
7750
  var result2 = -1;
@@ -7752,8 +7789,8 @@ var MapShim = function() {
7752
7789
  }, class_1;
7753
7790
  }()
7754
7791
  );
7755
- }(), isBrowser = typeof window < "u" && typeof document < "u" && window.document === document, global$1 = function() {
7756
- return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
7792
+ }(), isBrowser = typeof window != "undefined" && typeof document != "undefined" && window.document === document, global$1 = function() {
7793
+ return typeof global != "undefined" && global.Math === Math ? global : typeof self != "undefined" && self.Math === Math ? self : typeof window != "undefined" && window.Math === Math ? window : Function("return this")();
7757
7794
  }(), requestAnimationFrame$1 = function() {
7758
7795
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(global$1) : function(callback) {
7759
7796
  return setTimeout(function() {
@@ -7781,7 +7818,7 @@ function throttle(callback, delay2) {
7781
7818
  }
7782
7819
  return proxy;
7783
7820
  }
7784
- var REFRESH_DELAY = 20, transitionKeys = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], mutationObserverSupported = typeof MutationObserver < "u", ResizeObserverController = (
7821
+ var REFRESH_DELAY = 20, transitionKeys = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], mutationObserverSupported = typeof MutationObserver != "undefined", ResizeObserverController = (
7785
7822
  /** @class */
7786
7823
  function() {
7787
7824
  function ResizeObserverController2() {
@@ -7869,7 +7906,7 @@ function getHTMLElementContentRect(target) {
7869
7906
  return createRectInit(paddings.left, paddings.top, width, height);
7870
7907
  }
7871
7908
  var isSVGGraphicsElement = function() {
7872
- return typeof SVGGraphicsElement < "u" ? function(target) {
7909
+ return typeof SVGGraphicsElement != "undefined" ? function(target) {
7873
7910
  return target instanceof getWindowOf(target).SVGGraphicsElement;
7874
7911
  } : function(target) {
7875
7912
  return target instanceof getWindowOf(target).SVGElement && typeof target.getBBox == "function";
@@ -7882,7 +7919,7 @@ function getContentRect(target) {
7882
7919
  return isBrowser ? isSVGGraphicsElement(target) ? getSVGContentRect(target) : getHTMLElementContentRect(target) : emptyRect;
7883
7920
  }
7884
7921
  function createReadOnlyRect(_a) {
7885
- var x = _a.x, y = _a.y, width = _a.width, height = _a.height, Constr = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, rect = Object.create(Constr.prototype);
7922
+ var x = _a.x, y = _a.y, width = _a.width, height = _a.height, Constr = typeof DOMRectReadOnly != "undefined" ? DOMRectReadOnly : Object, rect = Object.create(Constr.prototype);
7886
7923
  return defineConfigurable(rect, {
7887
7924
  x,
7888
7925
  y,
@@ -7931,7 +7968,7 @@ var ResizeObservation = (
7931
7968
  return ResizeObserverSPI2.prototype.observe = function(target) {
7932
7969
  if (!arguments.length)
7933
7970
  throw new TypeError("1 argument required, but only 0 present.");
7934
- if (!(typeof Element > "u" || !(Element instanceof Object))) {
7971
+ if (!(typeof Element == "undefined" || !(Element instanceof Object))) {
7935
7972
  if (!(target instanceof getWindowOf(target).Element))
7936
7973
  throw new TypeError('parameter 1 is not of type "Element".');
7937
7974
  var observations = this.observations_;
@@ -7940,7 +7977,7 @@ var ResizeObservation = (
7940
7977
  }, ResizeObserverSPI2.prototype.unobserve = function(target) {
7941
7978
  if (!arguments.length)
7942
7979
  throw new TypeError("1 argument required, but only 0 present.");
7943
- if (!(typeof Element > "u" || !(Element instanceof Object))) {
7980
+ if (!(typeof Element == "undefined" || !(Element instanceof Object))) {
7944
7981
  if (!(target instanceof getWindowOf(target).Element))
7945
7982
  throw new TypeError('parameter 1 is not of type "Element".');
7946
7983
  var observations = this.observations_;
@@ -7966,7 +8003,7 @@ var ResizeObservation = (
7966
8003
  return this.activeObservations_.length > 0;
7967
8004
  }, ResizeObserverSPI2;
7968
8005
  }()
7969
- ), observers = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new MapShim(), ResizeObserver$1 = (
8006
+ ), observers = typeof WeakMap != "undefined" ? /* @__PURE__ */ new WeakMap() : new MapShim(), ResizeObserver$1 = (
7970
8007
  /** @class */
7971
8008
  function() {
7972
8009
  function ResizeObserver2(callback) {
@@ -7991,9 +8028,9 @@ var ResizeObservation = (
7991
8028
  };
7992
8029
  });
7993
8030
  var index$1 = function() {
7994
- return typeof global$1.ResizeObserver < "u" ? global$1.ResizeObserver : ResizeObserver$1;
8031
+ return typeof global$1.ResizeObserver != "undefined" ? global$1.ResizeObserver : ResizeObserver$1;
7995
8032
  }();
7996
- const isServer = typeof window > "u", resizeHandler = (entries) => {
8033
+ const isServer = typeof window == "undefined", resizeHandler = (entries) => {
7997
8034
  for (const entry of entries) {
7998
8035
  const listeners = entry.target.__resizeListeners__ || [];
7999
8036
  listeners.length && listeners.forEach((fn) => {
@@ -8503,45 +8540,51 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8503
8540
  resize() {
8504
8541
  isVerticalScrollbarVisible(this.$refs.treeWrapper) ? this.right = 4 + scrollbarWidth : this.right = 4;
8505
8542
  },
8506
- async showContextMenu(event2, data2, node) {
8507
- data2.contextmenu === !1 || data2.id === -1 || data2.id === 0 || data2.edit === !0 || this.contextMenu && (this.curNode = node, this.curData = data2, this.showMenu = !0, this.$refs.tree.setCurrentKey(data2.id), await this.$nextTick(), this.position = computePosition(event2, this.$refs.contextMenu), window.addEventListener("click", this.hideContextMenu));
8543
+ showContextMenu(event2, data2, node) {
8544
+ return __async2(this, null, function* () {
8545
+ data2.contextmenu === !1 || data2.id === -1 || data2.id === 0 || data2.edit === !0 || this.contextMenu && (this.curNode = node, this.curData = data2, this.showMenu = !0, this.$refs.tree.setCurrentKey(data2.id), yield this.$nextTick(), this.position = computePosition(event2, this.$refs.contextMenu), window.addEventListener("click", this.hideContextMenu));
8546
+ });
8508
8547
  },
8509
8548
  hideContextMenu() {
8510
8549
  this.showMenu = !1, window.removeEventListener("click", this.hideContextMenu);
8511
8550
  },
8512
- async tryFetch() {
8513
- var _a;
8514
- if (this.lazy === !1 && this.fetchApi) {
8515
- const res = await this.fetchApi(((_a = this.rootNode) == null ? void 0 : _a.id) ?? -1, {});
8516
- if (isPlainObject(res.data) && (res.data = [res.data]), res.data = res.data || [], this.empty = res.data.length === 0, isPlainObject(this.customRootNode)) {
8517
- const data2 = cloneDeep(this.customRootNode);
8518
- data2[this.treeProps.children || "children"] = res.data, this.treeData = [data2];
8519
- } else if (isFunction(this.customRootNode)) {
8520
- const data2 = this.customRootNode(res.data);
8521
- data2[this.treeProps.children || "children"] = res.data, this.treeData = isPlainObject(data2) ? [data2] : data2;
8522
- } else
8523
- this.treeData = res.data;
8524
- }
8551
+ tryFetch() {
8552
+ return __async2(this, null, function* () {
8553
+ var _a, _b;
8554
+ if (this.lazy === !1 && this.fetchApi) {
8555
+ const res = yield this.fetchApi((_b = (_a = this.rootNode) == null ? void 0 : _a.id) != null ? _b : -1, {});
8556
+ if (isPlainObject(res.data) && (res.data = [res.data]), res.data = res.data || [], this.empty = res.data.length === 0, isPlainObject(this.customRootNode)) {
8557
+ const data2 = cloneDeep(this.customRootNode);
8558
+ data2[this.treeProps.children || "children"] = res.data, this.treeData = [data2];
8559
+ } else if (isFunction(this.customRootNode)) {
8560
+ const data2 = this.customRootNode(res.data);
8561
+ data2[this.treeProps.children || "children"] = res.data, this.treeData = isPlainObject(data2) ? [data2] : data2;
8562
+ } else
8563
+ this.treeData = res.data;
8564
+ }
8565
+ });
8525
8566
  },
8526
- async loadNode(node, resolve2) {
8527
- var _a, _b, _c;
8528
- if (node.level === 0) {
8529
- const res = await this.fetchApi(((_a = this.rootNode) == null ? void 0 : _a.id) ?? -1, node);
8530
- if (this.empty = res.data.length === 0, isPlainObject(this.customRootNode)) {
8531
- const data2 = cloneDeep(this.customRootNode);
8532
- data2[this.treeProps.children || "children"] = res.data, resolve2([data2]);
8533
- } else if (isFunction(this.customRootNode)) {
8534
- const data2 = this.customRootNode(res.data);
8535
- data2[this.treeProps.children || "children"] = res.data, this.treeData = isPlainObject(data2) ? [data2] : data2;
8536
- } else
8537
- resolve2(res.data);
8538
- await this.$nextTick(), this.$emit("root-node-loaded", res.data), this.defaultExpandedKeys ? this.expandedKeys = [(_b = res == null ? void 0 : res.data[0]) == null ? void 0 : _b.id, ...this.defaultExpandedKeys] : this.expandFirstNode && (this.expandedKeys = [(_c = res == null ? void 0 : res.data[0]) == null ? void 0 : _c.id]);
8539
- } else {
8540
- if (node.leaf || node.data.isTempNode)
8541
- return resolve2([]);
8542
- const res = await this.fetchApi(node.data.id, node);
8543
- resolve2(res.data), await this.$nextTick(), this.$emit("node-loaded", res.data);
8544
- }
8567
+ loadNode(node, resolve2) {
8568
+ return __async2(this, null, function* () {
8569
+ var _a, _b, _c, _d;
8570
+ if (node.level === 0) {
8571
+ const res = yield this.fetchApi((_b = (_a = this.rootNode) == null ? void 0 : _a.id) != null ? _b : -1, node);
8572
+ if (this.empty = res.data.length === 0, isPlainObject(this.customRootNode)) {
8573
+ const data2 = cloneDeep(this.customRootNode);
8574
+ data2[this.treeProps.children || "children"] = res.data, resolve2([data2]);
8575
+ } else if (isFunction(this.customRootNode)) {
8576
+ const data2 = this.customRootNode(res.data);
8577
+ data2[this.treeProps.children || "children"] = res.data, this.treeData = isPlainObject(data2) ? [data2] : data2;
8578
+ } else
8579
+ resolve2(res.data);
8580
+ yield this.$nextTick(), this.$emit("root-node-loaded", res.data), this.defaultExpandedKeys ? this.expandedKeys = [(_c = res == null ? void 0 : res.data[0]) == null ? void 0 : _c.id, ...this.defaultExpandedKeys] : this.expandFirstNode && (this.expandedKeys = [(_d = res == null ? void 0 : res.data[0]) == null ? void 0 : _d.id]);
8581
+ } else {
8582
+ if (node.leaf || node.data.isTempNode)
8583
+ return resolve2([]);
8584
+ const res = yield this.fetchApi(node.data.id, node);
8585
+ resolve2(res.data), yield this.$nextTick(), this.$emit("node-loaded", res.data);
8586
+ }
8587
+ });
8545
8588
  },
8546
8589
  clear() {
8547
8590
  this.cancelEdit(), this.removeNewNode();
@@ -8555,67 +8598,68 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8555
8598
  cancelEdit() {
8556
8599
  this.editData && (isUndefined(this.editData.edit) ? this.$set(this.editData, "edit", !0) : this.editData.edit = !1);
8557
8600
  },
8558
- async editNode(node, data2) {
8559
- !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.editData = data2, this.text = data2[this.treeProps.label], isUndefined(data2.edit) ? this.$set(data2, "edit", !0) : data2.edit = !0, await this.$nextTick(), this.$refs.labelTxt.focus()) : await this.$prompt(`请输入新的${this.label}名:`, {
8560
- ...this.defaultOptions,
8561
- inputValue: data2[this.treeProps.label],
8562
- beforeClose: async (action, instance, done) => {
8563
- if (action === "confirm") {
8564
- try {
8565
- instance.confirmButtonLoading = !0, instance.confirmButtonText = "处理中...", this.text = instance.inputValue, await this.onConfirm(this.curNode, this.curData), done();
8566
- } catch {
8567
- instance.confirmButtonText = "确定";
8568
- }
8569
- instance.confirmButtonLoading = !1;
8570
- } else
8571
- done();
8572
- }
8573
- }).catch((_) => _);
8574
- },
8575
- async appendRootNode() {
8576
- this.text = "", !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.createNewChild(void 0), this.$refs.tree.root.insertChild({ data: this.newChild }, void 0, !0), await this.scrollIntoView(!0)) : await this.$prompt(`请输入${this.label}名:`, {
8577
- ...this.defaultOptions,
8578
- beforeClose: async (action, instance, done) => {
8579
- if (action === "confirm") {
8580
- try {
8581
- this.createNewChild(-1), instance.confirmButtonLoading = !0, instance.confirmButtonText = "处理中...";
8582
- const res = await this.saveApi(this.newNodeBuilder(instance.inputValue, { id: -1 }));
8583
- this.newChild[this.treeProps.label] = instance.inputValue, this.newChild.edit = !1, assignReactiveProperties(this.newChild, res.data), this.$refs.tree.root.insertChild({ data: this.newChild }, void 0, !0), await this.locateView(), done();
8584
- } catch {
8585
- instance.confirmButtonText = "确定";
8586
- }
8587
- instance.confirmButtonLoading = !1;
8588
- } else
8589
- done();
8590
- }
8591
- }).catch((_) => _);
8601
+ editNode(node, data2) {
8602
+ return __async2(this, null, function* () {
8603
+ !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.editData = data2, this.text = data2[this.treeProps.label], isUndefined(data2.edit) ? this.$set(data2, "edit", !0) : data2.edit = !0, yield this.$nextTick(), this.$refs.labelTxt.focus()) : yield this.$prompt(`请输入新的${this.label}名:`, __spreadProps(__spreadValues({}, this.defaultOptions), {
8604
+ inputValue: data2[this.treeProps.label],
8605
+ beforeClose: (action, instance, done) => __async2(this, null, function* () {
8606
+ if (action === "confirm") {
8607
+ try {
8608
+ instance.confirmButtonLoading = !0, instance.confirmButtonText = "处理中...", this.text = instance.inputValue, yield this.onConfirm(this.curNode, this.curData), done();
8609
+ } catch (e2) {
8610
+ instance.confirmButtonText = "确定";
8611
+ }
8612
+ instance.confirmButtonLoading = !1;
8613
+ } else
8614
+ done();
8615
+ })
8616
+ })).catch((_) => _);
8617
+ });
8618
+ },
8619
+ appendRootNode() {
8620
+ return __async2(this, null, function* () {
8621
+ this.text = "", !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.createNewChild(void 0), this.$refs.tree.root.insertChild({ data: this.newChild }, void 0, !0), yield this.scrollIntoView(!0)) : yield this.$prompt(`请输入${this.label}名:`, __spreadProps(__spreadValues({}, this.defaultOptions), {
8622
+ beforeClose: (action, instance, done) => __async2(this, null, function* () {
8623
+ if (action === "confirm") {
8624
+ try {
8625
+ this.createNewChild(-1), instance.confirmButtonLoading = !0, instance.confirmButtonText = "处理中...";
8626
+ const res = yield this.saveApi(this.newNodeBuilder(instance.inputValue, { id: -1 }));
8627
+ this.newChild[this.treeProps.label] = instance.inputValue, this.newChild.edit = !1, assignReactiveProperties(this.newChild, res.data), this.$refs.tree.root.insertChild({ data: this.newChild }, void 0, !0), yield this.locateView(), done();
8628
+ } catch (e2) {
8629
+ instance.confirmButtonText = "确定";
8630
+ }
8631
+ instance.confirmButtonLoading = !1;
8632
+ } else
8633
+ done();
8634
+ })
8635
+ })).catch((_) => _);
8636
+ });
8592
8637
  },
8593
8638
  appendChildNode(node) {
8594
8639
  this.text = "";
8595
8640
  const expanded = node.expanded;
8596
- node.expand(async () => {
8597
- !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.createNewChild(node.data.id), this.$refs.tree.append(this.newChild, node), await this.scrollIntoView(expanded)) : await this.$prompt(`请输入${this.label}名:`, {
8598
- ...this.defaultOptions,
8599
- beforeClose: async (action, instance, done) => {
8641
+ node.expand(() => __async2(this, null, function* () {
8642
+ !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.createNewChild(node.data.id), this.$refs.tree.append(this.newChild, node), yield this.scrollIntoView(expanded)) : yield this.$prompt(`请输入${this.label}名:`, __spreadProps(__spreadValues({}, this.defaultOptions), {
8643
+ beforeClose: (action, instance, done) => __async2(this, null, function* () {
8600
8644
  if (action === "confirm") {
8601
8645
  try {
8602
8646
  this.createNewChild(node.data.id), instance.confirmButtonLoading = !0, instance.confirmButtonText = "处理中...";
8603
- const res = await this.saveApi(this.newNodeBuilder(instance.inputValue, node.data));
8604
- this.newChild[this.treeProps.label] = instance.inputValue, this.newChild.edit = !1, assignReactiveProperties(this.newChild, res.data), this.$refs.tree.append(this.newChild, node), await this.locateView(), done();
8605
- } catch {
8647
+ const res = yield this.saveApi(this.newNodeBuilder(instance.inputValue, node.data));
8648
+ this.newChild[this.treeProps.label] = instance.inputValue, this.newChild.edit = !1, assignReactiveProperties(this.newChild, res.data), this.$refs.tree.append(this.newChild, node), yield this.locateView(), done();
8649
+ } catch (e2) {
8606
8650
  instance.confirmButtonText = "确定";
8607
8651
  }
8608
8652
  instance.confirmButtonLoading = !1;
8609
8653
  } else
8610
8654
  done();
8611
- }
8612
- }).catch((_) => _);
8613
- });
8655
+ })
8656
+ })).catch((_) => _);
8657
+ }));
8614
8658
  },
8615
8659
  appendChildNodeWithData(node, parentId, label) {
8616
8660
  this.text = "";
8617
8661
  const expanded = node.expanded;
8618
- node.expand(async () => {
8662
+ node.expand(() => __async2(this, null, function* () {
8619
8663
  this.clear(), this.newChild = {
8620
8664
  id: -1,
8621
8665
  parentId,
@@ -8623,24 +8667,30 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8623
8667
  edit: !1,
8624
8668
  isTempNode: !0,
8625
8669
  hasChildren: !1
8626
- }, this.$refs.tree.append(this.newChild, node), await this.scrollIntoView(expanded);
8627
- });
8670
+ }, this.$refs.tree.append(this.newChild, node), yield this.scrollIntoView(expanded);
8671
+ }));
8628
8672
  },
8629
8673
  appendPeerNode(node) {
8630
8674
  node.parent && node.parent.level !== 0 ? this.appendChildNode(node.parent) : this.appendRootNode();
8631
8675
  },
8632
- async addRootNode(data2) {
8633
- this.$refs.tree.remove(data2), await this.$nextTick(), this.$refs.tree.root.insertChild({ data: data2 }, void 0, !0);
8676
+ addRootNode(data2) {
8677
+ return __async2(this, null, function* () {
8678
+ this.$refs.tree.remove(data2), yield this.$nextTick(), this.$refs.tree.root.insertChild({ data: data2 }, void 0, !0);
8679
+ });
8634
8680
  },
8635
- async addChildNode(data2) {
8636
- this.curNode && this.curNode.level !== 0 ? this.curNode.expand(async () => {
8637
- this.$refs.tree.remove(data2), await this.$nextTick(), this.$refs.tree.append(data2, this.curNode);
8638
- }) : await this.addRootNode(data2);
8681
+ addChildNode(data2) {
8682
+ return __async2(this, null, function* () {
8683
+ this.curNode && this.curNode.level !== 0 ? this.curNode.expand(() => __async2(this, null, function* () {
8684
+ this.$refs.tree.remove(data2), yield this.$nextTick(), this.$refs.tree.append(data2, this.curNode);
8685
+ })) : yield this.addRootNode(data2);
8686
+ });
8639
8687
  },
8640
- async addPeerNode(data2) {
8641
- this.curNode && this.curNode.parent && this.curNode.parent.level !== 0 ? this.curNode.parent.expand(async () => {
8642
- this.$refs.tree.remove(data2), await this.$nextTick(), this.$refs.tree.append(data2, this.curNode.parent);
8643
- }) : await this.addRootNode(data2);
8688
+ addPeerNode(data2) {
8689
+ return __async2(this, null, function* () {
8690
+ this.curNode && this.curNode.parent && this.curNode.parent.level !== 0 ? this.curNode.parent.expand(() => __async2(this, null, function* () {
8691
+ this.$refs.tree.remove(data2), yield this.$nextTick(), this.$refs.tree.append(data2, this.curNode.parent);
8692
+ })) : yield this.addRootNode(data2);
8693
+ });
8644
8694
  },
8645
8695
  updateNode(data2) {
8646
8696
  const node = this.$refs.tree.getNode(data2);
@@ -8659,60 +8709,66 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8659
8709
  hasChildren: !1
8660
8710
  }, this.$emit("create-new-node", this.newChild);
8661
8711
  },
8662
- async removeNodeModal(node) {
8663
- await this.$confirm(
8664
- `你确定要删除${this.label}[<span class="break-word" style="color: orange">${node.data[this.treeProps.label]}</span>]吗?`,
8665
- "系统提示",
8666
- {
8667
- type: "warning",
8668
- modal: !0,
8669
- dangerouslyUseHTMLString: !0,
8670
- iconClass: "el-icon-question",
8671
- closeOnClickModal: !1,
8672
- confirmButtonClass: "el-button--danger",
8673
- cancelButtonClass: "el-button--primary is-plain",
8674
- beforeClose: async (action, instance, done) => {
8675
- if (action === "confirm") {
8676
- try {
8677
- instance.confirmButtonLoading = !0, instance.confirmButtonText = "删除...";
8678
- const parentNode = node.parent, res = await this.deleteApi(node.data.id);
8679
- res.code === 0 ? (this.$message.success("删除成功!"), this.$refs.tree.remove(node), this.$emit("node-deleted", parentNode, node.data), done()) : this.$message.error(res.message);
8680
- } catch {
8681
- }
8682
- instance.confirmButtonText = "确定", instance.confirmButtonLoading = !1;
8683
- } else
8684
- done();
8712
+ removeNodeModal(node) {
8713
+ return __async2(this, null, function* () {
8714
+ yield this.$confirm(
8715
+ `你确定要删除${this.label}[<span class="break-word" style="color: orange">${node.data[this.treeProps.label]}</span>]吗?`,
8716
+ "系统提示",
8717
+ {
8718
+ type: "warning",
8719
+ modal: !0,
8720
+ dangerouslyUseHTMLString: !0,
8721
+ iconClass: "el-icon-question",
8722
+ closeOnClickModal: !1,
8723
+ confirmButtonClass: "el-button--danger",
8724
+ cancelButtonClass: "el-button--primary is-plain",
8725
+ beforeClose: (action, instance, done) => __async2(this, null, function* () {
8726
+ if (action === "confirm") {
8727
+ try {
8728
+ instance.confirmButtonLoading = !0, instance.confirmButtonText = "删除...";
8729
+ const parentNode = node.parent, res = yield this.deleteApi(node.data.id);
8730
+ res.code === 0 ? (this.$message.success("删除成功!"), this.$refs.tree.remove(node), this.$emit("node-deleted", parentNode, node.data), done()) : this.$message.error(res.message);
8731
+ } catch (_) {
8732
+ }
8733
+ instance.confirmButtonText = "确定", instance.confirmButtonLoading = !1;
8734
+ } else
8735
+ done();
8736
+ })
8685
8737
  }
8686
- }
8687
- ).catch((_) => _);
8738
+ ).catch((_) => _);
8739
+ });
8688
8740
  },
8689
- async removeNode(node) {
8690
- try {
8691
- const parentNode = node.parent;
8692
- if (this.deleteApi) {
8693
- const res = await this.deleteApi(node.data.id);
8694
- res.code === 0 ? (this.$message.success("删除成功!"), this.$refs.tree.remove(node), this.$emit("node-deleted", parentNode, node.data)) : this.$message.error(res.message);
8695
- } else
8696
- this.$refs.tree.remove(node);
8697
- } catch {
8698
- }
8741
+ removeNode(node) {
8742
+ return __async2(this, null, function* () {
8743
+ try {
8744
+ const parentNode = node.parent;
8745
+ if (this.deleteApi) {
8746
+ const res = yield this.deleteApi(node.data.id);
8747
+ res.code === 0 ? (this.$message.success("删除成功!"), this.$refs.tree.remove(node), this.$emit("node-deleted", parentNode, node.data)) : this.$message.error(res.message);
8748
+ } else
8749
+ this.$refs.tree.remove(node);
8750
+ } catch (e2) {
8751
+ }
8752
+ });
8699
8753
  },
8700
- async onConfirm(node, data2) {
8701
- if (data2[this.treeProps.label] === this.text || !isNotEmpty(this.text)) {
8702
- this.clear();
8703
- return;
8704
- }
8705
- isUndefined(data2.loading) ? this.$set(data2, "loading", !0) : data2.loading = !0;
8706
- try {
8707
- if (this.loading = !0, data2.id === -1) {
8708
- const res = await this.saveApi(this.newNodeBuilder(this.text, node.parent.data || { id: -1 })), old = fastClone(data2);
8709
- assignReactiveProperties(data2, { ...res.data, isTempNode: !1 }), this.$emit("node-added", data2, old, node), this.registerNode(node);
8710
- } else
8711
- await this.updateApi({ ...data2, [this.treeProps.label]: this.text });
8712
- data2[this.treeProps.label] = this.text, data2.edit = !1, this.$emit("node-updated", data2, node), this.text = "";
8713
- } catch {
8714
- }
8715
- data2.loading = !1, this.loading = !1;
8754
+ onConfirm(node, data2) {
8755
+ return __async2(this, null, function* () {
8756
+ if (data2[this.treeProps.label] === this.text || !isNotEmpty(this.text)) {
8757
+ this.clear();
8758
+ return;
8759
+ }
8760
+ isUndefined(data2.loading) ? this.$set(data2, "loading", !0) : data2.loading = !0;
8761
+ try {
8762
+ if (this.loading = !0, data2.id === -1) {
8763
+ const res = yield this.saveApi(this.newNodeBuilder(this.text, node.parent.data || { id: -1 })), old = fastClone(data2);
8764
+ assignReactiveProperties(data2, __spreadProps(__spreadValues({}, res.data), { isTempNode: !1 })), this.$emit("node-added", data2, old, node), this.registerNode(node);
8765
+ } else
8766
+ yield this.updateApi(__spreadProps(__spreadValues({}, data2), { [this.treeProps.label]: this.text }));
8767
+ data2[this.treeProps.label] = this.text, data2.edit = !1, this.$emit("node-updated", data2, node), this.text = "";
8768
+ } catch (e2) {
8769
+ }
8770
+ data2.loading = !1, this.loading = !1;
8771
+ });
8716
8772
  },
8717
8773
  onCancel(node, data2) {
8718
8774
  data2.id === -1 ? this.$refs.tree.remove(node) : data2.edit = !1, this.text = "";
@@ -8723,14 +8779,18 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8723
8779
  getCurrentNode() {
8724
8780
  return this.$refs.tree.getCurrentNode();
8725
8781
  },
8726
- async locateView() {
8727
- await this.$nextTick();
8728
- const el = this.$el.querySelector(`[data-id="${this.newChild.id}"]`);
8729
- el && el.scrollIntoView();
8782
+ locateView() {
8783
+ return __async2(this, null, function* () {
8784
+ yield this.$nextTick();
8785
+ const el = this.$el.querySelector(`[data-id="${this.newChild.id}"]`);
8786
+ el && el.scrollIntoView();
8787
+ });
8730
8788
  },
8731
- async scrollIntoView(expanded) {
8732
- var _a, _b;
8733
- await this.$nextTick(), expanded || await delay(300), (_b = (_a = this.$refs) == null ? void 0 : _a.labelTxt) == null || _b.focus();
8789
+ scrollIntoView(expanded) {
8790
+ return __async2(this, null, function* () {
8791
+ var _a, _b;
8792
+ yield this.$nextTick(), expanded || (yield delay(300)), (_b = (_a = this.$refs) == null ? void 0 : _a.labelTxt) == null || _b.focus();
8793
+ });
8734
8794
  },
8735
8795
  inputKeyup(event2, node, data2) {
8736
8796
  event2.keyCode === 13 && this.onConfirm(node, data2), event2.keyCode === 27 && this.clear();
@@ -8766,8 +8826,10 @@ const EditableTree_vue_vue_type_style_index_0_lang = "", __vue2_script$2B = {
8766
8826
  registerNode(node) {
8767
8827
  node.store.registerNode(node), delete node.store.nodesMap[-1];
8768
8828
  },
8769
- async reloadTree() {
8770
- this.lazy ? this.treeKey = Date.now() : await this.tryFetch();
8829
+ reloadTree() {
8830
+ return __async2(this, null, function* () {
8831
+ this.lazy ? this.treeKey = Date.now() : yield this.tryFetch();
8832
+ });
8771
8833
  }
8772
8834
  }
8773
8835
  }, __cssModules$2B = {};
@@ -9385,7 +9447,7 @@ const ErrorView = /* @__PURE__ */ function() {
9385
9447
  },
9386
9448
  render(createElement, { data: data2, children, props: props2 }) {
9387
9449
  const viewClass = getClass(data2.class, "flex-column");
9388
- return props2.center || props2.horizonCenter && props2.verticalCenter ? (viewClass.push("horizon-center"), viewClass.push("vertical-center")) : (props2.horizonCenter && viewClass.push("horizon-center"), props2.verticalCenter && viewClass.push("vertical-center")), props2.textCenter && viewClass.push("text-center"), createElement("div", { ...data2, class: viewClass }, children);
9450
+ return props2.center || props2.horizonCenter && props2.verticalCenter ? (viewClass.push("horizon-center"), viewClass.push("vertical-center")) : (props2.horizonCenter && viewClass.push("horizon-center"), props2.verticalCenter && viewClass.push("vertical-center")), props2.textCenter && viewClass.push("text-center"), createElement("div", __spreadProps(__spreadValues({}, data2), { class: viewClass }), children);
9389
9451
  }
9390
9452
  };
9391
9453
  let __vue2_render$b, __vue2_staticRenderFns$b;
@@ -9445,10 +9507,10 @@ const FlexColumn = /* @__PURE__ */ function() {
9445
9507
  },
9446
9508
  render(createElement, { children, data: data2, props: props2 }) {
9447
9509
  const viewClass = getClass(data2.class, props2.relative ? "flex-item-relative" : "flex-item");
9448
- return props2.absolute && !props2.relative && viewClass.push("flex-item-relative"), props2.center || props2.horizonCenter && props2.verticalCenter ? (viewClass.push("horizon-center"), viewClass.push("vertical-center")) : (props2.horizonCenter && viewClass.push("horizon-center"), props2.verticalCenter && viewClass.push("vertical-center")), props2.textCenter && viewClass.push("text-center"), props2.flexColumn && viewClass.push("flex-column"), props2.flexRow && viewClass.push("flex-row"), props2.absolute ? createElement("div", { ...data2, class: viewClass }, [createElement("div", {
9510
+ return props2.absolute && !props2.relative && viewClass.push("flex-item-relative"), props2.center || props2.horizonCenter && props2.verticalCenter ? (viewClass.push("horizon-center"), viewClass.push("vertical-center")) : (props2.horizonCenter && viewClass.push("horizon-center"), props2.verticalCenter && viewClass.push("vertical-center")), props2.textCenter && viewClass.push("text-center"), props2.flexColumn && viewClass.push("flex-column"), props2.flexRow && viewClass.push("flex-row"), props2.absolute ? createElement("div", __spreadProps(__spreadValues({}, data2), { class: viewClass }), [createElement("div", {
9449
9511
  class: "absolute",
9450
9512
  style: "overflow:auto"
9451
- }, children)]) : createElement("div", { ...data2, class: viewClass }, children);
9513
+ }, children)]) : createElement("div", __spreadProps(__spreadValues({}, data2), { class: viewClass }), children);
9452
9514
  }
9453
9515
  };
9454
9516
  let __vue2_render$a, __vue2_staticRenderFns$a;
@@ -9492,7 +9554,7 @@ const FlexItem = /* @__PURE__ */ function() {
9492
9554
  },
9493
9555
  render(createElement, { data: data2, children, props: props2 }) {
9494
9556
  const viewClass = getClass(data2.class, "flex-row");
9495
- return props2.center || props2.horizonCenter && props2.verticalCenter ? (viewClass.push("horizon-center"), viewClass.push("vertical-center")) : (props2.horizonCenter && viewClass.push("horizon-center"), props2.verticalCenter && viewClass.push("vertical-center")), props2.textCenter && viewClass.push("text-center"), createElement("div", { ...data2, class: viewClass }, children);
9557
+ return props2.center || props2.horizonCenter && props2.verticalCenter ? (viewClass.push("horizon-center"), viewClass.push("vertical-center")) : (props2.horizonCenter && viewClass.push("horizon-center"), props2.verticalCenter && viewClass.push("vertical-center")), props2.textCenter && viewClass.push("text-center"), createElement("div", __spreadProps(__spreadValues({}, data2), { class: viewClass }), children);
9496
9558
  }
9497
9559
  };
9498
9560
  let __vue2_render$9, __vue2_staticRenderFns$9;
@@ -9993,17 +10055,16 @@ const ZoomScrollModule = {
9993
10055
  mounted() {
9994
10056
  var _a;
9995
10057
  const container = this.$refs.container;
9996
- this.bpmnViewer = new BpmnViewer({
9997
- ...this.options,
10058
+ this.bpmnViewer = new BpmnViewer(__spreadProps(__spreadValues({}, this.options), {
9998
10059
  container,
9999
10060
  additionalModules: [ZoomScrollModule]
10000
- }), this.bpmnViewer.on("import.done", (event2) => {
10061
+ })), this.bpmnViewer.on("import.done", (event2) => {
10001
10062
  const error2 = event2.error, warnings = event2.warnings;
10002
10063
  error2 ? this.$emit("error", error2) : this.$emit("shown", warnings), this.bpmnViewer.get("canvas").zoom("fit-viewport", "center");
10003
10064
  const eventBus = this.bpmnViewer.get("eventBus");
10004
- this.canvas = this.bpmnViewer.get("canvas"), eventBus.on("element.mousemove", async (e2) => {
10005
- e2.element.type === "bpmn:UserTask" && (this.element = e2.element, await this.$nextTick(), this.$refs.popup.show(e2.originalEvent));
10006
- }), eventBus.on("element.out", () => {
10065
+ this.canvas = this.bpmnViewer.get("canvas"), eventBus.on("element.mousemove", (e2) => __async2(this, null, function* () {
10066
+ e2.element.type === "bpmn:UserTask" && (this.element = e2.element, yield this.$nextTick(), this.$refs.popup.show(e2.originalEvent));
10067
+ })), eventBus.on("element.out", () => {
10007
10068
  this.$refs.popup.hide(), this.element = {};
10008
10069
  }), this.highlightFlow(this.flows), this.highlightActivity(this.activities);
10009
10070
  }), (_a = this.bpmnViewer) == null || _a.importXML(this.xml);
@@ -10202,13 +10263,13 @@ const FormButton = /* @__PURE__ */ function() {
10202
10263
  return this.block ? 24 : this.span;
10203
10264
  },
10204
10265
  formItemProps() {
10205
- return filterProperties({ ...this.$props, ...this.$attrs }, formItemAutoBindKeys);
10266
+ return filterProperties(__spreadValues(__spreadValues({}, this.$props), this.$attrs), formItemAutoBindKeys);
10206
10267
  },
10207
10268
  elFormItemProps() {
10208
- return filterProperties({ ...this.$props, ...this.$attrs }, elFormItemAutoBindKeys);
10269
+ return filterProperties(__spreadValues(__spreadValues({}, this.$props), this.$attrs), elFormItemAutoBindKeys);
10209
10270
  },
10210
10271
  elColProps() {
10211
- return filterProperties({ ...this.$props, ...this.$attrs }, elColAutoBindKeys);
10272
+ return filterProperties(__spreadValues(__spreadValues({}, this.$props), this.$attrs), elColAutoBindKeys);
10212
10273
  }
10213
10274
  },
10214
10275
  watch: {
@@ -10350,7 +10411,7 @@ const autoBindKeys$c = Object.keys(Cascader.props).filter((key2) => !["value", "
10350
10411
  },
10351
10412
  computed: {
10352
10413
  inputProps() {
10353
- return filterProperties({ ...normalizeProps(this.$attrs), ...this.$props }, autoBindKeys$c);
10414
+ return filterProperties(__spreadValues(__spreadValues({}, normalizeProps(this.$attrs)), this.$props), autoBindKeys$c);
10354
10415
  },
10355
10416
  inputVal() {
10356
10417
  let [parent] = findTreeChildren(this.innerOptions, (node) => node[this.valueKey] === this.value);
@@ -10530,7 +10591,7 @@ const FormCheckboxGroup_vue_vue_type_style_index_0_lang = "", autoBindKeys$b = O
10530
10591
  return this.classic ? "value" : this.valueProp;
10531
10592
  },
10532
10593
  inputProps() {
10533
- return filterProperties({ ...normalizeProps(this.$attrs), ...this.$props }, autoBindKeys$b);
10594
+ return filterProperties(__spreadValues(__spreadValues({}, normalizeProps(this.$attrs)), this.$props), autoBindKeys$b);
10534
10595
  },
10535
10596
  innerOptions() {
10536
10597
  return this.gender ? [
@@ -10693,15 +10754,14 @@ const autoBindKeys$a = ["type", "timeArrowControl", "size", "format", "valueForm
10693
10754
  return this.maxDate ? toDate(this.maxDate) : null;
10694
10755
  },
10695
10756
  pickerOption() {
10696
- return {
10757
+ return __spreadValues({
10697
10758
  disabledDate: (time) => {
10698
10759
  if (!this.mini && !this.max)
10699
10760
  return !1;
10700
10761
  const currentTime = time.getTime();
10701
10762
  return this.mini && !this.max ? currentTime <= this.mini.getTime() : !this.mini && this.max ? currentTime >= this.max.getTime() : this.mini && this.max ? currentTime <= this.mini.getTime() && currentTime >= this.max.getTime() : !1;
10702
- },
10703
- ...this.pickerOptions
10704
- };
10763
+ }
10764
+ }, this.pickerOptions);
10705
10765
  },
10706
10766
  innerVal() {
10707
10767
  if (this.range && this.split) {
@@ -10714,15 +10774,13 @@ const autoBindKeys$a = ["type", "timeArrowControl", "size", "format", "valueForm
10714
10774
  return this.year ? "yyyy" : this.month || this.monthRange ? "yyyy-MM" : this.week ? "yyyy 第 WW 周" : this.dateTime || this.dateTimeRange ? "yyyy-MM-dd HH:mm" : "yyyy-MM-dd";
10715
10775
  },
10716
10776
  inputProps() {
10717
- return filterProperties({
10718
- ...normalizeProps(this.$attrs),
10719
- ...this.$props,
10777
+ return filterProperties(__spreadProps(__spreadValues(__spreadValues({}, normalizeProps(this.$attrs)), this.$props), {
10720
10778
  valueFormat: this.week ? "yyyy-MM-dd" : this.valueFormat || this.fat,
10721
10779
  format: this.format || this.fat,
10722
10780
  rangeSeparator: this.rangeSeparator || "至",
10723
10781
  startPlaceholder: this.startPlaceholder || "开始日期",
10724
10782
  endPlaceholder: this.endPlaceholder || "结束日期"
10725
- }, autoBindKeys$a);
10783
+ }), autoBindKeys$a);
10726
10784
  },
10727
10785
  range() {
10728
10786
  return this.dateTimeRange || this.dateRange || this.monthRange;
@@ -10952,8 +11010,10 @@ const __vue2_script$2j = {
10952
11010
  var _a;
10953
11011
  (_a = this.$refs.form) == null || _a.clearValidate(fields2);
10954
11012
  },
10955
- async validate() {
10956
- return this.$refs.form.validate();
11013
+ validate() {
11014
+ return __async2(this, null, function* () {
11015
+ return this.$refs.form.validate();
11016
+ });
10957
11017
  },
10958
11018
  resetFields() {
10959
11019
  return this.$refs.form.resetFields();
@@ -11050,7 +11110,7 @@ const autoBindKeys$9 = Object.keys(Input.props).filter((key2) => !["value", "pla
11050
11110
  },
11051
11111
  computed: {
11052
11112
  inputProps() {
11053
- return filterProperties({ ...normalizeProps(this.$attrs), ...this.$props }, autoBindKeys$9);
11113
+ return filterProperties(__spreadValues(__spreadValues({}, normalizeProps(this.$attrs)), this.$props), autoBindKeys$9);
11054
11114
  }
11055
11115
  },
11056
11116
  methods: {
@@ -11136,7 +11196,7 @@ const autoBindKeys$8 = Object.keys(Input.props).filter((key2) => !["value", "pla
11136
11196
  },
11137
11197
  computed: {
11138
11198
  inputProps() {
11139
- return filterProperties({ ...normalizeProps(this.$attrs), ...this.$props }, autoBindKeys$8);
11199
+ return filterProperties(__spreadValues(__spreadValues({}, normalizeProps(this.$attrs)), this.$props), autoBindKeys$8);
11140
11200
  }
11141
11201
  },
11142
11202
  methods: {
@@ -11231,7 +11291,7 @@ const autoBindKeys$7 = Object.keys(Input.props).filter((key2) => !["value", "pla
11231
11291
  },
11232
11292
  computed: {
11233
11293
  inputProps() {
11234
- return filterProperties({ ...normalizeProps(this.$attrs), ...this.$props }, autoBindKeys$7);
11294
+ return filterProperties(__spreadValues(__spreadValues({}, normalizeProps(this.$attrs)), this.$props), autoBindKeys$7);
11235
11295
  }
11236
11296
  },
11237
11297
  methods: {
@@ -11412,7 +11472,7 @@ const FormInputNumber_vue_vue_type_style_index_0_lang = "", autoBindKeys$6 = Obj
11412
11472
  },
11413
11473
  computed: {
11414
11474
  inputProps() {
11415
- return filterProperties({ ...normalizeProps(this.$attrs), ...this.$props }, autoBindKeys$6);
11475
+ return filterProperties(__spreadValues(__spreadValues({}, normalizeProps(this.$attrs)), this.$props), autoBindKeys$6);
11416
11476
  }
11417
11477
  }
11418
11478
  }, __cssModules$2f = {};
@@ -11491,7 +11551,7 @@ const autoBindKeys$5 = Object.keys(Input.props).filter((key2) => !["value", "pla
11491
11551
  },
11492
11552
  computed: {
11493
11553
  inputProps() {
11494
- return filterProperties({ ...normalizeProps(this.$attrs), ...this.$props }, autoBindKeys$5);
11554
+ return filterProperties(__spreadValues(__spreadValues({}, normalizeProps(this.$attrs)), this.$props), autoBindKeys$5);
11495
11555
  }
11496
11556
  },
11497
11557
  methods: {
@@ -11619,7 +11679,7 @@ const autoBindKeys$4 = Object.keys(TimePicker.props).filter((key2) => !["value",
11619
11679
  return "请选择";
11620
11680
  },
11621
11681
  inputProps() {
11622
- return filterProperties({ ...normalizeProps(this.$attrs), ...this.$props }, autoBindKeys$4);
11682
+ return filterProperties(__spreadValues(__spreadValues({}, normalizeProps(this.$attrs)), this.$props), autoBindKeys$4);
11623
11683
  }
11624
11684
  }
11625
11685
  }, __cssModules$2d = {};
@@ -11652,10 +11712,11 @@ const FormInputTime = /* @__PURE__ */ function() {
11652
11712
  },
11653
11713
  computed: {
11654
11714
  gutter() {
11715
+ var _a;
11655
11716
  let parent = this.$parent;
11656
11717
  for (; parent && parent.$options.componentName !== "ElRow"; )
11657
11718
  parent = parent.$parent;
11658
- return (parent == null ? void 0 : parent.gutter) ?? 0;
11719
+ return (_a = parent == null ? void 0 : parent.gutter) != null ? _a : 0;
11659
11720
  }
11660
11721
  },
11661
11722
  methods: {
@@ -11690,9 +11751,7 @@ const FormInputTime = /* @__PURE__ */ function() {
11690
11751
  key: `${prop}-${formRequired}`,
11691
11752
  class: rawRequired ? `form-item required ${formItemClass || ""}` : `${formItemClass || ""}`,
11692
11753
  scopedSlots: $scopedSlots,
11693
- props: {
11694
- ...elFormItemProps
11695
- },
11754
+ props: __spreadValues({}, elFormItemProps),
11696
11755
  attrs: {
11697
11756
  label,
11698
11757
  "label-width": labelWidth,
@@ -11702,13 +11761,17 @@ const FormInputTime = /* @__PURE__ */ function() {
11702
11761
  ref: "formItem"
11703
11762
  }) : h("div", [(_c = $scopedSlots.default) == null ? void 0 : _c.call($scopedSlots)]);
11704
11763
  },
11705
- async clearValidate() {
11706
- var _a, _b;
11707
- await this.$nextTick(), (_b = (_a = this.$refs.formItem).clearValidate) == null || _b.call(_a);
11764
+ clearValidate() {
11765
+ return __async2(this, null, function* () {
11766
+ var _a, _b;
11767
+ yield this.$nextTick(), (_b = (_a = this.$refs.formItem).clearValidate) == null || _b.call(_a);
11768
+ });
11708
11769
  },
11709
- async validate() {
11710
- var _a, _b;
11711
- await this.$nextTick(), (_b = (_a = this.$refs.formItem).validate) == null || _b.call(_a);
11770
+ validate() {
11771
+ return __async2(this, null, function* () {
11772
+ var _a, _b;
11773
+ yield this.$nextTick(), (_b = (_a = this.$refs.formItem).validate) == null || _b.call(_a);
11774
+ });
11712
11775
  }
11713
11776
  },
11714
11777
  render() {
@@ -11724,9 +11787,7 @@ const FormInputTime = /* @__PURE__ */ function() {
11724
11787
  } = this;
11725
11788
  let formWrapCol = wrapCol;
11726
11789
  return formItemConfig && hasOwn(formItemConfig, "wrapCol") && (formWrapCol = formItemConfig.wrapCol), unwrap ? h("div", [(_a = $scopedSlots.default) == null ? void 0 : _a.call($scopedSlots)]) : formWrapCol ? h("ElCol", {
11727
- props: {
11728
- ...elColProps
11729
- },
11790
+ props: __spreadValues({}, elColProps),
11730
11791
  attrs: {
11731
11792
  span: computeSpan
11732
11793
  }
@@ -12079,7 +12140,7 @@ const FormRadioGroup_vue_vue_type_style_index_0_lang = "", autoBindKeys$3 = Obje
12079
12140
  return "请选择";
12080
12141
  },
12081
12142
  inputProps() {
12082
- return filterProperties({ ...normalizeProps(this.$attrs), ...this.$props }, autoBindKeys$3);
12143
+ return filterProperties(__spreadValues(__spreadValues({}, normalizeProps(this.$attrs)), this.$props), autoBindKeys$3);
12083
12144
  },
12084
12145
  labelKey() {
12085
12146
  return this.classic ? "label" : this.labelProp;
@@ -12234,7 +12295,7 @@ const autoBindKeys$2 = Object.keys(Select.props).filter((key2) => !["value", "pl
12234
12295
  return this.classic ? "value" : this.valueProp;
12235
12296
  },
12236
12297
  inputProps() {
12237
- return filterProperties({ ...normalizeProps(this.$attrs), ...this.$props }, autoBindKeys$2);
12298
+ return filterProperties(__spreadValues(__spreadValues({}, normalizeProps(this.$attrs)), this.$props), autoBindKeys$2);
12238
12299
  },
12239
12300
  innerOptions() {
12240
12301
  return this.gender ? [
@@ -12345,7 +12406,7 @@ const autoBindKeys$1 = Object.keys(Switch.props).filter((key2) => !["value", "pl
12345
12406
  },
12346
12407
  computed: {
12347
12408
  inputProps() {
12348
- return filterProperties({ ...normalizeProps(this.$attrs), ...this.$props }, autoBindKeys$1);
12409
+ return filterProperties(__spreadValues(__spreadValues({}, normalizeProps(this.$attrs)), this.$props), autoBindKeys$1);
12349
12410
  }
12350
12411
  },
12351
12412
  methods: {
@@ -12755,7 +12816,7 @@ const autoBindKeys = Object.keys(Input.props).filter((key2) => !["value", "place
12755
12816
  },
12756
12817
  computed: {
12757
12818
  inputProps() {
12758
- return filterProperties({ ...normalizeProps(this.$attrs), ...this.$props }, autoBindKeys);
12819
+ return filterProperties(__spreadValues(__spreadValues({}, normalizeProps(this.$attrs)), this.$props), autoBindKeys);
12759
12820
  }
12760
12821
  }
12761
12822
  }, __cssModules$25 = {};
@@ -13055,8 +13116,10 @@ const FormView_vue_vue_type_style_index_0_lang = "", builtInButtons$1 = ["back",
13055
13116
  }
13056
13117
  }), this.onFormResize({ width: window.document.body.clientWidth });
13057
13118
  },
13058
- async activated() {
13059
- this.$refs.formScroller && (await this.$nextTick(), this.scrollTo(this.formScrollTop, this.formScrollLeft));
13119
+ activated() {
13120
+ return __async2(this, null, function* () {
13121
+ this.$refs.formScroller && (yield this.$nextTick(), this.scrollTo(this.formScrollTop, this.formScrollLeft));
13122
+ });
13060
13123
  },
13061
13124
  methods: {
13062
13125
  getToolbarSlotKeys() {
@@ -13074,20 +13137,24 @@ const FormView_vue_vue_type_style_index_0_lang = "", builtInButtons$1 = ["back",
13074
13137
  onEdit() {
13075
13138
  !this.toolbarListeners.edit && hasOwn(this.$parent, "disabled") && (this.$parent.disabled = !1);
13076
13139
  },
13077
- async navItemClick(item, index2) {
13078
- this.showNav && (await this.$nextTick(), this.activeFormItemGroup(item, index2), item.expand || item.open());
13140
+ navItemClick(item, index2) {
13141
+ return __async2(this, null, function* () {
13142
+ this.showNav && (yield this.$nextTick(), this.activeFormItemGroup(item, index2), item.expand || item.open());
13143
+ });
13079
13144
  },
13080
13145
  activeFormItemGroup(tab, index2) {
13081
13146
  this.$refs.formScroller.scrollTop = tab.$el.offsetTop - 10, animate(tab.$el, "breathe-indicator-animation"), this.tryByClick = !0, this.activeIndex = index2;
13082
13147
  },
13083
- async tryActive() {
13084
- if (this.showNav) {
13085
- for (let i2 = 0; i2 < this.groups.length; i2++)
13086
- if (isInContainer(this.groups[i2].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
13087
- this.activeIndex = i2;
13088
- break;
13089
- }
13090
- }
13148
+ tryActive() {
13149
+ return __async2(this, null, function* () {
13150
+ if (this.showNav) {
13151
+ for (let i2 = 0; i2 < this.groups.length; i2++)
13152
+ if (isInContainer(this.groups[i2].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
13153
+ this.activeIndex = i2;
13154
+ break;
13155
+ }
13156
+ }
13157
+ });
13091
13158
  },
13092
13159
  onFormScroll() {
13093
13160
  this.formScrollTop = this.$refs.formScroller.scrollTop, this.formScrollLeft = this.$refs.formScroller.scrollLeft, !this.tryByClick && this.groups.length && window.requestAnimationFrame(this.tryActive), this.tryByClick = !1;
@@ -16583,9 +16650,11 @@ const FyForm_vue_vue_type_style_index_0_lang = "", __vue2_script$1U = {
16583
16650
  let key2;
16584
16651
  return isBlank(column.display) ? this.isAdd ? key2 = "addDisplay" : this.isEdit ? key2 = "editDisplay" : this.isView && (key2 = "viewDisplay") : key2 = "display", key2 ? optVal(column[key2], !0) : !0;
16585
16652
  },
16586
- async clearValidate(list2) {
16587
- var _a;
16588
- (_a = this.$refs.form) == null || _a.clearValidate(list2);
16653
+ clearValidate(list2) {
16654
+ return __async2(this, null, function* () {
16655
+ var _a;
16656
+ (_a = this.$refs.form) == null || _a.clearValidate(list2);
16657
+ });
16589
16658
  },
16590
16659
  validateCellForm() {
16591
16660
  return new Promise((resolve2) => {
@@ -17273,13 +17342,12 @@ const MonacoEditor = {
17273
17342
  methods: {
17274
17343
  initMonaco() {
17275
17344
  const { value: value2, language, theme, readOnly, options: options2 } = this;
17276
- Object.assign(options2, this._editorBeforeMount()), this.editor = monaco.editor[this.diffEditor ? "createDiffEditor" : "create"](this.$el, {
17345
+ Object.assign(options2, this._editorBeforeMount()), this.editor = monaco.editor[this.diffEditor ? "createDiffEditor" : "create"](this.$el, __spreadValues({
17277
17346
  value: typeof value2 == "string" ? value2 : convert(value2),
17278
17347
  language,
17279
17348
  theme,
17280
- readOnly,
17281
- ...options2
17282
- }), this.diffEditor && this._setModel(this.value, this.original), this._editorMounted(this.editor);
17349
+ readOnly
17350
+ }, options2)), this.diffEditor && this._setModel(this.value, this.original), this._editorMounted(this.editor);
17283
17351
  },
17284
17352
  _handleFullScreen() {
17285
17353
  this.isMaximum ? this.minEditor() : this.maxEditor();
@@ -17370,10 +17438,7 @@ const MonacoEditor = {
17370
17438
  return deepClone(steps[index]);
17371
17439
  }
17372
17440
  }
17373
- this.historySteps = {
17374
- ...this.historySteps,
17375
- ...data
17376
- };
17441
+ this.historySteps = __spreadValues(__spreadValues({}, this.historySteps), data);
17377
17442
  const { index, steps } = this.historySteps;
17378
17443
  return deepClone(steps[index]);
17379
17444
  },
@@ -17682,14 +17747,14 @@ const __vue2_script$1S = {
17682
17747
  return;
17683
17748
  }
17684
17749
  const data2 = deepClone(column.children.column[newIndex]);
17685
- data2.prop || (data2.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), data2.subfield = !0, delete data2.icon, this.$set(column.children.column, newIndex, { ...data2 }), this.selectWidget = column.children.column[newIndex], this.$emit("change");
17750
+ data2.prop || (data2.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), data2.subfield = !0, delete data2.icon, this.$set(column.children.column, newIndex, __spreadValues({}, data2)), this.selectWidget = column.children.column[newIndex], this.$emit("change");
17686
17751
  },
17687
17752
  handleWidgetTableSelect(data2) {
17688
17753
  this.selectWidget = data2;
17689
17754
  },
17690
17755
  handleWidgetTableClone(column, item) {
17691
17756
  const data2 = deepClone(item);
17692
- data2.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(column.children.column, column.children.column.length, { ...data2 }), this.$nextTick(() => {
17757
+ data2.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(column.children.column, column.children.column.length, __spreadValues({}, data2)), this.$nextTick(() => {
17693
17758
  this.selectWidget = column.children.column[column.children.column.length - 1], this.$emit("change");
17694
17759
  });
17695
17760
  },
@@ -17941,7 +18006,7 @@ const __vue2_script$1R = {
17941
18006
  },
17942
18007
  handleWidgetTableClone(column, item) {
17943
18008
  const data2 = deepClone(item);
17944
- data2.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(column.children.column, column.children.column.length, { ...data2 }), this.$nextTick(() => {
18009
+ data2.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(column.children.column, column.children.column.length, __spreadValues({}, data2)), this.$nextTick(() => {
17945
18010
  this.selectWidget = column.children.column[column.children.column.length - 1], this.$emit("change");
17946
18011
  });
17947
18012
  },
@@ -17958,7 +18023,7 @@ const __vue2_script$1R = {
17958
18023
  return;
17959
18024
  }
17960
18025
  const data2 = deepClone(column.children.column[newIndex]);
17961
- data2.prop || (data2.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), delete data2.icon, data2.type === "dynamic" ? data2.span = 24 : data2.span = 12, this.$set(column.children.column, newIndex, { ...data2 }), this.selectWidget = column.children.column[newIndex], this.$emit("change");
18026
+ data2.prop || (data2.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), delete data2.icon, data2.type === "dynamic" ? data2.span = 24 : data2.span = 12, this.$set(column.children.column, newIndex, __spreadValues({}, data2)), this.selectWidget = column.children.column[newIndex], this.$emit("change");
17962
18027
  }
17963
18028
  }
17964
18029
  }, __cssModules$1R = {};
@@ -24061,7 +24126,7 @@ const FyFormDesign_vue_vue_type_style_index_0_lang = "", __vue2_script$1s = {
24061
24126
  console.error("非法配置"), options = { column: [] };
24062
24127
  }
24063
24128
  this.transAvueOptionsToFormDesigner(options).then((res) => {
24064
- this.widgetForm = { ...this.widgetForm, ...res };
24129
+ this.widgetForm = __spreadValues(__spreadValues({}, this.widgetForm), res);
24065
24130
  });
24066
24131
  },
24067
24132
  deep: !0
@@ -24078,22 +24143,24 @@ const FyFormDesign_vue_vue_type_style_index_0_lang = "", __vue2_script$1s = {
24078
24143
  },
24079
24144
  methods: {
24080
24145
  // 组件初始化时加载本地存储中的options(需开启storage),若不存在则读取用户配置的options
24081
- async handleLoadStorage() {
24082
- let options = this.options;
24083
- if (typeof options == "string")
24084
- try {
24085
- options = eval(`(${options})`);
24086
- } catch (e2) {
24087
- console.error("非法配置"), options = { column: [] };
24088
- }
24089
- options.column || (options.column = []), this.widgetForm = this.initHistory({
24090
- index: 0,
24091
- maxStep: 20,
24092
- steps: [await this.transAvueOptionsToFormDesigner({ ...this.widgetForm, ...options })],
24093
- storage: this.storage
24094
- }), this.undoRedo && window.addEventListener("keydown", (evt) => {
24095
- (evt.metaKey && !evt.shiftKey && evt.keyCode === 90 || evt.ctrlKey && !evt.shiftKey && evt.keyCode === 90) && (this.widgetForm = this.handleUndo()), (evt.metaKey && evt.shiftKey && evt.keyCode === 90 || evt.ctrlKey && evt.shiftKey && evt.keyCode === 90 || evt.ctrlKey && evt.keyCode === 89) && (this.widgetForm = this.handleRedo());
24096
- }, !1);
24146
+ handleLoadStorage() {
24147
+ return __async2(this, null, function* () {
24148
+ let options = this.options;
24149
+ if (typeof options == "string")
24150
+ try {
24151
+ options = eval(`(${options})`);
24152
+ } catch (e2) {
24153
+ console.error("非法配置"), options = { column: [] };
24154
+ }
24155
+ options.column || (options.column = []), this.widgetForm = this.initHistory({
24156
+ index: 0,
24157
+ maxStep: 20,
24158
+ steps: [yield this.transAvueOptionsToFormDesigner(__spreadValues(__spreadValues({}, this.widgetForm), options))],
24159
+ storage: this.storage
24160
+ }), this.undoRedo && window.addEventListener("keydown", (evt) => {
24161
+ (evt.metaKey && !evt.shiftKey && evt.keyCode === 90 || evt.ctrlKey && !evt.shiftKey && evt.keyCode === 90) && (this.widgetForm = this.handleUndo()), (evt.metaKey && evt.shiftKey && evt.keyCode === 90 || evt.ctrlKey && evt.shiftKey && evt.keyCode === 90 || evt.ctrlKey && evt.keyCode === 89) && (this.widgetForm = this.handleRedo());
24162
+ }, !1);
24163
+ });
24097
24164
  },
24098
24165
  // 加载icon
24099
24166
  handleLoadCss() {
@@ -24135,20 +24202,18 @@ const FyFormDesign_vue_vue_type_style_index_0_lang = "", __vue2_script$1s = {
24135
24202
  // 生成JSON - 弹窗 - 确定
24136
24203
  handleGenerate() {
24137
24204
  this.transformToAvueOptions(this.widgetForm).then((data2) => {
24138
- this.configOption.generateType && this.configOption.generateType === "string" ? this.$emit("submit", convert(data2, {
24139
- minify: !0,
24140
- ...this.configOption
24141
- })) : this.$emit("submit", data2);
24205
+ this.configOption.generateType && this.configOption.generateType === "string" ? this.$emit("submit", convert(data2, __spreadValues({
24206
+ minify: !0
24207
+ }, this.configOption))) : this.$emit("submit", data2);
24142
24208
  });
24143
24209
  },
24144
24210
  // 生成JSON - 弹窗 - 拷贝
24145
24211
  handleCopy() {
24146
24212
  this.transformToAvueOptions(this.widgetForm).then((data2) => {
24147
24213
  this.$Clipboard({
24148
- text: convert(data2, {
24149
- minify: !0,
24150
- ...this.configOption
24151
- })
24214
+ text: convert(data2, __spreadValues({
24215
+ minify: !0
24216
+ }, this.configOption))
24152
24217
  }).then(() => {
24153
24218
  this.$message.success("复制成功");
24154
24219
  }).catch(() => {
@@ -24357,17 +24422,18 @@ const FyFormDesign_vue_vue_type_style_index_0_lang = "", __vue2_script$1s = {
24357
24422
  }
24358
24423
  });
24359
24424
  },
24360
- async getData(type2 = "json", option = {}) {
24361
- if (type2 === "string")
24362
- return convert(await this.transformToAvueOptions(this.widgetForm), {
24363
- minify: !0,
24364
- ...option
24365
- });
24366
- if (type2 === "app") {
24367
- const option2 = await this.transformToAvueOptions(this.widgetForm);
24368
- return this.parseJson(option2), option2;
24369
- } else
24370
- return await this.transformToAvueOptions(this.widgetForm);
24425
+ getData() {
24426
+ return __async2(this, arguments, function* (type2 = "json", option = {}) {
24427
+ if (type2 === "string")
24428
+ return convert(yield this.transformToAvueOptions(this.widgetForm), __spreadValues({
24429
+ minify: !0
24430
+ }, option));
24431
+ if (type2 === "app") {
24432
+ const option2 = yield this.transformToAvueOptions(this.widgetForm);
24433
+ return this.parseJson(option2), option2;
24434
+ } else
24435
+ return yield this.transformToAvueOptions(this.widgetForm);
24436
+ });
24371
24437
  },
24372
24438
  parseJson(jsonObj) {
24373
24439
  for (const key2 in jsonObj) {
@@ -27156,21 +27222,21 @@ const FyUEditor_vue_vue_type_style_index_0_lang = "", __vue2_script$19 = {
27156
27222
  },
27157
27223
  methods: {
27158
27224
  initEdit() {
27159
- const mode = "default", { onFocus, onBlur, onChange, ...rest } = this.customConfig, editorConfig = {
27225
+ const mode = "default", _a = this.customConfig, { onFocus, onBlur, onChange } = _a, rest = __objRest(_a, ["onFocus", "onBlur", "onChange"]), editorConfig = __spreadValues({
27160
27226
  placeholder: this.placeholder,
27161
27227
  readOnly: this.disabled,
27162
27228
  MENU_CONF: {
27163
27229
  uploadImage: {
27164
- customUpload: async (file) => {
27165
- const res = await this.uploadFile(file);
27230
+ customUpload: (file) => __async2(this, null, function* () {
27231
+ const res = yield this.uploadFile(file);
27166
27232
  this.editor.dangerouslyInsertHtml(res);
27167
- }
27233
+ })
27168
27234
  },
27169
27235
  uploadVideo: {
27170
- customUpload: async (file) => {
27171
- const res = await this.uploadFile(file);
27236
+ customUpload: (file) => __async2(this, null, function* () {
27237
+ const res = yield this.uploadFile(file);
27172
27238
  this.editor.dangerouslyInsertHtml(res);
27173
- }
27239
+ })
27174
27240
  }
27175
27241
  },
27176
27242
  onFocus: () => {
@@ -27183,18 +27249,15 @@ const FyUEditor_vue_vue_type_style_index_0_lang = "", __vue2_script$19 = {
27183
27249
  onChange: (editor) => {
27184
27250
  const html = editor.getHtml();
27185
27251
  this.$emit("input", html);
27186
- },
27187
- ...rest
27188
- };
27252
+ }
27253
+ }, rest);
27189
27254
  this.editor = Object.seal(createEditor({
27190
27255
  selector: this.$refs.editor,
27191
27256
  config: editorConfig,
27192
27257
  html: this.value,
27193
27258
  mode
27194
27259
  }));
27195
- const toolbarConfig = {
27196
- ...this.toolbarConfig
27197
- };
27260
+ const toolbarConfig = __spreadValues({}, this.toolbarConfig);
27198
27261
  this.toolbar = createToolbar({
27199
27262
  editor: this.editor,
27200
27263
  selector: this.$refs.toolbar,
@@ -28639,7 +28702,7 @@ function __vue2_injectStyles$11(context) {
28639
28702
  const IframeWindow = /* @__PURE__ */ function() {
28640
28703
  return __component__$11.exports;
28641
28704
  }(), imageCropper = (ops = {}) => {
28642
- const ImageCropperConstructor = Vue.extend(ImageCropper), option = {
28705
+ const ImageCropperConstructor = Vue.extend(ImageCropper), option = __spreadValues({
28643
28706
  outputSize: 1,
28644
28707
  // 裁剪生成图片的质量(可选0.1 - 1)
28645
28708
  outputType: "jpeg",
@@ -28668,10 +28731,8 @@ const IframeWindow = /* @__PURE__ */ function() {
28668
28731
  // 是否按照设备的dpr 输出等比例图片
28669
28732
  infoTrue: !1,
28670
28733
  // true为展示真实输出图片宽高,false展示看到的截图框宽高
28671
- enlarge: 1,
28672
- // 图片根据截图框输出比例倍数
28673
- ...ops
28674
- }, instance = new ImageCropperConstructor({
28734
+ enlarge: 1
28735
+ }, ops), instance = new ImageCropperConstructor({
28675
28736
  data: {
28676
28737
  option
28677
28738
  }
@@ -28874,13 +28935,12 @@ const ImageCropper = /* @__PURE__ */ function() {
28874
28935
  const ImagePreviewConstructor = Vue.extend(ImagePreview), options2 = {
28875
28936
  datas,
28876
28937
  index: index2,
28877
- ops: {
28938
+ ops: __spreadValues({
28878
28939
  closeOnClickModal: !1,
28879
28940
  beforeClose: null,
28880
28941
  click: null,
28881
- modal: !0,
28882
- ...ops
28883
- }
28942
+ modal: !0
28943
+ }, ops)
28884
28944
  }, instance = new ImagePreviewConstructor({
28885
28945
  data: options2
28886
28946
  }).$mount();
@@ -31135,8 +31195,10 @@ const PageableTable_vue_vue_type_style_index_0_lang = "", TABLE_STATUS$1 = {
31135
31195
  });
31136
31196
  body && ((_a = body.$refs.tooltip) == null || _a.hide()), this.$emit("row-dblclick", ...args);
31137
31197
  },
31138
- async updateTableScrollPosition() {
31139
- this.$refs.table.bodyWrapper && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
31198
+ updateTableScrollPosition() {
31199
+ return __async2(this, null, function* () {
31200
+ this.$refs.table.bodyWrapper && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
31201
+ });
31140
31202
  },
31141
31203
  filterTableProperties,
31142
31204
  filterTableEvents,
@@ -31199,41 +31261,46 @@ const PageableTable_vue_vue_type_style_index_0_lang = "", TABLE_STATUS$1 = {
31199
31261
  search() {
31200
31262
  this.setModel(this.model), this.getPage();
31201
31263
  },
31202
- async getPage() {
31203
- var _a;
31204
- if (hasOwn(this.$attrs, "data")) {
31205
- this.records = this.$attrs.data, this.page.page = 1, this.page.total = this.records.length, this.page.limit = this.page.total;
31206
- return;
31207
- }
31208
- this.records = [];
31209
- let res;
31210
- const { filters, ...rest } = this.page, page = { ...rest };
31211
- if ((_a = filters == null ? void 0 : filters.rules) != null && _a.length && (page.filters = { rules: filters.rules }), this.api || this.url) {
31212
- this.tableStatus = TABLE_STATUS$1.loading;
31213
- try {
31214
- this.api && (res = await this.api(page)), this.url && (res = await this.method(this.url, page));
31215
- } catch (e2) {
31216
- this.tableStatus = TABLE_STATUS$1.error, console.error(e2);
31264
+ getPage() {
31265
+ return __async2(this, null, function* () {
31266
+ var _b;
31267
+ if (hasOwn(this.$attrs, "data")) {
31268
+ this.records = this.$attrs.data, this.page.page = 1, this.page.total = this.records.length, this.page.limit = this.page.total;
31217
31269
  return;
31218
31270
  }
31219
- } else {
31220
- this.$notify.warning({
31221
- title: "开发提示!",
31222
- message: "PageableTable 请提供 url(String) api(Function) 属性"
31223
- });
31224
- return;
31225
- }
31226
- const { data: data2 } = res || {}, { total, records } = data2 || {};
31227
- this.page.total = Number(total), this.records = records, !records || !records.length ? this.tableStatus = TABLE_STATUS$1.empty : this.tableStatus = TABLE_STATUS$1.success, this.$refs.table.doLayout(), this.$emit("page-loaded", data2);
31271
+ this.records = [];
31272
+ let res;
31273
+ const _a = this.page, { filters } = _a, rest = __objRest(_a, ["filters"]), page = __spreadValues({}, rest);
31274
+ if ((_b = filters == null ? void 0 : filters.rules) != null && _b.length && (page.filters = { rules: filters.rules }), this.api || this.url) {
31275
+ this.tableStatus = TABLE_STATUS$1.loading;
31276
+ try {
31277
+ this.api && (res = yield this.api(page)), this.url && (res = yield this.method(this.url, page));
31278
+ } catch (e2) {
31279
+ this.tableStatus = TABLE_STATUS$1.error, console.error(e2);
31280
+ return;
31281
+ }
31282
+ } else {
31283
+ this.$notify.warning({
31284
+ title: "开发提示!",
31285
+ message: "PageableTable 请提供 url(String) 或 api(Function) 属性"
31286
+ });
31287
+ return;
31288
+ }
31289
+ const { data: data2 } = res || {}, { total, records } = data2 || {};
31290
+ this.page.total = Number(total), this.records = records, !records || !records.length ? this.tableStatus = TABLE_STATUS$1.empty : this.tableStatus = TABLE_STATUS$1.success, this.$refs.table.doLayout(), this.$emit("page-loaded", data2);
31291
+ });
31228
31292
  },
31229
- async refresh() {
31230
- await this.getPage();
31293
+ refresh() {
31294
+ return __async2(this, null, function* () {
31295
+ yield this.getPage();
31296
+ });
31231
31297
  },
31232
- async reload() {
31233
- this.page = {
31234
- ...this.$options.data.call(this).page,
31235
- total: this.page.total
31236
- };
31298
+ reload() {
31299
+ return __async2(this, null, function* () {
31300
+ this.page = __spreadProps(__spreadValues({}, this.$options.data.call(this).page), {
31301
+ total: this.page.total
31302
+ });
31303
+ });
31237
31304
  },
31238
31305
  scrollTo(top, left) {
31239
31306
  top && (this.$refs.table.bodyWrapper.scrollTop = top), left && (this.$refs.table.bodyWrapper.scrollLeft = left);
@@ -31462,8 +31529,10 @@ const TABLE_STATUS = {
31462
31529
  (_a = this.$refs.scroller) == null || _a.removeEventListener("scroll", this.onTableScroll);
31463
31530
  },
31464
31531
  methods: {
31465
- async updateTableScrollPosition() {
31466
- this.$refs.scroller && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
31532
+ updateTableScrollPosition() {
31533
+ return __async2(this, null, function* () {
31534
+ this.$refs.scroller && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
31535
+ });
31467
31536
  },
31468
31537
  filterTableProperties,
31469
31538
  filterTableEvents,
@@ -31527,41 +31596,46 @@ const TABLE_STATUS = {
31527
31596
  search() {
31528
31597
  this.setModel(this.model), this.getPage();
31529
31598
  },
31530
- async getPage() {
31531
- var _a;
31532
- if (hasOwn(this.$attrs, "data")) {
31533
- this.records = this.$attrs.data, this.page.page = 1, this.page.total = this.records.length, this.page.limit = this.page.total;
31534
- return;
31535
- }
31536
- this.records = [];
31537
- let res;
31538
- const { filters, ...rest } = this.page, page = { ...rest };
31539
- if ((_a = filters == null ? void 0 : filters.rules) != null && _a.length && (page.filters = { rules: filters.rules }), this.api || this.url) {
31540
- this.tableStatus = TABLE_STATUS.loading;
31541
- try {
31542
- this.loading = !0, this.api && (res = await this.api(page)), this.url && (res = await this.method(this.url, page)), this.loading = !1;
31543
- } catch (e2) {
31544
- this.tableStatus = TABLE_STATUS.error, console.error(e2), this.loading = !1;
31599
+ getPage() {
31600
+ return __async2(this, null, function* () {
31601
+ var _b;
31602
+ if (hasOwn(this.$attrs, "data")) {
31603
+ this.records = this.$attrs.data, this.page.page = 1, this.page.total = this.records.length, this.page.limit = this.page.total;
31545
31604
  return;
31546
31605
  }
31547
- } else {
31548
- this.$notify.warning({
31549
- title: "开发提示!",
31550
- message: "PageableTable 请提供 url(String) api(Function) 属性"
31551
- });
31552
- return;
31553
- }
31554
- const { data: data2 } = res || {}, { total, records } = data2 || {};
31555
- this.page.total = Number(total), this.records = records, !records || !records.length ? this.tableStatus = TABLE_STATUS.empty : this.tableStatus = TABLE_STATUS.success, this.$refs.table && (this.$refs.scroller.scrollTop = 0), this.$emit("page-loaded", data2);
31606
+ this.records = [];
31607
+ let res;
31608
+ const _a = this.page, { filters } = _a, rest = __objRest(_a, ["filters"]), page = __spreadValues({}, rest);
31609
+ if ((_b = filters == null ? void 0 : filters.rules) != null && _b.length && (page.filters = { rules: filters.rules }), this.api || this.url) {
31610
+ this.tableStatus = TABLE_STATUS.loading;
31611
+ try {
31612
+ this.loading = !0, this.api && (res = yield this.api(page)), this.url && (res = yield this.method(this.url, page)), this.loading = !1;
31613
+ } catch (e2) {
31614
+ this.tableStatus = TABLE_STATUS.error, console.error(e2), this.loading = !1;
31615
+ return;
31616
+ }
31617
+ } else {
31618
+ this.$notify.warning({
31619
+ title: "开发提示!",
31620
+ message: "PageableTable 请提供 url(String) 或 api(Function) 属性"
31621
+ });
31622
+ return;
31623
+ }
31624
+ const { data: data2 } = res || {}, { total, records } = data2 || {};
31625
+ this.page.total = Number(total), this.records = records, !records || !records.length ? this.tableStatus = TABLE_STATUS.empty : this.tableStatus = TABLE_STATUS.success, this.$refs.table && (this.$refs.scroller.scrollTop = 0), this.$emit("page-loaded", data2);
31626
+ });
31556
31627
  },
31557
- async refresh() {
31558
- await this.getPage();
31628
+ refresh() {
31629
+ return __async2(this, null, function* () {
31630
+ yield this.getPage();
31631
+ });
31559
31632
  },
31560
- async reload() {
31561
- this.page = {
31562
- ...this.$options.data.call(this).page,
31563
- total: this.page.total
31564
- };
31633
+ reload() {
31634
+ return __async2(this, null, function* () {
31635
+ this.page = __spreadProps(__spreadValues({}, this.$options.data.call(this).page), {
31636
+ total: this.page.total
31637
+ });
31638
+ });
31565
31639
  },
31566
31640
  scrollTo(top, left) {
31567
31641
  top && (this.$refs.scroller.scrollTop = top), left && (this.$refs.scroller.scrollLeft = left);
@@ -31743,26 +31817,34 @@ const PageIndex_vue_vue_type_style_index_0_lang = "", __vue2_script$K = {
31743
31817
  this.setCurrentKey(this.$route.path);
31744
31818
  },
31745
31819
  methods: {
31746
- async activeFirstMenu() {
31747
- if (treeToArray(this.menus).map((value2) => value2.path).filter((value2) => value2).includes(this.$route.path))
31748
- await this.setCurrentKey(this.$route.path);
31749
- else {
31750
- const menuItem = findFirstMatchNode(this.menus, (node) => node.path);
31751
- menuItem && (await this.$router.push({ path: menuItem.path, query: menuItem.query }), await this.setCurrentKey(menuItem.path));
31752
- }
31820
+ activeFirstMenu() {
31821
+ return __async2(this, null, function* () {
31822
+ if (treeToArray(this.menus).map((value2) => value2.path).filter((value2) => value2).includes(this.$route.path))
31823
+ yield this.setCurrentKey(this.$route.path);
31824
+ else {
31825
+ const menuItem = findFirstMatchNode(this.menus, (node) => node.path);
31826
+ menuItem && (yield this.$router.push({ path: menuItem.path, query: menuItem.query }), yield this.setCurrentKey(menuItem.path));
31827
+ }
31828
+ });
31753
31829
  },
31754
- async onNodeClick(node) {
31755
- node.path && node.path.indexOf("/") > -1 && await this.$router.push({ path: node.path, query: node.query }), await this.setCurrentKey(node.key);
31830
+ onNodeClick(node) {
31831
+ return __async2(this, null, function* () {
31832
+ node.path && node.path.indexOf("/") > -1 && (yield this.$router.push({ path: node.path, query: node.query })), yield this.setCurrentKey(node.key);
31833
+ });
31756
31834
  },
31757
- async setCurrentKey(path) {
31758
- await this.$nextTick(), this.$refs.menuTree && this.$refs.menuTree.setCurrentKey(path);
31835
+ setCurrentKey(path) {
31836
+ return __async2(this, null, function* () {
31837
+ yield this.$nextTick(), this.$refs.menuTree && this.$refs.menuTree.setCurrentKey(path);
31838
+ });
31759
31839
  },
31760
- async beforeRouteUpdate(to, from, next) {
31761
- if (to.path === this.schema) {
31762
- const menuItem = findFirstMatchNode(this.menus, (node) => node.path);
31763
- menuItem ? (await next({ path: menuItem.path, query: menuItem.query }), await this.setCurrentKey(menuItem.path)) : await next(!1);
31764
- } else
31765
- await next(), await this.setCurrentKey(this.$route.path);
31840
+ beforeRouteUpdate(to, from, next) {
31841
+ return __async2(this, null, function* () {
31842
+ if (to.path === this.schema) {
31843
+ const menuItem = findFirstMatchNode(this.menus, (node) => node.path);
31844
+ menuItem ? (yield next({ path: menuItem.path, query: menuItem.query }), yield this.setCurrentKey(menuItem.path)) : yield next(!1);
31845
+ } else
31846
+ yield next(), yield this.setCurrentKey(this.$route.path);
31847
+ });
31766
31848
  }
31767
31849
  }
31768
31850
  }, __cssModules$K = {};
@@ -31860,23 +31942,29 @@ const __vue2_script$J = {
31860
31942
  this.activeFirstMenu();
31861
31943
  },
31862
31944
  methods: {
31863
- async activeFirstMenu() {
31864
- if (treeToArray(this.menus).map((value2) => value2.path).filter((value2) => value2).includes(this.$route.path))
31865
- this.activeTab = this.$route.path;
31866
- else {
31867
- const menuItem = findFirstMatchNode(this.menus, (node) => node.path);
31868
- menuItem && (this.activeTab = menuItem.path, await this.$router.push({ path: menuItem.path, query: menuItem.query }));
31869
- }
31945
+ activeFirstMenu() {
31946
+ return __async2(this, null, function* () {
31947
+ if (treeToArray(this.menus).map((value2) => value2.path).filter((value2) => value2).includes(this.$route.path))
31948
+ this.activeTab = this.$route.path;
31949
+ else {
31950
+ const menuItem = findFirstMatchNode(this.menus, (node) => node.path);
31951
+ menuItem && (this.activeTab = menuItem.path, yield this.$router.push({ path: menuItem.path, query: menuItem.query }));
31952
+ }
31953
+ });
31870
31954
  },
31871
- async tabClick(tab) {
31872
- await this.$router.push(tab.name);
31955
+ tabClick(tab) {
31956
+ return __async2(this, null, function* () {
31957
+ yield this.$router.push(tab.name);
31958
+ });
31873
31959
  },
31874
- async beforeRouteUpdate(to, from, next) {
31875
- if (to.path === this.schema) {
31876
- const menuItem = findFirstMatchNode(this.menus, (node) => node.path);
31877
- menuItem ? (await next({ path: menuItem.path, query: menuItem.query }), this.activeTab = menuItem.path) : await next(!1);
31878
- } else
31879
- await next();
31960
+ beforeRouteUpdate(to, from, next) {
31961
+ return __async2(this, null, function* () {
31962
+ if (to.path === this.schema) {
31963
+ const menuItem = findFirstMatchNode(this.menus, (node) => node.path);
31964
+ menuItem ? (yield next({ path: menuItem.path, query: menuItem.query }), this.activeTab = menuItem.path) : yield next(!1);
31965
+ } else
31966
+ yield next();
31967
+ });
31880
31968
  }
31881
31969
  }
31882
31970
  }, __cssModules$J = {};
@@ -32046,28 +32134,32 @@ const PageSkeletonNew = /* @__PURE__ */ function() {
32046
32134
  function initPhotoSwipe(options2) {
32047
32135
  new PhotoSwipe$1(options2).init();
32048
32136
  }
32049
- async function photoswipe(event2, thumbnailsWrapperDom, options2 = { selector: "chat-image" }) {
32050
- const target = event2.target;
32051
- if (!(!target || target.classList.contains(options2.selector) || target.tagName === "IMG"))
32052
- return;
32053
- const galleryItems = thumbnailsWrapperDom.querySelectorAll(options2.selector === "img" ? options2.selector : `.${options2.selector}`), position = [...galleryItems].findIndex((value2) => value2 === target);
32054
- position >= 0 && (options2.index = position);
32055
- const dataSource = await getDataSource(galleryItems);
32056
- await initPhotoSwipe({ dataSource, index: position });
32057
- }
32058
- async function getDataSource(images) {
32059
- const dataSource = [];
32060
- for (let i2 = 0, length = images.length; i2 < length; i2++) {
32061
- const image = images[i2], src = image.getAttribute("data-src") || image.getAttribute("src"), item = {
32062
- src,
32063
- msrc: src,
32064
- alt: image.getAttribute("data-title") || image.getAttribute("alt"),
32065
- element: image
32066
- }, height = image.getAttribute("data-height"), width = image.getAttribute("data-width");
32067
- let rect = { width, height };
32068
- !height && !width && (rect = await getImageSize(image), image.setAttribute("data-height", rect.height), image.setAttribute("data-width", rect.width)), item.w = rect.width, item.width = rect.width, item.h = rect.height, item.height = rect.height, dataSource.push(item);
32069
- }
32070
- return dataSource;
32137
+ function photoswipe(_0, _1) {
32138
+ return __async2(this, arguments, function* (event2, thumbnailsWrapperDom, options2 = { selector: "chat-image" }) {
32139
+ const target = event2.target;
32140
+ if (!(!target || target.classList.contains(options2.selector) || target.tagName === "IMG"))
32141
+ return;
32142
+ const galleryItems = thumbnailsWrapperDom.querySelectorAll(options2.selector === "img" ? options2.selector : `.${options2.selector}`), position = [...galleryItems].findIndex((value2) => value2 === target);
32143
+ position >= 0 && (options2.index = position);
32144
+ const dataSource = yield getDataSource(galleryItems);
32145
+ yield initPhotoSwipe({ dataSource, index: position });
32146
+ });
32147
+ }
32148
+ function getDataSource(images) {
32149
+ return __async2(this, null, function* () {
32150
+ const dataSource = [];
32151
+ for (let i2 = 0, length = images.length; i2 < length; i2++) {
32152
+ const image = images[i2], src = image.getAttribute("data-src") || image.getAttribute("src"), item = {
32153
+ src,
32154
+ msrc: src,
32155
+ alt: image.getAttribute("data-title") || image.getAttribute("alt"),
32156
+ element: image
32157
+ }, height = image.getAttribute("data-height"), width = image.getAttribute("data-width");
32158
+ let rect = { width, height };
32159
+ !height && !width && (rect = yield getImageSize(image), image.setAttribute("data-height", rect.height), image.setAttribute("data-width", rect.width)), item.w = rect.width, item.width = rect.width, item.h = rect.height, item.height = rect.height, dataSource.push(item);
32160
+ }
32161
+ return dataSource;
32162
+ });
32071
32163
  }
32072
32164
  function getImageSize(ele) {
32073
32165
  const url = ele.getAttribute("data-src") || ele.getAttribute("src"), height = ele.getAttribute("data-height"), width = ele.getAttribute("data-width");
@@ -32122,8 +32214,10 @@ const __vue2_script$G = {
32122
32214
  }
32123
32215
  },
32124
32216
  methods: {
32125
- async preview(e2) {
32126
- await photoswipe(e2, this.$refs.wrapper, { selector: this.selector });
32217
+ preview(e2) {
32218
+ return __async2(this, null, function* () {
32219
+ yield photoswipe(e2, this.$refs.wrapper, { selector: this.selector });
32220
+ });
32127
32221
  }
32128
32222
  }
32129
32223
  }, __cssModules$G = {};
@@ -36584,13 +36678,12 @@ const __vue2_script$F = {
36584
36678
  },
36585
36679
  methods: {
36586
36680
  initBpmnModeler() {
36587
- this.bpmnModeler || (this.bpmnModeler = new BpmnModeler({
36681
+ this.bpmnModeler || (this.bpmnModeler = new BpmnModeler(__spreadValues({
36588
36682
  container: this.$refs["bpmn-canvas"],
36589
36683
  keyboard: this.keyboard ? { bindTo: document } : null,
36590
36684
  additionalModules: this.additionalModules,
36591
- moddleExtensions: this.moddleExtensions,
36592
- ...this.options
36593
- }), this.$emit("init-finished", this.bpmnModeler), this.initModelListeners());
36685
+ moddleExtensions: this.moddleExtensions
36686
+ }, this.options)), this.$emit("init-finished", this.bpmnModeler), this.initModelListeners());
36594
36687
  },
36595
36688
  initModelListeners() {
36596
36689
  const EventBus = this.bpmnModeler.get("eventBus"), that = this;
@@ -36599,71 +36692,75 @@ const __vue2_script$F = {
36599
36692
  const eventName = event2.replace(/\./g, "-"), element = eventObj ? eventObj.element : null;
36600
36693
  that.$emit(eventName, element, eventObj);
36601
36694
  });
36602
- }), EventBus.on("commandStack.changed", async (event2) => {
36695
+ }), EventBus.on("commandStack.changed", (event2) => __async2(this, null, function* () {
36603
36696
  try {
36604
36697
  this.recoverable = this.bpmnModeler.get("commandStack").canRedo(), this.revocable = this.bpmnModeler.get("commandStack").canUndo();
36605
- const { xml: xml2 } = await this.bpmnModeler.saveXML({ format: !0 });
36698
+ const { xml: xml2 } = yield this.bpmnModeler.saveXML({ format: !0 });
36606
36699
  this.$emit("commandStack-changed", event2), this.$emit("input", xml2), this.$emit("change", xml2);
36607
36700
  } catch (e2) {
36608
36701
  console.error(`[Process Designer Warn]: ${e2.message || e2}`);
36609
36702
  }
36610
- }), this.bpmnModeler.on("canvas.viewbox.changed", ({ viewbox }) => {
36703
+ })), this.bpmnModeler.on("canvas.viewbox.changed", ({ viewbox }) => {
36611
36704
  this.$emit("canvas-viewbox-changed", { viewbox });
36612
36705
  const { scale } = viewbox;
36613
36706
  this.defaultZoom = Math.floor(scale * 100) / 100;
36614
36707
  });
36615
36708
  },
36616
36709
  /* 创建新的流程图 */
36617
- async createNewDiagram(xml2) {
36618
- const newId = this.processId || `Process_${new Date().getTime()}`, newName = this.processName || `业务流程_${new Date().getTime()}`, xmlString = xml2 || DefaultEmptyXML(newId, newName, this.prefix);
36619
- try {
36620
- const { warnings } = await this.bpmnModeler.importXML(xmlString);
36621
- warnings && warnings.length && warnings.forEach((warn) => console.warn(warn));
36622
- } catch (e2) {
36623
- console.error(`[Process Designer Warn]: ${(e2 == null ? void 0 : e2.message) || e2}`);
36624
- }
36710
+ createNewDiagram(xml2) {
36711
+ return __async2(this, null, function* () {
36712
+ const newId = this.processId || `Process_${new Date().getTime()}`, newName = this.processName || `业务流程_${new Date().getTime()}`, xmlString = xml2 || DefaultEmptyXML(newId, newName, this.prefix);
36713
+ try {
36714
+ const { warnings } = yield this.bpmnModeler.importXML(xmlString);
36715
+ warnings && warnings.length && warnings.forEach((warn) => console.warn(warn));
36716
+ } catch (e2) {
36717
+ console.error(`[Process Designer Warn]: ${(e2 == null ? void 0 : e2.message) || e2}`);
36718
+ }
36719
+ });
36625
36720
  },
36626
36721
  // 下载流程图到本地
36627
36722
  /**
36628
36723
  * @param {string} type
36629
36724
  * @param {*} name
36630
36725
  */
36631
- async downloadProcess(type2, name2) {
36632
- try {
36633
- const _this = this;
36634
- if (type2 === "xml" || type2 === "bpmn") {
36635
- const {
36636
- err,
36637
- xml: xml2
36638
- } = await this.bpmnModeler.saveXML();
36639
- err && console.error(`[Process Designer Warn ]: ${err.message || err}`);
36640
- const {
36641
- href,
36642
- filename
36643
- } = _this.setEncoded(type2.toUpperCase(), name2, xml2);
36644
- downloadFunc(href, filename);
36645
- } else {
36646
- const {
36647
- err,
36648
- svg
36649
- } = await this.bpmnModeler.saveSVG();
36650
- if (err)
36651
- return console.error(err);
36652
- const {
36653
- href,
36654
- filename
36655
- } = _this.setEncoded("SVG", name2, svg);
36656
- downloadFunc(href, filename);
36726
+ downloadProcess(type2, name2) {
36727
+ return __async2(this, null, function* () {
36728
+ try {
36729
+ const _this = this;
36730
+ if (type2 === "xml" || type2 === "bpmn") {
36731
+ const {
36732
+ err,
36733
+ xml: xml2
36734
+ } = yield this.bpmnModeler.saveXML();
36735
+ err && console.error(`[Process Designer Warn ]: ${err.message || err}`);
36736
+ const {
36737
+ href,
36738
+ filename
36739
+ } = _this.setEncoded(type2.toUpperCase(), name2, xml2);
36740
+ downloadFunc(href, filename);
36741
+ } else {
36742
+ const {
36743
+ err,
36744
+ svg
36745
+ } = yield this.bpmnModeler.saveSVG();
36746
+ if (err)
36747
+ return console.error(err);
36748
+ const {
36749
+ href,
36750
+ filename
36751
+ } = _this.setEncoded("SVG", name2, svg);
36752
+ downloadFunc(href, filename);
36753
+ }
36754
+ } catch (e2) {
36755
+ console.error(`[Process Designer Warn ]: ${e2.message || e2}`);
36657
36756
  }
36658
- } catch (e2) {
36659
- console.error(`[Process Designer Warn ]: ${e2.message || e2}`);
36660
- }
36661
- function downloadFunc(href, filename) {
36662
- if (href && filename) {
36663
- const a = document.createElement("a");
36664
- a.download = filename, a.href = href, a.click(), URL.revokeObjectURL(a.href);
36757
+ function downloadFunc(href, filename) {
36758
+ if (href && filename) {
36759
+ const a = document.createElement("a");
36760
+ a.download = filename, a.href = href, a.click(), URL.revokeObjectURL(a.href);
36761
+ }
36665
36762
  }
36666
- }
36763
+ });
36667
36764
  },
36668
36765
  // 根据所需类型进行转码并返回下载地址
36669
36766
  setEncoded(type2, filename = "diagram", data2) {
@@ -37750,9 +37847,7 @@ const __vue2_script$z = {
37750
37847
  },
37751
37848
  methods: {
37752
37849
  changeTaskAsync() {
37753
- !this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), window.bpmnInstances.modeling.updateProperties(window.bpmnInstances.bpmnElement, {
37754
- ...this.taskConfigForm
37755
- });
37850
+ !this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), window.bpmnInstances.modeling.updateProperties(window.bpmnInstances.bpmnElement, __spreadValues({}, this.taskConfigForm));
37756
37851
  }
37757
37852
  }
37758
37853
  }, __cssModules$z = {};
@@ -38009,7 +38104,7 @@ const __vue2_script$y = {
38009
38104
  },
38010
38105
  methods: {
38011
38106
  getElementLoop(businessObject) {
38012
- var _a, _b, _c, _d;
38107
+ var _a, _b, _c, _d, _e, _f;
38013
38108
  if (!businessObject.loopCharacteristics) {
38014
38109
  this.loopCharacteristics = "Null", this.loopInstanceForm = {};
38015
38110
  return;
@@ -38018,12 +38113,10 @@ const __vue2_script$y = {
38018
38113
  this.loopCharacteristics = "StandardLoop", this.loopInstanceForm = {};
38019
38114
  return;
38020
38115
  }
38021
- businessObject.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = {
38022
- ...this.defaultLoopInstanceForm,
38023
- ...businessObject.loopCharacteristics,
38024
- completionCondition: ((_b = (_a = businessObject.loopCharacteristics) == null ? void 0 : _a.completionCondition) == null ? void 0 : _b.body) ?? "",
38025
- loopCardinality: ((_d = (_c = businessObject.loopCharacteristics) == null ? void 0 : _c.loopCardinality) == null ? void 0 : _d.body) ?? ""
38026
- }, this.multiLoopInstance = window.bpmnInstances.bpmnElement.businessObject.loopCharacteristics, businessObject.loopCharacteristics.extensionElements && businessObject.loopCharacteristics.extensionElements.values && businessObject.loopCharacteristics.extensionElements.values.length && this.$set(this.loopInstanceForm, "timeCycle", businessObject.loopCharacteristics.extensionElements.values[0].body);
38116
+ businessObject.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = __spreadProps(__spreadValues(__spreadValues({}, this.defaultLoopInstanceForm), businessObject.loopCharacteristics), {
38117
+ completionCondition: (_c = (_b = (_a = businessObject.loopCharacteristics) == null ? void 0 : _a.completionCondition) == null ? void 0 : _b.body) != null ? _c : "",
38118
+ loopCardinality: (_f = (_e = (_d = businessObject.loopCharacteristics) == null ? void 0 : _d.loopCardinality) == null ? void 0 : _e.body) != null ? _f : ""
38119
+ }), this.multiLoopInstance = window.bpmnInstances.bpmnElement.businessObject.loopCharacteristics, businessObject.loopCharacteristics.extensionElements && businessObject.loopCharacteristics.extensionElements.values && businessObject.loopCharacteristics.extensionElements.values.length && this.$set(this.loopInstanceForm, "timeCycle", businessObject.loopCharacteristics.extensionElements.values[0].body);
38027
38120
  },
38028
38121
  changeLoopCharacteristicsType(type2) {
38029
38122
  if (type2 === "Null") {
@@ -38301,7 +38394,7 @@ const __vue2_script$x = {
38301
38394
  this.flowConditionForm = { type: "normal" };
38302
38395
  else {
38303
38396
  const conditionExpression = this.bpmnElement.businessObject.conditionExpression;
38304
- if (this.flowConditionForm = { ...conditionExpression, type: "condition" }, this.flowConditionForm.resource) {
38397
+ if (this.flowConditionForm = __spreadProps(__spreadValues({}, conditionExpression), { type: "condition" }), this.flowConditionForm.resource) {
38305
38398
  this.$set(this.flowConditionForm, "conditionType", "script"), this.$set(this.flowConditionForm, "scriptType", "externalScript");
38306
38399
  return;
38307
38400
  }
@@ -38565,7 +38658,7 @@ const __vue2_script$w = {
38565
38658
  methods: {
38566
38659
  initDataList() {
38567
38660
  this.rootElements = window.bpmnInstances.modeler.getDefinitions().rootElements, this.messageIdMap = {}, this.signalIdMap = {}, this.messageList = [], this.signalList = [], this.rootElements.forEach((el) => {
38568
- el.$type === "bpmn:Message" && (this.messageIdMap[el.id] = !0, this.messageList.push({ ...el })), el.$type === "bpmn:Signal" && (this.signalIdMap[el.id] = !0, this.signalList.push({ ...el }));
38661
+ el.$type === "bpmn:Message" && (this.messageIdMap[el.id] = !0, this.messageList.push(__spreadValues({}, el))), el.$type === "bpmn:Signal" && (this.signalIdMap[el.id] = !0, this.signalList.push(__spreadValues({}, el)));
38569
38662
  });
38570
38663
  },
38571
38664
  openModel(type2) {
@@ -38654,14 +38747,10 @@ function uuid(length = 8, chars) {
38654
38747
  return result2;
38655
38748
  }
38656
38749
  function initListenerForm(listener) {
38657
- let self2 = {
38658
- ...listener
38659
- };
38660
- if (listener.script && (self2 = {
38661
- ...listener,
38662
- ...listener.script,
38750
+ let self2 = __spreadValues({}, listener);
38751
+ if (listener.script && (self2 = __spreadProps(__spreadValues(__spreadValues({}, listener), listener.script), {
38663
38752
  scriptType: listener.script.resource ? "externalScript" : "inlineScript"
38664
- }), listener.event === "timeout" && listener.eventDefinitions && listener.eventDefinitions.length) {
38753
+ })), listener.event === "timeout" && listener.eventDefinitions && listener.eventDefinitions.length) {
38665
38754
  let k = "";
38666
38755
  for (const key2 in listener.eventDefinitions[0])
38667
38756
  console.log(listener.eventDefinitions, key2), key2.indexOf("time") !== -1 && (k = key2, self2.eventDefinitionType = key2.replace("time", "").toLowerCase());
@@ -38670,12 +38759,11 @@ function initListenerForm(listener) {
38670
38759
  return self2;
38671
38760
  }
38672
38761
  function initListenerType(listener) {
38762
+ var _a;
38673
38763
  let listenerType2;
38674
- return listener.class && (listenerType2 = "classListener"), listener.expression && (listenerType2 = "expressionListener"), listener.delegateExpression && (listenerType2 = "delegateExpressionListener"), listener.script && (listenerType2 = "scriptListener"), {
38675
- ...JSON.parse(JSON.stringify(listener)),
38676
- ...listener.script ?? {},
38764
+ return listener.class && (listenerType2 = "classListener"), listener.expression && (listenerType2 = "expressionListener"), listener.delegateExpression && (listenerType2 = "delegateExpressionListener"), listener.script && (listenerType2 = "scriptListener"), __spreadProps(__spreadValues(__spreadValues({}, JSON.parse(JSON.stringify(listener))), (_a = listener.script) != null ? _a : {}), {
38677
38765
  listenerType: listenerType2
38678
- };
38766
+ });
38679
38767
  }
38680
38768
  const listenerType = {
38681
38769
  classListener: "Java 类",
@@ -39305,13 +39393,12 @@ const __vue2_script$v = {
39305
39393
  },
39306
39394
  methods: {
39307
39395
  resetListenersList() {
39308
- var _a, _b, _c;
39309
- this.bpmnElement = window.bpmnInstances.bpmnElement, this.otherExtensionList = [], this.bpmnElementListeners = ((_c = (_b = (_a = this.bpmnElement.businessObject) == null ? void 0 : _a.extensionElements) == null ? void 0 : _b.values) == null ? void 0 : _c.filter((ex) => ex.$type === `${this.prefix}:ExecutionListener`)) ?? [], this.elementListenersList = this.bpmnElementListeners.map((listener) => initListenerType(listener));
39396
+ var _a, _b, _c, _d;
39397
+ this.bpmnElement = window.bpmnInstances.bpmnElement, this.otherExtensionList = [], this.bpmnElementListeners = (_d = (_c = (_b = (_a = this.bpmnElement.businessObject) == null ? void 0 : _a.extensionElements) == null ? void 0 : _b.values) == null ? void 0 : _c.filter((ex) => ex.$type === `${this.prefix}:ExecutionListener`)) != null ? _d : [], this.elementListenersList = this.bpmnElementListeners.map((listener) => initListenerType(listener));
39310
39398
  },
39311
39399
  // 打开 监听器详情 侧边栏
39312
39400
  openListenerForm(listener, index2) {
39313
- listener ? (this.listenerForm = initListenerForm(listener), this.editingListenerIndex = index2) : (this.listenerForm = {}, this.editingListenerIndex = -1), listener && listener.fields ? this.fieldsListOfListener = listener.fields.map((field) => ({
39314
- ...field,
39401
+ listener ? (this.listenerForm = initListenerForm(listener), this.editingListenerIndex = index2) : (this.listenerForm = {}, this.editingListenerIndex = -1), listener && listener.fields ? this.fieldsListOfListener = listener.fields.map((field) => __spreadProps(__spreadValues({}, field), {
39315
39402
  fieldType: field.string ? "string" : "expression"
39316
39403
  })) : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, this.$nextTick(() => {
39317
39404
  this.$refs.listenerFormRef && this.$refs.listenerFormRef.clearValidate();
@@ -39324,8 +39411,10 @@ const __vue2_script$v = {
39324
39411
  });
39325
39412
  },
39326
39413
  // 保存监听器注入字段
39327
- async saveListenerFiled() {
39328
- await this.$refs.listenerFieldFormRef.validate() && (this.editingListenerFieldIndex === -1 ? (this.fieldsListOfListener.push(this.listenerFieldForm), this.listenerForm.fields.push(this.listenerFieldForm)) : (this.fieldsListOfListener.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm), this.listenerForm.fields.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm)), this.listenerFieldFormModelVisible = !1, this.$nextTick(() => this.listenerFieldForm = {}));
39414
+ saveListenerFiled() {
39415
+ return __async2(this, null, function* () {
39416
+ (yield this.$refs.listenerFieldFormRef.validate()) && (this.editingListenerFieldIndex === -1 ? (this.fieldsListOfListener.push(this.listenerFieldForm), this.listenerForm.fields.push(this.listenerFieldForm)) : (this.fieldsListOfListener.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm), this.listenerForm.fields.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm)), this.listenerFieldFormModelVisible = !1, this.$nextTick(() => this.listenerFieldForm = {}));
39417
+ });
39329
39418
  },
39330
39419
  // 移除监听器字段
39331
39420
  removeListenerField(field, index2) {
@@ -39346,12 +39435,14 @@ const __vue2_script$v = {
39346
39435
  }).catch(() => console.info("操作取消"));
39347
39436
  },
39348
39437
  // 保存监听器配置
39349
- async saveListenerConfig() {
39350
- var _a, _b, _c;
39351
- if (!await this.$refs.listenerFormRef.validate())
39352
- return;
39353
- const listenerObject = createListenerObject(this.listenerForm, !1, this.prefix);
39354
- this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(listenerObject), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, listenerObject), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = ((_c = (_b = (_a = this.bpmnElement.businessObject) == null ? void 0 : _a.extensionElements) == null ? void 0 : _b.values) == null ? void 0 : _c.filter((ex) => ex.$type !== `${this.prefix}:ExecutionListener`)) ?? [], updateElementExtensions(this.bpmnElement, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
39438
+ saveListenerConfig() {
39439
+ return __async2(this, null, function* () {
39440
+ var _a, _b, _c, _d;
39441
+ if (!(yield this.$refs.listenerFormRef.validate()))
39442
+ return;
39443
+ const listenerObject = createListenerObject(this.listenerForm, !1, this.prefix);
39444
+ this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(listenerObject), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, listenerObject), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (_d = (_c = (_b = (_a = this.bpmnElement.businessObject) == null ? void 0 : _a.extensionElements) == null ? void 0 : _b.values) == null ? void 0 : _c.filter((ex) => ex.$type !== `${this.prefix}:ExecutionListener`)) != null ? _d : [], updateElementExtensions(this.bpmnElement, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
39445
+ });
39355
39446
  }
39356
39447
  }
39357
39448
  }, __cssModules$v = {};
@@ -39566,8 +39657,8 @@ const __vue2_script$u = {
39566
39657
  },
39567
39658
  methods: {
39568
39659
  resetAttributesList() {
39569
- var _a, _b, _c;
39570
- this.bpmnElement = window.bpmnInstances.bpmnElement, this.otherExtensionList = [], this.bpmnElementProperties = ((_c = (_b = (_a = this.bpmnElement.businessObject) == null ? void 0 : _a.extensionElements) == null ? void 0 : _b.values) == null ? void 0 : _c.filter((ex) => (ex.$type !== `${this.prefix}:Properties` && this.otherExtensionList.push(ex), ex.$type === `${this.prefix}:Properties`))) ?? [], this.bpmnElementPropertyList = this.bpmnElementProperties.reduce((pre, current) => pre.concat(current.values), []), this.elementPropertyList = JSON.parse(JSON.stringify(this.bpmnElementPropertyList ?? []));
39660
+ var _a, _b, _c, _d, _e;
39661
+ this.bpmnElement = window.bpmnInstances.bpmnElement, this.otherExtensionList = [], this.bpmnElementProperties = (_d = (_c = (_b = (_a = this.bpmnElement.businessObject) == null ? void 0 : _a.extensionElements) == null ? void 0 : _b.values) == null ? void 0 : _c.filter((ex) => (ex.$type !== `${this.prefix}:Properties` && this.otherExtensionList.push(ex), ex.$type === `${this.prefix}:Properties`))) != null ? _d : [], this.bpmnElementPropertyList = this.bpmnElementProperties.reduce((pre, current) => pre.concat(current.values), []), this.elementPropertyList = JSON.parse(JSON.stringify((_e = this.bpmnElementPropertyList) != null ? _e : []));
39571
39662
  },
39572
39663
  openAttributesForm(attr, index2) {
39573
39664
  this.editingPropertyIndex = index2, this.propertyForm = index2 === -1 ? {} : JSON.parse(JSON.stringify(attr)), this.propertyFormModelVisible = !0, this.$nextTick(() => {
@@ -41130,12 +41221,11 @@ const __vue2_script$s = {
41130
41221
  },
41131
41222
  methods: {
41132
41223
  resetListenersList() {
41133
- var _a, _b, _c;
41134
- this.bpmnElement = window.bpmnInstances.bpmnElement, this.otherExtensionList = [], this.bpmnElementListeners = ((_c = (_b = (_a = this.bpmnElement.businessObject) == null ? void 0 : _a.extensionElements) == null ? void 0 : _b.values) == null ? void 0 : _c.filter((ex) => ex.$type === `${this.prefix}:TaskListener`)) ?? [], this.elementListenersList = this.bpmnElementListeners.map((listener) => initListenerType(listener));
41224
+ var _a, _b, _c, _d;
41225
+ this.bpmnElement = window.bpmnInstances.bpmnElement, this.otherExtensionList = [], this.bpmnElementListeners = (_d = (_c = (_b = (_a = this.bpmnElement.businessObject) == null ? void 0 : _a.extensionElements) == null ? void 0 : _b.values) == null ? void 0 : _c.filter((ex) => ex.$type === `${this.prefix}:TaskListener`)) != null ? _d : [], this.elementListenersList = this.bpmnElementListeners.map((listener) => initListenerType(listener));
41135
41226
  },
41136
41227
  openListenerForm(listener, index2) {
41137
- listener ? (this.listenerForm = initListenerForm(listener), this.editingListenerIndex = index2) : (this.listenerForm = {}, this.editingListenerIndex = -1), listener && listener.fields ? this.fieldsListOfListener = listener.fields.map((field) => ({
41138
- ...field,
41228
+ listener ? (this.listenerForm = initListenerForm(listener), this.editingListenerIndex = index2) : (this.listenerForm = {}, this.editingListenerIndex = -1), listener && listener.fields ? this.fieldsListOfListener = listener.fields.map((field) => __spreadProps(__spreadValues({}, field), {
41139
41229
  fieldType: field.string ? "string" : "expression"
41140
41230
  })) : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, this.$nextTick(() => {
41141
41231
  this.$refs.listenerFormRef && this.$refs.listenerFormRef.clearValidate();
@@ -41151,12 +41241,14 @@ const __vue2_script$s = {
41151
41241
  }).catch(() => console.info("操作取消"));
41152
41242
  },
41153
41243
  // 保存监听器
41154
- async saveListenerConfig() {
41155
- var _a, _b, _c;
41156
- if (!await this.$refs.listenerFormRef.validate())
41157
- return;
41158
- const listenerObject = createListenerObject(this.listenerForm, !0, this.prefix);
41159
- this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(listenerObject), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, listenerObject), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = ((_c = (_b = (_a = this.bpmnElement.businessObject) == null ? void 0 : _a.extensionElements) == null ? void 0 : _b.values) == null ? void 0 : _c.filter((ex) => ex.$type !== `${this.prefix}:TaskListener`)) ?? [], updateElementExtensions(this.bpmnElement, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
41244
+ saveListenerConfig() {
41245
+ return __async2(this, null, function* () {
41246
+ var _a, _b, _c, _d;
41247
+ if (!(yield this.$refs.listenerFormRef.validate()))
41248
+ return;
41249
+ const listenerObject = createListenerObject(this.listenerForm, !0, this.prefix);
41250
+ this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(listenerObject), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, listenerObject), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (_d = (_c = (_b = (_a = this.bpmnElement.businessObject) == null ? void 0 : _a.extensionElements) == null ? void 0 : _b.values) == null ? void 0 : _c.filter((ex) => ex.$type !== `${this.prefix}:TaskListener`)) != null ? _d : [], updateElementExtensions(this.bpmnElement, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
41251
+ });
41160
41252
  },
41161
41253
  // 打开监听器字段编辑弹窗
41162
41254
  openListenerFieldForm(field, index2) {
@@ -41165,8 +41257,10 @@ const __vue2_script$s = {
41165
41257
  });
41166
41258
  },
41167
41259
  // 保存监听器注入字段
41168
- async saveListenerFiled() {
41169
- await this.$refs.listenerFieldFormRef.validate() && (this.editingListenerFieldIndex === -1 ? (this.fieldsListOfListener.push(this.listenerFieldForm), this.listenerForm.fields.push(this.listenerFieldForm)) : (this.fieldsListOfListener.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm), this.listenerForm.fields.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm)), this.listenerFieldFormModelVisible = !1, this.$nextTick(() => this.listenerFieldForm = {}));
41260
+ saveListenerFiled() {
41261
+ return __async2(this, null, function* () {
41262
+ (yield this.$refs.listenerFieldFormRef.validate()) && (this.editingListenerFieldIndex === -1 ? (this.fieldsListOfListener.push(this.listenerFieldForm), this.listenerForm.fields.push(this.listenerFieldForm)) : (this.fieldsListOfListener.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm), this.listenerForm.fields.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm)), this.listenerFieldFormModelVisible = !1, this.$nextTick(() => this.listenerFieldForm = {}));
41263
+ });
41170
41264
  },
41171
41265
  // 移除监听器字段
41172
41266
  removeListenerField(field, index2) {
@@ -41505,8 +41599,9 @@ const __vue2_script$r = {
41505
41599
  },
41506
41600
  // 初始化数据
41507
41601
  initFormOnChanged(element) {
41602
+ var _a;
41508
41603
  let activatedElement = element;
41509
- activatedElement || (activatedElement = window.bpmnInstances.elementRegistry.find((el) => el.type === "bpmn:Process") ?? window.bpmnInstances.elementRegistry.find((el) => el.type === "bpmn:Collaboration")), activatedElement && (debug.call(this, `select element changed: id: ${activatedElement.id} , type: ${activatedElement.businessObject.$type}`), debug.call(this, "businessObject", activatedElement.businessObject), window.bpmnInstances.bpmnElement = activatedElement, this.bpmnElement = activatedElement, this.elementId = activatedElement.id, this.elementType = activatedElement.type.split(":")[1] || "", this.elementBusinessObject = JSON.parse(JSON.stringify(activatedElement.businessObject)), this.conditionFormVisible = !!(this.elementType === "SequenceFlow" && activatedElement.source && activatedElement.source.type.indexOf("StartEvent") === -1), this.formVisible = this.elementType === "UserTask" || this.elementType === "StartEvent");
41604
+ activatedElement || (activatedElement = (_a = window.bpmnInstances.elementRegistry.find((el) => el.type === "bpmn:Process")) != null ? _a : window.bpmnInstances.elementRegistry.find((el) => el.type === "bpmn:Collaboration")), activatedElement && (debug.call(this, `select element changed: id: ${activatedElement.id} , type: ${activatedElement.businessObject.$type}`), debug.call(this, "businessObject", activatedElement.businessObject), window.bpmnInstances.bpmnElement = activatedElement, this.bpmnElement = activatedElement, this.elementId = activatedElement.id, this.elementType = activatedElement.type.split(":")[1] || "", this.elementBusinessObject = JSON.parse(JSON.stringify(activatedElement.businessObject)), this.conditionFormVisible = !!(this.elementType === "SequenceFlow" && activatedElement.source && activatedElement.source.type.indexOf("StartEvent") === -1), this.formVisible = this.elementType === "UserTask" || this.elementType === "StartEvent");
41510
41605
  },
41511
41606
  beforeDestroy() {
41512
41607
  window.bpmnInstances = null;
@@ -42296,8 +42391,10 @@ const SearchPopover_vue_vue_type_style_index_0_lang = "", __vue2_script$m = {
42296
42391
  window.removeEventListener("keydown", this.keydown);
42297
42392
  },
42298
42393
  methods: {
42299
- async onItemClick(item) {
42300
- item.path && (this.hidePopover(), await this.$router.push(item.path));
42394
+ onItemClick(item) {
42395
+ return __async2(this, null, function* () {
42396
+ item.path && (this.hidePopover(), yield this.$router.push(item.path));
42397
+ });
42301
42398
  },
42302
42399
  copyEvalResult() {
42303
42400
  return copy(this.evalResult);
@@ -42311,12 +42408,14 @@ const SearchPopover_vue_vue_type_style_index_0_lang = "", __vue2_script$m = {
42311
42408
  mouseHoverItem(item, index2) {
42312
42409
  this.currentIndex = index2;
42313
42410
  },
42314
- async keydown(event2) {
42315
- if (event2.key === "Shift") {
42316
- const cost = Date.now() - this.last;
42317
- cost > 0 && cost < 500 ? (this.showPopover = !0, await this.$nextTick(), this.$refs.searchInput.focus()) : this.last = Date.now();
42318
- }
42319
- this.showPopover === !0 && (event2.key === "Escape" && this.hidePopover(), event2.key === "Enter" && (this.currentItem ? this.currentItem.url ? (window.open(this.currentItem.url, "_blank"), this.hidePopover()) : this.currentItem.path && await this.onItemClick(this.currentItem) : this.copyEvalResult()), event2.key === "ArrowUp" && (this.currentIndex--, this.currentIndex < 0 && (this.currentIndex = this.filterList.length - 1), this.scrollIntoView(this.currentIndex)), event2.key === "ArrowDown" && (this.currentIndex++, this.currentIndex >= this.filterList.length && (this.currentIndex = 0), this.scrollIntoView(this.currentIndex)));
42411
+ keydown(event2) {
42412
+ return __async2(this, null, function* () {
42413
+ if (event2.key === "Shift") {
42414
+ const cost = Date.now() - this.last;
42415
+ cost > 0 && cost < 500 ? (this.showPopover = !0, yield this.$nextTick(), this.$refs.searchInput.focus()) : this.last = Date.now();
42416
+ }
42417
+ this.showPopover === !0 && (event2.key === "Escape" && this.hidePopover(), event2.key === "Enter" && (this.currentItem ? this.currentItem.url ? (window.open(this.currentItem.url, "_blank"), this.hidePopover()) : this.currentItem.path && (yield this.onItemClick(this.currentItem)) : this.copyEvalResult()), event2.key === "ArrowUp" && (this.currentIndex--, this.currentIndex < 0 && (this.currentIndex = this.filterList.length - 1), this.scrollIntoView(this.currentIndex)), event2.key === "ArrowDown" && (this.currentIndex++, this.currentIndex >= this.filterList.length && (this.currentIndex = 0), this.scrollIntoView(this.currentIndex)));
42418
+ });
42320
42419
  },
42321
42420
  scrollIntoView(index2) {
42322
42421
  if (index2 === 0) {
@@ -42425,7 +42524,7 @@ const __vue2_script$l = {
42425
42524
  init() {
42426
42525
  this.canvas = this.$refs.canvas;
42427
42526
  const canvas2 = this.canvas, _safe = this;
42428
- typeof document.ontouchstart < "u" ? (canvas2.addEventListener("touchmove", onMouseMove, !1), canvas2.addEventListener("touchstart", onMouseDown, !1), canvas2.addEventListener("touchend", onMouseUp, !1)) : (canvas2.addEventListener("mousemove", onMouseMove, !1), canvas2.addEventListener("mousedown", onMouseDown, !1), canvas2.addEventListener("mouseup", onMouseUp, !1), canvas2.addEventListener("mouseleave", onMouseUp, !1)), this.context = canvas2.getContext("2d");
42527
+ typeof document.ontouchstart != "undefined" ? (canvas2.addEventListener("touchmove", onMouseMove, !1), canvas2.addEventListener("touchstart", onMouseDown, !1), canvas2.addEventListener("touchend", onMouseUp, !1)) : (canvas2.addEventListener("mousemove", onMouseMove, !1), canvas2.addEventListener("mousedown", onMouseDown, !1), canvas2.addEventListener("mouseup", onMouseUp, !1), canvas2.addEventListener("mouseleave", onMouseUp, !1)), this.context = canvas2.getContext("2d");
42429
42528
  const context = this.context;
42430
42529
  this.linex = [], this.liney = [], this.linen = [];
42431
42530
  let lastX = 1, lastY = 30, flag = 0;
@@ -42963,8 +43062,10 @@ const SplitPane_vue_vue_type_style_index_0_lang = "", __vue2_script$i = {
42963
43062
  watch: {
42964
43063
  value: "resetOffset"
42965
43064
  },
42966
- async mounted() {
42967
- await this.$nextTick(), this.resetOffset();
43065
+ mounted() {
43066
+ return __async2(this, null, function* () {
43067
+ yield this.$nextTick(), this.resetOffset();
43068
+ });
42968
43069
  },
42969
43070
  methods: {
42970
43071
  resetOffset() {
@@ -43241,15 +43342,19 @@ const Swiper_vue_vue_type_style_index_0_lang = "", __vue2_script$f = {
43241
43342
  }
43242
43343
  };
43243
43344
  },
43244
- async mounted() {
43245
- await this.layout();
43345
+ mounted() {
43346
+ return __async2(this, null, function* () {
43347
+ yield this.layout();
43348
+ });
43246
43349
  },
43247
43350
  updated() {
43248
43351
  this.computeContentWidth();
43249
43352
  },
43250
43353
  methods: {
43251
- async layout() {
43252
- await this.$nextTick(), this.computeContentWidth(), this.resize();
43354
+ layout() {
43355
+ return __async2(this, null, function* () {
43356
+ yield this.$nextTick(), this.computeContentWidth(), this.resize();
43357
+ });
43253
43358
  },
43254
43359
  resize() {
43255
43360
  console.log(1), this.swiperBoxWith = this.$refs.swiperBox.offsetWidth;
@@ -43393,7 +43498,7 @@ const Swiper = /* @__PURE__ */ function() {
43393
43498
  this.$parent.$emit("on-before-index-change", this.currentIndex);
43394
43499
  return;
43395
43500
  }
43396
- (typeof this.disabled > "u" || this.disabled === !1) && (this.currentSelected = !0, this.$parent.currentIndex = this.currentIndex, this.$nextTick(() => {
43501
+ (typeof this.disabled == "undefined" || this.disabled === !1) && (this.currentSelected = !0, this.$parent.currentIndex = this.currentIndex, this.$nextTick(() => {
43397
43502
  this.$emit("on-item-click", this.currentIndex);
43398
43503
  }));
43399
43504
  }
@@ -43567,7 +43672,7 @@ var render$a = function() {
43567
43672
  on: {
43568
43673
  click: _vm.onItemClick
43569
43674
  }
43570
- }, [_vm._t("default"), typeof _vm.badgeLabel < "u" && _vm.badgeLabel !== "" ? _c("span", {
43675
+ }, [_vm._t("default"), typeof _vm.badgeLabel != "undefined" && _vm.badgeLabel !== "" ? _c("span", {
43571
43676
  staticClass: "vux-tab-item-badge",
43572
43677
  style: {
43573
43678
  background: _vm.badgeBackground,
@@ -43682,13 +43787,11 @@ const TabItem = /* @__PURE__ */ function() {
43682
43787
  functional: !0,
43683
43788
  mixins: [tableColumnProps],
43684
43789
  render(createElement, { data: data2, props: props2, children }) {
43685
- return createElement("ElTableColumn", {
43686
- ...data2,
43687
- props: {
43688
- ...props2,
43790
+ return createElement("ElTableColumn", __spreadProps(__spreadValues({}, data2), {
43791
+ props: __spreadProps(__spreadValues({}, props2), {
43689
43792
  showOverflowTooltip: ["selection", "single-selection", "index", "expand"].includes(props2.type) ? !1 : props2.showOverflowTooltip
43690
- }
43691
- }, children);
43793
+ })
43794
+ }), children);
43692
43795
  }
43693
43796
  };
43694
43797
  let __vue2_render$2, __vue2_staticRenderFns$2;
@@ -44102,8 +44205,10 @@ const TableView_vue_vue_type_style_index_0_lang = "", builtInButtons = ["back",
44102
44205
  created() {
44103
44206
  this._viewIds = [], this.viewId && this._viewIds.push(this.viewId), this._viewIds.includes(this.$parent.$options.name) || this._viewIds.push(this.$parent.$options.name);
44104
44207
  },
44105
- async activated() {
44106
- this.$refs.treeScroller && (this.treeScrollTop && (this.$refs.treeScroller.scrollTop = this.treeScrollTop), this.treeScrollLeft && (this.$refs.treeScroller.scrollLeft = this.treeScrollLeft));
44208
+ activated() {
44209
+ return __async2(this, null, function* () {
44210
+ this.$refs.treeScroller && (this.treeScrollTop && (this.$refs.treeScroller.scrollTop = this.treeScrollTop), this.treeScrollLeft && (this.$refs.treeScroller.scrollLeft = this.treeScrollLeft));
44211
+ });
44107
44212
  },
44108
44213
  methods: {
44109
44214
  onTreeScroll() {
@@ -44112,11 +44217,15 @@ const TableView_vue_vue_type_style_index_0_lang = "", builtInButtons = ["back",
44112
44217
  toggleSearch() {
44113
44218
  this.right = this.right === 0 ? -this.searchPanelProps.width : 0;
44114
44219
  },
44115
- async onSearchClick() {
44116
- this.$refs.table.setModel(this.searchModel || this.searchPanelProps.model), await this.refreshTable();
44220
+ onSearchClick() {
44221
+ return __async2(this, null, function* () {
44222
+ this.$refs.table.setModel(this.searchModel || this.searchPanelProps.model), yield this.refreshTable();
44223
+ });
44117
44224
  },
44118
- async onClearClick() {
44119
- this.$emit("reset"), this.$refs.form.resetFields(), this.$refs.table.setModel(this.searchModel || this.searchPanelProps.model), await this.refreshTable();
44225
+ onClearClick() {
44226
+ return __async2(this, null, function* () {
44227
+ this.$emit("reset"), this.$refs.form.resetFields(), this.$refs.table.setModel(this.searchModel || this.searchPanelProps.model), yield this.refreshTable();
44228
+ });
44120
44229
  },
44121
44230
  openFrom(row2) {
44122
44231
  this.$router.push(fillPath(this.formPath, row2));
@@ -44132,41 +44241,45 @@ const TableView_vue_vue_type_style_index_0_lang = "", builtInButtons = ["back",
44132
44241
  var _a;
44133
44242
  !((_a = this.toolbarListeners) != null && _a.create) && this.formPath && this.openFrom();
44134
44243
  },
44135
- async del() {
44136
- var _a;
44137
- const api = this.deleteApi || this.$parent.del;
44138
- if (!((_a = this.toolbarListeners) != null && _a.del) && isFunction(api)) {
44139
- if (!this.selectedRows.length) {
44140
- this.$message.warning("请选择要删除的记录!");
44141
- return;
44142
- }
44143
- await this.$confirm(
44144
- `您确定要删除选中的[<span class="break-word" style="color: orange">${this.selectedRows.length}</span>]行记录吗?`,
44145
- "系统提示",
44146
- {
44147
- type: "warning",
44148
- modal: !0,
44149
- dangerouslyUseHTMLString: !0,
44150
- closeOnClickModal: !1,
44151
- beforeClose: async (action, instance, done) => {
44152
- if (action === "confirm")
44153
- try {
44154
- instance.confirmButtonLoading = !0, instance.confirmButtonText = "删除...", await api.call(this, this.selectedRows.map((value2) => value2.id).join(",")), this.$message.success("删除成功"), await this.reloadTable(), await this.refreshTree();
44155
- } catch {
44156
- }
44157
- done();
44158
- }
44244
+ del() {
44245
+ return __async2(this, null, function* () {
44246
+ var _a;
44247
+ const api = this.deleteApi || this.$parent.del;
44248
+ if (!((_a = this.toolbarListeners) != null && _a.del) && isFunction(api)) {
44249
+ if (!this.selectedRows.length) {
44250
+ this.$message.warning("请选择要删除的记录!");
44251
+ return;
44159
44252
  }
44160
- ).catch((_) => _);
44161
- }
44253
+ yield this.$confirm(
44254
+ `您确定要删除选中的[<span class="break-word" style="color: orange">${this.selectedRows.length}</span>]行记录吗?`,
44255
+ "系统提示",
44256
+ {
44257
+ type: "warning",
44258
+ modal: !0,
44259
+ dangerouslyUseHTMLString: !0,
44260
+ closeOnClickModal: !1,
44261
+ beforeClose: (action, instance, done) => __async2(this, null, function* () {
44262
+ if (action === "confirm")
44263
+ try {
44264
+ instance.confirmButtonLoading = !0, instance.confirmButtonText = "删除...", yield api.call(this, this.selectedRows.map((value2) => value2.id).join(",")), this.$message.success("删除成功"), yield this.reloadTable(), yield this.refreshTree();
44265
+ } catch (_) {
44266
+ }
44267
+ done();
44268
+ })
44269
+ }
44270
+ ).catch((_) => _);
44271
+ }
44272
+ });
44162
44273
  },
44163
44274
  reloadTable() {
44164
44275
  var _a;
44165
44276
  (_a = this.$refs.table) == null || _a.reload();
44166
44277
  },
44167
- async refreshTable() {
44168
- var _a;
44169
- await ((_a = this.$refs.table) == null ? void 0 : _a.getPage());
44278
+ refreshTable() {
44279
+ return __async2(this, null, function* () {
44280
+ var _a;
44281
+ yield (_a = this.$refs.table) == null ? void 0 : _a.getPage();
44282
+ });
44170
44283
  },
44171
44284
  refreshTree() {
44172
44285
  this.$refs.tree.reloadTree();
@@ -44252,7 +44365,7 @@ const TagRender_vue_vue_type_style_index_0_lang = "", __vue2_script$9 = {
44252
44365
  computed: {
44253
44366
  internalTags() {
44254
44367
  return this.transfer ? this.tags.map((value2) => {
44255
- const temp = { ...value2 };
44368
+ const temp = __spreadValues({}, value2);
44256
44369
  return this.transfer(temp);
44257
44370
  }) : this.tags;
44258
44371
  }
@@ -44526,14 +44639,16 @@ const TinymceEditor_vue_vue_type_style_index_0_lang = "", __vue2_script$7 = {
44526
44639
  getEditor() {
44527
44640
  return this.$refs.editor.$refs.editor.editor;
44528
44641
  },
44529
- async onEditorShadowClick() {
44530
- if (this.inputDisabled)
44531
- return;
44532
- this.focus = !0, await this.$nextTick();
44533
- const editor = this.getEditor();
44534
- editor.focus();
44535
- const body = editor.getBody();
44536
- editor.selection.setCursorLocation(body, body.childNodes.length);
44642
+ onEditorShadowClick() {
44643
+ return __async2(this, null, function* () {
44644
+ if (this.inputDisabled)
44645
+ return;
44646
+ this.focus = !0, yield this.$nextTick();
44647
+ const editor = this.getEditor();
44648
+ editor.focus();
44649
+ const body = editor.getBody();
44650
+ editor.selection.setCursorLocation(body, body.childNodes.length);
44651
+ });
44537
44652
  },
44538
44653
  insertContent(content) {
44539
44654
  this.getEditor().insertContent(content);
@@ -45054,10 +45169,9 @@ const __vue2_script$6 = {
45054
45169
  }), buttons.forEach((btn) => {
45055
45170
  btn.icon = ` ${btn.icon}`;
45056
45171
  const { onclick } = btn;
45057
- editor.addButton(btn.name, {
45058
- ...btn,
45172
+ editor.addButton(btn.name, __spreadProps(__spreadValues({}, btn), {
45059
45173
  onclick: () => onclick(editor)
45060
- });
45174
+ }));
45061
45175
  });
45062
45176
  const uploadButton = {
45063
45177
  icon: " el-icon-picture",
@@ -45065,10 +45179,9 @@ const __vue2_script$6 = {
45065
45179
  title: "上传图片",
45066
45180
  onclick: this.upload
45067
45181
  };
45068
- editor.addButton(uploadButton.name, {
45069
- ...uploadButton,
45182
+ editor.addButton(uploadButton.name, __spreadProps(__spreadValues({}, uploadButton), {
45070
45183
  onclick: () => uploadButton.onclick(editor)
45071
- });
45184
+ }));
45072
45185
  },
45073
45186
  toolbar,
45074
45187
  placeholder: "在这里输入文字",
@@ -45320,12 +45433,12 @@ const TinymceWrapper = /* @__PURE__ */ function() {
45320
45433
  createButton
45321
45434
  } = this;
45322
45435
  return ((_b = (_a = this.$scopedSlots)["toolbar-left"]) == null ? void 0 : _b.call(_a)) || this.buttons.map((key2) => {
45323
- var _a2, _b2, _c, _d;
45436
+ var _a2, _b2, _c, _d, _e;
45324
45437
  const button = builtinButtons[key2];
45325
- return button ? ((_b2 = (_a2 = this.$scopedSlots)[key2]) == null ? void 0 : _b2.call(_a2)) || createButton(key2, button) : key2 === "slot" ? ((_d = (_c = this.$scopedSlots).default) == null ? void 0 : _d.call(_c, {
45438
+ return button ? ((_b2 = (_a2 = this.$scopedSlots)[key2]) == null ? void 0 : _b2.call(_a2)) || createButton(key2, button) : key2 === "slot" && (_e = (_d = (_c = this.$scopedSlots).default) == null ? void 0 : _d.call(_c, {
45326
45439
  buttons: this.buttons,
45327
45440
  footer: this.footer
45328
- })) ?? null : null;
45441
+ })) != null ? _e : null;
45329
45442
  });
45330
45443
  },
45331
45444
  getRightButtons() {
@@ -45427,15 +45540,17 @@ const ToolbarButton_vue_vue_type_style_index_0_lang = "", __vue2_script$4 = {
45427
45540
  };
45428
45541
  },
45429
45542
  methods: {
45430
- async onClick(e2) {
45431
- this.loading = !0;
45432
- const { click } = this.$listeners;
45433
- if (isFunction(click))
45434
- try {
45435
- await click(e2);
45436
- } catch {
45437
- }
45438
- this.loading = !1;
45543
+ onClick(e2) {
45544
+ return __async2(this, null, function* () {
45545
+ this.loading = !0;
45546
+ const { click } = this.$listeners;
45547
+ if (isFunction(click))
45548
+ try {
45549
+ yield click(e2);
45550
+ } catch (e3) {
45551
+ }
45552
+ this.loading = !1;
45553
+ });
45439
45554
  }
45440
45555
  }
45441
45556
  }, __cssModules$4 = {};
@@ -46199,11 +46314,9 @@ const VueTagsInput = /* @__PURE__ */ function() {
46199
46314
  const context2D = canvas2.getContext("2d");
46200
46315
  return context2D.font = "15px Verdana", context2D.fillStyle = backgroundColor, context2D.fillRect(0, 0, width, height), context2D.translate(width / 2, height / 2), context2D.rotate(rotate * Math.PI / 180), context2D.fillStyle = color, context2D.textAlign = "center", context2D.textBaseline = "middle", context2D.fillText(text, 0, 0), h("div", {
46201
46316
  class: getClass(data2.class, `watermark ${data2.staticClass || ""}`),
46202
- style: {
46203
- ...data2.style || {},
46204
- ...data2.staticStyle || {},
46317
+ style: __spreadProps(__spreadValues(__spreadValues({}, data2.style || {}), data2.staticStyle || {}), {
46205
46318
  background: `url(${canvas2.toDataURL("image/png")}) left top repeat`
46206
- }
46319
+ })
46207
46320
  });
46208
46321
  }
46209
46322
  };
@@ -46225,7 +46338,7 @@ function __vue2_injectStyles(context) {
46225
46338
  }
46226
46339
  const Watermark = /* @__PURE__ */ function() {
46227
46340
  return __component__.exports;
46228
- }(), version = "2.7.21";
46341
+ }(), version = "2.7.22";
46229
46342
  function index(Vue2) {
46230
46343
  Vue2.component(AddressInput.name, AddressInput), Vue2.component(Affix.name, Affix), Vue2.component(AsideMenu.name, AsideMenu), Vue2.component(Avatar.name, Avatar), Vue2.component(AwesomeButton.name, AwesomeButton), Vue2.component(CapsuleTab.name, CapsuleTab), Vue2.component(Card.name, Card), Vue2.component(Carousel.name, Carousel), Vue2.component(Chat.name, Chat), Vue2.component(ChunkFileUploader.name, ChunkFileUploader), Vue2.component(ChunkFileUploaderButton.name, ChunkFileUploaderButton), Vue2.component(ChunkFileUploaderDrop.name, ChunkFileUploaderDrop), Vue2.component(ChunkFileUploaderFile.name, ChunkFileUploaderFile), Vue2.component(ChunkFileUploaderFiles.name, ChunkFileUploaderFiles), Vue2.component(ChunkFileUploaderList.name, ChunkFileUploaderList), Vue2.component(ChunkFileUploaderUnSupport.name, ChunkFileUploaderUnSupport), Vue2.component(CodeMirrorEditor.name, CodeMirrorEditor), Vue2.component(ColorPicker.name, ColorPicker), Vue2.component(Column.name, Column), Vue2.component(ColumnDefault.name, ColumnDefault), Vue2.component(ColumnDynamic.name, ColumnDynamic), Vue2.component(ColumnMenu.name, ColumnMenu), Vue2.component(ColumnSlot.name, ColumnSlot), Vue2.component(Comment.name, Comment), Vue2.component(Confirmable.name, Confirmable), Vue2.component(ConfirmButton.name, ConfirmButton), Vue2.component(ContextMenu.name, ContextMenu), Vue2.component(CountUp.name, CountUp), Vue2.component(CustomScrollbar.name, CustomScrollbar), Vue2.component(DataBox.name, DataBox), Vue2.component(DataCard.name, DataCard), Vue2.component(DataCardtext.name, DataCardtext), Vue2.component(DataDisplay.name, DataDisplay), Vue2.component(DataIcons.name, DataIcons), Vue2.component(DataImgtext.name, DataImgtext), Vue2.component(DataOperatext.name, DataOperatext), Vue2.component(DataPanel.name, DataPanel), Vue2.component(DataPay.name, DataPay), Vue2.component(DataPrice.name, DataPrice), Vue2.component(DataProgress.name, DataProgress), Vue2.component(DataRotate.name, DataRotate), Vue2.component(DataTablePicker.name, DataTablePicker), Vue2.component(DataTabs.name, DataTabs), Vue2.component(DialogColumn.name, DialogColumn), Vue2.component(DialogExcel.name, DialogExcel), Vue2.component(DialogFilter.name, DialogFilter), Vue2.component(DialogForm.name, DialogForm), Vue2.component(DynamicTable.name, DynamicTable), Vue2.component(EasyPopup.name, EasyPopup), Vue2.component(ECharts.name, ECharts), Vue2.component(EditableProgress.name, EditableProgress), Vue2.component(EditableTree.name, EditableTree), Vue2.component(EgdCollapse.name, EgdCollapse), Vue2.component(EgdCollapseItem.name, EgdCollapseItem), Vue2.component(ElementDialog.name, ElementDialog), Vue2.component(EmptyView.name, EmptyView), Vue2.component(ErrorView.name, ErrorView), Vue2.component(FlexColumn.name, FlexColumn), Vue2.component(FlexItem.name, FlexItem), Vue2.component(FlexRow.name, FlexRow), Vue2.component(FlexScroller.name, FlexScroller), Vue2.component(Flow.name, Flow), Vue2.component(FlowNode.name, FlowNode), Vue2.component(FlowViewer.name, FlowViewer), Vue2.component(FormButton.name, FormButton), Vue2.component(FormCascader.name, FormCascader), Vue2.component(FormCheckboxGroup.name, FormCheckboxGroup), Vue2.component(FormDatePicker.name, FormDatePicker), Vue2.component(FormGroup.name, FormGroup), Vue2.component(FormHolder.name, FormHolder), Vue2.component(FormInput.name, FormInput), Vue2.component(FormInputEmail.name, FormInputEmail), Vue2.component(FormInputIdCard.name, FormInputIdCard), Vue2.component(FormInputNumber.name, FormInputNumber), Vue2.component(FormInputPhoneNumber.name, FormInputPhoneNumber), Vue2.component(FormInputTime.name, FormInputTime), Vue2.component(FormItem.name, FormItem), Vue2.component(FormItemConfigProvider.name, FormItemConfigProvider), Vue2.component(FormItemGroup.name, FormItemGroup), Vue2.component(FormRadioGroup.name, FormRadioGroup), Vue2.component(FormSelect.name, FormSelect), Vue2.component(FormSwitch.name, FormSwitch), Vue2.component(FormTemp.name, FormTemp), Vue2.component(FormTextarea.name, FormTextarea), Vue2.component(FormView.name, FormView), Vue2.component(FyArray.name, FyArray), Vue2.component(FyArticle.name, FyArticle), Vue2.component(FyCascader.name, FyCascader), Vue2.component(FyCheckbox.name, FyCheckbox), Vue2.component(FyCode.name, FyCode), Vue2.component(FyCurd.name, FyCurd), Vue2.component(FyDate.name, FyDate), Vue2.component(FyDialogForm.name, FyDialogForm), Vue2.component(FyDraggable.name, FyDraggable), Vue2.component(FyDynamic.name, FyDynamic), Vue2.component(FyEmpty.name, FyEmpty), Vue2.component(FyForm.name, FyForm), Vue2.component(FyFormDesign.name, FyFormDesign), Vue2.component(FyFormMenu.name, FyFormMenu), Vue2.component(FyInput.name, FyInput), Vue2.component(FyInputColor.name, FyInputColor), Vue2.component(FyInputIcon.name, FyInputIcon), Vue2.component(FyInputMap.name, FyInputMap), Vue2.component(FyInputNumber.name, FyInputNumber), Vue2.component(FyInputTable.name, FyInputTable), Vue2.component(FyInputTree.name, FyInputTree), Vue2.component(FyProgress.name, FyProgress), Vue2.component(FyRadio.name, FyRadio), Vue2.component(FyRate.name, FyRate), Vue2.component(FySelect.name, FySelect), Vue2.component(FySlider.name, FySlider), Vue2.component(FySwitch.name, FySwitch), Vue2.component(FyTabs.name, FyTabs), Vue2.component(FyTime.name, FyTime), Vue2.component(FyTitle.name, FyTitle), Vue2.component(FyTree.name, FyTree), Vue2.component(FyUEditor.name, FyUEditor), Vue2.component(FyUpload.name, FyUpload), Vue2.component(GuideSteps.name, GuideSteps), Vue2.component(HeaderMenu.name, HeaderMenu), Vue2.component(HeaderSearch.name, HeaderSearch), Vue2.component(HighlightJS.name, HighlightJS), Vue2.component(IconCard.name, IconCard), Vue2.component(IconTemp.name, IconTemp), Vue2.component(IframeWindow.name, IframeWindow), Vue2.component(ImageCropper.name, ImageCropper), Vue2.component(ImagePreview.name, ImagePreview), Vue2.component(ImageViewer.name, ImageViewer), Vue2.component(InputNumber.name, InputNumber), Vue2.component(InputNumberRange.name, InputNumberRange), Vue2.component(JSXComponent.name, JSXComponent), Vue2.component(KeepViewAlive.name, KeepViewAlive), Vue2.component(Keyboard.name, Keyboard), Vue2.component(License.name, License), Vue2.component(LoadingView.name, LoadingView), Vue2.component(Login.name, Login), Vue2.component(NameAvatar.name, NameAvatar), Vue2.component(NavBar.name, NavBar), Vue2.component(Notice.name, Notice), Vue2.component(NotImplement.name, NotImplement), Vue2.component(Page.name, Page), Vue2.component(PageableTable.name, PageableTable), Vue2.component(PageableView.name, PageableView), Vue2.component(PageHeader.name, PageHeader), Vue2.component(PageIndex.name, PageIndex), Vue2.component(PageIndexTop.name, PageIndexTop), Vue2.component(PageSkeleton.name, PageSkeleton), Vue2.component(PageSkeletonNew.name, PageSkeletonNew), Vue2.component(PhotoSwipe.name, PhotoSwipe), Vue2.component(ProcessDesigner.name, ProcessDesigner), Vue2.component(PropertiesPanel.name, PropertiesPanel), Vue2.component(Queue.name, Queue), Vue2.component(RecordVideo.name, RecordVideo), Vue2.component(ResizeObserver.name, ResizeObserver), Vue2.component(Search.name, Search), Vue2.component(SearchPopover.name, SearchPopover), Vue2.component(Sign.name, Sign), Vue2.component(SignPanel.name, SignPanel), Vue2.component(Skeleton.name, Skeleton), Vue2.component(SplitPane.name, SplitPane), Vue2.component(Stateful.name, Stateful), Vue2.component(StaticPageableTable.name, StaticPageableTable), Vue2.component(Swiper.name, Swiper), Vue2.component(Tab.name, Tab), Vue2.component(TabItem.name, TabItem), Vue2.component(TableColumn.name, TableColumn), Vue2.component(TablePage.name, TablePage), Vue2.component(TableView.name, TableView), Vue2.component(TagRender.name, TagRender), Vue2.component(TextEllipsis.name, TextEllipsis), Vue2.component(TinymceEditor.name, TinymceEditor), Vue2.component(TinymceWrapper.name, TinymceWrapper), Vue2.component(Toolbar.name, Toolbar), Vue2.component(ToolbarButton.name, ToolbarButton), Vue2.component(Trigger.name, Trigger), Vue2.component(Verify.name, Verify), Vue2.component(VueTagsInput.name, VueTagsInput), Vue2.component(Watermark.name, Watermark);
46231
46344
  }