@farris/ui-vue 1.2.8 → 1.3.0

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 (283) hide show
  1. package/components/accordion/index.esm.js +180 -180
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +419 -331
  4. package/components/avatar/index.umd.cjs +1 -0
  5. package/components/border-editor/index.umd.cjs +1 -0
  6. package/components/button/index.umd.cjs +1 -0
  7. package/components/button-edit/index.css +1 -1
  8. package/components/button-edit/index.esm.js +346 -326
  9. package/components/button-edit/index.umd.cjs +1 -0
  10. package/components/button-group/index.umd.cjs +1 -0
  11. package/components/calculator/index.umd.cjs +1 -0
  12. package/components/calendar/index.esm.js +384 -384
  13. package/components/calendar/index.umd.cjs +1 -0
  14. package/components/capsule/index.esm.js +205 -205
  15. package/components/capsule/index.umd.cjs +1 -0
  16. package/components/checkbox/index.esm.js +555 -467
  17. package/components/checkbox/index.umd.cjs +1 -0
  18. package/components/color-picker/index.esm.js +239 -239
  19. package/components/color-picker/index.umd.cjs +3 -0
  20. package/components/combo-list/index.css +1 -0
  21. package/components/combo-list/index.esm.js +1072 -364
  22. package/components/combo-list/index.umd.cjs +1 -0
  23. package/components/combo-tree/index.esm.js +129 -129
  24. package/components/combo-tree/index.umd.cjs +1 -0
  25. package/components/common/index.esm.js +778 -700
  26. package/components/common/index.umd.cjs +1 -0
  27. package/components/component/index.esm.js +582 -327
  28. package/components/component/index.umd.cjs +1 -0
  29. package/components/condition/index.css +1 -0
  30. package/components/condition/index.esm.js +2433 -1134
  31. package/components/condition/index.umd.cjs +1 -0
  32. package/components/content-container/index.esm.js +307 -234
  33. package/components/content-container/index.umd.cjs +1 -0
  34. package/components/data-grid/index.css +1 -1
  35. package/components/data-grid/index.esm.js +6762 -4946
  36. package/components/data-grid/index.umd.cjs +1 -0
  37. package/components/data-view/index.css +1 -0
  38. package/components/data-view/index.esm.js +4977 -3489
  39. package/components/data-view/index.umd.cjs +1 -0
  40. package/components/date-picker/index.css +1 -1
  41. package/components/date-picker/index.esm.js +3525 -2811
  42. package/components/date-picker/index.umd.cjs +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +938 -928
  45. package/components/designer-canvas/index.umd.cjs +1 -0
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +38 -37
  48. package/components/designer-outline/index.umd.cjs +1 -0
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -0
  51. package/components/discussion-editor/index.umd.cjs +3 -0
  52. package/components/discussion-list/index.umd.cjs +1 -0
  53. package/components/drawer/index.umd.cjs +1 -0
  54. package/components/dropdown/index.esm.js +282 -282
  55. package/components/dropdown/index.umd.cjs +2 -0
  56. package/components/dynamic-form/index.css +1 -0
  57. package/components/dynamic-form/index.esm.js +2684 -1039
  58. package/components/dynamic-form/index.umd.cjs +1 -0
  59. package/components/dynamic-resolver/index.esm.js +149 -101
  60. package/components/dynamic-resolver/index.umd.cjs +1 -0
  61. package/components/dynamic-view/index.esm.js +303 -290
  62. package/components/dynamic-view/index.umd.cjs +1 -0
  63. package/components/enum-editor/index.umd.cjs +1 -0
  64. package/components/events-editor/index.esm.js +573 -518
  65. package/components/events-editor/index.umd.cjs +1 -0
  66. package/components/expression-editor/index.esm.js +99 -99
  67. package/components/expression-editor/index.umd.cjs +1 -0
  68. package/components/external-container/index.css +1 -1
  69. package/components/external-container/index.esm.js +3607 -2799
  70. package/components/external-container/index.umd.cjs +1 -0
  71. package/components/field-selector/index.css +1 -1
  72. package/components/field-selector/index.esm.js +5438 -8236
  73. package/components/field-selector/index.umd.cjs +1 -0
  74. package/components/filter-bar/index.css +1 -1
  75. package/components/filter-bar/index.esm.js +1679 -1759
  76. package/components/filter-bar/index.umd.cjs +1 -0
  77. package/components/flow-canvas/index.css +1 -1
  78. package/components/flow-canvas/index.esm.js +1062 -1052
  79. package/components/flow-canvas/index.umd.cjs +1 -0
  80. package/components/image-cropper/index.esm.js +421 -421
  81. package/components/image-cropper/index.umd.cjs +1 -0
  82. package/components/input-group/index.esm.js +677 -593
  83. package/components/input-group/index.umd.cjs +1 -0
  84. package/components/layout/index.esm.js +326 -326
  85. package/components/layout/index.umd.cjs +1 -0
  86. package/components/list-nav/index.esm.js +272 -199
  87. package/components/list-nav/index.umd.cjs +1 -0
  88. package/components/list-view/index.css +1 -1
  89. package/components/list-view/index.esm.js +3739 -2273
  90. package/components/list-view/index.umd.cjs +1 -0
  91. package/components/loading/index.umd.cjs +8 -0
  92. package/components/locale/index.umd.cjs +1 -0
  93. package/components/lookup/index.css +1 -1
  94. package/components/lookup/index.esm.js +11255 -9004
  95. package/components/lookup/index.umd.cjs +1 -0
  96. package/components/mapping-editor/index.css +1 -1
  97. package/components/mapping-editor/index.esm.js +6046 -5314
  98. package/components/mapping-editor/index.umd.cjs +1 -0
  99. package/components/message-box/index.css +1 -1
  100. package/components/message-box/index.esm.js +511 -471
  101. package/components/message-box/index.umd.cjs +1 -0
  102. package/components/modal/index.css +1 -1
  103. package/components/modal/index.esm.js +438 -398
  104. package/components/modal/index.umd.cjs +1 -0
  105. package/components/nav/index.esm.js +588 -444
  106. package/components/nav/index.umd.cjs +3 -0
  107. package/components/notify/index.esm.js +59 -53
  108. package/components/notify/index.umd.cjs +1 -0
  109. package/components/number-range/index.esm.js +568 -485
  110. package/components/number-range/index.umd.cjs +1 -0
  111. package/components/number-spinner/index.esm.js +542 -454
  112. package/components/number-spinner/index.umd.cjs +1 -0
  113. package/components/order/index.css +1 -1
  114. package/components/order/index.esm.js +1967 -1105
  115. package/components/order/index.umd.cjs +1 -0
  116. package/components/page-footer/index.esm.js +160 -160
  117. package/components/page-footer/index.umd.cjs +1 -0
  118. package/components/page-header/index.esm.js +1282 -1151
  119. package/components/page-header/index.umd.cjs +1 -0
  120. package/components/pagination/index.esm.js +705 -555
  121. package/components/pagination/index.umd.cjs +1 -0
  122. package/components/popover/index.esm.js +71 -70
  123. package/components/popover/index.umd.cjs +1 -0
  124. package/components/progress/index.esm.js +270 -270
  125. package/components/progress/index.umd.cjs +3 -0
  126. package/components/property-editor/index.css +1 -1
  127. package/components/property-editor/index.esm.js +2231 -1517
  128. package/components/property-editor/index.umd.cjs +3 -0
  129. package/components/property-panel/index.esm.js +813 -909
  130. package/components/property-panel/index.umd.cjs +1 -0
  131. package/components/query-solution/index.css +1 -1
  132. package/components/query-solution/index.esm.js +3781 -2566
  133. package/components/query-solution/index.umd.cjs +1 -0
  134. package/components/radio-button/index.esm.js +101 -101
  135. package/components/radio-button/index.umd.cjs +1 -0
  136. package/components/radio-group/index.esm.js +538 -450
  137. package/components/radio-group/index.umd.cjs +1 -0
  138. package/components/rate/index.esm.js +238 -233
  139. package/components/rate/index.umd.cjs +1 -0
  140. package/components/response-layout/index.esm.js +155 -155
  141. package/components/response-layout/index.umd.cjs +1 -0
  142. package/components/response-layout-editor/index.css +1 -1
  143. package/components/response-layout-editor/index.esm.js +1243 -1180
  144. package/components/response-layout-editor/index.umd.cjs +1 -0
  145. package/components/response-toolbar/index.esm.js +988 -877
  146. package/components/response-toolbar/index.umd.cjs +1 -0
  147. package/components/schema-selector/index.css +1 -1
  148. package/components/schema-selector/index.esm.js +5413 -4867
  149. package/components/schema-selector/index.umd.cjs +8 -0
  150. package/components/search-box/index.esm.js +199 -199
  151. package/components/search-box/index.umd.cjs +1 -0
  152. package/components/section/index.esm.js +646 -503
  153. package/components/section/index.umd.cjs +1 -0
  154. package/components/smoke-detector/index.esm.js +144 -144
  155. package/components/smoke-detector/index.umd.cjs +1 -0
  156. package/components/spacing-editor/index.umd.cjs +1 -0
  157. package/components/splitter/index.esm.js +464 -391
  158. package/components/splitter/index.umd.cjs +1 -0
  159. package/components/step/index.esm.js +249 -249
  160. package/components/step/index.umd.cjs +1 -0
  161. package/components/switch/index.esm.js +483 -394
  162. package/components/switch/index.umd.cjs +1 -0
  163. package/components/tabs/index.css +1 -1
  164. package/components/tabs/index.esm.js +2366 -2208
  165. package/components/tabs/index.umd.cjs +1 -0
  166. package/components/tags/index.esm.js +397 -399
  167. package/components/tags/index.umd.cjs +1 -0
  168. package/components/text/index.esm.js +394 -394
  169. package/components/text/index.umd.cjs +1 -0
  170. package/components/textarea/index.esm.js +451 -367
  171. package/components/textarea/index.umd.cjs +1 -0
  172. package/components/time-picker/index.css +1 -1
  173. package/components/time-picker/index.esm.js +1252 -1144
  174. package/components/time-picker/index.umd.cjs +1 -0
  175. package/components/tooltip/index.umd.cjs +1 -0
  176. package/components/transfer/index.css +1 -1
  177. package/components/transfer/index.esm.js +510 -499
  178. package/components/transfer/index.umd.cjs +1 -0
  179. package/components/tree-grid/index.css +1 -1
  180. package/components/tree-grid/index.esm.js +5463 -9330
  181. package/components/tree-grid/index.umd.cjs +1 -0
  182. package/components/tree-view/index.css +1 -0
  183. package/components/tree-view/index.esm.js +4058 -2597
  184. package/components/tree-view/index.umd.cjs +1 -0
  185. package/components/uploader/index.esm.js +510 -504
  186. package/components/uploader/index.umd.cjs +2 -0
  187. package/components/verify-detail/index.esm.js +220 -220
  188. package/components/verify-detail/index.umd.cjs +1 -0
  189. package/components/video/index.esm.js +653 -394
  190. package/components/video/index.umd.cjs +1 -0
  191. package/components/weather/index.esm.js +1028 -1028
  192. package/components/weather/index.umd.cjs +16 -0
  193. package/farris.all.esm.js +20407 -18556
  194. package/farris.all.umd.cjs +8 -8
  195. package/index.css +1 -1
  196. package/package.json +1 -1
  197. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  198. package/types/capsule/src/capsule.props.d.ts +2 -2
  199. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  200. package/types/common/entity/entity-schema.d.ts +258 -0
  201. package/types/common/index.d.ts +1 -0
  202. package/types/common/types.d.ts +1 -1
  203. package/types/common/utils/encrypt.d.ts +2 -0
  204. package/types/component/src/component-ref.props.d.ts +4 -0
  205. package/types/component/src/component.props.d.ts +7 -0
  206. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  207. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  208. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  209. package/types/components.d.ts +1 -0
  210. package/types/data-grid/index.d.ts +8 -2
  211. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  212. package/types/data-grid/src/data-grid.component.d.ts +3 -1
  213. package/types/data-grid/src/data-grid.props.d.ts +3 -2
  214. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  215. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  216. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  217. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  218. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  219. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  220. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  221. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  222. package/types/data-view/composition/types.d.ts +36 -7
  223. package/types/data-view/composition/use-edit.d.ts +2 -1
  224. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  225. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  226. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  227. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  228. package/types/designer-canvas/src/types.d.ts +2 -2
  229. package/types/dynamic-form/index.d.ts +2 -1
  230. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  231. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  232. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  233. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  234. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  235. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  236. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  237. package/types/dynamic-form/src/schema/schema-resolver.d.ts +3 -1
  238. package/types/dynamic-form/src/types.d.ts +12 -1
  239. package/types/dynamic-resolver/index.d.ts +1 -0
  240. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  241. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  242. package/types/dynamic-resolver/src/types.d.ts +12 -2
  243. package/types/dynamic-view/index.d.ts +1 -0
  244. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  245. package/types/index.d.ts +2 -0
  246. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  247. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  248. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  249. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  250. package/types/lookup/src/composition/types.d.ts +8 -0
  251. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  252. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  253. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  254. package/types/lookup/src/composition/use-http.d.ts +9 -5
  255. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  256. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  257. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  258. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  259. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  260. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  261. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  262. package/types/modal/src/modal.component.d.ts +3 -0
  263. package/types/modal/src/modal.props.d.ts +4 -0
  264. package/types/page-header/src/page-header.props.d.ts +1 -0
  265. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  266. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  267. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  268. package/types/response-layout-editor/src/type.d.ts +21 -0
  269. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  270. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  271. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  272. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  273. package/types/tabs/src/composition/types.d.ts +2 -2
  274. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  275. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  276. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  277. package/types/tabs/src/tabs.props.d.ts +1 -0
  278. package/types/tags/index.d.ts +36 -5
  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/modal/src/composition/use-esc.d.ts +0 -1
  282. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  283. 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 L = (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 j, 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 z = (t, e, n) => wt(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 yt, onMounted as Oe, onUnmounted as Ne, computed as $, reactive as bt, createApp as xt, Transition as Dt, mergeProps as Tt, provide as Mt, resolveComponent as K, onBeforeMount as St } from "vue";
5
+ import { isPlainObject as Ye, 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,9 +52,9 @@ const St = {
52
52
  * 附件服务器端服务注入的Token
53
53
  */
54
54
  uploadServerToken: { type: String, default: "" }
55
- }, Pt = /* @__PURE__ */ re({
55
+ }, Ft = /* @__PURE__ */ re({
56
56
  name: "FUploadProgress",
57
- props: kt,
57
+ props: Pt,
58
58
  setup(t, e) {
59
59
  const {
60
60
  showInfo: n,
@@ -82,9 +82,9 @@ const St = {
82
82
  class: ["upload-progress-text-icon f-icon", "f-icon-" + a.value]
83
83
  }, null) : s(oe, null, [i.value, C("%")])]) : ""]);
84
84
  }
85
- }), Ge = /* @__PURE__ */ re({
85
+ }), Je = /* @__PURE__ */ re({
86
86
  name: "FPreviewCheckbox",
87
- props: St,
87
+ props: Ct,
88
88
  emits: ["checkedChange"],
89
89
  setup(t, e) {
90
90
  const {
@@ -113,14 +113,14 @@ const St = {
113
113
  onMousedown: (i) => i.stopPropagation()
114
114
  }, null)])]);
115
115
  }
116
- }), Je = /* @__PURE__ */ re({
116
+ }), Ze = /* @__PURE__ */ re({
117
117
  name: "FFileSelect",
118
- props: Ct,
118
+ props: Et,
119
119
  emits: ["change", "stateChange"],
120
120
  setup(t, e) {
121
121
  const n = le("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);
@@ -168,25 +168,25 @@ const St = {
168
168
  style: "top: 2px;position: relative;"
169
169
  }, null), t.selectText])]);
170
170
  }
171
- }), Ze = {}, Ke = {};
171
+ }), Ke = {}, et = {};
172
172
  function Ae(t) {
173
- const { properties: e, title: n } = t, a = Object.keys(e).reduce((r, i) => (r[i] = e[i].type === "object" && e[i].properties ? Ae(e[i]) : Tt(e[i].default), r), {});
174
- return a.id = `${n}-${Date.now()}`, a;
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]) : kt(e[o].default)), l), {});
174
+ return (!r || !a.find((l) => l == "id")) && (i.id = `${n}-${Date.now()}`), i;
175
175
  }
176
- function Pe(t, e = {}) {
177
- const n = Ze[t];
178
- if (n) {
179
- let a = Ae(n);
180
- const r = Ke[t];
181
- return a = r ? r({ getSchemaByType: Pe }, a, e) : a, a;
176
+ function Pe(t, e = {}, n) {
177
+ const a = Ke[t];
178
+ if (a) {
179
+ let r = Ae(a);
180
+ const i = et[t];
181
+ return r = i ? i({ getSchemaByType: Pe }, r, e, n) : r, r;
182
182
  }
183
183
  return null;
184
184
  }
185
- function Et(t, e) {
185
+ function Ot(t, e) {
186
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;
187
+ return Object.keys(t).reduce((a, r) => (a[r] && Ye(a[r]) && Ye(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;
@@ -254,20 +254,20 @@ function Nt(t = {}) {
254
254
  return i(u).reduce((x, g) => x && l(g, d), !0);
255
255
  }
256
256
  function f(u, d) {
257
- const h = Object.keys(u), m = h.includes("allOf"), x = h.includes("anyOf"), g = m || x, k = (g ? u[g ? m ? "allOf" : "anyOf" : "allOf"] : [u]).map((M) => o(M, d));
257
+ const h = Object.keys(u), m = h.includes("allOf"), x = h.includes("anyOf"), g = m || x, k = (g ? u[g ? m ? "allOf" : "anyOf" : "allOf"] : [u]).map((T) => o(T, d));
258
258
  return m ? !k.includes(!1) : k.includes(!0);
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 _t = {}, Bt = {};
263
+ Ht();
264
+ function Rt(t, e, n = /* @__PURE__ */ new Map(), a = (l, o, f) => o, r = {}, i = (l) => l) {
265
+ return Ke[e.title] = e, et[e.title] = a, _t[e.title] = r, Bt[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", $t = "A Farris Component", qt = "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: $t,
330
+ type: qt,
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", Jt = "object", Zt = {
344
344
  basic: {
345
345
  description: "Basic Infomation",
346
346
  title: "基本信息",
@@ -545,11 +545,11 @@ 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
548
+ }, Kt = {
549
+ title: Xt,
550
+ description: Gt,
551
+ type: Jt,
552
+ categories: Zt
553
553
  }, He = {
554
554
  /** 内容区域填充 */
555
555
  contentFill: { type: Boolean, default: !1 },
@@ -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(He, 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
- L(this, "regexes", {
620
+ z(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
- L(this, "patterns", [
637
+ z(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 V(t) {
740
+ function I(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
744
  function ae(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 = V(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 = I(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 = V(t), n = e.getFullYear(), a = ae(t, 0);
760
+ function it(t) {
761
+ const e = I(t), n = e.getFullYear(), a = ae(t, 0);
762
762
  a.setFullYear(n + 1, 0, 4), a.setHours(0, 0, 0, 0);
763
763
  const r = xe(a), i = ae(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
- function Ye(t) {
769
- const e = V(t);
768
+ function We(t) {
769
+ const e = I(t);
770
770
  return e.setHours(0, 0, 0, 0), e;
771
771
  }
772
- function We(t) {
773
- const e = V(t), n = new Date(
772
+ function je(t) {
773
+ const e = I(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) {
787
- const n = Ye(t), a = Ye(e), r = +n - We(n), i = +a - We(a);
788
- return Math.round((r - i) / tn);
786
+ function sn(t, e) {
787
+ const n = We(t), a = We(e), r = +n - je(n), i = +a - je(a);
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 = ae(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 = V(t);
800
+ const e = I(t);
801
801
  return !isNaN(Number(e));
802
802
  }
803
- function on(t) {
804
- const e = V(t), n = ae(t, 0);
803
+ function un(t) {
804
+ const e = I(t), n = ae(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
+ }, _n = {
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
+ }, Bn = {
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,80 +1186,80 @@ 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
+ }, $n = {
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: _n,
1210
1210
  defaultMatchWidth: "wide",
1211
- parsePatterns: Hn,
1211
+ parsePatterns: Bn,
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
+ }, qn = {
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: $n,
1233
1233
  options: {
1234
1234
  weekStartsOn: 0,
1235
1235
  firstWeekContainsDate: 1
1236
1236
  }
1237
1237
  };
1238
- function $n(t) {
1239
- const e = V(t);
1240
- return an(e, on(e)) + 1;
1238
+ function Un(t) {
1239
+ const e = I(t);
1240
+ return sn(e, un(e)) + 1;
1241
1241
  }
1242
- function qn(t) {
1243
- const e = V(t), n = +xe(e) - +rn(e);
1244
- return Math.round(n / tt) + 1;
1242
+ function Ln(t) {
1243
+ const e = I(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 = V(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 = I(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 = ae(t, 0);
1249
1249
  l.setFullYear(a + 1, 0, i), l.setHours(0, 0, 0, 0);
1250
1250
  const o = pe(l, e), f = ae(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 = ae(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 = V(t), a = +pe(n, e) - +Un(n, e);
1262
- return Math.round(a / tt) + 1;
1260
+ function Qn(t, e) {
1261
+ const n = I(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");
@@ -1328,7 +1328,7 @@ const Z = {
1328
1328
  afternoon: "afternoon",
1329
1329
  evening: "evening",
1330
1330
  night: "night"
1331
- }, je = {
1331
+ }, $e = {
1332
1332
  // Era
1333
1333
  G: function(t, e, n) {
1334
1334
  const a = t.getFullYear() > 0 ? 1 : 0;
@@ -1354,7 +1354,7 @@ const Z = {
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.
@@ -1486,12 +1486,12 @@ 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
@@ -1500,7 +1500,7 @@ const Z = {
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
@@ -1754,7 +1754,7 @@ const Z = {
1754
1754
  return "Z";
1755
1755
  switch (e) {
1756
1756
  case "X":
1757
- return qe(a);
1757
+ return Ue(a);
1758
1758
  case "XXXX":
1759
1759
  case "XX":
1760
1760
  return te(a);
@@ -1769,7 +1769,7 @@ const Z = {
1769
1769
  const a = t.getTimezoneOffset();
1770
1770
  switch (e) {
1771
1771
  case "x":
1772
- return qe(a);
1772
+ return Ue(a);
1773
1773
  case "xxxx":
1774
1774
  case "xx":
1775
1775
  return te(a);
@@ -1786,7 +1786,7 @@ 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
1792
  return "GMT" + te(a, ":");
@@ -1799,7 +1799,7 @@ 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
1805
  return "GMT" + te(a, ":");
@@ -1816,18 +1816,18 @@ 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) {
1823
+ function Ue(t, e) {
1824
1824
  return t % 60 === 0 ? (t > 0 ? "-" : "+") + P(Math.abs(t) / 60, 2) : te(t, e);
1825
1825
  }
1826
1826
  function te(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
  }
1830
- const Ue = (t, e) => {
1830
+ const Le = (t, e) => {
1831
1831
  switch (t) {
1832
1832
  case "P":
1833
1833
  return e.date({ width: "short" });
@@ -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,10 +1851,10 @@ 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
- return Ue(t, e);
1857
+ return Le(t, e);
1858
1858
  let i;
1859
1859
  switch (a) {
1860
1860
  case "P":
@@ -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);
1874
+ return i.replace("{{date}}", Le(a, e)).replace("{{time}}", lt(r, e));
1875
+ }, In = {
1876
+ p: lt,
1877
+ P: Vn
1878
+ }, Xn = /^D+$/, Gn = /^Y+$/, Jn = ["D", "DD", "YY", "YYYY"];
1879
+ function Zn(t) {
1880
+ return Xn.test(t);
1881
1881
  }
1882
- function Jn(t) {
1883
- return In.test(t);
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), Jn.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 = V(t);
1897
- if (!it(o))
1896
+ const a = Te(), r = a.locale ?? qn, 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 (!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) };
1912
- if (je[b])
1911
+ return { isToken: !1, value: oa(g) };
1912
+ if ($e[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));
1930
- const y = je[b[0]];
1929
+ (Kn(b) || Zn(b)) && ea(b, e, String(t));
1930
+ const y = $e[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,47 +2085,47 @@ 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 I = /* @__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))(I || {});
2104
- class ka {
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 Pa {
2105
2105
  constructor(e = {}, n = {}) {
2106
2106
  /**
2107
2107
  * 上传配置
2108
2108
  */
2109
- L(this, "uploadConfig");
2109
+ z(this, "uploadConfig");
2110
2110
  /**
2111
2111
  * 删除配置
2112
2112
  */
2113
- L(this, "removeConfig");
2113
+ z(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
2118
  function _e(t, e) {
2119
- const { formatTo: n } = xa();
2119
+ const { formatTo: n } = Ta();
2120
2120
  return n(t, e);
2121
2121
  }
2122
- function Le(t, e) {
2122
+ function ze(t, e) {
2123
2123
  if (!e)
2124
2124
  return "";
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;
@@ -2133,16 +2133,16 @@ function Ca(t) {
2133
2133
  return -1;
2134
2134
  if (t !== "createTime") {
2135
2135
  let i = "", l = "";
2136
- return t.indexOf(".") > -1 ? (i = Le(t, e), l = Le(t, n)) : (i = e[t], l = n[t]), i > l ? 1 : -1;
2136
+ return t.indexOf(".") > -1 ? (i = ze(t, e), l = ze(t, n)) : (i = e[t], l = n[t]), i > l ? 1 : -1;
2137
2137
  }
2138
2138
  const a = new Date(e[t]), r = new Date(n[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,10 +2151,10 @@ 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
- function ze(t) {
2157
+ function Qe(t) {
2158
2158
  let e = "ffilepreview--filetype";
2159
2159
  if (!t)
2160
2160
  return e + "-any";
@@ -2201,12 +2201,12 @@ function ze(t) {
2201
2201
  }
2202
2202
  return e;
2203
2203
  }
2204
- function Qe(t) {
2204
+ function Ve(t) {
2205
2205
  var e;
2206
2206
  if (t.type === "done")
2207
2207
  return 100;
2208
2208
  if (t.file && t.file.progress) {
2209
- if (t.file.progress.status === I.Uploading) {
2209
+ if (t.file.progress.status === X.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);
2222
- function Ve(t, e) {
2221
+ const Oa = () => Math.random().toString(36).substring(7);
2222
+ function Ie(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: I.Queue,
2231
+ status: X.Queue,
2232
2232
  data: {
2233
2233
  percentage: 0,
2234
2234
  speed: 0,
@@ -2243,7 +2243,7 @@ function Ve(t, e) {
2243
2243
  nativeFile: t
2244
2244
  };
2245
2245
  }
2246
- function Ie(t) {
2246
+ function Xe(t) {
2247
2247
  const e = [];
2248
2248
  return t.forEach((n) => {
2249
2249
  const a = { id: "", name: "", size: 0, type: "", extend: null, extendHeaders: null, createTime: "" };
@@ -2254,14 +2254,14 @@ function Ie(t) {
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,53 +2270,53 @@ function Na(t, e) {
2270
2270
  (a) => a.toLowerCase() === n.toLowerCase()
2271
2271
  ) > -1;
2272
2272
  }
2273
- function Aa(t) {
2273
+ function _a(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), {});
2277
2277
  }
2278
- function Xe(t) {
2278
+ function Ge(t) {
2279
2279
  return new Date(t * 1e3).toISOString().substr(11, 8);
2280
2280
  }
2281
- class Ha extends ka {
2281
+ class Ba extends Pa {
2282
2282
  upload(e, n, a, r) {
2283
2283
  const i = e[0];
2284
2284
  return new Promise((l, o) => {
2285
2285
  var k, A;
2286
2286
  const f = n.url || a.url || "", u = n.method || "POST", d = n.data || {}, h = n.headers || {}, m = new XMLHttpRequest(), x = (/* @__PURE__ */ new Date()).getTime();
2287
2287
  let g = ((k = i.progress) == null ? void 0 : k.data) && i.progress.data.startTime || x, b = 0, y = null;
2288
- m.upload.addEventListener("progress", (M) => {
2288
+ m.upload.addEventListener("progress", (T) => {
2289
2289
  var O;
2290
- if (M.lengthComputable) {
2291
- const _ = 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: I.Uploading,
2290
+ if (T.lengthComputable) {
2291
+ const H = Math.round(T.loaded * 100 / T.total), M = (/* @__PURE__ */ new Date()).getTime() - x;
2292
+ b = Math.round(T.loaded / M * 1e3), g = ((O = i.progress) == null ? void 0 : O.data) && i.progress.data.startTime || (/* @__PURE__ */ new Date()).getTime(), y = Math.ceil((T.total - T.loaded) / b), i.progress = {
2293
+ status: X.Uploading,
2294
2294
  data: {
2295
- percentage: _,
2295
+ percentage: H,
2296
2296
  speed: b,
2297
2297
  speedHuman: `${me(b)}/s`,
2298
2298
  startTime: g,
2299
2299
  endTime: null,
2300
2300
  eta: y,
2301
- etaHuman: Xe(y)
2301
+ etaHuman: Ge(y)
2302
2302
  }
2303
2303
  }, r({ type: "uploading", files: [i] });
2304
2304
  }
2305
- }, !1), m.upload.addEventListener("error", (M) => {
2306
- o(M);
2305
+ }, !1), m.upload.addEventListener("error", (T) => {
2306
+ o(T);
2307
2307
  }), m.onreadystatechange = () => {
2308
2308
  if (m.readyState === XMLHttpRequest.DONE) {
2309
- const M = Math.round(i.size / ((/* @__PURE__ */ new Date()).getTime() - g) * 1e3);
2309
+ const T = Math.round(i.size / ((/* @__PURE__ */ new Date()).getTime() - g) * 1e3);
2310
2310
  i.progress = {
2311
- status: I.Done,
2311
+ status: X.Done,
2312
2312
  data: {
2313
2313
  percentage: 100,
2314
- speed: M,
2315
- speedHuman: `${me(M)}/s`,
2314
+ speed: T,
2315
+ speedHuman: `${me(T)}/s`,
2316
2316
  startTime: g,
2317
2317
  endTime: (/* @__PURE__ */ new Date()).getTime(),
2318
2318
  eta: y,
2319
- etaHuman: Xe(y || 0)
2319
+ etaHuman: Ge(y || 0)
2320
2320
  }
2321
2321
  }, i.responseStatus = m.status;
2322
2322
  try {
@@ -2324,19 +2324,19 @@ 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 = _a(m.getAllResponseHeaders()), l({ type: "done", files: [i] });
2328
2328
  }
2329
2329
  }, m.open(u, f, !0), m.withCredentials = !!n.withCredentials;
2330
2330
  try {
2331
- const M = i.nativeFile;
2332
- Object.keys(h).forEach((_) => m.setRequestHeader(_, h[_]));
2331
+ const T = i.nativeFile;
2332
+ Object.keys(h).forEach((H) => m.setRequestHeader(H, h[H]));
2333
2333
  let O;
2334
- n.includeWebKitFormBoundary !== !1 ? (Object.keys(d).forEach((_) => {
2335
- var T;
2336
- return (T = i.form) == null ? void 0 : T.append(_, d[_]);
2337
- }), (A = i.form) == null || A.append(n.fieldName || "file", M, M.name), O = i.form) : O = M, m.send(O);
2338
- } catch (M) {
2339
- o(M);
2334
+ n.includeWebKitFormBoundary !== !1 ? (Object.keys(d).forEach((H) => {
2335
+ var M;
2336
+ return (M = i.form) == null ? void 0 : M.append(H, d[H]);
2337
+ }), (A = i.form) == null || A.append(n.fieldName || "file", T, T.name), O = i.form) : O = T, m.send(O);
2338
+ } catch (T) {
2339
+ o(T);
2340
2340
  }
2341
2341
  return () => {
2342
2342
  m.abort();
@@ -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
2369
  }, Ee = /* @__PURE__ */ re({
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 = j(() => t.options), i = N(!1), l = j(() => {
2374
+ const n = N(t.animate), a = "fadeOut", r = $(() => t.options), i = N(!1), l = $(() => {
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 = j(() => {
2381
- const M = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, O = {
2380
+ }), o = $(() => {
2381
+ const T = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, O = {
2382
2382
  "f-icon": !0
2383
2383
  };
2384
- return O[M] = !0, O;
2385
- }), f = j(() => r.value.title || r.value.message), u = j(() => r.value.title && r.value.message), d = j(() => !r.value.title && r.value.message), h = j(() => t.showCloseButton), m = j(() => !!r.value.buttons || !!e.slots.default);
2384
+ return O[T] = !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);
2386
2386
  function x(k) {
2387
2387
  k.stopPropagation(), k.preventDefault(), i.value = !1, setTimeout(() => {
2388
2388
  e.emit("close", r.value);
@@ -2402,7 +2402,7 @@ const _a = {
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),
2405
- onClick: (M) => void 0
2405
+ onClick: (T) => void 0
2406
2406
  }, [A.text]))), e.slots.default && e.slots.default()])]);
2407
2407
  };
2408
2408
  return () => s("div", {
@@ -2441,17 +2441,17 @@ const _a = {
2441
2441
  }
2442
2442
  }), be = /* @__PURE__ */ re({
2443
2443
  name: "Notify",
2444
- props: _a,
2444
+ props: Ra,
2445
2445
  emits: ["close", "empty"],
2446
2446
  setup(t, e) {
2447
- const n = j(() => ({
2447
+ const n = $(() => ({
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 = j(() => t.position || "bottom-right"), f = j(() => t.timeout != null ? t.timeout : 3e3), u = j(() => {
2454
+ }, r = N(), i = N(t.options), l = N(t.showCloseButton), o = $(() => t.position || "bottom-right"), f = $(() => t.timeout != null ? t.timeout : 3e3), u = $(() => {
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` : "",
@@ -2486,10 +2486,10 @@ const _a = {
2486
2486
  }, null)]);
2487
2487
  }
2488
2488
  });
2489
- class ft {
2489
+ class pt {
2490
2490
  constructor() {
2491
- L(this, "notifyRefs", []);
2492
- L(this, "globalConfig", yt({}));
2491
+ z(this, "notifyRefs", []);
2492
+ z(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() {
@@ -2519,11 +2519,17 @@ class ft {
2519
2519
  document.body.removeChild(i);
2520
2520
  }), Oe(() => {
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
2602
  t.component(be.name, be), t.component(Ee.name, Ee);
2597
- const e = new ft();
2598
- t.provide(Ra, e), t.provide("FNotifyService", e);
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 && le(t, null) && (e = le(t)), e || (e = new pt()), e;
2609
+ }, $a = (t = "") => {
2604
2610
  let e;
2605
2611
  if (t && le(t, null)) {
2606
2612
  const n = le(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 Ba()), e;
2616
+ }, mt = {
2617
+ getNotify: ja,
2618
+ getServerAPI: $a
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,25 +2629,25 @@ 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 = j(() => y.value.length), A = N([]), M = N(""), O = N(_(r.value));
2627
- function _(c) {
2632
+ } = Fe(t), b = N(!1), y = N([]), k = $(() => y.value.length), A = N([]), T = N(""), O = N(H(r.value));
2633
+ function H(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((U) => U.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 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))];
2636
+ return D.sort(Ea(u.value)), d.value && (y.value = [...D].filter((S) => S.checked)), D;
2631
2637
  }
2632
2638
  ne(() => t.fileInfos, (c) => {
2633
- O.value = _(c);
2639
+ O.value = H(c);
2634
2640
  });
2635
- const T = (c, v) => {
2641
+ const M = (c, v) => {
2636
2642
  c.stopImmediatePropagation(), e.emit("fileDownloadEvent", { fileInfos: [v], name: "" });
2637
2643
  }, B = (c, v) => {
2638
2644
  c.stopImmediatePropagation(), !g.value && e.emit("filePreviewEvent", v);
2639
- }, H = (c, v, D) => {
2645
+ }, _ = (c, v, D) => {
2640
2646
  v.checked && (y.value = y.value.filter((S) => S.id !== v.id)), e.emit("fileRemoveEvent", v), D.handleUploadEvent({ type: "remove", file: v });
2641
- }, z = (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, X = (c) => !(c.field === "state" && (o.value || !l.value)), Q = (c) => c.lastIndexOf(".") > 0 ? c.substring(0, c.lastIndexOf(".")) : "", G = (c) => {
2647
+ }, 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) => {
2642
2648
  if (c.stopImmediatePropagation(), k.value > 1) {
2643
2649
  let v = "";
2644
- v = Q(y.value[0].name), e.emit("fileDownloadEvent", {
2650
+ v = V(y.value[0].name), e.emit("fileDownloadEvent", {
2645
2651
  fileInfos: y.value,
2646
2652
  name: v
2647
2653
  });
@@ -2655,32 +2661,32 @@ function mt(t, e, n) {
2655
2661
  }), y.value = [...O.value], b.value = !0) : (y.value = [], v.forEach((D) => {
2656
2662
  D.checked = !1;
2657
2663
  }), b.value = !1), e.emit("previewMultiSelectedEvent", y.value);
2658
- }, R = (c, v) => {
2659
- c && (c.stopImmediatePropagation(), c.stopPropagation()), (!M.value || v.id !== M.value) && (M.value = v.id, e.emit("selectedEvent", v));
2664
+ }, Y = (c, v) => {
2665
+ c && (c.stopImmediatePropagation(), c.stopPropagation()), (!T.value || v.id !== T.value) && (T.value = v.id, e.emit("selectedEvent", v));
2660
2666
  }, E = (c) => {
2661
- const v = y.value.findIndex((U) => U.id === c.id), D = v > -1, S = O.value.find((U) => U.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), R(null, S), e.emit("previewMultiSelectedEvent", y.value);
2663
- }, $ = (c) => {
2667
+ const v = y.value.findIndex((L) => L.id === c.id), D = v > -1, S = O.value.find((L) => L.id === c.id);
2668
+ 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);
2669
+ }, q = (c) => {
2664
2670
  var v;
2665
2671
  (v = n == null ? void 0 : n.value) == null || v.handleUploadEvent(c);
2666
2672
  }, ue = (c) => {
2667
- $({ type: "upload", file: c });
2668
- }, Y = (c, v) => {
2673
+ q({ type: "upload", file: c });
2674
+ }, W = (c, v) => {
2669
2675
  let D = [];
2670
2676
  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 U = A.value.findIndex((J) => {
2677
+ const L = A.value.findIndex((J) => {
2672
2678
  var ve;
2673
2679
  return typeof S < "u" && ((ve = J == null ? void 0 : J.file) == null ? void 0 : ve.id) === S.id;
2674
2680
  });
2675
- U > -1 && (A.value[U] = { type: v, file: S });
2681
+ L > -1 && (A.value[L] = { type: v, file: S });
2676
2682
  });
2677
- }, Te = (c) => {
2683
+ }, Me = (c) => {
2678
2684
  if (c.files) {
2679
2685
  const v = c.files.map((D) => D.id);
2680
- A.value = A.value.filter((D) => !(v.findIndex((U) => {
2686
+ A.value = A.value.filter((D) => !(v.findIndex((L) => {
2681
2687
  var J;
2682
- return U === ((J = D == null ? void 0 : D.file) == null ? void 0 : J.id);
2683
- }) > -1)), $({
2688
+ return L === ((J = D == null ? void 0 : D.file) == null ? void 0 : J.id);
2689
+ }) > -1)), q({
2684
2690
  type: "hide",
2685
2691
  id: v.join(",")
2686
2692
  });
@@ -2697,9 +2703,9 @@ function mt(t, e, n) {
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
- Y(c, "start");
2706
+ W(c, "start");
2701
2707
  else if (c.type === "done") {
2702
- Y(c, "done");
2708
+ W(c, "done");
2703
2709
  const v = (c.files || []).map((D) => ({
2704
2710
  checked: !1,
2705
2711
  id: D.id,
@@ -2707,7 +2713,7 @@ function mt(t, e, n) {
2707
2713
  size: D.size,
2708
2714
  createTime: _e(/* @__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", Xe(c.files || [])), e.emit("uploadDoneEvent", Xe(c.files || []));
2711
2717
  } else if (c.type === "cancelled" || c.type === "removed" || c.type === "error") {
2712
2718
  const v = r.value.filter((D) => c.files && c.files.findIndex((S) => D.id === S.id) < 0);
2713
2719
  r.value = [...v], he(c);
@@ -2727,25 +2733,25 @@ function mt(t, e, n) {
2727
2733
  previewMultiSelectedLength: k,
2728
2734
  previewSelectAllBtnChecked: b,
2729
2735
  uploadEnableMulti: x,
2730
- previewCurrentId: M,
2736
+ previewCurrentId: T,
2731
2737
  multiFileRemoveHandler: ee,
2732
2738
  previewMultiSelectChangeHandler: E,
2733
2739
  fileMultiDownloadHandler: G,
2734
2740
  selectOrCancelAllHandler: ie,
2735
- hasColumnHtmlFunc: z,
2736
- showPreviewStateColumn: X,
2737
- rowSelectedHandler: R,
2738
- fileDownloadHandler: T,
2741
+ hasColumnHtmlFunc: R,
2742
+ showPreviewStateColumn: Q,
2743
+ rowSelectedHandler: Y,
2744
+ fileDownloadHandler: M,
2739
2745
  filePreviewHandler: B,
2740
- fileRemoveHandler: H,
2746
+ fileRemoveHandler: _,
2741
2747
  handleStateChange: ge
2742
2748
  };
2743
2749
  }
2744
- class ja {
2750
+ class qa {
2745
2751
  constructor(e, n) {
2746
2752
  // 记录在上传的附件数组
2747
- L(this, "queue");
2748
- L(this, "uploadOpts", {
2753
+ z(this, "queue");
2754
+ z(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
- L(this, "extendServerConfig", null);
2761
- L(this, "uploadServerSer");
2762
- L(this, "uploadContext", null);
2763
- this.stateChangeRecord = e, this.serverToken = n, this.queue = [], this.uploadServerSer = pt.getServerAPI(this.serverToken);
2766
+ z(this, "extendServerConfig", null);
2767
+ z(this, "uploadServerSer");
2768
+ z(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) !== I.Remove;
2784
+ return ((i = r.progress) == null ? void 0 : i.status) !== X.Remove;
2779
2785
  }
2780
2786
  ), e.hasOwnProperty("message") || (e.message = "被删除"), this.stateChangeRecord.value = e;
2781
2787
  break;
@@ -2806,7 +2812,7 @@ class ja {
2806
2812
  if (f.allowed)
2807
2813
  r = r.concat(i);
2808
2814
  else {
2809
- const d = Ve(
2815
+ const d = Ie(
2810
2816
  i,
2811
2817
  l
2812
2818
  );
@@ -2822,7 +2828,7 @@ class ja {
2822
2828
  );
2823
2829
  [].map.call(n, (r, i) => {
2824
2830
  var o;
2825
- const l = Ve(r, i);
2831
+ const l = Ie(r, i);
2826
2832
  this.queue.push(l), (o = this.uploadContext) == null || o.emit("stateChange", { type: "addedToQueue", file: l });
2827
2833
  }), (a = this.uploadContext) == null || a.emit("stateChange", { type: "allAddedToQueue" });
2828
2834
  }
@@ -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 = I.Remove);
2887
+ o && (o.status = X.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) === I.Queue;
2895
+ return ((f = o == null ? void 0 : o.progress) == null ? void 0 : f.status) === X.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) !== I.Queue;
2905
+ return ((f = o == null ? void 0 : o.progress) == null ? void 0 : f.status) !== X.Queue;
2900
2906
  }
2901
2907
  )), this.queue.length && (e.type = "remove", this.queue.forEach((o) => {
2902
- o.progress && (o.progress.status = I.Remove);
2908
+ o.progress && (o.progress.status = X.Remove);
2903
2909
  }), this.serverMethod({ files: this.queue, event: e }));
2904
2910
  break;
2905
2911
  }
@@ -2970,22 +2976,22 @@ class ja {
2970
2976
  const De = /* @__PURE__ */ re({
2971
2977
  name: "FUploader",
2972
2978
  components: {
2973
- "f-upload-progress": Pt,
2974
- "f-preview-checkbox": Ge,
2975
- "f-file-select": Je
2979
+ "f-upload-progress": Ft,
2980
+ "f-preview-checkbox": Je,
2981
+ "f-file-select": Ze
2976
2982
  },
2977
2983
  props: He,
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);
2986
+ const n = N(), a = new qa(n, t.uploadServerToken);
2981
2987
  ne(n, (p) => {
2982
2988
  switch (ie(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
  // 默认不限制附件上传个数
@@ -3005,28 +3011,28 @@ const De = /* @__PURE__ */ re({
3005
3011
  previewMultiSelectedLength: y,
3006
3012
  previewSelectAllBtnChecked: k,
3007
3013
  uploadEnableMulti: A,
3008
- previewCurrentId: M,
3014
+ previewCurrentId: T,
3009
3015
  multiFileRemoveHandler: O,
3010
- previewMultiSelectChangeHandler: _,
3011
- fileMultiDownloadHandler: T,
3016
+ previewMultiSelectChangeHandler: H,
3017
+ fileMultiDownloadHandler: M,
3012
3018
  selectOrCancelAllHandler: B,
3013
- rowSelectedHandler: H,
3014
- hasColumnHtmlFunc: z,
3015
- showPreviewStateColumn: X,
3016
- fileDownloadHandler: Q,
3019
+ rowSelectedHandler: _,
3020
+ hasColumnHtmlFunc: R,
3021
+ showPreviewStateColumn: Q,
3022
+ fileDownloadHandler: V,
3017
3023
  filePreviewHandler: G,
3018
3024
  fileRemoveHandler: ee,
3019
3025
  handleStateChange: ie
3020
- } = mt(t, e, l), R = j(() => g.value.length > 0);
3026
+ } = ht(t, e, l), Y = $(() => 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 $() {
3029
- return ct((i == null ? void 0 : i.maxFileSize) || "") ? s("li", null, [s("span", null, [C("单个文件限制:")]), s("span", {
3034
+ function q() {
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 Y() {
3044
+ function W() {
3039
3045
  return f.value && !u.value && !o.value ? s("div", {
3040
3046
  class: "ffileupload--support-info"
3041
3047
  }, [r.value ? s("ul", {
@@ -3045,24 +3051,24 @@ const De = /* @__PURE__ */ re({
3045
3051
  innerHTML: r.value
3046
3052
  }, null)])]) : s("ul", {
3047
3053
  class: "support-info--wrapper"
3048
- }, [E(), $(), ue()])]) : null;
3054
+ }, [E(), q(), ue()])]) : null;
3049
3055
  }
3050
- function Te(p) {
3051
- var w, F, q;
3056
+ function Me(p) {
3057
+ var w, F, U;
3052
3058
  return s("div", {
3053
3059
  class: "uploadAndpreview--title-container"
3054
3060
  }, [s("div", {
3055
3061
  class: "ffilepreview--item-icon"
3056
3062
  }, [s("span", {
3057
- class: ["ffilepreview--filetype-icon", ze(((w = p.file) == null ? void 0 : w.name) || "")]
3063
+ class: ["ffilepreview--filetype-icon", Qe(((w = p.file) == null ? void 0 : w.name) || "")]
3058
3064
  }, null)]), s("div", {
3059
3065
  class: "uploadAndpreview--right"
3060
3066
  }, [s("a", {
3061
3067
  class: "item-content--title",
3062
3068
  title: (F = p.file) == null ? void 0 : F.name
3063
- }, [((q = p.file) == null ? void 0 : q.name) || "无名称"]), s(K("f-upload-progress"), {
3069
+ }, [((U = p.file) == null ? void 0 : U.name) || "无名称"]), s(K("f-upload-progress"), {
3064
3070
  status: p.type === "done" ? "success" : "active",
3065
- percent: Qe(p),
3071
+ percent: Ve(p),
3066
3072
  maxWidth: 300
3067
3073
  }, null)])]);
3068
3074
  }
@@ -3072,7 +3078,7 @@ const De = /* @__PURE__ */ re({
3072
3078
  }, [s("div", {
3073
3079
  class: "ffilepreview--item-icon"
3074
3080
  }, [s("span", {
3075
- class: ["ffilepreview--filetype-icon", ze(p.name)]
3081
+ class: ["ffilepreview--filetype-icon", Qe(p.name)]
3076
3082
  }, null)]), s("div", {
3077
3083
  class: "uploadAndpreview--right"
3078
3084
  }, [s("a", {
@@ -3084,7 +3090,7 @@ const De = /* @__PURE__ */ re({
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, [Ve(w)]) : null]);
3088
3094
  }
3089
3095
  function c(p, w) {
3090
3096
  return w && w.type == "error" ? s("div", {
@@ -3115,7 +3121,7 @@ const De = /* @__PURE__ */ re({
3115
3121
  }, [d.value ? "" : s("button", {
3116
3122
  class: "btn preview-btn",
3117
3123
  title: "下载",
3118
- onClick: (w) => Q(w, p)
3124
+ onClick: (w) => V(w, p)
3119
3125
  }, [s("span", {
3120
3126
  class: "f-icon f-icon-enclosure_download"
3121
3127
  }, null)]), t.previewButtonDisable ? "" : s("button", {
@@ -3138,47 +3144,47 @@ const De = /* @__PURE__ */ re({
3138
3144
  class: "uploadAndpreview--date-container"
3139
3145
  }, [p.createTime || ""]);
3140
3146
  }
3141
- function S(p, w, F, q) {
3142
- let W;
3143
- if (p = p || "preview", q.formatter)
3144
- return W = q.formatter(F[q.field] || "", p, p == "preview" ? F : w, q), W;
3147
+ function S(p, w, F, U) {
3148
+ let j;
3149
+ if (p = p || "preview", U.formatter)
3150
+ return j = U.formatter(F[U.field] || "", p, p == "preview" ? F : w, U), j;
3145
3151
  if (p === "preview" && F)
3146
- switch (q.field) {
3152
+ switch (U.field) {
3147
3153
  case "state":
3148
- W = c("preview", null);
3154
+ j = c("preview", null);
3149
3155
  break;
3150
3156
  case "name":
3151
- W = he(F);
3157
+ j = he(F);
3152
3158
  break;
3153
3159
  case "action":
3154
- W = v(F);
3160
+ j = v(F);
3155
3161
  break;
3156
3162
  case "size":
3157
- W = ge(p, w, F);
3163
+ j = ge(p, w, F);
3158
3164
  break;
3159
3165
  case "createTime":
3160
- W = D(F);
3166
+ j = D(F);
3161
3167
  break;
3162
3168
  default:
3163
- W = `<div>${F[q.field] || ""} </div>`;
3169
+ j = `<div>${F[U.field] || ""} </div>`;
3164
3170
  }
3165
3171
  if (p === "upload" && w)
3166
- switch (q.field) {
3172
+ switch (U.field) {
3167
3173
  case "state":
3168
- W = c("upload", w);
3174
+ j = c("upload", w);
3169
3175
  break;
3170
3176
  case "name":
3171
- W = Te(w);
3177
+ j = Me(w);
3172
3178
  break;
3173
3179
  case "size":
3174
- W = ge(p, w, F);
3180
+ j = ge(p, w, F);
3175
3181
  break;
3176
3182
  default:
3177
- W = "";
3183
+ j = "";
3178
3184
  }
3179
- return W;
3185
+ return j;
3180
3186
  }
3181
- function U() {
3187
+ function L() {
3182
3188
  return f.value ? s("div", {
3183
3189
  class: "header--left-container"
3184
3190
  }, [s(K("f-file-select"), {
@@ -3194,7 +3200,7 @@ const De = /* @__PURE__ */ re({
3194
3200
  }, null)]) : null;
3195
3201
  }
3196
3202
  function J() {
3197
- return !f.value && h.value && R.value ? s("div", {
3203
+ return !f.value && h.value && Y.value ? s("div", {
3198
3204
  class: "header--left-container header--countInfo"
3199
3205
  }, [s("p", {
3200
3206
  class: "m-0"
@@ -3205,12 +3211,12 @@ const De = /* @__PURE__ */ re({
3205
3211
  }, [y.value]), C("个)")]) : ""])]) : null;
3206
3212
  }
3207
3213
  function ve() {
3208
- return (!d.value || !t.deleteButtonDisable) && h.value && R.value ? s("div", {
3214
+ return (!d.value || !t.deleteButtonDisable) && h.value && Y.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) => M(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,7 +3224,7 @@ const De = /* @__PURE__ */ re({
3218
3224
  }, [C("删除")])]) : null;
3219
3225
  }
3220
3226
  function Be() {
3221
- return m.value.map((p) => X(p) ? s("th", {
3227
+ return m.value.map((p) => Q(p) ? s("th", {
3222
3228
  style: {
3223
3229
  width: p.width ? p.width + "px" : "auto"
3224
3230
  },
@@ -3230,66 +3236,66 @@ const De = /* @__PURE__ */ re({
3230
3236
  onCheckedChange: (w) => B(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 q;
3246
+ var U;
3241
3247
  return s("td", {
3242
3248
  class: [!o.value && F.checkbox && F.checkbox ? "td--hascheckbox" : ""]
3243
3249
  }, [b.value && F.checkbox ? s(K("f-preview-checkbox"), {
3244
- id: (q = p == null ? void 0 : p.file) == null ? void 0 : q.id,
3250
+ id: (U = p == null ? void 0 : p.file) == null ? void 0 : U.id,
3245
3251
  checked: p.checked,
3246
3252
  disabled: p.type !== "done",
3247
3253
  class: "preview-checkbox",
3248
- onCheckedChange: (W) => _(W)
3249
- }, null) : null, z(F, "upload") ? S("upload", p, null, F) : null]);
3254
+ onCheckedChange: (j) => H(j)
3255
+ }, null) : null, R(F, "upload") ? S("upload", p, null, F) : null]);
3250
3256
  })]);
3251
3257
  });
3252
3258
  }
3253
3259
  function Re() {
3254
3260
  return g.value.map((p) => s("tr", {
3255
- class: ["uploadAndpreview--preview-item", M.value === p.id ? "uploadAndpreview--currentfile" : ""],
3261
+ class: ["uploadAndpreview--preview-item", T.value === p.id ? "uploadAndpreview--currentfile" : ""],
3256
3262
  id: "uploadAndpreview--preview-item" + p.id,
3257
- onClick: (w) => H(w, p)
3258
- }, [m.value.map((w) => X(w) ? s("td", {
3263
+ onClick: (w) => _(w, p)
3264
+ }, [m.value.map((w) => Q(w) ? s("td", {
3259
3265
  class: [!o.value && w.checkbox && w.checkbox ? "td--hascheckbox" : ""]
3260
3266
  }, [!o.value && b.value && w.checkbox ? s(K("f-preview-checkbox"), {
3261
3267
  id: p.id,
3262
3268
  checked: p.checked,
3263
3269
  class: "preview-checkbox",
3264
- onCheckedChange: (F) => _(F)
3265
- }, null) : null, z(w, "preview") ? S("preview", null, p, w) : s("div", {
3270
+ onCheckedChange: (F) => H(F)
3271
+ }, null) : null, R(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
- }, [R.value ? null : Y(), h.value ? s("div", {
3278
+ }, [Y.value ? null : W(), h.value ? s("div", {
3273
3279
  class: "uploadAndpreview--content"
3274
- }, [R.value ? s("table", {
3280
+ }, [Y.value ? s("table", {
3275
3281
  class: "table table-bordered uploadAndpreview--table"
3276
3282
  }, [s("thead", null, [Be()]), s("tbody", null, [Re()])]) : s("p", {
3277
3283
  class: "uploadAndpreview--nodata"
3278
- }, [C("无附件信息")])]) : null, R.value ? Y() : null]) : s("div", {
3284
+ }, [C("无附件信息")])]) : null, Y.value ? W() : null]) : s("div", {
3279
3285
  class: "fv-upload-and-preview"
3280
3286
  }, [s("div", {
3281
3287
  class: "uploadAndpreview--header"
3282
- }, [U(), J(), ve()]), R.value ? null : Y(), h.value || f.value ? s("div", {
3288
+ }, [L(), J(), ve()]), Y.value ? null : W(), h.value || f.value ? s("div", {
3283
3289
  class: "uploadAndpreview--content"
3284
- }, [(d.value || !f.value) && x.value.length === 0 && !R.value ? s("p", {
3290
+ }, [(d.value || !f.value) && x.value.length === 0 && !Y.value ? s("p", {
3285
3291
  class: "uploadAndpreview--nodata"
3286
- }, [C("无附件信息")]) : "", x.value.length > 0 || R ? s("table", {
3292
+ }, [C("无附件信息")]) : "", x.value.length > 0 || Y ? s("table", {
3287
3293
  class: "table table-bordered uploadAndpreview--table"
3288
- }, [s("thead", null, [Be()]), s("tbody", null, [ht(), Re()])]) : null]) : null, R.value ? Y() : null]);
3294
+ }, [s("thead", null, [Be()]), s("tbody", null, [gt(), Re()])]) : null]) : null, Y.value ? W() : null]);
3289
3295
  }
3290
3296
  });
3291
- function $a(t, e, n) {
3292
- var _;
3297
+ function Ua(t, e, n) {
3298
+ var H;
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(M) {
3315
+ if (!M || !M.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 = h(B);
3314
- return H || null;
3317
+ if (M.value.schema && M.value.schema.type === "component")
3318
+ return M.value;
3319
+ const B = N(M == null ? void 0 : M.value.parent), _ = h(B);
3320
+ return _ || null;
3315
3321
  }
3316
- function m(T = e) {
3317
- const { componentInstance: B, designerItemElementRef: H } = T;
3318
- return !B || !B.value ? null : B.value.canMove ? H : m(T.parent);
3322
+ function m(M = e) {
3323
+ const { componentInstance: B, designerItemElementRef: _ } = M;
3324
+ return !B || !B.value ? null : B.value.canMove ? _ : m(M.parent);
3319
3325
  }
3320
- function x(T) {
3326
+ function x(M) {
3321
3327
  return !!n;
3322
3328
  }
3323
3329
  function g() {
@@ -3325,24 +3331,24 @@ function $a(t, e, n) {
3325
3331
  }
3326
3332
  function b() {
3327
3333
  }
3328
- function y(T, B) {
3334
+ function y(M, B) {
3329
3335
  }
3330
- function k(T) {
3331
- const { componentType: B } = T;
3332
- let H = Pe(B, T);
3333
- const z = B.toLowerCase().replace("-", "_");
3334
- return H && !H.id && H.type === B && (H.id = `${z}_${Math.random().toString().slice(2, 6)}`), H;
3336
+ function k(M, B) {
3337
+ const { componentType: _ } = M;
3338
+ let R = Pe(_, M, B);
3339
+ const Q = _.toLowerCase().replace("-", "_");
3340
+ return R && !R.id && R.type === _ && (R.id = `${Q}_${Math.random().toString().slice(2, 6)}`), R;
3335
3341
  }
3336
- function A(T, B) {
3337
- const H = String(T.getAttribute("data-controltype")), z = T.getAttribute("data-feature"), X = z ? JSON.parse(z) : {};
3338
- X.parentComponentInstance = l.value;
3339
- let Q = Pe(H, X);
3340
- const G = H.toLowerCase().replace("-", "_");
3341
- return Q && !Q.id && Q.type === H && (Q.id = `${G}_${Math.random().toString().slice(2, 6)}`), Q;
3342
+ function A(M, B) {
3343
+ const _ = String(M.getAttribute("data-controltype")), R = M.getAttribute("data-feature"), Q = R ? JSON.parse(R) : {};
3344
+ Q.parentComponentInstance = l.value;
3345
+ let V = Pe(_, Q);
3346
+ const G = _.toLowerCase().replace("-", "_");
3347
+ return V && !V.id && V.type === _ && (V.id = `${G}_${Math.random().toString().slice(2, 6)}`), V;
3342
3348
  }
3343
- function M(T) {
3349
+ function T(M) {
3344
3350
  }
3345
- function O(...T) {
3351
+ function O(...M) {
3346
3352
  }
3347
3353
  return l.value = {
3348
3354
  canMove: o(),
@@ -3351,7 +3357,7 @@ function $a(t, e, n) {
3351
3357
  canNested: !d(),
3352
3358
  contents: e == null ? void 0 : e.schema.contents,
3353
3359
  elementRef: t,
3354
- parent: (_ = e == null ? void 0 : e.parent) == null ? void 0 : _.componentInstance,
3360
+ parent: (H = e == null ? void 0 : e.parent) == null ? void 0 : H.componentInstance,
3355
3361
  schema: e == null ? void 0 : e.schema,
3356
3362
  styles: r,
3357
3363
  designerClass: i,
@@ -3363,23 +3369,23 @@ function $a(t, e, n) {
3363
3369
  getDragScopeElement: b,
3364
3370
  onAcceptMovedChildElement: y,
3365
3371
  onAcceptNewChildElement: A,
3366
- onChildElementMovedOut: M,
3372
+ onChildElementMovedOut: T,
3367
3373
  addNewChildComponentSchema: k,
3368
3374
  updateDragAndDropRules: a,
3369
3375
  triggerBelongedComponentToMoveWhenMoved: N(!1),
3370
3376
  triggerBelongedComponentToDeleteWhenDeleted: N(!1)
3371
3377
  }, l;
3372
3378
  }
3373
- const qa = /* @__PURE__ */ re({
3379
+ const La = /* @__PURE__ */ re({
3374
3380
  name: "FUploaderDesign",
3375
3381
  components: {
3376
- "f-preview-checkbox": Ge,
3377
- "f-file-select": Je
3382
+ "f-preview-checkbox": Je,
3383
+ "f-file-select": Ze
3378
3384
  },
3379
3385
  props: He,
3380
3386
  emits: ["filePreviewEvent", "fileDownloadEvent", "previewMultiSelectedEvent", "selectedEvent", "fileRemoveEvent", "fUploadDoneEvent", "uploadDoneEvent"],
3381
3387
  setup(t, e) {
3382
- const n = N(t.customInfo), a = dt(t.uploadOptions, {
3388
+ const n = N(t.customInfo), a = ft(t.uploadOptions, {
3383
3389
  // 允许上传的文件类型
3384
3390
  allowedContentTypes: ["*"],
3385
3391
  // 默认不限制附件上传个数
@@ -3402,16 +3408,16 @@ const qa = /* @__PURE__ */ re({
3402
3408
  previewEnableMulti: m,
3403
3409
  previewCurrentId: x,
3404
3410
  showPreviewStateColumn: g
3405
- } = mt(t, e, r);
3411
+ } = ht(t, e, r);
3406
3412
  function b() {
3407
3413
  var E;
3408
- return ut((a == null ? void 0 : a.allowedContentTypes) || []) ? s("li", null, [s("span", null, [C("支持类型:")]), s("span", {
3414
+ return ct((a == null ? void 0 : a.allowedContentTypes) || []) ? s("li", null, [s("span", null, [C("支持类型:")]), s("span", {
3409
3415
  class: "support-info--item-detail",
3410
3416
  style: "margin-right:4px;"
3411
3417
  }, [(E = a.allowedContentTypes) == null ? void 0 : E.join(""), C(",")])]) : null;
3412
3418
  }
3413
3419
  function y() {
3414
- return ct((a == null ? void 0 : a.maxFileSize) || "") ? s("li", null, [s("span", null, [C("单个文件限制:")]), s("span", {
3420
+ return dt((a == null ? void 0 : a.maxFileSize) || "") ? s("li", null, [s("span", null, [C("单个文件限制:")]), s("span", {
3415
3421
  class: "support-info--item-detail"
3416
3422
  }, [a.maxFileSize, C(",   ")])]) : null;
3417
3423
  }
@@ -3432,7 +3438,7 @@ const qa = /* @__PURE__ */ re({
3432
3438
  class: "support-info--wrapper"
3433
3439
  }, [b(), y(), k()])]) : null;
3434
3440
  }
3435
- function M(E) {
3441
+ function T(E) {
3436
3442
  return s("div", {
3437
3443
  class: "uploadAndpreview--title-container"
3438
3444
  }, [s("div", {
@@ -3452,7 +3458,7 @@ const qa = /* @__PURE__ */ re({
3452
3458
  class: "ffilepreview--preview-block"
3453
3459
  }, null)]);
3454
3460
  }
3455
- function _() {
3461
+ function H() {
3456
3462
  return s("div", {
3457
3463
  class: "uploadAndpreview--state-container"
3458
3464
  }, [s("p", {
@@ -3461,7 +3467,7 @@ const qa = /* @__PURE__ */ re({
3461
3467
  class: "f-icon f-icon-success text-success"
3462
3468
  }, null), s("span", null, [C("已上传")])])]);
3463
3469
  }
3464
- function T(E) {
3470
+ function M(E) {
3465
3471
  return s("div", {
3466
3472
  class: "uploadAndpreview--action-container"
3467
3473
  }, [u.value ? "" : s("button", {
@@ -3489,33 +3495,33 @@ const qa = /* @__PURE__ */ re({
3489
3495
  class: "ffilepreview--preview-block"
3490
3496
  }, null)]);
3491
3497
  }
3492
- function H(E, $, ue) {
3493
- let Y = null;
3494
- if (E = E || "preview", E === "preview" && $)
3498
+ function _(E, q, ue) {
3499
+ let W = null;
3500
+ if (E = E || "preview", E === "preview" && q)
3495
3501
  switch (ue.field) {
3496
3502
  case "state":
3497
- Y = _();
3503
+ W = H();
3498
3504
  break;
3499
3505
  case "name":
3500
- Y = M();
3506
+ W = T();
3501
3507
  break;
3502
3508
  case "action":
3503
- Y = T();
3509
+ W = M();
3504
3510
  break;
3505
3511
  case "size":
3506
- Y = O();
3512
+ W = O();
3507
3513
  break;
3508
3514
  case "createTime":
3509
- Y = B();
3515
+ W = B();
3510
3516
  break;
3511
3517
  default:
3512
- Y = s("span", {
3518
+ W = s("span", {
3513
3519
  class: "ffilepreview--preview-block"
3514
3520
  }, null);
3515
3521
  }
3516
- return Y;
3522
+ return W;
3517
3523
  }
3518
- function z() {
3524
+ function R() {
3519
3525
  return o.value ? s("div", {
3520
3526
  class: "header--left-container"
3521
3527
  }, [s(K("f-file-select"), {
@@ -3524,7 +3530,7 @@ const qa = /* @__PURE__ */ re({
3524
3530
  selectText: t.selectText
3525
3531
  }, null)]) : null;
3526
3532
  }
3527
- function X() {
3533
+ function Q() {
3528
3534
  return (!u.value || !t.deleteButtonDisable) && d.value ? s("div", {
3529
3535
  class: "header--right-container"
3530
3536
  }, [u.value ? null : s("button", {
@@ -3535,7 +3541,7 @@ const qa = /* @__PURE__ */ re({
3535
3541
  disabled: !0
3536
3542
  }, [C("删除")])]) : null;
3537
3543
  }
3538
- function Q() {
3544
+ function V() {
3539
3545
  return h.value.map((E) => g(E) ? s("th", {
3540
3546
  style: {
3541
3547
  width: E.width ? E.width + "px" : "auto"
@@ -3550,40 +3556,40 @@ const qa = /* @__PURE__ */ re({
3550
3556
  return i.map((E) => s("tr", {
3551
3557
  class: ["uploadAndpreview--preview-item", x.value === E.id ? "uploadAndpreview--currentfile" : ""],
3552
3558
  id: "uploadAndpreview--preview-item" + E.id
3553
- }, [h.value.map(($) => g($) ? s("td", {
3554
- class: [!l.value && $.checkbox && $.checkbox ? "td--hascheckbox" : ""]
3555
- }, [!l.value && m.value && $.checkbox ? s(K("f-preview-checkbox"), {
3559
+ }, [h.value.map((q) => g(q) ? s("td", {
3560
+ class: [!l.value && q.checkbox && q.checkbox ? "td--hascheckbox" : ""]
3561
+ }, [!l.value && m.value && q.checkbox ? s(K("f-preview-checkbox"), {
3556
3562
  class: "preview-checkbox"
3557
- }, null) : null, H("preview", E, $)]) : null)]));
3563
+ }, null) : null, _("preview", E, q)]) : null)]));
3558
3564
  }
3559
- Mt(() => {
3565
+ St(() => {
3560
3566
  });
3561
- const ee = N(), ie = le("design-item-context"), R = $a(ee, ie);
3567
+ const ee = N(), ie = le("design-item-context"), Y = Ua(ee, ie);
3562
3568
  return Oe(() => {
3563
- ee.value.componentInstance = R;
3564
- }), e.expose(R.value), () => s("div", {
3569
+ ee.value.componentInstance = Y;
3570
+ }), e.expose(Y.value), () => s("div", {
3565
3571
  class: "fv-upload-and-preview",
3566
3572
  ref: ee
3567
3573
  }, [d.value || o.value ? s(oe, null, [l.value ? null : s("div", {
3568
3574
  class: "uploadAndpreview--header"
3569
- }, [z(), X()]), s("div", {
3575
+ }, [R(), Q()]), s("div", {
3570
3576
  class: "uploadAndpreview--content"
3571
3577
  }, [s("table", {
3572
3578
  class: "table table-bordered uploadAndpreview--table"
3573
- }, [s("thead", null, [Q()]), s("tbody", null, [G()])])]), A()]) : null]);
3579
+ }, [s("thead", null, [V()]), s("tbody", null, [G()])])]), A()]) : null]);
3574
3580
  }
3575
3581
  });
3576
3582
  De.register = (t, e, n, a) => {
3577
- t.uploader = De, e.uploader = et;
3583
+ t.uploader = De, e.uploader = tt;
3578
3584
  };
3579
3585
  De.registerDesigner = (t, e, n) => {
3580
- t.uploader = qa, e.uploader = et;
3586
+ t.uploader = La, e.uploader = tt;
3581
3587
  };
3582
- const Va = Sa(De);
3588
+ const Xa = Ca(De);
3583
3589
  export {
3584
3590
  De as FUploader,
3585
- ka as UploadServerAPI,
3586
- Va as default,
3587
- et as propsResolver,
3591
+ Pa as UploadServerAPI,
3592
+ Xa as default,
3593
+ tt as propsResolver,
3588
3594
  He as uploaderProps
3589
3595
  };