@gobolt/genesis 0.1.2 → 0.1.5

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 (348) hide show
  1. package/README.md +7 -7
  2. package/dist/{AntdIcon-nCNB0J1E.js → AntdIcon-DP6hPDqu.js} +40 -39
  3. package/dist/CSSMotionList-DB0khM6h.js +22193 -0
  4. package/dist/{CheckCircleFilled-BKgizvyl.js → CheckCircleFilled-B-wrMduA.js} +2 -2
  5. package/dist/{CheckOutlined-cEBrx_Ag.js → CheckOutlined-DTEHi_xG.js} +2 -2
  6. package/dist/{ClockCircleOutlined-BaXQuLIn.js → ClockCircleOutlined-DGGcYjVd.js} +2 -2
  7. package/dist/{CloseCircleFilled-B9e7yFwo.js → CloseCircleFilled-WEQ0SaSW.js} +2 -2
  8. package/dist/{CloseOutlined-ogxnm7Oy.js → CloseOutlined-DzgBOns1.js} +2 -2
  9. package/dist/{Compact-Du9689ax.js → Compact-DFcWZrNo.js} +49 -49
  10. package/dist/Context-2_suFYDs.js +5 -0
  11. package/dist/{ContextIsolator-BmfhJgG0.js → ContextIsolator-CUJnq-4F.js} +2 -2
  12. package/dist/{DownOutlined-Dcq69ZKM.js → DownOutlined-Bv7ua5i8.js} +23 -22
  13. package/dist/EllipsisOutlined-BodkguEc.js +1118 -0
  14. package/dist/{ExclamationCircleFilled-BHELVsTg.js → ExclamationCircleFilled-x8Sr29BN.js} +2 -2
  15. package/dist/Input--qsU-6vp.js +424 -0
  16. package/dist/KeyCode-B3vHb2gY.js +155 -0
  17. package/dist/{Keyframes-C9_aCDvn.js → Keyframes-CyO2Aeq-.js} +7 -7
  18. package/dist/{LoadingOutlined-C1qu6ymP.js → LoadingOutlined-DOi5EGOl.js} +2 -2
  19. package/dist/{MinusCircleOutlined-Shz0RRQV.js → MinusCircleOutlined-BcKxYRyN.js} +2 -2
  20. package/dist/{Overflow-DWf4XIal.js → Overflow-CVbsx7Gn.js} +95 -95
  21. package/dist/{SearchOutlined-DNj-7b_h.js → SearchOutlined-DJ3uHFwq.js} +2 -2
  22. package/dist/{Skeleton-BVN4pcVe.js → Skeleton-CudViN0a.js} +166 -163
  23. package/dist/TextArea-CHo3cxKw.js +404 -0
  24. package/dist/{Typography-CoZ5qD-t.js → Typography-B2J8CPnt.js} +263 -247
  25. package/dist/_baseIsEqual-VdxFOa4v.js +1084 -0
  26. package/dist/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +1 -1
  27. package/dist/{asyncToGenerator-CKP9bEZn.js → asyncToGenerator-CVBdSr4C.js} +27 -27
  28. package/dist/button-CYVlK7G0.js +1430 -0
  29. package/dist/components/Avatar/Avatar.js +8 -7
  30. package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +0 -1
  31. package/dist/components/Avatar/__tests__/Avatar.test.js +1 -1
  32. package/dist/components/Avatar/styles.d.ts +1 -2
  33. package/dist/components/Avatar/styles.js +161 -159
  34. package/dist/components/Badge/Badge.js +8 -7
  35. package/dist/components/Badge/__stories__/Badge.stories.d.ts +0 -1
  36. package/dist/components/Badge/__tests__/Badge.test.js +1 -1
  37. package/dist/components/Badge/styles.d.ts +0 -1
  38. package/dist/components/Badge/styles.js +1 -1
  39. package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -1
  40. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  41. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -1
  42. package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +0 -1
  43. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +3 -3
  44. package/dist/components/Breadcrumb/styles.d.ts +0 -1
  45. package/dist/components/Breadcrumb/styles.js +58 -58
  46. package/dist/components/Button/Button.d.ts +0 -1
  47. package/dist/components/Button/__stories__/Button.stories.d.ts +0 -1
  48. package/dist/components/Button/__tests__/Button.test.js +5 -4
  49. package/dist/components/Button/styles.d.ts +0 -1
  50. package/dist/components/Button/styles.js +2 -2
  51. package/dist/components/Card/__stories__/Card.stories.d.ts +0 -1
  52. package/dist/components/Card/__tests__/Card.test.js +1 -1
  53. package/dist/components/Card/styles.d.ts +0 -1
  54. package/dist/components/Card/styles.js +2 -2
  55. package/dist/components/Checkbox/Checkbox.d.ts +0 -1
  56. package/dist/components/Checkbox/Checkbox.js +11 -11
  57. package/dist/components/Checkbox/__stories__/Checkbox.stories.d.ts +0 -1
  58. package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -15
  59. package/dist/components/Checkbox/styles.d.ts +3 -4
  60. package/dist/components/Checkbox/styles.js +2 -2
  61. package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +0 -1
  62. package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +0 -1
  63. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +222 -223
  64. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +13 -12
  65. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +0 -1
  66. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +10 -9
  67. package/dist/components/Dashboard/__stories__/charts/LineChart.js +72 -74
  68. package/dist/components/Dashboard/__tests__/Dashboard.test.js +1 -1
  69. package/dist/components/Dashboard/styles.d.ts +0 -1
  70. package/dist/components/Dashboard/styles.js +1 -1
  71. package/dist/components/DatePicker/DatePicker.d.ts +0 -1
  72. package/dist/components/DatePicker/DatePicker.js +1 -1
  73. package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +0 -1
  74. package/dist/components/DatePicker/__tests__/DatePicker.test.js +2 -2
  75. package/dist/components/DateRangePicker/DateRangePicker.d.ts +0 -1
  76. package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
  77. package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +0 -1
  78. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +2 -2
  79. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
  80. package/dist/components/ErrorBoundary/ErrorBoundary.js +8 -7
  81. package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +0 -1
  82. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -20
  83. package/dist/components/ErrorBoundary/styles.d.ts +0 -1
  84. package/dist/components/ErrorBoundary/styles.js +1 -1
  85. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +16 -15
  86. package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -1
  87. package/dist/components/ErrorBoundaryFallback/styles.js +13 -13
  88. package/dist/components/Form/Form.d.ts +0 -1
  89. package/dist/components/Form/Form.js +2 -2
  90. package/dist/components/Form/__stories__/Form.stories.d.ts +0 -1
  91. package/dist/components/Form/__stories__/FormStory.js +11 -10
  92. package/dist/components/Form/__tests__/form.test.js +7 -6
  93. package/dist/components/Form/index.js +1 -1
  94. package/dist/components/Form/styles.d.ts +0 -1
  95. package/dist/components/Form/styles.js +10 -2
  96. package/dist/components/FormBrandon/Form.d.ts +25 -0
  97. package/dist/components/FormBrandon/Form.js +18 -0
  98. package/dist/components/FormBrandon/__stories__/Form.stories.d.ts +6 -0
  99. package/dist/components/FormBrandon/__stories__/FormStory.d.ts +1 -0
  100. package/dist/components/FormBrandon/__stories__/FormStory.js +172 -0
  101. package/dist/components/FormBrandon/__tests__/form.test.js +19 -0
  102. package/dist/components/FormBrandon/index.d.ts +2 -0
  103. package/dist/components/FormBrandon/index.js +4 -0
  104. package/dist/components/FormBrandon/styles.d.ts +2 -0
  105. package/dist/components/FormBrandon/styles.js +13 -0
  106. package/dist/components/Glyph/Glyph.js +2 -2
  107. package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +0 -1
  108. package/dist/components/Glyph/styles.d.ts +0 -1
  109. package/dist/components/Glyph/styles.js +1 -1
  110. package/dist/components/Input/Input.d.ts +0 -1
  111. package/dist/components/Input/Input.js +9 -10
  112. package/dist/components/Input/__stories__/Input.stories.d.ts +0 -1
  113. package/dist/components/Input/__tests__/Input.test.js +21 -20
  114. package/dist/components/Input/styles.d.ts +5 -6
  115. package/dist/components/Input/styles.js +4 -119
  116. package/dist/components/Layout/Content/Content.d.ts +0 -1
  117. package/dist/components/Layout/Content/ResponsiveContent.js +14 -13
  118. package/dist/components/Layout/Content/styles.d.ts +0 -1
  119. package/dist/components/Layout/Content/styles.js +1 -1
  120. package/dist/components/Layout/MainLayout/MainLayout.d.ts +0 -1
  121. package/dist/components/Layout/MainLayout/MainLayout.js +1 -1
  122. package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +0 -1
  123. package/dist/components/Layout/MainLayout/styles.js +1 -1
  124. package/dist/components/Layout/__stories__/Layout.stories.d.ts +0 -1
  125. package/dist/components/Layout/__tests__/Layout.test.js +1 -1
  126. package/dist/components/Message/Message.d.ts +0 -1
  127. package/dist/components/Message/Message.js +13 -12
  128. package/dist/components/Message/__stories__/Message.stories.d.ts +0 -1
  129. package/dist/components/Message/__tests__/Message.test.js +6 -5
  130. package/dist/components/Message/styles.js +1 -1
  131. package/dist/components/Notification/Notification.js +122 -55
  132. package/dist/components/Notification/NotificationBadge/NotificationBadge.js +2 -2
  133. package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +0 -1
  134. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +4 -4
  135. package/dist/components/Notification/NotificationBadge/styles.js +1 -1
  136. package/dist/components/Notification/__stories__/Notification.stories.d.ts +0 -1
  137. package/dist/components/Notification/__tests__/Notification.test.js +3 -3
  138. package/dist/components/Notification/styles.js +1 -1
  139. package/dist/components/Popover/Popover.d.ts +1 -1
  140. package/dist/components/Popover/Popover.js +14 -11
  141. package/dist/components/Popover/__stories__/Popover.stories.d.ts +0 -1
  142. package/dist/components/Popover/__tests__/Popover.test.js +19 -26
  143. package/dist/components/Popover/styles.d.ts +0 -1
  144. package/dist/components/Popover/styles.js +2 -2
  145. package/dist/components/Progress/Progress.js +29 -27
  146. package/dist/components/Progress/Progress.util.d.ts +0 -1
  147. package/dist/components/Progress/Progress.util.js +8 -7
  148. package/dist/components/Progress/ProgressText.d.ts +0 -1
  149. package/dist/components/Progress/ProgressText.js +8 -7
  150. package/dist/components/Progress/__stories__/Progress.stories.d.ts +0 -1
  151. package/dist/components/Progress/__tests__/Progress.test.js +4 -4
  152. package/dist/components/Progress/styles.d.ts +0 -1
  153. package/dist/components/Progress/styles.js +217 -214
  154. package/dist/components/Radio/Radio.d.ts +0 -1
  155. package/dist/components/Radio/Radio.js +9 -8
  156. package/dist/components/Radio/RadioGroup.js +1 -1
  157. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +0 -1
  158. package/dist/components/Radio/__tests__/RadioGroup.test.js +8 -7
  159. package/dist/components/Row/Row.d.ts +0 -1
  160. package/dist/components/Row/Row.js +29 -26
  161. package/dist/components/Row/RowActions/RowActions.js +8 -7
  162. package/dist/components/Row/RowActions/styles.js +1 -1
  163. package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +0 -1
  164. package/dist/components/Row/RowLabelValue/RowLabelValue.js +7 -6
  165. package/dist/components/Row/RowLabelValue/styles.js +2 -2
  166. package/dist/components/Row/__stories__/Row.stories.d.ts +0 -1
  167. package/dist/components/Row/__tests__/Row.test.js +3 -3
  168. package/dist/components/Row/styles.d.ts +0 -1
  169. package/dist/components/Row/styles.js +1 -1
  170. package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +0 -1
  171. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +1 -1
  172. package/dist/components/SegmentedControls/styles.d.ts +1 -2
  173. package/dist/components/SegmentedControls/styles.js +214 -203
  174. package/dist/components/Select/Select.d.ts +0 -1
  175. package/dist/components/Select/Select.js +10 -11
  176. package/dist/components/Select/__stories__/Select.stories.d.ts +0 -1
  177. package/dist/components/Select/__tests__/Select.test.js +49 -10754
  178. package/dist/components/Select/styles.d.ts +0 -1
  179. package/dist/components/Select/styles.js +2 -2
  180. package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +0 -1
  181. package/dist/components/Shapes/__tests__/Shapes.test.js +1 -1
  182. package/dist/components/Switch/__stories__/Switch.stories.d.ts +0 -1
  183. package/dist/components/Switch/__tests__/Switch.test.js +3 -3
  184. package/dist/components/Switch/styles.d.ts +0 -1
  185. package/dist/components/Switch/styles.js +74 -74
  186. package/dist/components/Table/Table.js +1 -1
  187. package/dist/components/Table/__mocks__/table-mocks.d.ts +0 -1
  188. package/dist/components/Table/__mocks__/table-mocks.js +10 -9
  189. package/dist/components/Table/__stories__/Table.stories.d.ts +0 -1
  190. package/dist/components/Table/__tests__/Table.test.js +1 -1
  191. package/dist/components/Table/styles.d.ts +0 -1
  192. package/dist/components/Table/styles.js +2 -2
  193. package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +0 -1
  194. package/dist/components/Tabs/__tests__/Tabs.test.js +3 -3
  195. package/dist/components/Tabs/styles.d.ts +0 -1
  196. package/dist/components/Tabs/styles.js +2 -2
  197. package/dist/components/Tile/__stories__/Tile.stories.d.ts +0 -1
  198. package/dist/components/Tile/__tests__/Tile.test.js +1 -1
  199. package/dist/components/Tile/styles.d.ts +0 -1
  200. package/dist/components/Tile/styles.js +1 -1
  201. package/dist/components/Toast/Toast.d.ts +0 -1
  202. package/dist/components/Toast/Toast.js +9 -8
  203. package/dist/components/Toast/__stories__/Toast.stories.d.ts +0 -1
  204. package/dist/components/Toast/__tests__/Toast.test.js +6 -5
  205. package/dist/components/Toast/index.js +1 -1
  206. package/dist/components/Toast/styles.js +1 -1
  207. package/dist/components/Tooltip/Tooltip.js +8 -7
  208. package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +0 -1
  209. package/dist/components/Tooltip/__tests__/Tooltip.test.js +1 -1
  210. package/dist/components/Tooltip/styles.d.ts +0 -1
  211. package/dist/components/Tooltip/styles.js +2 -2
  212. package/dist/components/Typography/Typography.d.ts +0 -1
  213. package/dist/components/Typography/Typography.js +1 -1
  214. package/dist/components/Typography/__stories__/Typography.stories.d.ts +0 -1
  215. package/dist/components/Typography/__tests__/Typography.test.js +14 -13
  216. package/dist/components/Typography/index.js +1 -1
  217. package/dist/components/Typography/styles.d.ts +0 -1
  218. package/dist/components/Typography/styles.js +2 -2
  219. package/dist/components/index.d.ts +0 -2
  220. package/dist/components/index.js +46 -48
  221. package/dist/{context-DIFtNa4d.js → context-CQfFkrkv.js} +285 -278
  222. package/dist/{dropdown-Dp_PTQ2u.js → dropdown-BlRB2LxQ.js} +492 -491
  223. package/dist/{generateCategoricalChart-7ceYaiZ2.js → generateCategoricalChart-CqByWmje.js} +7189 -6383
  224. package/dist/genesis/GenesisThemeBreakdown.d.ts +0 -1
  225. package/dist/genesis/GenesisThemeBreakdown.js +9 -8
  226. package/dist/genesis/GenesisThemeDemo.d.ts +0 -1
  227. package/dist/genesis/GenesisThemeDemo.stories.d.ts +0 -1
  228. package/dist/genesis/{labs/Lab.stories.d.ts → Lab.stories.d.ts} +0 -1
  229. package/dist/genesis/styles.d.ts +0 -1
  230. package/dist/genesis/styles.js +3 -3
  231. package/dist/{iconBase-LROS5hdG.js → iconBase-DSKTHwal.js} +9 -9
  232. package/dist/index-B7FXyiY_.js +104 -0
  233. package/dist/{index-B_1Ge8na.js → index-BHCqeC4j.js} +190 -183
  234. package/dist/index-BZ050Dyl.js +292 -0
  235. package/dist/{index-BpZSuIUV.js → index-Br3D3cFM.js} +23 -23
  236. package/dist/{index-DOsPeIWJ.js → index-Bxbr727t.js} +260 -265
  237. package/dist/index-C2K1BzmJ.js +3400 -0
  238. package/dist/{styles-D1vKDy9V.js → index-CupwdUIJ.js} +596 -603
  239. package/dist/{index-BQM5OniU.js → index-CzMIlMTV.js} +111 -111
  240. package/dist/index-DCopujxC.js +772 -0
  241. package/dist/index-DRGbc-fW.js +780 -0
  242. package/dist/index-DavB5GQ3.js +5221 -0
  243. package/dist/index-RAH9f-qb.js +540 -0
  244. package/dist/{index-BPVue1Yd.js → index-RtWhGOwR.js} +152 -150
  245. package/dist/index-Y0KgiFZb.js +909 -0
  246. package/dist/{index-DRGX1Wem.js → index-sX7KZ-nU.js} +414 -402
  247. package/dist/index.js +53 -55
  248. package/dist/interface/appointment.d.ts +0 -1
  249. package/dist/interface/appointmentV2.d.ts +0 -1
  250. package/dist/interface/appointmentsState.d.ts +0 -1
  251. package/dist/interface/deliveryPartner.d.ts +0 -1
  252. package/dist/interface/route.d.ts +0 -1
  253. package/dist/interface/routeAnalysis.d.ts +0 -1
  254. package/dist/interface/routeAutomationJob.d.ts +0 -1
  255. package/dist/interface/routeAutomationLog.d.ts +0 -1
  256. package/dist/interface/serviceArea.d.ts +0 -1
  257. package/dist/interface/vehicle.d.ts +0 -1
  258. package/dist/{magic-string.es-BKBb7z-1.js → magic-string.es-D4UQQyt0.js} +265 -264
  259. package/dist/{motion-CUN72xsH.js → motion-C-XpKcZG.js} +6 -5
  260. package/dist/{pickAttrs-CleuMJFR.js → pickAttrs-yFE4_vFd.js} +1 -1
  261. package/dist/{presets-Djh_L_6R.js → presets-CSXMiWyc.js} +176 -176
  262. package/dist/providers/BreakpointThemeProvider.d.ts +0 -1
  263. package/dist/providers/BreakpointThemeProvider.js +5 -5
  264. package/dist/providers/GenesisProvider.d.ts +0 -1
  265. package/dist/providers/GenesisProvider.js +1 -1
  266. package/dist/providers/ToastProvider.d.ts +0 -1
  267. package/dist/providers/ToastProvider.js +10 -9
  268. package/dist/providers/__stories__/GenesisProvider.stories.d.ts +0 -1
  269. package/dist/providers/index.js +1 -1
  270. package/dist/providers/useGenesis.d.ts +0 -1
  271. package/dist/providers/useGenesis.js +2 -2
  272. package/dist/{roundedArrow-DI_Q-xdU.js → roundedArrow-BxPlu4Hq.js} +2 -2
  273. package/dist/setup-aZdxWCJq.js +13976 -0
  274. package/dist/setup.types-CgFq66QX.js +9261 -0
  275. package/dist/shadow-9lsz-71t.js +13 -0
  276. package/dist/statusUtils-Kj9kMuVg.js +15 -0
  277. package/dist/{styleChecker-Cotu61d0.js → styleChecker-CSH9LQtm.js} +3 -3
  278. package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-C47QHsU4.js} +371 -304
  279. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +11 -10
  280. package/dist/styles/design-tokens/border-tokens/BorderTokens.stories.d.ts +0 -1
  281. package/dist/styles/design-tokens/color-tokens/ColorTokens.stories.d.ts +0 -1
  282. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +9 -8
  283. package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
  284. package/dist/styles/design-tokens/typography-tokens/TypographyTokens.stories.d.ts +0 -1
  285. package/dist/styles/global-styles.d.ts +0 -1
  286. package/dist/styles/global-styles.js +1 -1
  287. package/dist/styles/theme/genesis-theme.d.ts +0 -1
  288. package/dist/styles/theme/genesis-theme.js +285 -337
  289. package/dist/styles/theme/genesis-theme.test.d.ts +1 -0
  290. package/dist/styles/theme/genesis-theme.test.js +69 -0
  291. package/dist/styles/theme/theme-tree/ThemeTree.js +488 -488
  292. package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +0 -1
  293. package/dist/styles-DNay6iFa.js +292 -0
  294. package/dist/styles-Wpm1RiGr.js +9212 -0
  295. package/dist/styles-XuoEGUZZ.js +549 -0
  296. package/dist/test/setup.d.ts +0 -1
  297. package/dist/test/setup.js +35 -35
  298. package/dist/test/setup.types.d.ts +0 -1
  299. package/dist/test/setup.types.js +1 -1
  300. package/dist/{toArray-U3Az44CO.js → toArray-D5kvYi_U.js} +1 -1
  301. package/dist/useBreakpoint-ByLol0R9.js +88 -0
  302. package/dist/useCSSVarCls-YfJY1twF.js +10 -0
  303. package/dist/{useIcons-Ck4JP1m9.js → useIcons-CoxuumP_.js} +16 -16
  304. package/dist/{useId-D2tzlufo.js → useId-DLf1xVuv.js} +3 -3
  305. package/dist/useLocale-BQ3mKRyJ.js +16 -0
  306. package/dist/{useMergedState-D6toxSxh.js → useMergedState-D1-TbeEv.js} +2 -2
  307. package/dist/useSize-Ct1guc-z.js +9 -0
  308. package/dist/useVariants-C6UAAu9f.js +19 -0
  309. package/dist/{useZIndex-DhyHuZTN.js → useZIndex-tgX56o1r.js} +7 -6
  310. package/dist/utils/icon-util.js +48 -44
  311. package/dist/vi.B5EKKJdE-BsDIxc7v.js +14087 -0
  312. package/package.json +45 -24
  313. package/dist/EllipsisOutlined-DGMph0Bj.js +0 -1115
  314. package/dist/KeyCode-DM2sFh3-.js +0 -517
  315. package/dist/TextArea-Bkf9hh7l.js +0 -708
  316. package/dist/_baseIsEqual-L0-w1QRI.js +0 -598
  317. package/dist/button-BwqpCxVM.js +0 -1406
  318. package/dist/clsx-OuTLNxxd.js +0 -16
  319. package/dist/index-BRUI9igj.js +0 -11
  320. package/dist/index-BbTV2Cw5.js +0 -22638
  321. package/dist/index-BeGv28kJ.js +0 -5173
  322. package/dist/index-BvOLXELm.js +0 -102
  323. package/dist/index-CLSrpQRW.js +0 -416
  324. package/dist/index-CbVOl2U6.js +0 -288
  325. package/dist/index-D0U6r5O7.js +0 -780
  326. package/dist/index-DEu2PVzQ.js +0 -538
  327. package/dist/index-DLdU7Tpd.js +0 -183
  328. package/dist/index-DNQ-jnBx.js +0 -3321
  329. package/dist/index-DWjq9XYj.js +0 -899
  330. package/dist/responsiveObserver-dCkpy7Cb.js +0 -73
  331. package/dist/setup-DwHFLWUb.js +0 -24713
  332. package/dist/setup.types-dBtAXXGp.js +0 -8824
  333. package/dist/shadow-BoMGMNn3.js +0 -13
  334. package/dist/styles-CWdUpZom.js +0 -289
  335. package/dist/styles-qerRs7Rn.js +0 -9196
  336. package/dist/useBreakpoint-TkMv121M.js +0 -22
  337. package/dist/useCSSVarCls-Dau77fzS.js +0 -11
  338. package/dist/useLocale-CTfNpakL.js +0 -16
  339. package/dist/useSize-DSq4r6zy.js +0 -9
  340. package/dist/useVariants-DrLzUVLU.js +0 -30
  341. package/dist/utils/getAppointmentColor.d.ts +0 -4
  342. package/dist/utils/getAppointmentColor.js +0 -91
  343. package/dist/utils/isAllEnglishString.d.ts +0 -1
  344. package/dist/utils/isAllEnglishString.js +0 -8
  345. package/dist/utils/isAllEnglishString.test.js +0 -8
  346. package/dist/utils/parseAddress.d.ts +0 -3
  347. package/dist/utils/parseAddress.js +0 -19
  348. /package/dist/{utils/isAllEnglishString.test.d.ts → components/FormBrandon/__tests__/form.test.d.ts} +0 -0
@@ -1,11 +1,12 @@
1
1
  import * as E from "react";
2
2
  import { useRef as we, useState as lr, useMemo as fr, useContext as cr, useEffect as dr } from "react";
3
- import { w as D, f as W, _ as N, b as d, g as Ae, d as Ye, a as ue } from "./presets-Djh_L_6R.js";
4
- import { _ as oe, a as Y } from "./asyncToGenerator-CKP9bEZn.js";
5
- import { a3 as gr, a4 as Be, a5 as vr, o as k, x as Ze, y as Xe, e as le, a6 as q, _ as fe, a7 as ie, X, Y as B, $ as Le } from "./index-BbTV2Cw5.js";
6
- import { t as hr } from "./toArray-U3Az44CO.js";
3
+ import { w as D, f as W, _ as N, b as d, g as Ae, e as Ye, a as oe } from "./presets-CSXMiWyc.js";
4
+ import { _ as ue, a as Y } from "./asyncToGenerator-CVBdSr4C.js";
5
+ import { a3 as gr, a4 as Be, a5 as vr, n as k, v as Ze, x as Qe, e as le, a6 as q, _ as fe } from "./CSSMotionList-DB0khM6h.js";
6
+ import { t as hr } from "./toArray-D5kvYi_U.js";
7
+ import { m as ie, g as Q, s as B, i as Le } from "./index-DCopujxC.js";
7
8
  import { o as mr } from "./omit-B_u6A-HL.js";
8
- var Q = "RC_FORM_INTERNAL_HOOKS", I = function() {
9
+ var X = "RC_FORM_INTERNAL_HOOKS", I = function() {
9
10
  D(!1, "Can not find FormContext. Please make sure you wrap Field under Form.");
10
11
  }, ne = /* @__PURE__ */ E.createContext({
11
12
  getFieldValue: I,
@@ -136,9 +137,9 @@ function Pe(s) {
136
137
  }), Be(r, n);
137
138
  }, Pe(s);
138
139
  }
139
- var wr = /%[sdj%]/g, Qe = function() {
140
+ var wr = /%[sdj%]/g, Xe = function() {
140
141
  };
141
- typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (Qe = function(t, e) {
142
+ typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (Xe = function(t, e) {
142
143
  typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && e.every(function(n) {
143
144
  return typeof n == "string";
144
145
  }) && console.warn(t, e);
@@ -158,12 +159,12 @@ function H(s) {
158
159
  if (typeof s == "function")
159
160
  return s.apply(null, e);
160
161
  if (typeof s == "string") {
161
- var a = s.replace(wr, function(u) {
162
- if (u === "%%")
162
+ var a = s.replace(wr, function(o) {
163
+ if (o === "%%")
163
164
  return "%";
164
165
  if (r >= i)
165
- return u;
166
- switch (u) {
166
+ return o;
167
+ switch (o) {
167
168
  case "%s":
168
169
  return String(e[r++]);
169
170
  case "%d":
@@ -176,7 +177,7 @@ function H(s) {
176
177
  }
177
178
  break;
178
179
  default:
179
- return u;
180
+ return o;
180
181
  }
181
182
  });
182
183
  return a;
@@ -191,11 +192,11 @@ function j(s, t) {
191
192
  }
192
193
  function Er(s, t, e) {
193
194
  var n = [], r = 0, i = s.length;
194
- function a(u) {
195
- n.push.apply(n, k(u || [])), r++, r === i && e(n);
195
+ function a(o) {
196
+ n.push.apply(n, k(o || [])), r++, r === i && e(n);
196
197
  }
197
- s.forEach(function(u) {
198
- t(u, a);
198
+ s.forEach(function(o) {
199
+ t(o, a);
199
200
  });
200
201
  }
201
202
  function je(s, t, e) {
@@ -205,8 +206,8 @@ function je(s, t, e) {
205
206
  e(a);
206
207
  return;
207
208
  }
208
- var u = n;
209
- n = n + 1, u < r ? t(s[u], i) : e([]);
209
+ var o = n;
210
+ n = n + 1, o < r ? t(s[o], i) : e([]);
210
211
  }
211
212
  i([]);
212
213
  }
@@ -218,7 +219,7 @@ function br(s) {
218
219
  }
219
220
  var De = /* @__PURE__ */ function(s) {
220
221
  Ze(e, s);
221
- var t = Xe(e);
222
+ var t = Qe(e);
222
223
  function e(n, r) {
223
224
  var i;
224
225
  return le(this, e), i = t.call(this, "Async Validation Error"), d(q(i), "errors", void 0), d(q(i), "fields", void 0), i.errors = n, i.fields = r, i;
@@ -237,12 +238,12 @@ function Pr(s, t, e, n, r) {
237
238
  return h;
238
239
  }), i;
239
240
  }
240
- var a = t.firstFields === !0 ? Object.keys(s) : t.firstFields || [], u = Object.keys(s), l = u.length, f = 0, o = [], g = new Promise(function(h, b) {
241
+ var a = t.firstFields === !0 ? Object.keys(s) : t.firstFields || [], o = Object.keys(s), l = o.length, f = 0, u = [], g = new Promise(function(h, b) {
241
242
  var p = function(c) {
242
- if (o.push.apply(o, c), f++, f === l)
243
- return n(o), o.length ? b(new De(o, Ce(o))) : h(r);
243
+ if (u.push.apply(u, c), f++, f === l)
244
+ return n(u), u.length ? b(new De(u, Ce(u))) : h(r);
244
245
  };
245
- u.length || (n(o), h(r)), u.forEach(function(m) {
246
+ o.length || (n(u), h(r)), o.forEach(function(m) {
246
247
  var c = s[m];
247
248
  a.indexOf(m) !== -1 ? je(c, e, p) : Er(c, e, p);
248
249
  });
@@ -294,10 +295,10 @@ var ee = "enum", Nr = function(t, e, n, r, i) {
294
295
  }
295
296
  }
296
297
  }, Or = function(t, e, n, r, i) {
297
- var a = typeof t.len == "number", u = typeof t.min == "number", l = typeof t.max == "number", f = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, o = e, g = null, h = typeof e == "number", b = typeof e == "string", p = Array.isArray(e);
298
+ var a = typeof t.len == "number", o = typeof t.min == "number", l = typeof t.max == "number", f = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, u = e, g = null, h = typeof e == "number", b = typeof e == "string", p = Array.isArray(e);
298
299
  if (h ? g = "number" : b ? g = "string" : p && (g = "array"), !g)
299
300
  return !1;
300
- p && (o = e.length), b && (o = e.replace(f, "_").length), a ? o !== t.len && r.push(H(i.messages[g].len, t.fullField, t.len)) : u && !l && o < t.min ? r.push(H(i.messages[g].min, t.fullField, t.min)) : l && !u && o > t.max ? r.push(H(i.messages[g].max, t.fullField, t.max)) : u && l && (o < t.min || o > t.max) && r.push(H(i.messages[g].range, t.fullField, t.min, t.max));
301
+ p && (u = e.length), b && (u = e.replace(f, "_").length), a ? u !== t.len && r.push(H(i.messages[g].len, t.fullField, t.len)) : o && !l && u < t.min ? r.push(H(i.messages[g].min, t.fullField, t.min)) : l && !o && u > t.max ? r.push(H(i.messages[g].max, t.fullField, t.max)) : o && l && (u < t.min || u > t.max) && r.push(H(i.messages[g].range, t.fullField, t.min, t.max));
301
302
  }, er = function(t, e, n, r, i, a) {
302
303
  t.required && (!n.hasOwnProperty(t.field) || j(e, a || t.type)) && r.push(H(i.messages.required, t.fullField));
303
304
  }, ve;
@@ -323,15 +324,15 @@ const kr = function() {
323
324
  // 1:: 1::3:4:5:6:7:8 1::8 1::
324
325
  "(?::(?:(?::".concat(n, "){0,5}:").concat(e, "|(?::").concat(n, "){1,7}|:))")
325
326
  // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::
326
- ], i = "(?:%[0-9a-zA-Z]{1,})?", a = "(?:".concat(r.join("|"), ")").concat(i), u = new RegExp("(?:^".concat(e, "$)|(?:^").concat(a, "$)")), l = new RegExp("^".concat(e, "$")), f = new RegExp("^".concat(a, "$")), o = function(A) {
327
- return A && A.exact ? u : new RegExp("(?:".concat(t(A)).concat(e).concat(t(A), ")|(?:").concat(t(A)).concat(a).concat(t(A), ")"), "g");
327
+ ], i = "(?:%[0-9a-zA-Z]{1,})?", a = "(?:".concat(r.join("|"), ")").concat(i), o = new RegExp("(?:^".concat(e, "$)|(?:^").concat(a, "$)")), l = new RegExp("^".concat(e, "$")), f = new RegExp("^".concat(a, "$")), u = function(A) {
328
+ return A && A.exact ? o : new RegExp("(?:".concat(t(A)).concat(e).concat(t(A), ")|(?:").concat(t(A)).concat(a).concat(t(A), ")"), "g");
328
329
  };
329
- o.v4 = function(V) {
330
+ u.v4 = function(V) {
330
331
  return V && V.exact ? l : new RegExp("".concat(t(V)).concat(e).concat(t(V)), "g");
331
- }, o.v6 = function(V) {
332
+ }, u.v6 = function(V) {
332
333
  return V && V.exact ? f : new RegExp("".concat(t(V)).concat(a).concat(t(V)), "g");
333
334
  };
334
- var g = "(?:(?:[a-z]+:)?//)", h = "(?:\\S+(?::\\S*)?@)?", b = o.v4().source, p = o.v6().source, m = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", c = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", F = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", v = "(?::\\d{2,5})?", y = '(?:[/?#][^\\s"]*)?', C = "(?:".concat(g, "|www\\.)").concat(h, "(?:localhost|").concat(b, "|").concat(p, "|").concat(m).concat(c).concat(F, ")").concat(v).concat(y);
335
+ var g = "(?:(?:[a-z]+:)?//)", h = "(?:\\S+(?::\\S*)?@)?", b = u.v4().source, p = u.v6().source, m = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", c = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", F = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", v = "(?::\\d{2,5})?", y = '(?:[/?#][^\\s"]*)?', C = "(?:".concat(g, "|www\\.)").concat(h, "(?:localhost|").concat(b, "|").concat(p, "|").concat(m).concat(c).concat(F, ")").concat(v).concat(y);
335
336
  return ve = new RegExp("(?:^".concat(C, "$)"), "i"), ve;
336
337
  };
337
338
  var Ue = {
@@ -387,8 +388,8 @@ var Ue = {
387
388
  er(t, e, n, r, i);
388
389
  return;
389
390
  }
390
- var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], u = t.type;
391
- a.indexOf(u) > -1 ? ae[u](e) || r.push(H(i.messages.types[u], t.fullField, t.type)) : u && W(e) !== t.type && r.push(H(i.messages.types[u], t.fullField, t.type));
391
+ var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], o = t.type;
392
+ a.indexOf(o) > -1 ? ae[o](e) || r.push(H(i.messages.types[o], t.fullField, t.type)) : o && W(e) !== t.type && r.push(H(i.messages.types[o], t.fullField, t.type));
392
393
  }, Ar = function(t, e, n, r, i) {
393
394
  (/^\s+$/.test(e) || e === "") && r.push(H(i.messages.whitespace, t.fullField));
394
395
  };
@@ -401,32 +402,32 @@ const $ = {
401
402
  pattern: Rr
402
403
  };
403
404
  var qr = function(t, e, n, r, i) {
404
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
405
- if (u) {
405
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
406
+ if (o) {
406
407
  if (j(e) && !t.required)
407
408
  return n();
408
409
  $.required(t, e, r, a, i);
409
410
  }
410
411
  n(a);
411
412
  }, Mr = function(t, e, n, r, i) {
412
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
413
- if (u) {
413
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
414
+ if (o) {
414
415
  if (e == null && !t.required)
415
416
  return n();
416
417
  $.required(t, e, r, a, i, "array"), e != null && ($.type(t, e, r, a, i), $.range(t, e, r, a, i));
417
418
  }
418
419
  n(a);
419
420
  }, Ir = function(t, e, n, r, i) {
420
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
421
- if (u) {
421
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
422
+ if (o) {
422
423
  if (j(e) && !t.required)
423
424
  return n();
424
425
  $.required(t, e, r, a, i), e !== void 0 && $.type(t, e, r, a, i);
425
426
  }
426
427
  n(a);
427
428
  }, Sr = function(t, e, n, r, i) {
428
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
429
- if (u) {
429
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
430
+ if (o) {
430
431
  if (j(e, "date") && !t.required)
431
432
  return n();
432
433
  if ($.required(t, e, r, a, i), !j(e, "date")) {
@@ -436,88 +437,88 @@ var qr = function(t, e, n, r, i) {
436
437
  }
437
438
  n(a);
438
439
  }, Tr = "enum", Lr = function(t, e, n, r, i) {
439
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
440
- if (u) {
440
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
441
+ if (o) {
441
442
  if (j(e) && !t.required)
442
443
  return n();
443
444
  $.required(t, e, r, a, i), e !== void 0 && $[Tr](t, e, r, a, i);
444
445
  }
445
446
  n(a);
446
447
  }, jr = function(t, e, n, r, i) {
447
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
448
- if (u) {
448
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
449
+ if (o) {
449
450
  if (j(e) && !t.required)
450
451
  return n();
451
452
  $.required(t, e, r, a, i), e !== void 0 && ($.type(t, e, r, a, i), $.range(t, e, r, a, i));
452
453
  }
453
454
  n(a);
454
455
  }, Dr = function(t, e, n, r, i) {
455
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
456
- if (u) {
456
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
457
+ if (o) {
457
458
  if (j(e) && !t.required)
458
459
  return n();
459
460
  $.required(t, e, r, a, i), e !== void 0 && ($.type(t, e, r, a, i), $.range(t, e, r, a, i));
460
461
  }
461
462
  n(a);
462
463
  }, _r = function(t, e, n, r, i) {
463
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
464
- if (u) {
464
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
465
+ if (o) {
465
466
  if (j(e) && !t.required)
466
467
  return n();
467
468
  $.required(t, e, r, a, i), e !== void 0 && $.type(t, e, r, a, i);
468
469
  }
469
470
  n(a);
470
471
  }, Wr = function(t, e, n, r, i) {
471
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
472
- if (u) {
472
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
473
+ if (o) {
473
474
  if (e === "" && (e = void 0), j(e) && !t.required)
474
475
  return n();
475
476
  $.required(t, e, r, a, i), e !== void 0 && ($.type(t, e, r, a, i), $.range(t, e, r, a, i));
476
477
  }
477
478
  n(a);
478
479
  }, Ur = function(t, e, n, r, i) {
479
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
480
- if (u) {
480
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
481
+ if (o) {
481
482
  if (j(e) && !t.required)
482
483
  return n();
483
484
  $.required(t, e, r, a, i), e !== void 0 && $.type(t, e, r, a, i);
484
485
  }
485
486
  n(a);
486
487
  }, Hr = function(t, e, n, r, i) {
487
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
488
- if (u) {
488
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
489
+ if (o) {
489
490
  if (j(e, "string") && !t.required)
490
491
  return n();
491
492
  $.required(t, e, r, a, i), j(e, "string") || $.pattern(t, e, r, a, i);
492
493
  }
493
494
  n(a);
494
495
  }, Kr = function(t, e, n, r, i) {
495
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
496
- if (u) {
496
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
497
+ if (o) {
497
498
  if (j(e) && !t.required)
498
499
  return n();
499
500
  $.required(t, e, r, a, i), j(e) || $.type(t, e, r, a, i);
500
501
  }
501
502
  n(a);
502
503
  }, zr = function(t, e, n, r, i) {
503
- var a = [], u = Array.isArray(e) ? "array" : W(e);
504
- $.required(t, e, r, a, i, u), n(a);
504
+ var a = [], o = Array.isArray(e) ? "array" : W(e);
505
+ $.required(t, e, r, a, i, o), n(a);
505
506
  }, Gr = function(t, e, n, r, i) {
506
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
507
- if (u) {
507
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
508
+ if (o) {
508
509
  if (j(e, "string") && !t.required)
509
510
  return n();
510
511
  $.required(t, e, r, a, i, "string"), j(e, "string") || ($.type(t, e, r, a, i), $.range(t, e, r, a, i), $.pattern(t, e, r, a, i), t.whitespace === !0 && $.whitespace(t, e, r, a, i));
511
512
  }
512
513
  n(a);
513
514
  }, pe = function(t, e, n, r, i) {
514
- var a = t.type, u = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
515
+ var a = t.type, o = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
515
516
  if (l) {
516
517
  if (j(e, a) && !t.required)
517
518
  return n();
518
- $.required(t, e, r, u, i, a), j(e, a) || $.type(t, e, r, u, i);
519
+ $.required(t, e, r, o, i, a), j(e, a) || $.type(t, e, r, o, i);
519
520
  }
520
- n(u);
521
+ n(o);
521
522
  };
522
523
  const se = {
523
524
  string: Gr,
@@ -564,8 +565,8 @@ var ce = /* @__PURE__ */ function() {
564
565
  key: "validate",
565
566
  value: function(e) {
566
567
  var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function() {
567
- }, a = e, u = r, l = i;
568
- if (typeof u == "function" && (l = u, u = {}), !this.rules || Object.keys(this.rules).length === 0)
568
+ }, a = e, o = r, l = i;
569
+ if (typeof o == "function" && (l = o, o = {}), !this.rules || Object.keys(this.rules).length === 0)
569
570
  return l && l(null, a), Promise.resolve(a);
570
571
  function f(p) {
571
572
  var m = [], c = {};
@@ -580,12 +581,12 @@ var ce = /* @__PURE__ */ function() {
580
581
  F(p[v]);
581
582
  m.length ? (c = Ce(m), l(m, c)) : l(null, a);
582
583
  }
583
- if (u.messages) {
584
- var o = this.messages();
585
- o === be && (o = Ee()), We(o, u.messages), u.messages = o;
584
+ if (o.messages) {
585
+ var u = this.messages();
586
+ u === be && (u = Ee()), We(u, o.messages), o.messages = u;
586
587
  } else
587
- u.messages = this.messages();
588
- var g = {}, h = u.keys || Object.keys(this.rules);
588
+ o.messages = this.messages();
589
+ var g = {}, h = o.keys || Object.keys(this.rules);
589
590
  h.forEach(function(p) {
590
591
  var m = n.rules[p], c = a[p];
591
592
  m.forEach(function(F) {
@@ -601,7 +602,7 @@ var ce = /* @__PURE__ */ function() {
601
602
  });
602
603
  });
603
604
  var b = {};
604
- return Pr(g, u, function(p, m) {
605
+ return Pr(g, o, function(p, m) {
605
606
  var c = p.rule, F = (c.type === "object" || c.type === "array") && (W(c.fields) === "object" || W(c.defaultField) === "object");
606
607
  F = F && (c.required || !c.required && p.value), c.field = p.field;
607
608
  function v(x, R) {
@@ -612,15 +613,15 @@ var ce = /* @__PURE__ */ function() {
612
613
  }
613
614
  function y() {
614
615
  var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], R = Array.isArray(x) ? x : [x];
615
- !u.suppressWarning && R.length && s.warning("async-validator:", R), R.length && c.message !== void 0 && (R = [].concat(c.message));
616
+ !o.suppressWarning && R.length && s.warning("async-validator:", R), R.length && c.message !== void 0 && (R = [].concat(c.message));
616
617
  var w = R.map(_e(c, a));
617
- if (u.first && w.length)
618
+ if (o.first && w.length)
618
619
  return b[c.field] = 1, m(w);
619
620
  if (!F)
620
621
  m(w);
621
622
  else {
622
623
  if (c.required && !p.value)
623
- return c.message !== void 0 ? w = [].concat(c.message).map(_e(c, a)) : u.error && (w = [u.error(c, H(u.messages.required, c.field))]), m(w);
624
+ return c.message !== void 0 ? w = [].concat(c.message).map(_e(c, a)) : o.error && (w = [o.error(c, H(o.messages.required, c.field))]), m(w);
624
625
  var P = {};
625
626
  c.defaultField && Object.keys(p.value).map(function(S) {
626
627
  P[S] = c.defaultField;
@@ -631,7 +632,7 @@ var ce = /* @__PURE__ */ function() {
631
632
  O[S] = z.map(v.bind(null, S));
632
633
  });
633
634
  var T = new s(O);
634
- T.messages(u.messages), p.rule.options && (p.rule.options.messages = u.messages, p.rule.options.error = u.error), T.validate(p.value, p.rule.options || u, function(S) {
635
+ T.messages(o.messages), p.rule.options && (p.rule.options.messages = o.messages, p.rule.options.error = o.error), T.validate(p.value, p.rule.options || o, function(S) {
635
636
  var M = [];
636
637
  w && w.length && M.push.apply(M, k(w)), S && S.length && M.push.apply(M, k(S)), m(M.length ? M : null);
637
638
  });
@@ -639,13 +640,13 @@ var ce = /* @__PURE__ */ function() {
639
640
  }
640
641
  var C;
641
642
  if (c.asyncValidator)
642
- C = c.asyncValidator(c, p.value, y, p.source, u);
643
+ C = c.asyncValidator(c, p.value, y, p.source, o);
643
644
  else if (c.validator) {
644
645
  try {
645
- C = c.validator(c, p.value, y, p.source, u);
646
+ C = c.validator(c, p.value, y, p.source, o);
646
647
  } catch (x) {
647
648
  var V, A;
648
- (V = (A = console).error) === null || V === void 0 || V.call(A, x), u.suppressValidatorError || setTimeout(function() {
649
+ (V = (A = console).error) === null || V === void 0 || V.call(A, x), o.suppressValidatorError || setTimeout(function() {
649
650
  throw x;
650
651
  }, 0), y(x.message);
651
652
  }
@@ -682,7 +683,7 @@ d(ce, "register", function(t, e) {
682
683
  throw new Error("Cannot register a validator by type, validator is not a function");
683
684
  se[t] = e;
684
685
  });
685
- d(ce, "warning", Qe);
686
+ d(ce, "warning", Xe);
686
687
  d(ce, "messages", be);
687
688
  d(ce, "validators", se);
688
689
  var U = "'${name}' is not a valid ${type}", rr = {
@@ -745,25 +746,25 @@ function xe(s, t, e, n, r) {
745
746
  return Ne.apply(this, arguments);
746
747
  }
747
748
  function Ne() {
748
- return Ne = oe(/* @__PURE__ */ Y().mark(function s(t, e, n, r, i) {
749
- var a, u, l, f, o, g, h, b, p;
749
+ return Ne = ue(/* @__PURE__ */ Y().mark(function s(t, e, n, r, i) {
750
+ var a, o, l, f, u, g, h, b, p;
750
751
  return Y().wrap(function(c) {
751
752
  for (; ; ) switch (c.prev = c.next) {
752
753
  case 0:
753
754
  return a = N({}, n), delete a.ruleIndex, He.warning = function() {
754
- }, a.validator && (u = a.validator, a.validator = function() {
755
+ }, a.validator && (o = a.validator, a.validator = function() {
755
756
  try {
756
- return u.apply(void 0, arguments);
757
+ return o.apply(void 0, arguments);
757
758
  } catch (F) {
758
759
  return console.error(F), Promise.reject(Ke);
759
760
  }
760
- }), l = null, a && a.type === "array" && a.defaultField && (l = a.defaultField, delete a.defaultField), f = new He(d({}, t, [a])), o = ie(rr, r.validateMessages), f.messages(o), g = [], c.prev = 10, c.next = 13, Promise.resolve(f.validate(d({}, t, e), N({}, r)));
761
+ }), l = null, a && a.type === "array" && a.defaultField && (l = a.defaultField, delete a.defaultField), f = new He(d({}, t, [a])), u = ie(rr, r.validateMessages), f.messages(u), g = [], c.prev = 10, c.next = 13, Promise.resolve(f.validate(d({}, t, e), N({}, r)));
761
762
  case 13:
762
763
  c.next = 18;
763
764
  break;
764
765
  case 15:
765
766
  c.prev = 15, c.t0 = c.catch(10), c.t0.errors && (g = c.t0.errors.map(function(F, v) {
766
- var y = F.message, C = y === Ke ? o.default : y;
767
+ var y = F.message, C = y === Ke ? u.default : y;
767
768
  return /* @__PURE__ */ E.isValidElement(C) ? (
768
769
  // Wrap ReactNode with `key`
769
770
  /* @__PURE__ */ E.cloneElement(C, {
@@ -798,8 +799,8 @@ function Ne() {
798
799
  })), Ne.apply(this, arguments);
799
800
  }
800
801
  function Yr(s, t, e, n, r, i) {
801
- var a = s.join("."), u = e.map(function(o, g) {
802
- var h = o.validator, b = N(N({}, o), {}, {
802
+ var a = s.join("."), o = e.map(function(u, g) {
803
+ var h = u.validator, b = N(N({}, u), {}, {
803
804
  ruleIndex: g
804
805
  });
805
806
  return h && (b.validator = function(p, m, c) {
@@ -816,24 +817,24 @@ function Yr(s, t, e, n, r, i) {
816
817
  c(C || " ");
817
818
  });
818
819
  }), b;
819
- }).sort(function(o, g) {
820
- var h = o.warningOnly, b = o.ruleIndex, p = g.warningOnly, m = g.ruleIndex;
820
+ }).sort(function(u, g) {
821
+ var h = u.warningOnly, b = u.ruleIndex, p = g.warningOnly, m = g.ruleIndex;
821
822
  return !!h == !!p ? b - m : h ? 1 : -1;
822
823
  }), l;
823
824
  if (r === !0)
824
825
  l = new Promise(/* @__PURE__ */ function() {
825
- var o = oe(/* @__PURE__ */ Y().mark(function g(h, b) {
826
+ var u = ue(/* @__PURE__ */ Y().mark(function g(h, b) {
826
827
  var p, m, c;
827
828
  return Y().wrap(function(v) {
828
829
  for (; ; ) switch (v.prev = v.next) {
829
830
  case 0:
830
831
  p = 0;
831
832
  case 1:
832
- if (!(p < u.length)) {
833
+ if (!(p < o.length)) {
833
834
  v.next = 12;
834
835
  break;
835
836
  }
836
- return m = u[p], v.next = 5, xe(a, t, m, n, i);
837
+ return m = o[p], v.next = 5, xe(a, t, m, n, i);
837
838
  case 5:
838
839
  if (c = v.sent, !c.length) {
839
840
  v.next = 9;
@@ -855,31 +856,31 @@ function Yr(s, t, e, n, r, i) {
855
856
  }, g);
856
857
  }));
857
858
  return function(g, h) {
858
- return o.apply(this, arguments);
859
+ return u.apply(this, arguments);
859
860
  };
860
861
  }());
861
862
  else {
862
- var f = u.map(function(o) {
863
- return xe(a, t, o, n, i).then(function(g) {
863
+ var f = o.map(function(u) {
864
+ return xe(a, t, u, n, i).then(function(g) {
864
865
  return {
865
866
  errors: g,
866
- rule: o
867
+ rule: u
867
868
  };
868
869
  });
869
870
  });
870
- l = (r ? Zr(f) : Br(f)).then(function(o) {
871
- return Promise.reject(o);
871
+ l = (r ? Zr(f) : Br(f)).then(function(u) {
872
+ return Promise.reject(u);
872
873
  });
873
874
  }
874
- return l.catch(function(o) {
875
- return o;
875
+ return l.catch(function(u) {
876
+ return u;
876
877
  }), l;
877
878
  }
878
879
  function Br(s) {
879
880
  return Re.apply(this, arguments);
880
881
  }
881
882
  function Re() {
882
- return Re = oe(/* @__PURE__ */ Y().mark(function s(t) {
883
+ return Re = ue(/* @__PURE__ */ Y().mark(function s(t) {
883
884
  return Y().wrap(function(n) {
884
885
  for (; ; ) switch (n.prev = n.next) {
885
886
  case 0:
@@ -898,15 +899,15 @@ function Zr(s) {
898
899
  return Oe.apply(this, arguments);
899
900
  }
900
901
  function Oe() {
901
- return Oe = oe(/* @__PURE__ */ Y().mark(function s(t) {
902
+ return Oe = ue(/* @__PURE__ */ Y().mark(function s(t) {
902
903
  var e;
903
904
  return Y().wrap(function(r) {
904
905
  for (; ; ) switch (r.prev = r.next) {
905
906
  case 0:
906
907
  return e = 0, r.abrupt("return", new Promise(function(i) {
907
908
  t.forEach(function(a) {
908
- a.then(function(u) {
909
- u.errors.length && i([u]), e += 1, e === t.length && i([]);
909
+ a.then(function(o) {
910
+ o.errors.length && i([o]), e += 1, e === t.length && i([]);
910
911
  });
911
912
  });
912
913
  }));
@@ -923,7 +924,7 @@ function L(s) {
923
924
  function ze(s, t) {
924
925
  var e = {};
925
926
  return t.forEach(function(n) {
926
- var r = X(s, n);
927
+ var r = Q(s, n);
927
928
  e = B(e, n, r);
928
929
  }), e;
929
930
  }
@@ -939,18 +940,18 @@ function tr(s, t) {
939
940
  return s[r] === n;
940
941
  });
941
942
  }
942
- function Xr(s, t) {
943
+ function Qr(s, t) {
943
944
  if (s === t)
944
945
  return !0;
945
- if (!s && t || !t || !s || !t || W(s) !== "object" || W(t) !== "object")
946
+ if (!s && t || s && !t || !s || !t || W(s) !== "object" || W(t) !== "object")
946
947
  return !1;
947
948
  var e = Object.keys(s), n = Object.keys(t), r = new Set([].concat(e, n));
948
949
  return k(r).every(function(i) {
949
- var a = s[i], u = t[i];
950
- return typeof a == "function" && typeof u == "function" ? !0 : a === u;
950
+ var a = s[i], o = t[i];
951
+ return typeof a == "function" && typeof o == "function" ? !0 : a === o;
951
952
  });
952
953
  }
953
- function Qr(s) {
954
+ function Xr(s) {
954
955
  var t = arguments.length <= 1 ? void 0 : arguments[1];
955
956
  return t && t.target && W(t.target) === "object" && s in t.target ? t.target[s] : t;
956
957
  }
@@ -969,20 +970,20 @@ function Fe(s, t, e, n, r, i) {
969
970
  }
970
971
  var qe = /* @__PURE__ */ function(s) {
971
972
  Ze(e, s);
972
- var t = Xe(e);
973
+ var t = Qe(e);
973
974
  function e(n) {
974
975
  var r;
975
976
  if (le(this, e), r = t.call(this, n), d(q(r), "state", {
976
977
  resetCount: 0
977
978
  }), d(q(r), "cancelRegisterFunc", null), d(q(r), "mounted", !1), d(q(r), "touched", !1), d(q(r), "dirty", !1), d(q(r), "validatePromise", void 0), d(q(r), "prevValidating", void 0), d(q(r), "errors", K), d(q(r), "warnings", K), d(q(r), "cancelRegister", function() {
978
- var l = r.props, f = l.preserve, o = l.isListField, g = l.name;
979
- r.cancelRegisterFunc && r.cancelRegisterFunc(o, f, L(g)), r.cancelRegisterFunc = null;
979
+ var l = r.props, f = l.preserve, u = l.isListField, g = l.name;
980
+ r.cancelRegisterFunc && r.cancelRegisterFunc(u, f, L(g)), r.cancelRegisterFunc = null;
980
981
  }), d(q(r), "getNamePath", function() {
981
- var l = r.props, f = l.name, o = l.fieldContext, g = o.prefixName, h = g === void 0 ? [] : g;
982
+ var l = r.props, f = l.name, u = l.fieldContext, g = u.prefixName, h = g === void 0 ? [] : g;
982
983
  return f !== void 0 ? [].concat(k(h), k(f)) : [];
983
984
  }), d(q(r), "getRules", function() {
984
- var l = r.props, f = l.rules, o = f === void 0 ? [] : f, g = l.fieldContext;
985
- return o.map(function(h) {
985
+ var l = r.props, f = l.rules, u = f === void 0 ? [] : f, g = l.fieldContext;
986
+ return u.map(function(h) {
986
987
  return typeof h == "function" ? h(g) : h;
987
988
  });
988
989
  }), d(q(r), "refresh", function() {
@@ -995,30 +996,36 @@ var qe = /* @__PURE__ */ function(s) {
995
996
  }), d(q(r), "metaCache", null), d(q(r), "triggerMetaEvent", function(l) {
996
997
  var f = r.props.onMetaChange;
997
998
  if (f) {
998
- var o = N(N({}, r.getMeta()), {}, {
999
+ var u = N(N({}, r.getMeta()), {}, {
999
1000
  destroy: l
1000
1001
  });
1001
- Le(r.metaCache, o) || f(o), r.metaCache = o;
1002
+ Le(r.metaCache, u) || f(u), r.metaCache = u;
1002
1003
  } else
1003
1004
  r.metaCache = null;
1004
- }), d(q(r), "onStoreChange", function(l, f, o) {
1005
- var g = r.props, h = g.shouldUpdate, b = g.dependencies, p = b === void 0 ? [] : b, m = g.onReset, c = o.store, F = r.getNamePath(), v = r.getValue(l), y = r.getValue(c), C = f && te(f, F);
1006
- switch (o.type === "valueUpdate" && o.source === "external" && !Le(v, y) && (r.touched = !0, r.dirty = !0, r.validatePromise = null, r.errors = K, r.warnings = K, r.triggerMetaEvent()), o.type) {
1005
+ }), d(q(r), "onStoreChange", function(l, f, u) {
1006
+ var g = r.props, h = g.shouldUpdate, b = g.dependencies, p = b === void 0 ? [] : b, m = g.onReset, c = u.store, F = r.getNamePath(), v = r.getValue(l), y = r.getValue(c), C = f && te(f, F);
1007
+ switch (u.type === "valueUpdate" && u.source === "external" && !Le(v, y) && (r.touched = !0, r.dirty = !0, r.validatePromise = null, r.errors = K, r.warnings = K, r.triggerMetaEvent()), u.type) {
1007
1008
  case "reset":
1008
1009
  if (!f || C) {
1009
1010
  r.touched = !1, r.dirty = !1, r.validatePromise = void 0, r.errors = K, r.warnings = K, r.triggerMetaEvent(), m == null || m(), r.refresh();
1010
1011
  return;
1011
1012
  }
1012
1013
  break;
1014
+ /**
1015
+ * In case field with `preserve = false` nest deps like:
1016
+ * - A = 1 => show B
1017
+ * - B = 1 => show C
1018
+ * - Reset A, need clean B, C
1019
+ */
1013
1020
  case "remove": {
1014
- if (h && Fe(h, l, c, v, y, o)) {
1021
+ if (h && Fe(h, l, c, v, y, u)) {
1015
1022
  r.reRender();
1016
1023
  return;
1017
1024
  }
1018
1025
  break;
1019
1026
  }
1020
1027
  case "setField": {
1021
- var V = o.data;
1028
+ var V = u.data;
1022
1029
  if (C) {
1023
1030
  "touched" in V && (r.touched = V.touched), "validating" in V && !("originRCField" in V) && (r.validatePromise = V.validating ? Promise.resolve([]) : null), "errors" in V && (r.errors = V.errors || K), "warnings" in V && (r.warnings = V.warnings || K), r.dirty = !0, r.triggerMetaEvent(), r.reRender();
1024
1031
  return;
@@ -1026,7 +1033,7 @@ var qe = /* @__PURE__ */ function(s) {
1026
1033
  r.reRender();
1027
1034
  return;
1028
1035
  }
1029
- if (h && !F.length && Fe(h, l, c, v, y, o)) {
1036
+ if (h && !F.length && Fe(h, l, c, v, y, u)) {
1030
1037
  r.reRender();
1031
1038
  return;
1032
1039
  }
@@ -1035,7 +1042,7 @@ var qe = /* @__PURE__ */ function(s) {
1035
1042
  case "dependenciesUpdate": {
1036
1043
  var A = p.map(L);
1037
1044
  if (A.some(function(x) {
1038
- return te(o.relatedFields, x);
1045
+ return te(u.relatedFields, x);
1039
1046
  })) {
1040
1047
  r.reRender();
1041
1048
  return;
@@ -1043,7 +1050,7 @@ var qe = /* @__PURE__ */ function(s) {
1043
1050
  break;
1044
1051
  }
1045
1052
  default:
1046
- if (C || (!p.length || F.length || h) && Fe(h, l, c, v, y, o)) {
1053
+ if (C || (!p.length || F.length || h) && Fe(h, l, c, v, y, u)) {
1047
1054
  r.reRender();
1048
1055
  return;
1049
1056
  }
@@ -1051,7 +1058,7 @@ var qe = /* @__PURE__ */ function(s) {
1051
1058
  }
1052
1059
  h === !0 && r.reRender();
1053
1060
  }), d(q(r), "validateRules", function(l) {
1054
- var f = r.getNamePath(), o = r.getValue(), g = l || {}, h = g.triggerName, b = g.validateOnly, p = b === void 0 ? !1 : b, m = Promise.resolve().then(/* @__PURE__ */ oe(/* @__PURE__ */ Y().mark(function c() {
1061
+ var f = r.getNamePath(), u = r.getValue(), g = l || {}, h = g.triggerName, b = g.validateOnly, p = b === void 0 ? !1 : b, m = Promise.resolve().then(/* @__PURE__ */ ue(/* @__PURE__ */ Y().mark(function c() {
1055
1062
  var F, v, y, C, V, A, x;
1056
1063
  return Y().wrap(function(w) {
1057
1064
  for (; ; ) switch (w.prev = w.next) {
@@ -1084,7 +1091,7 @@ var qe = /* @__PURE__ */ function(s) {
1084
1091
  }
1085
1092
  return w.abrupt("return", []);
1086
1093
  case 10:
1087
- return x = Yr(f, o, A, l, y, C), x.catch(function(P) {
1094
+ return x = Yr(f, u, A, l, y, C), x.catch(function(P) {
1088
1095
  return P;
1089
1096
  }).then(function() {
1090
1097
  var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : K;
@@ -1112,8 +1119,8 @@ var qe = /* @__PURE__ */ function(s) {
1112
1119
  }), d(q(r), "isFieldDirty", function() {
1113
1120
  if (r.dirty || r.props.initialValue !== void 0)
1114
1121
  return !0;
1115
- var l = r.props.fieldContext, f = l.getInternalHooks(Q), o = f.getInitialValue;
1116
- return o(r.getNamePath()) !== void 0;
1122
+ var l = r.props.fieldContext, f = l.getInternalHooks(X), u = f.getInitialValue;
1123
+ return u(r.getNamePath()) !== void 0;
1117
1124
  }), d(q(r), "getErrors", function() {
1118
1125
  return r.errors;
1119
1126
  }), d(q(r), "getWarnings", function() {
@@ -1142,21 +1149,21 @@ var qe = /* @__PURE__ */ function(s) {
1142
1149
  isFunction: !0
1143
1150
  });
1144
1151
  }
1145
- var o = hr(l);
1146
- return o.length !== 1 || !/* @__PURE__ */ E.isValidElement(o[0]) ? {
1147
- child: o,
1152
+ var u = hr(l);
1153
+ return u.length !== 1 || !/* @__PURE__ */ E.isValidElement(u[0]) ? {
1154
+ child: u,
1148
1155
  isFunction: !1
1149
1156
  } : {
1150
- child: o[0],
1157
+ child: u[0],
1151
1158
  isFunction: !1
1152
1159
  };
1153
1160
  }), d(q(r), "getValue", function(l) {
1154
- var f = r.props.fieldContext.getFieldsValue, o = r.getNamePath();
1155
- return X(l || f(!0), o);
1161
+ var f = r.props.fieldContext.getFieldsValue, u = r.getNamePath();
1162
+ return Q(l || f(!0), u);
1156
1163
  }), d(q(r), "getControlled", function() {
1157
- var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = r.props, o = f.name, g = f.trigger, h = f.validateTrigger, b = f.getValueFromEvent, p = f.normalize, m = f.valuePropName, c = f.getValueProps, F = f.fieldContext, v = h !== void 0 ? h : F.validateTrigger, y = r.getNamePath(), C = F.getInternalHooks, V = F.getFieldsValue, A = C(Q), x = A.dispatch, R = r.getValue(), w = c || function(M) {
1164
+ var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = r.props, u = f.name, g = f.trigger, h = f.validateTrigger, b = f.getValueFromEvent, p = f.normalize, m = f.valuePropName, c = f.getValueProps, F = f.fieldContext, v = h !== void 0 ? h : F.validateTrigger, y = r.getNamePath(), C = F.getInternalHooks, V = F.getFieldsValue, A = C(X), x = A.dispatch, R = r.getValue(), w = c || function(M) {
1158
1165
  return d({}, m, M);
1159
- }, P = l[g], O = o !== void 0 ? w(R) : {};
1166
+ }, P = l[g], O = u !== void 0 ? w(R) : {};
1160
1167
  process.env.NODE_ENV !== "production" && O && Object.keys(O).forEach(function(M) {
1161
1168
  D(typeof O[M] != "function", "It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(M, ")"));
1162
1169
  });
@@ -1165,7 +1172,7 @@ var qe = /* @__PURE__ */ function(s) {
1165
1172
  r.touched = !0, r.dirty = !0, r.triggerMetaEvent();
1166
1173
  for (var M, z = arguments.length, _ = new Array(z), G = 0; G < z; G++)
1167
1174
  _[G] = arguments[G];
1168
- b ? M = b.apply(void 0, _) : M = Qr.apply(void 0, [m].concat(_)), p && (M = p(M, R, V(!0))), M !== R && x({
1175
+ b ? M = b.apply(void 0, _) : M = Xr.apply(void 0, [m].concat(_)), p && (M = p(M, R, V(!0))), M !== R && x({
1169
1176
  type: "updateValue",
1170
1177
  namePath: y,
1171
1178
  value: M
@@ -1185,8 +1192,8 @@ var qe = /* @__PURE__ */ function(s) {
1185
1192
  };
1186
1193
  }), T;
1187
1194
  }), n.fieldContext) {
1188
- var i = n.fieldContext.getInternalHooks, a = i(Q), u = a.initEntityValue;
1189
- u(q(r));
1195
+ var i = n.fieldContext.getInternalHooks, a = i(X), o = a.initEntityValue;
1196
+ o(q(r));
1190
1197
  }
1191
1198
  return r;
1192
1199
  }
@@ -1195,7 +1202,7 @@ var qe = /* @__PURE__ */ function(s) {
1195
1202
  value: function() {
1196
1203
  var r = this.props, i = r.shouldUpdate, a = r.fieldContext;
1197
1204
  if (this.mounted = !0, a) {
1198
- var u = a.getInternalHooks, l = u(Q), f = l.registerField;
1205
+ var o = a.getInternalHooks, l = o(X), f = l.registerField;
1199
1206
  this.cancelRegisterFunc = f(this);
1200
1207
  }
1201
1208
  i === !0 && this.reRender();
@@ -1213,8 +1220,8 @@ var qe = /* @__PURE__ */ function(s) {
1213
1220
  }, {
1214
1221
  key: "render",
1215
1222
  value: function() {
1216
- var r = this.state.resetCount, i = this.props.children, a = this.getOnlyChild(i), u = a.child, l = a.isFunction, f;
1217
- return l ? f = u : /* @__PURE__ */ E.isValidElement(u) ? f = /* @__PURE__ */ E.cloneElement(u, this.getControlled(u.props)) : (D(!u, "`children` of Field is not validate ReactElement."), f = u), /* @__PURE__ */ E.createElement(E.Fragment, {
1223
+ var r = this.state.resetCount, i = this.props.children, a = this.getOnlyChild(i), o = a.child, l = a.isFunction, f;
1224
+ return l ? f = o : /* @__PURE__ */ E.isValidElement(o) ? f = /* @__PURE__ */ E.cloneElement(o, this.getControlled(o.props)) : (D(!o, "`children` of Field is not validate ReactElement."), f = o), /* @__PURE__ */ E.createElement(E.Fragment, {
1218
1225
  key: r
1219
1226
  }, f);
1220
1227
  }
@@ -1226,31 +1233,31 @@ d(qe, "defaultProps", {
1226
1233
  valuePropName: "value"
1227
1234
  });
1228
1235
  function nr(s) {
1229
- var t, e = s.name, n = Ae(s, et), r = E.useContext(ne), i = E.useContext(he), a = e !== void 0 ? L(e) : void 0, u = (t = n.isListField) !== null && t !== void 0 ? t : !!i, l = "keep";
1230
- return u || (l = "_".concat((a || []).join("_"))), process.env.NODE_ENV !== "production" && n.preserve === !1 && u && a.length <= 1 && D(!1, "`preserve` should not apply on Form.List fields."), /* @__PURE__ */ E.createElement(qe, Ye({
1236
+ var t, e = s.name, n = Ae(s, et), r = E.useContext(ne), i = E.useContext(he), a = e !== void 0 ? L(e) : void 0, o = (t = n.isListField) !== null && t !== void 0 ? t : !!i, l = "keep";
1237
+ return o || (l = "_".concat((a || []).join("_"))), process.env.NODE_ENV !== "production" && n.preserve === !1 && o && a.length <= 1 && D(!1, "`preserve` should not apply on Form.List fields."), /* @__PURE__ */ E.createElement(qe, Ye({
1231
1238
  key: l,
1232
1239
  name: a,
1233
- isListField: u
1240
+ isListField: o
1234
1241
  }, n, {
1235
1242
  fieldContext: r
1236
1243
  }));
1237
1244
  }
1238
1245
  function rt(s) {
1239
- var t = s.name, e = s.initialValue, n = s.children, r = s.rules, i = s.validateTrigger, a = s.isListField, u = E.useContext(ne), l = E.useContext(he), f = E.useRef({
1246
+ var t = s.name, e = s.initialValue, n = s.children, r = s.rules, i = s.validateTrigger, a = s.isListField, o = E.useContext(ne), l = E.useContext(he), f = E.useRef({
1240
1247
  keys: [],
1241
1248
  id: 0
1242
- }), o = f.current, g = E.useMemo(function() {
1243
- var m = L(u.prefixName) || [];
1249
+ }), u = f.current, g = E.useMemo(function() {
1250
+ var m = L(o.prefixName) || [];
1244
1251
  return [].concat(k(m), k(L(t)));
1245
- }, [u.prefixName, t]), h = E.useMemo(function() {
1246
- return N(N({}, u), {}, {
1252
+ }, [o.prefixName, t]), h = E.useMemo(function() {
1253
+ return N(N({}, o), {}, {
1247
1254
  prefixName: g
1248
1255
  });
1249
- }, [u, g]), b = E.useMemo(function() {
1256
+ }, [o, g]), b = E.useMemo(function() {
1250
1257
  return {
1251
1258
  getKey: function(c) {
1252
1259
  var F = g.length, v = c[F];
1253
- return [o.keys[v], c.slice(F + 1)];
1260
+ return [u.keys[v], c.slice(F + 1)];
1254
1261
  }
1255
1262
  };
1256
1263
  }, [g]);
@@ -1273,17 +1280,17 @@ function rt(s) {
1273
1280
  isList: !0,
1274
1281
  isListField: a ?? !!l
1275
1282
  }, function(m, c) {
1276
- var F = m.value, v = F === void 0 ? [] : F, y = m.onChange, C = u.getFieldValue, V = function() {
1283
+ var F = m.value, v = F === void 0 ? [] : F, y = m.onChange, C = o.getFieldValue, V = function() {
1277
1284
  var w = C(g || []);
1278
1285
  return w || [];
1279
1286
  }, A = {
1280
1287
  add: function(w, P) {
1281
1288
  var O = V();
1282
- P >= 0 && P <= O.length ? (o.keys = [].concat(k(o.keys.slice(0, P)), [o.id], k(o.keys.slice(P))), y([].concat(k(O.slice(0, P)), [w], k(O.slice(P))))) : (process.env.NODE_ENV !== "production" && (P < 0 || P > O.length) && D(!1, "The second parameter of the add function should be a valid positive number."), o.keys = [].concat(k(o.keys), [o.id]), y([].concat(k(O), [w]))), o.id += 1;
1289
+ P >= 0 && P <= O.length ? (u.keys = [].concat(k(u.keys.slice(0, P)), [u.id], k(u.keys.slice(P))), y([].concat(k(O.slice(0, P)), [w], k(O.slice(P))))) : (process.env.NODE_ENV !== "production" && (P < 0 || P > O.length) && D(!1, "The second parameter of the add function should be a valid positive number."), u.keys = [].concat(k(u.keys), [u.id]), y([].concat(k(O), [w]))), u.id += 1;
1283
1290
  },
1284
1291
  remove: function(w) {
1285
1292
  var P = V(), O = new Set(Array.isArray(w) ? w : [w]);
1286
- O.size <= 0 || (o.keys = o.keys.filter(function(T, S) {
1293
+ O.size <= 0 || (u.keys = u.keys.filter(function(T, S) {
1287
1294
  return !O.has(S);
1288
1295
  }), y(P.filter(function(T, S) {
1289
1296
  return !O.has(S);
@@ -1292,13 +1299,13 @@ function rt(s) {
1292
1299
  move: function(w, P) {
1293
1300
  if (w !== P) {
1294
1301
  var O = V();
1295
- w < 0 || w >= O.length || P < 0 || P >= O.length || (o.keys = Ge(o.keys, w, P), y(Ge(O, w, P)));
1302
+ w < 0 || w >= O.length || P < 0 || P >= O.length || (u.keys = Ge(u.keys, w, P), y(Ge(O, w, P)));
1296
1303
  }
1297
1304
  }
1298
1305
  }, x = v || [];
1299
1306
  return Array.isArray(x) || (x = [], process.env.NODE_ENV !== "production" && D(!1, "Current value of '".concat(g.join(" > "), "' is not an array type."))), n(x.map(function(R, w) {
1300
- var P = o.keys[w];
1301
- return P === void 0 && (o.keys[w] = o.id, P = o.keys[w], o.id += 1), {
1307
+ var P = u.keys[w];
1308
+ return P === void 0 && (u.keys[w] = u.id, P = u.keys[w], u.id += 1), {
1302
1309
  name: w,
1303
1310
  key: P,
1304
1311
  isListField: !0
@@ -1309,11 +1316,11 @@ function rt(s) {
1309
1316
  function tt(s) {
1310
1317
  var t = !1, e = s.length, n = [];
1311
1318
  return s.length ? new Promise(function(r, i) {
1312
- s.forEach(function(a, u) {
1319
+ s.forEach(function(a, o) {
1313
1320
  a.catch(function(l) {
1314
1321
  return t = !0, l;
1315
1322
  }).then(function(l) {
1316
- e -= 1, n[u] = l, !(e > 0) && (t && i(n), r(n));
1323
+ e -= 1, n[o] = l, !(e > 0) && (t && i(n), r(n));
1317
1324
  });
1318
1325
  });
1319
1326
  }) : Promise.resolve([]);
@@ -1354,10 +1361,10 @@ var re = /* @__PURE__ */ function() {
1354
1361
  key: "map",
1355
1362
  value: function(e) {
1356
1363
  return k(this.kvs.entries()).map(function(n) {
1357
- var r = ue(n, 2), i = r[0], a = r[1], u = i.split(ir);
1364
+ var r = oe(n, 2), i = r[0], a = r[1], o = i.split(ir);
1358
1365
  return e({
1359
- key: u.map(function(l) {
1360
- var f = l.match(/^([^:]*):(.*)$/), o = ue(f, 3), g = o[1], h = o[2];
1366
+ key: o.map(function(l) {
1367
+ var f = l.match(/^([^:]*):(.*)$/), u = oe(f, 3), g = u[1], h = u[2];
1361
1368
  return g === "number" ? Number(h) : h;
1362
1369
  }),
1363
1370
  value: a
@@ -1397,7 +1404,7 @@ var re = /* @__PURE__ */ function() {
1397
1404
  getInternalHooks: e.getInternalHooks
1398
1405
  };
1399
1406
  }), d(this, "getInternalHooks", function(n) {
1400
- return n === Q ? (e.formHooked = !0, {
1407
+ return n === X ? (e.formHooked = !0, {
1401
1408
  dispatch: e.dispatch,
1402
1409
  initEntityValue: e.initEntityValue,
1403
1410
  registerField: e.registerField,
@@ -1416,9 +1423,9 @@ var re = /* @__PURE__ */ function() {
1416
1423
  }), d(this, "prevWithoutPreserves", null), d(this, "setInitialValues", function(n, r) {
1417
1424
  if (e.initialValues = n || {}, r) {
1418
1425
  var i, a = ie(n, e.store);
1419
- (i = e.prevWithoutPreserves) === null || i === void 0 || i.map(function(u) {
1420
- var l = u.key;
1421
- a = B(a, l, X(n, l));
1426
+ (i = e.prevWithoutPreserves) === null || i === void 0 || i.map(function(o) {
1427
+ var l = o.key;
1428
+ a = B(a, l, Q(n, l));
1422
1429
  }), e.prevWithoutPreserves = null, e.updateStore(a);
1423
1430
  }
1424
1431
  }), d(this, "destroyForm", function(n) {
@@ -1431,7 +1438,7 @@ var re = /* @__PURE__ */ function() {
1431
1438
  }), e.prevWithoutPreserves = r;
1432
1439
  }
1433
1440
  }), d(this, "getInitialValue", function(n) {
1434
- var r = X(e.initialValues, n);
1441
+ var r = Q(e.initialValues, n);
1435
1442
  return n.length ? ie(r) : r;
1436
1443
  }), d(this, "setCallbacks", function(n) {
1437
1444
  e.callbacks = n;
@@ -1482,29 +1489,29 @@ var re = /* @__PURE__ */ function() {
1482
1489
  });
1483
1490
  }), d(this, "getFieldsValue", function(n, r) {
1484
1491
  e.warningUnhooked();
1485
- var i, a, u;
1486
- if (n === !0 || Array.isArray(n) ? (i = n, a = r) : n && W(n) === "object" && (u = n.strict, a = n.filter), i === !0 && !a)
1492
+ var i, a, o;
1493
+ if (n === !0 || Array.isArray(n) ? (i = n, a = r) : n && W(n) === "object" && (o = n.strict, a = n.filter), i === !0 && !a)
1487
1494
  return e.store;
1488
1495
  var l = e.getFieldEntitiesForNamePathList(Array.isArray(i) ? i : null), f = [];
1489
- return l.forEach(function(o) {
1490
- var g, h, b = "INVALIDATE_NAME_PATH" in o ? o.INVALIDATE_NAME_PATH : o.getNamePath();
1491
- if (u) {
1496
+ return l.forEach(function(u) {
1497
+ var g, h, b = "INVALIDATE_NAME_PATH" in u ? u.INVALIDATE_NAME_PATH : u.getNamePath();
1498
+ if (o) {
1492
1499
  var p, m;
1493
- if ((p = (m = o).isList) !== null && p !== void 0 && p.call(m))
1500
+ if ((p = (m = u).isList) !== null && p !== void 0 && p.call(m))
1494
1501
  return;
1495
- } else if (!i && (g = (h = o).isListField) !== null && g !== void 0 && g.call(h))
1502
+ } else if (!i && (g = (h = u).isListField) !== null && g !== void 0 && g.call(h))
1496
1503
  return;
1497
1504
  if (!a)
1498
1505
  f.push(b);
1499
1506
  else {
1500
- var c = "getMeta" in o ? o.getMeta() : null;
1507
+ var c = "getMeta" in u ? u.getMeta() : null;
1501
1508
  a(c) && f.push(b);
1502
1509
  }
1503
1510
  }), ze(e.store, f.map(L));
1504
1511
  }), d(this, "getFieldValue", function(n) {
1505
1512
  e.warningUnhooked();
1506
1513
  var r = L(n);
1507
- return X(e.store, r);
1514
+ return Q(e.store, r);
1508
1515
  }), d(this, "getFieldsError", function(n) {
1509
1516
  e.warningUnhooked();
1510
1517
  var r = e.getFieldEntitiesForNamePathList(n);
@@ -1531,19 +1538,19 @@ var re = /* @__PURE__ */ function() {
1531
1538
  e.warningUnhooked();
1532
1539
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
1533
1540
  r[i] = arguments[i];
1534
- var a = r[0], u = r[1], l, f = !1;
1535
- r.length === 0 ? l = null : r.length === 1 ? Array.isArray(a) ? (l = a.map(L), f = !1) : (l = null, f = a) : (l = a.map(L), f = u);
1536
- var o = e.getFieldEntities(!0), g = function(c) {
1541
+ var a = r[0], o = r[1], l, f = !1;
1542
+ r.length === 0 ? l = null : r.length === 1 ? Array.isArray(a) ? (l = a.map(L), f = !1) : (l = null, f = a) : (l = a.map(L), f = o);
1543
+ var u = e.getFieldEntities(!0), g = function(c) {
1537
1544
  return c.isFieldTouched();
1538
1545
  };
1539
1546
  if (!l)
1540
- return f ? o.every(function(m) {
1547
+ return f ? u.every(function(m) {
1541
1548
  return g(m) || m.isList();
1542
- }) : o.some(g);
1549
+ }) : u.some(g);
1543
1550
  var h = new re();
1544
1551
  l.forEach(function(m) {
1545
1552
  h.set(m, []);
1546
- }), o.forEach(function(m) {
1553
+ }), u.forEach(function(m) {
1547
1554
  var c = m.getNamePath();
1548
1555
  l.forEach(function(F) {
1549
1556
  F.every(function(v, y) {
@@ -1571,28 +1578,28 @@ var re = /* @__PURE__ */ function() {
1571
1578
  });
1572
1579
  var i = n.map(L);
1573
1580
  return r.some(function(a) {
1574
- var u = a.getNamePath();
1575
- return te(i, u) && a.isFieldValidating();
1581
+ var o = a.getNamePath();
1582
+ return te(i, o) && a.isFieldValidating();
1576
1583
  });
1577
1584
  }), d(this, "isFieldValidating", function(n) {
1578
1585
  return e.warningUnhooked(), e.isFieldsValidating([n]);
1579
1586
  }), d(this, "resetWithFieldInitialValue", function() {
1580
1587
  var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = new re(), i = e.getFieldEntities(!0);
1581
1588
  i.forEach(function(l) {
1582
- var f = l.props.initialValue, o = l.getNamePath();
1589
+ var f = l.props.initialValue, u = l.getNamePath();
1583
1590
  if (f !== void 0) {
1584
- var g = r.get(o) || /* @__PURE__ */ new Set();
1591
+ var g = r.get(u) || /* @__PURE__ */ new Set();
1585
1592
  g.add({
1586
1593
  entity: l,
1587
1594
  value: f
1588
- }), r.set(o, g);
1595
+ }), r.set(u, g);
1589
1596
  }
1590
1597
  });
1591
1598
  var a = function(f) {
1592
- f.forEach(function(o) {
1593
- var g = o.props.initialValue;
1599
+ f.forEach(function(u) {
1600
+ var g = u.props.initialValue;
1594
1601
  if (g !== void 0) {
1595
- var h = o.getNamePath(), b = e.getInitialValue(h);
1602
+ var h = u.getNamePath(), b = e.getInitialValue(h);
1596
1603
  if (b !== void 0)
1597
1604
  D(!1, "Form already set 'initialValues' with path '".concat(h.join("."), "'. Field can not overwrite it."));
1598
1605
  else {
@@ -1600,22 +1607,22 @@ var re = /* @__PURE__ */ function() {
1600
1607
  if (p && p.size > 1)
1601
1608
  D(!1, "Multiple Field with path '".concat(h.join("."), "' set 'initialValue'. Can not decide which one to pick."));
1602
1609
  else if (p) {
1603
- var m = e.getFieldValue(h), c = o.isListField();
1610
+ var m = e.getFieldValue(h), c = u.isListField();
1604
1611
  !c && (!n.skipExist || m === void 0) && e.updateStore(B(e.store, h, k(p)[0].value));
1605
1612
  }
1606
1613
  }
1607
1614
  }
1608
1615
  });
1609
- }, u;
1610
- n.entities ? u = n.entities : n.namePathList ? (u = [], n.namePathList.forEach(function(l) {
1616
+ }, o;
1617
+ n.entities ? o = n.entities : n.namePathList ? (o = [], n.namePathList.forEach(function(l) {
1611
1618
  var f = r.get(l);
1612
1619
  if (f) {
1613
- var o;
1614
- (o = u).push.apply(o, k(k(f).map(function(g) {
1620
+ var u;
1621
+ (u = o).push.apply(u, k(k(f).map(function(g) {
1615
1622
  return g.entity;
1616
1623
  })));
1617
1624
  }
1618
- })) : u = i, a(u);
1625
+ })) : o = i, a(o);
1619
1626
  }), d(this, "resetFields", function(n) {
1620
1627
  e.warningUnhooked();
1621
1628
  var r = e.store;
@@ -1627,8 +1634,8 @@ var re = /* @__PURE__ */ function() {
1627
1634
  }
1628
1635
  var i = n.map(L);
1629
1636
  i.forEach(function(a) {
1630
- var u = e.getInitialValue(a);
1631
- e.updateStore(B(e.store, a, u));
1637
+ var o = e.getInitialValue(a);
1638
+ e.updateStore(B(e.store, a, o));
1632
1639
  }), e.resetWithFieldInitialValue({
1633
1640
  namePathList: i
1634
1641
  }), e.notifyObservers(r, i, {
@@ -1638,7 +1645,7 @@ var re = /* @__PURE__ */ function() {
1638
1645
  e.warningUnhooked();
1639
1646
  var r = e.store, i = [];
1640
1647
  n.forEach(function(a) {
1641
- var u = a.name, l = Ae(a, nt), f = L(u);
1648
+ var o = a.name, l = Ae(a, nt), f = L(o);
1642
1649
  i.push(f), "value" in l && e.updateStore(B(e.store, f, l.value)), e.notifyObservers(r, [f], {
1643
1650
  type: "setField",
1644
1651
  data: a
@@ -1646,7 +1653,7 @@ var re = /* @__PURE__ */ function() {
1646
1653
  }), e.notifyWatch(i);
1647
1654
  }), d(this, "getFields", function() {
1648
1655
  var n = e.getFieldEntities(!0), r = n.map(function(i) {
1649
- var a = i.getNamePath(), u = i.getMeta(), l = N(N({}, u), {}, {
1656
+ var a = i.getNamePath(), o = i.getMeta(), l = N(N({}, o), {}, {
1650
1657
  name: a,
1651
1658
  value: e.getFieldValue(a)
1652
1659
  });
@@ -1658,7 +1665,7 @@ var re = /* @__PURE__ */ function() {
1658
1665
  }), d(this, "initEntityValue", function(n) {
1659
1666
  var r = n.props.initialValue;
1660
1667
  if (r !== void 0) {
1661
- var i = n.getNamePath(), a = X(e.store, i);
1668
+ var i = n.getNamePath(), a = Q(e.store, i);
1662
1669
  a === void 0 && e.updateStore(B(e.store, i, r));
1663
1670
  }
1664
1671
  }), d(this, "isMergedPreserve", function(n) {
@@ -1677,11 +1684,11 @@ var re = /* @__PURE__ */ function() {
1677
1684
  source: "internal"
1678
1685
  });
1679
1686
  }
1680
- return function(a, u) {
1687
+ return function(a, o) {
1681
1688
  var l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
1682
1689
  if (e.fieldEntities = e.fieldEntities.filter(function(g) {
1683
1690
  return g !== n;
1684
- }), !e.isMergedPreserve(u) && (!a || l.length > 1)) {
1691
+ }), !e.isMergedPreserve(o) && (!a || l.length > 1)) {
1685
1692
  var f = a ? void 0 : e.getInitialValue(r);
1686
1693
  if (r.length && e.getFieldValue(r) !== f && e.fieldEntities.every(function(g) {
1687
1694
  return (
@@ -1689,10 +1696,10 @@ var re = /* @__PURE__ */ function() {
1689
1696
  !tr(g.getNamePath(), r)
1690
1697
  );
1691
1698
  })) {
1692
- var o = e.store;
1693
- e.updateStore(B(o, r, f, !0)), e.notifyObservers(o, [r], {
1699
+ var u = e.store;
1700
+ e.updateStore(B(u, r, f, !0)), e.notifyObservers(u, [r], {
1694
1701
  type: "remove"
1695
- }), e.triggerDependenciesUpdate(o, r);
1702
+ }), e.triggerDependenciesUpdate(u, r);
1696
1703
  }
1697
1704
  }
1698
1705
  e.notifyWatch([r]);
@@ -1705,9 +1712,9 @@ var re = /* @__PURE__ */ function() {
1705
1712
  break;
1706
1713
  }
1707
1714
  case "validateField": {
1708
- var a = n.namePath, u = n.triggerName;
1715
+ var a = n.namePath, o = n.triggerName;
1709
1716
  e.validateFields([a], {
1710
- triggerName: u
1717
+ triggerName: o
1711
1718
  });
1712
1719
  break;
1713
1720
  }
@@ -1717,8 +1724,8 @@ var re = /* @__PURE__ */ function() {
1717
1724
  var a = N(N({}, i), {}, {
1718
1725
  store: e.getFieldsValue(!0)
1719
1726
  });
1720
- e.getFieldEntities().forEach(function(u) {
1721
- var l = u.onStoreChange;
1727
+ e.getFieldEntities().forEach(function(o) {
1728
+ var l = o.onStoreChange;
1722
1729
  l(n, r, a);
1723
1730
  });
1724
1731
  } else
@@ -1735,12 +1742,12 @@ var re = /* @__PURE__ */ function() {
1735
1742
  type: "valueUpdate",
1736
1743
  source: "internal"
1737
1744
  }), e.notifyWatch([i]);
1738
- var u = e.triggerDependenciesUpdate(a, i), l = e.callbacks.onValuesChange;
1745
+ var o = e.triggerDependenciesUpdate(a, i), l = e.callbacks.onValuesChange;
1739
1746
  if (l) {
1740
1747
  var f = ze(e.store, [i]);
1741
1748
  l(f, e.getFieldsValue());
1742
1749
  }
1743
- e.triggerOnFieldsChange([i].concat(k(u)));
1750
+ e.triggerOnFieldsChange([i].concat(k(o)));
1744
1751
  }), d(this, "setFieldsValue", function(n) {
1745
1752
  e.warningUnhooked();
1746
1753
  var r = e.store;
@@ -1763,17 +1770,17 @@ var re = /* @__PURE__ */ function() {
1763
1770
  var r = /* @__PURE__ */ new Set(), i = [], a = new re();
1764
1771
  e.getFieldEntities().forEach(function(l) {
1765
1772
  var f = l.props.dependencies;
1766
- (f || []).forEach(function(o) {
1767
- var g = L(o);
1773
+ (f || []).forEach(function(u) {
1774
+ var g = L(u);
1768
1775
  a.update(g, function() {
1769
1776
  var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : /* @__PURE__ */ new Set();
1770
1777
  return h.add(l), h;
1771
1778
  });
1772
1779
  });
1773
1780
  });
1774
- var u = function l(f) {
1775
- var o = a.get(f) || /* @__PURE__ */ new Set();
1776
- o.forEach(function(g) {
1781
+ var o = function l(f) {
1782
+ var u = a.get(f) || /* @__PURE__ */ new Set();
1783
+ u.forEach(function(g) {
1777
1784
  if (!r.has(g)) {
1778
1785
  r.add(g);
1779
1786
  var h = g.getNamePath();
@@ -1781,23 +1788,23 @@ var re = /* @__PURE__ */ function() {
1781
1788
  }
1782
1789
  });
1783
1790
  };
1784
- return u(n), i;
1791
+ return o(n), i;
1785
1792
  }), d(this, "triggerOnFieldsChange", function(n, r) {
1786
1793
  var i = e.callbacks.onFieldsChange;
1787
1794
  if (i) {
1788
1795
  var a = e.getFields();
1789
1796
  if (r) {
1790
- var u = new re();
1797
+ var o = new re();
1791
1798
  r.forEach(function(f) {
1792
- var o = f.name, g = f.errors;
1793
- u.set(o, g);
1799
+ var u = f.name, g = f.errors;
1800
+ o.set(u, g);
1794
1801
  }), a.forEach(function(f) {
1795
- f.errors = u.get(f.name) || f.errors;
1802
+ f.errors = o.get(f.name) || f.errors;
1796
1803
  });
1797
1804
  }
1798
1805
  var l = a.filter(function(f) {
1799
- var o = f.name;
1800
- return te(n, o);
1806
+ var u = f.name;
1807
+ return te(n, u);
1801
1808
  });
1802
1809
  l.length && i(l, a);
1803
1810
  }
@@ -1805,11 +1812,11 @@ var re = /* @__PURE__ */ function() {
1805
1812
  e.warningUnhooked();
1806
1813
  var i, a;
1807
1814
  Array.isArray(n) || typeof n == "string" || typeof r == "string" ? (i = n, a = r) : a = n;
1808
- var u = !!i, l = u ? i.map(L) : [], f = [], o = String(Date.now()), g = /* @__PURE__ */ new Set(), h = a || {}, b = h.recursive, p = h.dirty;
1815
+ var o = !!i, l = o ? i.map(L) : [], f = [], u = String(Date.now()), g = /* @__PURE__ */ new Set(), h = a || {}, b = h.recursive, p = h.dirty;
1809
1816
  e.getFieldEntities(!0).forEach(function(v) {
1810
- if (u || l.push(v.getNamePath()), !(!v.props.rules || !v.props.rules.length) && !(p && !v.isFieldDirty())) {
1817
+ if (o || l.push(v.getNamePath()), !(!v.props.rules || !v.props.rules.length) && !(p && !v.isFieldDirty())) {
1811
1818
  var y = v.getNamePath();
1812
- if (g.add(y.join(o)), !u || te(l, y, b)) {
1819
+ if (g.add(y.join(u)), !o || te(l, y, b)) {
1813
1820
  var C = v.validateRules(N({
1814
1821
  validateMessages: N(N({}, rr), e.validateMessages)
1815
1822
  }, a));
@@ -1865,7 +1872,7 @@ var re = /* @__PURE__ */ function() {
1865
1872
  return v;
1866
1873
  });
1867
1874
  var F = l.filter(function(v) {
1868
- return g.has(v.join(o));
1875
+ return g.has(v.join(u));
1869
1876
  });
1870
1877
  return e.triggerOnFieldsChange(F), c;
1871
1878
  }), d(this, "submit", function() {
@@ -1884,7 +1891,7 @@ var re = /* @__PURE__ */ function() {
1884
1891
  }), this.forceRootUpdate = t;
1885
1892
  });
1886
1893
  function ar(s) {
1887
- var t = E.useRef(), e = E.useState({}), n = ue(e, 2), r = n[1];
1894
+ var t = E.useRef(), e = E.useState({}), n = oe(e, 2), r = n[1];
1888
1895
  if (!t.current)
1889
1896
  if (s)
1890
1897
  t.current = s;
@@ -1906,36 +1913,36 @@ var ke = /* @__PURE__ */ E.createContext({
1906
1913
  unregisterForm: function() {
1907
1914
  }
1908
1915
  }), sr = function(t) {
1909
- var e = t.validateMessages, n = t.onFormChange, r = t.onFormFinish, i = t.children, a = E.useContext(ke), u = E.useRef({});
1916
+ var e = t.validateMessages, n = t.onFormChange, r = t.onFormFinish, i = t.children, a = E.useContext(ke), o = E.useRef({});
1910
1917
  return /* @__PURE__ */ E.createElement(ke.Provider, {
1911
1918
  value: N(N({}, a), {}, {
1912
1919
  validateMessages: N(N({}, a.validateMessages), e),
1913
1920
  // =========================================================
1914
1921
  // = Global Form Control =
1915
1922
  // =========================================================
1916
- triggerFormChange: function(f, o) {
1923
+ triggerFormChange: function(f, u) {
1917
1924
  n && n(f, {
1918
- changedFields: o,
1919
- forms: u.current
1920
- }), a.triggerFormChange(f, o);
1925
+ changedFields: u,
1926
+ forms: o.current
1927
+ }), a.triggerFormChange(f, u);
1921
1928
  },
1922
- triggerFormFinish: function(f, o) {
1929
+ triggerFormFinish: function(f, u) {
1923
1930
  r && r(f, {
1924
- values: o,
1925
- forms: u.current
1926
- }), a.triggerFormFinish(f, o);
1931
+ values: u,
1932
+ forms: o.current
1933
+ }), a.triggerFormFinish(f, u);
1927
1934
  },
1928
- registerForm: function(f, o) {
1929
- f && (u.current = N(N({}, u.current), {}, d({}, f, o))), a.registerForm(f, o);
1935
+ registerForm: function(f, u) {
1936
+ f && (o.current = N(N({}, o.current), {}, d({}, f, u))), a.registerForm(f, u);
1930
1937
  },
1931
1938
  unregisterForm: function(f) {
1932
- var o = N({}, u.current);
1933
- delete o[f], u.current = o, a.unregisterForm(f);
1939
+ var u = N({}, o.current);
1940
+ delete u[f], o.current = u, a.unregisterForm(f);
1934
1941
  }
1935
1942
  })
1936
1943
  }, i);
1937
1944
  }, at = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"], st = function(t, e) {
1938
- var n = t.name, r = t.initialValues, i = t.fields, a = t.form, u = t.preserve, l = t.children, f = t.component, o = f === void 0 ? "form" : f, g = t.validateMessages, h = t.validateTrigger, b = h === void 0 ? "onChange" : h, p = t.onValuesChange, m = t.onFieldsChange, c = t.onFinish, F = t.onFinishFailed, v = t.clearOnDestroy, y = Ae(t, at), C = E.useRef(null), V = E.useContext(ke), A = ar(a), x = ue(A, 1), R = x[0], w = R.getInternalHooks(Q), P = w.useSubscribe, O = w.setInitialValues, T = w.setCallbacks, S = w.setValidateMessages, M = w.setPreserve, z = w.destroyForm;
1945
+ var n = t.name, r = t.initialValues, i = t.fields, a = t.form, o = t.preserve, l = t.children, f = t.component, u = f === void 0 ? "form" : f, g = t.validateMessages, h = t.validateTrigger, b = h === void 0 ? "onChange" : h, p = t.onValuesChange, m = t.onFieldsChange, c = t.onFinish, F = t.onFinishFailed, v = t.clearOnDestroy, y = Ae(t, at), C = E.useRef(null), V = E.useContext(ke), A = ar(a), x = oe(A, 1), R = x[0], w = R.getInternalHooks(X), P = w.useSubscribe, O = w.setInitialValues, T = w.setCallbacks, S = w.setValidateMessages, M = w.setPreserve, z = w.destroyForm;
1939
1946
  E.useImperativeHandle(e, function() {
1940
1947
  return N(N({}, R), {}, {
1941
1948
  nativeElement: C.current
@@ -1957,7 +1964,7 @@ var ke = /* @__PURE__ */ E.createContext({
1957
1964
  V.triggerFormFinish(n, J), c && c(J);
1958
1965
  },
1959
1966
  onFinishFailed: F
1960
- }), M(u);
1967
+ }), M(o);
1961
1968
  var _ = E.useRef(null);
1962
1969
  O(r, !_.current), _.current || (_.current = !0), E.useEffect(
1963
1970
  function() {
@@ -1970,25 +1977,25 @@ var ke = /* @__PURE__ */ E.createContext({
1970
1977
  );
1971
1978
  var G, Me = typeof l == "function";
1972
1979
  if (Me) {
1973
- var ur = R.getFieldsValue(!0);
1974
- G = l(ur, R);
1980
+ var or = R.getFieldsValue(!0);
1981
+ G = l(or, R);
1975
1982
  } else
1976
1983
  G = l;
1977
1984
  P(!Me);
1978
1985
  var Ie = E.useRef();
1979
1986
  E.useEffect(function() {
1980
- Xr(Ie.current || [], i || []) || R.setFields(i || []), Ie.current = i;
1987
+ Qr(Ie.current || [], i || []) || R.setFields(i || []), Ie.current = i;
1981
1988
  }, [i, R]);
1982
- var or = E.useMemo(function() {
1989
+ var ur = E.useMemo(function() {
1983
1990
  return N(N({}, R), {}, {
1984
1991
  validateTrigger: b
1985
1992
  });
1986
1993
  }, [R, b]), Se = /* @__PURE__ */ E.createElement(he.Provider, {
1987
1994
  value: null
1988
1995
  }, /* @__PURE__ */ E.createElement(ne.Provider, {
1989
- value: or
1996
+ value: ur
1990
1997
  }, G));
1991
- return o === !1 ? Se : /* @__PURE__ */ E.createElement(o, Ye({}, y, {
1998
+ return u === !1 ? Se : /* @__PURE__ */ E.createElement(u, Ye({}, y, {
1992
1999
  ref: C,
1993
2000
  onSubmit: function(J) {
1994
2001
  J.preventDefault(), J.stopPropagation(), R.submit();
@@ -2006,60 +2013,60 @@ function Je(s) {
2006
2013
  return Math.random();
2007
2014
  }
2008
2015
  }
2009
- var ut = process.env.NODE_ENV !== "production" ? function(s) {
2016
+ var ot = process.env.NODE_ENV !== "production" ? function(s) {
2010
2017
  var t = s.join("__RC_FIELD_FORM_SPLIT__"), e = we(t);
2011
2018
  D(e.current === t, "`useWatch` is not support dynamic `namePath`. Please provide static instead.");
2012
2019
  } : function() {
2013
2020
  };
2014
- function ot() {
2021
+ function ut() {
2015
2022
  for (var s = arguments.length, t = new Array(s), e = 0; e < s; e++)
2016
2023
  t[e] = arguments[e];
2017
2024
  var n = t[0], r = t[1], i = r === void 0 ? {} : r, a = pr(i) ? {
2018
2025
  form: i
2019
- } : i, u = a.form, l = lr(), f = ue(l, 2), o = f[0], g = f[1], h = fr(function() {
2020
- return Je(o);
2021
- }, [o]), b = we(h);
2026
+ } : i, o = a.form, l = lr(), f = oe(l, 2), u = f[0], g = f[1], h = fr(function() {
2027
+ return Je(u);
2028
+ }, [u]), b = we(h);
2022
2029
  b.current = h;
2023
- var p = cr(ne), m = u || p, c = m && m._init;
2024
- process.env.NODE_ENV !== "production" && D(t.length === 2 ? u ? c : !0 : c, "useWatch requires a form instance since it can not auto detect from context.");
2030
+ var p = cr(ne), m = o || p, c = m && m._init;
2031
+ process.env.NODE_ENV !== "production" && D(t.length === 2 ? o ? c : !0 : c, "useWatch requires a form instance since it can not auto detect from context.");
2025
2032
  var F = L(n), v = we(F);
2026
- return v.current = F, ut(F), dr(
2033
+ return v.current = F, ot(F), dr(
2027
2034
  function() {
2028
2035
  if (c) {
2029
- var y = m.getFieldsValue, C = m.getInternalHooks, V = C(Q), A = V.registerWatch, x = function(O, T) {
2036
+ var y = m.getFieldsValue, C = m.getInternalHooks, V = C(X), A = V.registerWatch, x = function(O, T) {
2030
2037
  var S = a.preserve ? T : O;
2031
- return typeof n == "function" ? n(S) : X(S, v.current);
2038
+ return typeof n == "function" ? n(S) : Q(S, v.current);
2032
2039
  }, R = A(function(P, O) {
2033
2040
  var T = x(P, O), S = Je(T);
2034
2041
  b.current !== S && (b.current = S, g(T));
2035
2042
  }), w = x(y(), y(!0));
2036
- return o !== w && g(w), R;
2043
+ return u !== w && g(w), R;
2037
2044
  }
2038
2045
  },
2039
2046
  // We do not need re-register since namePath content is the same
2040
2047
  // eslint-disable-next-line react-hooks/exhaustive-deps
2041
2048
  [c]
2042
- ), o;
2049
+ ), u;
2043
2050
  }
2044
2051
  var lt = /* @__PURE__ */ E.forwardRef(st), de = lt;
2045
2052
  de.FormProvider = sr;
2046
2053
  de.Field = nr;
2047
2054
  de.List = rt;
2048
2055
  de.useForm = ar;
2049
- de.useWatch = ot;
2050
- const mt = /* @__PURE__ */ E.createContext({
2056
+ de.useWatch = ut;
2057
+ const pt = /* @__PURE__ */ E.createContext({
2051
2058
  labelAlign: "right",
2052
2059
  vertical: !1,
2053
2060
  itemRef: () => {
2054
2061
  }
2055
- }), pt = /* @__PURE__ */ E.createContext(null), Ft = (s) => {
2062
+ }), Ft = /* @__PURE__ */ E.createContext(null), yt = (s) => {
2056
2063
  const t = mr(s, ["prefixCls"]);
2057
2064
  return /* @__PURE__ */ E.createElement(sr, Object.assign({}, t));
2058
- }, yt = /* @__PURE__ */ E.createContext({
2065
+ }, wt = /* @__PURE__ */ E.createContext({
2059
2066
  prefixCls: ""
2060
2067
  }), $e = /* @__PURE__ */ E.createContext({});
2061
2068
  process.env.NODE_ENV !== "production" && ($e.displayName = "FormItemInputContext");
2062
- const wt = (s) => {
2069
+ const Vt = (s) => {
2063
2070
  let {
2064
2071
  children: t,
2065
2072
  status: e,
@@ -2072,20 +2079,20 @@ const wt = (s) => {
2072
2079
  return /* @__PURE__ */ E.createElement($e.Provider, {
2073
2080
  value: i
2074
2081
  }, t);
2075
- }, Vt = /* @__PURE__ */ E.createContext(void 0);
2082
+ }, Et = /* @__PURE__ */ E.createContext(void 0);
2076
2083
  export {
2077
2084
  ne as C,
2078
2085
  $e as F,
2079
2086
  he as L,
2080
- wt as N,
2087
+ Vt as N,
2081
2088
  de as R,
2082
- Vt as V,
2089
+ Et as V,
2083
2090
  nr as W,
2084
- yt as a,
2085
- Ft as b,
2086
- mt as c,
2087
- pt as d,
2091
+ wt as a,
2092
+ yt as b,
2093
+ pt as c,
2094
+ Ft as d,
2088
2095
  rt as e,
2089
- ot as f,
2096
+ ut as f,
2090
2097
  ar as u
2091
2098
  };