@farris/ui-vue 1.3.1 → 1.3.3

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 (259) hide show
  1. package/components/accordion/index.esm.js +103 -99
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +301 -351
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +444 -0
  6. package/components/binding-selector/index.umd.cjs +1 -0
  7. package/components/binding-selector/package.json +8 -0
  8. package/components/border-editor/index.esm.js +5 -3
  9. package/components/border-editor/index.umd.cjs +1 -1
  10. package/components/button-edit/index.esm.js +143 -139
  11. package/components/button-edit/index.umd.cjs +1 -1
  12. package/components/calendar/index.esm.js +407 -396
  13. package/components/calendar/index.umd.cjs +1 -1
  14. package/components/capsule/index.esm.js +266 -255
  15. package/components/capsule/index.umd.cjs +1 -1
  16. package/components/checkbox/index.esm.js +628 -641
  17. package/components/checkbox/index.umd.cjs +1 -1
  18. package/components/color-picker/index.esm.js +379 -374
  19. package/components/color-picker/index.umd.cjs +2 -2
  20. package/components/combo-list/index.esm.js +471 -471
  21. package/components/combo-list/index.umd.cjs +1 -1
  22. package/components/combo-tree/index.esm.js +155 -148
  23. package/components/combo-tree/index.umd.cjs +1 -1
  24. package/components/common/index.esm.js +487 -478
  25. package/components/common/index.umd.cjs +1 -1
  26. package/components/component/index.esm.js +330 -279
  27. package/components/component/index.umd.cjs +1 -1
  28. package/components/condition/index.esm.js +1171 -1277
  29. package/components/condition/index.umd.cjs +1 -1
  30. package/components/content-container/index.esm.js +220 -204
  31. package/components/content-container/index.umd.cjs +1 -1
  32. package/components/data-grid/index.esm.js +4743 -4641
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +2916 -3019
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2375 -2590
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/designer-canvas/index.css +1 -1
  39. package/components/designer-canvas/index.esm.js +9518 -1198
  40. package/components/designer-canvas/index.umd.cjs +1 -1
  41. package/components/designer-outline/index.esm.js +2 -1
  42. package/components/designer-outline/index.umd.cjs +1 -1
  43. package/components/drawer/index.esm.js +34 -38
  44. package/components/drawer/index.umd.cjs +1 -1
  45. package/components/dropdown/index.esm.js +149 -138
  46. package/components/dropdown/index.umd.cjs +2 -2
  47. package/components/dynamic-form/index.esm.js +1602 -1740
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +159 -151
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +218 -218
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/event-parameter/index.esm.js +311 -0
  54. package/components/event-parameter/index.umd.cjs +1 -0
  55. package/components/event-parameter/package.json +8 -0
  56. package/components/events-editor/index.css +1 -1
  57. package/components/events-editor/index.esm.js +533 -563
  58. package/components/events-editor/index.umd.cjs +1 -1
  59. package/components/expression-editor/index.esm.js +95 -91
  60. package/components/expression-editor/index.umd.cjs +1 -1
  61. package/components/external-container/index.esm.js +2356 -2455
  62. package/components/external-container/index.umd.cjs +1 -1
  63. package/components/field-selector/index.esm.js +3048 -3308
  64. package/components/field-selector/index.umd.cjs +1 -1
  65. package/components/filter-bar/index.css +1 -1
  66. package/components/filter-bar/index.esm.js +10537 -3249
  67. package/components/filter-bar/index.umd.cjs +1 -1
  68. package/components/flow-canvas/index.css +1 -1
  69. package/components/flow-canvas/index.esm.js +9781 -1327
  70. package/components/flow-canvas/index.umd.cjs +1 -1
  71. package/components/image-cropper/index.esm.js +353 -341
  72. package/components/image-cropper/index.umd.cjs +1 -1
  73. package/components/input-group/index.esm.js +510 -827
  74. package/components/input-group/index.umd.cjs +1 -1
  75. package/components/layout/index.esm.js +278 -268
  76. package/components/layout/index.umd.cjs +1 -1
  77. package/components/list-nav/index.esm.js +144 -136
  78. package/components/list-nav/index.umd.cjs +1 -1
  79. package/components/list-view/index.esm.js +2139 -2237
  80. package/components/list-view/index.umd.cjs +1 -1
  81. package/components/lookup/index.esm.js +6414 -6367
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.esm.js +5216 -5114
  84. package/components/mapping-editor/index.umd.cjs +1 -1
  85. package/components/message-box/index.esm.js +252 -252
  86. package/components/message-box/index.umd.cjs +1 -1
  87. package/components/modal/index.esm.js +70 -70
  88. package/components/modal/index.umd.cjs +1 -1
  89. package/components/nav/index.esm.js +486 -984
  90. package/components/nav/index.umd.cjs +3 -3
  91. package/components/number-range/index.esm.js +446 -498
  92. package/components/number-range/index.umd.cjs +1 -1
  93. package/components/number-spinner/index.esm.js +363 -388
  94. package/components/number-spinner/index.umd.cjs +1 -1
  95. package/components/order/index.esm.js +1050 -1308
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +134 -131
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +1072 -1082
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +412 -910
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/progress/index.esm.js +214 -203
  104. package/components/progress/index.umd.cjs +3 -3
  105. package/components/property-editor/index.esm.js +1361 -1536
  106. package/components/property-editor/index.umd.cjs +2 -2
  107. package/components/property-panel/index.esm.js +650 -677
  108. package/components/property-panel/index.umd.cjs +1 -1
  109. package/components/query-solution/index.css +1 -1
  110. package/components/query-solution/index.esm.js +12344 -5048
  111. package/components/query-solution/index.umd.cjs +6 -1
  112. package/components/radio-button/index.esm.js +97 -97
  113. package/components/radio-button/index.umd.cjs +1 -1
  114. package/components/radio-group/index.css +1 -1
  115. package/components/radio-group/index.esm.js +1821 -565
  116. package/components/radio-group/index.umd.cjs +1 -1
  117. package/components/rate/index.esm.js +251 -244
  118. package/components/rate/index.umd.cjs +1 -1
  119. package/components/response-layout/index.esm.js +151 -140
  120. package/components/response-layout/index.umd.cjs +1 -1
  121. package/components/response-layout-editor/index.esm.js +707 -676
  122. package/components/response-layout-editor/index.umd.cjs +1 -1
  123. package/components/response-toolbar/index.esm.js +719 -740
  124. package/components/response-toolbar/index.umd.cjs +1 -1
  125. package/components/schema-selector/index.esm.js +4977 -5249
  126. package/components/schema-selector/index.umd.cjs +2 -2
  127. package/components/search-box/index.esm.js +145 -134
  128. package/components/search-box/index.umd.cjs +1 -1
  129. package/components/section/index.esm.js +348 -337
  130. package/components/section/index.umd.cjs +1 -1
  131. package/components/smoke-detector/index.esm.js +141 -130
  132. package/components/smoke-detector/index.umd.cjs +1 -1
  133. package/components/splitter/index.esm.js +311 -301
  134. package/components/splitter/index.umd.cjs +1 -1
  135. package/components/step/index.esm.js +231 -220
  136. package/components/step/index.umd.cjs +1 -1
  137. package/components/switch/index.esm.js +385 -432
  138. package/components/switch/index.umd.cjs +1 -1
  139. package/components/tabs/index.esm.js +1932 -1914
  140. package/components/tabs/index.umd.cjs +1 -1
  141. package/components/tags/index.esm.js +351 -340
  142. package/components/tags/index.umd.cjs +1 -1
  143. package/components/text/index.esm.js +209 -199
  144. package/components/text/index.umd.cjs +1 -1
  145. package/components/textarea/index.esm.js +388 -415
  146. package/components/textarea/index.umd.cjs +1 -1
  147. package/components/time-picker/index.esm.js +619 -666
  148. package/components/time-picker/index.umd.cjs +1 -1
  149. package/components/transfer/index.esm.js +493 -486
  150. package/components/transfer/index.umd.cjs +1 -1
  151. package/components/tree-grid/index.esm.js +3169 -3278
  152. package/components/tree-grid/index.umd.cjs +1 -1
  153. package/components/tree-view/index.esm.js +2320 -2418
  154. package/components/tree-view/index.umd.cjs +1 -1
  155. package/components/uploader/index.esm.js +563 -554
  156. package/components/uploader/index.umd.cjs +2 -2
  157. package/components/verify-detail/index.esm.js +287 -276
  158. package/components/verify-detail/index.umd.cjs +1 -1
  159. package/components/video/index.esm.js +368 -324
  160. package/components/video/index.umd.cjs +1 -1
  161. package/components/weather/index.esm.js +498 -487
  162. package/components/weather/index.umd.cjs +5 -5
  163. package/farris.all.esm.js +51302 -47651
  164. package/farris.all.umd.cjs +14 -9
  165. package/index.css +1 -1
  166. package/package.json +1 -1
  167. package/types/binding-selector/index.d.ts +55 -0
  168. package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
  169. package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
  170. package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
  171. package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
  172. package/types/combo-list/src/components/list-container.component.d.ts +6 -6
  173. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  174. package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
  175. package/types/common/entity/entity-schema.d.ts +26 -11
  176. package/types/common/index.d.ts +1 -0
  177. package/types/common/types.d.ts +2 -2
  178. package/types/condition/src/condition-fields.design.component.d.ts +18 -0
  179. package/types/condition/src/types.d.ts +6 -6
  180. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
  181. package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
  182. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  183. package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
  184. package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
  185. package/types/data-view/composition/types.d.ts +2 -2
  186. package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
  187. package/types/date-picker/src/components/month/month.component.d.ts +3 -3
  188. package/types/date-picker/src/components/year/year.component.d.ts +3 -3
  189. package/types/designer-canvas/index.d.ts +2 -1
  190. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  191. package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
  192. package/types/designer-canvas/src/composition/types.d.ts +49 -40
  193. package/types/designer-canvas/src/types.d.ts +8 -20
  194. package/types/dynamic-form/index.d.ts +1 -1
  195. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
  196. package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
  197. package/types/dynamic-form/src/types.d.ts +1 -1
  198. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +5 -0
  199. package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
  200. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
  201. package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
  202. package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
  203. package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
  204. package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
  205. package/types/event-parameter/index.d.ts +31 -0
  206. package/types/event-parameter/src/composition/type.d.ts +77 -0
  207. package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
  208. package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
  209. package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
  210. package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
  211. package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
  212. package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
  213. package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
  214. package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
  215. package/types/field-selector/src/field-selector.component.d.ts +1 -2
  216. package/types/field-selector/src/field-selector.props.d.ts +0 -9
  217. package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
  218. package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
  219. package/types/list-view/src/list-view-table.component.d.ts +15 -0
  220. package/types/lookup/src/composition/use-user-data.d.ts +2 -2
  221. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
  222. package/types/modal/src/composition/modal.service.d.ts +2 -1
  223. package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
  224. package/types/page-header/src/page-header.component.d.ts +1 -1
  225. package/types/property-panel/index.d.ts +2 -1
  226. package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
  227. package/types/property-panel/src/composition/type.d.ts +0 -13
  228. package/types/query-solution/src/composition/types.d.ts +35 -4
  229. package/types/query-solution/src/composition/use-header.d.ts +21 -0
  230. package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
  231. package/types/query-solution/src/composition/use-solution.d.ts +20 -0
  232. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +17 -16
  233. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
  234. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +3 -51
  235. package/types/query-solution/src/query-solution.d.ts +10 -2
  236. package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
  237. package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
  238. package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
  239. package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
  240. package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
  241. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
  242. package/types/section/src/property-config/section.property-config.d.ts +17 -17
  243. package/types/section/src/schema/schema-resolver.d.ts +1 -2
  244. package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
  245. package/types/tabs/src/composition/types.d.ts +4 -1
  246. package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
  247. package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
  248. package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
  249. package/types/text/src/composition/types.d.ts +4 -4
  250. package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
  251. package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
  252. package/types/weather/src/composition/use-weather-color.d.ts +15 -0
  253. package/types/weather/src/composition/use-weather-data.d.ts +15 -0
  254. package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
  255. package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
  256. package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
  257. package/types/weather/src/composition/types.d.ts +0 -2
  258. /package/types/dynamic-form/src/designer/{use-designer-rules.d.ts → response-form-use-designer-rules.d.ts} +0 -0
  259. /package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +0 -0
@@ -1,17 +1,18 @@
1
- var vt = Object.defineProperty;
2
- var wt = (t, e, n) => e in t ? vt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var U = (t, e, n) => wt(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { defineComponent as te, toRefs as Ee, createVNode as s, Fragment as se, createTextVNode as C, ref as N, watch as K, inject as oe, getCurrentInstance as yt, onMounted as Fe, onUnmounted as Oe, computed as W, reactive as bt, createApp as xt, Transition as Dt, mergeProps as Tt, provide as Mt, resolveComponent as G, onBeforeMount as St } from "vue";
1
+ var gt = Object.defineProperty;
2
+ var wt = (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) => wt(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { defineComponent as te, toRefs as Fe, createVNode as s, Fragment as se, createTextVNode as C, ref as O, watch as K, inject as oe, getCurrentInstance as yt, onMounted as Ee, onUnmounted as Oe, computed as j, reactive as bt, createApp as xt, Transition as Dt, mergeProps as Mt, provide as Tt, resolveComponent as G, onBeforeMount as St } from "vue";
5
5
  import { isPlainObject as Re, cloneDeep as kt } from "lodash-es";
6
6
  import "bignumber.js";
7
- const Ct = {
7
+ import { withInstall as Ct } from "../common/index.esm.js";
8
+ const Pt = {
8
9
  // 是否被选中
9
10
  checked: { type: Boolean, default: !1 },
10
11
  // 进度条状态 默认'normal'
11
12
  id: { type: String, default: "" },
12
13
  // 禁用
13
14
  disabled: { type: Boolean, default: !1 }
14
- }, Pt = {
15
+ }, Ft = {
15
16
  // 是否显示进度条信息
16
17
  showInfo: { type: Boolean, default: !0 },
17
18
  // 进度条状态 默认'normal'
@@ -52,16 +53,16 @@ const Ct = {
52
53
  * 附件服务器端服务注入的Token
53
54
  */
54
55
  uploadServerToken: { type: String, default: "" }
55
- }, Ft = /* @__PURE__ */ te({
56
+ }, Ot = /* @__PURE__ */ te({
56
57
  name: "FUploadProgress",
57
- props: Pt,
58
+ props: Ft,
58
59
  setup(t, e) {
59
60
  const {
60
61
  showInfo: n,
61
62
  status: a,
62
63
  maxWidth: r,
63
64
  percent: i
64
- } = Ee(t);
65
+ } = Fe(t);
65
66
  return () => s("div", {
66
67
  class: ["f-progress upload-progress", "upload-progress-status-" + a.value, "f-progress-status-" + a.value, "upload-progress-line", n.value ? "upload-progress-show-info" : ""]
67
68
  }, [s("div", {
@@ -84,12 +85,12 @@ const Ct = {
84
85
  }
85
86
  }), Ge = /* @__PURE__ */ te({
86
87
  name: "FPreviewCheckbox",
87
- props: Ct,
88
+ props: Pt,
88
89
  emits: ["checkedChange"],
89
90
  setup(t, e) {
90
91
  const {
91
92
  disabled: n
92
- } = Ee(t), a = N(t.checked), r = (i) => {
93
+ } = Fe(t), a = O(t.checked), r = (i) => {
93
94
  i.stopPropagation(), n.value || (a.value = !a.value, e.emit("checkedChange", {
94
95
  checked: a.value,
95
96
  id: t.id
@@ -120,7 +121,7 @@ const Ct = {
120
121
  setup(t, e) {
121
122
  const n = oe("uploaderService");
122
123
  n.setUploadContext(e);
123
- const a = yt(), r = N("*");
124
+ const a = yt(), r = O("*");
124
125
  let i;
125
126
  const l = () => {
126
127
  i.files && (e.emit("change", i.files), n.handleFiles(i.files), i.value = null);
@@ -143,7 +144,7 @@ const Ct = {
143
144
  function u(d) {
144
145
  n.handleUploadEvent(d);
145
146
  }
146
- return Fe(() => {
147
+ return Ee(() => {
147
148
  var d, h;
148
149
  i = (d = a == null ? void 0 : a.proxy) == null ? void 0 : d.$refs.uploadInput, o(), n.setOptions(t.options), n.setExtendServerConfig(t.extendConfig), r.value = (((h = t.options) == null ? void 0 : h.allowedContentTypes) || ["*"]).join(",");
149
150
  }), Oe(() => {
@@ -170,8 +171,12 @@ const Ct = {
170
171
  }
171
172
  }), Je = {}, Ke = {};
172
173
  function Ne(t) {
173
- const { properties: e, title: n, ignore: a } = t, r = a && Array.isArray(a), i = Object.keys(e).reduce((l, o) => ((!r || !a.find((f) => f == o)) && (l[o] = e[o].type === "object" && e[o].properties ? Ne(e[o]) : kt(e[o].default)), l), {});
174
- return n && (!r || !a.find((l) => l == "id")) && (i.id = `${n}-${Date.now()}`), i;
174
+ const { properties: e, title: n, ignore: a } = t, r = a && Array.isArray(a), i = Object.keys(e).reduce((l, o) => ((!r || !a.find((f) => f === o)) && (l[o] = e[o].type === "object" && e[o].properties ? Ne(e[o]) : kt(e[o].default)), l), {});
175
+ if (n && (!r || !a.find((l) => l === "id"))) {
176
+ const l = n.toLowerCase().replace(/-/g, "_");
177
+ i.id = `${l}_${Math.random().toString().slice(2, 6)}`;
178
+ }
179
+ return i;
175
180
  }
176
181
  function et(t, e = {}, n) {
177
182
  const a = Je[t];
@@ -182,11 +187,11 @@ function et(t, e = {}, n) {
182
187
  }
183
188
  return null;
184
189
  }
185
- function Ot(t, e) {
190
+ function Nt(t, e) {
186
191
  const n = Ne(e);
187
- return Object.keys(t).reduce((a, r) => (a[r] && Re(a[r]) && Re(t[r]) ? Object.assign(a[r], t[r]) : a[r] = t[r], a), n), n;
192
+ return Object.keys(n).reduce((a, r) => (a[r] && Re(a[r]) && Re(t[r] || !t[r]) ? Object.assign(a[r], t[r] || {}) : a[r] = t[r], a), n), n;
188
193
  }
189
- function Nt(t, e) {
194
+ function At(t, e) {
190
195
  return Object.keys(t).filter((a) => t[a] != null).reduce((a, r) => {
191
196
  if (e.has(r)) {
192
197
  const i = e.get(r);
@@ -201,22 +206,22 @@ function Nt(t, e) {
201
206
  return a;
202
207
  }, {});
203
208
  }
204
- function At(t, e, n = /* @__PURE__ */ new Map()) {
205
- const a = Ot(t, e);
206
- return Nt(a, n);
209
+ function Ht(t, e, n = /* @__PURE__ */ new Map()) {
210
+ const a = Nt(t, e);
211
+ return At(a, n);
207
212
  }
208
- function Ht(t = {}) {
213
+ function _t(t = {}) {
209
214
  function e(u, d, h, m) {
210
215
  if (typeof h == "number")
211
216
  return m[u].length === h;
212
217
  if (typeof h == "object") {
213
- const x = Object.keys(h)[0], g = h[x];
214
- if (x === "not")
215
- return Number(m[u].length) !== Number(g);
216
- if (x === "moreThan")
217
- return Number(m[u].length) >= Number(g);
218
- if (x === "lessThan")
219
- return Number(m[u].length) <= Number(g);
218
+ const D = Object.keys(h)[0], v = h[D];
219
+ if (D === "not")
220
+ return Number(m[u].length) !== Number(v);
221
+ if (D === "moreThan")
222
+ return Number(m[u].length) >= Number(v);
223
+ if (D === "lessThan")
224
+ return Number(m[u].length) <= Number(v);
220
225
  }
221
226
  return !1;
222
227
  }
@@ -233,14 +238,14 @@ function Ht(t = {}) {
233
238
  return typeof d == "number" ? [{ target: h, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: h, operator: "getProperty", param: u, value: !!d }] : typeof d == "object" ? Object.keys(d).map((m) => {
234
239
  if (m === "length")
235
240
  return { target: h, operator: "length", param: null, value: d[m] };
236
- const x = m, g = d[m];
237
- return { target: h, operator: "getProperty", param: x, value: g };
241
+ const D = m, v = d[m];
242
+ return { target: h, operator: "getProperty", param: D, value: v };
238
243
  }) : [];
239
244
  }
240
245
  function i(u) {
241
246
  return Object.keys(u).reduce((h, m) => {
242
- const x = r(m, u[m]);
243
- return h.push(...x), h;
247
+ const D = r(m, u[m]);
248
+ return h.push(...D), h;
244
249
  }, []);
245
250
  }
246
251
  function l(u, d) {
@@ -251,23 +256,23 @@ function Ht(t = {}) {
251
256
  return !1;
252
257
  }
253
258
  function o(u, d) {
254
- return i(u).reduce((x, g) => x && l(g, d), !0);
259
+ return i(u).reduce((D, v) => D && l(v, d), !0);
255
260
  }
256
261
  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));
262
+ const h = Object.keys(u), m = h.includes("allOf"), D = h.includes("anyOf"), v = m || D, k = (v ? u[v ? m ? "allOf" : "anyOf" : "allOf"] : [u]).map((T) => o(T, d));
258
263
  return m ? !k.includes(!1) : k.includes(!0);
259
264
  }
260
265
  return { parseValueSchema: f };
261
266
  }
262
- const Bt = {}, _t = {};
263
- Ht();
264
- function Rt(t, e, n = /* @__PURE__ */ new Map(), a = (l, o, f) => o, r = {}, i = (l) => l) {
265
- return Je[e.title] = e, Ke[e.title] = a, Bt[e.title] = r, _t[e.title] = i, (l = {}) => {
266
- const o = At(l, e, n), f = Object.keys(t).reduce((u, d) => (u[d] = t[d].default, u), {});
267
+ const Bt = {}, Rt = {};
268
+ _t();
269
+ function Yt(t, e, n = /* @__PURE__ */ new Map(), a = (l, o, f, u) => o, r = {}, i = (l) => l) {
270
+ return Je[e.title] = e, Ke[e.title] = a, Bt[e.title] = r, Rt[e.title] = i, (l = {}) => {
271
+ const o = Ht(l, e, n), f = Object.keys(t).reduce((u, d) => (u[d] = t[d].default, u), {});
267
272
  return Object.assign(f, o);
268
273
  };
269
274
  }
270
- const Yt = "https://json-schema.org/draft/2020-12/schema", Wt = "https://farris-design.gitee.io/uploader.schema.json", jt = "uploader", qt = "A Farris Component", $t = "object", Ut = {
275
+ const Wt = "https://json-schema.org/draft/2020-12/schema", jt = "https://farris-design.gitee.io/uploader.schema.json", qt = "uploader", $t = "A Farris Component", Ut = "object", Lt = {
271
276
  id: {
272
277
  description: "The unique identifier for uploader",
273
278
  type: "string"
@@ -319,28 +324,28 @@ const Yt = "https://json-schema.org/draft/2020-12/schema", Wt = "https://farris-
319
324
  type: "boolean",
320
325
  default: !0
321
326
  }
322
- }, Lt = [
327
+ }, zt = [
323
328
  "id",
324
329
  "type"
325
- ], zt = {
326
- $schema: Yt,
327
- $id: Wt,
328
- title: jt,
329
- description: qt,
330
- type: $t,
331
- properties: Ut,
332
- required: Lt
330
+ ], Qt = {
331
+ $schema: Wt,
332
+ $id: jt,
333
+ title: qt,
334
+ description: $t,
335
+ type: Ut,
336
+ properties: Lt,
337
+ required: zt
333
338
  };
334
- function Qt(t, e) {
339
+ function Vt(t, e) {
335
340
  return { customClass: e.class, customStyle: e.style };
336
341
  }
337
- const Vt = /* @__PURE__ */ new Map([
338
- ["appearance", Qt]
342
+ const It = /* @__PURE__ */ new Map([
343
+ ["appearance", Vt]
339
344
  ]);
340
- function It(t, e, n) {
345
+ function Xt(t, e, n) {
341
346
  return e;
342
347
  }
343
- const Xt = "uploader", Gt = "A Farris Component", Zt = "object", Jt = {
348
+ const Gt = "uploader", Zt = "A Farris Component", Jt = "object", Kt = {
344
349
  basic: {
345
350
  description: "Basic Infomation",
346
351
  title: "基本信息",
@@ -545,11 +550,11 @@ const Xt = "uploader", Gt = "A Farris Component", Zt = "object", Jt = {
545
550
  }
546
551
  }
547
552
  }
548
- }, Kt = {
549
- title: Xt,
550
- description: Gt,
551
- type: Zt,
552
- categories: Jt
553
+ }, en = {
554
+ title: Gt,
555
+ description: Zt,
556
+ type: Jt,
557
+ categories: Kt
553
558
  }, Ae = {
554
559
  /** 内容区域填充 */
555
560
  contentFill: { type: Boolean, default: !1 },
@@ -614,10 +619,10 @@ const Xt = "uploader", Gt = "A Farris Component", Zt = "object", Jt = {
614
619
  * 提示服务注入的Token
615
620
  */
616
621
  notifyServiceToken: { type: String, default: "" }
617
- }, tt = Rt(Ae, zt, Vt, It, Kt), en = { jan: 1, feb: 2, mar: 3, apr: 4, may: 5, jun: 6, jul: 7, aug: 8, sep: 9, oct: 10, nov: 11, dec: 12 }, tn = { sun: 0, mon: 1, tue: 2, wed: 3, thu: 4, fri: 5, sat: 6 };
618
- class nn {
622
+ }, tt = Yt(Ae, Qt, It, Xt, en), tn = { jan: 1, feb: 2, mar: 3, apr: 4, may: 5, jun: 6, jul: 7, aug: 8, sep: 9, oct: 10, nov: 11, dec: 12 }, nn = { sun: 0, mon: 1, tue: 2, wed: 3, thu: 4, fri: 5, sat: 6 };
623
+ class an {
619
624
  constructor() {
620
- U(this, "regexes", {
625
+ L(this, "regexes", {
621
626
  YEAR: "[1-9]\\d{3}",
622
627
  MONTH: "1[0-2]|0?[1-9]",
623
628
  MONTH2: "1[0-2]|0[1-9]",
@@ -634,7 +639,7 @@ class nn {
634
639
  AMPM: "am|pm",
635
640
  UNIT: "year|month|week|day|hour|minute|second|millisecond"
636
641
  });
637
- U(this, "patterns", [
642
+ L(this, "patterns", [
638
643
  // 2010-03-15
639
644
  ["iso_8601", this.makePattern("^(_YEAR_)-(_MONTH_)-(_DAY_)$"), "$2/$3/$1"],
640
645
  // 3-15-2010
@@ -700,10 +705,10 @@ class nn {
700
705
  return e = e.replace(/_([A-Z][A-Z0-9]+)_/g, (n, a) => this.regexes[a]), new RegExp(e, "i");
701
706
  }
702
707
  getMonthByName(e) {
703
- return en[String(e).slice(0, 3).toLowerCase()];
708
+ return tn[String(e).slice(0, 3).toLowerCase()];
704
709
  }
705
710
  getWeekdayByName(e) {
706
- return tn[String(e).slice(0, 3).toLowerCase()];
711
+ return nn[String(e).slice(0, 3).toLowerCase()];
707
712
  }
708
713
  parse(e) {
709
714
  if (!isNaN(Number(e)))
@@ -744,14 +749,14 @@ function z(t) {
744
749
  function ee(t, e) {
745
750
  return t instanceof Date ? new t.constructor(e) : new Date(e);
746
751
  }
747
- const nt = 6048e5, an = 864e5, at = 6e4, rt = 36e5;
748
- let rn = {};
749
- function Te() {
750
- return rn;
752
+ const nt = 6048e5, rn = 864e5, at = 6e4, rt = 36e5;
753
+ let sn = {};
754
+ function Me() {
755
+ return sn;
751
756
  }
752
757
  function pe(t, e) {
753
758
  var o, f, u, d;
754
- const n = Te(), a = (e == null ? void 0 : e.weekStartsOn) ?? ((f = (o = e == null ? void 0 : e.locale) == null ? void 0 : o.options) == null ? void 0 : f.weekStartsOn) ?? n.weekStartsOn ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, r = z(t), i = r.getDay(), l = (i < a ? 7 : 0) + i - a;
759
+ 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 = z(t), i = r.getDay(), l = (i < a ? 7 : 0) + i - a;
755
760
  return r.setDate(r.getDate() - l), r.setHours(0, 0, 0, 0), r;
756
761
  }
757
762
  function xe(t) {
@@ -783,28 +788,28 @@ function We(t) {
783
788
  );
784
789
  return n.setUTCFullYear(e.getFullYear()), +t - +n;
785
790
  }
786
- function sn(t, e) {
791
+ function on(t, e) {
787
792
  const n = Ye(t), a = Ye(e), r = +n - We(n), i = +a - We(a);
788
- return Math.round((r - i) / an);
793
+ return Math.round((r - i) / rn);
789
794
  }
790
- function on(t) {
795
+ function ln(t) {
791
796
  const e = it(t), n = ee(t, 0);
792
797
  return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), xe(n);
793
798
  }
794
- function ln(t) {
799
+ function un(t) {
795
800
  return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
796
801
  }
797
802
  function st(t) {
798
- if (!ln(t) && typeof t != "number")
803
+ if (!un(t) && typeof t != "number")
799
804
  return !1;
800
805
  const e = z(t);
801
806
  return !isNaN(Number(e));
802
807
  }
803
- function un(t) {
808
+ function cn(t) {
804
809
  const e = z(t), n = ee(t, 0);
805
810
  return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
806
811
  }
807
- const cn = {
812
+ const dn = {
808
813
  lessThanXSeconds: {
809
814
  one: "less than a second",
810
815
  other: "less than {{count}} seconds"
@@ -866,9 +871,9 @@ const cn = {
866
871
  one: "almost 1 year",
867
872
  other: "almost {{count}} years"
868
873
  }
869
- }, dn = (t, e, n) => {
874
+ }, fn = (t, e, n) => {
870
875
  let a;
871
- const r = cn[t];
876
+ const r = dn[t];
872
877
  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
878
  };
874
879
  function Se(t) {
@@ -877,32 +882,32 @@ function Se(t) {
877
882
  return t.formats[n] || t.formats[t.defaultWidth];
878
883
  };
879
884
  }
880
- const fn = {
885
+ const pn = {
881
886
  full: "EEEE, MMMM do, y",
882
887
  long: "MMMM do, y",
883
888
  medium: "MMM d, y",
884
889
  short: "MM/dd/yyyy"
885
- }, pn = {
890
+ }, mn = {
886
891
  full: "h:mm:ss a zzzz",
887
892
  long: "h:mm:ss a z",
888
893
  medium: "h:mm:ss a",
889
894
  short: "h:mm a"
890
- }, mn = {
895
+ }, hn = {
891
896
  full: "{{date}} 'at' {{time}}",
892
897
  long: "{{date}} 'at' {{time}}",
893
898
  medium: "{{date}}, {{time}}",
894
899
  short: "{{date}}, {{time}}"
895
- }, hn = {
900
+ }, vn = {
896
901
  date: Se({
897
- formats: fn,
902
+ formats: pn,
898
903
  defaultWidth: "full"
899
904
  }),
900
905
  time: Se({
901
- formats: pn,
906
+ formats: mn,
902
907
  defaultWidth: "full"
903
908
  }),
904
909
  dateTime: Se({
905
- formats: mn,
910
+ formats: hn,
906
911
  defaultWidth: "full"
907
912
  })
908
913
  }, gn = {
@@ -912,7 +917,7 @@ const fn = {
912
917
  tomorrow: "'tomorrow at' p",
913
918
  nextWeek: "eeee 'at' p",
914
919
  other: "P"
915
- }, vn = (t, e, n, a) => gn[t];
920
+ }, wn = (t, e, n, a) => gn[t];
916
921
  function ce(t) {
917
922
  return (e, n) => {
918
923
  const a = n != null && n.context ? String(n.context) : "standalone";
@@ -928,15 +933,15 @@ function ce(t) {
928
933
  return r[i];
929
934
  };
930
935
  }
931
- const wn = {
936
+ const yn = {
932
937
  narrow: ["B", "A"],
933
938
  abbreviated: ["BC", "AD"],
934
939
  wide: ["Before Christ", "Anno Domini"]
935
- }, yn = {
940
+ }, bn = {
936
941
  narrow: ["1", "2", "3", "4"],
937
942
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
938
943
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
939
- }, bn = {
944
+ }, xn = {
940
945
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
941
946
  abbreviated: [
942
947
  "Jan",
@@ -966,7 +971,7 @@ const wn = {
966
971
  "November",
967
972
  "December"
968
973
  ]
969
- }, xn = {
974
+ }, Dn = {
970
975
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
971
976
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
972
977
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -979,7 +984,7 @@ const wn = {
979
984
  "Friday",
980
985
  "Saturday"
981
986
  ]
982
- }, Dn = {
987
+ }, Mn = {
983
988
  narrow: {
984
989
  am: "a",
985
990
  pm: "p",
@@ -1041,7 +1046,7 @@ const wn = {
1041
1046
  evening: "in the evening",
1042
1047
  night: "at night"
1043
1048
  }
1044
- }, Mn = (t, e) => {
1049
+ }, Sn = (t, e) => {
1045
1050
  const n = Number(t), a = n % 100;
1046
1051
  if (a > 20 || a < 10)
1047
1052
  switch (a % 10) {
@@ -1053,27 +1058,27 @@ const wn = {
1053
1058
  return n + "rd";
1054
1059
  }
1055
1060
  return n + "th";
1056
- }, Sn = {
1057
- ordinalNumber: Mn,
1061
+ }, kn = {
1062
+ ordinalNumber: Sn,
1058
1063
  era: ce({
1059
- values: wn,
1064
+ values: yn,
1060
1065
  defaultWidth: "wide"
1061
1066
  }),
1062
1067
  quarter: ce({
1063
- values: yn,
1068
+ values: bn,
1064
1069
  defaultWidth: "wide",
1065
1070
  argumentCallback: (t) => t - 1
1066
1071
  }),
1067
1072
  month: ce({
1068
- values: bn,
1073
+ values: xn,
1069
1074
  defaultWidth: "wide"
1070
1075
  }),
1071
1076
  day: ce({
1072
- values: xn,
1077
+ values: Dn,
1073
1078
  defaultWidth: "wide"
1074
1079
  }),
1075
1080
  dayPeriod: ce({
1076
- values: Dn,
1081
+ values: Mn,
1077
1082
  defaultWidth: "wide",
1078
1083
  formattingValues: Tn,
1079
1084
  defaultFormattingWidth: "wide"
@@ -1084,9 +1089,9 @@ function de(t) {
1084
1089
  const a = n.width, r = a && t.matchPatterns[a] || t.matchPatterns[t.defaultMatchWidth], i = e.match(r);
1085
1090
  if (!i)
1086
1091
  return null;
1087
- const l = i[0], o = a && t.parsePatterns[a] || t.parsePatterns[t.defaultParseWidth], f = Array.isArray(o) ? Cn(o, (h) => h.test(l)) : (
1092
+ const l = i[0], o = a && t.parsePatterns[a] || t.parsePatterns[t.defaultParseWidth], f = Array.isArray(o) ? Pn(o, (h) => h.test(l)) : (
1088
1093
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
1089
- kn(o, (h) => h.test(l))
1094
+ Cn(o, (h) => h.test(l))
1090
1095
  );
1091
1096
  let u;
1092
1097
  u = t.valueCallback ? t.valueCallback(f) : f, u = n.valueCallback ? (
@@ -1097,17 +1102,17 @@ function de(t) {
1097
1102
  return { value: u, rest: d };
1098
1103
  };
1099
1104
  }
1100
- function kn(t, e) {
1105
+ function Cn(t, e) {
1101
1106
  for (const n in t)
1102
1107
  if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
1103
1108
  return n;
1104
1109
  }
1105
- function Cn(t, e) {
1110
+ function Pn(t, e) {
1106
1111
  for (let n = 0; n < t.length; n++)
1107
1112
  if (e(t[n]))
1108
1113
  return n;
1109
1114
  }
1110
- function Pn(t) {
1115
+ function Fn(t) {
1111
1116
  return (e, n = {}) => {
1112
1117
  const a = e.match(t.matchPattern);
1113
1118
  if (!a) return null;
@@ -1119,23 +1124,23 @@ function Pn(t) {
1119
1124
  return { value: l, rest: o };
1120
1125
  };
1121
1126
  }
1122
- const En = /^(\d+)(th|st|nd|rd)?/i, Fn = /\d+/i, On = {
1127
+ const En = /^(\d+)(th|st|nd|rd)?/i, On = /\d+/i, Nn = {
1123
1128
  narrow: /^(b|a)/i,
1124
1129
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1125
1130
  wide: /^(before christ|before common era|anno domini|common era)/i
1126
- }, Nn = {
1127
- any: [/^b/i, /^(a|c)/i]
1128
1131
  }, An = {
1132
+ any: [/^b/i, /^(a|c)/i]
1133
+ }, Hn = {
1129
1134
  narrow: /^[1234]/i,
1130
1135
  abbreviated: /^q[1234]/i,
1131
1136
  wide: /^[1234](th|st|nd|rd)? quarter/i
1132
- }, Hn = {
1137
+ }, _n = {
1133
1138
  any: [/1/i, /2/i, /3/i, /4/i]
1134
1139
  }, Bn = {
1135
1140
  narrow: /^[jfmasond]/i,
1136
1141
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1137
1142
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1138
- }, _n = {
1143
+ }, Rn = {
1139
1144
  narrow: [
1140
1145
  /^j/i,
1141
1146
  /^f/i,
@@ -1164,18 +1169,18 @@ const En = /^(\d+)(th|st|nd|rd)?/i, Fn = /\d+/i, On = {
1164
1169
  /^n/i,
1165
1170
  /^d/i
1166
1171
  ]
1167
- }, Rn = {
1172
+ }, Yn = {
1168
1173
  narrow: /^[smtwf]/i,
1169
1174
  short: /^(su|mo|tu|we|th|fr|sa)/i,
1170
1175
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1171
1176
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1172
- }, Yn = {
1177
+ }, Wn = {
1173
1178
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1174
1179
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1175
- }, Wn = {
1180
+ }, jn = {
1176
1181
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1177
1182
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1178
- }, jn = {
1183
+ }, qn = {
1179
1184
  any: {
1180
1185
  am: /^a/i,
1181
1186
  pm: /^p/i,
@@ -1186,79 +1191,79 @@ const En = /^(\d+)(th|st|nd|rd)?/i, Fn = /\d+/i, On = {
1186
1191
  evening: /evening/i,
1187
1192
  night: /night/i
1188
1193
  }
1189
- }, qn = {
1190
- ordinalNumber: Pn({
1194
+ }, $n = {
1195
+ ordinalNumber: Fn({
1191
1196
  matchPattern: En,
1192
- parsePattern: Fn,
1197
+ parsePattern: On,
1193
1198
  valueCallback: (t) => parseInt(t, 10)
1194
1199
  }),
1195
1200
  era: de({
1196
- matchPatterns: On,
1201
+ matchPatterns: Nn,
1197
1202
  defaultMatchWidth: "wide",
1198
- parsePatterns: Nn,
1203
+ parsePatterns: An,
1199
1204
  defaultParseWidth: "any"
1200
1205
  }),
1201
1206
  quarter: de({
1202
- matchPatterns: An,
1207
+ matchPatterns: Hn,
1203
1208
  defaultMatchWidth: "wide",
1204
- parsePatterns: Hn,
1209
+ parsePatterns: _n,
1205
1210
  defaultParseWidth: "any",
1206
1211
  valueCallback: (t) => t + 1
1207
1212
  }),
1208
1213
  month: de({
1209
1214
  matchPatterns: Bn,
1210
1215
  defaultMatchWidth: "wide",
1211
- parsePatterns: _n,
1216
+ parsePatterns: Rn,
1212
1217
  defaultParseWidth: "any"
1213
1218
  }),
1214
1219
  day: de({
1215
- matchPatterns: Rn,
1220
+ matchPatterns: Yn,
1216
1221
  defaultMatchWidth: "wide",
1217
- parsePatterns: Yn,
1222
+ parsePatterns: Wn,
1218
1223
  defaultParseWidth: "any"
1219
1224
  }),
1220
1225
  dayPeriod: de({
1221
- matchPatterns: Wn,
1226
+ matchPatterns: jn,
1222
1227
  defaultMatchWidth: "any",
1223
- parsePatterns: jn,
1228
+ parsePatterns: qn,
1224
1229
  defaultParseWidth: "any"
1225
1230
  })
1226
- }, $n = {
1231
+ }, Un = {
1227
1232
  code: "en-US",
1228
- formatDistance: dn,
1229
- formatLong: hn,
1230
- formatRelative: vn,
1231
- localize: Sn,
1232
- match: qn,
1233
+ formatDistance: fn,
1234
+ formatLong: vn,
1235
+ formatRelative: wn,
1236
+ localize: kn,
1237
+ match: $n,
1233
1238
  options: {
1234
1239
  weekStartsOn: 0,
1235
1240
  firstWeekContainsDate: 1
1236
1241
  }
1237
1242
  };
1238
- function Un(t) {
1243
+ function Ln(t) {
1239
1244
  const e = z(t);
1240
- return sn(e, un(e)) + 1;
1245
+ return on(e, cn(e)) + 1;
1241
1246
  }
1242
- function Ln(t) {
1243
- const e = z(t), n = +xe(e) - +on(e);
1247
+ function zn(t) {
1248
+ const e = z(t), n = +xe(e) - +ln(e);
1244
1249
  return Math.round(n / nt) + 1;
1245
1250
  }
1246
1251
  function ot(t, e) {
1247
- var d, h, m, x;
1248
- const n = z(t), a = n.getFullYear(), r = Te(), i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((x = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, l = ee(t, 0);
1252
+ var d, h, m, D;
1253
+ const n = z(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 ?? ((D = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : D.firstWeekContainsDate) ?? 1, l = ee(t, 0);
1249
1254
  l.setFullYear(a + 1, 0, i), l.setHours(0, 0, 0, 0);
1250
1255
  const o = pe(l, e), f = ee(t, 0);
1251
1256
  f.setFullYear(a, 0, i), f.setHours(0, 0, 0, 0);
1252
1257
  const u = pe(f, e);
1253
1258
  return n.getTime() >= o.getTime() ? a + 1 : n.getTime() >= u.getTime() ? a : a - 1;
1254
1259
  }
1255
- function zn(t, e) {
1260
+ function Qn(t, e) {
1256
1261
  var o, f, u, d;
1257
- const n = Te(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((f = (o = e == null ? void 0 : e.locale) == null ? void 0 : o.options) == null ? void 0 : f.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, r = ot(t, e), i = ee(t, 0);
1262
+ 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 = ot(t, e), i = ee(t, 0);
1258
1263
  return i.setFullYear(r, 0, a), i.setHours(0, 0, 0, 0), pe(i, e);
1259
1264
  }
1260
- function Qn(t, e) {
1261
- const n = z(t), a = +pe(n, e) - +zn(n, e);
1265
+ function Vn(t, e) {
1266
+ const n = z(t), a = +pe(n, e) - +Qn(n, e);
1262
1267
  return Math.round(a / nt) + 1;
1263
1268
  }
1264
1269
  function P(t, e) {
@@ -1486,12 +1491,12 @@ const X = {
1486
1491
  },
1487
1492
  // Local week of year
1488
1493
  w: function(t, e, n, a) {
1489
- const r = Qn(t, a);
1494
+ const r = Vn(t, a);
1490
1495
  return e === "wo" ? n.ordinalNumber(r, { unit: "week" }) : P(r, e.length);
1491
1496
  },
1492
1497
  // ISO week of year
1493
1498
  I: function(t, e, n) {
1494
- const a = Ln(t);
1499
+ const a = zn(t);
1495
1500
  return e === "Io" ? n.ordinalNumber(a, { unit: "week" }) : P(a, e.length);
1496
1501
  },
1497
1502
  // Day of the month
@@ -1500,7 +1505,7 @@ const X = {
1500
1505
  },
1501
1506
  // Day of year
1502
1507
  D: function(t, e, n) {
1503
- const a = Un(t);
1508
+ const a = Ln(t);
1504
1509
  return e === "Do" ? n.ordinalNumber(a, { unit: "dayOfYear" }) : P(a, e.length);
1505
1510
  },
1506
1511
  // Day of week
@@ -1851,7 +1856,7 @@ const Ue = (t, e) => {
1851
1856
  default:
1852
1857
  return e.time({ width: "full" });
1853
1858
  }
1854
- }, Vn = (t, e) => {
1859
+ }, In = (t, e) => {
1855
1860
  const n = t.match(/(P+)(p+)?/) || [], a = n[1], r = n[2];
1856
1861
  if (!r)
1857
1862
  return Ue(t, e);
@@ -1872,50 +1877,50 @@ const Ue = (t, e) => {
1872
1877
  break;
1873
1878
  }
1874
1879
  return i.replace("{{date}}", Ue(a, e)).replace("{{time}}", lt(r, e));
1875
- }, In = {
1880
+ }, Xn = {
1876
1881
  p: lt,
1877
- P: Vn
1878
- }, Xn = /^D+$/, Gn = /^Y+$/, Zn = ["D", "DD", "YY", "YYYY"];
1879
- function Jn(t) {
1880
- return Xn.test(t);
1881
- }
1882
+ P: In
1883
+ }, Gn = /^D+$/, Zn = /^Y+$/, Jn = ["D", "DD", "YY", "YYYY"];
1882
1884
  function Kn(t) {
1883
1885
  return Gn.test(t);
1884
1886
  }
1885
- function ea(t, e, n) {
1886
- const a = ta(t, e, n);
1887
- if (console.warn(a), Zn.includes(t)) throw new RangeError(a);
1887
+ function ea(t) {
1888
+ return Zn.test(t);
1888
1889
  }
1889
1890
  function ta(t, e, n) {
1891
+ const a = na(t, e, n);
1892
+ if (console.warn(a), Jn.includes(t)) throw new RangeError(a);
1893
+ }
1894
+ function na(t, e, n) {
1890
1895
  const a = t[0] === "Y" ? "years" : "days of the month";
1891
1896
  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
1897
  }
1893
- const na = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, aa = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ra = /^'([^]*?)'?$/, ia = /''/g, sa = /[a-zA-Z]/;
1898
+ const aa = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ra = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ia = /^'([^]*?)'?$/, sa = /''/g, oa = /[a-zA-Z]/;
1894
1899
  function we(t, e, n) {
1895
- var d, h, m, x;
1896
- const a = Te(), r = a.locale ?? $n, i = a.firstWeekContainsDate ?? ((h = (d = a.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, l = a.weekStartsOn ?? ((x = (m = a.locale) == null ? void 0 : m.options) == null ? void 0 : x.weekStartsOn) ?? 0, o = z(t);
1900
+ var d, h, m, D;
1901
+ const a = Me(), r = a.locale ?? Un, i = a.firstWeekContainsDate ?? ((h = (d = a.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, l = a.weekStartsOn ?? ((D = (m = a.locale) == null ? void 0 : m.options) == null ? void 0 : D.weekStartsOn) ?? 0, o = z(t);
1897
1902
  if (!st(o))
1898
1903
  throw new RangeError("Invalid time value");
1899
- let f = e.match(aa).map((g) => {
1900
- const b = g[0];
1901
- if (b === "p" || b === "P") {
1902
- const y = In[b];
1903
- return y(g, r.formatLong);
1904
- }
1905
- return g;
1906
- }).join("").match(na).map((g) => {
1907
- if (g === "''")
1904
+ let f = e.match(ra).map((v) => {
1905
+ const x = v[0];
1906
+ if (x === "p" || x === "P") {
1907
+ const b = Xn[x];
1908
+ return b(v, r.formatLong);
1909
+ }
1910
+ return v;
1911
+ }).join("").match(aa).map((v) => {
1912
+ if (v === "''")
1908
1913
  return { isToken: !1, value: "'" };
1909
- const b = g[0];
1910
- if (b === "'")
1911
- return { isToken: !1, value: oa(g) };
1912
- if (je[b])
1913
- return { isToken: !0, value: g };
1914
- if (b.match(sa))
1914
+ const x = v[0];
1915
+ if (x === "'")
1916
+ return { isToken: !1, value: la(v) };
1917
+ if (je[x])
1918
+ return { isToken: !0, value: v };
1919
+ if (x.match(oa))
1915
1920
  throw new RangeError(
1916
- "Format string contains an unescaped latin alphabet character `" + b + "`"
1921
+ "Format string contains an unescaped latin alphabet character `" + x + "`"
1917
1922
  );
1918
- return { isToken: !1, value: g };
1923
+ return { isToken: !1, value: v };
1919
1924
  });
1920
1925
  r.localize.preprocessor && (f = r.localize.preprocessor(o, f));
1921
1926
  const u = {
@@ -1923,33 +1928,33 @@ function we(t, e, n) {
1923
1928
  weekStartsOn: l,
1924
1929
  locale: r
1925
1930
  };
1926
- return f.map((g) => {
1927
- if (!g.isToken) return g.value;
1928
- const b = g.value;
1929
- (Kn(b) || Jn(b)) && ea(b, e, String(t));
1930
- const y = je[b[0]];
1931
- return y(o, b, r.localize, u);
1931
+ return f.map((v) => {
1932
+ if (!v.isToken) return v.value;
1933
+ const x = v.value;
1934
+ (ea(x) || Kn(x)) && ta(x, e, String(t));
1935
+ const b = je[x[0]];
1936
+ return b(o, x, r.localize, u);
1932
1937
  }).join("");
1933
1938
  }
1934
- function oa(t) {
1935
- const e = t.match(ra);
1936
- return e ? e[1].replace(ia, "'") : t;
1939
+ function la(t) {
1940
+ const e = t.match(ia);
1941
+ return e ? e[1].replace(sa, "'") : t;
1937
1942
  }
1938
1943
  function ke(t, e) {
1939
- const a = da(t);
1944
+ const a = fa(t);
1940
1945
  let r;
1941
1946
  if (a.date) {
1942
- const f = fa(a.date, 2);
1943
- r = pa(f.restDateString, f.year);
1947
+ const f = pa(a.date, 2);
1948
+ r = ma(f.restDateString, f.year);
1944
1949
  }
1945
1950
  if (!r || isNaN(r.getTime()))
1946
1951
  return /* @__PURE__ */ new Date(NaN);
1947
1952
  const i = r.getTime();
1948
1953
  let l = 0, o;
1949
- if (a.time && (l = ma(a.time), isNaN(l)))
1954
+ if (a.time && (l = ha(a.time), isNaN(l)))
1950
1955
  return /* @__PURE__ */ new Date(NaN);
1951
1956
  if (a.timezone) {
1952
- if (o = ha(a.timezone), isNaN(o))
1957
+ if (o = va(a.timezone), isNaN(o))
1953
1958
  return /* @__PURE__ */ new Date(NaN);
1954
1959
  } else {
1955
1960
  const f = new Date(i + l), u = /* @__PURE__ */ new Date(0);
@@ -1970,8 +1975,8 @@ const ye = {
1970
1975
  dateTimeDelimiter: /[T ]/,
1971
1976
  timeZoneDelimiter: /[Z ]/i,
1972
1977
  timezone: /([Z+-].*)$/
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) {
1978
+ }, ua = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, ca = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, da = /^([+-])(\d{2})(?::?(\d{2}))?$/;
1979
+ function fa(t) {
1975
1980
  const e = {}, n = t.split(ye.dateTimeDelimiter);
1976
1981
  let a;
1977
1982
  if (n.length > 2)
@@ -1985,7 +1990,7 @@ function da(t) {
1985
1990
  }
1986
1991
  return e;
1987
1992
  }
1988
- function fa(t, e) {
1993
+ function pa(t, e) {
1989
1994
  const n = new RegExp(
1990
1995
  "^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"
1991
1996
  ), a = t.match(n);
@@ -1996,36 +2001,36 @@ function fa(t, e) {
1996
2001
  restDateString: t.slice((a[1] || a[2]).length)
1997
2002
  };
1998
2003
  }
1999
- function pa(t, e) {
2004
+ function ma(t, e) {
2000
2005
  if (e === null) return /* @__PURE__ */ new Date(NaN);
2001
- const n = t.match(la);
2006
+ const n = t.match(ua);
2002
2007
  if (!n) return /* @__PURE__ */ new Date(NaN);
2003
2008
  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
2009
  if (a)
2005
- return ba(e, o, f) ? ga(e, o, f) : /* @__PURE__ */ new Date(NaN);
2010
+ return xa(e, o, f) ? ga(e, o, f) : /* @__PURE__ */ new Date(NaN);
2006
2011
  {
2007
2012
  const u = /* @__PURE__ */ new Date(0);
2008
- return !wa(e, i, l) || !ya(e, r) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(e, i, Math.max(r, l)), u);
2013
+ return !ya(e, i, l) || !ba(e, r) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(e, i, Math.max(r, l)), u);
2009
2014
  }
2010
2015
  }
2011
2016
  function fe(t) {
2012
2017
  return t ? parseInt(t) : 1;
2013
2018
  }
2014
- function ma(t) {
2015
- const e = t.match(ua);
2019
+ function ha(t) {
2020
+ const e = t.match(ca);
2016
2021
  if (!e) return NaN;
2017
2022
  const n = Ce(e[1]), a = Ce(e[2]), r = Ce(e[3]);
2018
- return xa(n, a, r) ? n * rt + a * at + r * 1e3 : NaN;
2023
+ return Da(n, a, r) ? n * rt + a * at + r * 1e3 : NaN;
2019
2024
  }
2020
2025
  function Ce(t) {
2021
2026
  return t && parseFloat(t.replace(",", ".")) || 0;
2022
2027
  }
2023
- function ha(t) {
2028
+ function va(t) {
2024
2029
  if (t === "Z") return 0;
2025
- const e = t.match(ca);
2030
+ const e = t.match(da);
2026
2031
  if (!e) return 0;
2027
2032
  const n = e[1] === "+" ? -1 : 1, a = parseInt(e[2]), r = e[3] && parseInt(e[3]) || 0;
2028
- return Da(a, r) ? n * (a * rt + r * at) : NaN;
2033
+ return Ma(a, r) ? n * (a * rt + r * at) : NaN;
2029
2034
  }
2030
2035
  function ga(t, e, n) {
2031
2036
  const a = /* @__PURE__ */ new Date(0);
@@ -2033,27 +2038,27 @@ function ga(t, e, n) {
2033
2038
  const r = a.getUTCDay() || 7, i = (e - 1) * 7 + n + 1 - r;
2034
2039
  return a.setUTCDate(a.getUTCDate() + i), a;
2035
2040
  }
2036
- const va = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
2041
+ const wa = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
2037
2042
  function ut(t) {
2038
2043
  return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
2039
2044
  }
2040
- function wa(t, e, n) {
2041
- return e >= 0 && e <= 11 && n >= 1 && n <= (va[e] || (ut(t) ? 29 : 28));
2045
+ function ya(t, e, n) {
2046
+ return e >= 0 && e <= 11 && n >= 1 && n <= (wa[e] || (ut(t) ? 29 : 28));
2042
2047
  }
2043
- function ya(t, e) {
2048
+ function ba(t, e) {
2044
2049
  return e >= 1 && e <= (ut(t) ? 366 : 365);
2045
2050
  }
2046
- function ba(t, e, n) {
2051
+ function xa(t, e, n) {
2047
2052
  return e >= 1 && e <= 53 && n >= 0 && n <= 6;
2048
2053
  }
2049
- function xa(t, e, n) {
2054
+ function Da(t, e, n) {
2050
2055
  return t === 24 ? e === 0 && n === 0 : n >= 0 && n < 60 && e >= 0 && e < 60 && t >= 0 && t < 25;
2051
2056
  }
2052
- function Da(t, e) {
2057
+ function Ma(t, e) {
2053
2058
  return e >= 0 && e <= 59;
2054
2059
  }
2055
2060
  function Ta() {
2056
- const t = new nn();
2061
+ const t = new an();
2057
2062
  function e(n, a) {
2058
2063
  var i;
2059
2064
  if (!n || typeof n == "string" && n.indexOf("0001") === 0)
@@ -2075,8 +2080,8 @@ function Ta() {
2075
2080
  formatTo: e
2076
2081
  };
2077
2082
  }
2078
- const Ma = ["moz", "ms", "webkit"];
2079
- function Sa() {
2083
+ const Sa = ["moz", "ms", "webkit"];
2084
+ function ka() {
2080
2085
  let t = 0;
2081
2086
  return (e) => {
2082
2087
  const n = (/* @__PURE__ */ new Date()).getTime(), a = Math.max(0, 16 - (n - t)), r = setTimeout(() => {
@@ -2085,32 +2090,26 @@ function Sa() {
2085
2090
  return t = n + a, r;
2086
2091
  };
2087
2092
  }
2088
- function ka() {
2093
+ function Ca() {
2089
2094
  if (typeof window > "u")
2090
2095
  return () => 0;
2091
2096
  if (window.requestAnimationFrame)
2092
2097
  return window.requestAnimationFrame.bind(window);
2093
- const t = Ma.filter((e) => `${e}RequestAnimationFrame` in window)[0];
2094
- return t ? window[`${t}RequestAnimationFrame`] : Sa();
2095
- }
2096
- ka();
2097
- const Ca = (t) => {
2098
- const e = t;
2099
- return e.install = function(n) {
2100
- n.component(e.name, t);
2101
- }, t;
2102
- };
2098
+ const t = Sa.filter((e) => `${e}RequestAnimationFrame` in window)[0];
2099
+ return t ? window[`${t}RequestAnimationFrame`] : ka();
2100
+ }
2101
+ Ca();
2103
2102
  var Q = /* @__PURE__ */ ((t) => (t[t.Queue = 0] = "Queue", t[t.Uploading = 1] = "Uploading", t[t.Done = 2] = "Done", t[t.Cancelled = 3] = "Cancelled", t[t.Remove = 4] = "Remove", t[t.Error = 5] = "Error", t))(Q || {});
2104
2103
  class Pa {
2105
2104
  constructor(e = {}, n = {}) {
2106
2105
  /**
2107
2106
  * 上传配置
2108
2107
  */
2109
- U(this, "uploadConfig");
2108
+ L(this, "uploadConfig");
2110
2109
  /**
2111
2110
  * 删除配置
2112
2111
  */
2113
- U(this, "removeConfig");
2112
+ L(this, "removeConfig");
2114
2113
  const a = { type: "config", url: "", timeout: 0, headers: null, data: {} };
2115
2114
  this.uploadConfig = Object.assign({}, a, e), this.removeConfig = Object.assign({}, a, n);
2116
2115
  }
@@ -2125,7 +2124,7 @@ function Le(t, e) {
2125
2124
  let n = "";
2126
2125
  return t.indexOf(".") === -1 && e.hasOwnProperty(t) ? n = e[t] : n = t.split(".").reduce((a, r) => a ? a[r] : null, e), n;
2127
2126
  }
2128
- function Ea(t) {
2127
+ function Fa(t) {
2129
2128
  return (e, n) => {
2130
2129
  if (!e.hasOwnProperty(t) || e[t] === void 0 || e[t] === null)
2131
2130
  return 1;
@@ -2214,7 +2213,7 @@ function Qe(t) {
2214
2213
  }
2215
2214
  return 5;
2216
2215
  }
2217
- function Fa(t) {
2216
+ function Ea(t) {
2218
2217
  let e = t;
2219
2218
  return t ? (typeof t == "string" && (e = parseInt(t, 10)), me(e)) : "0 Byte";
2220
2219
  }
@@ -2270,7 +2269,7 @@ function Ha(t, e) {
2270
2269
  (a) => a.toLowerCase() === n.toLowerCase()
2271
2270
  ) > -1;
2272
2271
  }
2273
- function Ba(t) {
2272
+ function _a(t) {
2274
2273
  if (t)
2275
2274
  return t.split(`
2276
2275
  `).map((e) => e.split(/: */, 2)).filter((e) => e[0]).reduce((e, n) => (e[n[0]] = n[1], e), {});
@@ -2278,45 +2277,45 @@ function Ba(t) {
2278
2277
  function Xe(t) {
2279
2278
  return new Date(t * 1e3).toISOString().substr(11, 8);
2280
2279
  }
2281
- class _a extends Pa {
2280
+ class Ba extends Pa {
2282
2281
  upload(e, n, a, r) {
2283
2282
  const i = e[0];
2284
2283
  return new Promise((l, o) => {
2285
2284
  var k, A;
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
- 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) => {
2289
- var O;
2290
- if (M.lengthComputable) {
2291
- const D = Math.round(M.loaded * 100 / M.total), H = (/* @__PURE__ */ new Date()).getTime() - x;
2292
- b = Math.round(M.loaded / H * 1e3), g = ((O = i.progress) == null ? void 0 : O.data) && i.progress.data.startTime || (/* @__PURE__ */ new Date()).getTime(), y = Math.ceil((M.total - M.loaded) / b), i.progress = {
2285
+ const f = n.url || a.url || "", u = n.method || "POST", d = n.data || {}, h = n.headers || {}, m = new XMLHttpRequest(), D = (/* @__PURE__ */ new Date()).getTime();
2286
+ let v = ((k = i.progress) == null ? void 0 : k.data) && i.progress.data.startTime || D, x = 0, b = null;
2287
+ m.upload.addEventListener("progress", (T) => {
2288
+ var H;
2289
+ if (T.lengthComputable) {
2290
+ const g = Math.round(T.loaded * 100 / T.total), N = (/* @__PURE__ */ new Date()).getTime() - D;
2291
+ x = Math.round(T.loaded / N * 1e3), v = ((H = i.progress) == null ? void 0 : H.data) && i.progress.data.startTime || (/* @__PURE__ */ new Date()).getTime(), b = Math.ceil((T.total - T.loaded) / x), i.progress = {
2293
2292
  status: Q.Uploading,
2294
2293
  data: {
2295
- percentage: D,
2296
- speed: b,
2297
- speedHuman: `${me(b)}/s`,
2298
- startTime: g,
2294
+ percentage: g,
2295
+ speed: x,
2296
+ speedHuman: `${me(x)}/s`,
2297
+ startTime: v,
2299
2298
  endTime: null,
2300
- eta: y,
2301
- etaHuman: Xe(y)
2299
+ eta: b,
2300
+ etaHuman: Xe(b)
2302
2301
  }
2303
2302
  }, r({ type: "uploading", files: [i] });
2304
2303
  }
2305
- }, !1), m.upload.addEventListener("error", (M) => {
2306
- o(M);
2304
+ }, !1), m.upload.addEventListener("error", (T) => {
2305
+ o(T);
2307
2306
  }), m.onreadystatechange = () => {
2308
2307
  if (m.readyState === XMLHttpRequest.DONE) {
2309
- const M = Math.round(i.size / ((/* @__PURE__ */ new Date()).getTime() - g) * 1e3);
2308
+ const T = Math.round(i.size / ((/* @__PURE__ */ new Date()).getTime() - v) * 1e3);
2310
2309
  i.progress = {
2311
2310
  status: Q.Done,
2312
2311
  data: {
2313
2312
  percentage: 100,
2314
- speed: M,
2315
- speedHuman: `${me(M)}/s`,
2316
- startTime: g,
2313
+ speed: T,
2314
+ speedHuman: `${me(T)}/s`,
2315
+ startTime: v,
2317
2316
  endTime: (/* @__PURE__ */ new Date()).getTime(),
2318
- eta: y,
2319
- etaHuman: Xe(y || 0)
2317
+ eta: b,
2318
+ etaHuman: Xe(b || 0)
2320
2319
  }
2321
2320
  }, i.responseStatus = m.status;
2322
2321
  try {
@@ -2324,19 +2323,19 @@ class _a extends Pa {
2324
2323
  } catch {
2325
2324
  i.response = m.response;
2326
2325
  }
2327
- i.responseHeaders = Ba(m.getAllResponseHeaders()), l({ type: "done", files: [i] });
2326
+ i.responseHeaders = _a(m.getAllResponseHeaders()), l({ type: "done", files: [i] });
2328
2327
  }
2329
2328
  }, m.open(u, f, !0), m.withCredentials = !!n.withCredentials;
2330
2329
  try {
2331
- const M = i.nativeFile;
2332
- Object.keys(h).forEach((D) => m.setRequestHeader(D, h[D]));
2333
- let O;
2334
- n.includeWebKitFormBoundary !== !1 ? (Object.keys(d).forEach((D) => {
2335
- var H;
2336
- return (H = i.form) == null ? void 0 : H.append(D, d[D]);
2337
- }), (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);
2330
+ const T = i.nativeFile;
2331
+ Object.keys(h).forEach((g) => m.setRequestHeader(g, h[g]));
2332
+ let H;
2333
+ n.includeWebKitFormBoundary !== !1 ? (Object.keys(d).forEach((g) => {
2334
+ var N;
2335
+ return (N = i.form) == null ? void 0 : N.append(g, d[g]);
2336
+ }), (A = i.form) == null || A.append(n.fieldName || "file", T, T.name), H = i.form) : H = T, m.send(H);
2337
+ } catch (T) {
2338
+ o(T);
2340
2339
  }
2341
2340
  return () => {
2342
2341
  m.abort();
@@ -2371,38 +2370,38 @@ const Ra = {
2371
2370
  props: Ya,
2372
2371
  emits: ["close", "click"],
2373
2372
  setup: (t, e) => {
2374
- const n = N(t.animate), a = "fadeOut", r = W(() => t.options), i = N(!1), l = W(() => {
2373
+ const n = O(t.animate), a = "fadeOut", r = j(() => t.options), i = O(!1), l = j(() => {
2375
2374
  const k = {
2376
2375
  animated: i.value,
2377
2376
  toast: !0
2378
2377
  };
2379
2378
  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 = W(() => {
2381
- const M = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, O = {
2379
+ }), o = j(() => {
2380
+ const T = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, H = {
2382
2381
  "f-icon": !0
2383
2382
  };
2384
- return O[M] = !0, O;
2385
- }), f = W(() => r.value.title || r.value.message), u = W(() => r.value.title && r.value.message), d = W(() => !r.value.title && r.value.message), h = W(() => t.showCloseButton), m = W(() => !!r.value.buttons || !!e.slots.default);
2386
- function x(k) {
2383
+ return H[T] = !0, H;
2384
+ }), 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);
2385
+ function D(k) {
2387
2386
  k.stopPropagation(), k.preventDefault(), i.value = !1, setTimeout(() => {
2388
2387
  e.emit("close", r.value);
2389
2388
  }, 200);
2390
2389
  }
2391
- function g(k, A) {
2390
+ function v(k, A) {
2392
2391
  }
2393
- function b(k) {
2392
+ function x(k) {
2394
2393
  return `f-preten-link ${k.customClass ? k.customClass : ""}`;
2395
2394
  }
2396
2395
  K(n, () => {
2397
2396
  n.value;
2398
2397
  });
2399
- const y = () => {
2398
+ const b = () => {
2400
2399
  var k;
2401
2400
  return s(se, null, [s("div", {
2402
2401
  class: "after-toast-msg text-right"
2403
2402
  }, [!e.slots.default && ((k = r.value.buttons) == null ? void 0 : k.map((A) => s("span", {
2404
- class: b(A),
2405
- onClick: (M) => void 0
2403
+ class: x(A),
2404
+ onClick: (T) => void 0
2406
2405
  }, [A.text]))), e.slots.default && e.slots.default()])]);
2407
2406
  };
2408
2407
  return () => s("div", {
@@ -2410,7 +2409,7 @@ const Ra = {
2410
2409
  }, [h.value && s("button", {
2411
2410
  title: "close",
2412
2411
  class: "toast-close f-btn-icon f-bare",
2413
- onClick: x
2412
+ onClick: D
2414
2413
  }, [s("span", {
2415
2414
  class: "f-icon modal_close"
2416
2415
  }, null)]), f.value && s("section", {
@@ -2427,14 +2426,14 @@ const Ra = {
2427
2426
  }, null), s("p", {
2428
2427
  class: "toast-msg",
2429
2428
  innerHTML: r.value.message
2430
- }, null), m.value && y()]), d.value && (r.value.buttons ? s("div", {
2429
+ }, null), m.value && b()]), d.value && (r.value.buttons ? s("div", {
2431
2430
  class: "toast-title-btns-wrapper d-flex"
2432
2431
  }, [s("h5", {
2433
2432
  class: "toast-title modal-tips-title only-toast-msg",
2434
2433
  innerHTML: r.value.message
2435
2434
  }, null), s("div", {
2436
2435
  class: "after-toast-title text-right ml-auto"
2437
- }, [y()])]) : s("h5", {
2436
+ }, [b()])]) : s("h5", {
2438
2437
  class: "toast-title modal-tips-title only-toast-msg",
2439
2438
  innerHTML: r.value.message
2440
2439
  }, null))])])]);
@@ -2444,22 +2443,22 @@ const Ra = {
2444
2443
  props: Ra,
2445
2444
  emits: ["close", "empty"],
2446
2445
  setup(t, e) {
2447
- const n = W(() => ({
2446
+ const n = j(() => ({
2448
2447
  "farris-notify": !0
2449
2448
  })), a = {
2450
2449
  left: 12,
2451
2450
  right: 12,
2452
2451
  top: 20,
2453
2452
  bottom: 12
2454
- }, r = N(), i = N(t.options), l = N(t.showCloseButton), o = W(() => t.position || "bottom-right"), f = W(() => t.timeout != null ? t.timeout : 3e3), u = W(() => {
2455
- const m = t.bottom ? t.bottom : a.bottom, x = t.top ? t.top : a.top, g = {
2453
+ }, r = O(), i = O(t.options), l = O(t.showCloseButton), o = j(() => t.position || "bottom-right"), f = j(() => t.timeout != null ? t.timeout : 3e3), u = j(() => {
2454
+ const m = t.bottom ? t.bottom : a.bottom, D = t.top ? t.top : a.top, v = {
2456
2455
  transition: "all 0.2s ease",
2457
2456
  left: o.value.indexOf("left") > -1 ? `${t.left ? t.left : a.left}px` : "",
2458
2457
  right: o.value.indexOf("right") > -1 ? `${t.right ? t.right : a.right}px` : "",
2459
- top: o.value.indexOf("top") > -1 ? `${x}px` : "",
2458
+ top: o.value.indexOf("top") > -1 ? `${D}px` : "",
2460
2459
  bottom: o.value.indexOf("bottom") > -1 ? `${m}px` : ""
2461
2460
  };
2462
- return o.value.indexOf("center") > -1 && (g.left = "50%", g.marginLeft = "calc(-24rem / 2)", o.value === "center-center" && (g.top = "50%", g.transform = "translate(-50%, -50%)")), g;
2461
+ return o.value.indexOf("center") > -1 && (v.left = "50%", v.marginLeft = "calc(-24rem / 2)", o.value === "center-center" && (v.top = "50%", v.transform = "translate(-50%, -50%)")), v;
2463
2462
  });
2464
2463
  function d(m) {
2465
2464
  e.emit("close");
@@ -2471,7 +2470,7 @@ const Ra = {
2471
2470
  container: r,
2472
2471
  notifyPosition: o
2473
2472
  });
2474
- function h(m, x) {
2473
+ function h(m, D) {
2475
2474
  d();
2476
2475
  }
2477
2476
  return () => s("div", {
@@ -2488,8 +2487,8 @@ const Ra = {
2488
2487
  });
2489
2488
  class pt {
2490
2489
  constructor() {
2491
- U(this, "notifyRefs", []);
2492
- U(this, "globalConfig", bt({}));
2490
+ L(this, "notifyRefs", []);
2491
+ L(this, "globalConfig", bt({}));
2493
2492
  }
2494
2493
  createNotifyInstance(e) {
2495
2494
  const n = this, r = Object.assign({
@@ -2502,7 +2501,7 @@ class pt {
2502
2501
  i.style.display = "contents";
2503
2502
  const l = xt({
2504
2503
  setup() {
2505
- const o = N();
2504
+ const o = O();
2506
2505
  function f() {
2507
2506
  o.value.container.style.transform = "scale(0)", setTimeout(() => {
2508
2507
  n.updateNotifyPositionForClose(r, o), l.unmount();
@@ -2517,14 +2516,14 @@ class pt {
2517
2516
  }
2518
2517
  return Oe(() => {
2519
2518
  document.body.removeChild(i);
2520
- }), Fe(() => {
2519
+ }), Ee(() => {
2521
2520
  n.updateNotifyPositionForCreate(r, o);
2522
2521
  }), () => s(Dt, {
2523
2522
  mode: "out-in",
2524
2523
  name: "fade",
2525
2524
  appear: !0
2526
2525
  }, {
2527
- default: () => [s(be, Tt({
2526
+ default: () => [s(be, Mt({
2528
2527
  ref: o
2529
2528
  }, r, {
2530
2529
  onClose: f
@@ -2612,13 +2611,13 @@ const ja = (t = "") => {
2612
2611
  const n = oe(t);
2613
2612
  n && n() && (e = n());
2614
2613
  }
2615
- return e || (e = new _a()), e;
2614
+ return e || (e = new Ba()), e;
2616
2615
  }, mt = {
2617
2616
  getNotify: ja,
2618
2617
  getServerAPI: qa
2619
2618
  };
2620
2619
  function ht(t, e, n) {
2621
- const a = mt.getNotify(t.notifyServiceToken), r = N(t.fileInfos), {
2620
+ const a = mt.getNotify(t.notifyServiceToken), r = O(t.fileInfos), {
2622
2621
  disabled: i,
2623
2622
  uploadVisible: l,
2624
2623
  uploadDisabled: o,
@@ -2627,96 +2626,97 @@ function ht(t, e, n) {
2627
2626
  previewEnableMulti: d,
2628
2627
  downloadButtonDisable: h,
2629
2628
  previewColumns: m,
2630
- uploadEnableMulti: x,
2631
- previewButtonDisable: g
2632
- } = Ee(t), b = N(!1), y = N([]), k = W(() => y.value.length), A = N([]), M = N(""), O = N(D(r.value));
2633
- function D(c) {
2634
- (!c.length || y.value.length !== c.length) && (b.value = !1);
2635
- const T = [...c.map((S) => (S.hasOwnProperty("size") || (S.size = void 0), S.hasOwnProperty("createTime") || (S.createTime = void 0), d.value && (S.checked = !!y.value.find(($) => $.id === S.id) || b.value), S))];
2636
- return T.sort(Ea(u.value)), d.value && (y.value = [...T].filter((S) => S.checked)), T;
2637
- }
2629
+ uploadEnableMulti: D,
2630
+ previewButtonDisable: v
2631
+ } = Fe(t), x = O(!1), b = O([]), k = j(() => b.value.length), A = O([]), T = O("");
2632
+ function H(c) {
2633
+ (!c.length || b.value.length !== c.length) && (x.value = !1);
2634
+ const M = [...c.map((S) => (S.hasOwnProperty("size") || (S.size = void 0), S.hasOwnProperty("createTime") || (S.createTime = void 0), d.value && (S.checked = !!b.value.find((U) => U.id === S.id) || x.value), S))];
2635
+ return M.sort(Fa(u.value)), d.value && (b.value = [...M].filter((S) => S.checked)), M;
2636
+ }
2637
+ const g = O(H(r.value));
2638
2638
  K(() => t.fileInfos, (c) => {
2639
- O.value = D(c);
2639
+ g.value = H(c);
2640
2640
  });
2641
- const H = (c, v) => {
2642
- c.stopImmediatePropagation(), e.emit("fileDownloadEvent", { fileInfos: [v], name: "" });
2643
- }, Y = (c, v) => {
2644
- c.stopImmediatePropagation(), !g.value && e.emit("filePreviewEvent", v);
2645
- }, L = (c, v, T) => {
2646
- v.checked && (y.value = y.value.filter((S) => S.id !== v.id)), e.emit("fileRemoveEvent", v), T.handleUploadEvent({ type: "remove", file: v });
2647
- }, V = (c, v = "preview") => c.formatter ? !0 : v === "preview" ? ["state", "name", "action", "size", "createTime"].findIndex((S) => S === c.field) > -1 : v === "upload" ? ["state", "name", "size"].findIndex((S) => S === c.field) > -1 : !1, ne = (c) => !(c.field === "state" && (o.value || !l.value)), le = (c) => c.lastIndexOf(".") > 0 ? c.substring(0, c.lastIndexOf(".")) : "", ae = (c) => {
2641
+ const N = (c, w) => {
2642
+ c.stopImmediatePropagation(), e.emit("fileDownloadEvent", { fileInfos: [w], name: "" });
2643
+ }, _ = (c, w) => {
2644
+ c.stopImmediatePropagation(), !v.value && e.emit("filePreviewEvent", w);
2645
+ }, W = (c, w, M) => {
2646
+ w.checked && (b.value = b.value.filter((S) => S.id !== w.id)), e.emit("fileRemoveEvent", w), M.handleUploadEvent({ type: "remove", file: w });
2647
+ }, V = (c, w = "preview") => c.formatter ? !0 : w === "preview" ? ["state", "name", "action", "size", "createTime"].findIndex((S) => S === c.field) > -1 : w === "upload" ? ["state", "name", "size"].findIndex((S) => S === c.field) > -1 : !1, ne = (c) => !(c.field === "state" && (o.value || !l.value)), le = (c) => c.lastIndexOf(".") > 0 ? c.substring(0, c.lastIndexOf(".")) : "", ae = (c) => {
2648
2648
  if (c.stopImmediatePropagation(), k.value > 1) {
2649
- let v = "";
2650
- v = le(y.value[0].name), e.emit("fileDownloadEvent", {
2651
- fileInfos: y.value,
2652
- name: v
2649
+ let w = "";
2650
+ w = le(b.value[0].name), e.emit("fileDownloadEvent", {
2651
+ fileInfos: b.value,
2652
+ name: w
2653
2653
  });
2654
2654
  }
2655
2655
  }, Z = (c) => {
2656
- c.stopImmediatePropagation(), e.emit("fileRemoveEvent", y.value);
2656
+ c.stopImmediatePropagation(), e.emit("fileRemoveEvent", b.value);
2657
2657
  }, re = (c) => {
2658
- const v = O.value;
2659
- c.checked ? (v.forEach((T) => {
2660
- T.checked = !0;
2661
- }), y.value = [...O.value], b.value = !0) : (y.value = [], v.forEach((T) => {
2662
- T.checked = !1;
2663
- }), b.value = !1), e.emit("previewMultiSelectedEvent", y.value);
2664
- }, B = (c, v) => {
2665
- c && (c.stopImmediatePropagation(), c.stopPropagation()), (!M.value || v.id !== M.value) && (M.value = v.id, e.emit("selectedEvent", v));
2666
- }, E = (c) => {
2667
- const v = y.value.findIndex(($) => $.id === c.id), T = v > -1, S = O.value.find(($) => $.id === c.id);
2668
- S && (S.checked = c.checked), c.checked && !T && S && y.value.push(S), !c.checked && T && y.value.splice(v, 1), O.value.length > 0 && (y.value.length === O.value.length ? b.value = !0 : b.value = !1), B(null, S), e.emit("previewMultiSelectedEvent", y.value);
2669
- }, j = (c) => {
2670
- var v;
2671
- (v = n == null ? void 0 : n.value) == null || v.handleUploadEvent(c);
2658
+ const w = g.value;
2659
+ c.checked ? (w.forEach((M) => {
2660
+ M.checked = !0;
2661
+ }), b.value = [...g.value], x.value = !0) : (b.value = [], w.forEach((M) => {
2662
+ M.checked = !1;
2663
+ }), x.value = !1), e.emit("previewMultiSelectedEvent", b.value);
2664
+ }, B = (c, w) => {
2665
+ c && (c.stopImmediatePropagation(), c.stopPropagation()), (!T.value || w.id !== T.value) && (T.value = w.id, e.emit("selectedEvent", w));
2666
+ }, F = (c) => {
2667
+ const w = b.value.findIndex((U) => U.id === c.id), M = w > -1, S = g.value.find((U) => U.id === c.id);
2668
+ S && (S.checked = c.checked), c.checked && !M && S && b.value.push(S), !c.checked && M && b.value.splice(w, 1), g.value.length > 0 && (b.value.length === g.value.length ? x.value = !0 : x.value = !1), B(null, S), e.emit("previewMultiSelectedEvent", b.value);
2669
+ }, q = (c) => {
2670
+ var w;
2671
+ (w = n == null ? void 0 : n.value) == null || w.handleUploadEvent(c);
2672
2672
  }, ue = (c) => {
2673
- j({ type: "upload", file: c });
2674
- }, _ = (c, v) => {
2675
- let T = [];
2676
- c.files && c.files.length > 0 ? T = c.files : typeof c.file < "u" && (T = [c.file]), v = v || c.type, T.map((S) => {
2677
- const $ = A.value.findIndex((I) => {
2678
- var ve;
2679
- return typeof S < "u" && ((ve = I == null ? void 0 : I.file) == null ? void 0 : ve.id) === S.id;
2673
+ q({ type: "upload", file: c });
2674
+ }, R = (c, w) => {
2675
+ let M = [];
2676
+ c.files && c.files.length > 0 ? M = c.files : typeof c.file < "u" && (M = [c.file]), w = w || c.type, M.map((S) => {
2677
+ const U = A.value.findIndex((I) => {
2678
+ var ge;
2679
+ return typeof S < "u" && ((ge = I == null ? void 0 : I.file) == null ? void 0 : ge.id) === S.id;
2680
2680
  });
2681
- $ > -1 && (A.value[$] = { type: v, file: S });
2681
+ U > -1 && (A.value[U] = { type: w, file: S });
2682
2682
  });
2683
- }, Me = (c) => {
2683
+ }, Te = (c) => {
2684
2684
  if (c.files) {
2685
- const v = c.files.map((T) => T.id);
2686
- A.value = A.value.filter((T) => !(v.findIndex(($) => {
2685
+ const w = c.files.map((M) => M.id);
2686
+ A.value = A.value.filter((M) => !(w.findIndex((U) => {
2687
2687
  var I;
2688
- return $ === ((I = T == null ? void 0 : T.file) == null ? void 0 : I.id);
2689
- }) > -1)), j({
2688
+ return U === ((I = M == null ? void 0 : M.file) == null ? void 0 : I.id);
2689
+ }) > -1)), q({
2690
2690
  type: "hide",
2691
- id: v.join(",")
2691
+ id: w.join(",")
2692
2692
  });
2693
2693
  }
2694
2694
  }, he = (c) => {
2695
- let v = "warning";
2696
- (c.type === "cancelled" || c.type === "removed") && (v = "success");
2697
- const T = c.hasOwnProperty("message") ? c.message : "";
2695
+ let w = "warning";
2696
+ (c.type === "cancelled" || c.type === "removed") && (w = "success");
2697
+ const M = c.hasOwnProperty("message") ? c.message : "";
2698
2698
  a.show({
2699
- options: { type: v, message: T },
2699
+ options: { type: w, message: M },
2700
2700
  position: "top-center"
2701
2701
  });
2702
- }, ge = (c) => {
2702
+ }, ve = (c) => {
2703
2703
  if (c.type === "addedToQueue" && typeof c.file < "u")
2704
2704
  A.value.push({ type: c.type, file: c.file }), ue(c.file);
2705
2705
  else if (c.type === "start")
2706
- _(c, "start");
2706
+ R(c, "start");
2707
2707
  else if (c.type === "done") {
2708
- _(c, "done");
2709
- const v = (c.files || []).map((T) => ({
2708
+ R(c, "done");
2709
+ const w = (c.files || []).map((M) => ({
2710
2710
  checked: !1,
2711
- id: T.id,
2712
- name: T.name,
2713
- size: T.size,
2711
+ id: M.id,
2712
+ name: M.name,
2713
+ size: M.size,
2714
2714
  createTime: He(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH:mm:ss")
2715
2715
  }));
2716
- r.value = [...v, ...O.value], Me(c), e.emit("fUploadDoneEvent", Ie(c.files || [])), e.emit("uploadDoneEvent", Ie(c.files || []));
2716
+ r.value = [...w, ...g.value], Te(c), e.emit("fUploadDoneEvent", Ie(c.files || [])), e.emit("uploadDoneEvent", Ie(c.files || []));
2717
2717
  } else if (c.type === "cancelled" || c.type === "removed" || c.type === "error") {
2718
- const v = r.value.filter((T) => c.files && c.files.findIndex((S) => T.id === S.id) < 0);
2719
- r.value = [...v], he(c);
2718
+ const w = r.value.filter((M) => c.files && c.files.findIndex((S) => M.id === S.id) < 0);
2719
+ r.value = [...w], he(c);
2720
2720
  } else c.type === "rejected" && typeof c.file < "u" && he(c);
2721
2721
  };
2722
2722
  return Oe(() => {
@@ -2728,30 +2728,30 @@ function ht(t, e, n) {
2728
2728
  previewVisible: f,
2729
2729
  previewColumns: m,
2730
2730
  uploadFiles: A,
2731
- innerFileInfos: O,
2731
+ innerFileInfos: g,
2732
2732
  previewEnableMulti: d,
2733
2733
  previewMultiSelectedLength: k,
2734
- previewSelectAllBtnChecked: b,
2735
- uploadEnableMulti: x,
2736
- previewCurrentId: M,
2734
+ previewSelectAllBtnChecked: x,
2735
+ uploadEnableMulti: D,
2736
+ previewCurrentId: T,
2737
2737
  multiFileRemoveHandler: Z,
2738
- previewMultiSelectChangeHandler: E,
2738
+ previewMultiSelectChangeHandler: F,
2739
2739
  fileMultiDownloadHandler: ae,
2740
2740
  selectOrCancelAllHandler: re,
2741
2741
  hasColumnHtmlFunc: V,
2742
2742
  showPreviewStateColumn: ne,
2743
2743
  rowSelectedHandler: B,
2744
- fileDownloadHandler: H,
2745
- filePreviewHandler: Y,
2746
- fileRemoveHandler: L,
2747
- handleStateChange: ge
2744
+ fileDownloadHandler: N,
2745
+ filePreviewHandler: _,
2746
+ fileRemoveHandler: W,
2747
+ handleStateChange: ve
2748
2748
  };
2749
2749
  }
2750
2750
  class $a {
2751
2751
  constructor(e, n) {
2752
2752
  // 记录在上传的附件数组
2753
- U(this, "queue");
2754
- U(this, "uploadOpts", {
2753
+ L(this, "queue");
2754
+ L(this, "uploadOpts", {
2755
2755
  // 默认不限制,0代表不限制 Number.POSITIVE_INFINITY
2756
2756
  allowedContentTypes: ["*"],
2757
2757
  maxUploads: 0,
@@ -2763,9 +2763,9 @@ class $a {
2763
2763
  /**
2764
2764
  * 服务器端扩展
2765
2765
  */
2766
- U(this, "extendServerConfig", null);
2767
- U(this, "uploadServerSer");
2768
- U(this, "uploadContext", null);
2766
+ L(this, "extendServerConfig", null);
2767
+ L(this, "uploadServerSer");
2768
+ L(this, "uploadContext", null);
2769
2769
  this.stateChangeRecord = e, this.serverToken = n, this.queue = [], this.uploadServerSer = mt.getServerAPI(this.serverToken);
2770
2770
  }
2771
2771
  setUploadContext(e) {
@@ -2976,62 +2976,64 @@ class $a {
2976
2976
  const De = /* @__PURE__ */ te({
2977
2977
  name: "FUploader",
2978
2978
  components: {
2979
- "f-upload-progress": Ft,
2979
+ "f-upload-progress": Ot,
2980
2980
  "f-preview-checkbox": Ge,
2981
2981
  "f-file-select": Ze
2982
2982
  },
2983
2983
  props: Ae,
2984
2984
  emits: ["filePreviewEvent", "fileDownloadEvent", "previewMultiSelectedEvent", "selectedEvent", "fileRemoveEvent", "fileRemovedEvent", "fUploadDoneEvent", "uploadDoneEvent"],
2985
2985
  setup(t, e) {
2986
- const n = N(), a = new $a(n, t.uploadServerToken);
2987
- K(n, (p) => {
2988
- switch (re(p), p.type) {
2989
- case "removed":
2990
- e.emit("fileRemovedEvent", p.files[0]);
2991
- break;
2992
- }
2993
- }), Mt("uploaderService", a);
2994
- const r = N(t.customInfo), i = ft(t.uploadOptions, {
2986
+ const n = O(), a = new $a(n, t.uploadServerToken);
2987
+ Tt("uploaderService", a);
2988
+ const r = O(t.customInfo), i = ft(t.uploadOptions, {
2995
2989
  // 允许上传的文件类型
2996
2990
  allowedContentTypes: ["*"],
2997
2991
  // 默认不限制附件上传个数
2998
2992
  maxUploads: 0,
2999
2993
  // 单位KB,默认是12M
3000
2994
  maxFileSize: "12MB"
3001
- }), l = N(null), {
2995
+ }), l = O(null), {
3002
2996
  disabled: o,
3003
2997
  uploadVisible: f,
3004
2998
  uploadDisabled: u,
3005
2999
  downloadButtonDisable: d,
3006
3000
  previewVisible: h,
3007
3001
  previewColumns: m,
3008
- uploadFiles: x,
3009
- innerFileInfos: g,
3010
- previewEnableMulti: b,
3011
- previewMultiSelectedLength: y,
3002
+ uploadFiles: D,
3003
+ innerFileInfos: v,
3004
+ previewEnableMulti: x,
3005
+ previewMultiSelectedLength: b,
3012
3006
  previewSelectAllBtnChecked: k,
3013
3007
  uploadEnableMulti: A,
3014
- previewCurrentId: M,
3015
- multiFileRemoveHandler: O,
3016
- previewMultiSelectChangeHandler: D,
3017
- fileMultiDownloadHandler: H,
3018
- selectOrCancelAllHandler: Y,
3019
- rowSelectedHandler: L,
3008
+ previewCurrentId: T,
3009
+ multiFileRemoveHandler: H,
3010
+ previewMultiSelectChangeHandler: g,
3011
+ fileMultiDownloadHandler: N,
3012
+ selectOrCancelAllHandler: _,
3013
+ rowSelectedHandler: W,
3020
3014
  hasColumnHtmlFunc: V,
3021
3015
  showPreviewStateColumn: ne,
3022
3016
  fileDownloadHandler: le,
3023
3017
  filePreviewHandler: ae,
3024
3018
  fileRemoveHandler: Z,
3025
3019
  handleStateChange: re
3026
- } = ht(t, e, l), B = W(() => g.value.length > 0);
3027
- function E() {
3020
+ } = ht(t, e, l);
3021
+ K(n, (p) => {
3022
+ switch (re(p), p.type) {
3023
+ case "removed":
3024
+ e.emit("fileRemovedEvent", p.files[0]);
3025
+ break;
3026
+ }
3027
+ });
3028
+ const B = j(() => v.value.length > 0);
3029
+ function F() {
3028
3030
  var p;
3029
3031
  return ct((i == null ? void 0 : i.allowedContentTypes) || []) ? s("li", null, [s("span", null, [C("支持类型:")]), s("span", {
3030
3032
  class: "support-info--item-detail",
3031
3033
  style: "margin-right:4px;"
3032
3034
  }, [(p = i.allowedContentTypes) == null ? void 0 : p.join(""), C(",")])]) : "";
3033
3035
  }
3034
- function j() {
3036
+ function q() {
3035
3037
  return dt((i == null ? void 0 : i.maxFileSize) || "") ? s("li", null, [s("span", null, [C("单个文件限制:")]), s("span", {
3036
3038
  class: "support-info--item-detail"
3037
3039
  }, [i.maxFileSize, C(",   ")])]) : "";
@@ -3041,7 +3043,7 @@ const De = /* @__PURE__ */ te({
3041
3043
  class: "support-info--item-detail"
3042
3044
  }, [i.maxUploads, C("个")])]);
3043
3045
  }
3044
- function _() {
3046
+ function R() {
3045
3047
  return f.value && !u.value && !o.value ? s("div", {
3046
3048
  class: "ffileupload--support-info"
3047
3049
  }, [r.value ? s("ul", {
@@ -3051,22 +3053,22 @@ const De = /* @__PURE__ */ te({
3051
3053
  innerHTML: r.value
3052
3054
  }, null)])]) : s("ul", {
3053
3055
  class: "support-info--wrapper"
3054
- }, [E(), j(), ue()])]) : null;
3056
+ }, [F(), q(), ue()])]) : null;
3055
3057
  }
3056
- function Me(p) {
3057
- var w, F, q;
3058
+ function Te(p) {
3059
+ var y, E, $;
3058
3060
  return s("div", {
3059
3061
  class: "uploadAndpreview--title-container"
3060
3062
  }, [s("div", {
3061
3063
  class: "ffilepreview--item-icon"
3062
3064
  }, [s("span", {
3063
- class: ["ffilepreview--filetype-icon", ze(((w = p.file) == null ? void 0 : w.name) || "")]
3065
+ class: ["ffilepreview--filetype-icon", ze(((y = p.file) == null ? void 0 : y.name) || "")]
3064
3066
  }, null)]), s("div", {
3065
3067
  class: "uploadAndpreview--right"
3066
3068
  }, [s("a", {
3067
3069
  class: "item-content--title",
3068
- title: (F = p.file) == null ? void 0 : F.name
3069
- }, [((q = p.file) == null ? void 0 : q.name) || "无名称"]), s(G("f-upload-progress"), {
3070
+ title: (E = p.file) == null ? void 0 : E.name
3071
+ }, [(($ = p.file) == null ? void 0 : $.name) || "无名称"]), s(G("f-upload-progress"), {
3070
3072
  status: p.type === "done" ? "success" : "active",
3071
3073
  percent: Qe(p),
3072
3074
  maxWidth: 300
@@ -3084,16 +3086,16 @@ const De = /* @__PURE__ */ te({
3084
3086
  }, [s("a", {
3085
3087
  class: ["item-content--title", "previewButtonDisable.value?'no-preview':''"],
3086
3088
  title: p.name,
3087
- onClick: (w) => ae(w, p)
3089
+ onClick: (y) => ae(y, p)
3088
3090
  }, [p.name])])]);
3089
3091
  }
3090
- function ge(p, w, F) {
3092
+ function ve(p, y, E) {
3091
3093
  return s("div", {
3092
3094
  class: "uploadAndpreview--filesize-container"
3093
- }, [p === "preview" && F ? s("span", null, [Fa(F.size)]) : null, p === "upload" && w ? s("span", null, [Qe(w)]) : null]);
3095
+ }, [p === "preview" && E ? s("span", null, [Ea(E.size)]) : null, p === "upload" && y ? s("span", null, [Qe(y)]) : null]);
3094
3096
  }
3095
- function c(p, w) {
3096
- return w && w.type == "error" ? s("div", {
3097
+ function c(p, y) {
3098
+ return y && y.type === "error" ? s("div", {
3097
3099
  class: "uploadAndpreview--state-container"
3098
3100
  }, [s("p", {
3099
3101
  class: "upload-state--uploaded"
@@ -3101,7 +3103,7 @@ const De = /* @__PURE__ */ te({
3101
3103
  class: "f-icon f-icon-message_warning text-danger"
3102
3104
  }, null), s("span", null, [C("存在异常")])])]) : s("div", {
3103
3105
  class: "uploadAndpreview--state-container"
3104
- }, [p === "upload" ? w && w.type != "done" ? s("p", {
3106
+ }, [p === "upload" ? y && y.type !== "done" ? s("p", {
3105
3107
  class: "upload-state--uploading"
3106
3108
  }, [s("i", {
3107
3109
  class: "f-icon f-icon-clock text-warning"
@@ -3115,76 +3117,76 @@ const De = /* @__PURE__ */ te({
3115
3117
  class: "f-icon f-icon-success text-success"
3116
3118
  }, null), s("span", null, [C("已上传")])]) : ""]);
3117
3119
  }
3118
- function v(p) {
3120
+ function w(p) {
3119
3121
  return s("div", {
3120
3122
  class: "uploadAndpreview--action-container"
3121
3123
  }, [d.value ? "" : s("button", {
3122
3124
  class: "btn preview-btn",
3123
3125
  title: "下载",
3124
- onClick: (w) => le(w, p)
3126
+ onClick: (y) => le(y, p)
3125
3127
  }, [s("span", {
3126
3128
  class: "f-icon f-icon-enclosure_download"
3127
3129
  }, null)]), t.previewButtonDisable ? "" : s("button", {
3128
3130
  class: "btn preview-btn",
3129
3131
  title: "预览",
3130
- onClick: (w) => ae(w, p)
3132
+ onClick: (y) => ae(y, p)
3131
3133
  }, [s("span", {
3132
3134
  class: "f-icon f-icon-enclosure_browse"
3133
3135
  }, null)]), t.deleteButtonDisable ? "" : s("button", {
3134
3136
  class: "btn preview-btn",
3135
3137
  title: "删除",
3136
- onClick: (w) => Z(w, p, a)
3138
+ onClick: (y) => Z(y, p, a)
3137
3139
  }, [s("span", {
3138
3140
  class: "f-icon f-icon-enclosure_delete",
3139
3141
  style: "top: -1px"
3140
3142
  }, null)])]);
3141
3143
  }
3142
- function T(p) {
3144
+ function M(p) {
3143
3145
  return s("div", {
3144
3146
  class: "uploadAndpreview--date-container"
3145
3147
  }, [p.createTime || ""]);
3146
3148
  }
3147
- function S(p, w, F, q) {
3148
- let R;
3149
- if (p = p || "preview", q.formatter)
3150
- return R = q.formatter(F[q.field] || "", p, p == "preview" ? F : w, q), R;
3151
- if (p === "preview" && F)
3152
- switch (q.field) {
3149
+ function S(p, y, E, $) {
3150
+ let Y;
3151
+ if (p = p || "preview", $.formatter)
3152
+ return Y = $.formatter(E[$.field] || "", p, p === "preview" ? E : y, $), Y;
3153
+ if (p === "preview" && E)
3154
+ switch ($.field) {
3153
3155
  case "state":
3154
- R = c("preview", null);
3156
+ Y = c("preview", null);
3155
3157
  break;
3156
3158
  case "name":
3157
- R = he(F);
3159
+ Y = he(E);
3158
3160
  break;
3159
3161
  case "action":
3160
- R = v(F);
3162
+ Y = w(E);
3161
3163
  break;
3162
3164
  case "size":
3163
- R = ge(p, w, F);
3165
+ Y = ve(p, y, E);
3164
3166
  break;
3165
3167
  case "createTime":
3166
- R = T(F);
3168
+ Y = M(E);
3167
3169
  break;
3168
3170
  default:
3169
- R = `<div>${F[q.field] || ""} </div>`;
3171
+ Y = `<div>${E[$.field] || ""} </div>`;
3170
3172
  }
3171
- if (p === "upload" && w)
3172
- switch (q.field) {
3173
+ if (p === "upload" && y)
3174
+ switch ($.field) {
3173
3175
  case "state":
3174
- R = c("upload", w);
3176
+ Y = c("upload", y);
3175
3177
  break;
3176
3178
  case "name":
3177
- R = Me(w);
3179
+ Y = Te(y);
3178
3180
  break;
3179
3181
  case "size":
3180
- R = ge(p, w, F);
3182
+ Y = ve(p, y, E);
3181
3183
  break;
3182
3184
  default:
3183
- R = "";
3185
+ Y = "";
3184
3186
  }
3185
- return R;
3187
+ return Y;
3186
3188
  }
3187
- function $() {
3189
+ function U() {
3188
3190
  return f.value ? s("div", {
3189
3191
  class: "header--left-container"
3190
3192
  }, [s(G("f-file-select"), {
@@ -3206,167 +3208,174 @@ const De = /* @__PURE__ */ te({
3206
3208
  class: "m-0"
3207
3209
  }, [C("共"), s("span", {
3208
3210
  class: "count"
3209
- }, [x.value.length + g.value.length]), C("个附件"), y.value > 0 ? s(se, null, [C("(已选"), s("span", {
3211
+ }, [D.value.length + v.value.length]), C("个附件"), b.value > 0 ? s(se, null, [C("(已选"), s("span", {
3210
3212
  class: "count-selected"
3211
- }, [y.value]), C("个)")]) : ""])]) : null;
3213
+ }, [b.value]), C("个)")]) : ""])]) : null;
3212
3214
  }
3213
- function ve() {
3215
+ function ge() {
3214
3216
  return (!d.value || !t.deleteButtonDisable) && h.value && B.value ? s("div", {
3215
3217
  class: "header--right-container"
3216
3218
  }, [d.value ? null : s("button", {
3217
3219
  class: "btn btn-primary f-btn-ml",
3218
- disabled: y.value === 0,
3219
- onClick: (F) => H(F)
3220
+ disabled: b.value === 0,
3221
+ onClick: (E) => N(E)
3220
3222
  }, [C("下载")]), t.deleteButtonDisable.value ? null : s("button", {
3221
3223
  class: "btn btn-secondary f-btn-ml",
3222
- disabled: y.value === 0,
3223
- onClick: (F) => O(F)
3224
+ disabled: b.value === 0,
3225
+ onClick: (E) => H(E)
3224
3226
  }, [C("删除")])]) : null;
3225
3227
  }
3226
- function Be() {
3228
+ function _e() {
3227
3229
  return m.value.map((p) => ne(p) ? s("th", {
3228
3230
  style: {
3229
3231
  width: p.width ? p.width + "px" : "auto"
3230
3232
  },
3231
3233
  class: [!o.value && p.checkbox && p.checkbox ? "td--hascheckbox" : ""]
3232
- }, [!o.value && b.value && p.checkbox ? s(G("f-preview-checkbox"), {
3234
+ }, [!o.value && x.value && p.checkbox ? s(G("f-preview-checkbox"), {
3233
3235
  class: "preview-checkbox",
3234
3236
  id: "previewMultiBtn",
3235
3237
  checked: k.value,
3236
- onCheckedChange: (w) => Y(w)
3238
+ onCheckedChange: (y) => _(y)
3237
3239
  }, null) : null, p.title]) : null);
3238
3240
  }
3239
- function gt() {
3240
- return x.value.map((p) => {
3241
- var w;
3241
+ function vt() {
3242
+ return D.value.map((p) => {
3243
+ var y;
3242
3244
  return s("tr", {
3243
3245
  class: "uploadAndpreview--upload-item",
3244
- id: "uploadAndpreview--upload-item" + (((w = p == null ? void 0 : p.file) == null ? void 0 : w.id) || "")
3245
- }, [m.value.map((F) => {
3246
- var q;
3246
+ id: "uploadAndpreview--upload-item" + (((y = p == null ? void 0 : p.file) == null ? void 0 : y.id) || "")
3247
+ }, [m.value.map((E) => {
3248
+ var $;
3247
3249
  return s("td", {
3248
- class: [!o.value && F.checkbox && F.checkbox ? "td--hascheckbox" : ""]
3249
- }, [b.value && F.checkbox ? s(G("f-preview-checkbox"), {
3250
- id: (q = p == null ? void 0 : p.file) == null ? void 0 : q.id,
3250
+ class: [!o.value && E.checkbox && E.checkbox ? "td--hascheckbox" : ""]
3251
+ }, [x.value && E.checkbox ? s(G("f-preview-checkbox"), {
3252
+ id: ($ = p == null ? void 0 : p.file) == null ? void 0 : $.id,
3251
3253
  checked: p.checked,
3252
3254
  disabled: p.type !== "done",
3253
3255
  class: "preview-checkbox",
3254
- onCheckedChange: (R) => D(R)
3255
- }, null) : null, V(F, "upload") ? S("upload", p, null, F) : null]);
3256
+ onCheckedChange: (Y) => g(Y)
3257
+ }, null) : null, V(E, "upload") ? S("upload", p, null, E) : null]);
3256
3258
  })]);
3257
3259
  });
3258
3260
  }
3259
- function _e() {
3260
- return g.value.map((p) => s("tr", {
3261
- class: ["uploadAndpreview--preview-item", M.value === p.id ? "uploadAndpreview--currentfile" : ""],
3261
+ function Be() {
3262
+ return v.value.map((p) => s("tr", {
3263
+ class: ["uploadAndpreview--preview-item", T.value === p.id ? "uploadAndpreview--currentfile" : ""],
3262
3264
  id: "uploadAndpreview--preview-item" + p.id,
3263
- onClick: (w) => L(w, p)
3264
- }, [m.value.map((w) => ne(w) ? s("td", {
3265
- class: [!o.value && w.checkbox && w.checkbox ? "td--hascheckbox" : ""]
3266
- }, [!o.value && b.value && w.checkbox ? s(G("f-preview-checkbox"), {
3265
+ onClick: (y) => W(y, p)
3266
+ }, [m.value.map((y) => ne(y) ? s("td", {
3267
+ class: [!o.value && y.checkbox && y.checkbox ? "td--hascheckbox" : ""]
3268
+ }, [!o.value && x.value && y.checkbox ? s(G("f-preview-checkbox"), {
3267
3269
  id: p.id,
3268
3270
  checked: p.checked,
3269
3271
  class: "preview-checkbox",
3270
- onCheckedChange: (F) => D(F)
3271
- }, null) : null, V(w, "preview") ? S("preview", null, p, w) : s("div", {
3272
+ onCheckedChange: (E) => g(E)
3273
+ }, null) : null, V(y, "preview") ? S("preview", null, p, y) : s("div", {
3272
3274
  class: "text-truncate",
3273
- innerHTML: S("preview", null, p, w)
3275
+ innerHTML: S("preview", null, p, y)
3274
3276
  }, null)]) : null)]));
3275
3277
  }
3276
3278
  return () => o.value ? s("div", {
3277
3279
  class: "fv-upload-and-preview"
3278
- }, [B.value ? null : _(), h.value ? s("div", {
3280
+ }, [B.value ? null : R(), h.value ? s("div", {
3279
3281
  class: "uploadAndpreview--content"
3280
3282
  }, [B.value ? s("table", {
3281
3283
  class: "table table-bordered uploadAndpreview--table"
3282
- }, [s("thead", null, [Be()]), s("tbody", null, [_e()])]) : s("p", {
3284
+ }, [s("thead", null, [_e()]), s("tbody", null, [Be()])]) : s("p", {
3283
3285
  class: "uploadAndpreview--nodata"
3284
- }, [C("无附件信息")])]) : null, B.value ? _() : null]) : s("div", {
3286
+ }, [C("无附件信息")])]) : null, B.value ? R() : null]) : s("div", {
3285
3287
  class: "fv-upload-and-preview"
3286
3288
  }, [s("div", {
3287
3289
  class: "uploadAndpreview--header"
3288
- }, [$(), I(), ve()]), B.value ? null : _(), h.value || f.value ? s("div", {
3290
+ }, [U(), I(), ge()]), B.value ? null : R(), h.value || f.value ? s("div", {
3289
3291
  class: "uploadAndpreview--content"
3290
- }, [(d.value || !f.value) && x.value.length === 0 && !B.value ? s("p", {
3292
+ }, [(d.value || !f.value) && D.value.length === 0 && !B.value ? s("p", {
3291
3293
  class: "uploadAndpreview--nodata"
3292
- }, [C("无附件信息")]) : "", x.value.length > 0 || B ? s("table", {
3294
+ }, [C("无附件信息")]) : "", D.value.length > 0 || B ? s("table", {
3293
3295
  class: "table table-bordered uploadAndpreview--table"
3294
- }, [s("thead", null, [Be()]), s("tbody", null, [gt(), _e()])]) : null]) : null, B.value ? _() : null]);
3296
+ }, [s("thead", null, [_e()]), s("tbody", null, [vt(), Be()])]) : null]) : null, B.value ? R() : null]);
3295
3297
  }
3296
3298
  });
3297
3299
  function Ua(t, e, n) {
3298
- var O;
3299
- function a() {
3300
- }
3301
- const r = "", i = "", l = N();
3302
- function o() {
3300
+ var H;
3301
+ const a = "", r = "", i = O();
3302
+ function l() {
3303
3303
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
3304
3304
  }
3305
- function f() {
3305
+ function o() {
3306
3306
  return !1;
3307
3307
  }
3308
- function u() {
3308
+ function f() {
3309
3309
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
3310
3310
  }
3311
- function d() {
3311
+ function u() {
3312
3312
  return (e == null ? void 0 : e.schema.componentType) === "frame";
3313
3313
  }
3314
- function h(D) {
3315
- if (!D || !D.value)
3314
+ function d(g) {
3315
+ if (!g || !g.value)
3316
3316
  return null;
3317
- if (D.value.schema && D.value.schema.type === "component")
3318
- return D.value;
3319
- const H = N(D == null ? void 0 : D.value.parent), Y = h(H);
3320
- return Y || null;
3317
+ if (g.value.schema && g.value.schema.type === "component")
3318
+ return g.value;
3319
+ const N = O(g == null ? void 0 : g.value.parent), _ = d(N);
3320
+ return _ || null;
3321
3321
  }
3322
- function m(D = e) {
3323
- const { componentInstance: H, designerItemElementRef: Y } = D;
3324
- return !H || !H.value ? null : H.value.canMove ? Y : m(D.parent);
3322
+ function h(g = e) {
3323
+ const { componentInstance: N, designerItemElementRef: _ } = g;
3324
+ return !N || !N.value ? null : N.value.canMove ? _ : h(g.parent);
3325
3325
  }
3326
- function x(D) {
3326
+ function m(g) {
3327
3327
  return !!n;
3328
3328
  }
3329
- function g() {
3329
+ function D() {
3330
3330
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
3331
3331
  }
3332
- function b() {
3332
+ function v() {
3333
3333
  }
3334
- function y(D, H) {
3334
+ function x(g, N) {
3335
3335
  }
3336
- function k(D, H) {
3337
- const { componentType: Y } = D;
3338
- let L = et(Y, D, H);
3339
- const V = Y.toLowerCase().replace("-", "_");
3340
- return L && !L.id && L.type === Y && (L.id = `${V}_${Math.random().toString().slice(2, 6)}`), L;
3336
+ function b(g, N) {
3337
+ const { componentType: _ } = g;
3338
+ let W = et(_, g, N);
3339
+ const V = _.toLowerCase().replace(/-/g, "_");
3340
+ return W && !W.id && W.type === _ && (W.id = `${V}_${Math.random().toString().slice(2, 6)}`), W;
3341
3341
  }
3342
- function A(D) {
3342
+ function k(g) {
3343
3343
  }
3344
- function M(...D) {
3344
+ function A(...g) {
3345
+ }
3346
+ function T() {
3347
+ e != null && e.schema.contents && e.schema.contents.map((g) => {
3348
+ var W;
3349
+ let N = g.id;
3350
+ g.type === "component-ref" && (N = g.component);
3351
+ const _ = t.value.querySelector(`#${N}-design-item`);
3352
+ (W = _ == null ? void 0 : _.componentInstance) != null && W.value.onRemoveComponent && _.componentInstance.value.onRemoveComponent();
3353
+ });
3345
3354
  }
3346
- return l.value = {
3347
- canMove: o(),
3348
- canSelectParent: f(),
3349
- canDelete: u(),
3350
- canNested: !d(),
3355
+ return i.value = {
3356
+ canMove: l(),
3357
+ canSelectParent: o(),
3358
+ canDelete: f(),
3359
+ canNested: !u(),
3351
3360
  contents: e == null ? void 0 : e.schema.contents,
3352
3361
  elementRef: t,
3353
- parent: (O = e == null ? void 0 : e.parent) == null ? void 0 : O.componentInstance,
3362
+ parent: (H = e == null ? void 0 : e.parent) == null ? void 0 : H.componentInstance,
3354
3363
  schema: e == null ? void 0 : e.schema,
3355
- styles: r,
3356
- designerClass: i,
3357
- canAccepts: x,
3358
- getBelongedComponentInstance: h,
3359
- getDraggableDesignItemElement: m,
3360
- getDraggingDisplayText: g,
3361
- getPropConfig: M,
3362
- getDragScopeElement: b,
3363
- onAcceptMovedChildElement: y,
3364
- onChildElementMovedOut: A,
3365
- addNewChildComponentSchema: k,
3366
- updateDragAndDropRules: a,
3367
- triggerBelongedComponentToMoveWhenMoved: N(!1),
3368
- triggerBelongedComponentToDeleteWhenDeleted: N(!1)
3369
- }, l;
3364
+ styles: a,
3365
+ designerClass: r,
3366
+ canAccepts: m,
3367
+ getBelongedComponentInstance: d,
3368
+ getDraggableDesignItemElement: h,
3369
+ getDraggingDisplayText: D,
3370
+ getPropConfig: A,
3371
+ getDragScopeElement: v,
3372
+ onAcceptMovedChildElement: x,
3373
+ onChildElementMovedOut: k,
3374
+ addNewChildComponentSchema: b,
3375
+ triggerBelongedComponentToMoveWhenMoved: O(!1),
3376
+ triggerBelongedComponentToDeleteWhenDeleted: O(!1),
3377
+ onRemoveComponent: T
3378
+ }, i;
3370
3379
  }
3371
3380
  const La = /* @__PURE__ */ te({
3372
3381
  name: "FUploaderDesign",
@@ -3377,14 +3386,14 @@ const La = /* @__PURE__ */ te({
3377
3386
  props: Ae,
3378
3387
  emits: ["filePreviewEvent", "fileDownloadEvent", "previewMultiSelectedEvent", "selectedEvent", "fileRemoveEvent", "fUploadDoneEvent", "uploadDoneEvent"],
3379
3388
  setup(t, e) {
3380
- const n = N(t.customInfo), a = ft(t.uploadOptions, {
3389
+ const n = O(t.customInfo), a = ft(t.uploadOptions, {
3381
3390
  // 允许上传的文件类型
3382
3391
  allowedContentTypes: ["*"],
3383
3392
  // 默认不限制附件上传个数
3384
3393
  maxUploads: 0,
3385
3394
  // 单位KB,默认是12M
3386
3395
  maxFileSize: "12MB"
3387
- }), r = N(null), i = [{
3396
+ }), r = O(null), i = [{
3388
3397
  id: "attach01",
3389
3398
  name: ""
3390
3399
  }, {
@@ -3398,17 +3407,17 @@ const La = /* @__PURE__ */ te({
3398
3407
  previewVisible: d,
3399
3408
  previewColumns: h,
3400
3409
  previewEnableMulti: m,
3401
- previewCurrentId: x,
3402
- showPreviewStateColumn: g
3410
+ previewCurrentId: D,
3411
+ showPreviewStateColumn: v
3403
3412
  } = ht(t, e, r);
3404
- function b() {
3405
- var E;
3413
+ function x() {
3414
+ var F;
3406
3415
  return ct((a == null ? void 0 : a.allowedContentTypes) || []) ? s("li", null, [s("span", null, [C("支持类型:")]), s("span", {
3407
3416
  class: "support-info--item-detail",
3408
3417
  style: "margin-right:4px;"
3409
- }, [(E = a.allowedContentTypes) == null ? void 0 : E.join(""), C(",")])]) : null;
3418
+ }, [(F = a.allowedContentTypes) == null ? void 0 : F.join(""), C(",")])]) : null;
3410
3419
  }
3411
- function y() {
3420
+ function b() {
3412
3421
  return dt((a == null ? void 0 : a.maxFileSize) || "") ? s("li", null, [s("span", null, [C("单个文件限制:")]), s("span", {
3413
3422
  class: "support-info--item-detail"
3414
3423
  }, [a.maxFileSize, C(",   ")])]) : null;
@@ -3428,9 +3437,9 @@ const La = /* @__PURE__ */ te({
3428
3437
  innerHTML: n.value
3429
3438
  }, null)])]) : s("ul", {
3430
3439
  class: "support-info--wrapper"
3431
- }, [b(), y(), k()])]) : null;
3440
+ }, [x(), b(), k()])]) : null;
3432
3441
  }
3433
- function M(E) {
3442
+ function T(F) {
3434
3443
  return s("div", {
3435
3444
  class: "uploadAndpreview--title-container"
3436
3445
  }, [s("div", {
@@ -3443,14 +3452,14 @@ const La = /* @__PURE__ */ te({
3443
3452
  class: "ffilepreview--preview-block"
3444
3453
  }, null)])]);
3445
3454
  }
3446
- function O(E) {
3455
+ function H(F) {
3447
3456
  return s("div", {
3448
3457
  class: "uploadAndpreview--filesize-container"
3449
3458
  }, [s("span", {
3450
3459
  class: "ffilepreview--preview-block"
3451
3460
  }, null)]);
3452
3461
  }
3453
- function D() {
3462
+ function g() {
3454
3463
  return s("div", {
3455
3464
  class: "uploadAndpreview--state-container"
3456
3465
  }, [s("p", {
@@ -3459,7 +3468,7 @@ const La = /* @__PURE__ */ te({
3459
3468
  class: "f-icon f-icon-success text-success"
3460
3469
  }, null), s("span", null, [C("已上传")])])]);
3461
3470
  }
3462
- function H(E) {
3471
+ function N(F) {
3463
3472
  return s("div", {
3464
3473
  class: "uploadAndpreview--action-container"
3465
3474
  }, [u.value ? "" : s("button", {
@@ -3480,38 +3489,38 @@ const La = /* @__PURE__ */ te({
3480
3489
  style: "top: -1px"
3481
3490
  }, null)])]);
3482
3491
  }
3483
- function Y(E) {
3492
+ function _(F) {
3484
3493
  return s("div", {
3485
3494
  class: "uploadAndpreview--date-container"
3486
3495
  }, [C(" "), s("span", {
3487
3496
  class: "ffilepreview--preview-block"
3488
3497
  }, null)]);
3489
3498
  }
3490
- function L(E, j, ue) {
3491
- let _ = null;
3492
- if (E = E || "preview", E === "preview" && j)
3499
+ function W(F, q, ue) {
3500
+ let R = null;
3501
+ if (F = F || "preview", F === "preview" && q)
3493
3502
  switch (ue.field) {
3494
3503
  case "state":
3495
- _ = D();
3504
+ R = g();
3496
3505
  break;
3497
3506
  case "name":
3498
- _ = M();
3507
+ R = T();
3499
3508
  break;
3500
3509
  case "action":
3501
- _ = H();
3510
+ R = N();
3502
3511
  break;
3503
3512
  case "size":
3504
- _ = O();
3513
+ R = H();
3505
3514
  break;
3506
3515
  case "createTime":
3507
- _ = Y();
3516
+ R = _();
3508
3517
  break;
3509
3518
  default:
3510
- _ = s("span", {
3519
+ R = s("span", {
3511
3520
  class: "ffilepreview--preview-block"
3512
3521
  }, null);
3513
3522
  }
3514
- return _;
3523
+ return R;
3515
3524
  }
3516
3525
  function V() {
3517
3526
  return o.value ? s("div", {
@@ -3534,30 +3543,30 @@ const La = /* @__PURE__ */ te({
3534
3543
  }, [C("删除")])]) : null;
3535
3544
  }
3536
3545
  function le() {
3537
- return h.value.map((E) => g(E) ? s("th", {
3546
+ return h.value.map((F) => v(F) ? s("th", {
3538
3547
  style: {
3539
- width: E.width ? E.width + "px" : "auto"
3548
+ width: F.width ? F.width + "px" : "auto"
3540
3549
  },
3541
- class: [!l.value && E.checkbox && E.checkbox ? "td--hascheckbox" : ""]
3542
- }, [!l.value && m.value && E.checkbox ? s(G("f-preview-checkbox"), {
3550
+ class: [!l.value && F.checkbox && F.checkbox ? "td--hascheckbox" : ""]
3551
+ }, [!l.value && m.value && F.checkbox ? s(G("f-preview-checkbox"), {
3543
3552
  class: "preview-checkbox",
3544
3553
  id: "previewMultiBtn"
3545
- }, null) : null, E.title]) : null);
3554
+ }, null) : null, F.title]) : null);
3546
3555
  }
3547
3556
  function ae() {
3548
- return i.map((E) => s("tr", {
3549
- class: ["uploadAndpreview--preview-item", x.value === E.id ? "uploadAndpreview--currentfile" : ""],
3550
- id: "uploadAndpreview--preview-item" + E.id
3551
- }, [h.value.map((j) => g(j) ? s("td", {
3552
- class: [!l.value && j.checkbox && j.checkbox ? "td--hascheckbox" : ""]
3553
- }, [!l.value && m.value && j.checkbox ? s(G("f-preview-checkbox"), {
3557
+ return i.map((F) => s("tr", {
3558
+ class: ["uploadAndpreview--preview-item", D.value === F.id ? "uploadAndpreview--currentfile" : ""],
3559
+ id: "uploadAndpreview--preview-item" + F.id
3560
+ }, [h.value.map((q) => v(q) ? s("td", {
3561
+ class: [!l.value && q.checkbox && q.checkbox ? "td--hascheckbox" : ""]
3562
+ }, [!l.value && m.value && q.checkbox ? s(G("f-preview-checkbox"), {
3554
3563
  class: "preview-checkbox"
3555
- }, null) : null, L("preview", E, j)]) : null)]));
3564
+ }, null) : null, W("preview", F, q)]) : null)]));
3556
3565
  }
3557
3566
  St(() => {
3558
3567
  });
3559
- const Z = N(), re = oe("design-item-context"), B = Ua(Z, re);
3560
- return Fe(() => {
3568
+ const Z = O(), re = oe("design-item-context"), B = Ua(Z, re);
3569
+ return Ee(() => {
3561
3570
  Z.value.componentInstance = B;
3562
3571
  }), e.expose(B.value), () => s("div", {
3563
3572
  class: "fv-upload-and-preview",
@@ -3577,11 +3586,11 @@ De.register = (t, e, n, a) => {
3577
3586
  De.registerDesigner = (t, e, n) => {
3578
3587
  t.uploader = La, e.uploader = tt;
3579
3588
  };
3580
- const Xa = Ca(De);
3589
+ const Ga = Ct(De);
3581
3590
  export {
3582
3591
  De as FUploader,
3583
3592
  Pa as UploadServerAPI,
3584
- Xa as default,
3593
+ Ga as default,
3585
3594
  tt as propsResolver,
3586
3595
  Ae as uploaderProps
3587
3596
  };