@nutui/nutui-react 3.0.19-beta.2 → 3.0.20-beta.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 (723) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/cjs/hooks/taro/use-custom-event.js +6 -6
  3. package/dist/cjs/hooks/use-ref-state.js +3 -3
  4. package/dist/cjs/hooks/use-touch.js +2 -1
  5. package/dist/cjs/locales/base.d.ts +2 -0
  6. package/dist/cjs/locales/en-US.js +3 -1
  7. package/dist/cjs/locales/id-ID.js +3 -1
  8. package/dist/cjs/locales/ja-JP.js +3 -1
  9. package/dist/cjs/locales/tr-TR.js +3 -1
  10. package/dist/cjs/locales/vi-VN.d.ts +3 -0
  11. package/dist/cjs/locales/vi-VN.js +170 -0
  12. package/dist/cjs/locales/zh-CN.js +3 -1
  13. package/dist/cjs/locales/zh-TW.js +3 -1
  14. package/dist/cjs/locales/zh-UG.js +3 -1
  15. package/dist/cjs/packages/actionsheet/style/actionsheet.scss +2 -0
  16. package/dist/cjs/packages/actionsheet/style/style.css +2 -0
  17. package/dist/cjs/packages/actionsheet/style-jmapp/actionsheet.scss +2 -0
  18. package/dist/cjs/packages/actionsheet/style-jmapp/style.css +2 -0
  19. package/dist/cjs/packages/actionsheet/style-jrkf/actionsheet.scss +2 -0
  20. package/dist/cjs/packages/actionsheet/style-jrkf/style.css +2 -0
  21. package/dist/cjs/packages/address/address.js +3 -3
  22. package/dist/cjs/packages/address/utils.js +3 -3
  23. package/dist/cjs/packages/avatarcropper/avatarcropper.js +7 -4
  24. package/dist/cjs/packages/avatarcropper/style/avatarcropper.scss +2 -0
  25. package/dist/cjs/packages/avatarcropper/style/style.css +2 -0
  26. package/dist/cjs/packages/avatarcropper/style-jmapp/avatarcropper.scss +2 -0
  27. package/dist/cjs/packages/avatarcropper/style-jmapp/style.css +2 -0
  28. package/dist/cjs/packages/avatarcropper/style-jrkf/avatarcropper.scss +2 -0
  29. package/dist/cjs/packages/avatarcropper/style-jrkf/style.css +2 -0
  30. package/dist/cjs/packages/badge/style/badge.scss +11 -1
  31. package/dist/cjs/packages/badge/style/style.css +11 -1
  32. package/dist/cjs/packages/badge/style-jmapp/badge.scss +11 -1
  33. package/dist/cjs/packages/badge/style-jmapp/style.css +11 -1
  34. package/dist/cjs/packages/badge/style-jrkf/badge.scss +11 -1
  35. package/dist/cjs/packages/badge/style-jrkf/style.css +11 -1
  36. package/dist/cjs/packages/button/style/button.scss +6 -0
  37. package/dist/cjs/packages/button/style/style.css +11 -5
  38. package/dist/cjs/packages/button/style-jmapp/button.scss +6 -0
  39. package/dist/cjs/packages/button/style-jmapp/style.css +6 -0
  40. package/dist/cjs/packages/button/style-jrkf/button.scss +6 -0
  41. package/dist/cjs/packages/button/style-jrkf/style.css +6 -0
  42. package/dist/cjs/packages/calendar/style/style.css +2 -2
  43. package/dist/cjs/packages/calendar/utils.js +8 -8
  44. package/dist/cjs/packages/calendarcard/icon.js +5 -5
  45. package/dist/cjs/packages/calendarcard/style/style.css +1 -1
  46. package/dist/cjs/packages/calendarcard/utils.js +6 -6
  47. package/dist/cjs/packages/cascader/cascader.js +21 -12
  48. package/dist/cjs/packages/cascader/style/cascader.scss +2 -0
  49. package/dist/cjs/packages/cascader/style/style.css +2 -0
  50. package/dist/cjs/packages/cascader/style-jmapp/cascader.scss +2 -0
  51. package/dist/cjs/packages/cascader/style-jmapp/style.css +2 -0
  52. package/dist/cjs/packages/cascader/style-jrkf/cascader.scss +2 -0
  53. package/dist/cjs/packages/cascader/style-jrkf/style.css +2 -0
  54. package/dist/cjs/packages/cascader/utils.js +3 -3
  55. package/dist/cjs/packages/cellgroup/style/cellgroup.scss +4 -0
  56. package/dist/cjs/packages/cellgroup/style/style.css +4 -0
  57. package/dist/cjs/packages/cellgroup/style-jmapp/cellgroup.scss +4 -0
  58. package/dist/cjs/packages/cellgroup/style-jmapp/style.css +4 -0
  59. package/dist/cjs/packages/cellgroup/style-jrkf/cellgroup.scss +4 -0
  60. package/dist/cjs/packages/cellgroup/style-jrkf/style.css +4 -0
  61. package/dist/cjs/packages/checkbox/checkbox.js +1 -1
  62. package/dist/cjs/packages/checkbox/style/checkbox.scss +9 -0
  63. package/dist/cjs/packages/checkbox/style/style.css +10 -1
  64. package/dist/cjs/packages/checkbox/style-jmapp/checkbox.scss +9 -0
  65. package/dist/cjs/packages/checkbox/style-jmapp/style.css +9 -0
  66. package/dist/cjs/packages/checkbox/style-jrkf/checkbox.scss +9 -0
  67. package/dist/cjs/packages/checkbox/style-jrkf/style.css +9 -0
  68. package/dist/cjs/packages/checkboxgroup/style/checkboxgroup.scss +5 -0
  69. package/dist/cjs/packages/checkboxgroup/style/style.css +5 -0
  70. package/dist/cjs/packages/checkboxgroup/style-jmapp/checkboxgroup.scss +5 -0
  71. package/dist/cjs/packages/checkboxgroup/style-jmapp/style.css +5 -0
  72. package/dist/cjs/packages/checkboxgroup/style-jrkf/checkboxgroup.scss +5 -0
  73. package/dist/cjs/packages/checkboxgroup/style-jrkf/style.css +5 -0
  74. package/dist/cjs/packages/circleprogress/style/style.css +1 -1
  75. package/dist/cjs/packages/collapseitem/collapseitem.js +7 -4
  76. package/dist/cjs/packages/configprovider/configprovider.js +7 -7
  77. package/dist/cjs/packages/configprovider/index.js +6 -6
  78. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  79. package/dist/cjs/packages/countdown/countdown.js +2 -1
  80. package/dist/cjs/packages/countup/style/countup.scss +5 -0
  81. package/dist/cjs/packages/countup/style/style.css +5 -0
  82. package/dist/cjs/packages/countup/style-jmapp/countup.scss +5 -0
  83. package/dist/cjs/packages/countup/style-jmapp/style.css +5 -0
  84. package/dist/cjs/packages/countup/style-jrkf/countup.scss +5 -0
  85. package/dist/cjs/packages/countup/style-jrkf/style.css +5 -0
  86. package/dist/cjs/packages/datepicker/utils.js +9 -9
  87. package/dist/cjs/packages/dialog/content.js +3 -3
  88. package/dist/cjs/packages/dialog/dialog.js +44 -13
  89. package/dist/cjs/packages/dialog/style/dialog.scss +53 -2
  90. package/dist/cjs/packages/dialog/style/style.css +52 -5
  91. package/dist/cjs/packages/dialog/style-jmapp/dialog.scss +53 -2
  92. package/dist/cjs/packages/dialog/style-jmapp/style.css +49 -2
  93. package/dist/cjs/packages/dialog/style-jrkf/dialog.scss +53 -2
  94. package/dist/cjs/packages/dialog/style-jrkf/style.css +49 -2
  95. package/dist/cjs/packages/divider/style/divider.scss +5 -0
  96. package/dist/cjs/packages/divider/style/style.css +5 -0
  97. package/dist/cjs/packages/divider/style-jmapp/divider.scss +5 -0
  98. package/dist/cjs/packages/divider/style-jmapp/style.css +5 -0
  99. package/dist/cjs/packages/divider/style-jrkf/divider.scss +5 -0
  100. package/dist/cjs/packages/divider/style-jrkf/style.css +5 -0
  101. package/dist/cjs/packages/drag/style/drag.scss +5 -0
  102. package/dist/cjs/packages/drag/style/style.css +5 -0
  103. package/dist/cjs/packages/drag/style-jmapp/drag.scss +5 -0
  104. package/dist/cjs/packages/drag/style-jmapp/style.css +5 -0
  105. package/dist/cjs/packages/drag/style-jrkf/drag.scss +5 -0
  106. package/dist/cjs/packages/drag/style-jrkf/style.css +5 -0
  107. package/dist/cjs/packages/elevator/elevator.js +3 -3
  108. package/dist/cjs/packages/elevator/style/elevator.scss +7 -0
  109. package/dist/cjs/packages/elevator/style/style.css +7 -0
  110. package/dist/cjs/packages/elevator/style-jmapp/elevator.scss +7 -0
  111. package/dist/cjs/packages/elevator/style-jmapp/style.css +7 -0
  112. package/dist/cjs/packages/elevator/style-jrkf/elevator.scss +7 -0
  113. package/dist/cjs/packages/elevator/style-jrkf/style.css +7 -0
  114. package/dist/cjs/packages/ellipsis/style/ellipsis.scss +2 -0
  115. package/dist/cjs/packages/ellipsis/style/style.css +2 -0
  116. package/dist/cjs/packages/ellipsis/style-jmapp/ellipsis.scss +2 -0
  117. package/dist/cjs/packages/ellipsis/style-jmapp/style.css +2 -0
  118. package/dist/cjs/packages/ellipsis/style-jrkf/ellipsis.scss +2 -0
  119. package/dist/cjs/packages/ellipsis/style-jrkf/style.css +2 -0
  120. package/dist/cjs/packages/empty/style/style.css +2 -2
  121. package/dist/cjs/packages/form/index.js +2 -0
  122. package/dist/cjs/packages/form/useform.js +57 -50
  123. package/dist/cjs/packages/indicator/style/indicator.scss +2 -0
  124. package/dist/cjs/packages/indicator/style/style.css +2 -0
  125. package/dist/cjs/packages/indicator/style-jmapp/indicator.scss +2 -0
  126. package/dist/cjs/packages/indicator/style-jmapp/style.css +2 -0
  127. package/dist/cjs/packages/indicator/style-jrkf/indicator.scss +2 -0
  128. package/dist/cjs/packages/indicator/style-jrkf/style.css +2 -0
  129. package/dist/cjs/packages/infiniteloading/infiniteloading.js +14 -8
  130. package/dist/cjs/packages/input/input.js +4 -3
  131. package/dist/cjs/packages/input/style/input.scss +1 -2
  132. package/dist/cjs/packages/input/style/style.css +1 -2
  133. package/dist/cjs/packages/input/style-jmapp/input.scss +1 -2
  134. package/dist/cjs/packages/input/style-jmapp/style.css +1 -2
  135. package/dist/cjs/packages/input/style-jrkf/input.scss +1 -2
  136. package/dist/cjs/packages/input/style-jrkf/style.css +1 -2
  137. package/dist/cjs/packages/inputnumber/inputnumber.js +28 -16
  138. package/dist/cjs/packages/inputnumber/style/inputnumber.scss +7 -1
  139. package/dist/cjs/packages/inputnumber/style/style.css +5 -0
  140. package/dist/cjs/packages/inputnumber/style-jmapp/inputnumber.scss +7 -1
  141. package/dist/cjs/packages/inputnumber/style-jmapp/style.css +5 -0
  142. package/dist/cjs/packages/inputnumber/style-jrkf/inputnumber.scss +7 -1
  143. package/dist/cjs/packages/inputnumber/style-jrkf/style.css +5 -0
  144. package/dist/cjs/packages/loading/style/loading.scss +5 -0
  145. package/dist/cjs/packages/loading/style/style.css +5 -0
  146. package/dist/cjs/packages/loading/style-jmapp/loading.scss +5 -0
  147. package/dist/cjs/packages/loading/style-jmapp/style.css +5 -0
  148. package/dist/cjs/packages/loading/style-jrkf/loading.scss +5 -0
  149. package/dist/cjs/packages/loading/style-jrkf/style.css +5 -0
  150. package/dist/cjs/packages/lottie/types.js +2 -0
  151. package/dist/cjs/packages/menuitem/style/menuitem.scss +7 -2
  152. package/dist/cjs/packages/menuitem/style/style.css +7 -2
  153. package/dist/cjs/packages/menuitem/style-jmapp/menuitem.scss +7 -2
  154. package/dist/cjs/packages/menuitem/style-jmapp/style.css +7 -2
  155. package/dist/cjs/packages/menuitem/style-jrkf/menuitem.scss +7 -2
  156. package/dist/cjs/packages/menuitem/style-jrkf/style.css +7 -2
  157. package/dist/cjs/packages/navbar/style/navbar.scss +2 -0
  158. package/dist/cjs/packages/navbar/style/style.css +3 -1
  159. package/dist/cjs/packages/navbar/style-jmapp/navbar.scss +2 -0
  160. package/dist/cjs/packages/navbar/style-jmapp/style.css +2 -0
  161. package/dist/cjs/packages/navbar/style-jrkf/navbar.scss +2 -0
  162. package/dist/cjs/packages/navbar/style-jrkf/style.css +2 -0
  163. package/dist/cjs/packages/noticebar/style/noticebar.scss +4 -0
  164. package/dist/cjs/packages/noticebar/style/style.css +4 -0
  165. package/dist/cjs/packages/noticebar/style-jmapp/noticebar.scss +4 -0
  166. package/dist/cjs/packages/noticebar/style-jmapp/style.css +4 -0
  167. package/dist/cjs/packages/noticebar/style-jrkf/noticebar.scss +4 -0
  168. package/dist/cjs/packages/noticebar/style-jrkf/style.css +4 -0
  169. package/dist/cjs/packages/notify/style/notify.scss +5 -0
  170. package/dist/cjs/packages/notify/style/style.css +5 -0
  171. package/dist/cjs/packages/notify/style-jmapp/notify.scss +5 -0
  172. package/dist/cjs/packages/notify/style-jmapp/style.css +5 -0
  173. package/dist/cjs/packages/notify/style-jrkf/notify.scss +5 -0
  174. package/dist/cjs/packages/notify/style-jrkf/style.css +5 -0
  175. package/dist/cjs/packages/numberkeyboard/style/numberkeyboard.scss +2 -0
  176. package/dist/cjs/packages/numberkeyboard/style/style.css +5 -3
  177. package/dist/cjs/packages/numberkeyboard/style-jmapp/numberkeyboard.scss +2 -0
  178. package/dist/cjs/packages/numberkeyboard/style-jmapp/style.css +2 -0
  179. package/dist/cjs/packages/numberkeyboard/style-jrkf/numberkeyboard.scss +2 -0
  180. package/dist/cjs/packages/numberkeyboard/style-jrkf/style.css +2 -0
  181. package/dist/cjs/packages/nutui.react.build.js +105 -105
  182. package/dist/cjs/packages/nutui.react.js +105 -105
  183. package/dist/cjs/packages/overlay/overlay.js +3 -3
  184. package/dist/cjs/packages/picker/style/style.css +2 -2
  185. package/dist/cjs/packages/pickerview/pickerview.js +2 -1
  186. package/dist/cjs/packages/pickerview/utils.js +3 -3
  187. package/dist/cjs/packages/popover/style/popover.scss +2 -0
  188. package/dist/cjs/packages/popover/style/style.css +2 -0
  189. package/dist/cjs/packages/popover/style-jmapp/popover.scss +2 -0
  190. package/dist/cjs/packages/popover/style-jmapp/style.css +2 -0
  191. package/dist/cjs/packages/popover/style-jrkf/popover.scss +2 -0
  192. package/dist/cjs/packages/popover/style-jrkf/style.css +2 -0
  193. package/dist/cjs/packages/popup/popup.js +24 -3
  194. package/dist/cjs/packages/popup/style/popup.scss +4 -0
  195. package/dist/cjs/packages/popup/style/style.css +5 -2
  196. package/dist/cjs/packages/popup/style-jmapp/popup.scss +4 -0
  197. package/dist/cjs/packages/popup/style-jmapp/style.css +3 -0
  198. package/dist/cjs/packages/popup/style-jrkf/popup.scss +4 -0
  199. package/dist/cjs/packages/popup/style-jrkf/style.css +3 -0
  200. package/dist/cjs/packages/price/style/style.css +1 -1
  201. package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +51 -41
  202. package/dist/cjs/packages/radio/index.js +2 -0
  203. package/dist/cjs/packages/radio/style/radio.scss +10 -0
  204. package/dist/cjs/packages/radio/style/style.css +11 -1
  205. package/dist/cjs/packages/radio/style-jmapp/radio.scss +10 -0
  206. package/dist/cjs/packages/radio/style-jmapp/style.css +10 -0
  207. package/dist/cjs/packages/radio/style-jrkf/radio.scss +10 -0
  208. package/dist/cjs/packages/radio/style-jrkf/style.css +10 -0
  209. package/dist/cjs/packages/range/style/range.scss +15 -2
  210. package/dist/cjs/packages/range/style/style.css +15 -1
  211. package/dist/cjs/packages/range/style-jmapp/range.scss +15 -2
  212. package/dist/cjs/packages/range/style-jmapp/style.css +15 -1
  213. package/dist/cjs/packages/range/style-jrkf/range.scss +15 -2
  214. package/dist/cjs/packages/range/style-jrkf/style.css +15 -1
  215. package/dist/cjs/packages/range/utils.js +3 -3
  216. package/dist/cjs/packages/rate/style/rate.scss +5 -0
  217. package/dist/cjs/packages/rate/style/style.css +5 -0
  218. package/dist/cjs/packages/rate/style-jmapp/rate.scss +5 -0
  219. package/dist/cjs/packages/rate/style-jmapp/style.css +5 -0
  220. package/dist/cjs/packages/rate/style-jrkf/rate.scss +5 -0
  221. package/dist/cjs/packages/rate/style-jrkf/style.css +5 -0
  222. package/dist/cjs/packages/resultpage/style/resultpage.scss +5 -0
  223. package/dist/cjs/packages/resultpage/style/style.css +5 -0
  224. package/dist/cjs/packages/resultpage/style-jmapp/resultpage.scss +5 -0
  225. package/dist/cjs/packages/resultpage/style-jmapp/style.css +5 -0
  226. package/dist/cjs/packages/resultpage/style-jrkf/resultpage.scss +5 -0
  227. package/dist/cjs/packages/resultpage/style-jrkf/style.css +5 -0
  228. package/dist/cjs/packages/safearea/safearea.js +12 -3
  229. package/dist/cjs/packages/safearea/style/safearea.scss +6 -0
  230. package/dist/cjs/packages/safearea/style/style.css +2 -0
  231. package/dist/cjs/packages/safearea/style-jmapp/safearea.scss +6 -0
  232. package/dist/cjs/packages/safearea/style-jmapp/style.css +2 -0
  233. package/dist/cjs/packages/safearea/style-jrkf/safearea.scss +6 -0
  234. package/dist/cjs/packages/safearea/style-jrkf/style.css +2 -0
  235. package/dist/cjs/packages/searchbar/style/searchbar.scss +5 -0
  236. package/dist/cjs/packages/searchbar/style/style.css +5 -0
  237. package/dist/cjs/packages/searchbar/style-jmapp/searchbar.scss +5 -0
  238. package/dist/cjs/packages/searchbar/style-jmapp/style.css +5 -0
  239. package/dist/cjs/packages/searchbar/style-jrkf/searchbar.scss +5 -0
  240. package/dist/cjs/packages/searchbar/style-jrkf/style.css +5 -0
  241. package/dist/cjs/packages/segmented/style/segmented.scss +5 -0
  242. package/dist/cjs/packages/segmented/style/style.css +5 -0
  243. package/dist/cjs/packages/segmented/style-jmapp/segmented.scss +5 -0
  244. package/dist/cjs/packages/segmented/style-jmapp/style.css +5 -0
  245. package/dist/cjs/packages/segmented/style-jrkf/segmented.scss +5 -0
  246. package/dist/cjs/packages/segmented/style-jrkf/style.css +5 -0
  247. package/dist/cjs/packages/shortpassword/shortpassword.js +3 -3
  248. package/dist/cjs/packages/shortpassword/style/style.css +1 -1
  249. package/dist/cjs/packages/sidebar/style/style.css +1 -1
  250. package/dist/cjs/packages/sidebaritem/style/sidebaritem.scss +2 -0
  251. package/dist/cjs/packages/sidebaritem/style/style.css +2 -0
  252. package/dist/cjs/packages/sidebaritem/style-jmapp/sidebaritem.scss +2 -0
  253. package/dist/cjs/packages/sidebaritem/style-jmapp/style.css +2 -0
  254. package/dist/cjs/packages/sidebaritem/style-jrkf/sidebaritem.scss +2 -0
  255. package/dist/cjs/packages/sidebaritem/style-jrkf/style.css +2 -0
  256. package/dist/cjs/packages/skeleton/skeleton.js +4 -2
  257. package/dist/cjs/packages/skeleton/style/skeleton.scss +5 -0
  258. package/dist/cjs/packages/skeleton/style/style.css +5 -0
  259. package/dist/cjs/packages/skeleton/style-jmapp/skeleton.scss +5 -0
  260. package/dist/cjs/packages/skeleton/style-jmapp/style.css +5 -0
  261. package/dist/cjs/packages/skeleton/style-jrkf/skeleton.scss +5 -0
  262. package/dist/cjs/packages/skeleton/style-jrkf/style.css +5 -0
  263. package/dist/cjs/packages/space/style/space.scss +2 -0
  264. package/dist/cjs/packages/space/style/style.css +2 -0
  265. package/dist/cjs/packages/space/style-jmapp/space.scss +2 -0
  266. package/dist/cjs/packages/space/style-jmapp/style.css +2 -0
  267. package/dist/cjs/packages/space/style-jrkf/space.scss +2 -0
  268. package/dist/cjs/packages/space/style-jrkf/style.css +2 -0
  269. package/dist/cjs/packages/steps/style/steps.scss +9 -0
  270. package/dist/cjs/packages/steps/style/style.css +10 -1
  271. package/dist/cjs/packages/steps/style-jmapp/steps.scss +9 -0
  272. package/dist/cjs/packages/steps/style-jmapp/style.css +9 -0
  273. package/dist/cjs/packages/steps/style-jrkf/steps.scss +9 -0
  274. package/dist/cjs/packages/steps/style-jrkf/style.css +9 -0
  275. package/dist/cjs/packages/swiper/effects/focus.js +4 -4
  276. package/dist/cjs/packages/swiper/index.js +1 -0
  277. package/dist/cjs/packages/switch/style/style.css +10 -0
  278. package/dist/cjs/packages/switch/style/switch.scss +10 -0
  279. package/dist/cjs/packages/switch/style-jmapp/style.css +10 -0
  280. package/dist/cjs/packages/switch/style-jmapp/switch.scss +10 -0
  281. package/dist/cjs/packages/switch/style-jrkf/style.css +10 -0
  282. package/dist/cjs/packages/switch/style-jrkf/switch.scss +10 -0
  283. package/dist/cjs/packages/switch/switch.js +18 -8
  284. package/dist/cjs/packages/tabbaritem/style/style.css +2 -2
  285. package/dist/cjs/packages/table/style/style.css +13 -1
  286. package/dist/cjs/packages/table/style/table.scss +13 -1
  287. package/dist/cjs/packages/table/style-jmapp/style.css +13 -1
  288. package/dist/cjs/packages/table/style-jmapp/table.scss +13 -1
  289. package/dist/cjs/packages/table/style-jrkf/style.css +13 -1
  290. package/dist/cjs/packages/table/style-jrkf/table.scss +13 -1
  291. package/dist/cjs/packages/tabpane/style/style.css +2 -0
  292. package/dist/cjs/packages/tabpane/style/tabpane.scss +2 -0
  293. package/dist/cjs/packages/tabpane/style-jmapp/style.css +2 -0
  294. package/dist/cjs/packages/tabpane/style-jmapp/tabpane.scss +2 -0
  295. package/dist/cjs/packages/tabpane/style-jrkf/style.css +2 -0
  296. package/dist/cjs/packages/tabpane/style-jrkf/tabpane.scss +2 -0
  297. package/dist/cjs/packages/tabs/style/style.css +5 -1
  298. package/dist/cjs/packages/tabs/style/tabs.scss +4 -0
  299. package/dist/cjs/packages/tabs/style-jmapp/style.css +4 -0
  300. package/dist/cjs/packages/tabs/style-jmapp/tabs.scss +4 -0
  301. package/dist/cjs/packages/tabs/style-jrkf/style.css +4 -0
  302. package/dist/cjs/packages/tabs/style-jrkf/tabs.scss +4 -0
  303. package/dist/cjs/packages/tag/style/style.css +6 -1
  304. package/dist/cjs/packages/tag/style/tag.scss +6 -1
  305. package/dist/cjs/packages/tag/style-jmapp/style.css +6 -1
  306. package/dist/cjs/packages/tag/style-jmapp/tag.scss +6 -1
  307. package/dist/cjs/packages/tag/style-jrkf/style.css +6 -1
  308. package/dist/cjs/packages/tag/style-jrkf/tag.scss +6 -1
  309. package/dist/cjs/packages/textarea/textarea.js +3 -1
  310. package/dist/cjs/packages/timeselect/style/style.css +2 -0
  311. package/dist/cjs/packages/timeselect/style/timeselect.scss +2 -0
  312. package/dist/cjs/packages/timeselect/style-jmapp/style.css +2 -0
  313. package/dist/cjs/packages/timeselect/style-jmapp/timeselect.scss +2 -0
  314. package/dist/cjs/packages/timeselect/style-jrkf/style.css +2 -0
  315. package/dist/cjs/packages/timeselect/style-jrkf/timeselect.scss +2 -0
  316. package/dist/cjs/packages/toast/Notification.js +3 -1
  317. package/dist/cjs/packages/toast/style/style.css +10 -1
  318. package/dist/cjs/packages/toast/style/toast.scss +9 -0
  319. package/dist/cjs/packages/toast/style-jmapp/style.css +9 -0
  320. package/dist/cjs/packages/toast/style-jmapp/toast.scss +9 -0
  321. package/dist/cjs/packages/toast/style-jrkf/style.css +9 -0
  322. package/dist/cjs/packages/toast/style-jrkf/toast.scss +9 -0
  323. package/dist/cjs/packages/tour/style/style.css +2 -0
  324. package/dist/cjs/packages/tour/style/tour.scss +2 -0
  325. package/dist/cjs/packages/tour/style-jmapp/style.css +2 -0
  326. package/dist/cjs/packages/tour/style-jmapp/tour.scss +2 -0
  327. package/dist/cjs/packages/tour/style-jrkf/style.css +2 -0
  328. package/dist/cjs/packages/tour/style-jrkf/tour.scss +2 -0
  329. package/dist/cjs/packages/uploader/style/style.css +2 -0
  330. package/dist/cjs/packages/uploader/style/uploader.scss +2 -0
  331. package/dist/cjs/packages/uploader/style-jmapp/style.css +2 -0
  332. package/dist/cjs/packages/uploader/style-jmapp/uploader.scss +2 -0
  333. package/dist/cjs/packages/uploader/style-jrkf/style.css +2 -0
  334. package/dist/cjs/packages/uploader/style-jrkf/uploader.scss +2 -0
  335. package/dist/cjs/packages/uploader/uploader.js +37 -30
  336. package/dist/cjs/packages/virtuallist/style/style.css +2 -0
  337. package/dist/cjs/packages/virtuallist/style/virtuallist.scss +2 -0
  338. package/dist/cjs/packages/virtuallist/style-jmapp/style.css +2 -0
  339. package/dist/cjs/packages/virtuallist/style-jmapp/virtuallist.scss +2 -0
  340. package/dist/cjs/packages/virtuallist/style-jrkf/style.css +2 -0
  341. package/dist/cjs/packages/virtuallist/style-jrkf/virtuallist.scss +2 -0
  342. package/dist/cjs/packages/virtuallist/utils.js +6 -6
  343. package/dist/cjs/packages/watermark/watermark.js +8 -4
  344. package/dist/cjs/types/spec/address/base.js +2 -0
  345. package/dist/cjs/types/spec/dialog/base.d.ts +2 -0
  346. package/dist/cjs/types/spec/input/base.d.ts +2 -1
  347. package/dist/cjs/types/spec/popup/base.d.ts +2 -0
  348. package/dist/cjs/types/spec/radio/base.d.ts +1 -0
  349. package/dist/cjs/types/spec/switch/base.d.ts +1 -0
  350. package/dist/cjs/types/spec/textarea/base.d.ts +1 -0
  351. package/dist/cjs/utils/date.js +5 -5
  352. package/dist/cjs/utils/event-mocker.js +18 -10
  353. package/dist/cjs/utils/get-rect.js +4 -4
  354. package/dist/cjs/utils/get-scroll-parent.js +3 -3
  355. package/dist/cjs/utils/merge-props.js +3 -3
  356. package/dist/cjs/utils/merge.js +6 -6
  357. package/dist/cjs/utils/raf.js +3 -3
  358. package/dist/cjs/utils/render.js +9 -5
  359. package/dist/cjs/utils/rubberband.js +3 -3
  360. package/dist/cjs/utils/taro/get-rect-by-id.js +13 -1
  361. package/dist/cjs/utils/taro/get-rect.js +24 -14
  362. package/dist/cjs/utils/taro/get-system-info.d.ts +3 -0
  363. package/dist/cjs/utils/taro/get-system-info.js +9 -8
  364. package/dist/cjs/utils/taro/platform.js +11 -10
  365. package/dist/cjs/utils/taro/px-transform.js +3 -2
  366. package/dist/es/hooks/taro/use-custom-event.js +2 -2
  367. package/dist/es/hooks/use-touch.js +1 -1
  368. package/dist/es/locales/base.d.ts +2 -0
  369. package/dist/es/locales/en-US.js +3 -1
  370. package/dist/es/locales/id-ID.js +3 -1
  371. package/dist/es/locales/ja-JP.js +3 -1
  372. package/dist/es/locales/tr-TR.js +3 -1
  373. package/dist/es/locales/vi-VN.d.ts +3 -0
  374. package/dist/es/locales/vi-VN.js +160 -0
  375. package/dist/es/locales/zh-CN.js +3 -1
  376. package/dist/es/locales/zh-TW.js +3 -1
  377. package/dist/es/locales/zh-UG.js +3 -1
  378. package/dist/es/packages/actionsheet/style/actionsheet.scss +2 -0
  379. package/dist/es/packages/actionsheet/style/style.css +2 -0
  380. package/dist/es/packages/actionsheet/style-jmapp/actionsheet.scss +2 -0
  381. package/dist/es/packages/actionsheet/style-jmapp/style.css +2 -0
  382. package/dist/es/packages/actionsheet/style-jrkf/actionsheet.scss +2 -0
  383. package/dist/es/packages/actionsheet/style-jrkf/style.css +2 -0
  384. package/dist/es/packages/avatarcropper/avatarcropper.js +7 -4
  385. package/dist/es/packages/avatarcropper/style/avatarcropper.scss +2 -0
  386. package/dist/es/packages/avatarcropper/style/style.css +2 -0
  387. package/dist/es/packages/avatarcropper/style-jmapp/avatarcropper.scss +2 -0
  388. package/dist/es/packages/avatarcropper/style-jmapp/style.css +2 -0
  389. package/dist/es/packages/avatarcropper/style-jrkf/avatarcropper.scss +2 -0
  390. package/dist/es/packages/avatarcropper/style-jrkf/style.css +2 -0
  391. package/dist/es/packages/badge/style/badge.scss +11 -1
  392. package/dist/es/packages/badge/style/style.css +11 -1
  393. package/dist/es/packages/badge/style-jmapp/badge.scss +11 -1
  394. package/dist/es/packages/badge/style-jmapp/style.css +11 -1
  395. package/dist/es/packages/badge/style-jrkf/badge.scss +11 -1
  396. package/dist/es/packages/badge/style-jrkf/style.css +11 -1
  397. package/dist/es/packages/button/style/button.scss +6 -0
  398. package/dist/es/packages/button/style/style.css +11 -5
  399. package/dist/es/packages/button/style-jmapp/button.scss +6 -0
  400. package/dist/es/packages/button/style-jmapp/style.css +6 -0
  401. package/dist/es/packages/button/style-jrkf/button.scss +6 -0
  402. package/dist/es/packages/button/style-jrkf/style.css +6 -0
  403. package/dist/es/packages/calendar/style/style.css +2 -2
  404. package/dist/es/packages/calendarcard/style/style.css +1 -1
  405. package/dist/es/packages/cascader/cascader.js +21 -12
  406. package/dist/es/packages/cascader/style/cascader.scss +2 -0
  407. package/dist/es/packages/cascader/style/style.css +2 -0
  408. package/dist/es/packages/cascader/style-jmapp/cascader.scss +2 -0
  409. package/dist/es/packages/cascader/style-jmapp/style.css +2 -0
  410. package/dist/es/packages/cascader/style-jrkf/cascader.scss +2 -0
  411. package/dist/es/packages/cascader/style-jrkf/style.css +2 -0
  412. package/dist/es/packages/cellgroup/style/cellgroup.scss +4 -0
  413. package/dist/es/packages/cellgroup/style/style.css +4 -0
  414. package/dist/es/packages/cellgroup/style-jmapp/cellgroup.scss +4 -0
  415. package/dist/es/packages/cellgroup/style-jmapp/style.css +4 -0
  416. package/dist/es/packages/cellgroup/style-jrkf/cellgroup.scss +4 -0
  417. package/dist/es/packages/cellgroup/style-jrkf/style.css +4 -0
  418. package/dist/es/packages/checkbox/checkbox.js +1 -1
  419. package/dist/es/packages/checkbox/style/checkbox.scss +9 -0
  420. package/dist/es/packages/checkbox/style/style.css +10 -1
  421. package/dist/es/packages/checkbox/style-jmapp/checkbox.scss +9 -0
  422. package/dist/es/packages/checkbox/style-jmapp/style.css +9 -0
  423. package/dist/es/packages/checkbox/style-jrkf/checkbox.scss +9 -0
  424. package/dist/es/packages/checkbox/style-jrkf/style.css +9 -0
  425. package/dist/es/packages/checkboxgroup/style/checkboxgroup.scss +5 -0
  426. package/dist/es/packages/checkboxgroup/style/style.css +5 -0
  427. package/dist/es/packages/checkboxgroup/style-jmapp/checkboxgroup.scss +5 -0
  428. package/dist/es/packages/checkboxgroup/style-jmapp/style.css +5 -0
  429. package/dist/es/packages/checkboxgroup/style-jrkf/checkboxgroup.scss +5 -0
  430. package/dist/es/packages/checkboxgroup/style-jrkf/style.css +5 -0
  431. package/dist/es/packages/circleprogress/style/style.css +1 -1
  432. package/dist/es/packages/collapseitem/collapseitem.js +7 -4
  433. package/dist/es/packages/configprovider/types.d.ts +1 -1
  434. package/dist/es/packages/countdown/countdown.js +2 -1
  435. package/dist/es/packages/countup/style/countup.scss +5 -0
  436. package/dist/es/packages/countup/style/style.css +5 -0
  437. package/dist/es/packages/countup/style-jmapp/countup.scss +5 -0
  438. package/dist/es/packages/countup/style-jmapp/style.css +5 -0
  439. package/dist/es/packages/countup/style-jrkf/countup.scss +5 -0
  440. package/dist/es/packages/countup/style-jrkf/style.css +5 -0
  441. package/dist/es/packages/dialog/dialog.js +44 -13
  442. package/dist/es/packages/dialog/style/dialog.scss +53 -2
  443. package/dist/es/packages/dialog/style/style.css +52 -5
  444. package/dist/es/packages/dialog/style-jmapp/dialog.scss +53 -2
  445. package/dist/es/packages/dialog/style-jmapp/style.css +49 -2
  446. package/dist/es/packages/dialog/style-jrkf/dialog.scss +53 -2
  447. package/dist/es/packages/dialog/style-jrkf/style.css +49 -2
  448. package/dist/es/packages/divider/style/divider.scss +5 -0
  449. package/dist/es/packages/divider/style/style.css +5 -0
  450. package/dist/es/packages/divider/style-jmapp/divider.scss +5 -0
  451. package/dist/es/packages/divider/style-jmapp/style.css +5 -0
  452. package/dist/es/packages/divider/style-jrkf/divider.scss +5 -0
  453. package/dist/es/packages/divider/style-jrkf/style.css +5 -0
  454. package/dist/es/packages/drag/style/drag.scss +5 -0
  455. package/dist/es/packages/drag/style/style.css +5 -0
  456. package/dist/es/packages/drag/style-jmapp/drag.scss +5 -0
  457. package/dist/es/packages/drag/style-jmapp/style.css +5 -0
  458. package/dist/es/packages/drag/style-jrkf/drag.scss +5 -0
  459. package/dist/es/packages/drag/style-jrkf/style.css +5 -0
  460. package/dist/es/packages/elevator/style/elevator.scss +7 -0
  461. package/dist/es/packages/elevator/style/style.css +7 -0
  462. package/dist/es/packages/elevator/style-jmapp/elevator.scss +7 -0
  463. package/dist/es/packages/elevator/style-jmapp/style.css +7 -0
  464. package/dist/es/packages/elevator/style-jrkf/elevator.scss +7 -0
  465. package/dist/es/packages/elevator/style-jrkf/style.css +7 -0
  466. package/dist/es/packages/ellipsis/style/ellipsis.scss +2 -0
  467. package/dist/es/packages/ellipsis/style/style.css +2 -0
  468. package/dist/es/packages/ellipsis/style-jmapp/ellipsis.scss +2 -0
  469. package/dist/es/packages/ellipsis/style-jmapp/style.css +2 -0
  470. package/dist/es/packages/ellipsis/style-jrkf/ellipsis.scss +2 -0
  471. package/dist/es/packages/ellipsis/style-jrkf/style.css +2 -0
  472. package/dist/es/packages/empty/style/style.css +2 -2
  473. package/dist/es/packages/form/index.js +1 -0
  474. package/dist/es/packages/form/useform.js +53 -46
  475. package/dist/es/packages/indicator/style/indicator.scss +2 -0
  476. package/dist/es/packages/indicator/style/style.css +2 -0
  477. package/dist/es/packages/indicator/style-jmapp/indicator.scss +2 -0
  478. package/dist/es/packages/indicator/style-jmapp/style.css +2 -0
  479. package/dist/es/packages/indicator/style-jrkf/indicator.scss +2 -0
  480. package/dist/es/packages/indicator/style-jrkf/style.css +2 -0
  481. package/dist/es/packages/infiniteloading/infiniteloading.js +14 -8
  482. package/dist/es/packages/input/input.js +4 -3
  483. package/dist/es/packages/input/style/input.scss +1 -2
  484. package/dist/es/packages/input/style/style.css +1 -2
  485. package/dist/es/packages/input/style-jmapp/input.scss +1 -2
  486. package/dist/es/packages/input/style-jmapp/style.css +1 -2
  487. package/dist/es/packages/input/style-jrkf/input.scss +1 -2
  488. package/dist/es/packages/input/style-jrkf/style.css +1 -2
  489. package/dist/es/packages/inputnumber/inputnumber.js +28 -16
  490. package/dist/es/packages/inputnumber/style/inputnumber.scss +7 -1
  491. package/dist/es/packages/inputnumber/style/style.css +5 -0
  492. package/dist/es/packages/inputnumber/style-jmapp/inputnumber.scss +7 -1
  493. package/dist/es/packages/inputnumber/style-jmapp/style.css +5 -0
  494. package/dist/es/packages/inputnumber/style-jrkf/inputnumber.scss +7 -1
  495. package/dist/es/packages/inputnumber/style-jrkf/style.css +5 -0
  496. package/dist/es/packages/loading/style/loading.scss +5 -0
  497. package/dist/es/packages/loading/style/style.css +5 -0
  498. package/dist/es/packages/loading/style-jmapp/loading.scss +5 -0
  499. package/dist/es/packages/loading/style-jmapp/style.css +5 -0
  500. package/dist/es/packages/loading/style-jrkf/loading.scss +5 -0
  501. package/dist/es/packages/loading/style-jrkf/style.css +5 -0
  502. package/dist/es/packages/lottie/types.js +1 -1
  503. package/dist/es/packages/menuitem/style/menuitem.scss +7 -2
  504. package/dist/es/packages/menuitem/style/style.css +7 -2
  505. package/dist/es/packages/menuitem/style-jmapp/menuitem.scss +7 -2
  506. package/dist/es/packages/menuitem/style-jmapp/style.css +7 -2
  507. package/dist/es/packages/menuitem/style-jrkf/menuitem.scss +7 -2
  508. package/dist/es/packages/menuitem/style-jrkf/style.css +7 -2
  509. package/dist/es/packages/navbar/style/navbar.scss +2 -0
  510. package/dist/es/packages/navbar/style/style.css +3 -1
  511. package/dist/es/packages/navbar/style-jmapp/navbar.scss +2 -0
  512. package/dist/es/packages/navbar/style-jmapp/style.css +2 -0
  513. package/dist/es/packages/navbar/style-jrkf/navbar.scss +2 -0
  514. package/dist/es/packages/navbar/style-jrkf/style.css +2 -0
  515. package/dist/es/packages/noticebar/style/noticebar.scss +4 -0
  516. package/dist/es/packages/noticebar/style/style.css +4 -0
  517. package/dist/es/packages/noticebar/style-jmapp/noticebar.scss +4 -0
  518. package/dist/es/packages/noticebar/style-jmapp/style.css +4 -0
  519. package/dist/es/packages/noticebar/style-jrkf/noticebar.scss +4 -0
  520. package/dist/es/packages/noticebar/style-jrkf/style.css +4 -0
  521. package/dist/es/packages/notify/style/notify.scss +5 -0
  522. package/dist/es/packages/notify/style/style.css +5 -0
  523. package/dist/es/packages/notify/style-jmapp/notify.scss +5 -0
  524. package/dist/es/packages/notify/style-jmapp/style.css +5 -0
  525. package/dist/es/packages/notify/style-jrkf/notify.scss +5 -0
  526. package/dist/es/packages/notify/style-jrkf/style.css +5 -0
  527. package/dist/es/packages/numberkeyboard/style/numberkeyboard.scss +2 -0
  528. package/dist/es/packages/numberkeyboard/style/style.css +5 -3
  529. package/dist/es/packages/numberkeyboard/style-jmapp/numberkeyboard.scss +2 -0
  530. package/dist/es/packages/numberkeyboard/style-jmapp/style.css +2 -0
  531. package/dist/es/packages/numberkeyboard/style-jrkf/numberkeyboard.scss +2 -0
  532. package/dist/es/packages/numberkeyboard/style-jrkf/style.css +2 -0
  533. package/dist/es/packages/picker/style/style.css +2 -2
  534. package/dist/es/packages/pickerview/pickerview.js +2 -1
  535. package/dist/es/packages/popover/style/popover.scss +2 -0
  536. package/dist/es/packages/popover/style/style.css +2 -0
  537. package/dist/es/packages/popover/style-jmapp/popover.scss +2 -0
  538. package/dist/es/packages/popover/style-jmapp/style.css +2 -0
  539. package/dist/es/packages/popover/style-jrkf/popover.scss +2 -0
  540. package/dist/es/packages/popover/style-jrkf/style.css +2 -0
  541. package/dist/es/packages/popup/popup.js +24 -3
  542. package/dist/es/packages/popup/style/popup.scss +4 -0
  543. package/dist/es/packages/popup/style/style.css +5 -2
  544. package/dist/es/packages/popup/style-jmapp/popup.scss +4 -0
  545. package/dist/es/packages/popup/style-jmapp/style.css +3 -0
  546. package/dist/es/packages/popup/style-jrkf/popup.scss +4 -0
  547. package/dist/es/packages/popup/style-jrkf/style.css +3 -0
  548. package/dist/es/packages/price/style/style.css +1 -1
  549. package/dist/es/packages/pulltorefresh/pulltorefresh.js +51 -41
  550. package/dist/es/packages/radio/index.js +1 -0
  551. package/dist/es/packages/radio/style/radio.scss +10 -0
  552. package/dist/es/packages/radio/style/style.css +11 -1
  553. package/dist/es/packages/radio/style-jmapp/radio.scss +10 -0
  554. package/dist/es/packages/radio/style-jmapp/style.css +10 -0
  555. package/dist/es/packages/radio/style-jrkf/radio.scss +10 -0
  556. package/dist/es/packages/radio/style-jrkf/style.css +10 -0
  557. package/dist/es/packages/range/style/range.scss +15 -2
  558. package/dist/es/packages/range/style/style.css +15 -1
  559. package/dist/es/packages/range/style-jmapp/range.scss +15 -2
  560. package/dist/es/packages/range/style-jmapp/style.css +15 -1
  561. package/dist/es/packages/range/style-jrkf/range.scss +15 -2
  562. package/dist/es/packages/range/style-jrkf/style.css +15 -1
  563. package/dist/es/packages/rate/style/rate.scss +5 -0
  564. package/dist/es/packages/rate/style/style.css +5 -0
  565. package/dist/es/packages/rate/style-jmapp/rate.scss +5 -0
  566. package/dist/es/packages/rate/style-jmapp/style.css +5 -0
  567. package/dist/es/packages/rate/style-jrkf/rate.scss +5 -0
  568. package/dist/es/packages/rate/style-jrkf/style.css +5 -0
  569. package/dist/es/packages/resultpage/style/resultpage.scss +5 -0
  570. package/dist/es/packages/resultpage/style/style.css +5 -0
  571. package/dist/es/packages/resultpage/style-jmapp/resultpage.scss +5 -0
  572. package/dist/es/packages/resultpage/style-jmapp/style.css +5 -0
  573. package/dist/es/packages/resultpage/style-jrkf/resultpage.scss +5 -0
  574. package/dist/es/packages/resultpage/style-jrkf/style.css +5 -0
  575. package/dist/es/packages/safearea/safearea.js +12 -3
  576. package/dist/es/packages/safearea/style/safearea.scss +6 -0
  577. package/dist/es/packages/safearea/style/style.css +2 -0
  578. package/dist/es/packages/safearea/style-jmapp/safearea.scss +6 -0
  579. package/dist/es/packages/safearea/style-jmapp/style.css +2 -0
  580. package/dist/es/packages/safearea/style-jrkf/safearea.scss +6 -0
  581. package/dist/es/packages/safearea/style-jrkf/style.css +2 -0
  582. package/dist/es/packages/searchbar/style/searchbar.scss +5 -0
  583. package/dist/es/packages/searchbar/style/style.css +5 -0
  584. package/dist/es/packages/searchbar/style-jmapp/searchbar.scss +5 -0
  585. package/dist/es/packages/searchbar/style-jmapp/style.css +5 -0
  586. package/dist/es/packages/searchbar/style-jrkf/searchbar.scss +5 -0
  587. package/dist/es/packages/searchbar/style-jrkf/style.css +5 -0
  588. package/dist/es/packages/segmented/style/segmented.scss +5 -0
  589. package/dist/es/packages/segmented/style/style.css +5 -0
  590. package/dist/es/packages/segmented/style-jmapp/segmented.scss +5 -0
  591. package/dist/es/packages/segmented/style-jmapp/style.css +5 -0
  592. package/dist/es/packages/segmented/style-jrkf/segmented.scss +5 -0
  593. package/dist/es/packages/segmented/style-jrkf/style.css +5 -0
  594. package/dist/es/packages/shortpassword/style/style.css +1 -1
  595. package/dist/es/packages/sidebar/style/style.css +1 -1
  596. package/dist/es/packages/sidebaritem/style/sidebaritem.scss +2 -0
  597. package/dist/es/packages/sidebaritem/style/style.css +2 -0
  598. package/dist/es/packages/sidebaritem/style-jmapp/sidebaritem.scss +2 -0
  599. package/dist/es/packages/sidebaritem/style-jmapp/style.css +2 -0
  600. package/dist/es/packages/sidebaritem/style-jrkf/sidebaritem.scss +2 -0
  601. package/dist/es/packages/sidebaritem/style-jrkf/style.css +2 -0
  602. package/dist/es/packages/skeleton/skeleton.js +4 -2
  603. package/dist/es/packages/skeleton/style/skeleton.scss +5 -0
  604. package/dist/es/packages/skeleton/style/style.css +5 -0
  605. package/dist/es/packages/skeleton/style-jmapp/skeleton.scss +5 -0
  606. package/dist/es/packages/skeleton/style-jmapp/style.css +5 -0
  607. package/dist/es/packages/skeleton/style-jrkf/skeleton.scss +5 -0
  608. package/dist/es/packages/skeleton/style-jrkf/style.css +5 -0
  609. package/dist/es/packages/space/style/space.scss +2 -0
  610. package/dist/es/packages/space/style/style.css +2 -0
  611. package/dist/es/packages/space/style-jmapp/space.scss +2 -0
  612. package/dist/es/packages/space/style-jmapp/style.css +2 -0
  613. package/dist/es/packages/space/style-jrkf/space.scss +2 -0
  614. package/dist/es/packages/space/style-jrkf/style.css +2 -0
  615. package/dist/es/packages/steps/style/steps.scss +9 -0
  616. package/dist/es/packages/steps/style/style.css +10 -1
  617. package/dist/es/packages/steps/style-jmapp/steps.scss +9 -0
  618. package/dist/es/packages/steps/style-jmapp/style.css +9 -0
  619. package/dist/es/packages/steps/style-jrkf/steps.scss +9 -0
  620. package/dist/es/packages/steps/style-jrkf/style.css +9 -0
  621. package/dist/es/packages/swiper/index.js +1 -0
  622. package/dist/es/packages/switch/style/style.css +10 -0
  623. package/dist/es/packages/switch/style/switch.scss +10 -0
  624. package/dist/es/packages/switch/style-jmapp/style.css +10 -0
  625. package/dist/es/packages/switch/style-jmapp/switch.scss +10 -0
  626. package/dist/es/packages/switch/style-jrkf/style.css +10 -0
  627. package/dist/es/packages/switch/style-jrkf/switch.scss +10 -0
  628. package/dist/es/packages/switch/switch.js +18 -8
  629. package/dist/es/packages/tabbaritem/style/style.css +2 -2
  630. package/dist/es/packages/table/style/style.css +13 -1
  631. package/dist/es/packages/table/style/table.scss +13 -1
  632. package/dist/es/packages/table/style-jmapp/style.css +13 -1
  633. package/dist/es/packages/table/style-jmapp/table.scss +13 -1
  634. package/dist/es/packages/table/style-jrkf/style.css +13 -1
  635. package/dist/es/packages/table/style-jrkf/table.scss +13 -1
  636. package/dist/es/packages/tabpane/style/style.css +2 -0
  637. package/dist/es/packages/tabpane/style/tabpane.scss +2 -0
  638. package/dist/es/packages/tabpane/style-jmapp/style.css +2 -0
  639. package/dist/es/packages/tabpane/style-jmapp/tabpane.scss +2 -0
  640. package/dist/es/packages/tabpane/style-jrkf/style.css +2 -0
  641. package/dist/es/packages/tabpane/style-jrkf/tabpane.scss +2 -0
  642. package/dist/es/packages/tabs/style/style.css +5 -1
  643. package/dist/es/packages/tabs/style/tabs.scss +4 -0
  644. package/dist/es/packages/tabs/style-jmapp/style.css +4 -0
  645. package/dist/es/packages/tabs/style-jmapp/tabs.scss +4 -0
  646. package/dist/es/packages/tabs/style-jrkf/style.css +4 -0
  647. package/dist/es/packages/tabs/style-jrkf/tabs.scss +4 -0
  648. package/dist/es/packages/tag/style/style.css +6 -1
  649. package/dist/es/packages/tag/style/tag.scss +6 -1
  650. package/dist/es/packages/tag/style-jmapp/style.css +6 -1
  651. package/dist/es/packages/tag/style-jmapp/tag.scss +6 -1
  652. package/dist/es/packages/tag/style-jrkf/style.css +6 -1
  653. package/dist/es/packages/tag/style-jrkf/tag.scss +6 -1
  654. package/dist/es/packages/textarea/textarea.js +3 -1
  655. package/dist/es/packages/timeselect/style/style.css +2 -0
  656. package/dist/es/packages/timeselect/style/timeselect.scss +2 -0
  657. package/dist/es/packages/timeselect/style-jmapp/style.css +2 -0
  658. package/dist/es/packages/timeselect/style-jmapp/timeselect.scss +2 -0
  659. package/dist/es/packages/timeselect/style-jrkf/style.css +2 -0
  660. package/dist/es/packages/timeselect/style-jrkf/timeselect.scss +2 -0
  661. package/dist/es/packages/toast/Notification.js +3 -1
  662. package/dist/es/packages/toast/style/style.css +10 -1
  663. package/dist/es/packages/toast/style/toast.scss +9 -0
  664. package/dist/es/packages/toast/style-jmapp/style.css +9 -0
  665. package/dist/es/packages/toast/style-jmapp/toast.scss +9 -0
  666. package/dist/es/packages/toast/style-jrkf/style.css +9 -0
  667. package/dist/es/packages/toast/style-jrkf/toast.scss +9 -0
  668. package/dist/es/packages/tour/style/style.css +2 -0
  669. package/dist/es/packages/tour/style/tour.scss +2 -0
  670. package/dist/es/packages/tour/style-jmapp/style.css +2 -0
  671. package/dist/es/packages/tour/style-jmapp/tour.scss +2 -0
  672. package/dist/es/packages/tour/style-jrkf/style.css +2 -0
  673. package/dist/es/packages/tour/style-jrkf/tour.scss +2 -0
  674. package/dist/es/packages/uploader/style/style.css +2 -0
  675. package/dist/es/packages/uploader/style/uploader.scss +2 -0
  676. package/dist/es/packages/uploader/style-jmapp/style.css +2 -0
  677. package/dist/es/packages/uploader/style-jmapp/uploader.scss +2 -0
  678. package/dist/es/packages/uploader/style-jrkf/style.css +2 -0
  679. package/dist/es/packages/uploader/style-jrkf/uploader.scss +2 -0
  680. package/dist/es/packages/uploader/uploader.js +37 -30
  681. package/dist/es/packages/virtuallist/style/style.css +2 -0
  682. package/dist/es/packages/virtuallist/style/virtuallist.scss +2 -0
  683. package/dist/es/packages/virtuallist/style-jmapp/style.css +2 -0
  684. package/dist/es/packages/virtuallist/style-jmapp/virtuallist.scss +2 -0
  685. package/dist/es/packages/virtuallist/style-jrkf/style.css +2 -0
  686. package/dist/es/packages/virtuallist/style-jrkf/virtuallist.scss +2 -0
  687. package/dist/es/packages/watermark/watermark.js +8 -4
  688. package/dist/es/types/spec/address/base.js +1 -1
  689. package/dist/es/types/spec/dialog/base.d.ts +8 -0
  690. package/dist/es/types/spec/input/base.d.ts +5 -1
  691. package/dist/es/types/spec/popup/base.d.ts +8 -0
  692. package/dist/es/types/spec/radio/base.d.ts +1 -0
  693. package/dist/es/types/spec/switch/base.d.ts +1 -0
  694. package/dist/es/types/spec/textarea/base.d.ts +1 -0
  695. package/dist/es/utils/event-mocker.js +12 -4
  696. package/dist/es/utils/render.js +6 -2
  697. package/dist/es/utils/taro/get-rect-by-id.js +13 -1
  698. package/dist/es/utils/taro/get-rect.js +20 -10
  699. package/dist/es/utils/taro/get-system-info.d.ts +3 -0
  700. package/dist/es/utils/taro/get-system-info.js +7 -4
  701. package/dist/es/utils/taro/platform.js +5 -5
  702. package/dist/es/utils/taro/px-transform.js +2 -2
  703. package/dist/nutui.react.umd.js +686 -422
  704. package/dist/style-jmapp.css +1 -1
  705. package/dist/style-jmapp.scss +39 -39
  706. package/dist/style-jrkf.css +1 -1
  707. package/dist/style-jrkf.scss +38 -38
  708. package/dist/style.css +1 -1
  709. package/dist/style.scss +38 -38
  710. package/dist/styles/theme-daojia.scss +369 -0
  711. package/dist/styles/theme-dark-daojia.scss +365 -0
  712. package/dist/styles/theme-dark.scss +2 -1
  713. package/dist/styles/theme-default.scss +4 -1
  714. package/dist/styles/themes/daojia.css +1 -0
  715. package/dist/styles/themes/dark-daojia.css +1 -0
  716. package/dist/styles/themes/dark.css +1 -1
  717. package/dist/styles/themes/default.css +1 -1
  718. package/dist/styles/variables-daojia.scss +2583 -0
  719. package/dist/styles/variables-jmapp.scss +42 -0
  720. package/dist/styles/variables-jrkf.scss +42 -0
  721. package/dist/styles/variables.scss +55 -12
  722. package/package.json +1 -1
  723. package/postinstall.js +9 -0
@@ -152,7 +152,9 @@
152
152
  var classnamesExports = classnames.exports;
153
153
  const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
154
154
  const n$b = {
155
- classPrefix: "nut-icon"
155
+ classPrefix: "nut-icon",
156
+ tag: "i",
157
+ fontClassName: "nutui-iconfont"
156
158
  };
157
159
  var re = { exports: {} }, Y = {};
158
160
  /**
@@ -415,18 +417,18 @@
415
417
  if (p2 && n2 && typeof p2.stack == "string") {
416
418
  for (var a = p2.stack.split(`
417
419
  `), v = n2.stack.split(`
418
- `), l2 = a.length - 1, c2 = v.length - 1; l2 >= 1 && c2 >= 0 && a[l2] !== v[c2]; )
419
- c2--;
420
- for (; l2 >= 1 && c2 >= 0; l2--, c2--)
421
- if (a[l2] !== v[c2]) {
422
- if (l2 !== 1 || c2 !== 1)
420
+ `), l2 = a.length - 1, c6 = v.length - 1; l2 >= 1 && c6 >= 0 && a[l2] !== v[c6]; )
421
+ c6--;
422
+ for (; l2 >= 1 && c6 >= 0; l2--, c6--)
423
+ if (a[l2] !== v[c6]) {
424
+ if (l2 !== 1 || c6 !== 1)
423
425
  do
424
- if (l2--, c2--, c2 < 0 || a[l2] !== v[c2]) {
426
+ if (l2--, c6--, c6 < 0 || a[l2] !== v[c6]) {
425
427
  var g = `
426
428
  ` + a[l2].replace(" at new ", " at ");
427
429
  return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, g), g;
428
430
  }
429
- while (l2 >= 1 && c2 >= 0);
431
+ while (l2 >= 1 && c6 >= 0);
430
432
  break;
431
433
  }
432
434
  }
@@ -611,8 +613,8 @@
611
613
  i2[s2] === void 0 && (i2[s2] = l2[s2]);
612
614
  }
613
615
  if (a || v) {
614
- var c2 = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
615
- a && Ze(i2, c2), v && Qe(i2, c2);
616
+ var c6 = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
617
+ a && Ze(i2, c6), v && Qe(i2, c6);
616
618
  }
617
619
  return er(e, a, v, o, n2, W.current, i2);
618
620
  }
@@ -741,9 +743,9 @@ Check the top-level render call using <` + t + ">.");
741
743
  var l2;
742
744
  e === null ? l2 = "null" : z(e) ? l2 = "array" : e !== void 0 && e.$$typeof === E ? (l2 = "<" + (b(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l2 = typeof e, u("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l2, a);
743
745
  }
744
- var c2 = rr(e, r, t, o, s2);
745
- if (c2 == null)
746
- return c2;
746
+ var c6 = rr(e, r, t, o, s2);
747
+ if (c6 == null)
748
+ return c6;
747
749
  if (i2) {
748
750
  var g = r.children;
749
751
  if (g !== void 0)
@@ -771,7 +773,7 @@ React keys must be passed directly to JSX without using spread:
771
773
  <%s key={someKey} {...props} />`, ee, O, cr, O), Ce[O + ee] = true;
772
774
  }
773
775
  }
774
- return e === R ? ir(c2) : ar(c2), c2;
776
+ return e === R ? ir(c6) : ar(c6), c6;
775
777
  }
776
778
  }
777
779
  function or(e, r, t) {
@@ -861,8 +863,8 @@ React keys must be passed directly to JSX without using spread:
861
863
  ) });
862
864
  };
863
865
  const d$e = (s2) => {
864
- const c2 = { ...hr, ...s2 };
865
- return /* @__PURE__ */ Er(Rr, { ...c2, name: c2.name || "Ask", viewBox: "0 0 1024 1024", children: [
866
+ const c6 = { ...hr, ...s2 };
867
+ return /* @__PURE__ */ Er(Rr, { ...c6, name: c6.name || "Ask", viewBox: "0 0 1024 1024", children: [
866
868
  /* @__PURE__ */ xe(
867
869
  "path",
868
870
  {
@@ -930,8 +932,8 @@ React keys must be passed directly to JSX without using spread:
930
932
  }
931
933
  ) });
932
934
  };
933
- const n$5 = (c2) => {
934
- const o = { ...hr, ...c2 };
935
+ const n$5 = (c6) => {
936
+ const o = { ...hr, ...c6 };
935
937
  return /* @__PURE__ */ xe(Rr, { ...o, name: o.name || "Close", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ xe(
936
938
  "path",
937
939
  {
@@ -941,8 +943,8 @@ React keys must be passed directly to JSX without using spread:
941
943
  ) });
942
944
  };
943
945
  const d$d = (a) => {
944
- const c2 = { ...hr, ...a };
945
- return /* @__PURE__ */ Er(Rr, { ...c2, name: c2.name || "Del", viewBox: "0 0 1024 1024", children: [
946
+ const c6 = { ...hr, ...a };
947
+ return /* @__PURE__ */ Er(Rr, { ...c6, name: c6.name || "Del", viewBox: "0 0 1024 1024", children: [
946
948
  /* @__PURE__ */ xe(
947
949
  "path",
948
950
  {
@@ -1061,8 +1063,8 @@ React keys must be passed directly to JSX without using spread:
1061
1063
  ) });
1062
1064
  };
1063
1065
  const m$1 = (o) => {
1064
- const c2 = { ...hr, ...o };
1065
- return /* @__PURE__ */ Er(Rr, { ...c2, name: c2.name || "Location", viewBox: "0 0 1024 1024", children: [
1066
+ const c6 = { ...hr, ...o };
1067
+ return /* @__PURE__ */ Er(Rr, { ...c6, name: c6.name || "Location", viewBox: "0 0 1024 1024", children: [
1066
1068
  /* @__PURE__ */ xe(
1067
1069
  "path",
1068
1070
  {
@@ -1111,8 +1113,8 @@ React keys must be passed directly to JSX without using spread:
1111
1113
  ) });
1112
1114
  };
1113
1115
  const n$3 = (r) => {
1114
- const c2 = { ...hr, ...r };
1115
- return /* @__PURE__ */ xe(Rr, { ...c2, name: c2.name || "Notice", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ xe(
1116
+ const c6 = { ...hr, ...r };
1117
+ return /* @__PURE__ */ xe(Rr, { ...c6, name: c6.name || "Notice", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ xe(
1116
1118
  "path",
1117
1119
  {
1118
1120
  d: "M544 21.33C544 9.6 534.4 0 522.67 0h-21.34C489.6 0 480 9.6 480 21.33v65.5c-179.41 16.21-320 167.04-320 350.5v226.35c0 26.45-6.19 52.69-17.92 76.37l-36.48 72.96c-14.29 28.37 6.4 61.65 38.19 61.66h736.42c31.79 0 52.27-33.28 38.19-61.66l-36.48-72.96A172.4 172.4 0 0 1 864 663.68V437.33c0-183.68-140.59-334.51-320-350.5zm-32 128c159.15 0 288 128.85 288 288v226.35c0 36.48 8.53 72.32 24.75 104.96l21.12 42.03H178.13l21.12-42.03C215.46 736 224 700.16 224 663.68V437.33c0-159.15 128.85-288 288-288M405.33 1024c-11.73 0-21.33-9.6-21.33-21.33v-21.34c0-11.73 9.6-21.33 21.33-21.33h213.34c11.73 0 21.33 9.6 21.33 21.33v21.34c0 11.73-9.6 21.33-21.33 21.33z",
@@ -1121,8 +1123,8 @@ React keys must be passed directly to JSX without using spread:
1121
1123
  ) });
1122
1124
  };
1123
1125
  const m = (o) => {
1124
- const c2 = { ...hr, ...o };
1125
- return /* @__PURE__ */ Er(Rr, { ...c2, name: c2.name || "Photograph", viewBox: "0 0 1024 1024", children: [
1126
+ const c6 = { ...hr, ...o };
1127
+ return /* @__PURE__ */ Er(Rr, { ...c6, name: c6.name || "Photograph", viewBox: "0 0 1024 1024", children: [
1126
1128
  /* @__PURE__ */ xe(
1127
1129
  "path",
1128
1130
  {
@@ -1160,8 +1162,8 @@ React keys must be passed directly to JSX without using spread:
1160
1162
  }
1161
1163
  ) });
1162
1164
  };
1163
- const n$1 = (c2) => {
1164
- const a = { ...hr, ...c2 };
1165
+ const n$1 = (c6) => {
1166
+ const a = { ...hr, ...c6 };
1165
1167
  return /* @__PURE__ */ Er(Rr, { ...a, name: a.name || "Service", viewBox: "0 0 1024 1024", children: [
1166
1168
  /* @__PURE__ */ xe(
1167
1169
  "path",
@@ -1211,8 +1213,8 @@ React keys must be passed directly to JSX without using spread:
1211
1213
  ] });
1212
1214
  };
1213
1215
  const p$1 = (o) => {
1214
- const c2 = { ...hr, ...o };
1215
- return /* @__PURE__ */ Er(Rr, { ...c2, name: c2.name || "Tips", viewBox: "0 0 1024 1024", children: [
1216
+ const c6 = { ...hr, ...o };
1217
+ return /* @__PURE__ */ Er(Rr, { ...c6, name: c6.name || "Tips", viewBox: "0 0 1024 1024", children: [
1216
1218
  /* @__PURE__ */ xe(
1217
1219
  "path",
1218
1220
  {
@@ -1790,6 +1792,7 @@ React keys must be passed directly to JSX without using spread:
1790
1792
  select: "请选择",
1791
1793
  edit: "编辑",
1792
1794
  reset: "重置",
1795
+ close: "关闭",
1793
1796
  video: {
1794
1797
  errorTip: "视频加载失败",
1795
1798
  clickRetry: "点击重试"
@@ -1935,7 +1938,8 @@ React keys must be passed directly to JSX without using spread:
1935
1938
  },
1936
1939
  watermark: {
1937
1940
  errorCanvasTips: "当前环境不支持Canvas"
1938
- }
1941
+ },
1942
+ mask: "蒙层"
1939
1943
  };
1940
1944
  function bound(position2, min, max) {
1941
1945
  var ret = position2;
@@ -1948,7 +1952,7 @@ React keys must be passed directly to JSX without using spread:
1948
1952
  return ret;
1949
1953
  }
1950
1954
  var canUseDom = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
1951
- var clamp$1 = function(num, min, max) {
1955
+ var clamp$2 = function(num, min, max) {
1952
1956
  return Math.min(Math.max(num, min), max);
1953
1957
  };
1954
1958
  function _array_like_to_array(arr, len) {
@@ -2655,7 +2659,10 @@ React keys must be passed directly to JSX without using spread:
2655
2659
  return unmountComponentAtNode(container);
2656
2660
  }
2657
2661
  function concurrentUnmount(container) {
2658
- return _async_to_generator(function() {
2662
+ return _concurrentUnmount.apply(this, arguments);
2663
+ }
2664
+ function _concurrentUnmount() {
2665
+ _concurrentUnmount = _async_to_generator(function(container) {
2659
2666
  return __generator(this, function(_state) {
2660
2667
  return [
2661
2668
  2,
@@ -2666,7 +2673,8 @@ React keys must be passed directly to JSX without using spread:
2666
2673
  })
2667
2674
  ];
2668
2675
  });
2669
- })();
2676
+ });
2677
+ return _concurrentUnmount.apply(this, arguments);
2670
2678
  }
2671
2679
  function unmount(container) {
2672
2680
  if (createRoot) {
@@ -3053,7 +3061,7 @@ React keys must be passed directly to JSX without using spread:
3053
3061
  if (null == r) return {};
3054
3062
  var t = {};
3055
3063
  for (var n2 in r) if ({}.hasOwnProperty.call(r, n2)) {
3056
- if (-1 !== e.indexOf(n2)) continue;
3064
+ if (e.includes(n2)) continue;
3057
3065
  t[n2] = r[n2];
3058
3066
  }
3059
3067
  return t;
@@ -3081,12 +3089,12 @@ React keys must be passed directly to JSX without using spread:
3081
3089
  function requireReactIs_production_min() {
3082
3090
  if (hasRequiredReactIs_production_min) return reactIs_production_min;
3083
3091
  hasRequiredReactIs_production_min = 1;
3084
- var b = "function" === typeof Symbol && Symbol.for, c2 = b ? Symbol.for("react.element") : 60103, d2 = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l2 = b ? Symbol.for("react.async_mode") : 60111, m2 = b ? Symbol.for("react.concurrent_mode") : 60111, n2 = b ? Symbol.for("react.forward_ref") : 60112, p2 = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
3092
+ var b = "function" === typeof Symbol && Symbol.for, c6 = b ? Symbol.for("react.element") : 60103, d2 = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l2 = b ? Symbol.for("react.async_mode") : 60111, m2 = b ? Symbol.for("react.concurrent_mode") : 60111, n2 = b ? Symbol.for("react.forward_ref") : 60112, p2 = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
3085
3093
  function z(a) {
3086
3094
  if ("object" === typeof a && null !== a) {
3087
3095
  var u = a.$$typeof;
3088
3096
  switch (u) {
3089
- case c2:
3097
+ case c6:
3090
3098
  switch (a = a.type, a) {
3091
3099
  case l2:
3092
3100
  case m2:
@@ -3119,7 +3127,7 @@ React keys must be passed directly to JSX without using spread:
3119
3127
  reactIs_production_min.ConcurrentMode = m2;
3120
3128
  reactIs_production_min.ContextConsumer = k;
3121
3129
  reactIs_production_min.ContextProvider = h;
3122
- reactIs_production_min.Element = c2;
3130
+ reactIs_production_min.Element = c6;
3123
3131
  reactIs_production_min.ForwardRef = n2;
3124
3132
  reactIs_production_min.Fragment = e;
3125
3133
  reactIs_production_min.Lazy = t;
@@ -3139,7 +3147,7 @@ React keys must be passed directly to JSX without using spread:
3139
3147
  return z(a) === h;
3140
3148
  };
3141
3149
  reactIs_production_min.isElement = function(a) {
3142
- return "object" === typeof a && null !== a && a.$$typeof === c2;
3150
+ return "object" === typeof a && null !== a && a.$$typeof === c6;
3143
3151
  };
3144
3152
  reactIs_production_min.isForwardRef = function(a) {
3145
3153
  return z(a) === n2;
@@ -4473,13 +4481,13 @@ React keys must be passed directly to JSX without using spread:
4473
4481
  Transition.ENTERED = ENTERED;
4474
4482
  Transition.EXITING = EXITING;
4475
4483
  var _addClass = function addClass$1(node, classes) {
4476
- return node && classes && classes.split(" ").forEach(function(c2) {
4477
- return addClass(node, c2);
4484
+ return node && classes && classes.split(" ").forEach(function(c6) {
4485
+ return addClass(node, c6);
4478
4486
  });
4479
4487
  };
4480
4488
  var removeClass = function removeClass2(node, classes) {
4481
- return node && classes && classes.split(" ").forEach(function(c2) {
4482
- return removeClass$1(node, c2);
4489
+ return node && classes && classes.split(" ").forEach(function(c6) {
4490
+ return removeClass$1(node, c6);
4483
4491
  });
4484
4492
  };
4485
4493
  var CSSTransition = /* @__PURE__ */ function(_React$Component) {
@@ -5232,9 +5240,15 @@ React keys must be passed directly to JSX without using spread:
5232
5240
  Row.displayName = "NutRow";
5233
5241
  var classPrefix$p = "nut-safe-area";
5234
5242
  var SafeArea = function(props) {
5235
- return /* @__PURE__ */ React.createElement("div", {
5236
- className: classNames(classPrefix$p, "".concat(classPrefix$p, "-position-").concat(props.position))
5237
- });
5243
+ var className = props.className, style = props.style, position2 = props.position, rest = _object_without_properties(props, [
5244
+ "className",
5245
+ "style",
5246
+ "position"
5247
+ ]);
5248
+ return /* @__PURE__ */ React.createElement("div", _object_spread_props(_object_spread({}, rest), {
5249
+ className: classNames(classPrefix$p, "".concat(classPrefix$p, "-position-").concat(position2), className),
5250
+ style
5251
+ }));
5238
5252
  };
5239
5253
  SafeArea.displayName = "NutSafeArea";
5240
5254
  var prefixCls$1 = "nut-space";
@@ -5611,7 +5625,7 @@ React keys must be passed directly to JSX without using spread:
5611
5625
  }, children));
5612
5626
  };
5613
5627
  BackTop.displayName = "NutBackTop";
5614
- function clamp(v, min, max) {
5628
+ function clamp$1(v, min, max) {
5615
5629
  return Math.max(min, Math.min(v, max));
5616
5630
  }
5617
5631
  const V = {
@@ -5639,7 +5653,7 @@ React keys must be passed directly to JSX without using spread:
5639
5653
  return distance * dimension * constant / (dimension + constant * distance);
5640
5654
  }
5641
5655
  function rubberbandIfOutOfBounds(position2, min, max, constant = 0.15) {
5642
- if (constant === 0) return clamp(position2, min, max);
5656
+ if (constant === 0) return clamp$1(position2, min, max);
5643
5657
  if (position2 < min) return -rubberband(min - position2, max - min, constant) + min;
5644
5658
  if (position2 > max) return +rubberband(position2 - max, max - min, constant) + max;
5645
5659
  return position2;
@@ -6200,8 +6214,8 @@ React keys must be passed directly to JSX without using spread:
6200
6214
  const DISPLACEMENT = 10;
6201
6215
  const KEYS_DELTA_MAP = {
6202
6216
  ArrowRight: (factor = 1) => [DISPLACEMENT * factor, 0],
6203
- ArrowLeft: (factor = 1) => [-DISPLACEMENT * factor, 0],
6204
- ArrowUp: (factor = 1) => [0, -DISPLACEMENT * factor],
6217
+ ArrowLeft: (factor = 1) => [-10 * factor, 0],
6218
+ ArrowUp: (factor = 1) => [0, -10 * factor],
6205
6219
  ArrowDown: (factor = 1) => [0, DISPLACEMENT * factor]
6206
6220
  };
6207
6221
  class DragEngine extends CoordinatesEngine {
@@ -7733,6 +7747,7 @@ Please add \`${key2}Action\` when creating your handler.`);
7733
7747
  const index2 = arr.findIndex(test);
7734
7748
  return index2 < 0 ? arr.length : index2;
7735
7749
  }
7750
+ const clamp = (min, max, v) => Math.min(Math.max(v, min), max);
7736
7751
  const colors = {
7737
7752
  transparent: 0,
7738
7753
  aliceblue: 4042850303,
@@ -8026,8 +8041,63 @@ Please add \`${key2}Action\` when creating your handler.`);
8026
8041
  for (var i2 = 1; i2 < inputRange.length - 1; ++i2) if (inputRange[i2] >= input) break;
8027
8042
  return i2 - 1;
8028
8043
  }
8044
+ const steps = (steps2, direction = "end") => (progress) => {
8045
+ progress = direction === "end" ? Math.min(progress, 0.999) : Math.max(progress, 1e-3);
8046
+ const expanded = progress * steps2;
8047
+ const rounded = direction === "end" ? Math.floor(expanded) : Math.ceil(expanded);
8048
+ return clamp(0, 1, rounded / steps2);
8049
+ };
8050
+ const c1 = 1.70158;
8051
+ const c2 = c1 * 1.525;
8052
+ const c3 = c1 + 1;
8053
+ const c4 = 2 * Math.PI / 3;
8054
+ const c5 = 2 * Math.PI / 4.5;
8055
+ const bounceOut = (x) => {
8056
+ const n1 = 7.5625;
8057
+ const d1 = 2.75;
8058
+ if (x < 1 / d1) {
8059
+ return n1 * x * x;
8060
+ } else if (x < 2 / d1) {
8061
+ return n1 * (x -= 1.5 / d1) * x + 0.75;
8062
+ } else if (x < 2.5 / d1) {
8063
+ return n1 * (x -= 2.25 / d1) * x + 0.9375;
8064
+ } else {
8065
+ return n1 * (x -= 2.625 / d1) * x + 0.984375;
8066
+ }
8067
+ };
8029
8068
  const easings = {
8030
- linear: (x) => x
8069
+ linear: (x) => x,
8070
+ easeInQuad: (x) => x * x,
8071
+ easeOutQuad: (x) => 1 - (1 - x) * (1 - x),
8072
+ easeInOutQuad: (x) => x < 0.5 ? 2 * x * x : 1 - Math.pow(-2 * x + 2, 2) / 2,
8073
+ easeInCubic: (x) => x * x * x,
8074
+ easeOutCubic: (x) => 1 - Math.pow(1 - x, 3),
8075
+ easeInOutCubic: (x) => x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2,
8076
+ easeInQuart: (x) => x * x * x * x,
8077
+ easeOutQuart: (x) => 1 - Math.pow(1 - x, 4),
8078
+ easeInOutQuart: (x) => x < 0.5 ? 8 * x * x * x * x : 1 - Math.pow(-2 * x + 2, 4) / 2,
8079
+ easeInQuint: (x) => x * x * x * x * x,
8080
+ easeOutQuint: (x) => 1 - Math.pow(1 - x, 5),
8081
+ easeInOutQuint: (x) => x < 0.5 ? 16 * x * x * x * x * x : 1 - Math.pow(-2 * x + 2, 5) / 2,
8082
+ easeInSine: (x) => 1 - Math.cos(x * Math.PI / 2),
8083
+ easeOutSine: (x) => Math.sin(x * Math.PI / 2),
8084
+ easeInOutSine: (x) => -(Math.cos(Math.PI * x) - 1) / 2,
8085
+ easeInExpo: (x) => x === 0 ? 0 : Math.pow(2, 10 * x - 10),
8086
+ easeOutExpo: (x) => x === 1 ? 1 : 1 - Math.pow(2, -10 * x),
8087
+ easeInOutExpo: (x) => x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? Math.pow(2, 20 * x - 10) / 2 : (2 - Math.pow(2, -20 * x + 10)) / 2,
8088
+ easeInCirc: (x) => 1 - Math.sqrt(1 - Math.pow(x, 2)),
8089
+ easeOutCirc: (x) => Math.sqrt(1 - Math.pow(x - 1, 2)),
8090
+ easeInOutCirc: (x) => x < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * x, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * x + 2, 2)) + 1) / 2,
8091
+ easeInBack: (x) => c3 * x * x * x - c1 * x * x,
8092
+ easeOutBack: (x) => 1 + c3 * Math.pow(x - 1, 3) + c1 * Math.pow(x - 1, 2),
8093
+ easeInOutBack: (x) => x < 0.5 ? Math.pow(2 * x, 2) * ((c2 + 1) * 2 * x - c2) / 2 : (Math.pow(2 * x - 2, 2) * ((c2 + 1) * (x * 2 - 2) + c2) + 2) / 2,
8094
+ easeInElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : -Math.pow(2, 10 * x - 10) * Math.sin((x * 10 - 10.75) * c4),
8095
+ easeOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : Math.pow(2, -10 * x) * Math.sin((x * 10 - 0.75) * c4) + 1,
8096
+ easeInOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? -(Math.pow(2, 20 * x - 10) * Math.sin((20 * x - 11.125) * c5)) / 2 : Math.pow(2, -20 * x + 10) * Math.sin((20 * x - 11.125) * c5) / 2 + 1,
8097
+ easeInBounce: (x) => 1 - bounceOut(1 - x),
8098
+ easeOutBounce: bounceOut,
8099
+ easeInOutBounce: (x) => x < 0.5 ? (1 - bounceOut(1 - 2 * x)) / 2 : (1 + bounceOut(2 * x - 1)) / 2,
8100
+ steps
8031
8101
  };
8032
8102
  function _extends$3() {
8033
8103
  _extends$3 = Object.assign ? Object.assign.bind() : function(target) {
@@ -8219,7 +8289,7 @@ Please add \`${key2}Action\` when creating your handler.`);
8219
8289
  const prevCache = committed.current;
8220
8290
  let cache = prevCache;
8221
8291
  if (cache) {
8222
- const useCache = Boolean(inputs && cache.inputs && areInputsEqual(inputs, cache.inputs));
8292
+ const useCache = Boolean(cache.inputs && areInputsEqual(inputs, cache.inputs));
8223
8293
  if (!useCache) {
8224
8294
  cache = {
8225
8295
  inputs,
@@ -8681,6 +8751,26 @@ Please add \`${key2}Action\` when creating your handler.`);
8681
8751
  default: {
8682
8752
  tension: 170,
8683
8753
  friction: 26
8754
+ },
8755
+ gentle: {
8756
+ tension: 120,
8757
+ friction: 14
8758
+ },
8759
+ wobbly: {
8760
+ tension: 180,
8761
+ friction: 12
8762
+ },
8763
+ stiff: {
8764
+ tension: 210,
8765
+ friction: 20
8766
+ },
8767
+ slow: {
8768
+ tension: 280,
8769
+ friction: 60
8770
+ },
8771
+ molasses: {
8772
+ tension: 280,
8773
+ friction: 120
8684
8774
  }
8685
8775
  };
8686
8776
  const defaults = _extends$1({}, config$1.default, {
@@ -9032,8 +9122,8 @@ Please add \`${key2}Action\` when creating your handler.`);
9032
9122
  const hasAnimated = (target) => (target[$P] & HAS_ANIMATED) > 0;
9033
9123
  const isAnimating = (target) => (target[$P] & IS_ANIMATING) > 0;
9034
9124
  const isPaused = (target) => (target[$P] & IS_PAUSED) > 0;
9035
- const setActiveBit = (target, active2) => active2 ? target[$P] |= IS_ANIMATING | HAS_ANIMATED : target[$P] &= ~IS_ANIMATING;
9036
- const setPausedBit = (target, paused) => paused ? target[$P] |= IS_PAUSED : target[$P] &= ~IS_PAUSED;
9125
+ const setActiveBit = (target, active2) => active2 ? target[$P] |= IS_ANIMATING | HAS_ANIMATED : target[$P] &= -3;
9126
+ const setPausedBit = (target, paused) => paused ? target[$P] |= IS_PAUSED : target[$P] &= -5;
9037
9127
  class SpringValue extends FrameValue {
9038
9128
  constructor(arg1, arg2) {
9039
9129
  super();
@@ -11588,8 +11678,9 @@ Please add \`${key2}Action\` when creating your handler.`);
11588
11678
  });
11589
11679
  var _zIndex = 1100;
11590
11680
  var Popup = function(props) {
11591
- var _$_object_spread = _object_spread({}, defaultProps$1d, props), children = _$_object_spread.children, visible = _$_object_spread.visible, overlay = _$_object_spread.overlay, closeOnOverlayClick = _$_object_spread.closeOnOverlayClick, overlayStyle = _$_object_spread.overlayStyle, overlayClassName = _$_object_spread.overlayClassName, zIndex = _$_object_spread.zIndex, lockScroll = _$_object_spread.lockScroll, duration = _$_object_spread.duration, closeable = _$_object_spread.closeable, closeIconPosition = _$_object_spread.closeIconPosition, closeIcon = _$_object_spread.closeIcon, left = _$_object_spread.left, title = _$_object_spread.title, description = _$_object_spread.description, style = _$_object_spread.style, transition = _$_object_spread.transition, round = _$_object_spread.round, position2 = _$_object_spread.position, className = _$_object_spread.className, destroyOnClose = _$_object_spread.destroyOnClose, portal = _$_object_spread.portal, resizable = _$_object_spread.resizable, minHeight = _$_object_spread.minHeight, onOpen = _$_object_spread.onOpen, onClose = _$_object_spread.onClose, onOverlayClick = _$_object_spread.onOverlayClick, onCloseIconClick = _$_object_spread.onCloseIconClick, afterShow = _$_object_spread.afterShow, afterClose = _$_object_spread.afterClose, onClick = _$_object_spread.onClick, onTouchStart = _$_object_spread.onTouchStart, onTouchMove = _$_object_spread.onTouchMove, onTouchEnd = _$_object_spread.onTouchEnd;
11681
+ var _$_object_spread = _object_spread({}, defaultProps$1d, props), children = _$_object_spread.children, visible = _$_object_spread.visible, overlay = _$_object_spread.overlay, closeOnOverlayClick = _$_object_spread.closeOnOverlayClick, overlayStyle = _$_object_spread.overlayStyle, overlayClassName = _$_object_spread.overlayClassName, zIndex = _$_object_spread.zIndex, lockScroll = _$_object_spread.lockScroll, duration = _$_object_spread.duration, closeable = _$_object_spread.closeable, closeIconPosition = _$_object_spread.closeIconPosition, closeIcon = _$_object_spread.closeIcon, left = _$_object_spread.left, title = _$_object_spread.title, top = _$_object_spread.top, description = _$_object_spread.description, style = _$_object_spread.style, transition = _$_object_spread.transition, round = _$_object_spread.round, position2 = _$_object_spread.position, className = _$_object_spread.className, destroyOnClose = _$_object_spread.destroyOnClose, portal = _$_object_spread.portal, resizable = _$_object_spread.resizable, minHeight = _$_object_spread.minHeight, onOpen = _$_object_spread.onOpen, onClose = _$_object_spread.onClose, onOverlayClick = _$_object_spread.onOverlayClick, onCloseIconClick = _$_object_spread.onCloseIconClick, afterShow = _$_object_spread.afterShow, afterClose = _$_object_spread.afterClose, onClick = _$_object_spread.onClick, onTouchStart = _$_object_spread.onTouchStart, onTouchMove = _$_object_spread.onTouchMove, onTouchEnd = _$_object_spread.onTouchEnd, closeAriaLabel = _$_object_spread.closeAriaLabel;
11592
11682
  var nodeRef = React.useRef(null);
11683
+ var topNodeRef = React.useRef(null);
11593
11684
  var innerIndex = zIndex || _zIndex;
11594
11685
  var _useState = _sliced_to_array(React.useState(innerIndex), 2), index2 = _useState[0], setIndex = _useState[1];
11595
11686
  var _useState1 = _sliced_to_array(React.useState(visible), 2), innerVisible = _useState1[0], setInnerVisible = _useState1[1];
@@ -11600,6 +11691,7 @@ Please add \`${key2}Action\` when creating your handler.`);
11600
11691
  var heightRef = React.useRef(0);
11601
11692
  var defaultHeightRef = React.useRef(0);
11602
11693
  var isTouching = React.useRef(false);
11694
+ var locale = useConfig().locale;
11603
11695
  useLockScroll(nodeRef, innerVisible && lockScroll);
11604
11696
  var classPrefix2 = "nut-popup";
11605
11697
  var overlayStyles = _object_spread({}, overlayStyle);
@@ -11622,6 +11714,14 @@ Please add \`${key2}Action\` when creating your handler.`);
11622
11714
  }
11623
11715
  onOpen && onOpen();
11624
11716
  };
11717
+ React.useEffect(function() {
11718
+ if (topNodeRef.current && nodeRef.current) {
11719
+ var _nodeRef_current;
11720
+ topNodeRef.current.style.bottom = "".concat((_nodeRef_current = nodeRef.current) === null || _nodeRef_current === void 0 ? void 0 : _nodeRef_current.clientHeight, "px");
11721
+ }
11722
+ }, [
11723
+ innerVisible
11724
+ ]);
11625
11725
  var close = function() {
11626
11726
  if (innerVisible) {
11627
11727
  setInnerVisible(false);
@@ -11646,9 +11746,19 @@ Please add \`${key2}Action\` when creating your handler.`);
11646
11746
  var closeClasses = classNames("".concat(classPrefix2, "-title-right"), "".concat(classPrefix2, "-title-right-").concat(closeIconPosition));
11647
11747
  return /* @__PURE__ */ React.createElement(React.Fragment, null, closeable && /* @__PURE__ */ React.createElement("div", {
11648
11748
  className: closeClasses,
11649
- onClick: handleCloseIconClick
11749
+ onClick: handleCloseIconClick,
11750
+ role: "button",
11751
+ "aria-label": closeAriaLabel || locale.close,
11752
+ tabIndex: -1
11650
11753
  }, /* @__PURE__ */ React.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ React.createElement(n$5, null)));
11651
11754
  };
11755
+ var renderTop = function() {
11756
+ if (!top) return null;
11757
+ return /* @__PURE__ */ React.createElement("div", {
11758
+ className: "".concat(classPrefix2, "-bottom-top"),
11759
+ ref: topNodeRef
11760
+ }, top);
11761
+ };
11652
11762
  var renderTitle = function() {
11653
11763
  if (left || title || description) {
11654
11764
  return /* @__PURE__ */ React.createElement("div", {
@@ -11715,7 +11825,7 @@ Please add \`${key2}Action\` when creating your handler.`);
11715
11825
  onTouchMove: handleTouchMove,
11716
11826
  onTouchEnd: handleTouchEnd,
11717
11827
  onTouchCancel: handleTouchEnd
11718
- }, renderTitle(), showChildren && children));
11828
+ }, renderTop(), renderTitle(), showChildren && children));
11719
11829
  };
11720
11830
  var renderNode = function() {
11721
11831
  return /* @__PURE__ */ React.createElement(React.Fragment, null, overlay && /* @__PURE__ */ React.createElement(Overlay, {
@@ -11982,8 +12092,8 @@ Please add \`${key2}Action\` when creating your handler.`);
11982
12092
  outerOptions
11983
12093
  ]);
11984
12094
  React.useEffect(function() {
11985
- var load = function() {
11986
- return _async_to_generator(function() {
12095
+ var load = /* @__PURE__ */ function() {
12096
+ var _ref = _async_to_generator(function() {
11987
12097
  var parent2, error;
11988
12098
  return __generator(this, function(_state) {
11989
12099
  switch (_state.label) {
@@ -12001,8 +12111,8 @@ Please add \`${key2}Action\` when creating your handler.`);
12001
12111
  ]);
12002
12112
  return [
12003
12113
  4,
12004
- innerValue.reduce(function(promise, val2, key2) {
12005
- return _async_to_generator(function() {
12114
+ innerValue.reduce(/* @__PURE__ */ function() {
12115
+ var _ref2 = _async_to_generator(function(promise, val2, key2) {
12006
12116
  var pane, parent3, node;
12007
12117
  return __generator(this, function(_state2) {
12008
12118
  switch (_state2.label) {
@@ -12042,8 +12152,11 @@ Please add \`${key2}Action\` when creating your handler.`);
12042
12152
  ];
12043
12153
  }
12044
12154
  });
12045
- })();
12046
- }, Promise.resolve(parent2))
12155
+ });
12156
+ return function(promise, val2, key2) {
12157
+ return _ref2.apply(this, arguments);
12158
+ };
12159
+ }(), Promise.resolve(parent2))
12047
12160
  ];
12048
12161
  case 2:
12049
12162
  _state.sent();
@@ -12065,14 +12178,17 @@ Please add \`${key2}Action\` when creating your handler.`);
12065
12178
  ];
12066
12179
  }
12067
12180
  });
12068
- })();
12069
- };
12181
+ });
12182
+ return function load2() {
12183
+ return _ref.apply(this, arguments);
12184
+ };
12185
+ }();
12070
12186
  if (lazy) load();
12071
12187
  }, [
12072
12188
  lazy
12073
12189
  ]);
12074
- var chooseItem = function(pane, levelIndex) {
12075
- return _async_to_generator(function() {
12190
+ var chooseItem = /* @__PURE__ */ function() {
12191
+ var _ref = _async_to_generator(function(pane, levelIndex) {
12076
12192
  var nextValue, nextPathNodes, _props_onPathChange, asyncOptions;
12077
12193
  return __generator(this, function(_state) {
12078
12194
  switch (_state.label) {
@@ -12124,8 +12240,11 @@ Please add \`${key2}Action\` when creating your handler.`);
12124
12240
  ];
12125
12241
  }
12126
12242
  });
12127
- })();
12128
- };
12243
+ });
12244
+ return function chooseItem2(pane, levelIndex) {
12245
+ return _ref.apply(this, arguments);
12246
+ };
12247
+ }();
12129
12248
  var renderCascaderItem = function(item, levelIndex) {
12130
12249
  var _item_pane;
12131
12250
  return (_item_pane = item.pane) === null || _item_pane === void 0 ? void 0 : _item_pane.map(function(pane, index2) {
@@ -13752,9 +13871,9 @@ Please add \`${key2}Action\` when creating your handler.`);
13752
13871
  var isMid = function(day) {
13753
13872
  if (type2 === "range" || type2 === "week") {
13754
13873
  if (innerValue.length === 2) {
13755
- var c1 = compareDay(innerValue[0], day);
13756
- var c2 = compareDay(day, innerValue[1]);
13757
- if (c1 && c1 < 0 && c2 && c2 < 0) {
13874
+ var c12 = compareDay(innerValue[0], day);
13875
+ var c22 = compareDay(day, innerValue[1]);
13876
+ if (c12 && c12 < 0 && c22 && c22 < 0) {
13758
13877
  return true;
13759
13878
  }
13760
13879
  }
@@ -13793,22 +13912,22 @@ Please add \`${key2}Action\` when creating your handler.`);
13793
13912
  };
13794
13913
  var jumpTo = function(year, month2) {
13795
13914
  if (startDate) {
13796
- var c2 = compareDay({
13915
+ var c6 = compareDay({
13797
13916
  year,
13798
13917
  month: month2,
13799
13918
  date: 31
13800
13919
  }, convertDateToDay(startDate));
13801
- if (c2 && c2 < 0) {
13920
+ if (c6 && c6 < 0) {
13802
13921
  return;
13803
13922
  }
13804
13923
  }
13805
13924
  if (endDate) {
13806
- var c1 = compareDay({
13925
+ var c12 = compareDay({
13807
13926
  year,
13808
13927
  month: month2,
13809
13928
  date: 1
13810
13929
  }, convertDateToDay(endDate));
13811
- if (c1 && c1 > 0) {
13930
+ if (c12 && c12 > 0) {
13812
13931
  return;
13813
13932
  }
13814
13933
  }
@@ -14129,7 +14248,7 @@ Please add \`${key2}Action\` when creating your handler.`);
14129
14248
  };
14130
14249
  var _obj;
14131
14250
  return /* @__PURE__ */ React.createElement("div", _object_spread_props(_object_spread({
14132
- className: classNames(classPrefix$j, (_obj = {}, _define_property(_obj, "".concat(classPrefix$j, "-reverse"), labelPosition === "left"), _define_property(_obj, "nut-checkbox-list-item", ctx2 === null || ctx2 === void 0 ? void 0 : ctx2.list), _obj), className)
14251
+ className: classNames(classPrefix$j, (_obj = {}, _define_property(_obj, "".concat(classPrefix$j, "-reverse"), labelPosition === "left"), _define_property(_obj, "nut-checkbox-list-item", ctx2 === null || ctx2 === void 0 ? void 0 : ctx2.list), _define_property(_obj, "".concat(classPrefix$j, "-active"), innerChecked), _obj), className)
14133
14252
  }, rest), {
14134
14253
  onClick: handleClick
14135
14254
  }), renderCheckboxItem());
@@ -14184,9 +14303,9 @@ Please add \`${key2}Action\` when creating your handler.`);
14184
14303
  var childProps = child.props;
14185
14304
  childrenLabel.push(childProps.value);
14186
14305
  });
14187
- var reverse2 = childrenLabel.filter(function(c2) {
14306
+ var reverse2 = childrenLabel.filter(function(c6) {
14188
14307
  return (_value === null || _value === void 0 ? void 0 : _value.findIndex(function(v) {
14189
- return v === c2;
14308
+ return v === c6;
14190
14309
  })) === -1;
14191
14310
  });
14192
14311
  setValue(reverse2);
@@ -14499,6 +14618,8 @@ Please add \`${key2}Action\` when creating your handler.`);
14499
14618
  if (!options3.length) return [];
14500
14619
  var formatted = [];
14501
14620
  var columnOptions = {
14621
+ label: "",
14622
+ value: "",
14502
14623
  children: options3
14503
14624
  };
14504
14625
  var columnIndex = 0;
@@ -16258,6 +16379,7 @@ Please add \`${key2}Action\` when creating your handler.`);
16258
16379
  var _this = this;
16259
16380
  var _this1 = this;
16260
16381
  _class_call_check(this, FormStore2);
16382
+ var _this2 = this;
16261
16383
  _define_property(this, "initialValues", {});
16262
16384
  _define_property(this, "updateList", []);
16263
16385
  _define_property(this, "store", {});
@@ -16326,8 +16448,8 @@ Please add \`${key2}Action\` when creating your handler.`);
16326
16448
  _define_property(this, "setCallback", function(callback) {
16327
16449
  _this.callbacks = _object_spread({}, _this.callbacks, callback);
16328
16450
  });
16329
- _define_property(this, "validateEntities", function(entity, errs) {
16330
- return _async_to_generator(function() {
16451
+ _define_property(this, "validateEntities", /* @__PURE__ */ function() {
16452
+ var _ref = _async_to_generator(function(entity, errs) {
16331
16453
  var _entity_props, name2, _entity_props_rules, rules2, descriptor, validator, _this_store, param, errors, _errs;
16332
16454
  return __generator(this, function(_state) {
16333
16455
  switch (_state.label) {
@@ -16361,7 +16483,7 @@ Please add \`${key2}Action\` when creating your handler.`);
16361
16483
  ]);
16362
16484
  return [
16363
16485
  4,
16364
- validator.validate(_define_property({}, name2, (_this_store = this.store) === null || _this_store === void 0 ? void 0 : _this_store[name2]))
16486
+ validator.validate(_define_property({}, name2, (_this_store = _this2.store) === null || _this_store === void 0 ? void 0 : _this_store[name2]))
16365
16487
  ];
16366
16488
  case 2:
16367
16489
  _state.sent();
@@ -16374,7 +16496,7 @@ Please add \`${key2}Action\` when creating your handler.`);
16374
16496
  errors = param.errors;
16375
16497
  if (errors) {
16376
16498
  (_errs = errs).push.apply(_errs, _to_consumable_array(errors));
16377
- this.errors[name2] = errors;
16499
+ _this2.errors[name2] = errors;
16378
16500
  }
16379
16501
  return [
16380
16502
  3,
@@ -16382,7 +16504,7 @@ Please add \`${key2}Action\` when creating your handler.`);
16382
16504
  ];
16383
16505
  case 4:
16384
16506
  if (!errs || errs.length === 0) {
16385
- this.errors[name2] = [];
16507
+ _this2.errors[name2] = [];
16386
16508
  }
16387
16509
  return [
16388
16510
  7
@@ -16394,20 +16516,22 @@ Please add \`${key2}Action\` when creating your handler.`);
16394
16516
  ];
16395
16517
  }
16396
16518
  });
16397
- }).call(_this);
16398
- });
16399
- _define_property(this, "validateFields", function(nameList) {
16400
- return _async_to_generator(function() {
16401
- var _this2, filterEntities, errs;
16519
+ });
16520
+ return function(entity, errs) {
16521
+ return _ref.apply(this, arguments);
16522
+ };
16523
+ }());
16524
+ _define_property(this, "validateFields", /* @__PURE__ */ function() {
16525
+ var _ref = _async_to_generator(function(nameList) {
16526
+ var filterEntities, errs;
16402
16527
  return __generator(this, function(_state) {
16403
16528
  switch (_state.label) {
16404
16529
  case 0:
16405
- _this2 = this;
16406
16530
  filterEntities = [];
16407
16531
  if (!nameList || nameList.length === 0) {
16408
- filterEntities = this.fieldEntities;
16532
+ filterEntities = _this2.fieldEntities;
16409
16533
  } else {
16410
- filterEntities = this.fieldEntities.filter(function(param) {
16534
+ filterEntities = _this2.fieldEntities.filter(function(param) {
16411
16535
  var name2 = param.props.name;
16412
16536
  return nameList.includes(name2);
16413
16537
  });
@@ -16415,14 +16539,14 @@ Please add \`${key2}Action\` when creating your handler.`);
16415
16539
  errs = [];
16416
16540
  return [
16417
16541
  4,
16418
- Promise.all(filterEntities.map(function(entity) {
16419
- return _async_to_generator(function() {
16542
+ Promise.all(filterEntities.map(/* @__PURE__ */ function() {
16543
+ var _ref2 = _async_to_generator(function(entity) {
16420
16544
  return __generator(this, function(_state2) {
16421
16545
  switch (_state2.label) {
16422
16546
  case 0:
16423
16547
  return [
16424
16548
  4,
16425
- this.validateEntities(entity, errs)
16549
+ _this2.validateEntities(entity, errs)
16426
16550
  ];
16427
16551
  case 1:
16428
16552
  _state2.sent();
@@ -16431,8 +16555,11 @@ Please add \`${key2}Action\` when creating your handler.`);
16431
16555
  ];
16432
16556
  }
16433
16557
  });
16434
- }).call(_this2);
16435
- }))
16558
+ });
16559
+ return function(entity) {
16560
+ return _ref2.apply(this, arguments);
16561
+ };
16562
+ }()))
16436
16563
  ];
16437
16564
  case 1:
16438
16565
  _state.sent();
@@ -16442,32 +16569,33 @@ Please add \`${key2}Action\` when creating your handler.`);
16442
16569
  ];
16443
16570
  }
16444
16571
  });
16445
- }).call(_this);
16446
- });
16447
- _define_property(this, "submit", function() {
16448
- return _async_to_generator(function() {
16449
- var errors, _this_callbacks_onFinish, _this_callbacks, _this_callbacks_onFinishFailed, _this_callbacks1;
16450
- return __generator(this, function(_state) {
16451
- switch (_state.label) {
16452
- case 0:
16453
- return [
16454
- 4,
16455
- this.validateFields()
16456
- ];
16457
- case 1:
16458
- errors = _state.sent();
16459
- if (errors.length === 0) {
16460
- (_this_callbacks_onFinish = (_this_callbacks = this.callbacks).onFinish) === null || _this_callbacks_onFinish === void 0 ? void 0 : _this_callbacks_onFinish.call(_this_callbacks, this.store);
16461
- } else if (errors.length > 0) {
16462
- (_this_callbacks_onFinishFailed = (_this_callbacks1 = this.callbacks).onFinishFailed) === null || _this_callbacks_onFinishFailed === void 0 ? void 0 : _this_callbacks_onFinishFailed.call(_this_callbacks1, this.store, errors);
16463
- }
16464
- return [
16465
- 2
16466
- ];
16467
- }
16468
- });
16469
- }).call(_this);
16470
- });
16572
+ });
16573
+ return function(nameList) {
16574
+ return _ref.apply(this, arguments);
16575
+ };
16576
+ }());
16577
+ _define_property(this, "submit", /* @__PURE__ */ _async_to_generator(function() {
16578
+ var errors, _this_callbacks_onFinish, _this_callbacks, _this_callbacks_onFinishFailed, _this_callbacks1;
16579
+ return __generator(this, function(_state) {
16580
+ switch (_state.label) {
16581
+ case 0:
16582
+ return [
16583
+ 4,
16584
+ _this2.validateFields()
16585
+ ];
16586
+ case 1:
16587
+ errors = _state.sent();
16588
+ if (errors.length === 0) {
16589
+ (_this_callbacks_onFinish = (_this_callbacks = _this2.callbacks).onFinish) === null || _this_callbacks_onFinish === void 0 ? void 0 : _this_callbacks_onFinish.call(_this_callbacks, _this2.store);
16590
+ } else if (errors.length > 0) {
16591
+ (_this_callbacks_onFinishFailed = (_this_callbacks1 = _this2.callbacks).onFinishFailed) === null || _this_callbacks_onFinishFailed === void 0 ? void 0 : _this_callbacks_onFinishFailed.call(_this_callbacks1, _this2.store, errors);
16592
+ }
16593
+ return [
16594
+ 2
16595
+ ];
16596
+ }
16597
+ });
16598
+ }));
16471
16599
  _define_property(this, "resetFields", function(namePaths) {
16472
16600
  if (namePaths && namePaths.length) {
16473
16601
  namePaths.forEach(function(path) {
@@ -16971,7 +17099,7 @@ Please add \`${key2}Action\` when creating your handler.`);
16971
17099
  var Input = /* @__PURE__ */ React.forwardRef(function(props, ref) {
16972
17100
  var rtl = useRtl();
16973
17101
  var locale = useConfig().locale;
16974
- var _ref = _object_spread({}, defaultProps$Y, props), type2 = _ref.type, name2 = _ref.name, placeholder = _ref.placeholder, align = _ref.align, disabled = _ref.disabled, readOnly = _ref.readOnly, maxLength = _ref.maxLength, clearable = _ref.clearable, clearIcon = _ref.clearIcon, formatTrigger = _ref.formatTrigger, autoFocus = _ref.autoFocus, style = _ref.style, className = _ref.className, onChange = _ref.onChange, onFocus = _ref.onFocus, onClear = _ref.onClear, formatter = _ref.formatter, onClick = _ref.onClick, confirmType = _ref.confirmType, plain = _ref.plain, defaultValue = _ref.defaultValue, _value = _ref.value, onCompositionStart = _ref.onCompositionStart, onCompositionEnd = _ref.onCompositionEnd, rest = _object_without_properties(_ref, [
17102
+ var _ref = _object_spread({}, defaultProps$Y, props), type2 = _ref.type, name2 = _ref.name, placeholder = _ref.placeholder, align = _ref.align, disabled = _ref.disabled, readOnly = _ref.readOnly, maxLength = _ref.maxLength, clearable = _ref.clearable, clearIcon = _ref.clearIcon, formatTrigger = _ref.formatTrigger, autoFocus = _ref.autoFocus, style = _ref.style, className = _ref.className, inputStyle = _ref.inputStyle, onChange = _ref.onChange, onFocus = _ref.onFocus, onClear = _ref.onClear, formatter = _ref.formatter, onClick = _ref.onClick, confirmType = _ref.confirmType, plain = _ref.plain, defaultValue = _ref.defaultValue, _value = _ref.value, onCompositionStart = _ref.onCompositionStart, onCompositionEnd = _ref.onCompositionEnd, rest = _object_without_properties(_ref, [
16975
17103
  "type",
16976
17104
  "name",
16977
17105
  "placeholder",
@@ -16985,6 +17113,7 @@ Please add \`${key2}Action\` when creating your handler.`);
16985
17113
  "autoFocus",
16986
17114
  "style",
16987
17115
  "className",
17116
+ "inputStyle",
16988
17117
  "onChange",
16989
17118
  "onFocus",
16990
17119
  "onClear",
@@ -17081,9 +17210,9 @@ Please add \`${key2}Action\` when creating your handler.`);
17081
17210
  ref: inputRef,
17082
17211
  name: name2,
17083
17212
  className: "nut-input-native",
17084
- style: {
17213
+ style: _object_spread({}, {
17085
17214
  textAlign: getTextAlign()
17086
- },
17215
+ }, inputStyle),
17087
17216
  type: getInputType(type2),
17088
17217
  maxLength,
17089
17218
  placeholder: placeholder === void 0 ? locale.placeholder : placeholder,
@@ -17203,8 +17332,8 @@ Please add \`${key2}Action\` when creating your handler.`);
17203
17332
  var stepAmount = parseFloat(stepValue) * symbol;
17204
17333
  return (currentValue * dig + stepAmount * dig) / dig;
17205
17334
  };
17206
- var update2 = function(negative, e) {
17207
- return _async_to_generator(function() {
17335
+ var update2 = /* @__PURE__ */ function() {
17336
+ var _ref2 = _async_to_generator(function(negative, e) {
17208
17337
  var shouldOverBoundary, maybeResume, nextValue;
17209
17338
  return __generator(this, function(_state) {
17210
17339
  switch (_state.label) {
@@ -17235,10 +17364,13 @@ Please add \`${key2}Action\` when creating your handler.`);
17235
17364
  ];
17236
17365
  }
17237
17366
  });
17238
- })();
17239
- };
17240
- var handleReduce = function(e) {
17241
- return _async_to_generator(function() {
17367
+ });
17368
+ return function update3(negative, e) {
17369
+ return _ref2.apply(this, arguments);
17370
+ };
17371
+ }();
17372
+ var handleReduce = /* @__PURE__ */ function() {
17373
+ var _ref2 = _async_to_generator(function(e) {
17242
17374
  return __generator(this, function(_state) {
17243
17375
  switch (_state.label) {
17244
17376
  case 0:
@@ -17256,10 +17388,13 @@ Please add \`${key2}Action\` when creating your handler.`);
17256
17388
  ];
17257
17389
  }
17258
17390
  });
17259
- })();
17260
- };
17261
- var handlePlus = function(e) {
17262
- return _async_to_generator(function() {
17391
+ });
17392
+ return function handleReduce2(e) {
17393
+ return _ref2.apply(this, arguments);
17394
+ };
17395
+ }();
17396
+ var handlePlus = /* @__PURE__ */ function() {
17397
+ var _ref2 = _async_to_generator(function(e) {
17263
17398
  return __generator(this, function(_state) {
17264
17399
  switch (_state.label) {
17265
17400
  case 0:
@@ -17277,15 +17412,18 @@ Please add \`${key2}Action\` when creating your handler.`);
17277
17412
  ];
17278
17413
  }
17279
17414
  });
17280
- })();
17281
- };
17415
+ });
17416
+ return function handlePlus2(e) {
17417
+ return _ref2.apply(this, arguments);
17418
+ };
17419
+ }();
17282
17420
  var parseValue = function(text2) {
17283
17421
  if (text2 === "") return null;
17284
17422
  if (text2 === "-") return null;
17285
17423
  return text2;
17286
17424
  };
17287
- var handleInputChange = function(e) {
17288
- return _async_to_generator(function() {
17425
+ var handleInputChange = /* @__PURE__ */ function() {
17426
+ var _ref2 = _async_to_generator(function(e) {
17289
17427
  var valueStr, maybeResume;
17290
17428
  return __generator(this, function(_state) {
17291
17429
  switch (_state.label) {
@@ -17315,8 +17453,11 @@ Please add \`${key2}Action\` when creating your handler.`);
17315
17453
  ];
17316
17454
  }
17317
17455
  });
17318
- })();
17319
- };
17456
+ });
17457
+ return function handleInputChange2(e) {
17458
+ return _ref2.apply(this, arguments);
17459
+ };
17460
+ }();
17320
17461
  var handleFocus = function(e) {
17321
17462
  setFocused(true);
17322
17463
  setInputValue(shadowValue !== void 0 && shadowValue !== null ? bound(Number(shadowValue), Number(min), Number(max)).toString() : "");
@@ -19221,7 +19362,7 @@ Please add \`${key2}Action\` when creating your handler.`);
19221
19362
  }
19222
19363
  });
19223
19364
  var Switch = function(props) {
19224
- var _ref = _object_spread({}, defaultProps$M, props), checked = _ref.checked, defaultChecked = _ref.defaultChecked, disabled = _ref.disabled, activeText = _ref.activeText, inactiveText = _ref.inactiveText, loadingIcon = _ref.loadingIcon, className = _ref.className, style = _ref.style, onChange = _ref.onChange, propLoading = _ref.loading, onLoadingChange = _ref.onLoadingChange, rest = _object_without_properties(_ref, [
19365
+ var _ref = _object_spread({}, defaultProps$M, props), checked = _ref.checked, defaultChecked = _ref.defaultChecked, disabled = _ref.disabled, activeText = _ref.activeText, inactiveText = _ref.inactiveText, loadingIcon = _ref.loadingIcon, className = _ref.className, style = _ref.style, onChange = _ref.onChange, propLoading = _ref.loading, onLoadingChange = _ref.onLoadingChange, ariaLabel = _ref.ariaLabel, rest = _object_without_properties(_ref, [
19225
19366
  "checked",
19226
19367
  "defaultChecked",
19227
19368
  "disabled",
@@ -19232,7 +19373,8 @@ Please add \`${key2}Action\` when creating your handler.`);
19232
19373
  "style",
19233
19374
  "onChange",
19234
19375
  "loading",
19235
- "onLoadingChange"
19376
+ "onLoadingChange",
19377
+ "ariaLabel"
19236
19378
  ]);
19237
19379
  var classPrefix2 = "nut-switch";
19238
19380
  var rtl = useRtl();
@@ -19262,8 +19404,8 @@ Please add \`${key2}Action\` when creating your handler.`);
19262
19404
  (_obj2 = {}, _define_property(_obj2, "".concat(classPrefix2, "-close"), !value2), _define_property(_obj2, "".concat(classPrefix2, "-disabled"), disabled), _define_property(_obj2, "".concat(classPrefix2, "-disabled-close"), disabled && !value2), _obj2)
19263
19405
  ]);
19264
19406
  };
19265
- var onClick = function() {
19266
- return _async_to_generator(function() {
19407
+ var onClick = /* @__PURE__ */ function() {
19408
+ var _ref2 = _async_to_generator(function() {
19267
19409
  return __generator(this, function(_state) {
19268
19410
  switch (_state.label) {
19269
19411
  case 0:
@@ -19307,14 +19449,23 @@ Please add \`${key2}Action\` when creating your handler.`);
19307
19449
  ];
19308
19450
  }
19309
19451
  });
19310
- })();
19311
- };
19452
+ });
19453
+ return function onClick2() {
19454
+ return _ref2.apply(this, arguments);
19455
+ };
19456
+ }();
19312
19457
  var _obj, _obj1;
19313
- return /* @__PURE__ */ React.createElement("div", _object_spread({
19458
+ return /* @__PURE__ */ React.createElement("div", _object_spread_props(_object_spread({
19314
19459
  className: classes(),
19315
19460
  onClick,
19316
19461
  style
19317
- }, rest), /* @__PURE__ */ React.createElement("div", {
19462
+ }, rest), {
19463
+ role: "switch",
19464
+ tabIndex: disabled ? -1 : 0,
19465
+ "aria-checked": value2,
19466
+ "aria-disabled": disabled,
19467
+ "aria-label": ariaLabel
19468
+ }), /* @__PURE__ */ React.createElement("div", {
19318
19469
  className: classNames([
19319
19470
  [
19320
19471
  "".concat(classPrefix2, "-button")
@@ -19344,7 +19495,7 @@ Please add \`${key2}Action\` when creating your handler.`);
19344
19495
  });
19345
19496
  var TextArea = /* @__PURE__ */ React.forwardRef(function(props, ref) {
19346
19497
  var locale = useConfig().locale;
19347
- var _ref = _object_spread({}, defaultProps$L, props), className = _ref.className, value2 = _ref.value, defaultValue = _ref.defaultValue, showCount = _ref.showCount, maxLength = _ref.maxLength, rows = _ref.rows, placeholder = _ref.placeholder, readOnly = _ref.readOnly, disabled = _ref.disabled, autoSize = _ref.autoSize, style = _ref.style, plain = _ref.plain, status = _ref.status, onChange = _ref.onChange, onBlur = _ref.onBlur, onFocus = _ref.onFocus, rest = _object_without_properties(_ref, [
19498
+ var _ref = _object_spread({}, defaultProps$L, props), className = _ref.className, value2 = _ref.value, defaultValue = _ref.defaultValue, showCount = _ref.showCount, maxLength = _ref.maxLength, rows = _ref.rows, placeholder = _ref.placeholder, readOnly = _ref.readOnly, disabled = _ref.disabled, autoSize = _ref.autoSize, style = _ref.style, plain = _ref.plain, status = _ref.status, viewId = _ref.viewId, onChange = _ref.onChange, onBlur = _ref.onBlur, onFocus = _ref.onFocus, rest = _object_without_properties(_ref, [
19348
19499
  "className",
19349
19500
  "value",
19350
19501
  "defaultValue",
@@ -19358,6 +19509,7 @@ Please add \`${key2}Action\` when creating your handler.`);
19358
19509
  "style",
19359
19510
  "plain",
19360
19511
  "status",
19512
+ "viewId",
19361
19513
  "onChange",
19362
19514
  "onBlur",
19363
19515
  "onFocus"
@@ -19431,6 +19583,7 @@ Please add \`${key2}Action\` when creating your handler.`);
19431
19583
  });
19432
19584
  var _obj;
19433
19585
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", {
19586
+ id: viewId,
19434
19587
  className: classNames(classPrefix2, (_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-disabled"), disabled), _define_property(_obj, "".concat(classPrefix2, "-readonly"), readOnly), _define_property(_obj, "".concat(classPrefix2, "-rtl"), rtl), _define_property(_obj, "".concat(classPrefix2, "-plain"), plain), _define_property(_obj, "".concat(classPrefix2, "-container"), !plain), _define_property(_obj, "".concat(classPrefix2, "-").concat(status), status), _obj), className)
19435
19588
  }, /* @__PURE__ */ React.createElement("textarea", _object_spread_props(_object_spread({}, rest), {
19436
19589
  ref: textareaRef,
@@ -19755,24 +19908,22 @@ Please add \`${key2}Action\` when creating your handler.`);
19755
19908
  ]);
19756
19909
  React.useImperativeHandle(ref, function() {
19757
19910
  return {
19758
- submit: function() {
19759
- return _async_to_generator(function() {
19760
- return __generator(this, function(_state) {
19761
- switch (_state.label) {
19762
- case 0:
19763
- return [
19764
- 4,
19765
- uploadAction(uploadQueue)
19766
- ];
19767
- case 1:
19768
- _state.sent();
19769
- return [
19770
- 2
19771
- ];
19772
- }
19773
- });
19774
- })();
19775
- },
19911
+ submit: /* @__PURE__ */ _async_to_generator(function() {
19912
+ return __generator(this, function(_state) {
19913
+ switch (_state.label) {
19914
+ case 0:
19915
+ return [
19916
+ 4,
19917
+ uploadAction(uploadQueue)
19918
+ ];
19919
+ case 1:
19920
+ _state.sent();
19921
+ return [
19922
+ 2
19923
+ ];
19924
+ }
19925
+ });
19926
+ }),
19776
19927
  clear: function() {
19777
19928
  clearUploadQueue();
19778
19929
  }
@@ -19829,8 +19980,8 @@ Please add \`${key2}Action\` when creating your handler.`);
19829
19980
  }
19830
19981
  });
19831
19982
  };
19832
- var fileChange = function(event) {
19833
- return _async_to_generator(function() {
19983
+ var fileChange = /* @__PURE__ */ function() {
19984
+ var _ref = _async_to_generator(function(event) {
19834
19985
  var $el, files, _files, filesArr, tasks;
19835
19986
  return __generator(this, function(_state) {
19836
19987
  switch (_state.label) {
@@ -19916,10 +20067,13 @@ Please add \`${key2}Action\` when creating your handler.`);
19916
20067
  ];
19917
20068
  }
19918
20069
  });
19919
- })();
19920
- };
19921
- var uploadAction = function(tasks) {
19922
- return _async_to_generator(function() {
20070
+ });
20071
+ return function fileChange2(event) {
20072
+ return _ref.apply(this, arguments);
20073
+ };
20074
+ }();
20075
+ var uploadAction = /* @__PURE__ */ function() {
20076
+ var _ref = _async_to_generator(function(tasks) {
19923
20077
  var taskIds;
19924
20078
  return __generator(this, function(_state) {
19925
20079
  switch (_state.label) {
@@ -19938,8 +20092,8 @@ Please add \`${key2}Action\` when creating your handler.`);
19938
20092
  }));
19939
20093
  return [
19940
20094
  4,
19941
- Promise.all(tasks.map(function(currentTask, index2) {
19942
- return _async_to_generator(function() {
20095
+ Promise.all(tasks.map(/* @__PURE__ */ function() {
20096
+ var _ref2 = _async_to_generator(function(currentTask, index2) {
19943
20097
  var result, list, e, list1;
19944
20098
  return __generator(this, function(_state2) {
19945
20099
  switch (_state2.label) {
@@ -19986,8 +20140,11 @@ Please add \`${key2}Action\` when creating your handler.`);
19986
20140
  ];
19987
20141
  }
19988
20142
  });
19989
- })();
19990
- })).catch(function(errs) {
20143
+ });
20144
+ return function(currentTask, index2) {
20145
+ return _ref2.apply(this, arguments);
20146
+ };
20147
+ }())).catch(function(errs) {
19991
20148
  return console.error(errs);
19992
20149
  })
19993
20150
  ];
@@ -19998,8 +20155,11 @@ Please add \`${key2}Action\` when creating your handler.`);
19998
20155
  ];
19999
20156
  }
20000
20157
  });
20001
- })();
20002
- };
20158
+ });
20159
+ return function uploadAction2(tasks) {
20160
+ return _ref.apply(this, arguments);
20161
+ };
20162
+ }();
20003
20163
  var handleItemClick = function(file, index2) {
20004
20164
  onFileItemClick === null || onFileItemClick === void 0 ? void 0 : onFileItemClick(file, index2);
20005
20165
  };
@@ -20262,6 +20422,8 @@ Please add \`${key2}Action\` when creating your handler.`);
20262
20422
  content: "",
20263
20423
  header: "",
20264
20424
  footer: "",
20425
+ cancelBadge: "",
20426
+ confirmBadge: "",
20265
20427
  confirmText: "",
20266
20428
  cancelText: "",
20267
20429
  closeOnOverlayClick: true,
@@ -20291,7 +20453,7 @@ Please add \`${key2}Action\` when creating your handler.`);
20291
20453
  }
20292
20454
  });
20293
20455
  var BaseDialog = function(props, ref) {
20294
- var _mergeProps = mergeProps(defaultProps$H, props), closeOnOverlayClick = _mergeProps.closeOnOverlayClick, confirmText = _mergeProps.confirmText, cancelText = _mergeProps.cancelText, children = _mergeProps.children, className = _mergeProps.className, closeIconPosition = _mergeProps.closeIconPosition, closeIcon = _mergeProps.closeIcon, content2 = _mergeProps.content, disableConfirmButton = _mergeProps.disableConfirmButton, footer = _mergeProps.footer, footerDirection = _mergeProps.footerDirection, header = _mergeProps.header, hideConfirmButton = _mergeProps.hideConfirmButton, hideCancelButton = _mergeProps.hideCancelButton, lockScroll = _mergeProps.lockScroll, overlay = _mergeProps.overlay, overlayStyle = _mergeProps.overlayStyle, overlayClassName = _mergeProps.overlayClassName, style = _mergeProps.style, title = _mergeProps.title, visible = _mergeProps.visible, zIndex = _mergeProps.zIndex, beforeCancel = _mergeProps.beforeCancel, beforeClose = _mergeProps.beforeClose, onClose = _mergeProps.onClose, onCancel = _mergeProps.onCancel, onConfirm = _mergeProps.onConfirm, onOverlayClick = _mergeProps.onOverlayClick;
20456
+ var _mergeProps = mergeProps(defaultProps$H, props), closeOnOverlayClick = _mergeProps.closeOnOverlayClick, confirmText = _mergeProps.confirmText, cancelText = _mergeProps.cancelText, children = _mergeProps.children, className = _mergeProps.className, closeIconPosition = _mergeProps.closeIconPosition, closeIcon = _mergeProps.closeIcon, content2 = _mergeProps.content, disableConfirmButton = _mergeProps.disableConfirmButton, footer = _mergeProps.footer, footerDirection = _mergeProps.footerDirection, header = _mergeProps.header, cancelBadge = _mergeProps.cancelBadge, confirmBadge = _mergeProps.confirmBadge, hideConfirmButton = _mergeProps.hideConfirmButton, hideCancelButton = _mergeProps.hideCancelButton, lockScroll = _mergeProps.lockScroll, overlay = _mergeProps.overlay, overlayStyle = _mergeProps.overlayStyle, overlayClassName = _mergeProps.overlayClassName, style = _mergeProps.style, title = _mergeProps.title, visible = _mergeProps.visible, zIndex = _mergeProps.zIndex, beforeCancel = _mergeProps.beforeCancel, beforeClose = _mergeProps.beforeClose, onClose = _mergeProps.onClose, onCancel = _mergeProps.onCancel, onConfirm = _mergeProps.onConfirm, onOverlayClick = _mergeProps.onOverlayClick;
20295
20457
  var classPrefix2 = "nut-dialog";
20296
20458
  var locale = useConfig().locale;
20297
20459
  var _useState = _sliced_to_array(React.useState(false), 2), loading = _useState[0], setLoading = _useState[1];
@@ -20302,8 +20464,8 @@ Please add \`${key2}Action\` when creating your handler.`);
20302
20464
  if (!(beforeCancel === null || beforeCancel === void 0 ? void 0 : beforeCancel())) return;
20303
20465
  onCancel();
20304
20466
  };
20305
- var handleOk = function(e) {
20306
- return _async_to_generator(function() {
20467
+ var handleOk = /* @__PURE__ */ function() {
20468
+ var _ref = _async_to_generator(function(e) {
20307
20469
  return __generator(this, function(_state) {
20308
20470
  switch (_state.label) {
20309
20471
  case 0:
@@ -20342,14 +20504,14 @@ Please add \`${key2}Action\` when creating your handler.`);
20342
20504
  ];
20343
20505
  }
20344
20506
  });
20345
- })();
20346
- };
20507
+ });
20508
+ return function handleOk2(e) {
20509
+ return _ref.apply(this, arguments);
20510
+ };
20511
+ }();
20347
20512
  var btnClass = hideCancelButton || hideConfirmButton ? "".concat(classPrefix2, "-footer-block") : "";
20348
20513
  var renderCancelOfVertical = function() {
20349
20514
  return !hideCancelButton && /* @__PURE__ */ React.createElement("div", {
20350
- style: {
20351
- order: 2
20352
- },
20353
20515
  className: "".concat(classPrefix2, "-footer-cancel ").concat(btnClass),
20354
20516
  onClick: function(e) {
20355
20517
  return handleCancel(e);
@@ -20357,17 +20519,43 @@ Please add \`${key2}Action\` when creating your handler.`);
20357
20519
  }, cancelText || locale.cancel);
20358
20520
  };
20359
20521
  var renderCancel = function() {
20360
- return !hideCancelButton && /* @__PURE__ */ React.createElement(Button, {
20522
+ return !hideCancelButton && /* @__PURE__ */ React.createElement(React.Fragment, null, cancelBadge ? /* @__PURE__ */ React.createElement("div", {
20523
+ className: "".concat(classPrefix2, "-footer-cancel-container")
20524
+ }, /* @__PURE__ */ React.createElement(Button, {
20361
20525
  type: "default",
20362
20526
  size: "large",
20363
20527
  className: "".concat(classPrefix2, "-footer-cancel ").concat(btnClass),
20364
20528
  onClick: function(e) {
20365
20529
  return handleCancel(e);
20366
20530
  }
20367
- }, cancelText || locale.cancel);
20531
+ }, cancelText || locale.cancel), cancelBadge ? /* @__PURE__ */ React.createElement("div", {
20532
+ className: "".concat(classPrefix2, "-footer-cancel-badge")
20533
+ }, cancelBadge) : null) : /* @__PURE__ */ React.createElement(Button, {
20534
+ type: "default",
20535
+ size: "large",
20536
+ className: "".concat(classPrefix2, "-footer-cancel ").concat(btnClass),
20537
+ onClick: function(e) {
20538
+ return handleCancel(e);
20539
+ }
20540
+ }, cancelText || locale.cancel));
20368
20541
  };
20369
20542
  var renderConfirm = function() {
20370
- return !hideConfirmButton && /* @__PURE__ */ React.createElement(Button, {
20543
+ return !hideConfirmButton && /* @__PURE__ */ React.createElement(React.Fragment, null, confirmBadge ? /* @__PURE__ */ React.createElement("div", {
20544
+ className: "".concat(classPrefix2, "-footer-ok-container")
20545
+ }, /* @__PURE__ */ React.createElement(Button, {
20546
+ type: "primary",
20547
+ size: "large",
20548
+ className: classNames("".concat(classPrefix2, "-footer-ok ").concat(btnClass), {
20549
+ disabled: disableConfirmButton
20550
+ }),
20551
+ disabled: disableConfirmButton,
20552
+ onClick: function(e) {
20553
+ return handleOk(e);
20554
+ },
20555
+ loading
20556
+ }, confirmText || locale.confirm), confirmBadge ? /* @__PURE__ */ React.createElement("div", {
20557
+ className: "".concat(classPrefix2, "-footer-ok-badge")
20558
+ }, confirmBadge) : null) : /* @__PURE__ */ React.createElement(Button, {
20371
20559
  type: "primary",
20372
20560
  size: "large",
20373
20561
  className: classNames("".concat(classPrefix2, "-footer-ok ").concat(btnClass), {
@@ -20378,7 +20566,7 @@ Please add \`${key2}Action\` when creating your handler.`);
20378
20566
  return handleOk(e);
20379
20567
  },
20380
20568
  loading
20381
- }, confirmText || locale.confirm);
20569
+ }, confirmText || locale.confirm));
20382
20570
  };
20383
20571
  return footer || /* @__PURE__ */ React.createElement(React.Fragment, null, footerDirection === "vertical" ? /* @__PURE__ */ React.createElement(React.Fragment, null, renderConfirm(), renderCancelOfVertical()) : /* @__PURE__ */ React.createElement(React.Fragment, null, renderCancel(), renderConfirm()));
20384
20572
  };
@@ -20393,7 +20581,10 @@ Please add \`${key2}Action\` when creating your handler.`);
20393
20581
  var systomIcon = closeIconPosition !== "bottom" ? /* @__PURE__ */ React.createElement(n$5, null) : /* @__PURE__ */ React.createElement(d$c, null);
20394
20582
  return /* @__PURE__ */ React.createElement("div", {
20395
20583
  className: closeClasses,
20396
- onClick: handleClose
20584
+ onClick: handleClose,
20585
+ role: "button",
20586
+ "aria-label": locale.close,
20587
+ tabIndex: 0
20397
20588
  }, /* @__PURE__ */ React.isValidElement(closeIcon) ? closeIcon : systomIcon);
20398
20589
  };
20399
20590
  var onHandleClickOverlay = function(e) {
@@ -20722,8 +20913,8 @@ Please add \`${key2}Action\` when creating your handler.`);
20722
20913
  transition: isTouching.current ? "height 0s cubic-bezier(0.25,0.1,0.25,1)" : "height 0.2s cubic-bezier(0.25,0.1,0.25,1)"
20723
20914
  };
20724
20915
  };
20725
- var handleScroll = function() {
20726
- return _async_to_generator(function() {
20916
+ var handleScroll = /* @__PURE__ */ function() {
20917
+ var _ref2 = _async_to_generator(function() {
20727
20918
  return __generator(this, function(_state) {
20728
20919
  switch (_state.label) {
20729
20920
  case 0:
@@ -20745,8 +20936,11 @@ Please add \`${key2}Action\` when creating your handler.`);
20745
20936
  ];
20746
20937
  }
20747
20938
  });
20748
- })();
20749
- };
20939
+ });
20940
+ return function handleScroll2() {
20941
+ return _ref2.apply(this, arguments);
20942
+ };
20943
+ }();
20750
20944
  var infiniteDone = function() {
20751
20945
  setIsInfiniting(false);
20752
20946
  };
@@ -20782,8 +20976,8 @@ Please add \`${key2}Action\` when creating your handler.`);
20782
20976
  isTouching.current = false;
20783
20977
  }
20784
20978
  };
20785
- var touchEnd = function() {
20786
- return _async_to_generator(function() {
20979
+ var touchEnd = /* @__PURE__ */ function() {
20980
+ var _ref2 = _async_to_generator(function() {
20787
20981
  return __generator(this, function(_state) {
20788
20982
  switch (_state.label) {
20789
20983
  case 0:
@@ -20813,8 +21007,11 @@ Please add \`${key2}Action\` when creating your handler.`);
20813
21007
  ];
20814
21008
  }
20815
21009
  });
20816
- })();
20817
- };
21010
+ });
21011
+ return function touchEnd2() {
21012
+ return _ref2.apply(this, arguments);
21013
+ };
21014
+ }();
20818
21015
  var getWindowScrollTop = function() {
20819
21016
  return window.scrollY !== void 0 ? window.scrollY : (document.documentElement || document.body.parentNode || document.body).scrollTop;
20820
21017
  };
@@ -21485,7 +21682,7 @@ Please add \`${key2}Action\` when creating your handler.`);
21485
21682
  messageInstance$1 = null;
21486
21683
  }
21487
21684
  Notification$1.newInstance(props, function(notification) {
21488
- return callback && callback(notification);
21685
+ return callback(notification);
21489
21686
  });
21490
21687
  }
21491
21688
  function notice$1(opts2) {
@@ -21813,7 +22010,41 @@ Please add \`${key2}Action\` when creating your handler.`);
21813
22010
  });
21814
22011
  var PullToRefresh = function(p2) {
21815
22012
  var doRefresh = function doRefresh2() {
21816
- return _async_to_generator(function() {
22013
+ return _doRefresh.apply(this, arguments);
22014
+ };
22015
+ var classPrefix2 = "nut-pulltorefresh";
22016
+ var locale = useConfig().locale;
22017
+ var props = _object_spread({}, defaultProps$A, p2, {
22018
+ pullingText: p2.pullingText || locale.pullToRefresh.pullingText,
22019
+ canReleaseText: p2.canReleaseText || locale.pullToRefresh.canReleaseText,
22020
+ refreshingText: p2.refreshingText || locale.pullToRefresh.refreshingText,
22021
+ completeText: p2.completeText || locale.pullToRefresh.completeText
22022
+ });
22023
+ var classes = classNames(classPrefix2, props.className, "".concat(classPrefix2, "-").concat(props.type));
22024
+ var headHeight = props.headHeight;
22025
+ var threshold = props.threshold;
22026
+ var _useState = _sliced_to_array(React.useState("pulling"), 2), status = _useState[0], setStatus = _useState[1];
22027
+ var _useSpring = _sliced_to_array(useSpring(function() {
22028
+ return {
22029
+ from: {
22030
+ height: 0
22031
+ },
22032
+ config: {
22033
+ tension: 300,
22034
+ friction: 30,
22035
+ clamp: true
22036
+ }
22037
+ };
22038
+ }), 2), springStyles = _useSpring[0], api = _useSpring[1];
22039
+ var elementRef = React.useRef(null);
22040
+ var pullingRef = React.useRef(false);
22041
+ React.useEffect(function() {
22042
+ var _elementRef_current;
22043
+ (_elementRef_current = elementRef.current) === null || _elementRef_current === void 0 ? void 0 : _elementRef_current.addEventListener("touchmove", function() {
22044
+ });
22045
+ }, []);
22046
+ function _doRefresh() {
22047
+ _doRefresh = _async_to_generator(function() {
21817
22048
  var e;
21818
22049
  return __generator(this, function(_state) {
21819
22050
  switch (_state.label) {
@@ -21844,8 +22075,8 @@ Please add \`${key2}Action\` when creating your handler.`);
21844
22075
  case 3:
21845
22076
  e = _state.sent();
21846
22077
  api.start({
21847
- to: function(next) {
21848
- return _async_to_generator(function() {
22078
+ to: /* @__PURE__ */ function() {
22079
+ var _ref = _async_to_generator(function(next) {
21849
22080
  return __generator(this, function(_state2) {
21850
22081
  switch (_state2.label) {
21851
22082
  case 0:
@@ -21863,8 +22094,11 @@ Please add \`${key2}Action\` when creating your handler.`);
21863
22094
  ];
21864
22095
  }
21865
22096
  });
21866
- })();
21867
- }
22097
+ });
22098
+ return function(next) {
22099
+ return _ref.apply(this, arguments);
22100
+ };
22101
+ }()
21868
22102
  });
21869
22103
  throw e;
21870
22104
  case 4:
@@ -21881,8 +22115,8 @@ Please add \`${key2}Action\` when creating your handler.`);
21881
22115
  _state.label = 6;
21882
22116
  case 6:
21883
22117
  api.start({
21884
- to: function(next) {
21885
- return _async_to_generator(function() {
22118
+ to: /* @__PURE__ */ function() {
22119
+ var _ref = _async_to_generator(function(next) {
21886
22120
  return __generator(this, function(_state2) {
21887
22121
  switch (_state2.label) {
21888
22122
  case 0:
@@ -21900,47 +22134,20 @@ Please add \`${key2}Action\` when creating your handler.`);
21900
22134
  ];
21901
22135
  }
21902
22136
  });
21903
- })();
21904
- }
22137
+ });
22138
+ return function(next) {
22139
+ return _ref.apply(this, arguments);
22140
+ };
22141
+ }()
21905
22142
  });
21906
22143
  return [
21907
22144
  2
21908
22145
  ];
21909
22146
  }
21910
22147
  });
21911
- })();
21912
- };
21913
- var classPrefix2 = "nut-pulltorefresh";
21914
- var locale = useConfig().locale;
21915
- var props = _object_spread({}, defaultProps$A, p2, {
21916
- pullingText: p2.pullingText || locale.pullToRefresh.pullingText,
21917
- canReleaseText: p2.canReleaseText || locale.pullToRefresh.canReleaseText,
21918
- refreshingText: p2.refreshingText || locale.pullToRefresh.refreshingText,
21919
- completeText: p2.completeText || locale.pullToRefresh.completeText
21920
- });
21921
- var classes = classNames(classPrefix2, props.className, "".concat(classPrefix2, "-").concat(props.type));
21922
- var headHeight = props.headHeight;
21923
- var threshold = props.threshold;
21924
- var _useState = _sliced_to_array(React.useState("pulling"), 2), status = _useState[0], setStatus = _useState[1];
21925
- var _useSpring = _sliced_to_array(useSpring(function() {
21926
- return {
21927
- from: {
21928
- height: 0
21929
- },
21930
- config: {
21931
- tension: 300,
21932
- friction: 30,
21933
- clamp: true
21934
- }
21935
- };
21936
- }), 2), springStyles = _useSpring[0], api = _useSpring[1];
21937
- var elementRef = React.useRef(null);
21938
- var pullingRef = React.useRef(false);
21939
- React.useEffect(function() {
21940
- var _elementRef_current;
21941
- (_elementRef_current = elementRef.current) === null || _elementRef_current === void 0 ? void 0 : _elementRef_current.addEventListener("touchmove", function() {
21942
22148
  });
21943
- }, []);
22149
+ return _doRefresh.apply(this, arguments);
22150
+ }
21944
22151
  useDrag(function(state) {
21945
22152
  var getScrollTop = function getScrollTop2(element) {
21946
22153
  return "scrollTop" in element ? element.scrollTop : element.scrollY;
@@ -22506,7 +22713,9 @@ Please add \`${key2}Action\` when creating your handler.`);
22506
22713
  id: "toast-".concat(id)
22507
22714
  }, /* @__PURE__ */ React__namespace.createElement("div", {
22508
22715
  className: classNames("".concat(classPrefix$a, "-inner"), "".concat(classPrefix$a, "-").concat(position2), contentClassName, "".concat(classPrefix$a, "-inner-").concat(size), "".concat(classPrefix$a, "-inner-").concat(wordBreak), _define_property({}, "".concat(classPrefix$a, "-inner-descrption"), content2)),
22509
- style: _object_spread({}, contentStyle)
22716
+ style: _object_spread({}, contentStyle),
22717
+ role: "alert",
22718
+ "aria-label": (title !== null && title !== void 0 ? title : "") + (content2 !== null && content2 !== void 0 ? content2 : "")
22510
22719
  }, this.renderIcon(), title && /* @__PURE__ */ React__namespace.createElement("div", {
22511
22720
  className: "".concat(classPrefix$a, "-title")
22512
22721
  }, title), content2 && /* @__PURE__ */ React__namespace.createElement("span", {
@@ -22566,7 +22775,7 @@ Please add \`${key2}Action\` when creating your handler.`);
22566
22775
  messageInstance = null;
22567
22776
  }
22568
22777
  Notification.newInstance(props, function(notification) {
22569
- return callback && callback(notification);
22778
+ return callback(notification);
22570
22779
  });
22571
22780
  }
22572
22781
  function notice(opts2) {
@@ -23305,8 +23514,8 @@ Please add \`${key2}Action\` when creating your handler.`);
23305
23514
  var _useState = _sliced_to_array(React.useState(0), 2), tran = _useState[0], setTran = _useState[1];
23306
23515
  var _useRefState = _sliced_to_array(useRefState(0), 2), currentHeight = _useRefState[0], setCurrentHeight = _useRefState[1];
23307
23516
  var _useState1 = _sliced_to_array(React.useState(0), 2), wrapperHeight = _useState1[0], setWrapperHeight = _useState1[1];
23308
- var updateRectHeight = function() {
23309
- return _async_to_generator(function() {
23517
+ var updateRectHeight = /* @__PURE__ */ function() {
23518
+ var _ref2 = _async_to_generator(function() {
23310
23519
  var height2;
23311
23520
  return __generator(this, function(_state) {
23312
23521
  height2 = contentRef.current.offsetHeight;
@@ -23319,8 +23528,11 @@ Please add \`${key2}Action\` when creating your handler.`);
23319
23528
  2
23320
23529
  ];
23321
23530
  });
23322
- })();
23323
- };
23531
+ });
23532
+ return function updateRectHeight2() {
23533
+ return _ref2.apply(this, arguments);
23534
+ };
23535
+ }();
23324
23536
  React.useEffect(function() {
23325
23537
  updateRectHeight();
23326
23538
  }, [
@@ -24115,11 +24327,11 @@ Please add \`${key2}Action\` when creating your handler.`);
24115
24327
  var _$_object_spread = _object_spread({}, defaultProps$i, props), children = _$_object_spread.children, direction = _$_object_spread.direction, indicator = _$_object_spread.indicator, loop2 = _$_object_spread.loop, effect2 = _$_object_spread.effect, autoplay = _$_object_spread.autoplay, touchable = _$_object_spread.touchable, defaultValue = _$_object_spread.defaultValue, duration = _$_object_spread.duration, style = _$_object_spread.style, className = _$_object_spread.className;
24116
24328
  var isVertical = direction === "vertical";
24117
24329
  var count = React.useMemo(function() {
24118
- var c2 = 0;
24330
+ var c6 = 0;
24119
24331
  React.Children.map(children, function() {
24120
- c2 += 1;
24332
+ c6 += 1;
24121
24333
  });
24122
- return c2;
24334
+ return c6;
24123
24335
  }, [
24124
24336
  children
24125
24337
  ]);
@@ -24567,7 +24779,7 @@ Please add \`${key2}Action\` when creating your handler.`);
24567
24779
  ImagePreview.displayName = "NutImagePreview";
24568
24780
  var lottie$1 = { exports: {} };
24569
24781
  (function(module, exports) {
24570
- typeof document !== "undefined" && typeof navigator !== "undefined" && function(global2, factory) {
24782
+ typeof navigator !== "undefined" && function(global2, factory) {
24571
24783
  module.exports = factory();
24572
24784
  }(commonjsGlobal, function() {
24573
24785
  var svgNS = "http://www.w3.org/2000/svg";
@@ -24737,13 +24949,18 @@ Please add \`${key2}Action\` when creating your handler.`);
24737
24949
  length: len
24738
24950
  });
24739
24951
  }
24740
- function _typeof$6(o) {
24952
+ function _typeof$6(obj) {
24741
24953
  "@babel/helpers - typeof";
24742
- return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
24743
- return typeof o2;
24744
- } : function(o2) {
24745
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
24746
- }, _typeof$6(o);
24954
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
24955
+ _typeof$6 = function _typeof2(obj2) {
24956
+ return typeof obj2;
24957
+ };
24958
+ } else {
24959
+ _typeof$6 = function _typeof2(obj2) {
24960
+ return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
24961
+ };
24962
+ }
24963
+ return _typeof$6(obj);
24747
24964
  }
24748
24965
  var subframeEnabled = true;
24749
24966
  var expressionsPlugin = null;
@@ -24990,13 +25207,18 @@ Please add \`${key2}Action\` when creating your handler.`);
24990
25207
  function createNS(type2) {
24991
25208
  return document.createElementNS(svgNS, type2);
24992
25209
  }
24993
- function _typeof$5(o) {
25210
+ function _typeof$5(obj) {
24994
25211
  "@babel/helpers - typeof";
24995
- return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
24996
- return typeof o2;
24997
- } : function(o2) {
24998
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
24999
- }, _typeof$5(o);
25212
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
25213
+ _typeof$5 = function _typeof2(obj2) {
25214
+ return typeof obj2;
25215
+ };
25216
+ } else {
25217
+ _typeof$5 = function _typeof2(obj2) {
25218
+ return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
25219
+ };
25220
+ }
25221
+ return _typeof$5(obj);
25000
25222
  }
25001
25223
  var dataManager = /* @__PURE__ */ function() {
25002
25224
  var _counterId = 1;
@@ -25952,13 +26174,18 @@ Please add \`${key2}Action\` when creating your handler.`);
25952
26174
  }
25953
26175
  return "";
25954
26176
  }
25955
- function _typeof$4(o) {
26177
+ function _typeof$4(obj) {
25956
26178
  "@babel/helpers - typeof";
25957
- return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
25958
- return typeof o2;
25959
- } : function(o2) {
25960
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
25961
- }, _typeof$4(o);
26179
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
26180
+ _typeof$4 = function _typeof2(obj2) {
26181
+ return typeof obj2;
26182
+ };
26183
+ } else {
26184
+ _typeof$4 = function _typeof2(obj2) {
26185
+ return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
26186
+ };
26187
+ }
26188
+ return _typeof$4(obj);
25962
26189
  }
25963
26190
  var AnimationItem = function AnimationItem2() {
25964
26191
  this._cbs = [];
@@ -26847,12 +27074,12 @@ Please add \`${key2}Action\` when creating your handler.`);
26847
27074
  var ob2 = {};
26848
27075
  ob2.getBezierEasing = getBezierEasing;
26849
27076
  var beziers = {};
26850
- function getBezierEasing(a, b, c2, d2, nm) {
26851
- var str = nm || ("bez_" + a + "_" + b + "_" + c2 + "_" + d2).replace(/\./g, "p");
27077
+ function getBezierEasing(a, b, c6, d2, nm) {
27078
+ var str = nm || ("bez_" + a + "_" + b + "_" + c6 + "_" + d2).replace(/\./g, "p");
26852
27079
  if (beziers[str]) {
26853
27080
  return beziers[str];
26854
27081
  }
26855
- var bezEasing = new BezierEasing([a, b, c2, d2]);
27082
+ var bezEasing = new BezierEasing([a, b, c6, d2]);
26856
27083
  beziers[str] = bezEasing;
26857
27084
  return bezEasing;
26858
27085
  }
@@ -27462,16 +27689,16 @@ Please add \`${key2}Action\` when creating your handler.`);
27462
27689
  var heading = values[0] * degToRads;
27463
27690
  var attitude = values[1] * degToRads;
27464
27691
  var bank = values[2] * degToRads;
27465
- var c1 = Math.cos(heading / 2);
27466
- var c2 = Math.cos(attitude / 2);
27467
- var c3 = Math.cos(bank / 2);
27692
+ var c12 = Math.cos(heading / 2);
27693
+ var c22 = Math.cos(attitude / 2);
27694
+ var c32 = Math.cos(bank / 2);
27468
27695
  var s1 = Math.sin(heading / 2);
27469
27696
  var s2 = Math.sin(attitude / 2);
27470
27697
  var s3 = Math.sin(bank / 2);
27471
- var w = c1 * c2 * c3 - s1 * s2 * s3;
27472
- var x = s1 * s2 * c3 + c1 * c2 * s3;
27473
- var y = s1 * c2 * c3 + c1 * s2 * s3;
27474
- var z = c1 * s2 * c3 - s1 * c2 * s3;
27698
+ var w = c12 * c22 * c32 - s1 * s2 * s3;
27699
+ var x = s1 * s2 * c32 + c12 * c22 * s3;
27700
+ var y = s1 * c22 * c32 + c12 * s2 * s3;
27701
+ var z = c12 * s2 * c32 - s1 * c22 * s3;
27475
27702
  return [x, y, z, w];
27476
27703
  }
27477
27704
  function getValueAtCurrentTime() {
@@ -28469,10 +28696,10 @@ Please add \`${key2}Action\` when creating your handler.`);
28469
28696
  }
28470
28697
  return this._t(sx, 0, 0, 0, 0, sy, 0, 0, 0, 0, sz, 0, 0, 0, 0, 1);
28471
28698
  }
28472
- function setTransform(a, b, c2, d2, e, f, g, h, i2, j, k, l2, m2, n2, o, p2) {
28699
+ function setTransform(a, b, c6, d2, e, f, g, h, i2, j, k, l2, m2, n2, o, p2) {
28473
28700
  this.props[0] = a;
28474
28701
  this.props[1] = b;
28475
- this.props[2] = c2;
28702
+ this.props[2] = c6;
28476
28703
  this.props[3] = d2;
28477
28704
  this.props[4] = e;
28478
28705
  this.props[5] = f;
@@ -28495,9 +28722,9 @@ Please add \`${key2}Action\` when creating your handler.`);
28495
28722
  }
28496
28723
  return this;
28497
28724
  }
28498
- function transform2(a2, b2, c2, d2, e2, f2, g2, h2, i2, j2, k2, l2, m2, n2, o2, p2) {
28725
+ function transform2(a2, b2, c22, d2, e2, f2, g2, h2, i2, j2, k2, l2, m2, n2, o2, p2) {
28499
28726
  var _p = this.props;
28500
- if (a2 === 1 && b2 === 0 && c2 === 0 && d2 === 0 && e2 === 0 && f2 === 1 && g2 === 0 && h2 === 0 && i2 === 0 && j2 === 0 && k2 === 1 && l2 === 0) {
28727
+ if (a2 === 1 && b2 === 0 && c22 === 0 && d2 === 0 && e2 === 0 && f2 === 1 && g2 === 0 && h2 === 0 && i2 === 0 && j2 === 0 && k2 === 1 && l2 === 0) {
28501
28728
  _p[12] = _p[12] * a2 + _p[15] * m2;
28502
28729
  _p[13] = _p[13] * f2 + _p[15] * n2;
28503
28730
  _p[14] = _p[14] * k2 + _p[15] * o2;
@@ -28507,7 +28734,7 @@ Please add \`${key2}Action\` when creating your handler.`);
28507
28734
  }
28508
28735
  var a1 = _p[0];
28509
28736
  var b1 = _p[1];
28510
- var c1 = _p[2];
28737
+ var c12 = _p[2];
28511
28738
  var d1 = _p[3];
28512
28739
  var e1 = _p[4];
28513
28740
  var f1 = _p[5];
@@ -28521,21 +28748,21 @@ Please add \`${key2}Action\` when creating your handler.`);
28521
28748
  var n1 = _p[13];
28522
28749
  var o1 = _p[14];
28523
28750
  var p1 = _p[15];
28524
- _p[0] = a1 * a2 + b1 * e2 + c1 * i2 + d1 * m2;
28525
- _p[1] = a1 * b2 + b1 * f2 + c1 * j2 + d1 * n2;
28526
- _p[2] = a1 * c2 + b1 * g2 + c1 * k2 + d1 * o2;
28527
- _p[3] = a1 * d2 + b1 * h2 + c1 * l2 + d1 * p2;
28751
+ _p[0] = a1 * a2 + b1 * e2 + c12 * i2 + d1 * m2;
28752
+ _p[1] = a1 * b2 + b1 * f2 + c12 * j2 + d1 * n2;
28753
+ _p[2] = a1 * c22 + b1 * g2 + c12 * k2 + d1 * o2;
28754
+ _p[3] = a1 * d2 + b1 * h2 + c12 * l2 + d1 * p2;
28528
28755
  _p[4] = e1 * a2 + f1 * e2 + g1 * i2 + h1 * m2;
28529
28756
  _p[5] = e1 * b2 + f1 * f2 + g1 * j2 + h1 * n2;
28530
- _p[6] = e1 * c2 + f1 * g2 + g1 * k2 + h1 * o2;
28757
+ _p[6] = e1 * c22 + f1 * g2 + g1 * k2 + h1 * o2;
28531
28758
  _p[7] = e1 * d2 + f1 * h2 + g1 * l2 + h1 * p2;
28532
28759
  _p[8] = i1 * a2 + j1 * e2 + k1 * i2 + l1 * m2;
28533
28760
  _p[9] = i1 * b2 + j1 * f2 + k1 * j2 + l1 * n2;
28534
- _p[10] = i1 * c2 + j1 * g2 + k1 * k2 + l1 * o2;
28761
+ _p[10] = i1 * c22 + j1 * g2 + k1 * k2 + l1 * o2;
28535
28762
  _p[11] = i1 * d2 + j1 * h2 + k1 * l2 + l1 * p2;
28536
28763
  _p[12] = m1 * a2 + n1 * e2 + o1 * i2 + p1 * m2;
28537
28764
  _p[13] = m1 * b2 + n1 * f2 + o1 * j2 + p1 * n2;
28538
- _p[14] = m1 * c2 + n1 * g2 + o1 * k2 + p1 * o2;
28765
+ _p[14] = m1 * c22 + n1 * g2 + o1 * k2 + p1 * o2;
28539
28766
  _p[15] = m1 * d2 + n1 * h2 + o1 * l2 + p1 * p2;
28540
28767
  this._identityCalculated = false;
28541
28768
  return this;
@@ -28594,14 +28821,14 @@ Please add \`${key2}Action\` when creating your handler.`);
28594
28821
  var determinant = this.props[0] * this.props[5] - this.props[1] * this.props[4];
28595
28822
  var a = this.props[5] / determinant;
28596
28823
  var b = -this.props[1] / determinant;
28597
- var c2 = -this.props[4] / determinant;
28824
+ var c6 = -this.props[4] / determinant;
28598
28825
  var d2 = this.props[0] / determinant;
28599
28826
  var e = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / determinant;
28600
28827
  var f = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / determinant;
28601
28828
  var inverseMatrix = new Matrix();
28602
28829
  inverseMatrix.props[0] = a;
28603
28830
  inverseMatrix.props[1] = b;
28604
- inverseMatrix.props[4] = c2;
28831
+ inverseMatrix.props[4] = c6;
28605
28832
  inverseMatrix.props[5] = d2;
28606
28833
  inverseMatrix.props[12] = e;
28607
28834
  inverseMatrix.props[13] = f;
@@ -28727,13 +28954,18 @@ Please add \`${key2}Action\` when creating your handler.`);
28727
28954
  this.reset();
28728
28955
  };
28729
28956
  }();
28730
- function _typeof$3(o) {
28957
+ function _typeof$3(obj) {
28731
28958
  "@babel/helpers - typeof";
28732
- return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
28733
- return typeof o2;
28734
- } : function(o2) {
28735
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
28736
- }, _typeof$3(o);
28959
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
28960
+ _typeof$3 = function _typeof2(obj2) {
28961
+ return typeof obj2;
28962
+ };
28963
+ } else {
28964
+ _typeof$3 = function _typeof2(obj2) {
28965
+ return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
28966
+ };
28967
+ }
28968
+ return _typeof$3(obj);
28737
28969
  }
28738
28970
  var lottie = {};
28739
28971
  function setLocation(href) {
@@ -28817,7 +29049,7 @@ Please add \`${key2}Action\` when creating your handler.`);
28817
29049
  lottie.useWebWorker = setWebWorker;
28818
29050
  lottie.setIDPrefix = setPrefix;
28819
29051
  lottie.__getFactory = getFactory;
28820
- lottie.version = "5.13.0";
29052
+ lottie.version = "5.12.2";
28821
29053
  function checkReady() {
28822
29054
  if (document.readyState === "complete") {
28823
29055
  clearInterval(readyStateCheckInterval);
@@ -29894,9 +30126,9 @@ Please add \`${key2}Action\` when creating your handler.`);
29894
30126
  function lerpPoint(p0, p1, amount) {
29895
30127
  return [lerp(p0[0], p1[0], amount), lerp(p0[1], p1[1], amount)];
29896
30128
  }
29897
- function quadRoots(a, b, c2) {
30129
+ function quadRoots(a, b, c6) {
29898
30130
  if (a === 0) return [];
29899
- var s2 = b * b - 4 * a * c2;
30131
+ var s2 = b * b - 4 * a * c6;
29900
30132
  if (s2 < 0) return [];
29901
30133
  var singleRoot = -b / (2 * a);
29902
30134
  if (s2 === 0) return [singleRoot];
@@ -31411,7 +31643,7 @@ Please add \`${key2}Action\` when creating your handler.`);
31411
31643
  }
31412
31644
  }
31413
31645
  }
31414
- if (!this.localTransforms || this.finalTransform._matMdf) {
31646
+ if (this.finalTransform._matMdf) {
31415
31647
  this.finalTransform._localMatMdf = this.finalTransform._matMdf;
31416
31648
  }
31417
31649
  if (this.finalTransform._opMdf) {
@@ -32649,7 +32881,7 @@ Please add \`${key2}Action\` when creating your handler.`);
32649
32881
  itemData.of.setAttribute("r", rad);
32650
32882
  }
32651
32883
  }
32652
- if (itemData.s._mdf || itemData.e._mdf || itemData.h._mdf || itemData.a._mdf || isFirstFrame) {
32884
+ if (itemData.e._mdf || itemData.h._mdf || itemData.a._mdf || isFirstFrame) {
32653
32885
  if (!rad) {
32654
32886
  rad = Math.sqrt(Math.pow(pt1[0] - pt2[0], 2) + Math.pow(pt1[1] - pt2[1], 2));
32655
32887
  }
@@ -32846,7 +33078,7 @@ Please add \`${key2}Action\` when creating your handler.`);
32846
33078
  var j;
32847
33079
  var jLen = this.stylesList.length;
32848
33080
  for (j = 0; j < jLen; j += 1) {
32849
- if (arr.indexOf(this.stylesList[j]) === -1 && !this.stylesList[j].closed) {
33081
+ if (!this.stylesList[j].closed) {
32850
33082
  arr.push(this.stylesList[j]);
32851
33083
  }
32852
33084
  }
@@ -32888,7 +33120,7 @@ Please add \`${key2}Action\` when creating your handler.`);
32888
33120
  if (!processedPos) {
32889
33121
  itemsData[i2] = this.createStyleElement(arr[i2], level);
32890
33122
  } else {
32891
- itemsData[i2].style.closed = arr[i2].hd;
33123
+ itemsData[i2].style.closed = false;
32892
33124
  }
32893
33125
  if (arr[i2]._render) {
32894
33126
  if (itemsData[i2].style.pElem.parentNode !== container) {
@@ -36800,21 +37032,21 @@ Please add \`${key2}Action\` when creating your handler.`);
36800
37032
  };
36801
37033
  HShapeElement.prototype.getBoundsOfCurve = function(p0, p1, p2, p3) {
36802
37034
  var bounds = [[p0[0], p3[0]], [p0[1], p3[1]]];
36803
- for (var a, b, c2, t, b2ac, t1, t2, i2 = 0; i2 < 2; ++i2) {
37035
+ for (var a, b, c6, t, b2ac, t1, t2, i2 = 0; i2 < 2; ++i2) {
36804
37036
  b = 6 * p0[i2] - 12 * p1[i2] + 6 * p2[i2];
36805
37037
  a = -3 * p0[i2] + 9 * p1[i2] - 9 * p2[i2] + 3 * p3[i2];
36806
- c2 = 3 * p1[i2] - 3 * p0[i2];
37038
+ c6 = 3 * p1[i2] - 3 * p0[i2];
36807
37039
  b |= 0;
36808
37040
  a |= 0;
36809
- c2 |= 0;
37041
+ c6 |= 0;
36810
37042
  if (a === 0 && b === 0) ;
36811
37043
  else if (a === 0) {
36812
- t = -c2 / b;
37044
+ t = -c6 / b;
36813
37045
  if (t > 0 && t < 1) {
36814
37046
  bounds[i2].push(this.calculateF(t, p0, p1, p2, p3, i2));
36815
37047
  }
36816
37048
  } else {
36817
- b2ac = b * b - 4 * c2 * a;
37049
+ b2ac = b * b - 4 * c6 * a;
36818
37050
  if (b2ac >= 0) {
36819
37051
  t1 = (-b + bmSqrt(b2ac)) / (2 * a);
36820
37052
  if (t1 > 0 && t1 < 1) bounds[i2].push(this.calculateF(t1, p0, p1, p2, p3, i2));
@@ -37725,13 +37957,18 @@ Please add \`${key2}Action\` when creating your handler.`);
37725
37957
  return _thisLayerFunction;
37726
37958
  };
37727
37959
  }();
37728
- function _typeof$2(o) {
37960
+ function _typeof$2(obj) {
37729
37961
  "@babel/helpers - typeof";
37730
- return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
37731
- return typeof o2;
37732
- } : function(o2) {
37733
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
37734
- }, _typeof$2(o);
37962
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
37963
+ _typeof$2 = function _typeof2(obj2) {
37964
+ return typeof obj2;
37965
+ };
37966
+ } else {
37967
+ _typeof$2 = function _typeof2(obj2) {
37968
+ return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
37969
+ };
37970
+ }
37971
+ return _typeof$2(obj);
37735
37972
  }
37736
37973
  function seedRandom(pool, math) {
37737
37974
  var global2 = this, width2 = 256, chunks = 6, digits = 52, rngname = "random", startdenom = math.pow(width2, chunks), significance = math.pow(2, digits), overflow = significance * 2, mask2 = width2 - 1, nodecrypto;
@@ -37850,13 +38087,18 @@ Please add \`${key2}Action\` when creating your handler.`);
37850
38087
  var propTypes = {
37851
38088
  SHAPE: "shape"
37852
38089
  };
37853
- function _typeof$1(o) {
38090
+ function _typeof$1(obj) {
37854
38091
  "@babel/helpers - typeof";
37855
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
37856
- return typeof o2;
37857
- } : function(o2) {
37858
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
37859
- }, _typeof$1(o);
38092
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
38093
+ _typeof$1 = function _typeof2(obj2) {
38094
+ return typeof obj2;
38095
+ };
38096
+ } else {
38097
+ _typeof$1 = function _typeof2(obj2) {
38098
+ return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
38099
+ };
38100
+ }
38101
+ return _typeof$1(obj);
37860
38102
  }
37861
38103
  var ExpressionManager = function() {
37862
38104
  var ob = {};
@@ -38224,7 +38466,6 @@ Please add \`${key2}Action\` when creating your handler.`);
38224
38466
  var content;
38225
38467
  var effect;
38226
38468
  var thisProperty = property;
38227
- thisProperty._name = elem.data.nm;
38228
38469
  thisProperty.valueAtTime = thisProperty.getValueAtTime;
38229
38470
  Object.defineProperty(thisProperty, "value", {
38230
38471
  get: function get() {
@@ -38661,7 +38902,6 @@ Please add \`${key2}Action\` when creating your handler.`);
38661
38902
  if (expressionValue.value !== val2) {
38662
38903
  expressionValue = new Number(val2);
38663
38904
  expressionValue.value = val2;
38664
- expressionValue[0] = val2;
38665
38905
  completeProperty(expressionValue, property2, "unidimensional");
38666
38906
  }
38667
38907
  return expressionValue;
@@ -39701,13 +39941,18 @@ Please add \`${key2}Action\` when creating your handler.`);
39701
39941
  return _thisLayerFunction;
39702
39942
  };
39703
39943
  }();
39704
- function _typeof(o) {
39944
+ function _typeof(obj) {
39705
39945
  "@babel/helpers - typeof";
39706
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
39707
- return typeof o2;
39708
- } : function(o2) {
39709
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
39710
- }, _typeof(o);
39946
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
39947
+ _typeof = function _typeof2(obj2) {
39948
+ return typeof obj2;
39949
+ };
39950
+ } else {
39951
+ _typeof = function _typeof2(obj2) {
39952
+ return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
39953
+ };
39954
+ }
39955
+ return _typeof(obj);
39711
39956
  }
39712
39957
  var FootageInterface = /* @__PURE__ */ function() {
39713
39958
  var outlineInterfaceFactory = function outlineInterfaceFactory2(elem2) {
@@ -40819,106 +41064,122 @@ Please add \`${key2}Action\` when creating your handler.`);
40819
41064
  })(lottie$1, lottie$1.exports);
40820
41065
  var lottieExports = lottie$1.exports;
40821
41066
  const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports);
40822
- function _arrayLikeToArray(r, a) {
40823
- (null == a || a > r.length) && (a = r.length);
40824
- for (var e = 0, n2 = Array(a); e < a; e++) n2[e] = r[e];
40825
- return n2;
40826
- }
40827
- function _arrayWithHoles(r) {
40828
- if (Array.isArray(r)) return r;
40829
- }
40830
- function _defineProperty(e, r, t) {
40831
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
40832
- value: t,
40833
- enumerable: true,
40834
- configurable: true,
40835
- writable: true
40836
- }) : e[r] = t, e;
40837
- }
40838
- function _iterableToArrayLimit(r, l2) {
40839
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
40840
- if (null != t) {
40841
- var e, n2, i2, u, a = [], f = true, o = false;
41067
+ function _iterableToArrayLimit(arr, i2) {
41068
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
41069
+ if (null != _i) {
41070
+ var _s, _e, _x, _r, _arr = [], _n = true, _d = false;
40842
41071
  try {
40843
- if (i2 = (t = t.call(r)).next, 0 === l2) ;
40844
- else for (; !(f = (e = i2.call(t)).done) && (a.push(e.value), a.length !== l2); f = true) ;
40845
- } catch (r2) {
40846
- o = true, n2 = r2;
41072
+ if (_x = (_i = _i.call(arr)).next, 0 === i2) ;
41073
+ else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i2); _n = true) ;
41074
+ } catch (err) {
41075
+ _d = true, _e = err;
40847
41076
  } finally {
40848
41077
  try {
40849
- if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
41078
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
40850
41079
  } finally {
40851
- if (o) throw n2;
41080
+ if (_d) throw _e;
40852
41081
  }
40853
41082
  }
40854
- return a;
41083
+ return _arr;
40855
41084
  }
40856
41085
  }
40857
- function _nonIterableRest() {
40858
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
40859
- }
40860
- function ownKeys(e, r) {
40861
- var t = Object.keys(e);
41086
+ function ownKeys(object2, enumerableOnly) {
41087
+ var keys = Object.keys(object2);
40862
41088
  if (Object.getOwnPropertySymbols) {
40863
- var o = Object.getOwnPropertySymbols(e);
40864
- r && (o = o.filter(function(r2) {
40865
- return Object.getOwnPropertyDescriptor(e, r2).enumerable;
40866
- })), t.push.apply(t, o);
41089
+ var symbols = Object.getOwnPropertySymbols(object2);
41090
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
41091
+ return Object.getOwnPropertyDescriptor(object2, sym).enumerable;
41092
+ })), keys.push.apply(keys, symbols);
40867
41093
  }
40868
- return t;
41094
+ return keys;
40869
41095
  }
40870
- function _objectSpread2(e) {
40871
- for (var r = 1; r < arguments.length; r++) {
40872
- var t = null != arguments[r] ? arguments[r] : {};
40873
- r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
40874
- _defineProperty(e, r2, t[r2]);
40875
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
40876
- Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
41096
+ function _objectSpread2(target) {
41097
+ for (var i2 = 1; i2 < arguments.length; i2++) {
41098
+ var source = null != arguments[i2] ? arguments[i2] : {};
41099
+ i2 % 2 ? ownKeys(Object(source), true).forEach(function(key2) {
41100
+ _defineProperty(target, key2, source[key2]);
41101
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key2) {
41102
+ Object.defineProperty(target, key2, Object.getOwnPropertyDescriptor(source, key2));
40877
41103
  });
40878
41104
  }
40879
- return e;
41105
+ return target;
40880
41106
  }
40881
- function _objectWithoutProperties(e, t) {
40882
- if (null == e) return {};
40883
- var o, r, i2 = _objectWithoutPropertiesLoose(e, t);
40884
- if (Object.getOwnPropertySymbols) {
40885
- var s2 = Object.getOwnPropertySymbols(e);
40886
- for (r = 0; r < s2.length; r++) o = s2[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i2[o] = e[o]);
41107
+ function _defineProperty(obj, key2, value2) {
41108
+ key2 = _toPropertyKey(key2);
41109
+ if (key2 in obj) {
41110
+ Object.defineProperty(obj, key2, {
41111
+ value: value2,
41112
+ enumerable: true,
41113
+ configurable: true,
41114
+ writable: true
41115
+ });
41116
+ } else {
41117
+ obj[key2] = value2;
40887
41118
  }
40888
- return i2;
41119
+ return obj;
40889
41120
  }
40890
- function _objectWithoutPropertiesLoose(r, e) {
40891
- if (null == r) return {};
40892
- var t = {};
40893
- for (var n2 in r) if ({}.hasOwnProperty.call(r, n2)) {
40894
- if (e.includes(n2)) continue;
40895
- t[n2] = r[n2];
41121
+ function _objectWithoutPropertiesLoose(source, excluded) {
41122
+ if (source == null) return {};
41123
+ var target = {};
41124
+ var sourceKeys = Object.keys(source);
41125
+ var key2, i2;
41126
+ for (i2 = 0; i2 < sourceKeys.length; i2++) {
41127
+ key2 = sourceKeys[i2];
41128
+ if (excluded.indexOf(key2) >= 0) continue;
41129
+ target[key2] = source[key2];
40896
41130
  }
40897
- return t;
40898
- }
40899
- function _slicedToArray(r, e) {
40900
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
41131
+ return target;
40901
41132
  }
40902
- function _toPrimitive(t, r) {
40903
- if ("object" != typeof t || !t) return t;
40904
- var e = t[Symbol.toPrimitive];
40905
- if (void 0 !== e) {
40906
- var i2 = e.call(t, r);
40907
- if ("object" != typeof i2) return i2;
40908
- throw new TypeError("@@toPrimitive must return a primitive value.");
41133
+ function _objectWithoutProperties(source, excluded) {
41134
+ if (source == null) return {};
41135
+ var target = _objectWithoutPropertiesLoose(source, excluded);
41136
+ var key2, i2;
41137
+ if (Object.getOwnPropertySymbols) {
41138
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
41139
+ for (i2 = 0; i2 < sourceSymbolKeys.length; i2++) {
41140
+ key2 = sourceSymbolKeys[i2];
41141
+ if (excluded.indexOf(key2) >= 0) continue;
41142
+ if (!Object.prototype.propertyIsEnumerable.call(source, key2)) continue;
41143
+ target[key2] = source[key2];
41144
+ }
40909
41145
  }
40910
- return ("string" === r ? String : Number)(t);
41146
+ return target;
40911
41147
  }
40912
- function _toPropertyKey(t) {
40913
- var i2 = _toPrimitive(t, "string");
40914
- return "symbol" == typeof i2 ? i2 : i2 + "";
41148
+ function _slicedToArray(arr, i2) {
41149
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i2) || _unsupportedIterableToArray(arr, i2) || _nonIterableRest();
40915
41150
  }
40916
- function _unsupportedIterableToArray(r, a) {
40917
- if (r) {
40918
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
40919
- var t = {}.toString.call(r).slice(8, -1);
40920
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
41151
+ function _arrayWithHoles(arr) {
41152
+ if (Array.isArray(arr)) return arr;
41153
+ }
41154
+ function _unsupportedIterableToArray(o, minLen) {
41155
+ if (!o) return;
41156
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
41157
+ var n2 = Object.prototype.toString.call(o).slice(8, -1);
41158
+ if (n2 === "Object" && o.constructor) n2 = o.constructor.name;
41159
+ if (n2 === "Map" || n2 === "Set") return Array.from(o);
41160
+ if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2)) return _arrayLikeToArray(o, minLen);
41161
+ }
41162
+ function _arrayLikeToArray(arr, len) {
41163
+ if (len == null || len > arr.length) len = arr.length;
41164
+ for (var i2 = 0, arr2 = new Array(len); i2 < len; i2++) arr2[i2] = arr[i2];
41165
+ return arr2;
41166
+ }
41167
+ function _nonIterableRest() {
41168
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
41169
+ }
41170
+ function _toPrimitive(input, hint) {
41171
+ if (typeof input !== "object" || input === null) return input;
41172
+ var prim = input[Symbol.toPrimitive];
41173
+ if (prim !== void 0) {
41174
+ var res = prim.call(input, hint || "default");
41175
+ if (typeof res !== "object") return res;
41176
+ throw new TypeError("@@toPrimitive must return a primitive value.");
40921
41177
  }
41178
+ return (hint === "string" ? String : Number)(input);
41179
+ }
41180
+ function _toPropertyKey(arg) {
41181
+ var key2 = _toPrimitive(arg, "string");
41182
+ return typeof key2 === "symbol" ? key2 : String(key2);
40922
41183
  }
40923
41184
  var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onComplete", "onLoopComplete", "onEnterFrame", "onSegmentStart", "onConfigReady", "onDataReady", "onDataFailed", "onLoadedImages", "onDOMLoaded", "onDestroy", "lottieRef", "renderer", "name", "assetsPath", "rendererSettings"];
40924
41185
  var useLottie = function useLottie2(props, style) {
@@ -42691,8 +42952,8 @@ Please add \`${key2}Action\` when creating your handler.`);
42691
42952
  }));
42692
42953
  resetScale(scale2);
42693
42954
  };
42694
- var inputImageChange = function(event) {
42695
- return _async_to_generator(function() {
42955
+ var inputImageChange = /* @__PURE__ */ function() {
42956
+ var _ref2 = _async_to_generator(function(event) {
42696
42957
  var $el, files, base64, image;
42697
42958
  return __generator(this, function(_state) {
42698
42959
  switch (_state.label) {
@@ -42721,8 +42982,11 @@ Please add \`${key2}Action\` when creating your handler.`);
42721
42982
  ];
42722
42983
  }
42723
42984
  });
42724
- })();
42725
- };
42985
+ });
42986
+ return function inputImageChange2(event) {
42987
+ return _ref2.apply(this, arguments);
42988
+ };
42989
+ }();
42726
42990
  var resetScale = function(scale2) {
42727
42991
  setState(_object_spread_props(_object_spread({}, state), {
42728
42992
  moveX: 0,
@@ -42733,7 +42997,7 @@ Please add \`${key2}Action\` when creating your handler.`);
42733
42997
  }));
42734
42998
  };
42735
42999
  var setScale = function(scale2) {
42736
- scale2 = clamp$1(scale2, 0.3, +maxZoom + 1);
43000
+ scale2 = clamp$2(scale2, 0.3, +maxZoom + 1);
42737
43001
  if (scale2 !== state.scale) {
42738
43002
  setState(_object_spread_props(_object_spread({}, state), {
42739
43003
  scale: scale2
@@ -42779,8 +43043,8 @@ Please add \`${key2}Action\` when creating your handler.`);
42779
43043
  var moveX = deltaX.current * state.scale + startMoveX;
42780
43044
  var moveY = deltaY.current * state.scale + startMoveY;
42781
43045
  setState(_object_spread_props(_object_spread({}, state), {
42782
- moveX: clamp$1(moveX, -maxMoveX, maxMoveX),
42783
- moveY: clamp$1(moveY, -maxMoveY, maxMoveY)
43046
+ moveX: clamp$2(moveX, -maxMoveX, maxMoveX),
43047
+ moveY: clamp$2(moveY, -maxMoveY, maxMoveY)
42784
43048
  }));
42785
43049
  }
42786
43050
  if (zooming && touches.length === 2) {
@@ -42796,8 +43060,8 @@ Please add \`${key2}Action\` when creating your handler.`);
42796
43060
  if (!event.touches.length) {
42797
43061
  if (zooming) {
42798
43062
  setState(_object_spread_props(_object_spread({}, state), {
42799
- moveX: clamp$1(state.moveX, -maxMoveX, maxMoveX),
42800
- moveY: clamp$1(state.moveY, -maxMoveY, maxMoveY)
43063
+ moveX: clamp$2(state.moveX, -maxMoveX, maxMoveX),
43064
+ moveY: clamp$2(state.moveY, -maxMoveY, maxMoveY)
42801
43065
  }));
42802
43066
  setZooming(false);
42803
43067
  }
@@ -43539,7 +43803,7 @@ Please add \`${key2}Action\` when creating your handler.`);
43539
43803
  exports.bound = bound;
43540
43804
  exports.canUseDom = canUseDom;
43541
43805
  exports.cancelRaf = cancelRaf;
43542
- exports.clamp = clamp$1;
43806
+ exports.clamp = clamp$2;
43543
43807
  exports.clone = clone;
43544
43808
  exports.destroyList = destroyList;
43545
43809
  exports.funcInterceptor = funcInterceptor;