@nutui/nutui-react-taro 2.6.8 → 2.6.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 (212) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/esm/ActionSheet.js +1 -1
  3. package/dist/esm/Address/style/style.css +1 -1
  4. package/dist/esm/Address.js +1 -1
  5. package/dist/esm/Animate/style/style.css +1 -1
  6. package/dist/esm/Animate.js +1 -1
  7. package/dist/esm/AnimatingNumbers.js +1 -1
  8. package/dist/esm/Audio/style/style.css +1 -1
  9. package/dist/esm/Audio.js +1 -1
  10. package/dist/esm/Avatar.js +1 -1
  11. package/dist/esm/AvatarCropper.js +1 -1
  12. package/dist/esm/BackTop.js +1 -1
  13. package/dist/esm/Badge.js +1 -1
  14. package/dist/esm/Barrage.js +1 -1
  15. package/dist/esm/Button.js +1 -1
  16. package/dist/esm/Calendar.js +1 -1
  17. package/dist/esm/CalendarCard.js +1 -1
  18. package/dist/esm/CalendarItem.js +1 -1
  19. package/dist/esm/Card.js +1 -1
  20. package/dist/esm/Cascader/style/style.css +1 -1
  21. package/dist/esm/Cascader.js +1 -1
  22. package/dist/esm/Cell.js +1 -1
  23. package/dist/esm/CellGroup.js +1 -1
  24. package/dist/esm/Checkbox.js +1 -1
  25. package/dist/esm/CheckboxGroup.js +1 -1
  26. package/dist/esm/CircleProgress.js +1 -1
  27. package/dist/esm/Collapse.js +1 -1
  28. package/dist/esm/CollapseItem.js +1 -1
  29. package/dist/esm/ConfigProvider.js +2 -2
  30. package/dist/esm/CountDown.js +1 -1
  31. package/dist/esm/DatePicker.js +1 -1
  32. package/dist/esm/Dialog.js +1 -1
  33. package/dist/esm/Divider.js +1 -1
  34. package/dist/esm/Drag/style/style.css +1 -1
  35. package/dist/esm/Drag.js +1 -1
  36. package/dist/esm/Elevator.js +1 -1
  37. package/dist/esm/Ellipsis.js +1 -1
  38. package/dist/esm/Empty.js +1 -1
  39. package/dist/esm/FixedNav.js +1 -1
  40. package/dist/esm/Form.js +3 -3
  41. package/dist/esm/FormItem.js +1 -1
  42. package/dist/esm/Grid.js +1 -1
  43. package/dist/esm/GridItem.js +1 -1
  44. package/dist/esm/Image.js +1 -1
  45. package/dist/esm/ImagePreview.js +1 -1
  46. package/dist/esm/Indicator.js +1 -1
  47. package/dist/esm/InfiniteLoading.js +1 -1
  48. package/dist/esm/Input.js +1 -1
  49. package/dist/esm/InputNumber.js +1 -1
  50. package/dist/esm/Loading.js +1 -1
  51. package/dist/esm/Menu.js +1 -1
  52. package/dist/esm/MenuItem.js +1 -1
  53. package/dist/esm/NavBar.js +1 -1
  54. package/dist/esm/NoticeBar.js +1 -1
  55. package/dist/esm/NumberKeyboard.js +1 -1
  56. package/dist/esm/Overlay.js +1 -1
  57. package/dist/esm/Pagination/style/style.css +1 -1
  58. package/dist/esm/Pagination.js +1 -1
  59. package/dist/esm/Picker.js +1 -1
  60. package/dist/esm/Popover.js +1 -1
  61. package/dist/esm/Popup.js +1 -1
  62. package/dist/esm/Price.js +1 -1
  63. package/dist/esm/Progress/style/style.css +1 -1
  64. package/dist/esm/Progress.js +1 -1
  65. package/dist/esm/PullToRefresh.js +1 -1
  66. package/dist/esm/Radio.js +1 -1
  67. package/dist/esm/RadioGroup.js +1 -1
  68. package/dist/esm/Range.js +1 -1
  69. package/dist/esm/Rate.js +1 -1
  70. package/dist/esm/SearchBar.js +1 -1
  71. package/dist/esm/ShortPassword/style/style.css +1 -1
  72. package/dist/esm/ShortPassword.js +1 -1
  73. package/dist/esm/SideNavBar.js +1 -1
  74. package/dist/esm/SideNavBarItem.js +1 -1
  75. package/dist/esm/Signature.js +1 -1
  76. package/dist/esm/Skeleton/style/style.css +1 -1
  77. package/dist/esm/Skeleton.js +1 -1
  78. package/dist/esm/Step.js +1 -1
  79. package/dist/esm/Steps.js +1 -1
  80. package/dist/esm/Sticky.js +1 -1
  81. package/dist/esm/SubSideNavBar.js +1 -1
  82. package/dist/esm/Swipe.js +1 -1
  83. package/dist/esm/Swiper.js +3 -3
  84. package/dist/esm/SwiperItem.js +1 -1
  85. package/dist/esm/Switch.js +1 -1
  86. package/dist/esm/TabPane/style/style.css +1 -1
  87. package/dist/esm/Tabbar.js +1 -1
  88. package/dist/esm/TabbarItem.js +1 -1
  89. package/dist/esm/Table.js +1 -1
  90. package/dist/esm/Tabs/style/style.css +1 -1
  91. package/dist/esm/Tabs.js +1 -1
  92. package/dist/esm/TextArea.js +1 -1
  93. package/dist/esm/TimeSelect.js +1 -1
  94. package/dist/esm/Toast.js +1 -1
  95. package/dist/esm/Tour.js +1 -1
  96. package/dist/esm/TrendArrow.js +1 -1
  97. package/dist/esm/Uploader/style/style.css +1 -1
  98. package/dist/esm/Uploader.js +1 -1
  99. package/dist/esm/Video.js +1 -1
  100. package/dist/esm/VirtualList.js +1 -1
  101. package/dist/esm/WaterMark.js +1 -1
  102. package/dist/esm/{actionsheet.taro-CQzUaPSP.js → actionsheet.taro-CJjNsNrH.js} +2 -2
  103. package/dist/esm/{address.taro-D7DEQdo8.js → address.taro-CtVpobLw.js} +4 -4
  104. package/dist/esm/{animate.taro-D-A6ORRZ.js → animate.taro-CQVEyDKL.js} +1 -1
  105. package/dist/esm/{audio.taro-BlniN99d.js → audio.taro-DzSc40G9.js} +4 -4
  106. package/dist/esm/{avatar.taro-Dx8hhvFI.js → avatar.taro-DSL3ErmC.js} +2 -2
  107. package/dist/esm/{avatarcropper.taro-D6yiXZM5.js → avatarcropper.taro-R3OfWq1H.js} +2 -2
  108. package/dist/esm/{backtop.taro-YeEY7i4O.js → backtop.taro-jWlJ1ZWG.js} +1 -1
  109. package/dist/esm/{badge.taro-DK_UFQ5Y.js → badge.taro-BGaxpEYi.js} +1 -1
  110. package/dist/esm/{barrage.taro-DEJGSmY5.js → barrage.taro-CA-9uADD.js} +3 -3
  111. package/dist/esm/{button.taro-KHyp8jxX.js → button.taro-1kEru6r9.js} +1 -1
  112. package/dist/esm/{calendar.taro-B3D8xMB3.js → calendar.taro-DN6uEJw-.js} +4 -4
  113. package/dist/esm/{calendarcard.taro-CHDg3k5D.js → calendarcard.taro-CbvCWF1k.js} +2 -2
  114. package/dist/esm/{calendaritem.taro-DuEKmnsT.js → calendaritem.taro-CiGznRkW.js} +4 -6
  115. package/dist/esm/{card.taro-CC0SLA0p.js → card.taro-DxcIi5qH.js} +2 -2
  116. package/dist/esm/{cascader.taro-BOifacJL.js → cascader.taro-y9_hSUSJ.js} +3 -3
  117. package/dist/esm/{cell.taro-kOgCGbyn.js → cell.taro-CVFlcls2.js} +2 -2
  118. package/dist/esm/{cellgroup.taro-BskBIgql.js → cellgroup.taro-DTLGMR_c.js} +1 -1
  119. package/dist/esm/{checkbox.taro-DOSOI351.js → checkbox.taro-Dc054oRo.js} +3 -4
  120. package/dist/esm/{circleprogress.taro-BuVTD1iY.js → circleprogress.taro-BTRyQG5T.js} +1 -1
  121. package/dist/esm/{collapse.taro-CxDgckv5.js → collapse.taro-wqL6MWZr.js} +1 -1
  122. package/dist/esm/{collapseitem.taro-BY06WWvK.js → collapseitem.taro-DjUx5Nx8.js} +1 -1
  123. package/dist/esm/{configprovider.taro-CyU_tvNJ.js → configprovider.taro-DA4GDDFu.js} +1 -1
  124. package/dist/esm/{countdown.taro-CdEiAwr5.js → countdown.taro-mKXeisK0.js} +2 -2
  125. package/dist/esm/{date-D0pth0qC.js → date-CYwRNlGq.js} +1 -4
  126. package/dist/esm/{datepicker.taro-DzZmcesp.js → datepicker.taro-DTyJrlhD.js} +3 -3
  127. package/dist/esm/{dialog.taro-BNVpTbBx.js → dialog.taro-BW9D2Gsr.js} +4 -4
  128. package/dist/esm/{divider.taro-CijVuCyt.js → divider.taro-BuVR5t2X.js} +1 -1
  129. package/dist/esm/{drag.taro-D6xGnWqk.js → drag.taro-CI7ZFwaM.js} +10 -5
  130. package/dist/esm/{elevator.taro-BzVoaYw6.js → elevator.taro-Bsc8PcT0.js} +1 -1
  131. package/dist/esm/{ellipsis.taro-dxOx8h7S.js → ellipsis.taro-cMTr1Wcw.js} +3 -3
  132. package/dist/esm/{empty.taro-ek_1_FoA.js → empty.taro-CnwDznke.js} +3 -3
  133. package/dist/esm/{fixednav.taro-bmuCveIB.js → fixednav.taro-D3KnhYoI.js} +3 -3
  134. package/dist/esm/{formitem.taro-CAib1i9_.js → formitem.taro-tLWeQ0P5.js} +2 -2
  135. package/dist/esm/{get-rect-by-taro-CSN0TGnD.js → get-rect-by-taro-THaHH07X.js} +1 -1
  136. package/dist/esm/{get-scroll-parent-9ZDWApX2.js → get-scroll-parent-DB1VRg11.js} +1 -0
  137. package/dist/esm/{grid.taro-C4xSMhg4.js → grid.taro-ZJywVaVe.js} +2 -2
  138. package/dist/esm/{griditem.taro-DeXl7qNi.js → griditem.taro-CcWyYchl.js} +2 -2
  139. package/dist/esm/{image.taro-ESa7sdbM.js → image.taro-CyF6ujA7.js} +1 -1
  140. package/dist/esm/{imagepreview.taro-CytOhJpv.js → imagepreview.taro-B7eJN5Hn.js} +3 -3
  141. package/dist/esm/{indicator.taro-Bmae9MdC.js → indicator.taro-k8bxJf86.js} +1 -1
  142. package/dist/esm/{infiniteloading.taro-Bnm-LVHC.js → infiniteloading.taro-g1RbqnSS.js} +2 -2
  143. package/dist/esm/{input.taro-CLMPZ7Wg.js → input.taro-B_B1lJq2.js} +2 -2
  144. package/dist/esm/{inputnumber.taro-CzuJKfES.js → inputnumber.taro-WN5Drnyz.js} +1 -1
  145. package/dist/esm/{loading.taro-BfHqvYhy.js → loading.taro-n_qoNgCW.js} +1 -1
  146. package/dist/esm/{menu.taro-70-DLJx5.js → menu.taro-JDg_-XpO.js} +2 -2
  147. package/dist/esm/{menuitem.taro-jJWuQbQt.js → menuitem.taro-BFfGgTms.js} +3 -3
  148. package/dist/esm/{navbar.taro-COrKuU9p.js → navbar.taro-Dea0-s9Q.js} +2 -2
  149. package/dist/esm/{noticebar.taro-cjVGemZE.js → noticebar.taro-CGUTg60Q.js} +3 -3
  150. package/dist/esm/{numberkeyboard.taro-Cx3igTDN.js → numberkeyboard.taro-BA0iCeGP.js} +3 -3
  151. package/dist/esm/nutui-react.es.js +83 -83
  152. package/dist/esm/{overlay.taro-Bu45p46Z.js → overlay.taro-C2t82CZz.js} +17 -3
  153. package/dist/esm/{pagination.taro-B8hmHNgf.js → pagination.taro-DdLO3OTc.js} +2 -2
  154. package/dist/esm/{picker.taro-va25oy1i.js → picker.taro-CafNRRO5.js} +12 -14
  155. package/dist/esm/{popover.taro-D1Jnx8Xp.js → popover.taro-B_FJgU0z.js} +4 -4
  156. package/dist/esm/{popup.taro-C_nam_bX.js → popup.taro-CR3JyuJV.js} +1 -1
  157. package/dist/esm/{price.taro-DdR5NSIA.js → price.taro-DUW-OR83.js} +1 -1
  158. package/dist/esm/{progress.taro-BFWQ2MvM.js → progress.taro-De9-206U.js} +2 -2
  159. package/dist/esm/{pulltorefresh.taro-Ck1i2xRr.js → pulltorefresh.taro-CZReoWwU.js} +4 -4
  160. package/dist/esm/{radio.taro-CjJgX9o2.js → radio.taro-BNSceequ.js} +1 -1
  161. package/dist/esm/{range.taro-BeVCaZ4r.js → range.taro-D_qsx_j6.js} +3 -3
  162. package/dist/esm/{rate.taro-lOoACxLq.js → rate.taro-CPGkjYYu.js} +1 -1
  163. package/dist/esm/{searchbar.taro-B31m8apz.js → searchbar.taro-C8cg7NeJ.js} +2 -1
  164. package/dist/esm/{shortpassword.taro-Bn5n4rrx.js → shortpassword.taro-DpdtRsQ-.js} +3 -3
  165. package/dist/esm/{sidenavbar.taro-BgKUZ--g.js → sidenavbar.taro-5BmrYFtP.js} +2 -2
  166. package/dist/esm/{sidenavbaritem.taro-L7HbsCLn.js → sidenavbaritem.taro-BKpzXpzG.js} +1 -1
  167. package/dist/esm/{signature.taro-Dq6JO2XJ.js → signature.taro-zgwaJkIE.js} +1 -1
  168. package/dist/esm/{skeleton.taro-C3vp7bWb.js → skeleton.taro-bD6fHZop.js} +2 -2
  169. package/dist/esm/{step.taro-CaRHnSOF.js → step.taro-Cc1dc5Qb.js} +1 -1
  170. package/dist/esm/{steps.taro-BoVGFMxx.js → steps.taro-CUEhZGfy.js} +1 -1
  171. package/dist/esm/{sticky.taro-BtxnArYZ.js → sticky.taro-DZzgkigZ.js} +3 -3
  172. package/dist/esm/{subsidenavbar.taro-ByxYpgfP.js → subsidenavbar.taro-CSU3DhNq.js} +1 -1
  173. package/dist/esm/{swipe.taro-CavqgBEb.js → swipe.taro-yUhne9XU.js} +4 -4
  174. package/dist/esm/{swiperitem.taro-8JXI24f0.js → swiperitem.taro-DeiNSrJV.js} +1 -1
  175. package/dist/esm/{switch.taro-Mq1wBEGz.js → switch.taro-CdBmDo18.js} +1 -1
  176. package/dist/esm/{tabbar.taro-DD5HcQgp.js → tabbar.taro-CXk0zLdz.js} +1 -1
  177. package/dist/esm/{tabbaritem.taro-ptdJI0xv.js → tabbaritem.taro-BZNabTBp.js} +2 -2
  178. package/dist/esm/{table.taro-EwAQJ6jp.js → table.taro-C2XPk7AJ.js} +2 -2
  179. package/dist/esm/{tabs.taro-gcyv8qGG.js → tabs.taro-B2D3AtVV.js} +2 -2
  180. package/dist/esm/{textarea.taro-DLS0EQeJ.js → textarea.taro-DuceTjAx.js} +2 -2
  181. package/dist/esm/{timeselect.taro-DtyB_UVM.js → timeselect.taro-DncKbp3l.js} +3 -3
  182. package/dist/esm/{toast.taro-C-jP8orA.js → toast.taro-CYk6UERn.js} +1 -1
  183. package/dist/esm/{tour.taro-D_J_gGVX.js → tour.taro-SPMrhDA9.js} +2 -2
  184. package/dist/esm/{trendarrow.taro-B2QGvXG0.js → trendarrow.taro-DKx5cGIh.js} +1 -1
  185. package/dist/esm/{tslib.es6-BZ8i9Q6l.js → tslib.es6-iWu3F_1J.js} +2 -3
  186. package/dist/esm/{uploader.taro-CAKO74Mg.js → uploader.taro-E6R-Ow7M.js} +4 -4
  187. package/dist/esm/{video.taro-Bm5bDmIG.js → video.taro-CecLv4sr.js} +1 -1
  188. package/dist/esm/{virtuallist.taro-GLen2Ay5.js → virtuallist.taro-BlPW8ibd.js} +2 -9
  189. package/dist/esm/{watermark.taro-BL5bLewc.js → watermark.taro-BR12yZQt.js} +1 -1
  190. package/dist/locales/base.js +1 -1
  191. package/dist/locales/en-US.js +1 -1
  192. package/dist/locales/id-ID.js +1 -1
  193. package/dist/locales/tr-TR.js +1 -1
  194. package/dist/locales/zh-CN.js +1 -1
  195. package/dist/locales/zh-TW.js +1 -1
  196. package/dist/locales/zh-UG.js +1 -1
  197. package/dist/nutui.react.es.js +173 -297
  198. package/dist/nutui.react.umd.js +173 -297
  199. package/dist/packages/drag/drag.scss +7 -3
  200. package/dist/packages/tabpane/tabpane.scss +1 -1
  201. package/dist/style.css +1 -1
  202. package/dist/styles/variables-jmapp.scss +4 -1
  203. package/dist/styles/variables.scss +4 -1
  204. package/dist/types/packages/configprovider/types.d.ts +1 -1
  205. package/dist/types/packages/dialog/confirm.d.ts +1 -1
  206. package/dist/types/packages/searchbar/searchbar.d.ts +1 -1
  207. package/dist/types/packages/searchbar/searchbar.taro.d.ts +1 -1
  208. package/dist/types/packages/virtuallist/utils.d.ts +2 -2
  209. package/dist/types/utils/interceptor.d.ts +2 -2
  210. package/dist/types/utils/use-ref-state.d.ts +1 -1
  211. package/package.json +1 -1
  212. package/dist/style.mjs +0 -5
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.8 Fri May 31 2024 16:03:24 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.10 Fri Jun 21 2024 18:25:39 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -597,9 +597,6 @@ var freeSelf = typeof self == "object" && self && self.Object === Object && self
597
597
  var root = freeGlobal || freeSelf || Function("return this")();
598
598
  function arrayReduce(array4, iteratee, accumulator, initAccum) {
599
599
  var index = -1, length = array4 ? array4.length : 0;
600
- if (initAccum && length) {
601
- accumulator = array4[++index];
602
- }
603
600
  while (++index < length) {
604
601
  accumulator = iteratee(accumulator, array4[index], index, array4);
605
602
  }
@@ -657,7 +654,7 @@ var kebabCase = createCompounder(function(result, word, index) {
657
654
  });
658
655
  function words(string3, pattern4, guard) {
659
656
  string3 = toString(string3);
660
- pattern4 = guard ? void 0 : pattern4;
657
+ pattern4 = pattern4;
661
658
  if (pattern4 === void 0) {
662
659
  return hasUnicodeWord(string3) ? unicodeWords(string3) : asciiWords(string3);
663
660
  }
@@ -958,7 +955,7 @@ lodash_isequal.exports;
958
955
  function arrayLikeKeys(value, inherited) {
959
956
  var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
960
957
  for (var key in value) {
961
- if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
958
+ if (hasOwnProperty.call(value, key) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
962
959
  (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
963
960
  isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
964
961
  isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
@@ -1569,8 +1566,7 @@ const Image$1 = (props) => {
1569
1566
  ...style
1570
1567
  };
1571
1568
  const renderErrorImg = useCallback(() => {
1572
- if (!isError)
1573
- return null;
1569
+ if (!isError) return null;
1574
1570
  if (typeof error === "boolean" && error === true && !innerLoading) {
1575
1571
  return /* @__PURE__ */ React__default.createElement("div", { className: "nut-img-error" }, /* @__PURE__ */ React__default.createElement(N, null));
1576
1572
  }
@@ -1580,8 +1576,7 @@ const Image$1 = (props) => {
1580
1576
  return null;
1581
1577
  }, [error, isError, innerLoading]);
1582
1578
  const renderLoading = useCallback(() => {
1583
- if (!loading)
1584
- return null;
1579
+ if (!loading) return null;
1585
1580
  if (typeof loading === "boolean" && loading === true && innerLoading) {
1586
1581
  return /* @__PURE__ */ React__default.createElement("div", { className: "nut-img-loading" }, /* @__PURE__ */ React__default.createElement(j$2, null));
1587
1582
  }
@@ -1604,44 +1599,30 @@ const Image$1 = (props) => {
1604
1599
  };
1605
1600
  Image$1.displayName = "NutImage";
1606
1601
  function _extends$1() {
1607
- _extends$1 = Object.assign ? Object.assign.bind() : function(target) {
1608
- for (var i = 1; i < arguments.length; i++) {
1609
- var source = arguments[i];
1610
- for (var key in source) {
1611
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1612
- target[key] = source[key];
1613
- }
1614
- }
1602
+ return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
1603
+ for (var e2 = 1; e2 < arguments.length; e2++) {
1604
+ var t = arguments[e2];
1605
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n2[r] = t[r]);
1615
1606
  }
1616
- return target;
1617
- };
1618
- return _extends$1.apply(this, arguments);
1607
+ return n2;
1608
+ }, _extends$1.apply(null, arguments);
1619
1609
  }
1620
- function _objectWithoutPropertiesLoose(source, excluded) {
1621
- if (source == null)
1622
- return {};
1623
- var target = {};
1624
- var sourceKeys = Object.keys(source);
1625
- var key, i;
1626
- for (i = 0; i < sourceKeys.length; i++) {
1627
- key = sourceKeys[i];
1628
- if (excluded.indexOf(key) >= 0)
1629
- continue;
1630
- target[key] = source[key];
1610
+ function _objectWithoutPropertiesLoose(r, e2) {
1611
+ if (null == r) return {};
1612
+ var t = {};
1613
+ for (var n2 in r) if ({}.hasOwnProperty.call(r, n2)) {
1614
+ if (e2.indexOf(n2) >= 0) continue;
1615
+ t[n2] = r[n2];
1631
1616
  }
1632
- return target;
1617
+ return t;
1633
1618
  }
1634
- function _setPrototypeOf$1(o, p) {
1635
- _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
1636
- o2.__proto__ = p2;
1637
- return o2;
1638
- };
1639
- return _setPrototypeOf$1(o, p);
1619
+ function _setPrototypeOf$1(t, e2) {
1620
+ return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e3) {
1621
+ return t2.__proto__ = e3, t2;
1622
+ }, _setPrototypeOf$1(t, e2);
1640
1623
  }
1641
- function _inheritsLoose$1(subClass, superClass) {
1642
- subClass.prototype = Object.create(superClass.prototype);
1643
- subClass.prototype.constructor = subClass;
1644
- _setPrototypeOf$1(subClass, superClass);
1624
+ function _inheritsLoose$1(t, o) {
1625
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf$1(t, o);
1645
1626
  }
1646
1627
  var propTypes = { exports: {} };
1647
1628
  var reactIs = { exports: {} };
@@ -1656,8 +1637,7 @@ var reactIs_production_min = {};
1656
1637
  */
1657
1638
  var hasRequiredReactIs_production_min;
1658
1639
  function requireReactIs_production_min() {
1659
- if (hasRequiredReactIs_production_min)
1660
- return reactIs_production_min;
1640
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
1661
1641
  hasRequiredReactIs_production_min = 1;
1662
1642
  var b = "function" === typeof Symbol && Symbol.for, c2 = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e2 = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g2 = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k2 = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m2 = b ? Symbol.for("react.concurrent_mode") : 60111, n2 = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
1663
1643
  function z2(a2) {
@@ -1760,8 +1740,7 @@ var reactIs_development = {};
1760
1740
  */
1761
1741
  var hasRequiredReactIs_development;
1762
1742
  function requireReactIs_development() {
1763
- if (hasRequiredReactIs_development)
1764
- return reactIs_development;
1743
+ if (hasRequiredReactIs_development) return reactIs_development;
1765
1744
  hasRequiredReactIs_development = 1;
1766
1745
  if (process.env.NODE_ENV !== "production") {
1767
1746
  (function() {
@@ -1914,8 +1893,7 @@ function requireReactIs_development() {
1914
1893
  }
1915
1894
  var hasRequiredReactIs;
1916
1895
  function requireReactIs() {
1917
- if (hasRequiredReactIs)
1918
- return reactIs.exports;
1896
+ if (hasRequiredReactIs) return reactIs.exports;
1919
1897
  hasRequiredReactIs = 1;
1920
1898
  if (process.env.NODE_ENV === "production") {
1921
1899
  reactIs.exports = requireReactIs_production_min();
@@ -1932,8 +1910,7 @@ object-assign
1932
1910
  var objectAssign;
1933
1911
  var hasRequiredObjectAssign;
1934
1912
  function requireObjectAssign() {
1935
- if (hasRequiredObjectAssign)
1936
- return objectAssign;
1913
+ if (hasRequiredObjectAssign) return objectAssign;
1937
1914
  hasRequiredObjectAssign = 1;
1938
1915
  var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1939
1916
  var hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -2003,8 +1980,7 @@ function requireObjectAssign() {
2003
1980
  var ReactPropTypesSecret_1;
2004
1981
  var hasRequiredReactPropTypesSecret;
2005
1982
  function requireReactPropTypesSecret() {
2006
- if (hasRequiredReactPropTypesSecret)
2007
- return ReactPropTypesSecret_1;
1983
+ if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
2008
1984
  hasRequiredReactPropTypesSecret = 1;
2009
1985
  var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2010
1986
  ReactPropTypesSecret_1 = ReactPropTypesSecret;
@@ -2013,8 +1989,7 @@ function requireReactPropTypesSecret() {
2013
1989
  var has;
2014
1990
  var hasRequiredHas;
2015
1991
  function requireHas() {
2016
- if (hasRequiredHas)
2017
- return has;
1992
+ if (hasRequiredHas) return has;
2018
1993
  hasRequiredHas = 1;
2019
1994
  has = Function.call.bind(Object.prototype.hasOwnProperty);
2020
1995
  return has;
@@ -2022,8 +1997,7 @@ function requireHas() {
2022
1997
  var checkPropTypes_1;
2023
1998
  var hasRequiredCheckPropTypes;
2024
1999
  function requireCheckPropTypes() {
2025
- if (hasRequiredCheckPropTypes)
2026
- return checkPropTypes_1;
2000
+ if (hasRequiredCheckPropTypes) return checkPropTypes_1;
2027
2001
  hasRequiredCheckPropTypes = 1;
2028
2002
  var printWarning = function() {
2029
2003
  };
@@ -2086,8 +2060,7 @@ function requireCheckPropTypes() {
2086
2060
  var factoryWithTypeCheckers;
2087
2061
  var hasRequiredFactoryWithTypeCheckers;
2088
2062
  function requireFactoryWithTypeCheckers() {
2089
- if (hasRequiredFactoryWithTypeCheckers)
2090
- return factoryWithTypeCheckers;
2063
+ if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
2091
2064
  hasRequiredFactoryWithTypeCheckers = 1;
2092
2065
  var ReactIs = requireReactIs();
2093
2066
  var assign = requireObjectAssign();
@@ -2530,8 +2503,7 @@ function requireFactoryWithTypeCheckers() {
2530
2503
  var factoryWithThrowingShims;
2531
2504
  var hasRequiredFactoryWithThrowingShims;
2532
2505
  function requireFactoryWithThrowingShims() {
2533
- if (hasRequiredFactoryWithThrowingShims)
2534
- return factoryWithThrowingShims;
2506
+ if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
2535
2507
  hasRequiredFactoryWithThrowingShims = 1;
2536
2508
  var ReactPropTypesSecret = requireReactPropTypesSecret();
2537
2509
  function emptyFunction() {
@@ -2592,18 +2564,13 @@ if (process.env.NODE_ENV !== "production") {
2592
2564
  var propTypesExports = propTypes.exports;
2593
2565
  const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
2594
2566
  function hasClass(element, className) {
2595
- if (element.classList)
2596
- return !!className && element.classList.contains(className);
2567
+ if (element.classList) return !!className && element.classList.contains(className);
2597
2568
  return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
2598
2569
  }
2599
2570
  function addClass(element, className) {
2600
- if (element.classList)
2601
- element.classList.add(className);
2602
- else if (!hasClass(element, className))
2603
- if (typeof element.className === "string")
2604
- element.className = element.className + " " + className;
2605
- else
2606
- element.setAttribute("class", (element.className && element.className.baseVal || "") + " " + className);
2571
+ if (element.classList) element.classList.add(className);
2572
+ else if (!hasClass(element, className)) if (typeof element.className === "string") element.className = element.className + " " + className;
2573
+ else element.setAttribute("class", (element.className && element.className.baseVal || "") + " " + className);
2607
2574
  }
2608
2575
  function replaceClassName(origClass, classToRemove) {
2609
2576
  return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
@@ -2731,8 +2698,7 @@ var Transition = /* @__PURE__ */ function(_React$Component) {
2731
2698
  if (nextStatus === ENTERING) {
2732
2699
  if (this.props.unmountOnExit || this.props.mountOnEnter) {
2733
2700
  var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
2734
- if (node)
2735
- forceReflow(node);
2701
+ if (node) forceReflow(node);
2736
2702
  }
2737
2703
  this.performEnter(mounting);
2738
2704
  } else {
@@ -2970,8 +2936,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2970
2936
  */
2971
2937
  timeout: function timeout(props) {
2972
2938
  var pt = timeoutsShape;
2973
- if (!props.addEndListener)
2974
- pt = pt.isRequired;
2939
+ if (!props.addEndListener) pt = pt.isRequired;
2975
2940
  for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2976
2941
  args[_key - 1] = arguments[_key];
2977
2942
  }
@@ -3065,7 +3030,6 @@ Transition.EXITED = EXITED;
3065
3030
  Transition.ENTERING = ENTERING;
3066
3031
  Transition.ENTERED = ENTERED;
3067
3032
  Transition.EXITING = EXITING;
3068
- const Transition$1 = Transition;
3069
3033
  var _addClass = function addClass$1(node, classes) {
3070
3034
  return node && classes && classes.split(" ").forEach(function(c2) {
3071
3035
  return addClass(node, c2);
@@ -3164,8 +3128,7 @@ var CSSTransition = /* @__PURE__ */ function(_React$Component) {
3164
3128
  className += " " + doneClassName;
3165
3129
  }
3166
3130
  if (phase === "active") {
3167
- if (node)
3168
- forceReflow(node);
3131
+ if (node) forceReflow(node);
3169
3132
  }
3170
3133
  if (className) {
3171
3134
  this.appliedClasses[type4][phase] = className;
@@ -3189,7 +3152,7 @@ var CSSTransition = /* @__PURE__ */ function(_React$Component) {
3189
3152
  var _this$props = this.props;
3190
3153
  _this$props.classNames;
3191
3154
  var props = _objectWithoutPropertiesLoose(_this$props, ["classNames"]);
3192
- return /* @__PURE__ */ React__default.createElement(Transition$1, _extends$1({}, props, {
3155
+ return /* @__PURE__ */ React__default.createElement(Transition, _extends$1({}, props, {
3193
3156
  onEnter: this.onEnter,
3194
3157
  onEntered: this.onEntered,
3195
3158
  onEntering: this.onEntering,
@@ -3203,7 +3166,7 @@ var CSSTransition = /* @__PURE__ */ function(_React$Component) {
3203
3166
  CSSTransition.defaultProps = {
3204
3167
  classNames: ""
3205
3168
  };
3206
- CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$1({}, Transition$1.propTypes, {
3169
+ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$1({}, Transition.propTypes, {
3207
3170
  /**
3208
3171
  * The animation classNames applied to the component as it appears, enters,
3209
3172
  * exits or has finished the transition. A single name can be provided, which
@@ -3327,7 +3290,6 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$1({},
3327
3290
  */
3328
3291
  onExited: PropTypes.func
3329
3292
  }) : {};
3330
- const CSSTransition$1 = CSSTransition;
3331
3293
  const MIN_DISTANCE = 10;
3332
3294
  function getDirection(x, y) {
3333
3295
  if (x > y && x > MIN_DISTANCE) {
@@ -3423,6 +3385,19 @@ function getScrollParent(el, root2 = defaultRoot) {
3423
3385
  }
3424
3386
  return root2;
3425
3387
  }
3388
+ let passiveSupported = false;
3389
+ if (canUseDom) {
3390
+ try {
3391
+ const opts = Object.defineProperty({}, "passive", {
3392
+ get() {
3393
+ passiveSupported = true;
3394
+ }
3395
+ });
3396
+ window.addEventListener("test-passive-supported", null, opts);
3397
+ } catch (e2) {
3398
+ console.log(e2);
3399
+ }
3400
+ }
3426
3401
  let totalLockCount = 0;
3427
3402
  const BODY_LOCK_CLASS = "nut-overflow-hidden";
3428
3403
  function getScrollableElement(el) {
@@ -3444,8 +3419,7 @@ function useLockScroll(rootRef, shouldLock) {
3444
3419
  event.target,
3445
3420
  rootRef.current
3446
3421
  );
3447
- if (!el)
3448
- return;
3422
+ if (!el) return;
3449
3423
  if (shouldLock === "strict") {
3450
3424
  const scrollableParent = getScrollableElement(event.target);
3451
3425
  if (scrollableParent === document.body || scrollableParent === document.documentElement) {
@@ -3471,7 +3445,7 @@ function useLockScroll(rootRef, shouldLock) {
3471
3445
  document.addEventListener(
3472
3446
  "touchmove",
3473
3447
  onTouchMove,
3474
- false
3448
+ passiveSupported ? { passive: false } : false
3475
3449
  );
3476
3450
  if (!totalLockCount) {
3477
3451
  document.body.classList.add(BODY_LOCK_CLASS);
@@ -3558,7 +3532,7 @@ const Overlay = (props) => {
3558
3532
  afterClose && afterClose();
3559
3533
  };
3560
3534
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
3561
- CSSTransition$1,
3535
+ CSSTransition,
3562
3536
  {
3563
3537
  nodeRef,
3564
3538
  classNames: `${classPrefix2}-slide`,
@@ -4005,10 +3979,8 @@ const Sticky = (props) => {
4005
3979
  };
4006
3980
  }
4007
3981
  const style2 = {};
4008
- if (rootRect.height)
4009
- style2.height = rootRect.height;
4010
- if (rootRect.width)
4011
- style2.width = rootRect.width;
3982
+ if (rootRect.height) style2.height = rootRect.height;
3983
+ if (rootRect.width) style2.width = rootRect.width;
4012
3984
  style2.transform = `translate3d(0, ${transform}px, 0)`;
4013
3985
  style2[position] = threshold;
4014
3986
  style2.zIndex = zIndex;
@@ -4212,8 +4184,7 @@ const Elevator = (props) => {
4212
4184
  const query = createSelectorQuery();
4213
4185
  query.selectAll(`.${className} .nut-elevator-item-${i}`).boundingClientRect();
4214
4186
  query.exec((res) => {
4215
- if (res[0][0])
4216
- height2 += res[0][0].height;
4187
+ if (res[0][0]) height2 += res[0][0].height;
4217
4188
  state.current.listHeight.push(height2);
4218
4189
  });
4219
4190
  }
@@ -4288,8 +4259,7 @@ const Elevator = (props) => {
4288
4259
  if (sticky && scrollTop2 !== scrollY) {
4289
4260
  setScrollY(Math.floor(scrollTop2) > 0 ? 1 : 0);
4290
4261
  }
4291
- if (scrolling.current)
4292
- return;
4262
+ if (scrolling.current) return;
4293
4263
  for (let i = 0; i < listHeight.length - 1; i++) {
4294
4264
  const height1 = listHeight[i];
4295
4265
  const height2 = listHeight[i + 1];
@@ -4719,7 +4689,7 @@ const Popup = (props) => {
4719
4689
  };
4720
4690
  const renderPop = () => {
4721
4691
  return /* @__PURE__ */ React__default.createElement(
4722
- CSSTransition$1,
4692
+ CSSTransition,
4723
4693
  {
4724
4694
  classNames: transitionName,
4725
4695
  mountOnEnter: true,
@@ -4961,24 +4931,20 @@ const Badge = (props) => {
4961
4931
  [`${classPrefix2}-${fill}`]: fill === "outline"
4962
4932
  });
4963
4933
  function content() {
4964
- if (dot || typeof value === "object" || value === 0)
4965
- return null;
4934
+ if (dot || typeof value === "object" || value === 0) return null;
4966
4935
  if (typeof value === "number" && typeof max === "number") {
4967
4936
  return max < value ? `${max}+` : `${value}`;
4968
4937
  }
4969
4938
  return value;
4970
4939
  }
4971
4940
  function isIcon() {
4972
- if (typeof value === "object" && value)
4973
- return value;
4941
+ if (typeof value === "object" && value) return value;
4974
4942
  }
4975
4943
  function isNumber() {
4976
- if (typeof value === "number" && value)
4977
- return value;
4944
+ if (typeof value === "number" && value) return value;
4978
4945
  }
4979
4946
  function isString() {
4980
- if (typeof value === "string" && value)
4981
- return value;
4947
+ if (typeof value === "string" && value) return value;
4982
4948
  }
4983
4949
  const contentClasses = classNames(
4984
4950
  { [`${classPrefix2}-dot`]: dot },
@@ -5131,8 +5097,7 @@ const Tabbar = (props) => {
5131
5097
  }
5132
5098
  },
5133
5099
  React__default.Children.map(children, (child, index) => {
5134
- if (!React__default.isValidElement(child))
5135
- return null;
5100
+ if (!React__default.isValidElement(child)) return null;
5136
5101
  return React__default.cloneElement(child, { ...child.props, index });
5137
5102
  })
5138
5103
  )),
@@ -5320,8 +5285,7 @@ const Tabs = (props) => {
5320
5285
  navRectRef.current = navRect;
5321
5286
  titleRectRef.current = titleRects;
5322
5287
  const titleRect = titleRectRef.current[index];
5323
- if (!titleRect)
5324
- return;
5288
+ if (!titleRect) return;
5325
5289
  let to = 0;
5326
5290
  if (direction === "vertical") {
5327
5291
  const top = titleRects.slice(0, index).reduce((prev, curr) => prev + curr.height, 0);
@@ -6347,9 +6311,6 @@ const getCurrMonthData = (type4, year, month) => {
6347
6311
  };
6348
6312
  const getDaysStatus = (type4, year, month) => {
6349
6313
  let days = Utils.getMonthDays(`${year}`, `${month}`);
6350
- if (type4 === "prev" && days >= 7) {
6351
- days -= 7;
6352
- }
6353
6314
  return Array.from(Array(days), (v, k2) => {
6354
6315
  return {
6355
6316
  day: k2 + 1,
@@ -6368,7 +6329,7 @@ const getPreMonthDates = (type4, year, month, firstDayOfWeek) => {
6368
6329
  }
6369
6330
  let days = Utils.getMonthPreDay(+year, +month);
6370
6331
  days -= firstDayOfWeek;
6371
- if (type4 === "prev" && days >= 7) {
6332
+ if (days >= 7) {
6372
6333
  days -= 7;
6373
6334
  }
6374
6335
  const preDates = Utils.getMonthDays(`${preYear}`, `${preMonth}`);
@@ -6545,7 +6506,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
6545
6506
  cssHeight,
6546
6507
  scrollTop: scrollTop2
6547
6508
  };
6548
- if (type22 === "next") {
6509
+ {
6549
6510
  if (!endDates || !Utils.compareDate(
6550
6511
  `${endDates[0]}/${endDates[1]}/${Utils.getMonthDays(
6551
6512
  endDates[0],
@@ -6555,11 +6516,6 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
6555
6516
  )) {
6556
6517
  monthData.push(monthInfo);
6557
6518
  }
6558
- } else if (!startDates || !Utils.compareDate(
6559
- `${curData[0]}/${curData[1]}/${curData[2]}`,
6560
- `${startDates[0]}/${startDates[1]}/01`
6561
- )) {
6562
- monthData.unshift(monthInfo);
6563
6519
  }
6564
6520
  date4 = getCurrMonthData("next", y, m2);
6565
6521
  } while (i++ < monthNum);
@@ -6568,8 +6524,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
6568
6524
  const setReachedYearMonthInfo = (current) => {
6569
6525
  const currentMonthsData = monthsData[current];
6570
6526
  const [year, month] = currentMonthsData.curData;
6571
- if (currentMonthsData.title === yearMonthTitle)
6572
- return;
6527
+ if (currentMonthsData.title === yearMonthTitle) return;
6573
6528
  onPageChange && onPageChange([year, month, `${year}-${month}`]);
6574
6529
  setYearMonthTitle(currentMonthsData.title);
6575
6530
  };
@@ -6760,7 +6715,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
6760
6715
  };
6761
6716
  const initData = () => {
6762
6717
  const monthNum = getMonthNum();
6763
- getMonthData(startDates, monthNum, "next");
6718
+ getMonthData(startDates, monthNum);
6764
6719
  const current = renderCurrentDate();
6765
6720
  setDefaultRange(monthNum, current);
6766
6721
  requestAniFrameFunc(current, monthNum);
@@ -6820,8 +6775,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
6820
6775
  const scrollTop2 = e2.target.scrollTop;
6821
6776
  Taro.getEnv() === "WEB" && setScrollTop(scrollTop2);
6822
6777
  let current = Math.floor(scrollTop2 / avgHeight);
6823
- if (!monthsData[current + 1])
6824
- return;
6778
+ if (!monthsData[current + 1]) return;
6825
6779
  const nextTop = monthsData[current + 1].scrollTop;
6826
6780
  const nextHeight = monthsData[current + 1].cssHeight;
6827
6781
  if (current === 0) {
@@ -7567,7 +7521,6 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
7567
7521
  });
7568
7522
  CalendarCard.displayName = "NutCalendarCard";
7569
7523
  const CheckboxGroupContext = createContext(null);
7570
- const Context$1 = CheckboxGroupContext;
7571
7524
  const defaultProps$10 = {
7572
7525
  max: void 0,
7573
7526
  min: void 0,
@@ -7645,7 +7598,7 @@ const CheckboxGroup = React__default.forwardRef(
7645
7598
  });
7646
7599
  }, [options, max, min]);
7647
7600
  return /* @__PURE__ */ React__default.createElement(
7648
- Context$1.Provider,
7601
+ CheckboxGroupContext.Provider,
7649
7602
  {
7650
7603
  value: {
7651
7604
  labelPosition: labelPosition || "right",
@@ -7725,7 +7678,7 @@ const Checkbox = (props) => {
7725
7678
  ...others
7726
7679
  } = props;
7727
7680
  let { labelPosition, ...rest } = others;
7728
- const ctx = useContext(Context$1);
7681
+ const ctx = useContext(CheckboxGroupContext);
7729
7682
  let [innerChecked, setChecked] = usePropsValue({
7730
7683
  value: checked,
7731
7684
  defaultValue: defaultChecked,
@@ -7747,12 +7700,9 @@ const Checkbox = (props) => {
7747
7700
  innerDisabled = ctx.disabled !== void 0 ? ctx.disabled : innerDisabled;
7748
7701
  innerChecked = ctx.value.includes(value);
7749
7702
  setChecked = (checked2) => {
7750
- if (ctx.disabled)
7751
- return;
7752
- if (checked2)
7753
- ctx.check(value);
7754
- if (!checked2)
7755
- ctx.uncheck(value);
7703
+ if (ctx.disabled) return;
7704
+ if (checked2) ctx.check(value);
7705
+ if (!checked2) ctx.uncheck(value);
7756
7706
  };
7757
7707
  }
7758
7708
  const renderIcon = () => {
@@ -7804,8 +7754,7 @@ const Checkbox = (props) => {
7804
7754
  );
7805
7755
  };
7806
7756
  const handleClick = () => {
7807
- if (disabled)
7808
- return;
7757
+ if (disabled) return;
7809
7758
  const latestChecked = !innerChecked;
7810
7759
  setChecked(latestChecked);
7811
7760
  };
@@ -7933,14 +7882,13 @@ const InternalPickerPanel = (props, ref) => {
7933
7882
  touch.move(event);
7934
7883
  if (touch.isVertical) {
7935
7884
  moving.current = true;
7936
- preventDefault2(event, true);
7885
+ preventDefault2(event);
7937
7886
  }
7938
7887
  const move = touch.deltaY.current - startY;
7939
7888
  setMove(move);
7940
7889
  };
7941
7890
  const touchEnd = () => {
7942
- if (!moving.current)
7943
- return;
7891
+ if (!moving.current) return;
7944
7892
  const move = touch.deltaY.current - startY;
7945
7893
  const moveTime = Date.now() - startTime;
7946
7894
  if (moveTime <= INERTIA_TIME && Math.abs(move) > INERTIA_DISTANCE) {
@@ -7960,7 +7908,7 @@ const InternalPickerPanel = (props, ref) => {
7960
7908
  return nDistance;
7961
7909
  };
7962
7910
  const modifyStatus = (type4, val) => {
7963
- const value = val || defaultValue;
7911
+ const value = defaultValue;
7964
7912
  let index = -1;
7965
7913
  if (value) {
7966
7914
  options.some((item, idx) => {
@@ -7979,7 +7927,6 @@ const InternalPickerPanel = (props, ref) => {
7979
7927
  }
7980
7928
  setCurrIndex(index === -1 ? 1 : index + 1);
7981
7929
  const move = index === -1 ? 0 : index * lineSpacing.current;
7982
- type4 && setChooseValue(-move);
7983
7930
  setMove(-move);
7984
7931
  };
7985
7932
  const stopMomentum = () => {
@@ -7989,7 +7936,7 @@ const InternalPickerPanel = (props, ref) => {
7989
7936
  };
7990
7937
  const preventDefault2 = (event, isStopPropagation) => {
7991
7938
  event.preventDefault();
7992
- if (isStopPropagation) {
7939
+ {
7993
7940
  event.stopPropagation();
7994
7941
  }
7995
7942
  };
@@ -8012,7 +7959,7 @@ const InternalPickerPanel = (props, ref) => {
8012
7959
  useEffect(() => {
8013
7960
  setScrollDistance(0);
8014
7961
  transformY.current = 0;
8015
- modifyStatus(false);
7962
+ modifyStatus();
8016
7963
  return () => {
8017
7964
  clearTimeout(timer);
8018
7965
  };
@@ -8029,7 +7976,7 @@ const InternalPickerPanel = (props, ref) => {
8029
7976
  moving: moving.current
8030
7977
  }));
8031
7978
  useEffect(() => {
8032
- const eventOptions = false;
7979
+ const eventOptions = passiveSupported ? { passive: false, once: true } : false;
8033
7980
  const element = pickerPanelRef.current;
8034
7981
  element.addEventListener("touchstart", touchStart, eventOptions);
8035
7982
  element.addEventListener("touchmove", touchMove, eventOptions);
@@ -8080,13 +8027,11 @@ const InternalPickerPanel = (props, ref) => {
8080
8027
  ), /* @__PURE__ */ React__default.createElement("div", { className: "nut-picker-mask" }), /* @__PURE__ */ React__default.createElement("div", { className: "nut-picker-indicator", ref: listRef }));
8081
8028
  };
8082
8029
  const PickerPanel = React__default.forwardRef(InternalPickerPanel);
8083
- const PickerPanel$1 = PickerPanel;
8084
8030
  function useRefs() {
8085
8031
  const refs = React__default.useRef([]);
8086
8032
  const setRefs = React__default.useCallback(
8087
8033
  (index) => (el) => {
8088
- if (el)
8089
- refs.current[index] = el;
8034
+ if (el) refs.current[index] = el;
8090
8035
  },
8091
8036
  []
8092
8037
  );
@@ -8175,8 +8120,7 @@ const InternalPicker = (props, ref) => {
8175
8120
  const options2 = columnOptions.children;
8176
8121
  const value = values[columnIndex2];
8177
8122
  let index = options2.findIndex((columnItem) => columnItem.value === value);
8178
- if (index === -1)
8179
- index = 0;
8123
+ if (index === -1) index = 0;
8180
8124
  columnOptions = columnOptions.children[index];
8181
8125
  columnIndex2++;
8182
8126
  formatted.push(options2);
@@ -8309,8 +8253,7 @@ const InternalPicker = (props, ref) => {
8309
8253
  const confirm = () => {
8310
8254
  let moving = false;
8311
8255
  refs.forEach((ref2) => {
8312
- if (ref2.moving)
8313
- moving = true;
8256
+ if (ref2.moving) moving = true;
8314
8257
  ref2.stopMomentum();
8315
8258
  });
8316
8259
  if (moving) {
@@ -8388,7 +8331,7 @@ const InternalPicker = (props, ref) => {
8388
8331
  },
8389
8332
  /* @__PURE__ */ React__default.createElement(View, { className: classes, style, ...rest, catchMove: true }, renderTitleBar(), typeof children !== "function" && children, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-panel`, ref: pickerRef }, Taro.getEnv() === "WEB" ? columnsList == null ? void 0 : columnsList.map((item, index) => {
8390
8333
  return /* @__PURE__ */ React__default.createElement(
8391
- PickerPanel$1,
8334
+ PickerPanel,
8392
8335
  {
8393
8336
  ref: setRefs(index),
8394
8337
  defaultValue: innerValue == null ? void 0 : innerValue[index],
@@ -8429,7 +8372,6 @@ const InternalPicker = (props, ref) => {
8429
8372
  ));
8430
8373
  };
8431
8374
  const Picker = React__default.forwardRef(InternalPicker);
8432
- const Picker$1 = Picker;
8433
8375
  const isDate = (val) => {
8434
8376
  return Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
8435
8377
  };
@@ -8543,8 +8485,7 @@ const DatePicker = (props) => {
8543
8485
  };
8544
8486
  const ranges = () => {
8545
8487
  const selected = new Date(selectedDate);
8546
- if (!selected)
8547
- return [];
8488
+ if (!selected) return [];
8548
8489
  const { maxYear, maxDate, maxMonth, maxHour, maxMinute, maxSeconds } = getBoundary("max", selected);
8549
8490
  const { minYear, minDate, minMonth, minHour, minMinute, minSeconds } = getBoundary("min", selected);
8550
8491
  const result = [
@@ -8703,8 +8644,7 @@ const DatePicker = (props) => {
8703
8644
  };
8704
8645
  const getDateIndex = (type22) => {
8705
8646
  const date4 = new Date(selectedDate);
8706
- if (!selectedDate)
8707
- return 0;
8647
+ if (!selectedDate) return 0;
8708
8648
  if (type22 === "year") {
8709
8649
  return date4.getFullYear();
8710
8650
  }
@@ -8749,7 +8689,7 @@ const DatePicker = (props) => {
8749
8689
  ...rest
8750
8690
  },
8751
8691
  pickerOptions.length && /* @__PURE__ */ React__default.createElement(
8752
- Picker$1,
8692
+ Picker,
8753
8693
  {
8754
8694
  ...pickerProps,
8755
8695
  title,
@@ -8801,12 +8741,9 @@ function _setPrototypeOf(o, p) {
8801
8741
  return _setPrototypeOf(o, p);
8802
8742
  }
8803
8743
  function _isNativeReflectConstruct() {
8804
- if (typeof Reflect === "undefined" || !Reflect.construct)
8805
- return false;
8806
- if (Reflect.construct.sham)
8807
- return false;
8808
- if (typeof Proxy === "function")
8809
- return true;
8744
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
8745
+ if (Reflect.construct.sham) return false;
8746
+ if (typeof Proxy === "function") return true;
8810
8747
  try {
8811
8748
  Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
8812
8749
  }));
@@ -8824,8 +8761,7 @@ function _construct(Parent, args, Class) {
8824
8761
  a2.push.apply(a2, args2);
8825
8762
  var Constructor = Function.bind.apply(Parent2, a2);
8826
8763
  var instance = new Constructor();
8827
- if (Class2)
8828
- _setPrototypeOf(instance, Class2.prototype);
8764
+ if (Class2) _setPrototypeOf(instance, Class2.prototype);
8829
8765
  return instance;
8830
8766
  };
8831
8767
  }
@@ -8837,14 +8773,12 @@ function _isNativeFunction(fn) {
8837
8773
  function _wrapNativeSuper(Class) {
8838
8774
  var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
8839
8775
  _wrapNativeSuper = function _wrapNativeSuper2(Class2) {
8840
- if (Class2 === null || !_isNativeFunction(Class2))
8841
- return Class2;
8776
+ if (Class2 === null || !_isNativeFunction(Class2)) return Class2;
8842
8777
  if (typeof Class2 !== "function") {
8843
8778
  throw new TypeError("Super expression must either be null or a function");
8844
8779
  }
8845
8780
  if (typeof _cache !== "undefined") {
8846
- if (_cache.has(Class2))
8847
- return _cache.get(Class2);
8781
+ if (_cache.has(Class2)) return _cache.get(Class2);
8848
8782
  _cache.set(Class2, Wrapper);
8849
8783
  }
8850
8784
  function Wrapper() {
@@ -8877,8 +8811,7 @@ if (typeof process !== "undefined" && process.env && process.env.NODE_ENV !== "p
8877
8811
  };
8878
8812
  }
8879
8813
  function convertFieldsError(errors) {
8880
- if (!errors || !errors.length)
8881
- return null;
8814
+ if (!errors || !errors.length) return null;
8882
8815
  var fields = {};
8883
8816
  errors.forEach(function(error) {
8884
8817
  var field = error.field;
@@ -10081,7 +10014,7 @@ const Form = React__default.forwardRef(
10081
10014
  resetFields();
10082
10015
  }
10083
10016
  },
10084
- /* @__PURE__ */ React__default.createElement(Cell.Group, { divider }, /* @__PURE__ */ React__default.createElement(Context.Provider, { value: formInstance }, children), footer ? /* @__PURE__ */ React__default.createElement(Cell, null, footer) : null)
10017
+ /* @__PURE__ */ React__default.createElement(Cell.Group, { divider }, /* @__PURE__ */ React__default.createElement(Context.Provider, { value: formInstance }, children), footer ? /* @__PURE__ */ React__default.createElement(Cell, { className: `${classPrefix2}-footer` }, footer) : null)
10085
10018
  );
10086
10019
  }
10087
10020
  );
@@ -10556,10 +10489,8 @@ const InputNumber = (props) => {
10556
10489
  return res;
10557
10490
  };
10558
10491
  const format2 = (value2) => {
10559
- if (value2 === null)
10560
- return "";
10561
- if (typeof value2 === "string")
10562
- value2 = parseFloat(value2);
10492
+ if (value2 === null) return "";
10493
+ if (typeof value2 === "string") value2 = parseFloat(value2);
10563
10494
  const fixedValue = bound2(value2, Number(min), Number(max));
10564
10495
  if (formatter) {
10565
10496
  return formatter(fixedValue);
@@ -10603,22 +10534,18 @@ const InputNumber = (props) => {
10603
10534
  }
10604
10535
  };
10605
10536
  const handleReduce = (e2) => {
10606
- if (disabled)
10607
- return;
10537
+ if (disabled) return;
10608
10538
  onMinus == null ? void 0 : onMinus(e2);
10609
10539
  update(true, e2);
10610
10540
  };
10611
10541
  const handlePlus = (e2) => {
10612
- if (disabled)
10613
- return;
10542
+ if (disabled) return;
10614
10543
  onPlus == null ? void 0 : onPlus(e2);
10615
10544
  update(false, e2);
10616
10545
  };
10617
10546
  const parseValue = (text) => {
10618
- if (text === "")
10619
- return null;
10620
- if (text === "-")
10621
- return null;
10547
+ if (text === "") return null;
10548
+ if (text === "-") return null;
10622
10549
  return text;
10623
10550
  };
10624
10551
  const handleInputChange = (e2) => {
@@ -10735,8 +10662,7 @@ const MenuItem = forwardRef((props, ref) => {
10735
10662
  }, [showPopup]);
10736
10663
  const windowHeight = useMemo$1(() => getSystemInfoSync().windowHeight, []);
10737
10664
  const updateItemOffset = useCallback(() => {
10738
- if (!parent.lockScroll)
10739
- return;
10665
+ if (!parent.lockScroll) return;
10740
10666
  const p = parent.menuRef.current;
10741
10667
  getRectByTaro(p).then((rect) => {
10742
10668
  if (rect) {
@@ -10785,8 +10711,7 @@ const MenuItem = forwardRef((props, ref) => {
10785
10711
  }, 100);
10786
10712
  };
10787
10713
  const isShow = () => {
10788
- if (showPopup)
10789
- return {};
10714
+ if (showPopup) return {};
10790
10715
  return { display: "none" };
10791
10716
  };
10792
10717
  const getPosition = () => {
@@ -10850,7 +10775,7 @@ const MenuItem = forwardRef((props, ref) => {
10850
10775
  }
10851
10776
  },
10852
10777
  /* @__PURE__ */ React__default.createElement(
10853
- CSSTransition$1,
10778
+ CSSTransition,
10854
10779
  {
10855
10780
  in: showPopup,
10856
10781
  timeout: 100,
@@ -10992,10 +10917,8 @@ const Menu = (props) => {
10992
10917
  (option) => option.value === (value !== void 0 ? value : defaultValue)
10993
10918
  );
10994
10919
  const finallyTitle = () => {
10995
- if (title)
10996
- return title;
10997
- if (menuItemTitle && menuItemTitle[index])
10998
- return menuItemTitle[index];
10920
+ if (title) return title;
10921
+ if (menuItemTitle && menuItemTitle[index]) return menuItemTitle[index];
10999
10922
  if (selected && selected.length && selected[0].text)
11000
10923
  return selected[0].text;
11001
10924
  return "";
@@ -11014,8 +10937,7 @@ const Menu = (props) => {
11014
10937
  style: { color: showMenuItem[index] ? activeColor : "" },
11015
10938
  key: index,
11016
10939
  onClick: () => {
11017
- if ((!options || !options.length) && !child.props.children)
11018
- return;
10940
+ if ((!options || !options.length) && !child.props.children) return;
11019
10941
  !disabled && toggleMenuItem(index);
11020
10942
  }
11021
10943
  },
@@ -11083,8 +11005,7 @@ const NumberKeyboard = (props) => {
11083
11005
  { id: "0", type: "num" },
11084
11006
  { id: "delete", type: "delete" }
11085
11007
  ];
11086
- if (!custom)
11087
- return customKeys;
11008
+ if (!custom) return customKeys;
11088
11009
  if (custom.length > 0) {
11089
11010
  customKeys[0] = { id: custom[0], type: "custom" };
11090
11011
  }
@@ -11376,8 +11297,7 @@ const Radio = (props) => {
11376
11297
  return renderByShape(context && context.shape ? context.shape : shape);
11377
11298
  };
11378
11299
  const handleClick = (e2) => {
11379
- if (disabled || checkedStatement)
11380
- return;
11300
+ if (disabled || checkedStatement) return;
11381
11301
  setCheckedStatement(!checkedStatement);
11382
11302
  };
11383
11303
  return /* @__PURE__ */ React__default.createElement(
@@ -11621,8 +11541,7 @@ const Range = (props) => {
11621
11541
  touch.move(event);
11622
11542
  setDragStatus("draging");
11623
11543
  const rect = await getRectByTaro(root2.current);
11624
- if (!rect)
11625
- return;
11544
+ if (!rect) return;
11626
11545
  let delta = touch.deltaX.current;
11627
11546
  let total = rect.width;
11628
11547
  let diff = delta / total * scope();
@@ -11768,8 +11687,7 @@ const Rate = (props) => {
11768
11687
  const onClick = (e2, index) => {
11769
11688
  e2.preventDefault();
11770
11689
  e2.stopPropagation();
11771
- if (disabled || readOnly)
11772
- return;
11690
+ if (disabled || readOnly) return;
11773
11691
  let value2 = 0;
11774
11692
  if (!(index === 1 && score === index)) {
11775
11693
  value2 = index;
@@ -11949,8 +11867,7 @@ const SearchBar = (props) => {
11949
11867
  searchSelf && searchSelf.focus();
11950
11868
  };
11951
11869
  const change = (event) => {
11952
- if (value === event.target.value)
11953
- return;
11870
+ if (value === event.target.value) return;
11954
11871
  onChange && (onChange == null ? void 0 : onChange(event.target.value, event));
11955
11872
  setValue(event.target.value);
11956
11873
  event.target.value === "" && forceFocus();
@@ -11995,23 +11912,19 @@ const SearchBar = (props) => {
11995
11912
  onInputClick && onInputClick(e2);
11996
11913
  };
11997
11914
  const renderLeftIn = () => {
11998
- if (!leftIn)
11999
- return null;
11915
+ if (!leftIn) return null;
12000
11916
  return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-leftin ${classPrefix2}-icon` }, leftIn);
12001
11917
  };
12002
11918
  const renderLeft = () => {
12003
- if (!backable && !left2)
12004
- return null;
11919
+ if (!backable && !left2) return null;
12005
11920
  return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-left` }, backable ? /* @__PURE__ */ React__default.createElement(g$5, { size: "16" }) : left2);
12006
11921
  };
12007
11922
  const renderRightIn = () => {
12008
- if (!rightIn)
12009
- return null;
11923
+ if (!rightIn) return null;
12010
11924
  return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-rightin ${classPrefix2}-icon` }, rightIn);
12011
11925
  };
12012
11926
  const renderRight = () => {
12013
- if (!right2)
12014
- return null;
11927
+ if (!right2) return null;
12015
11928
  return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right` }, right2);
12016
11929
  };
12017
11930
  const handleClear = () => {
@@ -12030,6 +11943,7 @@ const SearchBar = (props) => {
12030
11943
  }
12031
11944
  setValue("");
12032
11945
  forceFocus();
11946
+ onChange && (onChange == null ? void 0 : onChange(""));
12033
11947
  onClear && onClear(event);
12034
11948
  };
12035
11949
  const onKeypress = (e2) => {
@@ -12364,8 +12278,7 @@ const Switch = (props) => {
12364
12278
  return `${classPrefix2} ${value ? "nut-switch-open" : "nut-switch-close"} ${disabled ? `${classPrefix2}-disabled` : ""} ${`${classPrefix2}-base`} ${className}`;
12365
12279
  };
12366
12280
  const onClick = (event) => {
12367
- if (disabled)
12368
- return;
12281
+ if (disabled) return;
12369
12282
  onChange && onChange(!value, event);
12370
12283
  setValue(!value);
12371
12284
  };
@@ -12435,17 +12348,13 @@ const TextArea = (props) => {
12435
12348
  }
12436
12349
  };
12437
12350
  const handleFocus = (event) => {
12438
- if (disabled)
12439
- return;
12440
- if (readOnly)
12441
- return;
12351
+ if (disabled) return;
12352
+ if (readOnly) return;
12442
12353
  onFocus && onFocus(event);
12443
12354
  };
12444
12355
  const handleBlur = (event) => {
12445
- if (disabled)
12446
- return;
12447
- if (readOnly)
12448
- return;
12356
+ if (disabled) return;
12357
+ if (readOnly) return;
12449
12358
  onBlur && onBlur(event);
12450
12359
  };
12451
12360
  return /* @__PURE__ */ React__default.createElement(
@@ -13473,14 +13382,11 @@ const BaseDialog = (props) => {
13473
13382
  );
13474
13383
  const refObject = useLockScrollTaro(!!(visible && lockScroll));
13475
13384
  const renderFooter = () => {
13476
- if (footer === null)
13477
- return "";
13385
+ if (footer === null) return "";
13478
13386
  const handleCancel = (e2) => {
13479
13387
  e2.stopPropagation();
13480
- if (!(beforeCancel == null ? void 0 : beforeCancel()))
13481
- return;
13482
- if (!(beforeClose == null ? void 0 : beforeClose()))
13483
- return;
13388
+ if (!(beforeCancel == null ? void 0 : beforeCancel())) return;
13389
+ if (!(beforeClose == null ? void 0 : beforeClose())) return;
13484
13390
  onClose == null ? void 0 : onClose();
13485
13391
  onCancel == null ? void 0 : onCancel();
13486
13392
  };
@@ -13518,13 +13424,10 @@ const BaseDialog = (props) => {
13518
13424
  ));
13519
13425
  };
13520
13426
  const renderCloseIcon = () => {
13521
- if (!closeIcon)
13522
- return null;
13427
+ if (!closeIcon) return null;
13523
13428
  const handleCancel = () => {
13524
- if (!(beforeCancel == null ? void 0 : beforeCancel()))
13525
- return;
13526
- if (!(beforeClose == null ? void 0 : beforeClose()))
13527
- return;
13429
+ if (!(beforeCancel == null ? void 0 : beforeCancel())) return;
13430
+ if (!(beforeClose == null ? void 0 : beforeClose())) return;
13528
13431
  onClose == null ? void 0 : onClose();
13529
13432
  onCancel == null ? void 0 : onCancel();
13530
13433
  };
@@ -13558,7 +13461,7 @@ const BaseDialog = (props) => {
13558
13461
  className: classNames("nut-dialog-overlay")
13559
13462
  }
13560
13463
  ) : null, /* @__PURE__ */ React__default.createElement(
13561
- CSSTransition$1,
13464
+ CSSTransition,
13562
13465
  {
13563
13466
  in: visible,
13564
13467
  timeout: 300,
@@ -13623,17 +13526,20 @@ const Drag = (props) => {
13623
13526
  const translateX = useRef(0);
13624
13527
  const translateY = useRef(0);
13625
13528
  const middleLine = useRef(0);
13626
- const getInfo = () => {
13529
+ const getInfo = async () => {
13530
+ var _a;
13627
13531
  const el = myDrag.current;
13628
13532
  if (el) {
13629
13533
  const { top, left: left2, bottom, right: right2 } = boundary;
13630
13534
  const { screenWidth, windowHeight } = getSystemInfoSync();
13535
+ const { width, height } = await getRectByTaro(dragRef.current);
13536
+ (_a = dragRef.current) == null ? void 0 : _a.getBoundingClientRect();
13631
13537
  createSelectorQuery().select(`.${className}`).boundingClientRect((rec) => {
13632
13538
  setBoundaryState({
13633
13539
  top: -rec.top + top,
13634
13540
  left: -rec.left + left2,
13635
- bottom: windowHeight - rec.height - rec.top - bottom,
13636
- right: screenWidth - rec.width - rec.left - right2
13541
+ bottom: windowHeight - rec.top - bottom - Math.ceil(height),
13542
+ right: screenWidth - rec.left - right2 - Math.ceil(width)
13637
13543
  });
13638
13544
  middleLine.current = screenWidth - rec.width - rec.left - (screenWidth - rec.width) / 2;
13639
13545
  }).exec();
@@ -13696,6 +13602,7 @@ const Drag = (props) => {
13696
13602
  /* @__PURE__ */ React__default.createElement(
13697
13603
  "div",
13698
13604
  {
13605
+ className: `${classPrefix2}-inner`,
13699
13606
  onTouchStart: (event) => touchStart(event),
13700
13607
  ref: dragRef,
13701
13608
  onTouchMove: touchMove,
@@ -14026,8 +13933,7 @@ const NoticeBar = (props) => {
14026
13933
  const { childs, childCount } = useMemo$1(() => {
14027
13934
  let childCount2 = 0;
14028
13935
  const childs2 = React__default.Children.map(children, (child) => {
14029
- if (!React__default.isValidElement(child))
14030
- return null;
13936
+ if (!React__default.isValidElement(child)) return null;
14031
13937
  childCount2++;
14032
13938
  return child;
14033
13939
  });
@@ -14150,8 +14056,7 @@ const NoticeBar = (props) => {
14150
14056
  marginTop: animate ? `-${height}px` : ""
14151
14057
  };
14152
14058
  const init = (active2 = 0) => {
14153
- if (!(container == null ? void 0 : container.current))
14154
- return;
14059
+ if (!(container == null ? void 0 : container.current)) return;
14155
14060
  setTimeout(async () => {
14156
14061
  const rects = await getRectByTaro(container == null ? void 0 : container.current);
14157
14062
  const _active = Math.max(Math.min(childCount - 1, active2), 0);
@@ -14189,8 +14094,7 @@ const NoticeBar = (props) => {
14189
14094
  swiperRef.current.autoplayTimer = null;
14190
14095
  };
14191
14096
  const autoplay = () => {
14192
- if (childCount <= 1)
14193
- return;
14097
+ if (childCount <= 1) return;
14194
14098
  stopAutoPlay();
14195
14099
  swiperRef.current.autoplayTimer = setTimeout(
14196
14100
  () => {
@@ -14201,8 +14105,7 @@ const NoticeBar = (props) => {
14201
14105
  );
14202
14106
  };
14203
14107
  const move = ({ pace = 0, offset: offset2 = 0 }) => {
14204
- if (childCount <= 1)
14205
- return;
14108
+ if (childCount <= 1) return;
14206
14109
  const targetActive = getActive(pace);
14207
14110
  const targetOffset = getOffset(targetActive, offset2);
14208
14111
  if (Array.isArray(children) && children[0] && targetOffset !== minOffset) {
@@ -14437,7 +14340,7 @@ const Notify = (props) => {
14437
14340
  [`${classPrefix$d}-${type4}`]: true
14438
14341
  });
14439
14342
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
14440
- CSSTransition$1,
14343
+ CSSTransition,
14441
14344
  {
14442
14345
  in: showNotify,
14443
14346
  timeout: 300,
@@ -14753,10 +14656,10 @@ const Popover = (props) => {
14753
14656
  Popover.displayName = "NutPopover";
14754
14657
  function bound(position, min, max) {
14755
14658
  let ret = position;
14756
- if (min !== void 0) {
14659
+ {
14757
14660
  ret = Math.max(position, min);
14758
14661
  }
14759
- if (max !== void 0) {
14662
+ {
14760
14663
  ret = Math.min(ret, max);
14761
14664
  }
14762
14665
  return ret;
@@ -14765,8 +14668,7 @@ function rubberband(distance, dimension, constant) {
14765
14668
  return distance * dimension * constant / (dimension + constant * distance);
14766
14669
  }
14767
14670
  function rubberbandIfOutOfBounds(position, min, max, dimension, constant = 0.15) {
14768
- if (constant === 0)
14769
- return bound(position, min, max);
14671
+ if (constant === 0) return bound(position, min, max);
14770
14672
  if (position < min)
14771
14673
  return -rubberband(min - position, dimension, constant) + min;
14772
14674
  if (position > max)
@@ -14828,14 +14730,10 @@ const PullToRefresh = (p) => {
14828
14730
  if (props.renderText) {
14829
14731
  return (_a = props.renderText) == null ? void 0 : _a.call(props, status);
14830
14732
  }
14831
- if (status === "pulling")
14832
- return props.pullingText;
14833
- if (status === "canRelease")
14834
- return props.canReleaseText;
14835
- if (status === "refreshing")
14836
- return props.refreshingText;
14837
- if (status === "complete")
14838
- return props.completeText;
14733
+ if (status === "pulling") return props.pullingText;
14734
+ if (status === "canRelease") return props.canReleaseText;
14735
+ if (status === "refreshing") return props.refreshingText;
14736
+ if (status === "complete") return props.completeText;
14839
14737
  return "";
14840
14738
  };
14841
14739
  const handleTouchStart = (e2) => {
@@ -14845,8 +14743,7 @@ const PullToRefresh = (p) => {
14845
14743
  if (props.scrollTop > 0) {
14846
14744
  return;
14847
14745
  }
14848
- if (status === "refreshing" || status === "complete")
14849
- return;
14746
+ if (status === "refreshing" || status === "complete") return;
14850
14747
  touch.move(e2);
14851
14748
  if (touch.isVertical()) {
14852
14749
  pullingRef.current = true;
@@ -15127,7 +15024,7 @@ function preventDefault(event, isStopPropagation) {
15127
15024
  if (typeof event.cancelable !== "boolean" || event.cancelable) {
15128
15025
  event.preventDefault();
15129
15026
  }
15130
- if (isStopPropagation) {
15027
+ {
15131
15028
  event.stopPropagation();
15132
15029
  }
15133
15030
  }
@@ -15199,7 +15096,7 @@ const Swipe = forwardRef((props, instanceRef) => {
15199
15096
  const newState = { ...state, dragging: true };
15200
15097
  const isEdge = !opened || touch.deltaX.current * startOffset.current < 0;
15201
15098
  if (isEdge) {
15202
- preventDefault(event, true);
15099
+ preventDefault(event);
15203
15100
  }
15204
15101
  newState.offset = rangeCalculation(
15205
15102
  touch.deltaX.current + startOffset.current,
@@ -16214,8 +16111,7 @@ const InternalCountDown = (props, ref) => {
16214
16111
  // 设置了 startTime 时,与 date.now() 的差异
16215
16112
  });
16216
16113
  const getTimeStamp = (timeStr) => {
16217
- if (!timeStr)
16218
- return Date.now();
16114
+ if (!timeStr) return Date.now();
16219
16115
  let t = timeStr;
16220
16116
  t = Number(t) > 0 ? +t : t.toString().replace(/-/g, "/");
16221
16117
  return new Date(t).getTime();
@@ -16227,8 +16123,7 @@ const InternalCountDown = (props, ref) => {
16227
16123
  stateRef.current.handleEndTime = endTime;
16228
16124
  stateRef.current.diffTime = Date.now() - getTimeStamp(startTime);
16229
16125
  }
16230
- if (!stateRef.current.counting)
16231
- stateRef.current.counting = true;
16126
+ if (!stateRef.current.counting) stateRef.current.counting = true;
16232
16127
  tick();
16233
16128
  };
16234
16129
  const tick = () => {
@@ -16497,8 +16392,7 @@ const Ellipsis = (props) => {
16497
16392
  ]
16498
16393
  },
16499
16394
  (res) => {
16500
- if (!res)
16501
- return;
16395
+ if (!res) return;
16502
16396
  lineH.current = pxToNumber(
16503
16397
  res.lineHeight === "normal" ? lineHeight : res.lineHeight
16504
16398
  );
@@ -16622,8 +16516,7 @@ const Ellipsis = (props) => {
16622
16516
  return content.slice(cutoff, end);
16623
16517
  };
16624
16518
  const pxToNumber = (value) => {
16625
- if (!value)
16626
- return 0;
16519
+ if (!value) return 0;
16627
16520
  const match = value.match(/^\d*(\.\d*)?/);
16628
16521
  return match ? Number(match[0]) : 0;
16629
16522
  };
@@ -16796,8 +16689,7 @@ const Swiper = forwardRef((props, ref) => {
16796
16689
  setCurrent(defaultValue);
16797
16690
  }, [defaultValue]);
16798
16691
  const renderIndicator = () => {
16799
- if (React__default.isValidElement(indicator))
16800
- return indicator;
16692
+ if (React__default.isValidElement(indicator)) return indicator;
16801
16693
  if (indicator) {
16802
16694
  return /* @__PURE__ */ React__default.createElement(
16803
16695
  "div",
@@ -17237,8 +17129,7 @@ const Pagination = (props) => {
17237
17129
  return items;
17238
17130
  }, [currentPage, itemSize, pageCount]);
17239
17131
  const handleSelectPage = (curPage) => {
17240
- if (curPage > pageCount || curPage < 1)
17241
- return;
17132
+ if (curPage > pageCount || curPage < 1) return;
17242
17133
  setCurrentPage(curPage);
17243
17134
  };
17244
17135
  return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix2, className), ...rest }, (mode === "multi" || mode === "simple") && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
@@ -17397,8 +17288,7 @@ const Step = (props) => {
17397
17288
  const dot = parent.propSteps.dot;
17398
17289
  const getCurrentStatus = () => {
17399
17290
  const index = value;
17400
- if (index < +parent.propSteps.value)
17401
- return "finish";
17291
+ if (index < +parent.propSteps.value) return "finish";
17402
17292
  return index === +parent.propSteps.value ? "process" : "wait";
17403
17293
  };
17404
17294
  const handleClickStep = () => {
@@ -18053,22 +17943,13 @@ const updateItemSize = (positions, items, sizeKey, margin) => {
18053
17943
  Array.from(items).forEach((item) => {
18054
17944
  const index = Number(item.getAttribute("data-index"));
18055
17945
  const styleVal = item.getAttribute("style");
18056
- if (styleVal && styleVal.includes("none"))
18057
- return;
17946
+ if (styleVal && styleVal.includes("none")) return;
18058
17947
  let nowSize = item.getBoundingClientRect()[sizeKey];
18059
- if (margin)
18060
- nowSize += margin;
17948
+ if (margin) nowSize += margin;
18061
17949
  const oldSize = positions[index][sizeKey];
18062
17950
  const dValue = oldSize - nowSize;
18063
17951
  if (dValue) {
18064
- if (sizeKey === "width") {
18065
- newPos[index].right -= dValue;
18066
- newPos[index][sizeKey] = nowSize;
18067
- for (let k2 = index + 1; k2 < positions.length; k2++) {
18068
- newPos[k2].left = positions[k2 - 1].right;
18069
- newPos[k2].right -= dValue;
18070
- }
18071
- } else if (sizeKey === "height") {
17952
+ {
18072
17953
  newPos[index].bottom -= dValue;
18073
17954
  newPos[index][sizeKey] = nowSize;
18074
17955
  for (let k2 = index + 1; k2 < positions.length; k2++) {
@@ -18134,8 +18015,7 @@ const VirtualList = (props) => {
18134
18015
  });
18135
18016
  }, [itemHeight, overscan, offSetSize]);
18136
18017
  useEffect(() => {
18137
- if (containerHeight)
18138
- return;
18018
+ if (containerHeight) return;
18139
18019
  setOffSetSize(getContainerHeight());
18140
18020
  }, [containerHeight]);
18141
18021
  useEffect(() => {
@@ -18159,11 +18039,9 @@ const VirtualList = (props) => {
18159
18039
  return list.slice(start.current, Math.min(end(), list.length));
18160
18040
  };
18161
18041
  const updateTotalSize = useCallback(() => {
18162
- if (!itemsRef.current)
18163
- return;
18042
+ if (!itemsRef.current) return;
18164
18043
  const items = itemsRef.current.children;
18165
- if (!items.length)
18166
- return;
18044
+ if (!items.length) return;
18167
18045
  updateItemSize(positions, items, "height", margin);
18168
18046
  }, [positions]);
18169
18047
  const listScroll = (e2) => {
@@ -18957,8 +18835,7 @@ const AvatarCropper = (props) => {
18957
18835
  const canvas2dDraw = useCallback(
18958
18836
  (ctx) => {
18959
18837
  const { src, width, height, x, y } = drawImage;
18960
- if (!ctx || !src)
18961
- return;
18838
+ if (!ctx || !src) return;
18962
18839
  const {
18963
18840
  moveX,
18964
18841
  moveY,
@@ -19026,8 +18903,7 @@ const AvatarCropper = (props) => {
19026
18903
  } = state;
19027
18904
  const { cropperCanvasContext } = canvasAll;
19028
18905
  const ctx = cropperCanvasContext;
19029
- if (!ctx)
19030
- return;
18906
+ if (!ctx) return;
19031
18907
  ctx.clearRect(0, 0, displayWidth, displayHeight);
19032
18908
  ctx.fillStyle = "#666";
19033
18909
  ctx.setFillStyle("#666");
@@ -19396,7 +19272,7 @@ export {
19396
19272
  NumberKeyboard,
19397
19273
  Overlay,
19398
19274
  Pagination,
19399
- Picker$1 as Picker,
19275
+ Picker,
19400
19276
  Popover,
19401
19277
  Popup,
19402
19278
  Price,