antd-mobile 5.26.0 → 5.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (306) hide show
  1. package/2x/README.md +6 -22
  2. package/2x/bundle/antd-mobile.cjs.development.js +1174 -1041
  3. package/2x/bundle/antd-mobile.cjs.js +9 -8
  4. package/2x/bundle/antd-mobile.es.development.js +1012 -879
  5. package/2x/bundle/antd-mobile.es.js +8133 -7949
  6. package/2x/bundle/antd-mobile.umd.development.js +1174 -1041
  7. package/2x/bundle/antd-mobile.umd.js +9 -8
  8. package/2x/cjs/components/action-sheet/index.d.ts +0 -1
  9. package/2x/cjs/components/badge/index.d.ts +0 -1
  10. package/2x/cjs/components/capsule-tabs/index.d.ts +0 -1
  11. package/2x/cjs/components/cascade-picker/index.d.ts +0 -1
  12. package/2x/cjs/components/cascader/index.d.ts +0 -1
  13. package/2x/cjs/components/cascader-view/index.d.ts +0 -1
  14. package/2x/cjs/components/check-list/index.d.ts +0 -1
  15. package/2x/cjs/components/checkbox/group-context.d.ts +0 -1
  16. package/2x/cjs/components/checkbox/index.d.ts +0 -1
  17. package/2x/cjs/components/collapse/index.d.ts +0 -1
  18. package/2x/cjs/components/date-picker/date-picker-date-utils.d.ts +2 -3
  19. package/2x/cjs/components/date-picker/date-picker-date-utils.js +14 -12
  20. package/2x/cjs/components/date-picker/date-picker-utils.d.ts +2 -3
  21. package/2x/cjs/components/date-picker/date-picker-utils.js +11 -12
  22. package/2x/cjs/components/date-picker/date-picker-week-utils.d.ts +0 -1
  23. package/2x/cjs/components/date-picker/date-picker-week-utils.js +0 -4
  24. package/2x/cjs/components/date-picker/date-picker.d.ts +20 -16
  25. package/2x/cjs/components/date-picker/date-picker.js +12 -3
  26. package/2x/cjs/components/date-picker/index.d.ts +10 -9
  27. package/2x/cjs/components/date-picker/index.js +3 -1
  28. package/2x/cjs/components/date-picker/prompt.d.ts +2 -1
  29. package/2x/cjs/components/date-picker/util.d.ts +4 -0
  30. package/2x/cjs/components/date-picker/util.js +8 -0
  31. package/2x/cjs/components/date-picker-view/date-picker-view.d.ts +2 -1
  32. package/2x/cjs/components/date-picker-view/date-picker-view.js +7 -3
  33. package/2x/cjs/components/date-picker-view/useRenderLabel.d.ts +2 -0
  34. package/2x/cjs/components/date-picker-view/useRenderLabel.js +29 -0
  35. package/2x/cjs/components/dialog/index.d.ts +0 -1
  36. package/2x/cjs/components/dropdown/index.d.ts +0 -1
  37. package/2x/cjs/components/error-block/error-block.d.ts +0 -1
  38. package/2x/cjs/components/error-block/images/busy.d.ts +0 -1
  39. package/2x/cjs/components/error-block/images/default.d.ts +0 -1
  40. package/2x/cjs/components/error-block/images/disconnected.d.ts +0 -1
  41. package/2x/cjs/components/error-block/images/empty.d.ts +0 -1
  42. package/2x/cjs/components/form/index.d.ts +0 -1
  43. package/2x/cjs/components/grid/index.d.ts +0 -1
  44. package/2x/cjs/components/image-uploader/image-uploader.js +6 -3
  45. package/2x/cjs/components/image-viewer/index.d.ts +0 -1
  46. package/2x/cjs/components/index-bar/index.d.ts +0 -1
  47. package/2x/cjs/components/jumbo-tabs/index.d.ts +0 -1
  48. package/2x/cjs/components/list/index.d.ts +0 -1
  49. package/2x/cjs/components/modal/index.d.ts +0 -1
  50. package/2x/cjs/components/popover/index.d.ts +0 -1
  51. package/2x/cjs/components/radio/group-context.d.ts +0 -1
  52. package/2x/cjs/components/radio/index.d.ts +0 -1
  53. package/2x/cjs/components/result-page/index.d.ts +0 -1
  54. package/2x/cjs/components/side-bar/index.d.ts +0 -1
  55. package/2x/cjs/components/skeleton/index.d.ts +0 -1
  56. package/2x/cjs/components/slider/slider.js +8 -3
  57. package/2x/cjs/components/stepper/stepper.d.ts +23 -16
  58. package/2x/cjs/components/stepper/stepper.js +69 -35
  59. package/2x/cjs/components/steps/index.d.ts +0 -1
  60. package/2x/cjs/components/swiper/index.d.ts +0 -1
  61. package/2x/cjs/components/tab-bar/index.d.ts +0 -1
  62. package/2x/cjs/components/tabs/index.d.ts +0 -1
  63. package/2x/cjs/components/tree-select/index.d.ts +0 -1
  64. package/2x/cjs/locales/base.d.ts +3 -0
  65. package/2x/cjs/locales/base.js +3 -0
  66. package/2x/cjs/locales/en-US.d.ts +3 -0
  67. package/2x/cjs/locales/es-ES.d.ts +3 -0
  68. package/2x/cjs/locales/fa-IR.d.ts +3 -0
  69. package/2x/cjs/locales/fr-FR.d.ts +3 -0
  70. package/2x/cjs/locales/id-ID.d.ts +3 -0
  71. package/2x/cjs/locales/ja-JP.d.ts +3 -0
  72. package/2x/cjs/locales/kk-KZ.d.ts +3 -0
  73. package/2x/cjs/locales/ko-KR.d.ts +3 -0
  74. package/2x/cjs/locales/zh-CN.d.ts +3 -0
  75. package/2x/cjs/locales/zh-CN.js +3 -0
  76. package/2x/cjs/locales/zh-HK.d.ts +3 -0
  77. package/2x/cjs/locales/zh-TW.d.ts +3 -0
  78. package/2x/cjs/utils/use-isomorphic-update-layout-effect.d.ts +0 -1
  79. package/2x/cjs/utils/use-ref-state.d.ts +0 -1
  80. package/2x/es/components/action-sheet/index.d.ts +0 -1
  81. package/2x/es/components/badge/index.d.ts +0 -1
  82. package/2x/es/components/capsule-tabs/index.d.ts +0 -1
  83. package/2x/es/components/cascade-picker/index.d.ts +0 -1
  84. package/2x/es/components/cascader/index.d.ts +0 -1
  85. package/2x/es/components/cascader-view/index.d.ts +0 -1
  86. package/2x/es/components/check-list/index.d.ts +0 -1
  87. package/2x/es/components/checkbox/group-context.d.ts +0 -1
  88. package/2x/es/components/checkbox/index.d.ts +0 -1
  89. package/2x/es/components/collapse/index.d.ts +0 -1
  90. package/2x/es/components/date-picker/date-picker-date-utils.d.ts +2 -3
  91. package/2x/es/components/date-picker/date-picker-date-utils.js +14 -11
  92. package/2x/es/components/date-picker/date-picker-utils.d.ts +2 -3
  93. package/2x/es/components/date-picker/date-picker-utils.js +9 -9
  94. package/2x/es/components/date-picker/date-picker-week-utils.d.ts +0 -1
  95. package/2x/es/components/date-picker/date-picker-week-utils.js +0 -3
  96. package/2x/es/components/date-picker/date-picker.d.ts +20 -16
  97. package/2x/es/components/date-picker/date-picker.js +13 -4
  98. package/2x/es/components/date-picker/index.d.ts +10 -9
  99. package/2x/es/components/date-picker/index.js +3 -1
  100. package/2x/es/components/date-picker/prompt.d.ts +2 -1
  101. package/2x/es/components/date-picker/util.d.ts +4 -0
  102. package/2x/es/components/date-picker/util.js +1 -0
  103. package/2x/es/components/date-picker-view/date-picker-view.d.ts +2 -1
  104. package/2x/es/components/date-picker-view/date-picker-view.js +8 -4
  105. package/2x/es/components/date-picker-view/useRenderLabel.d.ts +2 -0
  106. package/2x/es/components/date-picker-view/useRenderLabel.js +23 -0
  107. package/2x/es/components/dialog/index.d.ts +0 -1
  108. package/2x/es/components/dropdown/index.d.ts +0 -1
  109. package/2x/es/components/error-block/error-block.d.ts +0 -1
  110. package/2x/es/components/error-block/images/busy.d.ts +0 -1
  111. package/2x/es/components/error-block/images/default.d.ts +0 -1
  112. package/2x/es/components/error-block/images/disconnected.d.ts +0 -1
  113. package/2x/es/components/error-block/images/empty.d.ts +0 -1
  114. package/2x/es/components/form/index.d.ts +0 -1
  115. package/2x/es/components/grid/index.d.ts +0 -1
  116. package/2x/es/components/image-uploader/image-uploader.js +6 -3
  117. package/2x/es/components/image-viewer/index.d.ts +0 -1
  118. package/2x/es/components/index-bar/index.d.ts +0 -1
  119. package/2x/es/components/jumbo-tabs/index.d.ts +0 -1
  120. package/2x/es/components/list/index.d.ts +0 -1
  121. package/2x/es/components/modal/index.d.ts +0 -1
  122. package/2x/es/components/popover/index.d.ts +0 -1
  123. package/2x/es/components/radio/group-context.d.ts +0 -1
  124. package/2x/es/components/radio/index.d.ts +0 -1
  125. package/2x/es/components/result-page/index.d.ts +0 -1
  126. package/2x/es/components/side-bar/index.d.ts +0 -1
  127. package/2x/es/components/skeleton/index.d.ts +0 -1
  128. package/2x/es/components/slider/slider.js +8 -3
  129. package/2x/es/components/stepper/stepper.d.ts +23 -16
  130. package/2x/es/components/stepper/stepper.js +68 -33
  131. package/2x/es/components/steps/index.d.ts +0 -1
  132. package/2x/es/components/swiper/index.d.ts +0 -1
  133. package/2x/es/components/tab-bar/index.d.ts +0 -1
  134. package/2x/es/components/tabs/index.d.ts +0 -1
  135. package/2x/es/components/tree-select/index.d.ts +0 -1
  136. package/2x/es/locales/base.d.ts +3 -0
  137. package/2x/es/locales/base.js +3 -0
  138. package/2x/es/locales/en-US.d.ts +3 -0
  139. package/2x/es/locales/es-ES.d.ts +3 -0
  140. package/2x/es/locales/fa-IR.d.ts +3 -0
  141. package/2x/es/locales/fr-FR.d.ts +3 -0
  142. package/2x/es/locales/id-ID.d.ts +3 -0
  143. package/2x/es/locales/ja-JP.d.ts +3 -0
  144. package/2x/es/locales/kk-KZ.d.ts +3 -0
  145. package/2x/es/locales/ko-KR.d.ts +3 -0
  146. package/2x/es/locales/zh-CN.d.ts +3 -0
  147. package/2x/es/locales/zh-CN.js +3 -0
  148. package/2x/es/locales/zh-HK.d.ts +3 -0
  149. package/2x/es/locales/zh-TW.d.ts +3 -0
  150. package/2x/es/utils/use-isomorphic-update-layout-effect.d.ts +0 -1
  151. package/2x/es/utils/use-ref-state.d.ts +0 -1
  152. package/2x/package.json +3 -2
  153. package/README.md +6 -22
  154. package/bundle/antd-mobile.cjs.development.js +1174 -1041
  155. package/bundle/antd-mobile.cjs.js +9 -8
  156. package/bundle/antd-mobile.compatible.umd.js +1 -1
  157. package/bundle/antd-mobile.es.development.js +1012 -879
  158. package/bundle/antd-mobile.es.js +8133 -7949
  159. package/bundle/antd-mobile.umd.development.js +1174 -1041
  160. package/bundle/antd-mobile.umd.js +9 -8
  161. package/cjs/components/action-sheet/index.d.ts +0 -1
  162. package/cjs/components/badge/index.d.ts +0 -1
  163. package/cjs/components/capsule-tabs/index.d.ts +0 -1
  164. package/cjs/components/cascade-picker/index.d.ts +0 -1
  165. package/cjs/components/cascader/index.d.ts +0 -1
  166. package/cjs/components/cascader-view/index.d.ts +0 -1
  167. package/cjs/components/check-list/index.d.ts +0 -1
  168. package/cjs/components/checkbox/group-context.d.ts +0 -1
  169. package/cjs/components/checkbox/index.d.ts +0 -1
  170. package/cjs/components/collapse/index.d.ts +0 -1
  171. package/cjs/components/date-picker/date-picker-date-utils.d.ts +2 -3
  172. package/cjs/components/date-picker/date-picker-date-utils.js +14 -12
  173. package/cjs/components/date-picker/date-picker-utils.d.ts +2 -3
  174. package/cjs/components/date-picker/date-picker-utils.js +11 -12
  175. package/cjs/components/date-picker/date-picker-week-utils.d.ts +0 -1
  176. package/cjs/components/date-picker/date-picker-week-utils.js +0 -4
  177. package/cjs/components/date-picker/date-picker.d.ts +20 -16
  178. package/cjs/components/date-picker/date-picker.js +12 -3
  179. package/cjs/components/date-picker/index.d.ts +10 -9
  180. package/cjs/components/date-picker/index.js +3 -1
  181. package/cjs/components/date-picker/prompt.d.ts +2 -1
  182. package/cjs/components/date-picker/util.d.ts +4 -0
  183. package/cjs/components/date-picker/util.js +8 -0
  184. package/cjs/components/date-picker-view/date-picker-view.d.ts +2 -1
  185. package/cjs/components/date-picker-view/date-picker-view.js +7 -3
  186. package/cjs/components/date-picker-view/useRenderLabel.d.ts +2 -0
  187. package/cjs/components/date-picker-view/useRenderLabel.js +29 -0
  188. package/cjs/components/dialog/index.d.ts +0 -1
  189. package/cjs/components/dropdown/index.d.ts +0 -1
  190. package/cjs/components/error-block/error-block.d.ts +0 -1
  191. package/cjs/components/error-block/images/busy.d.ts +0 -1
  192. package/cjs/components/error-block/images/default.d.ts +0 -1
  193. package/cjs/components/error-block/images/disconnected.d.ts +0 -1
  194. package/cjs/components/error-block/images/empty.d.ts +0 -1
  195. package/cjs/components/form/index.d.ts +0 -1
  196. package/cjs/components/grid/index.d.ts +0 -1
  197. package/cjs/components/image-uploader/image-uploader.js +6 -3
  198. package/cjs/components/image-viewer/index.d.ts +0 -1
  199. package/cjs/components/index-bar/index.d.ts +0 -1
  200. package/cjs/components/jumbo-tabs/index.d.ts +0 -1
  201. package/cjs/components/list/index.d.ts +0 -1
  202. package/cjs/components/modal/index.d.ts +0 -1
  203. package/cjs/components/popover/index.d.ts +0 -1
  204. package/cjs/components/radio/group-context.d.ts +0 -1
  205. package/cjs/components/radio/index.d.ts +0 -1
  206. package/cjs/components/result-page/index.d.ts +0 -1
  207. package/cjs/components/side-bar/index.d.ts +0 -1
  208. package/cjs/components/skeleton/index.d.ts +0 -1
  209. package/cjs/components/slider/slider.js +8 -3
  210. package/cjs/components/stepper/stepper.d.ts +23 -16
  211. package/cjs/components/stepper/stepper.js +69 -35
  212. package/cjs/components/steps/index.d.ts +0 -1
  213. package/cjs/components/swiper/index.d.ts +0 -1
  214. package/cjs/components/tab-bar/index.d.ts +0 -1
  215. package/cjs/components/tabs/index.d.ts +0 -1
  216. package/cjs/components/tree-select/index.d.ts +0 -1
  217. package/cjs/locales/base.d.ts +3 -0
  218. package/cjs/locales/base.js +3 -0
  219. package/cjs/locales/en-US.d.ts +3 -0
  220. package/cjs/locales/es-ES.d.ts +3 -0
  221. package/cjs/locales/fa-IR.d.ts +3 -0
  222. package/cjs/locales/fr-FR.d.ts +3 -0
  223. package/cjs/locales/id-ID.d.ts +3 -0
  224. package/cjs/locales/ja-JP.d.ts +3 -0
  225. package/cjs/locales/kk-KZ.d.ts +3 -0
  226. package/cjs/locales/ko-KR.d.ts +3 -0
  227. package/cjs/locales/zh-CN.d.ts +3 -0
  228. package/cjs/locales/zh-CN.js +3 -0
  229. package/cjs/locales/zh-HK.d.ts +3 -0
  230. package/cjs/locales/zh-TW.d.ts +3 -0
  231. package/cjs/utils/use-isomorphic-update-layout-effect.d.ts +0 -1
  232. package/cjs/utils/use-ref-state.d.ts +0 -1
  233. package/es/components/action-sheet/index.d.ts +0 -1
  234. package/es/components/badge/index.d.ts +0 -1
  235. package/es/components/capsule-tabs/index.d.ts +0 -1
  236. package/es/components/cascade-picker/index.d.ts +0 -1
  237. package/es/components/cascader/index.d.ts +0 -1
  238. package/es/components/cascader-view/index.d.ts +0 -1
  239. package/es/components/check-list/index.d.ts +0 -1
  240. package/es/components/checkbox/group-context.d.ts +0 -1
  241. package/es/components/checkbox/index.d.ts +0 -1
  242. package/es/components/collapse/index.d.ts +0 -1
  243. package/es/components/date-picker/date-picker-date-utils.d.ts +2 -3
  244. package/es/components/date-picker/date-picker-date-utils.js +14 -11
  245. package/es/components/date-picker/date-picker-utils.d.ts +2 -3
  246. package/es/components/date-picker/date-picker-utils.js +9 -9
  247. package/es/components/date-picker/date-picker-week-utils.d.ts +0 -1
  248. package/es/components/date-picker/date-picker-week-utils.js +0 -3
  249. package/es/components/date-picker/date-picker.d.ts +20 -16
  250. package/es/components/date-picker/date-picker.js +13 -4
  251. package/es/components/date-picker/index.d.ts +10 -9
  252. package/es/components/date-picker/index.js +3 -1
  253. package/es/components/date-picker/prompt.d.ts +2 -1
  254. package/es/components/date-picker/util.d.ts +4 -0
  255. package/es/components/date-picker/util.js +1 -0
  256. package/es/components/date-picker-view/date-picker-view.d.ts +2 -1
  257. package/es/components/date-picker-view/date-picker-view.js +8 -4
  258. package/es/components/date-picker-view/useRenderLabel.d.ts +2 -0
  259. package/es/components/date-picker-view/useRenderLabel.js +23 -0
  260. package/es/components/dialog/index.d.ts +0 -1
  261. package/es/components/dropdown/index.d.ts +0 -1
  262. package/es/components/error-block/error-block.d.ts +0 -1
  263. package/es/components/error-block/images/busy.d.ts +0 -1
  264. package/es/components/error-block/images/default.d.ts +0 -1
  265. package/es/components/error-block/images/disconnected.d.ts +0 -1
  266. package/es/components/error-block/images/empty.d.ts +0 -1
  267. package/es/components/form/index.d.ts +0 -1
  268. package/es/components/grid/index.d.ts +0 -1
  269. package/es/components/image-uploader/image-uploader.js +6 -3
  270. package/es/components/image-viewer/index.d.ts +0 -1
  271. package/es/components/index-bar/index.d.ts +0 -1
  272. package/es/components/jumbo-tabs/index.d.ts +0 -1
  273. package/es/components/list/index.d.ts +0 -1
  274. package/es/components/modal/index.d.ts +0 -1
  275. package/es/components/popover/index.d.ts +0 -1
  276. package/es/components/radio/group-context.d.ts +0 -1
  277. package/es/components/radio/index.d.ts +0 -1
  278. package/es/components/result-page/index.d.ts +0 -1
  279. package/es/components/side-bar/index.d.ts +0 -1
  280. package/es/components/skeleton/index.d.ts +0 -1
  281. package/es/components/slider/slider.js +8 -3
  282. package/es/components/stepper/stepper.d.ts +23 -16
  283. package/es/components/stepper/stepper.js +68 -33
  284. package/es/components/steps/index.d.ts +0 -1
  285. package/es/components/swiper/index.d.ts +0 -1
  286. package/es/components/tab-bar/index.d.ts +0 -1
  287. package/es/components/tabs/index.d.ts +0 -1
  288. package/es/components/tree-select/index.d.ts +0 -1
  289. package/es/locales/base.d.ts +3 -0
  290. package/es/locales/base.js +3 -0
  291. package/es/locales/en-US.d.ts +3 -0
  292. package/es/locales/es-ES.d.ts +3 -0
  293. package/es/locales/fa-IR.d.ts +3 -0
  294. package/es/locales/fr-FR.d.ts +3 -0
  295. package/es/locales/id-ID.d.ts +3 -0
  296. package/es/locales/ja-JP.d.ts +3 -0
  297. package/es/locales/kk-KZ.d.ts +3 -0
  298. package/es/locales/ko-KR.d.ts +3 -0
  299. package/es/locales/zh-CN.d.ts +3 -0
  300. package/es/locales/zh-CN.js +3 -0
  301. package/es/locales/zh-HK.d.ts +3 -0
  302. package/es/locales/zh-TW.d.ts +3 -0
  303. package/es/utils/use-isomorphic-update-layout-effect.d.ts +0 -1
  304. package/es/utils/use-ref-state.d.ts +0 -1
  305. package/package.json +3 -2
  306. package/umd/antd-mobile.js +1 -1
@@ -1,6 +1,6 @@
1
1
  (function(global2, factory) {
2
2
  typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.antdMobile = {}, global2.React, global2.ReactDOM));
3
- })(this, function(exports2, React$1, ReactDOM) {
3
+ })(this, function(exports2, React$4, ReactDOM) {
4
4
  "use strict";
5
5
  const _interopDefaultLegacy = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
6
6
  function _interopNamespace(e) {
@@ -21,12 +21,12 @@
21
21
  n.default = e;
22
22
  return Object.freeze(n);
23
23
  }
24
- const React__default = /* @__PURE__ */ _interopDefaultLegacy(React$1);
25
- const React__namespace = /* @__PURE__ */ _interopNamespace(React$1);
24
+ const React__default = /* @__PURE__ */ _interopDefaultLegacy(React$4);
25
+ const React__namespace = /* @__PURE__ */ _interopNamespace(React$4);
26
26
  const ReactDOM__namespace = /* @__PURE__ */ _interopNamespace(ReactDOM);
27
27
  const global$2 = "";
28
- const canUseDom = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
29
- if (canUseDom) {
28
+ const canUseDom$2 = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
29
+ if (canUseDom$2) {
30
30
  document.addEventListener("touchstart", () => {
31
31
  }, true);
32
32
  }
@@ -42,13 +42,13 @@
42
42
  }
43
43
  return t;
44
44
  }
45
- function __awaiter$1(thisArg, _arguments, P2, generator) {
45
+ function __awaiter$1(thisArg, _arguments, P, generator) {
46
46
  function adopt(value) {
47
- return value instanceof P2 ? value : new P2(function(resolve) {
47
+ return value instanceof P ? value : new P(function(resolve) {
48
48
  resolve(value);
49
49
  });
50
50
  }
51
- return new (P2 || (P2 = Promise))(function(resolve, reject) {
51
+ return new (P || (P = Promise))(function(resolve, reject) {
52
52
  function fulfilled(value) {
53
53
  try {
54
54
  step(generator.next(value));
@@ -102,6 +102,9 @@
102
102
  Dialog: {
103
103
  ok: "OK"
104
104
  },
105
+ DatePicker: {
106
+ tillNow: "Till Now"
107
+ },
105
108
  ErrorBlock: {
106
109
  default: {
107
110
  title: "Oops, something went wrong",
@@ -229,6 +232,9 @@
229
232
  Dialog: {
230
233
  ok: "\u6211\u77E5\u9053\u4E86"
231
234
  },
235
+ DatePicker: {
236
+ tillNow: "\u81F3\u4ECA"
237
+ },
232
238
  ErrorBlock: {
233
239
  default: {
234
240
  title: "\u9875\u9762\u9047\u5230\u4E00\u4E9B\u5C0F\u95EE\u9898",
@@ -362,7 +368,7 @@
362
368
  };
363
369
  function useConfig() {
364
370
  var _a;
365
- return (_a = React$1.useContext(ConfigContext)) !== null && _a !== void 0 ? _a : getDefaultConfig();
371
+ return (_a = React$4.useContext(ConfigContext)) !== null && _a !== void 0 ? _a : getDefaultConfig();
366
372
  }
367
373
  const ConfigProvider = ConfigProvider$1;
368
374
  const actionSheet = "";
@@ -900,7 +906,7 @@
900
906
  const popup = "";
901
907
  var createUpdateEffect = function createUpdateEffect2(hook) {
902
908
  return function(effect, deps) {
903
- var isMounted = React$1.useRef(false);
909
+ var isMounted = React$4.useRef(false);
904
910
  hook(function() {
905
911
  return function() {
906
912
  isMounted.current = false;
@@ -929,11 +935,11 @@
929
935
  console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof fn));
930
936
  }
931
937
  }
932
- var fnRef = React$1.useRef(fn);
933
- fnRef.current = React$1.useMemo(function() {
938
+ var fnRef = React$4.useRef(fn);
939
+ fnRef.current = React$4.useMemo(function() {
934
940
  return fn;
935
941
  }, [fn]);
936
- var memoizedFn = React$1.useRef();
942
+ var memoizedFn = React$4.useRef();
937
943
  if (!memoizedFn.current) {
938
944
  memoizedFn.current = function() {
939
945
  var args = [];
@@ -945,7 +951,7 @@
945
951
  }
946
952
  return memoizedFn.current;
947
953
  }
948
- const useUpdateEffect = createUpdateEffect(React$1.useEffect);
954
+ const useUpdateEffect = createUpdateEffect(React$4.useEffect);
949
955
  function depsAreSame(oldDeps, deps) {
950
956
  if (oldDeps === deps)
951
957
  return true;
@@ -956,7 +962,7 @@
956
962
  return true;
957
963
  }
958
964
  function useLatest(value) {
959
- var ref = React$1.useRef(value);
965
+ var ref = React$4.useRef(value);
960
966
  ref.current = value;
961
967
  return ref;
962
968
  }
@@ -967,7 +973,7 @@
967
973
  }
968
974
  }
969
975
  var fnRef = useLatest(fn);
970
- React$1.useEffect(function() {
976
+ React$4.useEffect(function() {
971
977
  return function() {
972
978
  fnRef.current();
973
979
  };
@@ -1135,7 +1141,7 @@
1135
1141
  console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof fn, '".'));
1136
1142
  }
1137
1143
  }
1138
- React$1.useEffect(function() {
1144
+ React$4.useEffect(function() {
1139
1145
  fn === null || fn === void 0 ? void 0 : fn();
1140
1146
  }, []);
1141
1147
  };
@@ -1165,8 +1171,8 @@
1165
1171
  return ar;
1166
1172
  };
1167
1173
  var useUpdate = function useUpdate2() {
1168
- var _a = __read$7(React$1.useState({}), 2), setState = _a[1];
1169
- return React$1.useCallback(function() {
1174
+ var _a = __read$7(React$4.useState({}), 2), setState = _a[1];
1175
+ return React$4.useCallback(function() {
1170
1176
  return setState({});
1171
1177
  }, []);
1172
1178
  };
@@ -1216,10 +1222,10 @@
1216
1222
  const getDocumentOrShadow$1 = getDocumentOrShadow;
1217
1223
  var createEffectWithTarget = function createEffectWithTarget2(useEffectType) {
1218
1224
  var useEffectWithTarget2 = function useEffectWithTarget3(effect, deps, target) {
1219
- var hasInitRef = React$1.useRef(false);
1220
- var lastElementRef = React$1.useRef([]);
1221
- var lastDepsRef = React$1.useRef([]);
1222
- var unLoadRef = React$1.useRef();
1225
+ var hasInitRef = React$4.useRef(false);
1226
+ var lastElementRef = React$4.useRef([]);
1227
+ var lastDepsRef = React$4.useRef([]);
1228
+ var unLoadRef = React$4.useRef();
1223
1229
  useEffectType(function() {
1224
1230
  var _a;
1225
1231
  var targets = Array.isArray(target) ? target : [target];
@@ -1249,7 +1255,7 @@
1249
1255
  return useEffectWithTarget2;
1250
1256
  };
1251
1257
  const createEffectWithTarget$1 = createEffectWithTarget;
1252
- var useEffectWithTarget$1 = createEffectWithTarget$1(React$1.useEffect);
1258
+ var useEffectWithTarget$1 = createEffectWithTarget$1(React$4.useEffect);
1253
1259
  const useEffectWithTarget$2 = useEffectWithTarget$1;
1254
1260
  function useClickAway(onClickAway, target, eventName) {
1255
1261
  if (eventName === void 0) {
@@ -1532,7 +1538,7 @@
1532
1538
  }
1533
1539
  var fnRef = useLatest(fn);
1534
1540
  var wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
1535
- var debounced = React$1.useMemo(function() {
1541
+ var debounced = React$4.useMemo(function() {
1536
1542
  return debounce_1(function() {
1537
1543
  var args = [];
1538
1544
  for (var _i = 0; _i < arguments.length; _i++) {
@@ -1575,11 +1581,11 @@
1575
1581
  return ar;
1576
1582
  };
1577
1583
  function useDebounceEffect(effect, deps, options) {
1578
- var _a = __read$5(React$1.useState({}), 2), flag = _a[0], setFlag = _a[1];
1584
+ var _a = __read$5(React$4.useState({}), 2), flag = _a[0], setFlag = _a[1];
1579
1585
  var run = useDebounceFn(function() {
1580
1586
  setFlag({});
1581
1587
  }, options).run;
1582
- React$1.useEffect(function() {
1588
+ React$4.useEffect(function() {
1583
1589
  return run();
1584
1590
  }, deps);
1585
1591
  useUpdateEffect(effect, [flag]);
@@ -2755,8 +2761,8 @@
2755
2761
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
2756
2762
  };
2757
2763
  function useInViewport(target, options) {
2758
- var _a = __read$4(React$1.useState(), 2), state = _a[0], setState = _a[1];
2759
- var _b = __read$4(React$1.useState(), 2), ratio = _b[0], setRatio = _b[1];
2764
+ var _a = __read$4(React$4.useState(), 2), state = _a[0], setState = _a[1];
2765
+ var _b = __read$4(React$4.useState(), 2), ratio = _b[0], setRatio = _b[1];
2760
2766
  useEffectWithTarget$2(function() {
2761
2767
  var el = getTargetElement(target);
2762
2768
  if (!el) {
@@ -2793,15 +2799,15 @@
2793
2799
  }, [], target);
2794
2800
  return [state, ratio];
2795
2801
  }
2796
- var useIsomorphicLayoutEffect$1 = isBrowser$3 ? React$1.useLayoutEffect : React$1.useEffect;
2802
+ var useIsomorphicLayoutEffect$1 = isBrowser$3 ? React$4.useLayoutEffect : React$4.useEffect;
2797
2803
  const useIsomorphicLayoutEffect$2 = useIsomorphicLayoutEffect$1;
2798
- var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P2, generator) {
2804
+ var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P, generator) {
2799
2805
  function adopt(value) {
2800
- return value instanceof P2 ? value : new P2(function(resolve) {
2806
+ return value instanceof P ? value : new P(function(resolve) {
2801
2807
  resolve(value);
2802
2808
  });
2803
2809
  }
2804
- return new (P2 || (P2 = Promise))(function(resolve, reject) {
2810
+ return new (P || (P = Promise))(function(resolve, reject) {
2805
2811
  function fulfilled(value) {
2806
2812
  try {
2807
2813
  step(generator.next(value));
@@ -2951,8 +2957,8 @@
2951
2957
  };
2952
2958
  function useLockFn(fn) {
2953
2959
  var _this = this;
2954
- var lockRef = React$1.useRef(false);
2955
- return React$1.useCallback(function() {
2960
+ var lockRef = React$4.useRef(false);
2961
+ return React$4.useCallback(function() {
2956
2962
  var args = [];
2957
2963
  for (var _i = 0; _i < arguments.length; _i++) {
2958
2964
  args[_i] = arguments[_i];
@@ -3009,9 +3015,9 @@
3009
3015
  return ar;
3010
3016
  };
3011
3017
  function useRafState(initialState) {
3012
- var ref = React$1.useRef(0);
3013
- var _a = __read$2(React$1.useState(initialState), 2), state = _a[0], setState = _a[1];
3014
- var setRafState = React$1.useCallback(function(value) {
3018
+ var ref = React$4.useRef(0);
3019
+ var _a = __read$2(React$4.useState(initialState), 2), state = _a[0], setState = _a[1];
3020
+ var setRafState = React$4.useCallback(function(value) {
3015
3021
  cancelAnimationFrame(ref.current);
3016
3022
  ref.current = requestAnimationFrame(function() {
3017
3023
  setState(value);
@@ -3023,8 +3029,8 @@
3023
3029
  return [state, setRafState];
3024
3030
  }
3025
3031
  var useUnmountedRef = function useUnmountedRef2() {
3026
- var unmountedRef = React$1.useRef(false);
3027
- React$1.useEffect(function() {
3032
+ var unmountedRef = React$4.useRef(false);
3033
+ React$4.useEffect(function() {
3028
3034
  unmountedRef.current = false;
3029
3035
  return function() {
3030
3036
  unmountedRef.current = true;
@@ -3504,7 +3510,7 @@
3504
3510
  }
3505
3511
  return ResizeObserver$1;
3506
3512
  }();
3507
- var useEffectWithTarget = createEffectWithTarget$1(React$1.useLayoutEffect);
3513
+ var useEffectWithTarget = createEffectWithTarget$1(React$4.useLayoutEffect);
3508
3514
  const useLayoutEffectWithTarget = useEffectWithTarget;
3509
3515
  var useIsomorphicLayoutEffectWithTarget = isBrowser$3 ? useLayoutEffectWithTarget : useEffectWithTarget$2;
3510
3516
  const useIsomorphicLayoutEffectWithTarget$1 = useIsomorphicLayoutEffectWithTarget;
@@ -3599,7 +3605,7 @@
3599
3605
  }
3600
3606
  var fnRef = useLatest(fn);
3601
3607
  var wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
3602
- var throttled = React$1.useMemo(function() {
3608
+ var throttled = React$4.useMemo(function() {
3603
3609
  return throttle_1(function() {
3604
3610
  var args = [];
3605
3611
  for (var _i = 0; _i < arguments.length; _i++) {
@@ -3619,8 +3625,8 @@
3619
3625
  }
3620
3626
  function useTimeout(fn, delay) {
3621
3627
  var fnRef = useLatest(fn);
3622
- var timerRef = React$1.useRef(null);
3623
- React$1.useEffect(function() {
3628
+ var timerRef = React$4.useRef(null);
3629
+ React$4.useEffect(function() {
3624
3630
  if (!isNumber(delay) || delay < 0) {
3625
3631
  return;
3626
3632
  }
@@ -3633,7 +3639,7 @@
3633
3639
  }
3634
3640
  };
3635
3641
  }, [delay]);
3636
- var clear2 = React$1.useCallback(function() {
3642
+ var clear2 = React$4.useCallback(function() {
3637
3643
  if (timerRef.current) {
3638
3644
  clearTimeout(timerRef.current);
3639
3645
  }
@@ -3652,13 +3658,13 @@
3652
3658
  return "";
3653
3659
  }
3654
3660
  function useTouch() {
3655
- const startX = React$1.useRef(0);
3656
- const startY = React$1.useRef(0);
3657
- const deltaX = React$1.useRef(0);
3658
- const deltaY = React$1.useRef(0);
3659
- const offsetX = React$1.useRef(0);
3660
- const offsetY = React$1.useRef(0);
3661
- const direction = React$1.useRef("");
3661
+ const startX = React$4.useRef(0);
3662
+ const startY = React$4.useRef(0);
3663
+ const deltaX = React$4.useRef(0);
3664
+ const deltaY = React$4.useRef(0);
3665
+ const offsetX = React$4.useRef(0);
3666
+ const offsetY = React$4.useRef(0);
3667
+ const direction = React$4.useRef("");
3662
3668
  const isVertical = () => direction.current === "vertical";
3663
3669
  const isHorizontal = () => direction.current === "horizontal";
3664
3670
  const reset = () => {
@@ -3698,7 +3704,7 @@
3698
3704
  isHorizontal
3699
3705
  };
3700
3706
  }
3701
- const defaultRoot = canUseDom ? window : void 0;
3707
+ const defaultRoot = canUseDom$2 ? window : void 0;
3702
3708
  const overflowStylePatterns = ["scroll", "auto", "overlay"];
3703
3709
  function isElement$1(node) {
3704
3710
  const ELEMENT_NODE_TYPE = 1;
@@ -3721,7 +3727,7 @@
3721
3727
  return root2;
3722
3728
  }
3723
3729
  let supportsPassive = false;
3724
- if (canUseDom) {
3730
+ if (canUseDom$2) {
3725
3731
  try {
3726
3732
  const opts = {};
3727
3733
  Object.defineProperty(opts, "passive", {
@@ -3797,7 +3803,7 @@
3797
3803
  }
3798
3804
  }
3799
3805
  };
3800
- React$1.useEffect(() => {
3806
+ React$4.useEffect(() => {
3801
3807
  if (shouldLock) {
3802
3808
  lock();
3803
3809
  return () => {
@@ -4609,9 +4615,9 @@
4609
4615
  function isAnimatedString(value) {
4610
4616
  return is.str(value) && (value[0] == "#" || /\d/.test(value) || !isSSR() && cssVariableRegex.test(value) || value in (colors$1 || {}));
4611
4617
  }
4612
- const useIsomorphicLayoutEffect = isSSR() ? React$1.useEffect : React$1.useLayoutEffect;
4618
+ const useIsomorphicLayoutEffect = isSSR() ? React$4.useEffect : React$4.useLayoutEffect;
4613
4619
  const useIsMounted = () => {
4614
- const isMounted = React$1.useRef(false);
4620
+ const isMounted = React$4.useRef(false);
4615
4621
  useIsomorphicLayoutEffect(() => {
4616
4622
  isMounted.current = true;
4617
4623
  return () => {
@@ -4621,7 +4627,7 @@
4621
4627
  return isMounted;
4622
4628
  };
4623
4629
  function useForceUpdate() {
4624
- const update2 = React$1.useState()[1];
4630
+ const update2 = React$4.useState()[1];
4625
4631
  const isMounted = useIsMounted();
4626
4632
  return () => {
4627
4633
  if (isMounted.current) {
@@ -4630,11 +4636,11 @@
4630
4636
  };
4631
4637
  }
4632
4638
  function useMemoOne(getResult, inputs) {
4633
- const [initial] = React$1.useState(() => ({
4639
+ const [initial] = React$4.useState(() => ({
4634
4640
  inputs,
4635
4641
  result: getResult()
4636
4642
  }));
4637
- const committed = React$1.useRef();
4643
+ const committed = React$4.useRef();
4638
4644
  const prevCache = committed.current;
4639
4645
  let cache = prevCache;
4640
4646
  if (cache) {
@@ -4648,7 +4654,7 @@
4648
4654
  } else {
4649
4655
  cache = initial;
4650
4656
  }
4651
- React$1.useEffect(() => {
4657
+ React$4.useEffect(() => {
4652
4658
  committed.current = cache;
4653
4659
  if (prevCache == initial) {
4654
4660
  initial.inputs = initial.result = void 0;
@@ -4667,11 +4673,11 @@
4667
4673
  }
4668
4674
  return true;
4669
4675
  }
4670
- const useOnce = (effect) => React$1.useEffect(effect, emptyDeps);
4676
+ const useOnce = (effect) => React$4.useEffect(effect, emptyDeps);
4671
4677
  const emptyDeps = [];
4672
4678
  function usePrev(value) {
4673
- const prevRef = React$1.useRef();
4674
- React$1.useEffect(() => {
4679
+ const prevRef = React$4.useRef();
4680
+ React$4.useEffect(() => {
4675
4681
  prevRef.current = value;
4676
4682
  });
4677
4683
  return prevRef.current;
@@ -4875,9 +4881,9 @@
4875
4881
  }
4876
4882
  const withAnimated = (Component, host2) => {
4877
4883
  const hasInstance = !is.fun(Component) || Component.prototype && Component.prototype.isReactComponent;
4878
- return React$1.forwardRef((givenProps, givenRef) => {
4879
- const instanceRef = React$1.useRef(null);
4880
- const ref = hasInstance && React$1.useCallback((value) => {
4884
+ return React$4.forwardRef((givenProps, givenRef) => {
4885
+ const instanceRef = React$4.useRef(null);
4886
+ const ref = hasInstance && React$4.useCallback((value) => {
4881
4887
  instanceRef.current = updateRef(givenRef, value);
4882
4888
  }, [givenRef]);
4883
4889
  const [props, deps] = getAnimatedState(givenProps, host2);
@@ -4893,7 +4899,7 @@
4893
4899
  }
4894
4900
  };
4895
4901
  const observer = new PropsObserver(callback, deps);
4896
- const observerRef = React$1.useRef();
4902
+ const observerRef = React$4.useRef();
4897
4903
  useIsomorphicLayoutEffect(() => {
4898
4904
  observerRef.current = observer;
4899
4905
  each(deps, (dep) => addFluidObserver(dep, observer));
@@ -4904,7 +4910,7 @@
4904
4910
  }
4905
4911
  };
4906
4912
  });
4907
- React$1.useEffect(callback, []);
4913
+ React$4.useEffect(callback, []);
4908
4914
  useOnce(() => () => {
4909
4915
  const observer2 = observerRef.current;
4910
4916
  each(observer2.deps, (dep) => removeFluidObserver(dep, observer2));
@@ -6492,7 +6498,7 @@
6492
6498
  let {
6493
6499
  children
6494
6500
  } = _ref, props = _objectWithoutPropertiesLoose$3(_ref, _excluded$3$1);
6495
- const inherited = React$1.useContext(ctx);
6501
+ const inherited = React$4.useContext(ctx);
6496
6502
  const pause = props.pause || !!inherited.pause, immediate = props.immediate || !!inherited.immediate;
6497
6503
  props = useMemoOne(() => ({
6498
6504
  pause,
@@ -6585,10 +6591,10 @@
6585
6591
  const propsFn = is.fun(props) && props;
6586
6592
  if (propsFn && !deps)
6587
6593
  deps = [];
6588
- const ref = React$1.useMemo(() => propsFn || arguments.length == 3 ? SpringRef() : void 0, []);
6589
- const layoutId = React$1.useRef(0);
6594
+ const ref = React$4.useMemo(() => propsFn || arguments.length == 3 ? SpringRef() : void 0, []);
6595
+ const layoutId = React$4.useRef(0);
6590
6596
  const forceUpdate = useForceUpdate();
6591
- const state = React$1.useMemo(() => ({
6597
+ const state = React$4.useMemo(() => ({
6592
6598
  ctrls: [],
6593
6599
  queue: [],
6594
6600
  flush(ctrl, updates2) {
@@ -6603,10 +6609,10 @@
6603
6609
  });
6604
6610
  }
6605
6611
  }), []);
6606
- const ctrls = React$1.useRef([...state.ctrls]);
6612
+ const ctrls = React$4.useRef([...state.ctrls]);
6607
6613
  const updates = [];
6608
6614
  const prevLength = usePrev(length) || 0;
6609
- React$1.useMemo(() => {
6615
+ React$4.useMemo(() => {
6610
6616
  each(ctrls.current.slice(length, prevLength), (ctrl) => {
6611
6617
  detachRefs(ctrl, ref);
6612
6618
  ctrl.stop(true);
@@ -6614,7 +6620,7 @@
6614
6620
  ctrls.current.length = length;
6615
6621
  declareUpdates(prevLength, length);
6616
6622
  }, [length]);
6617
- React$1.useMemo(() => {
6623
+ React$4.useMemo(() => {
6618
6624
  declareUpdates(0, Math.min(prevLength, length));
6619
6625
  }, deps);
6620
6626
  function declareUpdates(startIndex, endIndex) {
@@ -6627,7 +6633,7 @@
6627
6633
  }
6628
6634
  }
6629
6635
  const springs = ctrls.current.map((ctrl, i) => getSprings(ctrl, updates[i]));
6630
- const context = React$1.useContext(SpringContext);
6636
+ const context = React$4.useContext(SpringContext);
6631
6637
  const prevContext = usePrev(context);
6632
6638
  const hasContext = context !== prevContext && hasProps(context);
6633
6639
  useIsomorphicLayoutEffect(() => {
@@ -6985,14 +6991,14 @@
6985
6991
  return container || document.body;
6986
6992
  }
6987
6993
  function renderToContainer(getContainer, node) {
6988
- if (canUseDom && getContainer) {
6994
+ if (canUseDom$2 && getContainer) {
6989
6995
  const container = resolveContainer(getContainer);
6990
6996
  return ReactDOM.createPortal(node, container);
6991
6997
  }
6992
6998
  return node;
6993
6999
  }
6994
7000
  function useInitialized(check) {
6995
- const initializedRef = React$1.useRef(check);
7001
+ const initializedRef = React$4.useRef(check);
6996
7002
  if (check) {
6997
7003
  initializedRef.current = true;
6998
7004
  }
@@ -7052,15 +7058,15 @@
7052
7058
  const {
7053
7059
  locale
7054
7060
  } = useConfig();
7055
- const ref = React$1.useRef(null);
7061
+ const ref = React$4.useRef(null);
7056
7062
  useLockScroll(ref, props.visible && props.disableBodyScroll);
7057
- const background = React$1.useMemo(() => {
7063
+ const background = React$4.useMemo(() => {
7058
7064
  var _a;
7059
7065
  const opacity2 = (_a = opacityRecord[props.opacity]) !== null && _a !== void 0 ? _a : props.opacity;
7060
7066
  const rgb2 = colorRecord$4[props.color];
7061
7067
  return rgb2 ? `rgba(${rgb2}, ${opacity2})` : props.color;
7062
7068
  }, [props.color, props.opacity]);
7063
- const [active, setActive] = React$1.useState(props.visible);
7069
+ const [active, setActive] = React$4.useState(props.visible);
7064
7070
  const unmountedRef = useUnmountedRef$1();
7065
7071
  const {
7066
7072
  opacity
@@ -7720,7 +7726,7 @@
7720
7726
  visible: false
7721
7727
  };
7722
7728
  function useInnerVisible(outerVisible) {
7723
- const [innerVisible, setInnerVisible] = React$1.useState(outerVisible);
7729
+ const [innerVisible, setInnerVisible] = React$4.useState(outerVisible);
7724
7730
  useIsomorphicLayoutEffect$2(() => {
7725
7731
  setInnerVisible(outerVisible);
7726
7732
  }, [outerVisible]);
@@ -7733,13 +7739,13 @@
7733
7739
  const Popup$1 = (p) => {
7734
7740
  const props = mergeProps(defaultProps$12, p);
7735
7741
  const bodyCls = classNames(`${classPrefix$1k}-body`, props.bodyClassName, `${classPrefix$1k}-body-position-${props.position}`);
7736
- const [active, setActive] = React$1.useState(props.visible);
7742
+ const [active, setActive] = React$4.useState(props.visible);
7737
7743
  useIsomorphicLayoutEffect$2(() => {
7738
7744
  if (props.visible) {
7739
7745
  setActive(true);
7740
7746
  }
7741
7747
  }, [props.visible]);
7742
- const ref = React$1.useRef(null);
7748
+ const ref = React$4.useRef(null);
7743
7749
  useLockScroll(ref, props.disableBodyScroll && active ? "strict" : false);
7744
7750
  const unmountedRef = useUnmountedRef$1();
7745
7751
  const {
@@ -7900,11 +7906,11 @@
7900
7906
  }
7901
7907
  function renderImperatively(element) {
7902
7908
  const Wrapper2 = React__default.default.forwardRef((_, ref) => {
7903
- const [visible, setVisible] = React$1.useState(false);
7904
- const closedRef = React$1.useRef(false);
7905
- const [elementToRender, setElementToRender] = React$1.useState(element);
7906
- const keyRef = React$1.useRef(0);
7907
- React$1.useEffect(() => {
7909
+ const [visible, setVisible] = React$4.useState(false);
7910
+ const closedRef = React$4.useRef(false);
7911
+ const [elementToRender, setElementToRender] = React$4.useState(element);
7912
+ const keyRef = React$4.useRef(0);
7913
+ React$4.useEffect(() => {
7908
7914
  if (!closedRef.current) {
7909
7915
  setVisible(true);
7910
7916
  } else {
@@ -7922,7 +7928,7 @@
7922
7928
  unmount2();
7923
7929
  (_b = (_a = elementToRender.props).afterClose) === null || _b === void 0 ? void 0 : _b.call(_a);
7924
7930
  }
7925
- React$1.useImperativeHandle(ref, () => ({
7931
+ React$4.useImperativeHandle(ref, () => ({
7926
7932
  close: onClose,
7927
7933
  replace: (element2) => {
7928
7934
  var _a, _b;
@@ -8071,9 +8077,9 @@
8071
8077
  return typeof val === "number" ? `${val}px` : val;
8072
8078
  }
8073
8079
  const LazyDetector = (props) => {
8074
- const ref = React$1.useRef(null);
8080
+ const ref = React$4.useRef(null);
8075
8081
  const [inViewport] = useInViewport(ref);
8076
- React$1.useEffect(() => {
8082
+ React$4.useEffect(() => {
8077
8083
  if (inViewport) {
8078
8084
  props.onActive();
8079
8085
  }
@@ -8113,12 +8119,12 @@
8113
8119
  };
8114
8120
  const Image$2 = staged_1((p) => {
8115
8121
  const props = mergeProps(defaultProps$10, p);
8116
- const [loaded, setLoaded] = React$1.useState(false);
8117
- const [failed, setFailed] = React$1.useState(false);
8118
- const ref = React$1.useRef(null);
8122
+ const [loaded, setLoaded] = React$4.useState(false);
8123
+ const [failed, setFailed] = React$4.useState(false);
8124
+ const ref = React$4.useRef(null);
8119
8125
  let src = props.src;
8120
8126
  let srcSet = props.srcSet;
8121
- const [initialized, setInitialized] = React$1.useState(!props.lazy);
8127
+ const [initialized, setInitialized] = React$4.useState(!props.lazy);
8122
8128
  src = initialized ? props.src : void 0;
8123
8129
  srcSet = initialized ? props.srcSet : void 0;
8124
8130
  useIsomorphicUpdateLayoutEffect(() => {
@@ -8180,7 +8186,7 @@
8180
8186
  }), renderInner()));
8181
8187
  });
8182
8188
  const Image$1 = Image$2;
8183
- const Fallback = React$1.memo(() => React__default.default.createElement("svg", {
8189
+ const Fallback = React$4.memo(() => React__default.default.createElement("svg", {
8184
8190
  className: "adm-avatar-fallback",
8185
8191
  width: "88px",
8186
8192
  height: "88px",
@@ -8276,7 +8282,7 @@
8276
8282
  const defaultProps$_ = {
8277
8283
  color: "default"
8278
8284
  };
8279
- const DotLoading$2 = React$1.memo((p) => {
8285
+ const DotLoading$2 = React$4.memo((p) => {
8280
8286
  var _a;
8281
8287
  const props = mergeProps(defaultProps$_, p);
8282
8288
  return withNativeProps(props, React__default.default.createElement("div", {
@@ -8325,7 +8331,7 @@
8325
8331
  return !!obj && typeof obj === "object" && typeof obj.then === "function";
8326
8332
  }
8327
8333
  function isIOS() {
8328
- return canUseDom ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
8334
+ return canUseDom$2 ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
8329
8335
  }
8330
8336
  const classPrefix$1c = `adm-button`;
8331
8337
  const defaultProps$Z = {
@@ -8340,13 +8346,13 @@
8340
8346
  shape: "default",
8341
8347
  size: "middle"
8342
8348
  };
8343
- const Button$1 = React$1.forwardRef((p, ref) => {
8349
+ const Button$1 = React$4.forwardRef((p, ref) => {
8344
8350
  const props = mergeProps(defaultProps$Z, p);
8345
- const [innerLoading, setInnerLoading] = React$1.useState(false);
8346
- const nativeButtonRef = React$1.useRef(null);
8351
+ const [innerLoading, setInnerLoading] = React$4.useState(false);
8352
+ const nativeButtonRef = React$4.useRef(null);
8347
8353
  const loading = props.loading === "auto" ? innerLoading : props.loading;
8348
8354
  const disabled = props.disabled || loading;
8349
- React$1.useImperativeHandle(ref, () => ({
8355
+ React$4.useImperativeHandle(ref, () => ({
8350
8356
  get nativeElement() {
8351
8357
  return nativeButtonRef.current;
8352
8358
  }
@@ -8481,7 +8487,7 @@
8481
8487
  onChange
8482
8488
  } = options;
8483
8489
  const update2 = useUpdate$1();
8484
- const stateRef = React$1.useRef(value !== void 0 ? value : defaultValue);
8490
+ const stateRef = React$4.useRef(value !== void 0 ? value : defaultValue);
8485
8491
  if (value !== void 0) {
8486
8492
  stateRef.current = value;
8487
8493
  }
@@ -8521,7 +8527,7 @@
8521
8527
  nextMonthButton: React__default.default.createElement(ArrowLeft, null),
8522
8528
  nextYearButton: React__default.default.createElement(ArrowLeftDouble, null)
8523
8529
  };
8524
- const Calendar$1 = React$1.forwardRef((p, ref) => {
8530
+ const Calendar$1 = React$4.forwardRef((p, ref) => {
8525
8531
  const today = dayjs();
8526
8532
  const props = mergeProps(defaultProps$Y, p);
8527
8533
  const {
@@ -8545,13 +8551,13 @@
8545
8551
  }
8546
8552
  }
8547
8553
  });
8548
- const [intermediate, setIntermediate] = React$1.useState(false);
8549
- const [current, setCurrent] = React$1.useState(() => dayjs(dateRange ? dateRange[0] : today).date(1));
8554
+ const [intermediate, setIntermediate] = React$4.useState(false);
8555
+ const [current, setCurrent] = React$4.useState(() => dayjs(dateRange ? dateRange[0] : today).date(1));
8550
8556
  useUpdateEffect(() => {
8551
8557
  var _a;
8552
8558
  (_a = props.onPageChange) === null || _a === void 0 ? void 0 : _a.call(props, current.year(), current.month() + 1);
8553
8559
  }, [current]);
8554
- React$1.useImperativeHandle(ref, () => ({
8560
+ React$4.useImperativeHandle(ref, () => ({
8555
8561
  jumpTo: (pageOrPageGenerator) => {
8556
8562
  let page;
8557
8563
  if (typeof pageOrPageGenerator === "function") {
@@ -8609,8 +8615,8 @@
8609
8615
  handlePageChange("add", 1, "year");
8610
8616
  }
8611
8617
  }, props.nextYearButton));
8612
- const maxDay = React$1.useMemo(() => props.max && dayjs(props.max), [props.max]);
8613
- const minDay = React$1.useMemo(() => props.min && dayjs(props.min), [props.min]);
8618
+ const maxDay = React$4.useMemo(() => props.max && dayjs(props.max), [props.max]);
8619
+ const minDay = React$4.useMemo(() => props.min && dayjs(props.min), [props.min]);
8614
8620
  function renderCells() {
8615
8621
  var _a;
8616
8622
  const cells = [];
@@ -8738,7 +8744,7 @@
8738
8744
  }
8739
8745
  function useMutationEffect(effect, targetRef, options) {
8740
8746
  const fn = useMemoizedFn(effect);
8741
- React$1.useEffect(() => {
8747
+ React$4.useEffect(() => {
8742
8748
  const observer = new MutationObserver(() => {
8743
8749
  fn();
8744
8750
  });
@@ -8816,7 +8822,7 @@
8816
8822
  const scrollMask = "";
8817
8823
  const classPrefix$1a = `adm-scroll-mask`;
8818
8824
  const ScrollMask$1 = (props) => {
8819
- const maskRef = React$1.useRef(null);
8825
+ const maskRef = React$4.useRef(null);
8820
8826
  const [{
8821
8827
  leftMaskOpacity,
8822
8828
  rightMaskOpacity
@@ -8849,10 +8855,10 @@
8849
8855
  trailing: true,
8850
8856
  leading: true
8851
8857
  });
8852
- React$1.useEffect(() => {
8858
+ React$4.useEffect(() => {
8853
8859
  updateMask(true);
8854
8860
  }, []);
8855
- React$1.useEffect(() => {
8861
+ React$4.useEffect(() => {
8856
8862
  const scrollEl = props.scrollTrackRef.current;
8857
8863
  if (!scrollEl)
8858
8864
  return;
@@ -9089,8 +9095,8 @@
9089
9095
  };
9090
9096
  const CapsuleTabs = (props) => {
9091
9097
  var _a;
9092
- const tabListContainerRef = React$1.useRef(null);
9093
- const rootRef = React$1.useRef(null);
9098
+ const tabListContainerRef = React$4.useRef(null);
9099
+ const rootRef = React$4.useRef(null);
9094
9100
  const keyToIndexRecord = {};
9095
9101
  let firstActiveKey = null;
9096
9102
  const panes = [];
@@ -10703,7 +10709,7 @@ This message will only appear in development mode.`);
10703
10709
  }
10704
10710
  return result2;
10705
10711
  }
10706
- function parse$1(newConfig, gestureKey, _config = {}) {
10712
+ function parse(newConfig, gestureKey, _config = {}) {
10707
10713
  const _ref = newConfig, {
10708
10714
  target,
10709
10715
  eventOptions,
@@ -10821,7 +10827,7 @@ This message will only appear in development mode.`);
10821
10827
  this.nativeHandlers = nativeHandlers;
10822
10828
  }
10823
10829
  applyConfig(config2, gestureKey) {
10824
- this.config = parse$1(config2, gestureKey, this.config);
10830
+ this.config = parse(config2, gestureKey, this.config);
10825
10831
  }
10826
10832
  clean() {
10827
10833
  this._targetEventStore.clean();
@@ -11045,7 +11051,7 @@ Please add \`${key}Action\` when creating your handler.`);
11045
11051
  }
11046
11052
  }
11047
11053
  const classPrefix$17 = `adm-picker-view`;
11048
- const Wheel = React$1.memo((props) => {
11054
+ const Wheel = React$4.memo((props) => {
11049
11055
  const {
11050
11056
  value,
11051
11057
  column,
@@ -11065,10 +11071,10 @@ Please add \`${key}Action\` when creating your handler.`);
11065
11071
  mass: 0.8
11066
11072
  }
11067
11073
  }));
11068
- const draggingRef = React$1.useRef(false);
11069
- const rootRef = React$1.useRef(null);
11070
- const itemHeightMeasureRef = React$1.useRef(null);
11071
- const itemHeight = React$1.useRef(34);
11074
+ const draggingRef = React$4.useRef(false);
11075
+ const rootRef = React$4.useRef(null);
11076
+ const itemHeightMeasureRef = React$4.useRef(null);
11077
+ const itemHeight = React$4.useRef(34);
11072
11078
  useIsomorphicLayoutEffect$2(() => {
11073
11079
  const itemHeightMeasure = itemHeightMeasureRef.current;
11074
11080
  if (!itemHeightMeasure)
@@ -11273,9 +11279,9 @@ Please add \`${key}Action\` when creating your handler.`);
11273
11279
  return extend;
11274
11280
  }
11275
11281
  function useColumnsExtend(rawColumns, value) {
11276
- return React$1.useMemo(() => generateColumnsExtend(rawColumns, value), [rawColumns, value]);
11282
+ return React$4.useMemo(() => generateColumnsExtend(rawColumns, value), [rawColumns, value]);
11277
11283
  }
11278
- const defaultRenderLabel$3 = (item) => item.label;
11284
+ const defaultRenderLabel = (item) => item.label;
11279
11285
  const spinLoading = "";
11280
11286
  var shim = { exports: {} };
11281
11287
  var useSyncExternalStoreShim_development = {};
@@ -11324,7 +11330,7 @@ Please add \`${key}Action\` when creating your handler.`);
11324
11330
  return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
11325
11331
  }
11326
11332
  var objectIs = typeof Object.is === "function" ? Object.is : is2;
11327
- var useState = React2.useState, useEffect = React2.useEffect, useLayoutEffect = React2.useLayoutEffect, useDebugValue = React2.useDebugValue;
11333
+ var useState2 = React2.useState, useEffect = React2.useEffect, useLayoutEffect2 = React2.useLayoutEffect, useDebugValue = React2.useDebugValue;
11328
11334
  var didWarnOld18Alpha = false;
11329
11335
  var didWarnUncachedGetSnapshot = false;
11330
11336
  function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
@@ -11346,13 +11352,13 @@ Please add \`${key}Action\` when creating your handler.`);
11346
11352
  }
11347
11353
  }
11348
11354
  }
11349
- var _useState = useState({
11355
+ var _useState = useState2({
11350
11356
  inst: {
11351
11357
  value,
11352
11358
  getSnapshot
11353
11359
  }
11354
11360
  }), inst = _useState[0].inst, forceUpdate = _useState[1];
11355
- useLayoutEffect(function() {
11361
+ useLayoutEffect2(function() {
11356
11362
  inst.value = value;
11357
11363
  inst.getSnapshot = getSnapshot;
11358
11364
  if (checkIfSnapshotChanged(inst)) {
@@ -11449,7 +11455,7 @@ Please add \`${key}Action\` when creating your handler.`);
11449
11455
  color: "default"
11450
11456
  };
11451
11457
  const circumference = 15 * 3.14159265358979 * 2;
11452
- const SpinLoading$1 = React$1.memo((p) => {
11458
+ const SpinLoading$1 = React$4.memo((p) => {
11453
11459
  var _a;
11454
11460
  const props = mergeProps(defaultProps$X, p);
11455
11461
  const motionReduced = useMotionReduced();
@@ -11495,23 +11501,23 @@ Please add \`${key}Action\` when creating your handler.`);
11495
11501
  const classPrefix$15 = `adm-picker-view`;
11496
11502
  const defaultProps$W = {
11497
11503
  defaultValue: [],
11498
- renderLabel: defaultRenderLabel$3,
11504
+ renderLabel: defaultRenderLabel,
11499
11505
  mouseWheel: false,
11500
11506
  loadingContent: React__default.default.createElement("div", {
11501
11507
  className: `${classPrefix$15}-loading-content`
11502
11508
  }, React__default.default.createElement(SpinLoading, null))
11503
11509
  };
11504
- const PickerView$1 = React$1.memo((p) => {
11510
+ const PickerView$1 = React$4.memo((p) => {
11505
11511
  const props = mergeProps(defaultProps$W, p);
11506
- const [innerValue, setInnerValue] = React$1.useState(props.value === void 0 ? props.defaultValue : props.value);
11507
- React$1.useEffect(() => {
11512
+ const [innerValue, setInnerValue] = React$4.useState(props.value === void 0 ? props.defaultValue : props.value);
11513
+ React$4.useEffect(() => {
11508
11514
  if (props.value === void 0)
11509
11515
  return;
11510
11516
  if (props.value === innerValue)
11511
11517
  return;
11512
11518
  setInnerValue(props.value);
11513
11519
  }, [props.value]);
11514
- React$1.useEffect(() => {
11520
+ React$4.useEffect(() => {
11515
11521
  if (props.value === innerValue)
11516
11522
  return;
11517
11523
  const timeout = window.setTimeout(() => {
@@ -11535,7 +11541,7 @@ Please add \`${key}Action\` when creating your handler.`);
11535
11541
  leading: false,
11536
11542
  trailing: true
11537
11543
  });
11538
- const handleSelect = React$1.useCallback((val, index2) => {
11544
+ const handleSelect = React$4.useCallback((val, index2) => {
11539
11545
  setInnerValue((prev) => {
11540
11546
  const next = [...prev];
11541
11547
  next[index2] = val;
@@ -11569,11 +11575,11 @@ Please add \`${key}Action\` when creating your handler.`);
11569
11575
  const defaultProps$V = {
11570
11576
  defaultValue: [],
11571
11577
  closeOnMaskClick: true,
11572
- renderLabel: defaultRenderLabel$3,
11578
+ renderLabel: defaultRenderLabel,
11573
11579
  destroyOnClose: false,
11574
11580
  forceRender: false
11575
11581
  };
11576
- const Picker$1 = React$1.memo(React$1.forwardRef((p, ref) => {
11582
+ const Picker$1 = React$4.memo(React$4.forwardRef((p, ref) => {
11577
11583
  var _a;
11578
11584
  const {
11579
11585
  locale
@@ -11603,7 +11609,7 @@ Please add \`${key}Action\` when creating your handler.`);
11603
11609
  setVisible(false);
11604
11610
  }
11605
11611
  };
11606
- React$1.useImperativeHandle(ref, () => actions);
11612
+ React$4.useImperativeHandle(ref, () => actions);
11607
11613
  const [value, setValue2] = usePropsValue(Object.assign(Object.assign({}, props), {
11608
11614
  onChange: (val) => {
11609
11615
  var _a2;
@@ -11612,13 +11618,13 @@ Please add \`${key}Action\` when creating your handler.`);
11612
11618
  }
11613
11619
  }));
11614
11620
  const extend = useColumnsExtend(props.columns, value);
11615
- const [innerValue, setInnerValue] = React$1.useState(value);
11616
- React$1.useEffect(() => {
11621
+ const [innerValue, setInnerValue] = React$4.useState(value);
11622
+ React$4.useEffect(() => {
11617
11623
  if (innerValue !== value) {
11618
11624
  setInnerValue(value);
11619
11625
  }
11620
11626
  }, [visible]);
11621
- React$1.useEffect(() => {
11627
+ React$4.useEffect(() => {
11622
11628
  if (!visible) {
11623
11629
  setInnerValue(value);
11624
11630
  }
@@ -11693,8 +11699,8 @@ Please add \`${key}Action\` when creating your handler.`);
11693
11699
  function prompt$3(props) {
11694
11700
  return new Promise((resolve) => {
11695
11701
  const Wrapper2 = () => {
11696
- const [visible, setVisible] = React$1.useState(false);
11697
- React$1.useEffect(() => {
11702
+ const [visible, setVisible] = React$4.useState(false);
11703
+ React$4.useEffect(() => {
11698
11704
  setVisible(true);
11699
11705
  }, []);
11700
11706
  return React__default.default.createElement(Picker$1, Object.assign({}, props, {
@@ -11724,7 +11730,7 @@ Please add \`${key}Action\` when creating your handler.`);
11724
11730
  prompt: prompt$3
11725
11731
  });
11726
11732
  function useColumnsFn(options) {
11727
- const depth = React$1.useMemo(() => {
11733
+ const depth = React$4.useMemo(() => {
11728
11734
  let depth2 = 0;
11729
11735
  function traverse(options2, currentDepth) {
11730
11736
  if (currentDepth > depth2)
@@ -11762,7 +11768,7 @@ Please add \`${key}Action\` when creating your handler.`);
11762
11768
  return columns;
11763
11769
  };
11764
11770
  }
11765
- const CascadePicker = React$1.forwardRef((props, ref) => {
11771
+ const CascadePicker = React$4.forwardRef((props, ref) => {
11766
11772
  const {
11767
11773
  options
11768
11774
  } = props, pickerProps = __rest(props, ["options"]);
@@ -11775,8 +11781,8 @@ Please add \`${key}Action\` when creating your handler.`);
11775
11781
  function prompt$2(props) {
11776
11782
  return new Promise((resolve) => {
11777
11783
  const Wrapper2 = () => {
11778
- const [visible, setVisible] = React$1.useState(false);
11779
- React$1.useEffect(() => {
11784
+ const [visible, setVisible] = React$4.useState(false);
11785
+ React$4.useEffect(() => {
11780
11786
  setVisible(true);
11781
11787
  }, []);
11782
11788
  return React__default.default.createElement(CascadePicker, Object.assign({}, props, {
@@ -11828,8 +11834,8 @@ Please add \`${key}Action\` when creating your handler.`);
11828
11834
  const Tabs$1 = (p) => {
11829
11835
  var _a;
11830
11836
  const props = mergeProps(defaultProps$U, p);
11831
- const tabListContainerRef = React$1.useRef(null);
11832
- const activeLineRef = React$1.useRef(null);
11837
+ const tabListContainerRef = React$4.useRef(null);
11838
+ const activeLineRef = React$4.useRef(null);
11833
11839
  const keyToIndexRecord = {};
11834
11840
  let firstActiveKey = null;
11835
11841
  const panes = [];
@@ -12051,10 +12057,10 @@ Please add \`${key}Action\` when creating your handler.`);
12051
12057
  const defaultProps$T = {
12052
12058
  mode: "default"
12053
12059
  };
12054
- const List$2 = React$1.forwardRef((p, ref) => {
12060
+ const List$2 = React$4.forwardRef((p, ref) => {
12055
12061
  const props = mergeProps(defaultProps$T, p);
12056
- const nativeElementRef = React$1.useRef(null);
12057
- React$1.useImperativeHandle(ref, () => ({
12062
+ const nativeElementRef = React$4.useRef(null);
12063
+ React$4.useImperativeHandle(ref, () => ({
12058
12064
  get nativeElement() {
12059
12065
  return nativeElementRef.current;
12060
12066
  }
@@ -12101,7 +12107,7 @@ Please add \`${key}Action\` when creating your handler.`);
12101
12107
  const List$1 = attachPropertiesToComponent(List$2, {
12102
12108
  Item: ListItem
12103
12109
  });
12104
- const CheckListContext = React$1.createContext(null);
12110
+ const CheckListContext = React$4.createContext(null);
12105
12111
  const classPrefix$10 = "adm-check-list";
12106
12112
  const defaultProps$S = {
12107
12113
  multiple: false,
@@ -12142,7 +12148,7 @@ Please add \`${key}Action\` when creating your handler.`);
12142
12148
  };
12143
12149
  const classPrefix$$ = `adm-check-list-item`;
12144
12150
  const CheckListItem = (props) => {
12145
- const context = React$1.useContext(CheckListContext);
12151
+ const context = React$4.useContext(CheckListContext);
12146
12152
  if (context === null) {
12147
12153
  devWarning("CheckList.Item", "CheckList.Item can only be used inside CheckList.");
12148
12154
  return null;
@@ -12198,7 +12204,7 @@ Please add \`${key}Action\` when creating your handler.`);
12198
12204
  memoize.Cache = MapCache;
12199
12205
  var memoize_1 = memoize;
12200
12206
  function useCascaderValueExtend(options) {
12201
- const generateItems = React$1.useMemo(() => {
12207
+ const generateItems = React$4.useMemo(() => {
12202
12208
  return memoize_1((val) => {
12203
12209
  const ret = [];
12204
12210
  let currentOptions = options;
@@ -12215,7 +12221,7 @@ Please add \`${key}Action\` when creating your handler.`);
12215
12221
  return ret;
12216
12222
  }, (val) => JSON.stringify(val));
12217
12223
  }, [options]);
12218
- const generateIsLeaf = React$1.useMemo(() => {
12224
+ const generateIsLeaf = React$4.useMemo(() => {
12219
12225
  return memoize_1((val) => {
12220
12226
  const children = val.reduce((currentOptions, v) => {
12221
12227
  var _a;
@@ -12294,13 +12300,13 @@ Please add \`${key}Action\` when creating your handler.`);
12294
12300
  (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, val, generateValueExtend(val));
12295
12301
  }
12296
12302
  }));
12297
- const [tabActiveIndex, setTabActiveIndex] = React$1.useState(0);
12303
+ const [tabActiveIndex, setTabActiveIndex] = React$4.useState(0);
12298
12304
  useUpdateEffect(() => {
12299
12305
  var _a;
12300
12306
  (_a = props.onTabsChange) === null || _a === void 0 ? void 0 : _a.call(props, tabActiveIndex);
12301
12307
  }, [tabActiveIndex]);
12302
12308
  const generateValueExtend = useCascaderValueExtend(props.options);
12303
- const levels = React$1.useMemo(() => {
12309
+ const levels = React$4.useMemo(() => {
12304
12310
  const ret = [];
12305
12311
  let currentOptions = props.options;
12306
12312
  let reachedEnd = false;
@@ -12324,10 +12330,10 @@ Please add \`${key}Action\` when creating your handler.`);
12324
12330
  }
12325
12331
  return ret;
12326
12332
  }, [value, props.options]);
12327
- React$1.useEffect(() => {
12333
+ React$4.useEffect(() => {
12328
12334
  setTabActiveIndex(levels.length - 1);
12329
12335
  }, [value]);
12330
- React$1.useEffect(() => {
12336
+ React$4.useEffect(() => {
12331
12337
  const max2 = levels.length - 1;
12332
12338
  if (tabActiveIndex > max2) {
12333
12339
  setTabActiveIndex(max2);
@@ -12400,7 +12406,7 @@ Please add \`${key}Action\` when creating your handler.`);
12400
12406
  destroyOnClose: true,
12401
12407
  forceRender: false
12402
12408
  };
12403
- const Cascader = React$1.forwardRef((p, ref) => {
12409
+ const Cascader = React$4.forwardRef((p, ref) => {
12404
12410
  var _a;
12405
12411
  const {
12406
12412
  locale
@@ -12431,7 +12437,7 @@ Please add \`${key}Action\` when creating your handler.`);
12431
12437
  setVisible(false);
12432
12438
  }
12433
12439
  };
12434
- React$1.useImperativeHandle(ref, () => actions);
12440
+ React$4.useImperativeHandle(ref, () => actions);
12435
12441
  const [value, setValue2] = usePropsValue(Object.assign(Object.assign({}, props), {
12436
12442
  onChange: (val) => {
12437
12443
  var _a2;
@@ -12439,13 +12445,13 @@ Please add \`${key}Action\` when creating your handler.`);
12439
12445
  }
12440
12446
  }));
12441
12447
  const generateValueExtend = useCascaderValueExtend(props.options);
12442
- const [innerValue, setInnerValue] = React$1.useState(value);
12443
- React$1.useEffect(() => {
12448
+ const [innerValue, setInnerValue] = React$4.useState(value);
12449
+ React$4.useEffect(() => {
12444
12450
  if (!visible) {
12445
12451
  setInnerValue(value);
12446
12452
  }
12447
12453
  }, [visible]);
12448
- React$1.useEffect(() => {
12454
+ React$4.useEffect(() => {
12449
12455
  if (!visible) {
12450
12456
  setInnerValue(value);
12451
12457
  }
@@ -12502,8 +12508,8 @@ Please add \`${key}Action\` when creating your handler.`);
12502
12508
  function prompt$1(props) {
12503
12509
  return new Promise((resolve) => {
12504
12510
  const Wrapper2 = () => {
12505
- const [visible, setVisible] = React$1.useState(false);
12506
- React$1.useEffect(() => {
12511
+ const [visible, setVisible] = React$4.useState(false);
12512
+ React$4.useEffect(() => {
12507
12513
  setVisible(true);
12508
12514
  }, []);
12509
12515
  return React__default.default.createElement(Cascader, Object.assign({}, props, {
@@ -12562,13 +12568,13 @@ Please add \`${key}Action\` when creating your handler.`);
12562
12568
  }
12563
12569
  }
12564
12570
  });
12565
- const [active, setActive] = React$1.useState(props.visible);
12571
+ const [active, setActive] = React$4.useState(props.visible);
12566
12572
  useIsomorphicLayoutEffect$2(() => {
12567
12573
  if (props.visible) {
12568
12574
  setActive(true);
12569
12575
  }
12570
12576
  }, [props.visible]);
12571
- const ref = React$1.useRef(null);
12577
+ const ref = React$4.useRef(null);
12572
12578
  useLockScroll(ref, props.disableBodyScroll && active);
12573
12579
  const maskVisible = useInnerVisible(active && props.visible);
12574
12580
  const body = React__default.default.createElement("div", {
@@ -12618,7 +12624,7 @@ Please add \`${key}Action\` when creating your handler.`);
12618
12624
  };
12619
12625
  const CenterPopup = CenterPopup$1;
12620
12626
  const checkbox = "";
12621
- const CheckboxGroupContext = React$1.createContext(null);
12627
+ const CheckboxGroupContext = React$4.createContext(null);
12622
12628
  const defaultProps$O = {
12623
12629
  disabled: false,
12624
12630
  defaultValue: []
@@ -12643,7 +12649,7 @@ Please add \`${key}Action\` when creating your handler.`);
12643
12649
  props.children
12644
12650
  );
12645
12651
  };
12646
- const CheckIcon = React$1.memo((props) => {
12652
+ const CheckIcon = React$4.memo((props) => {
12647
12653
  return withNativeProps(props, React__default.default.createElement("svg", {
12648
12654
  viewBox: "0 0 40 40"
12649
12655
  }, React__default.default.createElement("path", {
@@ -12651,7 +12657,7 @@ Please add \`${key}Action\` when creating your handler.`);
12651
12657
  fill: "currentColor"
12652
12658
  })));
12653
12659
  });
12654
- const IndeterminateIcon = React$1.memo((props) => {
12660
+ const IndeterminateIcon = React$4.memo((props) => {
12655
12661
  return withNativeProps(props, React__default.default.createElement("svg", {
12656
12662
  viewBox: "0 0 40 40"
12657
12663
  }, React__default.default.createElement("path", {
@@ -12660,7 +12666,7 @@ Please add \`${key}Action\` when creating your handler.`);
12660
12666
  })));
12661
12667
  });
12662
12668
  const NativeInput = (props) => {
12663
- const inputRef = React$1.useRef(null);
12669
+ const inputRef = React$4.useRef(null);
12664
12670
  const handleClick = useMemoizedFn((e) => {
12665
12671
  e.stopPropagation();
12666
12672
  e.stopImmediatePropagation();
@@ -12669,7 +12675,7 @@ Please add \`${key}Action\` when creating your handler.`);
12669
12675
  return;
12670
12676
  props.onChange(latestChecked);
12671
12677
  });
12672
- React$1.useEffect(() => {
12678
+ React$4.useEffect(() => {
12673
12679
  if (props.disabled)
12674
12680
  return;
12675
12681
  if (!inputRef.current)
@@ -12695,8 +12701,8 @@ Please add \`${key}Action\` when creating your handler.`);
12695
12701
  defaultChecked: false,
12696
12702
  indeterminate: false
12697
12703
  };
12698
- const Checkbox$1 = React$1.forwardRef((p, ref) => {
12699
- const groupContext = React$1.useContext(CheckboxGroupContext);
12704
+ const Checkbox$1 = React$4.forwardRef((p, ref) => {
12705
+ const groupContext = React$4.useContext(CheckboxGroupContext);
12700
12706
  const props = mergeProps(defaultProps$N, p);
12701
12707
  let [checked, setChecked] = usePropsValue({
12702
12708
  value: props.checked,
@@ -12728,7 +12734,7 @@ Please add \`${key}Action\` when creating your handler.`);
12728
12734
  };
12729
12735
  disabled = disabled || groupContext.disabled;
12730
12736
  }
12731
- React$1.useImperativeHandle(ref, () => ({
12737
+ React$4.useImperativeHandle(ref, () => ({
12732
12738
  check: () => {
12733
12739
  setChecked(true);
12734
12740
  },
@@ -12778,7 +12784,7 @@ Please add \`${key}Action\` when creating your handler.`);
12778
12784
  const {
12779
12785
  visible
12780
12786
  } = props;
12781
- const innerRef = React$1.useRef(null);
12787
+ const innerRef = React$4.useRef(null);
12782
12788
  const shouldRender = useShouldRender(visible, props.forceRender, props.destroyOnClose);
12783
12789
  const [{
12784
12790
  height
@@ -12944,6 +12950,7 @@ Please add \`${key}Action\` when creating your handler.`);
12944
12950
  });
12945
12951
  })(isLeapYear$1);
12946
12952
  const isLeapYear = isLeapYear$1.exports;
12953
+ const TILL_NOW = "TILL_NOW";
12947
12954
  dayjs.extend(isoWeek);
12948
12955
  dayjs.extend(isoWeeksInYear);
12949
12956
  dayjs.extend(isLeapYear);
@@ -12955,17 +12962,7 @@ Please add \`${key}Action\` when creating your handler.`);
12955
12962
  minute: 4,
12956
12963
  second: 5
12957
12964
  };
12958
- function defaultRenderLabel$2(type2, data) {
12959
- switch (type2) {
12960
- case "minute":
12961
- case "second":
12962
- case "hour":
12963
- return ("0" + data.toString()).slice(-2);
12964
- default:
12965
- return data.toString();
12966
- }
12967
- }
12968
- function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabel, filter) {
12965
+ function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabel, filter, tillNow) {
12969
12966
  const ret = [];
12970
12967
  const minYear = min2.getFullYear();
12971
12968
  const minMonth = min2.getMonth() + 1;
@@ -13079,6 +13076,17 @@ Please add \`${key}Action\` when creating your handler.`);
13079
13076
  };
13080
13077
  }));
13081
13078
  }
13079
+ if (tillNow) {
13080
+ ret[0].push({
13081
+ label: renderLabel("now", null),
13082
+ value: TILL_NOW
13083
+ });
13084
+ if (TILL_NOW === (selected === null || selected === void 0 ? void 0 : selected[0])) {
13085
+ for (let i = 1; i < ret.length; i += 1) {
13086
+ ret[i] = [];
13087
+ }
13088
+ }
13089
+ }
13082
13090
  return ret;
13083
13091
  }
13084
13092
  function convertDateToStringArray$2(date2) {
@@ -13104,9 +13112,6 @@ Please add \`${key}Action\` when creating your handler.`);
13104
13112
  week: 1,
13105
13113
  "week-day": 2
13106
13114
  };
13107
- function defaultRenderLabel$1(type2, data) {
13108
- return data.toString();
13109
- }
13110
13115
  function generateDatePickerColumns$1(selected, min2, max2, precision, renderLabel, filter) {
13111
13116
  const ret = [];
13112
13117
  const minYear = min2.getFullYear();
@@ -13209,36 +13214,56 @@ Please add \`${key}Action\` when creating your handler.`);
13209
13214
  }
13210
13215
  };
13211
13216
  const convertStringArrayToDate = (value, precision) => {
13217
+ if ((value === null || value === void 0 ? void 0 : value[0]) === TILL_NOW) {
13218
+ const now2 = new Date();
13219
+ now2.tillNow = true;
13220
+ return now2;
13221
+ }
13212
13222
  if (precision.includes("week")) {
13213
13223
  return convertStringArrayToDate$1(value);
13214
13224
  } else {
13215
13225
  return convertStringArrayToDate$2(value);
13216
13226
  }
13217
13227
  };
13218
- const generateDatePickerColumns = (selected, min2, max2, precision, renderLabel, filter) => {
13228
+ const generateDatePickerColumns = (selected, min2, max2, precision, renderLabel, filter, tillNow) => {
13219
13229
  if (precision.startsWith("week")) {
13220
13230
  return generateDatePickerColumns$1(selected, min2, max2, precision, renderLabel, filter);
13221
13231
  } else {
13222
- return generateDatePickerColumns$2(selected, min2, max2, precision, renderLabel, filter);
13223
- }
13224
- };
13225
- const defaultRenderLabel = (precision, data) => {
13226
- if (precision.includes("week")) {
13227
- return defaultRenderLabel$1(precision, data);
13228
- } else {
13229
- return defaultRenderLabel$2(precision, data);
13232
+ return generateDatePickerColumns$2(selected, min2, max2, precision, renderLabel, filter, tillNow);
13230
13233
  }
13231
13234
  };
13235
+ function useRenderLabel(renderLabel) {
13236
+ const {
13237
+ locale
13238
+ } = useConfig();
13239
+ return React$4.useCallback((type2, data) => {
13240
+ if (renderLabel) {
13241
+ return renderLabel(type2, data);
13242
+ }
13243
+ switch (type2) {
13244
+ case "minute":
13245
+ case "second":
13246
+ case "hour":
13247
+ return ("0" + data.toString()).slice(-2);
13248
+ case "now":
13249
+ return locale.DatePicker.tillNow;
13250
+ default:
13251
+ return data.toString();
13252
+ }
13253
+ }, [renderLabel]);
13254
+ }
13232
13255
  const thisYear$1 = new Date().getFullYear();
13233
13256
  const defaultProps$M = {
13234
13257
  min: new Date(new Date().setFullYear(thisYear$1 - 10)),
13235
13258
  max: new Date(new Date().setFullYear(thisYear$1 + 10)),
13236
13259
  precision: "day",
13237
- renderLabel: defaultRenderLabel,
13238
13260
  defaultValue: null
13239
13261
  };
13240
- const DatePicker = React$1.forwardRef((p, ref) => {
13262
+ const DatePicker = React$4.forwardRef((p, ref) => {
13241
13263
  const props = mergeProps(defaultProps$M, p);
13264
+ const {
13265
+ renderLabel
13266
+ } = props;
13242
13267
  const [value, setValue2] = usePropsValue({
13243
13268
  value: props.value,
13244
13269
  defaultValue: props.defaultValue,
@@ -13249,21 +13274,26 @@ Please add \`${key}Action\` when creating your handler.`);
13249
13274
  (_a = props.onConfirm) === null || _a === void 0 ? void 0 : _a.call(props, v);
13250
13275
  }
13251
13276
  });
13252
- const now2 = React$1.useMemo(() => new Date(), []);
13253
- const pickerValue = React$1.useMemo(() => {
13277
+ const now2 = React$4.useMemo(() => new Date(), []);
13278
+ const mergedRenderLabel = useRenderLabel(renderLabel);
13279
+ const pickerValue = React$4.useMemo(() => {
13254
13280
  let date2 = value !== null && value !== void 0 ? value : now2;
13281
+ if (date2.tillNow) {
13282
+ return [TILL_NOW];
13283
+ }
13255
13284
  date2 = new Date(bound(date2.getTime(), props.min.getTime(), props.max.getTime()));
13256
13285
  return convertDateToStringArray(date2, props.precision);
13257
13286
  }, [value, props.precision, props.min, props.max]);
13258
- const onConfirm = React$1.useCallback((val) => {
13259
- setValue2(convertStringArrayToDate(val, props.precision), true);
13287
+ const onConfirm = React$4.useCallback((val) => {
13288
+ const date2 = convertStringArrayToDate(val, props.precision);
13289
+ setValue2(date2, true);
13260
13290
  }, [setValue2, props.precision]);
13261
13291
  const onSelect = useMemoizedFn((val) => {
13262
13292
  var _a;
13263
13293
  const date2 = convertStringArrayToDate(val, props.precision);
13264
13294
  (_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, date2);
13265
13295
  });
13266
- const columns = React$1.useCallback((selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, props.renderLabel, props.filter), [props.min, props.max, props.precision, props.renderLabel]);
13296
+ const columns = React$4.useCallback((selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, mergedRenderLabel, props.filter, props.tillNow), [props.min, props.max, props.precision, mergedRenderLabel, props.tillNow]);
13267
13297
  return withNativeProps(props, React__default.default.createElement(Picker, {
13268
13298
  ref,
13269
13299
  columns,
@@ -13295,8 +13325,8 @@ Please add \`${key}Action\` when creating your handler.`);
13295
13325
  function prompt(props) {
13296
13326
  return new Promise((resolve) => {
13297
13327
  const Wrapper2 = () => {
13298
- const [visible, setVisible] = React$1.useState(false);
13299
- React$1.useEffect(() => {
13328
+ const [visible, setVisible] = React$4.useState(false);
13329
+ React$4.useEffect(() => {
13300
13330
  setVisible(true);
13301
13331
  }, []);
13302
13332
  return React__default.default.createElement(DatePicker, Object.assign({}, props, {
@@ -13323,24 +13353,28 @@ Please add \`${key}Action\` when creating your handler.`);
13323
13353
  });
13324
13354
  }
13325
13355
  const index$e = attachPropertiesToComponent(DatePicker, {
13326
- prompt
13356
+ prompt,
13357
+ DATE_NOW: TILL_NOW
13327
13358
  });
13328
13359
  const thisYear = new Date().getFullYear();
13329
13360
  const defaultProps$L = {
13330
13361
  min: new Date(new Date().setFullYear(thisYear - 10)),
13331
13362
  max: new Date(new Date().setFullYear(thisYear + 10)),
13332
- precision: "day",
13333
- renderLabel: defaultRenderLabel
13363
+ precision: "day"
13334
13364
  };
13335
13365
  const DatePickerView$1 = (p) => {
13336
13366
  var _a;
13337
13367
  const props = mergeProps(defaultProps$L, p);
13368
+ const {
13369
+ renderLabel
13370
+ } = props;
13338
13371
  const [value, setValue2] = usePropsValue({
13339
13372
  value: props.value,
13340
13373
  defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : null
13341
13374
  });
13342
- const pickerValue = React$1.useMemo(() => convertDateToStringArray(value, props.precision), [value, props.precision]);
13343
- const onChange = React$1.useCallback((val) => {
13375
+ const mergedRenderLabel = useRenderLabel(renderLabel);
13376
+ const pickerValue = React$4.useMemo(() => convertDateToStringArray(value, props.precision), [value, props.precision]);
13377
+ const onChange = React$4.useCallback((val) => {
13344
13378
  var _a2;
13345
13379
  const date2 = convertStringArrayToDate(val, props.precision);
13346
13380
  if (date2) {
@@ -13349,7 +13383,7 @@ Please add \`${key}Action\` when creating your handler.`);
13349
13383
  }
13350
13384
  }, [props.onChange, props.precision]);
13351
13385
  return withNativeProps(props, React__default.default.createElement(PickerView, {
13352
- columns: (selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, props.renderLabel, props.filter),
13386
+ columns: (selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, mergedRenderLabel, props.filter),
13353
13387
  loading: props.loading,
13354
13388
  loadingContent: props.loadingContent,
13355
13389
  value: pickerValue,
@@ -13583,23 +13617,23 @@ Please add \`${key}Action\` when creating your handler.`);
13583
13617
  closeOnMaskClick: true,
13584
13618
  closeOnClickAway: false
13585
13619
  };
13586
- const Dropdown = React$1.forwardRef((p, ref) => {
13620
+ const Dropdown = React$4.forwardRef((p, ref) => {
13587
13621
  const props = mergeProps(defaultProps$H, p);
13588
13622
  const [value, setValue2] = usePropsValue({
13589
13623
  value: props.activeKey,
13590
13624
  defaultValue: props.defaultActiveKey,
13591
13625
  onChange: props.onChange
13592
13626
  });
13593
- const navRef = React$1.useRef(null);
13594
- const contentRef = React$1.useRef(null);
13627
+ const navRef = React$4.useRef(null);
13628
+ const contentRef = React$4.useRef(null);
13595
13629
  useClickAway(() => {
13596
13630
  if (!props.closeOnClickAway)
13597
13631
  return;
13598
13632
  setValue2(null);
13599
13633
  }, [navRef, contentRef]);
13600
- const [top, setTop] = React$1.useState();
13601
- const containerRef = React$1.useRef(null);
13602
- React$1.useEffect(() => {
13634
+ const [top, setTop] = React$4.useState();
13635
+ const containerRef = React$4.useRef(null);
13636
+ React$4.useEffect(() => {
13603
13637
  const container = containerRef.current;
13604
13638
  if (!container)
13605
13639
  return;
@@ -13629,12 +13663,12 @@ Please add \`${key}Action\` when creating your handler.`);
13629
13663
  items.push(child);
13630
13664
  if (child.props.forceRender)
13631
13665
  popupForceRender = true;
13632
- return React$1.cloneElement(child, childProps);
13666
+ return React$4.cloneElement(child, childProps);
13633
13667
  } else {
13634
13668
  return child;
13635
13669
  }
13636
13670
  });
13637
- React$1.useImperativeHandle(ref, () => ({
13671
+ React$4.useImperativeHandle(ref, () => ({
13638
13672
  close: () => {
13639
13673
  setValue2(null);
13640
13674
  }
@@ -13810,11 +13844,11 @@ Please add \`${key}Action\` when creating your handler.`);
13810
13844
  };
13811
13845
  const Ellipsis$1 = (p) => {
13812
13846
  const props = mergeProps(defaultProps$G, p);
13813
- const rootRef = React$1.useRef(null);
13814
- const [ellipsised, setEllipsised] = React$1.useState({});
13815
- const [expanded, setExpanded] = React$1.useState(false);
13816
- const [exceeded, setExceeded] = React$1.useState(false);
13817
- const chars = React$1.useMemo(() => _runes_0_4_3_runes.exports(props.content), [props.content]);
13847
+ const rootRef = React$4.useRef(null);
13848
+ const [ellipsised, setEllipsised] = React$4.useState({});
13849
+ const [expanded, setExpanded] = React$4.useState(false);
13850
+ const [exceeded, setExceeded] = React$4.useState(false);
13851
+ const chars = React$4.useMemo(() => _runes_0_4_3_runes.exports(props.content), [props.content]);
13818
13852
  function getSubString(start2, end) {
13819
13853
  return chars.slice(start2, end).join("");
13820
13854
  }
@@ -14550,10 +14584,10 @@ Please add \`${key}Action\` when creating your handler.`);
14550
14584
  };
14551
14585
  const FloatingBubble$1 = (p) => {
14552
14586
  const props = mergeProps(defaultProps$E, p);
14553
- const boundaryRef = React$1.useRef(null);
14554
- const buttonRef = React$1.useRef(null);
14555
- const [innerValue, setInnerValue] = React$1.useState(props.offset === void 0 ? props.defaultOffset : props.offset);
14556
- React$1.useEffect(() => {
14587
+ const boundaryRef = React$4.useRef(null);
14588
+ const buttonRef = React$4.useRef(null);
14589
+ const [innerValue, setInnerValue] = React$4.useState(props.offset === void 0 ? props.defaultOffset : props.offset);
14590
+ React$4.useEffect(() => {
14557
14591
  if (props.offset === void 0)
14558
14592
  return;
14559
14593
  api.start({
@@ -14650,7 +14684,7 @@ Please add \`${key}Action\` when creating your handler.`);
14650
14684
  const defaultProps$D = {
14651
14685
  handleDraggingOfContent: true
14652
14686
  };
14653
- const FloatingPanel$1 = React$1.forwardRef((p, ref) => {
14687
+ const FloatingPanel$1 = React$4.forwardRef((p, ref) => {
14654
14688
  var _a, _b;
14655
14689
  const props = mergeProps(defaultProps$D, p);
14656
14690
  const {
@@ -14658,11 +14692,11 @@ Please add \`${key}Action\` when creating your handler.`);
14658
14692
  } = props;
14659
14693
  const maxHeight = (_a = anchors[anchors.length - 1]) !== null && _a !== void 0 ? _a : window.innerHeight;
14660
14694
  const possibles = anchors.map((x) => -x);
14661
- const elementRef = React$1.useRef(null);
14662
- const headerRef = React$1.useRef(null);
14663
- const contentRef = React$1.useRef(null);
14664
- const [pulling, setPulling] = React$1.useState(false);
14665
- const pullingRef = React$1.useRef(false);
14695
+ const elementRef = React$4.useRef(null);
14696
+ const headerRef = React$4.useRef(null);
14697
+ const contentRef = React$4.useRef(null);
14698
+ const [pulling, setPulling] = React$4.useState(false);
14699
+ const pullingRef = React$4.useRef(false);
14666
14700
  const bounds = {
14667
14701
  top: possibles[possibles.length - 1],
14668
14702
  bottom: possibles[0]
@@ -14735,7 +14769,7 @@ Please add \`${key}Action\` when creating your handler.`);
14735
14769
  passive: false
14736
14770
  } : false
14737
14771
  });
14738
- React$1.useImperativeHandle(ref, () => ({
14772
+ React$4.useImperativeHandle(ref, () => ({
14739
14773
  setHeight: (height, options) => {
14740
14774
  api.start({
14741
14775
  y: -height,
@@ -14814,7 +14848,32 @@ Please add \`${key}Action\` when creating your handler.`);
14814
14848
  }
14815
14849
  return target;
14816
14850
  }
14851
+ function _typeof$1(obj) {
14852
+ "@babel/helpers - typeof";
14853
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
14854
+ return typeof obj2;
14855
+ } : function(obj2) {
14856
+ return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
14857
+ }, _typeof$1(obj);
14858
+ }
14859
+ function _toPrimitive(input2, hint) {
14860
+ if (_typeof$1(input2) !== "object" || input2 === null)
14861
+ return input2;
14862
+ var prim = input2[Symbol.toPrimitive];
14863
+ if (prim !== void 0) {
14864
+ var res = prim.call(input2, hint || "default");
14865
+ if (_typeof$1(res) !== "object")
14866
+ return res;
14867
+ throw new TypeError("@@toPrimitive must return a primitive value.");
14868
+ }
14869
+ return (hint === "string" ? String : Number)(input2);
14870
+ }
14871
+ function _toPropertyKey(arg) {
14872
+ var key = _toPrimitive(arg, "string");
14873
+ return _typeof$1(key) === "symbol" ? key : String(key);
14874
+ }
14817
14875
  function _defineProperty(obj, key, value) {
14876
+ key = _toPropertyKey(key);
14818
14877
  if (key in obj) {
14819
14878
  Object.defineProperty(obj, key, {
14820
14879
  value,
@@ -14895,7 +14954,7 @@ Please add \`${key}Action\` when creating your handler.`);
14895
14954
  descriptor.configurable = true;
14896
14955
  if ("value" in descriptor)
14897
14956
  descriptor.writable = true;
14898
- Object.defineProperty(target, descriptor.key, descriptor);
14957
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
14899
14958
  }
14900
14959
  }
14901
14960
  function _createClass(Constructor, protoProps, staticProps) {
@@ -14959,14 +15018,6 @@ Please add \`${key}Action\` when creating your handler.`);
14959
15018
  return false;
14960
15019
  }
14961
15020
  }
14962
- function _typeof$1(obj) {
14963
- "@babel/helpers - typeof";
14964
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
14965
- return typeof obj2;
14966
- } : function(obj2) {
14967
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
14968
- }, _typeof$1(obj);
14969
- }
14970
15021
  function _possibleConstructorReturn(self2, call2) {
14971
15022
  if (call2 && (_typeof$1(call2) === "object" || typeof call2 === "function")) {
14972
15023
  return call2;
@@ -15360,15 +15411,9 @@ Please add \`${key}Action\` when creating your handler.`);
15360
15411
  };
15361
15412
  }
15362
15413
  function maybeInvokeDelegate(delegate, context) {
15363
- var method2 = delegate.iterator[context.method];
15364
- if (void 0 === method2) {
15365
- if (context.delegate = null, "throw" === context.method) {
15366
- if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), "throw" === context.method))
15367
- return ContinueSentinel;
15368
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
15369
- }
15370
- return ContinueSentinel;
15371
- }
15414
+ var methodName = context.method, method2 = delegate.iterator[methodName];
15415
+ if (void 0 === method2)
15416
+ return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
15372
15417
  var record2 = tryCatch(method2, delegate.iterator, context.arg);
15373
15418
  if ("throw" === record2.type)
15374
15419
  return context.method = "throw", context.arg = record2.arg, context.delegate = null, ContinueSentinel;
@@ -17631,32 +17676,31 @@ Please add \`${key}Action\` when creating your handler.`);
17631
17676
  })));
17632
17677
  };
17633
17678
  function _iterableToArrayLimit(arr, i) {
17634
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
17635
- if (_i == null)
17636
- return;
17637
- var _arr = [];
17638
- var _n = true;
17639
- var _d = false;
17640
- var _s, _e;
17641
- try {
17642
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
17643
- _arr.push(_s.value);
17644
- if (i && _arr.length === i)
17645
- break;
17646
- }
17647
- } catch (err) {
17648
- _d = true;
17649
- _e = err;
17650
- } finally {
17679
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
17680
+ if (null != _i) {
17681
+ var _s, _e, _x, _r, _arr = [], _n = true, _d = false;
17651
17682
  try {
17652
- if (!_n && _i["return"] != null)
17653
- _i["return"]();
17683
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
17684
+ if (Object(_i) !== _i)
17685
+ return;
17686
+ _n = false;
17687
+ } else
17688
+ for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = true) {
17689
+ ;
17690
+ }
17691
+ } catch (err) {
17692
+ _d = true, _e = err;
17654
17693
  } finally {
17655
- if (_d)
17656
- throw _e;
17694
+ try {
17695
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r))
17696
+ return;
17697
+ } finally {
17698
+ if (_d)
17699
+ throw _e;
17700
+ }
17657
17701
  }
17702
+ return _arr;
17658
17703
  }
17659
- return _arr;
17660
17704
  }
17661
17705
  function _slicedToArray(arr, i) {
17662
17706
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
@@ -18607,7 +18651,7 @@ Please add \`${key}Action\` when creating your handler.`);
18607
18651
  }
18608
18652
  }), wrapperNode);
18609
18653
  };
18610
- function stringify$1(value) {
18654
+ function stringify(value) {
18611
18655
  try {
18612
18656
  return JSON.stringify(value);
18613
18657
  } catch (err) {
@@ -18619,22 +18663,22 @@ Please add \`${key}Action\` when creating your handler.`);
18619
18663
  args[_key] = arguments[_key];
18620
18664
  }
18621
18665
  var _args$ = args[0], dependencies = _args$ === void 0 ? [] : _args$, form = args[1];
18622
- var _useState = React$1.useState(), _useState2 = _slicedToArray(_useState, 2), value = _useState2[0], setValue2 = _useState2[1];
18623
- var valueStr = React$1.useMemo(function() {
18624
- return stringify$1(value);
18666
+ var _useState = React$4.useState(), _useState2 = _slicedToArray(_useState, 2), value = _useState2[0], setValue2 = _useState2[1];
18667
+ var valueStr = React$4.useMemo(function() {
18668
+ return stringify(value);
18625
18669
  }, [value]);
18626
- var valueStrRef = React$1.useRef(valueStr);
18670
+ var valueStrRef = React$4.useRef(valueStr);
18627
18671
  valueStrRef.current = valueStr;
18628
- var fieldContext = React$1.useContext(Context$1);
18672
+ var fieldContext = React$4.useContext(Context$1);
18629
18673
  var formInstance = form || fieldContext;
18630
18674
  var isValidForm = formInstance && formInstance._init;
18631
18675
  {
18632
18676
  warningOnce$1(args.length === 2 ? form ? isValidForm : true : isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
18633
18677
  }
18634
18678
  var namePath = getNamePath(dependencies);
18635
- var namePathRef = React$1.useRef(namePath);
18679
+ var namePathRef = React$4.useRef(namePath);
18636
18680
  namePathRef.current = namePath;
18637
- React$1.useEffect(
18681
+ React$4.useEffect(
18638
18682
  function() {
18639
18683
  if (!isValidForm) {
18640
18684
  return;
@@ -18643,7 +18687,7 @@ Please add \`${key}Action\` when creating your handler.`);
18643
18687
  var _getInternalHooks = getInternalHooks(HOOK_MARK$1), registerWatch = _getInternalHooks.registerWatch;
18644
18688
  var cancelRegister = registerWatch(function(store) {
18645
18689
  var newValue = getValue(store, namePathRef.current);
18646
- var nextValueStr = stringify$1(newValue);
18690
+ var nextValueStr = stringify(newValue);
18647
18691
  if (valueStrRef.current !== nextValueStr) {
18648
18692
  valueStrRef.current = nextValueStr;
18649
18693
  setValue2(newValue);
@@ -18935,7 +18979,7 @@ Please add \`${key}Action\` when creating your handler.`);
18935
18979
  };
18936
18980
  const classPrefix$O = "adm-form";
18937
18981
  const defaultProps$C = defaultFormContext;
18938
- const Form = React$1.forwardRef((p, ref) => {
18982
+ const Form = React$4.forwardRef((p, ref) => {
18939
18983
  const props = mergeProps(defaultProps$C, p);
18940
18984
  const {
18941
18985
  className,
@@ -18951,7 +18995,7 @@ Please add \`${key}Action\` when creating your handler.`);
18951
18995
  const {
18952
18996
  locale
18953
18997
  } = useConfig();
18954
- const validateMessages = React$1.useMemo(() => merge_1({}, locale.Form.defaultValidateMessages, formProps.validateMessages), [locale.Form.defaultValidateMessages, formProps.validateMessages]);
18998
+ const validateMessages = React$4.useMemo(() => merge_1({}, locale.Form.defaultValidateMessages, formProps.validateMessages), [locale.Form.defaultValidateMessages, formProps.validateMessages]);
18955
18999
  const lists = [];
18956
19000
  let currentHeader = null;
18957
19001
  let items = [];
@@ -19105,22 +19149,22 @@ Please add \`${key}Action\` when creating your handler.`);
19105
19149
  function noteOnce(valid, message) {
19106
19150
  call(note, valid, message);
19107
19151
  }
19108
- var _default$1 = warningOnce;
19109
- warning$1.default = _default$1;
19110
- var _interopRequireWildcard = interopRequireWildcard.exports.default;
19111
- var _interopRequireDefault = interopRequireDefault.exports.default;
19152
+ var _default$3 = warningOnce;
19153
+ warning$1.default = _default$3;
19154
+ var _interopRequireWildcard$3 = interopRequireWildcard.exports.default;
19155
+ var _interopRequireDefault$3 = interopRequireDefault.exports.default;
19112
19156
  Object.defineProperty(FieldContext, "__esModule", {
19113
19157
  value: true
19114
19158
  });
19115
19159
  var default_1 = FieldContext.default = FieldContext.HOOK_MARK = void 0;
19116
- var _warning = _interopRequireDefault(warning$1);
19117
- var React = _interopRequireWildcard(React__default.default);
19160
+ var _warning = _interopRequireDefault$3(warning$1);
19161
+ var React$3 = _interopRequireWildcard$3(React__default.default);
19118
19162
  var HOOK_MARK = "RC_FORM_INTERNAL_HOOKS";
19119
19163
  FieldContext.HOOK_MARK = HOOK_MARK;
19120
19164
  var warningFunc = function warningFunc2() {
19121
19165
  (0, _warning.default)(false, "Can not find FormContext. Please make sure you wrap Field under Form.");
19122
19166
  };
19123
- var Context = /* @__PURE__ */ React.createContext({
19167
+ var Context = /* @__PURE__ */ React$3.createContext({
19124
19168
  getFieldValue: warningFunc,
19125
19169
  getFieldsValue: warningFunc,
19126
19170
  getFieldError: warningFunc,
@@ -19154,8 +19198,8 @@ Please add \`${key}Action\` when creating your handler.`);
19154
19198
  };
19155
19199
  }
19156
19200
  });
19157
- var _default = Context;
19158
- default_1 = FieldContext.default = _default;
19201
+ var _default$2 = Context;
19202
+ default_1 = FieldContext.default = _default$2;
19159
19203
  function toArray(candidate) {
19160
19204
  if (candidate === void 0 || candidate === false)
19161
19205
  return [];
@@ -19177,7 +19221,7 @@ Please add \`${key}Action\` when creating your handler.`);
19177
19221
  }
19178
19222
  const popover = "";
19179
19223
  const popoverMenu = "";
19180
- const Arrow = React$1.memo((props) => {
19224
+ const Arrow = React$4.memo((props) => {
19181
19225
  return withNativeProps(props, React__default.default.createElement("svg", {
19182
19226
  viewBox: "0 0 30 16"
19183
19227
  }, React__default.default.createElement("g", {
@@ -19412,20 +19456,29 @@ Please add \`${key}Action\` when creating your handler.`);
19412
19456
  rootBoundary,
19413
19457
  strategy
19414
19458
  }));
19459
+ const rect = elementContext === "floating" ? {
19460
+ ...rects.floating,
19461
+ x,
19462
+ y
19463
+ } : rects.reference;
19464
+ const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
19465
+ const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
19466
+ x: 1,
19467
+ y: 1
19468
+ } : {
19469
+ x: 1,
19470
+ y: 1
19471
+ };
19415
19472
  const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
19416
- rect: elementContext === "floating" ? {
19417
- ...rects.floating,
19418
- x,
19419
- y
19420
- } : rects.reference,
19421
- offsetParent: await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating)),
19473
+ rect,
19474
+ offsetParent,
19422
19475
  strategy
19423
- }) : rects[elementContext]);
19476
+ }) : rect);
19424
19477
  return {
19425
- top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
19426
- bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
19427
- left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
19428
- right: elementClientRect.right - clippingClientRect.right + paddingObject.right
19478
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
19479
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
19480
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
19481
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
19429
19482
  };
19430
19483
  }
19431
19484
  const min$1 = Math.min;
@@ -19864,24 +19917,25 @@ Please add \`${key}Action\` when creating your handler.`);
19864
19917
  }
19865
19918
  };
19866
19919
  };
19867
- function isWindow$1(value) {
19868
- return value && value.document && value.location && value.alert && value.setInterval;
19920
+ const min = Math.min;
19921
+ const max = Math.max;
19922
+ const round = Math.round;
19923
+ function getScale(element, paramRect) {
19924
+ const rect = paramRect || element.getBoundingClientRect();
19925
+ return {
19926
+ x: element.offsetWidth > 0 ? round(rect.width) / element.offsetWidth || 1 : 1,
19927
+ y: element.offsetHeight > 0 ? round(rect.height) / element.offsetHeight || 1 : 1
19928
+ };
19869
19929
  }
19870
19930
  function getWindow(node) {
19871
- if (node == null) {
19872
- return window;
19873
- }
19874
- if (!isWindow$1(node)) {
19875
- const ownerDocument = node.ownerDocument;
19876
- return ownerDocument ? ownerDocument.defaultView || window : window;
19877
- }
19878
- return node;
19931
+ var _node$ownerDocument;
19932
+ return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
19879
19933
  }
19880
19934
  function getComputedStyle(element) {
19881
19935
  return getWindow(element).getComputedStyle(element);
19882
19936
  }
19883
19937
  function getNodeName(node) {
19884
- return isWindow$1(node) ? "" : node ? (node.nodeName || "").toLowerCase() : "";
19938
+ return isNode(node) ? (node.nodeName || "").toLowerCase() : "";
19885
19939
  }
19886
19940
  function getUAString() {
19887
19941
  const uaData = navigator.userAgentData;
@@ -19935,9 +19989,6 @@ Please add \`${key}Action\` when creating your handler.`);
19935
19989
  function isLastTraversableNode(node) {
19936
19990
  return ["html", "body", "#document"].includes(getNodeName(node));
19937
19991
  }
19938
- const min = Math.min;
19939
- const max = Math.max;
19940
- const round$1 = Math.round;
19941
19992
  function getBoundingClientRect(element, includeScale, isFixedStrategy) {
19942
19993
  var _win$visualViewport$o, _win$visualViewport, _win$visualViewport$o2, _win$visualViewport2;
19943
19994
  if (includeScale === void 0) {
@@ -19947,18 +19998,25 @@ Please add \`${key}Action\` when creating your handler.`);
19947
19998
  isFixedStrategy = false;
19948
19999
  }
19949
20000
  const clientRect = element.getBoundingClientRect();
19950
- let scaleX = 1;
19951
- let scaleY = 1;
19952
- if (includeScale && isHTMLElement(element)) {
19953
- scaleX = element.offsetWidth > 0 ? round$1(clientRect.width) / element.offsetWidth || 1 : 1;
19954
- scaleY = element.offsetHeight > 0 ? round$1(clientRect.height) / element.offsetHeight || 1 : 1;
20001
+ let contextRect = clientRect;
20002
+ let elementToCheckForScale = element;
20003
+ let scale2 = {
20004
+ x: 1,
20005
+ y: 1
20006
+ };
20007
+ if (!isElement(element) && element.contextElement) {
20008
+ contextRect = element.contextElement.getBoundingClientRect();
20009
+ elementToCheckForScale = element.contextElement;
20010
+ }
20011
+ if (includeScale && isHTMLElement(elementToCheckForScale)) {
20012
+ scale2 = getScale(elementToCheckForScale, contextRect);
19955
20013
  }
19956
20014
  const win = isElement(element) ? getWindow(element) : window;
19957
20015
  const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
19958
- const x = (clientRect.left + (addVisualOffsets ? (_win$visualViewport$o = (_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) != null ? _win$visualViewport$o : 0 : 0)) / scaleX;
19959
- const y = (clientRect.top + (addVisualOffsets ? (_win$visualViewport$o2 = (_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) != null ? _win$visualViewport$o2 : 0 : 0)) / scaleY;
19960
- const width = clientRect.width / scaleX;
19961
- const height = clientRect.height / scaleY;
20016
+ const x = (clientRect.left + (addVisualOffsets ? (_win$visualViewport$o = (_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) != null ? _win$visualViewport$o : 0 : 0)) / scale2.x;
20017
+ const y = (clientRect.top + (addVisualOffsets ? (_win$visualViewport$o2 = (_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) != null ? _win$visualViewport$o2 : 0 : 0)) / scale2.y;
20018
+ const width = clientRect.width / scale2.x;
20019
+ const height = clientRect.height / scale2.y;
19962
20020
  return {
19963
20021
  width,
19964
20022
  height,
@@ -19990,7 +20048,7 @@ Please add \`${key}Action\` when creating your handler.`);
19990
20048
  }
19991
20049
  function isScaled(element) {
19992
20050
  const rect = getBoundingClientRect(element);
19993
- return round$1(rect.width) !== element.offsetWidth || round$1(rect.height) !== element.offsetHeight;
20051
+ return round(rect.width) !== element.offsetWidth || round(rect.height) !== element.offsetHeight;
19994
20052
  }
19995
20053
  function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
19996
20054
  const isOffsetParentAnElement = isHTMLElement(offsetParent);
@@ -20090,6 +20148,10 @@ Please add \`${key}Action\` when creating your handler.`);
20090
20148
  scrollLeft: 0,
20091
20149
  scrollTop: 0
20092
20150
  };
20151
+ let scale2 = {
20152
+ x: 1,
20153
+ y: 1
20154
+ };
20093
20155
  const offsets = {
20094
20156
  x: 0,
20095
20157
  y: 0
@@ -20099,15 +20161,17 @@ Please add \`${key}Action\` when creating your handler.`);
20099
20161
  scroll = getNodeScroll(offsetParent);
20100
20162
  }
20101
20163
  if (isHTMLElement(offsetParent)) {
20102
- const offsetRect = getBoundingClientRect(offsetParent, true);
20164
+ const offsetRect = getBoundingClientRect(offsetParent);
20165
+ scale2 = getScale(offsetParent);
20103
20166
  offsets.x = offsetRect.x + offsetParent.clientLeft;
20104
20167
  offsets.y = offsetRect.y + offsetParent.clientTop;
20105
20168
  }
20106
20169
  }
20107
20170
  return {
20108
- ...rect,
20109
- x: rect.x - scroll.scrollLeft + offsets.x,
20110
- y: rect.y - scroll.scrollTop + offsets.y
20171
+ width: rect.width * scale2.x,
20172
+ height: rect.height * scale2.y,
20173
+ x: rect.x * scale2.x - scroll.scrollLeft * scale2.x + offsets.x,
20174
+ y: rect.y * scale2.y - scroll.scrollTop * scale2.y + offsets.y
20111
20175
  };
20112
20176
  }
20113
20177
  function getViewportRect(element, strategy) {
@@ -20171,23 +20235,32 @@ Please add \`${key}Action\` when creating your handler.`);
20171
20235
  const scrollableAncestor = getNearestOverflowAncestor(node);
20172
20236
  const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
20173
20237
  const win = getWindow(scrollableAncestor);
20174
- const target = isBody ? [win].concat(win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []) : scrollableAncestor;
20175
- const updatedList = list2.concat(target);
20176
- return isBody ? updatedList : updatedList.concat(getOverflowAncestors(target));
20238
+ if (isBody) {
20239
+ return list2.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
20240
+ }
20241
+ return list2.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
20177
20242
  }
20178
20243
  function getInnerBoundingClientRect(element, strategy) {
20179
- const clientRect = getBoundingClientRect(element, false, strategy === "fixed");
20244
+ const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
20180
20245
  const top = clientRect.top + element.clientTop;
20181
20246
  const left = clientRect.left + element.clientLeft;
20247
+ const scale2 = isHTMLElement(element) ? getScale(element) : {
20248
+ x: 1,
20249
+ y: 1
20250
+ };
20251
+ const width = element.clientWidth * scale2.x;
20252
+ const height = element.clientHeight * scale2.y;
20253
+ const x = left * scale2.x;
20254
+ const y = top * scale2.y;
20182
20255
  return {
20183
- top,
20184
- left,
20185
- x: left,
20186
- y: top,
20187
- right: left + element.clientWidth,
20188
- bottom: top + element.clientHeight,
20189
- width: element.clientWidth,
20190
- height: element.clientHeight
20256
+ top: y,
20257
+ left: x,
20258
+ right: x + width,
20259
+ bottom: y + height,
20260
+ x,
20261
+ y,
20262
+ width,
20263
+ height
20191
20264
  };
20192
20265
  }
20193
20266
  function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
@@ -20249,6 +20322,7 @@ Please add \`${key}Action\` when creating your handler.`);
20249
20322
  getDimensions,
20250
20323
  getOffsetParent,
20251
20324
  getDocumentElement,
20325
+ getScale,
20252
20326
  async getElementRects(_ref) {
20253
20327
  let {
20254
20328
  reference,
@@ -20369,7 +20443,7 @@ Please add \`${key}Action\` when creating your handler.`);
20369
20443
  }
20370
20444
  let tenPxTester = null;
20371
20445
  let tester = null;
20372
- if (canUseDom) {
20446
+ if (canUseDom$2) {
20373
20447
  tenPxTester = document.createElement("div");
20374
20448
  tenPxTester.className = "adm-px-tester";
20375
20449
  tenPxTester.style.setProperty("--size", "10");
@@ -20399,7 +20473,7 @@ Please add \`${key}Action\` when creating your handler.`);
20399
20473
  stopPropagation: ["click"],
20400
20474
  getContainer: () => document.body
20401
20475
  };
20402
- const Popover$1 = React$1.forwardRef((p, ref) => {
20476
+ const Popover$1 = React$4.forwardRef((p, ref) => {
20403
20477
  const props = mergeProps(defaultProps$B, p);
20404
20478
  const {
20405
20479
  mode = "light"
@@ -20410,16 +20484,16 @@ Please add \`${key}Action\` when creating your handler.`);
20410
20484
  defaultValue: props.defaultVisible,
20411
20485
  onChange: props.onVisibleChange
20412
20486
  });
20413
- React$1.useImperativeHandle(ref, () => {
20487
+ React$4.useImperativeHandle(ref, () => {
20414
20488
  return {
20415
20489
  show: () => setVisible(true),
20416
20490
  hide: () => setVisible(false),
20417
20491
  visible
20418
20492
  };
20419
20493
  }, [visible]);
20420
- const targetRef = React$1.useRef(null);
20421
- const floatingRef = React$1.useRef(null);
20422
- const arrowRef = React$1.useRef(null);
20494
+ const targetRef = React$4.useRef(null);
20495
+ const floatingRef = React$4.useRef(null);
20496
+ const arrowRef = React$4.useRef(null);
20423
20497
  const floating = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.default.createElement("div", {
20424
20498
  className: classNames(classPrefix$N, `${classPrefix$N}-${mode}`, !visible && `${classPrefix$N}-hidden`),
20425
20499
  ref: floatingRef
@@ -20433,7 +20507,7 @@ Please add \`${key}Action\` when creating your handler.`);
20433
20507
  }, React__default.default.createElement("div", {
20434
20508
  className: `${classPrefix$N}-inner-content`
20435
20509
  }, props.content)))));
20436
- const [targetElement, setTargetElement] = React$1.useState(null);
20510
+ const [targetElement, setTargetElement] = React$4.useState(null);
20437
20511
  function update2() {
20438
20512
  var _a, _b, _c;
20439
20513
  return __awaiter$1(this, void 0, void 0, function* () {
@@ -20493,7 +20567,7 @@ Please add \`${key}Action\` when creating your handler.`);
20493
20567
  useIsomorphicLayoutEffect$2(() => {
20494
20568
  update2();
20495
20569
  });
20496
- React$1.useEffect(() => {
20570
+ React$4.useEffect(() => {
20497
20571
  if (!targetElement)
20498
20572
  return;
20499
20573
  if (!props.trigger)
@@ -20506,7 +20580,7 @@ Please add \`${key}Action\` when creating your handler.`);
20506
20580
  targetElement.removeEventListener("click", handleClick);
20507
20581
  };
20508
20582
  }, [targetElement, props.trigger]);
20509
- React$1.useEffect(() => {
20583
+ React$4.useEffect(() => {
20510
20584
  const floatingElement = floatingRef.current;
20511
20585
  if (!targetElement || !floatingElement)
20512
20586
  return;
@@ -20528,10 +20602,10 @@ Please add \`${key}Action\` when creating your handler.`);
20528
20602
  }, props.children), shouldRender && renderToContainer(props.getContainer, floating));
20529
20603
  });
20530
20604
  const classPrefix$M = `adm-popover-menu`;
20531
- const PopoverMenu = React$1.forwardRef((props, ref) => {
20532
- const innerRef = React$1.useRef(null);
20533
- React$1.useImperativeHandle(ref, () => innerRef.current, []);
20534
- const onClick = React$1.useCallback((e) => {
20605
+ const PopoverMenu = React$4.forwardRef((props, ref) => {
20606
+ const innerRef = React$4.useRef(null);
20607
+ React$4.useImperativeHandle(ref, () => innerRef.current, []);
20608
+ const onClick = React$4.useCallback((e) => {
20535
20609
  var _a;
20536
20610
  const {
20537
20611
  onAction
@@ -20541,7 +20615,7 @@ Please add \`${key}Action\` when creating your handler.`);
20541
20615
  }
20542
20616
  (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.hide();
20543
20617
  }, [props.onAction]);
20544
- const overlay = React$1.useMemo(() => {
20618
+ const overlay = React$4.useMemo(() => {
20545
20619
  return React__default.default.createElement("div", {
20546
20620
  className: `${classPrefix$M}-list`
20547
20621
  }, React__default.default.createElement("div", {
@@ -20603,7 +20677,7 @@ Please add \`${key}Action\` when creating your handler.`);
20603
20677
  arrow: arrow2,
20604
20678
  childElementPosition = "normal"
20605
20679
  } = props;
20606
- const context = React$1.useContext(FormContext);
20680
+ const context = React$4.useContext(FormContext);
20607
20681
  const {
20608
20682
  locale
20609
20683
  } = useConfig();
@@ -20702,16 +20776,16 @@ Please add \`${key}Action\` when creating your handler.`);
20702
20776
  } = props, fieldProps = __rest(props, ["className", "style", "label", "help", "extra", "hasFeedback", "name", "required", "noStyle", "hidden", "layout", "childElementPosition", "description", "disabled", "rules", "children", "messageVariables", "trigger", "validateTrigger", "onClick", "shouldUpdate", "dependencies", "clickable", "arrow"]);
20703
20777
  const {
20704
20778
  name: formName
20705
- } = React$1.useContext(FormContext);
20779
+ } = React$4.useContext(FormContext);
20706
20780
  const {
20707
20781
  validateTrigger: contextValidateTrigger
20708
- } = React$1.useContext(default_1);
20782
+ } = React$4.useContext(default_1);
20709
20783
  const mergedValidateTrigger = undefinedFallback(validateTrigger, contextValidateTrigger, trigger);
20710
- const widgetRef = React$1.useRef(null);
20711
- const updateRef2 = React$1.useRef(0);
20784
+ const widgetRef = React$4.useRef(null);
20785
+ const updateRef2 = React$4.useRef(0);
20712
20786
  updateRef2.current += 1;
20713
- const [subMetas, setSubMetas] = React$1.useState({});
20714
- const onSubMetaChange = React$1.useCallback((subMeta, namePath) => {
20787
+ const [subMetas, setSubMetas] = React$4.useState({});
20788
+ const onSubMetaChange = React$4.useCallback((subMeta, namePath) => {
20715
20789
  setSubMetas((prevSubMetas) => {
20716
20790
  const nextSubMetas = Object.assign({}, prevSubMetas);
20717
20791
  const nameKey = namePath.join(NAME_SPLIT);
@@ -20778,7 +20852,7 @@ Please add \`${key}Action\` when creating your handler.`);
20778
20852
  if (messageVariables) {
20779
20853
  Variables = Object.assign(Object.assign({}, Variables), messageVariables);
20780
20854
  }
20781
- const notifyParentMetaChange = React$1.useContext(NoStyleItemContext);
20855
+ const notifyParentMetaChange = React$4.useContext(NoStyleItemContext);
20782
20856
  const onMetaChange = (meta) => {
20783
20857
  if (noStyle && notifyParentMetaChange) {
20784
20858
  const namePath = meta.name;
@@ -20860,7 +20934,7 @@ Please add \`${key}Action\` when creating your handler.`);
20860
20934
  };
20861
20935
  const FormSubscribe = (props) => {
20862
20936
  const update2 = useUpdate$1();
20863
- const form = React$1.useContext(Context$1);
20937
+ const form = React$4.useContext(Context$1);
20864
20938
  return React__default.default.createElement(React__default.default.Fragment, null, props.children(form.getFieldsValue(props.to), form), props.to.map((namePath) => React__default.default.createElement(Watcher, {
20865
20939
  key: namePath.toString(),
20866
20940
  form,
@@ -20868,7 +20942,7 @@ Please add \`${key}Action\` when creating your handler.`);
20868
20942
  onChange: update2
20869
20943
  })));
20870
20944
  };
20871
- const Watcher = React$1.memo((props) => {
20945
+ const Watcher = React$4.memo((props) => {
20872
20946
  const value = useWatch(props.namePath, props.form);
20873
20947
  useIsomorphicUpdateLayoutEffect(() => {
20874
20948
  props.onChange();
@@ -20953,8 +21027,8 @@ Please add \`${key}Action\` when creating your handler.`);
20953
21027
  dragLockRef,
20954
21028
  maxZoom
20955
21029
  } = props;
20956
- const controlRef = React$1.useRef(null);
20957
- const imgRef = React$1.useRef(null);
21030
+ const controlRef = React$4.useRef(null);
21031
+ const imgRef = React$4.useRef(null);
20958
21032
  const [{
20959
21033
  matrix
20960
21034
  }, api] = useSpring(() => ({
@@ -20965,7 +21039,7 @@ Please add \`${key}Action\` when creating your handler.`);
20965
21039
  }));
20966
21040
  const controlSize = useSize(controlRef);
20967
21041
  const imgSize = useSize(imgRef);
20968
- const pinchLockRef = React$1.useRef(false);
21042
+ const pinchLockRef = React$4.useRef(false);
20969
21043
  const boundMatrix = (nextMatrix, type2, last = false) => {
20970
21044
  if (!controlSize || !imgSize)
20971
21045
  return nextMatrix;
@@ -21108,7 +21182,7 @@ Please add \`${key}Action\` when creating your handler.`);
21108
21182
  }))));
21109
21183
  };
21110
21184
  const classPrefix$I = `adm-image-viewer`;
21111
- const Slides = React$1.forwardRef((props, ref) => {
21185
+ const Slides = React$4.forwardRef((props, ref) => {
21112
21186
  const slideWidth = window.innerWidth + convertPx(16);
21113
21187
  const [{
21114
21188
  x
@@ -21129,10 +21203,10 @@ Please add \`${key}Action\` when creating your handler.`);
21129
21203
  immediate
21130
21204
  });
21131
21205
  }
21132
- React$1.useImperativeHandle(ref, () => ({
21206
+ React$4.useImperativeHandle(ref, () => ({
21133
21207
  swipeTo
21134
21208
  }));
21135
- const dragLockRef = React$1.useRef(false);
21209
+ const dragLockRef = React$4.useRef(false);
21136
21210
  const bind = useDrag((state) => {
21137
21211
  if (dragLockRef.current)
21138
21212
  return;
@@ -21225,19 +21299,19 @@ Please add \`${key}Action\` when creating your handler.`);
21225
21299
  const multiDefaultProps = Object.assign(Object.assign({}, defaultProps$A), {
21226
21300
  defaultIndex: 0
21227
21301
  });
21228
- const MultiImageViewer = React$1.forwardRef((p, ref) => {
21302
+ const MultiImageViewer = React$4.forwardRef((p, ref) => {
21229
21303
  var _a;
21230
21304
  const props = mergeProps(multiDefaultProps, p);
21231
- const [index2, setIndex] = React$1.useState(props.defaultIndex);
21232
- const slidesRef = React$1.useRef(null);
21233
- React$1.useImperativeHandle(ref, () => ({
21305
+ const [index2, setIndex] = React$4.useState(props.defaultIndex);
21306
+ const slidesRef = React$4.useRef(null);
21307
+ React$4.useImperativeHandle(ref, () => ({
21234
21308
  swipeTo: (index3, immediate) => {
21235
21309
  var _a2;
21236
21310
  setIndex(index3);
21237
21311
  (_a2 = slidesRef.current) === null || _a2 === void 0 ? void 0 : _a2.swipeTo(index3, immediate);
21238
21312
  }
21239
21313
  }));
21240
- const onSlideChange = React$1.useCallback((index3) => {
21314
+ const onSlideChange = React$4.useCallback((index3) => {
21241
21315
  var _a2;
21242
21316
  setIndex(index3);
21243
21317
  (_a2 = props.onIndexChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, index3);
@@ -21319,7 +21393,7 @@ Please add \`${key}Action\` when creating your handler.`);
21319
21393
  onDelete,
21320
21394
  imageFit
21321
21395
  } = props;
21322
- const src = React$1.useMemo(() => {
21396
+ const src = React$4.useMemo(() => {
21323
21397
  if (url) {
21324
21398
  return url;
21325
21399
  }
@@ -21328,7 +21402,7 @@ Please add \`${key}Action\` when creating your handler.`);
21328
21402
  }
21329
21403
  return "";
21330
21404
  }, [url, file]);
21331
- React$1.useEffect(() => {
21405
+ React$4.useEffect(() => {
21332
21406
  return () => {
21333
21407
  if (file)
21334
21408
  URL.revokeObjectURL(src);
@@ -21413,11 +21487,11 @@ Please add \`${key}Action\` when creating your handler.`);
21413
21487
  columns
21414
21488
  } = props;
21415
21489
  const [value, setValue2] = usePropsValue(props);
21416
- const [tasks, setTasks] = React$1.useState([]);
21417
- const containerRef = React$1.useRef(null);
21490
+ const [tasks, setTasks] = React$4.useState([]);
21491
+ const containerRef = React$4.useRef(null);
21418
21492
  const containerSize = useSize(containerRef);
21419
- const gapMeasureRef = React$1.useRef(null);
21420
- const [cellSize, setCellSize] = React$1.useState(80);
21493
+ const gapMeasureRef = React$4.useRef(null);
21494
+ const [cellSize, setCellSize] = React$4.useState(80);
21421
21495
  useIsomorphicLayoutEffect$2(() => {
21422
21496
  const gapMeasure = gapMeasureRef.current;
21423
21497
  if (columns && containerSize && gapMeasure) {
@@ -21443,7 +21517,7 @@ Please add \`${key}Action\` when creating your handler.`);
21443
21517
  status: item.status
21444
21518
  })));
21445
21519
  }, [tasks]);
21446
- const idCountRef = React$1.useRef(0);
21520
+ const idCountRef = React$4.useRef(0);
21447
21521
  const {
21448
21522
  maxCount,
21449
21523
  onPreview,
@@ -21531,7 +21605,7 @@ Please add \`${key}Action\` when creating your handler.`);
21531
21605
  }))).catch((error) => console.error(error));
21532
21606
  });
21533
21607
  }
21534
- const imageViewerHandlerRef = React$1.useRef(null);
21608
+ const imageViewerHandlerRef = React$4.useRef(null);
21535
21609
  function previewImage(index2) {
21536
21610
  imageViewerHandlerRef.current = ImageViewer.Multi.show({
21537
21611
  images: value.map((fileItem) => fileItem.url),
@@ -21588,9 +21662,12 @@ Please add \`${key}Action\` when creating your handler.`);
21588
21662
  setTasks(tasks.filter((x) => x.id !== task.id));
21589
21663
  }
21590
21664
  });
21591
- }), showUpload && React__default.default.createElement("div", {
21592
- className: `${classPrefix$E}-upload-button-wrap`
21593
- }, props.children ? props.children : React__default.default.createElement("span", {
21665
+ }), React__default.default.createElement("div", {
21666
+ className: `${classPrefix$E}-upload-button-wrap`,
21667
+ style: showUpload ? void 0 : {
21668
+ display: "none"
21669
+ }
21670
+ }, props.children || React__default.default.createElement("span", {
21594
21671
  className: `${classPrefix$E}-cell ${classPrefix$E}-upload-button`,
21595
21672
  role: "button",
21596
21673
  "aria-label": locale.ImageUploader.upload
@@ -21627,7 +21704,7 @@ Please add \`${key}Action\` when creating your handler.`);
21627
21704
  const Panel = () => null;
21628
21705
  const classPrefix$D = `adm-index-bar`;
21629
21706
  const Sidebar = (props) => {
21630
- const [interacting, setInteracting] = React$1.useState(false);
21707
+ const [interacting, setInteracting] = React$4.useState(false);
21631
21708
  return React__default.default.createElement("div", {
21632
21709
  className: classNames(`${classPrefix$D}-sidebar`, {
21633
21710
  [`${classPrefix$D}-sidebar-interacting`]: interacting
@@ -21693,10 +21770,10 @@ Please add \`${key}Action\` when creating your handler.`);
21693
21770
  const defaultProps$x = {
21694
21771
  sticky: true
21695
21772
  };
21696
- const IndexBar = React$1.forwardRef((p, ref) => {
21773
+ const IndexBar = React$4.forwardRef((p, ref) => {
21697
21774
  const props = mergeProps(defaultProps$x, p);
21698
21775
  const titleHeight = convertPx(35);
21699
- const bodyRef = React$1.useRef(null);
21776
+ const bodyRef = React$4.useRef(null);
21700
21777
  const indexItems = [];
21701
21778
  const panels = [];
21702
21779
  traverseReactNode(props.children, (child) => {
@@ -21719,11 +21796,11 @@ Please add \`${key}Action\` when creating your handler.`);
21719
21796
  className: `${classPrefix$C}-anchor-title`
21720
21797
  }, child.props.title || child.props.index), child.props.children)));
21721
21798
  });
21722
- const [activeIndex, setActiveIndex] = React$1.useState(() => {
21799
+ const [activeIndex, setActiveIndex] = React$4.useState(() => {
21723
21800
  const firstItem = indexItems[0];
21724
21801
  return firstItem ? firstItem.index : null;
21725
21802
  });
21726
- React$1.useImperativeHandle(ref, () => ({
21803
+ React$4.useImperativeHandle(ref, () => ({
21727
21804
  scrollTo
21728
21805
  }));
21729
21806
  function scrollTo(index2) {
@@ -21806,7 +21883,7 @@ Please add \`${key}Action\` when creating your handler.`);
21806
21883
  };
21807
21884
  const InfiniteScroll$1 = (p) => {
21808
21885
  const props = mergeProps(defaultProps$w, p);
21809
- const [failed, setFailed] = React$1.useState(false);
21886
+ const [failed, setFailed] = React$4.useState(false);
21810
21887
  const doLoadMore = useLockFn((isRetry) => __awaiter$1(void 0, void 0, void 0, function* () {
21811
21888
  try {
21812
21889
  yield props.loadMore(isRetry);
@@ -21815,10 +21892,10 @@ Please add \`${key}Action\` when creating your handler.`);
21815
21892
  throw e;
21816
21893
  }
21817
21894
  }));
21818
- const elementRef = React$1.useRef(null);
21819
- const [flag, setFlag] = React$1.useState({});
21820
- const nextFlagRef = React$1.useRef(flag);
21821
- const [scrollParent, setScrollParent] = React$1.useState();
21895
+ const elementRef = React$4.useRef(null);
21896
+ const [flag, setFlag] = React$4.useState({});
21897
+ const nextFlagRef = React$4.useRef(flag);
21898
+ const [scrollParent, setScrollParent] = React$4.useState();
21822
21899
  const {
21823
21900
  run: check
21824
21901
  } = useThrottleFn(() => __awaiter$1(void 0, void 0, void 0, function* () {
@@ -21849,10 +21926,10 @@ Please add \`${key}Action\` when creating your handler.`);
21849
21926
  leading: true,
21850
21927
  trailing: true
21851
21928
  });
21852
- React$1.useEffect(() => {
21929
+ React$4.useEffect(() => {
21853
21930
  check();
21854
21931
  });
21855
- React$1.useEffect(() => {
21932
+ React$4.useEffect(() => {
21856
21933
  const element = elementRef.current;
21857
21934
  if (!element)
21858
21935
  return;
@@ -21903,16 +21980,16 @@ Please add \`${key}Action\` when creating your handler.`);
21903
21980
  defaultValue: "",
21904
21981
  onlyShowClearWhenFocus: true
21905
21982
  };
21906
- const Input$1 = React$1.forwardRef((p, ref) => {
21983
+ const Input$1 = React$4.forwardRef((p, ref) => {
21907
21984
  const props = mergeProps(defaultProps$v, p);
21908
21985
  const [value, setValue2] = usePropsValue(props);
21909
- const [hasFocus, setHasFocus] = React$1.useState(false);
21910
- const compositionStartRef = React$1.useRef(false);
21911
- const nativeInputRef = React$1.useRef(null);
21986
+ const [hasFocus, setHasFocus] = React$4.useState(false);
21987
+ const compositionStartRef = React$4.useRef(false);
21988
+ const nativeInputRef = React$4.useRef(null);
21912
21989
  const {
21913
21990
  locale
21914
21991
  } = useConfig();
21915
- React$1.useImperativeHandle(ref, () => ({
21992
+ React$4.useImperativeHandle(ref, () => ({
21916
21993
  clear: () => {
21917
21994
  setValue2("");
21918
21995
  },
@@ -22042,8 +22119,8 @@ Please add \`${key}Action\` when creating your handler.`);
22042
22119
  };
22043
22120
  const JumboTabs = (props) => {
22044
22121
  var _a;
22045
- const tabListContainerRef = React$1.useRef(null);
22046
- const rootRef = React$1.useRef(null);
22122
+ const tabListContainerRef = React$4.useRef(null);
22123
+ const rootRef = React$4.useRef(null);
22047
22124
  const keyToIndexRecord = {};
22048
22125
  let firstActiveKey = null;
22049
22126
  const panes = [];
@@ -22336,14 +22413,14 @@ Please add \`${key}Action\` when creating your handler.`);
22336
22413
  wrap: false,
22337
22414
  icon: React__default.default.createElement(SoundOutline, null)
22338
22415
  };
22339
- const NoticeBar$1 = React$1.memo((p) => {
22416
+ const NoticeBar$1 = React$4.memo((p) => {
22340
22417
  const props = mergeProps(defaultProps$r, p);
22341
- const containerRef = React$1.useRef(null);
22342
- const textRef = React$1.useRef(null);
22343
- const [visible, setVisible] = React$1.useState(true);
22418
+ const containerRef = React$4.useRef(null);
22419
+ const textRef = React$4.useRef(null);
22420
+ const [visible, setVisible] = React$4.useState(true);
22344
22421
  const speed = props.speed;
22345
- const delayLockRef = React$1.useRef(true);
22346
- const animatingRef = React$1.useRef(false);
22422
+ const delayLockRef = React$4.useRef(true);
22423
+ const animatingRef = React$4.useRef(false);
22347
22424
  function start2() {
22348
22425
  if (delayLockRef.current || props.wrap)
22349
22426
  return;
@@ -22449,8 +22526,8 @@ Please add \`${key}Action\` when creating your handler.`);
22449
22526
  showCloseButton,
22450
22527
  onInput
22451
22528
  } = props;
22452
- const keyboardRef = React$1.useRef(null);
22453
- const keys2 = React$1.useMemo(() => {
22529
+ const keyboardRef = React$4.useRef(null);
22530
+ const keys2 = React$4.useMemo(() => {
22454
22531
  const defaultKeys = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
22455
22532
  const keyList = randomOrder ? shuffle(defaultKeys) : defaultKeys;
22456
22533
  const customKeys = Array.isArray(customKey) ? customKey : [customKey];
@@ -22466,8 +22543,8 @@ Please add \`${key}Action\` when creating your handler.`);
22466
22543
  }
22467
22544
  return keyList;
22468
22545
  }, [customKey, confirmText, randomOrder, randomOrder && visible]);
22469
- const timeoutRef = React$1.useRef(-1);
22470
- const intervalRef = React$1.useRef(-1);
22546
+ const timeoutRef = React$4.useRef(-1);
22547
+ const intervalRef = React$4.useRef(-1);
22471
22548
  const onDelete = useMemoizedFn(() => {
22472
22549
  var _a;
22473
22550
  (_a = props.onDelete) === null || _a === void 0 ? void 0 : _a.call(props);
@@ -22599,7 +22676,7 @@ Please add \`${key}Action\` when creating your handler.`);
22599
22676
  color: "primary",
22600
22677
  direction: "horizontal"
22601
22678
  };
22602
- const PageIndicator$1 = React$1.memo((p) => {
22679
+ const PageIndicator$1 = React$4.memo((p) => {
22603
22680
  const props = mergeProps(defaultProps$p, p);
22604
22681
  const dots = [];
22605
22682
  for (let i = 0; i < props.total; i++) {
@@ -22625,17 +22702,17 @@ Please add \`${key}Action\` when creating your handler.`);
22625
22702
  seperated: false,
22626
22703
  caret: true
22627
22704
  };
22628
- const PasscodeInput$1 = React$1.forwardRef((p, ref) => {
22705
+ const PasscodeInput$1 = React$4.forwardRef((p, ref) => {
22629
22706
  const props = mergeProps(defaultProps$o, p);
22630
22707
  const cellLength = props.length > 0 && props.length < Infinity ? Math.floor(props.length) : defaultProps$o.length;
22631
22708
  const {
22632
22709
  locale
22633
22710
  } = useConfig();
22634
- const [focused, setFocused] = React$1.useState(false);
22711
+ const [focused, setFocused] = React$4.useState(false);
22635
22712
  const [value, setValue2] = usePropsValue(props);
22636
- const rootRef = React$1.useRef(null);
22637
- const nativeInputRef = React$1.useRef(null);
22638
- React$1.useEffect(() => {
22713
+ const rootRef = React$4.useRef(null);
22714
+ const nativeInputRef = React$4.useRef(null);
22715
+ React$4.useEffect(() => {
22639
22716
  var _a;
22640
22717
  if (value.length >= cellLength) {
22641
22718
  (_a = props.onFill) === null || _a === void 0 ? void 0 : _a.call(props, value);
@@ -22649,7 +22726,7 @@ Please add \`${key}Action\` when creating your handler.`);
22649
22726
  setFocused(true);
22650
22727
  (_b = props.onFocus) === null || _b === void 0 ? void 0 : _b.call(props);
22651
22728
  };
22652
- React$1.useEffect(() => {
22729
+ React$4.useEffect(() => {
22653
22730
  if (!focused)
22654
22731
  return;
22655
22732
  const timeout = window.setTimeout(() => {
@@ -22669,7 +22746,7 @@ Please add \`${key}Action\` when creating your handler.`);
22669
22746
  setFocused(false);
22670
22747
  (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props);
22671
22748
  };
22672
- React$1.useImperativeHandle(ref, () => ({
22749
+ React$4.useImperativeHandle(ref, () => ({
22673
22750
  focus: () => {
22674
22751
  var _a;
22675
22752
  return (_a = rootRef.current) === null || _a === void 0 ? void 0 : _a.focus();
@@ -22826,7 +22903,7 @@ Please add \`${key}Action\` when creating your handler.`);
22826
22903
  }, p);
22827
22904
  const headHeight = (_a = props.headHeight) !== null && _a !== void 0 ? _a : convertPx(40);
22828
22905
  const threshold = (_b = props.threshold) !== null && _b !== void 0 ? _b : convertPx(60);
22829
- const [status, setStatus] = React$1.useState("pulling");
22906
+ const [status, setStatus] = React$4.useState("pulling");
22830
22907
  const [springStyles, api] = useSpring(() => ({
22831
22908
  from: {
22832
22909
  height: 0
@@ -22837,9 +22914,9 @@ Please add \`${key}Action\` when creating your handler.`);
22837
22914
  clamp: true
22838
22915
  }
22839
22916
  }));
22840
- const elementRef = React$1.useRef(null);
22841
- const pullingRef = React$1.useRef(false);
22842
- React$1.useEffect(() => {
22917
+ const elementRef = React$4.useRef(null);
22918
+ const pullingRef = React$4.useRef(false);
22919
+ React$4.useEffect(() => {
22843
22920
  var _a2;
22844
22921
  (_a2 = elementRef.current) === null || _a2 === void 0 ? void 0 : _a2.addEventListener("touchmove", () => {
22845
22922
  });
@@ -22970,7 +23047,7 @@ Please add \`${key}Action\` when creating your handler.`);
22970
23047
  };
22971
23048
  const PullToRefresh = PullToRefresh$1;
22972
23049
  const radio = "";
22973
- const RadioGroupContext = React$1.createContext(null);
23050
+ const RadioGroupContext = React$4.createContext(null);
22974
23051
  const defaultProps$l = {
22975
23052
  disabled: false,
22976
23053
  defaultValue: null
@@ -23009,7 +23086,7 @@ Please add \`${key}Action\` when creating your handler.`);
23009
23086
  };
23010
23087
  const Radio = (p) => {
23011
23088
  const props = mergeProps(defaultProps$k, p);
23012
- const groupContext = React$1.useContext(RadioGroupContext);
23089
+ const groupContext = React$4.useContext(RadioGroupContext);
23013
23090
  let [checked, setChecked] = usePropsValue({
23014
23091
  value: props.checked,
23015
23092
  defaultValue: props.defaultChecked,
@@ -23096,7 +23173,7 @@ Please add \`${key}Action\` when creating your handler.`);
23096
23173
  const Rate$1 = (p) => {
23097
23174
  const props = mergeProps(defaultProps$j, p);
23098
23175
  const [value, setValue2] = usePropsValue(props);
23099
- const containerRef = React$1.useRef(null);
23176
+ const containerRef = React$4.useRef(null);
23100
23177
  const starList = Array(props.count).fill(null);
23101
23178
  function renderStar(v, half) {
23102
23179
  return React__default.default.createElement("div", {
@@ -23212,7 +23289,7 @@ Please add \`${key}Action\` when creating your handler.`);
23212
23289
  onSecondaryButtonClick
23213
23290
  } = props;
23214
23291
  const resultIcon = icon || React__default.default.createElement(iconRecord[status]);
23215
- const [collapse2, setCollapse] = React$1.useState(true);
23292
+ const [collapse2, setCollapse] = React$4.useState(true);
23216
23293
  const showSecondaryButton = isNodeWithContent(secondaryButtonText);
23217
23294
  const showPrimaryButton = isNodeWithContent(primaryButtonText);
23218
23295
  return withNativeProps(props, React__default.default.createElement("div", {
@@ -23281,7 +23358,7 @@ Please add \`${key}Action\` when creating your handler.`);
23281
23358
  clearOnCancel: true,
23282
23359
  icon: React__default.default.createElement(SearchOutline, null)
23283
23360
  };
23284
- const SearchBar$1 = React$1.forwardRef((p, ref) => {
23361
+ const SearchBar$1 = React$4.forwardRef((p, ref) => {
23285
23362
  const {
23286
23363
  locale
23287
23364
  } = useConfig();
@@ -23289,10 +23366,10 @@ Please add \`${key}Action\` when creating your handler.`);
23289
23366
  cancelText: locale.common.cancel
23290
23367
  }, p);
23291
23368
  const [value, setValue2] = usePropsValue(props);
23292
- const [hasFocus, setHasFocus] = React$1.useState(false);
23293
- const inputRef = React$1.useRef(null);
23294
- const composingRef = React$1.useRef(false);
23295
- React$1.useImperativeHandle(ref, () => ({
23369
+ const [hasFocus, setHasFocus] = React$4.useState(false);
23370
+ const inputRef = React$4.useRef(null);
23371
+ const composingRef = React$4.useRef(false);
23372
+ React$4.useImperativeHandle(ref, () => ({
23296
23373
  clear: () => {
23297
23374
  var _a;
23298
23375
  return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.clear();
@@ -23385,7 +23462,7 @@ Please add \`${key}Action\` when creating your handler.`);
23385
23462
  });
23386
23463
  const SearchBar = SearchBar$1;
23387
23464
  const selector = "";
23388
- const CheckMark = React$1.memo(() => {
23465
+ const CheckMark = React$4.memo(() => {
23389
23466
  return React__default.default.createElement("svg", {
23390
23467
  width: "17px",
23391
23468
  height: "13px",
@@ -23473,7 +23550,7 @@ Please add \`${key}Action\` when creating your handler.`);
23473
23550
  };
23474
23551
  const Selector = Selector$1;
23475
23552
  const sideBar = "";
23476
- const Corner = React$1.memo((props) => withNativeProps(props, React__default.default.createElement("svg", {
23553
+ const Corner = React$4.memo((props) => withNativeProps(props, React__default.default.createElement("svg", {
23477
23554
  viewBox: "0 0 30 30"
23478
23555
  }, React__default.default.createElement("g", {
23479
23556
  stroke: "none",
@@ -23624,6 +23701,320 @@ Please add \`${key}Action\` when creating your handler.`);
23624
23701
  }, elements);
23625
23702
  };
23626
23703
  const Marks$1 = Marks;
23704
+ function supportBigInt() {
23705
+ return typeof BigInt === "function";
23706
+ }
23707
+ function trimNumber(numStr) {
23708
+ var str = numStr.trim();
23709
+ var negative = str.startsWith("-");
23710
+ if (negative) {
23711
+ str = str.slice(1);
23712
+ }
23713
+ str = str.replace(/(\.\d*[^0])0*$/, "$1").replace(/\.0*$/, "").replace(/^0+/, "");
23714
+ if (str.startsWith(".")) {
23715
+ str = "0".concat(str);
23716
+ }
23717
+ var trimStr = str || "0";
23718
+ var splitNumber = trimStr.split(".");
23719
+ var integerStr = splitNumber[0] || "0";
23720
+ var decimalStr = splitNumber[1] || "0";
23721
+ if (integerStr === "0" && decimalStr === "0") {
23722
+ negative = false;
23723
+ }
23724
+ var negativeStr = negative ? "-" : "";
23725
+ return {
23726
+ negative,
23727
+ negativeStr,
23728
+ trimStr,
23729
+ integerStr,
23730
+ decimalStr,
23731
+ fullStr: "".concat(negativeStr).concat(trimStr)
23732
+ };
23733
+ }
23734
+ function isE(number2) {
23735
+ var str = String(number2);
23736
+ return !Number.isNaN(Number(str)) && str.includes("e");
23737
+ }
23738
+ function getNumberPrecision(number2) {
23739
+ var numStr = String(number2);
23740
+ if (isE(number2)) {
23741
+ var precision = Number(numStr.slice(numStr.indexOf("e-") + 2));
23742
+ var decimalMatch = numStr.match(/\.(\d+)/);
23743
+ if (decimalMatch !== null && decimalMatch !== void 0 && decimalMatch[1]) {
23744
+ precision += decimalMatch[1].length;
23745
+ }
23746
+ return precision;
23747
+ }
23748
+ return numStr.includes(".") && validateNumber(numStr) ? numStr.length - numStr.indexOf(".") - 1 : 0;
23749
+ }
23750
+ function num2str(number2) {
23751
+ var numStr = String(number2);
23752
+ if (isE(number2)) {
23753
+ if (number2 > Number.MAX_SAFE_INTEGER) {
23754
+ return String(supportBigInt() ? BigInt(number2).toString() : Number.MAX_SAFE_INTEGER);
23755
+ }
23756
+ if (number2 < Number.MIN_SAFE_INTEGER) {
23757
+ return String(supportBigInt() ? BigInt(number2).toString() : Number.MIN_SAFE_INTEGER);
23758
+ }
23759
+ numStr = number2.toFixed(getNumberPrecision(numStr));
23760
+ }
23761
+ return trimNumber(numStr).fullStr;
23762
+ }
23763
+ function validateNumber(num) {
23764
+ if (typeof num === "number") {
23765
+ return !Number.isNaN(num);
23766
+ }
23767
+ if (!num) {
23768
+ return false;
23769
+ }
23770
+ return /^\s*-?\d+(\.\d+)?\s*$/.test(num) || /^\s*-?\d+\.\s*$/.test(num) || /^\s*-?\.\d+\s*$/.test(num);
23771
+ }
23772
+ function isEmpty(value) {
23773
+ return !value && value !== 0 && !Number.isNaN(value) || !String(value).trim();
23774
+ }
23775
+ var NumberDecimal = /* @__PURE__ */ function() {
23776
+ function NumberDecimal2(value) {
23777
+ _classCallCheck(this, NumberDecimal2);
23778
+ _defineProperty(this, "origin", "");
23779
+ _defineProperty(this, "number", void 0);
23780
+ _defineProperty(this, "empty", void 0);
23781
+ if (isEmpty(value)) {
23782
+ this.empty = true;
23783
+ return;
23784
+ }
23785
+ this.origin = String(value);
23786
+ this.number = Number(value);
23787
+ }
23788
+ _createClass(NumberDecimal2, [{
23789
+ key: "negate",
23790
+ value: function negate() {
23791
+ return new NumberDecimal2(-this.toNumber());
23792
+ }
23793
+ }, {
23794
+ key: "add",
23795
+ value: function add(value) {
23796
+ if (this.isInvalidate()) {
23797
+ return new NumberDecimal2(value);
23798
+ }
23799
+ var target = Number(value);
23800
+ if (Number.isNaN(target)) {
23801
+ return this;
23802
+ }
23803
+ var number2 = this.number + target;
23804
+ if (number2 > Number.MAX_SAFE_INTEGER) {
23805
+ return new NumberDecimal2(Number.MAX_SAFE_INTEGER);
23806
+ }
23807
+ if (number2 < Number.MIN_SAFE_INTEGER) {
23808
+ return new NumberDecimal2(Number.MIN_SAFE_INTEGER);
23809
+ }
23810
+ var maxPrecision = Math.max(getNumberPrecision(this.number), getNumberPrecision(target));
23811
+ return new NumberDecimal2(number2.toFixed(maxPrecision));
23812
+ }
23813
+ }, {
23814
+ key: "isEmpty",
23815
+ value: function isEmpty2() {
23816
+ return this.empty;
23817
+ }
23818
+ }, {
23819
+ key: "isNaN",
23820
+ value: function isNaN2() {
23821
+ return Number.isNaN(this.number);
23822
+ }
23823
+ }, {
23824
+ key: "isInvalidate",
23825
+ value: function isInvalidate() {
23826
+ return this.isEmpty() || this.isNaN();
23827
+ }
23828
+ }, {
23829
+ key: "equals",
23830
+ value: function equals(target) {
23831
+ return this.toNumber() === (target === null || target === void 0 ? void 0 : target.toNumber());
23832
+ }
23833
+ }, {
23834
+ key: "lessEquals",
23835
+ value: function lessEquals(target) {
23836
+ return this.add(target.negate().toString()).toNumber() <= 0;
23837
+ }
23838
+ }, {
23839
+ key: "toNumber",
23840
+ value: function toNumber2() {
23841
+ return this.number;
23842
+ }
23843
+ }, {
23844
+ key: "toString",
23845
+ value: function toString() {
23846
+ var safe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
23847
+ if (!safe) {
23848
+ return this.origin;
23849
+ }
23850
+ if (this.isInvalidate()) {
23851
+ return "";
23852
+ }
23853
+ return num2str(this.number);
23854
+ }
23855
+ }]);
23856
+ return NumberDecimal2;
23857
+ }();
23858
+ var BigIntDecimal = /* @__PURE__ */ function() {
23859
+ function BigIntDecimal2(value) {
23860
+ _classCallCheck(this, BigIntDecimal2);
23861
+ _defineProperty(this, "origin", "");
23862
+ _defineProperty(this, "negative", void 0);
23863
+ _defineProperty(this, "integer", void 0);
23864
+ _defineProperty(this, "decimal", void 0);
23865
+ _defineProperty(this, "decimalLen", void 0);
23866
+ _defineProperty(this, "empty", void 0);
23867
+ _defineProperty(this, "nan", void 0);
23868
+ if (isEmpty(value)) {
23869
+ this.empty = true;
23870
+ return;
23871
+ }
23872
+ this.origin = String(value);
23873
+ if (value === "-" || Number.isNaN(value)) {
23874
+ this.nan = true;
23875
+ return;
23876
+ }
23877
+ var mergedValue = value;
23878
+ if (isE(mergedValue)) {
23879
+ mergedValue = Number(mergedValue);
23880
+ }
23881
+ mergedValue = typeof mergedValue === "string" ? mergedValue : num2str(mergedValue);
23882
+ if (validateNumber(mergedValue)) {
23883
+ var trimRet = trimNumber(mergedValue);
23884
+ this.negative = trimRet.negative;
23885
+ var numbers = trimRet.trimStr.split(".");
23886
+ this.integer = BigInt(numbers[0]);
23887
+ var decimalStr = numbers[1] || "0";
23888
+ this.decimal = BigInt(decimalStr);
23889
+ this.decimalLen = decimalStr.length;
23890
+ } else {
23891
+ this.nan = true;
23892
+ }
23893
+ }
23894
+ _createClass(BigIntDecimal2, [{
23895
+ key: "getMark",
23896
+ value: function getMark() {
23897
+ return this.negative ? "-" : "";
23898
+ }
23899
+ }, {
23900
+ key: "getIntegerStr",
23901
+ value: function getIntegerStr() {
23902
+ return this.integer.toString();
23903
+ }
23904
+ }, {
23905
+ key: "getDecimalStr",
23906
+ value: function getDecimalStr() {
23907
+ return this.decimal.toString().padStart(this.decimalLen, "0");
23908
+ }
23909
+ }, {
23910
+ key: "alignDecimal",
23911
+ value: function alignDecimal(decimalLength) {
23912
+ var str = "".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(decimalLength, "0"));
23913
+ return BigInt(str);
23914
+ }
23915
+ }, {
23916
+ key: "negate",
23917
+ value: function negate() {
23918
+ var clone = new BigIntDecimal2(this.toString());
23919
+ clone.negative = !clone.negative;
23920
+ return clone;
23921
+ }
23922
+ }, {
23923
+ key: "add",
23924
+ value: function add(value) {
23925
+ if (this.isInvalidate()) {
23926
+ return new BigIntDecimal2(value);
23927
+ }
23928
+ var offset2 = new BigIntDecimal2(value);
23929
+ if (offset2.isInvalidate()) {
23930
+ return this;
23931
+ }
23932
+ var maxDecimalLength = Math.max(this.getDecimalStr().length, offset2.getDecimalStr().length);
23933
+ var myAlignedDecimal = this.alignDecimal(maxDecimalLength);
23934
+ var offsetAlignedDecimal = offset2.alignDecimal(maxDecimalLength);
23935
+ var valueStr = (myAlignedDecimal + offsetAlignedDecimal).toString();
23936
+ var _trimNumber = trimNumber(valueStr), negativeStr = _trimNumber.negativeStr, trimStr = _trimNumber.trimStr;
23937
+ var hydrateValueStr = "".concat(negativeStr).concat(trimStr.padStart(maxDecimalLength + 1, "0"));
23938
+ return new BigIntDecimal2("".concat(hydrateValueStr.slice(0, -maxDecimalLength), ".").concat(hydrateValueStr.slice(-maxDecimalLength)));
23939
+ }
23940
+ }, {
23941
+ key: "isEmpty",
23942
+ value: function isEmpty2() {
23943
+ return this.empty;
23944
+ }
23945
+ }, {
23946
+ key: "isNaN",
23947
+ value: function isNaN2() {
23948
+ return this.nan;
23949
+ }
23950
+ }, {
23951
+ key: "isInvalidate",
23952
+ value: function isInvalidate() {
23953
+ return this.isEmpty() || this.isNaN();
23954
+ }
23955
+ }, {
23956
+ key: "equals",
23957
+ value: function equals(target) {
23958
+ return this.toString() === (target === null || target === void 0 ? void 0 : target.toString());
23959
+ }
23960
+ }, {
23961
+ key: "lessEquals",
23962
+ value: function lessEquals(target) {
23963
+ return this.add(target.negate().toString()).toNumber() <= 0;
23964
+ }
23965
+ }, {
23966
+ key: "toNumber",
23967
+ value: function toNumber2() {
23968
+ if (this.isNaN()) {
23969
+ return NaN;
23970
+ }
23971
+ return Number(this.toString());
23972
+ }
23973
+ }, {
23974
+ key: "toString",
23975
+ value: function toString() {
23976
+ var safe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
23977
+ if (!safe) {
23978
+ return this.origin;
23979
+ }
23980
+ if (this.isInvalidate()) {
23981
+ return "";
23982
+ }
23983
+ return trimNumber("".concat(this.getMark()).concat(this.getIntegerStr(), ".").concat(this.getDecimalStr())).fullStr;
23984
+ }
23985
+ }]);
23986
+ return BigIntDecimal2;
23987
+ }();
23988
+ function getMiniDecimal(value) {
23989
+ if (supportBigInt()) {
23990
+ return new BigIntDecimal(value);
23991
+ }
23992
+ return new NumberDecimal(value);
23993
+ }
23994
+ function toFixed(numStr, separatorStr, precision) {
23995
+ var cutOnly = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
23996
+ if (numStr === "") {
23997
+ return "";
23998
+ }
23999
+ var _trimNumber2 = trimNumber(numStr), negativeStr = _trimNumber2.negativeStr, integerStr = _trimNumber2.integerStr, decimalStr = _trimNumber2.decimalStr;
24000
+ var precisionDecimalStr = "".concat(separatorStr).concat(decimalStr);
24001
+ var numberWithoutDecimal = "".concat(negativeStr).concat(integerStr);
24002
+ if (precision >= 0) {
24003
+ var advancedNum = Number(decimalStr[precision]);
24004
+ if (advancedNum >= 5 && !cutOnly) {
24005
+ var advancedDecimal = getMiniDecimal(numStr).add("".concat(negativeStr, "0.").concat("0".repeat(precision)).concat(10 - advancedNum));
24006
+ return toFixed(advancedDecimal.toString(), separatorStr, precision, cutOnly);
24007
+ }
24008
+ if (precision === 0) {
24009
+ return numberWithoutDecimal;
24010
+ }
24011
+ return "".concat(numberWithoutDecimal).concat(separatorStr).concat(decimalStr.padEnd(precision, "0").slice(0, precision));
24012
+ }
24013
+ if (precisionDecimalStr === ".0") {
24014
+ return numberWithoutDecimal;
24015
+ }
24016
+ return "".concat(numberWithoutDecimal).concat(precisionDecimalStr);
24017
+ }
23627
24018
  const ThumbIcon = (props) => {
23628
24019
  return withNativeProps(props, React__default.default.createElement("svg", {
23629
24020
  viewBox: "0 0 24 24",
@@ -23660,7 +24051,7 @@ Please add \`${key}Action\` when creating your handler.`);
23660
24051
  residentPopover,
23661
24052
  onDrag
23662
24053
  } = props;
23663
- const prevValue = React$1.useRef(value);
24054
+ const prevValue = React$4.useRef(value);
23664
24055
  const {
23665
24056
  locale
23666
24057
  } = useConfig();
@@ -23670,7 +24061,7 @@ Please add \`${key}Action\` when creating your handler.`);
23670
24061
  right: "auto"
23671
24062
  };
23672
24063
  };
23673
- const [dragging, setDragging] = React$1.useState(false);
24064
+ const [dragging, setDragging] = React$4.useState(false);
23674
24065
  const bind = useDrag((state) => {
23675
24066
  var _a;
23676
24067
  if (disabled)
@@ -23716,514 +24107,6 @@ Please add \`${key}Action\` when creating your handler.`);
23716
24107
  }, thumbElement) : thumbElement);
23717
24108
  };
23718
24109
  const Thumb$1 = Thumb;
23719
- var DP = 20, RM = 1, MAX_DP = 1e6, MAX_POWER = 1e6, NE = -7, PE = 21, STRICT = false, NAME = "[big.js] ", INVALID = NAME + "Invalid ", INVALID_DP = INVALID + "decimal places", INVALID_RM = INVALID + "rounding mode", DIV_BY_ZERO = NAME + "Division by zero", P = {}, UNDEFINED = void 0, NUMERIC = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
23720
- function _Big_() {
23721
- function Big2(n) {
23722
- var x = this;
23723
- if (!(x instanceof Big2))
23724
- return n === UNDEFINED ? _Big_() : new Big2(n);
23725
- if (n instanceof Big2) {
23726
- x.s = n.s;
23727
- x.e = n.e;
23728
- x.c = n.c.slice();
23729
- } else {
23730
- if (typeof n !== "string") {
23731
- if (Big2.strict === true && typeof n !== "bigint") {
23732
- throw TypeError(INVALID + "value");
23733
- }
23734
- n = n === 0 && 1 / n < 0 ? "-0" : String(n);
23735
- }
23736
- parse(x, n);
23737
- }
23738
- x.constructor = Big2;
23739
- }
23740
- Big2.prototype = P;
23741
- Big2.DP = DP;
23742
- Big2.RM = RM;
23743
- Big2.NE = NE;
23744
- Big2.PE = PE;
23745
- Big2.strict = STRICT;
23746
- Big2.roundDown = 0;
23747
- Big2.roundHalfUp = 1;
23748
- Big2.roundHalfEven = 2;
23749
- Big2.roundUp = 3;
23750
- return Big2;
23751
- }
23752
- function parse(x, n) {
23753
- var e, i, nl;
23754
- if (!NUMERIC.test(n)) {
23755
- throw Error(INVALID + "number");
23756
- }
23757
- x.s = n.charAt(0) == "-" ? (n = n.slice(1), -1) : 1;
23758
- if ((e = n.indexOf(".")) > -1)
23759
- n = n.replace(".", "");
23760
- if ((i = n.search(/e/i)) > 0) {
23761
- if (e < 0)
23762
- e = i;
23763
- e += +n.slice(i + 1);
23764
- n = n.substring(0, i);
23765
- } else if (e < 0) {
23766
- e = n.length;
23767
- }
23768
- nl = n.length;
23769
- for (i = 0; i < nl && n.charAt(i) == "0"; )
23770
- ++i;
23771
- if (i == nl) {
23772
- x.c = [x.e = 0];
23773
- } else {
23774
- for (; nl > 0 && n.charAt(--nl) == "0"; )
23775
- ;
23776
- x.e = e - i - 1;
23777
- x.c = [];
23778
- for (e = 0; i <= nl; )
23779
- x.c[e++] = +n.charAt(i++);
23780
- }
23781
- return x;
23782
- }
23783
- function round(x, sd, rm, more) {
23784
- var xc = x.c;
23785
- if (rm === UNDEFINED)
23786
- rm = x.constructor.RM;
23787
- if (rm !== 0 && rm !== 1 && rm !== 2 && rm !== 3) {
23788
- throw Error(INVALID_RM);
23789
- }
23790
- if (sd < 1) {
23791
- more = rm === 3 && (more || !!xc[0]) || sd === 0 && (rm === 1 && xc[0] >= 5 || rm === 2 && (xc[0] > 5 || xc[0] === 5 && (more || xc[1] !== UNDEFINED)));
23792
- xc.length = 1;
23793
- if (more) {
23794
- x.e = x.e - sd + 1;
23795
- xc[0] = 1;
23796
- } else {
23797
- xc[0] = x.e = 0;
23798
- }
23799
- } else if (sd < xc.length) {
23800
- more = rm === 1 && xc[sd] >= 5 || rm === 2 && (xc[sd] > 5 || xc[sd] === 5 && (more || xc[sd + 1] !== UNDEFINED || xc[sd - 1] & 1)) || rm === 3 && (more || !!xc[0]);
23801
- xc.length = sd;
23802
- if (more) {
23803
- for (; ++xc[--sd] > 9; ) {
23804
- xc[sd] = 0;
23805
- if (sd === 0) {
23806
- ++x.e;
23807
- xc.unshift(1);
23808
- break;
23809
- }
23810
- }
23811
- }
23812
- for (sd = xc.length; !xc[--sd]; )
23813
- xc.pop();
23814
- }
23815
- return x;
23816
- }
23817
- function stringify(x, doExponential, isNonzero) {
23818
- var e = x.e, s = x.c.join(""), n = s.length;
23819
- if (doExponential) {
23820
- s = s.charAt(0) + (n > 1 ? "." + s.slice(1) : "") + (e < 0 ? "e" : "e+") + e;
23821
- } else if (e < 0) {
23822
- for (; ++e; )
23823
- s = "0" + s;
23824
- s = "0." + s;
23825
- } else if (e > 0) {
23826
- if (++e > n) {
23827
- for (e -= n; e--; )
23828
- s += "0";
23829
- } else if (e < n) {
23830
- s = s.slice(0, e) + "." + s.slice(e);
23831
- }
23832
- } else if (n > 1) {
23833
- s = s.charAt(0) + "." + s.slice(1);
23834
- }
23835
- return x.s < 0 && isNonzero ? "-" + s : s;
23836
- }
23837
- P.abs = function() {
23838
- var x = new this.constructor(this);
23839
- x.s = 1;
23840
- return x;
23841
- };
23842
- P.cmp = function(y) {
23843
- var isneg, x = this, xc = x.c, yc = (y = new x.constructor(y)).c, i = x.s, j = y.s, k = x.e, l = y.e;
23844
- if (!xc[0] || !yc[0])
23845
- return !xc[0] ? !yc[0] ? 0 : -j : i;
23846
- if (i != j)
23847
- return i;
23848
- isneg = i < 0;
23849
- if (k != l)
23850
- return k > l ^ isneg ? 1 : -1;
23851
- j = (k = xc.length) < (l = yc.length) ? k : l;
23852
- for (i = -1; ++i < j; ) {
23853
- if (xc[i] != yc[i])
23854
- return xc[i] > yc[i] ^ isneg ? 1 : -1;
23855
- }
23856
- return k == l ? 0 : k > l ^ isneg ? 1 : -1;
23857
- };
23858
- P.div = function(y) {
23859
- var x = this, Big2 = x.constructor, a = x.c, b = (y = new Big2(y)).c, k = x.s == y.s ? 1 : -1, dp = Big2.DP;
23860
- if (dp !== ~~dp || dp < 0 || dp > MAX_DP) {
23861
- throw Error(INVALID_DP);
23862
- }
23863
- if (!b[0]) {
23864
- throw Error(DIV_BY_ZERO);
23865
- }
23866
- if (!a[0]) {
23867
- y.s = k;
23868
- y.c = [y.e = 0];
23869
- return y;
23870
- }
23871
- var bl, bt, n, cmp, ri, bz = b.slice(), ai = bl = b.length, al = a.length, r = a.slice(0, bl), rl = r.length, q = y, qc = q.c = [], qi = 0, p = dp + (q.e = x.e - y.e) + 1;
23872
- q.s = k;
23873
- k = p < 0 ? 0 : p;
23874
- bz.unshift(0);
23875
- for (; rl++ < bl; )
23876
- r.push(0);
23877
- do {
23878
- for (n = 0; n < 10; n++) {
23879
- if (bl != (rl = r.length)) {
23880
- cmp = bl > rl ? 1 : -1;
23881
- } else {
23882
- for (ri = -1, cmp = 0; ++ri < bl; ) {
23883
- if (b[ri] != r[ri]) {
23884
- cmp = b[ri] > r[ri] ? 1 : -1;
23885
- break;
23886
- }
23887
- }
23888
- }
23889
- if (cmp < 0) {
23890
- for (bt = rl == bl ? b : bz; rl; ) {
23891
- if (r[--rl] < bt[rl]) {
23892
- ri = rl;
23893
- for (; ri && !r[--ri]; )
23894
- r[ri] = 9;
23895
- --r[ri];
23896
- r[rl] += 10;
23897
- }
23898
- r[rl] -= bt[rl];
23899
- }
23900
- for (; !r[0]; )
23901
- r.shift();
23902
- } else {
23903
- break;
23904
- }
23905
- }
23906
- qc[qi++] = cmp ? n : ++n;
23907
- if (r[0] && cmp)
23908
- r[rl] = a[ai] || 0;
23909
- else
23910
- r = [a[ai]];
23911
- } while ((ai++ < al || r[0] !== UNDEFINED) && k--);
23912
- if (!qc[0] && qi != 1) {
23913
- qc.shift();
23914
- q.e--;
23915
- p--;
23916
- }
23917
- if (qi > p)
23918
- round(q, p, Big2.RM, r[0] !== UNDEFINED);
23919
- return q;
23920
- };
23921
- P.eq = function(y) {
23922
- return this.cmp(y) === 0;
23923
- };
23924
- P.gt = function(y) {
23925
- return this.cmp(y) > 0;
23926
- };
23927
- P.gte = function(y) {
23928
- return this.cmp(y) > -1;
23929
- };
23930
- P.lt = function(y) {
23931
- return this.cmp(y) < 0;
23932
- };
23933
- P.lte = function(y) {
23934
- return this.cmp(y) < 1;
23935
- };
23936
- P.minus = P.sub = function(y) {
23937
- var i, j, t, xlty, x = this, Big2 = x.constructor, a = x.s, b = (y = new Big2(y)).s;
23938
- if (a != b) {
23939
- y.s = -b;
23940
- return x.plus(y);
23941
- }
23942
- var xc = x.c.slice(), xe = x.e, yc = y.c, ye = y.e;
23943
- if (!xc[0] || !yc[0]) {
23944
- if (yc[0]) {
23945
- y.s = -b;
23946
- } else if (xc[0]) {
23947
- y = new Big2(x);
23948
- } else {
23949
- y.s = 1;
23950
- }
23951
- return y;
23952
- }
23953
- if (a = xe - ye) {
23954
- if (xlty = a < 0) {
23955
- a = -a;
23956
- t = xc;
23957
- } else {
23958
- ye = xe;
23959
- t = yc;
23960
- }
23961
- t.reverse();
23962
- for (b = a; b--; )
23963
- t.push(0);
23964
- t.reverse();
23965
- } else {
23966
- j = ((xlty = xc.length < yc.length) ? xc : yc).length;
23967
- for (a = b = 0; b < j; b++) {
23968
- if (xc[b] != yc[b]) {
23969
- xlty = xc[b] < yc[b];
23970
- break;
23971
- }
23972
- }
23973
- }
23974
- if (xlty) {
23975
- t = xc;
23976
- xc = yc;
23977
- yc = t;
23978
- y.s = -y.s;
23979
- }
23980
- if ((b = (j = yc.length) - (i = xc.length)) > 0)
23981
- for (; b--; )
23982
- xc[i++] = 0;
23983
- for (b = i; j > a; ) {
23984
- if (xc[--j] < yc[j]) {
23985
- for (i = j; i && !xc[--i]; )
23986
- xc[i] = 9;
23987
- --xc[i];
23988
- xc[j] += 10;
23989
- }
23990
- xc[j] -= yc[j];
23991
- }
23992
- for (; xc[--b] === 0; )
23993
- xc.pop();
23994
- for (; xc[0] === 0; ) {
23995
- xc.shift();
23996
- --ye;
23997
- }
23998
- if (!xc[0]) {
23999
- y.s = 1;
24000
- xc = [ye = 0];
24001
- }
24002
- y.c = xc;
24003
- y.e = ye;
24004
- return y;
24005
- };
24006
- P.mod = function(y) {
24007
- var ygtx, x = this, Big2 = x.constructor, a = x.s, b = (y = new Big2(y)).s;
24008
- if (!y.c[0]) {
24009
- throw Error(DIV_BY_ZERO);
24010
- }
24011
- x.s = y.s = 1;
24012
- ygtx = y.cmp(x) == 1;
24013
- x.s = a;
24014
- y.s = b;
24015
- if (ygtx)
24016
- return new Big2(x);
24017
- a = Big2.DP;
24018
- b = Big2.RM;
24019
- Big2.DP = Big2.RM = 0;
24020
- x = x.div(y);
24021
- Big2.DP = a;
24022
- Big2.RM = b;
24023
- return this.minus(x.times(y));
24024
- };
24025
- P.neg = function() {
24026
- var x = new this.constructor(this);
24027
- x.s = -x.s;
24028
- return x;
24029
- };
24030
- P.plus = P.add = function(y) {
24031
- var e, k, t, x = this, Big2 = x.constructor;
24032
- y = new Big2(y);
24033
- if (x.s != y.s) {
24034
- y.s = -y.s;
24035
- return x.minus(y);
24036
- }
24037
- var xe = x.e, xc = x.c, ye = y.e, yc = y.c;
24038
- if (!xc[0] || !yc[0]) {
24039
- if (!yc[0]) {
24040
- if (xc[0]) {
24041
- y = new Big2(x);
24042
- } else {
24043
- y.s = x.s;
24044
- }
24045
- }
24046
- return y;
24047
- }
24048
- xc = xc.slice();
24049
- if (e = xe - ye) {
24050
- if (e > 0) {
24051
- ye = xe;
24052
- t = yc;
24053
- } else {
24054
- e = -e;
24055
- t = xc;
24056
- }
24057
- t.reverse();
24058
- for (; e--; )
24059
- t.push(0);
24060
- t.reverse();
24061
- }
24062
- if (xc.length - yc.length < 0) {
24063
- t = yc;
24064
- yc = xc;
24065
- xc = t;
24066
- }
24067
- e = yc.length;
24068
- for (k = 0; e; xc[e] %= 10)
24069
- k = (xc[--e] = xc[e] + yc[e] + k) / 10 | 0;
24070
- if (k) {
24071
- xc.unshift(k);
24072
- ++ye;
24073
- }
24074
- for (e = xc.length; xc[--e] === 0; )
24075
- xc.pop();
24076
- y.c = xc;
24077
- y.e = ye;
24078
- return y;
24079
- };
24080
- P.pow = function(n) {
24081
- var x = this, one = new x.constructor("1"), y = one, isneg = n < 0;
24082
- if (n !== ~~n || n < -MAX_POWER || n > MAX_POWER) {
24083
- throw Error(INVALID + "exponent");
24084
- }
24085
- if (isneg)
24086
- n = -n;
24087
- for (; ; ) {
24088
- if (n & 1)
24089
- y = y.times(x);
24090
- n >>= 1;
24091
- if (!n)
24092
- break;
24093
- x = x.times(x);
24094
- }
24095
- return isneg ? one.div(y) : y;
24096
- };
24097
- P.prec = function(sd, rm) {
24098
- if (sd !== ~~sd || sd < 1 || sd > MAX_DP) {
24099
- throw Error(INVALID + "precision");
24100
- }
24101
- return round(new this.constructor(this), sd, rm);
24102
- };
24103
- P.round = function(dp, rm) {
24104
- if (dp === UNDEFINED)
24105
- dp = 0;
24106
- else if (dp !== ~~dp || dp < -MAX_DP || dp > MAX_DP) {
24107
- throw Error(INVALID_DP);
24108
- }
24109
- return round(new this.constructor(this), dp + this.e + 1, rm);
24110
- };
24111
- P.sqrt = function() {
24112
- var r, c, t, x = this, Big2 = x.constructor, s = x.s, e = x.e, half = new Big2("0.5");
24113
- if (!x.c[0])
24114
- return new Big2(x);
24115
- if (s < 0) {
24116
- throw Error(NAME + "No square root");
24117
- }
24118
- s = Math.sqrt(x + "");
24119
- if (s === 0 || s === 1 / 0) {
24120
- c = x.c.join("");
24121
- if (!(c.length + e & 1))
24122
- c += "0";
24123
- s = Math.sqrt(c);
24124
- e = ((e + 1) / 2 | 0) - (e < 0 || e & 1);
24125
- r = new Big2((s == 1 / 0 ? "5e" : (s = s.toExponential()).slice(0, s.indexOf("e") + 1)) + e);
24126
- } else {
24127
- r = new Big2(s + "");
24128
- }
24129
- e = r.e + (Big2.DP += 4);
24130
- do {
24131
- t = r;
24132
- r = half.times(t.plus(x.div(t)));
24133
- } while (t.c.slice(0, e).join("") !== r.c.slice(0, e).join(""));
24134
- return round(r, (Big2.DP -= 4) + r.e + 1, Big2.RM);
24135
- };
24136
- P.times = P.mul = function(y) {
24137
- var c, x = this, Big2 = x.constructor, xc = x.c, yc = (y = new Big2(y)).c, a = xc.length, b = yc.length, i = x.e, j = y.e;
24138
- y.s = x.s == y.s ? 1 : -1;
24139
- if (!xc[0] || !yc[0]) {
24140
- y.c = [y.e = 0];
24141
- return y;
24142
- }
24143
- y.e = i + j;
24144
- if (a < b) {
24145
- c = xc;
24146
- xc = yc;
24147
- yc = c;
24148
- j = a;
24149
- a = b;
24150
- b = j;
24151
- }
24152
- for (c = new Array(j = a + b); j--; )
24153
- c[j] = 0;
24154
- for (i = b; i--; ) {
24155
- b = 0;
24156
- for (j = a + i; j > i; ) {
24157
- b = c[j] + yc[i] * xc[j - i - 1] + b;
24158
- c[j--] = b % 10;
24159
- b = b / 10 | 0;
24160
- }
24161
- c[j] = b;
24162
- }
24163
- if (b)
24164
- ++y.e;
24165
- else
24166
- c.shift();
24167
- for (i = c.length; !c[--i]; )
24168
- c.pop();
24169
- y.c = c;
24170
- return y;
24171
- };
24172
- P.toExponential = function(dp, rm) {
24173
- var x = this, n = x.c[0];
24174
- if (dp !== UNDEFINED) {
24175
- if (dp !== ~~dp || dp < 0 || dp > MAX_DP) {
24176
- throw Error(INVALID_DP);
24177
- }
24178
- x = round(new x.constructor(x), ++dp, rm);
24179
- for (; x.c.length < dp; )
24180
- x.c.push(0);
24181
- }
24182
- return stringify(x, true, !!n);
24183
- };
24184
- P.toFixed = function(dp, rm) {
24185
- var x = this, n = x.c[0];
24186
- if (dp !== UNDEFINED) {
24187
- if (dp !== ~~dp || dp < 0 || dp > MAX_DP) {
24188
- throw Error(INVALID_DP);
24189
- }
24190
- x = round(new x.constructor(x), dp + x.e + 1, rm);
24191
- for (dp = dp + x.e + 1; x.c.length < dp; )
24192
- x.c.push(0);
24193
- }
24194
- return stringify(x, false, !!n);
24195
- };
24196
- P[Symbol.for("nodejs.util.inspect.custom")] = P.toJSON = P.toString = function() {
24197
- var x = this, Big2 = x.constructor;
24198
- return stringify(x, x.e <= Big2.NE || x.e >= Big2.PE, !!x.c[0]);
24199
- };
24200
- P.toNumber = function() {
24201
- var n = Number(stringify(this, true, true));
24202
- if (this.constructor.strict === true && !this.eq(n.toString())) {
24203
- throw Error(NAME + "Imprecise conversion");
24204
- }
24205
- return n;
24206
- };
24207
- P.toPrecision = function(sd, rm) {
24208
- var x = this, Big2 = x.constructor, n = x.c[0];
24209
- if (sd !== UNDEFINED) {
24210
- if (sd !== ~~sd || sd < 1 || sd > MAX_DP) {
24211
- throw Error(INVALID + "precision");
24212
- }
24213
- x = round(new Big2(x), sd, rm);
24214
- for (; x.c.length < sd; )
24215
- x.c.push(0);
24216
- }
24217
- return stringify(x, sd <= x.e || x.e <= Big2.NE || x.e >= Big2.PE, !!n);
24218
- };
24219
- P.valueOf = function() {
24220
- var x = this, Big2 = x.constructor;
24221
- if (Big2.strict === true) {
24222
- throw Error(NAME + "valueOf disallowed");
24223
- }
24224
- return stringify(x, x.e <= Big2.NE || x.e >= Big2.PE, true);
24225
- };
24226
- var Big = _Big_();
24227
24110
  const classPrefix$f = `adm-slider`;
24228
24111
  const defaultProps$e = {
24229
24112
  min: 0,
@@ -24253,9 +24136,14 @@ Please add \`${key}Action\` when creating your handler.`);
24253
24136
  function convertValue(value) {
24254
24137
  return props.range ? value : [props.min, value];
24255
24138
  }
24139
+ function alignValue(value, decimalLen) {
24140
+ const decimal = getMiniDecimal(value);
24141
+ const fixedStr = toFixed(decimal.toString(), ".", decimalLen);
24142
+ return getMiniDecimal(fixedStr).toNumber();
24143
+ }
24256
24144
  function reverseValue(value) {
24257
24145
  const mergedDecimalLen = Math.max(getDecimalLen(step), getDecimalLen(value[0]), getDecimalLen(value[1]));
24258
- return props.range ? value.map((v) => Big(Big(v).toFixed(mergedDecimalLen)).toNumber()) : Big(Big(value[1]).toFixed(mergedDecimalLen)).toNumber();
24146
+ return props.range ? value.map((v) => alignValue(v, mergedDecimalLen)) : alignValue(value[1], mergedDecimalLen);
24259
24147
  }
24260
24148
  function getDecimalLen(n) {
24261
24149
  return (`${n}`.split(".")[1] || "").length;
@@ -24282,15 +24170,15 @@ Please add \`${key}Action\` when creating your handler.`);
24282
24170
  return;
24283
24171
  setRawValue(reverseValue(next));
24284
24172
  }
24285
- const trackRef = React$1.useRef(null);
24173
+ const trackRef = React$4.useRef(null);
24286
24174
  const fillSize = `${100 * (sliderValue[1] - sliderValue[0]) / (max2 - min2)}%`;
24287
24175
  const fillStart = `${100 * (sliderValue[0] - min2) / (max2 - min2)}%`;
24288
- const pointList = React$1.useMemo(() => {
24176
+ const pointList = React$4.useMemo(() => {
24289
24177
  if (marks) {
24290
24178
  return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
24291
24179
  } else {
24292
24180
  const points = [];
24293
- for (let i = Big(min2); i.lte(max2); i = i.plus(step)) {
24181
+ for (let i = getMiniDecimal(min2); i.lessEquals(getMiniDecimal(max2)); i = i.add(step)) {
24294
24182
  points.push(i.toNumber());
24295
24183
  }
24296
24184
  return points;
@@ -24308,7 +24196,7 @@ Please add \`${key}Action\` when creating your handler.`);
24308
24196
  }
24309
24197
  return value;
24310
24198
  }
24311
- const dragLockRef = React$1.useRef(0);
24199
+ const dragLockRef = React$4.useRef(0);
24312
24200
  const onTrackClick = (event) => {
24313
24201
  if (dragLockRef.current > 0)
24314
24202
  return;
@@ -24334,7 +24222,7 @@ Please add \`${key}Action\` when creating your handler.`);
24334
24222
  setSliderValue(nextSliderValue);
24335
24223
  onAfterChange(nextSliderValue);
24336
24224
  };
24337
- const valueBeforeDragRef = React$1.useRef();
24225
+ const valueBeforeDragRef = React$4.useRef();
24338
24226
  const renderThumb = (index2) => {
24339
24227
  return React__default.default.createElement(Thumb$1, {
24340
24228
  key: index2,
@@ -24401,110 +24289,356 @@ Please add \`${key}Action\` when creating your handler.`);
24401
24289
  };
24402
24290
  const Slider = Slider$1;
24403
24291
  const stepper = "";
24292
+ var useMergedState$1 = {};
24293
+ var slicedToArray = { exports: {} };
24294
+ var arrayWithHoles = { exports: {} };
24295
+ (function(module2) {
24296
+ function _arrayWithHoles2(arr) {
24297
+ if (Array.isArray(arr))
24298
+ return arr;
24299
+ }
24300
+ module2.exports = _arrayWithHoles2, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
24301
+ })(arrayWithHoles);
24302
+ var iterableToArrayLimit = { exports: {} };
24303
+ (function(module2) {
24304
+ function _iterableToArrayLimit2(arr, i) {
24305
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
24306
+ if (null != _i) {
24307
+ var _s, _e, _x, _r, _arr = [], _n = true, _d = false;
24308
+ try {
24309
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
24310
+ if (Object(_i) !== _i)
24311
+ return;
24312
+ _n = false;
24313
+ } else
24314
+ for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = true) {
24315
+ ;
24316
+ }
24317
+ } catch (err) {
24318
+ _d = true, _e = err;
24319
+ } finally {
24320
+ try {
24321
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r))
24322
+ return;
24323
+ } finally {
24324
+ if (_d)
24325
+ throw _e;
24326
+ }
24327
+ }
24328
+ return _arr;
24329
+ }
24330
+ }
24331
+ module2.exports = _iterableToArrayLimit2, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
24332
+ })(iterableToArrayLimit);
24333
+ var unsupportedIterableToArray = { exports: {} };
24334
+ var arrayLikeToArray = { exports: {} };
24335
+ (function(module2) {
24336
+ function _arrayLikeToArray2(arr, len) {
24337
+ if (len == null || len > arr.length)
24338
+ len = arr.length;
24339
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
24340
+ arr2[i] = arr[i];
24341
+ }
24342
+ return arr2;
24343
+ }
24344
+ module2.exports = _arrayLikeToArray2, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
24345
+ })(arrayLikeToArray);
24346
+ (function(module2) {
24347
+ var arrayLikeToArray$1 = arrayLikeToArray.exports;
24348
+ function _unsupportedIterableToArray2(o, minLen) {
24349
+ if (!o)
24350
+ return;
24351
+ if (typeof o === "string")
24352
+ return arrayLikeToArray$1(o, minLen);
24353
+ var n = Object.prototype.toString.call(o).slice(8, -1);
24354
+ if (n === "Object" && o.constructor)
24355
+ n = o.constructor.name;
24356
+ if (n === "Map" || n === "Set")
24357
+ return Array.from(o);
24358
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
24359
+ return arrayLikeToArray$1(o, minLen);
24360
+ }
24361
+ module2.exports = _unsupportedIterableToArray2, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
24362
+ })(unsupportedIterableToArray);
24363
+ var nonIterableRest = { exports: {} };
24364
+ (function(module2) {
24365
+ function _nonIterableRest2() {
24366
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
24367
+ }
24368
+ module2.exports = _nonIterableRest2, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
24369
+ })(nonIterableRest);
24370
+ (function(module2) {
24371
+ var arrayWithHoles$1 = arrayWithHoles.exports;
24372
+ var iterableToArrayLimit$1 = iterableToArrayLimit.exports;
24373
+ var unsupportedIterableToArray$1 = unsupportedIterableToArray.exports;
24374
+ var nonIterableRest$1 = nonIterableRest.exports;
24375
+ function _slicedToArray3(arr, i) {
24376
+ return arrayWithHoles$1(arr) || iterableToArrayLimit$1(arr, i) || unsupportedIterableToArray$1(arr, i) || nonIterableRest$1();
24377
+ }
24378
+ module2.exports = _slicedToArray3, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
24379
+ })(slicedToArray);
24380
+ var useEvent$1 = {};
24381
+ var _interopRequireWildcard$2 = interopRequireWildcard.exports.default;
24382
+ Object.defineProperty(useEvent$1, "__esModule", {
24383
+ value: true
24384
+ });
24385
+ useEvent$1.default = useEvent;
24386
+ var React$2 = _interopRequireWildcard$2(React__default.default);
24387
+ function useEvent(callback) {
24388
+ var fnRef = React$2.useRef();
24389
+ fnRef.current = callback;
24390
+ var memoFn = React$2.useCallback(function() {
24391
+ var _fnRef$current;
24392
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
24393
+ args[_key] = arguments[_key];
24394
+ }
24395
+ return (_fnRef$current = fnRef.current) === null || _fnRef$current === void 0 ? void 0 : _fnRef$current.call.apply(_fnRef$current, [fnRef].concat(args));
24396
+ }, []);
24397
+ return memoFn;
24398
+ }
24399
+ var useLayoutEffect$1 = {};
24400
+ var canUseDom$1 = {};
24401
+ Object.defineProperty(canUseDom$1, "__esModule", {
24402
+ value: true
24403
+ });
24404
+ canUseDom$1.default = canUseDom;
24405
+ function canUseDom() {
24406
+ return !!(typeof window !== "undefined" && window.document && window.document.createElement);
24407
+ }
24408
+ var _interopRequireDefault$2 = interopRequireDefault.exports.default;
24409
+ var _interopRequireWildcard$1 = interopRequireWildcard.exports.default;
24410
+ Object.defineProperty(useLayoutEffect$1, "__esModule", {
24411
+ value: true
24412
+ });
24413
+ useLayoutEffect$1.useLayoutUpdateEffect = useLayoutEffect$1.default = void 0;
24414
+ var React$1 = _interopRequireWildcard$1(React__default.default);
24415
+ var _canUseDom = _interopRequireDefault$2(canUseDom$1);
24416
+ var useLayoutEffect = (0, _canUseDom.default)() ? React$1.useLayoutEffect : React$1.useEffect;
24417
+ var _default$1 = useLayoutEffect;
24418
+ useLayoutEffect$1.default = _default$1;
24419
+ var useLayoutUpdateEffect = function useLayoutUpdateEffect2(callback, deps) {
24420
+ var firstMountRef = React$1.useRef(true);
24421
+ useLayoutEffect(function() {
24422
+ if (!firstMountRef.current) {
24423
+ return callback();
24424
+ }
24425
+ }, deps);
24426
+ useLayoutEffect(function() {
24427
+ firstMountRef.current = false;
24428
+ return function() {
24429
+ firstMountRef.current = true;
24430
+ };
24431
+ }, []);
24432
+ };
24433
+ useLayoutEffect$1.useLayoutUpdateEffect = useLayoutUpdateEffect;
24434
+ var useState = {};
24435
+ var _interopRequireWildcard = interopRequireWildcard.exports.default;
24436
+ var _interopRequireDefault$1 = interopRequireDefault.exports.default;
24437
+ Object.defineProperty(useState, "__esModule", {
24438
+ value: true
24439
+ });
24440
+ useState.default = useSafeState;
24441
+ var _slicedToArray2$1 = _interopRequireDefault$1(slicedToArray.exports);
24442
+ var React = _interopRequireWildcard(React__default.default);
24443
+ function useSafeState(defaultValue) {
24444
+ var destroyRef = React.useRef(false);
24445
+ var _React$useState = React.useState(defaultValue), _React$useState2 = (0, _slicedToArray2$1.default)(_React$useState, 2), value = _React$useState2[0], setValue2 = _React$useState2[1];
24446
+ React.useEffect(function() {
24447
+ destroyRef.current = false;
24448
+ return function() {
24449
+ destroyRef.current = true;
24450
+ };
24451
+ }, []);
24452
+ function safeSetState(updater, ignoreDestroy) {
24453
+ if (ignoreDestroy && destroyRef.current) {
24454
+ return;
24455
+ }
24456
+ setValue2(updater);
24457
+ }
24458
+ return [value, safeSetState];
24459
+ }
24460
+ var _interopRequireDefault = interopRequireDefault.exports.default;
24461
+ Object.defineProperty(useMergedState$1, "__esModule", {
24462
+ value: true
24463
+ });
24464
+ var _default = useMergedState$1.default = useMergedState;
24465
+ var _slicedToArray2 = _interopRequireDefault(slicedToArray.exports);
24466
+ var _useEvent = _interopRequireDefault(useEvent$1);
24467
+ var _useLayoutEffect = useLayoutEffect$1;
24468
+ var _useState5 = _interopRequireDefault(useState);
24469
+ function hasValue(value) {
24470
+ return value !== void 0;
24471
+ }
24472
+ function useMergedState(defaultStateValue, option) {
24473
+ var _ref = option || {}, defaultValue = _ref.defaultValue, value = _ref.value, onChange = _ref.onChange, postState = _ref.postState;
24474
+ var _useState = (0, _useState5.default)(function() {
24475
+ if (hasValue(value)) {
24476
+ return value;
24477
+ } else if (hasValue(defaultValue)) {
24478
+ return typeof defaultValue === "function" ? defaultValue() : defaultValue;
24479
+ } else {
24480
+ return typeof defaultStateValue === "function" ? defaultStateValue() : defaultStateValue;
24481
+ }
24482
+ }), _useState2 = (0, _slicedToArray2.default)(_useState, 2), innerValue = _useState2[0], setInnerValue = _useState2[1];
24483
+ var mergedValue = value !== void 0 ? value : innerValue;
24484
+ var postMergedValue = postState ? postState(mergedValue) : mergedValue;
24485
+ var onChangeFn = (0, _useEvent.default)(onChange);
24486
+ var _useState3 = (0, _useState5.default)([mergedValue]), _useState4 = (0, _slicedToArray2.default)(_useState3, 2), prevValue = _useState4[0], setPrevValue = _useState4[1];
24487
+ (0, _useLayoutEffect.useLayoutUpdateEffect)(function() {
24488
+ var prev = prevValue[0];
24489
+ if (innerValue !== prev) {
24490
+ onChangeFn(innerValue, prev);
24491
+ }
24492
+ }, [prevValue]);
24493
+ (0, _useLayoutEffect.useLayoutUpdateEffect)(function() {
24494
+ if (!hasValue(value)) {
24495
+ setInnerValue(value);
24496
+ }
24497
+ }, [value]);
24498
+ var triggerChange = (0, _useEvent.default)(function(updater, ignoreDestroy) {
24499
+ setInnerValue(updater, ignoreDestroy);
24500
+ setPrevValue([mergedValue], ignoreDestroy);
24501
+ });
24502
+ return [postMergedValue, triggerChange];
24503
+ }
24404
24504
  const classPrefix$e = `adm-stepper`;
24405
24505
  const defaultProps$d = {
24406
- defaultValue: 0,
24407
24506
  step: 1,
24408
24507
  disabled: false,
24409
24508
  allowEmpty: false
24410
24509
  };
24411
- const Stepper$1 = (p) => {
24510
+ function Stepper(p) {
24412
24511
  const props = mergeProps(defaultProps$d, p);
24413
24512
  const {
24513
+ defaultValue = 0,
24514
+ value,
24515
+ onChange,
24414
24516
  disabled,
24415
24517
  step,
24416
24518
  max: max2,
24417
24519
  min: min2,
24418
24520
  inputReadOnly,
24419
24521
  digits,
24522
+ stringMode,
24420
24523
  formatter,
24421
24524
  parser
24422
24525
  } = props;
24423
24526
  const {
24424
24527
  locale
24425
24528
  } = useConfig();
24529
+ const fixedValue = (value2) => {
24530
+ const fixedValue2 = digits !== void 0 ? toFixed(value2.toString(), ".", digits) : value2;
24531
+ return fixedValue2.toString();
24532
+ };
24533
+ const getValueAsType = (value2) => stringMode ? value2.toString() : value2.toNumber();
24426
24534
  const parseValue = (text) => {
24427
24535
  if (text === "")
24428
24536
  return null;
24429
- return parser ? parser(text) : parseFloat(text);
24537
+ if (parser) {
24538
+ return String(parser(text));
24539
+ }
24540
+ const decimal = getMiniDecimal(text);
24541
+ return decimal.isInvalidate() ? null : decimal.toString();
24430
24542
  };
24431
24543
  const formatValue = (value2) => {
24432
24544
  if (value2 === null)
24433
24545
  return "";
24434
24546
  if (formatter) {
24435
24547
  return formatter(value2);
24436
- } else if (digits !== void 0) {
24437
- return value2.toFixed(digits);
24438
24548
  } else {
24439
- return value2.toString();
24549
+ return fixedValue(value2);
24440
24550
  }
24441
24551
  };
24442
- const [value, setValue2] = usePropsValue(props);
24443
- const [inputValue, setInputValue] = React$1.useState(() => formatValue(value));
24444
- function setValueWithCheck(v) {
24445
- if (isNaN(v))
24552
+ const [mergedValue, setMergedValue] = _default(defaultValue, {
24553
+ value,
24554
+ onChange: (nextValue) => {
24555
+ onChange === null || onChange === void 0 ? void 0 : onChange(nextValue);
24556
+ }
24557
+ });
24558
+ const [inputValue, setInputValue] = React$4.useState(() => formatValue(mergedValue));
24559
+ function setValueWithCheck(nextValue) {
24560
+ if (nextValue.isNaN())
24446
24561
  return;
24447
- let target = bound(v, props.min, props.max);
24562
+ let target = nextValue;
24563
+ if (min2 !== void 0) {
24564
+ const minDecimal = getMiniDecimal(min2);
24565
+ if (target.lessEquals(minDecimal)) {
24566
+ target = minDecimal;
24567
+ }
24568
+ }
24569
+ if (max2 !== void 0) {
24570
+ const maxDecimal = getMiniDecimal(max2);
24571
+ if (maxDecimal.lessEquals(target)) {
24572
+ target = maxDecimal;
24573
+ }
24574
+ }
24448
24575
  if (digits !== void 0) {
24449
- target = parseFloat(target.toFixed(digits));
24576
+ target = getMiniDecimal(fixedValue(getValueAsType(target)));
24450
24577
  }
24451
- setValue2(target);
24578
+ setMergedValue(getValueAsType(target));
24452
24579
  }
24453
24580
  const handleInputChange = (v) => {
24454
24581
  setInputValue(v);
24455
- const value2 = parseValue(v);
24456
- if (value2 === null) {
24582
+ const valueStr = parseValue(v);
24583
+ if (valueStr === null) {
24457
24584
  if (props.allowEmpty) {
24458
- setValue2(null);
24585
+ setMergedValue(null);
24459
24586
  } else {
24460
- setValue2(props.defaultValue);
24587
+ setMergedValue(defaultValue);
24461
24588
  }
24462
24589
  } else {
24463
- setValueWithCheck(value2);
24590
+ setValueWithCheck(getMiniDecimal(valueStr));
24464
24591
  }
24465
24592
  };
24466
- const [focused, setFocused] = React$1.useState(false);
24593
+ const [focused, setFocused] = React$4.useState(false);
24467
24594
  const inputRef = React__default.default.useRef(null);
24468
24595
  function triggerFocus(nextFocus) {
24469
24596
  setFocused(nextFocus);
24470
24597
  if (nextFocus) {
24471
- setInputValue(typeof value === "number" ? String(value) : "");
24598
+ setInputValue(mergedValue !== null && mergedValue !== void 0 ? String(mergedValue) : "");
24472
24599
  }
24473
24600
  }
24474
- React$1.useEffect(() => {
24601
+ React$4.useEffect(() => {
24475
24602
  var _a, _b, _c;
24476
24603
  if (focused) {
24477
24604
  (_c = (_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.select) === null || _c === void 0 ? void 0 : _c.call(_b);
24478
24605
  }
24479
24606
  }, [focused]);
24480
- React$1.useEffect(() => {
24607
+ React$4.useEffect(() => {
24481
24608
  if (!focused) {
24482
- setInputValue(formatValue(value));
24609
+ setInputValue(formatValue(mergedValue));
24610
+ }
24611
+ }, [focused, mergedValue, digits]);
24612
+ const handleOffset = (positive) => {
24613
+ let stepValue = getMiniDecimal(step);
24614
+ if (!positive) {
24615
+ stepValue = stepValue.negate();
24483
24616
  }
24484
- }, [focused, value, digits]);
24617
+ setValueWithCheck(getMiniDecimal(mergedValue !== null && mergedValue !== void 0 ? mergedValue : 0).add(stepValue.toString()));
24618
+ };
24485
24619
  const handleMinus = () => {
24486
- setValueWithCheck(Big(value !== null && value !== void 0 ? value : 0).minus(step).toNumber());
24620
+ handleOffset(false);
24487
24621
  };
24488
24622
  const handlePlus = () => {
24489
- setValueWithCheck(Big(value !== null && value !== void 0 ? value : 0).add(step).toNumber());
24623
+ handleOffset(true);
24490
24624
  };
24491
24625
  const minusDisabled = () => {
24492
24626
  if (disabled)
24493
24627
  return true;
24494
- if (value === null)
24628
+ if (mergedValue === null)
24495
24629
  return false;
24496
24630
  if (min2 !== void 0) {
24497
- return value <= min2;
24631
+ return mergedValue <= min2;
24498
24632
  }
24499
24633
  return false;
24500
24634
  };
24501
24635
  const plusDisabled = () => {
24502
24636
  if (disabled)
24503
24637
  return true;
24504
- if (value === null)
24638
+ if (mergedValue === null)
24505
24639
  return false;
24506
24640
  if (max2 !== void 0) {
24507
- return value >= max2;
24641
+ return mergedValue >= max2;
24508
24642
  }
24509
24643
  return false;
24510
24644
  };
@@ -24543,8 +24677,8 @@ Please add \`${key}Action\` when creating your handler.`);
24543
24677
  readOnly: inputReadOnly,
24544
24678
  role: "spinbutton",
24545
24679
  "aria-valuenow": Number(inputValue),
24546
- "aria-valuemax": max2,
24547
- "aria-valuemin": min2,
24680
+ "aria-valuemax": Number(max2),
24681
+ "aria-valuemin": Number(min2),
24548
24682
  inputMode: "decimal"
24549
24683
  })), React__default.default.createElement(Button, {
24550
24684
  className: `${classPrefix$e}-plus`,
@@ -24555,8 +24689,7 @@ Please add \`${key}Action\` when creating your handler.`);
24555
24689
  color: "primary",
24556
24690
  "aria-label": locale.Stepper.increase
24557
24691
  }, React__default.default.createElement(AddOutline, null))));
24558
- };
24559
- const Stepper = Stepper$1;
24692
+ }
24560
24693
  const steps = "";
24561
24694
  const classPrefix$d = `adm-step`;
24562
24695
  const Step = (props) => {
@@ -24629,11 +24762,11 @@ Please add \`${key}Action\` when creating your handler.`);
24629
24762
  closeOnAction: true,
24630
24763
  stopPropagation: []
24631
24764
  };
24632
- const SwipeAction$1 = React$1.forwardRef((p, ref) => {
24765
+ const SwipeAction$1 = React$4.forwardRef((p, ref) => {
24633
24766
  const props = mergeProps(defaultProps$b, p);
24634
- const rootRef = React$1.useRef(null);
24635
- const leftRef = React$1.useRef(null);
24636
- const rightRef = React$1.useRef(null);
24767
+ const rootRef = React$4.useRef(null);
24768
+ const leftRef = React$4.useRef(null);
24769
+ const rightRef = React$4.useRef(null);
24637
24770
  function getWidth(ref2) {
24638
24771
  const element = ref2.current;
24639
24772
  if (!element)
@@ -24655,8 +24788,8 @@ Please add \`${key}Action\` when creating your handler.`);
24655
24788
  friction: 30
24656
24789
  }
24657
24790
  }), []);
24658
- const draggingRef = React$1.useRef(false);
24659
- const dragCancelRef = React$1.useRef(null);
24791
+ const draggingRef = React$4.useRef(false);
24792
+ const dragCancelRef = React$4.useRef(null);
24660
24793
  function forceCancelDrag() {
24661
24794
  var _a;
24662
24795
  (_a = dragCancelRef.current) === null || _a === void 0 ? void 0 : _a.call(dragCancelRef);
@@ -24723,7 +24856,7 @@ Please add \`${key}Action\` when creating your handler.`);
24723
24856
  });
24724
24857
  forceCancelDrag();
24725
24858
  }
24726
- React$1.useImperativeHandle(ref, () => ({
24859
+ React$4.useImperativeHandle(ref, () => ({
24727
24860
  show: (side = "right") => {
24728
24861
  var _a;
24729
24862
  if (side === "right") {
@@ -24739,7 +24872,7 @@ Please add \`${key}Action\` when creating your handler.`);
24739
24872
  },
24740
24873
  close
24741
24874
  }));
24742
- React$1.useEffect(() => {
24875
+ React$4.useEffect(() => {
24743
24876
  if (!props.closeOnTouchOutside)
24744
24877
  return;
24745
24878
  function handle(e) {
@@ -24828,9 +24961,9 @@ Please add \`${key}Action\` when creating your handler.`);
24828
24961
  }, props.children));
24829
24962
  };
24830
24963
  function useRefState(initialState) {
24831
- const [state, setState] = React$1.useState(initialState);
24832
- const ref = React$1.useRef(state);
24833
- React$1.useEffect(() => {
24964
+ const [state, setState] = React$4.useState(initialState);
24965
+ const ref = React$4.useRef(state);
24966
+ React$4.useEffect(() => {
24834
24967
  ref.current = state;
24835
24968
  }, [state]);
24836
24969
  return [state, setState, ref];
@@ -24849,16 +24982,16 @@ Please add \`${key}Action\` when creating your handler.`);
24849
24982
  rubberband: true
24850
24983
  };
24851
24984
  let currentUid;
24852
- const Swiper = React$1.forwardRef(staged_1((p, ref) => {
24985
+ const Swiper = React$4.forwardRef(staged_1((p, ref) => {
24853
24986
  const props = mergeProps(defaultProps$a, p);
24854
- const [uid] = React$1.useState({});
24987
+ const [uid] = React$4.useState({});
24855
24988
  const isVertical = props.direction === "vertical";
24856
24989
  const slideRatio = props.slideSize / 100;
24857
24990
  const offsetRatio = props.trackOffset / 100;
24858
24991
  const {
24859
24992
  validChildren,
24860
24993
  count
24861
- } = React$1.useMemo(() => {
24994
+ } = React$4.useMemo(() => {
24862
24995
  let count2 = 0;
24863
24996
  const validChildren2 = React__default.default.Children.map(props.children, (child) => {
24864
24997
  if (!React__default.default.isValidElement(child))
@@ -24884,7 +25017,7 @@ Please add \`${key}Action\` when creating your handler.`);
24884
25017
  if (slideRatio * (count - 1) < 1) {
24885
25018
  loop2 = false;
24886
25019
  }
24887
- const trackRef = React$1.useRef(null);
25020
+ const trackRef = React$4.useRef(null);
24888
25021
  function getSlidePixels() {
24889
25022
  const track = trackRef.current;
24890
25023
  if (!track)
@@ -24892,7 +25025,7 @@ Please add \`${key}Action\` when creating your handler.`);
24892
25025
  const trackPixels = isVertical ? track.offsetHeight : track.offsetWidth;
24893
25026
  return trackPixels * props.slideSize / 100;
24894
25027
  }
24895
- const [current, setCurrent] = React$1.useState(props.defaultIndex);
25028
+ const [current, setCurrent] = React$4.useState(props.defaultIndex);
24896
25029
  useUpdateEffect(() => {
24897
25030
  var _a;
24898
25031
  (_a = props.onIndexChange) === null || _a === void 0 ? void 0 : _a.call(props, current);
@@ -24931,7 +25064,7 @@ Please add \`${key}Action\` when creating your handler.`);
24931
25064
  });
24932
25065
  }
24933
25066
  }), [count]);
24934
- const dragCancelRef = React$1.useRef(null);
25067
+ const dragCancelRef = React$4.useRef(null);
24935
25068
  function forceCancelDrag() {
24936
25069
  var _a;
24937
25070
  (_a = dragCancelRef.current) === null || _a === void 0 ? void 0 : _a.call(dragCancelRef);
@@ -25012,7 +25145,7 @@ Please add \`${key}Action\` when creating your handler.`);
25012
25145
  function swipePrev() {
25013
25146
  swipeTo(Math.round(position.get() / 100) - 1);
25014
25147
  }
25015
- React$1.useImperativeHandle(ref, () => ({
25148
+ React$4.useImperativeHandle(ref, () => ({
25016
25149
  swipeTo,
25017
25150
  swipeNext,
25018
25151
  swipePrev
@@ -25027,7 +25160,7 @@ Please add \`${key}Action\` when creating your handler.`);
25027
25160
  autoplay,
25028
25161
  autoplayInterval
25029
25162
  } = props;
25030
- React$1.useEffect(() => {
25163
+ React$4.useEffect(() => {
25031
25164
  if (!autoplay || dragging)
25032
25165
  return;
25033
25166
  const interval = window.setInterval(() => {
@@ -25104,7 +25237,7 @@ Please add \`${key}Action\` when creating your handler.`);
25104
25237
  Item: SwiperItem
25105
25238
  });
25106
25239
  const _switch = "";
25107
- const SpinIcon = React$1.memo((props) => {
25240
+ const SpinIcon = React$4.memo((props) => {
25108
25241
  return withNativeProps(props, React__default.default.createElement("svg", {
25109
25242
  width: "28px",
25110
25243
  height: "28px",
@@ -25132,7 +25265,7 @@ Please add \`${key}Action\` when creating your handler.`);
25132
25265
  const Switch$1 = (p) => {
25133
25266
  const props = mergeProps(defaultProps$9, p);
25134
25267
  const disabled = props.disabled || props.loading || false;
25135
- const [changing, setChanging] = React$1.useState(false);
25268
+ const [changing, setChanging] = React$4.useState(false);
25136
25269
  const {
25137
25270
  locale
25138
25271
  } = useConfig();
@@ -25312,7 +25445,7 @@ Please add \`${key}Action\` when creating your handler.`);
25312
25445
  autoSize: false,
25313
25446
  defaultValue: ""
25314
25447
  };
25315
- const TextArea$1 = React$1.forwardRef((p, ref) => {
25448
+ const TextArea$1 = React$4.forwardRef((p, ref) => {
25316
25449
  const props = mergeProps(defaultProps$6, p);
25317
25450
  const {
25318
25451
  autoSize,
@@ -25325,8 +25458,8 @@ Please add \`${key}Action\` when creating your handler.`);
25325
25458
  if (props.value === null) {
25326
25459
  devError("TextArea", "`value` prop on `TextArea` should not be `null`. Consider using an empty string to clear the component.");
25327
25460
  }
25328
- const nativeTextAreaRef = React$1.useRef(null);
25329
- React$1.useImperativeHandle(ref, () => ({
25461
+ const nativeTextAreaRef = React$4.useRef(null);
25462
+ React$4.useImperativeHandle(ref, () => ({
25330
25463
  clear: () => {
25331
25464
  setValue2("");
25332
25465
  },
@@ -25362,7 +25495,7 @@ Please add \`${key}Action\` when creating your handler.`);
25362
25495
  }
25363
25496
  textArea2.style.height = `${height}px`;
25364
25497
  }, [value, autoSize]);
25365
- const compositingRef = React$1.useRef(false);
25498
+ const compositingRef = React$4.useRef(false);
25366
25499
  let count;
25367
25500
  const valueLength = [...value].length;
25368
25501
  if (typeof showCount === "function") {
@@ -25428,7 +25561,7 @@ Please add \`${key}Action\` when creating your handler.`);
25428
25561
  icon,
25429
25562
  position
25430
25563
  } = props;
25431
- const iconElement = React$1.useMemo(() => {
25564
+ const iconElement = React$4.useMemo(() => {
25432
25565
  if (icon === null || icon === void 0)
25433
25566
  return null;
25434
25567
  switch (icon) {
@@ -25449,7 +25582,7 @@ Please add \`${key}Action\` when creating your handler.`);
25449
25582
  return icon;
25450
25583
  }
25451
25584
  }, [icon]);
25452
- const top = React$1.useMemo(() => {
25585
+ const top = React$4.useMemo(() => {
25453
25586
  switch (position) {
25454
25587
  case "top":
25455
25588
  return "20%";
@@ -25565,7 +25698,7 @@ Please add \`${key}Action\` when creating your handler.`);
25565
25698
  value: props.value,
25566
25699
  defaultValue: props.defaultValue
25567
25700
  });
25568
- const [deep, optionsMap, optionsParentMap] = React$1.useMemo(() => {
25701
+ const [deep, optionsMap, optionsParentMap] = React$4.useMemo(() => {
25569
25702
  const deep2 = getTreeDeep(props.options, childrenName);
25570
25703
  const optionsMap2 = /* @__PURE__ */ new Map();
25571
25704
  const optionsParentMap2 = /* @__PURE__ */ new Map();
@@ -25647,7 +25780,7 @@ Please add \`${key}Action\` when creating your handler.`);
25647
25780
  defaultExpandKeys: [],
25648
25781
  defaultValue: []
25649
25782
  }, p);
25650
- React$1.useEffect(() => {
25783
+ React$4.useEffect(() => {
25651
25784
  devWarning("TreeSelect", "TreeSelect.Multiple has been deprecated.");
25652
25785
  }, []);
25653
25786
  const labelName = props.fieldNames.label || "label";
@@ -25677,7 +25810,7 @@ Please add \`${key}Action\` when creating your handler.`);
25677
25810
  walker(option);
25678
25811
  return keys2;
25679
25812
  };
25680
- const [deep, optionsMap, optionsParentMap] = React$1.useMemo(() => {
25813
+ const [deep, optionsMap, optionsParentMap] = React$4.useMemo(() => {
25681
25814
  const deep2 = getTreeDeep(props.options, childrenName);
25682
25815
  const optionsMap2 = /* @__PURE__ */ new Map();
25683
25816
  const optionsParentMap2 = /* @__PURE__ */ new Map();
@@ -25693,7 +25826,7 @@ Please add \`${key}Action\` when creating your handler.`);
25693
25826
  traverse(void 0, props.options);
25694
25827
  return [deep2, optionsMap2, optionsParentMap2];
25695
25828
  }, [props.options]);
25696
- const allSelectedLeafKeys = React$1.useMemo(() => {
25829
+ const allSelectedLeafKeys = React$4.useMemo(() => {
25697
25830
  let leafKeys = [];
25698
25831
  value.forEach((v) => {
25699
25832
  const option = optionsMap.get(v);
@@ -25701,7 +25834,7 @@ Please add \`${key}Action\` when creating your handler.`);
25701
25834
  });
25702
25835
  return leafKeys;
25703
25836
  }, [value, optionsMap]);
25704
- const dotMap = React$1.useMemo(() => {
25837
+ const dotMap = React$4.useMemo(() => {
25705
25838
  const map = /* @__PURE__ */ new Map();
25706
25839
  const walker = (key) => {
25707
25840
  const parentOption = optionsParentMap.get(key);
@@ -25886,12 +26019,12 @@ Please add \`${key}Action\` when creating your handler.`);
25886
26019
  const defaultProps$2 = {
25887
26020
  defaultValue: ""
25888
26021
  };
25889
- const VirtualInput$1 = React$1.forwardRef((p, ref) => {
26022
+ const VirtualInput$1 = React$4.forwardRef((p, ref) => {
25890
26023
  const props = mergeProps(defaultProps$2, p);
25891
26024
  const [value, setValue2] = usePropsValue(props);
25892
- const rootRef = React$1.useRef(null);
25893
- const contentRef = React$1.useRef(null);
25894
- const [hasFocus, setHasFocus] = React$1.useState(false);
26025
+ const rootRef = React$4.useRef(null);
26026
+ const contentRef = React$4.useRef(null);
26027
+ const [hasFocus, setHasFocus] = React$4.useState(false);
25895
26028
  function scrollToEnd() {
25896
26029
  const root2 = rootRef.current;
25897
26030
  if (!root2)
@@ -25907,12 +26040,12 @@ Please add \`${key}Action\` when creating your handler.`);
25907
26040
  useIsomorphicLayoutEffect$2(() => {
25908
26041
  scrollToEnd();
25909
26042
  }, [value]);
25910
- React$1.useEffect(() => {
26043
+ React$4.useEffect(() => {
25911
26044
  if (hasFocus) {
25912
26045
  scrollToEnd();
25913
26046
  }
25914
26047
  }, [hasFocus]);
25915
- React$1.useImperativeHandle(ref, () => ({
26048
+ React$4.useImperativeHandle(ref, () => ({
25916
26049
  focus: () => {
25917
26050
  var _a;
25918
26051
  (_a = rootRef.current) === null || _a === void 0 ? void 0 : _a.focus();
@@ -26005,8 +26138,8 @@ Please add \`${key}Action\` when creating your handler.`);
26005
26138
  fontSize = 14,
26006
26139
  fontFamily = "sans-serif"
26007
26140
  } = props;
26008
- const [base64Url, setBase64Url] = React$1.useState("");
26009
- React$1.useEffect(() => {
26141
+ const [base64Url, setBase64Url] = React$4.useState("");
26142
+ React$4.useEffect(() => {
26010
26143
  const canvas = document.createElement("canvas");
26011
26144
  const ratio = window.devicePixelRatio;
26012
26145
  const ctx2 = canvas.getContext("2d");