@nutui/nutui-react-taro 3.0.19-cpp-beta.5 → 3.0.19-cpp.10

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 (350) hide show
  1. package/dist/cjs/hooks/taro/use-custom-event.js +5 -5
  2. package/dist/cjs/hooks/use-ref-state.js +3 -3
  3. package/dist/cjs/hooks/use-touch.js +1 -2
  4. package/dist/cjs/packages/actionsheet/style/style.harmony.css +2 -2
  5. package/dist/cjs/packages/address/style/style.harmony.css +9 -3
  6. package/dist/cjs/packages/address/utils.js +3 -3
  7. package/dist/cjs/packages/audio/style/style.harmony.css +8 -5
  8. package/dist/cjs/packages/avatarcropper/avatarcropper.js +16 -28
  9. package/dist/cjs/packages/badge/badge.js +4 -7
  10. package/dist/cjs/packages/badge/style/badge.scss +1 -1
  11. package/dist/cjs/packages/badge/style/style.css +1 -1
  12. package/dist/cjs/packages/badge/style/style.harmony.css +1 -1
  13. package/dist/cjs/packages/badge/style-jmapp/badge.scss +1 -1
  14. package/dist/cjs/packages/badge/style-jmapp/style.css +1 -1
  15. package/dist/cjs/packages/badge/style-jrkf/badge.scss +1 -1
  16. package/dist/cjs/packages/badge/style-jrkf/style.css +1 -1
  17. package/dist/cjs/packages/barrage/barrage.js +14 -24
  18. package/dist/cjs/packages/button/style/button.scss +3 -0
  19. package/dist/cjs/packages/button/style/style.css +8 -5
  20. package/dist/cjs/packages/button/style/style.harmony.css +8 -5
  21. package/dist/cjs/packages/button/style-jmapp/button.scss +3 -0
  22. package/dist/cjs/packages/button/style-jmapp/style.css +3 -0
  23. package/dist/cjs/packages/button/style-jrkf/button.scss +3 -0
  24. package/dist/cjs/packages/button/style-jrkf/style.css +3 -0
  25. package/dist/cjs/packages/calendar/style/style.css +2 -2
  26. package/dist/cjs/packages/calendar/style/style.harmony.css +4 -4
  27. package/dist/cjs/packages/calendar/utils.js +8 -8
  28. package/dist/cjs/packages/calendarcard/icon.js +5 -5
  29. package/dist/cjs/packages/calendarcard/style/style.css +1 -1
  30. package/dist/cjs/packages/calendarcard/style/style.harmony.css +1 -1
  31. package/dist/cjs/packages/calendarcard/utils.js +6 -6
  32. package/dist/cjs/packages/card/style/style.harmony.css +4 -4
  33. package/dist/cjs/packages/cascader/cascader.js +12 -21
  34. package/dist/cjs/packages/cascader/style/cascader.scss +2 -0
  35. package/dist/cjs/packages/cascader/style/style.css +2 -0
  36. package/dist/cjs/packages/cascader/style/style.harmony.css +9 -3
  37. package/dist/cjs/packages/cascader/style-jmapp/cascader.scss +2 -0
  38. package/dist/cjs/packages/cascader/style-jmapp/style.css +2 -0
  39. package/dist/cjs/packages/cascader/style-jrkf/cascader.scss +2 -0
  40. package/dist/cjs/packages/cascader/style-jrkf/style.css +2 -0
  41. package/dist/cjs/packages/cascader/utils.js +3 -3
  42. package/dist/cjs/packages/checkbox/checkbox.js +1 -1
  43. package/dist/cjs/packages/checkbox/style/style.css +1 -1
  44. package/dist/cjs/packages/checkbox/style/style.harmony.css +1 -1
  45. package/dist/cjs/packages/circleprogress/style/style.css +1 -1
  46. package/dist/cjs/packages/circleprogress/style/style.harmony.css +1 -1
  47. package/dist/cjs/packages/col/col.js +16 -11
  48. package/dist/cjs/packages/collapseitem/collapseitem.js +4 -7
  49. package/dist/cjs/packages/configprovider/configprovider.js +7 -7
  50. package/dist/cjs/packages/configprovider/index.js +6 -6
  51. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  52. package/dist/cjs/packages/countdown/countdown.js +1 -2
  53. package/dist/cjs/packages/countdown/style/countdown.scss +1 -1
  54. package/dist/cjs/packages/countdown/style/style.css +1 -1
  55. package/dist/cjs/packages/countdown/style/style.harmony.css +1 -1
  56. package/dist/cjs/packages/countdown/style-jmapp/countdown.scss +1 -1
  57. package/dist/cjs/packages/countdown/style-jmapp/style.css +1 -1
  58. package/dist/cjs/packages/countdown/style-jrkf/countdown.scss +1 -1
  59. package/dist/cjs/packages/countdown/style-jrkf/style.css +1 -1
  60. package/dist/cjs/packages/datepicker/style/style.harmony.css +4 -4
  61. package/dist/cjs/packages/datepicker/utils.js +9 -9
  62. package/dist/cjs/packages/dialog/content.js +3 -3
  63. package/dist/cjs/packages/dialog/dialog.js +8 -11
  64. package/dist/cjs/packages/dialog/style/dialog.scss +8 -2
  65. package/dist/cjs/packages/dialog/style/style.css +11 -5
  66. package/dist/cjs/packages/dialog/style/style.harmony.css +19 -10
  67. package/dist/cjs/packages/dialog/style-jmapp/dialog.scss +8 -2
  68. package/dist/cjs/packages/dialog/style-jmapp/style.css +8 -2
  69. package/dist/cjs/packages/dialog/style-jrkf/dialog.scss +8 -2
  70. package/dist/cjs/packages/dialog/style-jrkf/style.css +8 -2
  71. package/dist/cjs/packages/drag/drag.js +4 -7
  72. package/dist/cjs/packages/elevator/elevator.js +7 -10
  73. package/dist/cjs/packages/ellipsis/ellipsis.js +17 -30
  74. package/dist/cjs/packages/empty/style/style.css +2 -2
  75. package/dist/cjs/packages/empty/style/style.harmony.css +10 -7
  76. package/dist/cjs/packages/fixednav/style/style.harmony.css +1 -1
  77. package/dist/cjs/packages/form/index.js +0 -2
  78. package/dist/cjs/packages/form/useform.js +50 -57
  79. package/dist/cjs/packages/imagepreview/style/style.harmony.css +2 -2
  80. package/dist/cjs/packages/infiniteloading/infiniteloading.js +8 -14
  81. package/dist/cjs/packages/input/style/input.scss +0 -1
  82. package/dist/cjs/packages/input/style/style.css +0 -1
  83. package/dist/cjs/packages/input/style/style.harmony.css +0 -1
  84. package/dist/cjs/packages/input/style-jmapp/input.scss +0 -1
  85. package/dist/cjs/packages/input/style-jmapp/style.css +0 -1
  86. package/dist/cjs/packages/input/style-jrkf/input.scss +0 -1
  87. package/dist/cjs/packages/input/style-jrkf/style.css +0 -1
  88. package/dist/cjs/packages/inputnumber/inputnumber.js +16 -28
  89. package/dist/cjs/packages/lottie/types.js +0 -2
  90. package/dist/cjs/packages/menuitem/menuitem.js +24 -22
  91. package/dist/cjs/packages/noticebar/noticebar.js +119 -109
  92. package/dist/cjs/packages/noticebar/style/noticebar.scss +4 -0
  93. package/dist/cjs/packages/noticebar/style/style.css +4 -0
  94. package/dist/cjs/packages/noticebar/style/style.harmony.css +4 -0
  95. package/dist/cjs/packages/noticebar/style-jmapp/noticebar.scss +4 -0
  96. package/dist/cjs/packages/noticebar/style-jmapp/style.css +4 -0
  97. package/dist/cjs/packages/noticebar/style-jrkf/noticebar.scss +4 -0
  98. package/dist/cjs/packages/noticebar/style-jrkf/style.css +4 -0
  99. package/dist/cjs/packages/notify/notify.js +4 -4
  100. package/dist/cjs/packages/numberkeyboard/style/style.css +3 -3
  101. package/dist/cjs/packages/numberkeyboard/style/style.harmony.css +5 -5
  102. package/dist/cjs/packages/nutui.react.build.js +105 -105
  103. package/dist/cjs/packages/nutui.react.js +105 -105
  104. package/dist/cjs/packages/overlay/overlay.js +3 -3
  105. package/dist/cjs/packages/picker/style/style.css +2 -2
  106. package/dist/cjs/packages/picker/style/style.harmony.css +4 -4
  107. package/dist/cjs/packages/pickerview/pickerroller.js +4 -7
  108. package/dist/cjs/packages/pickerview/pickerview.js +1 -2
  109. package/dist/cjs/packages/pickerview/utils.js +3 -3
  110. package/dist/cjs/packages/popover/popover.js +75 -77
  111. package/dist/cjs/packages/popover/style/style.harmony.css +2 -2
  112. package/dist/cjs/packages/popup/popup.js +8 -14
  113. package/dist/cjs/packages/popup/style/style.css +2 -2
  114. package/dist/cjs/packages/popup/style/style.harmony.css +2 -2
  115. package/dist/cjs/packages/price/style/price.scss +3 -3
  116. package/dist/cjs/packages/price/style/style.css +4 -4
  117. package/dist/cjs/packages/price/style/style.harmony.css +4 -4
  118. package/dist/cjs/packages/price/style-jmapp/price.scss +3 -3
  119. package/dist/cjs/packages/price/style-jmapp/style.css +3 -3
  120. package/dist/cjs/packages/price/style-jrkf/price.scss +3 -3
  121. package/dist/cjs/packages/price/style-jrkf/style.css +3 -3
  122. package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +52 -56
  123. package/dist/cjs/packages/radio/index.js +0 -2
  124. package/dist/cjs/packages/radio/style/style.css +1 -1
  125. package/dist/cjs/packages/radio/style/style.harmony.css +1 -1
  126. package/dist/cjs/packages/range/range.js +16 -28
  127. package/dist/cjs/packages/rate/style/rate.scss +1 -1
  128. package/dist/cjs/packages/rate/style/style.css +1 -1
  129. package/dist/cjs/packages/rate/style/style.harmony.css +1 -1
  130. package/dist/cjs/packages/rate/style-jmapp/rate.scss +1 -1
  131. package/dist/cjs/packages/rate/style-jmapp/style.css +1 -1
  132. package/dist/cjs/packages/rate/style-jrkf/rate.scss +1 -1
  133. package/dist/cjs/packages/rate/style-jrkf/style.css +1 -1
  134. package/dist/cjs/packages/resultpage/style/style.harmony.css +8 -5
  135. package/dist/cjs/packages/shortpassword/shortpassword.js +3 -3
  136. package/dist/cjs/packages/shortpassword/style/style.css +1 -1
  137. package/dist/cjs/packages/shortpassword/style/style.harmony.css +3 -3
  138. package/dist/cjs/packages/sidebar/style/style.css +1 -1
  139. package/dist/cjs/packages/sidebar/style/style.harmony.css +1 -1
  140. package/dist/cjs/packages/steps/style/style.css +1 -1
  141. package/dist/cjs/packages/steps/style/style.harmony.css +1 -1
  142. package/dist/cjs/packages/sticky/sticky.js +4 -7
  143. package/dist/cjs/packages/swipe/swipe.js +8 -15
  144. package/dist/cjs/packages/swiper/index.js +0 -1
  145. package/dist/cjs/packages/switch/switch.js +4 -7
  146. package/dist/cjs/packages/tabbar/style/style.harmony.css +3 -3
  147. package/dist/cjs/packages/tabbaritem/style/style.css +2 -2
  148. package/dist/cjs/packages/tabbaritem/style/style.harmony.css +3 -3
  149. package/dist/cjs/packages/tabs/style/style.css +5 -1
  150. package/dist/cjs/packages/tabs/style/style.harmony.css +5 -1
  151. package/dist/cjs/packages/tabs/style/tabs.scss +4 -0
  152. package/dist/cjs/packages/tabs/style-jmapp/style.css +4 -0
  153. package/dist/cjs/packages/tabs/style-jmapp/tabs.scss +4 -0
  154. package/dist/cjs/packages/tabs/style-jrkf/style.css +4 -0
  155. package/dist/cjs/packages/tabs/style-jrkf/tabs.scss +4 -0
  156. package/dist/cjs/packages/timeselect/style/style.harmony.css +2 -2
  157. package/dist/cjs/packages/toast/style/style.css +7 -1
  158. package/dist/cjs/packages/toast/style/style.harmony.css +7 -1
  159. package/dist/cjs/packages/toast/style/toast.scss +6 -0
  160. package/dist/cjs/packages/toast/style-jmapp/style.css +6 -0
  161. package/dist/cjs/packages/toast/style-jmapp/toast.scss +6 -0
  162. package/dist/cjs/packages/toast/style-jrkf/style.css +6 -0
  163. package/dist/cjs/packages/toast/style-jrkf/toast.scss +6 -0
  164. package/dist/cjs/packages/toast/toast.js +5 -5
  165. package/dist/cjs/packages/tour/style/style.harmony.css +2 -2
  166. package/dist/cjs/packages/uploader/uploader.js +38 -51
  167. package/dist/cjs/packages/virtuallist/utils.js +6 -6
  168. package/dist/cjs/packages/watermark/watermark.js +4 -8
  169. package/dist/cjs/types/spec/address/base.js +0 -2
  170. package/dist/cjs/utils/date.js +5 -5
  171. package/dist/cjs/utils/event-mocker.js +10 -18
  172. package/dist/cjs/utils/get-rect.js +4 -4
  173. package/dist/cjs/utils/get-scroll-parent.js +3 -3
  174. package/dist/cjs/utils/merge-props.js +3 -3
  175. package/dist/cjs/utils/merge.js +6 -6
  176. package/dist/cjs/utils/raf.js +3 -3
  177. package/dist/cjs/utils/render.js +5 -9
  178. package/dist/cjs/utils/rubberband.js +3 -3
  179. package/dist/cjs/utils/taro/get-rect.js +14 -24
  180. package/dist/cjs/utils/taro/get-system-info.js +4 -4
  181. package/dist/cjs/utils/taro/platform.js +5 -5
  182. package/dist/es/hooks/use-touch.js +1 -1
  183. package/dist/es/packages/actionsheet/style/style.harmony.css +2 -2
  184. package/dist/es/packages/address/style/style.harmony.css +9 -3
  185. package/dist/es/packages/audio/style/style.harmony.css +8 -5
  186. package/dist/es/packages/avatarcropper/avatarcropper.js +16 -28
  187. package/dist/es/packages/badge/badge.js +4 -7
  188. package/dist/es/packages/badge/style/badge.scss +1 -1
  189. package/dist/es/packages/badge/style/style.css +1 -1
  190. package/dist/es/packages/badge/style/style.harmony.css +1 -1
  191. package/dist/es/packages/badge/style-jmapp/badge.scss +1 -1
  192. package/dist/es/packages/badge/style-jmapp/style.css +1 -1
  193. package/dist/es/packages/badge/style-jrkf/badge.scss +1 -1
  194. package/dist/es/packages/badge/style-jrkf/style.css +1 -1
  195. package/dist/es/packages/barrage/barrage.js +14 -24
  196. package/dist/es/packages/button/style/button.scss +3 -0
  197. package/dist/es/packages/button/style/style.css +8 -5
  198. package/dist/es/packages/button/style/style.harmony.css +8 -5
  199. package/dist/es/packages/button/style-jmapp/button.scss +3 -0
  200. package/dist/es/packages/button/style-jmapp/style.css +3 -0
  201. package/dist/es/packages/button/style-jrkf/button.scss +3 -0
  202. package/dist/es/packages/button/style-jrkf/style.css +3 -0
  203. package/dist/es/packages/calendar/style/style.css +2 -2
  204. package/dist/es/packages/calendar/style/style.harmony.css +4 -4
  205. package/dist/es/packages/calendarcard/style/style.css +1 -1
  206. package/dist/es/packages/calendarcard/style/style.harmony.css +1 -1
  207. package/dist/es/packages/card/style/style.harmony.css +4 -4
  208. package/dist/es/packages/cascader/cascader.js +12 -21
  209. package/dist/es/packages/cascader/style/cascader.scss +2 -0
  210. package/dist/es/packages/cascader/style/style.css +2 -0
  211. package/dist/es/packages/cascader/style/style.harmony.css +9 -3
  212. package/dist/es/packages/cascader/style-jmapp/cascader.scss +2 -0
  213. package/dist/es/packages/cascader/style-jmapp/style.css +2 -0
  214. package/dist/es/packages/cascader/style-jrkf/cascader.scss +2 -0
  215. package/dist/es/packages/cascader/style-jrkf/style.css +2 -0
  216. package/dist/es/packages/checkbox/checkbox.js +1 -1
  217. package/dist/es/packages/checkbox/style/style.css +1 -1
  218. package/dist/es/packages/checkbox/style/style.harmony.css +1 -1
  219. package/dist/es/packages/circleprogress/style/style.css +1 -1
  220. package/dist/es/packages/circleprogress/style/style.harmony.css +1 -1
  221. package/dist/es/packages/col/col.js +17 -12
  222. package/dist/es/packages/collapseitem/collapseitem.js +4 -7
  223. package/dist/es/packages/configprovider/types.d.ts +1 -1
  224. package/dist/es/packages/countdown/countdown.js +1 -2
  225. package/dist/es/packages/countdown/style/countdown.scss +1 -1
  226. package/dist/es/packages/countdown/style/style.css +1 -1
  227. package/dist/es/packages/countdown/style/style.harmony.css +1 -1
  228. package/dist/es/packages/countdown/style-jmapp/countdown.scss +1 -1
  229. package/dist/es/packages/countdown/style-jmapp/style.css +1 -1
  230. package/dist/es/packages/countdown/style-jrkf/countdown.scss +1 -1
  231. package/dist/es/packages/countdown/style-jrkf/style.css +1 -1
  232. package/dist/es/packages/datepicker/style/style.harmony.css +4 -4
  233. package/dist/es/packages/dialog/dialog.js +4 -7
  234. package/dist/es/packages/dialog/style/dialog.scss +8 -2
  235. package/dist/es/packages/dialog/style/style.css +11 -5
  236. package/dist/es/packages/dialog/style/style.harmony.css +19 -10
  237. package/dist/es/packages/dialog/style-jmapp/dialog.scss +8 -2
  238. package/dist/es/packages/dialog/style-jmapp/style.css +8 -2
  239. package/dist/es/packages/dialog/style-jrkf/dialog.scss +8 -2
  240. package/dist/es/packages/dialog/style-jrkf/style.css +8 -2
  241. package/dist/es/packages/drag/drag.js +4 -7
  242. package/dist/es/packages/elevator/elevator.js +4 -7
  243. package/dist/es/packages/ellipsis/ellipsis.js +17 -30
  244. package/dist/es/packages/empty/style/style.css +2 -2
  245. package/dist/es/packages/empty/style/style.harmony.css +10 -7
  246. package/dist/es/packages/fixednav/style/style.harmony.css +1 -1
  247. package/dist/es/packages/form/index.js +0 -1
  248. package/dist/es/packages/form/useform.js +46 -53
  249. package/dist/es/packages/imagepreview/style/style.harmony.css +2 -2
  250. package/dist/es/packages/infiniteloading/infiniteloading.js +8 -14
  251. package/dist/es/packages/input/style/input.scss +0 -1
  252. package/dist/es/packages/input/style/style.css +0 -1
  253. package/dist/es/packages/input/style/style.harmony.css +0 -1
  254. package/dist/es/packages/input/style-jmapp/input.scss +0 -1
  255. package/dist/es/packages/input/style-jmapp/style.css +0 -1
  256. package/dist/es/packages/input/style-jrkf/input.scss +0 -1
  257. package/dist/es/packages/input/style-jrkf/style.css +0 -1
  258. package/dist/es/packages/inputnumber/inputnumber.js +16 -28
  259. package/dist/es/packages/lottie/types.js +1 -1
  260. package/dist/es/packages/menuitem/menuitem.js +24 -22
  261. package/dist/es/packages/noticebar/noticebar.js +151 -145
  262. package/dist/es/packages/noticebar/style/noticebar.scss +4 -0
  263. package/dist/es/packages/noticebar/style/style.css +4 -0
  264. package/dist/es/packages/noticebar/style/style.harmony.css +4 -0
  265. package/dist/es/packages/noticebar/style-jmapp/noticebar.scss +4 -0
  266. package/dist/es/packages/noticebar/style-jmapp/style.css +4 -0
  267. package/dist/es/packages/noticebar/style-jrkf/noticebar.scss +4 -0
  268. package/dist/es/packages/noticebar/style-jrkf/style.css +4 -0
  269. package/dist/es/packages/numberkeyboard/style/style.css +3 -3
  270. package/dist/es/packages/numberkeyboard/style/style.harmony.css +5 -5
  271. package/dist/es/packages/picker/style/style.css +2 -2
  272. package/dist/es/packages/picker/style/style.harmony.css +4 -4
  273. package/dist/es/packages/pickerview/pickerroller.js +4 -7
  274. package/dist/es/packages/pickerview/pickerview.js +1 -2
  275. package/dist/es/packages/popover/popover.js +75 -77
  276. package/dist/es/packages/popover/style/style.harmony.css +2 -2
  277. package/dist/es/packages/popup/popup.js +8 -14
  278. package/dist/es/packages/popup/style/style.css +2 -2
  279. package/dist/es/packages/popup/style/style.harmony.css +2 -2
  280. package/dist/es/packages/price/style/price.scss +3 -3
  281. package/dist/es/packages/price/style/style.css +4 -4
  282. package/dist/es/packages/price/style/style.harmony.css +4 -4
  283. package/dist/es/packages/price/style-jmapp/price.scss +3 -3
  284. package/dist/es/packages/price/style-jmapp/style.css +3 -3
  285. package/dist/es/packages/price/style-jrkf/price.scss +3 -3
  286. package/dist/es/packages/price/style-jrkf/style.css +3 -3
  287. package/dist/es/packages/pulltorefresh/pulltorefresh.js +52 -56
  288. package/dist/es/packages/radio/index.js +0 -1
  289. package/dist/es/packages/radio/style/style.css +1 -1
  290. package/dist/es/packages/radio/style/style.harmony.css +1 -1
  291. package/dist/es/packages/range/range.js +16 -28
  292. package/dist/es/packages/rate/style/rate.scss +1 -1
  293. package/dist/es/packages/rate/style/style.css +1 -1
  294. package/dist/es/packages/rate/style/style.harmony.css +1 -1
  295. package/dist/es/packages/rate/style-jmapp/rate.scss +1 -1
  296. package/dist/es/packages/rate/style-jmapp/style.css +1 -1
  297. package/dist/es/packages/rate/style-jrkf/rate.scss +1 -1
  298. package/dist/es/packages/rate/style-jrkf/style.css +1 -1
  299. package/dist/es/packages/resultpage/style/style.harmony.css +8 -5
  300. package/dist/es/packages/shortpassword/style/style.css +1 -1
  301. package/dist/es/packages/shortpassword/style/style.harmony.css +3 -3
  302. package/dist/es/packages/sidebar/style/style.css +1 -1
  303. package/dist/es/packages/sidebar/style/style.harmony.css +1 -1
  304. package/dist/es/packages/steps/style/style.css +1 -1
  305. package/dist/es/packages/steps/style/style.harmony.css +1 -1
  306. package/dist/es/packages/sticky/sticky.js +4 -7
  307. package/dist/es/packages/swipe/swipe.js +8 -15
  308. package/dist/es/packages/swiper/index.js +0 -1
  309. package/dist/es/packages/switch/switch.js +4 -7
  310. package/dist/es/packages/tabbar/style/style.harmony.css +3 -3
  311. package/dist/es/packages/tabbaritem/style/style.css +2 -2
  312. package/dist/es/packages/tabbaritem/style/style.harmony.css +3 -3
  313. package/dist/es/packages/tabs/style/style.css +5 -1
  314. package/dist/es/packages/tabs/style/style.harmony.css +5 -1
  315. package/dist/es/packages/tabs/style/tabs.scss +4 -0
  316. package/dist/es/packages/tabs/style-jmapp/style.css +4 -0
  317. package/dist/es/packages/tabs/style-jmapp/tabs.scss +4 -0
  318. package/dist/es/packages/tabs/style-jrkf/style.css +4 -0
  319. package/dist/es/packages/tabs/style-jrkf/tabs.scss +4 -0
  320. package/dist/es/packages/timeselect/style/style.harmony.css +2 -2
  321. package/dist/es/packages/toast/style/style.css +7 -1
  322. package/dist/es/packages/toast/style/style.harmony.css +7 -1
  323. package/dist/es/packages/toast/style/toast.scss +6 -0
  324. package/dist/es/packages/toast/style-jmapp/style.css +6 -0
  325. package/dist/es/packages/toast/style-jmapp/toast.scss +6 -0
  326. package/dist/es/packages/toast/style-jrkf/style.css +6 -0
  327. package/dist/es/packages/toast/style-jrkf/toast.scss +6 -0
  328. package/dist/es/packages/toast/toast.js +1 -1
  329. package/dist/es/packages/tour/style/style.harmony.css +2 -2
  330. package/dist/es/packages/uploader/uploader.js +38 -51
  331. package/dist/es/packages/watermark/watermark.js +4 -8
  332. package/dist/es/types/spec/address/base.js +1 -1
  333. package/dist/es/utils/event-mocker.js +4 -12
  334. package/dist/es/utils/render.js +2 -6
  335. package/dist/es/utils/taro/get-rect.js +10 -20
  336. package/dist/nutui.react.umd.js +662 -871
  337. package/dist/style-jmapp.css +1 -1
  338. package/dist/style-jmapp.scss +35 -35
  339. package/dist/style-jrkf.css +1 -1
  340. package/dist/style-jrkf.scss +29 -29
  341. package/dist/style.css +1 -1
  342. package/dist/style.scss +29 -29
  343. package/dist/styles/jd-font.scss +4 -4
  344. package/dist/styles/theme-default.scss +4 -1
  345. package/dist/styles/themes/dark.css +1 -1
  346. package/dist/styles/themes/default.css +1 -1
  347. package/dist/styles/variables-jmapp.scss +9 -0
  348. package/dist/styles/variables-jrkf.scss +9 -0
  349. package/dist/styles/variables.scss +20 -10
  350. package/package.json +1 -1
@@ -152,7 +152,6 @@
152
152
  var classnamesExports = classnames.exports;
153
153
  const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
154
154
  const globalConfig = {
155
- useSvg: true,
156
155
  classPrefix: "nut-icon",
157
156
  tag: "i",
158
157
  fontClassName: "nutui-iconfont"
@@ -179,7 +178,6 @@
179
178
  height: height2,
180
179
  size,
181
180
  svg64,
182
- svgSrc,
183
181
  children,
184
182
  onClick,
185
183
  fallback = false
@@ -1881,14 +1879,16 @@
1881
1879
  });
1882
1880
  var Col = function(props) {
1883
1881
  var _$_object_spread = _object_spread({}, defaultProps$1u, props), className = _$_object_spread.className, style = _$_object_spread.style, span = _$_object_spread.span, offset = _$_object_spread.offset, children = _$_object_spread.children, isFirst = _$_object_spread.isFirst, isLast = _$_object_spread.isLast, onClick = _$_object_spread.onClick;
1884
- var _useState = _sliced_to_array(React.useState(""), 2), colName = _useState[0], setColName = _useState[1];
1885
- var _useState1 = _sliced_to_array(React.useState({}), 2), colStyle = _useState1[0], setColStyle = _useState1[1];
1886
1882
  var gutter = React.useContext(DataContext$1).gutter;
1887
- var classs = function() {
1883
+ var classs = React.useMemo(function() {
1888
1884
  var prefixCls2 = "nut-col";
1889
1885
  return "".concat(prefixCls2, " ").concat(prefixCls2, "-").concat(span, " ").concat(gutter ? "".concat(prefixCls2, "-gutter") : "", " ").concat(prefixCls2, "-offset-").concat(offset);
1890
- };
1891
- var getStyle = function() {
1886
+ }, [
1887
+ offset,
1888
+ span,
1889
+ gutter
1890
+ ]);
1891
+ var getStyle = React.useMemo(function() {
1892
1892
  var style2 = {};
1893
1893
  if (!isFirst) {
1894
1894
  style2.paddingLeft = pxTransform(gutter / 2);
@@ -1897,14 +1897,19 @@
1897
1897
  style2.paddingRight = pxTransform(gutter / 2);
1898
1898
  }
1899
1899
  return style2;
1900
- };
1900
+ }, [
1901
+ isFirst,
1902
+ isLast,
1903
+ gutter
1904
+ ]);
1905
+ var _useState = _sliced_to_array(React.useState(classs), 2), colName = _useState[0], setColName = _useState[1];
1906
+ var _useState1 = _sliced_to_array(React.useState(getStyle), 2), colStyle = _useState1[0], setColStyle = _useState1[1];
1901
1907
  React.useEffect(function() {
1902
1908
  setColName(classs);
1903
1909
  setColStyle(getStyle);
1904
1910
  }, [
1905
- span,
1906
- offset,
1907
- gutter
1911
+ classs,
1912
+ getStyle
1908
1913
  ]);
1909
1914
  return /* @__PURE__ */ React.createElement(components.View, {
1910
1915
  className: classNames(colName, className),
@@ -2224,12 +2229,10 @@
2224
2229
  height: height2
2225
2230
  };
2226
2231
  }
2227
- var getRectInMultiPlatform = /* @__PURE__ */ function() {
2228
- var _ref = _async_to_generator(function(element) {
2229
- var harmonyId;
2230
- var _arguments = arguments;
2232
+ var getRectInMultiPlatform = function(element) {
2233
+ var harmonyId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
2234
+ return _async_to_generator(function() {
2231
2235
  return __generator(this, function(_state) {
2232
- harmonyId = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "";
2233
2236
  if (element) {
2234
2237
  if (inBrowser) {
2235
2238
  return [
@@ -2259,17 +2262,12 @@
2259
2262
  Promise.resolve(makeRect(0, 0))
2260
2263
  ];
2261
2264
  });
2262
- });
2263
- return function getRectInMultiPlatform2(element) {
2264
- return _ref.apply(this, arguments);
2265
- };
2266
- }();
2267
- var getRectInMultiPlatformWithoutCache = /* @__PURE__ */ function() {
2268
- var _ref = _async_to_generator(function(element) {
2269
- var harmonyId;
2270
- var _arguments = arguments;
2265
+ })();
2266
+ };
2267
+ var getRectInMultiPlatformWithoutCache = function(element) {
2268
+ var harmonyId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
2269
+ return _async_to_generator(function() {
2271
2270
  return __generator(this, function(_state) {
2272
- harmonyId = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "";
2273
2271
  if (element) {
2274
2272
  if (inBrowser) {
2275
2273
  return [
@@ -2292,11 +2290,8 @@
2292
2290
  Promise.resolve(makeRect(0, 0))
2293
2291
  ];
2294
2292
  });
2295
- });
2296
- return function getRectInMultiPlatformWithoutCache2(element) {
2297
- return _ref.apply(this, arguments);
2298
- };
2299
- }();
2293
+ })();
2294
+ };
2300
2295
  var defaultProps$1r = _object_spread_props(_object_spread({}, ComponentDefaults), {
2301
2296
  position: "top",
2302
2297
  zIndex: 900
@@ -2365,8 +2360,8 @@
2365
2360
  threshold,
2366
2361
  zIndex
2367
2362
  ]);
2368
- var handleScroll = /* @__PURE__ */ function() {
2369
- var _ref2 = _async_to_generator(function(scrollTop) {
2363
+ var handleScroll = function(scrollTop) {
2364
+ return _async_to_generator(function() {
2370
2365
  var curRootRect, stickyRect, containerRect, difference, curTransform, curFixed, windowHeight;
2371
2366
  return __generator(this, function(_state) {
2372
2367
  switch (_state.label) {
@@ -2434,11 +2429,8 @@
2434
2429
  ];
2435
2430
  }
2436
2431
  });
2437
- });
2438
- return function handleScroll2(scrollTop) {
2439
- return _ref2.apply(this, arguments);
2440
- };
2441
- }();
2432
+ })();
2433
+ };
2442
2434
  var getElement = React.useCallback(function() {
2443
2435
  return getScrollParent(rootRef.current);
2444
2436
  }, []);
@@ -2915,16 +2907,7 @@
2915
2907
  return months.slice(preDates - days);
2916
2908
  };
2917
2909
  var ENV_TYPE$1 = {
2918
- WEAPP: "WEAPP",
2919
- SWAN: "SWAN",
2920
- ALIPAY: "ALIPAY",
2921
- TT: "TT",
2922
- QQ: "QQ",
2923
- JD: "JD",
2924
- WEB: "WEB",
2925
- RN: "RN",
2926
- HARMONY: "HARMONY",
2927
- QUICKAPP: "QUICKAPP"
2910
+ WEB: "WEB"
2928
2911
  };
2929
2912
  var getRectById = function(id) {
2930
2913
  return new Promise(function(resolve, reject) {
@@ -3146,10 +3129,7 @@
3146
3129
  return unmountComponentAtNode(container);
3147
3130
  }
3148
3131
  function concurrentUnmount(container) {
3149
- return _concurrentUnmount.apply(this, arguments);
3150
- }
3151
- function _concurrentUnmount() {
3152
- _concurrentUnmount = _async_to_generator(function(container) {
3132
+ return _async_to_generator(function() {
3153
3133
  return __generator(this, function(_state) {
3154
3134
  return [
3155
3135
  2,
@@ -3160,8 +3140,7 @@
3160
3140
  })
3161
3141
  ];
3162
3142
  });
3163
- });
3164
- return _concurrentUnmount.apply(this, arguments);
3143
+ })();
3165
3144
  }
3166
3145
  function unmount(container) {
3167
3146
  if (createRoot) {
@@ -3463,8 +3442,8 @@
3463
3442
  }
3464
3443
  });
3465
3444
  };
3466
- var scrollTo = /* @__PURE__ */ function() {
3467
- var _ref2 = _async_to_generator(function(index2) {
3445
+ var scrollTo = function(index2) {
3446
+ return _async_to_generator(function() {
3468
3447
  var cacheIndex, scrollTop2;
3469
3448
  return __generator(this, function(_state) {
3470
3449
  switch (_state.label) {
@@ -3504,11 +3483,8 @@
3504
3483
  ];
3505
3484
  }
3506
3485
  });
3507
- });
3508
- return function scrollTo2(index2) {
3509
- return _ref2.apply(this, arguments);
3510
- };
3511
- }();
3486
+ })();
3487
+ };
3512
3488
  var touchMove = function(e) {
3513
3489
  var firstTouch = e.touches[0];
3514
3490
  touchState.current.y2 = firstTouch.pageY;
@@ -3687,8 +3663,8 @@
3687
3663
  getPositionStyle();
3688
3664
  }
3689
3665
  }, []);
3690
- var getPositionStyle = /* @__PURE__ */ function() {
3691
- var _ref = _async_to_generator(function() {
3666
+ var getPositionStyle = function() {
3667
+ return _async_to_generator(function() {
3692
3668
  var style2;
3693
3669
  return __generator(this, function(_state) {
3694
3670
  style2 = _define_property({
@@ -3699,11 +3675,8 @@
3699
3675
  2
3700
3676
  ];
3701
3677
  });
3702
- });
3703
- return function getPositionStyle2() {
3704
- return _ref.apply(this, arguments);
3705
- };
3706
- }();
3678
+ })();
3679
+ };
3707
3680
  var _obj1;
3708
3681
  return /* @__PURE__ */ React.createElement(components.View, {
3709
3682
  className: classes,
@@ -4491,8 +4464,8 @@
4491
4464
  }
4492
4465
  onOpen && onOpen();
4493
4466
  };
4494
- var getPopupHeight = /* @__PURE__ */ function() {
4495
- var _ref = _async_to_generator(function() {
4467
+ var getPopupHeight = function() {
4468
+ return _async_to_generator(function() {
4496
4469
  var _nodeRef_current, rect, height2;
4497
4470
  return __generator(this, function(_state) {
4498
4471
  switch (_state.label) {
@@ -4510,11 +4483,8 @@
4510
4483
  ];
4511
4484
  }
4512
4485
  });
4513
- });
4514
- return function getPopupHeight2() {
4515
- return _ref.apply(this, arguments);
4516
- };
4517
- }();
4486
+ })();
4487
+ };
4518
4488
  React.useEffect(function() {
4519
4489
  if (innerVisible && topNodeRef.current && nodeRef.current) {
4520
4490
  Taro.nextTick(function() {
@@ -4581,8 +4551,8 @@
4581
4551
  return renderCloseIcon();
4582
4552
  }
4583
4553
  };
4584
- var handleTouchStart = /* @__PURE__ */ function() {
4585
- var _ref = _async_to_generator(function(event) {
4554
+ var handleTouchStart = function(event) {
4555
+ return _async_to_generator(function() {
4586
4556
  var _nodeRef_current, _rootRect_current, e, rect;
4587
4557
  return __generator(this, function(_state) {
4588
4558
  switch (_state.label) {
@@ -4608,11 +4578,8 @@
4608
4578
  ];
4609
4579
  }
4610
4580
  });
4611
- });
4612
- return function handleTouchStart2(event) {
4613
- return _ref.apply(this, arguments);
4614
- };
4615
- }();
4581
+ })();
4582
+ };
4616
4583
  var handleTouchMove = function(event) {
4617
4584
  if (position2 !== "bottom" || !resizable || !nodeRef.current || !rootRect.current) return;
4618
4585
  var e = event;
@@ -5292,8 +5259,8 @@
5292
5259
  outerOptions
5293
5260
  ]);
5294
5261
  React.useEffect(function() {
5295
- var load = /* @__PURE__ */ function() {
5296
- var _ref = _async_to_generator(function() {
5262
+ var load = function() {
5263
+ return _async_to_generator(function() {
5297
5264
  var parent2, error;
5298
5265
  return __generator(this, function(_state) {
5299
5266
  switch (_state.label) {
@@ -5311,8 +5278,8 @@
5311
5278
  ]);
5312
5279
  return [
5313
5280
  4,
5314
- innerValue.reduce(/* @__PURE__ */ function() {
5315
- var _ref2 = _async_to_generator(function(promise, val2, key2) {
5281
+ innerValue.reduce(function(promise, val2, key2) {
5282
+ return _async_to_generator(function() {
5316
5283
  var pane, parent3, node;
5317
5284
  return __generator(this, function(_state2) {
5318
5285
  switch (_state2.label) {
@@ -5352,11 +5319,8 @@
5352
5319
  ];
5353
5320
  }
5354
5321
  });
5355
- });
5356
- return function(promise, val2, key2) {
5357
- return _ref2.apply(this, arguments);
5358
- };
5359
- }(), Promise.resolve(parent2))
5322
+ })();
5323
+ }, Promise.resolve(parent2))
5360
5324
  ];
5361
5325
  case 2:
5362
5326
  _state.sent();
@@ -5378,17 +5342,14 @@
5378
5342
  ];
5379
5343
  }
5380
5344
  });
5381
- });
5382
- return function load2() {
5383
- return _ref.apply(this, arguments);
5384
- };
5385
- }();
5345
+ })();
5346
+ };
5386
5347
  if (lazy) load();
5387
5348
  }, [
5388
5349
  lazy
5389
5350
  ]);
5390
- var chooseItem = /* @__PURE__ */ function() {
5391
- var _ref = _async_to_generator(function(pane, levelIndex) {
5351
+ var chooseItem = function(pane, levelIndex) {
5352
+ return _async_to_generator(function() {
5392
5353
  var nextValue, nextPathNodes, _props_onPathChange, asyncOptions;
5393
5354
  return __generator(this, function(_state) {
5394
5355
  switch (_state.label) {
@@ -5440,11 +5401,8 @@
5440
5401
  ];
5441
5402
  }
5442
5403
  });
5443
- });
5444
- return function chooseItem2(pane, levelIndex) {
5445
- return _ref.apply(this, arguments);
5446
- };
5447
- }();
5404
+ })();
5405
+ };
5448
5406
  var renderCascaderItem = function(item, levelIndex) {
5449
5407
  var _item_pane;
5450
5408
  return (_item_pane = item.pane) === null || _item_pane === void 0 ? void 0 : _item_pane.map(function(pane, index2) {
@@ -7086,7 +7044,7 @@
7086
7044
  };
7087
7045
  var _obj;
7088
7046
  return /* @__PURE__ */ React.createElement(components.View, _object_spread_props(_object_spread({
7089
- className: classNames(classPrefix$j, (_obj = {}, _define_property(_obj, "".concat(classPrefix$j, "-reverse"), labelPosition === "left"), _define_property(_obj, "nut-checkbox-list-item", ctx === null || ctx === void 0 ? void 0 : ctx.list), _obj), className)
7047
+ className: classNames(classPrefix$j, (_obj = {}, _define_property(_obj, "".concat(classPrefix$j, "-reverse"), labelPosition === "left"), _define_property(_obj, "nut-checkbox-list-item", ctx === null || ctx === void 0 ? void 0 : ctx.list), _define_property(_obj, "".concat(classPrefix$j, "-active"), innerChecked), _obj), className)
7090
7048
  }, rest), {
7091
7049
  onClick: handleClick
7092
7050
  }), renderCheckboxItem());
@@ -7343,8 +7301,8 @@
7343
7301
  setTouchTime(0);
7344
7302
  selectValue(scrollDistance);
7345
7303
  };
7346
- var getReactHeight = /* @__PURE__ */ function() {
7347
- var _ref = _async_to_generator(function() {
7304
+ var getReactHeight = function() {
7305
+ return _async_to_generator(function() {
7348
7306
  var placeholder, placeholderHeight, error;
7349
7307
  return __generator(this, function(_state) {
7350
7308
  switch (_state.label) {
@@ -7379,11 +7337,8 @@
7379
7337
  ];
7380
7338
  }
7381
7339
  });
7382
- });
7383
- return function getReactHeight2() {
7384
- return _ref.apply(this, arguments);
7385
- };
7386
- }();
7340
+ })();
7341
+ };
7387
7342
  React.useEffect(function() {
7388
7343
  var element = pickerRollerRef.current;
7389
7344
  var currentLineSpacing;
@@ -7527,8 +7482,6 @@
7527
7482
  if (!options2.length) return [];
7528
7483
  var formatted = [];
7529
7484
  var columnOptions = {
7530
- label: "",
7531
- value: "",
7532
7485
  children: options2
7533
7486
  };
7534
7487
  var columnIndex = 0;
@@ -9288,7 +9241,6 @@
9288
9241
  var _this = this;
9289
9242
  var _this1 = this;
9290
9243
  _class_call_check(this, FormStore2);
9291
- var _this2 = this;
9292
9244
  _define_property(this, "initialValues", {});
9293
9245
  _define_property(this, "updateList", []);
9294
9246
  _define_property(this, "store", {});
@@ -9357,8 +9309,8 @@
9357
9309
  _define_property(this, "setCallback", function(callback) {
9358
9310
  _this.callbacks = _object_spread({}, _this.callbacks, callback);
9359
9311
  });
9360
- _define_property(this, "validateEntities", /* @__PURE__ */ function() {
9361
- var _ref = _async_to_generator(function(entity, errs) {
9312
+ _define_property(this, "validateEntities", function(entity, errs) {
9313
+ return _async_to_generator(function() {
9362
9314
  var _entity_props, name2, _entity_props_rules, rules2, descriptor, validator, _this_store, param, errors, _errs;
9363
9315
  return __generator(this, function(_state) {
9364
9316
  switch (_state.label) {
@@ -9392,7 +9344,7 @@
9392
9344
  ]);
9393
9345
  return [
9394
9346
  4,
9395
- validator.validate(_define_property({}, name2, (_this_store = _this2.store) === null || _this_store === void 0 ? void 0 : _this_store[name2]))
9347
+ validator.validate(_define_property({}, name2, (_this_store = this.store) === null || _this_store === void 0 ? void 0 : _this_store[name2]))
9396
9348
  ];
9397
9349
  case 2:
9398
9350
  _state.sent();
@@ -9405,7 +9357,7 @@
9405
9357
  errors = param.errors;
9406
9358
  if (errors) {
9407
9359
  (_errs = errs).push.apply(_errs, _to_consumable_array(errors));
9408
- _this2.errors[name2] = errors;
9360
+ this.errors[name2] = errors;
9409
9361
  }
9410
9362
  return [
9411
9363
  3,
@@ -9413,7 +9365,7 @@
9413
9365
  ];
9414
9366
  case 4:
9415
9367
  if (!errs || errs.length === 0) {
9416
- _this2.errors[name2] = [];
9368
+ this.errors[name2] = [];
9417
9369
  }
9418
9370
  return [
9419
9371
  7
@@ -9425,22 +9377,20 @@
9425
9377
  ];
9426
9378
  }
9427
9379
  });
9428
- });
9429
- return function(entity, errs) {
9430
- return _ref.apply(this, arguments);
9431
- };
9432
- }());
9433
- _define_property(this, "validateFields", /* @__PURE__ */ function() {
9434
- var _ref = _async_to_generator(function(nameList) {
9435
- var filterEntities, errs;
9380
+ }).call(_this);
9381
+ });
9382
+ _define_property(this, "validateFields", function(nameList) {
9383
+ return _async_to_generator(function() {
9384
+ var _this2, filterEntities, errs;
9436
9385
  return __generator(this, function(_state) {
9437
9386
  switch (_state.label) {
9438
9387
  case 0:
9388
+ _this2 = this;
9439
9389
  filterEntities = [];
9440
9390
  if (!nameList || nameList.length === 0) {
9441
- filterEntities = _this2.fieldEntities;
9391
+ filterEntities = this.fieldEntities;
9442
9392
  } else {
9443
- filterEntities = _this2.fieldEntities.filter(function(param) {
9393
+ filterEntities = this.fieldEntities.filter(function(param) {
9444
9394
  var name2 = param.props.name;
9445
9395
  return nameList.includes(name2);
9446
9396
  });
@@ -9448,14 +9398,14 @@
9448
9398
  errs = [];
9449
9399
  return [
9450
9400
  4,
9451
- Promise.all(filterEntities.map(/* @__PURE__ */ function() {
9452
- var _ref2 = _async_to_generator(function(entity) {
9401
+ Promise.all(filterEntities.map(function(entity) {
9402
+ return _async_to_generator(function() {
9453
9403
  return __generator(this, function(_state2) {
9454
9404
  switch (_state2.label) {
9455
9405
  case 0:
9456
9406
  return [
9457
9407
  4,
9458
- _this2.validateEntities(entity, errs)
9408
+ this.validateEntities(entity, errs)
9459
9409
  ];
9460
9410
  case 1:
9461
9411
  _state2.sent();
@@ -9464,11 +9414,8 @@
9464
9414
  ];
9465
9415
  }
9466
9416
  });
9467
- });
9468
- return function(entity) {
9469
- return _ref2.apply(this, arguments);
9470
- };
9471
- }()))
9417
+ }).call(_this2);
9418
+ }))
9472
9419
  ];
9473
9420
  case 1:
9474
9421
  _state.sent();
@@ -9478,33 +9425,32 @@
9478
9425
  ];
9479
9426
  }
9480
9427
  });
9481
- });
9482
- return function(nameList) {
9483
- return _ref.apply(this, arguments);
9484
- };
9485
- }());
9486
- _define_property(this, "submit", /* @__PURE__ */ _async_to_generator(function() {
9487
- var errors, _this_callbacks_onFinish, _this_callbacks, _this_callbacks_onFinishFailed, _this_callbacks1;
9488
- return __generator(this, function(_state) {
9489
- switch (_state.label) {
9490
- case 0:
9491
- return [
9492
- 4,
9493
- _this2.validateFields()
9494
- ];
9495
- case 1:
9496
- errors = _state.sent();
9497
- if (errors.length === 0) {
9498
- (_this_callbacks_onFinish = (_this_callbacks = _this2.callbacks).onFinish) === null || _this_callbacks_onFinish === void 0 ? void 0 : _this_callbacks_onFinish.call(_this_callbacks, _this2.store);
9499
- } else if (errors.length > 0) {
9500
- (_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);
9501
- }
9502
- return [
9503
- 2
9504
- ];
9505
- }
9506
- });
9507
- }));
9428
+ }).call(_this);
9429
+ });
9430
+ _define_property(this, "submit", function() {
9431
+ return _async_to_generator(function() {
9432
+ var errors, _this_callbacks_onFinish, _this_callbacks, _this_callbacks_onFinishFailed, _this_callbacks1;
9433
+ return __generator(this, function(_state) {
9434
+ switch (_state.label) {
9435
+ case 0:
9436
+ return [
9437
+ 4,
9438
+ this.validateFields()
9439
+ ];
9440
+ case 1:
9441
+ errors = _state.sent();
9442
+ if (errors.length === 0) {
9443
+ (_this_callbacks_onFinish = (_this_callbacks = this.callbacks).onFinish) === null || _this_callbacks_onFinish === void 0 ? void 0 : _this_callbacks_onFinish.call(_this_callbacks, this.store);
9444
+ } else if (errors.length > 0) {
9445
+ (_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);
9446
+ }
9447
+ return [
9448
+ 2
9449
+ ];
9450
+ }
9451
+ });
9452
+ }).call(_this);
9453
+ });
9508
9454
  _define_property(this, "resetFields", function(namePaths) {
9509
9455
  if (namePaths && namePaths.length) {
9510
9456
  namePaths.forEach(function(path) {
@@ -10009,16 +9955,7 @@
10009
9955
  return value2.replace(regExp, "");
10010
9956
  }
10011
9957
  var ENV_TYPE = {
10012
- WEAPP: "WEAPP",
10013
- SWAN: "SWAN",
10014
- ALIPAY: "ALIPAY",
10015
- TT: "TT",
10016
- QQ: "QQ",
10017
- JD: "JD",
10018
- WEB: "WEB",
10019
- RN: "RN",
10020
- HARMONY: "HARMONY",
10021
- QUICKAPP: "QUICKAPP"
9958
+ WEB: "WEB"
10022
9959
  };
10023
9960
  var defaultProps$Y = _object_spread_props(_object_spread({}, ComponentDefaults), {
10024
9961
  type: "text",
@@ -10293,8 +10230,8 @@
10293
10230
  var stepAmount = parseFloat(stepValue) * symbol;
10294
10231
  return (currentValue * dig + stepAmount * dig) / dig;
10295
10232
  };
10296
- var update = /* @__PURE__ */ function() {
10297
- var _ref2 = _async_to_generator(function(negative, e) {
10233
+ var update = function(negative, e) {
10234
+ return _async_to_generator(function() {
10298
10235
  var shouldOverBoundary, maybeResume, nextValue;
10299
10236
  return __generator(this, function(_state) {
10300
10237
  switch (_state.label) {
@@ -10325,13 +10262,10 @@
10325
10262
  ];
10326
10263
  }
10327
10264
  });
10328
- });
10329
- return function update2(negative, e) {
10330
- return _ref2.apply(this, arguments);
10331
- };
10332
- }();
10333
- var handleReduce = /* @__PURE__ */ function() {
10334
- var _ref2 = _async_to_generator(function(e) {
10265
+ })();
10266
+ };
10267
+ var handleReduce = function(e) {
10268
+ return _async_to_generator(function() {
10335
10269
  return __generator(this, function(_state) {
10336
10270
  switch (_state.label) {
10337
10271
  case 0:
@@ -10349,13 +10283,10 @@
10349
10283
  ];
10350
10284
  }
10351
10285
  });
10352
- });
10353
- return function handleReduce2(e) {
10354
- return _ref2.apply(this, arguments);
10355
- };
10356
- }();
10357
- var handlePlus = /* @__PURE__ */ function() {
10358
- var _ref2 = _async_to_generator(function(e) {
10286
+ })();
10287
+ };
10288
+ var handlePlus = function(e) {
10289
+ return _async_to_generator(function() {
10359
10290
  return __generator(this, function(_state) {
10360
10291
  switch (_state.label) {
10361
10292
  case 0:
@@ -10373,18 +10304,15 @@
10373
10304
  ];
10374
10305
  }
10375
10306
  });
10376
- });
10377
- return function handlePlus2(e) {
10378
- return _ref2.apply(this, arguments);
10379
- };
10380
- }();
10307
+ })();
10308
+ };
10381
10309
  var parseValue = function(text2) {
10382
10310
  if (text2 === "") return null;
10383
10311
  if (text2 === "-") return null;
10384
10312
  return text2;
10385
10313
  };
10386
- var handleInputChange = /* @__PURE__ */ function() {
10387
- var _ref2 = _async_to_generator(function(e) {
10314
+ var handleInputChange = function(e) {
10315
+ return _async_to_generator(function() {
10388
10316
  var valueStr, maybeResume;
10389
10317
  return __generator(this, function(_state) {
10390
10318
  switch (_state.label) {
@@ -10414,11 +10342,8 @@
10414
10342
  ];
10415
10343
  }
10416
10344
  });
10417
- });
10418
- return function handleInputChange2(e) {
10419
- return _ref2.apply(this, arguments);
10420
- };
10421
- }();
10345
+ })();
10346
+ };
10422
10347
  var handleFocus = function(e) {
10423
10348
  setFocused(true);
10424
10349
  setInputValue(shadowValue !== void 0 && shadowValue !== null ? bound(Number(shadowValue), Number(min), Number(max)).toString() : "");
@@ -10472,7 +10397,7 @@
10472
10397
  if (null == r) return {};
10473
10398
  var t = {};
10474
10399
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
10475
- if (e.includes(n)) continue;
10400
+ if (-1 !== e.indexOf(n)) continue;
10476
10401
  t[n] = r[n];
10477
10402
  }
10478
10403
  return t;
@@ -12184,28 +12109,30 @@
12184
12109
  show2
12185
12110
  ]);
12186
12111
  var getParentOffset = React.useCallback(function() {
12187
- setTimeout(/* @__PURE__ */ _async_to_generator(function() {
12188
- var p, rect;
12189
- return __generator(this, function(_state) {
12190
- switch (_state.label) {
12191
- case 0:
12192
- p = parent2.menuRef.current;
12193
- return [
12194
- 4,
12195
- getRectInMultiPlatform(p)
12196
- ];
12197
- case 1:
12198
- rect = _state.sent();
12199
- setPosition({
12200
- height: rect.height,
12201
- top: rect.top
12202
- });
12203
- return [
12204
- 2
12205
- ];
12206
- }
12207
- });
12208
- }), 100);
12112
+ setTimeout(function() {
12113
+ return _async_to_generator(function() {
12114
+ var p, rect;
12115
+ return __generator(this, function(_state) {
12116
+ switch (_state.label) {
12117
+ case 0:
12118
+ p = parent2.menuRef.current;
12119
+ return [
12120
+ 4,
12121
+ getRectInMultiPlatform(p)
12122
+ ];
12123
+ case 1:
12124
+ rect = _state.sent();
12125
+ setPosition({
12126
+ height: rect.height,
12127
+ top: rect.top
12128
+ });
12129
+ return [
12130
+ 2
12131
+ ];
12132
+ }
12133
+ });
12134
+ })();
12135
+ }, 100);
12209
12136
  }, [
12210
12137
  parent2.menuRef
12211
12138
  ]);
@@ -13087,8 +13014,8 @@
13087
13014
  onEnd,
13088
13015
  setInnerValue
13089
13016
  ]);
13090
- var handleClick = React.useCallback(/* @__PURE__ */ function() {
13091
- var _ref = _async_to_generator(function(event) {
13017
+ var handleClick = React.useCallback(function(event) {
13018
+ return _async_to_generator(function() {
13092
13019
  var _event_detail, rect, _event_detail_x, x, delta, total, _event_detail1, _event_detail_y, y, value3, _innerValue, left2, right2, middle;
13093
13020
  return __generator(this, function(_state) {
13094
13021
  switch (_state.label) {
@@ -13140,11 +13067,8 @@
13140
13067
  ];
13141
13068
  }
13142
13069
  });
13143
- });
13144
- return function(event) {
13145
- return _ref.apply(this, arguments);
13146
- };
13147
- }(), [
13070
+ })();
13071
+ }, [
13148
13072
  innerValue,
13149
13073
  disabled,
13150
13074
  isRange,
@@ -13154,8 +13078,8 @@
13154
13078
  vertical
13155
13079
  ]);
13156
13080
  Taro.useReady(function() {
13157
- var getRootRect = /* @__PURE__ */ function() {
13158
- var _ref = _async_to_generator(function() {
13081
+ var getRootRect = function() {
13082
+ return _async_to_generator(function() {
13159
13083
  var rect;
13160
13084
  return __generator(this, function(_state) {
13161
13085
  switch (_state.label) {
@@ -13178,11 +13102,8 @@
13178
13102
  ];
13179
13103
  }
13180
13104
  });
13181
- });
13182
- return function getRootRect2() {
13183
- return _ref.apply(this, arguments);
13184
- };
13185
- }();
13105
+ })();
13106
+ };
13186
13107
  Taro.nextTick(function() {
13187
13108
  getRootRect();
13188
13109
  });
@@ -13204,8 +13125,8 @@
13204
13125
  isRange,
13205
13126
  touch
13206
13127
  ]);
13207
- var onTouchMove = React.useCallback(/* @__PURE__ */ function() {
13208
- var _ref = _async_to_generator(function(event) {
13128
+ var onTouchMove = React.useCallback(function(event) {
13129
+ return _async_to_generator(function() {
13209
13130
  var handleMove;
13210
13131
  return __generator(this, function(_state) {
13211
13132
  if (disabled || !root2.current) return [
@@ -13216,8 +13137,8 @@
13216
13137
  dragStatusRef.current = "draging";
13217
13138
  }
13218
13139
  touch.move(event);
13219
- handleMove = /* @__PURE__ */ function() {
13220
- var _ref2 = _async_to_generator(function() {
13140
+ handleMove = function() {
13141
+ return _async_to_generator(function() {
13221
13142
  var delta, total, diff, newValue;
13222
13143
  return __generator(this, function(_state2) {
13223
13144
  if (!rootRect.current) return [
@@ -13243,21 +13164,15 @@
13243
13164
  2
13244
13165
  ];
13245
13166
  });
13246
- });
13247
- return function handleMove2() {
13248
- return _ref2.apply(this, arguments);
13249
- };
13250
- }();
13167
+ })();
13168
+ };
13251
13169
  requestAnimationFrame(handleMove);
13252
13170
  return [
13253
13171
  2
13254
13172
  ];
13255
13173
  });
13256
- });
13257
- return function(event) {
13258
- return _ref.apply(this, arguments);
13259
- };
13260
- }(), [
13174
+ })();
13175
+ }, [
13261
13176
  disabled,
13262
13177
  isRange,
13263
13178
  onStart,
@@ -14167,8 +14082,8 @@
14167
14082
  (_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)
14168
14083
  ]);
14169
14084
  };
14170
- var onClick = /* @__PURE__ */ function() {
14171
- var _ref2 = _async_to_generator(function() {
14085
+ var onClick = function() {
14086
+ return _async_to_generator(function() {
14172
14087
  return __generator(this, function(_state) {
14173
14088
  switch (_state.label) {
14174
14089
  case 0:
@@ -14212,11 +14127,8 @@
14212
14127
  ];
14213
14128
  }
14214
14129
  });
14215
- });
14216
- return function onClick2() {
14217
- return _ref2.apply(this, arguments);
14218
- };
14219
- }();
14130
+ })();
14131
+ };
14220
14132
  var _obj, _obj1;
14221
14133
  return /* @__PURE__ */ React.createElement(components.View, _object_spread({
14222
14134
  className: classes(),
@@ -14724,22 +14636,24 @@
14724
14636
  var classes = classNames(className, "nut-uploader");
14725
14637
  React.useImperativeHandle(ref, function() {
14726
14638
  return {
14727
- submit: /* @__PURE__ */ _async_to_generator(function() {
14728
- return __generator(this, function(_state) {
14729
- switch (_state.label) {
14730
- case 0:
14731
- return [
14732
- 4,
14733
- uploadAction(uploadQueue)
14734
- ];
14735
- case 1:
14736
- _state.sent();
14737
- return [
14738
- 2
14739
- ];
14740
- }
14741
- });
14742
- }),
14639
+ submit: function() {
14640
+ return _async_to_generator(function() {
14641
+ return __generator(this, function(_state) {
14642
+ switch (_state.label) {
14643
+ case 0:
14644
+ return [
14645
+ 4,
14646
+ uploadAction(uploadQueue)
14647
+ ];
14648
+ case 1:
14649
+ _state.sent();
14650
+ return [
14651
+ 2
14652
+ ];
14653
+ }
14654
+ });
14655
+ })();
14656
+ },
14743
14657
  clear: function() {
14744
14658
  clearUploadQueue();
14745
14659
  }
@@ -14812,8 +14726,8 @@
14812
14726
  });
14813
14727
  }
14814
14728
  };
14815
- var uploadAction = /* @__PURE__ */ function() {
14816
- var _ref2 = _async_to_generator(function(tasks) {
14729
+ var uploadAction = function(tasks) {
14730
+ return _async_to_generator(function() {
14817
14731
  var taskIds, list;
14818
14732
  return __generator(this, function(_state) {
14819
14733
  switch (_state.label) {
@@ -14833,8 +14747,8 @@
14833
14747
  setFileList(list);
14834
14748
  return [
14835
14749
  4,
14836
- Promise.all(tasks.map(/* @__PURE__ */ function() {
14837
- var _ref3 = _async_to_generator(function(currentTask, index2) {
14750
+ Promise.all(tasks.map(function(currentTask, index2) {
14751
+ return _async_to_generator(function() {
14838
14752
  var result, list2, e, list1;
14839
14753
  return __generator(this, function(_state2) {
14840
14754
  switch (_state2.label) {
@@ -14881,11 +14795,8 @@
14881
14795
  ];
14882
14796
  }
14883
14797
  });
14884
- });
14885
- return function(currentTask, index2) {
14886
- return _ref3.apply(this, arguments);
14887
- };
14888
- }())).catch(function(errs) {
14798
+ })();
14799
+ })).catch(function(errs) {
14889
14800
  return console.error(errs);
14890
14801
  })
14891
14802
  ];
@@ -14896,14 +14807,11 @@
14896
14807
  ];
14897
14808
  }
14898
14809
  });
14899
- });
14900
- return function uploadAction2(tasks) {
14901
- return _ref2.apply(this, arguments);
14902
- };
14903
- }();
14810
+ })();
14811
+ };
14904
14812
  var idCountRef = React.useRef(0);
14905
- var readFile = /* @__PURE__ */ function() {
14906
- var _ref2 = _async_to_generator(function(files) {
14813
+ var readFile = function(files) {
14814
+ return _async_to_generator(function() {
14907
14815
  var tasks;
14908
14816
  return __generator(this, function(_state) {
14909
14817
  switch (_state.label) {
@@ -14961,11 +14869,8 @@
14961
14869
  ];
14962
14870
  }
14963
14871
  });
14964
- });
14965
- return function readFile2(files) {
14966
- return _ref2.apply(this, arguments);
14967
- };
14968
- }();
14872
+ })();
14873
+ };
14969
14874
  var filterFiles = function(files) {
14970
14875
  var maximum = maxCount * 1;
14971
14876
  var maximize = maxFileSize * 1;
@@ -15004,8 +14909,8 @@
15004
14909
  }
15005
14910
  });
15006
14911
  };
15007
- var onChangeMedia = /* @__PURE__ */ function() {
15008
- var _ref2 = _async_to_generator(function(res) {
14912
+ var onChangeMedia = function(res) {
14913
+ return _async_to_generator(function() {
15009
14914
  var tempFiles, _files;
15010
14915
  return __generator(this, function(_state) {
15011
14916
  tempFiles = res.tempFiles;
@@ -15023,13 +14928,10 @@
15023
14928
  2
15024
14929
  ];
15025
14930
  });
15026
- });
15027
- return function onChangeMedia2(res) {
15028
- return _ref2.apply(this, arguments);
15029
- };
15030
- }();
15031
- var onChangeImage = /* @__PURE__ */ function() {
15032
- var _ref2 = _async_to_generator(function(res) {
14931
+ })();
14932
+ };
14933
+ var onChangeImage = function(res) {
14934
+ return _async_to_generator(function() {
15033
14935
  var tempFiles, _files;
15034
14936
  return __generator(this, function(_state) {
15035
14937
  tempFiles = res.tempFiles;
@@ -15047,11 +14949,8 @@
15047
14949
  2
15048
14950
  ];
15049
14951
  });
15050
- });
15051
- return function onChangeImage2(res) {
15052
- return _ref2.apply(this, arguments);
15053
- };
15054
- }();
14952
+ })();
14953
+ };
15055
14954
  var handleItemClick = function(file, index2) {
15056
14955
  onFileItemClick === null || onFileItemClick === void 0 ? void 0 : onFileItemClick(file, index2);
15057
14956
  };
@@ -15264,8 +15163,8 @@
15264
15163
  if (!(beforeCancel === null || beforeCancel === void 0 ? void 0 : beforeCancel())) return;
15265
15164
  onCancel();
15266
15165
  };
15267
- var handleOk = /* @__PURE__ */ function() {
15268
- var _ref = _async_to_generator(function(e) {
15166
+ var handleOk = function(e) {
15167
+ return _async_to_generator(function() {
15269
15168
  return __generator(this, function(_state) {
15270
15169
  switch (_state.label) {
15271
15170
  case 0:
@@ -15304,11 +15203,8 @@
15304
15203
  ];
15305
15204
  }
15306
15205
  });
15307
- });
15308
- return function handleOk2(e) {
15309
- return _ref.apply(this, arguments);
15310
- };
15311
- }();
15206
+ })();
15207
+ };
15312
15208
  var btnClass = hideCancelButton || hideConfirmButton ? "".concat(classPrefix2, "-footer-block") : "";
15313
15209
  var renderCancelOfVertical = function() {
15314
15210
  return !hideCancelButton && /* @__PURE__ */ React.createElement(components.View, {
@@ -15452,9 +15348,9 @@
15452
15348
  var translateX = React.useRef(0);
15453
15349
  var translateY = React.useRef(0);
15454
15350
  var middleLine = React.useRef(0);
15455
- var getInfo = /* @__PURE__ */ function() {
15456
- var _ref = _async_to_generator(function() {
15457
- var el, top, left2, bottom, right2, _getWindowInfo, screenWidth, windowHeight, _ref2, width2, height2, dragTop, dragLeft;
15351
+ var getInfo = function() {
15352
+ return _async_to_generator(function() {
15353
+ var el, top, left2, bottom, right2, _getWindowInfo, screenWidth, windowHeight, _ref, width2, height2, dragTop, dragLeft;
15458
15354
  return __generator(this, function(_state) {
15459
15355
  switch (_state.label) {
15460
15356
  case 0:
@@ -15470,7 +15366,7 @@
15470
15366
  getRectInMultiPlatform(dragRef.current)
15471
15367
  ];
15472
15368
  case 1:
15473
- _ref2 = _state.sent(), width2 = _ref2.width, height2 = _ref2.height, dragTop = _ref2.top, dragLeft = _ref2.left;
15369
+ _ref = _state.sent(), width2 = _ref.width, height2 = _ref.height, dragTop = _ref.top, dragLeft = _ref.left;
15474
15370
  setBoundaryState({
15475
15371
  top: -dragTop + top,
15476
15372
  left: -dragLeft + left2,
@@ -15485,11 +15381,8 @@
15485
15381
  ];
15486
15382
  }
15487
15383
  });
15488
- });
15489
- return function getInfo2() {
15490
- return _ref.apply(this, arguments);
15491
- };
15492
- }();
15384
+ })();
15385
+ };
15493
15386
  var touchStart = function(e) {
15494
15387
  onDragStart === null || onDragStart === void 0 ? void 0 : onDragStart();
15495
15388
  var touches = e.touches[0];
@@ -15741,8 +15634,8 @@
15741
15634
  }
15742
15635
  onScroll && onScroll(e.target.scrollTop);
15743
15636
  };
15744
- var lower = /* @__PURE__ */ function() {
15745
- var _ref2 = _async_to_generator(function() {
15637
+ var lower = function() {
15638
+ return _async_to_generator(function() {
15746
15639
  return __generator(this, function(_state) {
15747
15640
  switch (_state.label) {
15748
15641
  case 0:
@@ -15765,11 +15658,8 @@
15765
15658
  ];
15766
15659
  }
15767
15660
  });
15768
- });
15769
- return function lower2() {
15770
- return _ref2.apply(this, arguments);
15771
- };
15772
- }();
15661
+ })();
15662
+ };
15773
15663
  var touchStart = function(event) {
15774
15664
  if (scrollTop.current === 0 && !isTouching.current && pullRefresh) {
15775
15665
  y.current = event.touches[0].pageY;
@@ -15791,8 +15681,8 @@
15791
15681
  isTouching.current = false;
15792
15682
  }
15793
15683
  };
15794
- var touchEnd = /* @__PURE__ */ function() {
15795
- var _ref2 = _async_to_generator(function() {
15684
+ var touchEnd = function() {
15685
+ return _async_to_generator(function() {
15796
15686
  return __generator(this, function(_state) {
15797
15687
  switch (_state.label) {
15798
15688
  case 0:
@@ -15822,11 +15712,8 @@
15822
15712
  ];
15823
15713
  }
15824
15714
  });
15825
- });
15826
- return function touchEnd2() {
15827
- return _ref2.apply(this, arguments);
15828
- };
15829
- }();
15715
+ })();
15716
+ };
15830
15717
  return /* @__PURE__ */ React.createElement(components.ScrollView, _object_spread_props(_object_spread({}, rest), {
15831
15718
  className: classes,
15832
15719
  scrollY: true,
@@ -15916,7 +15803,10 @@
15916
15803
  var classPrefix2 = "nut-noticebar";
15917
15804
  var wrapRef = React.useRef(null);
15918
15805
  var contentRef = React.useRef(null);
15919
- var _useState = _sliced_to_array(React.useState(true), 2), showNoticeBar = _useState[0], SetShowNoticeBar = _useState[1];
15806
+ var uid = useUuid();
15807
+ var wrapRefId = "wrap-ref-".concat(uid);
15808
+ var contentRefId = "content-ref-".concat(uid);
15809
+ var _useState = _sliced_to_array(React.useState(true), 2), showNoticeBar = _useState[0], setShowNoticeBar = _useState[1];
15920
15810
  var scrollList = React.useRef([]);
15921
15811
  var _useState1 = _sliced_to_array(React.useState(0), 2), wrapWidth = _useState1[0], SetWrapWidth = _useState1[1];
15922
15812
  var _useState2 = _sliced_to_array(React.useState(true), 2), firstRound = _useState2[0], SetFirstRound = _useState2[1];
@@ -15994,61 +15884,47 @@
15994
15884
  }, [
15995
15885
  list
15996
15886
  ]);
15997
- var initScrollWrap = function(value2) {
15887
+ var initScrollWrap = function() {
15998
15888
  if (showNoticeBar === false) {
15999
15889
  return;
16000
15890
  }
16001
- setTimeout(/* @__PURE__ */ _async_to_generator(function() {
16002
- var warpRes, contentRes, wrapW, offsetW, canScroll;
16003
- return __generator(this, function(_state) {
16004
- switch (_state.label) {
16005
- case 0:
16006
- if (!wrapRef.current || !contentRef.current) {
16007
- return [
16008
- 2
16009
- ];
16010
- }
16011
- return [
16012
- 4,
16013
- getRectInMultiPlatform(wrapRef.current)
16014
- ];
16015
- case 1:
16016
- warpRes = _state.sent();
16017
- return [
16018
- 4,
16019
- getRectInMultiPlatform(contentRef.current)
16020
- ];
16021
- case 2:
16022
- contentRes = _state.sent();
16023
- wrapW = warpRes.width;
16024
- offsetW = contentRes.width;
16025
- canScroll = align === "left" && scrollable == null ? offsetW > wrapW : scrollable;
16026
- SetIsCanScroll(canScroll);
16027
- if (canScroll) {
16028
- SetWrapWidth(wrapW);
16029
- SetOffsetW(offsetW);
16030
- SetAnimationDuration(offsetW / speed);
16031
- SetAnimationClass("play");
16032
- } else {
16033
- SetAnimationClass("");
16034
- }
15891
+ setTimeout(function() {
15892
+ return _async_to_generator(function() {
15893
+ var warpRes, contentRes, wrapW, offsetW, canScroll;
15894
+ return __generator(this, function(_state) {
15895
+ if (!wrapRef.current || !contentRef.current) {
16035
15896
  return [
16036
15897
  2
16037
15898
  ];
16038
- }
16039
- });
16040
- }), 0);
15899
+ }
15900
+ warpRes = wrapRef.current.getBoundingClientRect();
15901
+ contentRes = contentRef.current.getBoundingClientRect();
15902
+ if (!warpRes || !contentRes) return [
15903
+ 2
15904
+ ];
15905
+ wrapW = warpRes.width;
15906
+ offsetW = contentRes.width;
15907
+ canScroll = align === "left" && scrollable == null ? offsetW > wrapW : scrollable;
15908
+ SetIsCanScroll(canScroll);
15909
+ if (canScroll) {
15910
+ SetWrapWidth(wrapW);
15911
+ SetOffsetW(offsetW);
15912
+ SetAnimationDuration(offsetW / speed);
15913
+ SetAnimationClass("play");
15914
+ } else {
15915
+ SetAnimationClass("");
15916
+ }
15917
+ return [
15918
+ 2
15919
+ ];
15920
+ });
15921
+ })();
15922
+ }, 0);
16041
15923
  };
16042
15924
  var handleClick = function(event) {
16043
15925
  click && click(event);
16044
15926
  onClick && onClick(event);
16045
15927
  };
16046
- var onClickIcon = function(event) {
16047
- event.stopPropagation();
16048
- SetShowNoticeBar(!closeable);
16049
- close2 && close2(event);
16050
- onClose && onClose(event);
16051
- };
16052
15928
  var onAnimationEnd = function() {
16053
15929
  SetFirstRound(false);
16054
15930
  setTimeout(function() {
@@ -16071,12 +15947,16 @@
16071
15947
  SetAnimate(false);
16072
15948
  }, time2);
16073
15949
  };
16074
- var handleClickIcon = function(event) {
15950
+ var handleClickIcon = React.useCallback(function(event) {
16075
15951
  event.stopPropagation();
16076
- SetShowNoticeBar(!closeable);
15952
+ setShowNoticeBar(!closeable);
16077
15953
  close2 && close2(event);
16078
15954
  onClose && onClose(event);
16079
- };
15955
+ }, [
15956
+ close2,
15957
+ onClose,
15958
+ closeable
15959
+ ]);
16080
15960
  var isEllipsis = function() {
16081
15961
  if (isCanScroll == null && align === "left") {
16082
15962
  return wrap;
@@ -16100,35 +15980,37 @@
16100
15980
  var init = function() {
16101
15981
  var activeIndex = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
16102
15982
  if (!(container === null || container === void 0 ? void 0 : container.current)) return;
16103
- setTimeout(/* @__PURE__ */ _async_to_generator(function() {
16104
- var rects, _active, _height, targetOffset;
16105
- return __generator(this, function(_state) {
16106
- switch (_state.label) {
16107
- case 0:
16108
- return [
16109
- 4,
16110
- getRectInMultiPlatform(container === null || container === void 0 ? void 0 : container.current)
16111
- ];
16112
- case 1:
16113
- rects = _state.sent();
16114
- _active = Math.max(Math.min(childCount - 1, activeIndex), 0);
16115
- _height = rects === null || rects === void 0 ? void 0 : rects.height;
16116
- trackSize = childCount * Number(_height);
16117
- targetOffset = getOffset(_active);
16118
- activeRef.current = _active;
16119
- setRect(rects);
16120
- setOffset(targetOffset);
16121
- setChildOffset(new Array(childCount).fill(0));
16122
- swiperRef.current.moving = true;
16123
- setStyle(targetOffset, rects);
16124
- swiperRef.current.moving = false;
16125
- setReady(true);
16126
- return [
16127
- 2
16128
- ];
16129
- }
16130
- });
16131
- }), 0);
15983
+ setTimeout(function() {
15984
+ return _async_to_generator(function() {
15985
+ var rects, _active, _height, targetOffset;
15986
+ return __generator(this, function(_state) {
15987
+ switch (_state.label) {
15988
+ case 0:
15989
+ return [
15990
+ 4,
15991
+ getRectInMultiPlatform(container === null || container === void 0 ? void 0 : container.current)
15992
+ ];
15993
+ case 1:
15994
+ rects = _state.sent();
15995
+ _active = Math.max(Math.min(childCount - 1, activeIndex), 0);
15996
+ _height = rects === null || rects === void 0 ? void 0 : rects.height;
15997
+ trackSize = childCount * Number(_height);
15998
+ targetOffset = getOffset(_active);
15999
+ activeRef.current = _active;
16000
+ setRect(rects);
16001
+ setOffset(targetOffset);
16002
+ setChildOffset(new Array(childCount).fill(0));
16003
+ swiperRef.current.moving = true;
16004
+ setStyle(targetOffset, rects);
16005
+ swiperRef.current.moving = false;
16006
+ setReady(true);
16007
+ return [
16008
+ 2
16009
+ ];
16010
+ }
16011
+ });
16012
+ })();
16013
+ }, 0);
16132
16014
  };
16133
16015
  React.useEffect(function() {
16134
16016
  if (ready) {
@@ -16213,10 +16095,11 @@
16213
16095
  target.style.transform = "translate3D(0,".concat(_offset, "px,0)");
16214
16096
  };
16215
16097
  var itemStyle = function(index2) {
16216
- var style2 = {};
16098
+ var style2 = {
16099
+ width: "100%"
16100
+ };
16217
16101
  if (height2) {
16218
16102
  style2.height = "".concat(height2, "px");
16219
- style2.lineHeight = "".concat(height2, "px");
16220
16103
  }
16221
16104
  var offset2 = childOffset[index2];
16222
16105
  if (offset2) {
@@ -16280,6 +16163,32 @@
16280
16163
  container.current = ref;
16281
16164
  setIsContainerReady(true);
16282
16165
  }, []);
16166
+ var renderLeftIcon = React.useCallback(function() {
16167
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, leftIcon ? /* @__PURE__ */ React.createElement(components.View, {
16168
+ className: "nut-noticebar-box-left-icon"
16169
+ }, leftIcon) : null);
16170
+ }, [
16171
+ leftIcon
16172
+ ]);
16173
+ var renderRight = React.useCallback(function() {
16174
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, right2 ? /* @__PURE__ */ React.createElement(components.View, {
16175
+ className: "nut-noticebar-box-right"
16176
+ }, right2) : null);
16177
+ }, [
16178
+ right2
16179
+ ]);
16180
+ var renderRightIcon = React.useCallback(function() {
16181
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, rightIcon || closeable ? /* @__PURE__ */ React.createElement(components.View, {
16182
+ className: "nut-noticebar-box-right-icon",
16183
+ onClick: handleClickIcon
16184
+ }, rightIcon || /* @__PURE__ */ React.createElement(IconSVG$p, {
16185
+ size: 12
16186
+ })) : null);
16187
+ }, [
16188
+ rightIcon,
16189
+ closeable,
16190
+ handleClickIcon
16191
+ ]);
16283
16192
  return /* @__PURE__ */ React.createElement(components.View, {
16284
16193
  className: cls,
16285
16194
  style
@@ -16287,31 +16196,22 @@
16287
16196
  className: noticebarClass,
16288
16197
  style: barStyle,
16289
16198
  onClick: handleClick
16290
- }, leftIcon ? /* @__PURE__ */ React.createElement(components.View, {
16291
- className: "nut-noticebar-box-left-icon"
16292
- }, leftIcon) : null, /* @__PURE__ */ React.createElement(components.View, {
16199
+ }, renderLeftIcon(), /* @__PURE__ */ React.createElement(components.View, {
16293
16200
  ref: wrapRef,
16294
- className: "nut-noticebar-box-wrap"
16201
+ className: "nut-noticebar-box-wrap",
16202
+ id: wrapRefId
16295
16203
  }, /* @__PURE__ */ React.createElement(components.View, {
16296
16204
  ref: contentRef,
16205
+ id: contentRefId,
16297
16206
  className: "nut-noticebar-box-wrap-content ".concat(animationClass, " ").concat(isEllipsis() ? "nut-ellipsis" : ""),
16298
16207
  style: contentStyle,
16299
16208
  onAnimationEnd
16300
- }, children, content2)), right2 ? /* @__PURE__ */ React.createElement(components.View, {
16301
- className: "nut-noticebar-box-right"
16302
- }, right2) : null, closeable || rightIcon ? /* @__PURE__ */ React.createElement(components.View, {
16303
- className: "nut-noticebar-box-right-icon",
16304
- onClick: onClickIcon
16305
- }, rightIcon || /* @__PURE__ */ React.createElement(IconSVG$p, {
16306
- size: 12
16307
- })) : null) : null, showNoticeBar && hasVerticalContent && isVertical ? /* @__PURE__ */ React.createElement(components.View, {
16209
+ }, children, content2)), renderRight(), renderRightIcon()) : null, showNoticeBar && hasVerticalContent && isVertical ? /* @__PURE__ */ React.createElement(components.View, {
16308
16210
  className: "nut-noticebar-vertical",
16309
16211
  style: barStyle,
16310
16212
  ref: containerRefCallback,
16311
16213
  onClick: handleClick
16312
- }, leftIcon ? /* @__PURE__ */ React.createElement(components.View, {
16313
- className: "nut-noticebar-box-left-icon"
16314
- }, leftIcon) : null, children ? /* @__PURE__ */ React.createElement(components.View, {
16214
+ }, renderLeftIcon(), children ? /* @__PURE__ */ React.createElement(components.View, {
16315
16215
  className: "nut-noticebar-box-wrap",
16316
16216
  ref: innerRef
16317
16217
  }, scrollList.current.map(function(item, index2) {
@@ -16326,27 +16226,17 @@
16326
16226
  className: "nut-noticebar-box-horseLamp-list",
16327
16227
  style: horseLampStyle
16328
16228
  }, scrollList.current.map(function(item, index2) {
16329
- return (
16330
- // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
16331
- /* @__PURE__ */ React.createElement(components.View, {
16332
- className: "nut-noticebar-box-horseLamp-list-item",
16333
- style: {
16334
- height: height2
16335
- },
16336
- key: index2,
16337
- onClick: function(e) {
16338
- handleItemClick(e, item);
16339
- }
16340
- }, item)
16341
- );
16342
- })), /* @__PURE__ */ React.createElement(components.View, {
16343
- className: "nut-noticebar-box-right-icon",
16344
- onClick: function(e) {
16345
- handleClickIcon(e);
16346
- }
16347
- }, rightIcon || (closeable ? /* @__PURE__ */ React.createElement(IconSVG$p, {
16348
- size: 12
16349
- }) : null))) : null);
16229
+ return /* @__PURE__ */ React.createElement(components.View, {
16230
+ className: "nut-noticebar-box-horseLamp-list-item",
16231
+ style: {
16232
+ height: height2
16233
+ },
16234
+ key: index2,
16235
+ onClick: function(e) {
16236
+ handleItemClick(e, item);
16237
+ }
16238
+ }, item);
16239
+ })), renderRight(), renderRightIcon()) : null);
16350
16240
  };
16351
16241
  NoticeBar.displayName = "NutNoticeBar";
16352
16242
  var defaultProps$B = _object_spread_props(_object_spread({}, ComponentDefaults), {
@@ -16517,93 +16407,91 @@
16517
16407
  ]);
16518
16408
  var uid = useUuid();
16519
16409
  var popoverId = "popover-".concat(uid);
16520
- var getWrapperPosition = /* @__PURE__ */ function() {
16521
- var _ref2 = _async_to_generator(function() {
16410
+ var getWrapperPosition = function() {
16411
+ return _async_to_generator(function() {
16522
16412
  return __generator(this, function(_state) {
16523
- Taro.nextTick(/* @__PURE__ */ _async_to_generator(function() {
16524
- var rect, _tmp, width2, height2, right2, left2, top;
16525
- return __generator(this, function(_state2) {
16526
- switch (_state2.label) {
16527
- case 0:
16528
- if (!targetId) return [
16529
- 3,
16530
- 2
16531
- ];
16532
- return [
16533
- 4,
16534
- getRectInMultiPlatform(document.querySelector("#".concat(targetId)), targetId)
16535
- ];
16536
- case 1:
16537
- _tmp = _state2.sent();
16538
- return [
16539
- 3,
16540
- 4
16541
- ];
16542
- case 2:
16543
- return [
16544
- 4,
16545
- getRectInMultiPlatform(popoverRef.current, popoverId)
16546
- ];
16547
- case 3:
16548
- _tmp = _state2.sent();
16549
- _state2.label = 4;
16550
- case 4:
16551
- rect = _tmp;
16552
- width2 = rect.width, height2 = rect.height, right2 = rect.right, left2 = rect.left, top = rect.top;
16553
- setWrapperPosition({
16554
- width: width2,
16555
- height: height2,
16556
- left: rtl ? right2 : left2,
16557
- top,
16558
- right: rtl ? left2 : right2
16559
- });
16560
- getPopoverContentW();
16561
- return [
16562
- 2
16563
- ];
16564
- }
16565
- });
16566
- }));
16413
+ Taro.nextTick(function() {
16414
+ return _async_to_generator(function() {
16415
+ var rect, _tmp, width2, height2, right2, left2, top;
16416
+ return __generator(this, function(_state2) {
16417
+ switch (_state2.label) {
16418
+ case 0:
16419
+ if (!targetId) return [
16420
+ 3,
16421
+ 2
16422
+ ];
16423
+ return [
16424
+ 4,
16425
+ getRectInMultiPlatform(document.querySelector("#".concat(targetId)), targetId)
16426
+ ];
16427
+ case 1:
16428
+ _tmp = _state2.sent();
16429
+ return [
16430
+ 3,
16431
+ 4
16432
+ ];
16433
+ case 2:
16434
+ return [
16435
+ 4,
16436
+ getRectInMultiPlatform(popoverRef.current, popoverId)
16437
+ ];
16438
+ case 3:
16439
+ _tmp = _state2.sent();
16440
+ _state2.label = 4;
16441
+ case 4:
16442
+ rect = _tmp;
16443
+ width2 = rect.width, height2 = rect.height, right2 = rect.right, left2 = rect.left, top = rect.top;
16444
+ setWrapperPosition({
16445
+ width: width2,
16446
+ height: height2,
16447
+ left: rtl ? right2 : left2,
16448
+ top,
16449
+ right: rtl ? left2 : right2
16450
+ });
16451
+ getPopoverContentW();
16452
+ return [
16453
+ 2
16454
+ ];
16455
+ }
16456
+ });
16457
+ })();
16458
+ });
16567
16459
  return [
16568
16460
  2
16569
16461
  ];
16570
16462
  });
16571
- });
16572
- return function getWrapperPosition2() {
16573
- return _ref2.apply(this, arguments);
16574
- };
16575
- }();
16576
- var getPopoverContentW = /* @__PURE__ */ function() {
16577
- var _ref2 = _async_to_generator(function() {
16463
+ })();
16464
+ };
16465
+ var getPopoverContentW = function() {
16466
+ return _async_to_generator(function() {
16578
16467
  return __generator(this, function(_state) {
16579
- Taro.nextTick(/* @__PURE__ */ _async_to_generator(function() {
16580
- var rectContent;
16581
- return __generator(this, function(_state2) {
16582
- switch (_state2.label) {
16583
- case 0:
16584
- return [
16585
- 4,
16586
- getRectInMultiPlatform(popoverContentRef.current)
16587
- ];
16588
- case 1:
16589
- rectContent = _state2.sent();
16590
- setPopWidth(rectContent.width);
16591
- setPopHeight(rectContent.height);
16592
- return [
16593
- 2
16594
- ];
16595
- }
16596
- });
16597
- }));
16468
+ Taro.nextTick(function() {
16469
+ return _async_to_generator(function() {
16470
+ var rectContent;
16471
+ return __generator(this, function(_state2) {
16472
+ switch (_state2.label) {
16473
+ case 0:
16474
+ return [
16475
+ 4,
16476
+ getRectInMultiPlatform(popoverContentRef.current)
16477
+ ];
16478
+ case 1:
16479
+ rectContent = _state2.sent();
16480
+ setPopWidth(rectContent.width);
16481
+ setPopHeight(rectContent.height);
16482
+ return [
16483
+ 2
16484
+ ];
16485
+ }
16486
+ });
16487
+ })();
16488
+ });
16598
16489
  return [
16599
16490
  2
16600
16491
  ];
16601
16492
  });
16602
- });
16603
- return function getPopoverContentW2() {
16604
- return _ref2.apply(this, arguments);
16605
- };
16606
- }();
16493
+ })();
16494
+ };
16607
16495
  var clickAway = function() {
16608
16496
  if (closeOnOutsideClick) {
16609
16497
  onClick === null || onClick === void 0 ? void 0 : onClick();
@@ -16794,7 +16682,58 @@
16794
16682
  });
16795
16683
  var PullToRefresh = function(p) {
16796
16684
  var doRefresh = function doRefresh2() {
16797
- return _doRefresh.apply(this, arguments);
16685
+ return _async_to_generator(function() {
16686
+ var e;
16687
+ return __generator(this, function(_state) {
16688
+ switch (_state.label) {
16689
+ case 0:
16690
+ setHeight(headHeight);
16691
+ setStatus("refreshing");
16692
+ _state.label = 1;
16693
+ case 1:
16694
+ _state.trys.push([
16695
+ 1,
16696
+ 3,
16697
+ ,
16698
+ 4
16699
+ ]);
16700
+ return [
16701
+ 4,
16702
+ props.onRefresh()
16703
+ ];
16704
+ case 2:
16705
+ _state.sent();
16706
+ setStatus("complete");
16707
+ return [
16708
+ 3,
16709
+ 4
16710
+ ];
16711
+ case 3:
16712
+ e = _state.sent();
16713
+ setHeight(0);
16714
+ setStatus("pulling");
16715
+ throw e;
16716
+ case 4:
16717
+ if (!(props.completeDelay > 0)) return [
16718
+ 3,
16719
+ 6
16720
+ ];
16721
+ return [
16722
+ 4,
16723
+ sleep(props.completeDelay)
16724
+ ];
16725
+ case 5:
16726
+ _state.sent();
16727
+ _state.label = 6;
16728
+ case 6:
16729
+ setHeight(0);
16730
+ setStatus("pulling");
16731
+ return [
16732
+ 2
16733
+ ];
16734
+ }
16735
+ });
16736
+ })();
16798
16737
  };
16799
16738
  var classPrefix2 = "nut-pulltorefresh";
16800
16739
  var locale = useConfig().locale;
@@ -16850,61 +16789,6 @@
16850
16789
  }
16851
16790
  clearTimeout(timer.current);
16852
16791
  };
16853
- function _doRefresh() {
16854
- _doRefresh = _async_to_generator(function() {
16855
- var e;
16856
- return __generator(this, function(_state) {
16857
- switch (_state.label) {
16858
- case 0:
16859
- setHeight(headHeight);
16860
- setStatus("refreshing");
16861
- _state.label = 1;
16862
- case 1:
16863
- _state.trys.push([
16864
- 1,
16865
- 3,
16866
- ,
16867
- 4
16868
- ]);
16869
- return [
16870
- 4,
16871
- props.onRefresh()
16872
- ];
16873
- case 2:
16874
- _state.sent();
16875
- setStatus("complete");
16876
- return [
16877
- 3,
16878
- 4
16879
- ];
16880
- case 3:
16881
- e = _state.sent();
16882
- setHeight(0);
16883
- setStatus("pulling");
16884
- throw e;
16885
- case 4:
16886
- if (!(props.completeDelay > 0)) return [
16887
- 3,
16888
- 6
16889
- ];
16890
- return [
16891
- 4,
16892
- sleep(props.completeDelay)
16893
- ];
16894
- case 5:
16895
- _state.sent();
16896
- _state.label = 6;
16897
- case 6:
16898
- setHeight(0);
16899
- setStatus("pulling");
16900
- return [
16901
- 2
16902
- ];
16903
- }
16904
- });
16905
- });
16906
- return _doRefresh.apply(this, arguments);
16907
- }
16908
16792
  var handleTouchEnd = function() {
16909
16793
  if (props.disabled) return;
16910
16794
  pullingRef.current = false;
@@ -17095,8 +16979,8 @@
17095
16979
  var uid = useUuid();
17096
16980
  var leftId = "swipe-left-".concat(uid);
17097
16981
  var rightId = "swipe-right-".concat(uid);
17098
- var getWidth = /* @__PURE__ */ function() {
17099
- var _ref = _async_to_generator(function() {
16982
+ var getWidth = function() {
16983
+ return _async_to_generator(function() {
17100
16984
  var leftRect, rightRect;
17101
16985
  return __generator(this, function(_state) {
17102
16986
  switch (_state.label) {
@@ -17140,11 +17024,8 @@
17140
17024
  ];
17141
17025
  }
17142
17026
  });
17143
- });
17144
- return function getWidth2() {
17145
- return _ref.apply(this, arguments);
17146
- };
17147
- }();
17027
+ })();
17028
+ };
17148
17029
  Taro.useReady(function() {
17149
17030
  Taro.nextTick(function() {
17150
17031
  return getWidth();
@@ -17185,8 +17066,8 @@
17185
17066
  state.offset,
17186
17067
  state.dragging
17187
17068
  ]);
17188
- var onTouchStart = /* @__PURE__ */ function() {
17189
- var _ref = _async_to_generator(function(event) {
17069
+ var onTouchStart = function(event) {
17070
+ return _async_to_generator(function() {
17190
17071
  var _props_onTouchStart;
17191
17072
  return __generator(this, function(_state) {
17192
17073
  if (!props.disabled) {
@@ -17199,11 +17080,8 @@
17199
17080
  2
17200
17081
  ];
17201
17082
  });
17202
- });
17203
- return function onTouchStart2(event) {
17204
- return _ref.apply(this, arguments);
17205
- };
17206
- }();
17083
+ })();
17084
+ };
17207
17085
  var onTouchMove = function(event) {
17208
17086
  var _props_onTouchMove;
17209
17087
  if (props.disabled) return;
@@ -17319,7 +17197,6 @@
17319
17197
  });
17320
17198
  React.useEffect(function() {
17321
17199
  var handler = function(event) {
17322
- console.log("~~hanyu handler---- window", event);
17323
17200
  var targets = [
17324
17201
  root2
17325
17202
  ];
@@ -17480,7 +17357,7 @@
17480
17357
  style: _object_spread({}, styles, contentStyle)
17481
17358
  }, renderIcon(), title && /* @__PURE__ */ React.createElement(components.Text, {
17482
17359
  className: "".concat(classPrefix2, "-title")
17483
- }, title), content2 && /* @__PURE__ */ React.createElement(components.View, {
17360
+ }, title), content2 && /* @__PURE__ */ React.createElement(components.Text, {
17484
17361
  className: "".concat(classPrefix2, "-text")
17485
17362
  }, content2)))));
17486
17363
  };
@@ -18175,8 +18052,8 @@
18175
18052
  var _useState = _sliced_to_array(React.useState(0), 2), tran = _useState[0], setTran = _useState[1];
18176
18053
  var _useRefState = _sliced_to_array(useRefState(0), 2), currentHeight = _useRefState[0], setCurrentHeight = _useRefState[1];
18177
18054
  var _useState1 = _sliced_to_array(React.useState(0), 2), wrapperHeight = _useState1[0], setWrapperHeight = _useState1[1];
18178
- var updateRectHeight = /* @__PURE__ */ function() {
18179
- var _ref2 = _async_to_generator(function() {
18055
+ var updateRectHeight = function() {
18056
+ return _async_to_generator(function() {
18180
18057
  var res;
18181
18058
  return __generator(this, function(_state) {
18182
18059
  switch (_state.label) {
@@ -18199,11 +18076,8 @@
18199
18076
  ];
18200
18077
  }
18201
18078
  });
18202
- });
18203
- return function updateRectHeight2() {
18204
- return _ref2.apply(this, arguments);
18205
- };
18206
- }();
18079
+ })();
18080
+ };
18207
18081
  React.useEffect(function() {
18208
18082
  Taro.nextTick(function() {
18209
18083
  updateRectHeight();
@@ -18606,8 +18480,8 @@
18606
18480
  }, [
18607
18481
  content2
18608
18482
  ]);
18609
- var getSymbolInfo = /* @__PURE__ */ function() {
18610
- var _ref2 = _async_to_generator(function() {
18483
+ var getSymbolInfo = function() {
18484
+ return _async_to_generator(function() {
18611
18485
  var refe;
18612
18486
  return __generator(this, function(_state) {
18613
18487
  switch (_state.label) {
@@ -18624,19 +18498,16 @@
18624
18498
  ];
18625
18499
  }
18626
18500
  });
18627
- });
18628
- return function getSymbolInfo2() {
18629
- return _ref2.apply(this, arguments);
18630
- };
18631
- }();
18501
+ })();
18502
+ };
18632
18503
  var symbolText = function() {
18633
18504
  if (direction === "end" || direction === "middle") {
18634
18505
  return "".concat(symbol).concat(expandText);
18635
18506
  }
18636
18507
  return "".concat(symbol).concat(expandText).concat(symbol);
18637
18508
  };
18638
- var getReference = /* @__PURE__ */ function() {
18639
- var _ref2 = _async_to_generator(function() {
18509
+ var getReference = function() {
18510
+ return _async_to_generator(function() {
18640
18511
  var query;
18641
18512
  return __generator(this, function(_state) {
18642
18513
  query = Taro.createSelectorQuery();
@@ -18672,13 +18543,10 @@
18672
18543
  2
18673
18544
  ];
18674
18545
  });
18675
- });
18676
- return function getReference2() {
18677
- return _ref2.apply(this, arguments);
18678
- };
18679
- }();
18680
- var calcEllipse = /* @__PURE__ */ function() {
18681
- var _ref2 = _async_to_generator(function() {
18546
+ })();
18547
+ };
18548
+ var calcEllipse = function() {
18549
+ return _async_to_generator(function() {
18682
18550
  var refe, rowNum, end, end1, start;
18683
18551
  return __generator(this, function(_state) {
18684
18552
  switch (_state.label) {
@@ -18715,13 +18583,10 @@
18715
18583
  ];
18716
18584
  }
18717
18585
  });
18718
- });
18719
- return function calcEllipse2() {
18720
- return _ref2.apply(this, arguments);
18721
- };
18722
- }();
18723
- var verifyEllipsis = /* @__PURE__ */ function() {
18724
- var _ref2 = _async_to_generator(function() {
18586
+ })();
18587
+ };
18588
+ var verifyEllipsis = function() {
18589
+ return _async_to_generator(function() {
18725
18590
  var refe, _ellipsis_current_leading, _ellipsis_current4, _ellipsis_current_leading1, _ellipsis_current12, _ellipsis_current22, _ellipsis_current_tailing, _ellipsis_current32;
18726
18591
  return __generator(this, function(_state) {
18727
18592
  switch (_state.label) {
@@ -18748,11 +18613,8 @@
18748
18613
  ];
18749
18614
  }
18750
18615
  });
18751
- });
18752
- return function verifyEllipsis2() {
18753
- return _ref2.apply(this, arguments);
18754
- };
18755
- }();
18616
+ })();
18617
+ };
18756
18618
  var assignContent = function() {
18757
18619
  var _ellipsis_current4, _ellipsis_current12, _ellipsis_current22, _ellipsis_current32;
18758
18620
  var newContent = "".concat(((_ellipsis_current4 = ellipsis.current) === null || _ellipsis_current4 === void 0 ? void 0 : _ellipsis_current4.leading) || "").concat(((_ellipsis_current12 = ellipsis.current) === null || _ellipsis_current12 === void 0 ? void 0 : _ellipsis_current12.leading) ? symbol : "").concat(expandText || "").concat(((_ellipsis_current22 = ellipsis.current) === null || _ellipsis_current22 === void 0 ? void 0 : _ellipsis_current22.tailing) ? symbol : "").concat(((_ellipsis_current32 = ellipsis.current) === null || _ellipsis_current32 === void 0 ? void 0 : _ellipsis_current32.tailing) || "");
@@ -19298,7 +19160,7 @@
19298
19160
  ImagePreview.displayName = "NutImagePreview";
19299
19161
  var lottie$2 = { exports: {} };
19300
19162
  (function(module, exports) {
19301
- typeof navigator !== "undefined" && function(global2, factory2) {
19163
+ typeof document !== "undefined" && typeof navigator !== "undefined" && function(global2, factory2) {
19302
19164
  module.exports = factory2();
19303
19165
  }(commonjsGlobal, function() {
19304
19166
  var svgNS = "http://www.w3.org/2000/svg";
@@ -19468,18 +19330,13 @@
19468
19330
  length: len2
19469
19331
  });
19470
19332
  }
19471
- function _typeof$6(obj) {
19333
+ function _typeof$6(o) {
19472
19334
  "@babel/helpers - typeof";
19473
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
19474
- _typeof$6 = function _typeof2(obj2) {
19475
- return typeof obj2;
19476
- };
19477
- } else {
19478
- _typeof$6 = function _typeof2(obj2) {
19479
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
19480
- };
19481
- }
19482
- return _typeof$6(obj);
19335
+ return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
19336
+ return typeof o2;
19337
+ } : function(o2) {
19338
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
19339
+ }, _typeof$6(o);
19483
19340
  }
19484
19341
  var subframeEnabled = true;
19485
19342
  var expressionsPlugin = null;
@@ -19726,18 +19583,13 @@
19726
19583
  function createNS(type2) {
19727
19584
  return document.createElementNS(svgNS, type2);
19728
19585
  }
19729
- function _typeof$5(obj) {
19586
+ function _typeof$5(o) {
19730
19587
  "@babel/helpers - typeof";
19731
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
19732
- _typeof$5 = function _typeof2(obj2) {
19733
- return typeof obj2;
19734
- };
19735
- } else {
19736
- _typeof$5 = function _typeof2(obj2) {
19737
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
19738
- };
19739
- }
19740
- return _typeof$5(obj);
19588
+ return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
19589
+ return typeof o2;
19590
+ } : function(o2) {
19591
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
19592
+ }, _typeof$5(o);
19741
19593
  }
19742
19594
  var dataManager = /* @__PURE__ */ function() {
19743
19595
  var _counterId = 1;
@@ -20693,18 +20545,13 @@
20693
20545
  }
20694
20546
  return "";
20695
20547
  }
20696
- function _typeof$4(obj) {
20548
+ function _typeof$4(o) {
20697
20549
  "@babel/helpers - typeof";
20698
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
20699
- _typeof$4 = function _typeof2(obj2) {
20700
- return typeof obj2;
20701
- };
20702
- } else {
20703
- _typeof$4 = function _typeof2(obj2) {
20704
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
20705
- };
20706
- }
20707
- return _typeof$4(obj);
20550
+ return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
20551
+ return typeof o2;
20552
+ } : function(o2) {
20553
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
20554
+ }, _typeof$4(o);
20708
20555
  }
20709
20556
  var AnimationItem = function AnimationItem2() {
20710
20557
  this._cbs = [];
@@ -23473,18 +23320,13 @@
23473
23320
  this.reset();
23474
23321
  };
23475
23322
  }();
23476
- function _typeof$3(obj) {
23323
+ function _typeof$3(o) {
23477
23324
  "@babel/helpers - typeof";
23478
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
23479
- _typeof$3 = function _typeof2(obj2) {
23480
- return typeof obj2;
23481
- };
23482
- } else {
23483
- _typeof$3 = function _typeof2(obj2) {
23484
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
23485
- };
23486
- }
23487
- return _typeof$3(obj);
23325
+ return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
23326
+ return typeof o2;
23327
+ } : function(o2) {
23328
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
23329
+ }, _typeof$3(o);
23488
23330
  }
23489
23331
  var lottie = {};
23490
23332
  function setLocation(href) {
@@ -23568,7 +23410,7 @@
23568
23410
  lottie.useWebWorker = setWebWorker;
23569
23411
  lottie.setIDPrefix = setPrefix;
23570
23412
  lottie.__getFactory = getFactory;
23571
- lottie.version = "5.12.2";
23413
+ lottie.version = "5.13.0";
23572
23414
  function checkReady() {
23573
23415
  if (document.readyState === "complete") {
23574
23416
  clearInterval(readyStateCheckInterval);
@@ -26162,7 +26004,7 @@
26162
26004
  }
26163
26005
  }
26164
26006
  }
26165
- if (this.finalTransform._matMdf) {
26007
+ if (!this.localTransforms || this.finalTransform._matMdf) {
26166
26008
  this.finalTransform._localMatMdf = this.finalTransform._matMdf;
26167
26009
  }
26168
26010
  if (this.finalTransform._opMdf) {
@@ -27400,7 +27242,7 @@
27400
27242
  itemData.of.setAttribute("r", rad);
27401
27243
  }
27402
27244
  }
27403
- if (itemData.e._mdf || itemData.h._mdf || itemData.a._mdf || isFirstFrame) {
27245
+ if (itemData.s._mdf || itemData.e._mdf || itemData.h._mdf || itemData.a._mdf || isFirstFrame) {
27404
27246
  if (!rad) {
27405
27247
  rad = Math.sqrt(Math.pow(pt1[0] - pt2[0], 2) + Math.pow(pt1[1] - pt2[1], 2));
27406
27248
  }
@@ -27597,7 +27439,7 @@
27597
27439
  var j;
27598
27440
  var jLen = this.stylesList.length;
27599
27441
  for (j = 0; j < jLen; j += 1) {
27600
- if (!this.stylesList[j].closed) {
27442
+ if (arr.indexOf(this.stylesList[j]) === -1 && !this.stylesList[j].closed) {
27601
27443
  arr.push(this.stylesList[j]);
27602
27444
  }
27603
27445
  }
@@ -27639,7 +27481,7 @@
27639
27481
  if (!processedPos) {
27640
27482
  itemsData[i2] = this.createStyleElement(arr[i2], level);
27641
27483
  } else {
27642
- itemsData[i2].style.closed = false;
27484
+ itemsData[i2].style.closed = arr[i2].hd;
27643
27485
  }
27644
27486
  if (arr[i2]._render) {
27645
27487
  if (itemsData[i2].style.pElem.parentNode !== container) {
@@ -32476,18 +32318,13 @@
32476
32318
  return _thisLayerFunction;
32477
32319
  };
32478
32320
  }();
32479
- function _typeof$2(obj) {
32321
+ function _typeof$2(o) {
32480
32322
  "@babel/helpers - typeof";
32481
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
32482
- _typeof$2 = function _typeof2(obj2) {
32483
- return typeof obj2;
32484
- };
32485
- } else {
32486
- _typeof$2 = function _typeof2(obj2) {
32487
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
32488
- };
32489
- }
32490
- return _typeof$2(obj);
32323
+ return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
32324
+ return typeof o2;
32325
+ } : function(o2) {
32326
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
32327
+ }, _typeof$2(o);
32491
32328
  }
32492
32329
  function seedRandom(pool, math) {
32493
32330
  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;
@@ -32606,18 +32443,13 @@
32606
32443
  var propTypes = {
32607
32444
  SHAPE: "shape"
32608
32445
  };
32609
- function _typeof$1(obj) {
32446
+ function _typeof$1(o) {
32610
32447
  "@babel/helpers - typeof";
32611
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
32612
- _typeof$1 = function _typeof2(obj2) {
32613
- return typeof obj2;
32614
- };
32615
- } else {
32616
- _typeof$1 = function _typeof2(obj2) {
32617
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
32618
- };
32619
- }
32620
- return _typeof$1(obj);
32448
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
32449
+ return typeof o2;
32450
+ } : function(o2) {
32451
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
32452
+ }, _typeof$1(o);
32621
32453
  }
32622
32454
  var ExpressionManager = function() {
32623
32455
  var ob = {};
@@ -32985,6 +32817,7 @@
32985
32817
  var content;
32986
32818
  var effect;
32987
32819
  var thisProperty = property;
32820
+ thisProperty._name = elem.data.nm;
32988
32821
  thisProperty.valueAtTime = thisProperty.getValueAtTime;
32989
32822
  Object.defineProperty(thisProperty, "value", {
32990
32823
  get: function get() {
@@ -33421,6 +33254,7 @@
33421
33254
  if (expressionValue.value !== val2) {
33422
33255
  expressionValue = new Number(val2);
33423
33256
  expressionValue.value = val2;
33257
+ expressionValue[0] = val2;
33424
33258
  completeProperty(expressionValue, property2, "unidimensional");
33425
33259
  }
33426
33260
  return expressionValue;
@@ -34460,18 +34294,13 @@
34460
34294
  return _thisLayerFunction;
34461
34295
  };
34462
34296
  }();
34463
- function _typeof(obj) {
34297
+ function _typeof(o) {
34464
34298
  "@babel/helpers - typeof";
34465
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
34466
- _typeof = function _typeof2(obj2) {
34467
- return typeof obj2;
34468
- };
34469
- } else {
34470
- _typeof = function _typeof2(obj2) {
34471
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
34472
- };
34473
- }
34474
- return _typeof(obj);
34299
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
34300
+ return typeof o2;
34301
+ } : function(o2) {
34302
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
34303
+ }, _typeof(o);
34475
34304
  }
34476
34305
  var FootageInterface = /* @__PURE__ */ function() {
34477
34306
  var outlineInterfaceFactory = function outlineInterfaceFactory2(elem2) {
@@ -35583,122 +35412,106 @@
35583
35412
  })(lottie$2, lottie$2.exports);
35584
35413
  var lottieExports = lottie$2.exports;
35585
35414
  const lottie$1 = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports);
35586
- function _iterableToArrayLimit(arr, i2) {
35587
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
35588
- if (null != _i) {
35589
- var _s, _e, _x, _r, _arr = [], _n = true, _d = false;
35415
+ function _arrayLikeToArray(r, a) {
35416
+ (null == a || a > r.length) && (a = r.length);
35417
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
35418
+ return n;
35419
+ }
35420
+ function _arrayWithHoles(r) {
35421
+ if (Array.isArray(r)) return r;
35422
+ }
35423
+ function _defineProperty(e, r, t) {
35424
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
35425
+ value: t,
35426
+ enumerable: true,
35427
+ configurable: true,
35428
+ writable: true
35429
+ }) : e[r] = t, e;
35430
+ }
35431
+ function _iterableToArrayLimit(r, l) {
35432
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
35433
+ if (null != t) {
35434
+ var e, n, i2, u, a = [], f = true, o = false;
35590
35435
  try {
35591
- if (_x = (_i = _i.call(arr)).next, 0 === i2) ;
35592
- else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i2); _n = true) ;
35593
- } catch (err) {
35594
- _d = true, _e = err;
35436
+ if (i2 = (t = t.call(r)).next, 0 === l) ;
35437
+ else for (; !(f = (e = i2.call(t)).done) && (a.push(e.value), a.length !== l); f = true) ;
35438
+ } catch (r2) {
35439
+ o = true, n = r2;
35595
35440
  } finally {
35596
35441
  try {
35597
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
35442
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
35598
35443
  } finally {
35599
- if (_d) throw _e;
35444
+ if (o) throw n;
35600
35445
  }
35601
35446
  }
35602
- return _arr;
35447
+ return a;
35603
35448
  }
35604
35449
  }
35605
- function ownKeys(object2, enumerableOnly) {
35606
- var keys = Object.keys(object2);
35450
+ function _nonIterableRest() {
35451
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
35452
+ }
35453
+ function ownKeys(e, r) {
35454
+ var t = Object.keys(e);
35607
35455
  if (Object.getOwnPropertySymbols) {
35608
- var symbols = Object.getOwnPropertySymbols(object2);
35609
- enumerableOnly && (symbols = symbols.filter(function(sym) {
35610
- return Object.getOwnPropertyDescriptor(object2, sym).enumerable;
35611
- })), keys.push.apply(keys, symbols);
35456
+ var o = Object.getOwnPropertySymbols(e);
35457
+ r && (o = o.filter(function(r2) {
35458
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
35459
+ })), t.push.apply(t, o);
35612
35460
  }
35613
- return keys;
35461
+ return t;
35614
35462
  }
35615
- function _objectSpread2(target) {
35616
- for (var i2 = 1; i2 < arguments.length; i2++) {
35617
- var source = null != arguments[i2] ? arguments[i2] : {};
35618
- i2 % 2 ? ownKeys(Object(source), true).forEach(function(key2) {
35619
- _defineProperty(target, key2, source[key2]);
35620
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key2) {
35621
- Object.defineProperty(target, key2, Object.getOwnPropertyDescriptor(source, key2));
35463
+ function _objectSpread2(e) {
35464
+ for (var r = 1; r < arguments.length; r++) {
35465
+ var t = null != arguments[r] ? arguments[r] : {};
35466
+ r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
35467
+ _defineProperty(e, r2, t[r2]);
35468
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
35469
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
35622
35470
  });
35623
35471
  }
35624
- return target;
35472
+ return e;
35625
35473
  }
35626
- function _defineProperty(obj, key2, value2) {
35627
- key2 = _toPropertyKey(key2);
35628
- if (key2 in obj) {
35629
- Object.defineProperty(obj, key2, {
35630
- value: value2,
35631
- enumerable: true,
35632
- configurable: true,
35633
- writable: true
35634
- });
35635
- } else {
35636
- obj[key2] = value2;
35637
- }
35638
- return obj;
35639
- }
35640
- function _objectWithoutPropertiesLoose(source, excluded) {
35641
- if (source == null) return {};
35642
- var target = {};
35643
- var sourceKeys = Object.keys(source);
35644
- var key2, i2;
35645
- for (i2 = 0; i2 < sourceKeys.length; i2++) {
35646
- key2 = sourceKeys[i2];
35647
- if (excluded.indexOf(key2) >= 0) continue;
35648
- target[key2] = source[key2];
35649
- }
35650
- return target;
35651
- }
35652
- function _objectWithoutProperties(source, excluded) {
35653
- if (source == null) return {};
35654
- var target = _objectWithoutPropertiesLoose(source, excluded);
35655
- var key2, i2;
35474
+ function _objectWithoutProperties(e, t) {
35475
+ if (null == e) return {};
35476
+ var o, r, i2 = _objectWithoutPropertiesLoose(e, t);
35656
35477
  if (Object.getOwnPropertySymbols) {
35657
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
35658
- for (i2 = 0; i2 < sourceSymbolKeys.length; i2++) {
35659
- key2 = sourceSymbolKeys[i2];
35660
- if (excluded.indexOf(key2) >= 0) continue;
35661
- if (!Object.prototype.propertyIsEnumerable.call(source, key2)) continue;
35662
- target[key2] = source[key2];
35663
- }
35478
+ var s = Object.getOwnPropertySymbols(e);
35479
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i2[o] = e[o]);
35664
35480
  }
35665
- return target;
35481
+ return i2;
35666
35482
  }
35667
- function _slicedToArray(arr, i2) {
35668
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i2) || _unsupportedIterableToArray(arr, i2) || _nonIterableRest();
35669
- }
35670
- function _arrayWithHoles(arr) {
35671
- if (Array.isArray(arr)) return arr;
35672
- }
35673
- function _unsupportedIterableToArray(o, minLen) {
35674
- if (!o) return;
35675
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
35676
- var n = Object.prototype.toString.call(o).slice(8, -1);
35677
- if (n === "Object" && o.constructor) n = o.constructor.name;
35678
- if (n === "Map" || n === "Set") return Array.from(o);
35679
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
35680
- }
35681
- function _arrayLikeToArray(arr, len2) {
35682
- if (len2 == null || len2 > arr.length) len2 = arr.length;
35683
- for (var i2 = 0, arr2 = new Array(len2); i2 < len2; i2++) arr2[i2] = arr[i2];
35684
- return arr2;
35483
+ function _objectWithoutPropertiesLoose(r, e) {
35484
+ if (null == r) return {};
35485
+ var t = {};
35486
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
35487
+ if (e.includes(n)) continue;
35488
+ t[n] = r[n];
35489
+ }
35490
+ return t;
35685
35491
  }
35686
- function _nonIterableRest() {
35687
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
35492
+ function _slicedToArray(r, e) {
35493
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
35688
35494
  }
35689
- function _toPrimitive(input, hint) {
35690
- if (typeof input !== "object" || input === null) return input;
35691
- var prim = input[Symbol.toPrimitive];
35692
- if (prim !== void 0) {
35693
- var res = prim.call(input, hint || "default");
35694
- if (typeof res !== "object") return res;
35495
+ function _toPrimitive(t, r) {
35496
+ if ("object" != typeof t || !t) return t;
35497
+ var e = t[Symbol.toPrimitive];
35498
+ if (void 0 !== e) {
35499
+ var i2 = e.call(t, r);
35500
+ if ("object" != typeof i2) return i2;
35695
35501
  throw new TypeError("@@toPrimitive must return a primitive value.");
35696
35502
  }
35697
- return (hint === "string" ? String : Number)(input);
35503
+ return ("string" === r ? String : Number)(t);
35698
35504
  }
35699
- function _toPropertyKey(arg) {
35700
- var key2 = _toPrimitive(arg, "string");
35701
- return typeof key2 === "symbol" ? key2 : String(key2);
35505
+ function _toPropertyKey(t) {
35506
+ var i2 = _toPrimitive(t, "string");
35507
+ return "symbol" == typeof i2 ? i2 : i2 + "";
35508
+ }
35509
+ function _unsupportedIterableToArray(r, a) {
35510
+ if (r) {
35511
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
35512
+ var t = {}.toString.call(r).slice(8, -1);
35513
+ 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;
35514
+ }
35702
35515
  }
35703
35516
  var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onComplete", "onLoopComplete", "onEnterFrame", "onSegmentStart", "onConfigReady", "onDataReady", "onDataFailed", "onLoadedImages", "onDOMLoaded", "onDestroy", "lottieRef", "renderer", "name", "assetsPath", "rendererSettings"];
35704
35517
  var useLottie = function useLottie2(props, style) {
@@ -36151,7 +35964,7 @@
36151
35964
  if ("object" != s(t3) || !t3) return t3;
36152
35965
  var r2 = t3[Symbol.toPrimitive];
36153
35966
  if (void 0 !== r2) {
36154
- var i3 = r2.call(t3, e3 || "default");
35967
+ var i3 = r2.call(t3, e3);
36155
35968
  if ("object" != s(i3)) return i3;
36156
35969
  throw new TypeError("@@toPrimitive must return a primitive value.");
36157
35970
  }
@@ -39051,7 +38864,7 @@
39051
38864
  var parent, randSeed = Math.floor(1e6 * Math.random());
39052
38865
  elem.globalData;
39053
38866
  function executeExpression(t) {
39054
- return value = t, _needsRandom && seedRandom(randSeed), this.frameExpressionId === elem.globalData.frameId && "textSelector" !== this.propType ? value : ("textSelector" === this.propType && (this.textIndex, this.textTotal, this.selectorValue), thisLayer || (elem.layerInterface.text, thisLayer = elem.layerInterface, elem.comp.compInterface, thisLayer.toWorld.bind(thisLayer), thisLayer.fromWorld.bind(thisLayer), fromComp = thisLayer.fromComp.bind(thisLayer), thisLayer.toComp.bind(thisLayer), thisLayer.mask ? thisLayer.mask.bind(thisLayer) : null, fromComp), transform || (transform = elem.layerInterface("ADBE Transform Group"), transform && transform.anchorPoint), 4 !== elemType || content || (content = thisLayer("ADBE Root Vectors Group")), effect || (effect = thisLayer(4)), !(!elem.hierarchy || !elem.hierarchy.length) && !parent && (parent = elem.hierarchy[0].layerInterface), time = this.comp.renderedFrame / this.comp.globalData.frameRate, needsVelocity && velocityAtTime(time), expression_function(), this.frameExpressionId = elem.globalData.frameId, "shape" === scoped_bm_rt.propType, scoped_bm_rt);
38867
+ return value = t, _needsRandom && seedRandom(randSeed), this.frameExpressionId === elem.globalData.frameId && "textSelector" !== this.propType ? value : ("textSelector" === this.propType && (this.textIndex, this.textTotal, this.selectorValue), thisLayer || (elem.layerInterface.text, thisLayer = elem.layerInterface, elem.comp.compInterface, thisLayer.toWorld.bind(thisLayer), thisLayer.fromWorld.bind(thisLayer), fromComp = thisLayer.fromComp.bind(thisLayer), thisLayer.toComp.bind(thisLayer), thisLayer.mask ? thisLayer.mask.bind(thisLayer) : null, fromComp), transform || (transform = elem.layerInterface("ADBE Transform Group"), transform && transform.anchorPoint), 4 !== elemType || content || (content = thisLayer("ADBE Root Vectors Group")), effect || (effect = thisLayer(4)), !(!elem.hierarchy || !elem.hierarchy.length) && !parent && (parent = elem.hierarchy[0].layerInterface), time = this.comp.renderedFrame / this.comp.globalData.frameRate, needsVelocity && velocityAtTime(time), expression_function(), this.frameExpressionId = elem.globalData.frameId, "shape" === scoped_bm_rt.propType && (scoped_bm_rt = scoped_bm_rt.v), scoped_bm_rt);
39055
38868
  }
39056
38869
  return executeExpression;
39057
38870
  }
@@ -41228,8 +41041,8 @@
41228
41041
  maxMoveY,
41229
41042
  draw
41230
41043
  ]);
41231
- var setDrawImgInfo = /* @__PURE__ */ function() {
41232
- var _ref2 = _async_to_generator(function(image) {
41044
+ var setDrawImgInfo = function(image) {
41045
+ return _async_to_generator(function() {
41233
41046
  var displayWidth, cropperWidth, copyDrawImg, imgWidth, imgHeight, isPortrait, rate, scale2;
41234
41047
  return __generator(this, function(_state) {
41235
41048
  switch (_state.label) {
@@ -41279,11 +41092,8 @@
41279
41092
  ];
41280
41093
  }
41281
41094
  });
41282
- });
41283
- return function setDrawImgInfo2(image) {
41284
- return _ref2.apply(this, arguments);
41285
- };
41286
- }();
41095
+ })();
41096
+ };
41287
41097
  var chooseImage = function() {
41288
41098
  Taro.chooseImage({
41289
41099
  count: 1,
@@ -41296,8 +41106,8 @@
41296
41106
  }
41297
41107
  });
41298
41108
  };
41299
- var imageChange = /* @__PURE__ */ function() {
41300
- var _ref2 = _async_to_generator(function(file) {
41109
+ var imageChange = function(file) {
41110
+ return _async_to_generator(function() {
41301
41111
  return __generator(this, function(_state) {
41302
41112
  Taro.getImageInfo({
41303
41113
  src: file.path
@@ -41309,11 +41119,8 @@
41309
41119
  2
41310
41120
  ];
41311
41121
  });
41312
- });
41313
- return function imageChange2(file) {
41314
- return _ref2.apply(this, arguments);
41315
- };
41316
- }();
41122
+ })();
41123
+ };
41317
41124
  var resetScale = function(scale2) {
41318
41125
  setState(_object_spread_props(_object_spread({}, state), {
41319
41126
  moveX: 0,
@@ -41462,8 +41269,8 @@
41462
41269
  height: cropperWidth,
41463
41270
  destWidth: cropperWidth,
41464
41271
  destHeight: cropperWidth,
41465
- success: /* @__PURE__ */ function() {
41466
- var _ref2 = _async_to_generator(function(res) {
41272
+ success: function(res) {
41273
+ return _async_to_generator(function() {
41467
41274
  var filePath;
41468
41275
  return __generator(this, function(_state) {
41469
41276
  filePath = res.tempFilePath;
@@ -41473,11 +41280,8 @@
41473
41280
  2
41474
41281
  ];
41475
41282
  });
41476
- });
41477
- return function(res) {
41478
- return _ref2.apply(this, arguments);
41479
- };
41480
- }()
41283
+ })();
41284
+ }
41481
41285
  });
41482
41286
  };
41483
41287
  var confirm = function() {
@@ -41499,8 +41303,8 @@
41499
41303
  height: cropperWidth,
41500
41304
  destWidth: cropperWidth * systemInfo.pixelRatio,
41501
41305
  destHeight: cropperWidth * systemInfo.pixelRatio,
41502
- success: /* @__PURE__ */ function() {
41503
- var _ref2 = _async_to_generator(function(res) {
41306
+ success: function(res) {
41307
+ return _async_to_generator(function() {
41504
41308
  var filePath;
41505
41309
  return __generator(this, function(_state) {
41506
41310
  filePath = res.tempFilePath;
@@ -41510,11 +41314,8 @@
41510
41314
  2
41511
41315
  ];
41512
41316
  });
41513
- });
41514
- return function(res) {
41515
- return _ref2.apply(this, arguments);
41516
- };
41517
- }()
41317
+ })();
41318
+ }
41518
41319
  });
41519
41320
  };
41520
41321
  var ToolBar = function() {
@@ -41611,14 +41412,13 @@
41611
41412
  }
41612
41413
  };
41613
41414
  });
41614
- var getNodeWidth = /* @__PURE__ */ function() {
41615
- var _ref2 = _async_to_generator(function(node) {
41616
- var type2, refe;
41617
- var _arguments = arguments;
41415
+ var getNodeWidth = function(node) {
41416
+ var type2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "width";
41417
+ return _async_to_generator(function() {
41418
+ var refe;
41618
41419
  return __generator(this, function(_state) {
41619
41420
  switch (_state.label) {
41620
41421
  case 0:
41621
- type2 = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "width";
41622
41422
  if (!node) return [
41623
41423
  3,
41624
41424
  2
@@ -41640,11 +41440,8 @@
41640
41440
  ];
41641
41441
  }
41642
41442
  });
41643
- });
41644
- return function getNodeWidth2(node) {
41645
- return _ref2.apply(this, arguments);
41646
- };
41647
- }();
41443
+ })();
41444
+ };
41648
41445
  var clearDomTimeout = function() {
41649
41446
  if (domTimer.current) {
41650
41447
  clearTimeout(domTimer.current);
@@ -41652,8 +41449,8 @@
41652
41449
  }
41653
41450
  };
41654
41451
  React.useEffect(function() {
41655
- var init = /* @__PURE__ */ function() {
41656
- var _ref2 = _async_to_generator(function() {
41452
+ var init = function() {
41453
+ return _async_to_generator(function() {
41657
41454
  var _barrageBody_current;
41658
41455
  return __generator(this, function(_state) {
41659
41456
  switch (_state.label) {
@@ -41678,11 +41475,8 @@
41678
41475
  ];
41679
41476
  }
41680
41477
  });
41681
- });
41682
- return function init2() {
41683
- return _ref2.apply(this, arguments);
41684
- };
41685
- }();
41478
+ })();
41479
+ };
41686
41480
  domTimer.current = window.setTimeout(function() {
41687
41481
  init();
41688
41482
  }, 300);
@@ -41704,8 +41498,8 @@
41704
41498
  play();
41705
41499
  }, intervalCache);
41706
41500
  };
41707
- var setStyle = /* @__PURE__ */ function() {
41708
- var _ref2 = _async_to_generator(function(el, currentIndex) {
41501
+ var setStyle = function(el, currentIndex) {
41502
+ return _async_to_generator(function() {
41709
41503
  var refe, width2, height2, elScrollDuration, error;
41710
41504
  return __generator(this, function(_state) {
41711
41505
  switch (_state.label) {
@@ -41757,11 +41551,8 @@
41757
41551
  ];
41758
41552
  }
41759
41553
  });
41760
- });
41761
- return function setStyle2(el, currentIndex) {
41762
- return _ref2.apply(this, arguments);
41763
- };
41764
- }();
41554
+ })();
41555
+ };
41765
41556
  var play = function() {
41766
41557
  if (!loop && index2.current >= list.length) {
41767
41558
  return;