@farris/ui-vue 1.2.9 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/components/accordion/index.esm.js +64 -64
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +521 -336
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.css +1 -1
  6. package/components/button-edit/index.esm.js +99 -97
  7. package/components/button-edit/index.umd.cjs +1 -1
  8. package/components/calendar/index.esm.js +496 -504
  9. package/components/calendar/index.umd.cjs +1 -1
  10. package/components/capsule/index.esm.js +251 -259
  11. package/components/capsule/index.umd.cjs +1 -1
  12. package/components/checkbox/index.esm.js +696 -519
  13. package/components/checkbox/index.umd.cjs +1 -1
  14. package/components/color-picker/index.esm.js +368 -376
  15. package/components/color-picker/index.umd.cjs +2 -2
  16. package/components/combo-list/index.css +1 -0
  17. package/components/combo-list/index.esm.js +1141 -340
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +116 -116
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +986 -798
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +463 -998
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.css +1 -0
  26. package/components/condition/index.esm.js +2233 -1057
  27. package/components/condition/index.umd.cjs +1 -1
  28. package/components/content-container/index.esm.js +335 -1002
  29. package/components/content-container/index.umd.cjs +1 -1
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +6193 -4702
  32. package/components/data-grid/index.umd.cjs +1 -1
  33. package/components/data-view/index.css +1 -0
  34. package/components/data-view/index.esm.js +4562 -3294
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.css +1 -1
  37. package/components/date-picker/index.esm.js +3420 -2623
  38. package/components/date-picker/index.umd.cjs +1 -1
  39. package/components/designer-canvas/index.css +1 -1
  40. package/components/designer-canvas/index.esm.js +914 -883
  41. package/components/designer-canvas/index.umd.cjs +1 -1
  42. package/components/designer-outline/index.esm.js +14 -13
  43. package/components/designer-outline/index.umd.cjs +1 -1
  44. package/components/dropdown/index.esm.js +204 -212
  45. package/components/dropdown/index.umd.cjs +2 -2
  46. package/components/dynamic-form/index.css +1 -0
  47. package/components/dynamic-form/index.esm.js +2795 -1835
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +180 -130
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +303 -290
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/events-editor/index.esm.js +328 -336
  54. package/components/events-editor/index.umd.cjs +1 -1
  55. package/components/expression-editor/index.esm.js +65 -65
  56. package/components/expression-editor/index.umd.cjs +1 -1
  57. package/components/external-container/index.css +1 -1
  58. package/components/external-container/index.esm.js +3349 -3626
  59. package/components/external-container/index.umd.cjs +1 -1
  60. package/components/field-selector/index.css +1 -1
  61. package/components/field-selector/index.esm.js +5344 -8588
  62. package/components/field-selector/index.umd.cjs +1 -1
  63. package/components/filter-bar/index.css +1 -1
  64. package/components/filter-bar/index.esm.js +2179 -2227
  65. package/components/filter-bar/index.umd.cjs +1 -1
  66. package/components/flow-canvas/index.css +1 -1
  67. package/components/flow-canvas/index.esm.js +684 -675
  68. package/components/flow-canvas/index.umd.cjs +1 -1
  69. package/components/image-cropper/index.esm.js +482 -490
  70. package/components/image-cropper/index.umd.cjs +1 -1
  71. package/components/input-group/index.esm.js +746 -569
  72. package/components/input-group/index.umd.cjs +1 -1
  73. package/components/layout/index.esm.js +409 -385
  74. package/components/layout/index.umd.cjs +1 -1
  75. package/components/list-nav/index.esm.js +348 -1019
  76. package/components/list-nav/index.umd.cjs +1 -1
  77. package/components/list-view/index.css +1 -1
  78. package/components/list-view/index.esm.js +3606 -2388
  79. package/components/list-view/index.umd.cjs +1 -1
  80. package/components/lookup/index.css +1 -1
  81. package/components/lookup/index.esm.js +10871 -8970
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.css +1 -1
  84. package/components/mapping-editor/index.esm.js +6019 -5631
  85. package/components/mapping-editor/index.umd.cjs +1 -1
  86. package/components/message-box/index.css +1 -1
  87. package/components/message-box/index.esm.js +511 -471
  88. package/components/message-box/index.umd.cjs +1 -1
  89. package/components/modal/index.css +1 -1
  90. package/components/modal/index.esm.js +438 -398
  91. package/components/modal/index.umd.cjs +1 -1
  92. package/components/nav/index.esm.js +912 -1281
  93. package/components/nav/index.umd.cjs +3 -3
  94. package/components/notify/index.esm.js +59 -53
  95. package/components/notify/index.umd.cjs +1 -1
  96. package/components/number-range/index.esm.js +660 -484
  97. package/components/number-range/index.umd.cjs +1 -1
  98. package/components/number-spinner/index.esm.js +682 -506
  99. package/components/number-spinner/index.umd.cjs +1 -1
  100. package/components/order/index.css +1 -1
  101. package/components/order/index.esm.js +1848 -1658
  102. package/components/order/index.umd.cjs +1 -1
  103. package/components/page-footer/index.esm.js +100 -100
  104. package/components/page-footer/index.umd.cjs +1 -1
  105. package/components/page-header/index.esm.js +1120 -1923
  106. package/components/page-header/index.umd.cjs +1 -1
  107. package/components/pagination/index.esm.js +875 -1214
  108. package/components/pagination/index.umd.cjs +1 -1
  109. package/components/popover/index.esm.js +71 -70
  110. package/components/popover/index.umd.cjs +1 -1
  111. package/components/progress/index.esm.js +229 -237
  112. package/components/progress/index.umd.cjs +3 -3
  113. package/components/property-editor/index.css +1 -1
  114. package/components/property-editor/index.esm.js +2314 -1521
  115. package/components/property-editor/index.umd.cjs +3 -3
  116. package/components/property-panel/index.esm.js +867 -868
  117. package/components/property-panel/index.umd.cjs +1 -1
  118. package/components/query-solution/index.css +1 -1
  119. package/components/query-solution/index.esm.js +4332 -3623
  120. package/components/query-solution/index.umd.cjs +1 -1
  121. package/components/radio-button/index.esm.js +72 -72
  122. package/components/radio-button/index.umd.cjs +1 -1
  123. package/components/radio-group/index.esm.js +613 -437
  124. package/components/radio-group/index.umd.cjs +1 -1
  125. package/components/rate/index.esm.js +255 -263
  126. package/components/rate/index.umd.cjs +1 -1
  127. package/components/response-layout/index.esm.js +144 -152
  128. package/components/response-layout/index.umd.cjs +1 -1
  129. package/components/response-layout-editor/index.css +1 -1
  130. package/components/response-layout-editor/index.esm.js +1101 -1038
  131. package/components/response-layout-editor/index.umd.cjs +1 -1
  132. package/components/response-toolbar/index.esm.js +935 -1750
  133. package/components/response-toolbar/index.umd.cjs +1 -1
  134. package/components/schema-selector/index.css +1 -1
  135. package/components/schema-selector/index.esm.js +5264 -5677
  136. package/components/schema-selector/index.umd.cjs +2 -2
  137. package/components/search-box/index.esm.js +151 -154
  138. package/components/search-box/index.umd.cjs +1 -1
  139. package/components/section/index.esm.js +438 -1125
  140. package/components/section/index.umd.cjs +1 -1
  141. package/components/smoke-detector/index.esm.js +93 -101
  142. package/components/smoke-detector/index.umd.cjs +1 -1
  143. package/components/splitter/index.esm.js +563 -1202
  144. package/components/splitter/index.umd.cjs +1 -1
  145. package/components/splitter/style.js +2 -0
  146. package/components/step/index.esm.js +248 -256
  147. package/components/step/index.umd.cjs +1 -1
  148. package/components/switch/index.esm.js +549 -373
  149. package/components/switch/index.umd.cjs +1 -1
  150. package/components/tabs/index.css +1 -1
  151. package/components/tabs/index.esm.js +2436 -3110
  152. package/components/tabs/index.umd.cjs +1 -1
  153. package/components/tags/index.esm.js +328 -336
  154. package/components/tags/index.umd.cjs +1 -1
  155. package/components/text/index.esm.js +339 -347
  156. package/components/text/index.umd.cjs +1 -1
  157. package/components/textarea/index.esm.js +554 -378
  158. package/components/textarea/index.umd.cjs +1 -1
  159. package/components/time-picker/index.css +1 -1
  160. package/components/time-picker/index.esm.js +1322 -1144
  161. package/components/time-picker/index.umd.cjs +1 -1
  162. package/components/transfer/index.css +1 -1
  163. package/components/transfer/index.esm.js +537 -543
  164. package/components/transfer/index.umd.cjs +1 -1
  165. package/components/tree-grid/index.css +1 -1
  166. package/components/tree-grid/index.esm.js +5113 -9426
  167. package/components/tree-grid/index.umd.cjs +1 -1
  168. package/components/tree-view/index.css +1 -0
  169. package/components/tree-view/index.esm.js +3900 -2677
  170. package/components/tree-view/index.umd.cjs +1 -1
  171. package/components/uploader/index.esm.js +568 -570
  172. package/components/uploader/index.umd.cjs +2 -2
  173. package/components/verify-detail/index.esm.js +266 -274
  174. package/components/verify-detail/index.umd.cjs +1 -1
  175. package/components/video/index.esm.js +553 -1052
  176. package/components/video/index.umd.cjs +1 -1
  177. package/components/weather/index.esm.js +558 -566
  178. package/components/weather/index.umd.cjs +5 -5
  179. package/farris.all.esm.js +22009 -22688
  180. package/farris.all.umd.cjs +9 -9
  181. package/index.css +1 -1
  182. package/package.json +1 -1
  183. package/types/capsule/src/capsule.props.d.ts +2 -2
  184. package/types/combo-list/src/components/list-container.component.d.ts +0 -3
  185. package/types/combo-list/src/components/list-container.props.d.ts +0 -4
  186. package/types/common/directive/area-response.d.ts +10 -0
  187. package/types/common/index.d.ts +9 -0
  188. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  189. package/types/common/types.d.ts +1 -1
  190. package/types/common/utils/encrypt.d.ts +2 -0
  191. package/types/common/utils/resolve-field.d.ts +2 -0
  192. package/types/common/utils/use-class.d.ts +7 -0
  193. package/types/component/src/component.props.d.ts +7 -0
  194. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  195. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  196. package/types/components.d.ts +1 -0
  197. package/types/condition/src/types.d.ts +2 -1
  198. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  199. package/types/data-grid/index.d.ts +11 -5
  200. package/types/data-grid/src/data-grid.component.d.ts +4 -2
  201. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  202. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  203. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  204. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  205. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  206. package/types/data-view/composition/types.d.ts +19 -4
  207. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  208. package/types/designer-canvas/index.d.ts +2 -1
  209. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  210. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  211. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  212. package/types/designer-canvas/src/composition/types.d.ts +2 -3
  213. package/types/designer-canvas/src/types.d.ts +2 -1
  214. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  215. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  216. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  217. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  218. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +1 -1
  219. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  220. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  221. package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
  222. package/types/dynamic-form/src/types.d.ts +12 -1
  223. package/types/dynamic-resolver/index.d.ts +1 -0
  224. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
  225. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  226. package/types/dynamic-resolver/src/types.d.ts +9 -0
  227. package/types/dynamic-view/index.d.ts +1 -0
  228. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  229. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  230. package/types/index.d.ts +2 -0
  231. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  232. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  233. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  234. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  235. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  236. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  237. package/types/lookup/src/composition/types.d.ts +8 -0
  238. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  239. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  240. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  241. package/types/lookup/src/composition/use-http.d.ts +9 -5
  242. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  243. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  244. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  245. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  246. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  247. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  248. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  249. package/types/modal/src/modal.component.d.ts +3 -0
  250. package/types/modal/src/modal.props.d.ts +4 -0
  251. package/types/page-header/src/page-header.props.d.ts +1 -0
  252. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  253. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  254. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  255. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  256. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  257. package/types/property-panel/index.d.ts +2 -1
  258. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  259. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  260. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
  261. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  262. package/types/{data-grid/src/designer/use-group-column.d.ts → query-solution/src/designer/query-solution-config/composition/use-property.d.ts} +4 -5
  263. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  264. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  265. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
  266. package/types/query-solution/src/solutions.d.ts +108 -509
  267. package/types/response-layout-editor/index.d.ts +3 -1
  268. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  269. package/types/response-layout-editor/src/type.d.ts +21 -0
  270. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  271. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  272. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  273. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  274. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  275. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  276. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  277. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  278. package/types/tabs/src/tabs.props.d.ts +1 -0
  279. package/types/tree-grid/index.d.ts +8 -2
  280. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  281. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  282. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  283. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  284. package/types/modal/src/composition/use-esc.d.ts +0 -1
  285. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
  286. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  287. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,17 +1,17 @@
1
- var gt = Object.defineProperty;
2
- var vt = (t, e, n) => e in t ? gt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var z = (t, e, n) => vt(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { defineComponent as re, toRefs as Fe, createVNode as s, Fragment as oe, createTextVNode as C, ref as N, watch as ne, inject as le, getCurrentInstance as wt, onMounted as Oe, onUnmounted as Ne, computed as $, reactive as yt, createApp as bt, mergeProps as xt, provide as Dt, resolveComponent as K, onBeforeMount as Mt } from "vue";
5
- import { cloneDeep as Tt } from "lodash-es";
1
+ var vt = Object.defineProperty;
2
+ var wt = (t, e, n) => e in t ? vt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var U = (t, e, n) => wt(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { defineComponent as te, toRefs as Ee, createVNode as s, Fragment as se, createTextVNode as C, ref as N, watch as K, inject as oe, getCurrentInstance as yt, onMounted as Fe, onUnmounted as Oe, computed as W, reactive as bt, createApp as xt, Transition as Dt, mergeProps as Tt, provide as Mt, resolveComponent as G, onBeforeMount as St } from "vue";
5
+ import { isPlainObject as Re, cloneDeep as kt } from "lodash-es";
6
6
  import "bignumber.js";
7
- const St = {
7
+ const Ct = {
8
8
  // 是否被选中
9
9
  checked: { type: Boolean, default: !1 },
10
10
  // 进度条状态 默认'normal'
11
11
  id: { type: String, default: "" },
12
12
  // 禁用
13
13
  disabled: { type: Boolean, default: !1 }
14
- }, kt = {
14
+ }, Pt = {
15
15
  // 是否显示进度条信息
16
16
  showInfo: { type: Boolean, default: !0 },
17
17
  // 进度条状态 默认'normal'
@@ -19,7 +19,7 @@ const St = {
19
19
  // 已完成的分段百分比
20
20
  percent: { type: Number, default: 0 },
21
21
  maxWidth: { type: Number, default: 0 }
22
- }, Ct = {
22
+ }, Et = {
23
23
  /**
24
24
  * 按钮文本
25
25
  */
@@ -52,16 +52,16 @@ const St = {
52
52
  * 附件服务器端服务注入的Token
53
53
  */
54
54
  uploadServerToken: { type: String, default: "" }
55
- }, Pt = /* @__PURE__ */ re({
55
+ }, Ft = /* @__PURE__ */ te({
56
56
  name: "FUploadProgress",
57
- props: kt,
57
+ props: Pt,
58
58
  setup(t, e) {
59
59
  const {
60
60
  showInfo: n,
61
61
  status: a,
62
62
  maxWidth: r,
63
63
  percent: i
64
- } = Fe(t);
64
+ } = Ee(t);
65
65
  return () => s("div", {
66
66
  class: ["f-progress upload-progress", "upload-progress-status-" + a.value, "f-progress-status-" + a.value, "upload-progress-line", n.value ? "upload-progress-show-info" : ""]
67
67
  }, [s("div", {
@@ -80,22 +80,22 @@ const St = {
80
80
  class: "upload-progress-text"
81
81
  }, [a.value === "error" || a.value === "success" ? s("span", {
82
82
  class: ["upload-progress-text-icon f-icon", "f-icon-" + a.value]
83
- }, null) : s(oe, null, [i.value, C("%")])]) : ""]);
83
+ }, null) : s(se, null, [i.value, C("%")])]) : ""]);
84
84
  }
85
- }), Ge = /* @__PURE__ */ re({
85
+ }), Ge = /* @__PURE__ */ te({
86
86
  name: "FPreviewCheckbox",
87
- props: St,
87
+ props: Ct,
88
88
  emits: ["checkedChange"],
89
89
  setup(t, e) {
90
90
  const {
91
91
  disabled: n
92
- } = Fe(t), a = N(t.checked), r = (i) => {
92
+ } = Ee(t), a = N(t.checked), r = (i) => {
93
93
  i.stopPropagation(), n.value || (a.value = !a.value, e.emit("checkedChange", {
94
94
  checked: a.value,
95
95
  id: t.id
96
96
  }));
97
97
  };
98
- return ne(() => t.checked, (i) => {
98
+ return K(() => t.checked, (i) => {
99
99
  a.value = i;
100
100
  }), () => s("div", {
101
101
  class: "preview-checkbox d-inline-flex align-middle"
@@ -113,14 +113,14 @@ const St = {
113
113
  onMousedown: (i) => i.stopPropagation()
114
114
  }, null)])]);
115
115
  }
116
- }), Je = /* @__PURE__ */ re({
116
+ }), Ze = /* @__PURE__ */ te({
117
117
  name: "FFileSelect",
118
- props: Ct,
118
+ props: Et,
119
119
  emits: ["change", "stateChange"],
120
120
  setup(t, e) {
121
- const n = le("uploaderService");
121
+ const n = oe("uploaderService");
122
122
  n.setUploadContext(e);
123
- const a = wt(), r = N("*");
123
+ const a = yt(), r = N("*");
124
124
  let i;
125
125
  const l = () => {
126
126
  i.files && (e.emit("change", i.files), n.handleFiles(i.files), i.value = null);
@@ -128,13 +128,13 @@ const St = {
128
128
  function o() {
129
129
  i.value = null, n.reset();
130
130
  }
131
- ne(() => t.disabled, () => {
131
+ K(() => t.disabled, () => {
132
132
  o();
133
- }), ne(() => t.uploadedCount, (d) => {
133
+ }), K(() => t.uploadedCount, (d) => {
134
134
  n.setOptions({
135
135
  uploadedCount: d
136
136
  });
137
- }), ne(() => t.extendConfig, (d) => {
137
+ }), K(() => t.extendConfig, (d) => {
138
138
  n.setExtendServerConfig(d);
139
139
  });
140
140
  function f(d) {
@@ -143,13 +143,13 @@ const St = {
143
143
  function u(d) {
144
144
  n.handleUploadEvent(d);
145
145
  }
146
- return Oe(() => {
146
+ return Fe(() => {
147
147
  var d, h;
148
148
  i = (d = a == null ? void 0 : a.proxy) == null ? void 0 : d.$refs.uploadInput, o(), n.setOptions(t.options), n.setExtendServerConfig(t.extendConfig), r.value = (((h = t.options) == null ? void 0 : h.allowedContentTypes) || ["*"]).join(",");
149
- }), Ne(() => {
149
+ }), Oe(() => {
150
150
  }), e.expose({
151
151
  handleUploadEvent: u
152
- }), () => s(oe, null, [s("input", {
152
+ }), () => s(se, null, [s("input", {
153
153
  ref: "uploadInput",
154
154
  type: "file",
155
155
  class: "ffileupload--browser",
@@ -168,25 +168,25 @@ const St = {
168
168
  style: "top: 2px;position: relative;"
169
169
  }, null), t.selectText])]);
170
170
  }
171
- }), Ze = {}, Ke = {};
172
- function Ae(t) {
173
- const { properties: e, title: n, ignore: a } = t, r = a && Array.isArray(a), i = Object.keys(e).reduce((l, o) => ((!r || !a.find((f) => f == o)) && (l[o] = e[o].type === "object" && e[o].properties ? Ae(e[o]) : Tt(e[o].default)), l), {});
174
- return (!r || !a.find((l) => l == "id")) && (i.id = `${n}-${Date.now()}`), i;
171
+ }), Je = {}, Ke = {};
172
+ function Ne(t) {
173
+ const { properties: e, title: n, ignore: a } = t, r = a && Array.isArray(a), i = Object.keys(e).reduce((l, o) => ((!r || !a.find((f) => f == o)) && (l[o] = e[o].type === "object" && e[o].properties ? Ne(e[o]) : kt(e[o].default)), l), {});
174
+ return n && (!r || !a.find((l) => l == "id")) && (i.id = `${n}-${Date.now()}`), i;
175
175
  }
176
- function Pe(t, e = {}, n) {
177
- const a = Ze[t];
176
+ function et(t, e = {}, n) {
177
+ const a = Je[t];
178
178
  if (a) {
179
- let r = Ae(a);
179
+ let r = Ne(a);
180
180
  const i = Ke[t];
181
- return r = i ? i({ getSchemaByType: Pe }, r, e, n) : r, r;
181
+ return r = i ? i({ getSchemaByType: et }, r, e, n) : r, r;
182
182
  }
183
183
  return null;
184
184
  }
185
- function Et(t, e) {
186
- const n = Ae(e);
187
- return Object.keys(t).reduce((a, r) => (a[r] && typeof a[r] == "object" ? Object.assign(a[r], t[r]) : a[r] = t[r], a), n), n;
185
+ function Ot(t, e) {
186
+ const n = Ne(e);
187
+ return Object.keys(t).reduce((a, r) => (a[r] && Re(a[r]) && Re(t[r]) ? Object.assign(a[r], t[r]) : a[r] = t[r], a), n), n;
188
188
  }
189
- function Ft(t, e) {
189
+ function Nt(t, e) {
190
190
  return Object.keys(t).filter((a) => t[a] != null).reduce((a, r) => {
191
191
  if (e.has(r)) {
192
192
  const i = e.get(r);
@@ -201,11 +201,11 @@ function Ft(t, e) {
201
201
  return a;
202
202
  }, {});
203
203
  }
204
- function Ot(t, e, n = /* @__PURE__ */ new Map()) {
205
- const a = Et(t, e);
206
- return Ft(a, n);
204
+ function At(t, e, n = /* @__PURE__ */ new Map()) {
205
+ const a = Ot(t, e);
206
+ return Nt(a, n);
207
207
  }
208
- function Nt(t = {}) {
208
+ function Ht(t = {}) {
209
209
  function e(u, d, h, m) {
210
210
  if (typeof h == "number")
211
211
  return m[u].length === h;
@@ -259,15 +259,15 @@ function Nt(t = {}) {
259
259
  }
260
260
  return { parseValueSchema: f };
261
261
  }
262
- const At = {}, Ht = {};
263
- Nt();
264
- function _t(t, e, n = /* @__PURE__ */ new Map(), a = (l, o, f) => o, r = {}, i = (l) => l) {
265
- return Ze[e.title] = e, Ke[e.title] = a, At[e.title] = r, Ht[e.title] = i, (l = {}) => {
266
- const o = Ot(l, e, n), f = Object.keys(t).reduce((u, d) => (u[d] = t[d].default, u), {});
262
+ const Bt = {}, _t = {};
263
+ Ht();
264
+ function Rt(t, e, n = /* @__PURE__ */ new Map(), a = (l, o, f) => o, r = {}, i = (l) => l) {
265
+ return Je[e.title] = e, Ke[e.title] = a, Bt[e.title] = r, _t[e.title] = i, (l = {}) => {
266
+ const o = At(l, e, n), f = Object.keys(t).reduce((u, d) => (u[d] = t[d].default, u), {});
267
267
  return Object.assign(f, o);
268
268
  };
269
269
  }
270
- const Bt = "https://json-schema.org/draft/2020-12/schema", Rt = "https://farris-design.gitee.io/uploader.schema.json", Yt = "uploader", Wt = "A Farris Component", jt = "object", $t = {
270
+ const Yt = "https://json-schema.org/draft/2020-12/schema", Wt = "https://farris-design.gitee.io/uploader.schema.json", jt = "uploader", qt = "A Farris Component", $t = "object", Ut = {
271
271
  id: {
272
272
  description: "The unique identifier for uploader",
273
273
  type: "string"
@@ -319,28 +319,28 @@ const Bt = "https://json-schema.org/draft/2020-12/schema", Rt = "https://farris-
319
319
  type: "boolean",
320
320
  default: !0
321
321
  }
322
- }, qt = [
322
+ }, Lt = [
323
323
  "id",
324
324
  "type"
325
- ], Ut = {
326
- $schema: Bt,
327
- $id: Rt,
328
- title: Yt,
329
- description: Wt,
330
- type: jt,
331
- properties: $t,
332
- required: qt
325
+ ], zt = {
326
+ $schema: Yt,
327
+ $id: Wt,
328
+ title: jt,
329
+ description: qt,
330
+ type: $t,
331
+ properties: Ut,
332
+ required: Lt
333
333
  };
334
- function Lt(t, e) {
334
+ function Qt(t, e) {
335
335
  return { customClass: e.class, customStyle: e.style };
336
336
  }
337
- const zt = /* @__PURE__ */ new Map([
338
- ["appearance", Lt]
337
+ const Vt = /* @__PURE__ */ new Map([
338
+ ["appearance", Qt]
339
339
  ]);
340
- function Qt(t, e, n) {
340
+ function It(t, e, n) {
341
341
  return e;
342
342
  }
343
- const Vt = "uploader", It = "A Farris Component", Xt = "object", Gt = {
343
+ const Xt = "uploader", Gt = "A Farris Component", Zt = "object", Jt = {
344
344
  basic: {
345
345
  description: "Basic Infomation",
346
346
  title: "基本信息",
@@ -545,12 +545,12 @@ const Vt = "uploader", It = "A Farris Component", Xt = "object", Gt = {
545
545
  }
546
546
  }
547
547
  }
548
- }, Jt = {
549
- title: Vt,
550
- description: It,
551
- type: Xt,
552
- categories: Gt
553
- }, He = {
548
+ }, Kt = {
549
+ title: Xt,
550
+ description: Gt,
551
+ type: Zt,
552
+ categories: Jt
553
+ }, Ae = {
554
554
  /** 内容区域填充 */
555
555
  contentFill: { type: Boolean, default: !1 },
556
556
  /** 排序字段 */
@@ -614,10 +614,10 @@ const Vt = "uploader", It = "A Farris Component", Xt = "object", Gt = {
614
614
  * 提示服务注入的Token
615
615
  */
616
616
  notifyServiceToken: { type: String, default: "" }
617
- }, et = _t(He, Ut, zt, Qt, Jt), Zt = { jan: 1, feb: 2, mar: 3, apr: 4, may: 5, jun: 6, jul: 7, aug: 8, sep: 9, oct: 10, nov: 11, dec: 12 }, Kt = { sun: 0, mon: 1, tue: 2, wed: 3, thu: 4, fri: 5, sat: 6 };
618
- class en {
617
+ }, tt = Rt(Ae, zt, Vt, It, Kt), en = { jan: 1, feb: 2, mar: 3, apr: 4, may: 5, jun: 6, jul: 7, aug: 8, sep: 9, oct: 10, nov: 11, dec: 12 }, tn = { sun: 0, mon: 1, tue: 2, wed: 3, thu: 4, fri: 5, sat: 6 };
618
+ class nn {
619
619
  constructor() {
620
- z(this, "regexes", {
620
+ U(this, "regexes", {
621
621
  YEAR: "[1-9]\\d{3}",
622
622
  MONTH: "1[0-2]|0?[1-9]",
623
623
  MONTH2: "1[0-2]|0[1-9]",
@@ -634,7 +634,7 @@ class en {
634
634
  AMPM: "am|pm",
635
635
  UNIT: "year|month|week|day|hour|minute|second|millisecond"
636
636
  });
637
- z(this, "patterns", [
637
+ U(this, "patterns", [
638
638
  // 2010-03-15
639
639
  ["iso_8601", this.makePattern("^(_YEAR_)-(_MONTH_)-(_DAY_)$"), "$2/$3/$1"],
640
640
  // 3-15-2010
@@ -700,10 +700,10 @@ class en {
700
700
  return e = e.replace(/_([A-Z][A-Z0-9]+)_/g, (n, a) => this.regexes[a]), new RegExp(e, "i");
701
701
  }
702
702
  getMonthByName(e) {
703
- return Zt[String(e).slice(0, 3).toLowerCase()];
703
+ return en[String(e).slice(0, 3).toLowerCase()];
704
704
  }
705
705
  getWeekdayByName(e) {
706
- return Kt[String(e).slice(0, 3).toLowerCase()];
706
+ return tn[String(e).slice(0, 3).toLowerCase()];
707
707
  }
708
708
  parse(e) {
709
709
  if (!isNaN(Number(e)))
@@ -737,40 +737,40 @@ class en {
737
737
  return e == null ? Date.now() : e instanceof Date ? e : this.parse(e);
738
738
  }
739
739
  }
740
- function I(t) {
740
+ function z(t) {
741
741
  const e = Object.prototype.toString.call(t);
742
742
  return t instanceof Date || typeof t == "object" && e === "[object Date]" ? new t.constructor(+t) : typeof t == "number" || e === "[object Number]" || typeof t == "string" || e === "[object String]" ? new Date(t) : /* @__PURE__ */ new Date(NaN);
743
743
  }
744
- function ae(t, e) {
744
+ function ee(t, e) {
745
745
  return t instanceof Date ? new t.constructor(e) : new Date(e);
746
746
  }
747
- const tt = 6048e5, tn = 864e5, nt = 6e4, at = 36e5;
748
- let nn = {};
749
- function Me() {
750
- return nn;
747
+ const nt = 6048e5, an = 864e5, at = 6e4, rt = 36e5;
748
+ let rn = {};
749
+ function Te() {
750
+ return rn;
751
751
  }
752
752
  function pe(t, e) {
753
753
  var o, f, u, d;
754
- const n = Me(), a = (e == null ? void 0 : e.weekStartsOn) ?? ((f = (o = e == null ? void 0 : e.locale) == null ? void 0 : o.options) == null ? void 0 : f.weekStartsOn) ?? n.weekStartsOn ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, r = I(t), i = r.getDay(), l = (i < a ? 7 : 0) + i - a;
754
+ const n = Te(), a = (e == null ? void 0 : e.weekStartsOn) ?? ((f = (o = e == null ? void 0 : e.locale) == null ? void 0 : o.options) == null ? void 0 : f.weekStartsOn) ?? n.weekStartsOn ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, r = z(t), i = r.getDay(), l = (i < a ? 7 : 0) + i - a;
755
755
  return r.setDate(r.getDate() - l), r.setHours(0, 0, 0, 0), r;
756
756
  }
757
757
  function xe(t) {
758
758
  return pe(t, { weekStartsOn: 1 });
759
759
  }
760
- function rt(t) {
761
- const e = I(t), n = e.getFullYear(), a = ae(t, 0);
760
+ function it(t) {
761
+ const e = z(t), n = e.getFullYear(), a = ee(t, 0);
762
762
  a.setFullYear(n + 1, 0, 4), a.setHours(0, 0, 0, 0);
763
- const r = xe(a), i = ae(t, 0);
763
+ const r = xe(a), i = ee(t, 0);
764
764
  i.setFullYear(n, 0, 4), i.setHours(0, 0, 0, 0);
765
765
  const l = xe(i);
766
766
  return e.getTime() >= r.getTime() ? n + 1 : e.getTime() >= l.getTime() ? n : n - 1;
767
767
  }
768
768
  function Ye(t) {
769
- const e = I(t);
769
+ const e = z(t);
770
770
  return e.setHours(0, 0, 0, 0), e;
771
771
  }
772
772
  function We(t) {
773
- const e = I(t), n = new Date(
773
+ const e = z(t), n = new Date(
774
774
  Date.UTC(
775
775
  e.getFullYear(),
776
776
  e.getMonth(),
@@ -783,28 +783,28 @@ function We(t) {
783
783
  );
784
784
  return n.setUTCFullYear(e.getFullYear()), +t - +n;
785
785
  }
786
- function an(t, e) {
786
+ function sn(t, e) {
787
787
  const n = Ye(t), a = Ye(e), r = +n - We(n), i = +a - We(a);
788
- return Math.round((r - i) / tn);
788
+ return Math.round((r - i) / an);
789
789
  }
790
- function rn(t) {
791
- const e = rt(t), n = ae(t, 0);
790
+ function on(t) {
791
+ const e = it(t), n = ee(t, 0);
792
792
  return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), xe(n);
793
793
  }
794
- function sn(t) {
794
+ function ln(t) {
795
795
  return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
796
796
  }
797
- function it(t) {
798
- if (!sn(t) && typeof t != "number")
797
+ function st(t) {
798
+ if (!ln(t) && typeof t != "number")
799
799
  return !1;
800
- const e = I(t);
800
+ const e = z(t);
801
801
  return !isNaN(Number(e));
802
802
  }
803
- function on(t) {
804
- const e = I(t), n = ae(t, 0);
803
+ function un(t) {
804
+ const e = z(t), n = ee(t, 0);
805
805
  return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
806
806
  }
807
- const ln = {
807
+ const cn = {
808
808
  lessThanXSeconds: {
809
809
  one: "less than a second",
810
810
  other: "less than {{count}} seconds"
@@ -866,9 +866,9 @@ const ln = {
866
866
  one: "almost 1 year",
867
867
  other: "almost {{count}} years"
868
868
  }
869
- }, un = (t, e, n) => {
869
+ }, dn = (t, e, n) => {
870
870
  let a;
871
- const r = ln[t];
871
+ const r = cn[t];
872
872
  return typeof r == "string" ? a = r : e === 1 ? a = r.one : a = r.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + a : a + " ago" : a;
873
873
  };
874
874
  function Se(t) {
@@ -877,42 +877,42 @@ function Se(t) {
877
877
  return t.formats[n] || t.formats[t.defaultWidth];
878
878
  };
879
879
  }
880
- const cn = {
880
+ const fn = {
881
881
  full: "EEEE, MMMM do, y",
882
882
  long: "MMMM do, y",
883
883
  medium: "MMM d, y",
884
884
  short: "MM/dd/yyyy"
885
- }, dn = {
885
+ }, pn = {
886
886
  full: "h:mm:ss a zzzz",
887
887
  long: "h:mm:ss a z",
888
888
  medium: "h:mm:ss a",
889
889
  short: "h:mm a"
890
- }, fn = {
890
+ }, mn = {
891
891
  full: "{{date}} 'at' {{time}}",
892
892
  long: "{{date}} 'at' {{time}}",
893
893
  medium: "{{date}}, {{time}}",
894
894
  short: "{{date}}, {{time}}"
895
- }, pn = {
895
+ }, hn = {
896
896
  date: Se({
897
- formats: cn,
897
+ formats: fn,
898
898
  defaultWidth: "full"
899
899
  }),
900
900
  time: Se({
901
- formats: dn,
901
+ formats: pn,
902
902
  defaultWidth: "full"
903
903
  }),
904
904
  dateTime: Se({
905
- formats: fn,
905
+ formats: mn,
906
906
  defaultWidth: "full"
907
907
  })
908
- }, mn = {
908
+ }, gn = {
909
909
  lastWeek: "'last' eeee 'at' p",
910
910
  yesterday: "'yesterday at' p",
911
911
  today: "'today at' p",
912
912
  tomorrow: "'tomorrow at' p",
913
913
  nextWeek: "eeee 'at' p",
914
914
  other: "P"
915
- }, hn = (t, e, n, a) => mn[t];
915
+ }, vn = (t, e, n, a) => gn[t];
916
916
  function ce(t) {
917
917
  return (e, n) => {
918
918
  const a = n != null && n.context ? String(n.context) : "standalone";
@@ -928,15 +928,15 @@ function ce(t) {
928
928
  return r[i];
929
929
  };
930
930
  }
931
- const gn = {
931
+ const wn = {
932
932
  narrow: ["B", "A"],
933
933
  abbreviated: ["BC", "AD"],
934
934
  wide: ["Before Christ", "Anno Domini"]
935
- }, vn = {
935
+ }, yn = {
936
936
  narrow: ["1", "2", "3", "4"],
937
937
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
938
938
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
939
- }, wn = {
939
+ }, bn = {
940
940
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
941
941
  abbreviated: [
942
942
  "Jan",
@@ -966,7 +966,7 @@ const gn = {
966
966
  "November",
967
967
  "December"
968
968
  ]
969
- }, yn = {
969
+ }, xn = {
970
970
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
971
971
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
972
972
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -979,7 +979,7 @@ const gn = {
979
979
  "Friday",
980
980
  "Saturday"
981
981
  ]
982
- }, bn = {
982
+ }, Dn = {
983
983
  narrow: {
984
984
  am: "a",
985
985
  pm: "p",
@@ -1010,7 +1010,7 @@ const gn = {
1010
1010
  evening: "evening",
1011
1011
  night: "night"
1012
1012
  }
1013
- }, xn = {
1013
+ }, Tn = {
1014
1014
  narrow: {
1015
1015
  am: "a",
1016
1016
  pm: "p",
@@ -1041,7 +1041,7 @@ const gn = {
1041
1041
  evening: "in the evening",
1042
1042
  night: "at night"
1043
1043
  }
1044
- }, Dn = (t, e) => {
1044
+ }, Mn = (t, e) => {
1045
1045
  const n = Number(t), a = n % 100;
1046
1046
  if (a > 20 || a < 10)
1047
1047
  switch (a % 10) {
@@ -1053,29 +1053,29 @@ const gn = {
1053
1053
  return n + "rd";
1054
1054
  }
1055
1055
  return n + "th";
1056
- }, Mn = {
1057
- ordinalNumber: Dn,
1056
+ }, Sn = {
1057
+ ordinalNumber: Mn,
1058
1058
  era: ce({
1059
- values: gn,
1059
+ values: wn,
1060
1060
  defaultWidth: "wide"
1061
1061
  }),
1062
1062
  quarter: ce({
1063
- values: vn,
1063
+ values: yn,
1064
1064
  defaultWidth: "wide",
1065
1065
  argumentCallback: (t) => t - 1
1066
1066
  }),
1067
1067
  month: ce({
1068
- values: wn,
1068
+ values: bn,
1069
1069
  defaultWidth: "wide"
1070
1070
  }),
1071
1071
  day: ce({
1072
- values: yn,
1072
+ values: xn,
1073
1073
  defaultWidth: "wide"
1074
1074
  }),
1075
1075
  dayPeriod: ce({
1076
- values: bn,
1076
+ values: Dn,
1077
1077
  defaultWidth: "wide",
1078
- formattingValues: xn,
1078
+ formattingValues: Tn,
1079
1079
  defaultFormattingWidth: "wide"
1080
1080
  })
1081
1081
  };
@@ -1084,9 +1084,9 @@ function de(t) {
1084
1084
  const a = n.width, r = a && t.matchPatterns[a] || t.matchPatterns[t.defaultMatchWidth], i = e.match(r);
1085
1085
  if (!i)
1086
1086
  return null;
1087
- const l = i[0], o = a && t.parsePatterns[a] || t.parsePatterns[t.defaultParseWidth], f = Array.isArray(o) ? Sn(o, (h) => h.test(l)) : (
1087
+ const l = i[0], o = a && t.parsePatterns[a] || t.parsePatterns[t.defaultParseWidth], f = Array.isArray(o) ? Cn(o, (h) => h.test(l)) : (
1088
1088
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
1089
- Tn(o, (h) => h.test(l))
1089
+ kn(o, (h) => h.test(l))
1090
1090
  );
1091
1091
  let u;
1092
1092
  u = t.valueCallback ? t.valueCallback(f) : f, u = n.valueCallback ? (
@@ -1097,17 +1097,17 @@ function de(t) {
1097
1097
  return { value: u, rest: d };
1098
1098
  };
1099
1099
  }
1100
- function Tn(t, e) {
1100
+ function kn(t, e) {
1101
1101
  for (const n in t)
1102
1102
  if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
1103
1103
  return n;
1104
1104
  }
1105
- function Sn(t, e) {
1105
+ function Cn(t, e) {
1106
1106
  for (let n = 0; n < t.length; n++)
1107
1107
  if (e(t[n]))
1108
1108
  return n;
1109
1109
  }
1110
- function kn(t) {
1110
+ function Pn(t) {
1111
1111
  return (e, n = {}) => {
1112
1112
  const a = e.match(t.matchPattern);
1113
1113
  if (!a) return null;
@@ -1119,23 +1119,23 @@ function kn(t) {
1119
1119
  return { value: l, rest: o };
1120
1120
  };
1121
1121
  }
1122
- const Cn = /^(\d+)(th|st|nd|rd)?/i, Pn = /\d+/i, En = {
1122
+ const En = /^(\d+)(th|st|nd|rd)?/i, Fn = /\d+/i, On = {
1123
1123
  narrow: /^(b|a)/i,
1124
1124
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1125
1125
  wide: /^(before christ|before common era|anno domini|common era)/i
1126
- }, Fn = {
1126
+ }, Nn = {
1127
1127
  any: [/^b/i, /^(a|c)/i]
1128
- }, On = {
1128
+ }, An = {
1129
1129
  narrow: /^[1234]/i,
1130
1130
  abbreviated: /^q[1234]/i,
1131
1131
  wide: /^[1234](th|st|nd|rd)? quarter/i
1132
- }, Nn = {
1132
+ }, Hn = {
1133
1133
  any: [/1/i, /2/i, /3/i, /4/i]
1134
- }, An = {
1134
+ }, Bn = {
1135
1135
  narrow: /^[jfmasond]/i,
1136
1136
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1137
1137
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1138
- }, Hn = {
1138
+ }, _n = {
1139
1139
  narrow: [
1140
1140
  /^j/i,
1141
1141
  /^f/i,
@@ -1164,18 +1164,18 @@ const Cn = /^(\d+)(th|st|nd|rd)?/i, Pn = /\d+/i, En = {
1164
1164
  /^n/i,
1165
1165
  /^d/i
1166
1166
  ]
1167
- }, _n = {
1167
+ }, Rn = {
1168
1168
  narrow: /^[smtwf]/i,
1169
1169
  short: /^(su|mo|tu|we|th|fr|sa)/i,
1170
1170
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1171
1171
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1172
- }, Bn = {
1172
+ }, Yn = {
1173
1173
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1174
1174
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1175
- }, Rn = {
1175
+ }, Wn = {
1176
1176
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1177
1177
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1178
- }, Yn = {
1178
+ }, jn = {
1179
1179
  any: {
1180
1180
  am: /^a/i,
1181
1181
  pm: /^p/i,
@@ -1186,86 +1186,86 @@ const Cn = /^(\d+)(th|st|nd|rd)?/i, Pn = /\d+/i, En = {
1186
1186
  evening: /evening/i,
1187
1187
  night: /night/i
1188
1188
  }
1189
- }, Wn = {
1190
- ordinalNumber: kn({
1191
- matchPattern: Cn,
1192
- parsePattern: Pn,
1189
+ }, qn = {
1190
+ ordinalNumber: Pn({
1191
+ matchPattern: En,
1192
+ parsePattern: Fn,
1193
1193
  valueCallback: (t) => parseInt(t, 10)
1194
1194
  }),
1195
1195
  era: de({
1196
- matchPatterns: En,
1196
+ matchPatterns: On,
1197
1197
  defaultMatchWidth: "wide",
1198
- parsePatterns: Fn,
1198
+ parsePatterns: Nn,
1199
1199
  defaultParseWidth: "any"
1200
1200
  }),
1201
1201
  quarter: de({
1202
- matchPatterns: On,
1202
+ matchPatterns: An,
1203
1203
  defaultMatchWidth: "wide",
1204
- parsePatterns: Nn,
1204
+ parsePatterns: Hn,
1205
1205
  defaultParseWidth: "any",
1206
1206
  valueCallback: (t) => t + 1
1207
1207
  }),
1208
1208
  month: de({
1209
- matchPatterns: An,
1209
+ matchPatterns: Bn,
1210
1210
  defaultMatchWidth: "wide",
1211
- parsePatterns: Hn,
1211
+ parsePatterns: _n,
1212
1212
  defaultParseWidth: "any"
1213
1213
  }),
1214
1214
  day: de({
1215
- matchPatterns: _n,
1215
+ matchPatterns: Rn,
1216
1216
  defaultMatchWidth: "wide",
1217
- parsePatterns: Bn,
1217
+ parsePatterns: Yn,
1218
1218
  defaultParseWidth: "any"
1219
1219
  }),
1220
1220
  dayPeriod: de({
1221
- matchPatterns: Rn,
1221
+ matchPatterns: Wn,
1222
1222
  defaultMatchWidth: "any",
1223
- parsePatterns: Yn,
1223
+ parsePatterns: jn,
1224
1224
  defaultParseWidth: "any"
1225
1225
  })
1226
- }, jn = {
1226
+ }, $n = {
1227
1227
  code: "en-US",
1228
- formatDistance: un,
1229
- formatLong: pn,
1230
- formatRelative: hn,
1231
- localize: Mn,
1232
- match: Wn,
1228
+ formatDistance: dn,
1229
+ formatLong: hn,
1230
+ formatRelative: vn,
1231
+ localize: Sn,
1232
+ match: qn,
1233
1233
  options: {
1234
1234
  weekStartsOn: 0,
1235
1235
  firstWeekContainsDate: 1
1236
1236
  }
1237
1237
  };
1238
- function $n(t) {
1239
- const e = I(t);
1240
- return an(e, on(e)) + 1;
1238
+ function Un(t) {
1239
+ const e = z(t);
1240
+ return sn(e, un(e)) + 1;
1241
1241
  }
1242
- function qn(t) {
1243
- const e = I(t), n = +xe(e) - +rn(e);
1244
- return Math.round(n / tt) + 1;
1242
+ function Ln(t) {
1243
+ const e = z(t), n = +xe(e) - +on(e);
1244
+ return Math.round(n / nt) + 1;
1245
1245
  }
1246
- function st(t, e) {
1246
+ function ot(t, e) {
1247
1247
  var d, h, m, x;
1248
- const n = I(t), a = n.getFullYear(), r = Me(), i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((x = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, l = ae(t, 0);
1248
+ const n = z(t), a = n.getFullYear(), r = Te(), i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((x = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, l = ee(t, 0);
1249
1249
  l.setFullYear(a + 1, 0, i), l.setHours(0, 0, 0, 0);
1250
- const o = pe(l, e), f = ae(t, 0);
1250
+ const o = pe(l, e), f = ee(t, 0);
1251
1251
  f.setFullYear(a, 0, i), f.setHours(0, 0, 0, 0);
1252
1252
  const u = pe(f, e);
1253
1253
  return n.getTime() >= o.getTime() ? a + 1 : n.getTime() >= u.getTime() ? a : a - 1;
1254
1254
  }
1255
- function Un(t, e) {
1255
+ function zn(t, e) {
1256
1256
  var o, f, u, d;
1257
- const n = Me(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((f = (o = e == null ? void 0 : e.locale) == null ? void 0 : o.options) == null ? void 0 : f.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, r = st(t, e), i = ae(t, 0);
1257
+ const n = Te(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((f = (o = e == null ? void 0 : e.locale) == null ? void 0 : o.options) == null ? void 0 : f.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, r = ot(t, e), i = ee(t, 0);
1258
1258
  return i.setFullYear(r, 0, a), i.setHours(0, 0, 0, 0), pe(i, e);
1259
1259
  }
1260
- function Ln(t, e) {
1261
- const n = I(t), a = +pe(n, e) - +Un(n, e);
1262
- return Math.round(a / tt) + 1;
1260
+ function Qn(t, e) {
1261
+ const n = z(t), a = +pe(n, e) - +zn(n, e);
1262
+ return Math.round(a / nt) + 1;
1263
1263
  }
1264
1264
  function P(t, e) {
1265
1265
  const n = t < 0 ? "-" : "", a = Math.abs(t).toString().padStart(e, "0");
1266
1266
  return n + a;
1267
1267
  }
1268
- const Z = {
1268
+ const X = {
1269
1269
  // Year
1270
1270
  y(t, e) {
1271
1271
  const n = t.getFullYear(), a = n > 0 ? n : 1 - n;
@@ -1319,7 +1319,7 @@ const Z = {
1319
1319
  );
1320
1320
  return P(r, e.length);
1321
1321
  }
1322
- }, se = {
1322
+ }, ie = {
1323
1323
  am: "am",
1324
1324
  pm: "pm",
1325
1325
  midnight: "midnight",
@@ -1350,11 +1350,11 @@ const Z = {
1350
1350
  const a = t.getFullYear(), r = a > 0 ? a : 1 - a;
1351
1351
  return n.ordinalNumber(r, { unit: "year" });
1352
1352
  }
1353
- return Z.y(t, e);
1353
+ return X.y(t, e);
1354
1354
  },
1355
1355
  // Local week-numbering year
1356
1356
  Y: function(t, e, n, a) {
1357
- const r = st(t, a), i = r > 0 ? r : 1 - r;
1357
+ const r = ot(t, a), i = r > 0 ? r : 1 - r;
1358
1358
  if (e === "YY") {
1359
1359
  const l = i % 100;
1360
1360
  return P(l, 2);
@@ -1363,7 +1363,7 @@ const Z = {
1363
1363
  },
1364
1364
  // ISO week-numbering year
1365
1365
  R: function(t, e) {
1366
- const n = rt(t);
1366
+ const n = it(t);
1367
1367
  return P(n, e.length);
1368
1368
  },
1369
1369
  // Extended year. This is a single number designating the year of this calendar system.
@@ -1441,7 +1441,7 @@ const Z = {
1441
1441
  switch (e) {
1442
1442
  case "M":
1443
1443
  case "MM":
1444
- return Z.M(t, e);
1444
+ return X.M(t, e);
1445
1445
  case "Mo":
1446
1446
  return n.ordinalNumber(a + 1, { unit: "month" });
1447
1447
  case "MMM":
@@ -1486,21 +1486,21 @@ const Z = {
1486
1486
  },
1487
1487
  // Local week of year
1488
1488
  w: function(t, e, n, a) {
1489
- const r = Ln(t, a);
1489
+ const r = Qn(t, a);
1490
1490
  return e === "wo" ? n.ordinalNumber(r, { unit: "week" }) : P(r, e.length);
1491
1491
  },
1492
1492
  // ISO week of year
1493
1493
  I: function(t, e, n) {
1494
- const a = qn(t);
1494
+ const a = Ln(t);
1495
1495
  return e === "Io" ? n.ordinalNumber(a, { unit: "week" }) : P(a, e.length);
1496
1496
  },
1497
1497
  // Day of the month
1498
1498
  d: function(t, e, n) {
1499
- return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) : Z.d(t, e);
1499
+ return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) : X.d(t, e);
1500
1500
  },
1501
1501
  // Day of year
1502
1502
  D: function(t, e, n) {
1503
- const a = $n(t);
1503
+ const a = Un(t);
1504
1504
  return e === "Do" ? n.ordinalNumber(a, { unit: "dayOfYear" }) : P(a, e.length);
1505
1505
  },
1506
1506
  // Day of week
@@ -1663,7 +1663,7 @@ const Z = {
1663
1663
  b: function(t, e, n) {
1664
1664
  const a = t.getHours();
1665
1665
  let r;
1666
- switch (a === 12 ? r = se.noon : a === 0 ? r = se.midnight : r = a / 12 >= 1 ? "pm" : "am", e) {
1666
+ switch (a === 12 ? r = ie.noon : a === 0 ? r = ie.midnight : r = a / 12 >= 1 ? "pm" : "am", e) {
1667
1667
  case "b":
1668
1668
  case "bb":
1669
1669
  return n.dayPeriod(r, {
@@ -1692,7 +1692,7 @@ const Z = {
1692
1692
  B: function(t, e, n) {
1693
1693
  const a = t.getHours();
1694
1694
  let r;
1695
- switch (a >= 17 ? r = se.evening : a >= 12 ? r = se.afternoon : a >= 4 ? r = se.morning : r = se.night, e) {
1695
+ switch (a >= 17 ? r = ie.evening : a >= 12 ? r = ie.afternoon : a >= 4 ? r = ie.morning : r = ie.night, e) {
1696
1696
  case "B":
1697
1697
  case "BB":
1698
1698
  case "BBB":
@@ -1719,11 +1719,11 @@ const Z = {
1719
1719
  let a = t.getHours() % 12;
1720
1720
  return a === 0 && (a = 12), n.ordinalNumber(a, { unit: "hour" });
1721
1721
  }
1722
- return Z.h(t, e);
1722
+ return X.h(t, e);
1723
1723
  },
1724
1724
  // Hour [0-23]
1725
1725
  H: function(t, e, n) {
1726
- return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) : Z.H(t, e);
1726
+ return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) : X.H(t, e);
1727
1727
  },
1728
1728
  // Hour [0-11]
1729
1729
  K: function(t, e, n) {
@@ -1737,15 +1737,15 @@ const Z = {
1737
1737
  },
1738
1738
  // Minute
1739
1739
  m: function(t, e, n) {
1740
- return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) : Z.m(t, e);
1740
+ return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) : X.m(t, e);
1741
1741
  },
1742
1742
  // Second
1743
1743
  s: function(t, e, n) {
1744
- return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) : Z.s(t, e);
1744
+ return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) : X.s(t, e);
1745
1745
  },
1746
1746
  // Fraction of second
1747
1747
  S: function(t, e) {
1748
- return Z.S(t, e);
1748
+ return X.S(t, e);
1749
1749
  },
1750
1750
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1751
1751
  X: function(t, e, n) {
@@ -1754,14 +1754,14 @@ const Z = {
1754
1754
  return "Z";
1755
1755
  switch (e) {
1756
1756
  case "X":
1757
- return qe(a);
1757
+ return $e(a);
1758
1758
  case "XXXX":
1759
1759
  case "XX":
1760
- return te(a);
1760
+ return J(a);
1761
1761
  case "XXXXX":
1762
1762
  case "XXX":
1763
1763
  default:
1764
- return te(a, ":");
1764
+ return J(a, ":");
1765
1765
  }
1766
1766
  },
1767
1767
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
@@ -1769,14 +1769,14 @@ const Z = {
1769
1769
  const a = t.getTimezoneOffset();
1770
1770
  switch (e) {
1771
1771
  case "x":
1772
- return qe(a);
1772
+ return $e(a);
1773
1773
  case "xxxx":
1774
1774
  case "xx":
1775
- return te(a);
1775
+ return J(a);
1776
1776
  case "xxxxx":
1777
1777
  case "xxx":
1778
1778
  default:
1779
- return te(a, ":");
1779
+ return J(a, ":");
1780
1780
  }
1781
1781
  },
1782
1782
  // Timezone (GMT)
@@ -1786,10 +1786,10 @@ const Z = {
1786
1786
  case "O":
1787
1787
  case "OO":
1788
1788
  case "OOO":
1789
- return "GMT" + $e(a, ":");
1789
+ return "GMT" + qe(a, ":");
1790
1790
  case "OOOO":
1791
1791
  default:
1792
- return "GMT" + te(a, ":");
1792
+ return "GMT" + J(a, ":");
1793
1793
  }
1794
1794
  },
1795
1795
  // Timezone (specific non-location)
@@ -1799,10 +1799,10 @@ const Z = {
1799
1799
  case "z":
1800
1800
  case "zz":
1801
1801
  case "zzz":
1802
- return "GMT" + $e(a, ":");
1802
+ return "GMT" + qe(a, ":");
1803
1803
  case "zzzz":
1804
1804
  default:
1805
- return "GMT" + te(a, ":");
1805
+ return "GMT" + J(a, ":");
1806
1806
  }
1807
1807
  },
1808
1808
  // Seconds timestamp
@@ -1816,14 +1816,14 @@ const Z = {
1816
1816
  return P(a, e.length);
1817
1817
  }
1818
1818
  };
1819
- function $e(t, e = "") {
1819
+ function qe(t, e = "") {
1820
1820
  const n = t > 0 ? "-" : "+", a = Math.abs(t), r = Math.trunc(a / 60), i = a % 60;
1821
1821
  return i === 0 ? n + String(r) : n + String(r) + e + P(i, 2);
1822
1822
  }
1823
- function qe(t, e) {
1824
- return t % 60 === 0 ? (t > 0 ? "-" : "+") + P(Math.abs(t) / 60, 2) : te(t, e);
1823
+ function $e(t, e) {
1824
+ return t % 60 === 0 ? (t > 0 ? "-" : "+") + P(Math.abs(t) / 60, 2) : J(t, e);
1825
1825
  }
1826
- function te(t, e = "") {
1826
+ function J(t, e = "") {
1827
1827
  const n = t > 0 ? "-" : "+", a = Math.abs(t), r = P(Math.trunc(a / 60), 2), i = P(a % 60, 2);
1828
1828
  return n + r + e + i;
1829
1829
  }
@@ -1839,7 +1839,7 @@ const Ue = (t, e) => {
1839
1839
  default:
1840
1840
  return e.date({ width: "full" });
1841
1841
  }
1842
- }, ot = (t, e) => {
1842
+ }, lt = (t, e) => {
1843
1843
  switch (t) {
1844
1844
  case "p":
1845
1845
  return e.time({ width: "short" });
@@ -1851,7 +1851,7 @@ const Ue = (t, e) => {
1851
1851
  default:
1852
1852
  return e.time({ width: "full" });
1853
1853
  }
1854
- }, zn = (t, e) => {
1854
+ }, Vn = (t, e) => {
1855
1855
  const n = t.match(/(P+)(p+)?/) || [], a = n[1], r = n[2];
1856
1856
  if (!r)
1857
1857
  return Ue(t, e);
@@ -1871,47 +1871,47 @@ const Ue = (t, e) => {
1871
1871
  i = e.dateTime({ width: "full" });
1872
1872
  break;
1873
1873
  }
1874
- return i.replace("{{date}}", Ue(a, e)).replace("{{time}}", ot(r, e));
1875
- }, Qn = {
1876
- p: ot,
1877
- P: zn
1878
- }, Vn = /^D+$/, In = /^Y+$/, Xn = ["D", "DD", "YY", "YYYY"];
1879
- function Gn(t) {
1880
- return Vn.test(t);
1881
- }
1874
+ return i.replace("{{date}}", Ue(a, e)).replace("{{time}}", lt(r, e));
1875
+ }, In = {
1876
+ p: lt,
1877
+ P: Vn
1878
+ }, Xn = /^D+$/, Gn = /^Y+$/, Zn = ["D", "DD", "YY", "YYYY"];
1882
1879
  function Jn(t) {
1883
- return In.test(t);
1880
+ return Xn.test(t);
1881
+ }
1882
+ function Kn(t) {
1883
+ return Gn.test(t);
1884
1884
  }
1885
- function Zn(t, e, n) {
1886
- const a = Kn(t, e, n);
1887
- if (console.warn(a), Xn.includes(t)) throw new RangeError(a);
1885
+ function ea(t, e, n) {
1886
+ const a = ta(t, e, n);
1887
+ if (console.warn(a), Zn.includes(t)) throw new RangeError(a);
1888
1888
  }
1889
- function Kn(t, e, n) {
1889
+ function ta(t, e, n) {
1890
1890
  const a = t[0] === "Y" ? "years" : "days of the month";
1891
1891
  return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1892
1892
  }
1893
- const ea = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ta = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, na = /^'([^]*?)'?$/, aa = /''/g, ra = /[a-zA-Z]/;
1893
+ const na = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, aa = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ra = /^'([^]*?)'?$/, ia = /''/g, sa = /[a-zA-Z]/;
1894
1894
  function we(t, e, n) {
1895
1895
  var d, h, m, x;
1896
- const a = Me(), r = a.locale ?? jn, i = a.firstWeekContainsDate ?? ((h = (d = a.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, l = a.weekStartsOn ?? ((x = (m = a.locale) == null ? void 0 : m.options) == null ? void 0 : x.weekStartsOn) ?? 0, o = I(t);
1897
- if (!it(o))
1896
+ const a = Te(), r = a.locale ?? $n, i = a.firstWeekContainsDate ?? ((h = (d = a.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, l = a.weekStartsOn ?? ((x = (m = a.locale) == null ? void 0 : m.options) == null ? void 0 : x.weekStartsOn) ?? 0, o = z(t);
1897
+ if (!st(o))
1898
1898
  throw new RangeError("Invalid time value");
1899
- let f = e.match(ta).map((g) => {
1899
+ let f = e.match(aa).map((g) => {
1900
1900
  const b = g[0];
1901
1901
  if (b === "p" || b === "P") {
1902
- const y = Qn[b];
1902
+ const y = In[b];
1903
1903
  return y(g, r.formatLong);
1904
1904
  }
1905
1905
  return g;
1906
- }).join("").match(ea).map((g) => {
1906
+ }).join("").match(na).map((g) => {
1907
1907
  if (g === "''")
1908
1908
  return { isToken: !1, value: "'" };
1909
1909
  const b = g[0];
1910
1910
  if (b === "'")
1911
- return { isToken: !1, value: ia(g) };
1911
+ return { isToken: !1, value: oa(g) };
1912
1912
  if (je[b])
1913
1913
  return { isToken: !0, value: g };
1914
- if (b.match(ra))
1914
+ if (b.match(sa))
1915
1915
  throw new RangeError(
1916
1916
  "Format string contains an unescaped latin alphabet character `" + b + "`"
1917
1917
  );
@@ -1926,30 +1926,30 @@ function we(t, e, n) {
1926
1926
  return f.map((g) => {
1927
1927
  if (!g.isToken) return g.value;
1928
1928
  const b = g.value;
1929
- (Jn(b) || Gn(b)) && Zn(b, e, String(t));
1929
+ (Kn(b) || Jn(b)) && ea(b, e, String(t));
1930
1930
  const y = je[b[0]];
1931
1931
  return y(o, b, r.localize, u);
1932
1932
  }).join("");
1933
1933
  }
1934
- function ia(t) {
1935
- const e = t.match(na);
1936
- return e ? e[1].replace(aa, "'") : t;
1934
+ function oa(t) {
1935
+ const e = t.match(ra);
1936
+ return e ? e[1].replace(ia, "'") : t;
1937
1937
  }
1938
1938
  function ke(t, e) {
1939
- const a = ua(t);
1939
+ const a = da(t);
1940
1940
  let r;
1941
1941
  if (a.date) {
1942
- const f = ca(a.date, 2);
1943
- r = da(f.restDateString, f.year);
1942
+ const f = fa(a.date, 2);
1943
+ r = pa(f.restDateString, f.year);
1944
1944
  }
1945
1945
  if (!r || isNaN(r.getTime()))
1946
1946
  return /* @__PURE__ */ new Date(NaN);
1947
1947
  const i = r.getTime();
1948
1948
  let l = 0, o;
1949
- if (a.time && (l = fa(a.time), isNaN(l)))
1949
+ if (a.time && (l = ma(a.time), isNaN(l)))
1950
1950
  return /* @__PURE__ */ new Date(NaN);
1951
1951
  if (a.timezone) {
1952
- if (o = pa(a.timezone), isNaN(o))
1952
+ if (o = ha(a.timezone), isNaN(o))
1953
1953
  return /* @__PURE__ */ new Date(NaN);
1954
1954
  } else {
1955
1955
  const f = new Date(i + l), u = /* @__PURE__ */ new Date(0);
@@ -1970,8 +1970,8 @@ const ye = {
1970
1970
  dateTimeDelimiter: /[T ]/,
1971
1971
  timeZoneDelimiter: /[Z ]/i,
1972
1972
  timezone: /([Z+-].*)$/
1973
- }, sa = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, oa = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, la = /^([+-])(\d{2})(?::?(\d{2}))?$/;
1974
- function ua(t) {
1973
+ }, la = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, ua = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, ca = /^([+-])(\d{2})(?::?(\d{2}))?$/;
1974
+ function da(t) {
1975
1975
  const e = {}, n = t.split(ye.dateTimeDelimiter);
1976
1976
  let a;
1977
1977
  if (n.length > 2)
@@ -1985,7 +1985,7 @@ function ua(t) {
1985
1985
  }
1986
1986
  return e;
1987
1987
  }
1988
- function ca(t, e) {
1988
+ function fa(t, e) {
1989
1989
  const n = new RegExp(
1990
1990
  "^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"
1991
1991
  ), a = t.match(n);
@@ -1996,64 +1996,64 @@ function ca(t, e) {
1996
1996
  restDateString: t.slice((a[1] || a[2]).length)
1997
1997
  };
1998
1998
  }
1999
- function da(t, e) {
1999
+ function pa(t, e) {
2000
2000
  if (e === null) return /* @__PURE__ */ new Date(NaN);
2001
- const n = t.match(sa);
2001
+ const n = t.match(la);
2002
2002
  if (!n) return /* @__PURE__ */ new Date(NaN);
2003
2003
  const a = !!n[4], r = fe(n[1]), i = fe(n[2]) - 1, l = fe(n[3]), o = fe(n[4]), f = fe(n[5]) - 1;
2004
2004
  if (a)
2005
- return wa(e, o, f) ? ma(e, o, f) : /* @__PURE__ */ new Date(NaN);
2005
+ return ba(e, o, f) ? ga(e, o, f) : /* @__PURE__ */ new Date(NaN);
2006
2006
  {
2007
2007
  const u = /* @__PURE__ */ new Date(0);
2008
- return !ga(e, i, l) || !va(e, r) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(e, i, Math.max(r, l)), u);
2008
+ return !wa(e, i, l) || !ya(e, r) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(e, i, Math.max(r, l)), u);
2009
2009
  }
2010
2010
  }
2011
2011
  function fe(t) {
2012
2012
  return t ? parseInt(t) : 1;
2013
2013
  }
2014
- function fa(t) {
2015
- const e = t.match(oa);
2014
+ function ma(t) {
2015
+ const e = t.match(ua);
2016
2016
  if (!e) return NaN;
2017
2017
  const n = Ce(e[1]), a = Ce(e[2]), r = Ce(e[3]);
2018
- return ya(n, a, r) ? n * at + a * nt + r * 1e3 : NaN;
2018
+ return xa(n, a, r) ? n * rt + a * at + r * 1e3 : NaN;
2019
2019
  }
2020
2020
  function Ce(t) {
2021
2021
  return t && parseFloat(t.replace(",", ".")) || 0;
2022
2022
  }
2023
- function pa(t) {
2023
+ function ha(t) {
2024
2024
  if (t === "Z") return 0;
2025
- const e = t.match(la);
2025
+ const e = t.match(ca);
2026
2026
  if (!e) return 0;
2027
2027
  const n = e[1] === "+" ? -1 : 1, a = parseInt(e[2]), r = e[3] && parseInt(e[3]) || 0;
2028
- return ba(a, r) ? n * (a * at + r * nt) : NaN;
2028
+ return Da(a, r) ? n * (a * rt + r * at) : NaN;
2029
2029
  }
2030
- function ma(t, e, n) {
2030
+ function ga(t, e, n) {
2031
2031
  const a = /* @__PURE__ */ new Date(0);
2032
2032
  a.setUTCFullYear(t, 0, 4);
2033
2033
  const r = a.getUTCDay() || 7, i = (e - 1) * 7 + n + 1 - r;
2034
2034
  return a.setUTCDate(a.getUTCDate() + i), a;
2035
2035
  }
2036
- const ha = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
2037
- function lt(t) {
2036
+ const va = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
2037
+ function ut(t) {
2038
2038
  return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
2039
2039
  }
2040
- function ga(t, e, n) {
2041
- return e >= 0 && e <= 11 && n >= 1 && n <= (ha[e] || (lt(t) ? 29 : 28));
2040
+ function wa(t, e, n) {
2041
+ return e >= 0 && e <= 11 && n >= 1 && n <= (va[e] || (ut(t) ? 29 : 28));
2042
2042
  }
2043
- function va(t, e) {
2044
- return e >= 1 && e <= (lt(t) ? 366 : 365);
2043
+ function ya(t, e) {
2044
+ return e >= 1 && e <= (ut(t) ? 366 : 365);
2045
2045
  }
2046
- function wa(t, e, n) {
2046
+ function ba(t, e, n) {
2047
2047
  return e >= 1 && e <= 53 && n >= 0 && n <= 6;
2048
2048
  }
2049
- function ya(t, e, n) {
2049
+ function xa(t, e, n) {
2050
2050
  return t === 24 ? e === 0 && n === 0 : n >= 0 && n < 60 && e >= 0 && e < 60 && t >= 0 && t < 25;
2051
2051
  }
2052
- function ba(t, e) {
2052
+ function Da(t, e) {
2053
2053
  return e >= 0 && e <= 59;
2054
2054
  }
2055
- function xa() {
2056
- const t = new en();
2055
+ function Ta() {
2056
+ const t = new nn();
2057
2057
  function e(n, a) {
2058
2058
  var i;
2059
2059
  if (!n || typeof n == "string" && n.indexOf("0001") === 0)
@@ -2061,7 +2061,7 @@ function xa() {
2061
2061
  if (n instanceof Date)
2062
2062
  return we(n, a);
2063
2063
  let r = ke(n);
2064
- if (r == "Invalid Date" && (r = t.create(n) || new Date(n)), it(r))
2064
+ if (r == "Invalid Date" && (r = t.create(n) || new Date(n)), st(r))
2065
2065
  return r = ke(we(r, "yyyy-MM-dd HH:mm:ss")), we(r, a);
2066
2066
  if (a.indexOf("HH") === 0 || a.indexOf("hh") === 0) {
2067
2067
  const l = (i = n.match(/\d*/g)) == null ? void 0 : i.filter((f) => f !== "").join(":");
@@ -2075,8 +2075,8 @@ function xa() {
2075
2075
  formatTo: e
2076
2076
  };
2077
2077
  }
2078
- const Da = ["moz", "ms", "webkit"];
2079
- function Ma() {
2078
+ const Ma = ["moz", "ms", "webkit"];
2079
+ function Sa() {
2080
2080
  let t = 0;
2081
2081
  return (e) => {
2082
2082
  const n = (/* @__PURE__ */ new Date()).getTime(), a = Math.max(0, 16 - (n - t)), r = setTimeout(() => {
@@ -2085,38 +2085,38 @@ function Ma() {
2085
2085
  return t = n + a, r;
2086
2086
  };
2087
2087
  }
2088
- function Ta() {
2088
+ function ka() {
2089
2089
  if (typeof window > "u")
2090
2090
  return () => 0;
2091
2091
  if (window.requestAnimationFrame)
2092
2092
  return window.requestAnimationFrame.bind(window);
2093
- const t = Da.filter((e) => `${e}RequestAnimationFrame` in window)[0];
2094
- return t ? window[`${t}RequestAnimationFrame`] : Ma();
2093
+ const t = Ma.filter((e) => `${e}RequestAnimationFrame` in window)[0];
2094
+ return t ? window[`${t}RequestAnimationFrame`] : Sa();
2095
2095
  }
2096
- Ta();
2097
- const Sa = (t) => {
2096
+ ka();
2097
+ const Ca = (t) => {
2098
2098
  const e = t;
2099
2099
  return e.install = function(n) {
2100
2100
  n.component(e.name, t);
2101
2101
  }, t;
2102
2102
  };
2103
- var X = /* @__PURE__ */ ((t) => (t[t.Queue = 0] = "Queue", t[t.Uploading = 1] = "Uploading", t[t.Done = 2] = "Done", t[t.Cancelled = 3] = "Cancelled", t[t.Remove = 4] = "Remove", t[t.Error = 5] = "Error", t))(X || {});
2104
- class ka {
2103
+ var Q = /* @__PURE__ */ ((t) => (t[t.Queue = 0] = "Queue", t[t.Uploading = 1] = "Uploading", t[t.Done = 2] = "Done", t[t.Cancelled = 3] = "Cancelled", t[t.Remove = 4] = "Remove", t[t.Error = 5] = "Error", t))(Q || {});
2104
+ class Pa {
2105
2105
  constructor(e = {}, n = {}) {
2106
2106
  /**
2107
2107
  * 上传配置
2108
2108
  */
2109
- z(this, "uploadConfig");
2109
+ U(this, "uploadConfig");
2110
2110
  /**
2111
2111
  * 删除配置
2112
2112
  */
2113
- z(this, "removeConfig");
2113
+ U(this, "removeConfig");
2114
2114
  const a = { type: "config", url: "", timeout: 0, headers: null, data: {} };
2115
2115
  this.uploadConfig = Object.assign({}, a, e), this.removeConfig = Object.assign({}, a, n);
2116
2116
  }
2117
2117
  }
2118
- function _e(t, e) {
2119
- const { formatTo: n } = xa();
2118
+ function He(t, e) {
2119
+ const { formatTo: n } = Ta();
2120
2120
  return n(t, e);
2121
2121
  }
2122
2122
  function Le(t, e) {
@@ -2125,7 +2125,7 @@ function Le(t, e) {
2125
2125
  let n = "";
2126
2126
  return t.indexOf(".") === -1 && e.hasOwnProperty(t) ? n = e[t] : n = t.split(".").reduce((a, r) => a ? a[r] : null, e), n;
2127
2127
  }
2128
- function Ca(t) {
2128
+ function Ea(t) {
2129
2129
  return (e, n) => {
2130
2130
  if (!e.hasOwnProperty(t) || e[t] === void 0 || e[t] === null)
2131
2131
  return 1;
@@ -2139,10 +2139,10 @@ function Ca(t) {
2139
2139
  return a.getTime() > r.getTime() ? -1 : 1;
2140
2140
  };
2141
2141
  }
2142
- function ut(t) {
2142
+ function ct(t) {
2143
2143
  return (t || []).findIndex((n) => n === "*") === -1;
2144
2144
  }
2145
- function ct(t) {
2145
+ function dt(t) {
2146
2146
  return t !== "0 Byte";
2147
2147
  }
2148
2148
  function me(t) {
@@ -2151,7 +2151,7 @@ function me(t) {
2151
2151
  const e = 1024, n = ["Bytes", "KB", "MB", "GB", "TB", "PB"], a = Math.floor(Math.log(t) / Math.log(e));
2152
2152
  return parseFloat((t / e ** a).toFixed(2)) + " " + n[a];
2153
2153
  }
2154
- function dt(t, e) {
2154
+ function ft(t, e) {
2155
2155
  return t && (t.hasOwnProperty("allowedContentTypes") && (e.allowedContentTypes = t.allowedContentTypes || ["*"], e.allowedContentTypes = e.allowedContentTypes && e.allowedContentTypes.length > 0 ? e.allowedContentTypes : ["*"]), t.hasOwnProperty("maxUploads") && (e.maxUploads = t.maxUploads || 0), t.hasOwnProperty("maxFileSize") && (e.maxFileSize = me(1024 * 1024 * (parseInt(String(t.maxFileSize), 10) || 1)))), e;
2156
2156
  }
2157
2157
  function ze(t) {
@@ -2206,7 +2206,7 @@ function Qe(t) {
2206
2206
  if (t.type === "done")
2207
2207
  return 100;
2208
2208
  if (t.file && t.file.progress) {
2209
- if (t.file.progress.status === X.Uploading) {
2209
+ if (t.file.progress.status === Q.Uploading) {
2210
2210
  const n = ((e = t.file.progress.data) == null ? void 0 : e.percentage) || 5;
2211
2211
  return n > 5 ? n : 5;
2212
2212
  }
@@ -2214,21 +2214,21 @@ function Qe(t) {
2214
2214
  }
2215
2215
  return 5;
2216
2216
  }
2217
- function Pa(t) {
2217
+ function Fa(t) {
2218
2218
  let e = t;
2219
2219
  return t ? (typeof t == "string" && (e = parseInt(t, 10)), me(e)) : "0 Byte";
2220
2220
  }
2221
- const Ea = () => Math.random().toString(36).substring(7);
2221
+ const Oa = () => Math.random().toString(36).substring(7);
2222
2222
  function Ve(t, e) {
2223
2223
  return {
2224
2224
  fileIndex: e,
2225
- id: Ea(),
2225
+ id: Oa(),
2226
2226
  name: t.name,
2227
2227
  size: t.size,
2228
2228
  type: t.type,
2229
2229
  form: new FormData(),
2230
2230
  progress: {
2231
- status: X.Queue,
2231
+ status: Q.Queue,
2232
2232
  data: {
2233
2233
  percentage: 0,
2234
2234
  speed: 0,
@@ -2239,7 +2239,7 @@ function Ve(t, e) {
2239
2239
  etaHuman: null
2240
2240
  }
2241
2241
  },
2242
- lastModifiedDate: _e(new Date(t.lastModified), "yyyy-MM-dd HH:mm:ss"),
2242
+ lastModifiedDate: He(new Date(t.lastModified), "yyyy-MM-dd HH:mm:ss"),
2243
2243
  nativeFile: t
2244
2244
  };
2245
2245
  }
@@ -2249,19 +2249,19 @@ function Ie(t) {
2249
2249
  const a = { id: "", name: "", size: 0, type: "", extend: null, extendHeaders: null, createTime: "" };
2250
2250
  for (const r in a) {
2251
2251
  const i = r.replace("extend", "response").replace("createTime", "lastModifiedDate");
2252
- n.hasOwnProperty(i) && (i === "lastModifiedDate" ? a[r] = _e(n[i], "yyyy-MM-dd HH:mm:ss") : a[r] = n[i]);
2252
+ n.hasOwnProperty(i) && (i === "lastModifiedDate" ? a[r] = He(n[i], "yyyy-MM-dd HH:mm:ss") : a[r] = n[i]);
2253
2253
  }
2254
2254
  e.push(a);
2255
2255
  }), e;
2256
2256
  }
2257
- function Fa(t, e) {
2257
+ function Na(t, e) {
2258
2258
  return t ? e <= t * 1024 * 1024 : !0;
2259
2259
  }
2260
- function Oa(t) {
2260
+ function Aa(t) {
2261
2261
  return t.find((e) => e === "*") !== void 0;
2262
2262
  }
2263
- function Na(t, e) {
2264
- if (!t || t.length === 0 || Oa(t))
2263
+ function Ha(t, e) {
2264
+ if (!t || t.length === 0 || Aa(t))
2265
2265
  return !0;
2266
2266
  if (e.lastIndexOf(".") < 0)
2267
2267
  return !1;
@@ -2270,7 +2270,7 @@ function Na(t, e) {
2270
2270
  (a) => a.toLowerCase() === n.toLowerCase()
2271
2271
  ) > -1;
2272
2272
  }
2273
- function Aa(t) {
2273
+ function Ba(t) {
2274
2274
  if (t)
2275
2275
  return t.split(`
2276
2276
  `).map((e) => e.split(/: */, 2)).filter((e) => e[0]).reduce((e, n) => (e[n[0]] = n[1], e), {});
@@ -2278,7 +2278,7 @@ function Aa(t) {
2278
2278
  function Xe(t) {
2279
2279
  return new Date(t * 1e3).toISOString().substr(11, 8);
2280
2280
  }
2281
- class Ha extends ka {
2281
+ class _a extends Pa {
2282
2282
  upload(e, n, a, r) {
2283
2283
  const i = e[0];
2284
2284
  return new Promise((l, o) => {
@@ -2288,11 +2288,11 @@ class Ha extends ka {
2288
2288
  m.upload.addEventListener("progress", (M) => {
2289
2289
  var O;
2290
2290
  if (M.lengthComputable) {
2291
- const H = Math.round(M.loaded * 100 / M.total), T = (/* @__PURE__ */ new Date()).getTime() - x;
2292
- b = Math.round(M.loaded / T * 1e3), g = ((O = i.progress) == null ? void 0 : O.data) && i.progress.data.startTime || (/* @__PURE__ */ new Date()).getTime(), y = Math.ceil((M.total - M.loaded) / b), i.progress = {
2293
- status: X.Uploading,
2291
+ const D = Math.round(M.loaded * 100 / M.total), H = (/* @__PURE__ */ new Date()).getTime() - x;
2292
+ b = Math.round(M.loaded / H * 1e3), g = ((O = i.progress) == null ? void 0 : O.data) && i.progress.data.startTime || (/* @__PURE__ */ new Date()).getTime(), y = Math.ceil((M.total - M.loaded) / b), i.progress = {
2293
+ status: Q.Uploading,
2294
2294
  data: {
2295
- percentage: H,
2295
+ percentage: D,
2296
2296
  speed: b,
2297
2297
  speedHuman: `${me(b)}/s`,
2298
2298
  startTime: g,
@@ -2308,7 +2308,7 @@ class Ha extends ka {
2308
2308
  if (m.readyState === XMLHttpRequest.DONE) {
2309
2309
  const M = Math.round(i.size / ((/* @__PURE__ */ new Date()).getTime() - g) * 1e3);
2310
2310
  i.progress = {
2311
- status: X.Done,
2311
+ status: Q.Done,
2312
2312
  data: {
2313
2313
  percentage: 100,
2314
2314
  speed: M,
@@ -2324,16 +2324,16 @@ class Ha extends ka {
2324
2324
  } catch {
2325
2325
  i.response = m.response;
2326
2326
  }
2327
- i.responseHeaders = Aa(m.getAllResponseHeaders()), l({ type: "done", files: [i] });
2327
+ i.responseHeaders = Ba(m.getAllResponseHeaders()), l({ type: "done", files: [i] });
2328
2328
  }
2329
2329
  }, m.open(u, f, !0), m.withCredentials = !!n.withCredentials;
2330
2330
  try {
2331
2331
  const M = i.nativeFile;
2332
- Object.keys(h).forEach((H) => m.setRequestHeader(H, h[H]));
2332
+ Object.keys(h).forEach((D) => m.setRequestHeader(D, h[D]));
2333
2333
  let O;
2334
- n.includeWebKitFormBoundary !== !1 ? (Object.keys(d).forEach((H) => {
2335
- var T;
2336
- return (T = i.form) == null ? void 0 : T.append(H, d[H]);
2334
+ n.includeWebKitFormBoundary !== !1 ? (Object.keys(d).forEach((D) => {
2335
+ var H;
2336
+ return (H = i.form) == null ? void 0 : H.append(D, d[D]);
2337
2337
  }), (A = i.form) == null || A.append(n.fieldName || "file", M, M.name), O = i.form) : O = M, m.send(O);
2338
2338
  } catch (M) {
2339
2339
  o(M);
@@ -2350,7 +2350,7 @@ class Ha extends ka {
2350
2350
  });
2351
2351
  }
2352
2352
  }
2353
- const _a = {
2353
+ const Ra = {
2354
2354
  showCloseButton: { type: Boolean, default: !0 },
2355
2355
  position: { type: String, default: "top-center" },
2356
2356
  timeout: { type: Number, default: 3e3 },
@@ -2362,27 +2362,27 @@ const _a = {
2362
2362
  id: { type: String },
2363
2363
  animate: { type: String, default: "fadeIn" },
2364
2364
  options: { type: Object }
2365
- }, Ba = {
2365
+ }, Ya = {
2366
2366
  showCloseButton: { type: Boolean, default: !0 },
2367
2367
  animate: { type: String, default: "fadeIn" },
2368
2368
  options: { type: Object }
2369
- }, Ee = /* @__PURE__ */ re({
2369
+ }, Pe = /* @__PURE__ */ te({
2370
2370
  name: "Toast",
2371
- props: Ba,
2371
+ props: Ya,
2372
2372
  emits: ["close", "click"],
2373
2373
  setup: (t, e) => {
2374
- const n = N(t.animate), a = "fadeOut", r = $(() => t.options), i = N(!1), l = $(() => {
2374
+ const n = N(t.animate), a = "fadeOut", r = W(() => t.options), i = N(!1), l = W(() => {
2375
2375
  const k = {
2376
2376
  animated: i.value,
2377
2377
  toast: !0
2378
2378
  };
2379
2379
  return k[t.animate] = !1, k[a] = i.value, k[r.value.type] = !0, r.value.theme && (k[r.value.theme] = !0), k;
2380
- }), o = $(() => {
2380
+ }), o = W(() => {
2381
2381
  const M = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, O = {
2382
2382
  "f-icon": !0
2383
2383
  };
2384
2384
  return O[M] = !0, O;
2385
- }), f = $(() => r.value.title || r.value.message), u = $(() => r.value.title && r.value.message), d = $(() => !r.value.title && r.value.message), h = $(() => t.showCloseButton), m = $(() => !!r.value.buttons || !!e.slots.default);
2385
+ }), f = W(() => r.value.title || r.value.message), u = W(() => r.value.title && r.value.message), d = W(() => !r.value.title && r.value.message), h = W(() => t.showCloseButton), m = W(() => !!r.value.buttons || !!e.slots.default);
2386
2386
  function x(k) {
2387
2387
  k.stopPropagation(), k.preventDefault(), i.value = !1, setTimeout(() => {
2388
2388
  e.emit("close", r.value);
@@ -2393,12 +2393,12 @@ const _a = {
2393
2393
  function b(k) {
2394
2394
  return `f-preten-link ${k.customClass ? k.customClass : ""}`;
2395
2395
  }
2396
- ne(n, () => {
2396
+ K(n, () => {
2397
2397
  n.value;
2398
2398
  });
2399
2399
  const y = () => {
2400
2400
  var k;
2401
- return s(oe, null, [s("div", {
2401
+ return s(se, null, [s("div", {
2402
2402
  class: "after-toast-msg text-right"
2403
2403
  }, [!e.slots.default && ((k = r.value.buttons) == null ? void 0 : k.map((A) => s("span", {
2404
2404
  class: b(A),
@@ -2421,7 +2421,7 @@ const _a = {
2421
2421
  class: o.value
2422
2422
  }, null)]), s("div", {
2423
2423
  class: "modal-tips-content"
2424
- }, [u.value && s(oe, null, [s("h5", {
2424
+ }, [u.value && s(se, null, [s("h5", {
2425
2425
  class: "toast-title modal-tips-title",
2426
2426
  innerHTML: r.value.title
2427
2427
  }, null), s("p", {
@@ -2439,19 +2439,19 @@ const _a = {
2439
2439
  innerHTML: r.value.message
2440
2440
  }, null))])])]);
2441
2441
  }
2442
- }), be = /* @__PURE__ */ re({
2442
+ }), be = /* @__PURE__ */ te({
2443
2443
  name: "Notify",
2444
- props: _a,
2444
+ props: Ra,
2445
2445
  emits: ["close", "empty"],
2446
2446
  setup(t, e) {
2447
- const n = $(() => ({
2447
+ const n = W(() => ({
2448
2448
  "farris-notify": !0
2449
2449
  })), a = {
2450
2450
  left: 12,
2451
2451
  right: 12,
2452
2452
  top: 20,
2453
2453
  bottom: 12
2454
- }, r = N(), i = N(t.options), l = N(t.showCloseButton), o = $(() => t.position || "bottom-right"), f = $(() => t.timeout != null ? t.timeout : 3e3), u = $(() => {
2454
+ }, r = N(), i = N(t.options), l = N(t.showCloseButton), o = W(() => t.position || "bottom-right"), f = W(() => t.timeout != null ? t.timeout : 3e3), u = W(() => {
2455
2455
  const m = t.bottom ? t.bottom : a.bottom, x = t.top ? t.top : a.top, g = {
2456
2456
  transition: "all 0.2s ease",
2457
2457
  left: o.value.indexOf("left") > -1 ? `${t.left ? t.left : a.left}px` : "",
@@ -2478,7 +2478,7 @@ const _a = {
2478
2478
  class: n.value,
2479
2479
  style: u.value,
2480
2480
  ref: r
2481
- }, [s(Ee, {
2481
+ }, [s(Pe, {
2482
2482
  options: i.value,
2483
2483
  showCloseButton: l.value,
2484
2484
  animate: t.animate,
@@ -2486,10 +2486,10 @@ const _a = {
2486
2486
  }, null)]);
2487
2487
  }
2488
2488
  });
2489
- class ft {
2489
+ class pt {
2490
2490
  constructor() {
2491
- z(this, "notifyRefs", []);
2492
- z(this, "globalConfig", yt({}));
2491
+ U(this, "notifyRefs", []);
2492
+ U(this, "globalConfig", bt({}));
2493
2493
  }
2494
2494
  createNotifyInstance(e) {
2495
2495
  const n = this, r = Object.assign({
@@ -2500,7 +2500,7 @@ class ft {
2500
2500
  ...e
2501
2501
  }), i = document.createElement("div");
2502
2502
  i.style.display = "contents";
2503
- const l = bt({
2503
+ const l = xt({
2504
2504
  setup() {
2505
2505
  const o = N();
2506
2506
  function f() {
@@ -2515,15 +2515,21 @@ class ft {
2515
2515
  r.top = h.bottom;
2516
2516
  }
2517
2517
  }
2518
- return Ne(() => {
2518
+ return Oe(() => {
2519
2519
  document.body.removeChild(i);
2520
- }), Oe(() => {
2520
+ }), Fe(() => {
2521
2521
  n.updateNotifyPositionForCreate(r, o);
2522
- }), () => s(be, xt({
2523
- ref: o
2524
- }, r, {
2525
- onClose: f
2526
- }), null);
2522
+ }), () => s(Dt, {
2523
+ mode: "out-in",
2524
+ name: "fade",
2525
+ appear: !0
2526
+ }, {
2527
+ default: () => [s(be, Tt({
2528
+ ref: o
2529
+ }, r, {
2530
+ onClose: f
2531
+ }), null)]
2532
+ });
2527
2533
  }
2528
2534
  });
2529
2535
  return l.provide("NotifyService", this), document.body.appendChild(i), l.mount(i), l;
@@ -2591,28 +2597,28 @@ class ft {
2591
2597
  }), this.notifyRefs.length = 0;
2592
2598
  }
2593
2599
  }
2594
- const Ra = Symbol("NOTIFY_SERVICE_TOKEN");
2600
+ const Wa = Symbol("NOTIFY_SERVICE_TOKEN");
2595
2601
  be.install = (t) => {
2596
- t.component(be.name, be), t.component(Ee.name, Ee);
2597
- const e = new ft();
2598
- t.provide(Ra, e), t.provide("FNotifyService", e);
2602
+ t.component(be.name, be), t.component(Pe.name, Pe);
2603
+ const e = new pt();
2604
+ t.provide(Wa, e), t.provide("FNotifyService", e);
2599
2605
  };
2600
- const Ya = (t = "") => {
2606
+ const ja = (t = "") => {
2601
2607
  let e;
2602
- return t && le(t, null) && (e = le(t)), e || (e = new ft()), e;
2603
- }, Wa = (t = "") => {
2608
+ return t && oe(t, null) && (e = oe(t)), e || (e = new pt()), e;
2609
+ }, qa = (t = "") => {
2604
2610
  let e;
2605
- if (t && le(t, null)) {
2606
- const n = le(t);
2611
+ if (t && oe(t, null)) {
2612
+ const n = oe(t);
2607
2613
  n && n() && (e = n());
2608
2614
  }
2609
- return e || (e = new Ha()), e;
2610
- }, pt = {
2611
- getNotify: Ya,
2612
- getServerAPI: Wa
2615
+ return e || (e = new _a()), e;
2616
+ }, mt = {
2617
+ getNotify: ja,
2618
+ getServerAPI: qa
2613
2619
  };
2614
- function mt(t, e, n) {
2615
- const a = pt.getNotify(t.notifyServiceToken), r = N(t.fileInfos), {
2620
+ function ht(t, e, n) {
2621
+ const a = mt.getNotify(t.notifyServiceToken), r = N(t.fileInfos), {
2616
2622
  disabled: i,
2617
2623
  uploadVisible: l,
2618
2624
  uploadDisabled: o,
@@ -2623,64 +2629,64 @@ function mt(t, e, n) {
2623
2629
  previewColumns: m,
2624
2630
  uploadEnableMulti: x,
2625
2631
  previewButtonDisable: g
2626
- } = Fe(t), b = N(!1), y = N([]), k = $(() => y.value.length), A = N([]), M = N(""), O = N(H(r.value));
2627
- function H(c) {
2632
+ } = Ee(t), b = N(!1), y = N([]), k = W(() => y.value.length), A = N([]), M = N(""), O = N(D(r.value));
2633
+ function D(c) {
2628
2634
  (!c.length || y.value.length !== c.length) && (b.value = !1);
2629
- const D = [...c.map((S) => (S.hasOwnProperty("size") || (S.size = void 0), S.hasOwnProperty("createTime") || (S.createTime = void 0), d.value && (S.checked = !!y.value.find((L) => L.id === S.id) || b.value), S))];
2630
- return D.sort(Ca(u.value)), d.value && (y.value = [...D].filter((S) => S.checked)), D;
2635
+ const T = [...c.map((S) => (S.hasOwnProperty("size") || (S.size = void 0), S.hasOwnProperty("createTime") || (S.createTime = void 0), d.value && (S.checked = !!y.value.find(($) => $.id === S.id) || b.value), S))];
2636
+ return T.sort(Ea(u.value)), d.value && (y.value = [...T].filter((S) => S.checked)), T;
2631
2637
  }
2632
- ne(() => t.fileInfos, (c) => {
2633
- O.value = H(c);
2638
+ K(() => t.fileInfos, (c) => {
2639
+ O.value = D(c);
2634
2640
  });
2635
- const T = (c, v) => {
2641
+ const H = (c, v) => {
2636
2642
  c.stopImmediatePropagation(), e.emit("fileDownloadEvent", { fileInfos: [v], name: "" });
2637
- }, B = (c, v) => {
2643
+ }, Y = (c, v) => {
2638
2644
  c.stopImmediatePropagation(), !g.value && e.emit("filePreviewEvent", v);
2639
- }, _ = (c, v, D) => {
2640
- v.checked && (y.value = y.value.filter((S) => S.id !== v.id)), e.emit("fileRemoveEvent", v), D.handleUploadEvent({ type: "remove", file: v });
2641
- }, R = (c, v = "preview") => c.formatter ? !0 : v === "preview" ? ["state", "name", "action", "size", "createTime"].findIndex((S) => S === c.field) > -1 : v === "upload" ? ["state", "name", "size"].findIndex((S) => S === c.field) > -1 : !1, Q = (c) => !(c.field === "state" && (o.value || !l.value)), V = (c) => c.lastIndexOf(".") > 0 ? c.substring(0, c.lastIndexOf(".")) : "", G = (c) => {
2645
+ }, L = (c, v, T) => {
2646
+ v.checked && (y.value = y.value.filter((S) => S.id !== v.id)), e.emit("fileRemoveEvent", v), T.handleUploadEvent({ type: "remove", file: v });
2647
+ }, V = (c, v = "preview") => c.formatter ? !0 : v === "preview" ? ["state", "name", "action", "size", "createTime"].findIndex((S) => S === c.field) > -1 : v === "upload" ? ["state", "name", "size"].findIndex((S) => S === c.field) > -1 : !1, ne = (c) => !(c.field === "state" && (o.value || !l.value)), le = (c) => c.lastIndexOf(".") > 0 ? c.substring(0, c.lastIndexOf(".")) : "", ae = (c) => {
2642
2648
  if (c.stopImmediatePropagation(), k.value > 1) {
2643
2649
  let v = "";
2644
- v = V(y.value[0].name), e.emit("fileDownloadEvent", {
2650
+ v = le(y.value[0].name), e.emit("fileDownloadEvent", {
2645
2651
  fileInfos: y.value,
2646
2652
  name: v
2647
2653
  });
2648
2654
  }
2649
- }, ee = (c) => {
2655
+ }, Z = (c) => {
2650
2656
  c.stopImmediatePropagation(), e.emit("fileRemoveEvent", y.value);
2651
- }, ie = (c) => {
2657
+ }, re = (c) => {
2652
2658
  const v = O.value;
2653
- c.checked ? (v.forEach((D) => {
2654
- D.checked = !0;
2655
- }), y.value = [...O.value], b.value = !0) : (y.value = [], v.forEach((D) => {
2656
- D.checked = !1;
2659
+ c.checked ? (v.forEach((T) => {
2660
+ T.checked = !0;
2661
+ }), y.value = [...O.value], b.value = !0) : (y.value = [], v.forEach((T) => {
2662
+ T.checked = !1;
2657
2663
  }), b.value = !1), e.emit("previewMultiSelectedEvent", y.value);
2658
- }, Y = (c, v) => {
2664
+ }, B = (c, v) => {
2659
2665
  c && (c.stopImmediatePropagation(), c.stopPropagation()), (!M.value || v.id !== M.value) && (M.value = v.id, e.emit("selectedEvent", v));
2660
2666
  }, E = (c) => {
2661
- const v = y.value.findIndex((L) => L.id === c.id), D = v > -1, S = O.value.find((L) => L.id === c.id);
2662
- S && (S.checked = c.checked), c.checked && !D && S && y.value.push(S), !c.checked && D && y.value.splice(v, 1), O.value.length > 0 && (y.value.length === O.value.length ? b.value = !0 : b.value = !1), Y(null, S), e.emit("previewMultiSelectedEvent", y.value);
2663
- }, q = (c) => {
2667
+ const v = y.value.findIndex(($) => $.id === c.id), T = v > -1, S = O.value.find(($) => $.id === c.id);
2668
+ S && (S.checked = c.checked), c.checked && !T && S && y.value.push(S), !c.checked && T && y.value.splice(v, 1), O.value.length > 0 && (y.value.length === O.value.length ? b.value = !0 : b.value = !1), B(null, S), e.emit("previewMultiSelectedEvent", y.value);
2669
+ }, j = (c) => {
2664
2670
  var v;
2665
2671
  (v = n == null ? void 0 : n.value) == null || v.handleUploadEvent(c);
2666
2672
  }, ue = (c) => {
2667
- q({ type: "upload", file: c });
2668
- }, W = (c, v) => {
2669
- let D = [];
2670
- c.files && c.files.length > 0 ? D = c.files : typeof c.file < "u" && (D = [c.file]), v = v || c.type, D.map((S) => {
2671
- const L = A.value.findIndex((J) => {
2673
+ j({ type: "upload", file: c });
2674
+ }, _ = (c, v) => {
2675
+ let T = [];
2676
+ c.files && c.files.length > 0 ? T = c.files : typeof c.file < "u" && (T = [c.file]), v = v || c.type, T.map((S) => {
2677
+ const $ = A.value.findIndex((I) => {
2672
2678
  var ve;
2673
- return typeof S < "u" && ((ve = J == null ? void 0 : J.file) == null ? void 0 : ve.id) === S.id;
2679
+ return typeof S < "u" && ((ve = I == null ? void 0 : I.file) == null ? void 0 : ve.id) === S.id;
2674
2680
  });
2675
- L > -1 && (A.value[L] = { type: v, file: S });
2681
+ $ > -1 && (A.value[$] = { type: v, file: S });
2676
2682
  });
2677
- }, Te = (c) => {
2683
+ }, Me = (c) => {
2678
2684
  if (c.files) {
2679
- const v = c.files.map((D) => D.id);
2680
- A.value = A.value.filter((D) => !(v.findIndex((L) => {
2681
- var J;
2682
- return L === ((J = D == null ? void 0 : D.file) == null ? void 0 : J.id);
2683
- }) > -1)), q({
2685
+ const v = c.files.map((T) => T.id);
2686
+ A.value = A.value.filter((T) => !(v.findIndex(($) => {
2687
+ var I;
2688
+ return $ === ((I = T == null ? void 0 : T.file) == null ? void 0 : I.id);
2689
+ }) > -1)), j({
2684
2690
  type: "hide",
2685
2691
  id: v.join(",")
2686
2692
  });
@@ -2688,32 +2694,32 @@ function mt(t, e, n) {
2688
2694
  }, he = (c) => {
2689
2695
  let v = "warning";
2690
2696
  (c.type === "cancelled" || c.type === "removed") && (v = "success");
2691
- const D = c.hasOwnProperty("message") ? c.message : "";
2697
+ const T = c.hasOwnProperty("message") ? c.message : "";
2692
2698
  a.show({
2693
- options: { type: v, message: D },
2699
+ options: { type: v, message: T },
2694
2700
  position: "top-center"
2695
2701
  });
2696
2702
  }, ge = (c) => {
2697
2703
  if (c.type === "addedToQueue" && typeof c.file < "u")
2698
2704
  A.value.push({ type: c.type, file: c.file }), ue(c.file);
2699
2705
  else if (c.type === "start")
2700
- W(c, "start");
2706
+ _(c, "start");
2701
2707
  else if (c.type === "done") {
2702
- W(c, "done");
2703
- const v = (c.files || []).map((D) => ({
2708
+ _(c, "done");
2709
+ const v = (c.files || []).map((T) => ({
2704
2710
  checked: !1,
2705
- id: D.id,
2706
- name: D.name,
2707
- size: D.size,
2708
- createTime: _e(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH:mm:ss")
2711
+ id: T.id,
2712
+ name: T.name,
2713
+ size: T.size,
2714
+ createTime: He(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH:mm:ss")
2709
2715
  }));
2710
- r.value = [...v, ...O.value], Te(c), e.emit("fUploadDoneEvent", Ie(c.files || [])), e.emit("uploadDoneEvent", Ie(c.files || []));
2716
+ r.value = [...v, ...O.value], Me(c), e.emit("fUploadDoneEvent", Ie(c.files || [])), e.emit("uploadDoneEvent", Ie(c.files || []));
2711
2717
  } else if (c.type === "cancelled" || c.type === "removed" || c.type === "error") {
2712
- const v = r.value.filter((D) => c.files && c.files.findIndex((S) => D.id === S.id) < 0);
2718
+ const v = r.value.filter((T) => c.files && c.files.findIndex((S) => T.id === S.id) < 0);
2713
2719
  r.value = [...v], he(c);
2714
2720
  } else c.type === "rejected" && typeof c.file < "u" && he(c);
2715
2721
  };
2716
- return Ne(() => {
2722
+ return Oe(() => {
2717
2723
  }), {
2718
2724
  disabled: i,
2719
2725
  uploadVisible: l,
@@ -2728,24 +2734,24 @@ function mt(t, e, n) {
2728
2734
  previewSelectAllBtnChecked: b,
2729
2735
  uploadEnableMulti: x,
2730
2736
  previewCurrentId: M,
2731
- multiFileRemoveHandler: ee,
2737
+ multiFileRemoveHandler: Z,
2732
2738
  previewMultiSelectChangeHandler: E,
2733
- fileMultiDownloadHandler: G,
2734
- selectOrCancelAllHandler: ie,
2735
- hasColumnHtmlFunc: R,
2736
- showPreviewStateColumn: Q,
2737
- rowSelectedHandler: Y,
2738
- fileDownloadHandler: T,
2739
- filePreviewHandler: B,
2740
- fileRemoveHandler: _,
2739
+ fileMultiDownloadHandler: ae,
2740
+ selectOrCancelAllHandler: re,
2741
+ hasColumnHtmlFunc: V,
2742
+ showPreviewStateColumn: ne,
2743
+ rowSelectedHandler: B,
2744
+ fileDownloadHandler: H,
2745
+ filePreviewHandler: Y,
2746
+ fileRemoveHandler: L,
2741
2747
  handleStateChange: ge
2742
2748
  };
2743
2749
  }
2744
- class ja {
2750
+ class $a {
2745
2751
  constructor(e, n) {
2746
2752
  // 记录在上传的附件数组
2747
- z(this, "queue");
2748
- z(this, "uploadOpts", {
2753
+ U(this, "queue");
2754
+ U(this, "uploadOpts", {
2749
2755
  // 默认不限制,0代表不限制 Number.POSITIVE_INFINITY
2750
2756
  allowedContentTypes: ["*"],
2751
2757
  maxUploads: 0,
@@ -2757,10 +2763,10 @@ class ja {
2757
2763
  /**
2758
2764
  * 服务器端扩展
2759
2765
  */
2760
- z(this, "extendServerConfig", null);
2761
- z(this, "uploadServerSer");
2762
- z(this, "uploadContext", null);
2763
- this.stateChangeRecord = e, this.serverToken = n, this.queue = [], this.uploadServerSer = pt.getServerAPI(this.serverToken);
2766
+ U(this, "extendServerConfig", null);
2767
+ U(this, "uploadServerSer");
2768
+ U(this, "uploadContext", null);
2769
+ this.stateChangeRecord = e, this.serverToken = n, this.queue = [], this.uploadServerSer = mt.getServerAPI(this.serverToken);
2764
2770
  }
2765
2771
  setUploadContext(e) {
2766
2772
  this.uploadContext = e;
@@ -2775,7 +2781,7 @@ class ja {
2775
2781
  this.queue = this.queue.filter(
2776
2782
  (r) => {
2777
2783
  var i;
2778
- return ((i = r.progress) == null ? void 0 : i.status) !== X.Remove;
2784
+ return ((i = r.progress) == null ? void 0 : i.status) !== Q.Remove;
2779
2785
  }
2780
2786
  ), e.hasOwnProperty("message") || (e.message = "被删除"), this.stateChangeRecord.value = e;
2781
2787
  break;
@@ -2835,7 +2841,7 @@ class ja {
2835
2841
  */
2836
2842
  rejectedReason(e, n, a) {
2837
2843
  let r = !1, i = "";
2838
- return this.queue.findIndex((o) => o.name === e) > -1 ? i = "上传失败:已存在同名文件" : this.uploadOpts.allowedContentTypes && !Na(this.uploadOpts.allowedContentTypes, e) ? i = `上传失败:只允许上传${this.uploadOpts.allowedContentTypes.join(",")}类型的文档` : this.exceedMaxUpload(n) ? i = `上传失败:文件总个数超出${this.uploadOpts.maxUploads}限制` : Fa(this.uploadOpts.maxFileSize, a) ? a === 0 ? i = "上传失败:不允许文件为空" : r = !0 : i = `上传失败:单个文件大小超出${this.uploadOpts.maxFileSize}MB的限制`, {
2844
+ return this.queue.findIndex((o) => o.name === e) > -1 ? i = "上传失败:已存在同名文件" : this.uploadOpts.allowedContentTypes && !Ha(this.uploadOpts.allowedContentTypes, e) ? i = `上传失败:只允许上传${this.uploadOpts.allowedContentTypes.join(",")}类型的文档` : this.exceedMaxUpload(n) ? i = `上传失败:文件总个数超出${this.uploadOpts.maxUploads}限制` : Na(this.uploadOpts.maxFileSize, a) ? a === 0 ? i = "上传失败:不允许文件为空" : r = !0 : i = `上传失败:单个文件大小超出${this.uploadOpts.maxFileSize}MB的限制`, {
2839
2845
  allowed: r,
2840
2846
  message: i
2841
2847
  };
@@ -2878,7 +2884,7 @@ class ja {
2878
2884
  );
2879
2885
  if (i !== -1 && this.queue[i] && this.queue[i].progress) {
2880
2886
  const { progress: o } = this.queue[i];
2881
- o && (o.status = X.Remove);
2887
+ o && (o.status = Q.Remove);
2882
2888
  }
2883
2889
  this.serverMethod({ files: [e.file], event: e });
2884
2890
  break;
@@ -2886,7 +2892,7 @@ class ja {
2886
2892
  const l = this.queue.filter(
2887
2893
  (o) => {
2888
2894
  var f;
2889
- return ((f = o == null ? void 0 : o.progress) == null ? void 0 : f.status) === X.Queue;
2895
+ return ((f = o == null ? void 0 : o.progress) == null ? void 0 : f.status) === Q.Queue;
2890
2896
  }
2891
2897
  );
2892
2898
  l.length && ((a = this.uploadContext) == null || a.emit("stateChange", {
@@ -2896,10 +2902,10 @@ class ja {
2896
2902
  }), this.queue = this.queue.filter(
2897
2903
  (o) => {
2898
2904
  var f;
2899
- return ((f = o == null ? void 0 : o.progress) == null ? void 0 : f.status) !== X.Queue;
2905
+ return ((f = o == null ? void 0 : o.progress) == null ? void 0 : f.status) !== Q.Queue;
2900
2906
  }
2901
2907
  )), this.queue.length && (e.type = "remove", this.queue.forEach((o) => {
2902
- o.progress && (o.progress.status = X.Remove);
2908
+ o.progress && (o.progress.status = Q.Remove);
2903
2909
  }), this.serverMethod({ files: this.queue, event: e }));
2904
2910
  break;
2905
2911
  }
@@ -2967,25 +2973,25 @@ class ja {
2967
2973
  this.reset();
2968
2974
  }
2969
2975
  }
2970
- const De = /* @__PURE__ */ re({
2976
+ const De = /* @__PURE__ */ te({
2971
2977
  name: "FUploader",
2972
2978
  components: {
2973
- "f-upload-progress": Pt,
2979
+ "f-upload-progress": Ft,
2974
2980
  "f-preview-checkbox": Ge,
2975
- "f-file-select": Je
2981
+ "f-file-select": Ze
2976
2982
  },
2977
- props: He,
2983
+ props: Ae,
2978
2984
  emits: ["filePreviewEvent", "fileDownloadEvent", "previewMultiSelectedEvent", "selectedEvent", "fileRemoveEvent", "fileRemovedEvent", "fUploadDoneEvent", "uploadDoneEvent"],
2979
2985
  setup(t, e) {
2980
- const n = N(), a = new ja(n, t.uploadServerToken);
2981
- ne(n, (p) => {
2982
- switch (ie(p), p.type) {
2986
+ const n = N(), a = new $a(n, t.uploadServerToken);
2987
+ K(n, (p) => {
2988
+ switch (re(p), p.type) {
2983
2989
  case "removed":
2984
2990
  e.emit("fileRemovedEvent", p.files[0]);
2985
2991
  break;
2986
2992
  }
2987
- }), Dt("uploaderService", a);
2988
- const r = N(t.customInfo), i = dt(t.uploadOptions, {
2993
+ }), Mt("uploaderService", a);
2994
+ const r = N(t.customInfo), i = ft(t.uploadOptions, {
2989
2995
  // 允许上传的文件类型
2990
2996
  allowedContentTypes: ["*"],
2991
2997
  // 默认不限制附件上传个数
@@ -3007,26 +3013,26 @@ const De = /* @__PURE__ */ re({
3007
3013
  uploadEnableMulti: A,
3008
3014
  previewCurrentId: M,
3009
3015
  multiFileRemoveHandler: O,
3010
- previewMultiSelectChangeHandler: H,
3011
- fileMultiDownloadHandler: T,
3012
- selectOrCancelAllHandler: B,
3013
- rowSelectedHandler: _,
3014
- hasColumnHtmlFunc: R,
3015
- showPreviewStateColumn: Q,
3016
- fileDownloadHandler: V,
3017
- filePreviewHandler: G,
3018
- fileRemoveHandler: ee,
3019
- handleStateChange: ie
3020
- } = mt(t, e, l), Y = $(() => g.value.length > 0);
3016
+ previewMultiSelectChangeHandler: D,
3017
+ fileMultiDownloadHandler: H,
3018
+ selectOrCancelAllHandler: Y,
3019
+ rowSelectedHandler: L,
3020
+ hasColumnHtmlFunc: V,
3021
+ showPreviewStateColumn: ne,
3022
+ fileDownloadHandler: le,
3023
+ filePreviewHandler: ae,
3024
+ fileRemoveHandler: Z,
3025
+ handleStateChange: re
3026
+ } = ht(t, e, l), B = W(() => g.value.length > 0);
3021
3027
  function E() {
3022
3028
  var p;
3023
- return ut((i == null ? void 0 : i.allowedContentTypes) || []) ? s("li", null, [s("span", null, [C("支持类型:")]), s("span", {
3029
+ return ct((i == null ? void 0 : i.allowedContentTypes) || []) ? s("li", null, [s("span", null, [C("支持类型:")]), s("span", {
3024
3030
  class: "support-info--item-detail",
3025
3031
  style: "margin-right:4px;"
3026
3032
  }, [(p = i.allowedContentTypes) == null ? void 0 : p.join(""), C(",")])]) : "";
3027
3033
  }
3028
- function q() {
3029
- return ct((i == null ? void 0 : i.maxFileSize) || "") ? s("li", null, [s("span", null, [C("单个文件限制:")]), s("span", {
3034
+ function j() {
3035
+ return dt((i == null ? void 0 : i.maxFileSize) || "") ? s("li", null, [s("span", null, [C("单个文件限制:")]), s("span", {
3030
3036
  class: "support-info--item-detail"
3031
3037
  }, [i.maxFileSize, C(",   ")])]) : "";
3032
3038
  }
@@ -3035,7 +3041,7 @@ const De = /* @__PURE__ */ re({
3035
3041
  class: "support-info--item-detail"
3036
3042
  }, [i.maxUploads, C("个")])]);
3037
3043
  }
3038
- function W() {
3044
+ function _() {
3039
3045
  return f.value && !u.value && !o.value ? s("div", {
3040
3046
  class: "ffileupload--support-info"
3041
3047
  }, [r.value ? s("ul", {
@@ -3045,10 +3051,10 @@ const De = /* @__PURE__ */ re({
3045
3051
  innerHTML: r.value
3046
3052
  }, null)])]) : s("ul", {
3047
3053
  class: "support-info--wrapper"
3048
- }, [E(), q(), ue()])]) : null;
3054
+ }, [E(), j(), ue()])]) : null;
3049
3055
  }
3050
- function Te(p) {
3051
- var w, F, U;
3056
+ function Me(p) {
3057
+ var w, F, q;
3052
3058
  return s("div", {
3053
3059
  class: "uploadAndpreview--title-container"
3054
3060
  }, [s("div", {
@@ -3060,7 +3066,7 @@ const De = /* @__PURE__ */ re({
3060
3066
  }, [s("a", {
3061
3067
  class: "item-content--title",
3062
3068
  title: (F = p.file) == null ? void 0 : F.name
3063
- }, [((U = p.file) == null ? void 0 : U.name) || "无名称"]), s(K("f-upload-progress"), {
3069
+ }, [((q = p.file) == null ? void 0 : q.name) || "无名称"]), s(G("f-upload-progress"), {
3064
3070
  status: p.type === "done" ? "success" : "active",
3065
3071
  percent: Qe(p),
3066
3072
  maxWidth: 300
@@ -3078,13 +3084,13 @@ const De = /* @__PURE__ */ re({
3078
3084
  }, [s("a", {
3079
3085
  class: ["item-content--title", "previewButtonDisable.value?'no-preview':''"],
3080
3086
  title: p.name,
3081
- onClick: (w) => G(w, p)
3087
+ onClick: (w) => ae(w, p)
3082
3088
  }, [p.name])])]);
3083
3089
  }
3084
3090
  function ge(p, w, F) {
3085
3091
  return s("div", {
3086
3092
  class: "uploadAndpreview--filesize-container"
3087
- }, [p === "preview" && F ? s("span", null, [Pa(F.size)]) : null, p === "upload" && w ? s("span", null, [Qe(w)]) : null]);
3093
+ }, [p === "preview" && F ? s("span", null, [Fa(F.size)]) : null, p === "upload" && w ? s("span", null, [Qe(w)]) : null]);
3088
3094
  }
3089
3095
  function c(p, w) {
3090
3096
  return w && w.type == "error" ? s("div", {
@@ -3115,73 +3121,73 @@ const De = /* @__PURE__ */ re({
3115
3121
  }, [d.value ? "" : s("button", {
3116
3122
  class: "btn preview-btn",
3117
3123
  title: "下载",
3118
- onClick: (w) => V(w, p)
3124
+ onClick: (w) => le(w, p)
3119
3125
  }, [s("span", {
3120
3126
  class: "f-icon f-icon-enclosure_download"
3121
3127
  }, null)]), t.previewButtonDisable ? "" : s("button", {
3122
3128
  class: "btn preview-btn",
3123
3129
  title: "预览",
3124
- onClick: (w) => G(w, p)
3130
+ onClick: (w) => ae(w, p)
3125
3131
  }, [s("span", {
3126
3132
  class: "f-icon f-icon-enclosure_browse"
3127
3133
  }, null)]), t.deleteButtonDisable ? "" : s("button", {
3128
3134
  class: "btn preview-btn",
3129
3135
  title: "删除",
3130
- onClick: (w) => ee(w, p, a)
3136
+ onClick: (w) => Z(w, p, a)
3131
3137
  }, [s("span", {
3132
3138
  class: "f-icon f-icon-enclosure_delete",
3133
3139
  style: "top: -1px"
3134
3140
  }, null)])]);
3135
3141
  }
3136
- function D(p) {
3142
+ function T(p) {
3137
3143
  return s("div", {
3138
3144
  class: "uploadAndpreview--date-container"
3139
3145
  }, [p.createTime || ""]);
3140
3146
  }
3141
- function S(p, w, F, U) {
3142
- let j;
3143
- if (p = p || "preview", U.formatter)
3144
- return j = U.formatter(F[U.field] || "", p, p == "preview" ? F : w, U), j;
3147
+ function S(p, w, F, q) {
3148
+ let R;
3149
+ if (p = p || "preview", q.formatter)
3150
+ return R = q.formatter(F[q.field] || "", p, p == "preview" ? F : w, q), R;
3145
3151
  if (p === "preview" && F)
3146
- switch (U.field) {
3152
+ switch (q.field) {
3147
3153
  case "state":
3148
- j = c("preview", null);
3154
+ R = c("preview", null);
3149
3155
  break;
3150
3156
  case "name":
3151
- j = he(F);
3157
+ R = he(F);
3152
3158
  break;
3153
3159
  case "action":
3154
- j = v(F);
3160
+ R = v(F);
3155
3161
  break;
3156
3162
  case "size":
3157
- j = ge(p, w, F);
3163
+ R = ge(p, w, F);
3158
3164
  break;
3159
3165
  case "createTime":
3160
- j = D(F);
3166
+ R = T(F);
3161
3167
  break;
3162
3168
  default:
3163
- j = `<div>${F[U.field] || ""} </div>`;
3169
+ R = `<div>${F[q.field] || ""} </div>`;
3164
3170
  }
3165
3171
  if (p === "upload" && w)
3166
- switch (U.field) {
3172
+ switch (q.field) {
3167
3173
  case "state":
3168
- j = c("upload", w);
3174
+ R = c("upload", w);
3169
3175
  break;
3170
3176
  case "name":
3171
- j = Te(w);
3177
+ R = Me(w);
3172
3178
  break;
3173
3179
  case "size":
3174
- j = ge(p, w, F);
3180
+ R = ge(p, w, F);
3175
3181
  break;
3176
3182
  default:
3177
- j = "";
3183
+ R = "";
3178
3184
  }
3179
- return j;
3185
+ return R;
3180
3186
  }
3181
- function L() {
3187
+ function $() {
3182
3188
  return f.value ? s("div", {
3183
3189
  class: "header--left-container"
3184
- }, [s(K("f-file-select"), {
3190
+ }, [s(G("f-file-select"), {
3185
3191
  ref: l,
3186
3192
  disabled: u.value,
3187
3193
  selectText: t.selectText,
@@ -3190,27 +3196,27 @@ const De = /* @__PURE__ */ re({
3190
3196
  enableMulti: A.value,
3191
3197
  options: t.uploadOptions,
3192
3198
  extendConfig: t.extendConfig,
3193
- onStateChange: (p) => ie(p)
3199
+ onStateChange: (p) => re(p)
3194
3200
  }, null)]) : null;
3195
3201
  }
3196
- function J() {
3197
- return !f.value && h.value && Y.value ? s("div", {
3202
+ function I() {
3203
+ return !f.value && h.value && B.value ? s("div", {
3198
3204
  class: "header--left-container header--countInfo"
3199
3205
  }, [s("p", {
3200
3206
  class: "m-0"
3201
3207
  }, [C("共"), s("span", {
3202
3208
  class: "count"
3203
- }, [x.value.length + g.value.length]), C("个附件"), y.value > 0 ? s(oe, null, [C("(已选"), s("span", {
3209
+ }, [x.value.length + g.value.length]), C("个附件"), y.value > 0 ? s(se, null, [C("(已选"), s("span", {
3204
3210
  class: "count-selected"
3205
3211
  }, [y.value]), C("个)")]) : ""])]) : null;
3206
3212
  }
3207
3213
  function ve() {
3208
- return (!d.value || !t.deleteButtonDisable) && h.value && Y.value ? s("div", {
3214
+ return (!d.value || !t.deleteButtonDisable) && h.value && B.value ? s("div", {
3209
3215
  class: "header--right-container"
3210
3216
  }, [d.value ? null : s("button", {
3211
3217
  class: "btn btn-primary f-btn-ml",
3212
3218
  disabled: y.value === 0,
3213
- onClick: (F) => T(F)
3219
+ onClick: (F) => H(F)
3214
3220
  }, [C("下载")]), t.deleteButtonDisable.value ? null : s("button", {
3215
3221
  class: "btn btn-secondary f-btn-ml",
3216
3222
  disabled: y.value === 0,
@@ -3218,78 +3224,78 @@ const De = /* @__PURE__ */ re({
3218
3224
  }, [C("删除")])]) : null;
3219
3225
  }
3220
3226
  function Be() {
3221
- return m.value.map((p) => Q(p) ? s("th", {
3227
+ return m.value.map((p) => ne(p) ? s("th", {
3222
3228
  style: {
3223
3229
  width: p.width ? p.width + "px" : "auto"
3224
3230
  },
3225
3231
  class: [!o.value && p.checkbox && p.checkbox ? "td--hascheckbox" : ""]
3226
- }, [!o.value && b.value && p.checkbox ? s(K("f-preview-checkbox"), {
3232
+ }, [!o.value && b.value && p.checkbox ? s(G("f-preview-checkbox"), {
3227
3233
  class: "preview-checkbox",
3228
3234
  id: "previewMultiBtn",
3229
3235
  checked: k.value,
3230
- onCheckedChange: (w) => B(w)
3236
+ onCheckedChange: (w) => Y(w)
3231
3237
  }, null) : null, p.title]) : null);
3232
3238
  }
3233
- function ht() {
3239
+ function gt() {
3234
3240
  return x.value.map((p) => {
3235
3241
  var w;
3236
3242
  return s("tr", {
3237
3243
  class: "uploadAndpreview--upload-item",
3238
3244
  id: "uploadAndpreview--upload-item" + (((w = p == null ? void 0 : p.file) == null ? void 0 : w.id) || "")
3239
3245
  }, [m.value.map((F) => {
3240
- var U;
3246
+ var q;
3241
3247
  return s("td", {
3242
3248
  class: [!o.value && F.checkbox && F.checkbox ? "td--hascheckbox" : ""]
3243
- }, [b.value && F.checkbox ? s(K("f-preview-checkbox"), {
3244
- id: (U = p == null ? void 0 : p.file) == null ? void 0 : U.id,
3249
+ }, [b.value && F.checkbox ? s(G("f-preview-checkbox"), {
3250
+ id: (q = p == null ? void 0 : p.file) == null ? void 0 : q.id,
3245
3251
  checked: p.checked,
3246
3252
  disabled: p.type !== "done",
3247
3253
  class: "preview-checkbox",
3248
- onCheckedChange: (j) => H(j)
3249
- }, null) : null, R(F, "upload") ? S("upload", p, null, F) : null]);
3254
+ onCheckedChange: (R) => D(R)
3255
+ }, null) : null, V(F, "upload") ? S("upload", p, null, F) : null]);
3250
3256
  })]);
3251
3257
  });
3252
3258
  }
3253
- function Re() {
3259
+ function _e() {
3254
3260
  return g.value.map((p) => s("tr", {
3255
3261
  class: ["uploadAndpreview--preview-item", M.value === p.id ? "uploadAndpreview--currentfile" : ""],
3256
3262
  id: "uploadAndpreview--preview-item" + p.id,
3257
- onClick: (w) => _(w, p)
3258
- }, [m.value.map((w) => Q(w) ? s("td", {
3263
+ onClick: (w) => L(w, p)
3264
+ }, [m.value.map((w) => ne(w) ? s("td", {
3259
3265
  class: [!o.value && w.checkbox && w.checkbox ? "td--hascheckbox" : ""]
3260
- }, [!o.value && b.value && w.checkbox ? s(K("f-preview-checkbox"), {
3266
+ }, [!o.value && b.value && w.checkbox ? s(G("f-preview-checkbox"), {
3261
3267
  id: p.id,
3262
3268
  checked: p.checked,
3263
3269
  class: "preview-checkbox",
3264
- onCheckedChange: (F) => H(F)
3265
- }, null) : null, R(w, "preview") ? S("preview", null, p, w) : s("div", {
3270
+ onCheckedChange: (F) => D(F)
3271
+ }, null) : null, V(w, "preview") ? S("preview", null, p, w) : s("div", {
3266
3272
  class: "text-truncate",
3267
3273
  innerHTML: S("preview", null, p, w)
3268
3274
  }, null)]) : null)]));
3269
3275
  }
3270
3276
  return () => o.value ? s("div", {
3271
3277
  class: "fv-upload-and-preview"
3272
- }, [Y.value ? null : W(), h.value ? s("div", {
3278
+ }, [B.value ? null : _(), h.value ? s("div", {
3273
3279
  class: "uploadAndpreview--content"
3274
- }, [Y.value ? s("table", {
3280
+ }, [B.value ? s("table", {
3275
3281
  class: "table table-bordered uploadAndpreview--table"
3276
- }, [s("thead", null, [Be()]), s("tbody", null, [Re()])]) : s("p", {
3282
+ }, [s("thead", null, [Be()]), s("tbody", null, [_e()])]) : s("p", {
3277
3283
  class: "uploadAndpreview--nodata"
3278
- }, [C("无附件信息")])]) : null, Y.value ? W() : null]) : s("div", {
3284
+ }, [C("无附件信息")])]) : null, B.value ? _() : null]) : s("div", {
3279
3285
  class: "fv-upload-and-preview"
3280
3286
  }, [s("div", {
3281
3287
  class: "uploadAndpreview--header"
3282
- }, [L(), J(), ve()]), Y.value ? null : W(), h.value || f.value ? s("div", {
3288
+ }, [$(), I(), ve()]), B.value ? null : _(), h.value || f.value ? s("div", {
3283
3289
  class: "uploadAndpreview--content"
3284
- }, [(d.value || !f.value) && x.value.length === 0 && !Y.value ? s("p", {
3290
+ }, [(d.value || !f.value) && x.value.length === 0 && !B.value ? s("p", {
3285
3291
  class: "uploadAndpreview--nodata"
3286
- }, [C("无附件信息")]) : "", x.value.length > 0 || Y ? s("table", {
3292
+ }, [C("无附件信息")]) : "", x.value.length > 0 || B ? s("table", {
3287
3293
  class: "table table-bordered uploadAndpreview--table"
3288
- }, [s("thead", null, [Be()]), s("tbody", null, [ht(), Re()])]) : null]) : null, Y.value ? W() : null]);
3294
+ }, [s("thead", null, [Be()]), s("tbody", null, [gt(), _e()])]) : null]) : null, B.value ? _() : null]);
3289
3295
  }
3290
3296
  });
3291
- function $a(t, e, n) {
3292
- var H;
3297
+ function Ua(t, e, n) {
3298
+ var O;
3293
3299
  function a() {
3294
3300
  }
3295
3301
  const r = "", i = "", l = N();
@@ -3305,19 +3311,19 @@ function $a(t, e, n) {
3305
3311
  function d() {
3306
3312
  return (e == null ? void 0 : e.schema.componentType) === "frame";
3307
3313
  }
3308
- function h(T) {
3309
- if (!T || !T.value)
3314
+ function h(D) {
3315
+ if (!D || !D.value)
3310
3316
  return null;
3311
- if (T.value.schema && T.value.schema.type === "component")
3312
- return T.value;
3313
- const B = N(T == null ? void 0 : T.value.parent), _ = h(B);
3314
- return _ || null;
3317
+ if (D.value.schema && D.value.schema.type === "component")
3318
+ return D.value;
3319
+ const H = N(D == null ? void 0 : D.value.parent), Y = h(H);
3320
+ return Y || null;
3315
3321
  }
3316
- function m(T = e) {
3317
- const { componentInstance: B, designerItemElementRef: _ } = T;
3318
- return !B || !B.value ? null : B.value.canMove ? _ : m(T.parent);
3322
+ function m(D = e) {
3323
+ const { componentInstance: H, designerItemElementRef: Y } = D;
3324
+ return !H || !H.value ? null : H.value.canMove ? Y : m(D.parent);
3319
3325
  }
3320
- function x(T) {
3326
+ function x(D) {
3321
3327
  return !!n;
3322
3328
  }
3323
3329
  function g() {
@@ -3325,24 +3331,17 @@ function $a(t, e, n) {
3325
3331
  }
3326
3332
  function b() {
3327
3333
  }
3328
- function y(T, B) {
3329
- }
3330
- function k(T, B) {
3331
- const { componentType: _ } = T;
3332
- let R = Pe(_, T, B);
3333
- const Q = _.toLowerCase().replace("-", "_");
3334
- return R && !R.id && R.type === _ && (R.id = `${Q}_${Math.random().toString().slice(2, 6)}`), R;
3334
+ function y(D, H) {
3335
3335
  }
3336
- function A(T, B) {
3337
- const _ = String(T.getAttribute("data-controltype")), R = T.getAttribute("data-feature"), Q = R ? JSON.parse(R) : {};
3338
- Q.parentComponentInstance = l.value;
3339
- let V = Pe(_, Q);
3340
- const G = _.toLowerCase().replace("-", "_");
3341
- return V && !V.id && V.type === _ && (V.id = `${G}_${Math.random().toString().slice(2, 6)}`), V;
3336
+ function k(D, H) {
3337
+ const { componentType: Y } = D;
3338
+ let L = et(Y, D, H);
3339
+ const V = Y.toLowerCase().replace("-", "_");
3340
+ return L && !L.id && L.type === Y && (L.id = `${V}_${Math.random().toString().slice(2, 6)}`), L;
3342
3341
  }
3343
- function M(T) {
3342
+ function A(D) {
3344
3343
  }
3345
- function O(...T) {
3344
+ function M(...D) {
3346
3345
  }
3347
3346
  return l.value = {
3348
3347
  canMove: o(),
@@ -3351,7 +3350,7 @@ function $a(t, e, n) {
3351
3350
  canNested: !d(),
3352
3351
  contents: e == null ? void 0 : e.schema.contents,
3353
3352
  elementRef: t,
3354
- parent: (H = e == null ? void 0 : e.parent) == null ? void 0 : H.componentInstance,
3353
+ parent: (O = e == null ? void 0 : e.parent) == null ? void 0 : O.componentInstance,
3355
3354
  schema: e == null ? void 0 : e.schema,
3356
3355
  styles: r,
3357
3356
  designerClass: i,
@@ -3359,27 +3358,26 @@ function $a(t, e, n) {
3359
3358
  getBelongedComponentInstance: h,
3360
3359
  getDraggableDesignItemElement: m,
3361
3360
  getDraggingDisplayText: g,
3362
- getPropConfig: O,
3361
+ getPropConfig: M,
3363
3362
  getDragScopeElement: b,
3364
3363
  onAcceptMovedChildElement: y,
3365
- onAcceptNewChildElement: A,
3366
- onChildElementMovedOut: M,
3364
+ onChildElementMovedOut: A,
3367
3365
  addNewChildComponentSchema: k,
3368
3366
  updateDragAndDropRules: a,
3369
3367
  triggerBelongedComponentToMoveWhenMoved: N(!1),
3370
3368
  triggerBelongedComponentToDeleteWhenDeleted: N(!1)
3371
3369
  }, l;
3372
3370
  }
3373
- const qa = /* @__PURE__ */ re({
3371
+ const La = /* @__PURE__ */ te({
3374
3372
  name: "FUploaderDesign",
3375
3373
  components: {
3376
3374
  "f-preview-checkbox": Ge,
3377
- "f-file-select": Je
3375
+ "f-file-select": Ze
3378
3376
  },
3379
- props: He,
3377
+ props: Ae,
3380
3378
  emits: ["filePreviewEvent", "fileDownloadEvent", "previewMultiSelectedEvent", "selectedEvent", "fileRemoveEvent", "fUploadDoneEvent", "uploadDoneEvent"],
3381
3379
  setup(t, e) {
3382
- const n = N(t.customInfo), a = dt(t.uploadOptions, {
3380
+ const n = N(t.customInfo), a = ft(t.uploadOptions, {
3383
3381
  // 允许上传的文件类型
3384
3382
  allowedContentTypes: ["*"],
3385
3383
  // 默认不限制附件上传个数
@@ -3402,16 +3400,16 @@ const qa = /* @__PURE__ */ re({
3402
3400
  previewEnableMulti: m,
3403
3401
  previewCurrentId: x,
3404
3402
  showPreviewStateColumn: g
3405
- } = mt(t, e, r);
3403
+ } = ht(t, e, r);
3406
3404
  function b() {
3407
3405
  var E;
3408
- return ut((a == null ? void 0 : a.allowedContentTypes) || []) ? s("li", null, [s("span", null, [C("支持类型:")]), s("span", {
3406
+ return ct((a == null ? void 0 : a.allowedContentTypes) || []) ? s("li", null, [s("span", null, [C("支持类型:")]), s("span", {
3409
3407
  class: "support-info--item-detail",
3410
3408
  style: "margin-right:4px;"
3411
3409
  }, [(E = a.allowedContentTypes) == null ? void 0 : E.join(""), C(",")])]) : null;
3412
3410
  }
3413
3411
  function y() {
3414
- return ct((a == null ? void 0 : a.maxFileSize) || "") ? s("li", null, [s("span", null, [C("单个文件限制:")]), s("span", {
3412
+ return dt((a == null ? void 0 : a.maxFileSize) || "") ? s("li", null, [s("span", null, [C("单个文件限制:")]), s("span", {
3415
3413
  class: "support-info--item-detail"
3416
3414
  }, [a.maxFileSize, C(",   ")])]) : null;
3417
3415
  }
@@ -3452,7 +3450,7 @@ const qa = /* @__PURE__ */ re({
3452
3450
  class: "ffilepreview--preview-block"
3453
3451
  }, null)]);
3454
3452
  }
3455
- function H() {
3453
+ function D() {
3456
3454
  return s("div", {
3457
3455
  class: "uploadAndpreview--state-container"
3458
3456
  }, [s("p", {
@@ -3461,7 +3459,7 @@ const qa = /* @__PURE__ */ re({
3461
3459
  class: "f-icon f-icon-success text-success"
3462
3460
  }, null), s("span", null, [C("已上传")])])]);
3463
3461
  }
3464
- function T(E) {
3462
+ function H(E) {
3465
3463
  return s("div", {
3466
3464
  class: "uploadAndpreview--action-container"
3467
3465
  }, [u.value ? "" : s("button", {
@@ -3482,49 +3480,49 @@ const qa = /* @__PURE__ */ re({
3482
3480
  style: "top: -1px"
3483
3481
  }, null)])]);
3484
3482
  }
3485
- function B(E) {
3483
+ function Y(E) {
3486
3484
  return s("div", {
3487
3485
  class: "uploadAndpreview--date-container"
3488
3486
  }, [C(" "), s("span", {
3489
3487
  class: "ffilepreview--preview-block"
3490
3488
  }, null)]);
3491
3489
  }
3492
- function _(E, q, ue) {
3493
- let W = null;
3494
- if (E = E || "preview", E === "preview" && q)
3490
+ function L(E, j, ue) {
3491
+ let _ = null;
3492
+ if (E = E || "preview", E === "preview" && j)
3495
3493
  switch (ue.field) {
3496
3494
  case "state":
3497
- W = H();
3495
+ _ = D();
3498
3496
  break;
3499
3497
  case "name":
3500
- W = M();
3498
+ _ = M();
3501
3499
  break;
3502
3500
  case "action":
3503
- W = T();
3501
+ _ = H();
3504
3502
  break;
3505
3503
  case "size":
3506
- W = O();
3504
+ _ = O();
3507
3505
  break;
3508
3506
  case "createTime":
3509
- W = B();
3507
+ _ = Y();
3510
3508
  break;
3511
3509
  default:
3512
- W = s("span", {
3510
+ _ = s("span", {
3513
3511
  class: "ffilepreview--preview-block"
3514
3512
  }, null);
3515
3513
  }
3516
- return W;
3514
+ return _;
3517
3515
  }
3518
- function R() {
3516
+ function V() {
3519
3517
  return o.value ? s("div", {
3520
3518
  class: "header--left-container"
3521
- }, [s(K("f-file-select"), {
3519
+ }, [s(G("f-file-select"), {
3522
3520
  ref: r,
3523
3521
  disabled: f.value,
3524
3522
  selectText: t.selectText
3525
3523
  }, null)]) : null;
3526
3524
  }
3527
- function Q() {
3525
+ function ne() {
3528
3526
  return (!u.value || !t.deleteButtonDisable) && d.value ? s("div", {
3529
3527
  class: "header--right-container"
3530
3528
  }, [u.value ? null : s("button", {
@@ -3535,55 +3533,55 @@ const qa = /* @__PURE__ */ re({
3535
3533
  disabled: !0
3536
3534
  }, [C("删除")])]) : null;
3537
3535
  }
3538
- function V() {
3536
+ function le() {
3539
3537
  return h.value.map((E) => g(E) ? s("th", {
3540
3538
  style: {
3541
3539
  width: E.width ? E.width + "px" : "auto"
3542
3540
  },
3543
3541
  class: [!l.value && E.checkbox && E.checkbox ? "td--hascheckbox" : ""]
3544
- }, [!l.value && m.value && E.checkbox ? s(K("f-preview-checkbox"), {
3542
+ }, [!l.value && m.value && E.checkbox ? s(G("f-preview-checkbox"), {
3545
3543
  class: "preview-checkbox",
3546
3544
  id: "previewMultiBtn"
3547
3545
  }, null) : null, E.title]) : null);
3548
3546
  }
3549
- function G() {
3547
+ function ae() {
3550
3548
  return i.map((E) => s("tr", {
3551
3549
  class: ["uploadAndpreview--preview-item", x.value === E.id ? "uploadAndpreview--currentfile" : ""],
3552
3550
  id: "uploadAndpreview--preview-item" + E.id
3553
- }, [h.value.map((q) => g(q) ? s("td", {
3554
- class: [!l.value && q.checkbox && q.checkbox ? "td--hascheckbox" : ""]
3555
- }, [!l.value && m.value && q.checkbox ? s(K("f-preview-checkbox"), {
3551
+ }, [h.value.map((j) => g(j) ? s("td", {
3552
+ class: [!l.value && j.checkbox && j.checkbox ? "td--hascheckbox" : ""]
3553
+ }, [!l.value && m.value && j.checkbox ? s(G("f-preview-checkbox"), {
3556
3554
  class: "preview-checkbox"
3557
- }, null) : null, _("preview", E, q)]) : null)]));
3555
+ }, null) : null, L("preview", E, j)]) : null)]));
3558
3556
  }
3559
- Mt(() => {
3557
+ St(() => {
3560
3558
  });
3561
- const ee = N(), ie = le("design-item-context"), Y = $a(ee, ie);
3562
- return Oe(() => {
3563
- ee.value.componentInstance = Y;
3564
- }), e.expose(Y.value), () => s("div", {
3559
+ const Z = N(), re = oe("design-item-context"), B = Ua(Z, re);
3560
+ return Fe(() => {
3561
+ Z.value.componentInstance = B;
3562
+ }), e.expose(B.value), () => s("div", {
3565
3563
  class: "fv-upload-and-preview",
3566
- ref: ee
3567
- }, [d.value || o.value ? s(oe, null, [l.value ? null : s("div", {
3564
+ ref: Z
3565
+ }, [d.value || o.value ? s(se, null, [l.value ? null : s("div", {
3568
3566
  class: "uploadAndpreview--header"
3569
- }, [R(), Q()]), s("div", {
3567
+ }, [V(), ne()]), s("div", {
3570
3568
  class: "uploadAndpreview--content"
3571
3569
  }, [s("table", {
3572
3570
  class: "table table-bordered uploadAndpreview--table"
3573
- }, [s("thead", null, [V()]), s("tbody", null, [G()])])]), A()]) : null]);
3571
+ }, [s("thead", null, [le()]), s("tbody", null, [ae()])])]), A()]) : null]);
3574
3572
  }
3575
3573
  });
3576
3574
  De.register = (t, e, n, a) => {
3577
- t.uploader = De, e.uploader = et;
3575
+ t.uploader = De, e.uploader = tt;
3578
3576
  };
3579
3577
  De.registerDesigner = (t, e, n) => {
3580
- t.uploader = qa, e.uploader = et;
3578
+ t.uploader = La, e.uploader = tt;
3581
3579
  };
3582
- const Va = Sa(De);
3580
+ const Xa = Ca(De);
3583
3581
  export {
3584
3582
  De as FUploader,
3585
- ka as UploadServerAPI,
3586
- Va as default,
3587
- et as propsResolver,
3588
- He as uploaderProps
3583
+ Pa as UploadServerAPI,
3584
+ Xa as default,
3585
+ tt as propsResolver,
3586
+ Ae as uploaderProps
3589
3587
  };